FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
public
/
js
/
chunks
Edit File: amelia-booking-settings-0d421e0e1e2bdd88e543.js
wpJsonpAmeliaBookingPlugin([0],Array(654).concat([function(e,t,i){"use strict";t.a={data:function(){return{colors:["1788FB","4BBEC6","FBC22D","FA3C52","D696B8","689BCA","26CC2B","FD7E35","E38587","774DFB","31CDF3","6AB76C","FD5FA1","A697C5"],usedColors:[]}},methods:{deleteImage:function(e){e.pictureThumbPath="",e.pictureFullPath=""},getAppropriateUrlParams:function(e){if("disableUrlParams"in this.$root.settings.activation&&!this.$root.settings.activation.disableUrlParams)return e;var t=JSON.parse(JSON.stringify(e));return["categories","services","packages","employees","providers","providerIds","extras","locations","events","types","dates"].forEach(function(e){if("extras"===e&&e in t){t.extras=JSON.parse(t.extras);var i=[];t.extras.forEach(function(e){i.push(e.id+"-"+e.quantity)}),t.extras=i.length?i:null}e in t&&Array.isArray(t[e])&&t[e].length&&(t[e]=t[e].join(","))}),t},inlineSVG:function(){var e=i(662);e.init({svgSelector:"img.svg-amelia",initClass:"js-inlinesvg"})},inlineSVGCabinet:function(){setTimeout(function(){i(662).init({svgSelector:"img.svg-cabinet",initClass:"js-inlinesvg"})},100)},imageFromText:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getNameInitials(e),a=Math.floor(Math.random()*this.colors.length),o=this.colors[a];if(this.usedColors.push(this.colors[a]),this.colors.splice(a,1),0===this.colors.length&&(this.colors=this.usedColors,this.usedColors=[]),i)return t.firstName?this.$root.getUrl+"public/img/default-employee.svg":t.latitude?this.$root.getUrl+"public/img/default-location.svg":this.$root.getUrl+"public/img/default-service.svg";var s=document.createElement("canvas");s.width=100,s.height=100;var r=s.getContext("2d");return r.fillStyle=o.startsWith("#")?o:"#"+o,r.fillRect(0,0,s.width,s.height),r.font="40px Arial",r.fillStyle="#ffffff",r.textAlign="center",r.textBaseline="middle",r.fillText(n,s.width/2,s.height/2),s.toDataURL("image/png")},pictureLoad:function(e,t){if(null!==e){var i=!0===t?e.firstName+" "+e.lastName:e.name;if(void 0!==i)return e.pictureThumbPath=e.pictureThumbPath||this.imageFromText(i),e.pictureThumbPath}},imageLoadError:function(e,t){var i=!0===t?e.firstName+" "+e.lastName:e.name;void 0!==i&&(e.pictureThumbPath=this.imageFromText(i,e,!0))},getNameInitials:function(e){return e.split(" ").map(function(e){return e.charAt(0)}).join("").toUpperCase().substring(0,3).replace(/[^\w\s]/g,"")}}}},function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={data:function(){return{}},methods:{replaceExistingObjectProperties:function(e,t){var i=this;Object.keys(e).forEach(function(a){null!==e[a]&&"object"===n(e[a])&&a in t?i.replaceExistingObjectProperties(e[a],t[a]):a in t&&(e[a]=t[a])})},addMissingObjectProperties:function(e,t){var i=this;Object.keys(t).forEach(function(a){var o=!1;a in e||("object"===n(t[a])?(e[a]={},o=!0):(e[a]=null,o=!0)),null===t[a]||"object"!==n(t[a])?o&&(e[a]=t[a]):i.addMissingObjectProperties(e[a],t[a])})},scrollView:function(e,t,i){"undefined"!=typeof jQuery&&(void 0!==i&&i||jQuery(window).width()<=600)&&setTimeout(function(){var i=document.getElementById(e);void 0!==i&&null!==i&&i.scrollIntoView({behavior:"smooth",block:t,inline:"end"})},200)},scrollViewInModal:function(e){this.$nextTick(function(){var t=document.getElementById(e),i=document.querySelectorAll(".am-dialog-scrollable");if(t&&i&&i.length){var n=t,a=t.offsetTop;do{a+=(n=n.offsetParent).offsetTop}while(n===i[0]);i[0].scrollTop=a}})},getUrlQueryParams:function(e){var t=e.indexOf("#")>0?e.substring(0,e.indexOf("#")).split("?")[1]:e.split("?")[1];if(t){var i=[],n={};return t.split("&").forEach(function(e){i=e.split("="),n[i[0]]=decodeURIComponent(i[1]).replace(/\+/g," ")}),n}},getUrlParams:function(e){var t={};if(-1!==e.indexOf("?")){var i=[];e.split("?")[1].split("&").forEach(function(e){i=e.split("="),t[i[0]]=decodeURIComponent(i[1]).replace(/\+/g," ")})}return t},removeURLParameter:function(e,t){var i=e.split("?");if(i.length>=2){for(var n=encodeURIComponent(t)+"=",a=i[1].split(/[&;]/g),o=a.length;o-- >0;)-1!==a[o].lastIndexOf(n,0)&&a.splice(o,1);return e=i[0]+(a.length>0?"?"+a.join("&"):"")}return e},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},trimProperty:function(e,t){e[t]=e[t].trim()}}}},function(e,t,i){"use strict";var n=i(686),a=i(344),o=Object.prototype.toString;function s(e){return"[object Array]"===o.call(e)}function r(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!==e&&void 0!==e)if("object"==typeof e||s(e)||(e=[e]),s(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:a,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:r,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return r(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function i(i,n){"object"==typeof t[n]&&"object"==typeof i?t[n]=e(t[n],i):t[n]=i}for(var n=0,a=arguments.length;n<a;n++)c(arguments[n],i);return t},extend:function(e,t,i){return c(t,function(t,a){e[a]=i&&"function"==typeof t?n(t,i):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,i){"use strict";t.a={data:function(){return{currencies:[{symbol:"$",name:"US Dollar",symbol_native:"$",code:"USD",iso:"us"},{symbol:"€",name:"Euro",symbol_native:"€",code:"EUR",iso:"eu"},{symbol:"£",name:"British Pound Sterling",symbol_native:"£",code:"GBP",iso:"gb"},{symbol:"CA$",name:"Canadian Dollar",symbol_native:"$",code:"CAD",iso:"ca"},{symbol:"FCFP",name:"CFP Franc",symbol_native:"FCFP",code:"XPF",iso:"fr"},{symbol:"CHF",name:"Swiss Franc",symbol_native:"CHF",code:"CHF",iso:"ch"},{symbol:"RUB",name:"Russian Ruble",symbol_native:"руб.",code:"RUB",iso:"ru"},{symbol:"¥",name:"Japanese Yen",symbol_native:"¥",code:"JPY",iso:"jp"},{symbol:"Af",name:"Afghan Afghani",symbol_native:"؋",code:"AFN",iso:"af"},{symbol:"ALL",name:"Albanian Lek",symbol_native:"Lek",code:"ALL",iso:"al"},{symbol:"DA",name:"Algerian Dinar",symbol_native:"د.ج.",code:"DZD",iso:"dz"},{symbol:"AR$",name:"Argentine Peso",symbol_native:"$",code:"ARS",iso:"ar"},{symbol:"AMD",name:"Armenian Dram",symbol_native:"դր.",code:"AMD",iso:"am"},{symbol:"AU$",name:"Australian Dollar",symbol_native:"$",code:"AUD",iso:"au"},{symbol:"man.",name:"Azerbaijani Manat",symbol_native:"ман.",code:"AZN",iso:"az"},{symbol:"BD",name:"Bahraini Dinar",symbol_native:"د.ب.",code:"BHD",iso:"bh"},{symbol:"Tk",name:"Bangladeshi Taka",symbol_native:"৳",code:"BDT",iso:"bd"},{symbol:"BYR",name:"Belarusian Ruble",symbol_native:"BYR",code:"BYR",iso:"by"},{symbol:"BZ$",name:"Belize Dollar",symbol_native:"$",code:"BZD",iso:"bz"},{symbol:"Bs",name:"Bolivian Boliviano",symbol_native:"Bs",code:"BOB",iso:"bo"},{symbol:"KM",name:"Bosnia-Herzegovina Convertible Mark",symbol_native:"KM",code:"BAM",iso:"ba"},{symbol:"BWP",name:"Botswanan Pula",symbol_native:"P",code:"BWP",iso:"bw"},{symbol:"R$",name:"Brazilian Real",symbol_native:"R$",code:"BRL",iso:"br"},{symbol:"BN$",name:"Brunei Dollar",symbol_native:"$",code:"BND",iso:"bn"},{symbol:"BGN",name:"Bulgarian Lev",symbol_native:"лв.",code:"BGN",iso:"bg"},{symbol:"FBu",name:"Burundian Franc",symbol_native:"FBu",code:"BIF",iso:"bi"},{symbol:"CFA",name:"CFA Franc BCEAO",symbol_native:"CFA",code:"XOF",iso:"auto"},{symbol:"FCFA",name:"CFA Franc BEAC",symbol_native:"FCFA",code:"XAF",iso:"auto"},{symbol:"KHR",name:"Cambodian Riel",symbol_native:"៛",code:"KHR",iso:"kh"},{symbol:"CV$",name:"Cape Verdean Escudo",symbol_native:"CV$",code:"CVE",iso:"cv"},{symbol:"CLP",name:"Chilean Peso",symbol_native:"$",code:"CLP",iso:"cl"},{symbol:"CN¥",name:"Chinese Yuan",symbol_native:"CN¥",code:"CNY",iso:"cn"},{symbol:"COP",name:"Colombian Peso",symbol_native:"$",code:"COP",iso:"co"},{symbol:"CF",name:"Comorian Franc",symbol_native:"FC",code:"KMF",iso:"km"},{symbol:"CDF",name:"Congolese Franc",symbol_native:"FrCD",code:"CDF",iso:"cd"},{symbol:"₡",name:"Costa Rican Colón",symbol_native:"₡",code:"CRC",iso:"cr"},{symbol:"kn",name:"Croatian Kuna",symbol_native:"kn",code:"HRK",iso:"hr"},{symbol:"Kč",name:"Czech Republic Koruna",symbol_native:"Kč",code:"CZK",iso:"cz"},{symbol:"Dkk",name:"Danish Krone",symbol_native:"kr",code:"DKK",iso:"dk"},{symbol:"Fdj",name:"Djiboutian Franc",symbol_native:"Fdj",code:"DJF",iso:"dj"},{symbol:"RD$",name:"Dominican Peso",symbol_native:"RD$",code:"DOP",iso:"do"},{symbol:"EGP",name:"Egyptian Pound",symbol_native:"ج.م.",code:"EGP",iso:"eg"},{symbol:"Nfk",name:"Eritrean Nakfa",symbol_native:"Nfk",code:"ERN",iso:"er"},{symbol:"Ekr",name:"Estonian Kroon",symbol_native:"kr",code:"EEK",iso:"ee"},{symbol:"Br",name:"Ethiopian Birr",symbol_native:"Br",code:"ETB",iso:"et"},{symbol:"GEL",name:"Georgian Lari",symbol_native:"GEL",code:"GEL",iso:"ge"},{symbol:"GH₵",name:"Ghanaian Cedi",symbol_native:"GH₵",code:"GHS",iso:"gh"},{symbol:"GTQ",name:"Guatemalan Quetzal",symbol_native:"Q",code:"GTQ",iso:"gt"},{symbol:"FG",name:"Guinean Franc",symbol_native:"FG",code:"GNF",iso:"gn"},{symbol:"HNL",name:"Honduran Lempira",symbol_native:"L",code:"HNL",iso:"hn"},{symbol:"HK$",name:"Hong Kong Dollar",symbol_native:"$",code:"HKD",iso:"hk"},{symbol:"Ft",name:"Hungarian Forint",symbol_native:"Ft",code:"HUF",iso:"hu"},{symbol:"kr",name:"Icelandic Króna",symbol_native:"kr",code:"ISK",iso:"is"},{symbol:"INR",name:"Indian Rupee",symbol_native:"টকা",code:"INR",iso:"in"},{symbol:"Rp",name:"Indonesian Rupiah",symbol_native:"Rp",code:"IDR",iso:"id"},{symbol:"IRR",name:"Iranian Rial",symbol_native:"﷼",code:"IRR",iso:"ir"},{symbol:"IQD",name:"Iraqi Dinar",symbol_native:"د.ع.",code:"IQD",iso:"iq"},{symbol:"₪",name:"Israeli New Sheqel",symbol_native:"₪",code:"ILS",iso:"il"},{symbol:"J$",name:"Jamaican Dollar",symbol_native:"$",code:"JMD",iso:"jm"},{symbol:"JD",name:"Jordanian Dinar",symbol_native:"د.أ.",code:"JOD",iso:"jo"},{symbol:"KZT",name:"Kazakhstani Tenge",symbol_native:"тңг.",code:"KZT",iso:"kz"},{symbol:"Ksh",name:"Kenyan Shilling",symbol_native:"Ksh",code:"KES",iso:"ke"},{symbol:"KD",name:"Kuwaiti Dinar",symbol_native:"د.ك.",code:"KWD",iso:"kw"},{symbol:"Ls",name:"Latvian Lats",symbol_native:"Ls",code:"LVL",iso:"lv"},{symbol:"LB£",name:"Lebanese Pound",symbol_native:"ل.ل.",code:"LBP",iso:"lb"},{symbol:"LD",name:"Libyan Dinar",symbol_native:"د.ل.",code:"LYD",iso:"ly"},{symbol:"Lt",name:"Lithuanian Litas",symbol_native:"Lt",code:"LTL",iso:"lt"},{symbol:"MOP$",name:"Macanese Pataca",symbol_native:"MOP$",code:"MOP",iso:"mo"},{symbol:"MKD",name:"Macedonian Denar",symbol_native:"MKD",code:"MKD",iso:"mk"},{symbol:"MGA",name:"Malagasy Ariary",symbol_native:"MGA",code:"MGA",iso:"mg"},{symbol:"RM",name:"Malaysian Ringgit",symbol_native:"RM",code:"MYR",iso:"my"},{symbol:"MURs",name:"Mauritian Rupee",symbol_native:"MURs",code:"MUR",iso:"mu"},{symbol:"MX$",name:"Mexican Peso",symbol_native:"$",code:"MXN",iso:"mx"},{symbol:"MDL",name:"Moldovan Leu",symbol_native:"MDL",code:"MDL",iso:"md"},{symbol:"MAD",name:"Moroccan Dirham",symbol_native:"د.م.",code:"MAD",iso:"ma"},{symbol:"MTn",name:"Mozambican Metical",symbol_native:"MTn",code:"MZN",iso:"mz"},{symbol:"MMK",name:"Myanma Kyat",symbol_native:"K",code:"MMK",iso:"mm"},{symbol:"N$",name:"Namibian Dollar",symbol_native:"N$",code:"NAD",iso:"na"},{symbol:"NPRs",name:"Nepalese Rupee",symbol_native:"नेरू",code:"NPR",iso:"np"},{symbol:"NT$",name:"New Taiwan Dollar",symbol_native:"NT$",code:"TWD",iso:"tw"},{symbol:"NZ$",name:"New Zealand Dollar",symbol_native:"$",code:"NZD",iso:"nz"},{symbol:"C$",name:"Nicaraguan Córdoba",symbol_native:"C$",code:"NIO",iso:"ni"},{symbol:"₦",name:"Nigerian Naira",symbol_native:"₦",code:"NGN",iso:"ng"},{symbol:"kr",name:"Norwegian Krone",symbol_native:"kr",code:"NOK",iso:"no"},{symbol:"OMR",name:"Omani Rial",symbol_native:"ر.ع.",code:"OMR",iso:"om"},{symbol:"PKRs",name:"Pakistani Rupee",symbol_native:"₨",code:"PKR",iso:"pk"},{symbol:"B/.",name:"Panamanian Balboa",symbol_native:"B/.",code:"PAB",iso:"pa"},{symbol:"₲",name:"Paraguayan Guarani",symbol_native:"₲",code:"PYG",iso:"py"},{symbol:"S/.",name:"Peruvian Nuevo Sol",symbol_native:"S/.",code:"PEN",iso:"pe"},{symbol:"₱",name:"Philippine Peso",symbol_native:"₱",code:"PHP",iso:"ph"},{symbol:"zł",name:"Polish Zloty",symbol_native:"zł",code:"PLN",iso:"pl"},{symbol:"QR",name:"Qatari Rial",symbol_native:"ر.ق.",code:"QAR",iso:"qa"},{symbol:"RON",name:"Romanian Leu",symbol_native:"RON",code:"RON",iso:"ro"},{symbol:"RWF",name:"Rwandan Franc",symbol_native:"FR",code:"RWF",iso:"rw"},{symbol:"SR",name:"Saudi Riyal",symbol_native:"ر.س.",code:"SAR",iso:"sa"},{symbol:"rsd.",name:"Serbian Dinar",symbol_native:"дин.",code:"RSD",iso:"rs"},{symbol:"S$",name:"Singapore Dollar",symbol_native:"$",code:"SGD",iso:"sg"},{symbol:"Ssh",name:"Somali Shilling",symbol_native:"Ssh",code:"SOS",iso:"so"},{symbol:"R",name:"South African Rand",symbol_native:"R",code:"ZAR",iso:"za"},{symbol:"₩",name:"South Korean Won",symbol_native:"₩",code:"KRW",iso:"kr"},{symbol:"₭",name:"Lao kip",symbol_native:"₭",code:"LAK",iso:"la"},{symbol:"SLRs",name:"Sri Lankan Rupee",symbol_native:"SL Re",code:"LKR",iso:"lk"},{symbol:"SDG",name:"Sudanese Pound",symbol_native:"SDG",code:"SDG",iso:"sd"},{symbol:"kr",name:"Swedish Krona",symbol_native:"kr",code:"SEK",iso:"se"},{symbol:"SY£",name:"Syrian Pound",symbol_native:"ل.س.",code:"SYP",iso:"sy"},{symbol:"TSh",name:"Tanzanian Shilling",symbol_native:"TSh",code:"TZS",iso:"tz"},{symbol:"฿",name:"Thai Baht",symbol_native:"฿",code:"THB",iso:"th"},{symbol:"T$",name:"Tongan Paʻanga",symbol_native:"T$",code:"TOP",iso:"to"},{symbol:"TT$",name:"Trinidad and Tobago Dollar",symbol_native:"$",code:"TTD",iso:"tt"},{symbol:"DT",name:"Tunisian Dinar",symbol_native:"د.ت.",code:"TND",iso:"tn"},{symbol:"TL",name:"Turkish Lira",symbol_native:"TL",code:"TRY",iso:"tr"},{symbol:"USh",name:"Ugandan Shilling",symbol_native:"USh",code:"UGX",iso:"ug"},{symbol:"₴",name:"Ukrainian Hryvnia",symbol_native:"₴",code:"UAH",iso:"ua"},{symbol:"AED",name:"United Arab Emirates Dirham",symbol_native:"د.إ.",code:"AED",iso:"ae"},{symbol:"$U",name:"Uruguayan Peso",symbol_native:"$",code:"UYU",iso:"uy"},{symbol:"UZS",name:"Uzbekistan Som",symbol_native:"UZS",code:"UZS",iso:"uz"},{symbol:"Bs.S.",name:"Venezuelan Bolívar",symbol_native:"Bs.S.",code:"VES",iso:"ve"},{symbol:"₫",name:"Vietnamese Dong",symbol_native:"₫",code:"VND",iso:"vn"},{symbol:"YR",name:"Yemeni Rial",symbol_native:"ر.ي.",code:"YER",iso:"ye"},{symbol:"ZK",name:"Zambian Kwacha",symbol_native:"ZK",code:"ZMK",iso:"zm"}],thousandSeparatorMap:{1:",",2:".",3:" ",4:" "},decimalSeparatorMap:{1:".",2:",",3:".",4:","}}},methods:{getCurrencySymbol:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.currencies.find(function(t){return t.code===e.$root.settings.payments.currencyCode});return i&&t&&"INR"!==i.code?i.symbol_native:t&&"INR"===i.code?i.code:this.$root.settings.payments.currency},getPriceThousandSeparator:function(){return this.thousandSeparatorMap[this.$root.settings.payments.priceSeparator]},getPriceDecimalSeparator:function(){return this.decimalSeparatorMap[this.$root.settings.payments.priceSeparator]},getPriceNumberOfDecimalPlaces:function(){return this.$root.settings.payments.priceNumberOfDecimals},getPricePrefix:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"after"===this.$root.settings.payments.priceSymbolPosition||"afterWithSpace"===this.$root.settings.payments.priceSymbolPosition?"":"before"===this.$root.settings.payments.priceSymbolPosition?this.getCurrencySymbol(e):this.getCurrencySymbol(e)+" "},getPriceSuffix:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"before"===this.$root.settings.payments.priceSymbolPosition||"beforeWithSpace"===this.$root.settings.payments.priceSymbolPosition?"":"after"===this.$root.settings.payments.priceSymbolPosition?this.getCurrencySymbol(e):" "+this.getCurrencySymbol(e)},getFormattedPrice:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.getPriceNumberOfDecimalPlaces(),n=this.getPriceThousandSeparator(),a=this.getPriceDecimalSeparator(),o=this.getPricePrefix(),s=this.getPriceSuffix(),r=parseInt(e=Math.abs(+e||0).toFixed(i))+"",l=r.length>3?r.length%3:0;return(t?o:"")+(l?r.substr(0,l)+n:"")+r.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+n)+(i?a+Math.abs(e-r).toFixed(i).slice(2):"")+(t?s:"")},getPercentage:function(e,t){return e*t/100}},computed:{moneyComponentData:function(){return{decimal:this.getPriceDecimalSeparator(),thousands:this.getPriceThousandSeparator(),prefix:this.getPricePrefix(!0),suffix:this.getPriceSuffix(!0),precision:this.getPriceNumberOfDecimalPlaces(),masked:!1}}}}},function(e,t,i){"use strict";t.a={methods:{notify:function(e,t,i,n,a){var o=this;void 0===n&&(n=""),setTimeout(function(){var s={customClass:n,title:e,message:t,type:i,offset:50};void 0!==a&&(s.duration=a),o.$notify(s)},700)}}}},,function(e,t,i){"use strict";var n=i(0),a=i.n(n);t.a={data:function(){return{timeSelectOptions:{start:"00:00",end:"23:59",step:this.secondsToTimeSelectStep(this.getTimeSlotLength())}}},methods:{convertDateTimeRangeDifferenceToMomentDuration:function(e,t){return a.a.duration(a()(t).diff(a()(e)))},convertSecondsToMomentDuration:function(e){return a.a.duration(e,"seconds")},momentDurationToNiceDurationWithUnit:function(e){var t=Math.floor(e.asMinutes()/60),i=e.asMinutes()%60;return(t?t+this.$root.labels.h+" ":"")+" "+(i?i+this.$root.labels.min:"")},secondsToNiceDuration:function(e){var t=Math.floor(e/3600),i=e/60%60;return(t?t+this.$root.labels.h+" ":"")+" "+(i?i+this.$root.labels.min:"")},secondsToTimeSelectStep:function(e){var t=Math.floor(e/3600),i=Math.floor(e/60)-60*t;return e<0?(t||"00")+":"+((i<9?"0"+i:i)||"00"):((t<=9?"0"+t:t)||"00")+":"+((i<=9?"0"+i:i)||"00")},getTimeSlotLength:function(){return this.$root.settings.general.timeSlotLength},getPossibleDurationsInSeconds:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:86400,i=this.getTimeSlotLength(),n=[],a=i;a<=t;a+=i)n.push(a);return e&&-1===n.indexOf(e)&&(n.push(e),n.sort(function(e,t){return e-t})),n},getTimeSelectOptionsWithLimits:function(e,t){return{start:"00:00",end:"24:00",step:this.secondsToTimeSelectStep(this.getTimeSlotLength()),minTime:e,maxTime:t}},getSecondsInStringTime:function(e){return a.a.utc(1e3*e).format("HH:mm")},getStringTimeInSeconds:function(e){return a()(e,"HH:mm").diff(a()().startOf("day"),"seconds")}}}},function(e,t,i){"use strict";var n=i(657);t.a={mixins:[n.a],methods:{isDurationPricingEnabled:function(e){return null!==e&&("duration"===e.enabled||!0===e.enabled)&&"durations"in e},isPersonPricingEnabled:function(e){return null!==e&&"person"===e.enabled&&"persons"in e},isPeriodPricingEnabled:function(e){return null!==e&&"period"===e.enabled&&"periods"in e&&!this.$root.licence.isLite&&!this.$root.licence.isStarter&&!this.$root.licence.isBasic},getBookingServicePrice:function(e,t,i,n,a){return this.isDurationPricingEnabled(e.customPricing)?this.getBookingDurationPrice(e,t):this.isPersonPricingEnabled(e.customPricing)?this.getBookingPersonPrice(e,i):this.isPeriodPricingEnabled(e.customPricing)&&n&&a?this.getBookingPeriodPrice(e,parseInt(n),a):e.price},getBookingDurationPrice:function(e,t){return t&&e.customPricing.durations.filter(function(e){return e.duration===t}).length?e.customPricing.durations.find(function(e){return e.duration===t}).price:e.price},getBookingPersonPrice:function(e,t){var i=e.customPricing.persons.map(function(e){return e.range}).sort(function(e,t){return t.range-e.range});if(t&&i.length){var n=i.filter(function(e){return e>=t}),a=0===n.length?i[i.length-1]:n[0];return e.customPricing.persons.find(function(e){return e.range===a}).price}return e.price},getBookingPeriodPrice:function(e,t,i){var n=i.split(" ");if(n[0]in this.pricedCalendarTimeSlots&&n[1].substr(0,5)in this.pricedCalendarTimeSlots[n[0]]){var a=this.pricedCalendarTimeSlots[n[0]][n[1].substr(0,5)].filter(function(e){return e.e===t});return a.length?a[0].p:e.price}return e.price}}}},function(e,t,i){(function(i){var n,a,o,s;s=void 0!==i?i:this.window||this.global,a=[],n=function(e){var t,i={},n=!!document.querySelector&&!!e.addEventListener,a={initClass:"js-inlinesvg",svgSelector:"img.svg"},o=function(){var e={},t=!1,i=0,n=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],i++);for(var a=function(i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t&&"[object Object]"===Object.prototype.toString.call(i[n])?e[n]=o(!0,e[n],i[n]):e[n]=i[n])};n>i;i++){a(arguments[i])}return e},s=function(e){var i=document.querySelectorAll(t.svgSelector),n=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}}(i.length,e);Array.prototype.forEach.call(i,function(e,i){var a=e.src||e.getAttribute("data-src"),o=e.attributes,s=new XMLHttpRequest;s.open("GET",a,!0),s.onload=function(){if(s.status>=200&&s.status<400){var i=(new DOMParser).parseFromString(s.responseText,"text/xml").getElementsByTagName("svg")[0];if(i.removeAttribute("xmlns:a"),i.removeAttribute("width"),i.removeAttribute("height"),i.removeAttribute("x"),i.removeAttribute("y"),i.removeAttribute("enable-background"),i.removeAttribute("xmlns:xlink"),i.removeAttribute("xml:space"),i.removeAttribute("version"),Array.prototype.slice.call(o).forEach(function(e){"src"!==e.name&&"alt"!==e.name&&i.setAttribute(e.name,e.value)}),i.classList?i.classList.add("inlined-svg"):i.className+=" inlined-svg",i.setAttribute("role","img"),o.longdesc){var a=document.createElementNS("http://www.w3.org/2000/svg","desc"),r=document.createTextNode(o.longdesc.value);a.appendChild(r),i.insertBefore(a,i.firstChild)}if(o.alt){i.setAttribute("aria-labelledby","title");var l=document.createElementNS("http://www.w3.org/2000/svg","title"),c=document.createTextNode(o.alt.value);l.appendChild(c),i.insertBefore(l,i.firstChild)}e.parentNode.replaceChild(i,e),n(t.svgSelector)}else console.error("There was an error retrieving the source of the SVG.")},s.onerror=function(){console.error("There was an error connecting to the origin server.")},s.send()})};return i.init=function(e,i){n&&(t=o(a,e||{}),s(i||function(){}),document.documentElement.className+=" "+t.initClass)},i}(s),void 0===(o="function"==typeof n?n.apply(t,a):n)||(e.exports=o)}).call(t,i(37))},,function(e,t,i){"use strict";t.a={data:function(){return{screenWidth:window.innerWidth}},mounted:function(){var e=this;window.onresize=function(){e.screenWidth=window.innerWidth}}}},,,,function(e,t,i){"use strict";var n=i(0),a=i.n(n);t.a={data:function(){return{payBtnLoader:null,timeZone:"",statusesCabinet:[{value:"approved",label:this.$root.labels.approved},{value:"pending",label:this.$root.labels.pending},{value:"canceled",label:this.$root.labels.canceled},{value:"rejected",label:this.$root.labels.rejected},{value:"no-show",label:this.$root.labels["no-show"]},{value:"waiting",label:this.$root.labels.waiting_list}]}},methods:{isPanelActive:function(e){return!this.$root.shortcodeData.cabinet||!(this.$root.shortcodeData.cabinet.appointments||this.$root.shortcodeData.cabinet.events||this.$root.shortcodeData.cabinet.profile)||(!("appointments"!==e||!this.$root.shortcodeData.cabinet||!this.$root.shortcodeData.cabinet.appointments)||(!("events"!==e||!this.$root.shortcodeData.cabinet||!this.$root.shortcodeData.cabinet.events)||"profile"===e&&this.$root.shortcodeData.cabinet&&this.$root.shortcodeData.cabinet.profile))},changeRange:function(e){this.$store.commit("cabinet/setParams",{dates:e}),this.setDatePickerSelectedDaysCount(this.$store.state.cabinet.params.dates.start,this.$store.state.cabinet.params.dates.end),this.$emit("refreshReservations")},isBookingCancelable:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.cancelable&&!("canceled"===e.bookings[t].status||"rejected"===e.bookings[t].status||"no-show"===e.bookings[t].status)},isBookingReschedulable:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.reschedulable&&!("canceled"===e.bookings[t].status||"rejected"===e.bookings[t].status||"no-show"===e.bookings[t].status)},disableAuthorizationHeader:function(){return"ameliaBooking"in window&&"cabinet"in window.ameliaBooking&&"disableAuthorizationHeader"in window.ameliaBooking.cabinet&&window.ameliaBooking.cabinet.disableAuthorizationHeader},getAuthorizationHeaderObject:function(){return this.$store.state.cabinet.ameliaToken&&!this.disableAuthorizationHeader()?{headers:{Authorization:"Bearer "+this.$store.state.cabinet.ameliaToken}}:{}},getPaymentLink:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.payBtnLoader=t.bookings?t.bookings[0].id:t.id;var a=JSON.parse(JSON.stringify(t));a[a.type]=t;var o=JSON.parse(JSON.stringify(this.$store.state.cabinet.profile));if(o.birthday=null,a.customer=o,"package"===a.type){var s=n||Object.keys(a.payments)[0],r=a.payments[s].payments.sort(function(e,t){return e.id>t.id?1:-1});a.paymentId=r[0].id,a.packageCustomerId=s,a.packageReservations=[],a.bookable.forEach(function(e){a.packageReservations=a.packageReservations.concat(e.service.bookedAppointments.filter(function(e){return e.bookings[0].packageCustomerService.packageCustomer.id===parseInt(s)}))}),a.booking=a.packageReservations&&a.packageReservations.length>0?a.packageReservations[0].bookings[0]:null}else a.booking=t.bookings[0],a.paymentId=t.bookings[0].payments[0].id;this.$http.post(this.$root.getAjaxUrl+"/payments/link",{data:a,paymentMethod:e}).then(function(e){i.payBtnLoader=null,!e.data.data.error&&e.data.data.paymentLink?window.location.href=e.data.data.paymentLink:i.notify(i.$root.labels.error,i.$root.labels.payment_link_error,"error")}).catch(function(e){i.payBtnLoader=null,i.notify(i.$root.labels.error,e.message,"error"),console.log(e)})},paymentFromCustomerPanel:function(e,t){if("package"!==e.type&&(!e.bookings||0===e.bookings.length))return!1;var i=this.$root.settings;t&&t.payments&&t.payments.paymentLinks&&(i=JSON.parse(t));var n=i.payments.paymentLinks,o="package"===e.type?Object.values(e.purchases).filter(function(e){return"approved"===e.status}).length>0:"approved"===e.bookings[0].status||"pending"===e.bookings[0].status,s="package"===e.type?e.price:e.bookings[0].price,r=!1;switch(e.type){case"package":r=!e.expireDateString||a()(e.expireDateString,"YYYY-MM-DD HH:mm:ss").isAfter(a()());break;case"appointment":r=a()(e.bookingStart,"YYYY-MM-DD HH:mm:ss").isAfter(a()())&&e.bookings[0].payments.length>0;break;case"event":r=a()(e.periods[e.periods.length-1].periodEnd,"YYYY-MM-DD HH:mm:ss").isAfter(a()())&&e.bookings[0].payments.length>0}return this.paymentMethods(i).length&&n&&n.enabled&&o&&s>0&&r},paymentMethods:function(e){"string"==typeof e&&(e=JSON.parse(e));var t=[];return e=e.payments,this.$root.settings.payments.wc.enabled?t.push({value:"wc",label:this.$root.labels.wc}):!this.$root.settings.payments.mollie.enabled||"mollie"in e&&!e.mollie.enabled?!this.$root.settings.payments.square.enabled||"square"in e&&!e.square.enabled?(!this.$root.settings.payments.payPal.enabled||"payPal"in e&&!e.payPal.enabled||t.push({value:"payPal",label:this.$root.labels.pay_pal}),!this.$root.settings.payments.stripe.enabled||"stripe"in e&&!e.stripe.enabled||t.push({value:"stripe",label:this.$root.labels.credit_card}),!this.$root.settings.payments.razorpay.enabled||"razorpay"in e&&!e.razorpay.enabled||t.push({value:"razorpay",label:this.$root.labels.razorpay})):t.push({value:"square",label:this.$root.labels.on_line}):t.push({value:"mollie",label:this.$root.labels.on_line}),t}}}},function(e,t,i){"use strict";(function(t){var n=i(656),a=i(716),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var r,l={adapter:("undefined"!=typeof XMLHttpRequest?r=i(687):void 0!==t&&(r=i(687)),r),transformRequest:[function(e,t){return a(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){l.headers[e]={}}),n.forEach(["post","put","patch"],function(e){l.headers[e]=n.merge(o)}),e.exports=l}).call(t,i(142))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},function(e,t,i){var n=i(90)(i(682),i(683),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";var n=i(661),a=i(0),o=i.n(a),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={mixins:[n.a],methods:{getArrayCustomPricing:function(e){var t=e.customPricing,i=null;if(void 0===t||null===t||""===t)i={enabled:null,durations:{},persons:{},periods:{default:[],custom:[]}};else if("object"===(void 0===t?"undefined":s(t))){if(Array.isArray(t.durations))return"persons"in t||(t.persons=[]),"periods"in t||(t.periods={default:[],custom:[]}),!0===t.enabled&&(t.enabled="duration"),t;i=JSON.parse(JSON.stringify(t))}else i=JSON.parse(t);!0===i.enabled&&(i.enabled="duration"),i.persons="persons"in i?i.persons:[],i.periods="periods"in i?i.periods:{default:[],custom:[]};var n=[];Object.keys(i.persons).length&&(n.push({start:1,range:Object.keys(i.persons)[0]-1,price:e.price,rules:[]}),Object.keys(i.persons).forEach(function(t,a){n.push({start:parseInt(t),range:a!==Object.keys(i.persons).length-1?Object.keys(i.persons)[a+1]-1:e.maxCapacity,price:i.persons[t].price,rules:i.persons[t].rules})}));var a=[];return Object.keys(i.durations).forEach(function(e){a.push({duration:parseInt(e),price:i.durations[e].price,rules:i.durations[e].rules})}),i.periods.custom.forEach(function(e){e.dates.start=o()(e.dates.start).toDate(),e.dates.end=o()(e.dates.end).toDate()}),{enabled:i.enabled,durations:a,persons:n,periods:i.periods}},getJsonCustomPricing:function(e){var t={},i=e.customPricing;i&&i.durations.filter(function(e){return e.duration}).length>0&&i.durations.forEach(function(e){t[e.duration]={price:e.price,rules:e.rules}});var n={};i&&i.persons.length&&i.persons.forEach(function(e,t){0!==t&&(n[i.persons[t-1].range+1]={price:e.price,rules:e.rules})});var a=[];i.periods.default.filter(function(e){return e.days.length}).forEach(function(e){e.ranges.forEach(function(e){null===e.from&&(e.from="00:00"),null===e.to&&(e.to="24:00")}),a.push(e)});var s=[];i.periods.custom.filter(function(e){return e.dates.start&&e.dates.end}).forEach(function(e){e.ranges.forEach(function(e){null===e.from&&(e.from="00:00"),null===e.to&&(e.to="24:00")}),e.dates.start=o()(e.dates.start).format("YYYY-MM-DD"),e.dates.end=o()(e.dates.end).format("YYYY-MM-DD"),s.push(e)});var r=null;return i&&this.isDurationPricingEnabled(i)?r="duration":i&&this.isPersonPricingEnabled(i)?r="person":i&&this.isPeriodPricingEnabled(i)&&(a.length||s.length)&&(r="period"),JSON.stringify({enabled:r,durations:t,persons:n,periods:{default:a,custom:s}})}}}},,function(e,t,i){"use strict";(function(e){var n=i(752),a=i(753),o=i(746);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,i){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,i)}function c(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,n){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===i&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,i):new Uint8Array(t,i,n);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,i,n):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!l.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|h(t,i),a=(e=r(e,n)).write(t,i);a!==n&&(e=e.slice(0,a));return e}(e,t,i):function(e,t){if(l.isBuffer(t)){var i=0|f(t.length);return 0===(e=r(e,i)).length?e:(t.copy(e,0,0,i),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?r(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=r(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function p(e,t){var i=t.length<0?0:0|f(t.length);e=r(e,i);for(var n=0;n<i;n+=1)e[n]=255&t[n];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return z(e).length;default:if(n)return B(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function g(e,t,i,n,a){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=a?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(a)return-1;i=e.length-1}else if(i<0){if(!a)return-1;i=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:b(e,t,i,n,a);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):b(e,[t],i,n,a);throw new TypeError("val must be string, number or Buffer")}function b(e,t,i,n,a){var o,s=1,r=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,r/=2,l/=2,i/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){var u=-1;for(o=i;o<r;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(i+l>r&&(i=r-l),o=i;o>=0;o--){for(var d=!0,p=0;p<l;p++)if(c(e,o+p)!==c(t,p)){d=!1;break}if(d)return o}return-1}function v(e,t,i,n){i=Number(i)||0;var a=e.length-i;n?(n=Number(n))>a&&(n=a):n=a;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var r=parseInt(t.substr(2*s,2),16);if(isNaN(r))return s;e[i+s]=r}return s}function y(e,t,i,n){return U(B(t,e.length-i),e,i,n)}function _(e,t,i,n){return U(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function w(e,t,i,n){return _(e,t,i,n)}function k(e,t,i,n){return U(z(t),e,i,n)}function x(e,t,i,n){return U(function(e,t){for(var i,n,a,o=[],s=0;s<e.length&&!((t-=2)<0);++s)i=e.charCodeAt(s),n=i>>8,a=i%256,o.push(a),o.push(n);return o}(t,e.length-i),e,i,n)}function S(e,t,i){return 0===t&&i===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,i))}function C(e,t,i){i=Math.min(e.length,i);for(var n=[],a=t;a<i;){var o,s,r,l,c=e[a],u=null,d=c>239?4:c>223?3:c>191?2:1;if(a+d<=i)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[a+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[a+1],s=e[a+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[a+1],s=e[a+2],r=e[a+3],128==(192&o)&&128==(192&s)&&128==(192&r)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&r)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=d}return function(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);var i="",n=0;for(;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=$));return i}(n)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,i){return c(null,e,t,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,i){return function(e,t,i,n){return u(t),t<=0?r(e,t):void 0!==i?"string"==typeof n?r(e,t).fill(i,n):r(e,t).fill(i):r(e,t)}(null,e,t,i)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,a=0,o=Math.min(i,n);a<o;++a)if(e[a]!==t[a]){i=e[a],n=t[a];break}return i<n?-1:n<i?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=l.allocUnsafe(t),a=0;for(i=0;i<e.length;++i){var s=e[i];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,a),a+=s.length}return n},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):function(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,i);case"utf8":case"utf-8":return C(this,t,i);case"ascii":return P(this,t,i);case"latin1":case"binary":return E(this,t,i);case"base64":return S(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,i,n,a){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||i>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=i)return 0;if(n>=a)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var o=a-n,s=i-t,r=Math.min(o,s),c=this.slice(n,a),u=e.slice(t,i),d=0;d<r;++d)if(c[d]!==u[d]){o=c[d],s=u[d];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return g(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return g(this,e,t,i,!1)},l.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var a=this.length-t;if((void 0===i||i>a)&&(i=a),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,i);case"utf8":case"utf-8":return y(this,e,t,i);case"ascii":return _(this,e,t,i);case"latin1":case"binary":return w(this,e,t,i);case"base64":return k(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function P(e,t,i){var n="";i=Math.min(e.length,i);for(var a=t;a<i;++a)n+=String.fromCharCode(127&e[a]);return n}function E(e,t,i){var n="";i=Math.min(e.length,i);for(var a=t;a<i;++a)n+=String.fromCharCode(e[a]);return n}function A(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var a="",o=t;o<i;++o)a+=R(e[o]);return a}function T(e,t,i){for(var n=e.slice(t,i),a="",o=0;o<n.length;o+=2)a+=String.fromCharCode(n[o]+256*n[o+1]);return a}function O(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,i,n,a,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function M(e,t,i,n){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-i,2);a<o;++a)e[i+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function L(e,t,i,n){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-i,4);a<o;++a)e[i+a]=t>>>8*(n?a:3-a)&255}function I(e,t,i,n,a,o){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function N(e,t,i,n,o){return o||I(e,0,i,4),a.write(e,t,i,n,23,4),i+4}function q(e,t,i,n,o){return o||I(e,0,i,8),a.write(e,t,i,n,52,8),i+8}l.prototype.slice=function(e,t){var i,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=l.prototype;else{var a=t-e;i=new l(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+e]}return i},l.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||O(e,t,this.length);for(var n=this[e],a=1,o=0;++o<t&&(a*=256);)n+=this[e+o]*a;return n},l.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||O(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||O(e,t,this.length);for(var n=this[e],a=1,o=0;++o<t&&(a*=256);)n+=this[e+o]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||O(e,t,this.length);for(var n=t,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),a.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),a.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),a.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),a.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,i,n){(e=+e,t|=0,i|=0,n)||D(this,e,t,i,Math.pow(2,8*i)-1,0);var a=1,o=0;for(this[t]=255&e;++o<i&&(a*=256);)this[t+o]=e/a&255;return t+i},l.prototype.writeUIntBE=function(e,t,i,n){(e=+e,t|=0,i|=0,n)||D(this,e,t,i,Math.pow(2,8*i)-1,0);var a=i-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+i},l.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*i-1);D(this,e,t,i,a-1,-a)}var o=0,s=1,r=0;for(this[t]=255&e;++o<i&&(s*=256);)e<0&&0===r&&0!==this[t+o-1]&&(r=1),this[t+o]=(e/s>>0)-r&255;return t+i},l.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*i-1);D(this,e,t,i,a-1,-a)}var o=i-1,s=1,r=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===r&&0!==this[t+o+1]&&(r=1),this[t+o]=(e/s>>0)-r&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,i){return N(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return N(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return q(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return q(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var a,o=n-i;if(this===e&&i<t&&t<n)for(a=o-1;a>=0;--a)e[a+t]=this[a+i];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)e[a+t]=this[a+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+o),t);return o},l.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var o;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o<i;++o)this[o]=e;else{var s=l.isBuffer(e)?e:B(new l(e,n).toString()),r=s.length;for(o=0;o<i-t;++o)this[o+t]=s[o%r]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var i;t=t||1/0;for(var n=e.length,a=null,o=[],s=0;s<n;++s){if((i=e.charCodeAt(s))>55295&&i<57344){if(!a){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),a=i;continue}i=65536+(a-55296<<10|i-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,i,n){for(var a=0;a<n&&!(a+i>=t.length||a>=e.length);++a)t[a+i]=e[a];return a}}).call(t,i(37))},function(e,t,i){"use strict";t.a={data:function(){return{countries:[{id:1,iso:"af",nicename:"Afghanistan",phonecode:93,format:"070 123 4567"},{id:2,iso:"al",nicename:"Albania",phonecode:355,format:"066 123 4567"},{id:3,iso:"dz",nicename:"Algeria",phonecode:213,format:"0551 23 45 67"},{id:4,iso:"as",nicename:"American Samoa",phonecode:1,format:"(684) 733 1234"},{id:5,iso:"ad",nicename:"Andorra",phonecode:376,format:"312 345"},{id:6,iso:"ao",nicename:"Angola",phonecode:244,format:"923 123 456"},{id:7,iso:"ai",nicename:"Anguilla",phonecode:1,format:"(264) 235 1234"},{id:8,iso:"ag",nicename:"Antigua and Barbuda",phonecode:1,format:"(268) 464 1234"},{id:9,iso:"ar",nicename:"Argentina",phonecode:54,format:"9 (11) 1234 567"},{id:10,iso:"am",nicename:"Armenia",phonecode:374,format:"077 123 456"},{id:11,iso:"aw",nicename:"Aruba",phonecode:297,format:"560 1234"},{id:12,iso:"au",nicename:"Australia",phonecode:61,format:"0412 345 678"},{id:13,iso:"at",nicename:"Austria",phonecode:43,format:"0664 123456"},{id:14,iso:"az",nicename:"Azerbaijan",phonecode:994,format:"040 123 45 67"},{id:15,iso:"bs",nicename:"Bahamas",phonecode:1,format:"(242) 359 1234"},{id:16,iso:"bh",nicename:"Bahrain",phonecode:973,format:"3600 1234"},{id:17,iso:"bd",nicename:"Bangladesh",phonecode:880,format:"018 1234 5678"},{id:18,iso:"bb",nicename:"Barbados",phonecode:1,format:"(246) 250 1234"},{id:19,iso:"by",nicename:"Belarus",phonecode:375,format:"029 491 1911"},{id:20,iso:"be",nicename:"Belgium",phonecode:32,format:"0470 123 456"},{id:21,iso:"bz",nicename:"Belize",phonecode:501,format:"622 1234"},{id:22,iso:"bj",nicename:"Benin",phonecode:229,format:"90 123 456"},{id:23,iso:"bm",nicename:"Bermuda",phonecode:1,format:"(441) 370 1234"},{id:24,iso:"bt",nicename:"Bhutan",phonecode:975,format:"17 123 456"},{id:25,iso:"bo",nicename:"Bolivia",phonecode:591,format:"7 123 4567"},{id:26,iso:"ba",nicename:"Bosnia and Herzegovina",phonecode:387,format:"061 123 456"},{id:27,iso:"bw",nicename:"Botswana",phonecode:267,format:"71 123 456"},{id:28,iso:"br",nicename:"Brazil",phonecode:55,format:"(11) 9 1234 5678"},{id:29,iso:"vg",nicename:"British Virgin Islands",phonecode:1,format:"(284) 300 1234"},{id:30,iso:"bn",nicename:"Brunei",phonecode:673,format:"712 3456"},{id:31,iso:"bg",nicename:"Bulgaria",phonecode:359,format:"087 123 4567"},{id:32,iso:"bf",nicename:"Burkina Faso",phonecode:226,format:"70 12 34 56"},{id:33,iso:"bi",nicename:"Burundi",phonecode:257,format:"79 56 12 34"},{id:34,iso:"kh",nicename:"Cambodia",phonecode:855,format:"091 234 567"},{id:35,iso:"cm",nicename:"Cameroon",phonecode:237,format:"6 71 23 45 67"},{id:36,iso:"ca",nicename:"Canada",phonecode:1,format:"(204) 123 4567"},{id:37,iso:"cv",nicename:"Cape Verde",phonecode:238,format:"991 12 34"},{id:38,iso:"ky",nicename:"Cayman Islands",phonecode:1,format:"(345) 323 1234"},{id:39,iso:"cf",nicename:"Central African Republic",phonecode:236,format:"70 01 23 45"},{id:40,iso:"td",nicename:"Chad",phonecode:235,format:"63 01 23 45"},{id:41,iso:"cl",nicename:"Chile",phonecode:56,format:"09 6123 4567"},{id:42,iso:"cn",nicename:"China",phonecode:86,format:"131 2345 6789"},{id:43,iso:"co",nicename:"Colombia",phonecode:57,format:"321 1234567"},{id:44,iso:"km",nicename:"Comoros",phonecode:269,format:"321 23 45"},{id:45,iso:"cd",nicename:"Congo (DRC)",phonecode:243,format:"0991 234 567"},{id:46,iso:"cg",nicename:"Congo (Republic)",phonecode:242,format:"06 123 4567"},{id:47,iso:"ck",nicename:"Cook Islands",phonecode:682,format:"71 234"},{id:48,iso:"cr",nicename:"Costa Rica",phonecode:506,format:"8312 3456"},{id:49,iso:"ci",nicename:"Cote D'Ivoire",phonecode:225,format:"01 23 45 67"},{id:50,iso:"hr",nicename:"Croatia",phonecode:385,format:"091 234 5678"},{id:51,iso:"cu",nicename:"Cuba",phonecode:53,format:"05 1234567"},{id:57,iso:"cy",nicename:"Cyprus",phonecode:357,format:"96 123456"},{id:58,iso:"cz",nicename:"Czech Republic",phonecode:420,format:"601 123 456"},{id:59,iso:"dk",nicename:"Denmark",phonecode:45,format:"20 12 34 56"},{id:60,iso:"dj",nicename:"Djibouti",phonecode:253,format:"77 83 10 01"},{id:61,iso:"dm",nicename:"Dominica",phonecode:1,format:"(767) 225 1234"},{id:62,iso:"do",nicename:"Dominican Republic",phonecode:1,format:"(809) 234 5678"},{id:63,iso:"ec",nicename:"Ecuador",phonecode:593,format:"099 123 4567"},{id:64,iso:"eg",nicename:"Egypt",phonecode:20,format:"0100 123 4567"},{id:65,iso:"sv",nicename:"El Salvador",phonecode:503,format:"7012 3456"},{id:66,iso:"gq",nicename:"Equatorial Guinea",phonecode:240,format:"222 123 456"},{id:67,iso:"er",nicename:"Eritrea",phonecode:291,format:"07 123 456"},{id:68,iso:"ee",nicename:"Estonia",phonecode:372,format:"5123 4567"},{id:69,iso:"et",nicename:"Ethiopia",phonecode:251,format:"091 123 4567"},{id:70,iso:"fk",nicename:"Falkland Islands (Malvinas)",phonecode:500,format:"51234"},{id:71,iso:"fo",nicename:"Faroe Islands",phonecode:298,format:"211234"},{id:72,iso:"fj",nicename:"Fiji",phonecode:679,format:"701 2345"},{id:73,iso:"fi",nicename:"Finland",phonecode:358,format:"041 2345678"},{id:74,iso:"fr",nicename:"France",phonecode:33,format:"06 12 34 56 78"},{id:75,iso:"gf",nicename:"French Guiana",phonecode:594,format:"0694 20 12 34"},{id:76,iso:"pf",nicename:"French Polynesia",phonecode:689,format:"87 12 34 56"},{id:77,iso:"ga",nicename:"Gabon",phonecode:241,format:"06 03 12 34"},{id:78,iso:"gm",nicename:"Gambia",phonecode:220,format:"301 2345"},{id:79,iso:"ge",nicename:"Georgia",phonecode:995,format:"555 12 34 56"},{id:80,iso:"de",nicename:"Germany",phonecode:49,format:"01512 3456789"},{id:81,iso:"gh",nicename:"Ghana",phonecode:233,format:"023 123 4567"},{id:82,iso:"gi",nicename:"Gibraltar",phonecode:350,format:"57123456"},{id:83,iso:"gr",nicename:"Greece",phonecode:30,format:"691 234 5678"},{id:84,iso:"gl",nicename:"Greenland",phonecode:299,format:"22 12 34"},{id:85,iso:"gp",nicename:"Guadeloupe",phonecode:590,format:"690 123 456"},{id:87,iso:"gu",nicename:"Guam",phonecode:1,format:"(671) 300 1234"},{id:88,iso:"gt",nicename:"Guatemala",phonecode:502,format:"5123 4567"},{id:89,iso:"gg",nicename:"Guernsey",phonecode:44,format:"07781 123456"},{id:90,iso:"gn",nicename:"Guinea",phonecode:224,format:"601 12 34 56"},{id:91,iso:"gw",nicename:"Guinea-Bissau",phonecode:245,format:"955 012 345"},{id:92,iso:"gy",nicename:"Guyana",phonecode:592,format:"609 1234"},{id:93,iso:"ht",nicename:"Haiti",phonecode:509,format:"34 10 1234"},{id:94,iso:"hn",nicename:"Honduras",phonecode:504,format:"9123 4567"},{id:95,iso:"hk",nicename:"Hong Kong",phonecode:852,format:"5123 4567"},{id:96,iso:"hu",nicename:"Hungary",phonecode:36,format:"(20) 123 4567"},{id:97,iso:"is",nicename:"Iceland",phonecode:354,format:"611 1234"},{id:98,iso:"in",nicename:"India",phonecode:91,format:"099876 54321"},{id:99,iso:"id",nicename:"Indonesia",phonecode:62,format:"0812 345 678"},{id:100,iso:"ir",nicename:"Iran",phonecode:98,format:"0912 345 6789"},{id:101,iso:"iq",nicename:"Iraq",phonecode:964,format:"0791 234 5678"},{id:102,iso:"ie",nicename:"Ireland",phonecode:353,format:"085 012 3456"},{id:103,iso:"im",nicename:"Isle of Man",phonecode:44,format:"07924 123456"},{id:104,iso:"il",nicename:"Israel",phonecode:972,format:"050 123 4567"},{id:105,iso:"it",nicename:"Italy",phonecode:39,format:"312 345 6789"},{id:106,iso:"jm",nicename:"Jamaica",phonecode:1,format:"(876) 210 1234"},{id:107,iso:"jp",nicename:"Japan",phonecode:81,format:"090 1234 5678"},{id:108,iso:"je",nicename:"Jersey",phonecode:44,format:"07797 123456"},{id:109,iso:"jo",nicename:"Jordan",phonecode:962,format:"07 9012 3456"},{id:110,iso:"kz",nicename:"Kazakhstan",phonecode:7,format:"(771) 123 4567"},{id:111,iso:"ke",nicename:"Kenya",phonecode:254,format:"0712 123456"},{id:112,iso:"ki",nicename:"Kiribati",phonecode:686,format:"72012345"},{id:241,iso:"xk",nicename:"Kosovo",phonecode:383,format:"044 1234567"},{id:113,iso:"kw",nicename:"Kuwait",phonecode:965,format:"500 12345"},{id:114,iso:"kg",nicename:"Kyrgyzstan",phonecode:996,format:"0700 123 456"},{id:115,iso:"la",nicename:"Laos",phonecode:856,format:"020 23 123 456"},{id:116,iso:"lv",nicename:"Latvia",phonecode:371,format:"21 234 567"},{id:117,iso:"lb",nicename:"Lebanon",phonecode:961,format:"71 123 456"},{id:118,iso:"ls",nicename:"Lesotho",phonecode:266,format:"5012 3456"},{id:119,iso:"lr",nicename:"Liberia",phonecode:231,format:"077 012 3456"},{id:120,iso:"ly",nicename:"Libya",phonecode:218,format:"091 2345678"},{id:121,iso:"li",nicename:"Liechtenstein",phonecode:423,format:"660 234 567"},{id:122,iso:"lt",nicename:"Lithuania",phonecode:370,format:"612 345 67"},{id:123,iso:"lu",nicename:"Luxembourg",phonecode:352,format:"628 123 456"},{id:124,iso:"mo",nicename:"Macao",phonecode:853,format:"6612 3456"},{id:125,iso:"mk",nicename:"Macedonia (FYROM)",phonecode:389,format:"072 345 678"},{id:126,iso:"mg",nicename:"Madagascar",phonecode:261,format:"032 12 345 67"},{id:127,iso:"mw",nicename:"Malawi",phonecode:265,format:"0991 23 45 67"},{id:128,iso:"my",nicename:"Malaysia",phonecode:60,format:"012 345 6789"},{id:129,iso:"mv",nicename:"Maldives",phonecode:960,format:"771 2345"},{id:130,iso:"ml",nicename:"Mali",phonecode:223,format:"65 01 23 45"},{id:131,iso:"mt",nicename:"Malta",phonecode:356,format:"9696 1234"},{id:132,iso:"mh",nicename:"Marshall Islands",phonecode:692,format:"235 1234"},{id:133,iso:"mq",nicename:"Martinique",phonecode:596,format:"0696 20 12 34"},{id:134,iso:"mr",nicename:"Mauritania",phonecode:222,format:"22 12 34 56"},{id:135,iso:"mu",nicename:"Mauritius",phonecode:230,format:"5251 2345"},{id:136,iso:"yt",nicename:"Mayotte",phonecode:269,format:"0639 12 34 56"},{id:137,iso:"mx",nicename:"Mexico",phonecode:52,format:"222 123 4567"},{id:138,iso:"fm",nicename:"Micronesia",phonecode:691,format:"350 1234"},{id:139,iso:"md",nicename:"Moldova",phonecode:373,format:"0621 12 345"},{id:140,iso:"mc",nicename:"Monaco",phonecode:377,format:"06 12 34 56 78"},{id:141,iso:"mn",nicename:"Mongolia",phonecode:976,format:"8812 3456"},{id:142,iso:"me",nicename:"Montenegro",phonecode:382,format:"067 622 901"},{id:143,iso:"ms",nicename:"Montserrat",phonecode:1,format:"(664) 492 3456"},{id:144,iso:"ma",nicename:"Morocco",phonecode:212,format:"0650 123456"},{id:145,iso:"mz",nicename:"Mozambique",phonecode:258,format:"82 123 4567"},{id:146,iso:"mm",nicename:"Myanmar",phonecode:95,format:"09 212 3456"},{id:147,iso:"na",nicename:"Namibia",phonecode:264,format:"081 123 4567"},{id:149,iso:"np",nicename:"Nepal",phonecode:977,format:"984 1234567"},{id:150,iso:"nl",nicename:"Netherlands",phonecode:31,format:"06 12345678"},{id:151,iso:"nc",nicename:"New Caledonia",phonecode:687,format:"75 12 34"},{id:152,iso:"nz",nicename:"New Zealand",phonecode:64,format:"021 123 4567"},{id:153,iso:"ni",nicename:"Nicaragua",phonecode:505,format:"8123 4567"},{id:154,iso:"ne",nicename:"Niger",phonecode:227,format:"93 12 34 56"},{id:155,iso:"ng",nicename:"Nigeria",phonecode:234,format:"0802 123 4567"},{id:156,iso:"nu",nicename:"Niue",phonecode:683,format:"1234"},{id:157,iso:"nf",nicename:"Norfolk Island",phonecode:672,format:"3 81234"},{id:160,iso:"no",nicename:"Norway",phonecode:47,format:"406 12 345"},{id:161,iso:"om",nicename:"Oman",phonecode:968,format:"9212 3456"},{id:162,iso:"pk",nicename:"Pakistan",phonecode:92,format:"0301 2345678"},{id:163,iso:"pw",nicename:"Palau",phonecode:680,format:"620 1234"},{id:164,iso:"ps",nicename:"Palestine",phonecode:970,format:"0599 123 456"},{id:165,iso:"pa",nicename:"Panama",phonecode:507,format:"6001 2345"},{id:166,iso:"pg",nicename:"Papua New Guinea",phonecode:675,format:"681 2345"},{id:167,iso:"py",nicename:"Paraguay",phonecode:595,format:"0961 456789"},{id:168,iso:"pe",nicename:"Peru",phonecode:51,format:"912 345 678"},{id:169,iso:"ph",nicename:"Philippines",phonecode:63,format:"0905 123 4567"},{id:170,iso:"pl",nicename:"Poland",phonecode:48,format:"512 345 678"},{id:171,iso:"pt",nicename:"Portugal",phonecode:351,format:"912 345 678"},{id:172,iso:"pr",nicename:"Puerto Rico",phonecode:1,format:"(787) 234 5678"},{id:173,iso:"qa",nicename:"Qatar",phonecode:974,format:"3312 3456"},{id:174,iso:"re",nicename:"Réunion",phonecode:262,format:"639 123456"},{id:175,iso:"ro",nicename:"Romania",phonecode:40,format:"0712 345 678"},{id:176,iso:"ru",nicename:"Russia",phonecode:7,format:"(912) 123 4567",priority:1},{id:177,iso:"rw",nicename:"Rwanda",phonecode:250,format:"0720 123 456"},{id:180,iso:"kn",nicename:"Saint Kitts and Nevis",phonecode:1,format:"(869) 765 2917"},{id:181,iso:"lc",nicename:"Saint Lucia",phonecode:1,format:"(758) 284 5678"},{id:184,iso:"vc",nicename:"Saint Vincent and the Grenadines",phonecode:1,format:"(784) 430 1234"},{id:185,iso:"ws",nicename:"Samoa",phonecode:684,format:"601234"},{id:186,iso:"sm",nicename:"San Marino",phonecode:378,format:"66 66 12 12"},{id:187,iso:"st",nicename:"Sao Tome and Principe",phonecode:239,format:"981 2345"},{id:188,iso:"sa",nicename:"Saudi Arabia",phonecode:966,format:"051 234 5678"},{id:189,iso:"sn",nicename:"Senegal",phonecode:221,format:"70 123 45 67"},{id:190,iso:"rs",nicename:"Serbia",phonecode:381,format:"060 1234567"},{id:191,iso:"sc",nicename:"Seychelles",phonecode:248,format:"2 510 123"},{id:192,iso:"sl",nicename:"Sierra Leone",phonecode:232,format:"(025) 123456"},{id:193,iso:"sg",nicename:"Singapore",phonecode:65,format:"8123 4567"},{id:195,iso:"sk",nicename:"Slovakia",phonecode:421,format:"0912 123 456"},{id:196,iso:"si",nicename:"Slovenia",phonecode:386,format:"031 234 567"},{id:197,iso:"sb",nicename:"Solomon Islands",phonecode:677,format:"74 21234"},{id:198,iso:"so",nicename:"Somalia",phonecode:252,format:"7 1123456"},{id:199,iso:"za",nicename:"South Africa",phonecode:27,format:"071 123 4567"},{id:200,iso:"kr",nicename:"South Korea",phonecode:82,format:"010 1234 567"},{id:201,iso:"ss",nicename:"South Sudan",phonecode:211,format:"0977 123 456"},{id:202,iso:"es",nicename:"Spain",phonecode:34,format:"612 34 56 78"},{id:203,iso:"lk",nicename:"Sri Lanka",phonecode:94,format:"071 234 5678"},{id:204,iso:"sd",nicename:"Sudan",phonecode:249,format:"091 123 1234"},{id:205,iso:"sr",nicename:"Suriname",phonecode:597,format:"741 2345"},{id:207,iso:"sz",nicename:"Swaziland",phonecode:268,format:"7612 3456"},{id:208,iso:"se",nicename:"Sweden",phonecode:46,format:"070 123 45 67"},{id:209,iso:"ch",nicename:"Switzerland",phonecode:41,format:"078 123 45 67"},{id:210,iso:"sy",nicename:"Syria",phonecode:963,format:"0944 567 890"},{id:211,iso:"tw",nicename:"Taiwan",phonecode:886,format:"0912 345 678"},{id:212,iso:"tj",nicename:"Tajikistan",phonecode:992,format:"917 123 456"},{id:213,iso:"tz",nicename:"Tanzania",phonecode:255,format:"740 123 456"},{id:214,iso:"th",nicename:"Thailand",phonecode:66,format:"081 234 5678"},{id:215,iso:"tl",nicename:"Timor-Leste",phonecode:670,format:"7721 2345"},{id:216,iso:"tg",nicename:"Togo",phonecode:228,format:"90 11 23 45"},{id:218,iso:"to",nicename:"Tonga",phonecode:676,format:"771 5123"},{id:219,iso:"tt",nicename:"Trinidad and Tobago",phonecode:868,format:"(868) 291 1234"},{id:220,iso:"tn",nicename:"Tunisia",phonecode:216,format:"20 123 456"},{id:221,iso:"tr",nicename:"Turkey",phonecode:90,format:"0501 234 56 78"},{id:222,iso:"tm",nicename:"Turkmenistan",phonecode:7370,format:"8 66 123456"},{id:223,iso:"tc",nicename:"Turks and Caicos Islands",phonecode:1,format:"(649) 231 1234"},{id:224,iso:"tv",nicename:"Tuvalu",phonecode:688,format:"901234"},{id:225,iso:"ug",nicename:"Uganda",phonecode:256,format:"0712 345678"},{id:226,iso:"ua",nicename:"Ukraine",phonecode:380,format:"039 123 4567"},{id:227,iso:"ae",nicename:"United Arab Emirates",phonecode:971,format:"050 123 4567"},{id:228,iso:"gb",nicename:"United Kingdom",phonecode:44,format:"07400 123456",priority:1},{id:229,iso:"us",nicename:"United States",phonecode:1,format:"(201) 555 0123",priority:1},{id:230,iso:"uy",nicename:"Uruguay",phonecode:598,format:"094 231 234"},{id:231,iso:"uz",nicename:"Uzbekistan",phonecode:998,format:"8 91 234 56 78"},{id:232,iso:"vu",nicename:"Vanuatu",phonecode:678,format:"591 2345"},{id:234,iso:"ve",nicename:"Venezuela",phonecode:58,format:"0412 1234567"},{id:235,iso:"vn",nicename:"Vietnam",phonecode:84,format:"091 234 56 78"},{id:236,iso:"vi",nicename:"Virgin Islands, U.S.",phonecode:1,format:"(340) 642 1234"},{id:237,iso:"ye",nicename:"Yemen",phonecode:967,format:"0712 345 678"},{id:238,iso:"zm",nicename:"Zambia",phonecode:260,format:"095 5123456"},{id:239,iso:"zw",nicename:"Zimbabwe",phonecode:263,format:"071 123 4567"},{id:240,iso:"ax",nicename:"Åland Islands",phonecode:358,format:"041 2345678"}]}}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i=function(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var a=(s=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=n.sources.map(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"});return[i].concat(o).concat([a]).join("\n")}var s;return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(n[o]=!0)}for(a=0;a<e.length;a++){var s=e[a];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},function(e,t,i){var n=i(90)(i(691),i(692),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";var n=i(655);t.a={mixins:[n.a],data:function(){return{}},methods:{getInitEntitySettings:function(e){var t={payments:{paymentLinks:{enabled:this.$root.settings.payments.paymentLinks.enabled,changeBookingStatus:this.$root.settings.payments.paymentLinks.changeBookingStatus,redirectUrl:null},onSite:this.$root.settings.payments.onSite,wc:{enabled:this.$root.settings.payments.wc.enabled,productId:this.$root.settings.payments.wc.productId},payPal:{enabled:this.$root.settings.payments.payPal.enabled},stripe:{enabled:this.$root.settings.payments.stripe.enabled},mollie:{enabled:this.$root.settings.payments.mollie.enabled},square:{enabled:this.$root.settings.payments.square.enabled},razorpay:{enabled:this.$root.settings.payments.razorpay.enabled}}};switch(e){case"service":t.general={minimumTimeRequirementPriorToCanceling:null,minimumTimeRequirementPriorToRescheduling:null,redirectUrlAfterAppointment:null},t.general.defaultAppointmentStatus=null,t.general.numberOfDaysAvailableForBooking=0,t.general.minimumTimeRequirementPriorToBooking=null,t.zoom={enabled:this.$root.settings.zoom.enabled},t.lessonSpace={enabled:this.$root.settings.lessonSpace.enabled},t.googleMeet={enabled:this.$root.settings.googleCalendar.enabled&&this.$root.settings.googleCalendar.googleMeetEnabled},t.microsoftTeams={enabled:this.$root.settings.outlookCalendar.enabled&&this.$root.settings.outlookCalendar.microsoftTeamsEnabled};break;case"event":t.general={minimumTimeRequirementPriorToCanceling:null,redirectUrlAfterAppointment:null},t.zoom={enabled:this.$root.settings.zoom.enabled},t.lessonSpace={enabled:this.$root.settings.lessonSpace.enabled},t.googleMeet={enabled:this.$root.settings.googleCalendar.enabled&&this.$root.settings.googleCalendar.googleMeetEnabled},t.microsoftTeams={enabled:this.$root.settings.outlookCalendar.enabled&&this.$root.settings.outlookCalendar.microsoftTeamsEnabled},t.waitingList={enabled:!1,addingMethod:this.$root.settings.appointments.waitingListEvents.addingMethod,maxCapacity:1,maxExtraPeopleEnabled:!1,maxExtraPeople:0};break;case"package":t.general={redirectUrlAfterAppointment:null}}return t},setEntitySettings:function(e,t){e.settings=null!==e.settings?JSON.parse(e.settings):this.getInitEntitySettings(t),this.addMissingObjectProperties(e.settings,this.getInitEntitySettings(t))},updateSettings:function(e){var t=this;if(!this.$root.clonedSettings.payments.onSite||this.$root.clonedSettings.payments.stripe.enabled||this.$root.clonedSettings.payments.payPal.enabled||this.$root.clonedSettings.payments.wc.enabled||this.$root.clonedSettings.payments.mollie.enabled||this.$root.clonedSettings.payments.square.enabled||this.$root.clonedSettings.payments.razorpay.enabled){if(!1===this.$root.clonedSettings.payments.wc.enabled&&!1===this.$root.clonedSettings.payments.mollie.enabled&&null!==e){var i=JSON.parse(e);"payments"in i||(i.payments={}),["onSite","stripe","payPal","wc","mollie","razorpay","square"].forEach(function(e){e in i.payments||(i.payments[e]=t.$root.clonedSettings.payments[e])}),i.payments.wc=this.$root.clonedSettings.payments.wc,i.payments.mollie=this.$root.clonedSettings.payments.mollie,this.$root.clonedSettings.payments.onSite||(i.payments.onSite=this.$root.clonedSettings.payments.onSite),this.$root.clonedSettings.payments.square||(i.payments.square=this.$root.clonedSettings.payments.square),this.$root.clonedSettings.payments.payPal.enabled||(i.payments.payPal=this.$root.clonedSettings.payments.payPal),this.$root.clonedSettings.payments.stripe.enabled||(i.payments.stripe=this.$root.clonedSettings.payments.stripe),this.$root.clonedSettings.payments.razorpay.enabled&&i.payments.razorpay||(i.payments.razorpay=this.$root.clonedSettings.payments.razorpay),("onSite"in i.payments?i.payments.onSite&&this.$root.clonedSettings.payments.onSite:this.$root.clonedSettings.payments.onSite)&&("payPal"in i.payments?i.payments.payPal.enabled&&this.$root.clonedSettings.payments.payPal.enabled:this.$root.clonedSettings.payments.payPal.enabled)&&("stripe"in i.payments?i.payments.stripe.enabled&&this.$root.clonedSettings.payments.stripe.enabled:this.$root.clonedSettings.payments.stripe.enabled)&&("mollie"in i.payments?i.payments.mollie.enabled&&this.$root.clonedSettings.payments.mollie.enabled:this.$root.clonedSettings.payments.mollie.enabled)&&("razorpay"in i.payments?i.payments.razorpay.enabled&&this.$root.clonedSettings.payments.razorpay.enabled:this.$root.clonedSettings.payments.razorpay.enabled)&&("square"in i.payments?i.payments.square.enabled&&this.$root.clonedSettings.payments.square.enabled:this.$root.clonedSettings.payments.square.enabled)&&(i.payments=this.$root.clonedSettings.payments),e=JSON.stringify(i)}if(!0===this.$root.clonedSettings.payments.wc.enabled&&null!==e){var n=JSON.parse(e);"payments"in n||(n.payments={}),n.payments.onSite=this.$root.clonedSettings.payments.onSite,n.payments.stripe=this.$root.clonedSettings.payments.stripe,n.payments.payPal=this.$root.clonedSettings.payments.payPal,n.payments.mollie=this.$root.clonedSettings.payments.mollie,n.payments.square=this.$root.clonedSettings.payments.square,n.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(n)}if(!0===this.$root.clonedSettings.payments.mollie.enabled&&null!==e){var a=JSON.parse(e);"payments"in a||(a.payments={}),this.$root.clonedSettings.payments.onSite||(a.payments.onSite=this.$root.clonedSettings.payments.onSite,a.payments.mollie=this.$root.clonedSettings.payments.mollie),a.payments.stripe=this.$root.clonedSettings.payments.stripe,a.payments.payPal=this.$root.clonedSettings.payments.payPal,a.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(a)}if(!0===this.$root.clonedSettings.payments.square.enabled&&null!==e){var o=JSON.parse(e);"payments"in o||(o.payments={}),this.$root.clonedSettings.payments.onSite||(o.payments.onSite=this.$root.clonedSettings.payments.onSite,o.payments.square=this.$root.clonedSettings.payments.square),o.payments.stripe=this.$root.clonedSettings.payments.stripe,o.payments.payPal=this.$root.clonedSettings.payments.payPal,o.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(o)}"oliverPos"in this.$root.shortcodeData&&this.$root.shortcodeData.oliverPos&&((e=JSON.parse(e)).payments.onSite=!0,e.payments.stripe.enabled=!1,e.payments.payPal.enabled=!1,e.payments.razorpay.enabled=!1,e=JSON.stringify(e)),this.replaceExistingObjectProperties(this.$root.settings,null!==e?JSON.parse(e):this.$root.clonedSettings)}},prepareBookableEntityPaymentsForSave:function(e){var t=this,i={};return e&&"payments"in e&&("onSite"in e.payments&&e.payments.onSite!==this.$root.settings.payments.onSite&&(i.onSite=e.payments.onSite),["stripe","payPal","razorpay","mollie","square"].forEach(function(n){n in e.payments&&e.payments[n].enabled!==t.$root.settings.payments[n].enabled&&(i[n]=e.payments[n])}),"wc"in e.payments&&(e.payments.wc.enabled!==this.$root.settings.payments.wc.enabled||"productId"in e.payments.wc&&e.payments.wc.productId!==this.$root.settings.payments.wc.productId)&&(i.wc=e.payments.wc),i.paymentLinks=e.payments.paymentLinks),e.payments=i,e},prepareServiceSettingsForSave:function(e){var t=JSON.parse(JSON.stringify(e.settings));return"general"in t&&(t.general.redirectUrlAfterAppointment||delete t.general.redirectUrlAfterAppointment,t.general.defaultAppointmentStatus||delete t.general.defaultAppointmentStatus,(t.general.minimumTimeRequirementPriorToBooking||this.$root.settings.general.minimumTimeRequirementPriorToBooking)&&""!==t.general.minimumTimeRequirementPriorToBooking||delete t.general.minimumTimeRequirementPriorToBooking,(t.general.minimumTimeRequirementPriorToCanceling||this.$root.settings.general.minimumTimeRequirementPriorToCanceling)&&""!==t.general.minimumTimeRequirementPriorToCanceling||delete t.general.minimumTimeRequirementPriorToCanceling,(t.general.minimumTimeRequirementPriorToRescheduling||this.$root.settings.general.minimumTimeRequirementPriorToRescheduling)&&""!==t.general.minimumTimeRequirementPriorToRescheduling||delete t.general.minimumTimeRequirementPriorToRescheduling,t.general.numberOfDaysAvailableForBooking||delete t.general.numberOfDaysAvailableForBooking,0===Object.keys(t.general).length&&delete t.general),0===Object.keys(t).length&&(t=null),t}},computed:{}}},,function(e,t,i){"use strict";var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=r(i(713)),o=r(i(731)),s=r(i(732));function r(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.progress=0,this.isPending=!1,this.errors=new o.default,["post","patch","put","delete"].forEach(function(e){t[e]=function(i,n){return t.submit(e,i,n)}})}return n(e,[{key:"submit",value:function(t,i){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.toLowerCase(),this.hasFiles(a)&&(a=(0,s.default)(a),"post"!==t&&(a.append("_method",t.toUpperCase()),t="post")),this.progress=0,this.errors.clear(),this.isPending=!0,new Promise(function(o,s){e.defaults.axios[t](i,a,n.config()).then(function(e){o(e.data)}).catch(function(e){n.handleError(e),s(e)}).then(function(){return n.isPending=!1})})}},{key:"hasFiles",value:function(e){for(var t in e)if(this.fileIsPresent(e[t]))return!0;return!1}},{key:"fileIsPresent",value:function(e){return e instanceof File||e instanceof Array&&e.some(function(e){return e instanceof File})}},{key:"save",value:function(e,t){var i="post";return t.hasOwnProperty("id")&&(i="patch",e=this.urlToPatchResource(e,t)),this[i](e,t)}},{key:"urlToPatchResource",value:function(e,t){return e.replace(/\/+$/,"")+"/"+t.id}},{key:"config",value:function(){var e=this;return{onUploadProgress:function(t){e.progress=Math.round(100*t.loaded/t.total)}}}},{key:"handleError",value:function(e){if(e.response&&422===e.response.status){var t=e.response.data.hasOwnProperty("errors")?e.response.data.errors:e.response.data;this.errors.set(t)}}}]),e}();l.defaults={axios:a.default},e.exports=l},function(e,t,i){var n="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a=i(702),o={},s=n&&(document.head||document.getElementsByTagName("head")[0]),r=null,l=0,c=!1,u=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e){for(var t=0;t<e.length;t++){var i=e[t],n=o[i.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a](i.parts[a]);for(;a<i.parts.length;a++)n.parts.push(g(i.parts[a]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(g(i.parts[a]));o[i.id]={id:i.id,refs:1,parts:s}}}}function m(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function g(e){var t,i,n=document.querySelector("style["+p+'~="'+e.id+'"]');if(n){if(c)return u;n.parentNode.removeChild(n)}if(f){var a=l++;n=r||(r=m()),t=y.bind(null,n,a,!1),i=y.bind(null,n,a,!0)}else n=m(),t=function(e,t){var i=t.css,n=t.media,a=t.sourceMap;n&&e.setAttribute("media",n);d.ssrId&&e.setAttribute(p,t.id);a&&(i+="\n/*# sourceURL="+a.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");if(e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}.bind(null,n),i=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else i()}}e.exports=function(e,t,i,n){c=i,d=n||{};var s=a(e,t);return h(s),function(t){for(var i=[],n=0;n<s.length;n++){var r=s[n];(l=o[r.id]).refs--,i.push(l)}t?h(s=a(e,t)):s=[];for(n=0;n<i.length;n++){var l;if(0===(l=i[n]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}};var b,v=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function y(e,t,i,n){var a=i?"":n.css;if(e.styleSheet)e.styleSheet.cssText=v(t,a);else{var o=document.createTextNode(a),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(675);t.default={mixins:[n.a],template:"#phone-input",props:{savedPhone:{default:"",type:String},disabled:{default:!1,type:Boolean},countryPhoneIso:null,dropdownClass:{type:String,default:""}},data:function(){return{input:"",phone:"",value:this.$root.settings.general.phoneDefaultCountryCode,format:""}},mounted:function(){""!==this.value?this.savedPhone?this.fillInputWithSavedPhone():this.formatPhoneNumber():this.savedPhone&&this.fillInputWithSavedPhone()},methods:{onClear:function(){this.value="",this.phone="",this.$emit("phoneFormatted",this.phone,this.value)},changeCountry:function(){""!==this.value&&""!==this.input&&(this.input=""),this.formatPhoneNumber()},formatPhoneNumber:function(){var e=this;if(""!==this.value){var t=this.countries.find(function(t){return t.iso===e.value});this.format=!0===this.disabled?"":t.format}var i=this.input;if("ar"===window.localeLanguage[0]&&(i=i.replace(/[٠-٩]/g,function(e){return"٠١٢٣٤٥٦٧٨٩".indexOf(e)})),""!==i){if(i.startsWith("+")){var n=parseInt(i.slice(1)),a=this.countries.filter(function(e){return e.phonecode===n});if(a.length){var o=null;1===n?o=a.find(function(e){return 229===e.id}):44===n?o=a.find(function(e){return 228===e.id}):7===n&&(o=a.find(function(e){return 176===e.id})),void 0!==o&&null!==o||(o=a[0]),this.value=o.iso}this.phone=i}else this.phone=void 0!==t?!0===i.startsWith("0")&&"it"!==this.countryPhoneIso?"+"+t.phonecode+i.slice(1).replace(/\D/g,""):"+"+t.phonecode+i.replace(/\D/g,""):i;this.$emit("phoneFormatted",this.phone,this.value)}else this.phone=i,this.$emit("phoneFormatted",this.phone,this.value)},fillInputWithSavedPhone:function(){var e=this,t=null;null!==this.countryPhoneIso&&void 0===(t=this.countries.find(function(t){return t.iso===e.countryPhoneIso}))&&(t=null);for(var i=1;null===t&&i<5;)t=void 0!==(t=this.countries.find(function(t){return t.phonecode===parseInt(e.savedPhone.substr(1,i))&&1===t.priority}))?t:null,i++;if(!t)for(i=1;null===t&&i<5;)t=void 0!==(t=this.countries.find(function(t){return t.phonecode===parseInt(e.savedPhone.substr(1,i))}))?t:null,i++;null!==t&&(this.value=t.iso,this.input=this.savedPhone.replace("+"+t.phonecode,""),this.input=t.format.startsWith("0")?"0"+this.input:this.input)}},watch:{input:function(){this.formatPhoneNumber()}},components:{}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-input",{attrs:{placeholder:e.format,disabled:e.disabled,type:"tel",name:"tel",autocomplete:"tel",clearable:""},on:{clear:e.onClear},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[i("el-select",{class:"am-selected-flag am-selected-flag-"+e.value,attrs:{slot:"prepend",placeholder:"","popper-class":e.$root.settings.customization.forms?e.dropdownClass:"",disabled:e.disabled},on:{change:e.changeCountry},slot:"prepend",model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.countries,function(t){return i("el-option",{key:t.id,attrs:{value:t.iso,label:" "}},[i("span",{class:"am-flag am-flag-"+t.iso}),e._v(" "),i("span",{staticClass:"am-phone-input-nicename"},[e._v(e._s(t.nicename))]),e._v(" "),i("span",{staticClass:"am-phone-input-phonecode"},[e._v("+"+e._s(t.phonecode))])])}),1)],1)},staticRenderFns:[]}},,function(e,t,i){var n=i(674),a=n.Buffer;function o(e,t){for(var i in e)t[i]=e[i]}function s(e,t,i){return a(e,t,i)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(a,s),s.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,i)},s.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},function(e,t,i){"use strict";var n=i(656),a=i(717),o=i(719),s=i(720),r=i(721),l=i(688),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||i(722);e.exports=function(e){return new Promise(function(t,u){var d=e.data,p=e.headers;n.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||r(e.url)||(f=new window.XDomainRequest,h="onload",m=!0,f.onprogress=function(){},f.ontimeout=function(){}),e.auth){var g=e.auth.username||"",b=e.auth.password||"";p.Authorization="Basic "+c(g+":"+b)}if(f.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f[h]=function(){if(f&&(4===f.readyState||m)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:i,config:e,request:f};a(t,u,n),f=null}},f.onerror=function(){u(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},n.isStandardBrowserEnv()){var v=i(723),y=(e.withCredentials||r(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}if("setRequestHeader"in f&&n.forEach(p,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)}),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),u(e),f=null)}),void 0===d&&(d=null),f.send(d)})}},function(e,t,i){"use strict";var n=i(718);e.exports=function(e,t,i,a,o){var s=new Error(e);return n(s,t,i,a,o)}},function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,i){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={street_number:"short_name",route:"long_name",locality:"long_name",administrative_area_level_1:"short_name",administrative_area_level_2:"county",country:"long_name",postal_code:"short_name"},a=["locality","administrative_area_level_3"],o=["locality","sublocality","postal_code","country","administrative_area_level_1","administrative_area_level_2"];t.default={name:"VueGoogleAutocomplete",props:{id:{type:String,required:!0},classname:String,placeholder:{type:String,default:"Start typing"},types:{type:String,default:"address"},country:{type:[String,Array],default:null},enableGeolocation:{type:Boolean,default:!1},geolocationOptions:{type:Object,default:null}},data:function(){return{autocomplete:null,autocompleteText:"",geolocation:{geocoder:null,loc:null,position:null}}},watch:{autocompleteText:function(e,t){this.$emit("inputChange",{newVal:e,oldVal:t},this.id)},country:function(e,t){this.autocomplete.setComponentRestrictions({country:null===this.country?[]:this.country})}},mounted:function(){var e={};this.types&&(e.types=[this.types]),this.country&&(e.componentRestrictions={country:this.country}),this.autocomplete=new google.maps.places.Autocomplete(document.getElementById(this.id),e),this.autocomplete.addListener("place_changed",this.onPlaceChanged)},methods:{onPlaceChanged:function(){var e=this.autocomplete.getPlace();e.geometry?void 0!==e.address_components&&(this.$emit("placechanged",this.formatResult(e),e,this.id),this.autocompleteText=document.getElementById(this.id).value,this.onChange()):this.$emit("no-results-found",e,this.id)},onFocus:function(){this.biasAutocompleteLocation(),this.$emit("focus")},onBlur:function(){this.$emit("blur")},onChange:function(){this.$emit("change",this.autocompleteText)},onKeyPress:function(e){this.$emit("keypress",e)},onKeyUp:function(e){this.$emit("keyup",e)},clear:function(){this.autocompleteText=""},focus:function(){this.$refs.autocomplete.focus()},blur:function(){this.$refs.autocomplete.blur()},update:function(e){this.autocompleteText=e},updateCoordinates:function(e){var t=this;(e||e.lat||e.lng)&&(this.geolocation.geocoder||(this.geolocation.geocoder=new google.maps.Geocoder),this.geolocation.geocoder.geocode({location:e},function(e,i){"OK"===i?(e=t.filterGeocodeResultTypes(e))[0]?(t.$emit("placechanged",t.formatResult(e[0]),e[0],t.id),t.update(e[0].formatted_address)):t.$emit("error","no result for provided coordinates"):t.$emit("error","error getting address from coords")}))},geolocate:function(){var e=this;this.updateGeolocation(function(t,i){e.updateCoordinates(t)})},updateGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(navigator.geolocation){var i={};this.geolocationOptions&&Object.assign(i,this.geolocationOptions),navigator.geolocation.getCurrentPosition(function(i){var n={lat:i.coords.latitude,lng:i.coords.longitude};e.geolocation.loc=n,e.geolocation.position=i,t&&t(n,i)},function(t){e.$emit("error","Cannot get Coordinates from navigator",t)},i)}},biasAutocompleteLocation:function(){var e=this;this.enableGeolocation&&this.updateGeolocation(function(t,i){var n=new google.maps.Circle({center:t,radius:i.coords.accuracy});e.autocomplete.setBounds(n.getBounds())})},formatResult:function(e){for(var t={},i=0;i<e.address_components.length;i++){var a=e.address_components[i].types[0];if(n[a]){var o=e.address_components[i][n[a]];t[a]=o}}return t.latitude=e.geometry.location.lat(),t.longitude=e.geometry.location.lng(),t},filterGeocodeResultTypes:function(e){if(!e||!this.types)return e;var t=[],i=[this.types];i.includes("(cities)")&&(i=i.concat(a)),i.includes("(regions)")&&(i=i.concat(o));var n=!0,s=!1,r=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done);n=!0){var u=l.value,d=!0,p=!1,f=void 0;try{for(var h,m=u.types[Symbol.iterator]();!(d=(h=m.next()).done);d=!0){var g=h.value;if(i.includes(g)){t.push(u);break}}}catch(e){p=!0,f=e}finally{try{!d&&m.return&&m.return()}finally{if(p)throw f}}}}catch(e){s=!0,r=e}finally{try{!n&&c.return&&c.return()}finally{if(s)throw r}}return t}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"model",rawName:"v-model",value:e.autocompleteText,expression:"autocompleteText"}],ref:"autocomplete",class:e.classname,attrs:{type:"text",id:e.id,placeholder:e.placeholder},domProps:{value:e.autocompleteText},on:{focus:function(t){return e.onFocus()},blur:function(t){return e.onBlur()},change:e.onChange,keypress:e.onKeyPress,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.autocompleteText=t.target.value)}}})},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(694),i(695),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(91),a=i(336),o=i(654);t.default={mixins:[n.a,a.a,o.a],props:["oldCustomize","appointmentsApproved","appointmentsPending","employeesTotal","customersTotal","locationsTotal","packagesTotal","resourcesTotal","servicesTotal","categoriesTotal","financeTotal","addNewTaxBtnDisplay","addNewCouponBtnDisplay","addNewCustomFieldBtnDisplay","locations","categories","bookableType","params","fetched"],methods:{showMainCustomize:function(){this.$emit("showMainCustomize",null)},showDialogCustomer:function(){this.$emit("newCustomerBtnClicked",null)},showDialogAppointment:function(){this.$emit("newAppointmentBtnClicked",null)},showDialogEvent:function(){this.$emit("newEventBtnClicked",null)},showDialogEmployee:function(){this.$emit("newEmployeeBtnClicked")},showDialogLocation:function(){this.$emit("newLocationBtnClicked")},showDialogService:function(){this.$emit("newServiceBtnClicked")},showDialogPackage:function(){this.$emit("newPackageBtnClicked")},showDialogPackageBooking:function(){this.$emit("newPackageBookingBtnClicked")},showDialogResource:function(){this.$emit("newResourceBtnClicked")},showDialogTax:function(){this.$emit("newTaxBtnClicked")},showDialogCoupon:function(){this.$emit("newCouponBtnClicked")},showDialogCustomFields:function(){this.$emit("newCustomFieldBtnClicked")},selectAllInCategory:function(e){this.$emit("selectAllInCategory",e)},changeFilter:function(){this.$emit("changeFilter")}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"am-page-header am-section"},[i("el-row",{attrs:{type:"wpamelia-calendar"===e.$router.currentRoute.name?"":"flex",align:"middle"}},[i("el-col",{attrs:{span:"wpamelia-calendar"===e.$router.currentRoute.name?6:18}},[i("div",{staticClass:"am-logo"},[i("img",{staticClass:"logo-big",attrs:{width:"92",src:e.$root.getUrl+"public/img/amelia-logo-horizontal.svg"}}),e._v(" "),i("img",{staticClass:"logo-small",attrs:{width:"28",src:e.$root.getUrl+"public/img/amelia-logo-symbol.svg"}})]),e._v(" "),i("h1",{staticClass:"am-page-title"},[e._v("\n "+e._s(e.bookableType?e.$root.labels[e.bookableType]:e.$router.currentRoute.meta.title)+"\n\n "),e._v(" "),e.appointmentsApproved>=0?i("span",{staticClass:"am-appointments-number approved"},[e._v("\n "+e._s(e.appointmentsApproved)+"\n ")]):e._e(),e._v(" "),e.appointmentsPending>=0?i("span",{staticClass:"am-appointments-number pending"},[e._v("\n "+e._s(e.appointmentsPending)+"\n ")]):e._e(),e._v(" "),e.employeesTotal>=0&&!0===e.$root.settings.capabilities.canReadOthers?i("span",[i("span",{staticClass:"total-number"},[e._v(e._s(e.employeesTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.customersTotal>=0?i("span",[i("span",{staticClass:"total-number"},[e._v(e._s(e.customersTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.locationsTotal>=0?i("span",[i("span",{staticClass:"total-number"},[e._v(e._s(e.locationsTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.servicesTotal>=0&&"services"===e.bookableType?i("span",[i("span",{staticClass:"total-number"},[e._v(e._s(e.servicesTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.packagesTotal>=0&&"packages"===e.bookableType?i("span",[i("span",{staticClass:"total-number"},[e._v(e._s(e.packagesTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.resourcesTotal>=0&&"resources"===e.bookableType?i("span",[i("span",{staticClass:"total-number"},[e._v(e._s(e.resourcesTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.financeTotal>=0?i("span",[i("span",{staticClass:"total-number"},[e._v(e._s(e.financeTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e()])]),e._v(" "),i("el-col",{staticClass:"align-right v-calendar-column",attrs:{span:"wpamelia-calendar"===e.$router.currentRoute.name?18:6}},["wpamelia-appointments"===e.$router.currentRoute.name&&(!0===e.$root.settings.capabilities.canWriteOthers||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteAppointments)?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogAppointment}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_appointment))])]):e._e(),e._v(" "),"wpamelia-events"===e.$router.currentRoute.name&&(!0===e.$root.settings.capabilities.canWriteOthers||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteEvents)?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogEvent}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_event))])]):e._e(),e._v(" "),"wpamelia-employees"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite&&!0===e.$root.settings.capabilities.canWriteOthers?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogEmployee}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_employee))])]):e._e(),e._v(" "),"wpamelia-customers"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogCustomer}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_customer))])]):e._e(),e._v(" "),"wpamelia-locations"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite?i("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled(),attrs:{type:"primary",disabled:e.notInLicence()},on:{click:e.showDialogLocation}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_location))])]):e._e(),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&e.categoriesTotal>0&&!0===e.$root.settings.capabilities.canWrite&&"services"===e.bookableType?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogService}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_service))])]):e._e(),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite&&"packages"===e.bookableType?i("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled("pro"),attrs:{type:"primary",disabled:e.notInLicence("pro")},on:{click:function(t){e.packagesTotal>=0?e.showDialogPackage():e.showDialogPackageBooking()}}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.packagesTotal>=0?e.$root.labels.add_package:e.$root.labels.book_package))])]):e._e(),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite&&"resources"===e.bookableType?i("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled("pro"),attrs:{type:"primary",disabled:e.notInLicence("pro")},on:{click:function(t){return e.showDialogResource()}}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_resource))])]):e._e(),e._v(" "),"wpamelia-finance"===e.$router.currentRoute.name&&e.addNewTaxBtnDisplay&&!0===e.$root.settings.capabilities.canWrite?i("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled(),attrs:{type:"primary",disabled:e.notInLicence()},on:{click:e.showDialogTax}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_tax))])]):e._e(),e._v(" "),"wpamelia-finance"===e.$router.currentRoute.name&&e.addNewCouponBtnDisplay&&!0===e.$root.settings.capabilities.canWrite?i("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled("starter"),attrs:{type:"primary",disabled:e.notInLicence("starter")},on:{click:e.showDialogCoupon}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_coupon))])]):e._e(),e._v(" "),i("transition",{attrs:{name:"fade"}},["wpamelia-cf"===e.$router.currentRoute.name&&e.addNewCustomFieldBtnDisplay?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogCustomFields}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_custom_field))])]):e._e()],1),e._v(" "),"wpamelia-dashboard"===e.$router.currentRoute.name?i("div",{staticClass:"v-calendar-column"},[i("div",{staticClass:"el-form-item__content"},[i("v-date-picker",{attrs:{mode:"range","popover-visibility":"focus","popover-direction":"bottom","popover-align":"right","tint-color":"#1A84EE","show-day-popover":!1,"input-props":{class:"el-input__inner"},"is-expanded":!1,"is-required":!0,"input-class":"el-input__inner",formats:e.vCalendarFormats,"is-double-paned":!0},on:{input:e.changeFilter},model:{value:e.params.dates,callback:function(t){e.$set(e.params,"dates",t)},expression:"params.dates"}})],1)]):e._e(),e._v(" "),"wpamelia-calendar"===e.$router.currentRoute.name?i("div",{staticClass:"am-calendar-header-filters"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$root.labels.services+":"}},[i("el-select",{attrs:{multiple:"",filterable:"","collapse-tags":"",loading:!e.fetched,placeholder:e.$root.labels.all_services},on:{change:e.changeFilter},model:{value:e.params.services,callback:function(t){e.$set(e.params,"services",t)},expression:"params.services"}},e._l(e.categories,function(t){return i("div",{key:t.id},[i("div",{staticClass:"am-drop-parent",on:{click:function(i){return e.selectAllInCategory(t.id)}}},[i("span",[e._v(e._s(t.name))])]),e._v(" "),e._l(t.serviceList,function(e){return i("el-option",{key:e.id,staticClass:"am-drop-child",attrs:{label:e.name,value:e.id}})})],2)}),0)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.locations.length,expression:"locations.length"}],attrs:{label:e.$root.labels.locations+":"}},[i("el-select",{attrs:{multiple:"",clearable:"","collapse-tags":"",placeholder:e.$root.labels.all_locations,loading:!e.fetched},on:{change:e.changeFilter},model:{value:e.params.locations,callback:function(t){e.$set(e.params,"locations",t)},expression:"params.locations"}},e._l(e.locations,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1),e._v(" "),"wpamelia-calendar"===e.$router.currentRoute.name&&("admin"===e.$root.settings.role||"manager"===e.$root.settings.role||"provider"===e.$root.settings.role&&e.$root.settings.roles.allowWriteAppointments)?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogAppointment}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_appointment))])]):e._e()],1):e._e(),e._v(" "),e.oldCustomize&&"wpamelia-customize"===e.$router.currentRoute.name?i("div",{staticClass:"am-calendar-header-filters"},[i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showMainCustomize}},[i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.go_back))])])],1):e._e()],1)],1)],1)},staticRenderFns:[]}},,function(e,t,i){var n=i(90)(i(739),i(740),!1,null,null,null);e.exports=n.exports},,function(e,t,i){var n;n=function(){return function(e){function t(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=".",t(t.s=9)}([function(e,t,i){"use strict";t.a={prefix:"",suffix:"",thousands:",",decimal:".",precision:2}},function(e,t,i){"use strict";var n=i(2),a=i(5),o=i(0);t.a=function(e,t){if(t.value){var s=i.i(a.a)(o.a,t.value);if("INPUT"!==e.tagName.toLocaleUpperCase()){var r=e.getElementsByTagName("input");1!==r.length||(e=r[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=i.i(n.a)(e.value,s),t=Math.max(t,s.suffix.length),t=e.value.length-t,t=Math.max(t,s.prefix.length+1),i.i(n.b)(e,t),e.dispatchEvent(i.i(n.c)("change"))},e.onfocus=function(){i.i(n.b)(e,e.value.length-s.suffix.length)},e.oninput(),e.dispatchEvent(i.i(n.c)("input"))}}},function(e,t,i){"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a;"number"==typeof e&&(e=e.toFixed(s(t.precision)));var i=e.indexOf("-")>=0?"-":"",n=l(r(o(e),t.precision)).split("."),a=n[0],c=n[1];return a=function(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,"$1"+t)}(a,t.thousands),t.prefix+i+function(e,t,i){return t?e+i+t:e}(a,c,t.decimal)+t.suffix}function a(e,t){var i=e.indexOf("-")>=0?-1:1,n=r(o(e),t);return parseFloat(n)*i}function o(e){return l(e).replace(/\D+/g,"")||"0"}function s(e){return function(e,t,i){return Math.max(e,Math.min(t,i))}(0,e,20)}function r(e,t){var i=Math.pow(10,t);return(parseFloat(e)/i).toFixed(s(t))}function l(e){return e?e.toString():""}function c(e,t){var i=function(){e.setSelectionRange(t,t)};e===document.activeElement&&(i(),setTimeout(i,1))}function u(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var d=i(0);i.d(t,"a",function(){return n}),i.d(t,"d",function(){return a}),i.d(t,"b",function(){return c}),i.d(t,"c",function(){return u})},function(e,t,i){"use strict";function n(e,t){t&&Object.keys(t).map(function(e){r.a[e]=t[e]}),e.directive("money",s.a),e.component("money",o.a)}Object.defineProperty(t,"__esModule",{value:!0});var a=i(6),o=i.n(a),s=i(1),r=i(0);i.d(t,"Money",function(){return o.a}),i.d(t,"VMoney",function(){return s.a}),i.d(t,"options",function(){return r.a}),i.d(t,"VERSION",function(){return l});var l="0.8.1";t.default=n,"undefined"!=typeof window&&window.Vue&&window.Vue.use(n)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),a=i(0),o=i(2);t.default={name:"Money",props:{value:{required:!0,type:[Number,String],default:0},masked:{type:Boolean,default:!1},precision:{type:Number,default:function(){return a.a.precision}},decimal:{type:String,default:function(){return a.a.decimal}},thousands:{type:String,default:function(){return a.a.thousands}},prefix:{type:String,default:function(){return a.a.prefix}},suffix:{type:String,default:function(){return a.a.suffix}}},directives:{money:n.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var n=i.i(o.a)(e,this.$props);n!==this.formattedValue&&(this.formattedValue=n)}}},methods:{change:function(e){this.$emit("input",this.masked?e.target.value:i.i(o.d)(e.target.value,this.precision))}}}},function(e,t,i){"use strict";t.a=function(e,t){return e=e||{},t=t||{},Object.keys(e).concat(Object.keys(t)).reduce(function(i,n){return i[n]=void 0===t[n]?e[n]:t[n],i},{})}},function(e,t,i){var n=i(7)(i(4),i(8),null,null);e.exports=n.exports},function(e,t){e.exports=function(e,t,i,n){var a,o=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(a=e,o=e.default);var r="function"==typeof o?o.options:o;if(t&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns),i&&(r._scopeId=i),n){var l=r.computed||(r.computed={});Object.keys(n).forEach(function(e){var t=n[e];l[e]=function(){return t}})}return{esModule:a,exports:o,options:r}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"money",rawName:"v-money",value:{precision:e.precision,decimal:e.decimal,thousands:e.thousands,prefix:e.prefix,suffix:e.suffix},expression:"{precision, decimal, thousands, prefix, suffix}"}],staticClass:"v-money",attrs:{type:"tel"},domProps:{value:e.formattedValue},on:{change:e.change}})},staticRenderFns:[]}},function(e,t,i){e.exports=i(3)}])},e.exports=n()},,,function(e,t){e.exports=function(e,t){for(var i=[],n={},a=0;a<t.length;a++){var o=t[a],s=o[0],r={id:e+":"+a,css:o[1],media:o[2],sourceMap:o[3]};n[s]?n[s].parts.push(r):i.push(n[s]={id:s,parts:[r]})}return i}},,,function(e,t,i){"use strict";t.a={data:function(){return{}},methods:{updateStashEntities:function(e){this.$root.settings.activation.stash&&this.$http.post(this.$root.getAjaxUrl+"/stash",e).then(function(e){})}}}},,,,,,,function(e,t,i){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var s;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s=i(1408).Buffer}catch(e){}function r(e,t,i){for(var n=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function l(e,t,i,n){for(var a=0,o=Math.min(e.length,i),s=t;s<o;s++){var r=e.charCodeAt(s)-48;a*=n,a+=r>=49?r-49+10:r>=17?r-17+10:r}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&a++,16===t?this._parseHex(e,a):this._parseBase(e,t,a),"-"===e[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o,s,r=0;if("be"===i)for(a=e.length-1,o=0;a>=0;a-=3)s=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=s<<r&67108863,this.words[o+1]=s>>>26-r&67108863,(r+=24)>=26&&(r-=26,o++);else if("le"===i)for(a=0,o=0;a<e.length;a+=3)s=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=s<<r&67108863,this.words[o+1]=s>>>26-r&67108863,(r+=24)>=26&&(r-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,a,o=0;for(i=e.length-6,n=0;i>=t;i-=6)a=r(e,i,i+6),this.words[n]|=a<<o&67108863,this.words[n+1]|=a>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==t&&(a=r(e,t,i+6),this.words[n]|=a<<o&67108863,this.words[n+1]|=a>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var o=e.length-i,s=o%n,r=Math.min(o,o-s)+i,c=0,u=i;u<r;u+=n)c=l(e,u,u+n,t),this.imuln(a),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var d=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var a=0|e.words[0],o=0|t.words[0],s=a*o,r=67108863&s,l=s/67108864|0;i.words[0]=r;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,p=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=p;f++){var h=c-f|0;u+=(s=(a=0|e.words[h])*(o=0|t.words[f])+d)/67108864|0,d=67108863&s}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}o.prototype.toString=function(e,t){var i;if(e=e||10,t=0|t||1,16===e||"hex"===e){i="";for(var a=0,o=0,s=0;s<this.length;s++){var r=this.words[s],l=(16777215&(r<<a|o)).toString(16);i=0!==(o=r>>>24-a&16777215)||s!==this.length-1?c[6-l.length]+l+i:l+i,(a+=2)>=26&&(a-=26,s--)}for(0!==o&&(i=o.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var p=u[e],f=d[e];i="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(f).toString(e);i=(h=h.idivn(f)).isZero()?m+i:c[p-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){var a=this.byteLength(),o=i||Math.max(1,a);n(a<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,r,l="le"===t,c=new e(o),u=this.clone();if(l){for(r=0;!u.isZero();r++)s=u.andln(255),u.iushrn(8),c[r]=s;for(;r<o;r++)c[r]=0}else{for(r=0;r<o-a;r++)c[r]=0;for(r=0;!u.isZero();r++)s=u.andln(255),u.iushrn(8),c[o-r-1]=s}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var a=0;a<t;a++)this.words[a]=67108863&~this.words[a];return i>0&&(this.words[a]=~this.words[a]&67108863>>26-i),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var i=e/26|0,a=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<a:this.words[i]&~(1<<a),this.strip()},o.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var a=0,o=0;o<n.length;o++)t=(0|i.words[o])+(0|n.words[o])+a,this.words[o]=67108863&t,a=t>>>26;for(;0!==a&&o<i.length;o++)t=(0|i.words[o])+a,this.words[o]=67108863&t,a=t>>>26;if(this.length=i.length,0!==a)this.words[this.length]=a,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(i=this,n=e):(i=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<i.length;s++)o=(t=(0|i.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,i){var n,a,o,s=e.words,r=t.words,l=i.words,c=0,u=0|s[0],d=8191&u,p=u>>>13,f=0|s[1],h=8191&f,m=f>>>13,g=0|s[2],b=8191&g,v=g>>>13,y=0|s[3],_=8191&y,w=y>>>13,k=0|s[4],x=8191&k,S=k>>>13,C=0|s[5],$=8191&C,P=C>>>13,E=0|s[6],A=8191&E,T=E>>>13,O=0|s[7],D=8191&O,M=O>>>13,L=0|s[8],I=8191&L,N=L>>>13,q=0|s[9],j=8191&q,R=q>>>13,B=0|r[0],z=8191&B,U=B>>>13,F=0|r[1],H=8191&F,K=F>>>13,V=0|r[2],W=8191&V,G=V>>>13,Y=0|r[3],J=8191&Y,Z=Y>>>13,X=0|r[4],Q=8191&X,ee=X>>>13,te=0|r[5],ie=8191&te,ne=te>>>13,ae=0|r[6],oe=8191&ae,se=ae>>>13,re=0|r[7],le=8191&re,ce=re>>>13,ue=0|r[8],de=8191&ue,pe=ue>>>13,fe=0|r[9],he=8191&fe,me=fe>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,z))|0)+((8191&(a=(a=Math.imul(d,U))+Math.imul(p,z)|0))<<13)|0;c=((o=Math.imul(p,U))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(h,z),a=(a=Math.imul(h,U))+Math.imul(m,z)|0,o=Math.imul(m,U);var be=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(a=(a=a+Math.imul(d,K)|0)+Math.imul(p,H)|0))<<13)|0;c=((o=o+Math.imul(p,K)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,z),a=(a=Math.imul(b,U))+Math.imul(v,z)|0,o=Math.imul(v,U),n=n+Math.imul(h,H)|0,a=(a=a+Math.imul(h,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0;var ve=(c+(n=n+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,G)|0)+Math.imul(p,W)|0))<<13)|0;c=((o=o+Math.imul(p,G)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(_,z),a=(a=Math.imul(_,U))+Math.imul(w,z)|0,o=Math.imul(w,U),n=n+Math.imul(b,H)|0,a=(a=a+Math.imul(b,K)|0)+Math.imul(v,H)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(h,W)|0,a=(a=a+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ye=(c+(n=n+Math.imul(d,J)|0)|0)+((8191&(a=(a=a+Math.imul(d,Z)|0)+Math.imul(p,J)|0))<<13)|0;c=((o=o+Math.imul(p,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,z),a=(a=Math.imul(x,U))+Math.imul(S,z)|0,o=Math.imul(S,U),n=n+Math.imul(_,H)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(b,W)|0,a=(a=a+Math.imul(b,G)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(h,J)|0,a=(a=a+Math.imul(h,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0;var _e=(c+(n=n+Math.imul(d,Q)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(p,Q)|0))<<13)|0;c=((o=o+Math.imul(p,ee)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul($,z),a=(a=Math.imul($,U))+Math.imul(P,z)|0,o=Math.imul(P,U),n=n+Math.imul(x,H)|0,a=(a=a+Math.imul(x,K)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,K)|0,n=n+Math.imul(_,W)|0,a=(a=a+Math.imul(_,G)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(b,J)|0,a=(a=a+Math.imul(b,Z)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Z)|0,n=n+Math.imul(h,Q)|0,a=(a=a+Math.imul(h,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var we=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,ne)|0)+Math.imul(p,ie)|0))<<13)|0;c=((o=o+Math.imul(p,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,z),a=(a=Math.imul(A,U))+Math.imul(T,z)|0,o=Math.imul(T,U),n=n+Math.imul($,H)|0,a=(a=a+Math.imul($,K)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,W)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(_,J)|0,a=(a=a+Math.imul(_,Z)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Z)|0,n=n+Math.imul(b,Q)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(h,ie)|0,a=(a=a+Math.imul(h,ne)|0)+Math.imul(m,ie)|0,o=o+Math.imul(m,ne)|0;var ke=(c+(n=n+Math.imul(d,oe)|0)|0)+((8191&(a=(a=a+Math.imul(d,se)|0)+Math.imul(p,oe)|0))<<13)|0;c=((o=o+Math.imul(p,se)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(D,z),a=(a=Math.imul(D,U))+Math.imul(M,z)|0,o=Math.imul(M,U),n=n+Math.imul(A,H)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,K)|0,n=n+Math.imul($,W)|0,a=(a=a+Math.imul($,G)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(x,J)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,ne)|0)+Math.imul(v,ie)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(h,oe)|0,a=(a=a+Math.imul(h,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(a=(a=a+Math.imul(d,ce)|0)+Math.imul(p,le)|0))<<13)|0;c=((o=o+Math.imul(p,ce)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(I,z),a=(a=Math.imul(I,U))+Math.imul(N,z)|0,o=Math.imul(N,U),n=n+Math.imul(D,H)|0,a=(a=a+Math.imul(D,K)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(A,W)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,n=n+Math.imul($,J)|0,a=(a=a+Math.imul($,Z)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,ne)|0)+Math.imul(w,ie)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(b,oe)|0,a=(a=a+Math.imul(b,se)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,se)|0,n=n+Math.imul(h,le)|0,a=(a=a+Math.imul(h,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var Se=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,pe)|0)+Math.imul(p,de)|0))<<13)|0;c=((o=o+Math.imul(p,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(j,z),a=(a=Math.imul(j,U))+Math.imul(R,z)|0,o=Math.imul(R,U),n=n+Math.imul(I,H)|0,a=(a=a+Math.imul(I,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(D,W)|0,a=(a=a+Math.imul(D,G)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(A,J)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul($,Q)|0,a=(a=a+Math.imul($,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(S,ie)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(_,oe)|0,a=(a=a+Math.imul(_,se)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,se)|0,n=n+Math.imul(b,le)|0,a=(a=a+Math.imul(b,ce)|0)+Math.imul(v,le)|0,o=o+Math.imul(v,ce)|0,n=n+Math.imul(h,de)|0,a=(a=a+Math.imul(h,pe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,pe)|0;var Ce=(c+(n=n+Math.imul(d,he)|0)|0)+((8191&(a=(a=a+Math.imul(d,me)|0)+Math.imul(p,he)|0))<<13)|0;c=((o=o+Math.imul(p,me)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,H),a=(a=Math.imul(j,K))+Math.imul(R,H)|0,o=Math.imul(R,K),n=n+Math.imul(I,W)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(D,J)|0,a=(a=a+Math.imul(D,Z)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul($,ie)|0,a=(a=a+Math.imul($,ne)|0)+Math.imul(P,ie)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,a=(a=a+Math.imul(x,se)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,se)|0,n=n+Math.imul(_,le)|0,a=(a=a+Math.imul(_,ce)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ce)|0,n=n+Math.imul(b,de)|0,a=(a=a+Math.imul(b,pe)|0)+Math.imul(v,de)|0,o=o+Math.imul(v,pe)|0;var $e=(c+(n=n+Math.imul(h,he)|0)|0)+((8191&(a=(a=a+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(a>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(j,W),a=(a=Math.imul(j,G))+Math.imul(R,W)|0,o=Math.imul(R,G),n=n+Math.imul(I,J)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(D,Q)|0,a=(a=a+Math.imul(D,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(T,ie)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul($,oe)|0,a=(a=a+Math.imul($,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,n=n+Math.imul(x,le)|0,a=(a=a+Math.imul(x,ce)|0)+Math.imul(S,le)|0,o=o+Math.imul(S,ce)|0,n=n+Math.imul(_,de)|0,a=(a=a+Math.imul(_,pe)|0)+Math.imul(w,de)|0,o=o+Math.imul(w,pe)|0;var Pe=(c+(n=n+Math.imul(b,he)|0)|0)+((8191&(a=(a=a+Math.imul(b,me)|0)+Math.imul(v,he)|0))<<13)|0;c=((o=o+Math.imul(v,me)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,J),a=(a=Math.imul(j,Z))+Math.imul(R,J)|0,o=Math.imul(R,Z),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(D,ie)|0,a=(a=a+Math.imul(D,ne)|0)+Math.imul(M,ie)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(A,oe)|0,a=(a=a+Math.imul(A,se)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,se)|0,n=n+Math.imul($,le)|0,a=(a=a+Math.imul($,ce)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,de)|0,a=(a=a+Math.imul(x,pe)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,pe)|0;var Ee=(c+(n=n+Math.imul(_,he)|0)|0)+((8191&(a=(a=a+Math.imul(_,me)|0)+Math.imul(w,he)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(j,Q),a=(a=Math.imul(j,ee))+Math.imul(R,Q)|0,o=Math.imul(R,ee),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(N,ie)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(D,oe)|0,a=(a=a+Math.imul(D,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(A,le)|0,a=(a=a+Math.imul(A,ce)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,ce)|0,n=n+Math.imul($,de)|0,a=(a=a+Math.imul($,pe)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,pe)|0;var Ae=(c+(n=n+Math.imul(x,he)|0)|0)+((8191&(a=(a=a+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;c=((o=o+Math.imul(S,me)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,ie),a=(a=Math.imul(j,ne))+Math.imul(R,ie)|0,o=Math.imul(R,ne),n=n+Math.imul(I,oe)|0,a=(a=a+Math.imul(I,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(D,le)|0,a=(a=a+Math.imul(D,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(A,de)|0,a=(a=a+Math.imul(A,pe)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,pe)|0;var Te=(c+(n=n+Math.imul($,he)|0)|0)+((8191&(a=(a=a+Math.imul($,me)|0)+Math.imul(P,he)|0))<<13)|0;c=((o=o+Math.imul(P,me)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,oe),a=(a=Math.imul(j,se))+Math.imul(R,oe)|0,o=Math.imul(R,se),n=n+Math.imul(I,le)|0,a=(a=a+Math.imul(I,ce)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,ce)|0,n=n+Math.imul(D,de)|0,a=(a=a+Math.imul(D,pe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,pe)|0;var Oe=(c+(n=n+Math.imul(A,he)|0)|0)+((8191&(a=(a=a+Math.imul(A,me)|0)+Math.imul(T,he)|0))<<13)|0;c=((o=o+Math.imul(T,me)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,le),a=(a=Math.imul(j,ce))+Math.imul(R,le)|0,o=Math.imul(R,ce),n=n+Math.imul(I,de)|0,a=(a=a+Math.imul(I,pe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,pe)|0;var De=(c+(n=n+Math.imul(D,he)|0)|0)+((8191&(a=(a=a+Math.imul(D,me)|0)+Math.imul(M,he)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(j,de),a=(a=Math.imul(j,pe))+Math.imul(R,de)|0,o=Math.imul(R,pe);var Me=(c+(n=n+Math.imul(I,he)|0)|0)+((8191&(a=(a=a+Math.imul(I,me)|0)+Math.imul(N,he)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Le=(c+(n=Math.imul(j,he))|0)+((8191&(a=(a=Math.imul(j,me))+Math.imul(R,he)|0))<<13)|0;return c=((o=Math.imul(R,me))+(a>>>13)|0)+(Le>>>26)|0,Le&=67108863,l[0]=ge,l[1]=be,l[2]=ve,l[3]=ye,l[4]=_e,l[5]=we,l[6]=ke,l[7]=xe,l[8]=Se,l[9]=Ce,l[10]=$e,l[11]=Pe,l[12]=Ee,l[13]=Ae,l[14]=Te,l[15]=Oe,l[16]=De,l[17]=Me,l[18]=Le,0!==c&&(l[19]=c,i.length++),i};function h(e,t,i){return(new m).mulp(e,t,i)}function m(e,t){this.x=e,this.y=t}Math.imul||(f=p),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):i<63?p(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,a=0,o=0;o<i.length-1;o++){var s=a;a=0;for(var r=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),p=67108863&d;r=67108863&(p=p+r|0),a+=(s=(s=s+(d/67108864|0)|0)+(p>>>26)|0)>>>26,s&=67108863}i.words[o]=r,n=s,s=a}return 0!==n?i.words[o]=n:i.length--,i.strip()}(this,e,t):h(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},m.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,a=0;a<t;a++)n|=(1&e)<<t-a-1,e>>=1;return n},m.prototype.permute=function(e,t,i,n,a,o){for(var s=0;s<o;s++)n[s]=t[e[s]],a[s]=i[e[s]]},m.prototype.transform=function(e,t,i,n,a,o){this.permute(o,e,t,i,n,a);for(var s=1;s<a;s<<=1)for(var r=s<<1,l=Math.cos(2*Math.PI/r),c=Math.sin(2*Math.PI/r),u=0;u<a;u+=r)for(var d=l,p=c,f=0;f<s;f++){var h=i[u+f],m=n[u+f],g=i[u+f+s],b=n[u+f+s],v=d*g-p*b;b=d*b+p*g,g=v,i[u+f]=h+g,n[u+f]=m+b,i[u+f+s]=h-g,n[u+f+s]=m-b,f!==r&&(v=l*d-c*p,p=l*p+c*d,d=v)}},m.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,a=0;for(i=i/2|0;i;i>>>=1)a++;return 1<<a+1+n},m.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var a=e[n];e[n]=e[i-n-1],e[i-n-1]=a,a=t[n],t[n]=-t[i-n-1],t[i-n-1]=-a}},m.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var a=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&a,i=a<67108864?0:a/67108864|0}return e},m.prototype.convert13b=function(e,t,i,a){for(var o=0,s=0;s<t;s++)o+=0|e[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<a;++s)i[s]=0;n(0===o),n(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},m.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),a=this.makeRBT(n),o=this.stub(n),s=new Array(n),r=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),p=i.words;p.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,c,n),this.transform(s,o,r,l,n,a),this.transform(c,o,u,d,n,a);for(var f=0;f<n;f++){var h=r[f]*u[f]-l[f]*d[f];l[f]=r[f]*d[f]+l[f]*u[f],r[f]=h}return this.conjugate(r,l,n),this.transform(r,l,p,o,n,a),this.conjugate(p,o,n),this.normalize13b(p,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),h(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,o=(67108863&a)+(67108863&t);t>>=26,t+=a/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,a=i%26;t[i]=(e.words[n]&1<<a)>>>a}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,i=e%26,a=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t<this.length;t++){var r=this.words[t]&o,l=(0|this.words[t])-r<<i;this.words[t]=l|s,s=r>>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t<a;t++)this.words[t]=0;this.length+=a}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,i){var a;n("number"==typeof e&&e>=0),a=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),r=67108863^67108863>>>o<<o,l=i;if(a-=s,a=Math.max(0,a),l){for(var c=0;c<s;c++)l.words[c]=this.words[c];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=a);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&r}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,i){return n(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,a=1<<t;return!(this.length<=i)&&!!(this.words[i]&a)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var a=67108863^67108863>>>t<<t;this.words[this.length-1]&=a}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,i){var a,o,s=e.length+i;this._expand(s);var r=0;for(a=0;a<e.length;a++){o=(0|this.words[a+i])+r;var l=(0|e.words[a])*t;r=((o-=67108863&l)>>26)-(l/67108864|0),this.words[a+i]=67108863&o}for(;a<this.length-i;a++)r=(o=(0|this.words[a+i])+r)>>26,this.words[a+i]=67108863&o;if(0===r)return this.strip();for(n(-1===r),r=0,a=0;a<this.length;a++)r=(o=-(0|this.words[a])+r)>>26,this.words[a]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,s=0|a.words[a.length-1];0!==(i=26-this._countBits(s))&&(a=a.ushln(i),n.iushln(i),s=0|a.words[a.length-1]);var r,l=n.length-a.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=new Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var p=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(p=Math.min(p/s|0,67108863),n._ishlnsubmul(a,p,d);0!==n.negative;)p--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);r&&(r.words[d]=p)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},o.prototype.divmod=function(e,t,i){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(r=this.neg().divmod(e,t),"mod"!==t&&(a=r.div.neg()),"div"!==t&&(s=r.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:a,mod:s}):0===this.negative&&0!==e.negative?(r=this.divmod(e.neg(),t),"mod"!==t&&(a=r.div.neg()),{div:a,mod:r.mod}):0!=(this.negative&e.negative)?(r=this.neg().divmod(e.neg(),t),"div"!==t&&(s=r.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:r.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,s,r},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),o=i.cmp(n);return o<0||1===a&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(t*i+(0|this.words[a]))%e;return i},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*t;this.words[i]=a/e|0,t=a%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new o(1),s=new o(0),r=new o(0),l=new o(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var u=i.clone(),d=t.clone();!t.isZero();){for(var p=0,f=1;0==(t.words[0]&f)&&p<26;++p,f<<=1);if(p>0)for(t.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(u),s.isub(d)),a.iushrn(1),s.iushrn(1);for(var h=0,m=1;0==(i.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(i.iushrn(h);h-- >0;)(r.isOdd()||l.isOdd())&&(r.iadd(u),l.isub(d)),r.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),a.isub(r),s.isub(l)):(i.isub(t),r.isub(a),l.isub(s))}return{a:r,b:l,gcd:i.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,s=new o(1),r=new o(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var d=0,p=1;0==(i.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(i.iushrn(d);d-- >0;)r.isOdd()&&r.iadd(l),r.iushrn(1);t.cmp(i)>=0?(t.isub(i),s.isub(r)):(i.isub(t),r.isub(s))}return(a=0===t.cmpn(1)?s:r).cmpn(0)<0&&a.iadd(e),a},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var a=t.cmp(i);if(a<0){var o=t;t=i,i=o}else if(0===a||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,i=(e-t)/26,a=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=a,this;for(var o=a,s=i;0!==o&&s<this.length;s++){var r=0|this.words[s];o=(r+=o)>>>26,r&=67108863,this.words[s]=r}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),n(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:a<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],a=0|e.words[i];if(n!==a){n<a?t=-1:n>a&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip(),i},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},a(v,b),v.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=4194303&a,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|a>>>22,a=o}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},a(y,b),a(_,b),a(w,b),w.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,a=67108863&n;n>>>=26,e.words[i]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return g[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},k.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var a=this.m.subn(1),s=0;!a.isZero()&&0===a.andln(1);)s++,a.iushrn(1);n(!a.isZero());var r=new o(1).toRed(this),l=r.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),p=this.pow(e,a.addn(1).iushrn(1)),f=this.pow(e,a),h=s;0!==f.cmp(r);){for(var m=f,g=0;0!==m.cmp(r);g++)m=m.redSqr();n(g<h);var b=this.pow(d,new o(1).iushln(h-g-1));p=p.redMul(b),d=b.redSqr(),f=f.redMul(d),h=g}return p},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],s=0,r=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,(4===++r||0===n&&0===u)&&(a=this.mul(a,i[s]),r=0,s=0)):r=0}l=26}return a},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},a(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),s=a;return a.cmp(this.m)>=0?s=a.isub(this.m):a.cmpn(0)<0&&(s=a.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,i(345)(e))},function(e,t,i){e.exports=i(714)},function(e,t,i){"use strict";var n=i(656),a=i(686),o=i(715),s=i(669);function r(e){var t=new o(e),i=a(o.prototype.request,t);return n.extend(i,o.prototype,t),n.extend(i,t),i}var l=r(s);l.Axios=o,l.create=function(e){return r(n.merge(s,e))},l.Cancel=i(690),l.CancelToken=i(729),l.isCancel=i(689),l.all=function(e){return Promise.all(e)},l.spread=i(730),e.exports=l,e.exports.default=l},function(e,t,i){"use strict";var n=i(669),a=i(656),o=i(724),s=i(725),r=i(727),l=i(728);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e&&(e=a.merge({url:arguments[0]},arguments[1])),(e=a.merge(n,this.defaults,{method:"get"},e)).method=e.method.toLowerCase(),e.baseURL&&!r(e.url)&&(e.url=l(e.baseURL,e.url));var t=[s,void 0],i=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)i=i.then(t.shift(),t.shift());return i},a.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,i){return this.request(a.merge(i||{},{method:e,url:t}))}}),a.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,i,n){return this.request(a.merge(n||{},{method:e,url:t,data:i}))}}),e.exports=c},function(e,t,i){"use strict";var n=i(656);e.exports=function(e,t){n.forEach(e,function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])})}},function(e,t,i){"use strict";var n=i(688);e.exports=function(e,t,i){var a=i.config.validateStatus;i.status&&a&&!a(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},function(e,t,i){"use strict";e.exports=function(e,t,i,n,a){return e.config=t,i&&(e.code=i),e.request=n,e.response=a,e}},function(e,t,i){"use strict";var n=i(656);function a(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var o;if(i)o=i(t);else if(n.isURLSearchParams(t))o=t.toString();else{var s=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)&&(t+="[]"),n.isArray(e)||(e=[e]),n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(a(t)+"="+a(e))}))}),o=s.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,i){"use strict";var n=i(656);e.exports=function(e){var t,i,a,o={};return e?(n.forEach(e.split("\n"),function(e){a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),i=n.trim(e.substr(a+1)),t&&(o[t]=o[t]?o[t]+", "+i:i)}),o):o}},function(e,t,i){"use strict";var n=i(656);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function a(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=a(window.location.href),function(t){var i=n.isString(t)?a(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},function(e,t,i){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function a(){this.message="String contains an invalid character"}a.prototype=new Error,a.prototype.code=5,a.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,i,o=String(e),s="",r=0,l=n;o.charAt(0|r)||(l="=",r%1);s+=l.charAt(63&t>>8-r%1*8)){if((i=o.charCodeAt(r+=.75))>255)throw new a;t=t<<8|i}return s}},function(e,t,i){"use strict";var n=i(656);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,i,a,o,s){var r=[];r.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&r.push("expires="+new Date(i).toGMTString()),n.isString(a)&&r.push("path="+a),n.isString(o)&&r.push("domain="+o),!0===s&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,i){"use strict";var n=i(656);function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=a},function(e,t,i){"use strict";var n=i(656),a=i(726),o=i(689),s=i(669);function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return r(e),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=a(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(r(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,i){"use strict";var n=i(656);e.exports=function(e,t,i){return n.forEach(i,function(i){e=i(e,t)}),e}},function(e,t,i){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,i){"use strict";var n=i(690);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var i=this;e(function(e){i.reason||(i.reason=new n(e),t(i.reason))})}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a(function(t){e=t}),cancel:e}},e.exports=a},function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,i){"use strict";var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(11),s=(n=o)&&n.__esModule?n:{default:n};e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.errors={}}return a(e,[{key:"set",value:function(e){this.errors=e}},{key:"has",value:function(e){return this.errors.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e))return this.errors[e][0]}},{key:"getAll",value:function(e){if(this.has(e))return this.errors[e]}},{key:"clear",value:function(e){e?s.default.delete(this.errors,e):this.errors={}}},{key:"any",value:function(){return Object.keys(this.errors).length>0}}]),e}()},function(e,t,i){"use strict";function n(e){return void 0===e}function a(e){return Array.isArray(e)}function o(e){return e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.slice}e.exports=function e(t,i,s,r){if(i instanceof FormData&&(r=s,s=i,i=null),(i=i||{}).indices=!n(i.indices)&&i.indices,i.nulls=!!n(i.nulls)||i.nulls,s=s||new FormData,n(t))return s;if(function(e){return null===e}(t))i.nulls&&s.append(r,"");else if(a(t))if(t.length)t.forEach(function(t,n){var a=r+"["+(i.indices?n:"")+"]";e(t,i,s,a)});else{var l=r+"[]";s.append(l,"")}else!function(e){return e instanceof Date}(t)?!function(e){return e===Object(e)}(t)||function(e){return o(e)&&("object"==typeof e.lastModifiedDate||"number"==typeof e.lastModified)&&"string"==typeof e.name}(t)||o(t)?s.append(r,t):Object.keys(t).forEach(function(n){var o=t[n];if(a(o))for(;n.length>2&&n.lastIndexOf("[]")===n.length-2;)n=n.substring(0,n.length-2);e(o,i,s,r?r+"["+n+"]":n)}):s.append(r,t.toISOString());return s}},function(e,t,i){var n=i(90)(i(750),i(754),!1,null,null,null);e.exports=n.exports},function(e,t,i){var n;n=function(e){return function(e){function t(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(t,i){t.exports=e},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(4),a=i.n(n),o=i(6),s=i(5)(a.a,o.a,!1,null,null,null);t.default=s.exports},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.quillEditor=t.Quill=void 0;var a=n(i(0)),o=n(i(1)),s=window.Quill||a.default,r=function(e,t){t&&(o.default.props.globalOptions.default=function(){return t}),e.component(o.default.name,o.default)},l={Quill:s,quillEditor:o.default,install:r};t.default=l,t.Quill=s,t.quillEditor=o.default,t.install=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(0)),o=n(i(3)),s=window.Quill||a.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])}return i},writable:!0,configurable:!0}),t.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:o.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var e=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new s(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",function(t){t?e.$emit("focus",e.quill):e.$emit("blur",e.quill)}),this.quill.on("text-change",function(t,i,n){var a=e.$refs.editor.children[0].innerHTML,o=e.quill,s=e.quill.getText();"<p><br></p>"===a&&(a=""),e._content=a,e.$emit("input",e._content),e.$emit("change",{html:a,text:s,quill:o})}),this.$emit("ready",this.quill))}},watch:{content:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},value:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},disabled:function(e,t){this.quill&&this.quill.enable(!e)}}}},function(e,t){e.exports=function(e,t,i,n,a,o){var s,r=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,r=e.default);var c,u="function"==typeof r?r.options:r;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId=a),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=c):n&&(c=n),c){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),p(e,t)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:s,exports:r,options:u}}},function(e,t,i){"use strict";var n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"quill-editor"},[e._t("toolbar"),e._v(" "),i("div",{ref:"editor"})],2)},staticRenderFns:[]};t.a=n}])},e.exports=n(i(751))},function(e,t,i){"use strict";var n=i(658),a=i(336);t.a={mixins:[n.a,a.a],data:function(){return{groupedPlaceholders:{},initialGroupedPlaceholders:{companyPlaceholders:[{value:"%company_address%",label:this.$root.labels.ph_company_address},{value:"%company_name%",label:this.$root.labels.ph_company_name},{value:"%company_phone%",label:this.$root.labels.ph_company_phone},{value:"%company_website%",label:this.$root.labels.ph_company_website},{value:"%company_email%",label:this.$root.labels.ph_company_email},{value:"%company_vat_number%",label:this.$root.labels.ph_company_vat_number}],customerPlaceholders:[{value:"%customer_email%",label:this.$root.labels.ph_customer_email},{value:"%customer_first_name%",label:this.$root.labels.ph_customer_first_name},{value:"%customer_full_name%",label:this.$root.labels.ph_customer_full_name},{value:"%customer_last_name%",label:this.$root.labels.ph_customer_last_name},{value:"%customer_note%",label:this.$root.labels.ph_customer_note},{value:"%customer_phone%",label:this.$root.labels.ph_customer_phone},{value:"%customer_panel_url%",label:this.$root.labels.ph_customer_cabinet_url,parse:"link"}],packagePlaceholders:[{value:"%package_appointments_details%",label:this.$root.labels.ph_package_appointments_details},{value:"%package_description%",label:this.$root.labels.ph_package_description},{value:"%package_duration%",label:this.$root.labels.ph_package_duration},{value:"%package_name%",label:this.$root.labels.ph_package_name},{value:"%package_price%",label:this.$root.labels.ph_package_price},{value:"%time_zone%",label:this.$root.labels.ph_time_zone,type:"package"},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used,type:"package"}],employeePlaceholders:[{value:"%employee_id%",label:this.$root.labels.ph_employee_id},{value:"%employee_email%",label:this.$root.labels.ph_employee_email},{value:"%employee_first_name%",label:this.$root.labels.ph_employee_first_name},{value:"%employee_full_name%",label:this.$root.labels.ph_employee_full_name},{value:"%employee_last_name%",label:this.$root.labels.ph_employee_last_name},{value:"%employee_note%",label:this.$root.labels.ph_employee_note},{value:"%employee_description%",label:this.$root.labels.ph_employee_description},{value:"%employee_phone%",label:this.$root.labels.ph_employee_phone},{value:"%employee_panel_url%",label:this.$root.labels.ph_employee_cabinet_url,parse:"link"},{value:"%employee_password%",label:this.$root.labels.ph_employee_password}],paymentPlaceholders:[{value:"%payment_type%",label:this.$root.labels.ph_payment_type},{value:"%appointment_deposit_payment%",label:this.$root.labels.ph_appointment_deposit_payment},{value:"%event_deposit_payment%",label:this.$root.labels.ph_event_deposit_payment},{value:"%package_deposit_payment%",label:this.$root.labels.ph_package_deposit_payment},{value:"%payment_due_amount%",label:this.$root.labels.ph_payment_due_amount},{value:"%payment_link_woocommerce%",label:this.$root.labels.ph_payment_link_woocommerce},{value:"%payment_link_mollie%",label:this.$root.labels.ph_payment_link_mollie},{value:"%payment_link_paypal%",label:this.$root.labels.ph_payment_link_paypal},{value:"%payment_link_stripe%",label:this.$root.labels.ph_payment_link_stripe},{value:"%payment_link_razorpay%",label:this.$root.labels.ph_payment_link_razorpay},{value:"%payment_link_square%",label:this.$root.labels.ph_payment_link_square}],categoryPlaceholders:[{value:"%category_id%",label:this.$root.labels.ph_category_id},{value:"%category_name%",label:this.$root.labels.ph_category_name},{value:"%service_description%",label:this.$root.labels.ph_service_description},{value:"%service_duration%",label:this.$root.labels.ph_service_duration},{value:"%service_id%",label:this.$root.labels.ph_service_id},{value:"%service_name%",label:this.$root.labels.ph_service_name},{value:"%service_price%",label:this.$root.labels.ph_service_price}],locationPlaceholders:[{value:"%location_address%",label:this.$root.labels.ph_location_address},{value:"%location_description%",label:this.$root.labels.ph_location_description},{value:"%location_id%",label:this.$root.labels.ph_location_id},{value:"%location_name%",label:this.$root.labels.ph_location_name},{value:"%location_phone%",label:this.$root.labels.ph_location_phone},{value:"%location_latitude%",label:this.$root.labels.ph_location_latitude},{value:"%location_longitude%",label:this.$root.labels.ph_location_longitude}],appointmentPlaceholders:[{value:"%appointment_id%",label:this.$root.labels.ph_appointment_id},{value:"%appointment_cancel_url%",label:this.$root.labels.ph_appointment_cancel_url,parse:"link"},{value:"%appointment_approve_url%",label:this.$root.labels.ph_appointment_approve_url,parse:"link"},{value:"%appointment_reject_url%",label:this.$root.labels.ph_appointment_reject_url,parse:"link"},{value:"%appointment_date%",label:this.$root.labels.ph_appointment_date},{value:"%appointment_date_time%",label:this.$root.labels.ph_appointment_date_time},{value:"%appointment_start_time%",label:this.$root.labels.ph_appointment_start_time},{value:"%appointment_end_time%",label:this.$root.labels.ph_appointment_end_time},{value:"%initial_appointment_date%",label:this.$root.labels.ph_initial_appointment_date},{value:"%initial_appointment_date_time%",label:this.$root.labels.ph_initial_appointment_date_time},{value:"%initial_appointment_start_time%",label:this.$root.labels.ph_initial_appointment_start_time},{value:"%initial_appointment_end_time%",label:this.$root.labels.ph_initial_appointment_end_time},{value:"%appointment_duration%",label:this.$root.labels.ph_appointment_duration},{value:"%appointment_notes%",label:this.$root.labels.ph_appointment_notes},{value:"%appointment_price%",label:this.$root.labels.ph_appointment_price},{value:"%appointment_status%",label:this.$root.labels.ph_appointment_status},{value:"%booked_customer%",label:this.$root.labels.ph_booked_customer},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used,type:"appointment"},{value:"%number_of_persons%",label:this.$root.labels.ph_booking_number_of_persons},{value:"%recurring_appointments_details%",label:this.$root.labels.ph_recurring_appointments_details},{value:"%group_appointment_details%",label:this.$root.labels.ph_group_appointment_details},{value:"%zoom_host_url%",label:this.$root.labels.ph_zoom_host_url},{value:"%zoom_join_url%",label:this.$root.labels.ph_zoom_join_url},{value:"%google_meet_url%",label:this.$root.labels.ph_google_meet_url},{value:"%microsoft_teams_url%",label:this.$root.labels.ph_microsoft_teams_url},{value:"%lesson_space_url%",label:this.$root.labels.ph_lesson_space_url},{value:"%reservation_name%",label:this.$root.labels.ph_reservation_name,type:"appointment"},{value:"%reservation_description%",label:this.$root.labels.ph_reservation_description,type:"appointment"},{value:"%time_zone%",label:this.$root.labels.ph_time_zone,type:"appointment"}],eventPlaceholders:[{value:"%attendee_code%",label:this.$root.labels.ph_attendee_code},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used,type:"event"},{value:"%event_cancel_url%",label:this.$root.labels.ph_event_cancel_url,parse:"link"},{value:"%event_description%",label:this.$root.labels.ph_event_description},{value:"%event_location%",label:this.$root.labels.ph_event_location},{value:"%event_end_date%",label:this.$root.labels.ph_event_end_date},{value:"%event_end_date_time%",label:this.$root.labels.ph_event_end_date_time},{value:"%event_end_time%",label:this.$root.labels.ph_event_end_time},{value:"%group_event_details%",label:this.$root.labels.ph_group_event_details},{value:"%event_tickets%",label:this.$root.labels.ph_event_tickets},{value:"%event_id%",label:this.$root.labels.ph_event_id},{value:"%event_name%",label:this.$root.labels.ph_event_name},{value:"%event_period_date%",label:this.$root.labels.ph_event_period_date},{value:"%event_period_date_time%",label:this.$root.labels.ph_event_period_date_time},{value:"%event_price%",label:this.$root.labels.ph_event_price},{value:"%booking_price%",label:this.$root.labels.ph_booking_price},{value:"%event_start_date%",label:this.$root.labels.ph_event_start_date},{value:"%event_start_date_time%",label:this.$root.labels.ph_event_start_date_time},{value:"%event_start_time%",label:this.$root.labels.ph_event_start_time},{value:"%initial_event_start_date%",label:this.$root.labels.ph_initial_event_start_date},{value:"%initial_event_start_date_time%",label:this.$root.labels.ph_initial_event_start_date_time},{value:"%initial_event_start_time%",label:this.$root.labels.ph_initial_event_start_time},{value:"%initial_event_end_date%",label:this.$root.labels.ph_initial_event_end_date},{value:"%initial_event_end_date_time%",label:this.$root.labels.ph_initial_event_end_date_time},{value:"%initial_event_end_time%",label:this.$root.labels.ph_initial_event_end_time},{value:"%employee_name_email_phone%",label:this.$root.labels.ph_employee_name_email_phone},{value:"%number_of_persons%",label:this.$root.labels.ph_booking_number_of_persons},{value:"%lesson_space_url_date%",label:this.$root.labels.ph_lesson_space_url_date},{value:"%lesson_space_url_date_time%",label:this.$root.labels.ph_lesson_space_url_date_time},{value:"%google_meet_url_date%",label:this.$root.labels.ph_google_meet_url_date},{value:"%google_meet_url_date_time%",label:this.$root.labels.ph_google_meet_url_date_date},{value:"%microsoft_teams_url_date%",label:this.$root.labels.ph_microsoft_teams_url_date},{value:"%microsoft_teams_url_date_time%",label:this.$root.labels.ph_microsoft_teams_url_date_date},{value:"%zoom_host_url_date%",label:this.$root.labels.ph_zoom_host_url_date},{value:"%zoom_host_url_date_time%",label:this.$root.labels.ph_zoom_host_url_date_date},{value:"%zoom_join_url_date%",label:this.$root.labels.ph_zoom_join_url_date},{value:"%zoom_join_url_date_time%",label:this.$root.labels.ph_zoom_join_url_date_date},{value:"%reservation_name%",label:this.$root.labels.ph_reservation_name,type:"event"},{value:"%reservation_description%",label:this.$root.labels.ph_reservation_description,type:"event"},{value:"%time_zone%",label:this.$root.labels.ph_time_zone,type:"event"}],cartPlaceholders:[{value:"%cart_appointments_details%",label:this.$root.labels.ph_cart_appointments_details}],customFieldsPlaceholders:[],extrasPlaceholders:[],couponsPlaceholders:[]},placeholders:[],linksForParsing:{"%customer_panel_url%":'<a href="%customer_panel_url%">'+this.$root.labels.ph_customer_cabinet_url+"</a>","%employee_panel_url%":'<a href="%employee_panel_url%">'+this.$root.labels.ph_employee_cabinet_url+"</a>","%appointment_cancel_url%":'<a href="%appointment_cancel_url%">'+this.$root.labels.ph_appointment_cancel_url+"</a>","%appointment_approve_url%":'<a href="%appointment_approve_url%">'+this.$root.labels.ph_appointment_approve_url+"</a>","%appointment_reject_url%":'<a href="%appointment_reject_url%">'+this.$root.labels.ph_appointment_reject_url+"</a>","%event_cancel_url%":'<a href="%event_cancel_url%">'+this.$root.labels.ph_event_cancel_url+"</a>"},plainTextLinksForParsing:{"%customer_panel_url%":'<a href="%customer_panel_url%">'+this.$root.labels.ph_customer_cabinet_url+"</a>","%employee_panel_url%":'<a href="%employee_panel_url%">'+this.$root.labels.ph_employee_cabinet_url+"</a>","%appointment_cancel_url%":'<a href="%appointment_cancel_url%">'+this.$root.labels.ph_appointment_cancel_url+"</a>","%appointment_approve_url%":'<a href="%appointment_approve_url%">'+this.$root.labels.ph_appointment_approve_url+"</a>","%appointment_reject_url%":'<a href="%appointment_reject_url%">'+this.$root.labels.ph_appointment_reject_url+"</a>","%event_cancel_url%":'<a href="%event_cancel_url%">'+this.$root.labels.ph_event_cancel_url+"</a>"}}},methods:{getEventPlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.employeePlaceholders.concat(this.groupedPlaceholders.locationPlaceholders.concat(this.groupedPlaceholders.customFieldsPlaceholders.concat(this.groupedPlaceholders.eventPlaceholders.concat(this.groupedPlaceholders.couponsPlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))))))},getAppointmentPlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.employeePlaceholders.concat(this.groupedPlaceholders.locationPlaceholders.concat(this.groupedPlaceholders.customFieldsPlaceholders.concat(this.groupedPlaceholders.couponsPlaceholders.concat(this.groupedPlaceholders.appointmentPlaceholders.concat(this.groupedPlaceholders.categoryPlaceholders.concat(this.groupedPlaceholders.extrasPlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))))))))},getPackagePlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.packagePlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))},getCartPlaceholders:function(){return this.initialGroupedPlaceholders.cartPlaceholders},removePlaceholder:function(e,t){if(e in this.groupedPlaceholders){var i=null;this.groupedPlaceholders[e].forEach(function(e,n){e.value===t&&(i=n)}),null!==i&&this.groupedPlaceholders[e].splice(i,1)}},getParsedCodeLabel:function(e){if("link"===e.parse)for(var t in this.linksForParsing)if(e.value===t)return this.linksForParsing[t];return""},closeDialog:function(){this.$emit("closeDialogPlaceholders")},copyCodeText:function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t),this.notify("",this.$root.labels.placeholder_copied,"info","no-title")},addCustomFieldsPlaceholders:function(e){this.groupedPlaceholders.customFieldsPlaceholders=[];for(var t=0;t<this.customFields.length;t++)"file"===this.customFields[t].type&&"provider"!==e||this.groupedPlaceholders.customFieldsPlaceholders.push({value:"%custom_field_"+this.customFields[t].id+"%",label:this.customFields[t].label})},addCouponsPlaceholders:function(e){if(this.groupedPlaceholders.couponsPlaceholders=[],"customer"===e)for(var t=0;t<this.coupons.length;t++)this.groupedPlaceholders.couponsPlaceholders.push({value:"%coupon_"+this.coupons[t].id+"%",label:this.coupons[t].code+" ["+this.$root.labels.discount+": "+this.coupons[t].discount+", "+this.$root.labels.deduction+": "+this.coupons[t].deduction+this.getCurrencySymbol()+", "+this.$root.labels.expiration_date+": "+(this.coupons[t].expirationDate?this.getFrontedFormattedDate(this.coupons[t].expirationDate):"/")+"]"})},addExtrasPlaceholders:function(){this.groupedPlaceholders.extrasPlaceholders=[];for(var e=0;e<this.categories.length;e++)for(var t=0;t<this.categories[e].serviceList.length;t++)for(var i=0;i<this.categories[e].serviceList[t].extras.length;i++)this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[i].id+"_name%",label:this.categories[e].serviceList[t].extras[i].name}),this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[i].id+"_quantity%",label:this.categories[e].serviceList[t].extras[i].name}),this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[i].id+"_price%",label:this.categories[e].serviceList[t].extras[i].name});this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extras%",label:this.$root.labels.ph_extras}),this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extras_details%",label:this.$root.labels.ph_extras_details})},setPlaceholders:function(e){var t=this;this.groupedPlaceholders=JSON.parse(JSON.stringify(this.initialGroupedPlaceholders)),this.addExtrasPlaceholders(),this.addCouponsPlaceholders(this.userTypeTab),this.addCustomFieldsPlaceholders(this.userTypeTab);var i=function(i){e[i].forEach(function(e){t.removePlaceholder(i,e)})};for(var n in e)i(n)}},computed:{}}},,,function(e,t,i){"use strict";var n=i(735);t.a={mixins:[n.a],data:function(){return{textMode:!1,editorOptions:{modules:{toolbar:[["bold","italic","underline","strike"],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image"]]}},pageUrl:""}},methods:{parseQuillEditorContent:function(e){if(void 0!==e)for(var t=e.quill.root.getElementsByTagName("p"),i=0;i<t.length;i++)for(var n in this.linksForParsing){for(var a=t[i].getElementsByTagName("a"),o=0;o<a.length;o++)a[o].href===this.pageUrl+n&&(a[o].href=n);-1!==t[i].textContent.indexOf(this.linksForParsing[n])&&(t[i].innerHTML=t[i].innerHTML.replace(this.plainTextLinksForParsing[n],this.linksForParsing[n]))}},process:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),this.format(t,0).innerHTML},format:function(e,t){for(var i=new Array(1+t++).join(" "),n=new Array(t-1).join(" "),a=null,o=0;o<e.children.length;o++)a=document.createTextNode("\n"+i),e.insertBefore(a,e.children[o]),this.format(e.children[o],t),e.lastElementChild===e.children[o]&&(a=document.createTextNode("\n"+n),e.appendChild(a));return e},changedContentText:function(e,t,i){i?this[e][i]=this[t][i]:this[e]=this[t]},textModeChanged:function(e,t,i){this.textMode=!this.textMode,this.textMode?i?this[t][i]=this.process(this[e][i].replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")):this[t]=this.process(this[e].replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")):i?this[t][i]="\x3c!-- Content --\x3e"+this[t][i]:this[t]="\x3c!-- Content --\x3e"+this[t],i?this[e][i]=this[t][i]:this[e]=this[t]}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(680),a=i.n(n),o=i(658),s=i(336),r=i(668),l=i(705);t.default={mixins:[o.a,s.a,r.a,l.a],props:{formName:"",urlName:null,urlSubName:{type:String,default:""},isNew:null,entity:null,getParsedEntity:null,updateStash:!1,haveSaveConfirmation:null,hasApplyGloballyVisibility:!1,hasApplyGloballyDeletion:!1,loadSaveButton:!1,calendarConflict:{enable:!1},getCalendarEvents:null,hasIcons:!0,status:null,buttonType:{status:"primary",remove:"danger"},action:{haveAdd:!1,haveEdit:!1,haveStatus:!1,haveBlock:!1,haveRemove:!1,haveRemoveEffect:!1,ignoreDeleteEffect:!1,haveDuplicate:!1,haveSaveWarning:!1},message:{success:{save:null,remove:null,show:null,hide:null},confirm:{remove:null,show:null,hide:null,duplicate:null,save:null,saveDetails:null}},buttonText:null},data:function(){return{form:new a.a,allowedDelete:!0,showDeleteConfirmation:!1,showVisibilityConfirmation:!1,showDuplicateConfirmation:!1,showSaveConfirmation:!1,showAddHoursDialog:!1,confirmCalendarConflict:!1,showBlockConfirmation:!1,deleteEffectMessage:null,dialogLoading:!1}},created:function(){a.a.defaults.axios=this.$http},methods:{getButtonType:function(e){switch(e){case"status":return this.hasIcons?null:this.buttonType.status;case"remove":return this.hasIcons?null:this.buttonType.remove;case"block":case"duplicate":return this.hasIcons?null:this.buttonType.duplicate}},closeDialog:function(){this.$parent.$emit("closeDialog")},closeMessage:function(){this.showSaveConfirmation=!1,this.$emit("closeSaveConfirmation")},onSubmit:function(e){var t=this,i=this.$root;this.$parent.$refs[this.formName].validate(function(n,a){if(!n)return"appointment"===t.formName&&t.handleDialogTabChange(a,"bookings."),"service"===t.formName&&t.handleDialogTabChange(a,"duration"),t.$emit("validationFailCallback"),!1;t.calendarConflict&&t.calendarConflict.enabled?(t.handleSaveConfirmation(),e&&(t.$emit("confirmCalendarConflict"),t.confirmCalendarConflict=!0,t.handleSaveClick(e))):(t.dialogLoading=!0,t.isNew?t.addEntity(e):t.editEntity(e)),t.$root=i})},onSuccess:function(e,t,i){var n=this;this.$parent.$emit("saveCallback",i),setTimeout(function(){n.dialogLoading=!1,n.$parent.$emit("closeDialog")},300),this.notify(e,t,"success")},onError:function(e,t){this.dialogLoading=!1,this.$emit("errorCallback",t)},errorEntityMissing:function(e){return!!("data"in e.response&&"data"in e.response.data&&"object"===e.response.data.data&&"entityMissing"in e.response.data.data&&e.response.data.data.entityMissing)&&(this.dialogLoading=!1,this.notify(this.$root.labels.error,e.response.data.message,"error"),!0)},addEntity:function(e){var t=this,i=null;void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(i=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType}})),this.$http.post(this.$root.getAjaxUrl+"/"+this.urlName,this.getParsedEntity(e),i).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.save,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){if(e.response){if(t.errorEntityMissing(e))return;t.onError("",e.response.data.data)}})},editEntity:function(e){var t=this,i=null;void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(i=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType}})),this.$http.post(this.$root.getAjaxUrl+"/"+this.urlName+this.urlSubName+"/"+this.entity.id,this.getParsedEntity(e),i).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.save,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){if(e.response){if(t.errorEntityMissing(e))return;t.onError("",e.response.data.data)}})},deleteEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/delete/"+this.entity.id,{status:this.status.on,applyGlobally:e}).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.remove,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},showEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/status/"+this.entity.id,{status:this.status.on,applyGlobally:e}).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.show,null),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},hideEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/status/"+this.entity.id,{status:this.status.off,applyGlobally:e}).then(function(){t.onSuccess(t.$root.labels.success,t.message.success.hide,null),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},blockEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/status/"+this.entity.id,{status:"visible"===this.entity.status?this.status.block:this.status.on,applyGlobally:e}).then(function(){t.onSuccess(t.$root.labels.success,t.message.success.block,null),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},duplicateEntity:function(){var e=this;this.dialogLoading=!0,this.$parent.$emit("closeDialog",!0),this.$parent.$emit("duplicateCallback",this.entity),setTimeout(function(){e.showDuplicateConfirmation=!1,e.dialogLoading=!1},600)},handleSaveConfirmation:function(){this.showSaveConfirmation=!this.showSaveConfirmation,this.showVisibilityConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1,this.showBlockConfirmation=!1},handleDuplicateConfirmation:function(){this.showDuplicateConfirmation=!this.showDuplicateConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showVisibilityConfirmation=!1,this.showBlockConfirmation=!1},handleVisibilityConfirmation:function(){this.showVisibilityConfirmation=!this.showVisibilityConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1,this.showBlockConfirmation=!1},handleBlockConfirmation:function(){this.showBlockConfirmation=!this.showBlockConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1,this.showVisibilityConfirmation=!1},handleDeleteConfirmation:function(){var e=this;this.showVisibilityConfirmation=!1,this.showDuplicateConfirmation=!1,this.showSaveConfirmation=!1,this.showBlockConfirmation=!1,this.action.haveRemoveEffect?!1===this.showDeleteConfirmation&&this.$http.get(this.$root.getAjaxUrl+"/"+this.urlName+"/effect/"+this.entity.id).then(function(t){e.allowedDelete=t.data.data.valid||e.ignoreDeleteEffect,e.deleteEffectMessage=t.data.data.message,e.showDeleteConfirmation=!e.showDeleteConfirmation}).catch(function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation,e.deleteEffectMessage=""}):this.showDeleteConfirmation=!this.showDeleteConfirmation},handleSaveClick:function(){var e=this;this.getCalendarEvents&&!this.confirmCalendarConflict?this.getCalendarEvents().then(function(){e.haveSaveConfirmation&&e.haveSaveConfirmation()?e.handleSaveConfirmation():e.onSubmit(!1)}):this.haveSaveConfirmation&&this.haveSaveConfirmation()?this.handleSaveConfirmation():this.onSubmit(!1)},getConfirmSaveButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.save?{yes:this.buttonText.confirm.save.yes,no:this.buttonText.confirm.save.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getConfirmDeleteButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.remove?{yes:this.buttonText.confirm.remove.yes,no:this.buttonText.confirm.remove.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getConfirmBlockButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.status?{yes:this.buttonText.confirm.status.block,no:this.buttonText.confirm.status.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getConfirmStatusButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.status?{yes:this.buttonText.confirm.status.yes,no:this.buttonText.confirm.status.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getActionStatusButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.status:""},getActionRemoveButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.remove:""},getActionDuplicateButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.duplicate:""},handleDialogTabChange:function(e,t){for(var i=Object.keys(e),n=0,a=0;a<i.length;a++)n=i[a].startsWith(t)?n+1:n;n===i.length&&this.$emit("validationTabFailCallback")},isStatusOn:function(){return this.entity.status===this.status.on},isStatusOff:function(){return this.entity.status===this.status.off},isStatusBlocked:function(){return this.entity.status===this.status.block}},computed:{},components:{}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("transition",{attrs:{name:"slide-vertical"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showDeleteConfirmation,expression:"showDeleteConfirmation"}],staticClass:"am-dialog-confirmation"},[i("h3",{directives:[{name:"show",rawName:"v-show",value:e.allowedDelete,expression:"allowedDelete"}]},[e._v("\n "+e._s(e.message.confirm.remove)+"\n ")]),e._v(" "),e.action.haveRemoveEffect&&e.deleteEffectMessage?i("el-alert",{attrs:{title:"",type:"warning",description:e.deleteEffectMessage,"show-icon":"",closable:!1}}):e._e(),e._v(" "),e.hasApplyGloballyDeletion?i("div",{staticClass:"align-left"},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.deleteEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmDeleteButtonText().no)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.deleteEntity(!0)}}},[e._v("\n "+e._s(e.getConfirmDeleteButtonText().yes)+"\n ")])],1):i("div",{staticClass:"align-left"},[e.allowedDelete?i("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]):e._e(),e._v(" "),e.allowedDelete?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.deleteEntity(!1)}}},[e._v("\n "+e._s(e.$root.labels.delete)+"\n ")]):e._e(),e._v(" "),e.allowedDelete?e._e():i("el-button",{staticClass:"am-dialog-action-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation}}})],1)],1)]),e._v(" "),i("transition",{attrs:{name:"slide-vertical"}},[e.status?i("div",{directives:[{name:"show",rawName:"v-show",value:e.showVisibilityConfirmation,expression:"showVisibilityConfirmation"}],staticClass:"am-dialog-confirmation"},[e.isStatusOn()?i("h3",[e._v(e._s(e.message.confirm.hide))]):e.isStatusOff()?i("h3",[e._v(e._s(e.message.confirm.show))]):e._e(),e._v(" "),e.hasApplyGloballyVisibility?i("div",{staticClass:"align-left"},[e.isStatusOn()?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.hideEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().no)+"\n ")]):e._e(),e._v(" "),e.isStatusOn()?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.hideEntity(!0)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().yes)+"\n ")]):e._e(),e._v(" "),e.isStatusOff()?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.showEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().no)+"\n ")]):e._e(),e._v(" "),e.isStatusOff()?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.showEntity(!0)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().yes)+"\n ")]):e._e()],1):i("div",{staticClass:"align-left"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.showVisibilityConfirmation=!e.showVisibilityConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),e.isStatusOn()?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.hideEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().yes)+"\n ")]):e._e(),e._v(" "),e.isStatusOff()?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.showEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().no)+"\n ")]):e._e()],1)]):e._e()]),e._v(" "),i("transition",{attrs:{name:"slide-vertical"}},[e.status?i("div",{directives:[{name:"show",rawName:"v-show",value:e.showBlockConfirmation,expression:"showBlockConfirmation"}],staticClass:"am-dialog-confirmation"},[i("h3",[e._v(e._s(e.message.confirm.block))]),e._v(" "),i("div",{staticClass:"align-left"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.showBlockConfirmation=!e.showBlockConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.blockEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmBlockButtonText().yes)+"\n ")])],1)]):e._e()]),e._v(" "),i("transition",{attrs:{name:"slide-vertical"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showDuplicateConfirmation,expression:"showDuplicateConfirmation"}],staticClass:"am-dialog-confirmation"},[i("h3",[e._v(e._s(e.message.confirm.duplicate))]),e._v(" "),i("div",{staticClass:"align-left"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDuplicateConfirmation=!e.showDuplicateConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.duplicateEntity}},[e._v("\n "+e._s(e.$root.labels.duplicate)+"\n ")])],1)])]),e._v(" "),i("transition",{attrs:{name:"slide-vertical"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showSaveConfirmation,expression:"showSaveConfirmation"}],staticClass:"am-dialog-confirmation"},[e.buttonText?i("h3",{staticStyle:{display:"block"}},[e._v(e._s(e.message.confirm.save)+"\n "),e.message.confirm.saveDetails?i("span",[e._v(e._s(e.message.confirm.saveDetails))]):e._e()]):e._e(),e._v(" "),e.buttonText?i("div",{staticClass:"align-left",staticStyle:{display:"block"}},[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.onSubmit(!1)}}},[e._v("\n "+e._s(e.getConfirmSaveButtonText().no)+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.onSubmit(!0)}}},[e._v("\n "+e._s(e.getConfirmSaveButtonText().yes)+"\n ")])],1):e._e(),e._v(" "),i("el-col",{attrs:{span:22}},[e.action.haveSaveWarning?i("el-alert",{staticStyle:{"word-break":"break-word"},attrs:{title:"",type:"warning",description:e.message.confirm.save,"show-icon":"",closable:!1}}):e._e()],1),e._v(" "),i("el-col",{attrs:{span:2}},[e.showSaveConfirmation?i("el-button",{staticClass:"am-dialog-action-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:function(t){return e.closeMessage()}}}):e._e()],1)],1)]),e._v(" "),e.isNew?i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),e.action.haveAdd&&e.action.haveEdit?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",loading:e.loadSaveButton},on:{click:e.handleSaveClick}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")]):e._e()],1)],1):i("el-row",[i("el-col",{staticClass:"align-left",attrs:{sm:16}},[e.action.haveDuplicate?i("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("duplicate")},on:{click:e.handleDuplicateConfirmation}},[e.hasIcons?i("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.duplicate,src:e.$root.getUrl+"public/img/copy.svg"}}):i("span",[e._v(e._s(e.getActionDuplicateButtonText()))])]):e._e(),e._v(" "),e.action.haveStatus?i("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("status")},on:{click:e.handleVisibilityConfirmation}},[e.hasIcons?i("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.hide,src:e.$root.getUrl+(e.isStatusOff()?"public/img/unhide.svg":"public/img/hide.svg")}}):i("span",[e._v("\n "+e._s(e.getActionStatusButtonText())+"\n ")])]):e._e(),e._v(" "),e.action.haveRemove?i("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("remove")},on:{click:e.handleDeleteConfirmation}},[e.hasIcons?i("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.delete,src:e.$root.getUrl+"public/img/delete.svg"}}):i("span",[e._v("\n "+e._s(e.getActionRemoveButtonText())+"\n ")])]):e._e(),e._v(" "),e.action.haveBlock?i("el-button",{staticClass:"am-button-block",attrs:{type:e.getButtonType("block")},on:{click:e.handleBlockConfirmation}},[i("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.block,src:e.$root.getUrl+(e.isStatusBlocked()?"public/img/unblock.svg":"public/img/block.svg")}}),e._v(" "),i("span",[e._v("\n "+e._s(e.getConfirmBlockButtonText().yes)+"\n ")])]):e._e()],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{sm:!1===e.action.haveRemove&&!1===e.action.haveStatus&&!1===e.action.haveDuplicate?24:8}},[e.action.haveAdd&&e.action.haveEdit?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",loading:e.loadSaveButton},on:{click:e.handleSaveClick}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")]):e._e()],1)],1)],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[i("div",{staticClass:"am-dialog-loader-content"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),i("p",[e._v(e._s(e.$root.labels.loader_message))])])])])},staticRenderFns:[]}},,,,,,function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},function(e,t,i){var n=i(90)(i(953),i(954),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";var n=t;n.version=i(1414).version,n.utils=i(1415),n.rand=i(1021),n.curve=i(926),n.curves=i(1420),n.ec=i(1428),n.eddsa=i(1432)},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(734),a=(i.n(n),i(738));t.default={mixins:[a.a],props:{textModeProp:null,allowImage:!1,hasTranslation:!0,hasQuill:!0,label:"",entity:null,textProperty:"",htmlProperty:""},data:function(){return{textValue:"",isTextMode:!1}},mounted:function(){var e=this;this.textProperty in this.entity&&null!==this.entity[this.textProperty]||(this.entity[this.textProperty]=""),this.htmlProperty in this.entity&&null!==this.entity[this.htmlProperty]||(this.entity[this.htmlProperty]=""),this.$nextTick(function(){e.isTextMode=e.textModeProp,e.textValue=e.entity[e.textProperty],e.entity[e.htmlProperty]=e.entity[e.textProperty],e.entity[e.textProperty].startsWith("\x3c!-- Content --\x3e")&&(e.isTextMode=!1),e.isTextMode&&(e.entity[e.textProperty]=e.entity[e.textProperty].replace("\x3c!-- Content --\x3e",""))})},methods:{readyQuill:function(){this.textProperty in this.entity&&this.entity[this.textProperty]&&(this.entity[this.textProperty]=this.entity[this.textProperty].replace("<p><br></p><ul>","<ul>"),this.entity[this.textProperty]=this.entity[this.textProperty].replace("<p><br></p><ol>","<ol>"))},changedContentQuill:function(e){this.entity[this.textProperty]="\x3c!-- Content --\x3e"+this.entity[this.htmlProperty].replace("\x3c!-- Content --\x3e",""),this.$emit("changeQuillContent",e)},changedContentText:function(){this.entity[this.textProperty]=this.process(this.textValue.replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")),this.entity[this.htmlProperty]=this.entity[this.textProperty]},showDialogTranslate:function(){this.$emit("showDialogTranslate")},textModeChanged:function(){this.isTextMode=!this.isTextMode,this.isTextMode?this.entity[this.textProperty]=this.process(this.entity[this.htmlProperty].replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")):(this.entity[this.textProperty]="\x3c!-- Content --\x3e"+this.entity[this.textProperty],this.entity[this.htmlProperty]=this.entity[this.textProperty]),this.textValue=this.entity[this.textProperty]}},components:{quillEditor:n.quillEditor}}},function(e,t,i){(function(t){var i;"undefined"!=typeof self&&self,i=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=109)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(17),a=i(18),o=i(19),s=i(45),r=i(46),l=i(47),c=i(48),u=i(49),d=i(12),p=i(32),f=i(33),h=i(31),m=i(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:n.default,Format:a.default,Leaf:o.default,Embed:c.default,Scroll:s.default,Block:l.default,Inline:r.default,Text:u.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:h.default}};t.default=g},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var i=this;return t="[Parchment] "+t,(i=e.call(this,t)||this).message=t,i.name=i.constructor.name,i}return a(t,e),t}(Error);t.ParchmentError=o;var s,r={},l={},c={},u={};function d(e,t){var i;if(void 0===t&&(t=s.ANY),"string"==typeof e)i=u[e]||r[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)i=u.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?i=u.block:e&s.LEVEL&s.INLINE&&(i=u.inline);else if(e instanceof HTMLElement){var n=(e.getAttribute("class")||"").split(/\s+/);for(var a in n)if(i=l[n[a]])break;i=i||c[e.tagName]}return null==i?null:t&s.LEVEL&i.scope&&t&s.TYPE&i.scope?i:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(s=t.Scope||(t.Scope={})),t.create=function(e,t){var i=d(e);if(null==i)throw new o("Unable to create "+e+" blot");var n=i;return new n(e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(t),t)},t.find=function e(i,n){return void 0===n&&(n=!1),null==i?null:null!=i[t.DATA_KEY]?i[t.DATA_KEY].blot:n?e(i.parentNode,n):null},t.query=d,t.register=function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(t.length>1)return t.map(function(t){return e(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new o("Invalid definition");if("abstract"===n.blotName)throw new o("Cannot register abstract class");u[n.blotName||n.attrName]=n,"string"==typeof n.keyName?r[n.keyName]=n:(null!=n.className&&(l[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(e){return e.toUpperCase()}):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(function(e){null!=c[e]&&null!=n.className||(c[e]=n)})));return n}},function(e,t,i){var n=i(51),a=i(11),o=i(3),s=i(20),r=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var i={};return 0===e.length?this:(i.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var i={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i)},l.prototype.push=function(e){var t=this.ops.length,i=this.ops[t-1];if(e=o(!0,{},e),"object"==typeof i){if("number"==typeof e.delete&&"number"==typeof i.delete)return this.ops[t-1]={delete:i.delete+e.delete},this;if("number"==typeof i.delete&&null!=e.insert&&(t-=1,"object"!=typeof(i=this.ops[t-1])))return this.ops.unshift(e),this;if(a(e.attributes,i.attributes)){if("string"==typeof e.insert&&"string"==typeof i.insert)return this.ops[t-1]={insert:i.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof i.retain)return this.ops[t-1]={retain:i.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],i=[];return this.forEach(function(n){(e(n)?t:i).push(n)}),[t,i]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e},0)},l.prototype.length=function(){return this.reduce(function(e,t){return e+s.length(t)},0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var i=[],n=s.iterator(this.ops),a=0;a<t&&n.hasNext();){var o;a<e?o=n.next(e-a):(o=n.next(t-a),i.push(o)),a+=s.length(o)}return new l(i)},l.prototype.compose=function(e){for(var t=s.iterator(this.ops),i=s.iterator(e.ops),n=new l;t.hasNext()||i.hasNext();)if("insert"===i.peekType())n.push(i.next());else if("delete"===t.peekType())n.push(t.next());else{var a=Math.min(t.peekLength(),i.peekLength()),o=t.next(a),r=i.next(a);if("number"==typeof r.retain){var c={};"number"==typeof o.retain?c.retain=a:c.insert=o.insert;var u=s.attributes.compose(o.attributes,r.attributes,"number"==typeof o.retain);u&&(c.attributes=u),n.push(c)}else"number"==typeof r.delete&&"number"==typeof o.retain&&n.push(r)}return n.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var i=[this,e].map(function(t){return t.map(function(i){if(null!=i.insert)return"string"==typeof i.insert?i.insert:r;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),o=new l,c=n(i[0],i[1],t),u=s.iterator(this.ops),d=s.iterator(e.ops);return c.forEach(function(e){for(var t=e[1].length;t>0;){var i=0;switch(e[0]){case n.INSERT:i=Math.min(d.peekLength(),t),o.push(d.next(i));break;case n.DELETE:i=Math.min(t,u.peekLength()),u.next(i),o.delete(i);break;case n.EQUAL:i=Math.min(u.peekLength(),d.peekLength(),t);var r=u.next(i),l=d.next(i);a(r.insert,l.insert)?o.retain(i,s.attributes.diff(r.attributes,l.attributes)):o.push(l).delete(i)}t-=i}}),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var i=s.iterator(this.ops),n=new l,a=0;i.hasNext();){if("insert"!==i.peekType())return;var o=i.peek(),r=s.length(o)-i.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(t,r)-r:-1;if(c<0)n.push(i.next());else if(c>0)n.push(i.next(c));else{if(!1===e(n,i.next(1).attributes||{},a))return;a+=1,n=new l}}n.length()>0&&e(n,{},a)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var i=s.iterator(this.ops),n=s.iterator(e.ops),a=new l;i.hasNext()||n.hasNext();)if("insert"!==i.peekType()||!t&&"insert"===n.peekType())if("insert"===n.peekType())a.push(n.next());else{var o=Math.min(i.peekLength(),n.peekLength()),r=i.next(o),c=n.next(o);if(r.delete)continue;c.delete?a.push(c):a.retain(o,s.attributes.transform(r.attributes,c.attributes,t))}else a.retain(s.length(i.next()));return a.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var i=s.iterator(this.ops),n=0;i.hasNext()&&n<=e;){var a=i.peekLength(),o=i.peekType();i.next(),"delete"!==o?("insert"===o&&(n<e||!t)&&(e+=a),n+=a):e-=Math.min(a,e-n)}return e},e.exports=l},function(e,t){"use strict";var i=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var t,a=i.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!o)return!1;for(t in e);return void 0===t||i.call(e,t)};e.exports=function e(){var t,i,n,s,r,l,c=arguments[0],u=1,d=arguments.length,p=!1;for("boolean"==typeof c&&(p=c,c=arguments[1]||{},u=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});u<d;++u)if(null!=(t=arguments[u]))for(i in t)n=c[i],c!==(s=t[i])&&(p&&s&&(o(s)||(r=a(s)))?(r?(r=!1,l=n&&a(n)?n:[]):l=n&&o(n)?n:{},c[i]=e(p,l,s)):void 0!==s&&(c[i]=s));return c}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},o=d(i(3)),s=d(i(2)),r=d(i(0)),l=d(i(16)),c=d(i(6)),u=d(i(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,r.default.Embed),n(t,[{key:"attach",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new r.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var i=r.default.query(e,r.default.Scope.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,t)}},{key:"formatAt",value:function(e,t,i,n){this.format(i,n)}},{key:"insertAt",value:function(e,i,n){if("string"==typeof i&&i.endsWith("\n")){var o=r.default.create(g.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,i.slice(0,-1))}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n)}}]),t}();m.scope=r.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){p(this,t);var i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.cache={},i}return h(t,r.default.Block),n(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(r.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),b(t))},new s.default).insert("\n",b(this))),this.cache.delta}},{key:"deleteAt",value:function(e,i){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,i),this.cache={}}},{key:"formatAt",value:function(e,i,n,o){i<=0||(r.default.query(n,r.default.Scope.BLOCK)?e+i===this.length()&&this.format(n,o):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(i,this.length()-e-1),n,o),this.cache={})}},{key:"insertAt",value:function(e,i,n){if(null!=n)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n);if(0!==i.length){var o=i.split("\n"),s=o.shift();s.length>0&&(e<this.length()-1||null==this.children.tail?a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var r=this;o.reduce(function(e,t){return(r=r.split(e,!0)).insertAt(0,t),t.length},e+s.length)}}},{key:"insertBefore",value:function(e,i){var n=this.children.head;a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i),n instanceof l.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,i){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,i),this.cache={}}},{key:"optimize",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i&&(0===e||e>=this.length()-1)){var n=this.clone();return 0===e?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var o=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,i);return this.cache={},o}}]),t}();function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:b(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,r.default.Embed,u.default],t.bubbleFormats=b,t.BlockEmbed=m,t.default=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();i(50);var s=g(i(2)),r=g(i(14)),l=g(i(8)),c=g(i(9)),u=g(i(0)),d=i(15),p=g(d),f=g(i(3)),h=g(i(10)),m=g(i(34));function g(e){return e&&e.__esModule?e:{default:e}}function b(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var v=(0,h.default)("quill"),y=function(){function e(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=_(t,n),this.container=this.options.container,null==this.container)return v.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var a=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new r.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,function(e){e===l.default.events.TEXT_CHANGE&&i.root.classList.toggle("ql-blank",i.editor.isBlank())}),this.emitter.on(l.default.events.SCROLL_UPDATE,function(e,t){var n=i.selection.lastRange,a=n&&0===n.length?n.index:void 0;w.call(i,function(){return i.editor.update(null,t,a)},e)});var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+a+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&v.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var a=e.attrName||e.blotName;"string"==typeof a?this.register("formats/"+a,e,t):Object.keys(e).forEach(function(n){i.register(n,e[n],t)})}else null==this.imports[e]||n||v.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var i=e;(e=document.createElement("div")).classList.add(i)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,i){var n=this,o=k(e,t,i),s=a(o,4);return e=s[0],t=s[1],i=s[3],w.call(this,function(){return n.editor.deleteText(e,t)},i,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,function(){var n=i.getSelection(!0),a=new s.default;if(null==n)return a;if(u.default.query(e,u.default.Scope.BLOCK))a=i.editor.formatLine(n.index,n.length,b({},e,t));else{if(0===n.length)return i.selection.format(e,t),a;a=i.editor.formatText(n.index,n.length,b({},e,t))}return i.setSelection(n,l.default.sources.SILENT),a},n)}},{key:"formatLine",value:function(e,t,i,n,o){var s,r=this,l=k(e,t,i,n,o),c=a(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],w.call(this,function(){return r.editor.formatLine(e,t,s)},o,e,0)}},{key:"formatText",value:function(e,t,i,n,o){var s,r=this,l=k(e,t,i,n,o),c=a(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],w.call(this,function(){return r.editor.formatText(e,t,s)},o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=void 0;i="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var n=this.container.getBoundingClientRect();return{bottom:i.bottom-n.top,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,width:i.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,i=k(e,t),n=a(i,2);return e=n[0],t=n[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,i=k(e,t),n=a(i,2);return e=n[0],t=n[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,i,n){var a=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,function(){return a.editor.insertEmbed(t,i,n)},o,t)}},{key:"insertText",value:function(e,t,i,n,o){var s,r=this,l=k(e,0,i,n,o),c=a(l,4);return e=c[0],s=c[2],o=c[3],w.call(this,function(){return r.editor.insertText(e,t,s)},o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,i){this.clipboard.dangerouslyPasteHTML(e,t,i)}},{key:"removeFormat",value:function(e,t,i){var n=this,o=k(e,t,i),s=a(o,4);return e=s[0],t=s[1],i=s[3],w.call(this,function(){return n.editor.removeFormat(e,t)},i,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,function(){e=new s.default(e);var i=t.getLength(),n=t.editor.deleteText(0,i),a=t.editor.applyDelta(e),o=a.ops[a.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),a.delete(1)),n.compose(a)},i)}},{key:"setSelection",value:function(t,i,n){if(null==t)this.selection.setRange(null,i||e.sources.API);else{var o=k(t,i,n),s=a(o,4);t=s[0],i=s[1],n=s[3],this.selection.setRange(new d.Range(t,i),n),n!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,i=(new s.default).insert(e);return this.setContents(i,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,function(){return e=new s.default(e),t.editor.applyDelta(e,i)},i,!0)}}]),e}();function _(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var i=(0,f.default)(!0,{},t.theme.DEFAULTS);[i,t].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var n=Object.keys(i.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var i=y.import("modules/"+t);return null==i?v.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=i.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},y.DEFAULTS,{modules:n},i,t),["bounds","container","scrollingContainer"].forEach(function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),t.modules=Object.keys(t.modules).reduce(function(e,i){return t.modules[i]&&(e[i]=t.modules[i]),e},{}),t}function w(e,t,i,n){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new s.default;var a=null==i?null:this.getSelection(),o=this.editor.delta,r=e();if(null!=a&&(!0===i&&(i=a.index),null==n?a=x(a,r,t):0!==n&&(a=x(a,i,n,t)),this.setSelection(a,l.default.sources.SILENT)),r.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,r,o,t];if((c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT)(u=this.emitter).emit.apply(u,d)}return r}function k(e,t,i,a,o){var s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=a,a=i,i=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=a,a=i,i=t,t=0),"object"===(void 0===i?"undefined":n(i))?(s=i,o=a):"string"==typeof i&&(null!=a?s[i]=a:o=i),[e,t,s,o=o||l.default.sources.API]}function x(e,t,i,n){if(null==e)return null;var o=void 0,r=void 0;if(t instanceof s.default){var c=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,n!==l.default.sources.USER)}),u=a(c,2);o=u[0],r=u[1]}else{var p=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&n===l.default.sources.USER?e:i>=0?e+i:Math.max(t,e+i)}),f=a(p,2);o=f[0],r=f[1]}return new d.Range(o,r-o)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=l.default.events,y.sources=l.default.sources,y.version="1.3.6",y.imports={delta:s.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=_,t.overload=k,t.default=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},o=r(i(7)),s=r(i(0));function r(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Inline),n(t,[{key:"formatAt",value:function(e,i,n,o){if(t.compare(this.statics.blotName,n)<0&&s.default.query(n,s.default.Scope.BLOT)){var r=this.isolate(e,i);o&&r.wrap(n,o)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,i,n,o)}},{key:"optimize",value:function(e){if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i),i.wrap(this)}}}],[{key:"compare",value:function(e,i){var n=t.order.indexOf(e),a=t.order.indexOf(i);return n>=0||a>=0?n-a:e===i?0:e<i?-1:1}}]),t}();l.allowedChildren=[l,s.default.Embed,o.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0),o=(n=a)&&n.__esModule?n:{default:n};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Text),t}();t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=o(i(54));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,o(i(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){var i;e.__quill&&e.__quill.emitter&&(i=e.__quill.emitter).handleDOM.apply(i,t)})})});var r=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",s.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"emit",value:function(){s.log.apply(s,arguments),function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(this.listeners[e.type]||[]).forEach(function(t){var n=t.node,a=t.handler;(e.target===n||n.contains(e.target))&&a.apply(void 0,[e].concat(i))})}},{key:"listenDOM",value:function(e,t,i){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:i})}}]),t}();r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=i};n.DEFAULTS={},t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["error","warn","log","info"],a="warn";function o(e){if(n.indexOf(e)<=n.indexOf(a)){for(var t,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];(t=console)[e].apply(t,o)}}function s(e){return n.reduce(function(t,i){return t[i]=o.bind(console,i,e),t},{})}o.level=s.level=function(e){a=e},t.default=s},function(e,t,i){var n=Array.prototype.slice,a=i(52),o=i(53),s=e.exports=function(e,t,i){return i||(i={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?i.strict?e===t:e==t:function(e,t,i){var c,u;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=n.call(e),t=n.call(t),s(e,t,i));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=a(e),p=a(t)}catch(e){return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),c=d.length-1;c>=0;c--)if(d[c]!=p[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!s(e[u],t[u],i))return!1;return typeof e==typeof t}(e,t,i))};function r(e){return null===e||void 0===e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),a=function(){function e(e,t,i){void 0===i&&(i={}),this.attrName=e,this.keyName=t;var a=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=i.scope?this.scope=i.scope&n.Scope.LEVEL|a:this.scope=n.Scope.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=n.query(e,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=d(i(2)),r=d(i(0)),l=d(i(4)),c=d(i(6)),u=d(i(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,c.default),t}();m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,l.default),a(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce(function(t,i){return t.insert(i).insert("\n",e.formats())},new s.default)}},{key:"format",value:function(e,i){if(e!==this.statics.blotName||!i){var a=this.descendant(u.default,this.length()-1),s=n(a,1)[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}},{key:"formatAt",value:function(e,i,n,a){if(0!==i&&null!=r.default.query(n,r.default.Scope.BLOCK)&&(n!==this.statics.blotName||a!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+i)){var s=this.newlineIndex(e,!0)+1,l=o-s+1,c=this.isolate(s,l),u=c.next;c.format(n,a),u instanceof t&&u.formatAt(0,e-s+i-l,n,a)}}}},{key:"insertAt",value:function(e,t,i){if(null==i){var a=this.descendant(u.default,e),o=n(a,2),s=o[0],r=o[1];s.insertAt(r,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(r.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===i.statics.formats(i.domNode)&&(i.optimize(e),i.moveChildren(this),i.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var t=r.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof r.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(e){var i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return i.setAttribute("spellcheck",!1),i}},{key:"formats",value:function(){return!0}}]),t}();g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=b(i(2)),r=b(i(20)),l=b(i(0)),c=b(i(13)),u=b(i(24)),d=i(4),p=b(d),f=b(i(16)),h=b(i(21)),m=b(i(11)),g=b(i(3));function b(e){return e&&e.__esModule?e:{default:e}}var v=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,i=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var i=(0,h.default)(t.attributes);return delete i.image,e.insert({image:t.attributes.image},i)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)},new s.default)}(e)).reduce(function(e,s){var c=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var f=s.insert;f.endsWith("\n")&&i&&(i=!1,f=f.slice(0,-1)),e>=o&&!f.endsWith("\n")&&(i=!0),t.scroll.insertAt(e,f);var h=t.scroll.line(e),m=a(h,2),b=m[0],v=m[1],y=(0,g.default)({},(0,d.bubbleFormats)(b));if(b instanceof p.default){var _=b.descendant(l.default.Leaf,v),w=a(_,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(w))}u=r.default.attributes.diff(y,u)||{}}else if("object"===n(s.insert)){var k=Object.keys(s.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,s.insert[k])}o+=c}return Object.keys(u).forEach(function(i){t.scroll.formatAt(e,c,i,u[i])}),e+c},0),e.reduce(function(e,i){return"number"==typeof i.delete?(t.scroll.deleteAt(e,i.delete),e):e+(i.retain||i.insert.length||1)},0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach(function(a){if(null==i.scroll.whitelist||i.scroll.whitelist[a]){var o=i.scroll.lines(e,Math.max(t,1)),s=t;o.forEach(function(t){var o=t.length();if(t instanceof c.default){var r=e-t.offset(i.scroll),l=t.newlineIndex(r+s)-r+1;t.formatAt(r,l,a,n[a])}else t.format(a,n[a]);s-=o})}}),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,h.default)(n)))}},{key:"formatText",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach(function(a){i.scroll.formatAt(e,t,a,n[a])}),this.update((new s.default).retain(e).retain(t,(0,h.default)(n)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],n=[];0===t?this.scroll.path(e).forEach(function(e){var t=a(e,1)[0];t instanceof p.default?i.push(t):t instanceof l.default.Leaf&&n.push(t)}):(i=this.scroll.lines(e,t),n=this.scroll.descendants(l.default.Leaf,e,t));var o=[i,n].map(function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var i=e.shift();if(null==i)return t;t=_((0,d.bubbleFormats)(i),t)}return t});return g.default.apply(g.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter(function(e){return"string"==typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,t,i){return this.scroll.insertAt(e,t,i),this.update((new s.default).retain(e).insert(function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},t,i)))}},{key:"insertText",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach(function(a){i.scroll.formatAt(e,t.length,a,n[a])}),this.update((new s.default).retain(e).insert(t,(0,h.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===p.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof f.default)}},{key:"removeFormat",value:function(e,t){var i=this.getText(e,t),n=this.scroll.line(e+t),o=a(n,2),r=o[0],l=o[1],u=0,d=new s.default;null!=r&&(u=r instanceof c.default?r.newlineIndex(l)-l+1:r.length()-l,d=r.delta().slice(l,l+u-1).insert("\n"));var p=this.getContents(e,t+u).diff((new s.default).insert(i).concat(d)),f=(new s.default).retain(e).concat(p);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(v)&&l.default.find(t[0].target)){var a=l.default.find(t[0].target),o=(0,d.bubbleFormats)(a),r=a.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),p=(new s.default).insert(c),f=(new s.default).insert(a.value());e=(new s.default).retain(r).concat(p.diff(f,i)).reduce(function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)},new s.default),this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,i));return e}}]),e}();function _(e,t){return Object.keys(t).reduce(function(i,n){return null==e[n]?i:(t[n]===e[n]?i[n]=t[n]:Array.isArray(t[n])?t[n].indexOf(e[n])<0&&(i[n]=t[n].concat([e[n]])):i[n]=[t[n],e[n]],i)},{})}t.default=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=c(i(0)),s=c(i(21)),r=c(i(11)),l=c(i(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,c(i(10)).default)("quill:selection"),f=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=i},h=function(){function e(t,i){var n=this;d(this,e),this.emitter=i,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){n.mouseDown||setTimeout(n.update.bind(n,l.default.sources.USER),1)}),this.emitter.on(l.default.events.EDITOR_CHANGE,function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&n.update(l.default.sources.SILENT)}),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(l.default.events.SCROLL_UPDATE,function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var i=t.range,a=i.startNode,o=i.startOffset,s=i.endNode,r=i.endOffset;n.setNativeRange(a,o,s,r)}}),this.update(l.default.sources.SILENT)}return a(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0}),this.root.addEventListener("compositionend",function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1,e.update(l.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var i=this.getNativeRange();if(null!=i&&i.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(i.start.node!==this.cursor.textNode){var n=o.default.find(i.start.node,!1);if(null==n)return;if(n instanceof o.default.Leaf){var a=n.split(i.start.offset);n.parent.insertBefore(this.cursor,a)}else n.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.scroll.length();e=Math.min(e,i-1),t=Math.min(e+t,i-1)-e;var a=void 0,o=this.scroll.leaf(e),s=n(o,2),r=s[0],l=s[1];if(null==r)return null;var c=r.position(l,!0),u=n(c,2);a=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(a,l);var p=this.scroll.leaf(e+t),f=n(p,2);if(r=f[0],l=f[1],null==r)return null;var h=r.position(l,!0),m=n(h,2);return a=m[0],l=m[1],d.setEnd(a,l),d.getBoundingClientRect()}var g="left",b=void 0;return a instanceof Text?(l<a.data.length?(d.setStart(a,l),d.setEnd(a,l+1)):(d.setStart(a,l-1),d.setEnd(a,l),g="right"),b=d.getBoundingClientRect()):(b=r.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:b.top+b.height,height:b.height,left:b[g],right:b[g],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var i=this.normalizeNative(t);return p.info("getNativeRange",i),i}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,i=[[e.start.node,e.start.offset]];e.native.collapsed||i.push([e.end.node,e.end.offset]);var a=i.map(function(e){var i=n(e,2),a=i[0],s=i[1],r=o.default.find(a,!0),l=r.offset(t.scroll);return 0===s?l:r instanceof o.default.Container?l+r.length():l+r.index(a,s)}),s=Math.min(Math.max.apply(Math,u(a)),this.scroll.length()-1),r=Math.min.apply(Math,[s].concat(u(a)));return new f(r,s-r)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(function(e){for(var t=e.node,i=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>i)t=t.childNodes[i],i=0;else{if(t.childNodes.length!==i)break;i=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=i}),t}},{key:"rangeToNative",value:function(e){var t=this,i=e.collapsed?[e.index]:[e.index,e.index+e.length],a=[],o=this.scroll.length();return i.forEach(function(e,i){e=Math.min(o-1,e);var s,r=t.scroll.leaf(e),l=n(r,2),c=l[0],u=l[1],d=c.position(u,0!==i),p=n(d,2);s=p[0],u=p[1],a.push(s,u)}),a.length<2&&(a=a.concat(a)),a}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var i=this.getBounds(t.index,t.length);if(null!=i){var a=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,a)),s=n(o,1)[0],r=s;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,a));r=n(l,1)[0]}if(null!=s&&null!=r){var c=e.getBoundingClientRect();i.top<c.top?e.scrollTop-=c.top-i.top:i.bottom>c.bottom&&(e.scrollTop+=i.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,i,n),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=i.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||a||e!==s.startContainer||t!==s.startOffset||i!==s.endContainer||n!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==i.tagName&&(n=[].indexOf.call(i.parentNode.childNodes,i),i=i.parentNode);var r=document.createRange();r.setStart(e,t),r.setEnd(i,n),o.removeAllRanges(),o.addRange(r)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(i=t,t=!1),p.info("setRange",e),null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,u(n).concat([t]))}else this.setNativeRange(null);this.update(i)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,i=this.getRange(),a=n(i,2),o=a[0],c=a[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,r.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e];if((u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(p)),e!==l.default.sources.SILENT)(d=this.emitter).emit.apply(d,p)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(0),s=(n=o)&&n.__esModule?n:{default:n};var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Embed),a(t,[{key:"insertInto",value:function(e,i){0===e.children.length?function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}();r.blotName="break",r.tagName="BR",t.default=r},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(44),s=i(30),r=i(1),l=function(e){function t(t){var i=e.call(this,t)||this;return i.build(),i}return a(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var i=c(t);e.insertBefore(i,e.children.head||void 0)}catch(e){if(e instanceof r.ParchmentError)return;throw e}})},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,function(e,t,i){e.deleteAt(t,i)})},t.prototype.descendant=function(e,i){var n=this.children.find(i),a=n[0],o=n[1];return null==e.blotName&&e(a)||null!=e.blotName&&a instanceof e?[a,o]:a instanceof t?a.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,i,n){void 0===i&&(i=0),void 0===n&&(n=Number.MAX_VALUE);var a=[],o=n;return this.children.forEachAt(i,n,function(i,n,s){(null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,n,o))),o-=s}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,i,n){this.children.forEachAt(e,t,function(e,t,a){e.formatAt(t,a,i,n)})},t.prototype.insertAt=function(e,t,i){var n=this.children.find(e),a=n[0],o=n[1];if(a)a.insertAt(o,t,i);else{var s=null==i?r.create("text",t):r.create(t,i);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new r.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)},t.prototype.moveChildren=function(e,t){this.children.forEach(function(i){e.insertBefore(i,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var i=r.create(this.statics.defaultChild);this.appendChild(i),i.optimize(t)}else this.remove()},t.prototype.path=function(e,i){void 0===i&&(i=!1);var n=this.children.find(e,i),a=n[0],o=n[1],s=[[this,e]];return a instanceof t?s.concat(a.path(o,i)):(null!=a&&s.push([a,o]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(i){i instanceof t&&i.moveChildren(this),e.prototype.replace.call(this,i)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var i=this.clone();return this.parent.insertBefore(i,this.next),this.children.forEachAt(e,this.length(),function(e,n,a){e=e.split(n,t),i.appendChild(e)}),i},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var i=this,n=[],a=[];e.forEach(function(e){e.target===i.domNode&&"childList"===e.type&&(n.push.apply(n,e.addedNodes),a.push.apply(a,e.removedNodes))}),a.forEach(function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=r.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==i.domNode||t.detach())}}),n.filter(function(e){return e.parentNode==i.domNode}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var t=null;null!=e.nextSibling&&(t=r.find(e.nextSibling));var n=c(e);n.next==t&&null!=n.next||(null!=n.parent&&n.parent.removeChild(i),i.insertBefore(n,t||void 0))})},t}(s.default);function c(e){var t=r.find(e);if(null==t)try{t=r.create(e)}catch(i){t=r.create(r.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(12),s=i(31),r=i(17),l=i(1),c=function(e){function t(t){var i=e.call(this,t)||this;return i.attributes=new s.default(i.domNode),i}return a(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var i=l.query(e);i instanceof o.default?this.attributes.attribute(i,t):t&&(null==i||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,i){var n=e.prototype.replaceWith.call(this,t,i);return this.attributes.copy(n),n},t.prototype.update=function(t,i){var n=this;e.prototype.update.call(this,t,i),t.some(function(e){return e.target===n.domNode&&"attributes"===e.type})&&this.attributes.build()},t.prototype.wrap=function(i,n){var a=e.prototype.wrap.call(this,i,n);return a instanceof t&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},t}(r.default);t.default=c},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(30),s=i(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var i=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(i+=1),[this.parent.domNode,i]},t.prototype.value=function(){return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e;var e},t.scope=s.Scope.INLINE_BLOT,t}(o.default);t.default=r},function(e,t,i){var n=i(11),a=i(3),o={attributes:{compose:function(e,t,i){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=a(!0,{},t);for(var o in i||(n=Object.keys(n).reduce(function(e,t){return null!=n[t]&&(e[t]=n[t]),e},{})),e)void 0!==e[o]&&void 0===t[o]&&(n[o]=e[o]);return Object.keys(n).length>0?n:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var i=Object.keys(e).concat(Object.keys(t)).reduce(function(i,a){return n(e[a],t[a])||(i[a]=void 0===t[a]?null:t[a]),i},{});return Object.keys(i).length>0?i:void 0},transform:function(e,t,i){if("object"!=typeof e)return t;if("object"==typeof t){if(!i)return t;var n=Object.keys(t).reduce(function(i,n){return void 0===e[n]&&(i[n]=t[n]),i},{});return Object.keys(n).length>0?n:void 0}}},iterator:function(e){return new s(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var i=this.offset,n=o.length(t);if(e>=n-i?(e=n-i,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var a={};return t.attributes&&(a.attributes=t.attributes),"number"==typeof t.retain?a.retain=e:"string"==typeof t.insert?a.insert=t.insert.substr(i,e):a.insert=t.insert,a}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.exports=o},function(e,i){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var i,n,a;try{i=Map}catch(e){i=function(){}}try{n=Set}catch(e){n=function(){}}try{a=Promise}catch(e){a=function(){}}function o(s,l,c,u,d){"object"==typeof l&&(c=l.depth,u=l.prototype,d=l.includeNonEnumerable,l=l.circular);var p=[],f=[],h=void 0!==t;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function s(c,m){if(null===c)return null;if(0===m)return c;var g,b;if("object"!=typeof c)return c;if(e(c,i))g=new i;else if(e(c,n))g=new n;else if(e(c,a))g=new a(function(e,t){c.then(function(t){e(s(t,m-1))},function(e){t(s(e,m-1))})});else if(o.__isArray(c))g=[];else if(o.__isRegExp(c))g=new RegExp(c.source,r(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(o.__isDate(c))g=new Date(c.getTime());else{if(h&&t.isBuffer(c))return g=new t(c.length),c.copy(g),g;e(c,Error)?g=Object.create(c):void 0===u?(b=Object.getPrototypeOf(c),g=Object.create(b)):(g=Object.create(u),b=u)}if(l){var v=p.indexOf(c);if(-1!=v)return f[v];p.push(c),f.push(g)}for(var y in e(c,i)&&c.forEach(function(e,t){var i=s(t,m-1),n=s(e,m-1);g.set(i,n)}),e(c,n)&&c.forEach(function(e){var t=s(e,m-1);g.add(t)}),c){var _;b&&(_=Object.getOwnPropertyDescriptor(b,y)),_&&null==_.set||(g[y]=s(c[y],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(y=0;y<w.length;y++){var k=w[y];(!(S=Object.getOwnPropertyDescriptor(c,k))||S.enumerable||d)&&(g[k]=s(c[k],m-1),S.enumerable||Object.defineProperty(g,k,{enumerable:!1}))}}if(d){var x=Object.getOwnPropertyNames(c);for(y=0;y<x.length;y++){var S,C=x[y];(S=Object.getOwnPropertyDescriptor(c,C))&&S.enumerable||(g[C]=s(c[C],m-1),Object.defineProperty(g,C,{enumerable:!1}))}}return g}(s,c)}function s(e){return Object.prototype.toString.call(e)}function r(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=s,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===s(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===s(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===s(e)},o.__getRegExpFlags=r,o}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=f(i(0)),r=f(i(8)),l=i(4),c=f(l),u=f(i(16)),d=f(i(13)),p=f(i(25));function f(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof l.BlockEmbed}var m=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.emitter=i.emitter,Array.isArray(i.whitelist)&&(n.whitelist=i.whitelist.reduce(function(e,t){return e[t]=!0,e},{})),n.domNode.addEventListener("DOMNodeInserted",function(){}),n.optimize(),n.enable(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Scroll),a(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,i){var a=this.line(e),s=n(a,2),r=s[0],c=s[1],p=this.line(e+i),f=n(p,1)[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,i),null!=f&&r!==f&&c>0){if(r instanceof l.BlockEmbed||f instanceof l.BlockEmbed)return void this.optimize();if(r instanceof d.default){var h=r.newlineIndex(r.length(),!0);if(h>-1&&(r=r.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof u.default?null:f.children.head;r.moveChildren(f,g),r.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,i,n,a){(null==this.whitelist||this.whitelist[n])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,i,n,a),this.optimize())}},{key:"insertAt",value:function(e,i,n){if(null==n||null==this.whitelist||this.whitelist[i]){if(e>=this.length())if(null==n||null==s.default.query(i,s.default.Scope.BLOCK)){var a=s.default.create(this.statics.defaultChild);this.appendChild(a),null==n&&i.endsWith("\n")&&(i=i.slice(0,-1)),a.insertAt(0,i,n)}else{var r=s.default.create(i,n);this.appendChild(r)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n);this.optimize()}}},{key:"insertBefore",value:function(e,i){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var n=s.default.create(this.statics.defaultChild);n.appendChild(e),e=n}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,i,n){var a=[],o=n;return t.children.forEachAt(i,n,function(t,i,n){h(t)?a.push(t):t instanceof s.default.Container&&(a=a.concat(e(t,i,o))),o-=n}),a}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,i),e.length>0&&this.emitter.emit(r.default.events.SCROLL_OPTIMIZE,e,i))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var i=r.default.sources.USER;"string"==typeof e&&(i=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(r.default.events.SCROLL_BEFORE_UPDATE,i,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(r.default.events.SCROLL_UPDATE,i,e)}}}]),t}();m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,p.default],t.default=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=m(i(21)),r=m(i(11)),l=m(i(3)),c=m(i(2)),u=m(i(20)),d=m(i(0)),p=m(i(5)),f=m(i(10)),h=m(i(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var b=(0,f.default)("quill:keyboard"),v=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.bindings={},Object.keys(n.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])}),n.addBinding({key:t.keys.ENTER,shiftKey:null},S),n.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),n.addBinding({key:t.keys.DELETE},{collapsed:!0},k)):(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),n.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),n.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},x),n.addBinding({key:t.keys.DELETE},{collapsed:!1},x),n.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),n.listen(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,h.default),o(t,null,[{key:"match",value:function(e,t){return t=P(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(i){return!!t[i]!==e[i]&&null!==t[i]})&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=P(e);if(null==n||null==n.key)return b.warn("Attempted to add invalid keyboard binding",n);"function"==typeof t&&(t={handler:t}),"function"==typeof i&&(i={handler:i}),n=(0,l.default)(n,t,i),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(i){if(!i.defaultPrevented){var o=i.which||i.keyCode,s=(e.bindings[o]||[]).filter(function(e){return t.match(i,e)});if(0!==s.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=a(c,2),p=u[0],f=u[1],h=e.quill.getLeaf(l.index),m=a(h,2),g=m[0],b=m[1],v=0===l.length?[g,b]:e.quill.getLeaf(l.index+l.length),y=a(v,2),_=y[0],w=y[1],k=g instanceof d.default.Text?g.value().slice(0,b):"",x=_ instanceof d.default.Text?_.value().slice(w):"",S={collapsed:0===l.length,empty:0===l.length&&p.length()<=1,format:e.quill.getFormat(l),offset:f,prefix:k,suffix:x};s.some(function(t){if(null!=t.collapsed&&t.collapsed!==S.collapsed)return!1;if(null!=t.empty&&t.empty!==S.empty)return!1;if(null!=t.offset&&t.offset!==S.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==S.format[e]}))return!1}else if("object"===n(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=S.format[e]:!1===t.format[e]?null==S.format[e]:(0,r.default)(t.format[e],S.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(S.prefix))&&(!(null!=t.suffix&&!t.suffix.test(S.suffix))&&!0!==t.handler.call(e,l,S))})&&i.preventDefault()}}}})}}]),t}();function _(e,t){var i,n=e===y.keys.LEFT?"prefix":"suffix";return g(i={key:e,shiftKey:t,altKey:null},n,/^$/),g(i,"handler",function(i){var n=i.index;e===y.keys.RIGHT&&(n+=i.length+1);var o=this.quill.getLeaf(n);return!(a(o,1)[0]instanceof d.default.Embed)||(e===y.keys.LEFT?t?this.quill.setSelection(i.index-1,i.length+1,p.default.sources.USER):this.quill.setSelection(i.index-1,p.default.sources.USER):t?this.quill.setSelection(i.index,i.length+1,p.default.sources.USER):this.quill.setSelection(i.index+i.length+1,p.default.sources.USER),!1)}),i}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var i=this.quill.getLine(e.index),n=a(i,1)[0],o={};if(0===t.offset){var s=this.quill.getLine(e.index-1),r=a(s,1)[0];if(null!=r&&r.length()>1){var l=n.formats(),c=this.quill.getFormat(e.index-1,1);o=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-d,d,o,p.default.sources.USER),this.quill.focus()}}function k(e,t){var i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-i)){var n={},o=0,s=this.quill.getLine(e.index),r=a(s,1)[0];if(t.offset>=r.length()-1){var l=this.quill.getLine(e.index+1),c=a(l,1)[0];if(c){var d=r.formats(),f=this.quill.getFormat(e.index,1);n=u.default.attributes.diff(d,f)||{},o=c.length()}}this.quill.deleteText(e.index,i,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index+o-1,i,n,p.default.sources.USER)}}function x(e){var t=this.quill.getLines(e),i={};if(t.length>1){var n=t[0].formats(),a=t[t.length-1].formats();i=u.default.attributes.diff(a,n)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index,1,i,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function S(e,t){var i=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(t.format).reduce(function(e,i){return d.default.query(i,d.default.Scope.BLOCK)&&!Array.isArray(t.format[i])&&(e[i]=t.format[i]),e},{});this.quill.insertText(e.index,"\n",n,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==n[e]&&(Array.isArray(t.format[e])||"link"!==e&&i.quill.format(e,t.format[e],p.default.sources.USER))})}function C(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var i=d.default.query("code-block"),n=t.index,o=t.length,s=this.quill.scroll.descendant(i,n),r=a(s,2),l=r[0],c=r[1];if(null!=l){var u=this.quill.getIndex(l),f=l.newlineIndex(c,!0)+1,h=l.newlineIndex(u+c+o),m=l.domNode.textContent.slice(f,h).split("\n");c=0,m.forEach(function(t,a){e?(l.insertAt(f+c,i.TAB),c+=i.TAB.length,0===a?n+=i.TAB.length:o+=i.TAB.length):t.startsWith(i.TAB)&&(l.deleteAt(f+c,i.TAB.length),c-=i.TAB.length,0===a?n-=i.TAB.length:o-=i.TAB.length),c+=t.length+1}),this.quill.update(p.default.sources.USER),this.quill.setSelection(n,o,p.default.sources.SILENT)}}}}function $(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,i){this.quill.format(e,!i.format[e],p.default.sources.USER)}}}function P(e){if("string"==typeof e||"number"==typeof e)return P({key:e});if("object"===(void 0===e?"undefined":n(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[v]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:$("bold"),italic:$("italic"),underline:$("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":C(!0),"outdent code-block":C(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),i=a(t,2),n=i[0],o=i[1],s=(0,l.default)({},n.formats(),{list:"checked"}),r=(new c.default).retain(e.index).insert("\n",s).retain(n.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(r,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var i=this.quill.getLine(e.index),n=a(i,2),o=n[0],s=n[1],r=(new c.default).retain(e.index).insert("\n",t.format).retain(o.length()-s-1).retain(1,{header:null});this.quill.updateContents(r,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var i=t.prefix.length,n=this.quill.getLine(e.index),o=a(n,2),s=o[0],r=o[1];if(r>i)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-r).delete(i+1).retain(s.length()-2-r).retain(1,{list:l});this.quill.updateContents(u,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-i,p.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),i=a(t,2),n=i[0],o=i[1],s=(new c.default).retain(e.index+n.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,p.default.sources.USER)}},"embed left":_(y.keys.LEFT,!1),"embed left shift":_(y.keys.LEFT,!0),"embed right":_(y.keys.RIGHT,!1),"embed right shift":_(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=l(i(0)),r=l(i(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.selection=i,n.textNode=document.createTextNode(t.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Embed),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,i){if(0!==this._length)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i);for(var n=this,o=0;null!=n&&n.statics.scope!==s.default.Scope.BLOCK_BLOT;)o+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=t.CONTENTS.length,n.optimize(),n.formatAt(o,t.CONTENTS.length,e,i),this._length=0)}},{key:"index",value:function(e,i){return e===this.textNode?0:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,i)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,i=this.selection.getNativeRange(),a=void 0,o=void 0,l=void 0;if(null!=i&&i.start.node===e&&i.end.node===e){var c=[e,i.start.offset,i.end.offset];a=c[0],o=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof r.default?(a=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var d=[o,l].map(function(e){return Math.max(0,Math.min(a.data.length,e-1))}),p=n(d,2);return o=p[0],l=p[1],{startNode:a,startOffset:o,endNode:a,endOffset:l}}}}},{key:"update",value:function(e,t){var i=this;if(e.some(function(e){return"characterData"===e.type&&e.target===i.textNode})){var n=this.restore();n&&(t.range=n)}}},{key:"value",value:function(){return""}}]),t}();c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(i(0)),a=i(4),o=s(a);function s(e){return e&&e.__esModule?e:{default:e}}var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default.Container),t}();r.allowedChildren=[o.default,a.BlockEmbed,r],t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(0),s=(n=o)&&n.__esModule?n:{default:n};var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Attributor.Style),a(t,[{key:"value",value:function(e){var i=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return i.startsWith("rgb(")?(i=i.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+i.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")):i}}]),t}(),l=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),c=new r("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=r,t.ColorClass=l,t.ColorStyle=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(6),r=(n=s)&&n.__esModule?n:{default:n};var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),a(t,[{key:"format",value:function(e,i){if(e!==this.statics.blotName||!i)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i);i=this.constructor.sanitize(i),this.domNode.setAttribute("href",i)}}],[{key:"create",value:function(e){var i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),i.setAttribute("href",e),i.setAttribute("target","_blank"),i}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}();function c(e,t){var i=document.createElement("a");i.href=e;var n=i.href.slice(0,i.href.indexOf(":"));return t.indexOf(n)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=r(i(23)),s=r(i(107));function r(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(e){switch(e.keyCode){case o.default.keys.ENTER:i.togglePicker();break;case o.default.keys.ESCAPE:i.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return a(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,i=document.createElement("span");return i.tabIndex="0",i.setAttribute("role","button"),i.classList.add("ql-picker-item"),e.hasAttribute("value")&&i.setAttribute("data-value",e.getAttribute("value")),e.textContent&&i.setAttribute("data-label",e.textContent),i.addEventListener("click",function(){t.selectItem(i,!0)}),i.addEventListener("keydown",function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(i,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),i}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(i){var n=e.buildItem(i);t.appendChild(n),!0===i.selected&&e.selectItem(n)}),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.container.querySelector(".ql-selected");if(e!==i&&(null!=i&&i.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":n(Event))){var a=document.createEvent("Event");a.initEvent("change",!0,!0),this.select.dispatchEvent(a)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var i=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",i)}}]),e}();t.default=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(i(0)),a=b(i(5)),o=i(4),s=b(o),r=b(i(16)),l=b(i(25)),c=b(i(24)),u=b(i(35)),d=b(i(6)),p=b(i(22)),f=b(i(7)),h=b(i(55)),m=b(i(42)),g=b(i(23));function b(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":s.default,"blots/block/embed":o.BlockEmbed,"blots/break":r.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":g.default}),n.default.register(s.default,r.default,c.default,d.default,p.default,f.default),t.default=a.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),a=function(){function e(e){this.domNode=e,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return n.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,i,a){var o=this.isolate(e,t);if(null!=n.query(i,n.Scope.BLOT)&&a)o.wrap(i,a);else if(null!=n.query(i,n.Scope.ATTRIBUTE)){var s=n.create(this.statics.scope);o.wrap(s),s.format(i,a)}},e.prototype.insertAt=function(e,t,i){var a=null==i?n.create("text",t):n.create(t,i),o=this.split(e);this.parent.insertBefore(a,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var i=null;e.children.insertBefore(this,t),null!=t&&(i=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==i||e.domNode.insertBefore(this.domNode,i),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var i=this.split(e);return i.split(t),i},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var i="string"==typeof e?n.create(e,t):e;return i.replace(this),i},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var i="string"==typeof e?n.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(i,this.next),i.appendChild(this),i},e.blotName="abstract",e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(12),a=i(32),o=i(33),s=i(1),r=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=n.default.keys(this.domNode),i=a.default.keys(this.domNode),r=o.default.keys(this.domNode);t.concat(i).concat(r).forEach(function(t){var i=s.query(t,s.Scope.ATTRIBUTE);i instanceof n.default&&(e.attributes[i.attrName]=i)})},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(i){var n=t.attributes[i].value(t.domNode);e.format(i,n)})},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,i){return t[i]=e.attributes[i].value(e.domNode),t},{})},e}();t.default=r},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function o(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(t+"-")})}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){o(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(o(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(i(12).default);t.default=s},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function o(e){var t=e.split("-"),i=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+i}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(i(12).default);t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var a=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=i,this.modules={}}return n(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();a.DEFAULTS={modules:{}},a.themes={default:a},t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=s(i(0)),o=s(i(7));function s(e){return e&&e.__esModule?e:{default:e}}var r="\ufeff",l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.contentNode=document.createElement("span"),i.contentNode.setAttribute("contenteditable",!1),[].slice.call(i.domNode.childNodes).forEach(function(e){i.contentNode.appendChild(e)}),i.leftGuard=document.createTextNode(r),i.rightGuard=document.createTextNode(r),i.domNode.appendChild(i.leftGuard),i.domNode.appendChild(i.contentNode),i.domNode.appendChild(i.rightGuard),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Embed),n(t,[{key:"index",value:function(e,i){return e===this.leftGuard?0:e===this.rightGuard?1:function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,i)}},{key:"restore",value:function(e){var t=void 0,i=void 0,n=e.data.split(r).join("");if(e===this.leftGuard)if(this.prev instanceof o.default){var s=this.prev.length();this.prev.insertAt(s,n),t={startNode:this.prev.domNode,startOffset:s+n.length}}else i=document.createTextNode(n),this.parent.insertBefore(a.default.create(i),this),t={startNode:i,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof o.default?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(i=document.createTextNode(n),this.parent.insertBefore(a.default.create(i),this.next),t={startNode:i,startOffset:n.length}));return e.data=r,t}},{key:"update",value:function(e,t){var i=this;e.forEach(function(e){if("characterData"===e.type&&(e.target===i.leftGuard||e.target===i.rightGuard)){var n=i.restore(e.target);n&&(t.range=n)}})}}]),t}();t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var n,a=i(0),o=(n=a)&&n.__esModule?n:{default:n};var s={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},r=new o.default.Attributor.Attribute("align","align",s),l=new o.default.Attributor.Class("align","ql-align",s),c=new o.default.Attributor.Style("align","text-align",s);t.AlignAttribute=r,t.AlignClass=l,t.AlignStyle=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var n,a=i(0),o=(n=a)&&n.__esModule?n:{default:n},s=i(26);var r=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=r,t.BackgroundStyle=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var n,a=i(0),o=(n=a)&&n.__esModule?n:{default:n};var s={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},r=new o.default.Attributor.Attribute("direction","dir",s),l=new o.default.Attributor.Class("direction","ql-direction",s),c=new o.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=r,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(0),s=(n=o)&&n.__esModule?n:{default:n};var r={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new s.default.Attributor.Class("font","ql-font",r),c=new(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Attributor.Style),a(t,[{key:"value",value:function(e){return function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}())("font","font-family",r);t.FontStyle=c,t.FontClass=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var n,a=i(0),o=(n=a)&&n.__esModule?n:{default:n};var s=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),r=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=r},function(e,t,i){"use strict";e.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=r(i(0)),o=r(i(5)),s=r(i(9));function r(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(o.default.events.EDITOR_CHANGE,function(e,t,i,a){e!==o.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&a!==o.default.sources.USER?n.transform(t):n.record(t,i))}),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var i=this.stack[e].pop();this.stack[t].push(i),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i[e],o.default.sources.USER),this.ignoreChange=!1;var n=c(i[e]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var i=this.quill.getContents().diff(t),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var a=this.stack.undo.pop();i=i.compose(a.undo),e=a.redo.compose(e)}else this.lastRecorded=n;this.stack.undo.push({redo:e,undo:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}();function c(e){var t=e.reduce(function(e,t){return e+=t.delete||0},0),i=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(e){return null!=a.default.query(e,a.default.Scope.BLOCK)}))}(e)&&(i-=1),i}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=f(i(3)),o=f(i(2)),s=f(i(8)),r=f(i(23)),l=f(i(34)),c=f(i(59)),u=f(i(60)),d=f(i(28)),p=f(i(61));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[!1,"center","right","justify"],v=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],y=[!1,"serif","monospace"],_=["1","2","3",!1],w=["small",!1,"large","huge"],k=function(e){function t(e,i){h(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return e.emitter.listenDOM("click",document.body,function t(i){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(i.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach(function(e){e.container.contains(i.target)||e.close()})}),n}return g(t,l.default),n(t,[{key:"addModule",value:function(e){var i=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(i),i}},{key:"buildButtons",value:function(e,t){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(i){if(i.startsWith("ql-")&&(i=i.slice("ql-".length),null!=t[i]))if("direction"===i)e.innerHTML=t[i][""]+t[i].rtl;else if("string"==typeof t[i])e.innerHTML=t[i];else{var n=e.value||"";null!=n&&t[i][n]&&(e.innerHTML=t[i][n])}})})}},{key:"buildPickers",value:function(e,t){var i=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&S(e,b),new u.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var i=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&S(e,v,"background"===i?"#ffffff":"#000000"),new c.default(e,t[i])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,y):e.classList.contains("ql-header")?S(e,_):e.classList.contains("ql-size")&&S(e,w)),new d.default(e)});this.quill.on(s.default.events.EDITOR_CHANGE,function(){i.pickers.forEach(function(e){e.update()})})}}]),t}();k.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",function(){if(null!=t.files&&null!=t.files[0]){var i=new FileReader;i.onload=function(i){var n=e.quill.getSelection(!0);e.quill.updateContents((new o.default).retain(n.index).delete(n.length).insert({image:i.target.result}),s.default.sources.USER),e.quill.setSelection(n.index+1,s.default.sources.SILENT),t.value=""},i.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var x=function(e){function t(e,i){h(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return g(t,p.default),n(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){r.default.match(t,"enter")?(e.save(),t.preventDefault()):r.default.match(t,"escape")&&(e.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,s.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0";if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/";return e}(e);case"formula":if(!e)break;var i=this.quill.getSelection(!0);if(null!=i){var n=i.index+i.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",s.default.sources.USER),this.quill.setSelection(n+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}();function S(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var n=document.createElement("option");t===i?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)})}t.BaseTooltip=x,t.default=k},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,i=this.iterator();t=i();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,i=this.head;null!=i;){if(i===e)return t;t+=i.length(),i=i.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var i,n=this.iterator();i=n();){var a=i.length();if(e<a||t&&e===a&&(null==i.next||0!==i.next.length()))return[i,e];e-=a}return[null,0]},e.prototype.forEach=function(e){for(var t,i=this.iterator();t=i();)e(t)},e.prototype.forEachAt=function(e,t,i){if(!(t<=0))for(var n,a=this.find(e),o=a[0],s=e-a[1],r=this.iterator(o);(n=r())&&s<e+t;){var l=n.length();e>s?i(n,e-s,Math.min(t,s+l-e)):i(n,0,Math.min(l,e+t-s)),s+=l}},e.prototype.map=function(e){return this.reduce(function(t,i){return t.push(e(i)),t},[])},e.prototype.reduce=function(e,t){for(var i,n=this.iterator();i=n();)t=e(t,i);return t},e}();t.default=n},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(17),s=i(1),r={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var i=e.call(this,t)||this;return i.scroll=i,i.observer=new MutationObserver(function(e){i.update(e)}),i.observer.observe(i.domNode,r),i.attach(),i}return a(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,i){this.update(),0===t&&i===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,i)},t.prototype.formatAt=function(t,i,n,a){this.update(),e.prototype.formatAt.call(this,t,i,n,a)},t.prototype.insertAt=function(t,i,n){this.update(),e.prototype.insertAt.call(this,t,i,n)},t.prototype.optimize=function(t,i){var n=this;void 0===t&&(t=[]),void 0===i&&(i={}),e.prototype.optimize.call(this,i);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var r=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&r(e.parent))},l=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(l),e.optimize(i))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(e){var t=s.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(r(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=s.find(e,!1);r(t,!1),t instanceof o.default&&t.children.forEach(function(e){r(e,!1)})})):"attributes"===e.type&&r(t.prev)),r(t))}),this.children.forEach(l),a=(c=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)t.push(a.pop())}},t.prototype.update=function(t,i){var n=this;void 0===i&&(i={}),(t=t||this.observer.takeRecords()).map(function(e){var t=s.find(e.target,!0);return null==t?null:null==t.domNode[s.DATA_KEY].mutations?(t.domNode[s.DATA_KEY].mutations=[e],t):(t.domNode[s.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==n&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],i)}),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,i),this.optimize(t,i)},t.blotName="scroll",t.defaultChild="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=l},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(18),s=i(1);var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.formats=function(i){if(i.tagName!==t.tagName)return e.formats.call(this,i)},t.prototype.format=function(i,n){var a=this;i!==this.statics.blotName||n?e.prototype.format.call(this,i,n):(this.children.forEach(function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),a.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,i,n,a){null!=this.formats()[n]||s.query(n,s.Scope.ATTRIBUTE)?this.isolate(t,i).format(n,a):e.prototype.formatAt.call(this,t,i,n,a)},t.prototype.optimize=function(i){e.prototype.optimize.call(this,i);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var a=this.next;a instanceof t&&a.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(e[i]!==t[i])return!1;return!0}(n,a.formats())&&(a.moveChildren(this),a.remove())},t.blotName="inline",t.scope=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=r},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(18),s=i(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.formats=function(i){var n=s.query(t.blotName).tagName;if(i.tagName!==n)return e.formats.call(this,i)},t.prototype.format=function(i,n){null!=s.query(i,s.Scope.BLOCK)&&(i!==this.statics.blotName||n?e.prototype.format.call(this,i,n):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,i,n,a){null!=s.query(n,s.Scope.BLOCK)?this.format(n,a):e.prototype.formatAt.call(this,t,i,n,a)},t.prototype.insertAt=function(t,i,n){if(null==n||null!=s.query(i,s.Scope.INLINE))e.prototype.insertAt.call(this,t,i,n);else{var a=this.split(t),o=s.create(i,n);a.parent.insertBefore(o,a)}},t.prototype.update=function(t,i){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,i)},t.blotName="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=r},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.formats=function(e){},t.prototype.format=function(t,i){e.prototype.formatAt.call(this,0,this.length(),t,i)},t.prototype.formatAt=function(t,i,n,a){0===t&&i===this.length()?this.format(n,a):e.prototype.formatAt.call(this,t,i,n,a)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i(19).default);t.default=o},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(19),s=i(1),r=function(e){function t(t){var i=e.call(this,t)||this;return i.text=i.statics.value(i.domNode),i}return a(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,i,n){null==n?(this.text=this.text.slice(0,t)+i+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,i,n)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(i){e.prototype.optimize.call(this,i),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var i=s.create(this.domNode.splitText(e));return this.parent.insertBefore(i,this.next),this.text=this.statics.value(this.domNode),i},t.prototype.update=function(e,t){var i=this;e.some(function(e){return"characterData"===e.type&&e.target===i.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=s.Scope.INLINE_BLOT,t}(o.default);t.default=r},function(e,t,i){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:a.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var n=i.indexOf(e,t);return-1!==n&&n===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,i=Object(this),n=i.length>>>0,a=arguments[1],o=0;o<n;o++)if(t=i[o],e.call(a,t,o,i))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,t){var i=-1,n=1,a=0;function o(e,t,c){if(e==t)return e?[[a,e]]:[];(c<0||e.length<c)&&(c=null);var d=r(e,t),p=e.substring(0,d);d=l(e=e.substring(d),t=t.substring(d));var f=e.substring(e.length-d),h=function(e,t){var c;if(!e)return[[n,t]];if(!t)return[[i,e]];var u=e.length>t.length?e:t,d=e.length>t.length?t:e,p=u.indexOf(d);if(-1!=p)return c=[[n,u.substring(0,p)],[a,d],[n,u.substring(p+d.length)]],e.length>t.length&&(c[0][0]=c[2][0]=i),c;if(1==d.length)return[[i,e],[n,t]];var f=function(e,t){var i=e.length>t.length?e:t,n=e.length>t.length?t:e;if(i.length<4||2*n.length<i.length)return null;function a(e,t,i){for(var n,a,o,s,c=e.substring(i,i+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var p=r(e.substring(i),t.substring(u)),f=l(e.substring(0,i),t.substring(0,u));d.length<f+p&&(d=t.substring(u-f,u)+t.substring(u,u+p),n=e.substring(0,i-f),a=e.substring(i+p),o=t.substring(0,u-f),s=t.substring(u+p))}return 2*d.length>=e.length?[n,a,o,s,d]:null}var o,s,c,u,d,p=a(i,n,Math.ceil(i.length/4)),f=a(i,n,Math.ceil(i.length/2));if(!p&&!f)return null;o=f?p&&p[4].length>f[4].length?p:f:p;e.length>t.length?(s=o[0],c=o[1],u=o[2],d=o[3]):(u=o[0],d=o[1],s=o[2],c=o[3]);var h=o[4];return[s,c,u,d,h]}(e,t);if(f){var h=f[0],m=f[1],g=f[2],b=f[3],v=f[4],y=o(h,g),_=o(m,b);return y.concat([[a,v]],_)}return function(e,t){for(var a=e.length,o=t.length,r=Math.ceil((a+o)/2),l=r,c=2*r,u=new Array(c),d=new Array(c),p=0;p<c;p++)u[p]=-1,d[p]=-1;u[l+1]=0,d[l+1]=0;for(var f=a-o,h=f%2!=0,m=0,g=0,b=0,v=0,y=0;y<r;y++){for(var _=-y+m;_<=y-g;_+=2){for(var w=l+_,k=(P=_==-y||_!=y&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-_;P<a&&k<o&&e.charAt(P)==t.charAt(k);)P++,k++;if(u[w]=P,P>a)g+=2;else if(k>o)m+=2;else if(h){var x=l+f-_;if(x>=0&&x<c&&-1!=d[x]){var S=a-d[x];if(P>=S)return s(e,t,P,k)}}}for(var C=-y+b;C<=y-v;C+=2){for(var x=l+C,$=(S=C==-y||C!=y&&d[x-1]<d[x+1]?d[x+1]:d[x-1]+1)-C;S<a&&$<o&&e.charAt(a-S-1)==t.charAt(o-$-1);)S++,$++;if(d[x]=S,S>a)v+=2;else if($>o)b+=2;else if(!h){var w=l+f-C;if(w>=0&&w<c&&-1!=u[w]){var P=u[w],k=l+P-w;if(P>=(S=a-S))return s(e,t,P,k)}}}}return[[i,e],[n,t]]}(e,t)}(e=e.substring(0,e.length-d),t=t.substring(0,t.length-d));return p&&h.unshift([a,p]),f&&h.push([a,f]),function e(t){t.push([a,""]);var o=0;var s=0;var c=0;var u="";var d="";var p;for(;o<t.length;)switch(t[o][0]){case n:c++,d+=t[o][1],o++;break;case i:s++,u+=t[o][1],o++;break;case a:s+c>1?(0!==s&&0!==c&&(0!==(p=r(d,u))&&(o-s-c>0&&t[o-s-c-1][0]==a?t[o-s-c-1][1]+=d.substring(0,p):(t.splice(0,0,[a,d.substring(0,p)]),o++),d=d.substring(p),u=u.substring(p)),0!==(p=l(d,u))&&(t[o][1]=d.substring(d.length-p)+t[o][1],d=d.substring(0,d.length-p),u=u.substring(0,u.length-p))),0===s?t.splice(o-c,s+c,[n,d]):0===c?t.splice(o-s,s+c,[i,u]):t.splice(o-s-c,s+c,[i,u],[n,d]),o=o-s-c+(s?1:0)+(c?1:0)+1):0!==o&&t[o-1][0]==a?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,c=0,s=0,u="",d=""}""===t[t.length-1][1]&&t.pop();var f=!1;o=1;for(;o<t.length-1;)t[o-1][0]==a&&t[o+1][0]==a&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)==t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),f=!0):t[o][1].substring(0,t[o+1][1].length)==t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),f=!0)),o++;f&&e(t)}(h),null!=c&&(h=function(e,t){var n=function(e,t){if(0===t)return[a,e];for(var n=0,o=0;o<e.length;o++){var s=e[o];if(s[0]===i||s[0]===a){var r=n+s[1].length;if(t===r)return[o+1,e];if(t<r){e=e.slice();var l=t-n,c=[s[0],s[1].slice(0,l)],u=[s[0],s[1].slice(l)];return e.splice(o,1,c,u),[o+1,e]}n=r}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=n[1],s=n[0],r=o[s],l=o[s+1];if(null==r)return e;if(r[0]!==a)return e;if(null!=l&&r[1]+l[1]===l[1]+r[1])return o.splice(s,2,l,r),u(o,s,2);if(null!=l&&0===l[1].indexOf(r[1])){o.splice(s,2,[l[0],r[1]],[0,r[1]]);var c=l[1].slice(r[1].length);return c.length>0&&o.splice(s+2,0,[l[0],c]),u(o,s,3)}return e}(h,c)),h=function(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},s=2;s<e.length;s+=1)e[s-2][0]===a&&((r=e[s-2][1]).charCodeAt(r.length-1)>=55296&&r.charCodeAt(r.length-1)<=56319)&&e[s-1][0]===i&&o(e[s-1][1])&&e[s][0]===n&&o(e[s][1])&&(t=!0,e[s-1][1]=e[s-2][1].slice(-1)+e[s-1][1],e[s][1]=e[s-2][1].slice(-1)+e[s][1],e[s-2][1]=e[s-2][1].slice(0,-1));var r;if(!t)return e;for(var l=[],s=0;s<e.length;s+=1)e[s][1].length>0&&l.push(e[s]);return l}(h)}function s(e,t,i,n){var a=e.substring(0,i),s=t.substring(0,n),r=e.substring(i),l=t.substring(n),c=o(a,s),u=o(r,l);return c.concat(u)}function r(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var i=0,n=Math.min(e.length,t.length),a=n,o=0;i<a;)e.substring(o,a)==t.substring(o,a)?o=i=a:n=a,a=Math.floor((n-i)/2+i);return a}function l(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var i=0,n=Math.min(e.length,t.length),a=n,o=0;i<a;)e.substring(e.length-a,e.length-o)==t.substring(t.length-a,t.length-o)?o=i=a:n=a,a=Math.floor((n-i)/2+i);return a}var c=o;function u(e,t,i){for(var n=t+i-1;n>=0&&n>=t-1;n--)if(n+1<e.length){var a=e[n],o=e[n+1];a[0]===o[1]&&e.splice(n,2,[a[0],a[1]+o[1]])}return e}c.INSERT=n,c.DELETE=i,c.EQUAL=a,e.exports=c},function(e,t){function i(e){var t=[];for(var i in e)t.push(i);return t}(e.exports="function"==typeof Object.keys?Object.keys:i).shim=i},function(e,t){var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function a(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=i?n:a).supported=n,t.unsupported=a},function(e,t){"use strict";var i=Object.prototype.hasOwnProperty,n="~";function a(){}function o(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function s(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,t,a=[];if(0===this._eventsCount)return a;for(t in e=this._events)i.call(e,t)&&a.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e,t){var i=n?n+e:e,a=this._events[i];if(t)return!!a;if(!a)return[];if(a.fn)return[a.fn];for(var o=0,s=a.length,r=new Array(s);o<s;o++)r[o]=a[o].fn;return r},s.prototype.emit=function(e,t,i,a,o,s){var r=n?n+e:e;if(!this._events[r])return!1;var l,c,u=this._events[r],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,i),!0;case 4:return u.fn.call(u.context,t,i,a),!0;case 5:return u.fn.call(u.context,t,i,a,o),!0;case 6:return u.fn.call(u.context,t,i,a,o,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,i);break;case 4:u[c].fn.call(u[c].context,t,i,a);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,i){var a=new o(t,i||this),s=n?n+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],a]:this._events[s].push(a):(this._events[s]=a,this._eventsCount++),this},s.prototype.once=function(e,t,i){var a=new o(t,i||this,!0),s=n?n+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],a]:this._events[s].push(a):(this._events[s]=a,this._eventsCount++),this},s.prototype.removeListener=function(e,t,i,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new a:delete this._events[s],this;var r=this._events[s];if(r.fn)r.fn!==t||o&&!r.once||i&&r.context!==i||(0==--this._eventsCount?this._events=new a:delete this._events[s]);else{for(var l=0,c=[],u=r.length;l<u;l++)(r[l].fn!==t||o&&!r[l].once||i&&r[l].context!==i)&&c.push(r[l]);c.length?this._events[s]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new a:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new a:delete this._events[t])):(this._events=new a,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=n,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=y(i(3)),r=y(i(2)),l=y(i(0)),c=y(i(5)),u=y(i(10)),d=y(i(9)),p=i(36),f=i(37),h=y(i(13)),m=i(26),g=i(38),b=i(39),v=i(40);function y(e){return e&&e.__esModule?e:{default:e}}function _(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var w=(0,u.default)("quill:clipboard"),k="__ql-matcher",x=[[Node.TEXT_NODE,N],[Node.TEXT_NODE,L],["br",function(e,t){A(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,function(e,t){var i={},n=e.style||{};n.fontStyle&&"italic"===E(e).fontStyle&&(i.italic=!0);n.fontWeight&&(E(e).fontWeight.startsWith("bold")||parseInt(E(e).fontWeight)>=700)&&(i.bold=!0);Object.keys(i).length>0&&(t=P(t,i));parseFloat(n.textIndent||0)>0&&(t=(new r.default).insert("\t").concat(t));return t}],["li",function(e,t){var i=l.default.query(e);if(null==i||"list-item"!==i.blotName||!A(t,"\n"))return t;var n=-1,a=e.parentNode;for(;!a.classList.contains("ql-clipboard");)"list"===(l.default.query(a)||{}).blotName&&(n+=1),a=a.parentNode;return n<=0?t:t.compose((new r.default).retain(t.length()-1).retain(1,{indent:n}))}],["b",O.bind(O,"bold")],["i",O.bind(O,"italic")],["style",function(){return new r.default}]],S=[p.AlignAttribute,g.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),C=[p.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,b.FontStyle,v.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),$=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],x.concat(n.options.matchers).forEach(function(e){var t=a(e,2),o=t[0],s=t[1];(i.matchVisual||s!==I)&&n.addMatcher(o,s)}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.default),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var i=this.container.innerText;return this.container.innerHTML="",(new r.default).insert(i,_({},h.default.blotName,t[h.default.blotName]))}var n=this.prepareMatching(),o=a(n,2),s=o[0],l=o[1],c=function e(t,i,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,i){return i(t,e)},new r.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(a,o){var s=e(o,i,n);return o.nodeType===t.ELEMENT_NODE&&(s=i.reduce(function(e,t){return t(o,e)},s),s=(o[k]||[]).reduce(function(e,t){return t(o,e)},s)),a.concat(s)},new r.default):new r.default}(this.container,s,l);return A(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new r.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var n=this.convert(t);this.quill.updateContents((new r.default).retain(e).concat(n),i),this.quill.setSelection(e+n.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var i=this.quill.getSelection(),n=(new r.default).retain(i.index),a=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout(function(){n=n.concat(t.convert()).delete(i.length),t.quill.updateContents(n,c.default.sources.USER),t.quill.setSelection(n.length()-i.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=a,t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],i=[];return this.matchers.forEach(function(n){var o=a(n,2),s=o[0],r=o[1];switch(s){case Node.TEXT_NODE:i.push(r);break;case Node.ELEMENT_NODE:t.push(r);break;default:[].forEach.call(e.container.querySelectorAll(s),function(e){e[k]=e[k]||[],e[k].push(r)})}}),[t,i]}}]),t}();function P(e,t,i){return"object"===(void 0===t?"undefined":n(t))?Object.keys(t).reduce(function(e,i){return P(e,i,t[i])},e):e.reduce(function(e,n){return n.attributes&&n.attributes[t]?e.push(n):e.insert(n.insert,(0,s.default)({},_({},t,i),n.attributes))},new r.default)}function E(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};return e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function A(e,t){for(var i="",n=e.ops.length-1;n>=0&&i.length<t.length;--n){var a=e.ops[n];if("string"!=typeof a.insert)break;i=a.insert+i}return i.slice(-1*t.length)===t}function T(e){if(0===e.childNodes.length)return!1;var t=E(e);return["block","list-item"].indexOf(t.display)>-1}function O(e,t,i){return P(i,e,!0)}function D(e,t){var i=l.default.Attributor.Attribute.keys(e),n=l.default.Attributor.Class.keys(e),a=l.default.Attributor.Style.keys(e),o={};return i.concat(n).concat(a).forEach(function(t){var i=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=i&&(o[i.attrName]=i.value(e),o[i.attrName])||(null==(i=S[t])||i.attrName!==t&&i.keyName!==t||(o[i.attrName]=i.value(e)||void 0),null==(i=C[t])||i.attrName!==t&&i.keyName!==t||(i=C[t],o[i.attrName]=i.value(e)||void 0))}),Object.keys(o).length>0&&(t=P(t,o)),t}function M(e,t){var i=l.default.query(e);if(null==i)return t;if(i.prototype instanceof l.default.Embed){var n={},a=i.value(e);null!=a&&(n[i.blotName]=a,t=(new r.default).insert(n,i.formats(e)))}else"function"==typeof i.formats&&(t=P(t,i.blotName,i.formats(e)));return t}function L(e,t){return A(t,"\n")||(T(e)||t.length()>0&&e.nextSibling&&T(e.nextSibling))&&t.insert("\n"),t}function I(e,t){if(T(e)&&null!=e.nextElementSibling&&!A(t,"\n\n")){var i=e.offsetHeight+parseFloat(E(e).marginTop)+parseFloat(E(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*i&&t.insert("\n")}return t}function N(e,t){var i=e.data;if("O:P"===e.parentNode.tagName)return t.insert(i.trim());if(0===i.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!E(e.parentNode).whiteSpace.startsWith("pre")){var n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};i=(i=i.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&T(e.parentNode)||null!=e.previousSibling&&T(e.previousSibling))&&(i=i.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&T(e.parentNode)||null!=e.nextSibling&&T(e.nextSibling))&&(i=i.replace(/\s+$/,n.bind(n,!1)))}return t.insert(i)}$.DEFAULTS={matchers:[],matchVisual:!0},t.default=$,t.matchAttributor=D,t.matchBlot=M,t.matchNewline=L,t.matchSpacing=I,t.matchText=N},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(6),r=(n=s)&&n.__esModule?n:{default:n};var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),a(t,[{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}();l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=u(i(2)),s=u(i(0)),r=u(i(5)),l=u(i(10)),c=u(i(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=(0,l.default)("quill:toolbar"),f=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a,o=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));if(Array.isArray(o.options.container)){var s=document.createElement("div");m(s,o.options.container),e.container.parentNode.insertBefore(s,e.container),o.container=s}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach(function(e){o.addHandler(e,o.options.handlers[e])}),[].forEach.call(o.container.querySelectorAll("button, select"),function(e){o.attach(e)}),o.quill.on(r.default.events.EDITOR_CHANGE,function(e,t){e===r.default.events.SELECTION_CHANGE&&o.update(t)}),o.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){var e=o.quill.selection.getRange(),t=n(e,1)[0];o.update(t)}),o):(a=p.error("Container required for toolbar",o.options),d(o,a))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default),a(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,i=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(i){if(i=i.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[i]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[i])return void p.warn("ignoring attaching to disabled format",i,e);if(null==s.default.query(i))return void p.warn("ignoring attaching to nonexistent format",i,e)}var a="SELECT"===e.tagName?"change":"click";e.addEventListener(a,function(a){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),a.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=n(u,1)[0];if(null!=t.handlers[i])t.handlers[i].call(t,l);else if(s.default.query(i).prototype instanceof s.default.Embed){if(!(l=prompt("Enter "+i)))return;t.quill.updateContents((new o.default).retain(d.index).delete(d.length).insert(function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},i,l)),r.default.sources.USER)}else t.quill.format(i,l,r.default.sources.USER);t.update(d)}),this.controls.push([i,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(i){var a=n(i,2),o=a[0],s=a[1];if("SELECT"===s.tagName){var r=void 0;if(null==e)r=null;else if(null==t[o])r=s.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),r=s.querySelector('option[value="'+l+'"]')}null==r?(s.value="",s.selectedIndex=-1):r.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=t[o]===s.getAttribute("value")||null!=t[o]&&t[o].toString()===s.getAttribute("value")||null==t[o]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=t[o])})}}]),t}();function h(e,t,i){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+t),null!=i&&(n.value=i),e.appendChild(n)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var i=document.createElement("span");i.classList.add("ql-formats"),t.forEach(function(e){if("string"==typeof e)h(i,e);else{var t=Object.keys(e)[0],n=e[t];Array.isArray(n)?function(e,t,i){var n=document.createElement("select");n.classList.add("ql-"+t),i.forEach(function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),n.appendChild(t)}),e.appendChild(n)}(i,t,n):h(i,t,n)}}),e.appendChild(i)})}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var i=this.quill.getFormat();Object.keys(i).forEach(function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,r.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",r.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,r.default.sources.USER),this.quill.format("direction",e,r.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),i=this.quill.getFormat(t),n=parseInt(i.indent||0);if("+1"===e||"-1"===e){var a="+1"===e?1:-1;"rtl"===i.direction&&(a*=-1),this.quill.format("indent",n+a,r.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,r.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),i=this.quill.getFormat(t);"check"===e?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,r.default.sources.USER):this.quill.format("list","unchecked",r.default.sources.USER):this.quill.format("list",e,r.default.sources.USER)}}},t.default=f,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(28),r=(n=s)&&n.__esModule?n:{default:n};var l=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.label.innerHTML=i,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),a(t,[{key:"buildItem",value:function(e){var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return i.style.backgroundColor=e.getAttribute("value")||"",i}},{key:"selectItem",value:function(e,i){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,i);var n=this.label.querySelector(".ql-color-label"),a=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=a:n.style.fill=a)}}]),t}();t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(28),s=(n=o)&&n.__esModule?n:{default:n};var r=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=i[e.getAttribute("data-value")||""]}),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),a(t,[{key:"selectItem",value:function(e,i){(function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,i),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var a=function(){function e(t,i){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=i||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"}),this.hide()}return n(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,i=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=i+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect(),o=0;if(a.right>n.right&&(o=n.right-a.right,this.root.style.left=t+o+"px"),a.left<n.left&&(o=n.left-a.left,this.root.style.left=t+o+"px"),a.bottom>n.bottom){var s=a.bottom-a.top,r=e.bottom-e.top+s;this.root.style.top=i-r+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=f(i(3)),r=f(i(8)),l=i(43),c=f(l),u=f(i(27)),d=i(15),p=f(i(41));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(e){function t(e,i){h(this,t),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=b);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.container.classList.add("ql-snow"),n}return g(t,c.default),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,i){e.handlers.link.call(e,!i.format.link)})}}]),t}();v.DEFAULTS=(0,s.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var i=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(i)&&0!==i.indexOf("mailto:")&&(i="mailto:"+i),this.quill.theme.tooltip.edit("link",i)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,i){h(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.preview=n.root.querySelector("a.ql-preview"),n}return g(t,l.BaseTooltip),o(t,[{key:"listen",value:function(){var e=this;a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=e.linkRange){var i=e.linkRange;e.restoreFocus(),e.quill.formatText(i,"link",!1,r.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(r.default.events.SELECTION_CHANGE,function(t,i,a){if(null!=t){if(0===t.length&&a===r.default.sources.USER){var o=e.quill.scroll.descendant(u.default,t.index),s=n(o,2),l=s[0],c=s[1];if(null!=l){e.linkRange=new d.Range(t.index-c,l.length());var p=u.default.formats(l.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}();y.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=v},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=I(i(29)),a=i(36),o=i(38),s=i(64),r=I(i(65)),l=I(i(66)),c=i(67),u=I(c),d=i(37),p=i(26),f=i(39),h=i(40),m=I(i(56)),g=I(i(68)),b=I(i(27)),v=I(i(69)),y=I(i(70)),_=I(i(71)),w=I(i(72)),k=I(i(73)),x=i(13),S=I(x),C=I(i(74)),$=I(i(75)),P=I(i(57)),E=I(i(41)),A=I(i(28)),T=I(i(59)),O=I(i(60)),D=I(i(61)),M=I(i(108)),L=I(i(62));function I(e){return e&&e.__esModule?e:{default:e}}n.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":h.SizeStyle},!0),n.default.register({"formats/align":a.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":h.SizeClass,"formats/blockquote":r.default,"formats/code-block":S.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":x.Code,"formats/italic":g.default,"formats/link":b.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":k.default,"formats/list/item":c.ListItem,"modules/formula":C.default,"modules/syntax":$.default,"modules/toolbar":P.default,"themes/bubble":M.default,"themes/snow":L.default,"ui/icons":E.default,"ui/picker":A.default,"ui/icon-picker":O.default,"ui/color-picker":T.default,"ui/tooltip":D.default},!0),t.default=n.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(0),r=(n=s)&&n.__esModule?n:{default:n};var l=new(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Attributor.Class),a(t,[{key:"add",value:function(e,i){if("+1"===i||"-1"===i){var n=this.value(e)||0;i="+1"===i?n+1:n-1}return 0===i?(this.remove(e),!0):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,i)}},{key:"canAdd",value:function(e,i){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,i)||o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(i))}},{key:"value",value:function(e){return parseInt(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}())("indent","ql-indent",{scope:r.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(4),o=(n=a)&&n.__esModule?n:{default:n};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();s.blotName="blockquote",s.tagName="blockquote",t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(4),s=(n=o)&&n.__esModule?n:{default:n};var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),a(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}();r.blotName="header",r.tagName=["H1","H2","H3","H4","H5","H6"],t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},o=l(i(0)),s=l(i(4)),r=l(i(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,s.default),n(t,[{key:"format",value:function(e,i){e!==f.blotName||i?a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,i){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,i),this):(this.parent.unwrap(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,i))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:a(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}();p.blotName="list-item",p.tagName="LI";var f=function(e){function t(e){c(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=function(t){if(t.target.parentNode===e){var n=i.statics.formats(e),a=o.default.find(t.target);"checked"===n?a.format("list","unchecked"):"unchecked"===n&&a.format("list","checked")}};return e.addEventListener("touchstart",n),e.addEventListener("mousedown",n),i}return d(t,r.default),n(t,null,[{key:"create",value:function(e){var i="ordered"===e?"OL":"UL",n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,i);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,i=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var e,t,i}},{key:"insertBefore",value:function(e,i){if(e instanceof p)a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i);else{var n=null==i?this.length():i.offset(this),o=this.split(n);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&i.domNode.tagName===this.domNode.tagName&&i.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(i.moveChildren(this),i.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var i=o.default.create(this.statics.defaultChild);e.moveChildren(i),this.appendChild(i)}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}();f.blotName="list",f.scope=o.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[p],t.ListItem=p,t.default=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(56),o=(n=a)&&n.__esModule?n:{default:n};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();s.blotName="italic",s.tagName=["EM","I"],t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=i(6),s=(n=o)&&n.__esModule?n:{default:n};var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),a(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}();r.blotName="script",r.tagName=["SUB","SUP"],t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(6),o=(n=a)&&n.__esModule?n:{default:n};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();s.blotName="strike",s.tagName="S",t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(6),o=(n=a)&&n.__esModule?n:{default:n};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();s.blotName="underline",s.tagName="U",t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(0),r=(n=s)&&n.__esModule?n:{default:n},l=i(27);var c=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Embed),a(t,[{key:"format",value:function(e,i){c.indexOf(e)>-1?i?this.domNode.setAttribute(e,i):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}],[{key:"create",value:function(e){var i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&i.setAttribute("src",this.sanitize(e)),i}},{key:"formats",value:function(e){return c.reduce(function(t,i){return e.hasAttribute(i)&&(t[i]=e.getAttribute(i)),t},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}();u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(4),r=i(27),l=(n=r)&&n.__esModule?n:{default:n};var c=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.BlockEmbed),a(t,[{key:"format",value:function(e,i){c.indexOf(e)>-1?i?this.domNode.setAttribute(e,i):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}],[{key:"create",value:function(e){var i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(e)),i}},{key:"formats",value:function(e){return c.reduce(function(t,i){return e.hasAttribute(i)&&(t[i]=e.getAttribute(i)),t},{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}();u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=r(i(35)),o=r(i(5)),s=r(i(9));function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,a.default),n(t,null,[{key:"create",value:function(e){var i=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,i,{throwOnError:!1,errorColor:"#f00"}),i.setAttribute("data-value",e)),i}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}();d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(e){function t(){l(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return u(t,s.default),n(t,null,[{key:"register",value:function(){o.default.register(d,!0)}}]),t}();t.FormulaBlot=d,t.default=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=l(i(0)),o=l(i(5)),s=l(i(9)),r=l(i(13));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,r.default),n(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}();p.className="ql-syntax";var f=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),h=function(e){function t(e,i){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var a=null;return n.quill.on(o.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(a),a=setTimeout(function(){n.highlight(),a=null},n.options.interval)}),n.highlight(),n}return d(t,s.default),n(t,null,[{key:"register",value:function(){o.default.register(f,!0),o.default.register(p,!0)}}]),n(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(o.default.sources.SILENT),null!=t&&this.quill.setSelection(t,o.default.sources.SILENT)}}}]),t}();h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=f,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var n=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=d(i(3)),s=d(i(8)),r=i(43),l=d(r),c=i(15),u=d(i(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,i){p(this,t),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=m);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.container.classList.add("ql-bubble"),n}return h(t,l.default),a(t,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}();g.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=function(e){function t(e,i){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.on(s.default.events.EDITOR_CHANGE,function(e,t,i,a){if(e===s.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&a===s.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var o=n.quill.getLines(t.index,t.length);if(1===o.length)n.position(n.quill.getBounds(t));else{var r=o[o.length-1],l=n.quill.getIndex(r),u=Math.min(r.length()-1,t.index+t.length-l),d=n.quill.getBounds(new c.Range(l,u));n.position(d)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()}),n}return h(t,r.BaseTooltip),a(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")}),this.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var i=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),a=this.root.querySelector(".ql-tooltip-arrow");if(a.style.marginLeft="",0===i)return i;a.style.marginLeft=-1*i-a.offsetWidth/2+"px"}}]),t}();b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=g},function(e,t,i){e.exports=i(63)}]).default},e.exports=i()}).call(t,i(674).Buffer)},function(e,t,i){"use strict";t.byteLength=function(e){var t=c(e),i=t[0],n=t[1];return 3*(i+n)/4-n},t.toByteArray=function(e){for(var t,i=c(e),n=i[0],s=i[1],r=new o(function(e,t,i){return 3*(t+i)/4-i}(0,n,s)),l=0,u=s>0?n-4:n,d=0;d<u;d+=4)t=a[e.charCodeAt(d)]<<18|a[e.charCodeAt(d+1)]<<12|a[e.charCodeAt(d+2)]<<6|a[e.charCodeAt(d+3)],r[l++]=t>>16&255,r[l++]=t>>8&255,r[l++]=255&t;2===s&&(t=a[e.charCodeAt(d)]<<2|a[e.charCodeAt(d+1)]>>4,r[l++]=255&t);1===s&&(t=a[e.charCodeAt(d)]<<10|a[e.charCodeAt(d+1)]<<4|a[e.charCodeAt(d+2)]>>2,r[l++]=t>>8&255,r[l++]=255&t);return r},t.fromByteArray=function(e){for(var t,i=e.length,a=i%3,o=[],s=0,r=i-a;s<r;s+=16383)o.push(u(e,s,s+16383>r?r:s+16383));1===a?(t=e[i-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[i-2]<<8)+e[i-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],a=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,l=s.length;r<l;++r)n[r]=s[r],a[s.charCodeAt(r)]=r;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function u(e,t,i){for(var a,o,s=[],r=t;r<i;r+=3)a=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2]),s.push(n[(o=a)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,i,n,a){var o,s,r=8*a-n-1,l=(1<<r)-1,c=l>>1,u=-7,d=i?a-1:0,p=i?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-u)-1,f>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=c}return(f?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,i,n,a,o){var s,r,l,c=8*o-a-1,u=(1<<c)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(r=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(r=0,s=u):s+d>=1?(r=(t*l-1)*Math.pow(2,a),s+=d):(r=t*Math.pow(2,d-1)*Math.pow(2,a),s=0));a>=8;e[i+f]=255&r,f+=h,r/=256,a-=8);for(s=s<<a|r,c+=a;c>0;e[i+f]=255&s,f+=h,s/=256,c-=8);e[i+f-h]|=128*m}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"margin-bottom":"30px"}},[e.hasTranslation?i("div",[i("el-row",{staticStyle:{"margin-bottom":"5px"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:24}},[e._v("\n "+e._s(e.label+":")+"\n ")])],1),e._v(" "),i("el-row",{attrs:{type:"flex",align:"middle"}},[i("el-col",{attrs:{span:12}},[i("el-button-group",{staticStyle:{"margin-bottom":"5px"}},[i("el-button",{attrs:{size:"mini",type:e.isTextMode?"default":"primary"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.text_mode))]),e._v(" "),i("el-button",{attrs:{size:"mini",type:e.isTextMode?"primary":"default"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.html_mode))])],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("div",{staticClass:"am-service-translate am-event-translate",staticStyle:{cursor:"pointer","line-height":"inherit"},on:{click:e.showDialogTranslate}},[i("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.translate)+"\n ")])])],1)],1):i("div",{staticStyle:{"margin-bottom":"5px"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.label+":")+"\n ")]),e._v(" "),e.hasQuill?i("el-col",{staticClass:"align-right",attrs:{span:12}},[i("el-button-group",[i("el-button",{attrs:{size:"mini",type:e.isTextMode?"default":"primary"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.text_mode))]),e._v(" "),i("el-button",{attrs:{size:"mini",type:e.isTextMode?"primary":"default"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.html_mode))])],1)],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",[i("el-alert",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.content_mode_tooltip,closable:!1}})],1)],1),e._v(" "),e.isTextMode?i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6},placeholder:""},on:{input:e.changedContentText},model:{value:e.textValue,callback:function(t){e.textValue=t},expression:"textValue"}}):i("quill-editor",{attrs:{options:{modules:{toolbar:[["bold","italic","underline","strike"],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{color:[]},{background:[]}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],[{align:[]}],["clean"],e.allowImage?["link","image"]:["link"]]}}},on:{change:e.changedContentQuill,ready:e.readyQuill},model:{value:e.entity[e.htmlProperty],callback:function(t){e.$set(e.entity,e.htmlProperty,t)},expression:"entity[htmlProperty]"}})],1)},staticRenderFns:[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=i,i.equal=function(e,t,i){if(e!=t)throw new Error(i||"Assertion failed: "+e+" != "+t)}},,,,,,,,,,,,,function(e,t,i){var n=i(90)(i(826),i(827),!1,null,null,null);e.exports=n.exports},,,,,,,,function(e,t,i){e.exports=i(960)},function(e,t,i){"use strict";var n=i(793),a=i(670);function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function r(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)i.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var a=e.charCodeAt(n),o=a>>8,s=255&a;o?i.push(o,s):i.push(s)}else for(n=0;n<e.length;n++)i[n]=0|e[n];return i},t.toHex=function(e){for(var t="",i=0;i<e.length;i++)t+=s(e[i].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var i="",n=0;n<e.length;n++){var a=e[n];"little"===t&&(a=o(a)),i+=r(a.toString(16))}return i},t.zero2=s,t.zero8=r,t.join32=function(e,t,i,a){var o=i-t;n(o%4==0);for(var s=new Array(o/4),r=0,l=t;r<s.length;r++,l+=4){var c;c="big"===a?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],s[r]=c>>>0}return s},t.split32=function(e,t){for(var i=new Array(4*e.length),n=0,a=0;n<e.length;n++,a+=4){var o=e[n];"big"===t?(i[a]=o>>>24,i[a+1]=o>>>16&255,i[a+2]=o>>>8&255,i[a+3]=255&o):(i[a+3]=o>>>24,i[a+2]=o>>>16&255,i[a+1]=o>>>8&255,i[a]=255&o)}return i},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,i){return e+t+i>>>0},t.sum32_4=function(e,t,i,n){return e+t+i+n>>>0},t.sum32_5=function(e,t,i,n,a){return e+t+i+n+a>>>0},t.sum64=function(e,t,i,n){var a=e[t],o=n+e[t+1]>>>0,s=(o<n?1:0)+i+a;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,i,n){return(t+n>>>0<t?1:0)+e+i>>>0},t.sum64_lo=function(e,t,i,n){return t+n>>>0},t.sum64_4_hi=function(e,t,i,n,a,o,s,r){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+o>>>0)<o?1:0,e+i+a+s+(l+=(c=c+r>>>0)<r?1:0)>>>0},t.sum64_4_lo=function(e,t,i,n,a,o,s,r){return t+n+o+r>>>0},t.sum64_5_hi=function(e,t,i,n,a,o,s,r,l,c){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+r>>>0)<r?1:0,e+i+a+s+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,i,n,a,o,s,r,l,c){return t+n+o+r+c>>>0},t.rotr64_hi=function(e,t,i){return(t<<32-i|e>>>i)>>>0},t.rotr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0},t.shr64_hi=function(e,t,i){return e>>>i},t.shr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0}},,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:"#picture-upload",props:{deleteIconVisibility:!1,editedEntity:null,entityName:"",multiple:!1},data:function(){return{pictureFullPath:"",pictureThumbPath:""}},mounted:function(){},methods:{removeImage:function(e){e.stopPropagation(),this.pictureFullPath="",this.pictureThumbPath="",this.$emit("deleteImage")},openMediaModal:function(){var e,t=this;e?e.open():((e=wp.media({title:"Select or Upload Profile Picture",button:{text:"Select picture"},multiple:this.multiple,library:{type:"image"}})).on("select",function(){var i=null;e.state().get("selection").forEach(function(e){i=e.toJSON(),t.pictureFullPath=i.url,t.pictureThumbPath=i.sizes.thumbnail?i.sizes.thumbnail.url:i.url,t.$emit("pictureSelected",t.pictureFullPath,t.pictureThumbPath)})}),e.open())}},computed:{getPictureSrc:function(){return null!==this.editedEntity&&!this.pictureThumbPath&&this.editedEntity.pictureThumbPath?this.editedEntity.pictureThumbPath:this.pictureThumbPath&&"gallery"!==this.entityName?this.pictureThumbPath:this.$root.getUrl+"public/img/default-"+this.entityName+".svg"}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"am-profile-photo",on:{click:e.openMediaModal}},[e.deleteIconVisibility?i("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.removeImage(t)}}}):e._e(),e._v(" "),i("i",{class:{"el-icon-plus":"gallery"===e.entityName,"el-icon-picture":"gallery"!==e.entityName}}),e._v(" "),"gallery"===e.entityName?i("span",[e._v(e._s(e.$root.labels.add_image))]):e._e(),e._v(" "),"gallery"!==e.entityName?i("img",{attrs:{src:e.getPictureSrc,alt:""}}):e._e()])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(881),i(882),!1,null,null,null);e.exports=n.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){var n=i(685).Buffer,a=i(963).Transform,o=i(967).StringDecoder;function s(e){a.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(670)(s,a),s.prototype.update=function(e,t,i){"string"==typeof e&&(e=n.from(e,t));var a=this._update(e);return this.hashMode?this:(i&&(a=this._toString(a,i)),a)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,i){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{i(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,i){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return i&&(n+=this._decoder.end()),n},e.exports=s},function(e,t,i){"use strict";var n=i(660),a=i(672);t.a={mixins:[a.a,n.a],methods:{getInitEmployeeObject:function(){return{id:0,type:"provider",status:"visible",firstName:"",lastName:"",email:"",externalId:"",locationId:"",phone:"",countryPhoneIso:"",googleCalendar:[],outlookCalendar:[],note:"",description:"",pictureFullPath:"",pictureThumbPath:"",stripeConnect:null,serviceList:[],weekDayList:this.getSettingsSchedule(),specialDayList:[],dayOffList:[],show:!0}},getSettingsSchedule:function(){var e=[];return this.$root.settings.weekSchedule.forEach(function(t,i){var n=[];t.breaks.forEach(function(e){n.push({id:null,startTime:e.time[0]+":00",endTime:e.time[1]+":00"})});var a=[];null!==t.time[0]&&null!==t.time[1]&&("periods"in t?t.periods.forEach(function(e){a.push({id:null,startTime:e.time[0]+":00",endTime:e.time[1]+":00",locationIds:[],serviceIds:[],locationId:null,periodLocationList:[],periodServiceList:[],savedPeriodServiceList:[]})}):a.push({id:null,startTime:t.time[0]+":00",endTime:t.time[1]+":00",locationIds:[],serviceIds:[],locationId:null,periodLocationList:[],periodServiceList:[],savedPeriodServiceList:[]})),t.time[0]&&t.time[1]&&e.push({dayIndex:i+1,id:null,startTime:t.time[0]+":00",endTime:t.time[1]+":00",periodList:a,timeOutList:n})}),e},getEmployeeActivityLabel:function(e){switch(e){case"available":return this.$root.labels.available;case"away":return this.$root.labels.away;case"break":return this.$root.labels.break;case"busy":return this.$root.labels.busy;case"dayoff":return this.$root.labels.dayoff}},getParsedEditCategorizedServiceList:function(e,t){var i=this,n=[];return t.forEach(function(t){var a=[];t.serviceList.filter(function(t){return"visible"===t.status||"hidden"===t.status&&-1!==e.serviceList.map(function(e){return e.id}).indexOf(t.id)}).forEach(function(t){var n=null;if(e&&e.serviceList.forEach(function(e){e.id===t.id&&((n=Object.assign({},e)).customPricing=i.getArrayCustomPricing(e),n.state=!0)}),n)a.push(n);else{var o=Object.assign({},t);o.customPricing=i.getArrayCustomPricing(o),o.state=!1,a.push(o)}}),n.push({id:t.id,name:t.name,serviceList:a})}),n},getParsedServiceList:function(e){var t=[];return e.forEach(function(e){e.serviceList.forEach(function(e){e.state&&t.push(Object.assign({},e))})}),t},getParsedEditWeekDayList:function(e){for(var t=[],i=this,n=[this.$root.labels.weekday_monday,this.$root.labels.weekday_tuesday,this.$root.labels.weekday_wednesday,this.$root.labels.weekday_thursday,this.$root.labels.weekday_friday,this.$root.labels.weekday_saturday,this.$root.labels.weekday_sunday],a=0;a<7;a++)t.push({id:null,form:{type:null,isNew:null,index:null,show:!1,data:{}},day:n[a],time:[],breaks:[],periods:[]});return e&&e.weekDayList.forEach(function(e){var a=e.dayIndex-1;e.timeOutList.forEach(function(e){t[a].breaks.push({id:e.id,time:[e.startTime.substring(0,e.startTime.length-3),e.endTime.substring(0,e.endTime.length-3)]})}),t[a].periods=i.getParsedWeekDayPeriods(e),t[a].time=[e.startTime.substring(0,e.startTime.length-3),e.endTime.substring(0,e.endTime.length-3)],t[a].day=n[e.dayIndex-1],t[a].id=e.id}),t},getParsedWeekDayPeriods:function(e){var t=[];return e.periodList.forEach(function(e){t.push({time:[e.startTime.substring(0,e.startTime.length-3),e.endTime.substring(0,e.endTime.length-3)],id:e.id,locationIds:e.periodLocationList.length?e.periodLocationList.map(function(e){return e.locationId}):e.locationId?[e.locationId]:[],serviceIds:e.periodServiceList.map(function(e){return e.serviceId}),locationId:e.locationId,periodLocationList:e.periodLocationList,periodServiceList:e.periodServiceList,savedPeriodServiceList:JSON.parse(JSON.stringify(e.periodServiceList))})}),!t.length&&e.startTime&&e.endTime&&t.push({time:[e.startTime.substring(0,e.startTime.length-3),e.endTime.substring(0,e.endTime.length-3)],id:null,locationIds:[],serviceIds:[],locationId:null,periodLocationList:[],periodServiceList:[],savedPeriodServiceList:[]}),t},getParsedWeekDayList:function(e){var t=[],i=this;return e.forEach(function(e,n){var a=[];e.breaks.forEach(function(e){e.time&&e.time.length&&e.time[0]&&e.time[1]&&a.push({id:e.id,startTime:e.time[0]+":00",endTime:e.time[1]+":00"})});var o=[],s=86400,r=0;e.periods.forEach(function(e){if(e.time&&e.time.length&&e.time[0]&&e.time[1]){var t=i.getStringTimeInSeconds(e.time[0]),n=i.getStringTimeInSeconds(e.time[1]);s=t<s?t:s,r=n>r?n:r;var a=[];e.locationIds.forEach(function(t){var i=e.periodLocationList.find(function(e){return e.locationId===t});a.push({id:i?i.id:null,locationId:t})});var l=[];e.serviceIds.forEach(function(t){var i=e.periodServiceList.find(function(e){return e.serviceId===t});l.push({id:i?i.id:null,serviceId:t})}),o.push({id:e.id,startTime:e.time[0]+":00",endTime:e.time[1]+":00",locationId:e.locationId,periodLocationList:a,periodServiceList:l})}}),o.length&&t.push({id:e.id,dayIndex:n+1,startTime:i.secondsToTimeSelectStep(s)+":00",endTime:i.secondsToTimeSelectStep(r)+":00",timeOutList:a,periodList:o})}),t},sortEmployeesForRoundRobin:function(e){e=e.sort(function(e,t){return parseInt(e[0])-parseInt(t[0])});var t=!0,i=!1,n=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){a.value;if(parseInt(e[0][0])>parseInt(this.lastBookedProviderId))break;e.push(e.shift())}}catch(e){i=!0,n=e}finally{try{!t&&o.return&&o.return()}finally{if(i)throw n}}return e}}}},,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(91),a=i(654),o=i(733),s=i.n(o);t.default={mixins:[n.a,a.a],name:"DialogTranslate",props:{passedTranslations:null,name:"",allLanguagesData:null,usedLanguages:null,type:{required:!1,default:"name",type:String},tab:"",cfOptions:{required:!1,default:function(){return[]},type:Array},eventTickets:{required:!1,default:function(){return[]},type:Array},employeeBadges:{required:!1,default:function(){return[]},type:Array},hasQuill:!0},data:function(){return{translations:null,oldTranslations:null,newTranslations:[],settings:null,newLanguages:[],languageWidth:12,options:[],tickets:[],allLanguagesKeys:[],badges:[]}},mounted:function(){var e=this;this.translations=this.passedTranslations?JSON.parse(this.passedTranslations):{},this.oldTranslations=this.translations[this.type]?this.translations[this.type]:{},(this.oldTranslations?this.usedLanguages.filter(function(t){return!Object.keys(e.oldTranslations).includes(t)}):this.usedLanguages).forEach(function(t){e.oldTranslations[t]=""}),_.isEmpty(this.oldTranslations)&&this.addLanguage(),this.oldTranslations=JSON.parse(JSON.stringify(this.oldTranslations)),"description"!==this.type&&"cf"!==this.tab&&"tickets"!==this.tab&&"url"!==this.type&&"badges"!==this.type||(this.languageWidth=24);var t=JSON.parse(JSON.stringify(this.cfOptions));t.forEach(function(t){t.translations?t.translations=JSON.parse(t.translations):t.translations={},e.usedLanguages.forEach(function(e){t.translations[e]||(t.translations[e]="")})}),this.options=t;var i=JSON.parse(JSON.stringify(this.eventTickets));if(i.forEach(function(t){t.translations?t.translations=JSON.parse(t.translations):t.translations={},e.usedLanguages.forEach(function(e){t.translations[e]||(t.translations[e]="")})}),this.tickets=i,"badges"===this.type){var n=JSON.parse(JSON.stringify(this.employeeBadges));n.forEach(function(t){t.translations?t.translations=JSON.parse(t.translations):t.translations={},e.usedLanguages.forEach(function(e){t.translations[e]||(t.translations[e]="")})}),this.badges=n}this.allLanguagesKeys=Object.keys(this.allLanguagesData)},computed:{dialogStyle:function(){return"cf"!==this.tab&&"tickets"!==this.tab&&"category"!==this.tab&&"roles"!==this.tab&&"badges"!==this.tab?"margin-bottom: 0":""}},methods:{saveDialog:function(){var e=this;this.newTranslations.forEach(function(t){t.lan&&(e.usedLanguages.includes(t.lan)||e.newLanguages.push(t.lan),e.oldTranslations[t.lan]=t.value)}),this.translations[this.type]=this.oldTranslations,this.options.forEach(function(e){e.edited=!0,e.translations=JSON.stringify(e.translations)}),this.tickets.forEach(function(e){e.edited=!0,e.translations=JSON.stringify(e.translations)}),"badges"===this.type?this.badges.forEach(function(e){e.translations=JSON.stringify(e.translations)}):this.badges=null,this.$emit("saveDialogTranslate",JSON.stringify(this.translations),this.newLanguages,this.tab,this.options,this.tickets,this.badges)},closeDialog:function(){this.$emit("closeDialogTranslate")},addLanguage:function(){this.newTranslations.push({lan:"",value:""})},getLanguageLabel:function(e,t){return!t||"name"!==this.type&&"firstName"!==this.type&&"lastName"!==this.type||"cf"===this.tab||"tickets"===this.tab||"badges"===this.tab?this.allLanguagesData[e].name:this.allLanguagesData[e].name.substring(0,21)},getLanguageFlag:function(e){return e&&this.allLanguagesData[e]&&this.allLanguagesData[e].country_code?this.$root.getUrl+"public/img/flags/"+this.allLanguagesData[e].country_code+".png":this.$root.getUrl+"public/img/grey.svg"},goBack:function(){"cf"===this.tab||"tickets"===this.tab||"category"===this.tab||"badges"===this.type?this.closeDialog():this.saveDialog()},getHeaderTitle:function(){return"cf"===this.tab?this.$root.labels.translate+" "+this.$root.labels.custom_field:"tickets"===this.tab?this.$root.labels.translate+" "+this.$root.labels.event_tickets:"description"===this.type?this.$root.labels.translate+" "+this.$root.labels.description:"url"===this.type?this.$root.labels.url:"badges"===this.type?this.$root.labels.translate+" "+this.$root.labels.employee_badge:this.$root.labels.translate+" "+this.name}},components:{ContentBlock:s.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"am-dialog-translate"},[i("div",{staticClass:"am-dialog-scrollable",style:e.dialogStyle},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:16}},[i("img",{staticClass:"am-dialog-translate-svg-back",attrs:{src:e.$root.getUrl+"public/img/arrow-back.svg"},on:{click:e.goBack}}),e._v(" "),i("h2",[e._v(e._s(e.getHeaderTitle()))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("LicenceBlockHeader"),e._v(" "),e._l(e.oldTranslations,function(t,n){return i("div",{key:n,class:e.licenceClassDisabled()},[e.usedLanguages&&-1!==e.usedLanguages.indexOf(n)?i("el-row",{attrs:{gutter:28,type:"flex"}},[i("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:e.languageWidth,sm:e.languageWidth}},[i("div",{staticClass:"used-language"},[i("img",{staticClass:"am-dialog-translate-flag",attrs:{src:e.getLanguageFlag(n)}}),e._v("\n "+e._s(e.getLanguageLabel(n,!0))+"\n ")])]),e._v(" "),"name"!==e.type&&"firstName"!==e.type&&"lastName"!==e.type||"cf"===e.tab||"tickets"===e.tab?e._e():i("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:8,sm:14}},[i("el-input",{attrs:{type:"text",placeholder:e.$root.labels.translation},model:{value:e.oldTranslations[n],callback:function(t){e.$set(e.oldTranslations,n,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),"description"===e.type&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(n)?i("el-row",{staticClass:"am-dialog-translate-description",staticStyle:{"margin-bottom":"8px"},attrs:{gutter:24,type:"flex"}},[i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:24}},[i("content-block",{attrs:{label:e.$root.labels.description,entity:e.oldTranslations,property:n,textProperty:n,htmlProperty:n+"Html",hasTranslation:!1,hasQuill:e.hasQuill,textModeProp:!0,allowImage:!1}})],1)],1):e._e(),e._v(" "),"url"===e.type&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(n)?i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:24}},[i("el-input",{attrs:{value:t,placeholder:"https://test.site.com/customer-panel/"},model:{value:e.oldTranslations[n],callback:function(t){e.$set(e.oldTranslations,n,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),"cf"===e.tab&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(n)?i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:26,type:"flex"}},[i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf"},[e._v(" "+e._s(e.$root.labels.label_name)+" ")])]),e._v(" "),i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf-label"},[i("i",[e._v(e._s(e.name))])])]),e._v(" "),i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[i("el-input",{attrs:{value:t,type:"text",placeholder:" "},model:{value:e.oldTranslations[n],callback:function(t){e.$set(e.oldTranslations,n,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),e._l(e.options,function(t,a){return e.cfOptions.length&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(n)?i("div",[i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf"},[e._v(" #"+e._s(a))])]),e._v(" "),i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf-label"},[i("i",[e._v(e._s(t.label))])])]),e._v(" "),i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[i("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[n],callback:function(i){e.$set(t.translations,n,i)},expression:"option['translations'][key]"}})],1)],1)],1):e._e()}),e._v(" "),e._l(e.tickets,function(t){return e.eventTickets.length&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(n)?i("div",[i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf-label"},[i("i",[e._v(e._s(t.name))])])]),e._v(" "),i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:19}},[i("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[n],callback:function(i){e.$set(t.translations,n,i)},expression:"item['translations'][key]"}})],1)],1)],1):e._e()}),e._v(" "),e._l(e.badges,function(t){return e.badges.length&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(n)?i("div",[i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[i("el-col",{attrs:{sm:8}},[i("div",{staticClass:"am-dialog-translate-cf-label"},[i("i",[e._v(e._s(t.content))])])]),e._v(" "),i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:16}},[i("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[n],callback:function(i){e.$set(t.translations,n,i)},expression:"item['translations'][key]"}})],1)],1)],1):e._e()})],2)}),e._v(" "),e._l(e.newTranslations,function(t,n){return i("div",{key:n,class:e.licenceClassDisabled()},[i("el-row",{staticStyle:{"margin-right":"-15px"},attrs:{gutter:28,type:"flex"}},[i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:e.languageWidth}},[i("el-select",{attrs:{placeholder:e.$root.labels.language,clearable:"",filterable:""},model:{value:e.newTranslations[n].lan,callback:function(t){e.$set(e.newTranslations[n],"lan",t)},expression:"newTranslations[index].lan"}},[i("template",{slot:"prefix"},[i("img",{staticClass:"am-dialog-translate-flag-selected",attrs:{src:e.getLanguageFlag(e.newTranslations[n].lan)}})]),e._v(" "),e._l(e.allLanguagesKeys,function(t,n){return i("el-option",{key:n,attrs:{label:e.getLanguageLabel(t,!1),value:t,disabled:t in e.oldTranslations||t===e.$root.locale}},[i("span",[i("img",{staticClass:"am-dialog-translate-flag",attrs:{src:e.getLanguageFlag(t)}}),e._v("\n "+e._s(e.getLanguageLabel(t,!1))+"\n ")])])})],2)],1),e._v(" "),"name"!==e.type&&"firstName"!==e.type&&"lastName"!==e.type||"cf"===e.tab||"tickets"===e.tab?e._e():i("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:14,sm:18}},[i("el-input",{attrs:{type:"text",name:t.name,placeholder:e.$root.labels.translation},model:{value:e.newTranslations[n].value,callback:function(t){e.$set(e.newTranslations[n],"value",t)},expression:"newTranslations[index].value"}})],1)],1),e._v(" "),"description"===e.type?i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{sm:24}},[i("el-input",{attrs:{value:t,type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.newTranslations[n].value,callback:function(t){e.$set(e.newTranslations[n],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),"url"===e.type?i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{sm:24}},[i("el-input",{attrs:{value:t,placeholder:"https://test.site.com/customer-panel/"},model:{value:e.newTranslations[n].value,callback:function(t){e.$set(e.newTranslations[n],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),"cf"===e.tab?i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf"},[e._v(" "+e._s(e.$root.labels.label_name)+" ")])]),e._v(" "),i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf-label"},[i("i",[e._v(e._s(e.name))])])]),e._v(" "),i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[i("el-input",{attrs:{type:"text",name:t.name},model:{value:e.newTranslations[n].value,callback:function(t){e.$set(e.newTranslations[n],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),e._l(e.options,function(t,a){return e.cfOptions.length?i("div",[i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf"},[e._v(" #"+e._s(a))])]),e._v(" "),i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf-label"},[i("i",[e._v(e._s(t.label))])])]),e._v(" "),i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[i("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[e.newTranslations[n].lan],callback:function(i){e.$set(t.translations,e.newTranslations[n].lan,i)},expression:"option['translations'][newTranslations[index].lan]"}})],1)],1)],1):e._e()}),e._v(" "),e._l(e.tickets,function(t){return e.eventTickets.length?i("div",[i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{sm:5}},[i("div",{staticClass:"am-dialog-translate-cf-label"},[i("i",[e._v(e._s(t.name))])])]),e._v(" "),i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:19}},[i("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[e.newTranslations[n].lan],callback:function(i){e.$set(t.translations,e.newTranslations[n].lan,i)},expression:"item['translations'][newTranslations[index].lan]"}})],1)],1)],1):e._e()}),e._v(" "),e._l(e.badges,function(t){return e.badges.length?i("div",[i("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{sm:8}},[i("div",{staticClass:"am-dialog-translate-cf-label"},[i("i",[e._v(e._s(t.content))])])]),e._v(" "),i("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:16}},[i("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[e.newTranslations[n].lan],callback:function(i){e.$set(t.translations,e.newTranslations[n].lan,i)},expression:"item['translations'][newTranslations[index].lan]"}})],1)],1)],1):e._e()})],2)}),e._v(" "),"provider"!==e.$root.settings.role?i("div",{class:e.licenceClassDisabled()},[i("img",{staticClass:"am-dialog-translate-svg-plus",attrs:{src:e.$root.getUrl+"public/img/plus-circle.svg"},on:{click:e.addLanguage}}),e._v(" "),i("div",{staticClass:"add-language",on:{click:e.addLanguage}},[e._v(e._s(e.$root.labels.add_language))])]):e._e()],2),e._v(" "),"category"===e.tab||"cf"===e.tab||"tickets"===e.tab||"roles"===e.tab||"badges"===e.type?i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.saveDialog}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)]):e._e()])},staticRenderFns:[]}},function(e,t,i){"use strict";t.a={data:function(){return{freePeriodsInSeconds:[0,86400]}},methods:{startTimeChanged:function(e,t,i,n){if(null===e){n(null);var a=document.getElementsByClassName("time-select-item"),o=!0,s=!1,r=void 0;try{for(var l,c=a[Symbol.iterator]();!(o=(l=c.next()).done);o=!0)for(var u=l.value,d=this.getStringTimeInSeconds(u.innerHTML),p=0;p<i.length;p++)if(d>i[p][0]&&d<i[p][1]){u.style.pointerEvents="none",u.style.color="#DCDCDC";break}}catch(e){s=!0,r=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw r}}}},findFreePeriods:function(e){for(var t=[],i=0,n=0;n<e.length;n++)i!==e[n][0]&&t.push([i,e[n][0]]),i=e[n][1];86400!==i&&t.push([i,86400]),this.freePeriodsInSeconds=t},getBorderTime:function(e,t){return{start:"00:00",end:"24:00",step:this.secondsToTimeSelectStep(this.getTimeSlotLength()),minTime:e,maxTime:t}},getPeriodBorderTime:function(e,t,i){var n=null,a=null;if(null===e)return this.getBorderTime(n,a);for(var o=this.getStringTimeInSeconds(e),s=0;s<this.freePeriodsInSeconds.length;s++)if(o>=this.freePeriodsInSeconds[s][0]&&o<this.freePeriodsInSeconds[s][1]){i?(n=this.secondsToTimeSelectStep(this.freePeriodsInSeconds[s][0]-this.getTimeSlotLength()),a=null!==t?t:this.secondsToTimeSelectStep(this.freePeriodsInSeconds[s][1]+this.getTimeSlotLength())):(n=e,a=this.secondsToTimeSelectStep(this.freePeriodsInSeconds[s][1]+this.getTimeSlotLength()));break}return null===n&&null===a&&(n=a=e),this.getBorderTime(n,a)}}}},function(e,t,i){"use strict";var n=i(923),a=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};e.exports=d;var o=i(911);o.inherits=i(670);var s=i(1001),r=i(966);o.inherits(d,s);for(var l=a(r.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=r.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);s.call(this,e),r.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||n(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n(t,e)}},,,,,function(e,t,i){"use strict";(function(t,n){var a=i(685).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,i){if(e>65536)throw new Error("requested too many random bytes");var s=new t.Uint8Array(e);e>0&&o.getRandomValues(s);var r=a.from(s.buffer);if("function"==typeof i)return n.nextTick(function(){i(null,r)});return r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(t,i(37),i(142))},function(e,t,i){var n=i(685).Buffer;function a(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}a.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var i=this._block,a=this._blockSize,o=e.length,s=this._len,r=0;r<o;){for(var l=s%a,c=Math.min(o-r,a-l),u=0;u<c;u++)i[l+u]=e[r+u];r+=c,(s+=c)%a==0&&this._update(i)}return this._len+=o,this},a.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0,a=(i-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=a},,,,,,,function(e,t,i){var n=i(90)(null,i(898),!1,null,null,null);e.exports=n.exports},function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(900),i(901),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(657),a=i(699);i.n(a);t.default={mixins:[n.a],name:"PersonPrice",props:{service:{},enabledDelete:!0,enabledRange:!0},methods:{personsSelected:function(e){this.service.customPricing.persons.length-1===e&&this.service.customPricing.persons[this.service.customPricing.persons.length-1].range!==this.service.maxCapacity&&this.addRange()},isRangeSelected:function(e,t){return 1!==this.service.customPricing.persons.length&&(0===t?e>=(this.service.customPricing.persons[t+1].range?this.service.customPricing.persons[t+1].range:this.service.maxCapacity):t===this.service.customPricing.persons.length-1?e<=this.service.customPricing.persons[t-1].range:e>=(this.service.customPricing.persons[t+1].range?this.service.customPricing.persons[t+1].range:this.service.maxCapacity)||e<=this.service.customPricing.persons[t-1].range)},addRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.service.customPricing.persons.push({range:null!==e?e:null,price:0,rules:[]})},deletePersonsRange:function(e){this.service.customPricing.persons.length-1===e&&(this.service.customPricing.persons[e-1].range=null),this.service.customPricing.persons.splice(e,1),this.service.customPricing.persons.length<=1&&(this.service.customPricing.enabled=null,this.service.customPricing.persons=[],this.$emit("disable"))}},mounted:function(){this.service.customPricing.persons.length||(this.addRange(1),this.addRange())},components:{Money:a.Money}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"am-service-custom-duration"},[i("div",[i("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[i("el-col",{attrs:{span:6}},[i("span",[e._v(e._s(e.$root.labels.from+":"))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("span",[e._v(e._s(e.$root.labels.to_upper+":"))])]),e._v(" "),i("el-col",{attrs:{span:10}},[i("span",[e._v(e._s(e.$root.labels.price+":"))])]),e._v(" "),i("el-col",{attrs:{span:2}})],1),e._v(" "),e._l(e.service.customPricing.persons,function(t,n){return e.enabledRange||!n||e.service.customPricing.persons[n-1].range+1<=e.service.maxCapacity?i("el-row",{key:n,staticClass:"small-margin-bottom am-service-custom-duration-item",attrs:{gutter:24,type:"flex"}},[i("el-col",{staticStyle:{"margin-bottom":"7px"},attrs:{span:6}},[e.enabledRange?i("el-select",{attrs:{value:n?e.service.customPricing.persons[n-1].range+1:1,placeholder:"",disabled:!0}}):i("el-input-number",{attrs:{controls:!1,value:n?e.service.customPricing.persons[n-1].range+1:1,disabled:!0}})],1),e._v(" "),i("el-col",{staticStyle:{"margin-bottom":"7px"},attrs:{span:6}},[e.enabledRange?i("el-select",{attrs:{placeholder:e.service.maxCapacity.toString()},on:{change:function(t){return e.personsSelected(n)}},model:{value:t.range,callback:function(i){e.$set(t,"range",i)},expression:"item.range"}},e._l(e.service.maxCapacity,function(t){return i("el-option",{key:t,attrs:{disabled:e.isRangeSelected(t,n),value:t}})}),1):i("el-input-number",{attrs:{controls:!1,value:e.service.maxCapacity<=t.range||n===e.service.customPricing.persons.length-1?e.service.maxCapacity:t.range,disabled:!0}})],1),e._v(" "),i("el-col",{staticStyle:{"margin-bottom":"7px"},attrs:{span:10}},[i("money",e._b({staticClass:"el-input el-input__inner",staticStyle:{height:"40px"},on:{input:function(i){0===n&&(e.service.price=t.price)}},model:{value:t.price,callback:function(i){e.$set(t,"price",i)},expression:"item.price"}},"money",e.moneyComponentData,!1))],1),e._v(" "),Object.keys(e.service.customPricing.persons).length>2?i("el-col",{staticStyle:{"margin-bottom":"7px"},attrs:{span:2}},[e.enabledDelete&&e.service.customPricing.persons.length>1?i("span",{on:{click:function(t){return e.deletePersonsRange(n)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})]):e._e()]):e._e()],1):e._e()})],2)])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(903),i(904),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(657),a=i(336),o=i(883),s=i(660),r=i(699);i.n(r);t.default={mixins:[a.a,s.a,o.a,n.a],name:"PeriodPrice",props:{service:{},enabledAdd:!0,enabledEdit:!0,enabledDelete:!0},data:function(){return{mode:"default",periods:[],weekDays:[]}},methods:{addPeriod:function(e){this.service.customPricing.periods[this.mode][e].ranges.push({from:this.service.customPricing.periods[this.mode][e].ranges[this.service.customPricing.periods[this.mode][e].ranges.length-1].to,to:null,price:0})},addDefaultDays:function(){var e=[];this.service.customPricing.periods[this.mode].forEach(function(t){e=e.concat(t.days)}),this.service.customPricing.periods[this.mode].push({days:[0,1,2,3,4,5,6].filter(function(t){return!e.includes(t)}),ranges:[{from:null,to:null,price:0}]})},addCustomDays:function(){this.service.customPricing.periods[this.mode].push({dates:{start:"",end:""},ranges:[{from:null,to:null,price:0}]})},deleteDays:function(e){this.service.customPricing.periods[this.mode].splice(e,1),0===this.service.customPricing.periods.default.length&&this.service.customPricing.periods.custom.length?this.mode="custom":0===this.service.customPricing.periods.custom.length&&this.service.customPricing.periods.default.length&&(this.mode="default")},deletePeriod:function(e,t){this.service.customPricing.periods[this.mode][e].ranges.splice(t,1)},getPreviousSlot:function(e){return this.getSecondsInStringTime(this.getStringTimeInSeconds(e)-this.$root.settings.general.timeSlotLength)},getNextSlot:function(e){return this.getSecondsInStringTime(this.getStringTimeInSeconds(e)+this.$root.settings.general.timeSlotLength)},disabledDates:function(e){var t=this,i=[];return this.service&&this.service.customPricing.periods.custom.forEach(function(n,a){if(e!==a&&n.dates.start&&n.dates.end){for(var o=t.$moment(n.dates.start),s=t.$moment(n.dates.end),r=[];o.isSameOrBefore(s);)r.push(t.$moment(o).toDate()),o.add(1,"days");i=i.concat(r)}}),i}},created:function(){for(var e=0;e<7;e++)this.weekDays.push({label:this.$moment().isoWeekday(e+1).format("dd"),enabled:!0});!this.service.customPricing.periods.default.length&&this.service.customPricing.periods.custom.length&&(this.mode="custom")},components:{Money:r.Money}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"am-service-periods",staticStyle:{"padding-bottom":"10px"}},[i("el-tabs",{model:{value:e.mode,callback:function(t){e.mode=t},expression:"mode"}},[e.service.customPricing.periods.default.length||e.enabledAdd?i("el-tab-pane",{attrs:{name:"default",label:e.$root.labels.week_days}}):e._e(),e._v(" "),e.service.customPricing.periods.custom.length||e.enabledAdd?i("el-tab-pane",{attrs:{name:"custom",label:e.$root.labels.custom_days}}):e._e()],1),e._v(" "),e._l(e.service.customPricing.periods[e.mode],function(t,n){return i("div",{staticClass:"am-service-periods-day"},["default"===e.mode?i("el-row",{staticStyle:{"margin-top":"15px"}},[i("el-col",{attrs:{sm:12,md:20}},["default"===e.mode?i("el-checkbox-group",{class:{"am-service-periods-day-disabled":!e.enabledEdit},staticStyle:{height:"45px"},attrs:{border:!0,size:"mini"},model:{value:t.days,callback:function(i){e.$set(t,"days",i)},expression:"item.days"}},e._l(e.weekDays,function(t,a){return i("el-checkbox-button",{key:a,attrs:{label:a,disabled:-1!==e.service.customPricing.periods[e.mode].reduce(function(e,t,i){return e.concat(n!==i?t.days:[])},[]).indexOf(a)}},[e._v("\n "+e._s(t.label)+"\n ")])}),1):e._e()],1),e._v(" "),i("el-col",{attrs:{sm:12,md:4}},[e.enabledDelete?i("div",{staticClass:"am-service-periods-day-remove"},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"},on:{click:function(t){return e.deleteDays(n)}}})]):e._e()])],1):e._e(),e._v(" "),"custom"===e.mode?i("el-row",{staticStyle:{"margin-top":"15px"}},[i("el-col",{staticClass:"v-calendar-column",attrs:{sm:12,md:20}},[i("v-date-picker",{class:{"am-service-periods-day-disabled":!e.enabledEdit},staticStyle:{"margin-bottom":"16px",height:"45px"},attrs:{mode:"range","input-class":"el-input__inner","popover-visibility":"focus","popover-direction":"bottom",placeholder:e.$root.labels.pick_a_date_or_range,"popover-align":"center","show-day-popover":!1,"is-expanded":!1,"is-required":!1,"is-double-paned":!1,"is-read-only":!0,"tint-color":"#1A84EE","input-props":{class:"el-input__inner",readOnly:"readonly"},formats:e.vCalendarFormats,"disabled-dates":e.disabledDates(n)},scopedSlots:e._u([{key:"default",fn:function(n){n.inputValue;var a=n.inputEvents;return[i("input",e._g({staticClass:"el-input__inner",attrs:{placeholder:e.momentDateFormat+" - "+e.momentDateFormat},domProps:{value:t.dates.start&&t.dates.end?e.getFrontedFormattedDate(e.$moment(t.dates.start).format("YYYY-MM-DD"))+" - "+e.getFrontedFormattedDate(e.$moment(t.dates.end).format("YYYY-MM-DD")):""}},a))]}}],null,!0),model:{value:t.dates,callback:function(i){e.$set(t,"dates",i)},expression:"item.dates"}})],1),e._v(" "),i("el-col",{attrs:{sm:12,md:4}},[e.enabledDelete?i("div",{staticClass:"am-service-periods-day-remove"},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"},on:{click:function(t){return e.deleteDays(n)}}})]):e._e()])],1):e._e(),e._v(" "),e._l(t.ranges,function(a,o){return i("el-row",{key:o,staticClass:"am-service-periods-day-time",attrs:{gutter:10}},[i("el-col",{attrs:{md:7}},[i("el-time-select",{attrs:{disabled:!e.enabledEdit,clearable:!1,placeholder:"00:00","picker-options":e.getTimeSelectOptionsWithLimits(0===o?null:e.getPreviousSlot(t.ranges[o-1].to),a.to),size:"medium"},model:{value:a.from,callback:function(t){e.$set(a,"from",t)},expression:"range.from"}})],1),e._v(" "),i("el-col",{attrs:{md:7}},[i("el-time-select",{attrs:{disabled:!e.enabledEdit,clearable:!1,placeholder:"24:00","picker-options":e.getTimeSelectOptionsWithLimits(a.from,o===t.ranges.length-1?null:e.getNextSlot(t.ranges[o+1].from)),size:"medium"},model:{value:a.to,callback:function(t){e.$set(a,"to",t)},expression:"range.to"}})],1),e._v(" "),i("el-col",{attrs:{md:10}},[i("money",e._b({staticClass:"el-input el-input__inner",staticStyle:{width:"70%"},model:{value:a.price,callback:function(t){e.$set(a,"price",t)},expression:"range.price"}},"money",e.moneyComponentData,!1)),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.enabledDelete&&e.service.customPricing.periods[e.mode][n].ranges.length>1,expression:"enabledDelete && service.customPricing.periods[mode][dayIndex].ranges.length > 1"}],staticClass:"am-service-periods-day-time-remove",staticStyle:{"margin-bottom":"auto","vertical-align":"text-bottom"},on:{click:function(t){return e.deletePeriod(n,o)}}},[i("i",{staticClass:"el-icon-close remove"})])],1)],1)}),e._v(" "),e.enabledAdd?i("el-button",{class:{"am-service-periods-day-time-remove-disabled":!t.ranges[t.ranges.length-1].to||"24:00"===t.ranges[t.ranges.length-1].to},attrs:{type:"primary",size:"mini",disabled:!t.ranges[t.ranges.length-1].to||"24:00"===t.ranges[t.ranges.length-1].to},on:{click:function(t){return e.addPeriod(n)}}},[e._v("\n "+e._s(e.$root.labels.add_period)+"\n ")]):e._e()],2)}),e._v(" "),e.enabledAdd?i("div",{staticClass:"am-service-periods-add"},[i("el-button",{class:{"am-service-periods-add-disabled":"default"===e.mode&&7===e.service.customPricing.periods[e.mode].reduce(function(e,t){return e+t.days.length},0)},attrs:{type:"primary",size:"mini",disabled:"default"===e.mode&&7===e.service.customPricing.periods[e.mode].reduce(function(e,t){return e+t.days.length},0)},on:{click:function(t){"default"===e.mode?e.addDefaultDays():e.addCustomDays()}}},[e._v("\n "+e._s(e.$root.labels.add_days)+"\n ")])],1):e._e()],2)},staticRenderFns:[]}},,,,,,function(e,t,i){"use strict";var n=i(670),a=i(962),o=i(968),s=i(969),r=i(876);function l(e){r.call(this,"digest"),this._hash=e}n(l,r),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new a:"rmd160"===e||"ripemd160"===e?new o:new l(s(e))}},function(e,t,i){(function(e){function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(t,i(674).Buffer)},function(e,t,i){(function(t){e.exports=function(e,i){for(var n=Math.min(e.length,i.length),a=new t(n),o=0;o<n;++o)a[o]=e[o]^i[o];return a}}).call(t,i(674).Buffer)},function(e,t,i){"use strict";var n=i(815),a=i(793);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var i=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-i,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-i,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),a(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,i=t-(e+this.padLength)%t,n=new Array(i+this.padLength);n[0]=128;for(var a=1;a<i;a++)n[a]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[a++]=0;n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=e>>>24&255,n[a++]=e>>>16&255,n[a++]=e>>>8&255,n[a++]=255&e}else for(n[a++]=255&e,n[a++]=e>>>8&255,n[a++]=e>>>16&255,n[a++]=e>>>24&255,n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=0,o=8;o<this.padLength;o++)n[a++]=0;return n}},function(e,t,i){var n=t;n.bignum=i(712),n.define=i(1436).define,n.base=i(915),n.constants=i(1027),n.decoders=i(1442),n.encoders=i(1444)},function(e,t,i){var n=t;n.Reporter=i(1439).Reporter,n.DecoderBuffer=i(1026).DecoderBuffer,n.EncoderBuffer=i(1026).EncoderBuffer,n.Node=i(1440)},,,,,,,function(e,t,i){var n=i(90)(i(958),i(959),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,i,n,a){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,s,r=arguments.length;switch(r){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,i)});case 3:return t.nextTick(function(){e.call(null,i,n)});case 4:return t.nextTick(function(){e.call(null,i,n,a)});default:for(o=new Array(r-1),s=0;s<o.length;)o[s++]=arguments[s];return t.nextTick(function(){e.apply(null,o)})}}:e.exports=t.nextTick}).call(t,i(142))},function(e,t,i){var n=i(685).Buffer;function a(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,i=new Array(t),a=0;a<t;a++)i[a]=e.readUInt32BE(4*a);return i}function o(e){for(;0<e.length;e++)e[0]=0}function s(e,t,i,n,a){for(var o,s,r,l,c=i[0],u=i[1],d=i[2],p=i[3],f=e[0]^t[0],h=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],b=4,v=1;v<a;v++)o=c[f>>>24]^u[h>>>16&255]^d[m>>>8&255]^p[255&g]^t[b++],s=c[h>>>24]^u[m>>>16&255]^d[g>>>8&255]^p[255&f]^t[b++],r=c[m>>>24]^u[g>>>16&255]^d[f>>>8&255]^p[255&h]^t[b++],l=c[g>>>24]^u[f>>>16&255]^d[h>>>8&255]^p[255&m]^t[b++],f=o,h=s,m=r,g=l;return o=(n[f>>>24]<<24|n[h>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[b++],s=(n[h>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&f])^t[b++],r=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[f>>>8&255]<<8|n[255&h])^t[b++],l=(n[g>>>24]<<24|n[f>>>16&255]<<16|n[h>>>8&255]<<8|n[255&m])^t[b++],[o>>>=0,s>>>=0,r>>>=0,l>>>=0]}var r=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],n=[],a=[[],[],[],[]],o=[[],[],[],[]],s=0,r=0,l=0;l<256;++l){var c=r^r<<1^r<<2^r<<3^r<<4;c=c>>>8^255&c^99,i[s]=c,n[c]=s;var u=e[s],d=e[u],p=e[d],f=257*e[c]^16843008*c;a[0][s]=f<<24|f>>>8,a[1][s]=f<<16|f>>>16,a[2][s]=f<<8|f>>>24,a[3][s]=f,f=16843009*p^65537*d^257*u^16843008*s,o[0][c]=f<<24|f>>>8,o[1][c]=f<<16|f>>>16,o[2][c]=f<<8|f>>>24,o[3][c]=f,0===s?s=r=1:(s=u^e[e[e[p^u]]],r^=e[e[r]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:o}}();function c(e){this._key=a(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,n=4*(i+1),a=[],o=0;o<t;o++)a[o]=e[o];for(o=t;o<n;o++){var s=a[o-1];o%t==0?(s=s<<8|s>>>24,s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s],s^=r[o/t|0]<<24):t>6&&o%t==4&&(s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s]),a[o]=a[o-t]^s}for(var c=[],u=0;u<n;u++){var d=n-u,p=a[d-(u%4?0:4)];c[u]=u<4||d<=4?p:l.INV_SUB_MIX[0][l.SBOX[p>>>24]]^l.INV_SUB_MIX[1][l.SBOX[p>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[p>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&p]]}this._nRounds=i,this._keySchedule=a,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return s(e=a(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=n.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},c.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var i=s(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(i[0],0),o.writeUInt32BE(i[3],4),o.writeUInt32BE(i[2],8),o.writeUInt32BE(i[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},function(e,t,i){var n=i(685).Buffer,a=i(962);e.exports=function(e,t,i,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=i/8,r=n.alloc(s),l=n.alloc(o||0),c=n.alloc(0);s>0||o>0;){var u=new a;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(s>0){var p=r.length-s;d=Math.min(s,c.length),c.copy(r,p,0,d),s-=d}if(d<c.length&&o>0){var f=l.length-o,h=Math.min(o,c.length-d);c.copy(l,f,d,d+h),o-=h}}return c.fill(0),{key:r,iv:l}}},function(e,t,i){"use strict";var n=t;n.base=i(1416),n.short=i(1417),n.mont=i(1418),n.edwards=i(1419)},function(e,t,i){(function(t){var n=i(1435),a=i(1447),o=i(1448),s=i(971),r=i(1010);function l(e){var i;"object"!=typeof e||t.isBuffer(e)||(i=e.passphrase,e=e.key),"string"==typeof e&&(e=new t(e));var l,c,u=o(e,i),d=u.tag,p=u.data;switch(d){case"CERTIFICATE":c=n.certificate.decode(p,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(p,"der")),l=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+l)}throw new Error("unknown key type "+d);case"ENCRYPTED PRIVATE KEY":p=function(e,i){var n=e.algorithm.decrypt.kde.kdeparams.salt,o=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),l=a[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(l.split("-")[1],10)/8,p=r.pbkdf2Sync(i,n,o,d),f=s.createDecipheriv(l,p,c),h=[];return h.push(f.update(u)),h.push(f.final()),t.concat(h)}(p=n.EncryptedPrivateKey.decode(p,"der"),i);case"PRIVATE KEY":switch(l=(c=n.PrivateKey.decode(p,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+l)}throw new Error("unknown key type "+d);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(p,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(p,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(p,"der")};case"EC PRIVATE KEY":return{curve:(p=n.ECPrivateKey.decode(p,"der")).parameters.value,privateKey:p.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=l,l.signature=n.signature}).call(t,i(674).Buffer)},function(e,t,i){var n=i(90)(i(975),i(976),!1,null,null,null);e.exports=n.exports},function(e,t,i){var n=i(90)(i(977),i(978),!1,null,null,null);e.exports=n.exports},,,,,,,,,,,,,,,,,,,,,,function(e,t,i){var n=i(90)(i(952),i(955),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(735),a=i(658),o=i(738),s=i(657),r=i(747),l=i.n(r),c=i(734),u=(i.n(c),i(733)),d=i.n(u);t.default={mixins:[n.a,o.a,s.a,a.a],props:{selectedLanguage:null,selectedLanguageHtml:null,languagesData:{default:function(){},type:Object},excludedPlaceholders:{default:function(){return[]}},placeholdersNames:{default:function(){return[]}},categories:{default:function(){return[]}},coupons:{default:function(){return[]}},entity:{default:"appointment",type:String},type:{default:"email",type:String},customFields:{default:[]},appointmentsSettings:null,userTypeTab:null,name:null,nameHtml:null},data:function(){return{loadingButton:!1}},mounted:function(){this.removePlaceholder("appointmentPlaceholders","%recurring_appointments_details%"),this.removePlaceholder("appointmentPlaceholders","%package_appointments_details%"),this.removePlaceholder("appointmentPlaceholders","%group_appointment_details%"),this.removePlaceholder("appointmentPlaceholders","%group_event_details%"),this.appointmentsSettings[this.name+"Html"]=this.appointmentsSettings[this.name],this.selectedLanguage&&(this.appointmentsSettings.translations[this.name+"Html"]=this.appointmentsSettings.translations[this.name])},methods:{getLanguageLabel:function(e){return this.languagesData[e]?this.languagesData[e].name:""},getLanguageFlag:function(e){return e&&this.languagesData[e]&&this.languagesData[e].country_code?this.$root.getUrl+"public/img/flags/"+this.languagesData[e].country_code+".png":this.$root.getUrl+"public/img/grey.svg"},saveSettings:function(){var e=this;delete this.appointmentsSettings[this.name+"Html"],this.selectedLanguage&&delete this.appointmentsSettings.translations[this.name+"Html"],this.loadingButton=!0;var t=this.name+("sms"===this.type?"Sms":"");this.selectedLanguage&&Object.keys(this.appointmentsSettings.translations[t]).forEach(function(i){e.appointmentsSettings.translations[t][i].trim||delete e.appointmentsSettings.translations[t][i]}),this.$http.post(this.$root.getAjaxUrl+"/settings",{appointments:this.appointmentsSettings}).then(function(t){e.loadingButton=!1,e.$root.settings.appointments=t.data.data.settings.appointments,e.$emit("closeDialogCombinedPlaceholder",t.data.data.settings.appointments),e.notify(e.$root.labels.success,e.$root.labels.settings_saved,"success")}).catch(function(t){e.loadingButton=!1,e.notify(e.$root.labels.error,t.message,"error")})},closeDialog:function(){this.$emit("closeDialogCombinedPlaceholder")}},computed:{},components:{quillEditor:c.quillEditor,ContentBlock:d.a,InlinePlaceholders:l.a}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(91),a=i(735),o=i(657);t.default={mixins:[n.a,a.a,o.a],props:{placeholdersNames:{default:function(){return[]}},excludedPlaceholders:{default:function(){return[]}},categories:{default:function(){return[]}},coupons:{default:function(){return[]}},customFields:{default:function(){return[]}},cart:{default:function(){return[]}},userTypeTab:null,noHtml:!1},data:function(){return{}},mounted:function(){this.setPlaceholders(this.excludedPlaceholders)},methods:{},computed:{},watch:{excludedPlaceholders:function(){this.setPlaceholders(this.excludedPlaceholders)}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-row",{staticClass:"am-notifications-placeholders"},[i("el-col",{attrs:{sm:24}},[i("div",{staticClass:"am-placeholder-wrapper"},e._l(e.placeholdersNames,function(t,n){return t in e.groupedPlaceholders&&e.groupedPlaceholders[t].length?i("el-dropdown",{key:n,staticClass:"am-placeholder-wrapper__dropdown"},[i("el-button",{staticClass:"am-placeholder-wrapper__button",attrs:{size:"small"}},[e._v("\n "+e._s(e.$root.labels[t])),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{class:{"amelia-dropdown":e.groupedPlaceholders[t].length>20},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.groupedPlaceholders[t],function(n,a){return t in e.excludedPlaceholders&&-1!==e.excludedPlaceholders[t].indexOf(n.value)?e._e():i("el-dropdown-item",{key:a,attrs:{disabled:e.isPlaceholderInLicence(n.value)}},[i("el-tooltip",{key:n.code,attrs:{effect:"dark",content:n.label,placement:"left"}},[i("p",{on:{click:function(t){e.copyCodeText("parse"in n&&!e.noHtml?e.getParsedCodeLabel(n):n.value)}}},[e._v("\n "+e._s(n.value)+"\n ")])])],1)}),1)],1):e._e()}),1)])],1)],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:14}},[i("h2",[e._v(e._s(e.$root.labels.configure_placeholder))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:10}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),"customer"===e.userTypeTab&&e.selectedLanguage?i("div",{staticClass:"align-right"},[i("img",{staticClass:"option-languages-flag",attrs:{src:e.getLanguageFlag(e.selectedLanguage)}})]):e._e(),e._v(" "),"package"===e.entity?i("div",[i("p",[i("strong",[e._v(e._s(e.$root.labels.ph_package_details_setup))])])]):e._e(),e._v(" "),"appointment"===e.entity?i("div",[i("p",[i("strong",[e._v("\n "+e._s("recurringPlaceholdersCustomer"===e.name||"recurringPlaceholders"===e.name?e.$root.labels.ph_recurring_details_setup:"")+"\n "+e._s("cartPlaceholdersCustomer"===e.name||"cartPlaceholders"===e.name?e.$root.labels.ph_cart_details_setup:"")+"\n ")])])]):e._e(),e._v(" "),"group"===e.entity?i("div",["groupAppointmentPlaceholder"===e.name?i("p",[i("strong",[e._v(e._s(e.$root.labels.ph_group_appointment_setup))])]):e._e(),e._v(" "),"groupEventPlaceholder"===e.name?i("p",[i("strong",[e._v(e._s(e.$root.labels.ph_group_event_setup))])]):e._e()]):e._e(),e._v(" "),e.selectedLanguage?i("div",["email"===e.type?i("content-block",{attrs:{label:e.$root.labels.message_colon.replace(":",""),entity:e.appointmentsSettings.translations[e.name],textProperty:e.selectedLanguage,htmlProperty:e.selectedLanguage+"Html",hasTranslation:!1,hasQuill:!0,textModeProp:!0,allowImage:!1},on:{changeQuillContent:e.parseQuillEditorContent}}):e._e(),e._v(" "),"sms"===e.type||"whatsapp"===e.type?i("el-input",{attrs:{type:"textarea",rows:7,placeholder:""},model:{value:e.appointmentsSettings.translations[e.name+"Sms"][e.selectedLanguage],callback:function(t){e.$set(e.appointmentsSettings.translations[e.name+"Sms"],e.selectedLanguage,t)},expression:"appointmentsSettings['translations'][name + 'Sms'][selectedLanguage]"}}):e._e()],1):i("div",["email"===e.type?i("content-block",{attrs:{label:e.$root.labels.message_colon.replace(":",""),entity:e.appointmentsSettings,textProperty:e.name,htmlProperty:e.nameHtml,hasTranslation:!1,hasQuill:!0,textModeProp:!0,allowImage:!1},on:{changeQuillContent:e.parseQuillEditorContent}}):e._e(),e._v(" "),"sms"===e.type||"whatsapp"===e.type?i("el-input",{attrs:{type:"textarea",rows:7,placeholder:""},model:{value:e.appointmentsSettings[e.name+"Sms"],callback:function(t){e.$set(e.appointmentsSettings,e.name+"Sms",t)},expression:"appointmentsSettings[name + 'Sms']"}}):e._e()],1),e._v(" "),i("inline-placeholders",{attrs:{placeholdersNames:e.placeholdersNames,excludedPlaceholders:e.excludedPlaceholders,categories:e.categories,customFields:e.customFields,userTypeTab:e.userTypeTab,"no-html":"email"!==e.type}}),e._v(" "),"package"===e.entity?i("div",[i("p",[e._v(e._s(e.$root.labels.use_placeholder)+" %package_appointments_details%")])]):e._e(),e._v(" "),"appointment"===e.entity?i("div",[i("p",[e._v("\n "+e._s(e.$root.labels.use_placeholder)+"\n "+e._s("recurringPlaceholdersCustomer"===e.name?"%recurring_appointments_details%":"")+"\n "+e._s("cartPlaceholdersCustomer"===e.name||"cartPlaceholders"===e.name?"%cart_appointments_details%":"")+"\n ")]),e._v(" "),i("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.group_ph_warning,closable:!1}})],1):e._e(),e._v(" "),"group"===e.entity?i("div",["groupAppointmentPlaceholder"===e.name?i("p",[e._v(e._s(e.$root.labels.use_placeholder)+" %group_appointment_details%")]):e._e(),e._v(" "),"groupEventPlaceholder"===e.name?i("p",[e._v(e._s(e.$root.labels.use_placeholder)+" %group_event_details%")]):e._e()]):e._e(),e._v(" "),"whatsapp"===e.type?i("el-alert",{staticStyle:{"margin-top":"20px"},attrs:{type:"info","show-icon":"",title:"",description:e.$root.labels.whatsapp_notice_ph,closable:!1}}):e._e()],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",loading:e.loadingButton},on:{click:e.saveSettings}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])])},staticRenderFns:[]}},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{callbackDialog:""},data:function(){return{selectedLanguage:null}},methods:{languageChanged:function(){this.$emit("languageChanged",this.selectedLanguage)},getLanguageLabel:function(e){return this.$root.languages[e]?this.$root.languages[e].name:""},getLanguageFlag:function(e){return e&&this.$root.languages[e]&&this.$root.languages[e].country_code?this.$root.getUrl+"public/img/flags/"+this.$root.languages[e].country_code+".png":this.$root.getUrl+"public/img/grey.svg"}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"am-select-translate"},[i("el-select",{staticClass:"select-languages",attrs:{placeholder:e.$root.labels.language,clearable:"",filterable:""},on:{change:e.languageChanged},model:{value:e.selectedLanguage,callback:function(t){e.selectedLanguage=t},expression:"selectedLanguage"}},[e.callbackDialog?i("li",{staticClass:"el-select-dropdown__item"},[i("span",[i("img",{staticClass:"option-languages-flag",attrs:{src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.manage_languages)+"\n ")])]):e._e(),e._v(" "),e.callbackDialog&&e.$root.settings.general.usedLanguages.length>0?i("hr"):e._e(),e._v(" "),i("template",{slot:"prefix"},[i("img",{staticClass:"select-languages-flag",attrs:{src:e.getLanguageFlag(e.selectedLanguage)}})]),e._v(" "),e._l(e.$root.settings.general.usedLanguages,function(t,n){return i("el-option",{key:n,attrs:{label:e.getLanguageLabel(t),value:t}},[i("span",[i("img",{staticClass:"option-languages-flag",attrs:{src:e.getLanguageFlag(t)}}),e._v("\n "+e._s(e.getLanguageLabel(t))+"\n ")])])})],2)],1)},staticRenderFns:[]}},function(e,t,i){var n=function(){return this}()||Function("return this")(),a=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=a&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=i(961),a)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";var i,n=Object.prototype,a=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"==typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=_;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",m={},g={};g[s]=function(){return this};var b=Object.getPrototypeOf,v=b&&b(b(O([])));v&&v!==n&&a.call(v,s)&&(g=v);var y=S.prototype=k.prototype=Object.create(g);x.prototype=y.constructor=S,S.constructor=x,S[l]=x.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(y),e},u.awrap=function(e){return{__await:e}},C($.prototype),$.prototype[r]=function(){return this},u.AsyncIterator=$,u.async=function(e,t,i,n){var a=new $(_(e,t,i,n));return u.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(y),y[l]="Generator",y[s]=function(){return this},y.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},u.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=i)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,a){return r.type="throw",r.arg=e,t.next=n,a&&(t.method="next",t.arg=i),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=a.call(s,"catchLoc"),c=a.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),A(i),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;A(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=i),m}}}function _(e,t,i,n){var a=t&&t.prototype instanceof k?t:k,o=Object.create(a.prototype),s=new T(n||[]);return o._invoke=function(e,t,i){var n=d;return function(a,o){if(n===f)throw new Error("Generator is already running");if(n===h){if("throw"===a)throw o;return D()}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var r=P(s,i);if(r){if(r===m)continue;return r}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===d)throw n=h,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=f;var l=w(e,t,i);if("normal"===l.type){if(n=i.done?h:p,l.arg===m)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n=h,i.method="throw",i.arg=l.arg)}}}(e,i,s),o}function w(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}function k(){}function x(){}function S(){}function C(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function $(e){var t;this._invoke=function(i,n){function o(){return new Promise(function(t,o){!function t(i,n,o,s){var r=w(e[i],e,n);if("throw"!==r.type){var l=r.arg,c=l.value;return c&&"object"==typeof c&&a.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,s)},function(e){t("throw",e,o,s)}):Promise.resolve(c).then(function(e){l.value=e,o(l)},s)}s(r.arg)}(i,n,t,o)})}return t=t?t.then(o,o):o()}}function P(e,t){var n=e.iterator[t.method];if(n===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=i,P(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=w(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,m;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=i),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=i,t.done=!0,t};return o.next=o}}return{next:D}}function D(){return{value:i,done:!0}}}(function(){return this}()||Function("return this")())},function(e,t,i){"use strict";(function(t){var n=i(670),a=i(1e3),o=new Array(16);function s(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function r(e,t){return e<<t|e>>>32-t}function l(e,t,i,n,a,o,s){return r(e+(t&i|~t&n)+a+o|0,s)+t|0}function c(e,t,i,n,a,o,s){return r(e+(t&n|i&~n)+a+o|0,s)+t|0}function u(e,t,i,n,a,o,s){return r(e+(t^i^n)+a+o|0,s)+t|0}function d(e,t,i,n,a,o,s){return r(e+(i^(t|~n))+a+o|0,s)+t|0}n(s,a),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,n=this._b,a=this._c,s=this._d;n=d(n=d(n=d(n=d(n=u(n=u(n=u(n=u(n=c(n=c(n=c(n=c(n=l(n=l(n=l(n=l(n,a=l(a,s=l(s,i=l(i,n,a,s,e[0],3614090360,7),n,a,e[1],3905402710,12),i,n,e[2],606105819,17),s,i,e[3],3250441966,22),a=l(a,s=l(s,i=l(i,n,a,s,e[4],4118548399,7),n,a,e[5],1200080426,12),i,n,e[6],2821735955,17),s,i,e[7],4249261313,22),a=l(a,s=l(s,i=l(i,n,a,s,e[8],1770035416,7),n,a,e[9],2336552879,12),i,n,e[10],4294925233,17),s,i,e[11],2304563134,22),a=l(a,s=l(s,i=l(i,n,a,s,e[12],1804603682,7),n,a,e[13],4254626195,12),i,n,e[14],2792965006,17),s,i,e[15],1236535329,22),a=c(a,s=c(s,i=c(i,n,a,s,e[1],4129170786,5),n,a,e[6],3225465664,9),i,n,e[11],643717713,14),s,i,e[0],3921069994,20),a=c(a,s=c(s,i=c(i,n,a,s,e[5],3593408605,5),n,a,e[10],38016083,9),i,n,e[15],3634488961,14),s,i,e[4],3889429448,20),a=c(a,s=c(s,i=c(i,n,a,s,e[9],568446438,5),n,a,e[14],3275163606,9),i,n,e[3],4107603335,14),s,i,e[8],1163531501,20),a=c(a,s=c(s,i=c(i,n,a,s,e[13],2850285829,5),n,a,e[2],4243563512,9),i,n,e[7],1735328473,14),s,i,e[12],2368359562,20),a=u(a,s=u(s,i=u(i,n,a,s,e[5],4294588738,4),n,a,e[8],2272392833,11),i,n,e[11],1839030562,16),s,i,e[14],4259657740,23),a=u(a,s=u(s,i=u(i,n,a,s,e[1],2763975236,4),n,a,e[4],1272893353,11),i,n,e[7],4139469664,16),s,i,e[10],3200236656,23),a=u(a,s=u(s,i=u(i,n,a,s,e[13],681279174,4),n,a,e[0],3936430074,11),i,n,e[3],3572445317,16),s,i,e[6],76029189,23),a=u(a,s=u(s,i=u(i,n,a,s,e[9],3654602809,4),n,a,e[12],3873151461,11),i,n,e[15],530742520,16),s,i,e[2],3299628645,23),a=d(a,s=d(s,i=d(i,n,a,s,e[0],4096336452,6),n,a,e[7],1126891415,10),i,n,e[14],2878612391,15),s,i,e[5],4237533241,21),a=d(a,s=d(s,i=d(i,n,a,s,e[12],1700485571,6),n,a,e[3],2399980690,10),i,n,e[10],4293915773,15),s,i,e[1],2240044497,21),a=d(a,s=d(s,i=d(i,n,a,s,e[8],1873313359,6),n,a,e[15],4264355552,10),i,n,e[6],2734768916,15),s,i,e[13],1309151649,21),a=d(a,s=d(s,i=d(i,n,a,s,e[4],4149444226,6),n,a,e[11],3174756917,10),i,n,e[2],718787259,15),s,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+s|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s}).call(t,i(674).Buffer)},function(e,t,i){e.exports=a;var n=i(964).EventEmitter;function a(){n.call(this)}i(670)(a,n),a.Readable=i(965),a.Writable=i(1379),a.Duplex=i(1380),a.Transform=i(1381),a.PassThrough=i(1382),a.Stream=a,a.prototype.pipe=function(e,t){var i=this;function a(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function o(){i.readable&&i.resume&&i.resume()}i.on("data",a),e.on("drain",o),e._isStdio||t&&!1===t.end||(i.on("end",r),i.on("close",l));var s=!1;function r(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){i.removeListener("data",a),e.removeListener("drain",o),i.removeListener("end",r),i.removeListener("close",l),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",c),e.on("error",c),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},function(e,t){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,i,s,r,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(o(i=this._events[e]))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),i.apply(this,r)}else if(a(i))for(r=Array.prototype.slice.call(arguments,1),s=(c=i.slice()).length,l=0;l<s;l++)c[l].apply(this,r);return!0},i.prototype.addListener=function(e,t){var s;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(s=o(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var i=!1;function a(){this.removeListener(e,a),i||(i=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},i.prototype.removeListener=function(e,t){var i,o,s,r;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(i)){for(r=s;r-- >0;)if(i[r]===t||i[r].listener&&i[r].listener===t){o=r;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(i=this._events[e]))this.removeListener(e,i);else if(i)for(;i.length;)this.removeListener(e,i[i.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,i){(t=e.exports=i(1001)).Stream=t,t.Readable=t,t.Writable=i(966),t.Duplex=i(884),t.Transform=i(1004),t.PassThrough=i(1378)},function(e,t,i){"use strict";(function(t,n,a){var o=i(923);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(i),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var r,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o;v.WritableState=b;var c=i(911);c.inherits=i(670);var u={deprecate:i(1377)},d=i(1002),p=i(685).Buffer,f=a.Uint8Array||function(){};var h,m=i(1003);function g(){}function b(e,t){r=r||i(884),e=e||{},this.objectMode=!!e.objectMode,t instanceof r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,n=i.sync,a=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,n,a){--t.pendingcb,i?(o(a,n),o(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(a(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,i,n,t,a);else{var s=k(i);s||i.corked||i.bufferProcessing||!i.bufferedRequest||w(e,i),n?l(_,e,i,s,a):_(e,i,s,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function v(e){if(r=r||i(884),!(h.call(v,this)||this instanceof r))return new v(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function y(e,t,i,n,a,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,i?e._writev(a,t.onwrite):e._write(a,o,t.onwrite),t.sync=!1}function _(e,t,i,n){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function w(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var n=t.bufferedRequestCount,a=new Array(n),o=t.corkedRequestsFree;o.entry=i;for(var r=0,l=!0;i;)a[r]=i,i.isBuf||(l=!1),i=i.next,r+=1;a.allBuffers=l,y(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t)}else{for(;i;){var c=i.chunk,u=i.encoding,d=i.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,u,d),i=i.next,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=i,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var i=k(t);return i&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}c.inherits(v,d),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||e&&e._writableState instanceof b}})):h=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,i){var n,a=this._writableState,s=!1,r=(n=e,(p.isBuffer(n)||n instanceof f)&&!a.objectMode);return r&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(i=t,t=null),r?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof i&&(i=g),a.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),o(t,i)}(this,i):(r||function(e,t,i,n){var a=!0,s=!1;return null===i?s=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o(n,s),a=!1),a}(this,a,e,i))&&(a.pendingcb++,s=function(e,t,i,n,a,o){if(!i){var s=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,i));return t}(t,n,a);n!==s&&(i=!0,a="buffer",n=s)}var r=t.objectMode?1:n.length;t.length+=r;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:i,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,r,n,a,o);return l}(this,a,r,e,t,i)),s},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},v.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},v.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,i){var n=this._writableState;"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,i){t.ending=!0,S(e,t),i&&(t.finished?o(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,n,i)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,i(142),i(346).setImmediate,i(37))},function(e,t,i){"use strict";var n=i(685).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=r,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=p,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function r(e){var t=this.lastTotal-this.lastNeed,i=function(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(i);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(i+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(i+2)}}(this,e,t);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function u(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},o.prototype.text=function(e,t){var i=function(e,t,i){var n=t.length-1;if(n<i)return 0;var a=s(t[n]);if(a>=0)return a>0&&(e.lastNeed=a-1),a;if(--n<i)return 0;if((a=s(t[n]))>=0)return a>0&&(e.lastNeed=a-2),a;if(--n<i)return 0;if((a=s(t[n]))>=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var n=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,i){"use strict";var n=i(674).Buffer,a=i(670),o=i(1e3),s=new Array(16),r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],p=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function h(e,t){return e<<t|e>>>32-t}function m(e,t,i,n,a,o,s,r){return h(e+(t^i^n)+o+s|0,r)+a|0}function g(e,t,i,n,a,o,s,r){return h(e+(t&i|~t&n)+o+s|0,r)+a|0}function b(e,t,i,n,a,o,s,r){return h(e+((t|~i)^n)+o+s|0,r)+a|0}function v(e,t,i,n,a,o,s,r){return h(e+(t&n|i&~n)+o+s|0,r)+a|0}function y(e,t,i,n,a,o,s,r){return h(e+(t^(i|~n))+o+s|0,r)+a|0}a(f,o),f.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,f=0|this._e,_=0|this._a,w=0|this._b,k=0|this._c,x=0|this._d,S=0|this._e,C=0;C<80;C+=1){var $,P;C<16?($=m(i,n,a,o,f,e[r[C]],d[0],c[C]),P=y(_,w,k,x,S,e[l[C]],p[0],u[C])):C<32?($=g(i,n,a,o,f,e[r[C]],d[1],c[C]),P=v(_,w,k,x,S,e[l[C]],p[1],u[C])):C<48?($=b(i,n,a,o,f,e[r[C]],d[2],c[C]),P=b(_,w,k,x,S,e[l[C]],p[2],u[C])):C<64?($=v(i,n,a,o,f,e[r[C]],d[3],c[C]),P=g(_,w,k,x,S,e[l[C]],p[3],u[C])):($=y(i,n,a,o,f,e[r[C]],d[4],c[C]),P=m(_,w,k,x,S,e[l[C]],p[4],u[C])),i=f,f=o,o=h(a,10),a=n,n=$,_=S,S=x,x=h(k,10),k=w,w=P}var E=this._b+a+x|0;this._b=this._c+o+S|0,this._c=this._d+f+_|0,this._d=this._e+i+w|0,this._e=this._a+n+k|0,this._a=E},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=f},function(e,t,i){(t=e.exports=function(e){e=e.toLowerCase();var i=t[e];if(!i)throw new Error(e+" is not supported (we accept pull requests)");return new i}).sha=i(1383),t.sha1=i(1384),t.sha224=i(1385),t.sha256=i(1005),t.sha384=i(1386),t.sha512=i(1006)},function(e,t,i){"use strict";t.utils=i(1392),t.Cipher=i(1393),t.DES=i(1394),t.CBC=i(1395),t.EDE=i(1396)},function(e,t,i){var n=i(1397),a=i(1405),o=i(1016);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=a.createDecipher,t.createDecipheriv=t.Decipheriv=a.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,i){var n={ECB:i(1398),CBC:i(1399),CFB:i(1400),CFB8:i(1401),CFB1:i(1402),OFB:i(1403),CTR:i(1014),GCM:i(1014)},a=i(1016);for(var o in a)a[o].module=n[a[o].mode];e.exports=a},function(e,t,i){(function(t){var n=i(712),a=i(889);function o(e,i){var a=function(e){var t=s(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(i),o=i.modulus.byteLength(),r=(n.mont(i.modulus),new n(e).mul(a.blinder).umod(i.modulus)),l=r.toRed(n.mont(i.prime1)),c=r.toRed(n.mont(i.prime2)),u=i.coefficient,d=i.prime1,p=i.prime2,f=l.redPow(i.exponent1),h=c.redPow(i.exponent2);f=f.fromRed(),h=h.fromRed();var m=f.isub(h).imul(u).umod(d);return m.imul(p),h.iadd(m),new t(h.imul(a.unblinder).umod(i.modulus).toArray(!1,o))}function s(e){for(var t=e.modulus.byteLength(),i=new n(a(t));i.cmp(e.modulus)>=0||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new n(a(t));return i}e.exports=o,o.getr=s}).call(t,i(674).Buffer)},function(e,t,i){var n=t;n.utils=i(815),n.common=i(913),n.sha=i(1421),n.ripemd=i(1425),n.hmac=i(1426),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(336),a=i(654),o=i(664);t.default={mixins:[a.a,n.a,o.a],props:{daysOff:{type:Array},listedDaysOff:{default:function(){return[]},type:Array},allowEditCompanyDaysOff:{type:Boolean,default:!0,required:!1},isCabinet:{type:Boolean,default:!1,required:!1}},data:function(){return{editedDayOffIndex:-1,filterDate:this.$moment(),model:{dayOffDates:null,dayOffId:0,dayOffName:"",dayOffRepeat:0},rules:{dayOffName:[{required:!0,message:this.$root.labels.days_off_name_warning,trigger:"submit"}],dayOffDates:[{required:!0,message:this.$root.labels.days_off_date_warning,trigger:"submit"}]},settings:this.daysOff.slice(0),showDayOffForm:!1,yearDaysOff:[],yearListedDaysOff:[]}},mounted:function(){this.filterDaysOff()},methods:{editDayOff:function(e){this.model.dayOffId=e.hasOwnProperty("id")?e.id:0,this.model.dayOffName=e.name,this.model.dayOffDates={start:this.$moment(e.startDate,"YYYY-MM-DD").toDate(),end:this.$moment(e.endDate,"YYYY-MM-DD").toDate()},this.model.dayOffRepeat=e.repeat,this.showDayOffForm=!0,this.editedDayOffIndex=this.settings.indexOf(e)},addDayOff:function(){this.editedDayOffIndex=-1,this.model.dayOffId=0,this.model.dayOffName="",this.model.dayOffRepeat=0,this.model.dayOffDates=null,this.showDayOffForm=!0},saveDayOff:function(){var e=this;this.$refs.model.validate(function(t){if(!t)return!1;-1!==e.editedDayOffIndex?e.settings.splice(e.editedDayOffIndex,1,e.dayOff):e.settings.push(e.dayOff),e.$refs.model.clearValidate(),e.showDayOffForm=!1,e.filterDate=e.$moment(e.dayOff.startDate,"YYYY-MM-DD").toDate(),e.filterDaysOff(),e.$emit("changeDaysOff",e.settings)})},deleteDayOff:function(e){var t=this.settings.indexOf(e);this.settings.splice(t,1),this.filterDaysOff(),this.$emit("changeDaysOff",this.settings)},filter:function(e){var t=this,i=e.filter(function(e){return t.$moment(e.startDate,"YYYY-MM-DD").year()===t.filterYear&&!e.repeat}),n=e.filter(function(e){return e.repeat});return n.forEach(function(e,i){t.$moment(e.startDate,"YYYY-MM-DD").year()===t.$moment(e.endDate,"YYYY-MM-DD").year()?n[i].endDate=t.$moment(e.endDate,"YYYY-MM-DD").year(t.filterYear).format("YYYY-MM-DD"):n[i].endDate=t.$moment(e.endDate,"YYYY-MM-DD").year(t.filterYear+1).format("YYYY-MM-DD"),n[i].startDate=t.$moment(e.startDate,"YYYY-MM-DD").year(t.filterYear).format("YYYY-MM-DD")}),n.concat(i).sort(function(e,i){return t.$moment(e.startDate).diff(i.startDate)})},editCompanyDaysOffSettings:function(){this.$emit("showCompanyDaysOffSettingsDialog")},filterDaysOff:function(){this.yearDaysOff=this.filter(this.settings),this.yearListedDaysOff=this.filter(this.listedDaysOff)}},computed:{filterYear:function(){return this.$moment(this.filterDate,"YYYY-MM-DD").year()},dayOff:function(){return{id:this.model.dayOffId,name:this.model.dayOffName,startDate:this.$moment(this.model.dayOffDates.start).format("YYYY-MM-DD"),endDate:this.$moment(this.model.dayOffDates.end).format("YYYY-MM-DD"),repeat:this.model.dayOffRepeat}}},watch:{settings:function(){this.yearDaysOff=this.filter(this.settings)},listedDaysOff:function(){this.yearListedDaysOff=this.filter(this.listedDaysOff)}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"am-days-off"},[i("div",{staticClass:"am-dialog-table"},[i("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:20,type:"flex",align:"middle"}},[i("el-col",{staticClass:"am-days-off__header"},[i("el-date-picker",{attrs:{type:"year",clearable:!1,placeholder:e.$root.labels.pick_a_year},on:{change:e.filterDaysOff},model:{value:e.filterDate,callback:function(t){e.filterDate=t},expression:"filterDate"}}),e._v(" "),i("div",{staticClass:"am-days-off__legend"},[i("div",{staticClass:"am-legend-repeat"},[i("span",{staticClass:"type repeat"}),e._v(e._s(e.$root.labels.repeat_every_year))]),e._v(" "),i("div",{staticClass:"am-legend-once"},[i("span",{staticClass:"type once"}),e._v(e._s(e.$root.labels.once_off))])])],1)],1)],1),e._v(" "),i("div",{staticClass:"am-employee-days-off"},[i("div",{staticClass:"am-dialog-table"},[e.listedDaysOff.length>0?i("h4",[e._v(e._s(e.$root.labels.employee_days_off))]):e._e(),e._v(" "),i("el-row",{staticClass:"am-dialog-table-head days",attrs:{gutter:20}},[i("el-col",{attrs:{span:12}},[i("span",[e._v(e._s(e.$root.labels.date))])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("span",[e._v(e._s(e.$root.labels.day_off_name))])])],1),e._v(" "),e._l(e.yearDaysOff,function(t,n){return i("el-row",{key:n,staticClass:"am-day-off",staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:20,type:"flex",align:"middle"}},[i("el-col",{attrs:{xs:12,sm:12,md:12}},[i("span",{staticClass:"type",class:{repeat:t.repeat,once:!t.repeat}}),e._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.startDate===t.endDate?e.getFrontedFormattedDate(t.startDate):e.getFrontedFormattedDate(t.startDate)+" - "+e.getFrontedFormattedDate(t.endDate),placement:"top-start"}},[i("span",[e._v("\n "+e._s(t.startDate===t.endDate?e.getFrontedFormattedDate(t.startDate):e.getFrontedFormattedDate(t.startDate)+" - "+e.getFrontedFormattedDate(t.endDate))+"\n ")])])],1),e._v(" "),i("el-col",{staticClass:"am-day-off__name-column",attrs:{xs:12,sm:12,md:8}},[i("span",{attrs:{title:t.name}},[e._v(e._s(t.name))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{xs:24,sm:24,md:4}},[i("div",{staticClass:"am-edit-element",on:{click:function(i){return e.editDayOff(t)}}},[i("img",{attrs:{src:e.$root.getUrl+"public/img/edit-pen.svg"}})]),e._v(" "),i("div",{staticClass:"am-delete-element",on:{click:function(i){return e.deleteDayOff(t)}}},[i("i",{staticClass:"el-icon-minus"})])])],1)}),e._v(" "),i("el-row",[i("el-col",[i("div",{staticClass:"am-add-element",on:{click:e.addDayOff}},[i("i",{staticClass:"el-icon-plus"}),i("span",{staticClass:"am-add-day-off"},[e._v(e._s(e.$root.labels.add_day_off))])])])],1)],2),e._v(" "),i("transition",{attrs:{name:"fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showDayOffForm,expression:"showDayOffForm"}],staticClass:"am-day-off-add"},[i("el-form",{ref:"model",attrs:{model:e.model,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.saveDayOff(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.day_off_name+":",prop:"dayOffName"}},[i("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.labels.add_day_off_placeholder},model:{value:e.model.dayOffName,callback:function(t){e.$set(e.model,"dayOffName",t)},expression:"model.dayOffName"}})],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{staticClass:"v-calendar-column",attrs:{sm:24}},[i("el-form-item",{attrs:{label:e.$root.labels.date+":",prop:"dayOffDates"}},[i("v-date-picker",{attrs:{mode:"range","input-class":"el-input__inner","popover-visibility":"focus","popover-direction":"top","popover-align":e.screenWidth<768?"center":"left","is-required":!0,"is-expanded":!1,"show-day-popover":!1,"tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","input-props":{class:"el-input__inner",readOnly:"readonly"},placeholder:e.$root.labels.pick_a_date_or_range,formats:e.vCalendarFormats},model:{value:e.model.dayOffDates,callback:function(t){e.$set(e.model,"dayOffDates",t)},expression:"model.dayOffDates"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{sm:12}},[i("el-checkbox",{staticClass:"am-semi-strong",model:{value:e.model.dayOffRepeat,callback:function(t){e.$set(e.model,"dayOffRepeat",t)},expression:"model.dayOffRepeat"}},[e._v("\n "+e._s(e.$root.labels.days_off_repeat_yearly)+"\n ")])],1),e._v(" "),i("el-col",{staticClass:"align-right am-day-off-add-buttons",attrs:{sm:12}},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDayOffForm=!e.showDayOffForm}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{size:"small",type:"primary"},on:{click:e.saveDayOff}},[e._v("\n "+e._s(e.$root.labels.days_off_add)+"\n ")])],1)],1)],1)],1)])],1),e._v(" "),e.listedDaysOff.length>0?i("div",{staticClass:"am-company-days-off"},[i("div",{staticClass:"am-dialog-table"},[i("h4",[e._v(e._s(e.$root.labels.company_days_off))]),e._v(" "),i("el-row",{staticClass:"am-dialog-table-head days",attrs:{gutter:20}},[i("el-col",{attrs:{span:12}},[i("span",[e._v(e._s(e.$root.labels.date))])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("span",[e._v(e._s(e.$root.labels.day_off_name))])])],1),e._v(" "),e._l(e.yearListedDaysOff,function(t,n){return i("el-row",{key:n,staticClass:"am-day-off",attrs:{gutter:20,type:"flex",align:"middle"}},[i("el-col",{attrs:{span:12}},[i("span",{staticClass:"type",class:{repeat:t.repeat,once:!t.repeat}}),e._v(" "),i("span",[e._v("\n "+e._s(t.startDate===t.endDate?e.getFrontedFormattedDate(t.startDate):e.getFrontedFormattedDate(t.startDate)+" - "+e.getFrontedFormattedDate(t.endDate))+"\n ")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("span",[e._v(e._s(t.name))])])],1)}),e._v(" "),e.allowEditCompanyDaysOff?i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"am-add-element",on:{click:e.editCompanyDaysOffSettings}},[e._v(e._s(e.$root.labels.edit_company_days_off)+"\n ")])])],1):e._e()],2)]):e._e()])},staticRenderFns:[]}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(336),o=i(660),s=i(883);t.default={mixins:[s.a,n.a,a.a,o.a],props:{activeTab:"",weekSchedule:null,categorizedServiceList:null,locations:null},data:function(){return{rules:{startTime:[{required:!0,message:this.$root.labels.select_time_warning,trigger:"submit"}],endTime:[{required:!0,message:this.$root.labels.select_time_warning,trigger:"submit"}]},responsiveGrid:{editHours:{workHours:24,hour:24,services:24,location:24},periods:{hours:this.categorizedServiceList?4:6,services:this.categorizedServiceList?12:10,locations:5,edit:3}}}},methods:{getWorkingPeriodsInSeconds:function(e){var t=[],i=this;return this.getDayHours(e).filter(function(e){return"Work"===e.type}).map(function(e){return e.data}).map(function(e){return e.time}).forEach(function(n){e.form.data.time[0]===n[0]&&e.form.data.time[1]===n[1]||t.push([i.getStringTimeInSeconds(n[0]),i.getStringTimeInSeconds(n[1])])}),t},getDayHours:function(e){var t=this,i=[];return e.periods.forEach(function(e,t){i.push({index:t,type:"Work",data:e})}),e.breaks.forEach(function(e,t){i.push({index:t,type:"Break",data:e})}),i.sort(function(e,i){return t.$moment("2000-01-01 "+e.data.time[0]+":00","YYYY-MM-DD HH:mm:ss").diff(t.$moment("2000-01-01 "+i.data.time[0]+":00","YYYY-MM-DD HH:mm:ss"))})},getServicesNames:function(e){var t=[];return this.categorizedServiceList&&this.categorizedServiceList.forEach(function(i){i.serviceList.forEach(function(i){-1!==e.indexOf(i.id)&&t.push(i.name)})}),t},selectAllInCategory:function(e,t){var i=this.categorizedServiceList.find(function(e){return e.id===t}).serviceList.filter(function(e){return e.state}).map(function(e){return e.id});_.isEqual(_.intersection(i,e.serviceIds),i)?e.serviceIds=_.difference(e.serviceIds,i):e.serviceIds=_.uniq(e.serviceIds.concat(i))},getTimeSelectOptionsForBreaks:function(e,t,i,n){return{start:"00:00",end:"24:00",step:this.secondsToTimeSelectStep(this.getTimeSlotLength()),minTime:i||e,maxTime:n||t}},editHours:function(e,t,i){var n=this;switch(t){case"Work":e.form.show=!1,setTimeout(function(){e.form={data:e.periods[i],oldData:JSON.parse(JSON.stringify(e.periods[i])),isNew:!1,type:"Work",show:!0,index:i},n.findFreePeriods(n.getWorkingPeriodsInSeconds(e))},200);break;case"Break":e.form.show=!1,setTimeout(function(){e.form={data:e.breaks[i],oldData:JSON.parse(JSON.stringify(e.breaks[i])),isNew:!1,type:"Break",show:!0,index:i}},200)}},deleteHours:function(e,t,i){switch(t){case"Work":e.periods.splice(i,1);break;case"Break":e.breaks.splice(i,1)}},showNewHoursForm:function(e){e.form={data:{time:"Work"===e.form.type?[e.periods.length?e.periods[e.periods.length-1].time[1]:"",""]:["",""],id:null,locationId:null,locationIds:[],serviceIds:[],periodLocationList:[],periodServiceList:[]},isNew:!0,type:"Work",show:!0,index:null},this.findFreePeriods(this.getWorkingPeriodsInSeconds(e))},hideHoursForm:function(e){switch(e.form.show=!1,e.form.type){case"Work":e.form.isNew||(e.periods[e.form.index]=e.form.oldData);break;case"Break":e.form.isNew||(e.breaks[e.form.index]=e.form.oldData)}},saveHoursForm:function(e){this.$refs.workDay[0].validate(function(t){if(!t)return!1;switch(e.form.type){case"Work":e.form.isNew?e.periods.push({id:null,time:e.form.data.time,locationIds:e.form.data.locationIds,serviceIds:e.form.data.serviceIds,locationId:e.form.data.locationId,periodLocationList:e.form.data.periodLocationList,periodServiceList:e.form.data.periodServiceList}):e.periods[e.form.index]=e.form.data;break;case"Break":e.form.isNew?e.breaks.push({id:null,time:e.form.data.time}):e.breaks[e.form.index]=e.form.data}e.form.show=!1})},applyToAllDays:function(e){var t=JSON.parse(JSON.stringify(e.periods));t.forEach(function(e){e.id=null,e.periodLocationList=[],e.periodServiceList=[],e.savedPeriodServiceList=[]});var i=JSON.parse(JSON.stringify(e.breaks));i.forEach(function(e){e.id=null}),this.weekSchedule.forEach(function(n){n.id=null,n.periods=JSON.parse(JSON.stringify(t)),n.breaks=JSON.parse(JSON.stringify(i)),n.time=JSON.parse(JSON.stringify(e.time))})},getPeriodLocationsIds:function(e){return e.locationIds.length?e.locationIds:e.locationId?[e.locationId]:[]},getLocationsNames:function(e){var t=this,i=[];return e.forEach(function(e){var n=t.locations.find(function(t){return t.id===e});n&&i.push(n.name)}),i},getColumnLength:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.categorizedServiceList&&this.servicesCount>1&&this.locations&&this.locations.length>1?"mini"===e?{workHours:24,hour:24,services:24,location:24}:"mobile"===e?{workHours:24,hour:12,services:24,location:24}:{workHours:8,hour:12,services:8,location:8}:this.categorizedServiceList&&this.servicesCount>1?"mini"===e?{workHours:24,hour:24,services:24,location:0}:"mobile"===e?{workHours:24,hour:12,services:24,location:0}:{workHours:10,hour:12,services:14,location:0}:this.locations&&this.locations.length>1?"mini"===e?{workHours:24,hour:24,services:0,location:24}:"mobile"===e?{workHours:24,hour:12,services:0,location:24}:{workHours:10,hour:12,services:0,location:14}:"mini"===e?{workHours:24,hour:24,services:0,location:0}:{workHours:24,hour:12,services:0,location:0}},handleResize:function(){if("workingHours"===this.activeTab||"hours"===this.activeTab){var e=this.$refs.workingHours;void 0!==e&&e.offsetWidth<320?(this.responsiveGrid.periods={hours:24,services:24,locations:24,edit:24},this.responsiveGrid.editHours=this.getColumnLength("mini")):void 0!==e&&e.offsetWidth<650?(this.responsiveGrid.periods={hours:24,services:24,locations:24,edit:24},this.responsiveGrid.editHours=this.getColumnLength("mobile")):(this.responsiveGrid.periods={hours:this.categorizedServiceList?4:6,services:this.categorizedServiceList?12:10,locations:5,edit:3},this.responsiveGrid.editHours=this.getColumnLength())}}},created:function(){window.addEventListener("resize",this.handleResize)},computed:{servicesCount:function(){var e=0;return this.categorizedServiceList.forEach(function(t){e+=t.serviceList.length}),e}},watch:{activeTab:function(){"workingHours"!==this.activeTab&&"hours"!==this.activeTab||this.handleResize()}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"workingHours",staticClass:"am-working-hours"},e._l(e.weekSchedule,function(t,n){return i("div",{key:t.id,staticClass:"am-dialog-table"},[i("el-row",{staticClass:"am-dialog-table-head hours"},[i("el-col",{attrs:{span:12}},[i("span",[e._v(e._s(t.day))])]),e._v(" "),i("el-col",{staticClass:"am-align-right",attrs:{span:12}},[0===n?i("span",{staticClass:"am-add-element",on:{click:function(i){return e.applyToAllDays(t)}}},[e._v("\n "+e._s(e.$root.labels.apply_to_all_days)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"am-add-element",on:{click:function(i){return e.showNewHoursForm(t)}}},[i("i",{staticClass:"el-icon-plus"})])])],1),e._v(" "),i("transition",{attrs:{name:"fade"}},[t.form.show?i("div",{staticClass:"am-add-period"},[i("el-form",{ref:"workDay",refInFor:!0,attrs:{"label-position":"top",model:t}},[t.form.isNew?i("el-row",{staticClass:"am-add-period-type",attrs:{gutter:10}},[i("el-col",[i("el-radio",{attrs:{label:"Work"},model:{value:t.form.type,callback:function(i){e.$set(t.form,"type",i)},expression:"workDay.form.type"}},[e._v(e._s(e.$root.labels.work_hours))]),e._v(" "),i("el-radio",{attrs:{label:"Break"},model:{value:t.form.type,callback:function(i){e.$set(t.form,"type",i)},expression:"workDay.form.type"}},[e._v(e._s(e.$root.labels.breaks))])],1)],1):e._e(),e._v(" "),"Work"===t.form.type?i("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[i("el-col",{attrs:{span:e.responsiveGrid.editHours.workHours}},[i("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[i("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[i("span",[e._v(e._s(e.$root.labels.work_hours))])]),e._v(" "),i("el-col",{attrs:{span:e.responsiveGrid.editHours.hour}},[i("el-form-item",{attrs:{rules:e.rules.startTime,prop:"form.data.time.0"}},[i("el-time-select",{staticStyle:{"margin-bottom":"12px"},attrs:{"picker-options":e.getPeriodBorderTime(t.form.data.time[0],t.form.data.time[1],!0),size:"mini","popper-class":"am-dropdown-cabinet"},on:{change:function(i){e.startTimeChanged(t.form.data.time[0],t.form.data.time[1],e.getWorkingPeriodsInSeconds(t),function(e){t.form.data.time[1]=e})},focus:function(i){e.startTimeChanged(t.form.data.time[0],t.form.data.time[1],e.getWorkingPeriodsInSeconds(t),function(e){t.form.data.time[1]=e})}},model:{value:t.form.data.time[0],callback:function(i){e.$set(t.form.data.time,0,i)},expression:"workDay.form.data.time[0]"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:e.responsiveGrid.editHours.hour}},[i("el-form-item",{attrs:{rules:e.rules.endTime,prop:"form.data.time.1"}},[i("el-time-select",{staticStyle:{"margin-bottom":"12px"},attrs:{"picker-options":e.getPeriodBorderTime(t.form.data.time[0],t.form.data.time[1],!1),size:"mini","popper-class":"am-dropdown-cabinet",disabled:null===t.form.data.time[0]},model:{value:t.form.data.time[1],callback:function(i){e.$set(t.form.data.time,1,i)},expression:"workDay.form.data.time[1]"}})],1)],1)],1)],1),e._v(" "),e.categorizedServiceList&&e.servicesCount>1?i("el-col",{attrs:{span:e.responsiveGrid.editHours.services}},[i("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[i("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[i("span",[e._v(e._s(e.$root.labels.services.charAt(0).toUpperCase()+e.$root.labels.services.slice(1)))]),e._v(" "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_services_filter1_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{attrs:{span:24}},[i("el-select",{staticClass:"am-select-service",attrs:{multiple:"",filterable:"",placeholder:e.$root.labels.period_services_filter,"popper-class":"am-dropdown-cabinet","collapse-tags":"",size:"mini"},model:{value:t.form.data.serviceIds,callback:function(i){e.$set(t.form.data,"serviceIds",i)},expression:"workDay.form.data.serviceIds"}},e._l(e.categorizedServiceList,function(n){return n.serviceList.filter(function(e){return e.state}).length>0?i("div",{key:n.id},[i("div",{staticClass:"am-drop-parent",on:{click:function(i){return e.selectAllInCategory(t.form.data,n.id)}}},[i("span",[e._v(e._s(n.name))])]),e._v(" "),e._l(n.serviceList,function(t){return t.state?i("el-option",{key:t.id,staticClass:"am-drop-child",attrs:{label:t.name,value:t.id}}):e._e()})],2):e._e()}),0)],1)],1)],1):e._e(),e._v(" "),e.locations&&e.locations.length>1?i("el-col",{attrs:{span:e.responsiveGrid.editHours.location}},[i("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[i("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[i("span",[e._v(e._s(e.$root.labels.location))]),e._v(" "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_location_filter1_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{attrs:{span:24}},[i("el-select",{staticClass:"am-select-service",attrs:{multiple:"",size:"mini",filterable:"",clearable:"","collapse-tags":"",placeholder:e.$root.labels.location,"popper-class":"am-dropdown-cabinet"},model:{value:t.form.data.locationIds,callback:function(i){e.$set(t.form.data,"locationIds",i)},expression:"workDay.form.data.locationIds"}},e._l(e.locations,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1)],1):e._e()],1):"Break"===t.form.type?i("el-row",{attrs:{gutter:10}},[i("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[i("span",[e._v(e._s(e.$root.labels.break_hours))])]),e._v(" "),i("p",{staticStyle:{display:"none"}},[e._v(e._s(e.$root.labels.break_hours))]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{rules:e.rules.startTime,prop:"form.data.time.0"}},[i("el-time-select",{staticStyle:{"margin-bottom":"14px"},attrs:{"picker-options":e.getTimeSelectOptionsForBreaks(t.periods.length?t.periods[0].time[0]:"00:00",t.periods.length?t.periods[t.periods.length-1].time[1]:"24:00","",t.form.data.time[1]),size:"mini","popper-class":"am-dropdown-cabinet"},model:{value:t.form.data.time[0],callback:function(i){e.$set(t.form.data.time,0,i)},expression:"workDay.form.data.time[0]"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{rules:e.rules.endTime,prop:"form.data.time.1"}},[i("el-time-select",{staticStyle:{"margin-bottom":"14px"},attrs:{"picker-options":e.getTimeSelectOptionsForBreaks(t.periods.length?t.periods[0].time[0]:"00:00",t.periods.length?t.periods[t.periods.length-1].time[1]:"24:00",t.form.data.time[0],""),size:"mini","popper-class":"am-dropdown-cabinet"},model:{value:t.form.data.time[1],callback:function(i){e.$set(t.form.data.time,1,i)},expression:"workDay.form.data.time[1]"}})],1)],1)],1):e._e(),e._v(" "),i("div",{staticClass:"am-working-hours-buttons"},[i("div",{staticClass:"align-left"},[i("el-button",{attrs:{size:"small"},on:{click:function(i){return e.hideHoursForm(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return e.saveHoursForm(t)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)])],1)],1):e._e()]),e._v(" "),i("transition-group",{attrs:{name:"fade",tag:"div"}},e._l(e.getDayHours(t),function(a,o){return i("div",{key:o+1,staticClass:"am-period"},[i("el-row",{attrs:{gutter:10,type:"flex"}},[i("el-col",{staticClass:"am-period__services",attrs:{span:e.responsiveGrid.periods.hours}},[i("span",{staticClass:"am-overflow-ellipsis"},[i("span",{class:{"am-period-break":"Break"===a.type}},[e._v(e._s(a.data.time[0])+" - "+e._s(a.data.time[1]))])])]),e._v(" "),i("el-col",{staticClass:"am-flexed2 am-period__services",attrs:{span:e.responsiveGrid.periods.services}},["Work"===a.type&&a.data.serviceIds.length>0?i("span",{staticClass:"am-overflow-ellipsis"},[i("span",{ref:"serviceName-"+n+"-"+o,refInFor:!0,attrs:{title:e.getServicesNames(a.data.serviceIds).join(", ")}},[e._v("\n "+e._s(e.getServicesNames(a.data.serviceIds).join(", "))+"\n ")])]):e._e()]),e._v(" "),i("el-col",{staticClass:"am-flexed2 am-period__locations",attrs:{span:e.responsiveGrid.periods.locations}},["Work"===a.type&&e.getPeriodLocationsIds(a.data).length>0?i("span",{staticClass:"am-overflow-ellipsis",attrs:{title:e.getLocationsNames(e.getPeriodLocationsIds(a.data)).join(", ")}},[e._v("\n "+e._s(e.getLocationsNames(e.getPeriodLocationsIds(a.data)).join(", "))+"\n ")]):e._e()]),e._v(" "),i("el-col",{staticClass:"am-flexed2 am-period__services",class:{mobile:24===e.responsiveGrid.periods.edit},staticStyle:{margin:"auto"},attrs:{span:e.responsiveGrid.periods.edit}},[i("div",{staticClass:"am-edit-element",on:{click:function(i){return e.editHours(t,a.type,a.index)}}},[i("img",{attrs:{src:e.$root.getUrl+"public/img/edit-pen.svg"}})]),e._v(" "),i("div",{staticClass:"am-delete-element",on:{click:function(i){return e.deleteHours(t,a.type,a.index)}}},[i("img",{attrs:{src:e.$root.getUrl+"public/img/delete.svg"}})])])],1)],1)}),0)],1)}),0)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(980),i(981),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(897),a=i.n(n),o=i(899),s=i.n(o),r=i(902),l=i.n(r),c=i(658),u=i(657),d=i(661),p=i(699);i.n(p);t.default={name:"AssignedServices",components:{CustomDuration:a.a,PersonPrice:s.a,PeriodPrice:l.a,Money:p.Money},mixins:[c.a,d.a,u.a],props:{categorizedServiceList:{type:Array,default:function(){return[]}},weekSchedule:{type:Array,default:function(){return[]}},specialDays:{type:Array,default:function(){return[]}},futureAppointments:{type:Object,default:function(){return{}}},employeeId:{type:Number,default:0},mandatoryServicesIds:{type:Array,default:function(){return[]}}},data:function(){return{editedDurationsService:null,editedPersonsService:null,editedPeriodsService:null,showDurations:!1,showPersons:!1,showPeriods:!1}},created:function(){var e=this;this.categorizedServiceList.forEach(function(t){e.handleCheckSingleInCategory(t)})},methods:{toggleDurations:function(e){var t=this.editedDurationsService&&this.editedDurationsService.id!==e.id||!this.editedDurationsService?e:null;this.editedDurationsService=t,this.showDurations=!!t},togglePersons:function(e){var t=this.editedPersonsService&&this.editedPersonsService.id!==e.id||!this.editedPersonsService?e:null;this.editedPersonsService=t,this.showPersons=!!t},togglePeriods:function(e){var t=this.editedPeriodsService&&this.editedPeriodsService.id!==e.id||!this.editedPeriodsService?e:null;this.editedPeriodsService=t,this.showPeriods=!!t},priceChanged:function(e){e.customPricing.persons.length&&(e.customPricing.persons[0].price=e.price)},changeCategory:function(e){var t=this,i=this.categorizedServiceList.find(function(t){return t.id===e});i.serviceList.forEach(function(e){0!==Object.keys(t.futureAppointments).length&&void 0!==t.futureAppointments[t.employeeId]&&-1!==t.futureAppointments[t.employeeId].indexOf(e.id)&&!1===i.state?t.notify(t.$root.labels.error,t.$root.labels.service_provider_remove_fail_all+" "+e.name+" "+t.$root.labels.service,"error"):t.mandatoryServicesIds.length&&t.mandatoryServicesIds.includes(e.id)&&!1===i.state?t.notify(t.$root.labels.error,t.$root.labels.mandatory_service_remove_fail_all+" "+e.name+" "+t.$root.labels.service,"error"):(e.state=i.state,t.changeSelectedPeriodServices(e))}),this.handleCheckSingleInCategory(i)},changeService:function(e,t){0!==Object.keys(this.futureAppointments).length&&void 0!==this.futureAppointments[this.employeeId]&&-1!==this.futureAppointments[this.employeeId].indexOf(t.id)?(t.state=!0,this.notify(this.$root.labels.error,this.$root.labels.service_provider_remove_fail,"error")):this.mandatoryServicesIds.length&&this.mandatoryServicesIds.includes(t.id)&&(t.state=!0,this.notify(this.$root.labels.error,this.$root.labels.mandatory_service_remove_fail,"error")),this.changeSelectedPeriodServices(t),this.handleCheckSingleInCategory(e)},handleCheckSingleInCategory:function(e){e.state=e.serviceList.filter(function(e){return!0===e.state}).length===e.serviceList.length},checkCapacityLimits:function(e){e.minCapacity>e.maxCapacity&&(e.maxCapacity=e.minCapacity)},changeSelectedPeriodServices:function(e){e.state?this.weekSchedule.forEach(function(t){t.periods.forEach(function(t){"savedPeriodServiceList"in t&&t.savedPeriodServiceList.forEach(function(i){i.serviceId===e.id&&(t.periodServiceList.push(i),t.serviceIds.push(e.id))})})}):(this.weekSchedule.forEach(function(t){t.periods.forEach(function(t){t.periodServiceList.forEach(function(i,n){i.serviceId===e.id&&t.periodServiceList.splice(n,1)}),t.serviceIds.forEach(function(i,n){i===e.id&&t.serviceIds.splice(n,1)})})}),this.specialDays.forEach(function(t){t.periodList.forEach(function(t){t.periodServiceList.forEach(function(i,n){i.serviceId===e.id&&t.periodServiceList.splice(n,1)})})}))}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._l(e.categorizedServiceList,function(t){return t.serviceList.length>0?i("div",{key:t.id,staticClass:"am-dialog-table am-assigned-services"},[i("el-row",{staticClass:"am-dialog-table-head",attrs:{gutter:24}},[i("el-col",{staticClass:"am-three-dots",attrs:{span:12}},[i("el-checkbox",{on:{change:function(i){return e.changeCategory(t.id)}},model:{value:t.state,callback:function(i){e.$set(t,"state",i)},expression:"category.state"}}),e._v(" "),i("span",[e._v("\n "+e._s(t.name)+"\n ")])],1),e._v(" "),i("el-col",{attrs:{span:6}},[e._v("\n "+e._s(e.$root.labels.capacity)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:6}},[e._v("\n "+e._s(e.$root.labels.price)+"\n ")])],1),e._v(" "),e._l(t.serviceList,function(n){return i("div",{key:n.value},[i("el-row",{staticClass:"am-assigned-services__service-row",attrs:{gutter:10,type:"flex",align:"middle"}},[i("el-col",{staticClass:"am-assigned-services__service-row__name",attrs:{span:12}},[i("el-checkbox",{on:{change:function(i){return e.changeService(t,n)}},model:{value:n.state,callback:function(t){e.$set(n,"state",t)},expression:"item.state"}}),e._v(" "),i("span",{attrs:{title:n.name}},[e._v(e._s(n.name))])],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("p",{staticStyle:{display:"none"}},[e._v("\n "+e._s(e.$root.labels.minimum_capacity)+"\n ")]),e._v(" "),i("el-input-number",{attrs:{disabled:!n.state,value:n.minCapacity,min:1,controls:!1},on:{input:function(t){return e.checkCapacityLimits(n)}},model:{value:n.minCapacity,callback:function(t){e.$set(n,"minCapacity",t)},expression:"item.minCapacity"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("p",{staticStyle:{display:"none"}},[e._v("\n "+e._s(e.$root.labels.maximum_capacity)+"\n ")]),e._v(" "),i("el-input-number",{attrs:{disabled:!n.state,value:n.maxCapacity,min:n.minCapacity,controls:!1},on:{input:function(t){return e.checkCapacityLimits(n)}},model:{value:n.maxCapacity,callback:function(t){e.$set(n,"maxCapacity",t)},expression:"item.maxCapacity"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("p",{staticStyle:{display:"none"}},[e._v("\n "+e._s(e.$root.labels.price)+"\n ")]),e._v(" "),i("money",e._b({staticClass:"el-input__inner",attrs:{disabled:!n.state},on:{input:function(t){return e.priceChanged(n)}},model:{value:n.price,callback:function(t){e.$set(n,"price",t)},expression:"item.price"}},"money",e.moneyComponentData,!1))],1),e._v(" "),e.isDurationPricingEnabled(n.customPricing)?i("el-col",{attrs:{span:2}},[i("span",{on:{click:function(t){return e.toggleDurations(n)}}},[i("img",{staticClass:"svg-amelia edit",staticStyle:{cursor:"pointer"},attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})])]):e._e(),e._v(" "),e.isPersonPricingEnabled(n.customPricing)?i("el-col",{attrs:{span:2}},[i("span",{on:{click:function(t){return e.togglePersons(n)}}},[i("img",{staticClass:"svg-amelia edit",staticStyle:{cursor:"pointer"},attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})])]):e._e(),e._v(" "),e.isPeriodPricingEnabled(n.customPricing)?i("el-col",{attrs:{span:2}},[i("span",{on:{click:function(t){return e.togglePeriods(n)}}},[i("img",{staticClass:"svg-amelia edit",staticStyle:{cursor:"pointer"},attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})])]):e._e()],1),e._v(" "),e.isDurationPricingEnabled(n.customPricing)?i("el-row",{staticStyle:{"margin-bottom":"0"}},[i("div",{staticClass:"am-extra-item"},[i("el-collapse-transition",[e.showDurations&&e.editedDurationsService.id===n.id?i("div",[i("custom-duration",{attrs:{service:n,enabledDelete:!1,enabledAdd:!1,enabledDuration:!1}})],1):e._e()])],1)]):e._e(),e._v(" "),e.isPersonPricingEnabled(n.customPricing)?i("el-row",{staticStyle:{"margin-bottom":"0"}},[i("div",{staticClass:"am-extra-item"},[i("el-collapse-transition",[e.showPersons&&e.editedPersonsService.id===n.id?i("div",[i("person-price",{attrs:{service:n,enabledDelete:!1,enabledRange:!1}})],1):e._e()])],1)]):e._e(),e._v(" "),e.isPeriodPricingEnabled(n.customPricing)?i("el-row",{staticStyle:{"margin-bottom":"0"}},[i("div",{staticClass:"am-extra-item"},[i("el-collapse-transition",[e.showPeriods&&e.editedPeriodsService.id===n.id?i("div",[i("period-price",{attrs:{service:n,enabledAdd:!1,enabledEdit:!1,enabledDelete:!1}})],1):e._e()])],1)]):e._e()],1)})],2):e._e()}),0)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(null,i(983),!1,null,null,null);e.exports=n.exports},function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(985),i(986),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(336),o=i(660),s=i(655),r=i(664);t.default={mixins:[n.a,a.a,o.a,s.a,r.a],props:{activeTab:"",categorizedServiceList:null,locations:null,specialDays:null,shouldScrollView:{type:Boolean,default:!0,required:!1},isCabinet:{type:Boolean,default:!1,required:!1}},data:function(){return{model:{},rules:{dateRange:[{required:!0,message:this.$root.labels.special_day_date_warning,trigger:"submit"}],startTime:[{required:!0,message:this.$root.labels.special_day_start_time_warning,trigger:"submit"}],endTime:[{required:!0,message:this.$root.labels.special_day_end_time_warning,trigger:"submit"}]},specialDayModel:this.getInitSpecialDayModel(),showSpecialDayForm:!1,responsiveGrid:{editHours:{workHours:24,hour:24,services:24,location:24}}}},created:function(){window.addEventListener("resize",this.handleResize)},mounted:function(){this.sortSpecialDays()},methods:{sortSpecialDays:function(){this.specialDays.sort(function(e,t){return new Date(e.startDate)-new Date(t.startDate)})},getColumnLength:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.categorizedServiceList&&this.servicesCount>1&&this.locations&&this.locations.length>1?"mini"===e?{workHours:22,hour:24,services:22,location:22}:"mobile"===e?{workHours:22,hour:12,services:22,location:22}:{workHours:8,hour:12,services:8,location:8}:this.categorizedServiceList&&this.servicesCount>1?"mini"===e?{workHours:22,hour:24,services:22,location:0}:"mobile"===e?{workHours:22,hour:12,services:22,location:0}:{workHours:10,hour:12,services:12,location:0}:this.locations&&this.locations.length>1?"mini"===e?{workHours:22,hour:24,services:0,location:22}:"mobile"===e?{workHours:22,hour:12,services:0,location:22}:{workHours:10,hour:12,services:0,location:14}:"mini"===e?{workHours:22,hour:24,services:0,location:0}:{workHours:22,hour:12,services:0,location:0}},handleResize:function(){if("specialDays"===this.activeTab||"specialDays"===this.activeTab){var e=this.$refs.specialDays;e.offsetWidth<320?this.responsiveGrid.editHours=this.getColumnLength("mini"):e.offsetWidth<650?this.responsiveGrid.editHours=this.getColumnLength("mobile"):this.responsiveGrid.editHours=this.getColumnLength()}},getInitSpecialDayModel:function(){return{index:null,id:null,dateRange:null,periodList:[{id:null,startTime:"",endTime:"",locationId:null,locationIds:[],serviceIds:[],periodLocationList:[],periodServiceList:[]}]}},addSpecialDay:function(){this.specialDayModel=this.getInitSpecialDayModel(),this.showSpecialDayForm=!0,!0===this.shouldScrollView&&this.scrollViewInModal("specialDay")},cloneSpecialDay:function(e){var t=this;this.specialDayModel=this.getInitSpecialDayModel(),this.specialDayModel.periodList=[],this.specialDays[e].periodList.forEach(function(e){var i=[],n=[];e.periodServiceList.forEach(function(e){i.push({id:null,serviceId:e.serviceId})}),e.periodLocationList.forEach(function(e){n.push({id:null,locationId:e.locationId})}),t.specialDayModel.periodList.push({id:null,startTime:e.startTime.substr(0,5),endTime:e.endTime.substr(0,5),locationId:n.length?n[0]:null,locationIds:n.map(function(e){return e.locationId}),serviceIds:i.map(function(e){return e.serviceId}),periodLocationList:n,periodServiceList:i})}),this.showSpecialDayForm=!0,!0===this.shouldScrollView&&this.scrollViewInModal("specialDay")},editSpecialDay:function(e){var t={index:e,id:this.specialDays[e].id,dateRange:{start:this.$moment(this.specialDays[e].startDate).toDate(),end:this.$moment(this.specialDays[e].endDate).toDate()},periodList:[]};this.specialDays[e].periodList.forEach(function(e){var i=[];e.periodLocationList.length?e.periodLocationList.forEach(function(e){i.push(e.locationId)}):e.locationId&&i.push(e.locationId);var n=[];e.periodServiceList.forEach(function(e){n.push(e.serviceId)}),t.periodList.push({id:e.id,startTime:e.startTime.slice(0,-3),endTime:e.endTime.slice(0,-3),periodLocationList:e.periodLocationList,periodServiceList:e.periodServiceList,locationId:e.locationId,locationIds:i,serviceIds:n})}),this.specialDayModel=t,this.showSpecialDayForm=!0,!0===this.shouldScrollView&&this.scrollViewInModal("specialDay")},deleteSpecialDay:function(e){this.specialDays.splice(e,1)},saveSpecialDay:function(){var e=this;this.$refs.specialDayModel.validate(function(t){if(!t)return!1;var i={id:e.specialDayModel.id,startDate:e.$moment(e.specialDayModel.dateRange.start).format("YYYY-MM-DD"),endDate:e.$moment(e.specialDayModel.dateRange.end).format("YYYY-MM-DD"),periodList:[]};e.specialDayModel.periodList.forEach(function(e){var t=[];e.locationIds.forEach(function(i){var n=e.periodLocationList.find(function(e){return e.locationId===i});t.push({id:n?n.id:null,locationId:i})});var n=[];e.serviceIds.forEach(function(t){var i=e.periodServiceList.find(function(e){return e.serviceId===t});n.push({id:i?i.id:null,serviceId:t})}),i.periodList.push({id:e.id,startTime:e.startTime+":00",endTime:e.endTime+":00",locationId:e.locationId,periodLocationList:t,periodServiceList:n})}),e.$emit("changeSpecialDays",i,e.specialDayModel.index),e.clearValidation(),e.showSpecialDayForm=!1}),this.sortSpecialDays()},getSpecialDayServices:function(e){var t=[],i=[],n=[];return e.periodList.forEach(function(e){t=_.uniq(t.concat(e.periodLocationList.map(function(e){return e.locationId}))),i=_.uniq(i.concat(e.periodServiceList.map(function(e){return e.serviceId})))}),this.categorizedServiceList.forEach(function(e){e.serviceList.forEach(function(e){!e.state||0!==i.length&&-1===i.indexOf(e.id)||n.push(e.name)})}),n.join(", ")},selectAllInCategory:function(e,t){var i=this.categorizedServiceList.find(function(e){return e.id===t}).serviceList.filter(function(e){return e.state}).map(function(e){return e.id});_.isEqual(_.intersection(i,e.serviceIds),i)?e.serviceIds=_.difference(e.serviceIds,i):e.serviceIds=_.uniq(e.serviceIds.concat(i))},getPeriodBorderTime:function(e,t){var i="24:00",n="00:00";return e.periodList.forEach(function(e,a){t===a-1&&(i=e.startTime),t===a+1&&(n=e.endTime)}),[this.secondsToTimeSelectStep(this.getStringTimeInSeconds(n)-this.getTimeSlotLength()),this.secondsToTimeSelectStep(this.getStringTimeInSeconds(i)+this.getTimeSlotLength())]},addPeriod:function(){this.specialDayModel.periodList.push({startTime:this.specialDayModel.periodList.length?this.specialDayModel.periodList[this.specialDayModel.periodList.length-1].endTime:"",endTime:"",id:null,locationIds:[],serviceIds:[],locationId:null,periodLocationList:[],periodServiceList:[]})},deletePeriod:function(e){this.specialDayModel.periodList.splice(e,1)},clearValidation:function(){void 0!==this.$refs.specialDayModel&&this.$refs.specialDayModel.clearValidate()}},computed:{servicesCount:function(){var e=0;return this.categorizedServiceList.forEach(function(t){e+=t.serviceList.length}),e}},watch:{activeTab:function(){"specialDays"!==this.activeTab&&"special"!==this.activeTab||this.handleResize()}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"specialDays",staticClass:"am-employee-special-days"},[i("div",{staticClass:"am-dialog-table"},[i("el-row",{staticClass:"am-dialog-table-head days",attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("span",[e._v("\n "+e._s(e.$root.labels.special_days)+"\n ")])])],1),e._v(" "),e._l(e.specialDays,function(t,n){return i("div",{key:n+1,staticClass:"am-special-day"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("div",{staticClass:"am-special-day-data"},[i("span",{staticClass:"am-strong"},[e._v("\n "+e._s(e.$root.labels.date+": ")+"\n ")]),e._v(" "),i("span",[e._v("\n "+e._s(e.getFrontedFormattedDate(t.startDate)+" - "+e.getFrontedFormattedDate(t.endDate))+"\n ")])]),e._v(" "),i("div",{staticClass:"am-special-day-data"},[i("span",{staticClass:"am-strong"},[e._v(e._s(e.$root.labels.work_hours)+": ")]),e._v(" "),e._l(t.periodList,function(t,n){return i("span",{key:n+1},[e._v("\n ("+e._s(e.getFrontedFormattedTime(t.startTime))+" - "+e._s(e.getFrontedFormattedTime(t.endTime))+")\n "+e._s(n!==t.length-1&&t.length>1?"; ":"")+"\n ")])})],2),e._v(" "),i("div",{staticClass:"am-special-day-data"},[i("span",{staticClass:"am-strong"},[e._v(e._s(e.$root.labels.special_days_reflect_services)+": ")]),e._v(" "),i("span",{staticClass:"am-special-day-services"},[i("span",{staticClass:"am-special-day-service"},[e._v("\n "+e._s(e.getSpecialDayServices(t))+"\n ")])])])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("div",{staticClass:"am-copy-element",on:{click:function(t){return e.cloneSpecialDay(n)}}},[i("img",{attrs:{src:e.$root.getUrl+"public/img/copy.svg"}})]),e._v(" "),i("div",{staticClass:"am-edit-element",on:{click:function(t){return e.editSpecialDay(n)}}},[i("img",{attrs:{src:e.$root.getUrl+"public/img/edit-pen.svg"}})]),e._v(" "),i("div",{staticClass:"am-delete-element",on:{click:function(t){return e.deleteSpecialDay(n)}}},[i("img",{attrs:{src:e.$root.getUrl+"public/img/delete.svg"}})])])],1)],1)}),e._v(" "),i("el-row",[i("el-col",[i("div",{staticClass:"am-add-element",on:{click:e.addSpecialDay}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",[e._v("\n "+e._s(e.$root.labels.add_special_day)+"\n ")])])])],1)],2),e._v(" "),i("transition",{attrs:{name:"fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showSpecialDayForm,expression:"showSpecialDayForm"}],staticClass:"am-special-day-add"},[i("el-form",{ref:"specialDayModel",attrs:{model:e.specialDayModel,"label-position":"top",id:"specialDay"},on:{submit:function(e){e.preventDefault()}}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{staticClass:"v-calendar-column",staticStyle:{overflow:"visible"},attrs:{sm:24}},[i("el-form-item",{attrs:{label:e.$root.labels.date+":",prop:"dateRange",rules:e.rules.dateRange}},[i("v-date-picker",{staticStyle:{"margin-bottom":"20px"},attrs:{mode:"range","popover-visibility":"focus","popover-direction":"bottom","input-class":"el-input__inner","is-required":!0,"is-expanded":!1,"show-day-popover":!1,"tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","input-props":{class:"el-input__inner",readOnly:"readonly"},"popover-align":e.screenWidth<768?"center":"left",placeholder:e.$root.labels.pick_a_date_or_range,formats:e.vCalendarFormats,"available-dates":{start:this.$moment().subtract(1,"days").toDate()}},on:{input:e.clearValidation},model:{value:e.specialDayModel.dateRange,callback:function(t){e.$set(e.specialDayModel,"dateRange",t)},expression:"specialDayModel.dateRange"}})],1)],1)],1),e._v(" "),i("transition-group",{attrs:{name:"fade"}},e._l(e.specialDayModel.periodList,function(t,n){return i("div",{key:n+1,staticClass:"am-period"},[i("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[i("el-col",{attrs:{span:e.responsiveGrid.editHours.workHours}},[i("el-row",{attrs:{gutter:10}},[i("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[i("span",[e._v(e._s(e.$root.labels.work_hours))])]),e._v(" "),i("el-col",{attrs:{span:e.responsiveGrid.editHours.hour}},[i("el-form-item",{attrs:{prop:"periodList."+n+".startTime",rules:e.rules.startTime}},[i("el-time-select",{staticStyle:{"margin-bottom":"12px"},attrs:{size:"mini","is-required":!0,"popper-class":"am-dropdown-cabinet","picker-options":e.getTimeSelectOptionsWithLimits(e.getPeriodBorderTime(e.specialDayModel,n)[0],t.endTime)},on:{change:e.clearValidation},model:{value:t.startTime,callback:function(i){e.$set(t,"startTime",i)},expression:"period.startTime"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:e.responsiveGrid.editHours.hour}},[i("el-form-item",{attrs:{prop:"periodList."+n+".endTime",rules:e.rules.endTime}},[i("el-time-select",{staticStyle:{"margin-bottom":"12px"},attrs:{"picker-options":e.getTimeSelectOptionsWithLimits(t.startTime,e.getPeriodBorderTime(e.specialDayModel,n)[1]),size:"mini","is-required":!0,"popper-class":"am-dropdown-cabinet"},on:{change:e.clearValidation},model:{value:t.endTime,callback:function(i){e.$set(t,"endTime",i)},expression:"period.endTime"}})],1)],1)],1)],1),e._v(" "),e.categorizedServiceList&&e.servicesCount>1?i("el-col",{attrs:{span:e.responsiveGrid.editHours.services}},[i("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[i("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[i("span",[e._v(e._s(e.$root.labels.services.charAt(0).toUpperCase()+e.$root.labels.services.slice(1)))]),e._v(" "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_services_filter2_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{attrs:{span:24}},[e.categorizedServiceList?i("el-select",{staticClass:"am-select-service",staticStyle:{"margin-bottom":"12px"},attrs:{multiple:"",filterable:"","collapse-tags":"",size:"mini","popper-class":"am-dropdown-cabinet",placeholder:e.$root.labels.period_services_filter},on:{change:function(t){return e.clearValidation()}},model:{value:t.serviceIds,callback:function(i){e.$set(t,"serviceIds",i)},expression:"period.serviceIds"}},e._l(e.categorizedServiceList,function(n){return n.serviceList.filter(function(e){return e.state}).length>0?i("div",{key:n.id},[i("div",{staticClass:"am-drop-parent",on:{click:function(i){return e.selectAllInCategory(t,n.id)}}},[i("span",[e._v(e._s(n.name))])]),e._v(" "),e._l(n.serviceList,function(t){return t.state?i("el-option",{key:t.id,staticClass:"am-drop-child",attrs:{label:t.name,value:t.id}}):e._e()})],2):e._e()}),0):e._e()],1)],1)],1):e._e(),e._v(" "),e.locations&&e.locations.length>1?i("el-col",{attrs:{span:e.responsiveGrid.editHours.location}},[i("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[i("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[i("span",[e._v(e._s(e.$root.labels.location))]),e._v(" "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_location_filter2_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{attrs:{span:24}},[e.locations.length?i("el-select",{staticClass:"am-select-service",staticStyle:{"margin-bottom":"12px"},attrs:{multiple:"",filterable:"",clearable:"",placeholder:e.$root.labels.location,"collapse-tags":"",size:"mini","popper-class":"am-dropdown-cabinet"},model:{value:t.locationIds,callback:function(i){e.$set(t,"locationIds",i)},expression:"period.locationIds"}},e._l(e.locations,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1):e._e()],1)],1)],1):e._e(),e._v(" "),e.specialDayModel.periodList.length>1?i("el-col",{attrs:{span:2}},[i("div",{staticClass:"am-delete-element",on:{click:function(t){return e.deletePeriod(n)}}},[i("i",{staticClass:"el-icon-minus"})])]):e._e()],1)],1)}),0),e._v(" "),i("el-row",[i("el-col",{staticClass:"align-left",attrs:{sm:24}},[i("div",{staticClass:"am-add-elements"},[i("div",{staticClass:"am-add-element",on:{click:e.addPeriod}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$root.labels.add_period)+"\n ")])])])],1),e._v(" "),i("el-row",{staticClass:"am-special-day-buttons"},[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.showSpecialDayForm=!e.showSpecialDayForm}}},[e._v(e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{size:"small",type:"primary"},on:{click:e.saveSpecialDay}},[e._v("\n "+e._s(e.$root.labels.save_special_day)+"\n ")])],1)],1)],1)],1)])],1)},staticRenderFns:[]}},function(e,t,i){"use strict";var n=i(654);t.a={mixins:[n.a],methods:{redirectToGoogleAuthPage:function(){this.googleLoading=!0,window.location.href=this.googleAuthURL},inlineDialogEmployeeSVG:function(){var e=this;setTimeout(function(){e.inlineSVG()},10)}}}},function(e,t,i){"use strict";var n=i(654);t.a={mixins:[n.a],methods:{redirectToOutlookAuthPage:function(){this.outlookLoading=!0,window.location.href=this.outlookAuthURL},inlineDialogEmployeeSVG:function(){var e=this;setTimeout(function(){e.inlineSVG()},10)}}}},,,,,,,,,,,,function(e,t,i){"use strict";var n=i(685).Buffer,a=i(963).Transform;function o(e){a.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(670)(o,a),o.prototype._transform=function(e,t,i){var n=null;try{this.update(e,t)}catch(e){n=e}i(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var i=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o++]=e[a++];this._update(),this._blockOffset=0}for(;a<e.length;)i[this._blockOffset++]=e[a++];for(var s=0,r=8*e.length;r>0;++s)this._length[s]+=r,(r=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*r);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,i){"use strict";(function(t,n){var a=i(923);e.exports=y;var o,s=i(746);y.ReadableState=v;i(964).EventEmitter;var r=function(e,t){return e.listeners(t).length},l=i(1002),c=i(685).Buffer,u=t.Uint8Array||function(){};var d=i(911);d.inherits=i(670);var p=i(1375),f=void 0;f=p&&p.debuglog?p.debuglog("stream"):function(){};var h,m=i(1376),g=i(1003);d.inherits(y,l);var b=["error","close","destroy","pause","resume"];function v(e,t){o=o||i(884),e=e||{},this.objectMode=!!e.objectMode,t instanceof o&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=i(967).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||i(884),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,i,n,a){var o,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,S(e)}(e,s)):(a||(o=function(e,t){var i;n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));var n;return i}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!i?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):$(e,s)):w(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function w(e,t,i,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&S(e)),$(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),i=!0),_(this,e,t,!1,i)},y.prototype.unshift=function(e){return _(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return h||(h=i(967).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var k=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a(C,e):C(e))}function C(e){f("emit readable"),e.emit("readable"),T(e)}function $(e,t){t.readingMore||(t.readingMore=!0,a(P,e,t))}function P(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function E(e){f("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function O(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,n=1,a=i.data;e-=a.length;for(;i=i.next;){var o=i.data,s=e>o.length?o.length:e;if(s===o.length?a+=o:a+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(s));break}++n}return t.length-=n,a}(e,t):function(e,t){var i=c.allocUnsafe(e),n=t.head,a=1;n.data.copy(i),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(i,i.length-e,0,s),0===(e-=s)){s===o.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++a}return t.length-=a,i}(e,t);return n}(e,t.buffer,t.decoder),i);var i}function D(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}y.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):S(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,a=t.needReadable;return f("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",a=!0),t.ended||t.reading?f("reading or ended",a=!1):a&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(i,t))),null===(n=e>0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?u:y;function c(t,n){f("onunpipe"),t===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",c),i.removeListener("end",u),i.removeListener("end",y),i.removeListener("data",m),p=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){f("onend"),e.end()}o.endEmitted?a(l):i.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&r(e,"data")&&(t.flowing=!0,T(e))}}(i);e.on("drain",d);var p=!1;var h=!1;function m(t){f("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!p&&(f("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,h=!0),i.pause())}function g(t){f("onerror",t),y(),e.removeListener("error",g),0===r(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",v),y()}function v(){f("onfinish"),e.removeListener("close",b),y()}function y(){f("unpipe"),i.unpipe(e)}return i.on("data",m),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",g),e.once("close",b),e.once("finish",v),e.emit("pipe",i),o.flowing||(f("pipe resume"),i.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i),this);if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<a;o++)n[o].emit("unpipe",this,i);return this}var s=L(t.pipes,e);return-1===s?this:(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i),this)},y.prototype.on=function(e,t){var i=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):a(E,this))}return i},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a(A,e,t))}(this,e)),this},y.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this._readableState,i=!1,n=this;for(var a in e.on("end",function(){if(f("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(a){(f("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!t.objectMode||null!==a&&void 0!==a)&&((t.objectMode||a&&a.length)&&(n.push(a)||(i=!0,e.pause())))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o<b.length;o++)e.on(b[o],n.emit.bind(n,b[o]));return n._read=function(t){f("wrapped _read",t),i&&(i=!1,e.resume())},n},y._fromList=O}).call(t,i(37),i(142))},function(e,t,i){e.exports=i(964).EventEmitter},function(e,t,i){"use strict";var n=i(923);function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var i=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;o||s?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n(a,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(n(a,i,e),i._writableState&&(i._writableState.errorEmitted=!0)):t&&t(e)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,i){"use strict";e.exports=s;var n=i(884),a=i(911);function o(e){this.afterTransform=function(t,i){return function(e,t,i){var n=e._transformState;n.transforming=!1;var a=n.writecb;if(!a)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==i&&void 0!==i&&e.push(i);a(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,i)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState=new o(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,i){r(t,e,i)}):r(t)})}function r(e,t,i){if(t)return e.emit("error",t);null!==i&&void 0!==i&&e.push(i);var n=e._writableState,a=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(a.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}a.inherits=i(670),a.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,i){var n=this._transformState;if(n.writecb=i,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var i=this;n.prototype._destroy.call(this,e,function(e){t(e),i.emit("close")})}},function(e,t,i){var n=i(670),a=i(890),o=i(685).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],r=new Array(64);function l(){this.init(),this._w=r,a.call(this,64,56)}function c(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function p(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(l,a),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,a=0|this._b,o=0|this._c,r=0|this._d,l=0|this._e,h=0|this._f,m=0|this._g,g=0|this._h,b=0;b<16;++b)i[b]=e.readInt32BE(4*b);for(;b<64;++b)i[b]=0|(((t=i[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[b-7]+f(i[b-15])+i[b-16];for(var v=0;v<64;++v){var y=g+p(l)+c(l,h,m)+s[v]+i[v]|0,_=d(n)+u(n,a,o)|0;g=m,m=h,h=l,l=r+y|0,r=o,o=a,a=n,n=y+_|0}this._a=n+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=r+this._d|0,this._e=l+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},function(e,t,i){var n=i(670),a=i(890),o=i(685).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],r=new Array(160);function l(){this.init(),this._w=r,a.call(this,128,112)}function c(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function p(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0<t>>>0?1:0}n(l,a),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,i=0|this._ah,n=0|this._bh,a=0|this._ch,o=0|this._dh,r=0|this._eh,l=0|this._fh,v=0|this._gh,y=0|this._hh,_=0|this._al,w=0|this._bl,k=0|this._cl,x=0|this._dl,S=0|this._el,C=0|this._fl,$=0|this._gl,P=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var A=t[E-30],T=t[E-30+1],O=f(A,T),D=h(T,A),M=m(A=t[E-4],T=t[E-4+1]),L=g(T,A),I=t[E-14],N=t[E-14+1],q=t[E-32],j=t[E-32+1],R=D+N|0,B=O+I+b(R,D)|0;B=(B=B+M+b(R=R+L|0,L)|0)+q+b(R=R+j|0,j)|0,t[E]=B,t[E+1]=R}for(var z=0;z<160;z+=2){B=t[z],R=t[z+1];var U=u(i,n,a),F=u(_,w,k),H=d(i,_),K=d(_,i),V=p(r,S),W=p(S,r),G=s[z],Y=s[z+1],J=c(r,l,v),Z=c(S,C,$),X=P+W|0,Q=y+V+b(X,P)|0;Q=(Q=(Q=Q+J+b(X=X+Z|0,Z)|0)+G+b(X=X+Y|0,Y)|0)+B+b(X=X+R|0,R)|0;var ee=K+F|0,te=H+U+b(ee,K)|0;y=v,P=$,v=l,$=C,l=r,C=S,r=o+Q+b(S=x+X|0,x)|0,o=a,x=k,a=n,k=w,n=i,w=_,i=Q+te+b(_=X+ee|0,X)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+k|0,this._dl=this._dl+x|0,this._el=this._el+S|0,this._fl=this._fl+C|0,this._gl=this._gl+$|0,this._hl=this._hl+P|0,this._ah=this._ah+i+b(this._al,_)|0,this._bh=this._bh+n+b(this._bl,w)|0,this._ch=this._ch+a+b(this._cl,k)|0,this._dh=this._dh+o+b(this._dl,x)|0,this._eh=this._eh+r+b(this._el,S)|0,this._fh=this._fh+l+b(this._fl,C)|0,this._gh=this._gh+v+b(this._gl,$)|0,this._hh=this._hh+y+b(this._hl,P)|0},l.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},function(e,t,i){"use strict";var n=i(670),a=i(1387),o=i(876),s=i(685).Buffer,r=i(1008),l=i(968),c=i(969),u=s.alloc(128);function d(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var i="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>i)?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<i&&(t=s.concat([t,u],i));for(var n=this._ipad=s.allocUnsafe(i),a=this._opad=s.allocUnsafe(i),r=0;r<i;r++)n[r]=54^t[r],a[r]=92^t[r];this._hash="rmd160"===e?new l:c(e),this._hash.update(n)}n(d,o),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new a(r,t):new d(e,t)}},function(e,t,i){var n=i(962);e.exports=function(e){return(new n).update(e).digest()}},function(e,t){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},function(e,t,i){t.pbkdf2=i(1389),t.pbkdf2Sync=i(1013)},function(e,t,i){(function(t){var i=Math.pow(2,30)-1;function n(e,i){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(i+" must be a buffer or string")}e.exports=function(e,t,a,o){if(n(e,"Password"),n(t,"Salt"),"number"!=typeof a)throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>i||o!=o)throw new TypeError("Bad key length")}}).call(t,i(674).Buffer)},function(e,t,i){(function(t){var i;t.browser?i="utf-8":i=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=i}).call(t,i(142))},function(e,t,i){var n=i(1008),a=i(968),o=i(969),s=i(1011),r=i(1012),l=i(685).Buffer,c=l.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,i){var s=function(e){return"rmd160"===e||"ripemd160"===e?a:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),r="sha512"===e||"sha384"===e?128:64;t.length>r?t=s(t):t.length<r&&(t=l.concat([t,c],r));for(var d=l.allocUnsafe(r+u[e]),p=l.allocUnsafe(r+u[e]),f=0;f<r;f++)d[f]=54^t[f],p[f]=92^t[f];var h=l.allocUnsafe(r+i+4);d.copy(h,0,0,r),this.ipad1=h,this.ipad2=d,this.opad=p,this.alg=e,this.blocksize=r,this.hash=s,this.size=u[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,i,n,a){s(e,t,i,n),l.isBuffer(e)||(e=l.from(e,r)),l.isBuffer(t)||(t=l.from(t,r));var o=new d(a=a||"sha1",e,t.length),c=l.allocUnsafe(n),p=l.allocUnsafe(t.length+4);t.copy(p,0,0,t.length);for(var f=0,h=u[a],m=Math.ceil(n/h),g=1;g<=m;g++){p.writeUInt32BE(g,t.length);for(var b=o.run(p,o.ipad1),v=b,y=1;y<i;y++){v=o.run(v,o.ipad2);for(var _=0;_<h;_++)b[_]^=v[_]}b.copy(c,f),f+=h}return c}},function(e,t,i){var n=i(912),a=i(685).Buffer,o=i(1015);function s(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var i=Math.ceil(t.length/16),o=e._cache.length;e._cache=a.concat([e._cache,a.allocUnsafe(16*i)]);for(var r=0;r<i;r++){var l=s(e),c=o+16*r;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},function(e,t){e.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},function(e,t){e.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},function(e,t,i){var n=i(924),a=i(685).Buffer,o=i(876),s=i(670),r=i(1404),l=i(912),c=i(1015);function u(e,t,i,s){o.call(this);var l=a.alloc(4,0);this._cipher=new n.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new r(u),i=function(e,t,i){if(12===t.length)return e._finID=a.concat([t,a.from([0,0,0,1])]),a.concat([t,a.from([0,0,0,2])]);var n=new r(i),o=t.length,s=o%16;n.update(t),s&&(s=16-s,n.update(a.alloc(s,0))),n.update(a.alloc(8,0));var l=8*o,u=a.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var d=a.from(e._finID);return c(d),d}(this,i,u),this._prev=a.from(i),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(u,o),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=a.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var n=Math.min(e.length,t.length),a=0;a<n;++a)i+=e[a]^t[a];return i}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},function(e,t,i){var n=i(924),a=i(685).Buffer,o=i(876);function s(e,t,i,s){o.call(this),this._cipher=new n.AES(t),this._prev=a.from(i),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=s,this._mode=e}i(670)(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},function(e,t,i){var n=i(889);e.exports=v,v.simpleSieve=g,v.fermatTest=b;var a=i(712),o=new a(24),s=new(i(1020)),r=new a(1),l=new a(2),c=new a(5),u=(new a(16),new a(8),new a(10)),d=new a(3),p=(new a(7),new a(11)),f=new a(4),h=(new a(12),null);function m(){if(null!==h)return h;var e=[];e[0]=2;for(var t=1,i=3;i<1048576;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<t&&e[a]<=n&&i%e[a]!=0;a++);t!==a&&e[a]<=n||(e[t++]=i)}return h=e,e}function g(e){for(var t=m(),i=0;i<t.length;i++)if(0===e.modn(t[i]))return 0===e.cmpn(t[i]);return!0}function b(e){var t=a.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){if(e<16)return new a(2===t||5===t?[140,123]:[140,39]);var i,h;for(t=new a(t);;){for(i=new a(n(Math.ceil(e/8)));i.bitLength()>e;)i.ishrn(1);if(i.isEven()&&i.iadd(r),i.testn(1)||i.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;i.mod(u).cmp(d);)i.iadd(f)}else for(;i.mod(o).cmp(p);)i.iadd(f);if(g(h=i.shrn(1))&&g(i)&&b(h)&&b(i)&&s.test(h)&&s.test(i))return i}}},function(e,t,i){var n=i(712),a=i(1021);function o(e){this.rand=e||new a.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),i=Math.ceil(t/8);do{var a=new n(this.rand.generate(i))}while(a.cmp(e)>=0);return a},o.prototype._randrange=function(e,t){var i=t.sub(e);return e.add(this._randbelow(i))},o.prototype.test=function(e,t,i){var a=e.bitLength(),o=n.mont(e),s=new n(1).toRed(o);t||(t=Math.max(1,a/48|0));for(var r=e.subn(1),l=0;!r.testn(l);l++);for(var c=e.shrn(l),u=r.toRed(o);t>0;t--){var d=this._randrange(new n(2),r);i&&i(d);var p=d.toRed(o).redPow(c);if(0!==p.cmp(s)&&0!==p.cmp(u)){for(var f=1;f<l;f++){if(0===(p=p.redSqr()).cmp(s))return!1;if(0===p.cmp(u))break}if(f===l)return!1}}return!0},o.prototype.getDivisor=function(e,t){var i=e.bitLength(),a=n.mont(e),o=new n(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),r=0;!s.testn(r);r++);for(var l=e.shrn(r),c=s.toRed(a);t>0;t--){var u=this._randrange(new n(2),s),d=e.gcd(u);if(0!==d.cmpn(1))return d;var p=u.toRed(a).redPow(l);if(0!==p.cmp(o)&&0!==p.cmp(c)){for(var f=1;f<r;f++){if(0===(p=p.redSqr()).cmp(o))return p.fromRed().subn(1).gcd(e);if(0===p.cmp(c))break}if(f===r)return(p=p.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,i){var n;function a(e){this.rand=e}if(e.exports=function(e){return n||(n=new a(null)),n.generate(e)},e.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=i(1409);if("function"!=typeof o.randomBytes)throw new Error("Not supported");a.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,i){"use strict";var n=t;function a(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",i=0;i<e.length;i++)t+=a(e[i].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)i[n]=0|e[n];return i}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)i.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var a=e.charCodeAt(n),o=a>>8,s=255&a;o?i.push(o,s):i.push(s)}return i},n.zero2=a,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,i){"use strict";var n=i(815).rotr32;function a(e,t,i){return e&t^~e&i}function o(e,t,i){return e&t^e&i^t&i}function s(e,t,i){return e^t^i}t.ft_1=function(e,t,i,n){return 0===e?a(t,i,n):1===e||3===e?s(t,i,n):2===e?o(t,i,n):void 0},t.ch32=a,t.maj32=o,t.p32=s,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,i){"use strict";var n=i(815),a=i(913),o=i(1023),s=i(793),r=n.sum32,l=n.sum32_4,c=n.sum32_5,u=o.ch32,d=o.maj32,p=o.s0_256,f=o.s1_256,h=o.g0_256,m=o.g1_256,g=a.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var i=this.W,n=0;n<16;n++)i[n]=e[t+n];for(;n<i.length;n++)i[n]=l(m(i[n-2]),i[n-7],h(i[n-15]),i[n-16]);var a=this.h[0],o=this.h[1],g=this.h[2],b=this.h[3],v=this.h[4],y=this.h[5],_=this.h[6],w=this.h[7];for(s(this.k.length===i.length),n=0;n<i.length;n++){var k=c(w,f(v),u(v,y,_),this.k[n],i[n]),x=r(p(a),d(a,o,g));w=_,_=y,y=v,v=r(b,k),b=g,g=o,o=a,a=r(k,x)}this.h[0]=r(this.h[0],a),this.h[1]=r(this.h[1],o),this.h[2]=r(this.h[2],g),this.h[3]=r(this.h[3],b),this.h[4]=r(this.h[4],v),this.h[5]=r(this.h[5],y),this.h[6]=r(this.h[6],_),this.h[7]=r(this.h[7],w)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,i){"use strict";var n=i(815),a=i(913),o=i(793),s=n.rotr64_hi,r=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,p=n.sum64_lo,f=n.sum64_4_hi,h=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,b=a.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function _(e,t,i,n,a){var o=e&i^~e&a;return o<0&&(o+=4294967296),o}function w(e,t,i,n,a,o){var s=t&n^~t&o;return s<0&&(s+=4294967296),s}function k(e,t,i,n,a){var o=e&i^e&a^i&a;return o<0&&(o+=4294967296),o}function x(e,t,i,n,a,o){var s=t&n^t&o^n&o;return s<0&&(s+=4294967296),s}function S(e,t){var i=s(e,t,28)^s(t,e,2)^s(t,e,7);return i<0&&(i+=4294967296),i}function C(e,t){var i=r(e,t,28)^r(t,e,2)^r(t,e,7);return i<0&&(i+=4294967296),i}function $(e,t){var i=s(e,t,14)^s(e,t,18)^s(t,e,9);return i<0&&(i+=4294967296),i}function P(e,t){var i=r(e,t,14)^r(e,t,18)^r(t,e,9);return i<0&&(i+=4294967296),i}function E(e,t){var i=s(e,t,1)^s(e,t,8)^l(e,t,7);return i<0&&(i+=4294967296),i}function A(e,t){var i=r(e,t,1)^r(e,t,8)^c(e,t,7);return i<0&&(i+=4294967296),i}function T(e,t){var i=s(e,t,19)^s(t,e,29)^l(e,t,6);return i<0&&(i+=4294967296),i}function O(e,t){var i=r(e,t,19)^r(t,e,29)^c(e,t,6);return i<0&&(i+=4294967296),i}n.inherits(y,b),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var i=this.W,n=0;n<32;n++)i[n]=e[t+n];for(;n<i.length;n+=2){var a=T(i[n-4],i[n-3]),o=O(i[n-4],i[n-3]),s=i[n-14],r=i[n-13],l=E(i[n-30],i[n-29]),c=A(i[n-30],i[n-29]),u=i[n-32],d=i[n-31];i[n]=f(a,o,s,r,l,c,u,d),i[n+1]=h(a,o,s,r,l,c,u,d)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var i=this.W,n=this.h[0],a=this.h[1],s=this.h[2],r=this.h[3],l=this.h[4],c=this.h[5],f=this.h[6],h=this.h[7],b=this.h[8],v=this.h[9],y=this.h[10],E=this.h[11],A=this.h[12],T=this.h[13],O=this.h[14],D=this.h[15];o(this.k.length===i.length);for(var M=0;M<i.length;M+=2){var L=O,I=D,N=$(b,v),q=P(b,v),j=_(b,v,y,E,A),R=w(b,v,y,E,A,T),B=this.k[M],z=this.k[M+1],U=i[M],F=i[M+1],H=m(L,I,N,q,j,R,B,z,U,F),K=g(L,I,N,q,j,R,B,z,U,F);L=S(n,a),I=C(n,a),N=k(n,a,s,r,l),q=x(n,a,s,r,l,c);var V=d(L,I,N,q),W=p(L,I,N,q);O=A,D=T,A=y,T=E,y=b,E=v,b=d(f,h,H,K),v=p(h,h,H,K),f=l,h=c,l=s,c=r,s=n,r=a,n=d(H,K,V,W),a=p(H,K,V,W)}u(this.h,0,n,a),u(this.h,2,s,r),u(this.h,4,l,c),u(this.h,6,f,h),u(this.h,8,b,v),u(this.h,10,y,E),u(this.h,12,A,T),u(this.h,14,O,D)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,i){var n=i(670),a=i(915).Reporter,o=i(674).Buffer;function s(e,t){a.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function r(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof r||(e=new r(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(s,a),t.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,a.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var i=new s(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=r,r.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(i){i.join(e,t),t+=i.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,i){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(i){(0|i)==i&&(i|=0);var n=e[i];t[n]=i}),t},n.der=i(1441)},function(e,t,i){var n=i(670),a=i(914),o=a.base,s=a.bignum,r=a.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function u(e,t){var i=e.readUInt8(t);if(e.isError(i))return i;var n=r.tagClass[i>>6],a=0==(32&i);if(31==(31&i)){var o=i;for(i=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;i<<=7,i|=127&o}}else i&=31;return{cls:n,primitive:a,tag:i,tagStr:r.tag[i]}}function d(e,t,i){var n=e.readUInt8(i);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var a=127&n;if(a>4)return e.error("length octect is too long");n=0;for(var o=0;o<a;o++){n<<=8;var s=e.readUInt8(i);if(e.isError(s))return s;n|=s}return n}e.exports=l,l.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,o.Node),c.prototype._peekTag=function(e,t,i){if(e.isEmpty())return!1;var n=e.save(),a=u(e,'Failed to peek tag: "'+t+'"');return e.isError(a)?a:(e.restore(n),a.tag===t||a.tagStr===t||a.tagStr+"of"===t||i)},c.prototype._decodeTag=function(e,t,i){var n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var a=d(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(a))return a;if(!i&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==a)return e.skip(a,'Failed to match body of: "'+t+'"');var o=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(a=e.offset-o.offset,e.restore(o),e.skip(a,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var i=u(e,t);if(e.isError(i))return i;var n,a=d(e,i.primitive,t);if(e.isError(a))return a;if(n=i.primitive||null!==a?e.skip(a):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===i.tagStr)break}},c.prototype._decodeList=function(e,t,i,n){for(var a=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var s=i.decode(e,"der",n);if(e.isError(s)&&o)break;a.push(s)}return a},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var a="",o=0;o<n.length/2;o++)a+=String.fromCharCode(n.readUInt16BE(2*o));return a}if("numstr"===t){var s=e.raw().toString("ascii");return this._isNumstr(s)?s:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var r=e.raw().toString("ascii");return this._isPrintstr(r)?r:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,i){for(var n,a=[],o=0;!e.isEmpty();){var s=e.readUInt8();o<<=7,o|=127&s,0==(128&s)&&(a.push(o),o=0)}128&s&&a.push(o);var r=a[0]/40|0,l=a[0]%40;if(n=i?a:[r,l].concat(a.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var i=e.raw().toString();if("gentime"===t)var n=0|i.slice(0,4),a=0|i.slice(4,6),o=0|i.slice(6,8),s=0|i.slice(8,10),r=0|i.slice(10,12),l=0|i.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|i.slice(0,2),a=0|i.slice(2,4),o=0|i.slice(4,6),s=0|i.slice(6,8),r=0|i.slice(8,10),l=0|i.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,a-1,o,s,r,l,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var i=e.raw(),n=new s(i);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,i){var n=i(670),a=i(674).Buffer,o=i(914),s=o.base,r=o.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){s.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,s.Node),c.prototype._encodeComposite=function(e,t,i,n){var o,s=function(e,t,i,n){var a;"seqof"===e?e="seq":"setof"===e&&(e="set");if(r.tagByName.hasOwnProperty(e))a=r.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);a=e}if(a>=31)return n.error("Multi-octet tag encoding unsupported");t||(a|=32);return a|=r.tagClassByName[i||"universal"]<<6}(e,t,i,this.reporter);if(n.length<128)return(o=new a(2))[0]=s,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var l=1,c=n.length;c>=256;c>>=8)l++;(o=new a(2+l))[0]=s,o[1]=128|l;c=1+l;for(var u=n.length;u>0;c--,u>>=8)o[c]=255&u;return this._createEncoderBuffer([o,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var i=new a(2*e.length),n=0;n<e.length;n++)i.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(i)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,i){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n<e.length;n++){var s=e[n];for(o++;s>=128;s>>=7)o++}var r=new a(o),l=r.length-1;for(n=e.length-1;n>=0;n--){s=e[n];for(r[l--]=127&s;(s>>=7)>0;)r[l--]=128|127&s}return this._createEncoderBuffer(r)},c.prototype._encodeTime=function(e,t){var i,n=new Date(e);return"gentime"===t?i=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[u(n.getFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!a.isBuffer(e)){var i=e.toArray();!e.sign&&128&i[0]&&i.unshift(0),e=new a(i)}if(a.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new a(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var s=e;s>=256;s>>=8)n++;for(s=(o=new Array(n)).length-1;s>=0;s--)o[s]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new a(o))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,i){var n,a=this._baseState;if(null===a.default)return!1;var o=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,i).join()),o.length!==a.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==a.defaultBuffer[n])return!1;return!0}},function(e,t){e.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},function(e,t,i){(function(t){var n=i(910);function a(e){var i=new t(4);return i.writeUInt32BE(e,0),i}e.exports=function(e,i){for(var o,s=new t(""),r=0;s.length<i;)o=a(r++),s=t.concat([s,n("sha1").update(e).update(o).digest()]);return s.slice(0,i)}}).call(t,i(674).Buffer)},function(e,t){e.exports=function(e,t){for(var i=e.length,n=-1;++n<i;)e[n]^=t[n];return e}},function(e,t,i){(function(t){var n=i(712);e.exports=function(e,i){return new t(e.toRed(n.mont(i.modulus)).redPow(new n(i.publicExponent)).fromRed().toArray())}}).call(t,i(674).Buffer)},function(e,t,i){var n=i(90)(i(1465),i(1499),!1,null,null,null);e.exports=n.exports},function(e,t,i){var n=i(90)(i(1523),i(1524),!1,null,null,null);e.exports=n.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1364),a=i.n(n),o=i(1372),s=i.n(o),r=i(1456),l=i.n(r),c=i(1459),u=i.n(c),d=i(1462),p=i.n(d),f=i(1034),h=i.n(f),m=i(1500),g=i.n(m),b=i(1503),v=i.n(b),y=i(1506),_=i.n(y),w=i(1521),k=i.n(w),x=i(1526),S=i.n(x),C=i(828),$=i.n(C),P=i(91),E=i(655),A=i(654),T=i(658),O=i(693),D=i.n(O),M=i(951),L=i.n(M),I=i(1035),N=i.n(I),q=i(1529),j=i.n(q),R=i(877),B=i(678),z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default={components:{DialogEmployeeBadges:N.a,PageHeader:D.a,DialogTranslate:$.a,DialogSettingsGeneral:p.a,DialogSettingsCompany:u.a,DialogSettingsNotifications:v.a,DialogSettingsWorkHoursDaysOff:S.a,DialogSettingsPayments:_.a,DialogSettingsIntegrations:h.a,DialogSettingsLabels:g.a,DialogSettingsRoles:k.a,DialogSettingsAppointments:l.a,DialogEmployee:j.a,DialogSettingsActivation:a.a,DialogCombinedPlaceholder:L.a,DialogSettingsApiKeys:s.a},mixins:[P.a,R.a,B.a,A.a,T.a,E.a],data:function(){return{dialogEmployeeBadges:!1,passedApiKey:[],employeeInfo:{isDuplicated:!1,dialogCompanyDaysOffSettings:!1,dialogEmployee:!1,editCategorizedServiceList:null,editWeekDayList:[],employee:null,futureAppointments:{}},dialogCombinedPlaceholder:!1,combinedPlaceholderName:"",dialogTranslate:!1,dialogTranslateExtra:!1,dialogTranslateCategory:!1,dialogTranslateType:"url",dialogTranslateTab:"roles",dialogTranslateData:{},dialogTranslateName:"",extrasTranslateIndex:0,languagesData:{},newExtraTranslations:null,dialogSettingsGeneral:!1,dialogSettingsCompany:!1,dialogSettingsNotifications:!1,dialogSettingsWorkHoursDaysOff:!1,dialogSettingsPayments:!1,dialogSettingsIntegrations:!1,dialogSettingsLabels:!1,dialogSettingsActivation:!1,dialogSettingsApiKeys:!1,dialogSettingsRoles:!1,dialogSettingsAppointments:!1,outlookSignedIn:!1,fetched:!1,customFields:[],categories:[],employees:[],coupons:[],settings:{},squareLocations:[],mailchimpLists:[],accessTokenSet:!1,squareOpenCollapse:!1,mailchimpOpenCollapse:!1}},created:function(){this.fetchData(),this.getEntities()},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG(),this.outlookCalendarSync()},methods:{outlookCalendarSync:function(){var e=this,t=this.getUrlQueryParams(window.location.href);t.code&&t.type&&this.$http.post(this.$root.getAjaxUrl+"/outlook/authorization/token",{authCode:t.code,userId:0}).then(function(){var t=e.removeURLParameter(window.location.href,"code");t=e.removeURLParameter(t,"state"),t=e.removeURLParameter(t,"type"),history.pushState(null,null,t+"#/settings"),e.settings.outlookCalendar.token=!0,e.settings.outlookCalendar.mailEnabled=!0,e.outlookSignedIn=!0,e.updateSettings({outlookCalendar:e.settings.outlookCalendar}),e.showDialogSettingsIntegrations()}).catch(function(t){console.log(t.response.data.message),e.notify(e.$root.labels.error,t.response.data.message.split(".")[0],"error")})},getCombinedPlaceholders:function(){return"groupAppointmentPlaceholder"===this.combinedPlaceholderName?["appointmentPlaceholders","extrasPlaceholders","customFieldsPlaceholders","customerPlaceholders","couponsPlaceholders"]:["eventPlaceholders","customFieldsPlaceholders","customerPlaceholders","couponsPlaceholders"]},fetchData:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/settings").then(function(t){e.fetched=!0,t.data.data.settings.roles.customerCabinet.translations&&"object"===z(t.data.data.settings.roles.customerCabinet.translations)&&"url"in t.data.data.settings.roles.customerCabinet.translations||(t.data.data.settings.roles.customerCabinet.translations={url:{}}),t.data.data.settings.company.translations&&"object"===z(t.data.data.settings.company.translations)&&"name"in t.data.data.settings.company.translations||(t.data.data.settings.company.translations={name:{}});var i=t.data.data.settings;for(var n in i.weekSchedule.forEach(function(e){e.form={type:null,isNew:null,index:null,show:!1,data:{}},e.time[0]&&e.time[1]?"periods"in e&&0!==e.periods.length?e.periods.forEach(function(e){e.id=null,e.locationIds=[],e.serviceIds=[],e.periodLocationList=[],e.periodServiceList=[],e.time=[e.time[0],e.time[1]]}):e.periods=[{time:[e.time[0],e.time[1]],id:null,locationIds:[],serviceIds:[],periodLocationList:[],periodServiceList:[]}]:e.periods=[]}),i.payments.wc.checkoutData.translations||(i.payments.wc.checkoutData.translations={appointment:{},event:{},package:{}}),i.payments.wc.rules||(i.payments.wc.rules=[]),"appointment"in i.payments.wc.checkoutData.translations&&(!Array.isArray(i.payments.wc.checkoutData.translations.appointment)||i.payments.wc.checkoutData.translations.appointment.length)&&i.payments.wc.checkoutData.translations.appointment||(i.payments.wc.checkoutData.translations.appointment={}),"event"in i.payments.wc.checkoutData.translations&&(!Array.isArray(i.payments.wc.checkoutData.translations.event)||i.payments.wc.checkoutData.translations.event.length)&&i.payments.wc.checkoutData.translations.event||(i.payments.wc.checkoutData.translations.event={}),"package"in i.payments.wc.checkoutData.translations&&(!Array.isArray(i.payments.wc.checkoutData.translations.package)||i.payments.wc.checkoutData.translations.package.length)&&i.payments.wc.checkoutData.translations.package||(i.payments.wc.checkoutData.translations.package={}),e.$root.settings.general.usedLanguages.forEach(function(e){e in i.payments.wc.checkoutData.translations.appointment||(i.payments.wc.checkoutData.translations.appointment[e]=""),e in i.payments.wc.checkoutData.translations.event||(i.payments.wc.checkoutData.translations.event[e]=""),e in i.payments.wc.checkoutData.translations.package||(i.payments.wc.checkoutData.translations.package[e]="")}),i.payments.currencyCode=i.payments.currency,e.settings=i,e.settings.notifications)n=n.trim();e.openActiveSettingFromQueryParameter(),e.handleEnvatoActivation()}).catch(function(t){console.log(t.message),e.fetched=!0})},updateSettings:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;for(var s in e)e.hasOwnProperty(s)&&"weekSchedule"!==s&&(this.settings[s]=e[s]);for(var r in this.settings.customization=null,this.settings.customizedData=null,this.settings.notifications)r=r.trim();var l=JSON.parse(JSON.stringify(this.settings));l.weekSchedule=e.weekSchedule,this.$http.post(this.$root.getAjaxUrl+"/settings",l).then(function(e){n.$root.settings=Object.assign(n.$root.settings,e.data.data.settings),n.settings.apiKeys=JSON.parse(JSON.stringify(n.$root.settings.apiKeys)),a&&a(),!0===i&&n.notify(n.$root.labels.success,t||n.$root.labels.settings_saved,"success")}).catch(function(e){e.response.data.message?n.notify(n.$root.labels.error,e.response.data.message,"error"):n.notify(n.$root.labels.error,e.message,"error")}).finally(function(){o&&o()})},showDialogSettingsGeneral:function(){this.dialogSettingsGeneral=!0},showDialogSettingsCompany:function(){this.dialogSettingsCompany=!0},showDialogSettingsWorkHoursDaysOff:function(){this.dialogSettingsWorkHoursDaysOff=!0},showDialogSettingsNotifications:function(){this.dialogSettingsNotifications=!0},showDialogSettingsPayments:function(){this.dialogSettingsPayments=!0},showDialogSettingsIntegrations:function(){this.dialogSettingsIntegrations=!0},showDialogSettingsLabels:function(){this.dialogSettingsLabels=!0},showDialogSettingsActivation:function(){this.dialogSettingsActivation=!0},showDialogSettingsApiKeys:function(){this.dialogSettingsApiKeys=!0},showDialogSettingsRoles:function(){this.dialogSettingsRoles=!0},showDialogEmployee:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/entities",{params:{types:["employees","categories","appointments"],page:"settings"}}).then(function(t){var i=e,n=t.data.data.appointments.futureAppointments;for(var a in e.employeeInfo.employee=t.data.data.employees.length?t.data.data.employees[0]:e.getInitEmployeeObject(),e.employeeInfo.employee.weekDayList.forEach(function(e){e.periodList=e.periodList.sort(function(e,t){return i.$moment("2000-01-01 "+e.startTime+":00","YYYY-MM-DD HH:mm:ss").diff(i.$moment("2000-01-01 "+t.startTime+":00","YYYY-MM-DD HH:mm:ss"))}),e.timeOutList=e.timeOutList.sort(function(e,t){return i.$moment("2000-01-01 "+e.startTime+":00","YYYY-MM-DD HH:mm:ss").diff(i.$moment("2000-01-01 "+t.startTime+":00","YYYY-MM-DD HH:mm:ss"))})}),n)if(e.employeeInfo.employee.id===parseInt(n[a].providerId)){var o=n[a].serviceId,s=n[a].providerId;s in e.employeeInfo.futureAppointments?-1===e.employeeInfo.futureAppointments[s].indexOf(o)&&e.employeeInfo.futureAppointments[s].push(o):(e.employeeInfo.futureAppointments[s]=[],e.employeeInfo.futureAppointments[s].push(o))}e.employeeInfo.employee.googleCalendar={calendarId:null,calendarList:[]},e.employeeInfo.editWeekDayList=e.getParsedEditWeekDayList(e.employeeInfo.employee),e.employeeInfo.editCategorizedServiceList=e.getParsedEditCategorizedServiceList(e.employeeInfo.employee,t.data.data.categories),e.employeeInfo.editCategorizedServiceList.forEach(function(e){i.employeeInfo.employee.id||(e.serviceList.forEach(function(e){e.state=!0}),e.state=!0)}),e.employeeInfo.dialogEmployee=!0}).catch(function(e){console.log(e)})},showDialogSettingsAppointments:function(){this.dialogSettingsAppointments=!0},showDialogEmployeeBadges:function(){this.dialogEmployeeBadges=!0},openDialogCombinedPlaceholders:function(e){this.combinedPlaceholderName=e,this.dialogCombinedPlaceholder=!0},getEntities:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({lite:!0,types:["custom_fields","categories","coupons","settings","employees","squareLocations","mailchimpLists"]})}).then(function(t){e.customFields=t.data.data.customFields,e.coupons=t.data.data.coupons,e.categories=t.data.data.categories,e.languagesData=t.data.data.settings.languages,e.employees=t.data.data.employees,e.squareLocations=t.data.data.settings.squareLocations,e.squareLocations=Array.isArray(e.squareLocations)?e.squareLocations:Object.values(e.squareLocations),e.mailchimpLists=t.data.data.settings.mailchimpLists,e.mailchimpLists=Array.isArray(e.mailchimpLists)?e.mailchimpLists:Object.values(e.mailchimpLists)}).catch(function(e){console.log(e.message)})},showDialogTranslateRoles:function(e){var t=this;this.dialogTranslateTab="roles",this.dialogTranslateType="url",this.settings.roles.customerCabinet.translations&&"url"in this.settings.roles.customerCabinet.translations&&Array.isArray(this.settings.roles.customerCabinet.translations.url)&&(this.settings.roles.customerCabinet.translations.url={}),this.settings.roles.customerCabinet.translations&&"url"in this.settings.roles.customerCabinet.translations&&this.settings.general.usedLanguages.forEach(function(e){e in t.settings.roles.customerCabinet.translations.url||(t.settings.roles.customerCabinet.translations.url[e]="")}),this.dialogTranslateData=this.settings.roles.customerCabinet.translations&&this.settings.roles.customerCabinet.translations.url?JSON.stringify(this.settings.roles.customerCabinet.translations):JSON.stringify({url:{}}),this.showDialogTranslate(e)},showDialogTranslateCompany:function(e){this.dialogTranslateTab="company",this.dialogTranslateType="name",this.dialogTranslateData=JSON.stringify({name:{}}),this.settings.company.translations&&(this.settings.company.translations.name=Object.assign({},this.settings.company.translations.name),this.dialogTranslateData=JSON.stringify(this.settings.company.translations)),this.showDialogTranslate(e)},showDialogTranslate:function(e){"badges"===e&&(this.dialogTranslateData=null,this.dialogTranslateType="badges"),this.dialogTranslateName=e,this.dialogTranslate=!0},showDialogTranslateEmployee:function(e){this.dialogTranslateData=null,this.dialogTranslateName=this.employeeInfo.employee[e],this.dialogTranslateType=e,this.dialogTranslate=!0},saveDialogTranslate:function(e,t,i,n,a,o){if(this.settings.general.usedLanguages=this.settings.general.usedLanguages.concat(t),"roles"===i){var s={};(e=e?JSON.parse(e):{})&&"url"in e&&(Object.keys(e.url).forEach(function(t){e.url[t]&&(s[t]=e.url[t])}),this.settings.roles.customerCabinet.translations={url:s})}if("company"===i&&(this.settings.company.translations=e?JSON.parse(e):[],this.$refs.company.changeTranslations(e)),o){var r=this.settings.roles;r.providerBadges.badges=o,this.updateSettings({roles:r})}this.closeDialogTranslate()},closeDialogTranslate:function(){this.dialogTranslate=!1},closeDialogEmployeeBadges:function(){this.dialogEmployeeBadges=!1},openActiveSettingFromQueryParameter:function(){var e=this.getUrlQueryParams(window.location.href),t=e.activeSetting;if(t){if("activation"===t){this.showDialogSettingsActivation();var i=this.removeURLParameter(window.location.href,"activeSetting");history.pushState(null,null,i+"#/settings")}}else if(e.square){e.square_error&&this.notify(this.$root.labels.error,this.$root.labels.square_login_failed,"error");var n=this.removeURLParameter(window.location.href,"square_error");n=this.removeURLParameter(n,"square"),history.pushState(null,null,n+"#/settings"),this.dialogSettingsPayments=!0,this.squareOpenCollapse=!0}else if(e.mailchimp){e.mailchimp_error&&this.notify(this.$root.labels.error,this.$root.labels.mailchimp_sign_in_failed,"error");var a=this.removeURLParameter(window.location.href,"mailchimp_error");a=this.removeURLParameter(a,"mailchimp"),history.pushState(null,null,a+"#/settings"),this.dialogSettingsIntegrations=!0,this.mailchimpOpenCollapse=!0}},handleEnvatoActivation:function(){var e=this.getUrlQueryParams(window.location.href);e.valid&&e.domainRegistered&&(this.settings.activation.envatoTokenEmail=void 0!==e.envatoTokenEmail?e.envatoTokenEmail:"",this.settings.activation.active="true"===e.valid&&"true"===e.domainRegistered,this.updateSettings(this.settings,null,!1),this.showDialogSettingsActivation())},saveEmployeeCallback:function(){this.employeeInfo.dialogEmployee=!1}}}},function(e,t,i){var n=i(90)(i(1365),i(1371),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(91),a=i(654),o=i(655),s=i(658),r=i(1366),l=i.n(r);t.default={components:{LicenceLiteGuide:l.a},mixins:[n.a,a.a,o.a,s.a],props:{activation:{type:Object}},data:function(){var e=this;return{loadingActivation:!1,settings:Object.assign({},this.activation),rules:{code:[{validator:function(t,i,n){var a=location.hostname,o=location.hostname;e.$http.get(e.$root.getAjaxUrl+"/activation/code",{params:{purchaseCodeStore:e.settings.purchaseCodeStore,domain:a,subdomain:o}}).then(function(t){t.data.data.valid&&!1!==t.data.data.valid?!1===t.data.data.domainRegistered?n(new Error(e.$root.labels.activation_settings_domains_limit)):(e.settings.active=!0,n()):n(new Error(e.$root.labels.activation_settings_invalid_code))}).catch(function(t){console.log(t),e.loadingActivation=!1})},trigger:"submit"}]}}},created:function(){this.authenticateEnvatoOAuthCallback()},mounted:function(){!0===this.settings.active&&this.settings.purchaseCodeStore&&(this.settings.purchaseCodeStore=null)},methods:{closeDialog:function(){this.$emit("closeDialogSettingsActivation")},activatePlugin:function(){var e=this;this.loadingActivation=!0,this.$refs.settings.validate(function(t){if(!t)return e.loadingActivation=!1,!1;e.loadingActivation=!1,e.$emit("closeDialogSettingsActivation"),e.$emit("updateSettings",{activation:e.settings},e.$root.labels.activation_activated)})},updateActivationSettings:function(){this.$emit("updateSettings",{activation:this.settings})},deactivatePlugin:function(){var e=this;this.loadingActivation=!0;var t="",i={},n=location.hostname,a=location.hostname;null===this.settings.purchaseCodeStore?(t="/activation/code/deactivate",i={domain:n,subdomain:a}):this.settings.envatoTokenEmail&&(t="/activation/envato/deactivate",i={envatoTokenEmail:this.settings.envatoTokenEmail,domain:n,subdomain:a}),this.$http.get(""+(this.$root.getAjaxUrl+t),{params:i}).then(function(t){!0===t.data.data.deactivated?(e.loadingActivation=!1,e.settings.active=!1,e.settings.purchaseCodeStore="",e.settings.envatoTokenEmail="",e.$emit("closeDialogSettingsActivation"),e.$emit("updateSettings",{activation:e.settings},e.$root.labels.activation_deactivated)):(e.notify(e.$root.labels.error,e.$root.labels.unable_to_deactivate_plugin,"error"),e.loadingActivation=!1)}).catch(function(){e.notify(e.$root.labels.error,e.$root.labels.unable_to_deactivate_plugin,"error"),e.loadingActivation=!1})},authenticateEnvatoOAuth:function(){var e=this,t=location.hostname,i=location.hostname;this.$http.post(this.$root.getAjaxUrl+"/activation/parse-domain",{domain:t,subdomain:i}).then(function(t){window.location.replace(e.$root.getStoreUrl+"activation/envato?slug=ameliabooking&domain="+t.data.data.domain+"&subdomain="+t.data.data.subdomain+"&redirectUrl="+e.$root.getSiteUrl+"/wp-admin/admin.php?page=wpamelia-settings#/settings")}).catch(function(){e.notify(e.$root.labels.error,e.$root.labels.activation_envato_failed,"error"),e.loadingActivation=!1})},authenticateEnvatoOAuthCallback:function(){var e=this.getUrlQueryParams(window.location.href);if(e.valid&&e.domainRegistered){var t=this.removeURLParameter(window.location.href,"valid");t=this.removeURLParameter(t,"domainRegistered"),t=this.removeURLParameter(t,"slug"),e.envatoTokenEmail?(t=this.removeURLParameter(t,"envatoTokenEmail"),this.notify(this.$root.labels.success,this.$root.labels.activation_activated,"success")):"false"===e.valid?this.notify(this.$root.labels.error,this.$root.labels.activation_envato_failed,"error"):"false"===e.domainRegistered&&this.notify(this.$root.labels.error,this.$root.labels.activation_settings_domains_limit,"error"),history.pushState(null,null,t+"#/settings")}},clearValidation:function(){void 0!==this.$refs.settings&&this.$refs.settings.clearValidate()}}}},function(e,t,i){var n=i(90)(i(1369),i(1370),!1,function(e){i(1367)},"data-v-d195cb66",null);e.exports=n.exports},function(e,t,i){var n=i(1368);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i(681)("5d942b96",n,!0,{})},function(e,t,i){(e.exports=i(676)(!1)).push([e.i,".am-lite-guide[data-v-d195cb66]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:8px;margin:24px 0;border:1px solid #1a84ee;border-radius:6px;background-color:rgba(26,132,238,.05)}.am-lite-guide__left[data-v-d195cb66]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.am-lite-guide__left i[data-v-d195cb66]{font-size:18px;color:#1a84ee;padding:8px 12px 8px 8px}.am-lite-guide__right span[data-v-d195cb66]{font-size:15px;font-weight:600;color:#354052}.am-lite-guide__right a[data-v-d195cb66]{font-size:15px;font-weight:600;color:#1a84ee!important}.am-lite-guide__right a[data-v-d195cb66]:hover{color:#1a84ee!important}.am-lite-guide__right a[data-v-d195cb66]:focus{-webkit-box-shadow:none;box-shadow:none}",""])},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"LicenceLiteGuide"}},function(e,t){e.exports={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"am-lite-guide"},[t("div",{staticClass:"am-lite-guide__left"},[t("i",{staticClass:"el-icon-star-on"})]),this._v(" "),t("div",{staticClass:"am-lite-guide__right"},[t("span",[this._v("For instructions on activating your license, please refer to our\n "),t("a",{attrs:{href:"https://wpamelia.com/lite-upgrade/",target:"_blank"}},[this._v("\n upgrade guide.\n ")])])])])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.activation_settings))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),e.$root.licence.isLite?i("LicenceLiteGuide"):e._e(),e._v(" "),!e.notInLicence("starter")||e.licenceVisible()?i("el-form",{ref:"settings",class:e.licenceClass("starter"),attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[!1===e.settings.active?i("el-alert",{staticClass:"am-activation-alert",attrs:{type:"info","show-icon":"",title:"",description:e.$root.labels.activation_settings_explanation,closable:!1}}):e._e(),e._v(" "),!1===e.settings.active||!0===e.settings.active&&null===e.settings.purchaseCodeStore?i("el-form-item",{staticClass:"am-purchase-code",attrs:{label:!1===e.settings.active?e.$root.labels.purchase_code+":":"",prop:"code"}},[i("el-col",{attrs:{span:!0===e.settings.active?24:18}},[!1===e.settings.active?i("el-input",{attrs:{disabled:!0===e.settings.active||e.notInLicence("starter"),"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.purchaseCodeStore,callback:function(t){e.$set(e.settings,"purchaseCodeStore","string"==typeof t?t.trim():t)},expression:"settings.purchaseCodeStore"}},[!0===e.settings.active&&e.settings.purchaseCodeStore?i("i",{staticClass:"el-icon-circle-check",attrs:{slot:"suffix"},slot:"suffix"}):e._e()]):i("div",{staticClass:"am-purchase-code-hidden"},[i("i",{staticClass:"el-icon-info"}),e._v(" "),i("p",[e._v("\n "+e._s(e.$root.labels.activation_settings_hidden_code)+"\n "),i("a",{attrs:{href:"https://store.tms-plugins.com/login",target:"_blank"}},[e._v("store.tms-plugins.com")])])])],1),e._v(" "),!1===e.settings.active?i("el-col",{attrs:{span:6}},[i("el-button",{staticClass:"am-activate-plugin",attrs:{type:"primary",loading:e.loadingActivation,disabled:e.notInLicence("starter")},on:{click:e.activatePlugin}},[e._v("\n "+e._s(e.$root.labels.activate)+"\n ")])],1):e._e()],1):e._e(),e._v(" "),!1===e.settings.active||!0===e.settings.active&&""!==e.settings.envatoTokenEmail?i("el-form-item",{staticClass:"am-envato-activation",attrs:{label:e.$root.labels.envato_api+":"}},[i("el-button",{staticClass:"am-envato-activation-button",attrs:{disabled:!0===e.settings.active||e.notInLicence("starter")},on:{click:e.authenticateEnvatoOAuth}},[i("img",{staticClass:"am-envato-activation-logo",attrs:{src:e.$root.getUrl+"public/img/envato.svg"}}),e._v("\n "+e._s(""!==e.settings.envatoTokenEmail?e.$root.labels.envato_api_activated:e.$root.labels.envato_api_activate)+"\n ")])],1):e._e(),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1):e._e(),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.delete_amelia_short)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.delete_amelia_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.deleteTables,callback:function(t){e.$set(e.settings,"deleteTables",t)},expression:"settings.deleteTables"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.stash_entities)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.stash_entities_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.stash,callback:function(t){e.$set(e.settings,"stash",t)},expression:"settings.stash"}})],1)],1)],1),e._v(" "),e.$root.licence.isDeveloper||e.$root.licence.isLite?e._e():i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.see_unavailable_features)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.hideUnavailableFeatures,callback:function(t){e.$set(e.settings,"hideUnavailableFeatures",t)},expression:"settings.hideUnavailableFeatures"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n Use Async Loading for new forms\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.v3AsyncLoading,callback:function(t){e.$set(e.settings,"v3AsyncLoading",t)},expression:"settings.v3AsyncLoading"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Custom path enabled:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.customUrl.enabled,callback:function(t){e.$set(e.settings.customUrl,"enabled",t)},expression:"settings.customUrl.enabled"}})],1)],1)],1),e._v(" "),i("div",{staticStyle:{display:"none"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.customUrl.pluginPath,callback:function(t){e.$set(e.settings.customUrl,"pluginPath","string"==typeof t?t.trim():t)},expression:"settings.customUrl.pluginPath"}})],1),e._v(" "),i("div",{staticStyle:{display:"none"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.customUrl.ajaxPath,callback:function(t){e.$set(e.settings.customUrl,"ajaxPath","string"==typeof t?t.trim():t)},expression:"settings.customUrl.ajaxPath"}})],1),e._v(" "),i("div",{staticStyle:{display:"none"}},[i("el-input",{attrs:{"auto-complete":"off",placeholder:"custom uploads path"},on:{input:e.clearValidation},model:{value:e.settings.customUrl.uploadsPath,callback:function(t){e.$set(e.settings.customUrl,"uploadsPath","string"==typeof t?t.trim():t)},expression:"settings.customUrl.uploadsPath"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Use relative path for new booking forms:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.v3RelativePath,callback:function(t){e.$set(e.settings,"v3RelativePath",t)},expression:"settings.v3RelativePath"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Disable Url Params:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.disableUrlParams,callback:function(t){e.$set(e.settings,"disableUrlParams",t)},expression:"settings.disableUrlParams"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Custom path enabled:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.enableThriveItems,callback:function(t){e.$set(e.settings,"enableThriveItems",t)},expression:"settings.enableThriveItems"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Http 500 as Http 409:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.responseErrorAsConflict,callback:function(t){e.$set(e.settings,"responseErrorAsConflict",t)},expression:"settings.responseErrorAsConflict"}})],1)],1)],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.close))]),e._v(" "),!0===e.settings.active?i("el-button",{staticClass:"am-dialog-create",attrs:{type:"danger",loading:e.loadingActivation},on:{click:e.deactivatePlugin}},[e._v("\n "+e._s(e.$root.labels.deactivate)+"\n ")]):e._e()],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1373),i(1455),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(814),a=i.n(n),o=i(1374),s=i.n(o),r=i(0),l=i.n(r),c=i(91),u=i(336),d=i(654);t.default={props:{apiKeys:{type:Object}},data:function(){return{newApiKey:null,settings:Object.assign({},this.apiKeys),copied:!1,expirationOptions:[{value:1,label:this.$root.labels["1year"]},{value:2,label:this.$root.labels["2years"]},{value:3,label:this.$root.labels["3years"]},{value:0,label:this.$root.labels.unlimited}],expirationSelected:1}},mixins:[c.a,u.a,d.a],mounted:function(){this.settings.apiKeys.forEach(function(e){e.isNew=!1})},methods:{goToDocumentation:function(){window.open("https://wpamelia.com/api-endpoints/","_blank")},copyApiKey:function(){var e,t=(e=a.a.mark(function e(){var t;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,(t=document.getElementById("am-new-api-key")).focus(),t.select(),e.next=6,navigator.clipboard.writeText(this.newApiKey);case 6:this.copied=!0,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:case"end":return e.stop()}},e,this,[[0,9]])}),function(){var t=e.apply(this,arguments);return new Promise(function(e,i){return function n(a,o){try{var s=t[a](o),r=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(r).then(function(e){n("next",e)},function(e){n("throw",e)});e(r)}("next")})});return function(){return t.apply(this,arguments)}}(),expirationDateClose:function(e){var t=this.dateDiffDays(e);return t<=7&&t>0},expirationDatePassed:function(e){return this.dateDiffDays(e)<=0},dateDiffDays:function(e){var t=new Date(e)-new Date;return Math.ceil(t/864e5)},deleteKey:function(e){var t=this.settings.apiKeys.map(function(e){return e.id}).indexOf(e);-1!==t&&this.settings.apiKeys.splice(t,1)},generateApiKey:function(){var e=s.a.randomBytes(33).toString("base64"),t=this.settings.apiKeys.reduce(function(e,t){return e.id>t.id?e:t},0),i={id:(t?t.id:0)+1,key:e,last4:e.slice(-4),expiration:0===this.expirationSelected?null:l()().add(this.expirationSelected,"y").unix(),permissions:[],isNew:!0};this.settings.apiKeys.push(i),this.newApiKey=i.key,this.copied=!1},closeDialog:function(){this.$emit("closeDialogSettingsApiKeys")},onSubmit:function(){this.$emit("closeDialogSettingsApiKeys"),this.$emit("updateSettings",{apiKeys:this.settings})}}}},function(e,t,i){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=i(889),t.createHash=t.Hash=i(910),t.createHmac=t.Hmac=i(1007);var n=i(1388),a=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);t.getHashes=function(){return o};var s=i(1010);t.pbkdf2=s.pbkdf2,t.pbkdf2Sync=s.pbkdf2Sync;var r=i(1390);t.Cipher=r.Cipher,t.createCipher=r.createCipher,t.Cipheriv=r.Cipheriv,t.createCipheriv=r.createCipheriv,t.Decipher=r.Decipher,t.createDecipher=r.createDecipher,t.Decipheriv=r.Decipheriv,t.createDecipheriv=r.createDecipheriv,t.getCiphers=r.getCiphers,t.listCiphers=r.listCiphers;var l=i(1407);t.DiffieHellmanGroup=l.DiffieHellmanGroup,t.createDiffieHellmanGroup=l.createDiffieHellmanGroup,t.getDiffieHellman=l.getDiffieHellman,t.createDiffieHellman=l.createDiffieHellman,t.DiffieHellman=l.DiffieHellman;var c=i(1412);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=i(1450);var u=i(1451);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var d=i(1454);t.randomFill=d.randomFill,t.randomFillSync=d.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t){},function(e,t,i){"use strict";var n=i(685).Buffer;e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,i,a,o=n.allocUnsafe(e>>>0),s=this.head,r=0;s;)t=s.data,i=o,a=r,t.copy(i,a),r+=s.data.length,s=s.next;return o},e}()},function(e,t,i){(function(t){function i(e){try{if(!t.localStorage)return!1}catch(e){return!1}var i=t.localStorage[e];return null!=i&&"true"===String(i).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(t,i(37))},function(e,t,i){"use strict";e.exports=o;var n=i(1004),a=i(911);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}a.inherits=i(670),a.inherits(o,n),o.prototype._transform=function(e,t,i){i(null,e)}},function(e,t,i){e.exports=i(966)},function(e,t,i){e.exports=i(884)},function(e,t,i){e.exports=i(965).Transform},function(e,t,i){e.exports=i(965).PassThrough},function(e,t,i){var n=i(670),a=i(890),o=i(685).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function l(){this.init(),this._w=r,a.call(this,64,56)}function c(e){return e<<30|e>>>2}function u(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}n(l,a),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,a=0|this._b,o=0|this._c,r=0|this._d,l=0|this._e,d=0;d<16;++d)i[d]=e.readInt32BE(4*d);for(;d<80;++d)i[d]=i[d-3]^i[d-8]^i[d-14]^i[d-16];for(var p=0;p<80;++p){var f=~~(p/20),h=0|((t=n)<<5|t>>>27)+u(f,a,o,r)+l+i[p]+s[f];l=r,r=o,o=c(a),a=n,n=h}this._a=n+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=r+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,i){var n=i(670),a=i(890),o=i(685).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function l(){this.init(),this._w=r,a.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}n(l,a),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,a=0|this._b,o=0|this._c,r=0|this._d,l=0|this._e,p=0;p<16;++p)i[p]=e.readInt32BE(4*p);for(;p<80;++p)i[p]=(t=i[p-3]^i[p-8]^i[p-14]^i[p-16])<<1|t>>>31;for(var f=0;f<80;++f){var h=~~(f/20),m=c(n)+d(h,a,o,r)+l+i[f]+s[h]|0;l=r,r=o,o=u(a),a=n,n=m}this._a=n+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=r+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,i){var n=i(670),a=i(1005),o=i(890),s=i(685).Buffer,r=new Array(64);function l(){this.init(),this._w=r,o.call(this,64,56)}n(l,a),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},function(e,t,i){var n=i(670),a=i(1006),o=i(890),s=i(685).Buffer,r=new Array(160);function l(){this.init(),this._w=r,o.call(this,128,112)}n(l,a),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},function(e,t,i){"use strict";var n=i(670),a=i(685).Buffer,o=i(876),s=a.alloc(128),r=64;function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t)),this._alg=e,this._key=t,t.length>r?t=e(t):t.length<r&&(t=a.concat([t,s],r));for(var i=this._ipad=a.allocUnsafe(r),n=this._opad=a.allocUnsafe(r),l=0;l<r;l++)i[l]=54^t[l],n[l]=92^t[l];this._hash=[i]}n(l,o),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,e]))},e.exports=l},function(e,t,i){e.exports=i(1009)},function(e,t,i){(function(t,n){var a,o=i(1011),s=i(1012),r=i(1013),l=i(685).Buffer,c=t.crypto&&t.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function p(e,t,i,n,a){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:{name:a}},e,n<<3)}).then(function(e){return l.from(e)})}e.exports=function(e,i,f,h,m,g){"function"==typeof m&&(g=m,m=void 0);var b=u[(m=m||"sha1").toLowerCase()];if(!b||"function"!=typeof t.Promise)return n.nextTick(function(){var t;try{t=r(e,i,f,h,m)}catch(e){return g(e)}g(null,t)});if(o(e,i,f,h),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");l.isBuffer(e)||(e=l.from(e,s)),l.isBuffer(i)||(i=l.from(i,s)),function(e,t){e.then(function(e){n.nextTick(function(){t(null,e)})},function(e){n.nextTick(function(){t(e)})})}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var i=p(a=a||l.alloc(8),a,10,128,e).then(function(){return!0}).catch(function(){return!1});return d[e]=i,i}(b).then(function(t){return t?p(e,i,f,h,b):r(e,i,f,h,m)}),g)}}).call(t,i(37),i(142))},function(e,t,i){var n=i(1391),a=i(971),o=i(972),s=i(1406),r=i(925);function l(e,t,i){if(e=e.toLowerCase(),o[e])return a.createCipheriv(e,t,i);if(s[e])return new n({key:t,iv:i,mode:e});throw new TypeError("invalid suite type")}function c(e,t,i){if(e=e.toLowerCase(),o[e])return a.createDecipheriv(e,t,i);if(s[e])return new n({key:t,iv:i,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var i,n;if(e=e.toLowerCase(),o[e])i=o[e].key,n=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");i=8*s[e].key,n=s[e].iv}var a=r(t,!1,i,n);return l(e,a.key,a.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=function(e,t){var i,n;if(e=e.toLowerCase(),o[e])i=o[e].key,n=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");i=8*s[e].key,n=s[e].iv}var a=r(t,!1,i,n);return c(e,a.key,a.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(s).concat(a.getCiphers())}},function(e,t,i){(function(t){var n=i(876),a=i(970),o=i(670),s={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function r(e){n.call(this);var i,a=e.mode.toLowerCase(),o=s[a];i=e.decrypt?"decrypt":"encrypt";var r=e.key;"des-ede"!==a&&"des-ede-cbc"!==a||(r=t.concat([r,r.slice(0,8)]));var l=e.iv;this._des=o.create({key:r,iv:l,type:i})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=r,o(r,n),r.prototype._update=function(e){return new t(this._des.update(e))},r.prototype._final=function(){return new t(this._des.final())}}).call(t,i(674).Buffer)},function(e,t,i){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,i){e[0+i]=t>>>24,e[1+i]=t>>>16&255,e[2+i]=t>>>8&255,e[3+i]=255&t},t.ip=function(e,t,i,n){for(var a=0,o=0,s=6;s>=0;s-=2){for(var r=0;r<=24;r+=8)a<<=1,a|=t>>>r+s&1;for(r=0;r<=24;r+=8)a<<=1,a|=e>>>r+s&1}for(s=6;s>=0;s-=2){for(r=1;r<=25;r+=8)o<<=1,o|=t>>>r+s&1;for(r=1;r<=25;r+=8)o<<=1,o|=e>>>r+s&1}i[n+0]=a>>>0,i[n+1]=o>>>0},t.rip=function(e,t,i,n){for(var a=0,o=0,s=0;s<4;s++)for(var r=24;r>=0;r-=8)a<<=1,a|=t>>>r+s&1,a<<=1,a|=e>>>r+s&1;for(s=4;s<8;s++)for(r=24;r>=0;r-=8)o<<=1,o|=t>>>r+s&1,o<<=1,o|=e>>>r+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0},t.pc1=function(e,t,i,n){for(var a=0,o=0,s=7;s>=5;s--){for(var r=0;r<=24;r+=8)a<<=1,a|=t>>r+s&1;for(r=0;r<=24;r+=8)a<<=1,a|=e>>r+s&1}for(r=0;r<=24;r+=8)a<<=1,a|=t>>r+s&1;for(s=1;s<=3;s++){for(r=0;r<=24;r+=8)o<<=1,o|=t>>r+s&1;for(r=0;r<=24;r+=8)o<<=1,o|=e>>r+s&1}for(r=0;r<=24;r+=8)o<<=1,o|=e>>r+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,i,a){for(var o=0,s=0,r=n.length>>>1,l=0;l<r;l++)o<<=1,o|=e>>>n[l]&1;for(l=r;l<n.length;l++)s<<=1,s|=t>>>n[l]&1;i[a+0]=o>>>0,i[a+1]=s>>>0},t.expand=function(e,t,i){var n=0,a=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)a|=e>>>o&63,a<<=6;a|=(31&e)<<1|e>>>31,t[i+0]=n>>>0,t[i+1]=a>>>0};var a=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var i=0,n=0;n<4;n++){i<<=4,i|=a[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){i<<=4,i|=a[256+64*n+(t>>>18-6*n&63)]}return i>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,i=0;i<o.length;i++)t<<=1,t|=e>>>o[i]&1;return t>>>0},t.padSplit=function(e,t,i){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var a=[],o=0;o<t;o+=i)a.push(n.slice(o,o+i));return a.join(" ")}},function(e,t,i){"use strict";var n=i(793);function a(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=a,a.prototype._init=function(){},a.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},a.prototype._buffer=function(e,t){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=i,i},a.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},a.prototype._updateEncrypt=function(e){var t=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,a,i),i+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return a},a.prototype._updateDecrypt=function(e){for(var t=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),i+=this._flushBuffer(a,i);return t+=this._buffer(e,t),a},a.prototype.final=function(e){var t,i;return e&&(t=this.update(e)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(i):i},a.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},a.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},a.prototype._unpad=function(e){return e},a.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,i){"use strict";var n=i(793),a=i(670),o=i(970),s=o.utils,r=o.Cipher;function l(e){r.call(this,e);var t=new function(){this.tmp=new Array(2),this.keys=null};this._desState=t,this.deriveKeys(t,e.key)}a(l,r),e.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var i=s.readUInt32BE(t,0),a=s.readUInt32BE(t,4);s.pc1(i,a,e.tmp,0),i=e.tmp[0],a=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var r=c[o>>>1];i=s.r28shl(i,r),a=s.r28shl(a,r),s.pc2(i,a,e.keys,o)}},l.prototype._update=function(e,t,i,n){var a=this._desState,o=s.readUInt32BE(e,t),r=s.readUInt32BE(e,t+4);s.ip(o,r,a.tmp,0),o=a.tmp[0],r=a.tmp[1],"encrypt"===this.type?this._encrypt(a,o,r,a.tmp,0):this._decrypt(a,o,r,a.tmp,0),o=a.tmp[0],r=a.tmp[1],s.writeUInt32BE(i,o,n),s.writeUInt32BE(i,r,n+4)},l.prototype._pad=function(e,t){for(var i=e.length-t,n=t;n<e.length;n++)e[n]=i;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],i=e.length-t;i<e.length;i++)n.equal(e[i],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,i,n,a){for(var o=t,r=i,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];s.expand(r,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=s.substitute(c,u),p=r;r=(o^s.permute(d))>>>0,o=p}s.rip(r,o,n,a)},l.prototype._decrypt=function(e,t,i,n,a){for(var o=i,r=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];s.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=s.substitute(c,u),p=o;o=(r^s.permute(d))>>>0,r=p}s.rip(o,r,n,a)}},function(e,t,i){"use strict";var n=i(793),a=i(670),o={};t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}a(t,e);for(var i=Object.keys(o),n=0;n<i.length;n++){var s=i[n];t.prototype[s]=o[s]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new function(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}(this.options.iv);this._cbcState=e},o._update=function(e,t,i,n){var a=this._cbcState,o=this.constructor.super_.prototype,s=a.iv;if("encrypt"===this.type){for(var r=0;r<this.blockSize;r++)s[r]^=e[t+r];o._update.call(this,s,0,i,n);for(r=0;r<this.blockSize;r++)s[r]=i[n+r]}else{o._update.call(this,e,t,i,n);for(r=0;r<this.blockSize;r++)i[n+r]^=s[r];for(r=0;r<this.blockSize;r++)s[r]=e[t+r]}}},function(e,t,i){"use strict";var n=i(793),a=i(670),o=i(970),s=o.Cipher,r=o.DES;function l(e){s.call(this,e);var t=new function(e,t){n.equal(t.length,24,"Invalid key length");var i=t.slice(0,8),a=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[r.create({type:"encrypt",key:i}),r.create({type:"decrypt",key:a}),r.create({type:"encrypt",key:o})]:[r.create({type:"decrypt",key:o}),r.create({type:"encrypt",key:a}),r.create({type:"decrypt",key:i})]}(this.type,this.options.key);this._edeState=t}a(l,s),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,i,n){var a=this._edeState;a.ciphers[0]._update(e,t,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)},l.prototype._pad=r.prototype._pad,l.prototype._unpad=r.prototype._unpad},function(e,t,i){var n=i(972),a=i(1017),o=i(685).Buffer,s=i(1018),r=i(876),l=i(924),c=i(925);function u(e,t,i){r.call(this),this._cache=new p,this._cipher=new l.AES(t),this._prev=o.from(i),this._mode=e,this._autopadding=!0}i(670)(u,r),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get();)i=this._mode.encrypt(this,t),n.push(i);return o.concat(n)};var d=o.alloc(16,16);function p(){this.cache=o.allocUnsafe(0)}function f(e,t,i){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=o.from(i)),"GCM"!==r.mode&&i.length!==r.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===r.type?new s(r.module,t,i):"auth"===r.type?new a(r.module,t,i):new u(r.module,t,i)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},p.prototype.add=function(e){this.cache=o.concat([this.cache,e])},p.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},p.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return o.concat([this.cache,t])},t.createCipheriv=f,t.createCipher=function(e,t){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var a=c(t,!1,i.key,i.iv);return f(e,a.key,a.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,i){var n=i(912);t.encrypt=function(e,t){var i=n(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},t.decrypt=function(e,t){var i=e._prev;e._prev=t;var a=e._cipher.decryptBlock(t);return n(a,i)}},function(e,t,i){var n=i(685).Buffer,a=i(912);function o(e,t,i){var o=t.length,s=a(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,i?t:s]),s}t.encrypt=function(e,t,i){for(var a,s=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){s=n.concat([s,o(e,t,i)]);break}a=e._cache.length,s=n.concat([s,o(e,t.slice(0,a),i)]),t=t.slice(a)}return s}},function(e,t,i){var n=i(685).Buffer;function a(e,t,i){var a=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([i?t:a])]),a}t.encrypt=function(e,t,i){for(var o=t.length,s=n.allocUnsafe(o),r=-1;++r<o;)s[r]=a(e,t[r],i);return s}},function(e,t,i){var n=i(685).Buffer;function a(e,t,i){for(var n,a,s,r=-1,l=0;++r<8;)n=e._cipher.encryptBlock(e._prev),a=t&1<<7-r?128:0,l+=(128&(s=n[0]^a))>>r%8,e._prev=o(e._prev,i?a:s);return l}function o(e,t){var i=e.length,a=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++a<i;)o[a]=e[a]<<1|e[a+1]>>7;return o}t.encrypt=function(e,t,i){for(var o=t.length,s=n.allocUnsafe(o),r=-1;++r<o;)s[r]=a(e,t[r],i);return s}},function(e,t,i){(function(e){var n=i(912);function a(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,i){for(;t._cache.length<i.length;)t._cache=e.concat([t._cache,a(t)]);var o=t._cache.slice(0,i.length);return t._cache=t._cache.slice(i.length),n(i,o)}}).call(t,i(674).Buffer)},function(e,t,i){var n=i(685).Buffer,a=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,i,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],a=[0,0,0,0],s=-1;++s<128;){for(0!=(this.state[~~(s/8)]&1<<7-s%8)&&(a[0]^=n[0],a[1]^=n[1],a[2]^=n[2],a[3]^=n[3]),i=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=o(a)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,a],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=s},function(e,t,i){var n=i(1017),a=i(685).Buffer,o=i(972),s=i(1018),r=i(876),l=i(924),c=i(925);function u(e,t,i){r.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=a.from(i),this._mode=e,this._autopadding=!0}function d(){this.cache=a.allocUnsafe(0)}function p(e,t,i){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=a.from(i)),"GCM"!==r.mode&&i.length!==r.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof t&&(t=a.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===r.type?new s(r.module,t,i,!0):"auth"===r.type?new n(r.module,t,i,!0):new u(r.module,t,i)}i(670)(u,r),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,t),n.push(i);return a.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var i=-1;for(;++i<t;)if(e[i+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=a.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var i=o[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=c(t,!1,i.key,i.iv);return p(e,n.key,n.iv)},t.createDecipheriv=p},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,i){(function(e){var n=i(1019),a=i(1410),o=i(1411);var s={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var i=new e(a[t].prime,"hex"),n=new e(a[t].gen,"hex");return new o(i,n)},t.createDiffieHellman=t.DiffieHellman=function t(i,a,r,l){return e.isBuffer(a)||void 0===s[a]?t(i,"binary",a,r):(a=a||"binary",l=l||"binary",r=r||new e([2]),e.isBuffer(r)||(r=new e(r,l)),"number"==typeof i?new o(n(i,r),r,!0):(e.isBuffer(i)||(i=new e(i,a)),new o(i,r,!0)))}}).call(t,i(674).Buffer)},function(e,t){},function(e,t){},function(e,t){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,i){(function(t){var n=i(712),a=new(i(1020)),o=new n(24),s=new n(11),r=new n(10),l=new n(3),c=new n(7),u=i(1019),d=i(889);function p(e,i){return i=i||"utf8",t.isBuffer(e)||(e=new t(e,i)),this._pub=new n(e),this}function f(e,i){return i=i||"utf8",t.isBuffer(e)||(e=new t(e,i)),this._priv=new n(e),this}e.exports=m;var h={};function m(e,t,i){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=p,this.setPrivateKey=f):this._primeCode=8}function g(e,i){var n=new t(e.toArray());return i?n.toString(i):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var i=t.toString("hex"),n=[i,e.toString(16)].join("_");if(n in h)return h[n];var d,p=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!a.test(e))return p+=1,p+="02"===i||"05"===i?8:4,h[n]=p,p;switch(a.test(e.shrn(1))||(p+=2),i){case"02":e.mod(o).cmp(s)&&(p+=8);break;case"05":(d=e.mod(r)).cmp(l)&&d.cmp(c)&&(p+=8);break;default:p+=4}return h[n]=p,p}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var i=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),a=new t(i.toArray()),o=this.getPrime();if(a.length<o.length){var s=new t(o.length-a.length);s.fill(0),a=t.concat([s,a])}return a},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,i){return i=i||"utf8",t.isBuffer(e)||(e=new t(e,i)),this.__gen=e,this._gen=new n(e),this}}).call(t,i(674).Buffer)},function(e,t,i){(function(t){var n=i(910),a=i(963),o=i(670),s=i(1413),r=i(1449),l=i(1009);function c(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new c(e)}function p(e){return new u(e)}Object.keys(l).forEach(function(e){l[e].id=new t(l[e].id,"hex"),l[e.toLowerCase()]=l[e]}),o(c,a.Writable),c.prototype._write=function(e,t,i){this._hash.update(e),i()},c.prototype.update=function(e,i){return"string"==typeof e&&(e=new t(e,i)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),n=s(i,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},o(u,a.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,i){return"string"==typeof e&&(e=new t(e,i)),this._hash.update(e),this},u.prototype.verify=function(e,i,n){"string"==typeof i&&(i=new t(i,n)),this.end();var a=this._hash.digest();return r(i,a,e,this._signType,this._tag)},e.exports={Sign:d,Verify:p,createSign:d,createVerify:p}}).call(t,i(674).Buffer)},function(e,t,i){(function(t){var n=i(1007),a=i(973),o=i(748).ec,s=i(712),r=i(927),l=i(1030);function c(e,i,a,o){if((e=new t(e.toArray())).length<i.byteLength()){var s=new t(i.byteLength()-e.length);s.fill(0),e=t.concat([s,e])}var r=a.length,l=function(e,i){e=(e=u(e,i)).mod(i);var n=new t(e.toArray());if(n.length<i.byteLength()){var a=new t(i.byteLength()-n.length);a.fill(0),n=t.concat([a,n])}return n}(a,i),c=new t(r);c.fill(1);var d=new t(r);return d.fill(0),d=n(o,d).update(c).update(new t([0])).update(e).update(l).digest(),c=n(o,d).update(c).digest(),{k:d=n(o,d).update(c).update(new t([1])).update(e).update(l).digest(),v:c=n(o,d).update(c).digest()}}function u(e,t){var i=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&i.ishrn(n),i}function d(e,i,a){var o,s;do{for(o=new t(0);8*o.length<e.bitLength();)i.v=n(a,i.k).update(i.v).digest(),o=t.concat([o,i.v]);s=u(o,e),i.k=n(a,i.k).update(i.v).update(new t([0])).digest(),i.v=n(a,i.k).update(i.v).digest()}while(-1!==s.cmp(e));return s}function p(e,t,i,n){return e.toRed(s.mont(i)).redPow(t).fromRed().mod(n)}e.exports=function(e,i,n,f,h){var m=r(i);if(m.curve){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");return function(e,i){var n=l[i.curve.join(".")];if(!n)throw new Error("unknown curve "+i.curve.join("."));var a=new o(n).keyFromPrivate(i.privateKey).sign(e);return new t(a.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==f)throw new Error("wrong private key type");return function(e,i,n){for(var a,o=i.params.priv_key,r=i.params.p,l=i.params.q,f=i.params.g,h=new s(0),m=u(e,l).mod(l),g=!1,b=c(o,l,e,n);!1===g;)a=d(l,b,n),h=p(f,a,r,l),0===(g=a.invm(l).imul(m.add(o.mul(h))).mod(l)).cmpn(0)&&(g=!1,h=new s(0));return function(e,i){e=e.toArray(),i=i.toArray(),128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i));var n=[48,e.length+i.length+4,2,e.length];return n=n.concat(e,[2,i.length],i),new t(n)}(h,g)}(e,m,n)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");e=t.concat([h,e]);for(var g=m.modulus.byteLength(),b=[0,1];e.length+b.length+1<g;)b.push(255);b.push(0);for(var v=-1;++v<e.length;)b.push(e[v]);return a(b,m)},e.exports.getKey=c,e.exports.makeKey=d}).call(t,i(674).Buffer)},function(e,t){e.exports={_args:[["elliptic@6.4.0","/var/lib/jenkins/workspace/lite-plugins-amelia/amelia-lite-plugin-update-build/ameliabooking"]],_development:!0,_from:"elliptic@6.4.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.4.0",name:"elliptic",escapedName:"elliptic",rawSpec:"6.4.0",saveSpec:null,fetchSpec:"6.4.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_spec:"6.4.0",_where:"/var/lib/jenkins/workspace/lite-plugins-amelia/amelia-lite-plugin-update-build/ameliabooking",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},function(e,t,i){"use strict";var n=t,a=i(712),o=i(793),s=i(1022);n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=function(e,t){for(var i=[],n=1<<t+1,a=e.clone();a.cmpn(1)>=0;){var o;if(a.isOdd()){var s=a.andln(n-1);o=s>(n>>1)-1?(n>>1)-s:s,a.isubn(o)}else o=0;i.push(o);for(var r=0!==a.cmpn(0)&&0===a.andln(n-1)?t+1:1,l=1;l<r;l++)i.push(0);a.iushrn(r)}return i},n.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var n=0,a=0;e.cmpn(-n)>0||t.cmpn(-a)>0;){var o,s,r,l=e.andln(3)+n&3,c=t.andln(3)+a&3;3===l&&(l=-1),3===c&&(c=-1),o=0==(1&l)?0:3!=(r=e.andln(7)+n&7)&&5!==r||2!==c?l:-l,i[0].push(o),s=0==(1&c)?0:3!=(r=t.andln(7)+a&7)&&5!==r||2!==l?c:-c,i[1].push(s),2*n===o+1&&(n=1-n),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return i},n.cachedProperty=function(e,t,i){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new a(e,"hex","le")}},function(e,t,i){"use strict";var n=i(712),a=i(748).utils,o=a.getNAF,s=a.getJSF,r=a.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){r(e.precomputed);var i=e._getDoubles(),n=o(t,1),a=(1<<i.step+1)-(i.step%2==0?2:1);a/=3;for(var s=[],l=0;l<n.length;l+=i.step){var c=0;for(t=l+i.step-1;t>=l;t--)c=(c<<1)+n[t];s.push(c)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),p=a;p>0;p--){for(l=0;l<s.length;l++){(c=s[l])===p?d=d.mixedAdd(i.points[l]):c===-p&&(d=d.mixedAdd(i.points[l].neg()))}u=u.add(d)}return u.toP()},l.prototype._wnafMul=function(e,t){var i=4,n=e._getNAFPoints(i);i=n.wnd;for(var a=n.points,s=o(t,i),l=this.jpoint(null,null,null),c=s.length-1;c>=0;c--){for(t=0;c>=0&&0===s[c];c--)t++;if(c>=0&&t++,l=l.dblp(t),c<0)break;var u=s[c];r(0!==u),l="affine"===e.type?u>0?l.mixedAdd(a[u-1>>1]):l.mixedAdd(a[-u-1>>1].neg()):u>0?l.add(a[u-1>>1]):l.add(a[-u-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,i,n,a){for(var r=this._wnafT1,l=this._wnafT2,c=this._wnafT3,u=0,d=0;d<n;d++){var p=(C=t[d])._getNAFPoints(e);r[d]=p.wnd,l[d]=p.points}for(d=n-1;d>=1;d-=2){var f=d-1,h=d;if(1===r[f]&&1===r[h]){var m=[t[f],null,null,t[h]];0===t[f].y.cmp(t[h].y)?(m[1]=t[f].add(t[h]),m[2]=t[f].toJ().mixedAdd(t[h].neg())):0===t[f].y.cmp(t[h].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[h]),m[2]=t[f].add(t[h].neg())):(m[1]=t[f].toJ().mixedAdd(t[h]),m[2]=t[f].toJ().mixedAdd(t[h].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=s(i[f],i[h]);u=Math.max(b[0].length,u),c[f]=new Array(u),c[h]=new Array(u);for(var v=0;v<u;v++){var y=0|b[0][v],_=0|b[1][v];c[f][v]=g[3*(y+1)+(_+1)],c[h][v]=0,l[f]=m}}else c[f]=o(i[f],r[f]),c[h]=o(i[h],r[h]),u=Math.max(c[f].length,u),u=Math.max(c[h].length,u)}var w=this.jpoint(null,null,null),k=this._wnafT4;for(d=u;d>=0;d--){for(var x=0;d>=0;){var S=!0;for(v=0;v<n;v++)k[v]=0|c[v][d],0!==k[v]&&(S=!1);if(!S)break;x++,d--}if(d>=0&&x++,w=w.dblp(x),d<0)break;for(v=0;v<n;v++){var C,$=k[v];0!==$&&($>0?C=l[v][$-1>>1]:$<0&&(C=l[v][-$-1>>1].neg()),w="affine"===C.type?w.mixedAdd(C):w.add(C))}}for(d=0;d<n;d++)l[d]=null;return a?w:w.toP()},l.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=a.toArray(e,t);var i=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*i)return 6===e[0]?r(e[e.length-1]%2==0):7===e[0]&&r(e[e.length-1]%2==1),this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));if((2===e[0]||3===e[0])&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),i=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return a.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,a=0;a<t;a+=e){for(var o=0;o<e;o++)n=n.dbl();i.push(n)}return{step:e,points:i}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],i=(1<<e)-1,n=1===i?null:this.dbl(),a=1;a<i;a++)t[a]=t[a-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}},function(e,t,i){"use strict";var n=i(926),a=i(748),o=i(712),s=i(670),r=n.base,l=a.utils.assert;function c(e){r.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,i,n){r.BasePoint.call(this,e,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function d(e,t,i,n){r.BasePoint.call(this,e,"jacobian"),null===t&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(i,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(c,r),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,i;if(e.beta)t=new o(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)i=new o(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?i=a[0]:(i=a[1],l(0===this.g.mul(i).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:i,basis:e.basis?e.basis.map(function(e){return{a:new o(e.a,16),b:new o(e.b,16)}}):this._getEndoBasis(i)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),i=new o(2).toRed(t).redInvm(),n=i.redNeg(),a=new o(3).toRed(t).redNeg().redSqrt().redMul(i);return[n.redAdd(a).fromRed(),n.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,i,n,a,s,r,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=e,f=this.n.clone(),h=new o(1),m=new o(0),g=new o(0),b=new o(1),v=0;0!==p.cmpn(0);){var y=f.div(p);c=f.sub(y.mul(p)),u=g.sub(y.mul(h));var _=b.sub(y.mul(m));if(!n&&c.cmp(d)<0)t=l.neg(),i=h,n=c.neg(),a=u;else if(n&&2==++v)break;l=c,f=p,p=c,g=h,h=u,b=m,m=_}s=c.neg(),r=u;var w=n.sqr().add(a.sqr());return s.sqr().add(r.sqr()).cmp(w)>=0&&(s=t,r=i),n.negative&&(n=n.neg(),a=a.neg()),s.negative&&(s=s.neg(),r=r.neg()),[{a:n,b:a},{a:s,b:r}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),o=i.b.neg().mul(e).divRound(this.n),s=a.mul(i.a),r=o.mul(n.a),l=a.mul(i.b),c=o.mul(n.b);return{k1:e.sub(s).sub(r),k2:l.add(c).neg()}},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var a=n.fromRed().isOdd();return(t&&!a||!t&&a)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(a).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,i){for(var n=this._endoWnafT1,a=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),r=e[o],l=r._getBeta();s.k1.negative&&(s.k1.ineg(),r=r.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),n[2*o]=r,n[2*o+1]=l,a[2*o]=s.k1,a[2*o+1]=s.k2}for(var c=this._wnafMulAdd(1,n,a,2*o,i),u=0;u<2*o;u++)n[u]=null,a[u]=null;return c},s(u,r.BasePoint),c.prototype.point=function(e,t,i){return new u(this,e,t,i)},c.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var i=this.curve,n=function(e){return i.point(e.x.redMul(i.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(e,t,i){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],i);if(!t[2])return n;function a(t){return e.point(t[0],t[1],i)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(a))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(a))}},n},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var i=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,i=this.x.redSqr(),n=e.redInvm(),a=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(n),o=a.redSqr().redISub(this.x.redAdd(this.x)),s=a.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,i){var n=[this,t],a=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},u.prototype.jmulAdd=function(e,t,i){var n=[this,t],a=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(d,r.BasePoint),c.prototype.jpoint=function(e,t,i){return new d(this,e,t,i)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(i,n)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(i),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(i.redMul(this.z)),r=n.redSub(a),l=o.redSub(s);if(0===r.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=r.redSqr(),u=c.redMul(r),d=n.redMul(c),p=l.redSqr().redIAdd(u).redISub(d).redISub(d),f=l.redMul(d.redISub(p)).redISub(o.redMul(u)),h=this.z.redMul(e.z).redMul(r);return this.curve.jpoint(p,f,h)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,n=e.x.redMul(t),a=this.y,o=e.y.redMul(t).redMul(this.z),s=i.redSub(n),r=a.redSub(o);if(0===s.cmpn(0))return 0!==r.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),u=i.redMul(l),d=r.redSqr().redIAdd(c).redISub(u).redISub(u),p=r.redMul(u.redISub(d)).redISub(a.redMul(c)),f=this.z.redMul(s);return this.curve.jpoint(d,p,f)},d.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}var n=this.curve.a,a=this.curve.tinv,o=this.x,s=this.y,r=this.z,l=r.redSqr().redSqr(),c=s.redAdd(s);for(i=0;i<e;i++){var u=o.redSqr(),d=c.redSqr(),p=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),h=o.redMul(d),m=f.redSqr().redISub(h.redAdd(h)),g=h.redISub(m),b=f.redMul(g);b=b.redIAdd(b).redISub(p);var v=c.redMul(r);i+1<e&&(l=l.redMul(p)),o=m,r=v,c=b}return this.curve.jpoint(o,c.redMul(a),r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},d.prototype._zeroDbl=function(){var e,t,i;if(this.zOne){var n=this.x.redSqr(),a=this.y.redSqr(),o=a.redSqr(),s=this.x.redAdd(a).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var r=n.redAdd(n).redIAdd(n),l=r.redSqr().redISub(s).redISub(s),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=r.redMul(s.redISub(l)).redISub(c),i=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),p=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(p);f=f.redIAdd(f);var h=u.redAdd(u).redIAdd(u),m=h.redSqr(),g=p.redIAdd(p);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(f).redISub(f),t=h.redMul(f.redISub(e)).redISub(g),i=(i=this.y.redMul(this.z)).redIAdd(i)}return this.curve.jpoint(e,t,i)},d.prototype._threeDbl=function(){var e,t,i;if(this.zOne){var n=this.x.redSqr(),a=this.y.redSqr(),o=a.redSqr(),s=this.x.redAdd(a).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var r=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=r.redSqr().redISub(s).redISub(s);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=r.redMul(s.redISub(l)).redISub(c),i=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),p=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var h=p.redIAdd(p),m=(h=h.redIAdd(h)).redAdd(h);e=f.redSqr().redISub(m),i=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=f.redMul(h.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,i)},d.prototype._dbl=function(){var e=this.curve.a,t=this.x,i=this.y,n=this.z,a=n.redSqr().redSqr(),o=t.redSqr(),s=i.redSqr(),r=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(a)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(s),u=r.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),p=s.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=r.redMul(d).redISub(p),h=i.redAdd(i).redMul(n);return this.curve.jpoint(u,f,h)},d.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr(),n=t.redSqr(),a=e.redAdd(e).redIAdd(e),o=a.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),r=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=a.redIAdd(s).redSqr().redISub(o).redISub(r).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(r).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var p=this.y.redMul(c.redMul(l.redISub(c)).redISub(s.redMul(r)));p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=this.z.redAdd(s).redSqr().redISub(i).redISub(r);return this.curve.jpoint(d,p,f)},d.prototype.mul=function(e,t){return e=new o(e,t),this.curve._wnafMul(this,e)},d.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),i=e.z.redSqr();if(0!==this.x.redMul(i).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),a=i.redMul(e.z);return 0===this.y.redMul(a).redISub(e.y.redMul(n)).cmpn(0)},d.prototype.eqXToP=function(e){var t=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(i))return!0;for(var n=e.clone(),a=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(a),0===this.x.cmp(i))return!0}return!1},d.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,i){"use strict";var n=i(926),a=i(712),o=i(670),s=n.base,r=i(748).utils;function l(e){s.call(this,"mont",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,i){s.BasePoint.call(this,e,"projective"),null===t&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(t,16),this.z=new a(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(l,s),e.exports=l,l.prototype.validate=function(e){var t=e.normalize().x,i=t.redSqr(),n=i.redMul(t).redAdd(i.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(c,s.BasePoint),l.prototype.decodePoint=function(e,t){return this.point(r.toArray(e,t),1)},l.prototype.point=function(e,t){return new c(this,e,t)},l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),i=e.redSub(t),n=e.redMul(t),a=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,a)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),a=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(i),s=a.redMul(n),r=t.z.redMul(o.redAdd(s).redSqr()),l=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(r,l)},c.prototype.mul=function(e){for(var t=e.clone(),i=this,n=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var o=a.length-1;o>=0;o--)0===a[o]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,i){"use strict";var n=i(926),a=i(748),o=i(712),s=i(670),r=n.base,l=a.utils.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,r.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,i,n,a){r.BasePoint.call(this,e,"projective"),null===t&&null===i&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(i,16),this.z=n?new o(n,16):this.curve.one,this.t=a&&new o(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(c,r),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,i,n){return this.point(e,t,i,n)},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),n=this.c2.redSub(this.a.redMul(i)),a=this.one.redSub(this.c2.redMul(this.d).redMul(i)),s=n.redMul(a.redInvm()),r=s.redSqrt();if(0!==r.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var l=r.fromRed().isOdd();return(t&&!l||!t&&l)&&(r=r.redNeg()),this.point(e,r)},c.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),n=i.redSub(this.one),a=i.redMul(this.d).redAdd(this.one),s=n.redMul(a.redInvm());if(0===s.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var r=s.redSqrt();if(0!==r.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return r.isOdd()!==t&&(r=r.redNeg()),this.point(r,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),i=e.y.redSqr(),n=t.redMul(this.a).redAdd(i),a=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(i)));return 0===n.cmp(a)},s(u,r.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,i,n){return new u(this,e,t,i,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),s=o.redSub(i),r=n.redSub(t),l=a.redMul(s),c=o.redMul(r),u=a.redMul(r),d=s.redMul(o);return this.curve.point(l,c,d,u)},u.prototype._projDbl=function(){var e,t,i,n=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var s=(c=this.curve._mulA(a)).redAdd(o);if(this.zOne)e=n.redSub(a).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(c.redSub(o)),i=s.redSqr().redSub(s).redSub(s);else{var r=this.z.redSqr(),l=s.redSub(r).redISub(r);e=n.redSub(a).redISub(o).redMul(l),t=s.redMul(c.redSub(o)),i=s.redMul(l)}}else{var c=a.redAdd(o);r=this.curve._mulC(this.c.redMul(this.z)).redSqr(),l=c.redSub(r).redSub(r);e=this.curve._mulC(n.redISub(c)).redMul(l),t=this.curve._mulC(c).redMul(a.redISub(o)),i=c.redMul(l)}return this.curve.point(e,t,i)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),o=i.redSub(t),s=a.redSub(n),r=a.redAdd(n),l=i.redAdd(t),c=o.redMul(s),u=r.redMul(l),d=o.redMul(l),p=s.redMul(r);return this.curve.point(c,u,p,d)},u.prototype._projAdd=function(e){var t,i,n=this.z.redMul(e.z),a=n.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),r=this.curve.d.redMul(o).redMul(s),l=a.redSub(r),c=a.redAdd(r),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),d=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(s.redSub(this.curve._mulA(o))),i=l.redMul(c)):(t=n.redMul(c).redMul(s.redSub(o)),i=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,i)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!1)},u.prototype.jmulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(e,t,i){"use strict";var n,a=t,o=i(974),s=i(748),r=s.utils.assert;function l(e){"short"===e.type?this.curve=new s.curve.short(e):"edwards"===e.type?this.curve=new s.curve.edwards(e):this.curve=new s.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,r(this.g.validate(),"Invalid curve"),r(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var i=new l(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:i}),i}})}a.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=i(1427)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,i){"use strict";t.sha1=i(1422),t.sha224=i(1423),t.sha256=i(1024),t.sha384=i(1424),t.sha512=i(1025)},function(e,t,i){"use strict";var n=i(815),a=i(913),o=i(1023),s=n.rotl32,r=n.sum32,l=n.sum32_5,c=o.ft_1,u=a.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(p,u),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var i=this.W,n=0;n<16;n++)i[n]=e[t+n];for(;n<i.length;n++)i[n]=s(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var a=this.h[0],o=this.h[1],u=this.h[2],p=this.h[3],f=this.h[4];for(n=0;n<i.length;n++){var h=~~(n/20),m=l(s(a,5),c(h,o,u,p),f,i[n],d[h]);f=p,p=u,u=s(o,30),o=a,a=m}this.h[0]=r(this.h[0],a),this.h[1]=r(this.h[1],o),this.h[2]=r(this.h[2],u),this.h[3]=r(this.h[3],p),this.h[4]=r(this.h[4],f)},p.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,i){"use strict";var n=i(815),a=i(1024);function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,a),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,i){"use strict";var n=i(815),a=i(1025);function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,a),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,i){"use strict";var n=i(815),a=i(913),o=n.rotl32,s=n.sum32,r=n.sum32_3,l=n.sum32_4,c=a.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,i,n){return e<=15?t^i^n:e<=31?t&i|~t&n:e<=47?(t|~i)^n:e<=63?t&n|i&~n:t^(i|~n)}function p(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var i=this.h[0],n=this.h[1],a=this.h[2],c=this.h[3],u=this.h[4],v=i,y=n,_=a,w=c,k=u,x=0;x<80;x++){var S=s(o(l(i,d(x,n,a,c),e[h[x]+t],p(x)),g[x]),u);i=u,u=c,c=o(a,10),a=n,n=S,S=s(o(l(v,d(79-x,y,_,w),e[m[x]+t],f(x)),b[x]),k),v=k,k=w,w=o(_,10),_=y,y=S}S=r(this.h[1],a,w),this.h[1]=r(this.h[2],c,k),this.h[2]=r(this.h[3],u,v),this.h[3]=r(this.h[4],i,y),this.h[4]=r(this.h[0],n,_),this.h[0]=S},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,i){"use strict";var n=i(815),a=i(793);function o(e,t,i){if(!(this instanceof o))return new o(e,t,i);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,i))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,i){"use strict";var n=i(712),a=i(1429),o=i(748),s=o.utils.assert,r=i(1430),l=i(1431);function c(e){if(!(this instanceof c))return new c(e);"string"==typeof e&&(s(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=c,c.prototype.keyPair=function(e){return new r(this,e)},c.prototype.keyFromPrivate=function(e,t){return r.fromPrivate(this,e,t)},c.prototype.keyFromPublic=function(e,t){return r.fromPublic(this,e,t)},c.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),s=this.n.sub(new n(2));;){var r=new n(t.generate(i));if(!(r.cmp(s)>0))return r.iaddn(1),this.keyFromPrivate(r)}},c.prototype._truncateToN=function(e,t){var i=8*e.byteLength()-this.n.bitLength();return i>0&&(e=e.ushrn(i)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},c.prototype.sign=function(e,t,i,o){"object"==typeof i&&(o=i,i=null),o||(o={}),t=this.keyFromPrivate(t,i),e=this._truncateToN(new n(e,16));for(var s=this.n.byteLength(),r=t.getPrivate().toArray("be",s),c=e.toArray("be",s),u=new a({hash:this.hash,entropy:r,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),p=0;;p++){var f=o.k?o.k(p):new n(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var h=this.g.mul(f);if(!h.isInfinity()){var m=h.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var b=f.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var v=(h.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),v^=1),new l({r:g,s:b,recoveryParam:v})}}}}}},c.prototype.verify=function(e,t,i,a){e=this._truncateToN(new n(e,16)),i=this.keyFromPublic(i,a);var o=(t=new l(t,"hex")).r,s=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var r,c=s.invm(this.n),u=c.mul(e).umod(this.n),d=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(r=this.g.jmulAdd(u,i.getPublic(),d)).isInfinity()&&r.eqXToP(o):!(r=this.g.mulAdd(u,i.getPublic(),d)).isInfinity()&&0===r.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(e,t,i,a){s((3&i)===i,"The recovery param is more than two bits"),t=new l(t,a);var o=this.n,r=new n(e),c=t.r,u=t.s,d=1&i,p=i>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&p)throw new Error("Unable to find sencond key candinate");c=p?this.curve.pointFromX(c.add(this.curve.n),d):this.curve.pointFromX(c,d);var f=t.r.invm(o),h=o.sub(r).mul(f).umod(o),m=u.mul(f).umod(o);return this.g.mulAdd(h,c,m)},c.prototype.getKeyRecoveryParam=function(e,t,i,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var o;try{o=this.recoverPubKey(e,t,a)}catch(e){continue}if(o.eq(i))return a}throw new Error("Unable to find valid recovery factor")}},function(e,t,i){"use strict";var n=i(974),a=i(1022),o=i(793);function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),i=a.toArray(e.nonce,e.nonceEnc||"hex"),n=a.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,i,n)}e.exports=s,s.prototype._init=function(e,t,i){var n=e.concat(t).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,i,n){"string"!=typeof t&&(n=i,i=t,t=null),e=a.toArray(e,t),i=a.toArray(i,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1},s.prototype.generate=function(e,t,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=i,i=t,t=null),i&&(i=a.toArray(i,n||"hex"),this._update(i));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(i),this._reseed++,a.encode(s,t)}},function(e,t,i){"use strict";var n=i(712),a=i(748).utils.assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,i){return t instanceof o?t:new o(e,{pub:t,pubEnc:i})},o.fromPrivate=function(e,t,i){return t instanceof o?t:new o(e,{priv:t,privEnc:i})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?a(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||a(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,i){return this.ec.sign(e,this,t,i)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,i){"use strict";var n=i(712),a=i(748).utils,o=a.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function r(e,t){var i=e[t.place++];if(!(128&i))return i;for(var n=15&i,a=0,o=0,s=t.place;o<n;o++,s++)a<<=8,a|=e[s];return t.place=s,a}function l(e){for(var t=0,i=e.length-1;!e[t]&&!(128&e[t+1])&&t<i;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)e.push(t);else{var i=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|i);--i;)e.push(t>>>(i<<3)&255);e.push(t)}}e.exports=s,s.prototype._importDER=function(e,t){e=a.toArray(e,t);var i=new function(){this.place=0};if(48!==e[i.place++])return!1;if(r(e,i)+i.place!==e.length)return!1;if(2!==e[i.place++])return!1;var o=r(e,i),s=e.slice(i.place,o+i.place);if(i.place+=o,2!==e[i.place++])return!1;var l=r(e,i);if(e.length!==l+i.place)return!1;var c=e.slice(i.place,l+i.place);return 0===s[0]&&128&s[1]&&(s=s.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(s),this.s=new n(c),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&i[0]&&(i=[0].concat(i)),t=l(t),i=l(i);!(i[0]||128&i[1]);)i=i.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,i.length);var o=n.concat(i),s=[48];return c(s,o.length),s=s.concat(o),a.encode(s,e)}},function(e,t,i){"use strict";var n=i(974),a=i(748),o=a.utils,s=o.assert,r=o.parseBytes,l=i(1433),c=i(1434);function u(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=a.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=r(e);var i=this.keyFromSecret(t),n=this.hashInt(i.messagePrefix(),e),a=this.g.mul(n),o=this.encodePoint(a),s=this.hashInt(o,i.pubBytes(),e).mul(i.priv()),l=n.add(s).umod(this.curve.n);return this.makeSignature({R:a,S:l,Rencoded:o})},u.prototype.verify=function(e,t,i){e=r(e),t=this.makeSignature(t);var n=this.keyFromPublic(i),a=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(a)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,i=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),a=o.intFromLE(i);return this.curve.pointFromY(a,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,i){"use strict";var n=i(748).utils,a=n.assert,o=n.parseBytes,s=n.cachedProperty;function r(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}r.fromPublic=function(e,t){return t instanceof r?t:new r(e,{pub:t})},r.fromSecret=function(e,t){return t instanceof r?t:new r(e,{secret:t})},r.prototype.secret=function(){return this._secret},s(r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(r,"privBytes",function(){var e=this.eddsa,t=this.hash(),i=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n}),s(r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),r.prototype.sign=function(e){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},r.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},r.prototype.getSecret=function(e){return a(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},r.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=r},function(e,t,i){"use strict";var n=i(712),a=i(748).utils,o=a.assert,s=a.cachedProperty,r=a.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=r(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},function(e,t,i){"use strict";var n=i(914);t.certificate=i(1446);var a=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=a;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(r),this.key("subjectPublicKey").bitstr())});t.PublicKey=s;var r=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),l=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(r),this.key("subjectPrivateKey").octstr())});t.PrivateKey=l;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=c;var u=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=u,t.DSAparam=n.define("DSAparam",function(){this.int()});var d=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=d;var p=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,i){var n=i(914),a=i(670);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=i(1437).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return a(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},function(module,exports,__webpack_require__){var indexOf=__webpack_require__(1438),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var i in e)t.push(i);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var i=0;i<e.length;i++)t(e[i],i,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,i){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch(e){return function(e,t,i){e[t]=i}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var i=t.contentWindow,n=i.eval,a=i.execScript;!n&&a&&(a.call(i,"null"),n=i.eval),forEach(Object_keys(e),function(t){i[t]=e[t]}),forEach(globals,function(t){e[t]&&(i[t]=e[t])});var o=Object_keys(i),s=n.call(i,this.code);return forEach(Object_keys(i),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=i[t])}),forEach(globals,function(t){t in e||defineProp(e,t,i[t])}),document.body.removeChild(t),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),i=this.runInContext(t);return forEach(Object_keys(t),function(i){e[i]=t[i]}),i},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var i=Script(t);return i[e].apply(i,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(i){t[i]=e[i]}),t}},function(e,t){var i=[].indexOf;e.exports=function(e,t){if(i)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,i){var n=i(670);function a(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=a,a.prototype.isError=function(e){return e instanceof o},a.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},a.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},a.prototype.enterKey=function(e){return this._reporterState.path.push(e)},a.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},a.prototype.leaveKey=function(e,t,i){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=i)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},a.prototype.leaveObject=function(e){var t=this._reporterState,i=t.obj;return t.obj=e,i},a.prototype.error=function(e){var t,i=this._reporterState,n=e instanceof o;if(t=n?e:new o(i.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!i.options.partial)throw t;return n||i.errors.push(t),t},a.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,i){var n=i(915).Reporter,a=i(915).EncoderBuffer,o=i(915).DecoderBuffer,s=i(793),r=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(r);function c(e,t){var i={};this._baseState=i,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}e.exports=c;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};u.forEach(function(i){t[i]=e[i]});var i=new this.constructor(t.parent);return i._baseState=t,i},c.prototype._wrap=function(){var e=this._baseState;l.forEach(function(t){this[t]=function(){var i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,i=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==i.length&&(s(null===t.children),t.children=i,i.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(i){i==(0|i)&&(i|=0);var n=e[i];t[n]=i}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),r.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,i=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(i),this}}),c.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));var n,a=i.default,s=!0,r=null;if(null!==i.key&&(r=e.enterKey(i.key)),i.optional){var l=null;if(null!==i.explicit?l=i.explicit:null!==i.implicit?l=i.implicit:null!==i.tag&&(l=i.tag),null!==l||i.any){if(s=this._peekTag(e,l,i.any),e.isError(s))return s}else{var c=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(c)}}if(i.obj&&s&&(n=e.enterObject()),s){if(null!==i.explicit){var u=this._decodeTag(e,i.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===i.use&&null===i.choice){if(i.any)c=e.save();var p=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(p))return p;i.any?a=e.raw(c):e=p}if(t&&t.track&&null!==i.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),a=i.any?a:null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),e.isError(a))return a;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(i){i._decode(e,t)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var f=new o(a);a=this._getUse(i.contains,e._reporterState.obj)._decode(f,t)}}return i.obj&&s&&(a=e.leaveObject(n)),null===i.key||null===a&&!0!==s?null!==r&&e.exitKey(r):e.leaveKey(r,i.key,a),a},c.prototype._decodeGeneric=function(e,t,i){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var i=this._baseState;return i.useDecoder=this._use(e,t),s(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},c.prototype._decodeChoice=function(e,t){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some(function(o){var s=e.save(),r=i.choice[o];try{var l=r._decode(e,t);if(e.isError(l))return!1;n={type:o,value:l},a=!0}catch(t){return e.restore(s),!1}return!0},this),a?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new a(e,this.reporter)},c.prototype._encode=function(e,t,i){var n=this._baseState;if(null===n.default||n.default!==e){var a=this._encodeValue(e,t,i);if(void 0!==a&&!this._skipDefault(a,t,i))return a}},c.prototype._encodeValue=function(e,t,i){var a=this._baseState;if(null===a.parent)return a.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,a.optional&&void 0===e){if(null===a.default)return;e=a.default}var s=null,r=!1;if(a.any)o=this._createEncoderBuffer(e);else if(a.choice)o=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,i)._encode(e,t),r=!0;else if(a.children)s=a.children.map(function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");var n=t.enterKey(i._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var a=i._encode(e[i._baseState.key],t,e);return t.leaveKey(n),a},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===a.tag||"setof"===a.tag){if(!a.args||1!==a.args.length)return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(i){var n=this._baseState;return this._getUse(n.args[0],e)._encode(i,t)},l))}else null!==a.use?o=this._getUse(a.use,i)._encode(e,t):(s=this._encodePrimitive(a.tag,e),r=!0);if(!a.any&&null===a.choice){var c=null!==a.implicit?a.implicit:a.tag,u=null===a.implicit?"universal":"context";null===c?null===a.use&&t.error("Tag could be omitted only for .use()"):null===a.use&&(o=this._encodeComposite(c,r,u,s))}return null!==a.explicit&&(o=this._encodeComposite(a.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){var i=this._baseState,n=i.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,i){var n=i(1027);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},function(e,t,i){var n=t;n.der=i(1028),n.pem=i(1443)},function(e,t,i){var n=i(670),a=i(674).Buffer,o=i(1028);function s(e){o.call(this,e),this.enc="pem"}n(s,o),e.exports=s,s.prototype.decode=function(e,t){for(var i=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,r=-1,l=-1,c=0;c<i.length;c++){var u=i[c].match(s);if(null!==u&&u[2]===n){if(-1!==r){if("END"!==u[1])break;l=c;break}if("BEGIN"!==u[1])break;r=c}}if(-1===r||-1===l)throw new Error("PEM section not found for: "+n);var d=i.slice(r+1,l).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var p=new a(d,"base64");return o.prototype.decode.call(this,p,t)}},function(e,t,i){var n=t;n.der=i(1029),n.pem=i(1445)},function(e,t,i){var n=i(670),a=i(1029);function o(e){a.call(this,e),this.enc="pem"}n(o,a),e.exports=o,o.prototype.encode=function(e,t){for(var i=a.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<i.length;o+=64)n.push(i.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,i){"use strict";var n=i(914),a=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),r=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),l=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(l)}),u=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),d=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),p=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(r),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional())}),h=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});e.exports=h},function(e,t){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(e,t,i){(function(t){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,s=i(925),r=i(971);e.exports=function(e,i){var l,c=e.toString(),u=c.match(n);if(u){var d="aes"+u[1],p=new t(u[2],"hex"),f=new t(u[3].replace(/[\r\n]/g,""),"base64"),h=s(i,p.slice(0,8),parseInt(u[1],10)).key,m=[],g=r.createDecipheriv(d,h,p);m.push(g.update(f)),m.push(g.final()),l=t.concat(m)}else{var b=c.match(o);l=new t(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(a)[1],data:l}}}).call(t,i(674).Buffer)},function(e,t,i){(function(t){var n=i(712),a=i(748).ec,o=i(927),s=i(1030);function r(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,i,l,c,u){var d=o(l);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var n=s[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var o=new a(n),r=i.data.subjectPrivateKey.data;return o.verify(t,e,r)}(e,i,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var a=i.data.p,s=i.data.q,l=i.data.g,c=i.data.pub_key,u=o.signature.decode(e,"der"),d=u.s,p=u.r;r(d,s),r(p,s);var f=n.mont(a),h=d.invm(s);return 0===l.toRed(f).redPow(new n(t).mul(h).mod(s)).fromRed().mul(c.toRed(f).redPow(p.mul(h).mod(s)).fromRed()).mod(a).mod(s).cmp(p)}(e,i,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");i=t.concat([u,i]);for(var p=d.modulus.byteLength(),f=[1],h=0;i.length+f.length+2<p;)f.push(255),h++;f.push(0);for(var m=-1;++m<i.length;)f.push(i[m]);f=new t(f);var g=n.mont(d.modulus);e=(e=new n(e).toRed(g)).redPow(new n(d.publicExponent)),e=new t(e.fromRed().toArray());var b=h<8?1:0;for(p=Math.min(e.length,f.length),e.length!==f.length&&(b=1),m=-1;++m<p;)b|=e[m]^f[m];return 0===b}}).call(t,i(674).Buffer)},function(e,t,i){(function(t){var n=i(748),a=i(712);e.exports=function(e){return new s(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function r(e,i,n){Array.isArray(e)||(e=e.toArray());var a=new t(e);if(n&&a.length<n){var o=new t(n-a.length);o.fill(0),a=t.concat([o,a])}return i?a.toString(i):a}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,i,n){return i=i||"utf8",t.isBuffer(e)||(e=new t(e,i)),r(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var i=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(i[i.length-1]%2?i[0]=7:i[0]=6),r(i,e)},s.prototype.getPrivateKey=function(e){return r(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,i){return i=i||"utf8",t.isBuffer(e)||(e=new t(e,i)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,i){i=i||"utf8",t.isBuffer(e)||(e=new t(e,i));var n=new a(e);return n=n.toString(16),this.keys._importPrivate(n),this}}).call(t,i(674).Buffer)},function(e,t,i){t.publicEncrypt=i(1452),t.privateDecrypt=i(1453),t.privateEncrypt=function(e,i){return t.publicEncrypt(e,i,!0)},t.publicDecrypt=function(e,i){return t.privateDecrypt(e,i,!0)}},function(e,t,i){(function(t){var n=i(927),a=i(889),o=i(910),s=i(1031),r=i(1032),l=i(712),c=i(1033),u=i(973);e.exports=function(e,i,d){var p;p=e.padding?e.padding:d?1:4;var f,h=n(e);if(4===p)f=function(e,i){var n=e.modulus.byteLength(),c=i.length,u=o("sha1").update(new t("")).digest(),d=u.length,p=2*d;if(c>n-p-2)throw new Error("message too long");var f=new t(n-c-p-2);f.fill(0);var h=n-d-1,m=a(d),g=r(t.concat([u,f,new t([1]),i],h),s(m,h)),b=r(m,s(g,d));return new l(t.concat([new t([0]),b,g],n))}(h,i);else if(1===p)f=function(e,i,n){var o,s=i.length,r=e.modulus.byteLength();if(s>r-11)throw new Error("message too long");n?(o=new t(r-s-3)).fill(255):o=function(e,i){var n,o=new t(e),s=0,r=a(2*e),l=0;for(;s<e;)l===r.length&&(r=a(2*e),l=0),(n=r[l++])&&(o[s++]=n);return o}(r-s-3);return new l(t.concat([new t([0,n?1:2]),o,new t([0]),i],r))}(h,i,d);else{if(3!==p)throw new Error("unknown padding");if((f=new l(i)).cmp(h.modulus)>=0)throw new Error("data too long for modulus")}return d?u(f,h):c(f,h)}}).call(t,i(674).Buffer)},function(e,t,i){(function(t){var n=i(927),a=i(1031),o=i(1032),s=i(712),r=i(973),l=i(910),c=i(1033);e.exports=function(e,i,u){var d;d=e.padding?e.padding:u?1:4;var p,f=n(e),h=f.modulus.byteLength();if(i.length>h||new s(i).cmp(f.modulus)>=0)throw new Error("decryption error");p=u?c(new s(i),f):r(i,f);var m=new t(h-p.length);if(m.fill(0),p=t.concat([m,p],h),4===d)return function(e,i){e.modulus;var n=e.modulus.byteLength(),s=(i.length,l("sha1").update(new t("")).digest()),r=s.length;if(0!==i[0])throw new Error("decryption error");var c=i.slice(1,r+1),u=i.slice(r+1),d=o(c,a(u,r)),p=o(u,a(d,n-r-1));if(function(e,i){e=new t(e),i=new t(i);var n=0,a=e.length;e.length!==i.length&&(n++,a=Math.min(e.length,i.length));var o=-1;for(;++o<a;)n+=e[o]^i[o];return n}(s,p.slice(0,r)))throw new Error("decryption error");var f=r;for(;0===p[f];)f++;if(1!==p[f++])throw new Error("decryption error");return p.slice(f)}(f,p);if(1===d)return function(e,t,i){var n=t.slice(0,2),a=2,o=0;for(;0!==t[a++];)if(a>=t.length){o++;break}var s=t.slice(2,a-1);t.slice(a-1,a);("0002"!==n.toString("hex")&&!i||"0001"!==n.toString("hex")&&i)&&o++;s.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(a)}(0,p,u);if(3===d)return p;throw new Error("unknown padding")}}).call(t,i(674).Buffer)},function(e,t,i){"use strict";(function(e,n){function a(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=i(685),s=i(889),r=o.Buffer,l=o.kMaxLength,c=e.crypto||e.msCrypto,u=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function p(e,t,i){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>i||e>l)throw new RangeError("buffer too small")}function f(e,t,i,a){if(n.browser){var o=e.buffer,r=new Uint8Array(o,t,i);return c.getRandomValues(r),a?void n.nextTick(function(){a(null,e)}):e}if(!a)return s(i).copy(e,t),e;s(i,function(i,n){if(i)return a(i);n.copy(e,t),a(null,e)})}c&&c.getRandomValues||!n.browser?(t.randomFill=function(t,i,n,a){if(!(r.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof i)a=i,i=0,n=t.length;else if("function"==typeof n)a=n,n=t.length-i;else if("function"!=typeof a)throw new TypeError('"cb" argument must be a function');return d(i,t.length),p(n,i,t.length),f(t,i,n,a)},t.randomFillSync=function(t,i,n){void 0===i&&(i=0);if(!(r.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');d(i,t.length),void 0===n&&(n=t.length-i);return p(n,i,t.length),f(t,i,n)}):(t.randomFill=a,t.randomFillSync=a)}).call(t,i(37),i(142))},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.api_keys))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("LicenceBlockHeader",{attrs:{licence:"developer"}}),e._v(" "),i("el-form",{ref:"settings",class:e.licenceClassDisabled("developer"),attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-alert",{staticStyle:{"margin-bottom":"16px"},attrs:{type:"info","show-icon":"",title:"",description:e.$root.labels.api_url+e.$root.getAjaxUrl+"/api/v1",closable:!1}}),e._v(" "),i("el-row",{attrs:{type:"flex",gutter:16}},[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:e.$root.labels.expiration_date}},[i("el-select",{model:{value:e.expirationSelected,callback:function(t){e.expirationSelected=t},expression:"expirationSelected"}},e._l(e.expirationOptions,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:12}},[i("el-form-item",[i("el-button",{staticStyle:{width:"100%","margin-top":"27px"},attrs:{type:"primary"},on:{click:function(t){return e.generateApiKey()}}},[e._v("\n "+e._s(e.$root.labels.generate)+"\n ")])],1)],1)],1),e._v(" "),i("el-row",{staticClass:"am-api-key-generate",attrs:{type:"flex",align:"middle",gutter:12}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{staticClass:"am-api-key-generate-input",attrs:{label:e.$root.labels.your_api_key}},[i("el-input",{attrs:{value:e.newApiKey,id:"am-new-api-key",placeholder:e.$root.labels.api_key_placeholder}},[e.newApiKey?i("i",{staticClass:"el-icon-copy-document",attrs:{slot:"suffix"},on:{click:e.copyApiKey},slot:"suffix"}):e._e()])],1)],1)],1),e._v(" "),e.copied?i("el-row",{attrs:{type:"flex",gutter:24}},[i("el-col",{staticClass:"am-api-key-warning",staticStyle:{color:"#019719"},attrs:{span:24}},[e._v("\n "+e._s(e.$root.labels.api_key_copied)+"\n ")])],1):e._e(),e._v(" "),e.newApiKey?i("el-alert",{staticStyle:{"margin-bottom":"16px"},attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.generate_api_key_warning,closable:!1}}):e._e(),e._v(" "),e.apiKeys.apiKeys.length>0?i("el-row",{staticClass:"am-api-key-heading",attrs:{type:"flex",align:"middle"}},[i("el-col",{attrs:{span:2}},[i("b",[e._v(e._s(e.$root.labels.id))])]),e._v(" "),i("el-col",{attrs:{span:4}},[i("b",[e._v(e._s(e.$root.labels.api_key))])]),e._v(" "),i("el-col",{attrs:{span:10}},[i("b",[e._v(e._s(e.$root.labels.api_key_expiration_date))])]),e._v(" "),i("el-col",{attrs:{span:8}})],1):e._e(),e._v(" "),e._l(e.apiKeys.apiKeys,function(t,n){return i("el-row",{key:t.id,staticClass:"am-api-key-row",class:{"expiration-close":t.expiration&&e.expirationDateClose(1e3*t.expiration),"expiration-passed":t.expiration&&e.expirationDatePassed(1e3*t.expiration),"am-api-key-row-first":0===n},attrs:{type:"flex",align:"middle"}},[i("el-col",{attrs:{span:2}},[e._v(e._s(t.id))]),e._v(" "),i("el-col",{attrs:{span:4}},[e._v("..."+e._s(t.last4))]),e._v(" "),i("el-col",{class:{"expiration-close-text":t.expiration&&e.expirationDateClose(1e3*t.expiration),"expiration-passed-text":t.expiration&&e.expirationDatePassed(1e3*t.expiration)},attrs:{span:10}},[e._v(e._s(t.expiration?e.getFrontedFormattedDateTime(new Date(1e3*t.expiration)):e.$root.labels.unlimited))]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-button",{staticClass:"am-button-icon",on:{click:function(i){return e.deleteKey(t.id)}}},[i("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.delete,src:e.$root.getUrl+"public/img/delete.svg"}})])],1)],1)})],2)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticStyle:{display:"flex"},attrs:{span:12}},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.api_documentation)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.goToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{sm:12}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1457),i(1458),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(91),a=i(654);t.default={mixins:[n.a,a.a],props:["appointments"],data:function(){return{settings:Object.assign({},this.appointments),appointmentsAndEventsTab:"appointments",employeeSelectionOptions:[{label:this.$root.labels.employee_selection_logic_random,value:"random"},{label:this.$root.labels.employee_selection_logic_round_robin,value:"roundRobin"},{label:this.$root.labels.employee_selection_logic_highest_price,value:"highestPrice"},{label:this.$root.labels.employee_selection_logic_lowest_price,value:"lowestPrice"}],bringingAnyoneLogicOptions:[{label:this.$root.labels.employee_selection_logic_random,value:"additional"},{label:this.$root.labels.employee_selection_logic_round_robin,value:"total"}]}},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{closeDialog:function(){this.$emit("closeDialogSettingsAppointments")},onSubmit:function(){this.$emit("closeDialogSettingsAppointments"),this.$emit("updateSettings",{appointments:this.settings})},setWaitingListNotification:function(){window.location.search="?page=wpamelia-notifications"}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.appointments_and_events_settings))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{ref:"settings",attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-tabs",{model:{value:e.appointmentsAndEventsTab,callback:function(t){e.appointmentsAndEventsTab=t},expression:"appointmentsAndEventsTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.allow_booking_if_pending)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_booking_if_pending_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowBookingIfPending,callback:function(t){e.$set(e.settings,"allowBookingIfPending",t)},expression:"settings.allowBookingIfPending"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.allow_booking_if_not_min)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_booking_if_not_min_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowBookingIfNotMin,callback:function(t){e.$set(e.settings,"allowBookingIfNotMin",t)},expression:"settings.allowBookingIfNotMin"}})],1)],1)],1),e._v(" "),i("el-form-item",{class:e.licenceClass(),attrs:{label:e.$root.labels.employee_selection_logic+":"}},[i("el-select",{attrs:{disabled:e.notInLicence()},model:{value:e.settings.employeeSelection,callback:function(t){e.$set(e.settings,"employeeSelection",t)},expression:"settings.employeeSelection"}},e._l(e.employeeSelectionOptions,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),i("LicenceBlock")],1),e._v(" "),!e.notInLicence("starter")||e.licenceVisible()?i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("starter")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("span",[e._v(e._s(e.$root.labels.bringing_anyone_logic))])])],1),e._v(" "),i("el-row",{staticStyle:{"margin-top":"16px"}},[i("el-col",{staticClass:"am-settings-taxes"},[i("div",{staticStyle:{padding:"10px"}},[i("el-radio",{staticClass:"am-settings-taxes-radio",attrs:{disabled:e.notInLicence("starter"),value:"additional",label:"additional"},model:{value:e.settings.bringingAnyoneLogic,callback:function(t){e.$set(e.settings,"bringingAnyoneLogic",t)},expression:"settings.bringingAnyoneLogic"}},[e._v("\n "+e._s(e.$root.labels.bringing_anyone_logic_additional)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.bringing_anyone_logic_additional_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1),e._v(" "),i("div",{staticStyle:{padding:"10px"}},[i("el-radio",{staticClass:"am-settings-taxes-radio",attrs:{disabled:e.notInLicence("starter"),value:"total",label:"total"},model:{value:e.settings.bringingAnyoneLogic,callback:function(t){e.$set(e.settings,"bringingAnyoneLogic",t)},expression:"settings.bringingAnyoneLogic"}},[e._v("\n "+e._s(e.$root.labels.bringing_anyone_logic_total)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.bringing_anyone_logic_total_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1)])],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1):e._e()],1),e._v(" "),!e.notInLicence("pro")||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[!e.notInLicence("pro")||e.licenceVisible()?i("div",{staticClass:"am-setting-box am-switch-box am-waiting-list-events",class:e.licenceClass("pro")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:24}},[i("span",[e._v(e._s(e.$root.labels.enable_waiting_list))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.notInLicence("pro")},model:{value:e.settings.waitingListEvents.enabled,callback:function(t){e.$set(e.settings.waitingListEvents,"enabled",t)},expression:"settings.waitingListEvents.enabled"}})],1)],1),e._v(" "),e.settings.waitingListEvents.enabled?i("el-row",{staticStyle:{"margin-top":"24px"},attrs:{align:"middle",gutter:24}},[i("el-col",[i("div",{staticClass:"am-waiting-list-notice-box"},[i("div",{staticClass:"am-waiting-list-notice-box-left"},[i("img",{staticClass:"am-waiting-list-notice-box-img",attrs:{src:e.$root.getUrl+"public/img/am-alert-triangle.svg"}}),e._v(" "),i("div",{staticClass:"am-waiting-list-notice-box-text"},[i("p",{staticClass:"am-waiting-list-notice-box-text-title"},[e._v(e._s(e.$root.labels.events_waiting_list_notice_title))]),e._v(" "),i("p",{staticClass:"am-waiting-list-notice-box-text-subtitle"},[e._v(e._s(e.$root.labels.events_waiting_list_notice_subtitle))])])]),e._v(" "),i("div",{staticClass:"am-waiting-list-notice-box-right"},[i("el-button",{staticClass:"am-waiting-list-notice-box-btn",attrs:{disabled:e.notInLicence("pro")},on:{click:e.setWaitingListNotification}},[e._v("\n "+e._s(e.$root.labels.events_waiting_list_notice_btn_text)+"\n ")])],1)])])],1):e._e(),e._v(" "),i("LicenceBlock",{attrs:{licence:"pro"}})],1):e._e()]):e._e()],1)],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1460),i(1461),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(671),a=i.n(n),o=i(806),s=i.n(o),r=i(677),l=i.n(r),c=i(654);t.default={mixins:[c.a],props:["company"],data:function(){return{settings:Object.assign({},this.company),errors:{email:""},rules:{email:[{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}]}}},created:function(){},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{showDialogTranslate:function(){this.$emit("showDialogTranslate",this.settings.name)},changeTranslations:function(e){this.settings.translations=e?JSON.parse(e):[]},closeDialog:function(){this.$emit("closeDialogSettingsCompany")},onSubmit:function(){var e=this;this.$refs.settings.validate(function(t,i){t&&(e.$emit("closeDialogSettingsCompany"),e.$emit("updateSettings",{company:e.settings}))})},pictureSelected:function(e,t){this.settings.pictureFullPath=e,this.settings.pictureThumbPath=t},getAddressData:function(){this.settings.address=document.getElementById("address-autocomplete").value},phoneFormatted:function(e,t){this.settings.phone=e,this.settings.countryPhoneIso=t},clearValidation:function(){this.$refs.settings.clearValidate()}},components:{VueGoogleAutocomplete:l.a,PhoneInput:a.a,PictureUpload:s.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.company_settings))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("div",{staticClass:"am-employee-profile"},[i("picture-upload",{attrs:{"edited-entity":this.settings,"entity-name":"company"},on:{pictureSelected:e.pictureSelected}}),e._v(" "),i("h2",[e._v(e._s(e.settings.name))])],1),e._v(" "),i("div",{staticClass:"am-event-translate",staticStyle:{display:"inline-block",float:"right",cursor:"pointer"},on:{click:function(t){return e.showDialogTranslate()}}},[i("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.translate)+"\n ")]),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.name+":"}},[i("el-input",{attrs:{placeholder:""},model:{value:e.settings.name,callback:function(t){e.$set(e.settings,"name",t)},expression:"settings.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.address+":"}},[i("div",{staticClass:"el-input"},[""!==e.$root.settings.general.gMapApiKey?i("vue-google-autocomplete",{ref:"settings.address",attrs:{id:"address-autocomplete",classname:"el-input__inner",placeholder:"",value:e.settings.address,types:""},on:{placechanged:e.getAddressData}}):i("el-input",{attrs:{value:e.settings.address,placeholder:""},model:{value:e.settings.address,callback:function(t){e.$set(e.settings,"address",t)},expression:"settings.address"}})],1)]),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.website+":"}},[i("el-input",{attrs:{placeholder:""},model:{value:e.settings.website,callback:function(t){e.$set(e.settings,"website",t)},expression:"settings.website"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.phone+":"}},[i("phone-input",{attrs:{countryPhoneIso:e.settings.countryPhoneIso,savedPhone:e.settings.phone},on:{phoneFormatted:e.phoneFormatted}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.email+":",prop:"email",error:e.errors.email}},[i("el-input",{ref:"settings.email",attrs:{placeholder:""},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.email,callback:function(t){e.$set(e.settings,"email",t)},expression:"settings.email"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.vat_number+":",prop:"vat"}},[i("el-input",{attrs:{placeholder:""},model:{value:e.settings.vat,callback:function(t){e.$set(e.settings,"vat",t)},expression:"settings.vat"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1463),i(1464),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(91),a=i(654),o=i(675),s=i(655);t.default={mixins:[n.a,a.a,o.a,s.a],props:{general:{type:Object},languagesData:{default:function(){},type:Object}},data:function(){var e=this;return{settings:Object.assign({},this.general),rules:{googleRecaptcha:{},redirectURLAfter:[{validator:function(t,i,n){e.clearValidation();var a=e.$refs.settings.model.redirectUrlAfterAppointment;""===a||/^((http|https):\/\/)/.test(a)?n():n(new Error(e.$root.labels.enter_valid_url_warning))},trigger:"submit"}]},errors:{redirectURLAfter:""},options:{timeSlotLength:[{label:this.$root.labels.min1,value:60},{label:this.$root.labels.min2,value:120},{label:this.$root.labels.min5,value:300},{label:this.$root.labels.min10,value:600},{label:this.$root.labels.min12,value:720},{label:this.$root.labels.min15,value:900},{label:this.$root.labels.min20,value:1200},{label:this.$root.labels.min30,value:1800},{label:this.$root.labels.min45,value:2700},{label:this.$root.labels.h1,value:3600},{label:this.$root.labels.h1min30,value:5400},{label:this.$root.labels.h2,value:7200},{label:this.$root.labels.h3,value:10800},{label:this.$root.labels.h4,value:14400},{label:this.$root.labels.h6,value:21600},{label:this.$root.labels.h8,value:28800}],defaultAppointmentStatus:[{label:this.$root.labels.pending,value:"pending"},{label:this.$root.labels.approved,value:"approved"}],minimumTime:[{label:this.$root.labels.disabled,value:0},{label:this.$root.labels.min10,value:600},{label:this.$root.labels.min12,value:720},{label:this.$root.labels.min15,value:900},{label:this.$root.labels.min30,value:1800},{label:this.$root.labels.min45,value:2700},{label:this.$root.labels.h1,value:3600},{label:this.$root.labels.h1min30,value:5400},{label:this.$root.labels.h2,value:7200},{label:this.$root.labels.h3,value:10800},{label:this.$root.labels.h4,value:14400},{label:this.$root.labels.h6,value:21600},{label:this.$root.labels.h8,value:28800},{label:this.$root.labels.h9,value:32400},{label:this.$root.labels.h10,value:36e3},{label:this.$root.labels.h11,value:39600},{label:this.$root.labels.h12,value:43200},{label:this.$root.labels.day1,value:86400},{label:this.$root.labels.days2,value:172800},{label:this.$root.labels.days3,value:259200},{label:this.$root.labels.days4,value:345600},{label:this.$root.labels.days5,value:432e3},{label:this.$root.labels.days6,value:518400},{label:this.$root.labels.week1,value:604800},{label:this.$root.labels.weeks2,value:1209600},{label:this.$root.labels.weeks3,value:1814400},{label:this.$root.labels.weeks4,value:2419200},{label:this.$root.labels.months3,value:7884e3},{label:this.$root.labels.months6,value:15768e3}],defaultPageOnBackend:[{label:this.$root.labels.dashboard,value:"Dashboard"},{label:this.$root.labels.calendar,value:"Calendar"},{label:this.$root.labels.appointments,value:"Appointments"},{label:this.$root.labels.events,value:"Events"}]},isSaveLoading:!1}},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG(),this.handleRecaptchaValidationRules(),this.countries.unshift({id:0,iso:"auto",nicename:this.$root.labels.identify_country_code})},methods:{getLanguageLabel:function(e){return this.languagesData[e]?this.languagesData[e].name:""},getLanguageFlag:function(e){return e&&this.languagesData[e]&&this.languagesData[e].country_code?this.$root.getUrl+"public/img/flags/"+this.languagesData[e].country_code+".png":this.$root.getUrl+"public/img/grey.svg"},handleRecaptchaValidationRules:function(){this.clearValidation(),!0===this.settings.googleRecaptcha.enabled?this.rules.googleRecaptcha={siteKey:[{required:!0,message:this.$root.labels.recaptcha_site_key_error,trigger:"submit"}],secret:[{required:!0,message:this.$root.labels.recaptcha_secret_error,trigger:"submit"}]}:this.rules.googleRecaptcha={siteKey:{},secret:{}}},closeDialog:function(){this.$emit("closeDialogSettingsGeneral")},onSubmit:function(){var e=this;this.$refs.settings.validate(function(t){if(!t)return!1;e.isSaveLoading=!0,e.$emit("updateSettings",{general:e.settings},null,!0,function(){e.$emit("closeDialogSettingsGeneral")},function(){e.isSaveLoading=!1})})},clearValidation:function(){this.$refs.settings.clearValidate()},changeNumberOfDaysAvailableForBooking:function(e){this.settings.numberOfDaysAvailableForBooking=void 0===e?365:e}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.general_settings))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.default_time_slot_step)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.default_time_slot_step_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{model:{value:e.settings.timeSlotLength,callback:function(t){e.$set(e.settings,"timeSlotLength",t)},expression:"settings.timeSlotLength"}},e._l(e.options.timeSlotLength,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.default_appointment_status)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.default_appointment_status_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{model:{value:e.settings.defaultAppointmentStatus,callback:function(t){e.$set(e.settings,"defaultAppointmentStatus",t)},expression:"settings.defaultAppointmentStatus"}},e._l(e.options.defaultAppointmentStatus,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("starter")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.service_duration_as_slot)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.service_duration_as_slot_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{disabled:e.notInLicence("starter"),"active-text":"","inactive-text":""},model:{value:e.settings.serviceDurationAsSlot,callback:function(t){e.$set(e.settings,"serviceDurationAsSlot",t)},expression:"settings.serviceDurationAsSlot"}})],1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1),e._v(" "),e.settings.serviceDurationAsSlot?i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("starter")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.buffer_time_in_slot)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.buffer_time_in_slot_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{disabled:e.notInLicence("starter"),"active-text":"","inactive-text":""},model:{value:e.settings.bufferTimeInSlot,callback:function(t){e.$set(e.settings,"bufferTimeInSlot",t)},expression:"settings.bufferTimeInSlot"}})],1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1):e._e(),e._v(" "),i("el-form-item",{class:e.licenceClass("starter"),attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_booking)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_booking_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{disabled:e.notInLicence("starter")},model:{value:e.settings.minimumTimeRequirementPriorToBooking,callback:function(t){e.$set(e.settings,"minimumTimeRequirementPriorToBooking",t)},expression:"settings.minimumTimeRequirementPriorToBooking"}},e._l(e.options.minimumTime,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1),e._v(" "),i("el-form-item",{class:e.licenceClass("starter"),attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_canceling)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_canceling_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{disabled:e.notInLicence("starter")},model:{value:e.settings.minimumTimeRequirementPriorToCanceling,callback:function(t){e.$set(e.settings,"minimumTimeRequirementPriorToCanceling",t)},expression:"settings.minimumTimeRequirementPriorToCanceling"}},e._l(e.options.minimumTime,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1),e._v(" "),i("el-form-item",{class:e.licenceClass("starter"),attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_rescheduling)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_rescheduling_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{disabled:e.notInLicence("starter")},model:{value:e.settings.minimumTimeRequirementPriorToRescheduling,callback:function(t){e.$set(e.settings,"minimumTimeRequirementPriorToRescheduling",t)},expression:"settings.minimumTimeRequirementPriorToRescheduling"}},e._l(e.options.minimumTime,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period_available_for_booking)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_available_for_booking_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input-number",{attrs:{value:e.settings.numberOfDaysAvailableForBooking,min:1},on:{change:e.changeNumberOfDaysAvailableForBooking}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.default_phone_country_code+":"}},[i("el-select",{class:"am-selected-flag am-selected-flag-"+e.settings.phoneDefaultCountryCode,attrs:{placeholder:""},model:{value:e.settings.phoneDefaultCountryCode,callback:function(t){e.$set(e.settings,"phoneDefaultCountryCode",t)},expression:"settings.phoneDefaultCountryCode"}},e._l(e.countries,function(t){return i("el-option",{key:t.id,attrs:{value:t.iso,label:t.nicename}},[i("span",{class:"am-flag am-flag-"+t.iso}),e._v(" "),i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nicename))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#7F8BA4","font-size":"13px"}},[e._v(e._s(t.phonecode?"+":"")+e._s(t.phonecode))])])}),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"auto"==e.settings.phoneDefaultCountryCode,expression:"settings.phoneDefaultCountryCode == 'auto'"}]},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.iplocate_api_key)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.iplocate_api_key_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.ipLocateApiKey,callback:function(t){e.$set(e.settings,"ipLocateApiKey","string"==typeof t?t.trim():t)},expression:"settings.ipLocateApiKey"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.required_phone_number_field)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.required_field_old_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.requiredPhoneNumberField,callback:function(t){e.$set(e.settings,"requiredPhoneNumberField",t)},expression:"settings.requiredPhoneNumberField"}})],1)],1)],1),e._v(" "),i("el-form-item",{class:e.licenceClass()},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.manage_languages)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.manage_languages_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{staticClass:"select-languages",attrs:{placeholder:e.$root.labels.language,disabled:e.notInLicence(),clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.settings.usedLanguages,callback:function(t){e.$set(e.settings,"usedLanguages",t)},expression:"settings.usedLanguages"}},e._l(Object.keys(e.languagesData),function(t,n){return i("el-option",{key:n,attrs:{label:e.getLanguageLabel(t),value:t,disabled:!(t in e.settings.usedLanguages)&&t===e.$root.locale}},[i("span",[i("img",{staticClass:"option-languages-flag",attrs:{src:e.getLanguageFlag(t)}}),e._v("\n "+e._s(e.getLanguageLabel(t))+"\n ")])])}),1),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.required_email_field)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.required_field_old_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.requiredEmailField,callback:function(t){e.$set(e.settings,"requiredEmailField",t)},expression:"settings.requiredEmailField"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.show_client_time_zone)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.show_client_time_zone_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.showClientTimeZone,callback:function(t){e.$set(e.settings,"showClientTimeZone",t)},expression:"settings.showClientTimeZone"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.add_to_calendar)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.add_to_calendar_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.addToCalendar,callback:function(t){e.$set(e.settings,"addToCalendar",t)},expression:"settings.addToCalendar"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.default_items_per_page+":"}},[i("el-input-number",{attrs:{min:1,max:30,type:"number"},model:{value:e.settings.itemsPerPage,callback:function(t){e.$set(e.settings,"itemsPerPage",t)},expression:"settings.itemsPerPage"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.default_items_per_page_backend+":"}},[i("el-input-number",{attrs:{min:1,max:50,type:"number"},model:{value:e.settings.itemsPerPageBackEnd,callback:function(t){e.$set(e.settings,"itemsPerPageBackEnd",t)},expression:"settings.itemsPerPageBackEnd"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.default_page_on_backend+":"}},[i("el-select",{model:{value:e.settings.defaultPageOnBackend,callback:function(t){e.$set(e.settings,"defaultPageOnBackend",t)},expression:"settings.defaultPageOnBackend"}},e._l(e.options.defaultPageOnBackend,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("el-form-item",{class:e.licenceClass(),attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.gMap_api_key)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.gMap_api_key_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{disabled:e.notInLicence(),"auto-complete":"off"},model:{value:e.settings.gMapApiKey,callback:function(t){e.$set(e.settings,"gMapApiKey","string"==typeof t?t.trim():t)},expression:"settings.gMapApiKey"}}),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder",prop:"redirectURLAfter",error:e.errors.redirectURLAfter}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.redirect_url_after_appointment)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.licence.isPro||e.$root.licence.isDeveloper?e.$root.labels.redirect_url_after_app_or_package_tt:e.$root.labels.redirect_url_after_appointment_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.redirectUrlAfterAppointment,callback:function(t){e.$set(e.settings,"redirectUrlAfterAppointment",t)},expression:"settings.redirectUrlAfterAppointment"}})],1),e._v(" "),i("el-form-item",{class:e.licenceClass(),attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.custom_fields_upload_path)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.custom_fields_upload_path_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{disabled:e.notInLicence(),"auto-complete":"off"},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.customFieldsUploadsPath,callback:function(t){e.$set(e.settings,"customFieldsUploadsPath",t)},expression:"settings.customFieldsUploadsPath"}}),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("starter")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.recaptcha_enabled)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_enabled_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{disabled:e.notInLicence("starter"),"active-text":"","inactive-text":""},on:{change:e.handleRecaptchaValidationRules},model:{value:e.settings.googleRecaptcha.enabled,callback:function(t){e.$set(e.settings.googleRecaptcha,"enabled",t)},expression:"settings.googleRecaptcha.enabled"}})],1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.googleRecaptcha.enabled,expression:"settings.googleRecaptcha.enabled"}],staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.recaptcha_invisible)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_invisible_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.googleRecaptcha.invisible,callback:function(t){e.$set(e.settings.googleRecaptcha,"invisible",t)},expression:"settings.googleRecaptcha.invisible"}})],1)],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.googleRecaptcha.enabled,expression:"settings.googleRecaptcha.enabled"}],attrs:{prop:"googleRecaptcha.siteKey"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.recaptcha_site_key)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_site_key_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.googleRecaptcha.siteKey,callback:function(t){e.$set(e.settings.googleRecaptcha,"siteKey","string"==typeof t?t.trim():t)},expression:"settings.googleRecaptcha.siteKey"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.googleRecaptcha.enabled,expression:"settings.googleRecaptcha.enabled"}],attrs:{prop:"googleRecaptcha.secret"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.recaptcha_secret)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_secret_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.googleRecaptcha.secret,callback:function(t){e.$set(e.settings.googleRecaptcha,"secret","string"==typeof t?t.trim():t)},expression:"settings.googleRecaptcha.secret"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n Run post booking actions immediately\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.runInstantPostBookingActions,callback:function(t){e.$set(e.settings,"runInstantPostBookingActions",t)},expression:"settings.runInstantPostBookingActions"}})],1)],1)],1),e._v(" "),i("el-form-item",{staticStyle:{display:"none"},attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n Preselected employees count on calendar page on load:\n ")]),e._v(" "),i("el-input-number",{attrs:{min:-1},model:{value:e.settings.calendarEmployeesPreselected,callback:function(t){e.$set(e.settings,"calendarEmployeesPreselected",t)},expression:"settings.calendarEmployeesPreselected"}})],1),e._v(" "),e.$root.licence.isLite?i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.back_links)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.back_links_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.backLink.enabled,callback:function(t){e.$set(e.settings.backLink,"enabled",t)},expression:"settings.backLink.enabled"}})],1)],1)],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",loading:e.isSaveLoading},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(814),a=i.n(n),o=i(1466),s=i.n(o),r=i(91),l=i(654),c=i(1469),u=i.n(c),d=i(1472),p=i.n(d),f=i(1475),h=i.n(f),m=i(1478),g=i.n(m),b=i(1490),v=i.n(b),y=i(1493),_=i.n(y),w=i(1496),k=i.n(w);t.default={components:{SocialLogin:k.a,AppleCalendar:_.a,GoogleCalendar:s.a,OutlookCalendar:u.a,Zoom:h.a,WebHooks:p.a,Marketing:g.a,LessonSpace:v.a},props:{outlookSignedIn:{type:Boolean,default:!1},googleCalendar:{type:Object},outlookCalendar:{type:Object},appleCalendar:{type:Object},zoom:{type:Object},webHooks:{type:Array},facebookPixel:{type:Object},googleAnalytics:{type:Object},customFields:{default:[]},googleTag:{type:Object},mailchimp:{type:Object},lessonSpace:{type:Object},socialLogin:{type:Object},mailchimpLists:{type:Array},openMailchimpCollapse:{type:Boolean,default:!1}},mixins:[r.a,l.a],data:function(){return{googleCalendarSettings:Object.assign({},this.googleCalendar),outlookCalendarSettings:Object.assign({},this.outlookCalendar),appleCalendarSettings:Object.assign({},this.appleCalendar),zoomSettings:Object.assign({},this.zoom),lessonSpaceSettings:Object.assign({},this.lessonSpace),googleAnalyticsSettings:Object.assign({},this.googleAnalytics),facebookPixelSettings:Object.assign({},this.facebookPixel),googleTagSettings:Object.assign({},this.googleTag),mailchimpSettings:Object.assign({},this.mailchimp),webHooksSettings:this.webHooks.map(function(e){return e}),activeTab:this.notInLicence()?"marketing":"googleCalendar",socialLoginSettings:Object.assign({},this.socialLogin),openMailchimp:!1}},mounted:function(){this.outlookSignedIn?this.activeTab="outlookCalendar":this.openMailchimpCollapse?this.activeTab="marketing":this.activeTab=this.notInLicence()?"marketing":"googleCalendar"},methods:{disconnectMailchimp:function(){this.mailchimpSettings={accessToken:null,server:null,list:null}},openDialog:function(e){this.$emit("openDialog",e)},closeDialog:function(){this.$emit("closeDialogSettingsIntegrations")},onSubmit:function(){var e,t=(e=a.a.mark(function e(){var t,i,n=this;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!0,i=!0,!this.$refs.socialLogin||"function"!=typeof this.$refs.socialLogin.validate){e.next=6;break}return e.next=5,this.$refs.socialLogin.validate();case 5:t=e.sent;case 6:if(t){e.next=9;break}return this.activeTab="socialLogin",e.abrupt("return");case 9:if(!this.$refs.marketing.$refs.mailchimpSettings||"function"!=typeof this.$refs.marketing.$refs.mailchimpSettings.validate){e.next=19;break}return e.prev=10,e.next=13,this.$refs.marketing.$refs.mailchimpSettings.validate();case 13:i=e.sent,e.next=19;break;case 16:e.prev=16,e.t0=e.catch(10),i=!1;case 19:if(i){e.next=23;break}return this.activeTab="marketing",this.openMailchimp=!0,e.abrupt("return");case 23:["facebookPixelSettings","googleAnalyticsSettings","googleTagSettings"].forEach(function(e){["appointment","package","event"].forEach(function(t){switch(e){case"facebookPixelSettings":case"googleAnalyticsSettings":n[e].tracking[t]=n[e].tracking[t].filter(function(e){return e.type.trim()&&e.event.trim()});break;case"googleTagSettings":n[e].tracking[t]=n[e].tracking[t].filter(function(e){return e.type.trim()&&e.category.trim()&&e.action.trim()})}})}),this.outlookCalendarSettings.mailEnabled=!!(this.outlookCalendarSettings.clientID&&this.outlookCalendarSettings.clientSecret&&this.outlookCalendarSettings.mailEnabled&&this.outlookCalendarSettings.token),this.$emit("closeDialogSettingsIntegrations"),this.$emit("updateSettings",{googleCalendar:this.googleCalendarSettings,outlookCalendar:this.outlookCalendarSettings,appleCalendar:this.appleCalendarSettings,zoom:this.zoomSettings,webHooks:this.webHooksSettings,facebookPixel:this.facebookPixelSettings,googleAnalytics:this.googleAnalyticsSettings,googleTag:this.googleTagSettings,mailchimp:this.mailchimpSettings,lessonSpace:this.lessonSpaceSettings,socialLogin:this.socialLoginSettings});case 27:case"end":return e.stop()}},e,this,[[10,16]])}),function(){var t=e.apply(this,arguments);return new Promise(function(e,i){return function n(a,o){try{var s=t[a](o),r=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(r).then(function(e){n("next",e)},function(e){n("throw",e)});e(r)}("next")})});return function(){return t.apply(this,arguments)}}()}}},function(e,t,i){var n=i(90)(i(1467),i(1468),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(747),o=i.n(a);t.default={mixins:[n.a],props:{googleCalendar:{type:Object}},data:function(){return{options:{maximumNumberOfEventsReturned:[50,100,200,500,1e3,2e3,2500]},readonly:!0,settings:this.googleCalendar,activeTab:"appointments"}},methods:{onChangeAddAttendees:function(){!1===this.settings.addAttendees&&(this.settings.sendEventInvitationEmail=!1)},openDialog:function(e){this.$emit("openDialog",e)},redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-google-calendar/","_blank")}},components:{InlinePlaceholders:o.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"settings",attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.google_client_id+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientID,callback:function(t){e.$set(e.settings,"clientID","string"==typeof t?t.trim():t)},expression:"settings.clientID"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.google_credentials_obtain)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.google_client_secret+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientSecret,callback:function(t){e.$set(e.settings,"clientSecret","string"==typeof t?t.trim():t)},expression:"settings.clientSecret"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.google_credentials_obtain)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.google_redirect_uri)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.google_redirect_uri_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.redirectURI,callback:function(t){e.$set(e.settings,"redirectURI",t)},expression:"settings.redirectURI"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.google_calendar)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:5}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.calendarEnabled,callback:function(t){e.$set(e.settings,"calendarEnabled",t)},expression:"settings.calendarEnabled"}})],1)],1),e._v(" "),e.settings.calendarEnabled?i("div",{staticStyle:{"margin-top":"10px"}},[i("el-collapse",[i("el-collapse-item",{staticClass:"am-setting-box"},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.event_title_and_description)+":")])]),e._v(" "),[i("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.appointment,callback:function(t){e.$set(e.settings.title,"appointment",t)},expression:"settings.title.appointment"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.appointment,callback:function(t){e.$set(e.settings.description,"appointment",t)},expression:"settings.description.appointment"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","categoryPlaceholders","companyPlaceholders","customerPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1),e._v(" "),i("el-row",{staticClass:"am-customize-notifications-combined"},[i("el-col",{attrs:{span:16}},[i("div",{staticClass:"am-customize-notifications-combined-tooltip"},[i("strong",[e._v(e._s(e.$root.labels.ph_group_appointment_details))]),e._v("\n %group_appointment_details%\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),i("el-col",{staticClass:"am-align-right",attrs:{span:8}},[i("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupAppointmentPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.event,callback:function(t){e.$set(e.settings.title,"event",t)},expression:"settings.title.event"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.event,callback:function(t){e.$set(e.settings.description,"event",t)},expression:"settings.description.event"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["eventPlaceholders","companyPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{eventPlaceholders:["%zoom_host_url%","%event_cancel_url%","%reservation_name%","%reservation_description%","%event_deposit_payment%","%event_tickets%","%attendee_code%","%coupon_used%"],employeePlaceholders:["%employee_panel_url%"]},userTypeTab:"provider"}})],1),e._v(" "),i("el-row",{staticClass:"am-customize-notifications-combined"},[i("el-col",{attrs:{span:16}},[i("div",{staticClass:"am-customize-notifications-combined-tooltip"},[i("strong",[e._v(e._s(e.$root.labels.ph_group_event_details))]),e._v("\n %group_event_details%\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),i("el-col",{staticClass:"am-align-right",attrs:{span:8}},[i("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupEventPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1)],1)]],2)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_google_meet)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.enable_google_meet_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.enableGoogleMeet,callback:function(t){e.$set(e.settings,"enableGoogleMeet",t)},expression:"settings.enableGoogleMeet"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.insert_pending_appointments)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.insert_pending_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.insertPendingAppointments,callback:function(t){e.$set(e.settings,"insertPendingAppointments",t)},expression:"settings.insertPendingAppointments"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.customers_as_attendees)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.customers_as_attendees_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(t){return e.onChangeAddAttendees()}},model:{value:e.settings.addAttendees,callback:function(t){e.$set(e.settings,"addAttendees",t)},expression:"settings.addAttendees"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.show_attendees)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.show_attendees_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.showAttendees,callback:function(t){e.$set(e.settings,"showAttendees",t)},expression:"settings.showAttendees"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.send_event_invitation_email)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.send_event_invitation_email_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{disabled:!e.settings.addAttendees,"active-text":"","inactive-text":""},model:{value:e.settings.sendEventInvitationEmail,callback:function(t){e.$set(e.settings,"sendEventInvitationEmail",t)},expression:"settings.sendEventInvitationEmail"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.remove_google_busy_slots)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.remove_google_busy_slots_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.removeGoogleCalendarBusySlots,callback:function(t){e.$set(e.settings,"removeGoogleCalendarBusySlots",t)},expression:"settings.removeGoogleCalendarBusySlots"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.include_buffer_time_google)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.include_buffer_time_google_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.includeBufferTimeGoogleCalendar,callback:function(t){e.$set(e.settings,"includeBufferTimeGoogleCalendar",t)},expression:"settings.includeBufferTimeGoogleCalendar"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_events_returned)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.number_of_events_returned_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{disabled:!e.settings.removeGoogleCalendarBusySlots},model:{value:e.settings.maximumNumberOfEventsReturned,callback:function(t){e.$set(e.settings,"maximumNumberOfEventsReturned",t)},expression:"settings.maximumNumberOfEventsReturned"}},e._l(e.options.maximumNumberOfEventsReturned,function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}),1)],1)],1):e._e()],1)],1)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1470),i(1471),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(747),o=i.n(a);t.default={props:{outlookCalendar:{type:Object}},mixins:[n.a],data:function(){return{options:{maximumNumberOfEventsReturned:[50,100,200,500,999]},settings:this.outlookCalendar,outlookLoading:!1,outlookCredSaved:!1,activeTab:"appointments"}},computed:{showSSLAlert:function(){return"https:"!==location.protocol}},mounted:function(){this.outlookCredSaved=this.settings.clientID&&this.settings.clientSecret},methods:{onChangeAddAttendees:function(){!1===this.settings.addAttendees&&(this.settings.sendEventInvitationEmail=!1)},saveCredAndConnectToOutlookAccount:function(){var e=this;this.outlookLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/settings",{outlookCalendar:{clientID:this.settings.clientID,clientSecret:this.settings.clientSecret,mailEnabled:!0}}).then(function(){e.connectToOutlookAccount()}).catch(function(t){e.outlookLoading=!1,e.notify(e.$root.labels.error,t.message,"error")})},connectToOutlookAccount:function(){var e=this;this.outlookLoading=!0,this.settings.clientID&&this.settings.clientSecret&&this.$http.get(this.$root.getAjaxUrl+"/outlook/authorization/url/0").then(function(e){window.location.href=e.data.data.authUrl}).catch(function(t){e.outlookLoading=!1,e.notify(e.$root.labels.error,t.message,"error")})},disconnectFromOutlookAccount:function(){var e=this;this.outlookLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/outlook/disconnect/0").then(function(){e.settings.token=null}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")}).finally(function(){e.outlookLoading=!1})},openDialog:function(e){this.$emit("openDialog",e)},redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-outlook-calendar/","_blank")}},components:{InlinePlaceholders:o.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"settings",attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.outlook_client_id+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientID,callback:function(t){e.$set(e.settings,"clientID","string"==typeof t?t.trim():t)},expression:"settings.clientID"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.outlook_credentials_obtain)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.outlook_client_secret+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientSecret,callback:function(t){e.$set(e.settings,"clientSecret","string"==typeof t?t.trim():t)},expression:"settings.clientSecret"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.outlook_credentials_obtain)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.outlook_redirect_uri)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.outlook_redirect_uri_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.redirectURI,callback:function(t){e.$set(e.settings,"redirectURI",t)},expression:"settings.redirectURI"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.outlook_mail_api)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:5}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.mailEnabled,callback:function(t){e.$set(e.settings,"mailEnabled",t)},expression:"settings.mailEnabled"}})],1)],1),e._v(" "),e.settings.mailEnabled?i("div",{staticStyle:{"margin-top":"10px"},attrs:{gutter:24}},[i("el-button",{staticClass:"am-outlook-calendar-button",class:{connected:e.settings.token,disabled:!e.settings.clientSecret||!e.settings.clientID},attrs:{type:"primary",disabled:!e.settings.clientSecret||!e.settings.clientID,loading:e.outlookLoading},on:{click:function(t){e.settings.token?e.disconnectFromOutlookAccount():e.outlookCredSaved?e.connectToOutlookAccount():e.saveCredAndConnectToOutlookAccount()}}},[i("div",{staticClass:"am-outlook-calendar-button-image"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/outlook-calendar.png"}})]),e._v(" "),i("span",{staticClass:"am-outlook-calendar-button-text"},[e._v("\n "+e._s(e.settings.token?e.$root.labels.outlook_sign_out:e.$root.labels.outlook_sign_in)+"\n ")])])],1):e._e()],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.outlook_calendar)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:5}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.calendarEnabled,callback:function(t){e.$set(e.settings,"calendarEnabled",t)},expression:"settings.calendarEnabled"}})],1)],1),e._v(" "),e.settings.calendarEnabled?i("div",{staticStyle:{"margin-top":"10px"}},[e.showSSLAlert?i("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.outlook_ssl_warning,closable:!1}}):e._e(),e._v(" "),i("el-collapse",[i("el-collapse-item",{staticClass:"am-setting-box"},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.event_title_and_description)+":")])]),e._v(" "),[i("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip_outlook)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.appointment,callback:function(t){e.$set(e.settings.title,"appointment",t)},expression:"settings.title.appointment"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip_outlook)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.appointment,callback:function(t){e.$set(e.settings.description,"appointment",t)},expression:"settings.description.appointment"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","categoryPlaceholders","companyPlaceholders","customerPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1),e._v(" "),i("el-row",{staticClass:"am-customize-notifications-combined"},[i("el-col",{attrs:{span:16}},[i("div",{staticClass:"am-customize-notifications-combined-tooltip"},[i("strong",[e._v(e._s(e.$root.labels.ph_group_appointment_details))]),e._v("\n %group_appointment_details%\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),i("el-col",{staticClass:"am-align-right",attrs:{span:8}},[i("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupAppointmentPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip_outlook)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.event,callback:function(t){e.$set(e.settings.title,"event",t)},expression:"settings.title.event"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip_outlook)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.event,callback:function(t){e.$set(e.settings.description,"event",t)},expression:"settings.description.event"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["eventPlaceholders","companyPlaceholders","customerPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{eventPlaceholders:["%zoom_host_url%","%event_cancel_url%","%reservation_name%","%reservation_description%","%event_deposit_payment%","%event_tickets%"],employeePlaceholders:["%employee_panel_url%"]},userTypeTab:"provider"}})],1),e._v(" "),i("el-row",{staticClass:"am-customize-notifications-combined"},[i("el-col",{attrs:{span:16}},[i("div",{staticClass:"am-customize-notifications-combined-tooltip"},[i("strong",[e._v(e._s(e.$root.labels.ph_group_event_details))]),e._v("\n %group_event_details%\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),i("el-col",{staticClass:"am-align-right",attrs:{span:8}},[i("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupEventPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1)],1)]],2)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_microsoft_teams)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.enable_microsoft_teams_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.enableMicrosoftTeams,callback:function(t){e.$set(e.settings,"enableMicrosoftTeams",t)},expression:"settings.enableMicrosoftTeams"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.insert_pending_appointments)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.insert_pending_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.insertPendingAppointments,callback:function(t){e.$set(e.settings,"insertPendingAppointments",t)},expression:"settings.insertPendingAppointments"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.customers_as_attendees)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.customers_as_attendees_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(t){return e.onChangeAddAttendees()}},model:{value:e.settings.addAttendees,callback:function(t){e.$set(e.settings,"addAttendees",t)},expression:"settings.addAttendees"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.remove_outlook_busy_slots)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.remove_outlook_busy_slots_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.removeOutlookCalendarBusySlots,callback:function(t){e.$set(e.settings,"removeOutlookCalendarBusySlots",t)},expression:"settings.removeOutlookCalendarBusySlots"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.include_buffer_time_outlook)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.include_buffer_time_outlook_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.includeBufferTimeOutlookCalendar,callback:function(t){e.$set(e.settings,"includeBufferTimeOutlookCalendar",t)},expression:"settings.includeBufferTimeOutlookCalendar"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_events_returned)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.number_of_events_returned_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{disabled:!e.settings.removeOutlookCalendarBusySlots},model:{value:e.settings.maximumNumberOfEventsReturned,callback:function(t){e.$set(e.settings,"maximumNumberOfEventsReturned",t)},expression:"settings.maximumNumberOfEventsReturned"}},e._l(e.options.maximumNumberOfEventsReturned,function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}),1)],1)],1):e._e()],1)],1)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1473),i(1474),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(655);t.default={mixins:[n.a,a.a],props:["webHooks"],data:function(){return{settings:this.webHooks,webHookToDelete:null,webHookEditDialog:null,webHookToEdit:null,editedWebHook:null,editedWebHookOld:null,isNewWebHook:!1,actions:[{value:"bookingAdded",label:this.$root.labels.web_hook_booking_completed},{value:"bookingTimeUpdated",label:this.$root.labels.web_hook_booking_rescheduled},{value:"bookingCanceled",label:this.$root.labels.web_hook_booking_canceled},{value:"bookingStatusUpdated",label:this.$root.labels.web_hook_booking_status_updated}],packageActions:[{value:"packagePurchased",label:this.$root.labels.web_hook_package_purchased},{value:"packageCanceled",label:this.$root.labels.web_hook_package_canceled}],types:[{value:"appointment",label:this.$root.labels.appointment},{value:"event",label:this.$root.labels.event}],rules:{name:[{required:!0,message:this.$root.labels.web_hook_name_warning,trigger:"submit"}],url:[{required:!0,message:this.$root.labels.enter_valid_url_warning,trigger:"submit"}],action:[{required:!0,message:this.$root.labels.web_hook_action_warning,trigger:"submit"}],type:[{required:!0,message:this.$root.labels.web_hook_booking_type_warning,trigger:"submit"}]}}},beforeMount:function(){(this.$root.licence.isPro||this.$root.licence.isDeveloper)&&this.types.push({value:"package",label:this.$root.labels.package})},methods:{webHookTypeChanged:function(){this.editedWebHook.action=""},addWebHook:function(){null===this.editedWebHook&&(this.webHookEditDialog=!0,this.editedWebHook={name:"",url:"",type:"",action:""},this.isNewWebHook=!0,this.settings.push(this.editedWebHook),this.scrollViewInModal("webHook"+(this.settings.length-1)))},showEditWebHookDialog:function(e){this.editedWebHook=e,this.editedWebHookOld=JSON.parse(JSON.stringify(e)),this.webHookToDelete=null,this.webHookEditDialog=!0},showDeleteWebHookDialog:function(e){this.webHookToDelete=e,this.editedWebHook=null,this.webHookEditDialog=!1},hideDeleteWebHookDialog:function(){this.webHookToDelete=null,this.webHookEditDialog=!0},deleteWebHook:function(e){var t=this.settings.indexOf(e);this.settings.splice(t,1)},cancelWebHook:function(e){if(null!==this.editedWebHookOld&&(e.name=this.editedWebHookOld.name,e.url=this.editedWebHookOld.url,e.type=this.editedWebHookOld.type,e.action=this.editedWebHookOld.action),this.isNewWebHook){var t=this.settings.indexOf(e);this.settings.splice(t,1),this.isNewWebHook=!1}this.editedWebHook=null,this.editedWebHookOld=null,this.webHookEditDialog=!1},saveWebHook:function(e){var t=this;this.$refs.webHook[e].validate(function(i){if(!i)return!1;t.editedWebHook=null,t.webHookEditDialog=!1,t.isNewWebHook=!1,t.$refs.webHook[e].clearValidate()})}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("div",{staticClass:"am-extra-list"},[i("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addWebHook}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_web_hook))])]),e._v(" "),i("transition-group",{attrs:{name:"list-complete"}},e._l(e.settings,function(t,n){return i("div",{key:n+1,staticClass:"am-extra-item",attrs:{id:"webHook"+n}},[i("el-row",{attrs:{type:"flex",align:"top"}},[i("el-col",{attrs:{span:24}},[i("el-row",{attrs:{type:"flex",align:"middle"}},[i("el-col",{attrs:{span:18}},[i("h3",[e._v(e._s(t.name))])]),e._v(" "),null===e.editedWebHook||n!==e.settings.indexOf(e.editedWebHook)?i("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[i("span",{on:{click:function(i){return e.showEditWebHookDialog(t)}}},[i("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),i("span",{on:{click:function(i){return e.showDeleteWebHookDialog(t)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedWebHook&&n===e.settings.indexOf(e.editedWebHook)||null!==e.webHookToDelete&&n===e.settings.indexOf(e.webHookToDelete)),expression:"(editedWebHook === null || index !== settings.indexOf(editedWebHook)) && (webHookToDelete === null || index !== settings.indexOf(webHookToDelete))"}],staticClass:"am-extra-item-data"},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{sm:12}},[i("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels.web_hook_action)+": "+e._s(t&&t.action?("package"===t.type?e.packageActions:e.actions).find(function(e){return t.action===e.value}).label:""))])]),e._v(" "),i("el-col",{attrs:{sm:12}},[i("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels.web_hook_booking_type)+": "+e._s(t&&t.type?e.types.find(function(e){return t.type===e.value}).label:""))])])],1),e._v(" "),i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{sm:24}},[i("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels.url)+": "+e._s(t.url))])])],1)],1)],1)],1),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.webHookToDelete&&n===e.settings.indexOf(e.webHookToDelete),expression:"webHookToDelete !== null && index === settings.indexOf(webHookToDelete)"}],staticClass:"am-confirmation"},[i("p",[e._v(e._s(e.$root.labels.web_hook_delete_confirmation)+"?")]),e._v(" "),i("div",{staticClass:"align-right"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteWebHookDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return e.deleteWebHook(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.webHookEditDialog&&n===e.settings.indexOf(e.editedWebHook),expression:"webHookEditDialog === true && index === settings.indexOf(editedWebHook)"}]},[i("el-form",{ref:"webHook",refInFor:!0,attrs:{model:t,rules:e.rules,"label-position":"top"}},[i("el-form-item",{attrs:{label:e.$root.labels.name+":",prop:"name"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{change:function(i){return e.trimProperty(t,"name")}},model:{value:t.name,callback:function(i){e.$set(t,"name",i)},expression:"webHook.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"URL:",prop:"url"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:t.url,callback:function(i){e.$set(t,"url","string"==typeof i?i.trim():i)},expression:"webHook.url"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.web_hook_booking_type+":",prop:"type"}},[i("el-select",{attrs:{clearable:"",placeholder:""},on:{change:function(t){return e.webHookTypeChanged()}},model:{value:t.type,callback:function(i){e.$set(t,"type",i)},expression:"webHook.type"}},e._l(e.types,function(e,t){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.web_hook_action+":",prop:"action"}},[i("el-select",{attrs:{clearable:"",placeholder:""},model:{value:t.action,callback:function(i){e.$set(t,"action",i)},expression:"webHook.action"}},e._l("package"===t.type?e.packageActions:e.actions,function(e,t){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),"packagePurchased"===t.action?i("el-alert",{attrs:{title:"",type:"warning",description:e.$root.labels.web_hook_package_tooltip,"show-icon":"",closable:!1}}):e._e(),e._v(" "),i("div",{staticClass:"align-right"},[i("el-button",{attrs:{size:"small"},on:{click:function(i){return e.cancelWebHook(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveWebHook(n)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])],1)}),0)],1)])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1476),i(1477),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(747),o=i.n(a);t.default={mixins:[n.a],props:{zoom:{type:Object}},data:function(){return{settings:this.zoom}},methods:{redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-zoom/","_blank")}},components:{InlinePlaceholders:o.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"settings",attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.zoom_account_id+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.accountId,callback:function(t){e.$set(e.settings,"accountId","string"==typeof t?t.trim():t)},expression:"settings.accountId"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_credentials_tooltip)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.zoom_client_id+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientId,callback:function(t){e.$set(e.settings,"clientId","string"==typeof t?t.trim():t)},expression:"settings.clientId"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_credentials_tooltip)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.zoom_client_secret+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientSecret,callback:function(t){e.$set(e.settings,"clientSecret","string"==typeof t?t.trim():t)},expression:"settings.clientSecret"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_credentials_tooltip)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.meeting_title)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.meeting_title_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.meetingTitle,callback:function(t){e.$set(e.settings,"meetingTitle",t)},expression:"settings.meetingTitle"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.meeting_agenda)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.meeting_agenda_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.meetingAgenda,callback:function(t){e.$set(e.settings,"meetingAgenda",t)},expression:"settings.meetingAgenda"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","eventPlaceholders","categoryPlaceholders","locationPlaceholders","employeePlaceholders","customerPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%zoom_join_url%","%appointment_cancel_url%"],eventPlaceholders:["%event_cancel_url%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%"]},userTypeTab:"provider"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.pending_appointments_meetings)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.pending_appointments_meetings_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.pendingAppointmentsMeetings,callback:function(t){e.$set(e.settings,"pendingAppointmentsMeetings",t)},expression:"settings.pendingAppointmentsMeetings"}})],1)],1)],1)],1)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1479),i(1489),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(814),a=i.n(n),o=i(654),s=i(1480),r=i.n(s),l=i(1483),c=i.n(l),u=i(1486),d=i.n(u),p=i(658),f=i(91);t.default={mixins:[o.a,p.a,f.a],props:{facebookPixel:{type:Object},customFields:{default:[]},googleAnalytics:{type:Object},googleTag:{type:Object},mailchimp:{type:Object},mailchimpLists:{type:Array},openMailchimpCollapse:{type:Boolean,default:!1}},data:function(){return{appointmentActions:[{value:"ViewContent",label:this.$root.labels.tracking_ViewContent},{value:"SelectCategory",label:this.$root.labels.tracking_SelectCategory},{value:"SelectService",label:this.$root.labels.tracking_SelectService},{value:"SelectEmployee",label:this.$root.labels.tracking_SelectEmployee},{value:"SelectLocation",label:this.$root.labels.tracking_SelectLocation},{value:"InitInfoStep",label:this.$root.labels.tracking_InitInfoStep},{value:"InitiateCheckout",label:this.$root.labels.tracking_InitiateCheckout},{value:"Schedule",label:this.$root.labels.tracking_Schedule},{value:"Purchase",label:this.$root.labels.tracking_Purchase}],packageActions:[{value:"ViewContent",label:this.$root.labels.tracking_ViewContent},{value:"SelectPackage",label:this.$root.labels.tracking_SelectPackage},{value:"InitInfoStep",label:this.$root.labels.tracking_InitInfoStep},{value:"InitiateCheckout",label:this.$root.labels.tracking_InitiateCheckout},{value:"Schedule",label:this.$root.labels.tracking_Schedule},{value:"Purchase",label:this.$root.labels.tracking_Purchase}],eventActions:[{value:"ViewContent",label:this.$root.labels.tracking_ViewContent},{value:"SelectEvent",label:this.$root.labels.tracking_SelectEvent},{value:"InitInfoStep",label:this.$root.labels.tracking_InitInfoStep},{value:"InitiateCheckout",label:this.$root.labels.tracking_InitiateCheckout},{value:"Schedule",label:this.$root.labels.tracking_Schedule},{value:"Purchase",label:this.$root.labels.tracking_Purchase}],marketingPlaceholders:{appointments:{placeholders:[{value:"%category_id%",label:"ID",custom:!0},{value:"%category_name%",label:this.$root.labels.ph_category_name},{value:"%service_id%",label:"ID",custom:!0},{value:"%service_name%",label:this.$root.labels.ph_service_name},{value:"%employee_id%",label:"ID",custom:!0},{value:"%employee_fullName%",label:this.$root.labels.ph_employee_full_name,custom:!0},{value:"%location_id%",label:"ID",custom:!0},{value:"%location_name%",label:this.$root.labels.ph_location_name},{value:"%payment_amount%",label:this.$root.labels.ph_payment_price},{value:"%payment_currency%",label:this.$root.labels.currency},{value:"%number_of_persons%",label:this.$root.labels.ph_number_of_persons},{value:"%appointment_duration%",label:this.$root.labels.ph_appointment_duration}]},events:{placeholders:[{value:"%event_id%",label:"ID",custom:!0},{value:"%event_name%",label:this.$root.labels.ph_event_name},{value:"%payment_amount%",label:this.$root.labels.ph_payment_price},{value:"%payment_currency%",label:this.$root.labels.currency},{value:"%number_of_persons%",label:this.$root.labels.ph_number_of_persons}]},packages:{placeholders:[{value:"%package_id%",label:"ID",custom:!0},{value:"%package_name%",label:this.$root.labels.ph_package_name},{value:"%payment_amount%",label:this.$root.labels.ph_payment_price},{value:"%payment_currency%",label:this.$root.labels.currency}]}},activeFacebookPixelTab:"appointments",activeGoogleAnalyticsTab:"appointments",activeGoogleTagTab:"appointments",facebookPixelSettings:this.facebookPixel,googleAnalyticsSettings:this.googleAnalytics,googleTagSettings:this.googleTag,mailchimpSettings:this.mailchimp,mailchimpLoading:!1,activeCollapse:null,rules:{list:[{required:!!this.mailchimp.accessToken,message:this.$root.labels.mailchimp_select_list,trigger:"submit"}]}}},mounted:function(){!this.openMailchimpCollapse||this.$root.licence.isLite||this.$root.licence.isStarter||(this.activeCollapse="mailchimp",this.$refs.mailchimp&&this.$refs.mailchimp.$el.scrollIntoView({behavior:"smooth"}))},methods:{connectToMailchimp:function(){var e=this;this.mailchimpLoading=!0,this.$http.get(this.$root.getAjaxUrl+"/mailchimp/authorization/url").then(function(e){window.location=e.data.data.authUrl}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")}).finally(function(){e.mailchimpLoading=!1})},disconnectFromMailchimp:function(){var e=this;this.mailchimpLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/mailchimp/disconnect").then(function(){e.notify(e.$root.labels.success,e.$root.labels.mailchimp_sign_out_success,"success"),e.mailchimpSettings={accessToken:null,server:null,list:null},e.$emit("disconnectMailchimp")}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")}).finally(function(){e.mailchimpLoading=!1})},validateMailchimp:function(){var e,t=(e=a.a.mark(function e(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.$refs.mailchimpSettings){e.next=3;break}return e.next=3,this.$refs.mailchimpSettings.validate();case 3:case"end":return e.stop()}},e,this)}),function(){var t=e.apply(this,arguments);return new Promise(function(e,i){return function n(a,o){try{var s=t[a](o),r=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(r).then(function(e){n("next",e)},function(e){n("throw",e)});e(r)}("next")})});return function(){return t.apply(this,arguments)}}()},created:function(){for(var e=this,t=[],i=0;i<this.customFields.length;i++)"file"!==this.customFields[i].type&&t.push({value:"%custom_field_"+this.customFields[i].id+"%",label:this.customFields[i].label});Object.keys(this.marketingPlaceholders).forEach(function(i){e.marketingPlaceholders[i].placeholders=[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(e.marketingPlaceholders[i].placeholders),t)})},components:{TrackingGoogleTag:r.a,TrackingGoogleAnalytics:c.a,TrackingFacebookPixel:d.a}}},function(e,t,i){var n=i(90)(i(1481),i(1482),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(658),a=i(654),o=i(655),s=i(747),r=i.n(s);t.default={mixins:[a.a,o.a,n.a],props:["events","actions","type","marketingPlaceholders"],data:function(){return{settings:this.events,eventToDelete:null,eventEditDialog:null,eventToEdit:null,editedEvent:null,editedEventOld:null,isNewEvent:!1,rules:{category:[{required:!0,message:this.$root.labels.marketing_field_warning,trigger:"submit"}],action:[{required:!0,message:this.$root.labels.marketing_field_warning,trigger:"submit"}],label:[{required:!1,message:"",trigger:"submit"}],value:[{required:!1,message:"",trigger:"submit"}],type:[{required:!0,message:this.$root.labels.marketing_type_warning,trigger:"submit"}]}}},methods:{isAvailablePlaceholder:function(e,t){return("Schedule"===e||"Purchase"===e||"%payment_amount%"!==t&&"%payment_currency%"!==t)&&("SelectCategory"!==e||"%category_name%"===t||"%category_id%"===t)},copyCodeText:function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t),this.notify("",this.$root.labels.placeholder_copied,"info","no-title")},getInlinePlaceholdersNames:function(e){var t=[];switch(e){case"packages":return t.concat(["packagePlaceholders"]);case"events":return t.concat(["eventPlaceholders","employeePlaceholders","locationPlaceholders"]);case"appointments":return t.concat(["employeePlaceholders","categoryPlaceholders","locationPlaceholders"])}return t},addEvent:function(){null===this.editedEvent&&(this.eventEditDialog=!0,this.editedEvent={event:"",category:"",action:"",label:"",value:"",type:""},this.isNewEvent=!0,this.settings.push(this.editedEvent)),this.scrollViewInModal("trackingEventG"+this.type+"-"+(this.settings.length-1))},showEditEventDialog:function(e){this.editedEvent=e,this.editedEventOld=JSON.parse(JSON.stringify(e)),this.eventToDelete=null,this.eventEditDialog=!0},showDeleteEventDialog:function(e){this.eventToDelete=e,this.editedEvent=null,this.eventEditDialog=!1},hideDeleteEventDialog:function(){this.eventToDelete=null,this.eventEditDialog=!0},deleteEvent:function(e){var t=this.settings.indexOf(e);this.settings.splice(t,1)},cancelEvent:function(e){if(null!==this.editedEventOld&&(e.event=this.editedEventOld.event,e.category=this.editedEventOld.category,e.action=this.editedEventOld.action,e.label=this.editedEventOld.label,e.value=this.editedEventOld.value,e.type=this.editedEventOld.type),this.isNewEvent){var t=this.settings.indexOf(e);this.settings.splice(t,1),this.isNewEvent=!1}this.editedEvent=null,this.editedEventOld=null,this.eventEditDialog=!1},saveEvent:function(e){var t=this;this.$refs.trackingEvent[e].validate(function(i){if(!i)return!1;t.editedEvent=null,t.eventEditDialog=!1,t.isNewEvent=!1,t.$refs.trackingEvent[e].clearValidate()})}},components:{InlinePlaceholders:r.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("div",{staticClass:"am-extra-list",staticStyle:{padding:"0"}},[i("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addEvent}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.marketing_add_tracking))])]),e._v(" "),i("transition-group",{attrs:{name:"list-complete"}},e._l(e.settings,function(t,n){return i("div",{key:n+1,staticClass:"am-extra-item",attrs:{id:"trackingEventG"+e.type+"-"+n}},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{align:"top"}},[i("el-col",{attrs:{span:24}},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle"}},[i("el-col",{attrs:{span:18}},[i("h3",[e._v(e._s(t.action))])]),e._v(" "),null===e.editedEvent||n!==e.settings.indexOf(e.editedEvent)?i("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[i("span",{on:{click:function(i){return e.showEditEventDialog(t)}}},[i("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),i("span",{on:{click:function(i){return e.showDeleteEventDialog(t)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedEvent&&n===e.settings.indexOf(e.editedEvent)||null!==e.eventToDelete&&n===e.settings.indexOf(e.eventToDelete)),expression:"(editedEvent === null || index !== settings.indexOf(editedEvent)) && (eventToDelete === null || index !== settings.indexOf(eventToDelete))"}],staticClass:"am-extra-item-data"},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{gutter:24}},[i("el-col",{attrs:{sm:24}},[i("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels["tracking_"+t.type]))])])],1)],1)],1)],1),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.eventToDelete&&n===e.settings.indexOf(e.eventToDelete),expression:"eventToDelete !== null && index === settings.indexOf(eventToDelete)"}],staticClass:"am-confirmation"},[i("p",[e._v(e._s(e.$root.labels.marketing_delete_confirmation)+"?")]),e._v(" "),i("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[i("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteEventDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return e.deleteEvent(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.eventEditDialog&&n===e.settings.indexOf(e.editedEvent),expression:"eventEditDialog === true && index === settings.indexOf(editedEvent)"}]},[i("el-form",{ref:"trackingEvent",refInFor:!0,attrs:{model:t,rules:e.rules,"label-position":"top"}},[i("el-form-item",{attrs:{prop:"type"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.type)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tracking_type_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{clearable:"",placeholder:""},model:{value:t.type,callback:function(i){e.$set(t,"type",i)},expression:"trackingEvent.type"}},e._l(e.actions,function(e,t){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.google_analytics_category+":",prop:"category"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{change:function(i){return e.trimProperty(t,"category")}},model:{value:t.category,callback:function(i){e.$set(t,"category",i)},expression:"trackingEvent.category"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.google_analytics_action+":",prop:"action"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{change:function(i){return e.trimProperty(t,"action")}},model:{value:t.action,callback:function(i){e.$set(t,"action",i)},expression:"trackingEvent.action"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.google_analytics_label+":",prop:"label"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{change:function(i){return e.trimProperty(t,"label")}},model:{value:t.label,callback:function(i){e.$set(t,"label",i)},expression:"trackingEvent.label"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.google_analytics_value+":",prop:"value"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{change:function(i){return e.trimProperty(t,"value")}},model:{value:t.value,callback:function(i){e.$set(t,"value",i)},expression:"trackingEvent.value"}})],1),e._v(" "),i("el-form-item",[i("div",["ViewContent"!==t.type?i("el-row",{staticClass:"am-notifications-placeholders"},[i("el-col",{attrs:{sm:24}},[i("div",{staticClass:"am-placeholder-wrapper"},e._l(e.marketingPlaceholders[e.type],function(n,a){return i("el-dropdown",{key:a,staticClass:"am-placeholder-wrapper__dropdown"},[i("el-button",{staticClass:"am-placeholder-wrapper__button",attrs:{size:"small"}},[e._v("\n "+e._s(e.$root.labels[a])),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{class:{"amelia-dropdown":n.length>20},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(n,function(n,a){return t.type&&e.isAvailablePlaceholder(t.type,n.value)?i("el-dropdown-item",{key:a},[i("el-tooltip",{key:n.code,attrs:{effect:"dark",content:n.label,placement:"left"}},[i("p",{on:{click:function(t){return e.copyCodeText(n.value)}}},[e._v("\n "+e._s(n.value)+"\n ")])])],1):e._e()}),1)],1)}),1)])],1):e._e()],1)]),e._v(" "),i("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[i("el-button",{attrs:{size:"small"},on:{click:function(i){return e.cancelEvent(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveEvent(n)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])],1)}),0)],1)])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1484),i(1485),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(658),a=i(654),o=i(655),s=i(747),r=i.n(s);t.default={mixins:[a.a,o.a,n.a],props:["events","actions","type","marketingPlaceholders"],data:function(){return{settings:this.events,eventToDelete:null,eventEditDialog:null,eventToEdit:null,editedEvent:null,editedEventOld:null,isNewEvent:!1,rules:{event:[{required:!0,message:this.$root.labels.marketing_field_warning,trigger:"submit"}],type:[{required:!0,message:this.$root.labels.marketing_type_warning,trigger:"submit"}]}}},methods:{isAvailablePlaceholder:function(e,t){return("Schedule"===e||"Purchase"===e||"%payment_amount%"!==t&&"%payment_currency%"!==t)&&(("SelectCategory"!==e||"%category_name%"===t||"%category_id%"===t)&&("Schedule"===e||"Purchase"===e||"InitiateCheckout"===e||!t.includes("%custom_field_")&&"%number_of_persons%"!==t&&"%appointment_duration%"!==t))},addParameter:function(){this.editedEvent.data.push({key:"",value:""})},deleteParameter:function(e){this.editedEvent.data.splice(e,1)},copyCodeText:function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t),this.notify("",this.$root.labels.placeholder_copied,"info","no-title")},getInlinePlaceholdersNames:function(e){var t=[];switch(e){case"packages":return t.concat(["packagePlaceholders"]);case"events":return t.concat(["eventPlaceholders","employeePlaceholders","locationPlaceholders"]);case"appointments":return t.concat(["employeePlaceholders","categoryPlaceholders","locationPlaceholders"])}return t},addEvent:function(){null===this.editedEvent&&(this.eventEditDialog=!0,this.editedEvent={event:"",type:"",data:[{key:"",value:""}]},this.isNewEvent=!0,this.settings.push(this.editedEvent)),this.scrollViewInModal("trackingEventGA"+this.type+"-"+(this.settings.length-1))},showEditEventDialog:function(e){this.editedEvent=e,this.editedEvent.data.length||this.editedEvent.data.push({key:"",value:""}),this.editedEventOld=JSON.parse(JSON.stringify(e)),this.eventToDelete=null,this.eventEditDialog=!0},showDeleteEventDialog:function(e){this.eventToDelete=e,this.editedEvent=null,this.eventEditDialog=!1},hideDeleteEventDialog:function(){this.eventToDelete=null,this.eventEditDialog=!0},deleteEvent:function(e){var t=this.settings.indexOf(e);this.settings.splice(t,1)},cancelEvent:function(e){if(null!==this.editedEventOld&&(e.event=this.editedEventOld.event,e.type=this.editedEventOld.type),this.isNewEvent){var t=this.settings.indexOf(e);this.settings.splice(t,1),this.isNewEvent=!1}this.editedEvent=null,this.editedEventOld=null,this.eventEditDialog=!1},saveEvent:function(e){var t=this;this.$refs.trackingEvent[e].validate(function(i){if(!i)return!1;t.editedEvent=null,t.eventEditDialog=!1,t.isNewEvent=!1,t.$refs.trackingEvent[e].clearValidate()})}},components:{InlinePlaceholders:r.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("div",{staticClass:"am-extra-list",staticStyle:{padding:"0"}},[i("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addEvent}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.marketing_add_tracking))])]),e._v(" "),i("transition-group",{attrs:{name:"list-complete"}},e._l(e.settings,function(t,n){return i("div",{key:n+1,staticClass:"am-extra-item",attrs:{id:"trackingEventGA"+e.type+"-"+n}},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{align:"top"}},[i("el-col",{attrs:{span:24}},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle"}},[i("el-col",{attrs:{span:18}},[i("h3",[e._v(e._s(t.event))])]),e._v(" "),null===e.editedEvent||n!==e.settings.indexOf(e.editedEvent)?i("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[i("span",{on:{click:function(i){return e.showEditEventDialog(t)}}},[i("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),i("span",{on:{click:function(i){return e.showDeleteEventDialog(t)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedEvent&&n===e.settings.indexOf(e.editedEvent)||null!==e.eventToDelete&&n===e.settings.indexOf(e.eventToDelete)),expression:"(editedEvent === null || index !== settings.indexOf(editedEvent)) && (eventToDelete === null || index !== settings.indexOf(eventToDelete))"}],staticClass:"am-extra-item-data"},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{gutter:24}},[i("el-col",{attrs:{sm:24}},[i("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels["tracking_"+t.type]))])])],1)],1)],1)],1),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.eventToDelete&&n===e.settings.indexOf(e.eventToDelete),expression:"eventToDelete !== null && index === settings.indexOf(eventToDelete)"}],staticClass:"am-confirmation"},[i("p",[e._v(e._s(e.$root.labels.marketing_delete_confirmation)+"?")]),e._v(" "),i("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[i("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteEventDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return e.deleteEvent(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.eventEditDialog&&n===e.settings.indexOf(e.editedEvent),expression:"eventEditDialog === true && index === settings.indexOf(editedEvent)"}]},[i("el-form",{ref:"trackingEvent",refInFor:!0,attrs:{model:t,rules:e.rules,"label-position":"top"}},[i("el-form-item",{attrs:{prop:"type"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.type)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tracking_type_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{clearable:"",placeholder:""},model:{value:t.type,callback:function(i){e.$set(t,"type",i)},expression:"trackingEvent.type"}},e._l(e.actions,function(e,t){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{prop:"event"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.analytics_event)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.analytics_event_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},on:{change:function(i){return e.trimProperty(t,"event")}},model:{value:t.event,callback:function(i){e.$set(t,"event",i)},expression:"trackingEvent.event"}})],1),e._v(" "),i("div",[i("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[i("el-col",{attrs:{span:11}},[i("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.tracking_event_parameter+": ")+"\n ")])]),e._v(" "),i("el-col",{attrs:{span:11}},[i("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.value+": ")+"\n ")])]),e._v(" "),i("el-col",{attrs:{span:2}})],1),e._v(" "),e._l(t.data,function(n,a){return i("el-row",{key:a,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{type:"text",name:n.name},model:{value:t.data[a].key,callback:function(i){e.$set(t.data[a],"key",i)},expression:"trackingEvent.data[index].key"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{type:"text"},model:{value:t.data[a].value,callback:function(i){e.$set(t.data[a],"value",i)},expression:"trackingEvent.data[index].value"}})],1),e._v(" "),i("el-col",{attrs:{span:2}},[a!==t.data.length-1?i("span",{on:{click:function(t){return e.deleteParameter(a)}}},[i("i",{staticClass:"el-icon-delete"})]):i("span",{on:{click:function(t){return e.addParameter()}}},[i("i",{staticClass:"el-icon-plus"})])])],1)})],2),e._v(" "),i("el-form-item",[i("div",["ViewContent"!==t.type?i("el-row",{staticClass:"am-notifications-placeholders"},[i("el-col",{attrs:{sm:24}},[i("div",{staticClass:"am-placeholder-wrapper"},e._l(e.marketingPlaceholders[e.type],function(n,a){return i("el-dropdown",{key:a,staticClass:"am-placeholder-wrapper__dropdown"},[i("el-button",{staticClass:"am-placeholder-wrapper__button",attrs:{size:"small"}},[e._v("\n "+e._s(e.$root.labels[a])),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{class:{"amelia-dropdown":n.length>20},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(n,function(n,a){return t.type&&e.isAvailablePlaceholder(t.type,n.value)?i("el-dropdown-item",{key:a},[i("el-tooltip",{key:n.code,attrs:{effect:"dark",content:n.label,placement:"left"}},[i("p",{on:{click:function(t){return e.copyCodeText(n.value)}}},[e._v("\n "+e._s(n.value)+"\n ")])])],1):e._e()}),1)],1)}),1)])],1):e._e()],1)]),e._v(" "),i("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[i("el-button",{attrs:{size:"small"},on:{click:function(i){return e.cancelEvent(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveEvent(n)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])],1)}),0)],1)])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1487),i(1488),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(658),a=i(654),o=i(655),s=i(747),r=i.n(s);t.default={mixins:[a.a,o.a,n.a],props:["events","actions","type","marketingPlaceholders"],data:function(){return{settings:this.events,eventToDelete:null,eventEditDialog:null,eventToEdit:null,editedEvent:null,editedEventOld:null,isNewEvent:!1,rules:{event:[{required:!0,message:this.$root.labels.marketing_field_warning,trigger:"submit"}],type:[{required:!0,message:this.$root.labels.marketing_type_warning,trigger:"submit"}]}}},methods:{isAvailablePlaceholder:function(e,t){return("Schedule"===e||"Purchase"===e||"%payment_amount%"!==t&&"%payment_currency%"!==t)&&("SelectCategory"!==e||"%category_name%"===t||"%category_id%"===t)},addParameter:function(){this.editedEvent.data.push({key:"",value:""})},deleteParameter:function(e){this.editedEvent.data.splice(e,1)},copyCodeText:function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t),this.notify("",this.$root.labels.placeholder_copied,"info","no-title")},getInlinePlaceholdersNames:function(e){var t=[];switch(e){case"packages":return t.concat(["packagePlaceholders"]);case"events":return t.concat(["eventPlaceholders","employeePlaceholders","locationPlaceholders"]);case"appointments":return t.concat(["employeePlaceholders","categoryPlaceholders","locationPlaceholders"])}return t},addEvent:function(){null===this.editedEvent&&(this.eventEditDialog=!0,this.editedEvent={event:"",type:"",data:[{key:"",value:""}]},this.isNewEvent=!0,this.settings.push(this.editedEvent)),this.scrollViewInModal("trackingEventF"+this.type+"-"+(this.settings.length-1))},showEditEventDialog:function(e){this.editedEvent=e,this.editedEvent.data.length||this.editedEvent.data.push({key:"",value:""}),this.editedEventOld=JSON.parse(JSON.stringify(e)),this.eventToDelete=null,this.eventEditDialog=!0},showDeleteEventDialog:function(e){this.eventToDelete=e,this.editedEvent=null,this.eventEditDialog=!1},hideDeleteEventDialog:function(){this.eventToDelete=null,this.eventEditDialog=!0},deleteEvent:function(e){var t=this.settings.indexOf(e);this.settings.splice(t,1)},cancelEvent:function(e){if(null!==this.editedEventOld&&(e.event=this.editedEventOld.event,e.type=this.editedEventOld.type),this.isNewEvent){var t=this.settings.indexOf(e);this.settings.splice(t,1),this.isNewEvent=!1}this.editedEvent=null,this.editedEventOld=null,this.eventEditDialog=!1},saveEvent:function(e){var t=this;this.$refs.trackingEvent[e].validate(function(i){if(!i)return!1;t.editedEvent=null,t.eventEditDialog=!1,t.isNewEvent=!1,t.$refs.trackingEvent[e].clearValidate()})}},components:{InlinePlaceholders:r.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("div",{staticClass:"am-extra-list",staticStyle:{padding:"0"}},[i("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addEvent}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.marketing_add_tracking))])]),e._v(" "),i("transition-group",{attrs:{name:"list-complete"}},e._l(e.settings,function(t,n){return i("div",{key:n+1,staticClass:"am-extra-item",attrs:{id:"trackingEventF"+e.type+"-"+n}},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{align:"top"}},[i("el-col",{attrs:{span:24}},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle"}},[i("el-col",{attrs:{span:18}},[i("h3",[e._v(e._s(t.event))])]),e._v(" "),null===e.editedEvent||n!==e.settings.indexOf(e.editedEvent)?i("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[i("span",{on:{click:function(i){return e.showEditEventDialog(t)}}},[i("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),i("span",{on:{click:function(i){return e.showDeleteEventDialog(t)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedEvent&&n===e.settings.indexOf(e.editedEvent)||null!==e.eventToDelete&&n===e.settings.indexOf(e.eventToDelete)),expression:"(editedEvent === null || index !== settings.indexOf(editedEvent)) && (eventToDelete === null || index !== settings.indexOf(eventToDelete))"}],staticClass:"am-extra-item-data"},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{gutter:24}},[i("el-col",{attrs:{sm:24}},[i("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels["tracking_"+t.type]))])])],1)],1)],1)],1),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.eventToDelete&&n===e.settings.indexOf(e.eventToDelete),expression:"eventToDelete !== null && index === settings.indexOf(eventToDelete)"}],staticClass:"am-confirmation"},[i("p",[e._v(e._s(e.$root.labels.marketing_delete_confirmation)+"?")]),e._v(" "),i("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[i("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteEventDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return e.deleteEvent(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.eventEditDialog&&n===e.settings.indexOf(e.editedEvent),expression:"eventEditDialog === true && index === settings.indexOf(editedEvent)"}]},[i("el-form",{ref:"trackingEvent",refInFor:!0,attrs:{model:t,rules:e.rules,"label-position":"top"}},[i("el-form-item",{attrs:{prop:"type"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.type)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tracking_type_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{clearable:"",placeholder:""},model:{value:t.type,callback:function(i){e.$set(t,"type",i)},expression:"trackingEvent.type"}},e._l(e.actions,function(e,t){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("el-form-item",{attrs:{prop:"event"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.analytics_event)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.analytics_event_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},on:{change:function(i){return e.trimProperty(t,"event")}},model:{value:t.event,callback:function(i){e.$set(t,"event",i)},expression:"trackingEvent.event"}})],1),e._v(" "),i("div",[i("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[i("el-col",{attrs:{span:11}},[i("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.tracking_parameter_name+": ")+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tracking_parameter_name_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),i("el-col",{attrs:{span:11}},[i("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.tracking_parameter_value+": ")+"\n ")])]),e._v(" "),i("el-col",{attrs:{span:2}})],1),e._v(" "),e._l(t.data,function(n,a){return i("el-row",{key:a,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{type:"text",name:n.name},model:{value:t.data[a].key,callback:function(i){e.$set(t.data[a],"key",i)},expression:"trackingEvent.data[index].key"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{type:"text"},model:{value:t.data[a].value,callback:function(i){e.$set(t.data[a],"value",i)},expression:"trackingEvent.data[index].value"}})],1),e._v(" "),i("el-col",{attrs:{span:2}},[a!==t.data.length-1?i("span",{on:{click:function(t){return e.deleteParameter(a)}}},[i("i",{staticClass:"el-icon-delete"})]):i("span",{on:{click:function(t){return e.addParameter()}}},[i("i",{staticClass:"el-icon-plus"})])])],1)})],2),e._v(" "),i("el-form-item",[i("div",["ViewContent"!==t.type?i("el-row",{staticClass:"am-notifications-placeholders"},[i("el-col",{attrs:{sm:24}},[i("div",{staticClass:"am-placeholder-wrapper"},e._l(e.marketingPlaceholders[e.type],function(n,a){return i("el-dropdown",{key:a,staticClass:"am-placeholder-wrapper__dropdown"},[i("el-button",{staticClass:"am-placeholder-wrapper__button",attrs:{size:"small"}},[e._v("\n "+e._s(e.$root.labels[a])),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{class:{"amelia-dropdown":n.length>20},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(n,function(n,a){return t.type&&e.isAvailablePlaceholder(t.type,n.value)?i("el-dropdown-item",{key:a},[i("el-tooltip",{key:n.code,attrs:{effect:"dark",content:n.label,placement:"left"}},[i("p",{on:{click:function(t){return e.copyCodeText(n.value)}}},[e._v("\n "+e._s(n.value)+"\n ")])])],1):e._e()}),1)],1)}),1)])],1):e._e()],1)]),e._v(" "),i("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[i("el-button",{attrs:{size:"small"},on:{click:function(i){return e.cancelEvent(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveEvent(n)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])],1)}),0)],1)])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-collapse",{attrs:{accordion:""},model:{value:e.activeCollapse,callback:function(t){e.activeCollapse=t},expression:"activeCollapse"}},[i("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"facebookPixel"}},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.facebook_pixel)+":")])]),e._v(" "),[i("el-form",{ref:"facebookPixelSettings",staticStyle:{"padding-top":"0"},attrs:{model:e.facebookPixelSettings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.id+":"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.facebookPixelSettings.id,callback:function(t){e.$set(e.facebookPixelSettings,"id","string"==typeof t?t.trim():t)},expression:"facebookPixelSettings.id"}})],1),e._v(" "),i("el-tabs",{model:{value:e.activeFacebookPixelTab,callback:function(t){e.activeFacebookPixelTab=t},expression:"activeFacebookPixelTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("tracking-facebook-pixel",{attrs:{events:e.facebookPixelSettings.tracking.appointment,actions:e.appointmentActions,marketingPlaceholders:e.marketingPlaceholders,type:"appointments"}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?i("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[i("tracking-facebook-pixel",{attrs:{events:e.facebookPixelSettings.tracking.package,actions:e.packageActions,marketingPlaceholders:e.marketingPlaceholders,type:"packages"}})],1):e._e(),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[i("tracking-facebook-pixel",{attrs:{events:e.facebookPixelSettings.tracking.event,actions:e.eventActions,marketingPlaceholders:e.marketingPlaceholders,type:"events"}})],1)],1)],1)]],2),e._v(" "),i("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"googleAnalytics"}},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.google_analytics)+":")])]),e._v(" "),[i("el-form",{ref:"googleAnalyticsSettings",staticStyle:{"padding-top":"0"},attrs:{model:e.googleAnalyticsSettings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.measurement_id+":"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.googleAnalyticsSettings.id,callback:function(t){e.$set(e.googleAnalyticsSettings,"id","string"==typeof t?t.trim():t)},expression:"googleAnalyticsSettings.id"}})],1),e._v(" "),i("el-tabs",{model:{value:e.activeGoogleAnalyticsTab,callback:function(t){e.activeGoogleAnalyticsTab=t},expression:"activeGoogleAnalyticsTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("tracking-google-analytics",{attrs:{events:e.googleAnalyticsSettings.tracking.appointment,actions:e.appointmentActions,marketingPlaceholders:e.marketingPlaceholders,type:"appointments"}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?i("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[i("tracking-google-analytics",{attrs:{events:e.googleAnalyticsSettings.tracking.package,actions:e.packageActions,marketingPlaceholders:e.marketingPlaceholders,type:"packages"}})],1):e._e(),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[i("tracking-google-analytics",{attrs:{events:e.googleAnalyticsSettings.tracking.event,actions:e.eventActions,marketingPlaceholders:e.marketingPlaceholders,type:"events"}})],1)],1)],1)]],2),e._v(" "),i("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"googleTag"}},[i("template",{slot:"title"},[i("p",{staticClass:"am-outdated-holder"},[e._v(e._s(e.$root.labels.google_universal_analytics)+":"),i("span",{staticClass:"am-outdated-span"},[e._v(e._s(e.$root.labels.outdated))])])]),e._v(" "),[i("el-form",{ref:"googleTagSettings",staticStyle:{"padding-top":"0"},attrs:{model:e.googleTagSettings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.id+":"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.googleTagSettings.id,callback:function(t){e.$set(e.googleTagSettings,"id","string"==typeof t?t.trim():t)},expression:"googleTagSettings.id"}})],1),e._v(" "),i("el-tabs",{model:{value:e.activeGoogleTagTab,callback:function(t){e.activeGoogleTagTab=t},expression:"activeGoogleTagTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("tracking-google-tag",{attrs:{events:e.googleTagSettings.tracking.appointment,actions:e.appointmentActions,marketingPlaceholders:e.marketingPlaceholders,type:"appointments"}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?i("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[i("tracking-google-tag",{attrs:{events:e.googleTagSettings.tracking.package,actions:e.packageActions,marketingPlaceholders:e.marketingPlaceholders,type:"packages"}})],1):e._e(),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[i("tracking-google-tag",{attrs:{events:e.googleTagSettings.tracking.event,actions:e.eventActions,marketingPlaceholders:e.marketingPlaceholders,type:"events"}})],1)],1)],1)]],2),e._v(" "),i("div",{class:e.$root.licence.isLite?"":e.licenceClass()},[i("el-collapse-item",{ref:"mailchimp",staticClass:"am-setting-box",attrs:{disabled:e.notInLicence(),name:"mailchimp"}},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.mailchimp)+":")])]),e._v(" "),[i("el-form",{ref:"mailchimpSettings",staticStyle:{"padding-top":"0"},attrs:{model:e.mailchimpSettings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[e.mailchimpSettings.accessToken?i("el-form-item",[i("el-col",{attrs:{span:21}},[e._v("\n "+e._s(e.$root.labels.mailchimp_default_checked)+"\n ")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:3}},[i("el-switch",{model:{value:e.mailchimpSettings.checkedByDefault,callback:function(t){e.$set(e.mailchimpSettings,"checkedByDefault",t)},expression:"mailchimpSettings.checkedByDefault"}})],1)],1):e._e(),e._v(" "),e.mailchimpSettings.accessToken?i("el-form-item",{attrs:{label:"placeholder",prop:"list",label:e.$root.labels.mailchimp_select_list+":"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.mailchimp_select_list)+":\n ")]),e._v(" "),i("el-select",{on:{change:e.validateMailchimp},model:{value:e.mailchimpSettings.list,callback:function(t){e.$set(e.mailchimpSettings,"list",t)},expression:"mailchimpSettings.list"}},e._l(e.mailchimpLists,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e(),e._v(" "),i("el-button",{staticClass:"am-mailchimp-button",class:{connected:e.mailchimpSettings.accessToken},attrs:{type:"primary",loading:e.mailchimpLoading},on:{click:function(t){e.mailchimpSettings.accessToken?e.disconnectFromMailchimp():e.connectToMailchimp()}}},[i("div",{staticClass:"am-mailchimp-button-image"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/mailchimp.svg"}})]),e._v(" "),i("span",{staticClass:"am-mailchimp-button-text"},[e._v("\n "+e._s(e.mailchimpSettings.accessToken?e.$root.labels.mailchimp_sign_out:e.$root.labels.mailchimp_sign_in)+"\n ")])])],1)]],2),e._v(" "),e.$root.licence.isLite?e._e():i("LicenceBlock")],1)],1)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1491),i(1492),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(747),o=i.n(a);t.default={mixins:[n.a],props:{lessonSpace:{type:Object}},data:function(){return{settings:this.lessonSpace}},methods:{redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-zoom/","_blank")}},components:{InlinePlaceholders:o.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"settings",attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.lesson_space_api_key+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.apiKey,callback:function(t){e.$set(e.settings,"apiKey",t)},expression:"settings.apiKey"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.appointment_space_name)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.appointment_space_name_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.spaceNameAppointments,callback:function(t){e.$set(e.settings,"spaceNameAppointments",t)},expression:"settings.spaceNameAppointments"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","categoryPlaceholders","locationPlaceholders","employeePlaceholders","customerPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%zoom_join_url%","%lesson_space_url%","%appointment_cancel_url%"],eventPlaceholders:["%event_cancel_url%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%","%google_meet_url_date%","%google_meet_url_date_time%","%microsoft_teams_url_date%","%microsoft_teams_url_date_time%","%lesson_space_url_date%","%lesson_space_url_date_time%"]},userTypeTab:"provider"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_space_name)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_space_name_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.spaceNameEvents,callback:function(t){e.$set(e.settings,"spaceNameEvents",t)},expression:"settings.spaceNameEvents"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["eventPlaceholders","locationPlaceholders","employeePlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%zoom_join_url%","%lesson_space_url%","%appointment_cancel_url%"],eventPlaceholders:["%event_cancel_url%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%","%google_meet_url_date%","%google_meet_url_date_time%","%microsoft_teams_url_date%","%microsoft_teams_url_date_time%","%lesson_space_url_date%","%lesson_space_url_date_time%"]},userTypeTab:"provider"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.lesson_space_pending)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.lesson_space_pending_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.pendingAppointments,callback:function(t){e.$set(e.settings,"pendingAppointments",t)},expression:"settings.pendingAppointments"}})],1)],1)],1)],1)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1494),i(1495),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(747),o=i.n(a);t.default={components:{InlinePlaceholders:o.a},mixins:[n.a],props:{appleCalendar:{type:Object}},data:function(){return{settings:this.appleCalendar,activeTab:"appointments"}},methods:{openDialog:function(e){this.$emit("openDialog",e)},onChangeAddAttendees:function(){!1===this.settings.addAttendees&&(this.settings.sendEventInvitationEmail=!1)},redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-apple-calendar/","_blank")}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"settings",attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.apple_client_id+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientID,callback:function(t){e.$set(e.settings,"clientID","string"==typeof t?t.trim():t)},expression:"settings.clientID"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.apple_credentials_obtain)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.icloud_app_specific_password+":"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:21}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientSecret,callback:function(t){e.$set(e.settings,"clientSecret","string"==typeof t?t.trim():t)},expression:"settings.clientSecret"}})],1),e._v(" "),i("el-col",{attrs:{span:3}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.apple_credentials_obtain)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.apple_redirect_uri)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.apple_redirect_uri_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.redirectURI,callback:function(t){e.$set(e.settings,"redirectURI",t)},expression:"settings.redirectURI"}})],1),e._v(" "),i("el-collapse",[i("el-collapse-item",{staticClass:"am-setting-box"},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.event_title_and_description)+":")])]),e._v(" "),[i("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip_apple)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.appointment,callback:function(t){e.$set(e.settings.title,"appointment",t)},expression:"settings.title.appointment"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip_apple)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.appointment,callback:function(t){e.$set(e.settings.description,"appointment",t)},expression:"settings.description.appointment"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","categoryPlaceholders","companyPlaceholders","customerPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1),e._v(" "),i("el-row",{staticClass:"am-customize-notifications-combined"},[i("el-col",{attrs:{span:16}},[i("div",{staticClass:"am-customize-notifications-combined-tooltip"},[i("strong",[e._v(e._s(e.$root.labels.ph_group_appointment_details))]),e._v("\n %group_appointment_details%\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),i("el-col",{staticClass:"am-align-right",attrs:{span:8}},[i("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupAppointmentPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip_apple)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.event,callback:function(t){e.$set(e.settings.title,"event",t)},expression:"settings.title.event"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip_apple)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.event,callback:function(t){e.$set(e.settings.description,"event",t)},expression:"settings.description.event"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:["eventPlaceholders","companyPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{eventPlaceholders:["%zoom_host_url%","%event_cancel_url%","%reservation_name%","%reservation_description%","%event_deposit_payment%","%event_tickets%","%attendee_code%","%coupon_used%"],employeePlaceholders:["%employee_panel_url%"]},userTypeTab:"provider"}})],1),e._v(" "),i("el-row",{staticClass:"am-customize-notifications-combined"},[i("el-col",{attrs:{span:16}},[i("div",{staticClass:"am-customize-notifications-combined-tooltip"},[i("strong",[e._v(e._s(e.$root.labels.ph_group_event_details))]),e._v("\n %group_event_details%\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),i("el-col",{staticClass:"am-align-right",attrs:{span:8}},[i("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupEventPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1)],1)]],2)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.insert_pending_appointments)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.insert_pending_appointments_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.insertPendingAppointments,callback:function(t){e.$set(e.settings,"insertPendingAppointments",t)},expression:"settings.insertPendingAppointments"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.customers_as_attendees)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.customers_as_attendees_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(t){return e.onChangeAddAttendees()}},model:{value:e.settings.addAttendees,callback:function(t){e.$set(e.settings,"addAttendees",t)},expression:"settings.addAttendees"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.remove_apple_busy_slots)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.remove_apple_busy_slots_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.removeAppleCalendarBusySlots,callback:function(t){e.$set(e.settings,"removeAppleCalendarBusySlots",t)},expression:"settings.removeAppleCalendarBusySlots"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.include_buffer_time_apple)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.include_buffer_time_apple_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.includeBufferTimeAppleCalendar,callback:function(t){e.$set(e.settings,"includeBufferTimeAppleCalendar",t)},expression:"settings.includeBufferTimeAppleCalendar"}})],1)],1)],1)],1)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1497),i(1498),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{socialLogin:{type:Object}},data:function(){var e=this;return{settings:this.socialLogin,rules:{facebookAppId:[{validator:function(t,i,n){e.settings.enableFacebookLogin&&!i?n(new Error(e.$root.labels.facebook_app_id_required)):n()},trigger:"blur"}],facebookAppSecret:[{validator:function(t,i,n){e.settings.enableFacebookLogin&&!i?n(new Error(e.$root.labels.facebook_app_secret_required)):n()},trigger:"blur"}]}}},methods:{openDialog:function(e){this.$emit("openDialog",e)},redirectToDocumentation:function(){window.open("https://wpamelia.com/social-login-google-facebook/","_blank")},validate:function(){var e=this;return new Promise(function(t){e.$refs.settings.validate(function(e){t(e)})})}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("div",{staticClass:"am-social-login"},[i("div",{staticClass:"am-social-login__google"},[i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:21}},[i("el-col",{attrs:{span:21}},[e._v("\n "+e._s(e.$root.labels.enable_google_social_login)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.enableGoogleLogin,callback:function(t){e.$set(e.settings,"enableGoogleLogin",t)},expression:"settings.enableGoogleLogin"}})],1)],1)],1),e._v(" "),i("div",[i("el-col",{attrs:{span:24}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.social_login_google_configuration)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",staticStyle:{height:"48px"},attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)]),e._v(" "),i("div",{staticClass:"am-social-login__facebook"},[i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:21}},[i("el-col",{attrs:{span:21}},[e._v("\n "+e._s(e.$root.labels.enable_facebook_social_login)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.enableFacebookLogin,callback:function(t){e.$set(e.settings,"enableFacebookLogin",t)},expression:"settings.enableFacebookLogin"}})],1)],1)],1),e._v(" "),i("div",[i("el-col",{attrs:{span:24}},[i("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.social_login_facebook_configuration)},slot:"content"}),e._v(" "),i("el-button",{staticClass:"am-google-calendar-button am-button-icon",staticStyle:{height:"48px"},attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)]),e._v(" "),e.settings.enableFacebookLogin?i("div",{staticClass:"am-social-login__facebook-id-secret"},[i("el-form-item",{attrs:{label:e.$root.labels.facebook_app_id+":",prop:"facebookAppId"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:24}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.facebookAppId,callback:function(t){e.$set(e.settings,"facebookAppId","string"==typeof t?t.trim():t)},expression:"settings.facebookAppId"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.facebook_app_secret+":",prop:"facebookAppSecret"}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:24}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.facebookAppSecret,callback:function(t){e.$set(e.settings,"facebookAppSecret","string"==typeof t?t.trim():t)},expression:"settings.facebookAppSecret"}})],1)],1)],1)],1):e._e()])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v("\n "+e._s(e.$root.labels.integrations_settings)+"\n ")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[!e.notInLicence()||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.google_calendar,name:"googleCalendar"}},[i("LicenceBlockHeader"),e._v(" "),i("google-calendar",{class:e.licenceClassDisabled(),attrs:{googleCalendar:e.googleCalendarSettings},on:{openDialog:e.openDialog}})],1):e._e(),e._v(" "),!e.notInLicence()||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.outlook_calendar,name:"outlookCalendar"}},[i("LicenceBlockHeader"),e._v(" "),i("outlook-calendar",{class:e.licenceClassDisabled(),attrs:{outlookCalendar:e.outlookCalendarSettings},on:{openDialog:e.openDialog}})],1):e._e(),e._v(" "),!e.notInLicence()||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.apple_calendar,name:"appleCalendar"}},[i("LicenceBlockHeader"),e._v(" "),i("apple-calendar",{class:e.licenceClassDisabled(),attrs:{appleCalendar:e.appleCalendarSettings},on:{openDialog:e.openDialog}})],1):e._e(),e._v(" "),!e.notInLicence()||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.zoom,name:"zoom"}},[i("LicenceBlockHeader"),e._v(" "),i("zoom",{class:e.licenceClassDisabled(),attrs:{zoom:e.zoomSettings}})],1):e._e(),e._v(" "),!e.notInLicence()||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.web_hooks,name:"webHooks"}},[i("LicenceBlockHeader"),e._v(" "),i("web-hooks",{class:e.licenceClassDisabled(),attrs:{webHooks:e.webHooksSettings}})],1):e._e(),e._v(" "),!e.notInLicence("starter")||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.marketing_tools,name:"marketing"}},[i("LicenceBlockHeader",{attrs:{licence:"starter"}}),e._v(" "),i("marketing",{ref:"marketing",class:e.licenceClassDisabled("starter"),attrs:{facebookPixel:e.facebookPixelSettings,googleAnalytics:e.googleAnalyticsSettings,customFields:e.customFields,googleTag:e.googleTagSettings,mailchimp:e.mailchimpSettings,"mailchimp-lists":e.mailchimpLists,"open-mailchimp-collapse":e.openMailchimpCollapse||e.openMailchimp},on:{disconnectMailchimp:e.disconnectMailchimp}})],1):e._e(),e._v(" "),!e.notInLicence()||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.social_login,name:"socialLogin"}},[i("LicenceBlockHeader"),e._v(" "),i("social-login",{ref:"socialLogin",class:e.licenceClassDisabled(),attrs:{"social-login":e.socialLoginSettings}})],1):e._e(),e._v(" "),!e.notInLicence("starter")||e.licenceVisible()?i("el-tab-pane",{attrs:{label:e.$root.labels.lesson_space,name:"lessonSpace"}},[i("LicenceBlockHeader",{attrs:{licence:"starter"}}),e._v(" "),i("lesson-space",{class:e.licenceClassDisabled("starter"),attrs:{lessonSpace:e.lessonSpaceSettings}})],1):e._e()],1)],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1501),i(1502),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654);t.default={mixins:[n.a],props:["labels"],data:function(){return{settings:Object.assign({},this.labels)}},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{goToCustomize:function(){window.location.search="?page=wpamelia-customize"},closeDialog:function(){this.$emit("closeDialogSettingsLabels")},onSubmit:function(){this.$emit("closeDialogSettingsLabels"),this.$emit("updateSettings",{labels:this.settings})}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.labels_settings))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{ref:"settings",attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_labels_settings)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.enable_labels_settings_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.enabled,callback:function(t){e.$set(e.settings,"enabled",t)},expression:"settings.enabled"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.label_employee+":"}},[i("el-input",{attrs:{disabled:!1===e.settings.enabled,placeholder:""},model:{value:e.settings.employee,callback:function(t){e.$set(e.settings,"employee",t)},expression:"settings.employee"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.label_employees+":"}},[i("el-input",{attrs:{disabled:!1===e.settings.enabled,placeholder:""},model:{value:e.settings.employees,callback:function(t){e.$set(e.settings,"employees",t)},expression:"settings.employees"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.label_service+":"}},[i("el-input",{attrs:{disabled:!1===e.settings.enabled,placeholder:""},model:{value:e.settings.service,callback:function(t){e.$set(e.settings,"service",t)},expression:"settings.service"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.label_services+":"}},[i("el-input",{attrs:{disabled:!1===e.settings.enabled,placeholder:""},model:{value:e.settings.services,callback:function(t){e.$set(e.settings,"services",t)},expression:"settings.services"}})],1),e._v(" "),i("div",{staticClass:"el-alert el-alert--warning is-light"},[i("i",{staticClass:"el-alert__icon el-icon-warning is-big"}),e._v(" "),i("div",{staticClass:"el-alert__content"},[i("p",{staticClass:"el-alert__description"},[e._v("\n "+e._s(e.$root.labels.general_labels_warning)+"\n "),i("a",{staticStyle:{"text-decoration":"underline",color:"inherit","font-weight":"600",cursor:"pointer"},on:{click:e.goToCustomize}},[e._v("\n "+e._s(e.$root.labels.customize_page)+"\n ")])]),e._v(" "),i("i",{staticClass:"el-alert__closebtn el-icon-close",staticStyle:{display:"none"}})])])],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1504),i(1505),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654),a=i(655),o=i(922),s=i.n(o),r=i(747),l=i.n(r),c=i(91);t.default={mixins:[c.a,n.a,a.a],props:{outlookEnabled:{type:Boolean,default:!1},notifications:{type:Object},ics:{type:Object},employees:{type:Array,default:function(){return[]}}},data:function(){return{activeTabRedirectUrls:"customer",activeTab:"appointment",bccEmails:[],bccNumbers:[],emptyPackageEmployees:[],selectedLanguage:"",settings:Object.assign({},this.notifications),icsSettings:Object.assign({},this.ics),options:{mailServices:[{label:this.$root.labels.php_mail,value:"php"},{label:this.$root.labels.wp_mail,value:"wp_mail"},{label:this.$root.labels.smtp,value:"smtp"},{label:this.$root.labels.mailgun,value:"mailgun"},{label:this.$root.labels.outlook_mail_api,value:"outlook"}],smtpSecureOptions:[{label:this.$root.labels.smtp_secure_ssl,value:"ssl"},{label:this.$root.labels.smtp_secure_tls,value:"tls"},{label:this.$root.labels.smtp_secure_disabled,value:!1}]},rules:{senderName:[{required:!0,message:this.$root.labels.sender_name_warning,trigger:"submit"}],senderEmail:[{required:!0,message:this.$root.labels.sender_email_warning,trigger:"submit"},{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}],replyTo:[{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}],smtpHost:[],smtpPort:[],smtpUsername:[],smtpPassword:[],mailgunApiKey:[],mailgunDomain:[]}}},updated:function(){this.inlineSVG()},mounted:function(){this.settings.bccEmail&&(this.bccEmails=this.settings.bccEmail.split(",")),this.settings.bccSms&&(this.bccNumbers=this.settings.bccSms.split(",")),this.settings.emptyPackageEmployees&&(this.emptyPackageEmployees=this.settings.emptyPackageEmployees.split(",").map(function(e){return parseInt(e)})),this.inlineSVG(),this.changeMailService()},methods:{getInlinePlaceholdersNames:function(){var e=["customerPlaceholders","companyPlaceholders"];switch(this.activeTab){case"event":return e.concat(["eventPlaceholders","customFieldsPlaceholders","employeePlaceholders","locationPlaceholders","couponsPlaceholders"]);case"appointment":return e.concat(["appointmentPlaceholders","customFieldsPlaceholders","employeePlaceholders","categoryPlaceholders","locationPlaceholders","couponsPlaceholders","extrasPlaceholders"])}return e},languageChanged:function(e){this.selectedLanguage=e},closeDialog:function(){this.$emit("closeDialogSettingsNotifications")},changeMailService:function(){this.clearValidation(),this.rules.smtpHost=[],this.rules.smtpPort=[],this.rules.smtpUsername=[],this.rules.smtpPassword=[],this.rules.mailgunApiKey=[],this.rules.mailgunDomain=[],"smtp"===this.settings.mailService&&(this.rules.smtpHost=[{required:!0,message:this.$root.labels.smtp_host_warning,trigger:"submit"}],this.rules.smtpPort=[{required:!0,message:this.$root.labels.smtp_port_warning,trigger:"submit"}],this.rules.smtpUsername=[{required:!0,message:this.$root.labels.smtp_username_warning,trigger:"submit"}],this.rules.smtpPassword=[{required:!0,message:this.$root.labels.smtp_password_warning,trigger:"submit"}]),"mailgun"===this.settings.mailService&&(this.rules.mailgunApiKey=[{required:!0,message:this.$root.labels.mailgun_api_key_warning,trigger:"submit"}],this.rules.mailgunDomain=[{required:!0,message:this.$root.labels.mailgun_domain_warning,trigger:"submit"}])},emailsChanged:function(e){!e.length||""!==e[e.length-1].trim()&&/(.+)@(.+){2,}\.(.+){2,}/.test(e[e.length-1])||e.pop()},numbersChanged:function(e){!e.length||""!==e[e.length-1].trim()&&/^\+/.test(e[e.length-1])||e.pop()},onSubmit:function(){var e=this;this.$refs.settings.validate(function(t){t&&(e.$emit("closeDialogSettingsNotifications"),e.$emit("updateSettings",{notifications:Object.assign(e.settings,{bccEmail:e.bccEmails.join(","),bccSms:e.bccNumbers.join(","),emptyPackageEmployees:e.emptyPackageEmployees.join(",")}),ics:e.icsSettings}))})},clearValidation:function(){this.$refs.settings.clearValidate()}},computed:{ics_description:{get:function(){if(this.selectedLanguage&&this.icsSettings.description.translations){var e=this.icsSettings.description.translations;if(e[this.activeTab]&&e[this.activeTab][this.selectedLanguage])return e[this.activeTab][this.selectedLanguage]}return this.icsSettings.description[this.activeTab]},set:function(e){if(this.selectedLanguage){this.icsSettings.description.translations=this.icsSettings.description.translations?this.icsSettings.description.translations:"{}";var t=this.icsSettings.description.translations;t[this.activeTab]||(t[this.activeTab]={}),t[this.activeTab][this.selectedLanguage]=e,this.icsSettings.description.translations=Object.assign({},t)}else this.icsSettings.description[this.activeTab]=e}}},components:{SelectTranslate:s.a,InlinePlaceholders:l.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.notifications_settings))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-form-item",{attrs:{label:e.$root.labels.mail_service+":"}},[i("el-select",{on:{change:function(t){return e.changeMailService()}},model:{value:e.settings.mailService,callback:function(t){e.$set(e.settings,"mailService",t)},expression:"settings.mailService"}},e._l(e.options.mailServices,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value,disabled:e.$root.licence.isLite?"mailgun"===t.value||"smtp"===t.value:!!e.$root.licence.isStarter&&"outlook"===t.value}})}),1)],1),e._v(" "),"outlook"!==e.settings.mailService||e.outlookEnabled?e._e():i("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.outlook_email_warning,closable:!1}}),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_host+":",prop:"smtpHost"}},[i("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"smtpHost")}},model:{value:e.settings.smtpHost,callback:function(t){e.$set(e.settings,"smtpHost",t)},expression:"settings.smtpHost"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_port+":",prop:"smtpPort"}},[i("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"smtpPort")}},model:{value:e.settings.smtpPort,callback:function(t){e.$set(e.settings,"smtpPort",t)},expression:"settings.smtpPort"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_secure+":"}},[i("el-select",{model:{value:e.settings.smtpSecure,callback:function(t){e.$set(e.settings,"smtpSecure",t)},expression:"settings.smtpSecure"}},e._l(e.options.smtpSecureOptions,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_username+":",prop:"smtpUsername"}},[i("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"smtpUsername")}},model:{value:e.settings.smtpUsername,callback:function(t){e.$set(e.settings,"smtpUsername",t)},expression:"settings.smtpUsername"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_password+":",prop:"smtpPassword"}},[i("el-input",{attrs:{type:"password"},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"smtpPassword")}},model:{value:e.settings.smtpPassword,callback:function(t){e.$set(e.settings,"smtpPassword",t)},expression:"settings.smtpPassword"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"mailgun"===e.settings.mailService,expression:"settings.mailService === 'mailgun'"}],attrs:{label:e.$root.labels.mailgun_api_key+":",prop:"mailgunApiKey"}},[i("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"mailgunApiKey")}},model:{value:e.settings.mailgunApiKey,callback:function(t){e.$set(e.settings,"mailgunApiKey",t)},expression:"settings.mailgunApiKey"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"mailgun"===e.settings.mailService,expression:"settings.mailService === 'mailgun'"}],attrs:{label:e.$root.labels.mailgun_domain+":",prop:"mailgunDomain"}},[i("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"mailgunDomain")}},model:{value:e.settings.mailgunDomain,callback:function(t){e.$set(e.settings,"mailgunDomain",t)},expression:"settings.mailgunDomain"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.sender_name+":",prop:"senderName"}},[i("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"senderName")}},model:{value:e.settings.senderName,callback:function(t){e.$set(e.settings,"senderName",t)},expression:"settings.senderName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.sender_email+":",prop:"senderEmail"}},[i("el-input",{attrs:{placeholder:e.$root.labels.email_placeholder},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"senderEmail")}},model:{value:e.settings.senderEmail,callback:function(t){e.$set(e.settings,"senderEmail",t)},expression:"settings.senderEmail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.reply_to+":",prop:"replyTo"}},[i("el-input",{attrs:{placeholder:e.$root.labels.email_placeholder},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"replyTo")}},model:{value:e.settings.replyTo,callback:function(t){e.$set(e.settings,"replyTo",t)},expression:"settings.replyTo"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"mailgun"===e.settings.mailService,expression:"settings.mailService === 'mailgun'"}]},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.endpoint)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.endpoint_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.mailgunEndpoint,callback:function(t){e.$set(e.settings,"mailgunEndpoint",t)},expression:"settings.mailgunEndpoint"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.notify_customers_default))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.notifyCustomers,callback:function(t){e.$set(e.settings,"notifyCustomers",t)},expression:"settings.notifyCustomers"}})],1)],1)],1),e._v(" "),i("el-collapse",[i("el-collapse-item",{staticClass:"am-setting-box"},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.redirect_urls)+":")])]),e._v(" "),[i("el-tabs",{model:{value:e.activeTabRedirectUrls,callback:function(t){e.activeTabRedirectUrls=t},expression:"activeTabRedirectUrls"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.customer,name:"customer"}},[i("el-form-item",{attrs:{label:e.$root.labels.cancel_success_url+":"}},[i("el-input",{attrs:{placeholder:e.$root.labels.cancel_url_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.cancelSuccessUrl,callback:function(t){e.$set(e.settings,"cancelSuccessUrl",t)},expression:"settings.cancelSuccessUrl"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.cancel_error_url)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.cancel_error_url_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{placeholder:e.$root.labels.cancel_url_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.cancelErrorUrl,callback:function(t){e.$set(e.settings,"cancelErrorUrl",t)},expression:"settings.cancelErrorUrl"}})],1)],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.employee,name:"employee"}},[i("el-form-item",{attrs:{label:e.$root.labels.approve_appointment_success_url+":"}},[i("el-input",{attrs:{placeholder:e.$root.labels.cancel_url_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.approveSuccessUrl,callback:function(t){e.$set(e.settings,"approveSuccessUrl",t)},expression:"settings.approveSuccessUrl"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.approve_appointment_error_url+":"}},[i("el-input",{attrs:{placeholder:e.$root.labels.cancel_url_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.approveErrorUrl,callback:function(t){e.$set(e.settings,"approveErrorUrl",t)},expression:"settings.approveErrorUrl"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.reject_appointment_success_url+":"}},[i("el-input",{attrs:{placeholder:e.$root.labels.cancel_url_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.rejectSuccessUrl,callback:function(t){e.$set(e.settings,"rejectSuccessUrl",t)},expression:"settings.rejectSuccessUrl"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.reject_appointment_error_url+":"}},[i("el-input",{attrs:{placeholder:e.$root.labels.cancel_url_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.rejectErrorUrl,callback:function(t){e.$set(e.settings,"rejectErrorUrl",t)},expression:"settings.rejectErrorUrl"}})],1)],1)],1)]],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"placeholder",prop:"bccEmail"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.bcc_email)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.bcc_email_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{staticClass:"am-setting-notifications-select",attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":"","no-data-text":e.$root.labels.enter_email_then_press_enter_to_add},on:{change:e.emailsChanged},model:{value:e.bccEmails,callback:function(t){e.bccEmails=t},expression:"bccEmails"}},e._l(e.bccEmails,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})}),1)],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?i("el-form-item",{attrs:{label:"placeholder",prop:"emptyPackageEmployees"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.empty_package_email)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.empty_package_email_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{staticClass:"am-setting-notifications-select",attrs:{multiple:"",filterable:""},model:{value:e.emptyPackageEmployees,callback:function(t){e.emptyPackageEmployees=t},expression:"emptyPackageEmployees"}},e._l(e.employees,function(e){return i("el-option",{key:e.id,attrs:{label:e.firstName+" "+e.lastName,value:e.id}})}),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"placeholder",prop:"bccSms"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.bcc_sms)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.bcc_sms_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{staticClass:"am-setting-notifications-select",attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":"","no-data-text":e.$root.labels.create},on:{change:e.numbersChanged},model:{value:e.bccNumbers,callback:function(t){e.bccNumbers=t},expression:"bccNumbers"}},e._l(e.bccNumbers,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})}),1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.send_sms_balance_low_email)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.send_sms_balance_low_email_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.smsBalanceEmail.enabled,callback:function(t){e.$set(e.settings.smsBalanceEmail,"enabled",t)},expression:"settings.smsBalanceEmail.enabled"}})],1)],1),e._v(" "),e.settings.smsBalanceEmail.enabled?i("el-row",{staticStyle:{"margin-top":"16px"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.send_sms_balance_low_minimum)+":\n ")]),e._v(" "),i("el-input-number",{attrs:{min:1},model:{value:e.settings.smsBalanceEmail.minimum,callback:function(t){e.$set(e.settings.smsBalanceEmail,"minimum",t)},expression:"settings.smsBalanceEmail.minimum"}})],1)],1)],1):e._e(),e._v(" "),e.settings.smsBalanceEmail.enabled?i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.send_sms_balance_low_to_email)+":\n ")]),e._v(" "),i("el-input",{model:{value:e.settings.smsBalanceEmail.email,callback:function(t){e.$set(e.settings.smsBalanceEmail,"email",t)},expression:"settings.smsBalanceEmail.email"}})],1)],1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("basic")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.send_invoice_by_default)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.send_invoice_by_default_description)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.notInLicence("basic")},model:{value:e.settings.sendInvoice,callback:function(t){e.$set(e.settings,"sendInvoice",t)},expression:"settings.sendInvoice"}})],1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"basic"}})],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.send_ics_attachment_approved)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.send_ics_attachment_approved_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.icsSettings.sendIcsAttachment,callback:function(t){e.$set(e.icsSettings,"sendIcsAttachment",t)},expression:"icsSettings.sendIcsAttachment"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.send_ics_attachment_pending)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.send_ics_attachment_pending_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.icsSettings.sendIcsAttachmentPending,callback:function(t){e.$set(e.icsSettings,"sendIcsAttachmentPending",t)},expression:"icsSettings.sendIcsAttachmentPending"}})],1)],1)],1),e._v(" "),e.icsSettings.sendIcsAttachment||e.icsSettings.sendIcsAttachmentPending?i("el-collapse",[i("el-collapse-item",{staticClass:"am-setting-box"},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.set_ics_description)+":")])]),e._v(" "),[e.$root.settings.general.usedLanguages.length?i("select-translate",{on:{languageChanged:e.languageChanged}}):e._e(),e._v(" "),i("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointment"}},[i("el-form-item",{attrs:{label:e.$root.labels.description+":"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.ics_description,callback:function(t){e.ics_description=t},expression:"ics_description"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:e.getInlinePlaceholdersNames(),excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%zoom_join_url%","%lesson_space_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1)],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"event"}},[i("el-form-item",{attrs:{label:e.$root.labels.description+":"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.ics_description,callback:function(t){e.ics_description=t},expression:"ics_description"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:e.getInlinePlaceholdersNames(),excludedPlaceholders:{eventPlaceholders:["%event_cancel_url%","%lesson_space_url_date%","%lesson_space_url_date_time%","%google_meet_url_date%","%google_meet_url_date_time%","%microsoft_teams_url_date%","%microsoft_teams_url_date_time%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1)],1)],1)]],2)],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1507),i(1520),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(91),a=i(654),o=i(657),s=i(1508),r=i.n(s),l=i(922),c=i.n(l),u=i(1511),d=i.n(u),p=i(658);t.default={mixins:[n.a,{data:function(){return{bookingAppointmentStatuses:[{value:"pending",label:this.$root.labels.pending},{value:"approved",label:this.$root.labels.approved},{value:"canceled",label:this.$root.labels.canceled},{value:"rejected",label:this.$root.labels.rejected}],bookingEventStatuses:[{value:"approved",label:this.$root.labels.approved},{value:"pending",label:this.$root.labels.pending},{value:"canceled",label:this.$root.labels.canceled}],bookingPackageStatuses:[{value:"approved",label:this.$root.labels.customer_package_purchased},{value:"canceled",label:this.$root.labels.canceled}],paymentStatuses:[{value:"pending",label:this.$root.labels.pending},{value:"paid",label:this.$root.labels.paid}],orderStatuses:[{value:"checkout-draft",label:this.$root.labels.wc_status_draft},{value:"pending",label:this.$root.labels.wc_status_pending},{value:"on-hold",label:this.$root.labels.wc_status_on_hold},{value:"processing",label:this.$root.labels.wc_status_processing},{value:"completed",label:this.$root.labels.wc_status_completed},{value:"refunded",label:this.$root.labels.wc_status_refunded},{value:"cancelled",label:this.$root.labels.wc_status_cancelled},{value:"failed",label:this.$root.labels.wc_status_failed}],bookableTypes:[{value:"appointment",label:this.$root.labels.appointment},{value:"package",label:this.$root.labels.package},{value:"event",label:this.$root.labels.event}]}},methods:{getBookingStatusLabel:function(e,t){var i="";switch(t){case"appointment":i=this.bookingAppointmentStatuses.find(function(t){return t.value===e});break;case"event":i=this.bookingEventStatuses.find(function(t){return t.value===e});break;case"package":i=this.bookingPackageStatuses.find(function(t){return t.value===e})}return i&&void 0!==i?i.label:""},getPaymentStatusLabel:function(e){var t=this.paymentStatuses.find(function(t){return t.value===e});return void 0!==t?t.label:""},getOrderStatusLabel:function(e){var t=this.orderStatuses.find(function(t){return t.value===e});return void 0!==t?t.label:""}}},a.a,o.a,p.a],props:{customFields:{default:function(){return[]}},categories:{default:function(){return[]}},coupons:{default:function(){return[]}},payments:{type:Object},defaultAppointmentStatus:"",squareLocations:{type:Array,default:function(){return[]}},accessTokenSet:{type:Boolean,default:!1},openSquareCollapse:{type:Boolean,default:!1}},data:function(){return{activeWooCommerceRuleTab:"appointments",language:"",settings:Object.assign({},this.payments),options:{priceSeparators:[{label:this.$root.labels.comma_dot,value:1,example:"15,000.00"},{label:this.$root.labels.dot_comma,value:2,example:"15.000,00"},{label:this.$root.labels.space_dot,value:3,example:"15 000.00"},{label:this.$root.labels.space_comma,value:4,example:"15 000,00"}],priceSymbolPositions:[{label:this.$root.labels.before,value:"before",example:"$100"},{label:this.$root.labels.before_with_space,value:"beforeWithSpace",example:"$ 100"},{label:this.$root.labels.after,value:"after",example:"100$"},{label:this.$root.labels.after_with_space,value:"afterWithSpace",example:"100 $"}],sandboxMode:[{label:this.$root.labels.disabled,value:!1},{label:this.$root.labels.enabled,value:!0}]},rules:{stripe:{},mollie:{},payPal:{},square:{}},stripeCollapse:"",payPalCollapse:"",wooCommerceCollapse:"",mollieCollapse:"",squareCollapse:"",razorpayCollapse:"",activeTab:"appointments",squareLoading:!1,squareGrantedAccess:!1,squareError:"",squareBtnDisabled:!1,squarePhpVersion:!0}},mounted:function(){var e=this;this.handleStripeValidationRules(),this.handlePayPalValidationRules(),this.handleMollieValidationRules();var t=this.defaultPaymentMethods.find(function(t){return t.value===e.settings.defaultPaymentMethod});this.settings.defaultPaymentMethod=t?t.value:this.defaultPaymentMethods[0].value,this.openSquareCollapse&&(this.squareCollapse="square",this.settings.stripe.enabled=!1,this.settings.wc.enabled=!1,this.settings.razorpay.enabled=!1,this.settings.mollie.enabled=!1,this.$refs.square&&this.$refs.square.$el.scrollIntoView({behavior:"smooth"}));var i=this.settings.square.phpVersion;this.squarePhpVersion=!i||i.localeCompare("7.4",void 0,{numeric:!0,sensitivity:"base"})>-1},methods:{languageChanged:function(e){this.language=e},closeDialog:function(){this.$emit("closeDialogSettingsPayments")},logOutFromSquare:function(){var e=this;this.squareLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/square/disconnect").then(function(){e.settings.square.accessToken=null,e.squareLoading=!1,e.notify(e.$root.labels.success,e.$root.labels.square_disconnected,"success")}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error"),e.squareLoading=!1})},getSquareAuthUrl:function(){var e=this;this.squareLoading=!0,this.$http.get(this.$root.getAjaxUrl+"/square/authorization/url").then(function(e){window.location.href=e.data.data.authUrl}).catch(function(t){e.squareLoading=!1,e.notify(e.$root.labels.error,t.message,"error")})},changeSquareTestMode:function(){var e=this;this.squareBtnDisabled=!0,this.$emit("updateSettings",{payments:this.settings},null,!0,function(){e.squareBtnDisabled=!1}),this.settings.square.accessToken&&this.logOutFromSquare()},onSubmit:function(){var e=this,t=Object.fromEntries(this.$refs.metaDataAppointments.stripeMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]})),i=this.$root.licence.isPro||this.$root.licence.isDeveloper?Object.fromEntries(this.$refs.metaDataPackages.stripeMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]})):{},n=Object.fromEntries(this.$refs.metaDataEvents.stripeMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]})),a=Object.fromEntries(this.$refs.metaDataAppointments.mollieMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]})),o=this.$root.licence.isPro||this.$root.licence.isDeveloper?Object.fromEntries(this.$refs.metaDataPackages.mollieMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]})):{},s=Object.fromEntries(this.$refs.metaDataEvents.mollieMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]})),r=Object.fromEntries(this.$refs.metaDataAppointments.razorpayMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]})),l=this.$root.licence.isPro||this.$root.licence.isDeveloper?Object.fromEntries(this.$refs.metaDataPackages.razorpayMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]})):{},c=Object.fromEntries(this.$refs.metaDataEvents.razorpayMetaData.filter(function(e){var t=e.key,i=e.value;return""!==t&&""!==i}).map(function(e){return[e.key,e.value]}));this.settings.stripe.metaData.appointment=_.isEmpty(t)?null:t,this.settings.stripe.metaData.package=_.isEmpty(i)?null:i,this.settings.stripe.metaData.event=_.isEmpty(n)?null:n,this.settings.mollie.metaData.appointment=_.isEmpty(a)?null:a,this.settings.mollie.metaData.package=_.isEmpty(o)?null:o,this.settings.mollie.metaData.event=_.isEmpty(s)?null:s,this.settings.razorpay.metaData.appointment=_.isEmpty(r)?null:r,this.settings.razorpay.metaData.package=_.isEmpty(l)?null:l,this.settings.razorpay.metaData.event=_.isEmpty(c)?null:c,""===this.settings.symbol&&(this.settings.symbol=this.currencies.filter(function(t){return t.code===e.settings.currency})[0].symbol),this.settings.paymentLinks.redirectUrl=this.settings.paymentLinks.redirectUrl?this.settings.paymentLinks.redirectUrl:this.$root.getSiteUrl,this.$refs.settings.validate(function(t){if(!t)return e.settings.stripe.enabled&&(e.settings.stripe.testMode||""!==e.settings.stripe.livePublishableKey&&""!==e.settings.stripe.liveSecretKey||(e.stripeCollapse="stripe"),!e.settings.stripe.testMode||""!==e.settings.stripe.testPublishableKey&&""!==e.settings.stripe.testSecretKey||(e.stripeCollapse="stripe")),e.settings.mollie.enabled&&(e.settings.mollie.testMode||""!==e.settings.mollie.liveApiKey||(e.mollieCollapse="mollie"),e.settings.mollie.testMode&&""===e.settings.mollie.testApiKey&&(e.mollieCollapse="mollie")),e.settings.payPal.enabled&&(e.settings.payPal.sandboxMode||""!==e.settings.payPal.liveApiClientId&&""!==e.settings.payPal.liveApiSecret||(e.payPalCollapse="payPal"),!e.settings.payPal.sandboxMode||""!==e.settings.payPal.testApiClientId&&""!==e.settings.payPal.testApiSecret||(e.payPalCollapse="payPal")),e.settings.razorpay.enabled&&(e.settings.razorpay.sandboxMode||""!==e.settings.razorpay.liveApiClientId&&""!==e.settings.razorpay.liveApiSecret||(e.razorpayCollapse="razorpay"),!e.settings.razorpay.sandboxMode||""!==e.settings.razorpay.testApiClientId&&""!==e.settings.razorpay.testApiSecret||(e.razorpayCollapse="razorpay")),!1;if(e.squareError="",e.settings.square&&e.settings.square.enabled&&!e.settings.square.accessToken)return e.squareError=e.$root.labels.square_login_error,void(e.squareCollapse="square");if(e.settings.square&&e.settings.square.enabled&&e.settings.square.accessToken&&!e.settings.square.locationId)return e.squareError=e.$root.labels.square_location_error,void(e.squareCollapse="square");if(e.settings.square&&e.settings.square.enabled&&e.settings.square.locationId){var i=e.squareLocations.find(function(t){return t.id===e.settings.square.locationId});if(i&&i.currency!==e.settings.currency)return e.$refs.square.$el.scrollIntoView({behavior:"smooth"}),e.squareError=e.$root.labels.square_currency_error,void(e.squareCollapse="square")}e.settings.stripe.connect.amount||(e.settings.stripe.connect.amount=0),e.$emit("closeDialogSettingsPayments"),e.$emit("updateSettings",{payments:e.settings})})},checkOnSitePayment:function(){!1===this.settings.razorpay.enabled&&!1===this.settings.mollie.enabled&&!1===this.settings.square.enabled&&!1===this.settings.payPal.enabled&&!1===this.settings.stripe.enabled&&!1===this.settings.wc.enabled&&(this.settings.onSite=!0)},toggleOnSite:function(){this.clearValidation(),"onSite"===this.settings.defaultPaymentMethod&&!1===this.settings.onSite&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},isStripeDisabled:function(){return this.settings.wc.enabled||this.settings.mollie.enabled||this.settings.square.enabled},toggleStripe:function(){this.checkOnSitePayment(),this.handleStripeValidationRules(),!1===this.settings.stripe.enabled&&(this.stripeCollapse=""),"stripe"===this.settings.defaultPaymentMethod&&!1===this.settings.stripe.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},togglePayPal:function(){this.checkOnSitePayment(),this.handlePayPalValidationRules(),this.handleMollieValidationRules(),!1===this.settings.payPal.enabled&&(this.payPalCollapse=""),"payPal"===this.settings.defaultPaymentMethod&&!1===this.settings.payPal.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},toggleWooCommerce:function(){this.settings.wc.enabled||(this.settings.onSite=!0),this.settings.stripe.enabled=!1,this.settings.payPal.enabled=!1,this.settings.mollie.enabled=!1,this.settings.razorpay.enabled=!1,this.settings.square.enabled=!1,"wc"===this.settings.defaultPaymentMethod&&!1===this.settings.wc.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},toggleMollie:function(){this.settings.stripe.enabled=!1,this.settings.payPal.enabled=!1,this.settings.wc.enabled=!1,this.settings.razorpay.enabled=!1,this.settings.square.enabled=!1,this.settings.mollie.enabled||this.settings.square.enabled||(this.settings.onSite=!0),"mollie"===this.settings.defaultPaymentMethod&&!1===this.settings.mollie.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},toggleSquare:function(){!1===this.settings.square.enabled&&(this.squareError=""),this.settings.stripe.enabled=!1,this.settings.wc.enabled=!1,this.settings.razorpay.enabled=!1,this.settings.mollie.enabled=!1,this.checkOnSitePayment(),"square"===this.settings.defaultPaymentMethod&&!1===this.settings.square.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},toggleRazorpay:function(){this.checkOnSitePayment(),this.handleRazorpayValidationRules(),this.handleMollieValidationRules(),!1===this.settings.razorpay.enabled&&(this.razorpayCollapse=""),"razorpay"===this.settings.defaultPaymentMethod&&!1===this.settings.razorpay.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},handleStripeValidationRules:function(){this.clearValidation(),!0===this.settings.stripe.enabled?!0===this.settings.stripe.testMode?this.rules.stripe={testPublishableKey:[{required:!0,message:this.$root.labels.stripe_test_publishable_key_error,trigger:"submit"}],testSecretKey:[{required:!0,message:this.$root.labels.stripe_test_secret_key_error,trigger:"submit"}]}:this.rules.stripe={livePublishableKey:[{required:!0,message:this.$root.labels.stripe_live_publishable_key_error,trigger:"submit"}],liveSecretKey:[{required:!0,message:this.$root.labels.stripe_live_secret_key_error,trigger:"submit"}]}:this.rules.stripe={}},handlePayPalValidationRules:function(){this.clearValidation(),!0===this.settings.payPal.enabled?!0===this.settings.payPal.sandboxMode?this.rules.payPal={testApiClientId:[{required:!0,message:this.$root.labels.payPal_test_client_id_error,trigger:"submit"}],testApiSecret:[{required:!0,message:this.$root.labels.payPal_test_secret_error,trigger:"submit"}]}:this.rules.payPal={liveApiClientId:[{required:!0,message:this.$root.labels.payPal_live_client_id_error,trigger:"submit"}],liveApiSecret:[{required:!0,message:this.$root.labels.payPal_live_secret_error,trigger:"submit"}]}:this.rules.payPal={}},handleMollieValidationRules:function(){this.clearValidation(),!0===this.settings.mollie.enabled?!0===this.settings.mollie.testMode?this.rules.mollie={testApiKey:[{required:!0,message:this.$root.labels.mollie_test_api_key_error,trigger:"submit"}]}:this.rules.mollie={liveApiKey:[{required:!0,message:this.$root.labels.mollie_live_api_key_error,trigger:"submit"}]}:this.rules.mollie={}},handleRazorpayValidationRules:function(){this.clearValidation(),!0===this.settings.razorpay.enabled?!0===this.settings.razorpay.testMode?this.rules.razorpay={testKeyId:[{required:!0,message:this.$root.labels.razorpay_test_client_id_error,trigger:"submit"}],testKeySecret:[{required:!0,message:this.$root.labels.razorpay_test_secret_error,trigger:"submit"}]}:this.rules.razorpay={liveKeyId:[{required:!0,message:this.$root.labels.razorpay_live_client_id_error,trigger:"submit"}],liveKeySecret:[{required:!0,message:this.$root.labels.razorpay_live_secret_error,trigger:"submit"}]}:this.rules.razorpay={}},clearValidation:function(){void 0!==this.$refs.settings&&this.$refs.settings.clearValidate()}},computed:{showStripeAlert:function(){return"https:"!==location.protocol},defaultPaymentMethods:function(){var e=[];return this.settings.onSite&&e.push({label:this.$root.labels.on_site,value:"onSite"}),this.settings.payPal.enabled&&e.push({label:this.$root.labels.payPal,value:"payPal"}),this.settings.stripe.enabled&&e.push({label:this.$root.labels.stripe,value:"stripe"}),this.settings.wc.enabled&&e.push({label:this.$root.labels.wc_name,value:"wc"}),this.settings.mollie.enabled&&e.push({label:this.$root.labels.mollie,value:"mollie"}),this.settings.razorpay.enabled&&e.push({label:this.$root.labels.razorpay,value:"razorpay"}),this.settings.square.enabled&&e.push({label:this.$root.labels.square,value:"square"}),e}},watch:{"settings.currency":function(){var e=this;this.settings.symbol=this.currencies.find(function(t){return t.code===e.settings.currency}).symbol}},components:{PaymentsMetaData:r.a,SelectTranslate:c.a,Extensions:d.a}}},function(e,t,i){var n=i(90)(i(1509),i(1510),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(747),a=i.n(n),o=i(734),s=(i.n(o),i(738)),r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var s,r=e[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&r.return&&r.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default={mixins:[s.a],name:"PaymentsMetaData",props:{customFields:{default:function(){return[]}},categories:{default:function(){return[]}},coupons:{default:function(){return[]}},data:Object,language:"",tab:String},data:function(){return{description_wc_text:"",description_translated_wc_text:{},stripeMetaData:null,mollieMetaData:null,razorpayMetaData:null}},created:function(){this.textMode=!0,this.description_wc_text=this.description_wc,this.description_translated_wc_text=JSON.parse(JSON.stringify(this.description_translated_wc)),this.description_wc&&this.description_wc.startsWith("\x3c!-- Content --\x3e")?this.textMode=!1:void 0!==this.description_wc&&null!==this.description_wc&&(this.textMode=!0,this.description_wc=this.process(this.description_wc.replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")),this.description_wc_text=this.description_wc)},mounted:function(){this.stripeMetaData=Object.entries(this.metaDataForStripe).map(function(e){var t=r(e,2);return{key:t[0],value:t[1]}}),this.stripeMetaData.push({key:"",value:""}),this.mollieMetaData=Object.entries(this.metaDataForMollie).map(function(e){var t=r(e,2);return{key:t[0],value:t[1]}}),this.mollieMetaData.push({key:"",value:""}),this.razorpayMetaData=Object.entries(this.metaDataForRazorpay).map(function(e){var t=r(e,2);return{key:t[0],value:t[1]}}),this.razorpayMetaData.push({key:"",value:""}),void 0===this.description_wc||null===this.description_wc||this.description_wc.startsWith("\x3c!-- Content --\x3e")?this.textMode=!1:(this.textMode=!0,this.description_wc=this.process(this.description_wc.replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")),this.description_wc_text=this.description_wc)},computed:{description_wc:{get:function(){return this.data.wc.checkoutData[this.tab]},set:function(e){this.data.wc.checkoutData[this.tab]=e}},description_translated_wc:{get:function(){return this.data.wc.checkoutData.translations[this.tab]},set:function(e){this.data.wc.checkoutData.translations[this.tab]=e}},description_paypal:{get:function(){return this.data.payPal.description[this.tab]},set:function(e){this.data.payPal.description[this.tab]=e}},description_stripe:{get:function(){return this.data.stripe.description[this.tab]},set:function(e){this.data.stripe.description[this.tab]=e}},description_mollie:{get:function(){return this.data.mollie.description[this.tab]},set:function(e){this.data.mollie.description[this.tab]=e}},description_square:{get:function(){return this.data.square.description[this.tab]},set:function(e){this.data.square.description[this.tab]=e}},description_razorpay:{get:function(){return this.data.razorpay.description[this.tab]},set:function(e){this.data.razorpay.description[this.tab]=e}},name_razorpay:{get:function(){return this.data.razorpay.name[this.tab]},set:function(e){this.data.razorpay.name[this.tab]=e}},metaDataForStripe:{get:function(){return null!=this.data.stripe.metaData[this.tab]?this.data.stripe.metaData[this.tab]:{}}},metaDataForMollie:{get:function(){return null!=this.data.mollie.metaData[this.tab]?this.data.mollie.metaData[this.tab]:{}}},metaDataForRazorpay:{get:function(){return null!=this.data.razorpay.metaData[this.tab]?this.data.razorpay.metaData[this.tab]:{}}}},methods:{getExcludedPaymentPlaceholders:function(){var e=["%payment_link_woocommerce%","%payment_link_paypal%","%payment_link_stripe%","%payment_link_mollie%","%payment_link_razorpay%","%payment_link_square%"];switch(this.tab){case"packages":return e.concat(["%appointment_deposit_payment%","%event_deposit_payment%"]);case"events":return e.concat(["%appointment_deposit_payment%","%package_deposit_payment%"]);case"appointments":return e.concat(["%package_deposit_payment%","%event_deposit_payment%"])}return e},getExcludedAppointmentPlaceholders:function(){var e=["%zoom_host_url%","%zoom_join_url%","%lesson_space_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%","%group_appointment_details%"];return this.data.wc.enabled&&(e.push("%appointment_id%"),e.push("%recurring_appointments_details%")),e},getInlinePlaceholdersNames:function(){var e=["customerPlaceholders","companyPlaceholders"];switch(this.tab){case"package":return e.concat(["paymentPlaceholders","packagePlaceholders"]);case"event":return e.concat(["paymentPlaceholders","eventPlaceholders","customFieldsPlaceholders","employeePlaceholders","locationPlaceholders","couponsPlaceholders"]);case"appointment":return e.concat(["paymentPlaceholders","appointmentPlaceholders","customFieldsPlaceholders","employeePlaceholders","categoryPlaceholders","locationPlaceholders","couponsPlaceholders","extrasPlaceholders"]);case"cart":return e.concat(["cartPlaceholders"])}return e},addMetaDataPair:function(e){this[e+"MetaData"].push({key:"",value:""})},deleteMetaDataPair:function(e,t){this[e+"MetaData"].splice(t,1)}},components:{InlinePlaceholders:a.a,quillEditor:o.quillEditor}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{directives:[{name:"show",rawName:"v-show",value:e.data.stripe.enabled,expression:"data.stripe.enabled"}]},[i("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[i("el-col",{attrs:{span:11}},[i("el-form-item",{attrs:{label:e.$root.labels.name+":"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.value+": ")+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.$root.labels.metadata_value_tooltip))]),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)])],1),e._v(" "),e._l(e.stripeMetaData,function(t,n){return i("el-row",{key:n,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{span:10}},[i("el-input",{attrs:{type:"text",name:t.name},model:{value:e.stripeMetaData[n].key,callback:function(t){e.$set(e.stripeMetaData[n],"key",t)},expression:"stripeMetaData[index].key"}})],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-input",{attrs:{type:"text"},model:{value:e.stripeMetaData[n].value,callback:function(t){e.$set(e.stripeMetaData[n],"value",t)},expression:"stripeMetaData[index].value"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("span",{on:{click:function(t){return e.deleteMetaDataPair("stripe",n)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])])],1)}),e._v(" "),i("el-row",{attrs:{gutter:24}},[i("el-col",[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addMetaDataPair("stripe")}}},[e._v(e._s(e.$root.labels.add_metaData))])],1)],1)],2),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.data.mollie.enabled,expression:"data.mollie.enabled"}]},[i("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[i("el-col",{attrs:{span:11}},[i("el-form-item",{attrs:{label:e.$root.labels.name+":"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.value+": ")+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.$root.labels.metadata_value_tooltip))]),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)])],1),e._v(" "),e._l(e.mollieMetaData,function(t,n){return i("el-row",{key:n,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{span:10}},[i("el-input",{attrs:{type:"text",name:t.name},model:{value:e.mollieMetaData[n].key,callback:function(t){e.$set(e.mollieMetaData[n],"key",t)},expression:"mollieMetaData[index].key"}})],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-input",{attrs:{type:"text"},model:{value:e.mollieMetaData[n].value,callback:function(t){e.$set(e.mollieMetaData[n],"value",t)},expression:"mollieMetaData[index].value"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("span",{on:{click:function(t){return e.deleteMetaDataPair("mollie",n)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])])],1)}),e._v(" "),i("el-row",{attrs:{gutter:24}},[i("el-col",[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addMetaDataPair("mollie")}}},[e._v(e._s(e.$root.labels.add_metaData))])],1)],1)],2),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.data.razorpay.enabled,expression:"data.razorpay.enabled"}]},[i("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[i("el-col",{attrs:{span:11}},[i("el-form-item",{attrs:{label:e.$root.labels.name+":"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.value+": ")+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.$root.labels.metadata_value_tooltip))]),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)])],1),e._v(" "),e._l(e.razorpayMetaData,function(t,n){return i("el-row",{key:n,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[i("el-col",{attrs:{span:10}},[i("el-input",{attrs:{type:"text",name:t.name},model:{value:e.razorpayMetaData[n].key,callback:function(t){e.$set(e.razorpayMetaData[n],"key",t)},expression:"razorpayMetaData[index].key"}})],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-input",{attrs:{type:"text"},model:{value:e.razorpayMetaData[n].value,callback:function(t){e.$set(e.razorpayMetaData[n],"value",t)},expression:"razorpayMetaData[index].value"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("span",{on:{click:function(t){return e.deleteMetaDataPair("razorpay",n)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])])],1)}),e._v(" "),i("el-row",{attrs:{gutter:24}},[i("el-col",[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addMetaDataPair("razorpay")}}},[e._v(e._s(e.$root.labels.add_metaData))])],1)],1)],2),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.wc.enabled,expression:"data.wc.enabled"}],attrs:{label:e.$root.labels.description_wc+":"}},[i("el-row",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{staticClass:"align-right",attrs:{span:24}},[i("el-button-group",[i("el-button",{staticStyle:{width:"unset"},attrs:{size:"mini",type:e.textMode?"default":"primary"},on:{click:function(t){e.language?e.textModeChanged("description_translated_wc_text","description_translated_wc",e.language):e.textModeChanged("description_wc","description_wc_text",e.language)}}},[e._v("\n "+e._s(e.$root.labels.text_mode)+"\n ")]),e._v(" "),i("el-button",{staticStyle:{width:"unset"},attrs:{size:"mini",type:e.textMode?"primary":"default"},on:{click:function(t){e.language?e.textModeChanged("description_translated_wc","description_translated_wc_text",e.language):e.textModeChanged("description_wc","description_wc_text",e.language)}}},[e._v("\n "+e._s(e.$root.labels.html_mode)+"\n ")])],1)],1)],1),e._v(" "),e.language||e.textMode?e._e():i("quill-editor",{attrs:{options:e.editorOptions},model:{value:e.description_wc,callback:function(t){e.description_wc=t},expression:"description_wc"}}),e._v(" "),!e.language&&e.textMode?i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},on:{input:function(t){return e.changedContentText("description_wc","description_wc_text",e.language)}},model:{value:e.description_wc_text,callback:function(t){e.description_wc_text=t},expression:"description_wc_text"}}):e._e(),e._v(" "),e.language&&!e.textMode?i("quill-editor",{attrs:{options:e.editorOptions},model:{value:e.description_translated_wc[e.language],callback:function(t){e.$set(e.description_translated_wc,e.language,t)},expression:"description_translated_wc[language]"}}):e._e(),e._v(" "),e.language&&e.textMode?i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},on:{input:function(t){return e.changedContentText("description_translated_wc","description_translated_wc_text",e.language)}},model:{value:e.description_translated_wc_text[e.language],callback:function(t){e.$set(e.description_translated_wc_text,e.language,t)},expression:"description_translated_wc_text[language]"}}):e._e()],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.razorpay.enabled,expression:"data.razorpay.enabled"}],attrs:{label:e.$root.labels.name_razorpay+":"}},[i("el-input",{attrs:{type:"text",autosize:{minRows:4,maxRows:6}},model:{value:e.name_razorpay,callback:function(t){e.name_razorpay=t},expression:"name_razorpay"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.payPal.enabled,expression:"data.payPal.enabled"}],attrs:{label:e.$root.labels.description_paypal+":"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_paypal,callback:function(t){e.description_paypal=t},expression:"description_paypal"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.stripe.enabled,expression:"data.stripe.enabled"}],attrs:{label:e.$root.labels.description_stripe+":"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_stripe,callback:function(t){e.description_stripe=t},expression:"description_stripe"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.mollie.enabled,expression:"data.mollie.enabled"}],attrs:{label:e.$root.labels.description_mollie+":"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_mollie,callback:function(t){e.description_mollie=t},expression:"description_mollie"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.razorpay.enabled,expression:"data.razorpay.enabled"}],attrs:{label:e.$root.labels.description_razorpay+":"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_razorpay,callback:function(t){e.description_razorpay=t},expression:"description_razorpay"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.square.enabled,expression:"data.square.enabled"}],attrs:{label:e.$root.labels.description_square+":"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_square,callback:function(t){e.description_square=t},expression:"description_square"}})],1),e._v(" "),i("el-form-item",[i("inline-placeholders",{attrs:{placeholdersNames:e.getInlinePlaceholdersNames(),excludedPlaceholders:{appointmentPlaceholders:e.getExcludedAppointmentPlaceholders(),eventPlaceholders:["%event_cancel_url%","%lesson_space_url_date%","%lesson_space_url_date_time%","%google_meet_url_date%","%google_meet_url_date_time%","%microsoft_teams_url_date%","%microsoft_teams_url_date_time%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%","%reservation_name%","%reservation_description%","%group_event_details%"],paymentPlaceholders:e.getExcludedPaymentPlaceholders()},customFields:e.customFields,categories:e.categories,coupons:e.coupons,userTypeTab:"provider"}})],1)],1)},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1512),i(1519),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(658),a=i(654),o=i(655),s=i(1513),r=i.n(s),l=i(1515),c=i.n(l),u=i(1517),d=i.n(u);t.default={components:{wooCommerceRule:r.a,wooCommerceRuleHeader:c.a,wooCommerceRuleInfo:d.a},mixins:[a.a,o.a,n.a],props:{formHeader:{type:String,default:""},formInfo:{type:String,default:""},form:{type:String,default:""},oneRequired:{type:Boolean,default:!1},type:{type:String,default:""},rules:{type:Object,default:function(){}},addLabel:{type:String,default:""},deleteMessage:{type:String,default:""},extensions:{type:Array,default:function(){return[]}},newExtension:{type:Object,default:function(){}}},data:function(){return{extensionToDelete:null,extensionEditDialog:null,editedExtension:null,editedExtensionOld:null,isNewExtension:!1}},methods:{addExtension:function(){null===this.editedExtension&&(this.extensionEditDialog=!0,this.editedExtension=JSON.parse(JSON.stringify(this.newExtension)),this.isNewExtension=!0,this.extensions.push(this.editedExtension)),this.scrollViewInModal("extension-"+this.type+"-"+(this.extensions.length-1))},showEditExtensionDialog:function(e){this.editedExtension=e,this.editedExtensionOld=JSON.parse(JSON.stringify(e)),this.extensionToDelete=null,this.extensionEditDialog=!0},showDeleteExtensionDialog:function(e){this.extensionToDelete=e,this.editedExtension=null,this.extensionEditDialog=!1},hideDeleteExtensionDialog:function(){this.extensionToDelete=null,this.extensionEditDialog=!0},deleteExtension:function(e){var t=this.extensions.indexOf(e);this.extensions.splice(t,1)},cancelExtension:function(e){var t=this;if(null!==this.editedExtensionOld&&Object.keys(this.editedExtensionOld).forEach(function(i){e[i]=t.editedExtensionOld[i]}),this.isNewExtension){var i=this.extensions.indexOf(e);this.extensions.splice(i,1),this.isNewExtension=!1}this.editedExtension=null,this.editedExtensionOld=null,this.extensionEditDialog=!1},saveExtension:function(e){var t=this;this.$refs.extensionsRef[e].validate(function(i){if(!i)return!1;t.editedExtension=null,t.extensionEditDialog=!1,t.isNewExtension=!1,t.$refs.extensionsRef[e].clearValidate()})}}}},function(e,t,i){var n=i(90)(null,i(1514),!1,null,null,null);e.exports=n.exports},function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},function(e,t,i){var n=i(90)(null,i(1516),!1,null,null,null);e.exports=n.exports},function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},function(e,t,i){var n=i(90)(null,i(1518),!1,null,null,null);e.exports=n.exports},function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{attrs:{"label-position":"top"}},[i("div",{staticClass:"am-extra-list",staticStyle:{padding:"0"}},[i("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addExtension}},[i("i",{staticClass:"el-icon-plus"}),e._v(" "),i("span",{staticClass:"button-text"},[e._v(e._s(e.addLabel))])]),e._v(" "),i("transition-group",{attrs:{name:"list-complete"}},e._l(e.extensions,function(t,n){return i("div",{key:n+1,staticClass:"am-extra-item"},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{align:"top"}},[i("el-col",{attrs:{span:24}},[i("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle"}},[i("el-col",{attrs:{span:18}},[null===e.editedExtension||n!==e.extensions.indexOf(e.editedExtension)?i(e.formHeader,{tag:"component",attrs:{extension:t,type:e.type,index:n}}):e._e()],1),e._v(" "),null===e.editedExtension||n!==e.extensions.indexOf(e.editedExtension)?i("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[i("span",{on:{click:function(i){return e.showEditExtensionDialog(t)}}},[i("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),e.oneRequired&&1===e.extensions.length?e._e():i("span",{on:{click:function(i){return e.showDeleteExtensionDialog(t)}}},[i("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedExtension&&n===e.extensions.indexOf(e.editedExtension)||null!==e.extensionToDelete&&n===e.extensions.indexOf(e.extensionToDelete)),expression:"(editedExtension === null || index !== extensions.indexOf(editedExtension)) && (extensionToDelete === null || index !== extensions.indexOf(extensionToDelete))"}],staticClass:"am-extra-item-data"},[i(e.formInfo,{tag:"component",attrs:{extension:t,type:e.type}})],1)],1)],1),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.extensionToDelete&&n===e.extensions.indexOf(e.extensionToDelete),expression:"extensionToDelete !== null && index === extensions.indexOf(extensionToDelete)"}],staticClass:"am-confirmation"},[i("p",[e._v(e._s(e.deleteMessage)+"?")]),e._v(" "),i("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[i("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteExtensionDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return e.deleteExtension(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),i("el-collapse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.extensionEditDialog&&n===e.extensions.indexOf(e.editedExtension),expression:"extensionEditDialog === true && index === extensions.indexOf(editedExtension)"}]},[i("el-form",{ref:"extensionsRef",refInFor:!0,staticStyle:{padding:"0"},attrs:{model:t,rules:e.rules,"label-position":"top",id:"extension-"+e.type+"-"+n}},[[i(e.form,{tag:"component",attrs:{extension:t,extensions:e.extensions,type:e.type}})],e._v(" "),i("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[i("el-button",{attrs:{size:"small"},on:{click:function(i){return e.cancelExtension(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveExtension(n)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],2)],1)])],1)}),0)],1)])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.payments_settings))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:e.$root.labels.currency+":"}},[i("el-select",{attrs:{filterable:""},on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.currency,callback:function(t){e.$set(e.settings,"currency",t)},expression:"settings.currency"}},e._l(e.currencies,function(t){return i("el-option",{key:t.code,attrs:{label:t.name,value:t.code}},[i("span",{class:"am-flag am-flag-"+t.iso}),e._v(" "),i("span",{staticClass:"am-payment-settings-currency-name"},[e._v(e._s(t.name))]),e._v(" "),i("span",{staticClass:"am-payment-settings-currency-symbol"},[e._v(e._s(t.symbol))])])}),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:e.$root.labels.price_symbol_position+":"}},[i("el-select",{on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.priceSymbolPosition,callback:function(t){e.$set(e.settings,"priceSymbolPosition",t)},expression:"settings.priceSymbolPosition"}},e._l(e.options.priceSymbolPositions,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.label))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#7F8BA4","font-size":"13px"}},[e._v(e._s(t.example))])])}),1)],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:e.$root.labels.price_separator+":"}},[i("el-select",{on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.priceSeparator,callback:function(t){e.$set(e.settings,"priceSeparator",t)},expression:"settings.priceSeparator"}},e._l(e.options.priceSeparators,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.label))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#7F8BA4","font-size":"13px"}},[e._v(e._s(t.example))])])}),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:e.$root.labels.price_number_of_decimals+":"}},[i("el-input-number",{attrs:{min:0,max:5},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.priceNumberOfDecimals,callback:function(t){e.$set(e.settings,"priceNumberOfDecimals",t)},expression:"settings.priceNumberOfDecimals"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.hide_currency_symbol_frontend))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.hideCurrencySymbolFrontend,callback:function(t){e.$set(e.settings,"hideCurrencySymbolFrontend",t)},expression:"settings.hideCurrencySymbolFrontend"}})],1)],1)],1),e._v(" "),i("div",{style:{marginBottom:"24px"}},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:18}},[i("label",[e._v(e._s(e.$root.labels.custom_currency_symbol+":"))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-input",{style:{marginBottom:0,textAlign:"center"},attrs:{disabled:e.settings.hideCurrencySymbolFrontend},model:{value:e.settings.symbol,callback:function(t){e.$set(e.settings,"symbol",t)},expression:"settings.symbol"}})],1)],1)],1),e._v(" "),!e.notInLicence("pro")||e.licenceVisible()?i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("pro")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("span",[e._v(e._s(e.$root.labels.cart_enable))]),e._v(" "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.cart_enable_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.notInLicence("pro")},on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.cart,callback:function(t){e.$set(e.settings,"cart",t)},expression:"settings.cart"}})],1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"pro"}})],1):e._e(),e._v(" "),!e.notInLicence("starter")||e.licenceVisible()?i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("starter")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.coupons))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{disabled:e.notInLicence("starter"),"active-text":"","inactive-text":""},on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.coupons,callback:function(t){e.$set(e.settings,"coupons",t)},expression:"settings.coupons"}})],1)],1),e._v(" "),e.settings.coupons?i("el-row",{staticStyle:{"margin-top":"24px"}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.coupons_case_insensitive))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{disabled:e.notInLicence("starter"),"active-text":"","inactive-text":""},on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.couponsCaseInsensitive,callback:function(t){e.$set(e.settings,"couponsCaseInsensitive",t)},expression:"settings.couponsCaseInsensitive"}})],1)],1):e._e(),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1):e._e(),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass()},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("span",[e._v(e._s(e.$root.labels.payment_links_enable))]),e._v(" "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_enable_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{disabled:e.notInLicence()},model:{value:e.settings.paymentLinks.enabled,callback:function(t){e.$set(e.settings.paymentLinks,"enabled",t)},expression:"settings.paymentLinks.enabled"}})],1)],1),e._v(" "),e.settings.paymentLinks.enabled?i("el-row",{staticStyle:{"margin-top":"16px"}},[i("el-col",[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.payment_links_redirect)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_redirect_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.getSiteUrl},model:{value:e.settings.paymentLinks.redirectUrl,callback:function(t){e.$set(e.settings.paymentLinks,"redirectUrl",t)},expression:"settings.paymentLinks.redirectUrl"}})],1)],1)],1):e._e(),e._v(" "),e.settings.paymentLinks.enabled&&"pending"===e.defaultAppointmentStatus?i("el-row",{staticStyle:{"margin-bottom":"16px !important"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("span",[e._v(e._s(e.$root.labels.payment_links_change_status))]),e._v(" "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_change_status_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{model:{value:e.settings.paymentLinks.changeBookingStatus,callback:function(t){e.$set(e.settings.paymentLinks,"changeBookingStatus",t)},expression:"settings.paymentLinks.changeBookingStatus"}})],1)],1):e._e(),e._v(" "),e.settings.paymentLinks.enabled?i("el-alert",{staticStyle:{"margin-bottom":"5px"},attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.payment_links_warning,closable:!1}}):e._e(),e._v(" "),i("LicenceBlock")],1),e._v(" "),!e.notInLicence()||e.licenceVisible()?i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass()},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("span",[e._v(e._s(e.$root.labels.tax_enable))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{disabled:e.notInLicence()},model:{value:e.settings.taxes.enabled,callback:function(t){e.$set(e.settings.taxes,"enabled",t)},expression:"settings.taxes.enabled"}})],1)],1),e._v(" "),e.settings.taxes.enabled?i("el-row",{staticStyle:{"margin-top":"16px"}},[i("el-col",{staticClass:"am-settings-taxes"},[i("div",{staticStyle:{padding:"10px"}},[i("el-radio",{staticClass:"am-settings-taxes-radio",attrs:{label:!0,value:!0},model:{value:e.settings.taxes.excluded,callback:function(t){e.$set(e.settings.taxes,"excluded",t)},expression:"settings.taxes.excluded"}},[e._v("\n "+e._s(e.$root.labels.tax_exclude)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tax_exclude_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1),e._v(" "),i("div",{staticStyle:{padding:"10px"}},[i("el-radio",{staticClass:"am-settings-taxes-radio",attrs:{label:!1},model:{value:e.settings.taxes.excluded,callback:function(t){e.$set(e.settings.taxes,"excluded",t)},expression:"settings.taxes.excluded"}},[e._v("\n "+e._s(e.$root.labels.tax_include)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tax_include_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1)])],1):e._e(),e._v(" "),i("LicenceBlock")],1):e._e(),e._v(" "),i("div"),e._v(" "),i("el-form-item",[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.default_payment_method)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{model:{value:e.settings.defaultPaymentMethod,callback:function(t){e.$set(e.settings,"defaultPaymentMethod",t)},expression:"settings.defaultPaymentMethod"}},e._l(e.defaultPaymentMethods,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.on_site))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{disabled:!(this.settings.payPal.enabled||this.settings.stripe.enabled||this.settings.mollie.enabled||this.settings.wc.enabled||this.settings.razorpay.enabled||this.settings.square.enabled),"active-text":"","inactive-text":""},on:{change:e.toggleOnSite},model:{value:e.settings.onSite,callback:function(t){e.$set(e.settings,"onSite",t)},expression:"settings.onSite"}})],1)],1)],1),e._v(" "),i("el-collapse",{ref:"square",model:{value:e.squareCollapse,callback:function(t){e.squareCollapse=t},expression:"squareCollapse"}},[i("el-collapse-item",{staticClass:"am-setting-box",class:{"am-setting-box-square-error":""!==e.squareError},attrs:{name:"square"}},[i("template",{slot:"title"},[i("el-col",{attrs:{span:16}},[i("img",{staticClass:"svg-amelia",attrs:{id:"am-square",src:this.$root.getUrl+"public/img/payments/square.svg"}})]),e._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:e.settings.square.enabled,expression:"settings.square.enabled"}],staticClass:"el-icon-circle-check"})],1),e._v(" "),i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.square_service)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:this.settings.wc.enabled||this.settings.mollie.enabled||!e.squarePhpVersion},on:{change:e.toggleSquare},model:{value:e.settings.square.enabled,callback:function(t){e.$set(e.settings.square,"enabled",t)},expression:"settings.square.enabled"}})],1)],1),e._v(" "),e.squarePhpVersion?e._e():i("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.square_php_version_error,closable:!1}}),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.square.enabled&&e.settings.square.accessToken&&e.settings.square.accessToken.access_token,expression:"settings.square.enabled === true && settings.square.accessToken && settings.square.accessToken.access_token"}]},[i("el-row",{staticStyle:{"margin-bottom":"8px","margin-left":"0px"},attrs:{gutter:16}},[e._v("\n "+e._s(e.$root.labels.square_default_location)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.square_location_info)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-row",{staticStyle:{"margin-bottom":"8px"}},[i("el-select",{attrs:{disabled:e.squareLoading},model:{value:e.settings.square.locationId,callback:function(t){e.$set(e.settings.square,"locationId",t)},expression:"settings.square.locationId"}},e._l(e.squareLocations.filter(function(e){return e.capabilities.includes("CREDIT_CARD_PROCESSING")&&"ACTIVE"===e.status}),function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1),e._v(" "),e.settings.square.enabled?i("el-row",[e.settings.square.accessToken&&e.settings.square.accessToken.access_token||e.accessTokenSet?i("el-button",{attrs:{loading:e.squareLoading||e.squareBtnDisabled,type:"danger"},on:{click:e.logOutFromSquare}},[e._v("\n "+e._s(e.$root.labels.log_out)+"\n ")]):i("el-button",{attrs:{type:"primary",loading:e.squareLoading||e.squareBtnDisabled},on:{click:e.getSquareAuthUrl}},[e._v("\n "+e._s(e.$root.labels.log_in)+"\n ")]),e._v(" "),""!==e.squareError?i("span",{staticClass:"am-setting-box-square-error-text"},[e._v(e._s(e.squareError))]):e._e()],1):e._e()],2)],1),e._v(" "),i("el-collapse",{class:e.licenceClass(),model:{value:e.wooCommerceCollapse,callback:function(t){e.wooCommerceCollapse=t},expression:"wooCommerceCollapse"}},[i("el-collapse-item",{staticClass:"am-setting-box",attrs:{disabled:e.notInLicence(),name:"wooCommerce"}},[i("template",{slot:"title"},[i("el-col",{attrs:{span:16}},[i("img",{staticClass:"svg-amelia",attrs:{id:"am-woocommerce",src:this.$root.getUrl+"public/img/payments/woocommerce.svg"}})]),e._v(" "),e.settings.wc.enabled?i("i",{staticClass:"el-icon-circle-check"}):e._e()],1),e._v(" "),i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.wc_service)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.toggleWooCommerce},model:{value:e.settings.wc.enabled,callback:function(t){e.$set(e.settings.wc,"enabled",t)},expression:"settings.wc.enabled"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.wc_on_site_if_free)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.wc.onSiteIfFree,callback:function(t){e.$set(e.settings.wc,"onSiteIfFree",t)},expression:"settings.wc.onSiteIfFree"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:e.$root.labels.wc_page+":"}},[i("el-select",{model:{value:e.settings.wc.page,callback:function(t){e.$set(e.settings.wc,"page",t)},expression:"settings.wc.page"}},e._l([{value:"cart",label:e.$root.labels.wc_page_cart},{value:"checkout",label:e.$root.labels.wc_page_checkout}],function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:e.$root.labels.wc_redirect_page+":"}},[i("el-select",{model:{value:e.settings.wc.redirectPage,callback:function(t){e.$set(e.settings.wc,"redirectPage",t)},expression:"settings.wc.redirectPage"}},e._l([{value:1,label:e.$root.labels.wc_redirect_page_1},{value:2,label:e.$root.labels.wc_redirect_page_2}],function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),!0===e.settings.wc.enabled?i("el-tabs",{model:{value:e.activeWooCommerceRuleTab,callback:function(t){e.activeWooCommerceRuleTab=t},expression:"activeWooCommerceRuleTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("extensions",{attrs:{form:"wooCommerceRule",formHeader:"wooCommerceRuleHeader",formInfo:"wooCommerceRuleInfo",addLabel:e.$root.labels.wc_rules_add,deleteMessage:e.$root.labels.wc_rules_delete_confirmation,extensions:e.settings.wc.rules.appointment,newExtension:{order:"",booking:"",payment:""},type:"appointment",oneRequired:!0}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?i("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[i("extensions",{attrs:{form:"wooCommerceRule",formHeader:"wooCommerceRuleHeader",formInfo:"wooCommerceRuleInfo",addLabel:e.$root.labels.wc_rules_add,deleteMessage:e.$root.labels.wc_rules_delete_confirmation,extensions:e.settings.wc.rules.package,newExtension:{order:"",booking:"",payment:""},type:"package",oneRequired:!0}})],1):e._e(),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[i("extensions",{attrs:{form:"wooCommerceRule",formHeader:"wooCommerceRuleHeader",formInfo:"wooCommerceRuleInfo",addLabel:e.$root.labels.wc_rules_add,deleteMessage:e.$root.labels.wc_rules_delete_confirmation,extensions:e.settings.wc.rules.event,newExtension:{order:"",booking:"",payment:""},type:"event",oneRequired:!0}})],1)],1):e._e(),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{display:"none"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Skip Checkout Get Value:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.wc.skipCheckoutGetValueProcessing,callback:function(t){e.$set(e.settings.wc,"skipCheckoutGetValueProcessing",t)},expression:"settings.wc.skipCheckoutGetValueProcessing"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{display:"none"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Skip Get Item Data:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.wc.skipGetItemDataProcessing,callback:function(t){e.$set(e.settings.wc,"skipGetItemDataProcessing",t)},expression:"settings.wc.skipGetItemDataProcessing"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{display:"none"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Allow multiple bookings in cart:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.wc.bookMultiple,callback:function(t){e.$set(e.settings.wc,"bookMultiple",t)},expression:"settings.wc.bookMultiple"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{display:"none"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Create booking before payment process:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.wc.bookUnpaid,callback:function(t){e.$set(e.settings.wc,"bookUnpaid",t)},expression:"settings.wc.bookUnpaid"}})],1)],1)],2),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("el-collapse",{class:e.licenceClass(),model:{value:e.mollieCollapse,callback:function(t){e.mollieCollapse=t},expression:"mollieCollapse"}},[i("el-collapse-item",{staticClass:"am-setting-box",attrs:{disabled:e.notInLicence(),name:"mollie"}},[i("template",{slot:"title"},[i("el-col",{attrs:{span:16}},[i("img",{staticClass:"svg-amelia",attrs:{id:"am-mollie",src:this.$root.getUrl+"public/img/payments/mollie.svg"}})]),e._v(" "),e.settings.mollie.enabled?i("i",{staticClass:"el-icon-circle-check"}):e._e()],1),e._v(" "),i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.mollie_service)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.toggleMollie},model:{value:e.settings.mollie.enabled,callback:function(t){e.$set(e.settings.mollie,"enabled",t)},expression:"settings.mollie.enabled"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.mollie.enabled,expression:"settings.mollie.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.sandbox_mode)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.handleMollieValidationRules},model:{value:e.settings.mollie.testMode,callback:function(t){e.$set(e.settings.mollie,"testMode",t)},expression:"settings.mollie.testMode"}})],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.mollie.enabled&&!1===e.settings.mollie.testMode,expression:"settings.mollie.enabled === true && settings.mollie.testMode === false"}],attrs:{label:e.$root.labels.live_api_key+":",prop:"mollie.liveApiKey"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.mollie.liveApiKey,callback:function(t){e.$set(e.settings.mollie,"liveApiKey","string"==typeof t?t.trim():t)},expression:"settings.mollie.liveApiKey"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.mollie.enabled&&!0===e.settings.mollie.testMode,expression:"settings.mollie.enabled === true && settings.mollie.testMode === true"}],attrs:{label:e.$root.labels.test_api_key+":",prop:"mollie.testApiKey"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.mollie.testApiKey,callback:function(t){e.$set(e.settings.mollie,"testApiKey","string"==typeof t?t.trim():t)},expression:"settings.mollie.testApiKey"}})],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.mollie.enabled,expression:"settings.mollie.enabled === true"}],staticStyle:{display:"none"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v("Cancel booking when user goes back twice:")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.mollie.cancelBooking,callback:function(t){e.$set(e.settings.mollie,"cancelBooking",t)},expression:"settings.mollie.cancelBooking"}})],1)],1)],2),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("el-collapse",{class:e.licenceClass(),model:{value:e.payPalCollapse,callback:function(t){e.payPalCollapse=t},expression:"payPalCollapse"}},[i("el-collapse-item",{staticClass:"am-setting-box",attrs:{disabled:e.notInLicence(),name:"payPal"}},[i("template",{slot:"title"},[i("img",{staticClass:"svg-amelia",attrs:{width:"60px",src:this.$root.getUrl+"public/img/payments/paypal-light.svg"}}),e._v(" "),e.settings.payPal.enabled?i("i",{staticClass:"el-icon-circle-check"}):e._e()]),e._v(" "),i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.payPal_service)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:this.settings.wc.enabled||this.settings.mollie.enabled},on:{change:e.togglePayPal},model:{value:e.settings.payPal.enabled,callback:function(t){e.$set(e.settings.payPal,"enabled",t)},expression:"settings.payPal.enabled"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled,expression:"settings.payPal.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.sandbox_mode)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.handlePayPalValidationRules},model:{value:e.settings.payPal.sandboxMode,callback:function(t){e.$set(e.settings.payPal,"sandboxMode",t)},expression:"settings.payPal.sandboxMode"}})],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled&&!1===e.settings.payPal.sandboxMode,expression:"settings.payPal.enabled === true && settings.payPal.sandboxMode === false"}],attrs:{label:e.$root.labels.live_client_id+":",prop:"payPal.liveApiClientId"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.payPal.liveApiClientId,callback:function(t){e.$set(e.settings.payPal,"liveApiClientId","string"==typeof t?t.trim():t)},expression:"settings.payPal.liveApiClientId"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled&&!1===e.settings.payPal.sandboxMode,expression:"settings.payPal.enabled === true && settings.payPal.sandboxMode === false"}],attrs:{label:e.$root.labels.live_secret+":",prop:"payPal.liveApiSecret"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.payPal.liveApiSecret,callback:function(t){e.$set(e.settings.payPal,"liveApiSecret","string"==typeof t?t.trim():t)},expression:"settings.payPal.liveApiSecret"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled&&!0===e.settings.payPal.sandboxMode,expression:"settings.payPal.enabled === true && settings.payPal.sandboxMode === true"}],attrs:{label:e.$root.labels.test_client_id+":",prop:"payPal.testApiClientId"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.payPal.testApiClientId,callback:function(t){e.$set(e.settings.payPal,"testApiClientId","string"==typeof t?t.trim():t)},expression:"settings.payPal.testApiClientId"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled&&!0===e.settings.payPal.sandboxMode,expression:"settings.payPal.enabled === true && settings.payPal.sandboxMode === true"}],attrs:{label:e.$root.labels.test_secret+":",prop:"payPal.testApiSecret"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.payPal.testApiSecret,callback:function(t){e.$set(e.settings.payPal,"testApiSecret","string"==typeof t?t.trim():t)},expression:"settings.payPal.testApiSecret"}})],1)],2),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("el-collapse",{class:e.licenceClass(),model:{value:e.stripeCollapse,callback:function(t){e.stripeCollapse=t},expression:"stripeCollapse"}},[i("el-collapse-item",{staticClass:"am-setting-box",attrs:{disabled:e.notInLicence(),name:"stripe"}},[e.showStripeAlert?i("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.stripe_ssl_warning,closable:!1}}):e._e(),e._v(" "),i("template",{slot:"title"},[i("img",{staticClass:"svg-amelia",attrs:{width:"40px",src:this.$root.getUrl+"public/img/payments/stripe.svg"}}),e._v(" "),e.settings.stripe.enabled?i("i",{staticClass:"el-icon-circle-check"}):e._e()]),e._v(" "),i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.stripe_service)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.isStripeDisabled()},on:{change:e.toggleStripe},model:{value:e.settings.stripe.enabled,callback:function(t){e.$set(e.settings.stripe,"enabled",t)},expression:"settings.stripe.enabled"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled,expression:"settings.stripe.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.test_mode)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.handleStripeValidationRules},model:{value:e.settings.stripe.testMode,callback:function(t){e.$set(e.settings.stripe,"testMode",t)},expression:"settings.stripe.testMode"}})],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled&&!1===e.settings.stripe.testMode,expression:"settings.stripe.enabled === true && settings.stripe.testMode === false"}],attrs:{label:e.$root.labels.live_publishable_key+":",prop:"stripe.livePublishableKey"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.livePublishableKey,callback:function(t){e.$set(e.settings.stripe,"livePublishableKey","string"==typeof t?t.trim():t)},expression:"settings.stripe.livePublishableKey"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled&&!1===e.settings.stripe.testMode,expression:"settings.stripe.enabled === true && settings.stripe.testMode === false"}],attrs:{label:e.$root.labels.live_secret_key+":",prop:"stripe.liveSecretKey"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.liveSecretKey,callback:function(t){e.$set(e.settings.stripe,"liveSecretKey","string"==typeof t?t.trim():t)},expression:"settings.stripe.liveSecretKey"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled&&!0===e.settings.stripe.testMode,expression:"settings.stripe.enabled === true && settings.stripe.testMode === true"}],attrs:{label:e.$root.labels.test_publishable_key+":",prop:"stripe.testPublishableKey"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.testPublishableKey,callback:function(t){e.$set(e.settings.stripe,"testPublishableKey","string"==typeof t?t.trim():t)},expression:"settings.stripe.testPublishableKey"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled&&!0===e.settings.stripe.testMode,expression:"settings.stripe.enabled === true && settings.stripe.testMode === true"}],attrs:{label:e.$root.labels.test_secret_key+":",prop:"stripe.testSecretKey"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.testSecretKey,callback:function(t){e.$set(e.settings.stripe,"testSecretKey","string"==typeof t?t.trim():t)},expression:"settings.stripe.testSecretKey"}})],1),e._v(" "),i("el-form-item",{staticStyle:{display:"none"},attrs:{label:"Return URL",prop:"stripe.returnUrl"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.returnUrl,callback:function(t){e.$set(e.settings.stripe,"returnUrl","string"==typeof t?t.trim():t)},expression:"settings.stripe.returnUrl"}})],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled,expression:"settings.stripe.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.stripe_address_fields)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.stripe.address,callback:function(t){e.$set(e.settings.stripe,"address",t)},expression:"settings.stripe.address"}})],1)],1),e._v(" "),!0!==e.settings.stripe.enabled||e.notInLicence("pro")&&!e.licenceVisible()?e._e():i("div",{class:e.licenceClass("pro")},[i("el-row",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.use_stripe_connect)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.notInLicence("pro")},on:{change:e.handleStripeValidationRules},model:{value:e.settings.stripe.connect.enabled,callback:function(t){e.$set(e.settings.stripe.connect,"enabled",t)},expression:"settings.stripe.connect.enabled"}})],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.stripe.enabled&&e.settings.stripe.connect.enabled,expression:"settings.stripe.enabled && settings.stripe.connect.enabled"}]},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.use_charge_type)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.use_charge_type_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{model:{value:e.settings.stripe.connect.method,callback:function(t){e.$set(e.settings.stripe.connect,"method",t)},expression:"settings.stripe.connect.method"}},e._l([{value:"transfer",label:e.$root.labels.use_transfers_payment},{value:"direct",label:e.$root.labels.use_direct_payment}],function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),e.settings.stripe.enabled&&e.settings.stripe.connect.enabled&&"direct"===e.settings.stripe.connect.method?i("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.use_charge_alert,closable:!1}}):e._e(),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.stripe.enabled&&e.settings.stripe.connect.enabled&&"percentage"===e.settings.stripe.connect.type,expression:"settings.stripe.enabled && settings.stripe.connect.enabled && settings.stripe.connect.type === 'percentage'"}],attrs:{label:("transfer"===e.settings.stripe.connect.method?e.$root.labels.use_transfer_amount:e.$root.labels.use_direct_amount)+":"}},[i("el-input-number",{attrs:{min:0,precision:2,step:.1,max:100,placeholder:e.settings.stripe.connect.amount?e.settings.stripe.connect.amount.toString():"0.00"},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.stripe.connect.amount,callback:function(t){e.$set(e.settings.stripe.connect,"amount",t)},expression:"settings.stripe.connect.amount"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.stripe.enabled&&e.settings.stripe.connect.enabled,expression:"settings.stripe.enabled && settings.stripe.connect.enabled"}]},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.use_capabilities)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.use_capabilities_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{multiple:""},model:{value:e.settings.stripe.connect.capabilities,callback:function(t){e.$set(e.settings.stripe.connect,"capabilities",t)},expression:"settings.stripe.connect.capabilities"}},e._l([{value:"transfers",label:e.$root.labels.use_transfers_payment},{value:"card_payments",label:e.$root.labels.use_card_payment}],function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"pro"}})],1)],2),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("el-collapse",{class:e.licenceClass(),model:{value:e.razorpayCollapse,callback:function(t){e.razorpayCollapse=t},expression:"razorpayCollapse"}},[i("el-collapse-item",{staticClass:"am-setting-box",attrs:{disabled:e.notInLicence(),name:"razorpay"}},[i("template",{slot:"title"},[i("img",{staticClass:"svg-amelia",attrs:{width:"60px",src:this.$root.getUrl+"public/img/payments/razorpay.svg"}}),e._v(" "),e.settings.razorpay.enabled?i("i",{staticClass:"el-icon-circle-check"}):e._e()]),e._v(" "),i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.razorpay_service)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:this.settings.wc.enabled||this.settings.mollie.enabled||this.settings.square.enabled},on:{change:e.toggleRazorpay},model:{value:e.settings.razorpay.enabled,callback:function(t){e.$set(e.settings.razorpay,"enabled",t)},expression:"settings.razorpay.enabled"}})],1)],1),e._v(" "),i("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled,expression:"settings.razorpay.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[i("p",[e._v(e._s(e.$root.labels.test_mode)+":")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.handleRazorpayValidationRules},model:{value:e.settings.razorpay.testMode,callback:function(t){e.$set(e.settings.razorpay,"testMode",t)},expression:"settings.razorpay.testMode"}})],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled&&!1===e.settings.razorpay.testMode,expression:"settings.razorpay.enabled === true && settings.razorpay.testMode === false"}],attrs:{label:e.$root.labels.live_key_id+":",prop:"razorpay.liveKeyId"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.razorpay.liveKeyId,callback:function(t){e.$set(e.settings.razorpay,"liveKeyId","string"==typeof t?t.trim():t)},expression:"settings.razorpay.liveKeyId"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled&&!1===e.settings.razorpay.testMode,expression:"settings.razorpay.enabled === true && settings.razorpay.testMode === false"}],attrs:{label:e.$root.labels.live_key_secret+":",prop:"razorpay.liveKeySecret"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.razorpay.liveKeySecret,callback:function(t){e.$set(e.settings.razorpay,"liveKeySecret","string"==typeof t?t.trim():t)},expression:"settings.razorpay.liveKeySecret"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled&&!0===e.settings.razorpay.testMode,expression:"settings.razorpay.enabled === true && settings.razorpay.testMode === true"}],attrs:{label:e.$root.labels.test_key_id+":",prop:"razorpay.testKeyId"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.razorpay.testKeyId,callback:function(t){e.$set(e.settings.razorpay,"testKeyId","string"==typeof t?t.trim():t)},expression:"settings.razorpay.testKeyId"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled&&!0===e.settings.razorpay.testMode,expression:"settings.razorpay.enabled === true && settings.razorpay.testMode === true"}],attrs:{label:e.$root.labels.test_key_secret+":",prop:"razorpay.testKeySecret"}},[i("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.razorpay.testKeySecret,callback:function(t){e.$set(e.settings.razorpay,"testKeySecret","string"==typeof t?t.trim():t)},expression:"settings.razorpay.testKeySecret"}})],1)],2),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("el-collapse",{directives:[{name:"show",rawName:"v-show",value:e.settings.wc.enabled||e.settings.stripe.enabled||e.settings.payPal.enabled||e.settings.mollie.enabled||e.settings.razorpay.enabled||e.settings.square.enabled,expression:"(settings.wc.enabled || settings.stripe.enabled || settings.payPal.enabled || settings.mollie.enabled || settings.razorpay.enabled || settings.square.enabled)"}]},[i("el-collapse-item",{staticClass:"am-setting-box"},[i("template",{slot:"title"},[i("p",[e._v(e._s(e.$root.labels.set_metaData_and_description)+":")])]),e._v(" "),[e.settings.wc.enabled&&e.$root.settings.general.usedLanguages.length?i("select-translate",{on:{languageChanged:e.languageChanged}}):e._e(),e._v(" "),i("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[i("payments-meta-data",{ref:"metaDataAppointments",attrs:{data:e.payments,customFields:e.customFields,coupons:e.coupons,categories:e.categories,language:e.language,tab:"appointment"}})],1),e._v(" "),e.settings.wc.enabled||!e.$root.licence.isPro&&!e.$root.licence.isDeveloper?e._e():i("el-tab-pane",{attrs:{label:e.$root.labels.cart,name:"cart"}},[i("payments-meta-data",{ref:"metaDataCart",attrs:{data:e.payments,customFields:e.customFields,coupons:e.coupons,categories:e.categories,language:e.language,tab:"cart"}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?i("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[i("payments-meta-data",{ref:"metaDataPackages",attrs:{data:e.payments,language:e.language,tab:"package"}})],1):e._e(),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[i("payments-meta-data",{ref:"metaDataEvents",attrs:{data:e.payments,customFields:e.customFields,coupons:e.coupons,language:e.language,tab:"event"}})],1)],1)]],2)],1)],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1522),i(1525),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(91),a=i(654),o=i(1035),s=i.n(o);t.default={components:{DialogEmployeeBadges:s.a},mixins:[n.a,a.a],props:{roles:{type:Object}},data:function(){var e=this,t=function(t,i,n){e.settings.limitPerCustomerService.enabled&&!i?n(new Error(e.$root.labels.required_field)):n()},i=function(t,i,n){e.settings.limitPerCustomerPackage.enabled&&!i?n(new Error(e.$root.labels.required_field)):n()},n=function(t,i,n){e.settings.limitPerCustomerEvent.enabled&&!i?n(new Error(e.$root.labels.required_field)):n()};return{rolesTab:this.$root.licence.isLite?"customer":"employee",rules:{"customerCabinet.pageUrl":[{required:!0,validator:function(t,i,n){var a=e.settings.customerCabinet.pageUrl;!e.settings.customerCabinet.enabled||/^((http|https):\/\/)/.test(a)&&""!==a?n():(e.rolesTab="customer",n(new Error(e.$root.labels.enter_valid_url_warning)))},trigger:"submit"}],"providerCabinet.pageUrl":[{required:!0,validator:function(t,i,n){var a=e.settings.providerCabinet.pageUrl;!e.settings.providerCabinet.enabled||/^((http|https):\/\/)/.test(a)&&""!==a?n():(e.rolesTab="employee",n(new Error(e.$root.labels.enter_valid_url_warning)))},trigger:"submit"}],"limitPerCustomerService.numberOfApp":[{required:!0,validator:t,trigger:"submit"}],"limitPerCustomerService.period":[{required:!0,validator:t,trigger:"submit"}],"limitPerCustomerPackage.numberOfApp":[{required:!0,validator:i,trigger:"submit"}],"limitPerCustomerPackage.period":[{required:!0,validator:i,trigger:"submit"}],"limitPerCustomerEvent.numberOfApp":[{required:!0,validator:n,trigger:"submit"}],"limitPerCustomerEvent.period":[{required:!0,validator:n,trigger:"submit"}]},settings:Object.assign({},this.roles),limitPerCustomerFrom:{appointment:[{label:this.$root.labels.limit_app_date_booked,value:"dateBooked"},{label:this.$root.labels.limit_app_booking_date,value:"bookingDate"}],event:[{label:this.$root.labels.limit_events_date_booked,value:"dateBooked"},{label:this.$root.labels.limit_events_booking_date,value:"bookingDate"}]},limitPerCustomerTimeFrames:[{label:this.$root.labels.hour,value:"hour"},{label:this.$root.labels.day,value:"day"},{label:this.$root.labels.week,value:"week"},{label:this.$root.labels.month,value:"month"},{label:this.$root.labels.year,value:"year"}]}},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{showDialogEmployeeBadges:function(){this.$emit("showDialogEmployeeBadges")},closeDialog:function(){this.$emit("closeDialogSettingsRoles")},clearValidation:function(){this.$refs.settings.clearValidate()},onSubmit:function(){var e=this;this.$refs.settings.validate(function(t){if(!t)return!1;e.settings.limitPerCustomerService.numberOfApp=e.settings.limitPerCustomerService.numberOfApp?e.settings.limitPerCustomerService.numberOfApp:1,e.settings.limitPerCustomerService.period=e.settings.limitPerCustomerService.period?e.settings.limitPerCustomerService.period:1,e.settings.limitPerCustomerPackage.numberOfApp=e.settings.limitPerCustomerPackage.numberOfApp?e.settings.limitPerCustomerPackage.numberOfApp:1,e.settings.limitPerCustomerPackage.period=e.settings.limitPerCustomerPackage.period?e.settings.limitPerCustomerPackage.period:1,e.settings.limitPerCustomerEvent.numberOfApp=e.settings.limitPerCustomerEvent.numberOfApp?e.settings.limitPerCustomerEvent.numberOfApp:1,e.settings.limitPerCustomerEvent.period=e.settings.limitPerCustomerEvent.period?e.settings.limitPerCustomerEvent.period:1,e.$emit("closeDialogSettingsRoles"),e.$emit("updateSettings",{roles:e.settings})})},showDialogTranslate:function(){this.$emit("showDialogTranslate",this.$root.labels.customer_cabinet)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(654);t.default={mixins:[n.a],props:{roles:{type:Object,default:function(){}}},data:function(){return{newBadge:{content:"",color:"#3B82F6"},badgeArray:[],dataLoading:!1,dialogLoading:!1,mapForm:{},mapColumns:[],errorMessages:[]}},mounted:function(){this.inlineSVG()},created:function(){this.badgeArray=this.roles.providerBadges},methods:{showDialogTranslate:function(e){this.$emit("showDialogTranslate",e)},deleteBadge:function(e){this.badgeArray.badges=this.badgeArray.badges.filter(function(t){return t.id!==e})},addBadge:function(){var e=this.badgeArray.counter+1;this.newBadge.id=e,this.badgeArray.badges.push(this.newBadge),this.newBadge={content:"",color:"#3B82F6"},this.badgeArray.counter=e},loadData:function(){this.showContinue=!0,this.dataLoading=!0},closeDialog:function(){this.$emit("closeDialogEmployeeBadges")},onSubmit:function(){var e=this.roles;e.providerBadges=this.badgeArray,this.$emit("closeDialogEmployeeBadges"),this.$emit("updateSettings",{roles:e})}},components:{}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:14}},[i("h2",[e._v(e._s(e.$root.labels.manage_employee_badges))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:10}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-create-badge-form"},[i("el-row",[i("p",{staticClass:"am-create-badge-form-title"},[e._v("\n "+e._s(e.$root.labels.create_new_badge)+"\n ")])]),e._v(" "),i("el-row",[i("el-col",{style:{paddingRight:"8px"},attrs:{sm:10,xs:24}},[i("p",{staticClass:"am-label"},[e._v(e._s(e.$root.labels.badge_label))]),e._v(" "),i("el-input",{staticClass:"calc-width",attrs:{placeholder:"Enter label",size:"medium"},model:{value:e.newBadge.content,callback:function(t){e.$set(e.newBadge,"content",t)},expression:"newBadge.content"}})],1),e._v(" "),i("el-col",{style:{padding:"0 8px"},attrs:{sm:10,xs:24}},[i("p",{staticClass:"am-label"},[e._v(e._s(e.$root.labels.badge_color))]),e._v(" "),i("el-input",{staticClass:"calc-width",attrs:{placeholder:"Enter label",size:"medium"},model:{value:e.newBadge.color,callback:function(t){e.$set(e.newBadge,"color",t)},expression:"newBadge.color"}},[i("template",{slot:"suffix"},[i("el-color-picker",{attrs:{size:"medium","show-alpha":!0},model:{value:e.newBadge.color,callback:function(t){e.$set(e.newBadge,"color",t)},expression:"newBadge.color"}})],1)],2)],1),e._v(" "),i("el-col",{style:{paddingLeft:"8px"},attrs:{sm:4,xs:12}},[i("el-button",{staticClass:"am-create-badge-form-add-btn",attrs:{disabled:!e.newBadge.content,size:"medium"},on:{click:e.addBadge}},[e._v("\n "+e._s(e.$root.labels.add)+"\n ")])],1)],1)],1),e._v(" "),i("div",{staticClass:"am-badge-list"},[i("div",{staticClass:"am-event-translate",staticStyle:{display:"inline-block",float:"right",cursor:"pointer"},on:{click:function(t){return e.showDialogTranslate("badges")}}},[i("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.translate)+"\n ")]),e._v(" "),i("div",{staticClass:"am-badge-list-items"},e._l(e.badgeArray.badges,function(t){return i("el-collapse",{key:t.id},[i("el-collapse-item",{staticClass:"am-badge-item"},[i("template",{slot:"title"},[i("div",{staticClass:"am-delete-element",on:{click:function(i){return e.deleteBadge(t.id)}}},[i("img",{attrs:{src:e.$root.getUrl+"public/img/delete.svg"}})]),e._v(" "),i("div",{staticClass:"am-badge-content",style:{border:"1px solid "+t.color+"66",background:t.color}},[i("span",{staticClass:"am-badge-content-text"},[e._v(e._s(t.content))])])]),e._v(" "),i("div",[i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{sm:12}},[i("p",{staticClass:"am-label"},[e._v(e._s(e.$root.labels.badge_label))]),e._v(" "),i("el-input",{staticClass:"calc-width",attrs:{placeholder:"Enter label",size:"medium"},model:{value:t.content,callback:function(i){e.$set(t,"content",i)},expression:"badge.content"}})],1),e._v(" "),i("el-col",{attrs:{sm:12}},[i("p",{staticClass:"am-label"},[e._v(e._s(e.$root.labels.badge_color))]),e._v(" "),i("el-input",{staticClass:"calc-width",attrs:{placeholder:"Enter label",size:"medium"},model:{value:t.color,callback:function(i){e.$set(t,"color",i)},expression:"badge.color"}},[i("template",{slot:"suffix"},[i("el-color-picker",{attrs:{size:"medium","show-alpha":!0},model:{value:t.color,callback:function(i){e.$set(t,"color",i)},expression:"badge.color"}})],1)],2)],1)],1)],1)],2)],1)}),1)])]),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[i("span",[e._v(e._s(e.$root.labels.cancel))])]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[i("h2",[e._v(e._s(e.$root.labels.roles_settings))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-tabs",{model:{value:e.rolesTab,callback:function(t){e.rolesTab=t},expression:"rolesTab"}},[e.$root.licence.isLite?e._e():i("el-tab-pane",{attrs:{label:e.$root.labels.employee,name:"employee"}},[i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_configure_services)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowConfigureServices,callback:function(t){e.$set(e.settings,"allowConfigureServices",t)},expression:"settings.allowConfigureServices"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_configure_schedule)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowConfigureSchedule,callback:function(t){e.$set(e.settings,"allowConfigureSchedule",t)},expression:"settings.allowConfigureSchedule"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_configure_days_off)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowConfigureDaysOff,callback:function(t){e.$set(e.settings,"allowConfigureDaysOff",t)},expression:"settings.allowConfigureDaysOff"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_configure_special_days)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowConfigureSpecialDays,callback:function(t){e.$set(e.settings,"allowConfigureSpecialDays",t)},expression:"settings.allowConfigureSpecialDays"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_write_appointments)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowWriteAppointments,callback:function(t){e.$set(e.settings,"allowWriteAppointments",t)},expression:"settings.allowWriteAppointments"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_write_events)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowWriteEvents,callback:function(t){e.$set(e.settings,"allowWriteEvents",t)},expression:"settings.allowWriteEvents"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_write_customers)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowWriteCustomers,callback:function(t){e.$set(e.settings,"allowWriteCustomers",t)},expression:"settings.allowWriteCustomers"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_employee_cabinet)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.providerCabinet.enabled,callback:function(t){e.$set(e.settings.providerCabinet,"enabled",t)},expression:"settings.providerCabinet.enabled"}})],1)],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.providerCabinet.enabled,expression:"settings.providerCabinet.enabled"}],attrs:{prop:"providerCabinet.pageUrl"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.employee_cabinet)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.employee_cabinet_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.providerCabinet.pageUrl,callback:function(t){e.$set(e.settings.providerCabinet,"pageUrl",t)},expression:"settings.providerCabinet.pageUrl"}})],1),e._v(" "),e.settings.providerCabinet.enabled?i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.recaptcha_enabled)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_roles_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.providerCabinet.googleRecaptcha,callback:function(t){e.$set(e.settings.providerCabinet,"googleRecaptcha",t)},expression:"settings.providerCabinet.googleRecaptcha"}})],1)],1)],1):e._e(),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass()},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:18}},[e._v("\n "+e._s(e.$root.labels.employee_badges)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:6}},[i("div",{staticClass:"am-manage-employee-badges",on:{click:function(t){e.notInLicence()||e.showDialogEmployeeBadges()}}},[i("img",{staticClass:"am-manage-employee-badges-icon",attrs:{width:"24px",height:"24px",src:e.$root.getUrl+"public/img/am-manage-badges.svg",alt:"Employee Badges"}}),e._v("\n "+e._s(e.$root.labels.manage)+"\n ")])])],1),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass()},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.limit_app_per_employee)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_app_per_employee_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:5}},[i("el-switch",{attrs:{disabled:e.notInLicence()},model:{value:e.settings.limitPerEmployee.enabled,callback:function(t){e.$set(e.settings.limitPerEmployee,"enabled",t)},expression:"settings.limitPerEmployee.enabled"}})],1)],1),e._v(" "),e.settings.limitPerEmployee.enabled?i("el-row",{attrs:{gutter:24}},[i("el-col",[i("el-form-item",[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_appointments)+":\n ")]),e._v(" "),i("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerEmployee.numberOfApp,callback:function(t){e.$set(e.settings.limitPerEmployee,"numberOfApp",t)},expression:"settings.limitPerEmployee.numberOfApp"}})],1)],1)],1):e._e(),e._v(" "),i("LicenceBlock")],1)],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.customer,name:"customer"}},[i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.inspect_customer_info)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.inspect_customer_info_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.inspectCustomerInfo,callback:function(t){e.$set(e.settings,"inspectCustomerInfo",t)},expression:"settings.inspectCustomerInfo"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.automatically_create_customer)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.automatically_create_customer_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.automaticallyCreateCustomer,callback:function(t){e.$set(e.settings,"automaticallyCreateCustomer",t)},expression:"settings.automaticallyCreateCustomer"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_customer_reschedule)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_customer_reschedule_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowCustomerReschedule,callback:function(t){e.$set(e.settings,"allowCustomerReschedule",t)},expression:"settings.allowCustomerReschedule"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("starter")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_customer_cabinet)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{disabled:e.notInLicence("starter"),"active-text":"","inactive-text":""},model:{value:e.settings.customerCabinet.enabled,callback:function(t){e.$set(e.settings.customerCabinet,"enabled",t)},expression:"settings.customerCabinet.enabled"}})],1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.customerCabinet.enabled,expression:"settings.customerCabinet.enabled"}],attrs:{prop:"customerCabinet.pageUrl"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.customer_cabinet)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.customer_cabinet_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})]),e._v(" "),i("div",{staticClass:"am-service-translate",on:{click:function(t){return e.showDialogTranslate()}}},[i("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg",alt:"Translate"}}),e._v("\n "+e._s(e.$root.labels.manage_languages)+"\n ")])],1),e._v(" "),i("el-input",{attrs:{"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.customerCabinet.pageUrl,callback:function(t){e.$set(e.settings.customerCabinet,"pageUrl",t)},expression:"settings.customerCabinet.pageUrl"}})],1),e._v(" "),e.settings.customerCabinet.enabled?i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.recaptcha_enabled)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_roles_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.customerCabinet.googleRecaptcha,callback:function(t){e.$set(e.settings.customerCabinet,"googleRecaptcha",t)},expression:"settings.customerCabinet.googleRecaptcha"}})],1)],1)],1):e._e(),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.customerCabinet.enabled,expression:"settings.customerCabinet.enabled"}],staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.require_cabinet_password)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.require_cabinet_password_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.customerCabinet.loginEnabled,callback:function(t){e.$set(e.settings.customerCabinet,"loginEnabled",t)},expression:"settings.customerCabinet.loginEnabled"}})],1)],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.customerCabinet.enabled,expression:"settings.customerCabinet.enabled"}],staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_customer_delete_profile)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_customer_delete_profile_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowCustomerDeleteProfile,callback:function(t){e.$set(e.settings,"allowCustomerDeleteProfile",t)},expression:"settings.allowCustomerDeleteProfile"}})],1)],1)],1),e._v(" "),(e.notInLicence("pro")?e.settings.customerCabinet.enabled&&e.licenceVisible():e.settings.customerCabinet.enabled)?i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("pro")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_customer_cancel_packages)+"\n ")]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{disabled:e.notInLicence("pro"),"active-text":"","inactive-text":""},model:{value:e.settings.allowCustomerCancelPackages,callback:function(t){e.$set(e.settings,"allowCustomerCancelPackages",t)},expression:"settings.allowCustomerCancelPackages"}})],1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"pro"}})],1):e._e(),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass()},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.limit_app_per_customer)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_app_per_customer_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:5}},[i("el-switch",{attrs:{disabled:e.notInLicence()},model:{value:e.settings.limitPerCustomerService.enabled,callback:function(t){e.$set(e.settings.limitPerCustomerService,"enabled",t)},expression:"settings.limitPerCustomerService.enabled"}})],1)],1),e._v(" "),e.settings.limitPerCustomerService.enabled?i("el-row",{attrs:{gutter:24}},[i("el-col",[i("el-form-item",{attrs:{prop:"limitPerCustomerService.numberOfApp"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_appointments)+":\n ")]),e._v(" "),i("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerService.numberOfApp,callback:function(t){e.$set(e.settings.limitPerCustomerService,"numberOfApp",t)},expression:"settings.limitPerCustomerService.numberOfApp"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerService.enabled?i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[i("el-form-item",[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.time_frame)+":\n ")]),e._v(" "),i("el-select",{attrs:{placeholder:""},model:{value:e.settings.limitPerCustomerService.timeFrame,callback:function(t){e.$set(e.settings.limitPerCustomerService,"timeFrame",t)},expression:"settings.limitPerCustomerService.timeFrame"}},e._l(e.limitPerCustomerTimeFrames,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"limitPerCustomerService.period"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period)+":\n ")]),e._v(" "),i("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerService.period,callback:function(t){e.$set(e.settings.limitPerCustomerService,"period",t)},expression:"settings.limitPerCustomerService.period"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerService.enabled?i("el-row",{staticStyle:{"margin-top":"10px",display:"flex","align-items":"baseline"},attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.$root.labels.limit_app_per_customer_from)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_app_per_customer_from_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-select",{model:{value:e.settings.limitPerCustomerService.from,callback:function(t){e.$set(e.settings.limitPerCustomerService,"from",t)},expression:"settings.limitPerCustomerService.from"}},e._l(e.limitPerCustomerFrom.appointment,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1):e._e(),e._v(" "),i("LicenceBlock")],1),e._v(" "),!e.notInLicence("pro")||e.licenceVisible()?i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("pro")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.limit_package_per_customer)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_package_per_customer_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:5}},[i("el-switch",{attrs:{disabled:e.notInLicence("pro")},model:{value:e.settings.limitPerCustomerPackage.enabled,callback:function(t){e.$set(e.settings.limitPerCustomerPackage,"enabled",t)},expression:"settings.limitPerCustomerPackage.enabled"}})],1)],1),e._v(" "),e.settings.limitPerCustomerPackage.enabled?i("el-row",{attrs:{gutter:24}},[i("el-col",[i("el-form-item",{attrs:{prop:"limitPerCustomerPackage.numberOfApp"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_packages)+":\n ")]),e._v(" "),i("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerPackage.numberOfApp,callback:function(t){e.$set(e.settings.limitPerCustomerPackage,"numberOfApp",t)},expression:"settings.limitPerCustomerPackage.numberOfApp"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerPackage.enabled?i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[i("el-form-item",[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.time_frame)+":\n ")]),e._v(" "),i("el-select",{attrs:{placeholder:""},model:{value:e.settings.limitPerCustomerPackage.timeFrame,callback:function(t){e.$set(e.settings.limitPerCustomerPackage,"timeFrame",t)},expression:"settings.limitPerCustomerPackage.timeFrame"}},e._l(e.limitPerCustomerTimeFrames,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"limitPerCustomerPackage.period"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period)+":\n ")]),e._v(" "),i("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerPackage.period,callback:function(t){e.$set(e.settings.limitPerCustomerPackage,"period",t)},expression:"settings.limitPerCustomerPackage.period"}})],1)],1)],1):e._e(),e._v(" "),i("LicenceBlock",{attrs:{licence:"pro"}})],1):e._e(),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass()},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.limit_events_per_customer)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_events_per_customer_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:5}},[i("el-switch",{attrs:{disabled:e.notInLicence()},model:{value:e.settings.limitPerCustomerEvent.enabled,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"enabled",t)},expression:"settings.limitPerCustomerEvent.enabled"}})],1)],1),e._v(" "),e.settings.limitPerCustomerEvent.enabled?i("el-row",{attrs:{gutter:24}},[i("el-col",[i("el-form-item",{attrs:{prop:"limitPerCustomerEvent.numberOfApp"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_events)+":\n ")]),e._v(" "),i("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerEvent.numberOfApp,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"numberOfApp",t)},expression:"settings.limitPerCustomerEvent.numberOfApp"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerEvent.enabled?i("el-row",{attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[i("el-form-item",[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.time_frame)+":\n ")]),e._v(" "),i("el-select",{attrs:{placeholder:""},model:{value:e.settings.limitPerCustomerEvent.timeFrame,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"timeFrame",t)},expression:"settings.limitPerCustomerEvent.timeFrame"}},e._l(e.limitPerCustomerTimeFrames,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"limitPerCustomerEvent.period"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period)+":\n ")]),e._v(" "),i("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerEvent.period,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"period",t)},expression:"settings.limitPerCustomerEvent.period"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerEvent.enabled?i("el-row",{staticStyle:{"margin-top":"10px",display:"flex","align-items":"baseline"},attrs:{gutter:24}},[i("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.$root.labels.limit_events_per_customer_from)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_events_per_customer_from_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-select",{model:{value:e.settings.limitPerCustomerEvent.from,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"from",t)},expression:"settings.limitPerCustomerEvent.from"}},e._l(e.limitPerCustomerFrom.event,function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1):e._e(),e._v(" "),i("LicenceBlock")],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass()},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_no_show_tag)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.enable_no_show_tag_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{disabled:e.notInLicence(),"active-text":"","inactive-text":""},model:{value:e.settings.enableNoShowTag,callback:function(t){e.$set(e.settings,"enableNoShowTag",t)},expression:"settings.enableNoShowTag"}})],1)],1),e._v(" "),i("LicenceBlock")],1)],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.admin,name:"admin"}},[i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.allow_admin_book_at_any_time)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_admin_book_at_any_time_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:8}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowAdminBookAtAnyTime,callback:function(t){e.$set(e.settings,"allowAdminBookAtAnyTime",t)},expression:"settings.allowAdminBookAtAnyTime"}})],1)],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.allowAdminBookAtAnyTime,expression:"settings.allowAdminBookAtAnyTime"}],staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.admin_time_slot_service_duration)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.admin_time_slot_service_duration_tt)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.adminServiceDurationAsSlot,callback:function(t){e.$set(e.settings,"adminServiceDurationAsSlot",t)},expression:"settings.adminServiceDurationAsSlot"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"am-setting-box am-switch-box"},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_admin_book_over_app)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_admin_book_over_app_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowAdminBookOverApp,callback:function(t){e.$set(e.settings,"allowAdminBookOverApp",t)},expression:"settings.allowAdminBookOverApp"}})],1)],1)],1)])],1)],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1527),i(1528),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(928),a=i.n(n),o=i(929),s=i.n(o),r=i(654),l=i(336),c=i(660);t.default={mixins:[r.a,l.a,c.a],props:{weekSchedule:{type:Array},daysOff:{type:Array},showWorkingHours:{default:!0,type:Boolean},showDaysOff:{default:!0,type:Boolean}},data:function(){return{dayOffSettings:this.daysOff.slice(0),weekScheduleSettings:this.weekSchedule?this.weekSchedule.slice(0):[],activeTab:"hours"}},mounted:function(){this.showWorkingHours&&this.translateDayStrings(),this.inlineSVG()},methods:{closeDialog:function(){this.$emit("closeDialogSettingsWorkHoursDaysOff")},onSubmit:function(){var e=[],t=this;this.weekScheduleSettings.forEach(function(i){var n=[],a=[],o=86400,s=0;i.breaks.forEach(function(e){e.time.length&&e.time[0]&&e.time[1]&&a.push({time:[e.time[0],e.time[1]]})}),"periods"in i&&i.periods.length&&i.periods.forEach(function(e){var i=t.getStringTimeInSeconds(e.time[0]),a=t.getStringTimeInSeconds(e.time[1]);o=i<o?i:o,s=a>s?a:s,e.time.length&&e.time[0]&&e.time[1]&&n.push({time:[e.time[0],e.time[1]]})}),e.push({day:i.day,time:[n.length?t.secondsToTimeSelectStep(o):null,n.length?t.secondsToTimeSelectStep(s):null],periods:n,breaks:a})}),this.$emit("closeDialogSettingsWorkHoursDaysOff"),this.$emit("updateSettings",{daysOff:this.dayOffSettings,weekSchedule:e})},changeDaysOff:function(e){e.forEach(function(e){delete e.id}),this.dayOffSettings=e},translateDayStrings:function(){for(var e=["weekday_monday","weekday_tuesday","weekday_wednesday","weekday_thursday","weekday_friday","weekday_saturday","weekday_sunday"],t=0;t<this.weekSchedule.length;t++){var i=e[t];this.weekSchedule[t].day=this.$root.labels[i]}}},computed:{showTabs:function(){return this.showWorkingHours&&this.showDaysOff},showWorkingHoursOnly:function(){return this.showWorkingHours&&!this.showDaysOff},showDaysOffOnly:function(){return!this.showWorkingHours&&this.showDaysOff}},components:{DaysOff:a.a,WorkingHours:s.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"am-dialog-scrollable"},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:20}},[e.showWorkingHoursOnly?i("h2",[e._v("\n "+e._s(e.$root.labels.company_work_hours_settings)+"\n ")]):e.showDaysOffOnly?i("h2",[e._v("\n "+e._s(e.$root.labels.company_days_off_settings)+"\n ")]):i("h2",[e._v("\n "+e._s(e.$root.labels.work_hours_days_off_settings)+"\n ")])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:4}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[e.showTabs?i("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.work_hours,name:"hours"}},[i("working-hours",{attrs:{weekSchedule:e.weekScheduleSettings}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$root.labels.days_off,name:"off"}},[i("days-off",{attrs:{daysOff:e.dayOffSettings},on:{changeDaysOff:e.changeDaysOff}})],1)],1):e._e(),e._v(" "),e.showWorkingHoursOnly?i("working-hours",{attrs:{weekSchedule:e.weekScheduleSettings,categorizedServiceList:[],locations:[]}}):e._e(),e._v(" "),e.showDaysOffOnly?i("days-off",{attrs:{daysOff:e.dayOffSettings},on:{changeDaysOff:e.changeDaysOff}}):e._e()],1)],1),e._v(" "),i("div",{staticClass:"am-dialog-footer"},[i("div",{staticClass:"am-dialog-footer-actions"},[i("el-row",[i("el-col",{staticClass:"align-right",attrs:{sm:24}},[i("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),i("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},function(e,t,i){var n=i(90)(i(1530),i(1531),!1,null,null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(979),a=i.n(n),o=i(982),s=i.n(o),r=i(928),l=i.n(r),c=i(929),u=i.n(c),d=i(984),p=i.n(d),f=i(697),h=i.n(f),m=i(671),g=i.n(m),b=i(699),v=(i.n(b),i(806)),y=i.n(v),_=i(91),w=i(654),k=i(336),x=i(660),S=i(658),C=i(657),$=i(877),P=i(987),E=i(988),A=i(733),T=i.n(A);t.default={mixins:[_.a,w.a,k.a,x.a,S.a,C.a,$.a,E.a,P.a],props:{locations:null,employee:null,editCategorizedServiceList:null,editWeekDayList:null,companyDaysOff:null,futureAppointments:null},data:function(){return{badges:[],hideDescription:!0,appointmentsServices:[],dialogLoading:!0,employeeTabs:"details",errors:{email:""},executeUpdate:!0,formOptions:{wpUsers:[]},googleAuthURL:"",outlookAuthURL:"",googleLoading:!1,outlookLoading:!1,appleLoading:!1,appleCalendarList:[],zoomUsers:[],stripeLoading:!1,stripeProvider:null,stripeProviders:null,isStripeConnectAmountDefault:!1,isEmployeeConnectedToPersonalAppleCalendar:!1,rules:{firstName:[{required:!0,message:this.$root.labels.enter_first_name_warning,trigger:"submit"}],lastName:[{required:!0,message:this.$root.labels.enter_last_name_warning,trigger:"submit"}],email:[{required:!0,message:this.$root.labels.enter_email_warning,trigger:"submit"},{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}],locationId:[{required:this.visibleLocations().length>0,message:this.$root.labels.enter_location_warning,trigger:"blur"}],password:[{min:4,max:128,message:this.$root.labels.new_password_length,trigger:"submit"}]}}},created:function(){var e=this;this.instantiateDialog(),setTimeout(function(){e.hideDescription=!1},500),this.badges=this.$root.settings.roles.providerBadges.badges},updated:function(){this.instantiateDialog()},methods:{showDialogEmployeeBadges:function(){this.$emit("showDialogEmployeeBadges")},showDialogTranslate:function(e){this.$emit("showDialogTranslate",e)},instantiateDialog:function(){if((null!==this.employee||null!==this.employee&&0===this.employee.id)&&!0===this.executeUpdate){this.$root.settings.capabilities.canWriteOthers&&(0!==this.employee.id?this.getWPUsers(this.employee.externalId):this.getWPUsers(0)),this.$root.licence.isLite||this.$root.licence.isStarter||this.employee.googleCalendar.token||this.getGoogleAuthURL(!1),this.$root.licence.isLite||this.$root.licence.isStarter||this.employee.outlookCalendar.token||this.getOutlookAuthURL(!1);var e=this.visibleLocations();1===e.length&&(this.employee.locationId=e[0].id),!this.$root.settings.zoom.enabled||this.$root.licence.isLite||this.$root.licence.isStarter||this.getZoomUsers(),!this.$root.settings.appleCalendar||this.$root.licence.isLite||this.$root.licence.isStarter||this.getAppleCalendarList(),this.employee.stripeConnect||(this.employee.stripeConnect={id:null,amount:null}),this.isEmployeeConnectedToPersonalAppleCalendar=!0,this.employee.employeeAppleCalendar&&null!==this.employee.employeeAppleCalendar.iCloudId&&null!==this.employee.employeeAppleCalendar.appSpecificPassword||(this.isEmployeeConnectedToPersonalAppleCalendar=!1,this.employee.employeeAppleCalendar={iCloudId:null,appSpecificPassword:null}),this.$root.settings.payments.stripe.enabled&&this.$root.settings.payments.stripe.connect.enabled&&("admin"!==this.$root.settings.role&&"manager"!==this.$root.settings.role||(null===this.employee.stripeConnect.amount&&(this.isStripeConnectAmountDefault=!0),this.getStripeProviders()),"admin"!==this.$root.settings.role&&"manager"!==this.$root.settings.role&&this.getStripeProvider()),this.employee.id in this.futureAppointments&&(this.appointmentsServices=this.futureAppointments[this.employee.id]),this.$set(this.employee,"sendEmployeePanelAccessEmail",!0),this.$root.settings.capabilities.canWriteOthers||(this.dialogLoading=!1,this.inlineDialogEmployeeSVG()),null!==this.employee.description&&this.employee.description.startsWith("\x3c!-- Content --\x3e")&&(this.employee.descriptionHtml=this.employee.description),this.executeUpdate=!1}},checkCapacityLimits:function(e){this.clearValidation(),e.minCapacity>e.maxCapacity&&(e.maxCapacity=e.minCapacity)},validationFailCallback:function(){this.employeeTabs="details"},errorCallback:function(e){var t=this;t.errors.email="",setTimeout(function(){t.errors.email=e,t.employeeTabs="details"},200)},closeDialog:function(){this.$emit("closeDialog")},trimNames:function(){this.employee.firstName=this.employee.firstName.trim(),this.employee.lastName=this.employee.lastName.trim()},getParsedEntity:function(){var e=this;this.employee.serviceList=this.getParsedServiceList(this.editCategorizedServiceList),this.employee.weekDayList=this.getParsedWeekDayList(this.editWeekDayList),this.trimNames();var t=JSON.parse(JSON.stringify(this.employee));return t.serviceList.forEach(function(t){t.customPricing=e.getJsonCustomPricing(t)}),null===this.employee.employeeAppleCalendar.iCloudId&&null===this.employee.employeeAppleCalendar.appSpecificPassword&&(t.employeeAppleCalendar=null),""===this.employee.stripeConnect.id||null===this.employee.stripeConnect.id?t.stripeConnect=null:(""===t.stripeConnect.amount||this.isStripeConnectAmountDefault)&&(t.stripeConnect.amount=null),t},changeStripeConnectAmount:function(){this.isStripeConnectAmountDefault=void 0===this.employee.stripeConnect.amount||""===this.employee.stripeConnect.amount||null===this.employee.stripeConnect.amount},setStripeConnectAmount:function(){if(this.isStripeConnectAmountDefault||null===this.employee.stripeConnect.amount||""===this.employee.stripeConnect.amount){for(var e=document.getElementsByClassName("am-stripe-amount"),t=0;t<e.length;t++)e[t].getElementsByClassName("el-input__inner")[0].value="";this.employee.stripeConnect.amount=null}else this.isStripeConnectAmountDefault=!1},changeStripeAccount:function(){var e=this;setTimeout(function(){e.setStripeConnectAmount()},200)},getStripeProvider:function(){var e=this;this.stripeLoading=!0,this.$http.get(this.$root.getAjaxUrl+"/stripe/accounts/"+this.employee.id,{},{}).then(function(t){t.data.data.account&&(e.stripeLoading=!1,e.stripeProvider=t.data.data.account)}).catch(function(e){})},getStripeProviders:function(){var e=this;this.stripeLoading=!0,this.$http.get(this.$root.getAjaxUrl+"/stripe/accounts",{},{}).then(function(t){t.data.data.accounts&&(e.stripeLoading=!1,e.stripeProviders=t.data.data.accounts),e.setStripeConnectAmount()}).catch(function(e){})},changeDaysOff:function(e){this.clearValidation(),this.employee.dayOffList=e},changeSpecialDays:function(e,t){null===t?this.employee.specialDayList.push(e):this.employee.specialDayList[t]=e},phoneFormatted:function(e,t){this.clearValidation(),this.employee.phone=e,this.employee.countryPhoneIso=t},pictureSelected:function(e,t){this.employee.pictureFullPath=e,this.employee.pictureThumbPath=t},getWPUsers:function(e){var t=this;this.$http.get(this.$root.getAjaxUrl+"/users/wp-users",{params:{id:e,role:"provider"}}).then(function(e){t.formOptions.wpUsers=e.data.data.users,t.formOptions.wpUsers.unshift({value:0,label:t.$root.labels.create_new}),-1===t.formOptions.wpUsers.map(function(e){return e.value}).indexOf(t.employee.externalId)&&(t.employee.externalId=""),t.dialogLoading=!1,t.inlineDialogEmployeeSVG()})},visibleLocations:function(){var e=this;return this.locations.filter(function(t){return"visible"===t.status||e.employee&&"hidden"===t.status&&t.id===e.employee.locationId})},showCompanyDaysOffSettingsDialog:function(){this.$emit("showCompanyDaysOffSettingsDialog")},clearValidation:function(){void 0!==this.$refs.employee&&this.$refs.employee.clearValidate()},selectCreateNewWPUser:function(){this.employee.externalId=0,this.$refs.wpUser.blur()},getGoogleAuthURL:function(e){var t=this;this.employee.id&&this.$root.settings.googleCalendar.enabled&&this.$http.get(this.$root.getAjaxUrl+"/google/authorization/url/"+this.employee.id).then(function(i){t.googleAuthURL=i.data.data.authUrl,t.googleLoading=!1,t.dialogLoading=!1,e&&t.inlineDialogEmployeeSVG()}).catch(function(e){t.notify(t.$root.labels.error,e.message,"error")})},getOutlookAuthURL:function(e){var t=this;this.employee.id&&this.$root.settings.outlookCalendar.enabled&&this.$http.get(this.$root.getAjaxUrl+"/outlook/authorization/url/"+this.employee.id).then(function(i){t.outlookAuthURL=i.data.data.authUrl,t.outlookLoading=!1,t.dialogLoading=!1,e&&t.inlineDialogEmployeeSVG()}).catch(function(e){t.notify(t.$root.labels.error,e.message,"error")})},getZoomUsers:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/zoom/users").then(function(t){"data"in t.data&&"users"in t.data.data&&(e.zoomUsers=t.data.data.users)}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")})},redirectToGoogleAuthPage:function(){this.googleLoading=!0,window.location.href=this.googleAuthURL},redirectToOutlookAuthPage:function(){this.outlookLoading=!0,window.location.href=this.outlookAuthURL},disconnectFromGoogleAccount:function(){var e=this;this.googleLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/google/disconnect/"+this.employee.id).then(function(){e.employee.googleCalendar={calendarId:null,calendarList:[]},e.getGoogleAuthURL(!0)}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")})},disconnectFromOutlookAccount:function(){var e=this;this.outlookLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/outlook/disconnect/"+this.employee.id).then(function(){e.employee.outlookCalendar={calendarId:null,calendarList:[]},e.getOutlookAuthURL(!0)}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")})},inlineDialogEmployeeSVG:function(){var e=this;setTimeout(function(){e.inlineSVG()},10)},getAppleCalendarList:function(){var e=this;this.appleLoading=!0,this.$http.get(this.$root.getAjaxUrl+"/apple/calendar-list/"+this.employee.id).then(function(t){e.appleCalendarList=t.data.data.calendarList,e.appleCalendarList.find(function(t){return t.id===e.employee.appleCalendarId})||e.$set(e.employee,"appleCalendarId",null),e.isEmployeeConnectedToPersonalAppleCalendar=t.data.data.isEmployeeConnectedToPersonalAppleCalendar,e.employee.appleCalendarId=t.data.data.appleCalendarId,e.appleLoading=!1}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error"),e.appleLoading=!1})},disconnectFromAppleAccount:function(){var e=this;this.appleLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/apple/disconnect/"+this.employee.id).then(function(){e.$set(e.employee,"appleCalendarId",null),e.appleLoading=!1}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error"),e.appleLoading=!1})},connectPersonalAppleCalendar:function(){this.employeeTabs="apple",this.$refs.appleCalendarSelect.blur()},connectEmployeeToAppleAccount:function(){var e=this;this.appleLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/apple/connect/"+this.employee.id,{employeeAppleCalendar:this.employee.employeeAppleCalendar}).then(function(t){e.appleLoading=!1,e.isEmployeeConnectedToPersonalAppleCalendar=t.data.data.isEmployeeConnectedToPersonalAppleCalendar,e.getAppleCalendarList(),e.notify(e.$root.labels.success,t.data.message,"success")}).catch(function(t){e.isEmployeeConnectedToPersonalAppleCalendar=!1,t.response.data.message?e.notify(e.$root.labels.error,t.response.data.message,"error"):e.notify(e.$root.labels.error,t.message,"error")})},disconnectEmployeeFromAppleAccount:function(){var e=this;this.appleLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/apple/disconnect-employee/"+this.employee.id).then(function(t){e.$set(e.employee,"appleCalendarId",null),e.$set(e.employee,"employeeAppleCalendar",null),e.employee.employeeAppleCalendar={iCloudId:null,appSpecificPassword:null},e.isEmployeeConnectedToPersonalAppleCalendar=t.data.data.isEmployeeConnectedToPersonalAppleCalendar,e.getAppleCalendarList(),e.notify(e.$root.labels.success,t.data.message,"success"),e.appleLoading=!1}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error"),e.appleLoading=!1})}},computed:{filteredLocations:function(){return this.visibleLocations()}},components:{AssignedServices:a.a,CabinetDashboardStripe:s.a,PhoneInput:g.a,PictureUpload:y.a,DaysOff:l.a,WorkingHours:u.a,SpecialDays:p.a,DialogActions:h.a,Money:b.Money,ContentBlock:T.a}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[i("div",{staticClass:"am-dialog-loader-content"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),i("p",[e._v(e._s(e.$root.labels.loader_message))])])]),e._v(" "),e.employee&&!e.dialogLoading?i("div",{staticClass:"am-dialog-scrollable",class:{"am-edit":0!==e.employee.id}},[i("div",{staticClass:"am-dialog-header"},[i("el-row",[i("el-col",{attrs:{span:14}},[0!==e.employee.id?i("h2",[e._v(e._s(e.$root.licence.isLite?e.$root.labels.settings_employee:e.$root.labels.edit_employee)+" ")]):i("h2",[e._v(e._s(e.$root.licence.isLite?e.$root.labels.settings_employee:e.$root.labels.new_employee))])]),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:10}},[i("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),i("el-form",{ref:"employee",attrs:{model:e.employee,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[i("el-tabs",{model:{value:e.employeeTabs,callback:function(t){e.employeeTabs=t},expression:"employeeTabs"}},[i("el-tab-pane",{attrs:{label:e.$root.labels.details,name:"details"}},[i("div",{staticClass:"am-employee-profile"},[i("picture-upload",{attrs:{"delete-icon-visibility":e.employee.pictureThumbPath&&e.employee.pictureFullPath,"edited-entity":this.employee,"entity-name":"employee"},on:{pictureSelected:e.pictureSelected,deleteImage:function(){return e.deleteImage(e.employee)}}}),e._v(" "),i("h2",[e._v(e._s(e.employee.firstName)+" "+e._s(e.employee.lastName))]),e._v(" "),void 0!==e.employee.activity?i("span",{staticClass:"am-employee-status-label",class:e.employee.activity},[e._v("\n "+e._s(e.getEmployeeActivityLabel(e.employee.activity))+"\n ")]):e._e()],1),e._v(" "),i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{sm:12}},[i("div",{staticClass:"am-event-translate",staticStyle:{display:"inline-block",float:"right",cursor:"pointer"},on:{click:function(t){return e.showDialogTranslate("firstName")}}},[i("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.translate)+"\n ")]),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.first_name+":",prop:"firstName"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimNames()}},model:{value:e.employee.firstName,callback:function(t){e.$set(e.employee,"firstName",t)},expression:"employee.firstName"}})],1)],1),e._v(" "),i("el-col",{attrs:{sm:12}},[i("div",{staticClass:"am-event-translate",staticStyle:{display:"inline-block",float:"right",cursor:"pointer"},on:{click:function(t){return e.showDialogTranslate("lastName")}}},[i("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.translate)+"\n ")]),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.last_name+":",prop:"lastName"}},[i("el-input",{attrs:{"auto-complete":"off"},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimNames()}},model:{value:e.employee.lastName,callback:function(t){e.$set(e.employee,"lastName",t)},expression:"employee.lastName"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{sm:12}},[i("el-form-item",{attrs:{label:e.$root.labels.email+":",prop:"email",error:e.errors.email}},[i("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.labels.email_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.employee.email,callback:function(t){e.$set(e.employee,"email",t)},expression:"employee.email"}})],1)],1),e._v(" "),i("el-col",{attrs:{sm:12}},[e.locations.length?i("el-form-item",{attrs:{label:e.$root.labels.location+":",prop:"locationId"}},[i("el-select",{attrs:{placeholder:""},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.locationId,callback:function(t){e.$set(e.employee,"locationId",t)},expression:"employee.locationId"}},e._l(e.filteredLocations,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e()],1)],1),e._v(" "),e.$root.licence.isLite?e._e():i("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("starter")},[i("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[i("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.employee_show_on_site)+"\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.employee_show_on_site_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticClass:"align-right",attrs:{span:5}},[i("el-switch",{attrs:{disabled:e.notInLicence("starter")},model:{value:e.employee.show,callback:function(t){e.$set(e.employee,"show",t)},expression:"employee.show"}})],1)],1),e._v(" "),i("LicenceBlock",{attrs:{licence:"starter"}})],1),e._v(" "),i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{sm:12}},[!0===e.$root.settings.capabilities.canWriteOthers?i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.wp_user)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.wp_user_employee_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{ref:"wpUser",attrs:{filterable:"",placeholder:e.$root.labels.select_wp_user,clearable:""},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.externalId,callback:function(t){e.$set(e.employee,"externalId",t)},expression:"employee.externalId"}},[i("div",{staticClass:"am-drop"},[i("div",{staticClass:"am-drop-create-item",on:{click:e.selectCreateNewWPUser}},[e._v("\n "+e._s(e.$root.labels.create_new)+"\n ")]),e._v(" "),e._l(e.formOptions.wpUsers,function(e){return i("el-option",{key:e.value,class:{hidden:0===e.value},attrs:{label:e.label,value:e.value}})})],2)])],1):e._e()],1),e._v(" "),i("el-col",{attrs:{sm:12}},[i("el-form-item",{attrs:{label:e.$root.labels.phone+":"}},[i("phone-input",{attrs:{countryPhoneIso:e.employee.countryPhoneIso,savedPhone:e.employee.phone},on:{phoneFormatted:e.phoneFormatted}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:16}},[e.$root.settings.roles.providerCabinet.enabled?i("el-col",{attrs:{span:12}},["admin"===this.$root.settings.role||"manager"===this.$root.settings.role?i("el-form-item",{attrs:{label:e.$root.labels.employee_panel_password+":",prop:"password"}},[i("input",{staticStyle:{display:"none"},attrs:{type:"password",name:"fakePassword",autocomplete:"new-password","aria-hidden":"true"}}),e._v(" "),i("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.labels.enter_employee_panel_password,"show-password":""},on:{input:function(t){return e.clearValidation()}},model:{value:e.employee.password,callback:function(t){e.$set(e.employee,"password",t)},expression:"employee.password"}})],1):e._e(),e._v(" "),"admin"===this.$root.settings.role||"manager"===this.$root.settings.role?i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.employee.password&&e.employee.password.length>0,expression:"employee.password && employee.password.length > 0"}]},[i("el-checkbox",{on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.sendEmployeePanelAccessEmail,callback:function(t){e.$set(e.employee,"sendEmployeePanelAccessEmail",t)},expression:"employee.sendEmployeePanelAccessEmail"}},[e._v("\n "+e._s(e.$root.labels.send_employee_panel_access_email)+"\n ")])],1):e._e()],1):e._e(),e._v(" "),i("el-col",{attrs:{span:e.$root.settings.roles.providerCabinet.enabled&&!e.notInLicence()?12:24}},[i("div",{staticClass:"am-cabinet-timezone"},[!0===e.$root.settings.capabilities.canWriteOthers||"provider"==this.$root.settings.role&&e.employee.externalId?i("el-form-item",{class:e.licenceClass(),attrs:{label:"placeholder",label:e.$root.labels.timezone+":"}},[i("el-select",{attrs:{disabled:e.notInLicence(),filterable:"",clearable:"","popper-class":"am-cabinet-timezone-dropdown",placeholder:e.$root.timezone},model:{value:e.employee.timeZone,callback:function(t){e.$set(e.employee,"timeZone",t)},expression:"employee.timeZone"}},[i("template",{slot:"prefix"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/am-globe.svg"}})]),e._v(" "),e._l(e.$root.timezones,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})})],2),e._v(" "),i("LicenceBlock")],1):e._e()],1)])],1),e._v(" "),!e.$root.settings.googleCalendar.enabled||0===e.employee.id||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():i("el-row",{attrs:{gutter:16}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{staticStyle:{padding:"0 8px"},attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.google_calendar)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.google_calendar_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:15,xs:24}},[i("el-select",{attrs:{placeholder:"",disabled:!e.employee.googleCalendar.token||e.googleLoading},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.googleCalendar.calendarId,callback:function(t){e.$set(e.employee.googleCalendar,"calendarId",t)},expression:"employee.googleCalendar.calendarId"}},e._l(e.employee.googleCalendar.calendarList,function(e){return i("el-option",{key:e.id,attrs:{label:e.summary,value:e.id}})}),1)],1),e._v(" "),i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:9,xs:24}},[i("el-button",{staticClass:"am-google-calendar-button",class:{connected:e.employee.googleCalendar.token},attrs:{type:"primary"},on:{click:function(t){e.employee.googleCalendar.token?e.disconnectFromGoogleAccount():e.redirectToGoogleAuthPage()}}},[i("div",{staticClass:"am-google-calendar-button-image"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/google-button.svg"}})]),e._v(" "),i("span",{staticClass:"am-google-calendar-button-text",class:{connected:e.employee.googleCalendar.token}},[e._v("\n "+e._s(e.employee.googleCalendar.token?e.$root.labels.google_sign_out:e.$root.labels.google_sign_in)+"\n ")])])],1)],1)],1),e._v(" "),!e.$root.settings.outlookCalendar.enabled||0===e.employee.id||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():i("el-row",{attrs:{gutter:16}},[e.employee.outlookCalendar&&e.employee.outlookCalendar.calendarList?i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{staticStyle:{padding:"0 8px"},attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.outlook_calendar)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.outlook_calendar_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:15,xs:24}},[i("el-select",{attrs:{placeholder:"",disabled:!e.employee.outlookCalendar.token||e.outlookLoading},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.outlookCalendar.calendarId,callback:function(t){e.$set(e.employee.outlookCalendar,"calendarId",t)},expression:"employee.outlookCalendar.calendarId"}},e._l(e.employee.outlookCalendar.calendarList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:9,xs:24}},[i("el-button",{staticClass:"am-outlook-calendar-button",class:{connected:e.employee.outlookCalendar.token},attrs:{type:"primary"},on:{click:function(t){e.employee.outlookCalendar.token?e.disconnectFromOutlookAccount():e.redirectToOutlookAuthPage()}}},[i("div",{staticClass:"am-outlook-calendar-button-image"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/outlook-calendar.png"}})]),e._v(" "),i("span",{staticClass:"am-outlook-calendar-button-text"},[e._v("\n "+e._s(e.employee.outlookCalendar.token?e.$root.labels.outlook_sign_out:e.$root.labels.outlook_sign_in)+"\n ")])])],1)],1):e._e()],1),e._v(" "),!e.$root.settings.appleCalendar||0===e.employee.id||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():i("el-row",{attrs:{gutter:16}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{staticStyle:{padding:"0 8px"},attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.apple_calendar)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.apple_calendar_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:15,xs:24}},[e.employee.employeeAppleCalendar.iCloudId&&e.isEmployeeConnectedToPersonalAppleCalendar?i("el-alert",{staticStyle:{height:"40px"},attrs:{title:e.$root.labels.apple_calendar_overridden_by_employee,type:"warning",closable:!1,"show-icon":""}}):i("el-select",{ref:"appleCalendarSelect",attrs:{placeholder:"",disabled:(!e.$root.settings.appleCalendar||e.appleLoading)&&e.isEmployeeConnectedToPersonalAppleCalendar},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.appleCalendarId,callback:function(t){e.$set(e.employee,"appleCalendarId",t)},expression:"employee.appleCalendarId"}},[i("div",{staticClass:"am-drop"},[i("div",{staticClass:"am-drop-create-item",on:{click:e.connectPersonalAppleCalendar}},[e._v("\n "+e._s(e.$root.labels.apple_connect_employee_calendar)+"\n ")]),e._v(" "),e._l(e.appleCalendarList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)])],1),e._v(" "),e.employee.appleCalendarId&&!e.isEmployeeConnectedToPersonalAppleCalendar?i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:9,xs:24}},[i("el-button",{staticClass:"am-google-calendar-button",attrs:{type:"primary"},on:{click:function(t){return e.disconnectFromAppleAccount()}}},[i("div",{staticClass:"am-google-calendar-button-image"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/apple-button.svg"}})]),e._v(" "),i("span",{staticClass:"am-google-calendar-button-text"},[e._v("\n "+e._s(e.$root.labels.apple_disconnect)+"\n ")])])],1):e._e(),e._v(" "),e.isEmployeeConnectedToPersonalAppleCalendar?i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:9,xs:24}},[i("el-button",{staticClass:"am-google-calendar-button",attrs:{type:"primary"},on:{click:function(t){return e.disconnectEmployeeFromAppleAccount()}}},[i("div",{staticClass:"am-google-calendar-button-image"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/apple-button.svg"}})]),e._v(" "),i("span",{staticClass:"am-google-calendar-button-text"},[e._v("\n "+e._s(e.$root.labels.apple_calendar_disconnect_employee)+"\n ")])])],1):e._e()],1)],1),e._v(" "),i("el-row",{attrs:{gutter:16}},[!e.$root.settings.zoom.enabled||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():i("el-col",{attrs:{sm:12}},[i("el-form-item",{attrs:{label:"placeholder",label:e.$root.labels.zoom_user+":"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.zoom_user)+":\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_user_tooltip)},slot:"content"}),e._v(" "),i("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),i("el-select",{attrs:{clearable:"",filterable:"",placeholder:e.$root.labels.zoom_user_placeholder},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.zoomUserId,callback:function(t){e.$set(e.employee,"zoomUserId",t)},expression:"employee.zoomUserId"}},e._l(e.zoomUsers,function(e,t){return i("el-option",{key:t,attrs:{label:e.first_name+" "+e.last_name+" ("+e.email+")",value:e.id}})}),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:e.notInLicence()?24:12}},[!0===e.$root.settings.capabilities.canWriteOthers?i("el-form-item",{class:e.licenceClass(),attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.employee_badge)+":\n ")]),e._v(" "),i("el-select",{attrs:{filterable:"",clearable:"",disabled:e.notInLicence(),placeholder:e.$root.labels.select_badge},model:{value:e.employee.badgeId,callback:function(t){e.$set(e.employee,"badgeId",t)},expression:"employee.badgeId"}},[i("div",{staticClass:"am-drop"},[e._l(e.badges,function(t){return i("el-option",{key:t.id,staticClass:"am-employee-badge-option",attrs:{label:t.content,value:t.id}},[i("span",{style:{backgroundColor:t.color}},[e._v("\n "+e._s(t.content)+"\n ")])])}),e._v(" "),i("div",{staticClass:"el-select-dropdown__item am-manage-employee-badges am-manage-badges-option",on:{click:e.showDialogEmployeeBadges}},[i("img",{staticClass:"am-manage-employee-badges-icon",attrs:{height:"24px",width:"24px",src:e.$root.getUrl+"public/img/am-manage-badges.svg"}}),e._v("\n "+e._s(e.$root.labels.manage_badges)+"\n ")])],2),e._v(" "),0===e.badges.length?i("template",{slot:"empty"},[i("div",{staticClass:"el-select-dropdown__item am-manage-employee-badges am-manage-badges-option",on:{click:e.showDialogEmployeeBadges}},[i("img",{staticClass:"am-manage-employee-badges-icon el-select-dropdown__empty",attrs:{height:"24px",width:"24px",src:e.$root.getUrl+"public/img/am-manage-badges.svg"}}),e._v("\n "+e._s(e.$root.labels.manage_badges)+"\n ")])]):e._e()],2),e._v(" "),i("LicenceBlock")],1):e._e()],1)],1),e._v(" "),e.$root.settings.payments.stripe.enabled&&e.$root.settings.payments.stripe.connect.enabled&&"admin"!==e.$root.settings.role&&"manager"!==e.$root.settings.role?i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{sm:24}},[i("el-col",{staticClass:"am-cabinet-profile__stripe"},[i("cabinet-dashboard-stripe",{attrs:{stripeProvider:e.stripeProvider,authorizationObject:{},profile:e.employee},on:{stripeDisconnect:function(t){e.stripeProvider=null}}})],1)],1)],1):e._e(),e._v(" "),e.$root.settings.payments.stripe.enabled&&e.$root.settings.payments.stripe.connect.enabled&&("admin"===e.$root.settings.role||"manager"===e.$root.settings.role)?i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{sm:24}},[i("el-form-item",{attrs:{label:"placeholder"}},[i("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.stripe_account)+":\n ")]),e._v(" "),i("el-select",{attrs:{filterable:"",placeholder:e.$root.labels.stripe_account,clearable:""},on:{change:e.changeStripeAccount},model:{value:e.employee.stripeConnect.id,callback:function(t){e.$set(e.employee.stripeConnect,"id",t)},expression:"employee.stripeConnect.id"}},[i("div",{staticClass:"am-drop"},e._l(e.stripeProviders,function(t){return"standard"===t.type||"express"===t.type?i("el-option",{key:t.id,attrs:{label:t.email+" ("+("standard"===t.type?e.$root.labels.stripe_account_standard:e.$root.labels.stripe_account_express)+")",value:t.id}}):e._e()}),1)])],1)],1)],1):e._e(),e._v(" "),e.$root.settings.payments.stripe.enabled&&e.$root.settings.payments.stripe.connect.enabled&&("admin"===e.$root.settings.role||"manager"===e.$root.settings.role)&&e.employee.stripeConnect.id?i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{sm:12}},[i("el-form-item",{attrs:{label:("transfer"===e.$root.settings.payments.stripe.connect.method?e.$root.labels.use_transfer_amount:e.$root.labels.use_direct_amount)+":"}},[i("el-input-number",{staticClass:"am-stripe-amount",attrs:{min:0,precision:2,step:.1,max:100,placeholder:e.employee.stripeConnect.amount?e.employee.stripeConnect.amount.toString():e.$root.settings.payments.stripe.connect.amount.toString()},on:{input:function(t){return e.clearValidation()},change:e.changeStripeConnectAmount},model:{value:e.employee.stripeConnect.amount,callback:function(t){e.$set(e.employee.stripeConnect,"amount",t)},expression:"employee.stripeConnect.amount"}})],1)],1)],1):e._e(),e._v(" "),i("div",{staticClass:"am-divider"}),e._v(" "),i("content-block",{directives:[{name:"show",rawName:"v-show",value:!e.hideDescription,expression:"!hideDescription"}],attrs:{label:e.$root.labels.description,entity:e.employee,textProperty:"description",htmlProperty:"descriptionHtml",hasTranslation:!0,hasQuill:!0,textModeProp:!0,allowImage:!0},on:{showDialogTranslate:function(t){return e.showDialogTranslate("description")}}}),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.note_internal+":"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6},placeholder:""},on:{input:function(t){return e.clearValidation()}},model:{value:e.employee.note,callback:function(t){e.$set(e.employee,"note",t)},expression:"employee.note"}})],1)],1),e._v(" "),!0===e.$root.settings.capabilities.canWriteOthers||!0===e.$root.settings.roles.allowConfigureServices?i("el-tab-pane",{attrs:{label:e.$root.labels.assigned_services,name:"services"}},[i("assigned-services",{attrs:{"week-schedule":e.editWeekDayList,"special-days":e.employee.specialDayList,"categorized-service-list":e.editCategorizedServiceList,"future-appointments":e.futureAppointments,"employee-id":e.employee.id,"mandatory-services-ids":e.employee.mandatoryServicesIds}})],1):e._e(),e._v(" "),!0===e.$root.settings.capabilities.canWriteOthers||!0===e.$root.settings.roles.allowConfigureSchedule?i("el-tab-pane",{attrs:{label:e.$root.labels.work_hours,name:"hours"}},[i("working-hours",{attrs:{"active-tab":e.employeeTabs,"week-schedule":e.editWeekDayList,"categorized-service-list":e.editCategorizedServiceList,locations:e.locations}})],1):e._e(),e._v(" "),!0===e.$root.settings.capabilities.canWriteOthers||!0===e.$root.settings.roles.allowConfigureDaysOff?i("el-tab-pane",{attrs:{label:e.$root.labels.days_off,name:"off"}},[i("div",{staticClass:"am-days-off"},[i("div",{staticClass:"am-employee-days-off"},[i("days-off",{attrs:{daysOff:e.employee.dayOffList,listedDaysOff:e.companyDaysOff},on:{changeDaysOff:e.changeDaysOff,showCompanyDaysOffSettingsDialog:e.showCompanyDaysOffSettingsDialog}})],1)])]):e._e(),e._v(" "),!0===e.$root.settings.capabilities.canWriteOthers||!0===e.$root.settings.roles.allowConfigureSpecialDays?i("el-tab-pane",{attrs:{label:e.$root.labels.special_days,name:"special"}},[i("div",{staticClass:"am-special-days"},[i("special-days",{attrs:{"active-tab":e.employeeTabs,specialDays:e.employee.specialDayList,locations:e.locations,categorizedServiceList:e.editCategorizedServiceList},on:{changeSpecialDays:e.changeSpecialDays}})],1)]):e._e(),e._v(" "),!e.$root.settings.appleCalendar||0===e.employee.id||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():i("el-tab-pane",{attrs:{label:e.$root.labels.apple_calendar,name:"apple"}},[i("el-row",{attrs:{gutter:16}},[i("el-form-item",[i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:15,xs:24}},[i("el-form-item",{attrs:{label:e.$root.labels.apple_client_id+":"}},[i("el-input",{attrs:{disabled:e.isEmployeeConnectedToPersonalAppleCalendar,"auto-complete":"off",placeholder:e.$root.labels.enter_employee_icloud_id},on:{input:function(t){return e.clearValidation()}},model:{value:e.employee.employeeAppleCalendar.iCloudId,callback:function(t){e.$set(e.employee.employeeAppleCalendar,"iCloudId",t)},expression:"employee.employeeAppleCalendar.iCloudId"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$root.labels.apple_app_specific_password+":"}},[i("el-input",{attrs:{disabled:e.isEmployeeConnectedToPersonalAppleCalendar,"auto-complete":"off",placeholder:e.$root.labels.enter_employee_app_specific_pass},on:{input:function(t){return e.clearValidation()}},model:{value:e.employee.employeeAppleCalendar.appSpecificPassword,callback:function(t){e.$set(e.employee.employeeAppleCalendar,"appSpecificPassword",t)},expression:"employee.employeeAppleCalendar.appSpecificPassword"}})],1),e._v(" "),i("el-button",{staticClass:"am-apple-calendar-button",class:{connected:e.isEmployeeConnectedToPersonalAppleCalendar},staticStyle:{"margin-bottom":"16px"},attrs:{type:"primary"},on:{click:function(t){e.isEmployeeConnectedToPersonalAppleCalendar?e.disconnectEmployeeFromAppleAccount():e.connectEmployeeToAppleAccount()}}},[i("div",{staticClass:"am-apple-calendar-button-image"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/apple-button.svg"}})]),e._v(" "),i("span",{staticClass:"am-apple-calendar-button-text",class:{connected:e.isEmployeeConnectedToPersonalAppleCalendar}},[e._v("\n "+e._s(e.isEmployeeConnectedToPersonalAppleCalendar?e.$root.labels.apple_disconnect:e.$root.labels.apple_connect)+"\n ")])])],1),e._v(" "),i("el-col",{staticStyle:{padding:"0 8px"},attrs:{sm:15,xs:24}},[i("el-form-item",{attrs:{label:e.$root.labels.apple_calendar_select+":"}},[i("el-select",{attrs:{placeholder:"",disabled:!e.isEmployeeConnectedToPersonalAppleCalendar||e.appleLoading},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.appleCalendarId,callback:function(t){e.$set(e.employee,"appleCalendarId",t)},expression:"employee.appleCalendarId"}},[i("div",{staticClass:"am-drop"},e._l(e.appleCalendarList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)])],1)],1)],1)],1)],1)],1)],1)],1):e._e(),e._v(" "),e.employee&&!e.dialogLoading?i("dialog-actions",{attrs:{formName:"employee",urlName:"users/providers",isNew:0===e.employee.id,entity:e.employee,getParsedEntity:e.getParsedEntity,hasIcons:!0,updateStash:!0,status:{on:"visible",off:"hidden"},buttonText:{confirm:{status:{yes:"visible"===e.employee.status?e.$root.labels.visibility_hide:e.$root.labels.visibility_show,no:e.$root.labels.visibility_show}}},action:{haveAdd:!0,haveEdit:!0,haveStatus:!0===e.$root.settings.capabilities.canWriteOthers&&!e.$root.licence.isLite,haveRemove:!0===e.$root.settings.capabilities.canDelete&&!e.$root.licence.isLite,haveRemoveEffect:!0,haveDuplicate:!0===e.$root.settings.capabilities.canWriteOthers&&!e.$root.licence.isLite},message:{success:{save:e.$root.labels.employee_saved,remove:e.$root.labels.employee_deleted,show:e.$root.labels.employee_visible,hide:e.$root.labels.employee_hidden},confirm:{remove:e.$root.labels.confirm_delete_employee,show:e.$root.labels.confirm_show_employee,hide:e.$root.labels.confirm_hide_employee,duplicate:e.$root.labels.confirm_duplicate_employee}}},on:{errorCallback:e.errorCallback,validationFailCallback:e.validationFailCallback}}):e._e()],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"am-wrap"},[i("div",{staticClass:"am-body",attrs:{id:"am-settings"}},[i("page-header"),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.fetched,expression:"!fetched"}],staticClass:"am-spinner am-section"},[i("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}})]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.fetched,expression:"fetched"}],staticClass:"am-section am-settings-cards"},[i("el-row",{attrs:{gutter:48}},[i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/setting.svg"}}),e._v(" "+e._s(e.$root.labels.general))]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.general_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsGeneral}},[e._v("\n "+e._s(e.$root.labels.view_general_settings)+"\n ")])])]),e._v(" "),i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/company.svg"}}),e._v(" "+e._s(e.$root.labels.company))]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.company_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsCompany}},[e._v("\n "+e._s(e.$root.labels.view_company_settings)+"\n ")])])]),e._v(" "),i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/email-settings.svg"}}),e._v("\n "+e._s(e.$root.labels.notifications)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.notifications_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsNotifications}},[e._v("\n "+e._s(e.$root.labels.view_notifications_settings)+"\n ")])])])],1),e._v(" "),i("el-row",{attrs:{gutter:48}},[e.$root.licence.isLite?i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg",attrs:{src:e.$root.getUrl+"public/img/customer.svg"}}),e._v("\n "+e._s(e.$root.labels.view_provider_details_settings)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.provider_details_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogEmployee}},[e._v("\n "+e._s(e.$root.labels.view_provider_details_settings)+"\n ")])])]):i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/calendar.svg"}}),e._v("\n "+e._s(e.$root.labels.work_hours_days_off)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.days_off_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsWorkHoursDaysOff}},[e._v("\n "+e._s(e.$root.labels.view_days_off_settings)+"\n ")])])]),e._v(" "),i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/credit-card.svg"}}),e._v("\n "+e._s(e.$root.labels.payments)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.payments_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsPayments}},[e._v("\n "+e._s(e.$root.labels.view_payments_settings)+"\n ")])])]),e._v(" "),i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/web-hook.svg"}}),e._v("\n "+e._s(e.$root.labels.integrations_settings)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.integrations_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsIntegrations}},[e._v("\n "+e._s(e.$root.labels.view_integrations_settings)+"\n ")])])])],1),e._v(" "),i("el-row",{attrs:{gutter:48}},[i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/appointment-settings.svg"}}),e._v("\n "+e._s(e.$root.labels.appointments_and_events)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.appointments_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsAppointments}},[e._v("\n "+e._s(e.$root.labels.view_appointments_and_events_settings)+"\n ")])])]),e._v(" "),i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/labels.svg"}}),e._v("\n "+e._s(e.$root.labels.labels)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.labels_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsLabels}},[e._v("\n "+e._s(e.$root.labels.view_labels_settings)+"\n ")])])]),e._v(" "),i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/roles.svg"}}),e._v("\n "+e._s(e.$root.labels.roles_settings)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.roles_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsRoles}},[e._v("\n "+e._s(e.$root.labels.view_roles_settings_description)+"\n ")])])])],1),e._v(" "),i("el-row",{attrs:{gutter:48}},[!0===e.$root.settings.activation.showActivationSettings?i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/purchase-code.svg"}}),e._v("\n "+e._s(e.$root.labels.activation)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.activation_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsActivation}},[e._v("\n "+e._s(e.$root.labels.view_activation_settings)+"\n ")])])]):e._e(),e._v(" "),e.$root.licence.isDeveloper||e.notInLicence("developer")&&e.licenceVisible()?i("el-col",{attrs:{md:8}},[i("div",{staticClass:"am-settings-card"},[i("h3",[i("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/api-key.svg"}}),e._v("\n "+e._s(e.$root.labels.api_keys)+"\n ")]),e._v(" "),i("p",[e._v(e._s(e.$root.labels.api_keys_settings_description))]),e._v(" "),i("p",{staticClass:"link",on:{click:e.showDialogSettingsApiKeys}},[e._v("\n "+e._s(e.$root.labels.view_api_keys_settings)+"\n ")])])]):e._e()],1)],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsGeneral?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsGeneral,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsGeneral=t}}},[i("dialog-settings-general",{attrs:{general:e.settings.general,languagesData:e.languagesData},on:{closeDialogSettingsGeneral:function(t){e.dialogSettingsGeneral=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsCompany?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsCompany,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsCompany=t}}},[i("dialog-settings-company",{ref:"company",attrs:{company:e.settings.company},on:{closeDialogSettingsCompany:function(t){e.dialogSettingsCompany=!1},updateSettings:e.updateSettings,showDialogTranslate:e.showDialogTranslateCompany}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsNotifications?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsNotifications,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsNotifications=t}}},[i("dialog-settings-notifications",{attrs:{notifications:e.settings.notifications,ics:e.settings.ics,employees:e.employees,outlookEnabled:!!(e.settings.outlookCalendar.clientID&&e.settings.outlookCalendar.clientSecret&&e.settings.outlookCalendar.mailEnabled&&e.settings.outlookCalendar.token)},on:{closeDialogSettingsNotifications:function(t){e.dialogSettingsNotifications=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsWorkHoursDaysOff?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsWorkHoursDaysOff,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsWorkHoursDaysOff=t}}},[i("dialog-settings-work-hours-days-off",{attrs:{daysOff:e.settings.daysOff,weekSchedule:e.settings.weekSchedule},on:{closeDialogSettingsWorkHoursDaysOff:function(t){e.dialogSettingsWorkHoursDaysOff=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsPayments?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsPayments,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsPayments=t}}},[i("dialog-settings-payments",{attrs:{customFields:e.customFields,categories:e.categories,coupons:e.coupons,payments:e.settings.payments,"default-appointment-status":e.settings.general.defaultAppointmentStatus,"square-locations":e.squareLocations,"open-square-collapse":e.squareOpenCollapse,"access-token-set":e.accessTokenSet},on:{closeDialogSettingsPayments:function(t){e.dialogSettingsPayments=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsIntegrations?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsIntegrations,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsIntegrations=t}}},[i("dialog-settings-integrations",{attrs:{outlookSignedIn:e.outlookSignedIn,googleCalendar:e.settings.googleCalendar,outlookCalendar:e.settings.outlookCalendar,"apple-calendar":e.settings.appleCalendar,zoom:e.settings.zoom,lessonSpace:e.settings.lessonSpace,facebookPixel:e.settings.facebookPixel,googleAnalytics:e.settings.googleAnalytics,googleTag:e.settings.googleTag,mailchimp:e.settings.mailchimp,webHooks:e.settings.webHooks,customFields:e.customFields,"social-login":e.settings.socialLogin,"mailchimp-lists":e.mailchimpLists,"open-mailchimp-collapse":e.mailchimpOpenCollapse},on:{closeDialogSettingsIntegrations:function(t){e.dialogSettingsIntegrations=!1},updateSettings:e.updateSettings,openDialog:e.openDialogCombinedPlaceholders}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogCombinedPlaceholder?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{visible:e.dialogCombinedPlaceholder,"show-close":!1},on:{"update:visible":function(t){e.dialogCombinedPlaceholder=t}}},[i("dialog-combined-placeholder",{attrs:{appointmentsSettings:e.settings.appointments,name:e.combinedPlaceholderName,nameHtml:e.combinedPlaceholderName+"Html",userTypeTab:"provider",entity:"group",categories:e.categories,coupons:e.coupons,customFields:e.customFields,placeholdersNames:e.getCombinedPlaceholders()},on:{closeDialogCombinedPlaceholder:function(t){e.dialogCombinedPlaceholder=!1}}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsLabels?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsLabels,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsLabels=t}}},[i("dialog-settings-labels",{attrs:{labels:e.settings.labels},on:{closeDialogSettingsLabels:function(t){e.dialogSettingsLabels=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),!0===e.$root.settings.activation.showActivationSettings?i("transition",{attrs:{name:"slide"}},[e.dialogSettingsActivation?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsActivation,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsActivation=t}}},[i("dialog-settings-activation",{attrs:{activation:e.settings.activation},on:{closeDialogSettingsActivation:function(t){e.dialogSettingsActivation=!1},updateSettings:e.updateSettings}})],1):e._e()],1):e._e(),e._v(" "),i("transition",{class:e.licenceClass(),attrs:{name:"slide"}},[e.dialogSettingsApiKeys?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsApiKeys,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsApiKeys=t}}},[i("dialog-settings-api-keys",{attrs:{"api-keys":e.settings.apiKeys},on:{closeDialogSettingsApiKeys:function(t){e.dialogSettingsApiKeys=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsRoles?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsRoles,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsRoles=t}}},[i("dialog-settings-roles",{attrs:{roles:e.settings.roles},on:{closeDialogSettingsRoles:function(t){e.dialogSettingsRoles=!1},updateSettings:e.updateSettings,showDialogTranslate:e.showDialogTranslateRoles,showDialogEmployeeBadges:e.showDialogEmployeeBadges}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogTranslate?i("el-dialog",{staticClass:"am-side-dialog am-dialog-translate am-edit",class:{"am-dialog-employee":e.employeeInfo.dialogEmployee},attrs:{"close-on-click-modal":!1,"show-close":!0,visible:e.dialogTranslate},on:{"update:visible":function(t){e.dialogTranslate=t}}},[i("dialog-translate",{attrs:{"passed-translations":e.dialogTranslateData,name:e.dialogTranslateName,allLanguagesData:e.languagesData,"used-languages":e.settings.general.usedLanguages,type:e.dialogTranslateType,tab:e.dialogTranslateTab,"employee-badges":e.settings.roles.providerBadges.badges},on:{saveDialogTranslate:e.saveDialogTranslate,closeDialogTranslate:function(t){e.dialogTranslate=!1}}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogEmployeeBadges?i("el-dialog",{staticClass:"am-side-dialog am-dialog-translate am-edit",attrs:{"close-on-click-modal":!1,"show-close":!0,visible:e.dialogEmployeeBadges},on:{"update:visible":function(t){e.dialogEmployeeBadges=t}}},[i("dialog-employee-badges",{attrs:{roles:e.settings.roles},on:{closeDialogEmployeeBadges:e.closeDialogEmployeeBadges,updateSettings:e.updateSettings,showDialogTranslate:e.showDialogTranslate}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.dialogSettingsAppointments?i("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsAppointments,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsAppointments=t}}},[i("dialog-settings-appointments",{attrs:{appointments:e.settings.appointments},on:{closeDialogSettingsAppointments:function(t){e.dialogSettingsAppointments=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),i("transition",{attrs:{name:"slide"}},[e.employeeInfo.dialogEmployee?i("el-dialog",{staticClass:"am-side-dialog am-dialog-employee",attrs:{visible:e.employeeInfo.dialogEmployee,"show-close":!1},on:{"update:visible":function(t){return e.$set(e.employeeInfo,"dialogEmployee",t)}}},[i("dialog-employee",{attrs:{locations:[],employee:e.employeeInfo.employee,futureAppointments:e.employeeInfo.futureAppointments,editCategorizedServiceList:e.employeeInfo.editCategorizedServiceList,editWeekDayList:e.employeeInfo.editWeekDayList,companyDaysOff:e.$root.settings.daysOff,isDisabledDuplicate:!0},on:{saveCallback:e.saveEmployeeCallback,showDialogTranslate:e.showDialogTranslateEmployee,closeDialog:function(t){e.employeeInfo.dialogEmployee=!1},showCompcanyDaysOffSettingsDialog:function(t){e.employeeInfo.dialogCompanyDaysOffSettings=!0}}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{md:6}},[i("a",{staticClass:"am-help-button",attrs:{href:"https://wpamelia.com/general-settings/",target:"_blank",rel:"nofollow"}},[i("i",{staticClass:"el-icon-question"}),e._v(" "+e._s(e.$root.labels.need_help)+"?\n ")])])],1)])},staticRenderFns:[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){var n=i(90)(i(1363),i(1532),!1,null,null,null);e.exports=n.exports}]));
Save
Back