Version Description
Download this release
Release Info
Developer | optimole |
Plugin | Image optimization & Lazy Load by Optimole |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- CHANGELOG.md +5 -0
- README.md +7 -0
- assets/js/bundle.min.js +1 -1
- inc/admin.php +2 -0
- optimole-wp.php +2 -2
- readme.txt +7 -0
- themeisle-hash.json +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +1 -1
CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
### [Version 2.2.0](https://github.com/Codeinwp/optimole-wp/compare/v2.1.2...v2.2.0) (2019-10-21)
|
2 |
|
3 |
* #### Bug Fixes
|
1 |
+
#### [Version 2.2.1](https://github.com/Codeinwp/optimole-wp/compare/v2.2.0...v2.2.1) (2019-10-21)
|
2 |
+
|
3 |
+
* **Bug Fixes**
|
4 |
+
* gif to video setting description ([063d37b](https://github.com/Codeinwp/optimole-wp/commit/063d37b))
|
5 |
+
|
6 |
### [Version 2.2.0](https://github.com/Codeinwp/optimole-wp/compare/v2.1.2...v2.2.0) (2019-10-21)
|
7 |
|
8 |
* #### Bug Fixes
|
README.md
CHANGED
@@ -89,6 +89,13 @@ Premium users will be able to optimize images for more than 25k monthly active u
|
|
89 |
|
90 |
## Changelog ##
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
### [Version 2.2.0](https://github.com/Codeinwp/optimole-wp/compare/v2.1.2...v2.2.0) (2019-10-21)
|
93 |
|
94 |
* #### Bug Fixes
|
89 |
|
90 |
## Changelog ##
|
91 |
|
92 |
+
#### [Version 2.2.1](https://github.com/Codeinwp/optimole-wp/compare/v2.2.0...v2.2.1) (2019-10-21)
|
93 |
+
|
94 |
+
* **Bug Fixes**
|
95 |
+
* gif to video setting description ([063d37b](https://github.com/Codeinwp/optimole-wp/commit/063d37b))
|
96 |
+
|
97 |
+
|
98 |
+
|
99 |
### [Version 2.2.0](https://github.com/Codeinwp/optimole-wp/compare/v2.1.2...v2.2.0) (2019-10-21)
|
100 |
|
101 |
* #### Bug Fixes
|
assets/js/bundle.min.js
CHANGED
@@ -13,7 +13,7 @@ var st=2;o.reject=function(t){return new o(function(e,n){n(t)})},o.resolve=funct
|
|
13 |
* (c) 2015-present Evan You
|
14 |
* @license MIT
|
15 |
*/
|
16 |
-
function(t){return t&&"object"==typeof t&&"default"in t?t.default:t}(n("8bbf")),u="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys,f={__proto__:[]},h=f instanceof Array,b=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];d.registerHooks=function(t){b.push.apply(b,t)},e.default=d,e.createDecorator=a,e.mixins=r},"8bbf":function(e,n){e.exports=t},ae61:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider-dot{position:absolute;will-change:transform;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""])},d5ac:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""])},df80:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-ms-touch-action:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-disabled{pointer-events:none}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}.vue-slider-sr-only{clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden;position:absolute!important}",""])},fb15:function(t,e,n){"use strict";function o(t,e,n,o){var i,a=arguments.length,r=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(r=(a<3?i(r):a>3?i(e,n,r):i(e,n))||r);return a>3&&r&&Object.defineProperty(e,n,r),r}function i(t,e,n){ut&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}function a(t){return void 0===t&&(t={}),function(e,n){i(t,e,n),Object(dt.createDecorator)(function(e,n){(e.props||(e.props={}))[n]=t})(e,n)}}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}function x(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function C(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){L(t,e,n[e])})}return t}function A(t,e){return E(t)||j(t,e)||$()}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function j(t,e){var n=[],o=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(o=(r=s.next()).done)&&(n.push(r.value),!e||n.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}return n}function E(t){if(Array.isArray(t))return t}function T(t){return R(t)||P(t)||D()}function D(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function P(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function R(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function N(t,e,n){return e&&M(t.prototype,e),n&&M(t,n),t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function U(t,e,n){return e&&B(t.prototype,e),n&&B(t,n),t}function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){X(t,e,n[e])})}return t}function V(t,e){return K(t)||W(t,e)||q()}function q(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function W(t,e){var n=[],o=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(o=(r=s.next()).done)&&(n.push(r.value),!e||n.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}return n}function K(t){if(Array.isArray(t))return t}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J(t){return Q(t)||Z(t)||Y()}function Y(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Z(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function Q(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function tt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function et(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function nt(t,e,n){return e&&et(t.prototype,e),n&&et(t,n),t}function ot(t,e){return!e||"object"!==G(e)&&"function"!=typeof e?it(t):e}function it(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&st(t,e)}function st(t,e){return(st=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var lt;n.r(e),"undefined"!=typeof window&&(lt=window.document.currentScript)&&(lt=lt.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=lt[1]);var pt=n("8bbf"),ct=n.n(pt),dt=n("65d9"),mt=n.n(dt),ut="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;n("4ed8");var ft=function(t){function e(){return s(this,e),c(this,m(e).apply(this,arguments))}return u(e,t),p(e,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),e}(ct.a);o([a({default:0})],ft.prototype,"value",void 0),o([a()],ft.prototype,"tooltip",void 0),o([a()],ft.prototype,"dotStyle",void 0),o([a()],ft.prototype,"tooltipStyle",void 0),o([a({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],ft.prototype,"tooltipPlacement",void 0),o([a({type:[String,Function]})],ft.prototype,"tooltipFormatter",void 0),o([a({type:Boolean,default:!1})],ft.prototype,"focus",void 0),o([a({default:!1})],ft.prototype,"disabled",void 0),ft=o([mt.a],ft);var ht=ft;n("556c");var bt=function(t){function e(){return b(this,e),x(this,w(e).apply(this,arguments))}return k(e,t),g(e,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),e}(ct.a);o([a({required:!0})],bt.prototype,"mark",void 0),o([a(Boolean)],bt.prototype,"hideLabel",void 0),o([a()],bt.prototype,"stepStyle",void 0),o([a()],bt.prototype,"stepActiveStyle",void 0),o([a()],bt.prototype,"labelStyle",void 0),o([a()],bt.prototype,"labelActiveStyle",void 0),bt=o([mt.a],bt);var vt,gt=bt,xt=function(t){return"number"==typeof t?"".concat(t,"px"):t},yt=function(t){var e=document.documentElement,n=document.body,o=t.getBoundingClientRect();return{y:o.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:o.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}},wt=function(t,e,n){var o="targetTouches"in t?t.targetTouches[0]:t,i=yt(e),a={x:o.pageX-i.x,y:o.pageY-i.y};return{x:n?e.offsetWidth-a.x:a.x,y:n?e.offsetHeight-a.y:a.y}};!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(vt||(vt={}));var kt,_t,zt=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case vt.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case vt.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case vt.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case vt.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case vt.END:return function(){return e.max};case vt.HOME:return function(){return e.min};case vt.PAGE_UP:return function(t){return t+10};case vt.PAGE_DOWN:return function(t){return t-10};default:return null}},St=function(){function t(e){z(this,t),this.num=e}return C(t,[{key:"decimal",value:function(t,e){var n=this.num,o=this.getDecimalLen(n),i=this.getDecimalLen(t),a=0;switch(e){case"+":a=this.getExponent(o,i),this.num=(this.safeRoundUp(n,a)+this.safeRoundUp(t,a))/a;break;case"-":a=this.getExponent(o,i),this.num=(this.safeRoundUp(n,a)-this.safeRoundUp(t,a))/a;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(o)),this.safeRoundUp(t,this.getExponent(i)))/this.getExponent(o+i);break;case"/":a=this.getExponent(o,i),this.num=this.safeRoundUp(n,a)/this.safeRoundUp(t,a);break;case"%":a=this.getExponent(o,i),this.num=this.safeRoundUp(n,a)%this.safeRoundUp(t,a)/a}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){return("".concat(t).split(".")[1]||"").length}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(_t||(_t={}));var Ct=(kt={},L(kt,_t.VALUE,'The type of the "value" is illegal'),L(kt,_t.INTERVAL,'The prop "interval" is invalid, "(max - min)" cannot be divisible by "interval"'),L(kt,_t.MIN,'The "value" cannot be less than the minimum.'),L(kt,_t.MAX,'The "value" cannot be greater than the maximum.'),L(kt,_t.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),kt),Ot=function(){function t(e){I(this,t),this.dotsPos=[],this.dotsValue=[],this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(_t.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return N(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?T(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?T(t).sort(function(t,e){return t-e}):t;this.dotsPos=n,this.setDotsValue(n.map(function(t){return e.getValueByPos(t)}),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach(function(o){var i=Math.abs(o.pos-t);i<n&&(n=i,e=o.value)})}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map(function(e){return t.parseValue(e)})}},{key:"getRecentDot",value:function(t){var e=this.dotsPos.map(function(e){return Math.abs(e-t)});return e.indexOf(Math.min.apply(Math,T(e)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new St(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new St(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){t=this.getValidPos(t,e).pos;var n=t-this.dotsPos[e];if(n){var o=new Array(this.dotsPos.length);this.fixed?o=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?o=this.getLimitRangeChangePosArr(t,n,e):o[e]=n,this.setDotsPos(this.dotsPos.map(function(t,e){return t+(o[e]||0)}))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach(function(o,i){if(i!==e){var a=n.getValidPos(o+t,i),r=a.pos;a.inRange||(t=Math.min(Math.abs(r-o),Math.abs(t))*(t<0?-1:1))}}),this.dotsPos.map(function(e){return t})}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var o=this,i=[{index:n,changePos:e}],a=e;return[this.minRange,this.maxRange].forEach(function(r,s){if(!r)return!1;var l=0===s,p=e>0,c=0;c=l?p?1:-1:p?-1:1;for(var d=n+c,m=o.dotsPos[d],u=t;o.isPos(m)&&function(t,e){var n=Math.abs(t-e);return l?n<o.minRangeDir:n>o.maxRangeDir}(m,u);){var f=o.getValidPos(m+a,d),h=f.pos;i.push({index:d,changePos:h-m}),d+=c,u=h,m=o.dotsPos[d]}}),this.dotsPos.map(function(t,e){var n=i.filter(function(t){return t.index===e});return n.length?n[0].changePos:0})}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],o=!0;return t<n[0]?(t=n[0],o=!1):t>n[1]&&(t=n[1],o=!1),{pos:t,inRange:o}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(_t.MIN),0;if(t>this.max)return this.emitError(_t.MAX),0;if("number"!=typeof t||t!==t)return this.emitError(_t.VALUE),0;t=new St(t).minus(this.min).divide(this.interval).toNumber()}var e=new St(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some(function(e){var n=A(e,2),o=n[0],i=n[1];return t>=o&&t<=i})}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new St(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"emitError",value:function(t){this.onError&&this.onError(t,Ct[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var o=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return o&&void 0!==o[e]?this.parseValue(o[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var o=t.parseValue(e);return O({pos:o,value:e,label:e,active:t.isActiveByPos(o)},n)};return!0===this.marks?this.getValues().map(function(t){return e(t)}):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort(function(t,e){return+t-+e}).map(function(n){var o=t.marks[n];return e(n,"string"!=typeof o?o:{label:o})}):Array.isArray(this.marks)?this.marks.map(function(t){return e(t)}):"function"==typeof this.marks?this.getValues().map(function(e){return{value:e,result:t.marks(e)}}).filter(function(t){return!!t.result}).map(function(t){var n=t.value,o=t.result;return e(n,o)}):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,T(this.dotsPos)),Math.max.apply(Math,T(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new St(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!=0?(this.emitError(_t.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.minRange?this.minRange*this.gap:0}},{key:"maxRangeDir",get:function(){return this.maxRange?this.maxRange*this.gap:100}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach(function(o,i){n.push([Math.max(t.minRange?t.minRangeDir*i:0,t.enableCross?0:e[i-1]||0,t.getDotRange(i,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-i):100,t.enableCross?100:e[i+1]||100,t.getDotRange(i,"max",100))])}),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map(function(e){return t.getIndexByValue(e)})}}]),t}(),At=function(){function t(e){F(this,t),this.states=0,this.map=e}return U(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();n("4abb");var $t={None:0,Drag:2,Focus:4},jt=function(t){function e(){var t;return tt(this,e),t=ot(this,at(e).apply(this,arguments)),t.states=new At($t),t.scale=1,t.focusDotIndex=0,t}return rt(e,t),nt(e,[{key:"onValueChanged",value:function(){!this.states.has($t.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new St(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new Ot({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(function(e){t.$watch(e,function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every(function(e,n){return e===t.control.data[n]}))return!1;t.control[e]=n,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()})})}},{key:"isDisabledByDotIndex",value:function(t){return this.dots[t].disabled}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:J(t))}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some(function(t,n){return t!==e[n]})}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add($t.Drag),this.states.add($t.Focus),this.$emit("drag-start")}},{key:"dragMove",value:function(t){if(!this.states.has($t.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:J(n))}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex&&this.control.setDotPos(n,e)}}},{key:"dragEnd",value:function(){var t=this;if(!this.states.has($t.Drag))return!1;setTimeout(function(){t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.lazy&&t.syncValueByPos(),t.states.delete($t.Drag),t.useKeyboard||t.states.delete($t.Focus),t.$emit("drag-end")})}},{key:"blurHandle",value:function(t){if(!this.states.has($t.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete($t.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable)return!1;if(!this.states.has($t.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add($t.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete($t.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?J(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map(function(t){return e.control.getValueByIndex(t)}):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.isDisabledByDotIndex(n))return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add($t.Focus),setTimeout(function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()})}},{key:"keydownHandle",value:function(t){if(!this.useKeyboard||!this.states.has($t.Focus))return!1;var e=zt(t,{direction:this.direction,max:this.control.total,min:0,hook:this.keydownHook});if(e){t.preventDefault();var n=this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex]),o=e(n),i=this.control.parseValue(this.control.getValueByIndex(o));this.isCrossDot(i),this.control.setDotPos(i,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return wt(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,o){var i=this.$createElement,a=this.$scopedSlots[t];return a?o?a(e):i("template",{slot:t},[a(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",{ref:"container",class:this.containerClasses,style:this.containerStyles,attrs:{"aria-hidden":!0},on:{click:this.clickHandle}},[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map(function(n,o){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(o),style:n.style}),!0)}),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map(function(n,o){var i;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(o),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(i={},X(i,t.isHorizontal?"height":"width","100%"),X(i,t.isHorizontal?"width":"height",t.tailSize),X(i,t.mainDirection,"".concat(n.pos,"%")),i),on:{pressLabel:function(e){return t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)})]):null,this.dots.map(function(n,o){var i;return e("vue-slider-dot",{ref:"dot-".concat(o),key:"dot-".concat(o),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[o]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[o]},style:[t.dotBaseStyle,(i={},X(i,t.mainDirection,"".concat(n.pos,"%")),X(i,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),i)],on:{"drag-start":function(){return t.dragStart(o)}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})]),1!==this.dots.length||this.data?null:e("input",{class:"vue-slider-sr-only",attrs:{type:"range",min:this.min,max:this.max},domProps:{value:this.value}})])}},{key:"tailSize",get:function(){return xt((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],e=V(t,2),n=e[0],o=e[1],i=this.width?xt(this.width):this.isHorizontal?"auto":xt(4),a=this.height?xt(this.height):this.isHorizontal?xt(4):"auto";return{padding:this.contained?"".concat(o/2,"px ").concat(n/2,"px"):this.isHorizontal?"".concat(o/2,"px 0"):"0 ".concat(n/2,"px"),width:i,height:a}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map(function(e){var n,o=V(e,3),i=o[0],a=o[1],r=o[2];if(i>a){var s=[a,i];i=s[0],a=s[1]}var l=t.isHorizontal?"width":"height";return{start:i,end:a,style:H((n={},X(n,t.isHorizontal?"height":"width","100%"),X(n,t.isHorizontal?"top":"left",0),X(n,t.mainDirection,"".concat(i,"%")),X(n,l,"".concat(a-i,"%")),X(n,"transitionProperty","".concat(l,",").concat(t.mainDirection)),X(n,"transitionDuration","".concat(t.animateTime,"s")),n),t.processStyle,r)}})}},{key:"dotBaseStyle",get:function(){var t,e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],n=V(e,2),o=n[0],i=n[1];return t=this.isHorizontal?X({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):X({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),H({width:"".concat(o,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map(function(){return t})}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map(function(e,n){return H({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has($t.Focus)&&t.focusDotIndex===n,disabled:!1,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})})}},{key:"animateTime",get:function(){return this.states.has($t.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some(function(e,n){return e!==t[n]}):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),e}(ct.a);o([function(t,e){return void 0===e&&(e={}),function(n,o){i(e,n,o),Object(dt.createDecorator)(function(n,o){(n.props||(n.props={}))[o]=e,n.model={prop:o,event:t||o}})(n,o)}}("change",{default:0})],jt.prototype,"value",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"silent",void 0),o([a({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],jt.prototype,"direction",void 0),o([a({type:[Number,String]})],jt.prototype,"width",void 0),o([a({type:[Number,String]})],jt.prototype,"height",void 0),o([a({default:14})],jt.prototype,"dotSize",void 0),o([a({default:!1})],jt.prototype,"contained",void 0),o([a({type:Number,default:0})],jt.prototype,"min",void 0),o([a({type:Number,default:100})],jt.prototype,"max",void 0),o([a({type:Number,default:1})],jt.prototype,"interval",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"disabled",void 0),o([a({type:Boolean,default:!0})],jt.prototype,"clickable",void 0),o([a({type:Number,default:.5})],jt.prototype,"duration",void 0),o([a(Array)],jt.prototype,"data",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"lazy",void 0),o([a({type:String,validator:function(t){return["none","always","focus"].indexOf(t)>-1},default:"focus"})],jt.prototype,"tooltip",void 0),o([a({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every(function(t){return["top","right","bottom","left"].indexOf(t)>-1})}})],jt.prototype,"tooltipPlacement",void 0),o([a({type:[String,Array,Function]})],jt.prototype,"tooltipFormatter",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"useKeyboard",void 0),o([a({type:Function,default:function(){return!1}})],jt.prototype,"keydownHook",void 0),o([a({type:Boolean,default:!0})],jt.prototype,"enableCross",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"fixed",void 0),o([a({type:Boolean,default:!0})],jt.prototype,"order",void 0),o([a(Number)],jt.prototype,"minRange",void 0),o([a(Number)],jt.prototype,"maxRange",void 0),o([a({type:[Boolean,Object,Array,Function],default:!1})],jt.prototype,"marks",void 0),o([a({type:[Boolean,Function],default:!0})],jt.prototype,"process",void 0),o([a(Boolean)],jt.prototype,"included",void 0),o([a(Boolean)],jt.prototype,"adsorb",void 0),o([a(Boolean)],jt.prototype,"hideLabel",void 0),o([a()],jt.prototype,"dotOptions",void 0),o([a()],jt.prototype,"railStyle",void 0),o([a()],jt.prototype,"processStyle",void 0),o([a()],jt.prototype,"dotStyle",void 0),o([a()],jt.prototype,"tooltipStyle",void 0),o([a()],jt.prototype,"stepStyle",void 0),o([a()],jt.prototype,"stepActiveStyle",void 0),o([a()],jt.prototype,"labelStyle",void 0),o([a()],jt.prototype,"labelActiveStyle",void 0),o([function(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,i=e.immediate,a=void 0!==i&&i;return Object(dt.createDecorator)(function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var i=e.watch;"object"!=typeof i[t]||Array.isArray(i[t])?void 0===i[t]&&(i[t]=[]):i[t]=[i[t]],i[t].push({handler:n,deep:o,immediate:a})})}("value")],jt.prototype,"onValueChanged",null),jt=o([mt()({data:function(){return{control:null}},components:{VueSliderDot:ht,VueSliderMark:gt},inheritAttrs:!1})],jt);var Et=jt,Tt=Et;n.d(e,"ERROR_TYPE",function(){return _t}),e.default=Tt}}).default})},function(t,e,n){var o,i;n(60),o=n(62),i=n(63),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(61);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t:root {\n\t\t--handle-bg: #4a4a4a;\n\t\t--handle-width: 30px;\n\t\t--handle-height: 30px;\n\t\t--handle-chevron-size: 20px;\n\t\t\n\t\t--handle-line-bg: #4a4a4a;\n\t\t--handle-line-width: 2px;\n\t\t--handle-line-height: 100%;\n\t\t\n\t\t--z-index-handle: 5;\n\t\t--z-index-handle-line: 4;\n\t\t--z-index-range-input: 6;\n\t}\n\t\n\t.compare-wrapper {\n\t\tposition: relative;\n\t}\n\t\n\t.compare,\n\t.compare__content {\n\t\tposition: relative;\n\t\theight: 100%;\n\t}\n\t\n\t.compare-overlay.initial,\n\t.compare__content.initial {\n\t\topacity: 0.2;\n\t}\n\t\n\t.compare-overlay,\n\t.compare__content {\n\t\ttransition: opacity .3s ease-in-out;\n\t}\n\t\n\t.compare-overlay {\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t\n\t.compare-overlay__content {\n\t\tposition: relative;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t\n\t.handle__arrow {\n\t\tposition: absolute;\n\t\twidth: var(--handle-chevron-size);\n\t}\n\t\n\t.handle__arrow--l {\n\t\tleft: 0;\n\t}\n\t\n\t.handle__arrow--r {\n\t\tright: 0;\n\t}\n\t\n\t.handle-wrap {\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: flex;\n\t\t-ms-flex-align: center;\n\t\t align-items: center;\n\t\t-ms-flex-pack: center;\n\t\t justify-content: center;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\theight: 100%;\n\t\ttransform: translate(-50%, -50%);\n\t\tz-index: var(--z-index-handle);\n\t}\n\t\n\t.handle-icon {\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: flex;\n\t\t-ms-flex-align: center;\n\t\t align-items: center;\n\t\t-ms-flex-pack: center;\n\t\t justify-content: center;\n\t\tcolor: white;\n\t\tbackground: var(--handle-bg);\n\t\tborder-radius: 50%;\n\t\twidth: var(--handle-width);\n\t\theight: var(--handle-height);\n\t}\n\t\n\t.handle-line {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\twidth: var(--handle-line-width);\n\t\theight: 100%;\n\t\tbackground: var(--handle-line-bg);\n\t\tz-index: var(--z-index-handle-line);\n\t\tpointer-events: none;\n\t\t-webkit-user-select: none;\n\t\t -moz-user-select: none;\n\t\t -ms-user-select: none;\n\t\t user-select: none;\n\t}\n\t\n\t.compare__range {\n\t\tposition: absolute;\n\t\tcursor: ew-resize;\n\t\tleft: calc(var(--handle-width) / -2);\n\t\twidth: calc(100% + var(--handle-width));\n\t\ttransform: translatey(-50%);\n\t\ttop: calc(50%);\n\t\tz-index: var(--z-index-range-input);\n\t\t-webkit-appearance: none;\n\t\theight: var(--handle-height);\n\t\t/* debugging purposes only */\n\t\tbackground: rgba(0, 0, 0, .4);\n\t\topacity: .0;\n\t}\n\t\n\t.object-fit-cover {\n\t\t-o-object-fit: cover;\n\t\t object-fit: cover;\n\t}\n\t\n\t.compare_optimized {\n\t\tright: 5px;\n\t}\n\t\n\t.compare_original {\n\t\tleft: 5px;\n\t}\n\t\n\t.compare_label {\n\t\tposition: absolute;\n\t\tz-index: 999;\n\t\tbackground: #444;\n\t\topacity: 0.6;\n\t\tpadding: 0.5rem;\n\t\tborder-radius: 0.2rem;\n\t\tcolor: #fff;\n\t\ttop: 10px;\n\t\t\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"image_diff",props:{value:{default:50},first_label:{type:String,default:""},second_label:{type:String,default:""},step:{default:".1"}},data:function(){return{width:null,initial:!1,compareWidth:this.value}},watch:{value:function(){this.compareWidth=this.value}},mounted:function(){this.width=this.getContainerWidth()},methods:{removeInitial:function(){this.initial=!0},handleInput:function(t){this.compareWidth=t.target.value,this.$emit("input",t.target.value)},handleResize:function(){var t=this.getContainerWidth();t!==this.width&&(this.width=t)},getContainerWidth:function(){return window.getComputedStyle(this.$el,null).getPropertyValue("width")}}}},function(t,e){t.exports='\n\t<div class="compare-wrapper" @mouseenter="removeInitial">\n\t\t<div class="compare">\n\t\t\t\n\t\t\t<span class="compare_label compare_original">{{this.first_label}}</span>\n\t\t\t<span class="compare_label compare_optimized">{{this.second_label}}</span>\n\t\t\t<div class="compare__content " :class="{\'initial\':!initial}" :style="{\'width\': width}">\n\t\t\t\t<slot name="first"></slot>\n\t\t\t\n\t\t\t</div>\n\t\t\t\n\t\t\t<resize-observer @notify="handleResize" style="display: none"></resize-observer>\n\t\t\t<div class="handle-wrap" :style="{left:`calc(${compareWidth + \'%\'} - var(--handle-line-width) / 2`}">\n\t\t\t\t<div class="handle-icon">\n\t\t\t\t\t<svg class="handle__arrow handle__arrow--l" xmlns="http://www.w3.org/2000/svg" width="24"\n\t\t\t\t\t height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"\n\t\t\t\t\t stroke-linecap="round" stroke-linejoin="round">\n\t\t\t\t\t\t<polyline points="15 18 9 12 15 6"></polyline>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg class="handle__arrow handle__arrow--r" xmlns="http://www.w3.org/2000/svg" width="24"\n\t\t\t\t\t height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"\n\t\t\t\t\t stroke-linecap="round" stroke-linejoin="round">\n\t\t\t\t\t\t<polyline points="9 18 15 12 9 6"></polyline>\n\t\t\t\t\t</svg>\n\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t<span class="handle-line"></span>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="compare-overlay" :class="{\'initial\':!initial}" :style="{width:`calc(${compareWidth + \'%\'})`}">\n\t\t\t\t<div class="compare-overlay__content" :style="{ \'width\': width}">\n\t\t\t\t\t<slot name="second"></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\n\t\t</div>\n\t\t<input type="range" min="0" max="100" :step="step" class="compare__range" :value="compareWidth"\n\t\t @input="handleInput" tabindex="-1">\n\t\n\t</div>\n'},function(t,e,n){var o=n(65);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n(66).default;i("39e86696",o,!1,{})},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,'/* component style */\n.vue-slider-disabled .vue-slider-process {\n background-color: #a7a7a7; }\n\n.vue-slider-disabled .vue-slider-dot-handle {\n border-color: #a7a7a7; }\n\n.vue-slider-disabled .vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #a7a7a7; }\n\n/* rail style */\n.vue-slider-rail {\n background-color: whitesmoke;\n border-radius: 15px;\n transition: background-color 0.3s; }\n\n.vue-slider:hover .vue-slider-rail {\n background-color: #e1e1e1; }\n\n/* process style */\n.vue-slider-process {\n background-color: #9cd5ff;\n border-radius: 15px;\n transition: background-color 0.3s; }\n\n.vue-slider:hover .vue-slider-process {\n background-color: #69c0ff; }\n\n/* mark style */\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n box-shadow: 0 0 0 2px #e8e8e8;\n background-color: #fff; }\n\n.vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #9cd5ff; }\n\n.vue-slider:hover .vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #69c0ff; }\n\n.vue-slider-mark-label {\n font-size: 12px;\n white-space: nowrap; }\n\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n border: 2px solid #9cd5ff;\n box-sizing: border-box;\n transition: box-shadow 0.3s, border-color 0.3s; }\n\n.vue-slider:hover .vue-slider-dot-handle {\n border-color: #69c0ff; }\n\n.vue-slider-dot-handle-focus {\n border-color: #36abff;\n box-shadow: 0 0 0 5px rgba(54, 171, 255, 0.2); }\n\n.vue-slider:hover .vue-slider-dot-handle-focus {\n border-color: #36abff; }\n\n.vue-slider-dot-handle:hover {\n border-color: #36abff; }\n\n.vue-slider:hover .vue-slider-dot-handle:hover {\n border-color: #36abff; }\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n border-color: #ddd !important; }\n\n.vue-slider-dot-tooltip {\n opacity: 0;\n visibility: hidden;\n transition: all 0.3s; }\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 6px 8px;\n color: #fff;\n border-radius: 5px;\n border-color: rgba(0, 0, 0, 0.75);\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n transform: scale(0.9);\n transition: transform 0.3s; }\n\n.vue-slider-dot-tooltip-inner::after {\n content: "";\n position: absolute; }\n\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-top {\n transform-origin: 50% 100%; }\n\n.vue-slider-dot-tooltip-inner-bottom {\n transform-origin: 50% 0; }\n\n.vue-slider-dot-tooltip-inner-left {\n transform-origin: 100% 50%; }\n\n.vue-slider-dot-tooltip-inner-right {\n transform-origin: 0% 50%; }\n\n.vue-slider-dot:hover .vue-slider-dot-tooltip, .vue-slider-dot-tooltip-show {\n opacity: 1;\n visibility: visible; }\n\n.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner, .vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner {\n transform: scale(1); }\n\n/*# sourceMappingURL=antd.css.map */\n',""])},function(t,e,n){"use strict";function o(t,e,n,o){h=n,v=o||{};var a=Object(p.a)(t,e);return i(a),function(e){for(var n=[],o=0;o<a.length;o++){var r=a[o],s=d[r.id];s.refs--,n.push(s)}e?(a=Object(p.a)(t,e),i(a)):a=[];for(var o=0;o<n.length;o++){var s=n[o];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}}function i(t){for(var e=0;e<t.length;e++){var n=t[e],o=d[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(r(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(r(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:a}}}}function a(){var t=document.createElement("style");return t.type="text/css",m.appendChild(t),t}function r(t){var e,n,o=document.querySelector("style["+g+'~="'+t.id+'"]');if(o){if(h)return b;o.parentNode.removeChild(o)}if(x){var i=f++;o=u||(u=a()),e=s.bind(null,o,i,!1),n=s.bind(null,o,i,!0)}else o=a(),e=l.bind(null,o),n=function(){o.parentNode.removeChild(o)};return e(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;e(t=o)}else n()}}function s(t,e,n,o){var i=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var a=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function l(t,e){var n=e.css,o=e.media,i=e.sourceMap;if(o&&t.setAttribute("media",o),v.ssrId&&t.setAttribute(g,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var p=n(67),c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)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 d={},m=c&&(document.head||document.getElementsByTagName("head")[0]),u=null,f=0,h=!1,b=function(){},v=null,g="data-vue-ssr-id",x="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";function o(t,e){for(var n=[],o={},i=0;i<e.length;i++){var a=e[i],r=a[0],s=a[1],l=a[2],p=a[3],c={id:t+":"+i,css:s,media:l,sourceMap:p};o[r]?o[r].parts.push(c):n.push(o[r]={id:r,parts:[c]})}return n}e.a=o},function(t,e){t.exports='\n <div :class="{ \'saving--option\' : this.$store.state.loading }" _v-2bdf3418="">\n <div class="field columns" _v-2bdf3418="">\n <label class="label column has-text-grey-dark" _v-2bdf3418="">\n {{strings.enable_network_opt_title}}\n <p class="is-italic has-text-weight-normal" _v-2bdf3418="">\n {{strings.enable_network_opt_desc}}\n </p>\n </label>\n <div class="column is-3" _v-2bdf3418="">\n <br _v-2bdf3418="">\n <toggle-button :class="\'has-text-dark\'" :disabled="this.$store.state.loading" v-model="networkStatus" :labels="{checked: strings.enabled, unchecked: strings.disabled}" :width="80" :height="25" color="#008ec2" _v-2bdf3418=""></toggle-button>\n </div>\n </div>\n \x3c!-- GIF replacement toggle button --\x3e\n <div class="field columns" _v-2bdf3418="">\n <label class="label column has-text-grey-dark" _v-2bdf3418="">\n {{strings.enable_gif_replace}}\n\n <p class="is-italic has-text-weight-normal" _v-2bdf3418="">\n {{strings.gif_replacer_desc}}\n </p>\n </label>\n\n <div class="column is-3 " _v-2bdf3418="">\n <toggle-button :class="\'has-text-dark\'" v-model="gifReplacementStatus" :disabled="this.$store.state.loading" :labels="{checked: strings.enabled, unchecked: strings.disabled}" :width="80" :height="25" color="#008ec2" _v-2bdf3418=""></toggle-button>\n </div>\n </div>\n <div class="field columns" _v-2bdf3418="">\n <label class="label column has-text-grey-dark" _v-2bdf3418="">\n {{strings.quality_title}}\n <p class="is-italic has-text-weight-normal" _v-2bdf3418="">\n {{strings.quality_desc}}\n </p>\n </label>\n\n\n </div>\n <div class="field columns" _v-2bdf3418="">\n <div class="column" _v-2bdf3418="">\n <vue-slider @change="() => { showSave=true;showSample=true }" v-bind="sliderOptions" v-model="new_data.quality" _v-2bdf3418=""></vue-slider>\n </div>\n </div>\n <div class="field is-fullwidth columns " _v-2bdf3418="">\n <div class="column is-left" _v-2bdf3418="">\n <button @click="saveChanges()" class="button is-success is-small " :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-2bdf3418="">{{strings.save_changes}}\n </button>\n <a href="#" v-if="showSample" @click="newSample(false)" class="view-sample-image is-link" _v-2bdf3418="">{{strings.view_sample_image}}\n </a>\n </div>\n </div>\n <div v-if="showComparison" class="sample-image" _v-2bdf3418="">\n <div v-if="loading_images" class="has-text-centered subtitle " _v-2bdf3418="">{{strings.sample_image_loading}}<span class="loader has-text-black-bis icon is-small" _v-2bdf3418=""></span>\n </div>\n <div v-else-if="sample_images.id && sample_images.original_size > 0" _v-2bdf3418="">\n <div class="columns is-centered is-vcentered is-multiline is-mobile" _v-2bdf3418="">\n <a @click="newSample(true)" class="button is-small is-pulled-right" _v-2bdf3418="">\n <span class="icon dashicons dashicons-image-rotate" _v-2bdf3418=""></span>\n </a>\n <div class="column visual-compare is-half-fullhd is-half-desktop is-three-quarters-touch is-12-mobile " _v-2bdf3418="">\n <div class="is-full progress-wrapper" _v-2bdf3418="">\n <p class="subtitle is-size-6 compress-optimization-ratio-done has-text-centered" v-if="compressionRatio > 0" _v-2bdf3418="">\n <strong _v-2bdf3418="">{{( 100 - compressionRatio )}}%</strong> smaller </p>\n <p class="subtitle compress-optimization-ratio-nothing is-size-6 has-text-centered" v-else="" _v-2bdf3418="">\n {{all_strings.latest_images.same_size}}\n </p>\n <progress class=" progress is-large is-success " :value="compressionRatio" :max="100" _v-2bdf3418="">\n </progress>\n <hr _v-2bdf3418="">\n </div>\n <image_diff class="is-fullwidth" value="50" :first_label="strings.image_1_label" :second_label="strings.image_2_label" _v-2bdf3418="">\n <img slot="first" :src="sample_images.optimized" _v-2bdf3418="">\n <img slot="second" :src="sample_images.original" _v-2bdf3418="">\n </image_diff>\n </div>\n </div>\n <p class="title has-text-centered is-6" _v-2bdf3418="">{{strings.quality_slider_desc}}</p>\n </div>\n <div v-else-if=" sample_images.id < 0" _v-2bdf3418="">\n <p class="title has-text-centered is-5 is-size-6-mobile" _v-2bdf3418="">{{strings.no_images_found}}</p>\n </div>\n </div>\n\n </div>\n'},function(t,e,n){var o=n(70);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t.optml-layout-grid .grid-button.is-selected[_v-6d81614d] {\n\t\tbackground: #4a4a4a;\n\t}\n\t\n\t.optml-layout-grid .grid-button[_v-6d81614d] {\n\t\twidth: 50px;\n\t\theight: 50px;\n\t\tdisplay: inline-block;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tborder-radius: 9px;\n\t\tborder: 5px solid #4a4a4a;\n\t}\n\t\n\t.optml-layout-grid[_v-6d81614d] {\n\t\twidth: 200px;\n\t\t\n\t}\n\t#optimole-app .input.is-small.is-tiny[_v-6d81614d]{\n\t\twidth:60px;\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(72),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={name:"watermarks",components:{FileUpload:i.default},data:function(){return{global:optimoleDashboardApp,startTime:0,maxTime:20,noImages:!0,files:[],is_error:!1,error_message:"",home_url:optimoleDashboardApp.home_url,strings:optimoleDashboardApp.strings.watermarks,watermarkData:[{ID:1,guid:""}],watermarkSettings:this.$store.state.site_settings.watermark,newData:{}}},mounted:function(){this.$store.state.optimizedImages.length>0||(this.selectedWatermark=this.watermarkSettings.id,this.$store.dispatch("retrieveWatermarks",{component:this}))},computed:{watermarkOpacity:{set:function(t){return parseInt(t)<0?(this.$store.commit("updateWatermark",{opacity:0}),void(this.newData.wm_opacity=this.watermarkSettings.opacity)):parseInt(t)>100?(opacity=1,this.$store.commit("updateWatermark",{opacity:1}),void(this.newData.wm_opacity=this.watermarkSettings.opacity)):(this.$store.commit("updateWatermark",{opacity:parseFloat(parseInt(t)/100)}),void(this.newData.wm_opacity=this.watermarkSettings.opacity))},get:function(){return Math.round(100*this.watermarkSettings.opacity)}},watermarkScale:{set:function(t){return parseInt(t)<0?(this.$store.commit("updateWatermark",{scale:0}),void(this.newData.wm_scale=this.watermarkSettings.scale)):parseInt(t)>300?(this.$store.commit("updateWatermark",{scale:3}),void(this.newData.wm_scale=this.watermarkSettings.scale)):(this.$store.commit("updateWatermark",{scale:parseFloat(parseInt(t)/100)}),void(this.newData.wm_scale=this.watermarkSettings.scale))},get:function(){return Math.round(100*this.watermarkSettings.scale)}},watermarkX:{set:function(t){this.$store.commit("updateWatermark",{x_offset:parseInt(t)}),this.newData.wm_x=this.watermarkSettings.x_offset},get:function(){return this.watermarkSettings.x_offset}},watermarkY:{set:function(t){this.$store.commit("updateWatermark",{y_offset:parseInt(t)}),this.newData.wm_y=this.watermarkSettings.y_offset},get:function(){return this.watermarkSettings.y_offset}},selectedWatermark:{set:function(t){this.$store.commit("updateWatermark",{id:parseInt(t)}),this.newData.wm_id=this.watermarkSettings.id},get:function(){return this.watermarkSettings.id}},loading:function(){return this.$store.state.loading}},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.newData})},changePosition:function(t){this.$store.commit("updateWatermark",{position:t}),this.newData.wm_position=this.watermarkSettings.position},isSelectedWatermark:function(t){return this.$store.state.site_settings.watermark.id===t},isActivePosition:function(t){return this.watermarkSettings.position===t},inputFilter:function(t,e,n){if(t&&!e){if(/(\/|^)(Thumbs\.db|desktop\.ini|\..+)$/.test(t.name))return n();if(/\.(php5?|html?|jsx?)$/i.test(t.name))return n()}},inputFile:function(t,e){if(t&&!e&&(this.is_error=!1,this.error_message="",this.$refs.upload.active=!0),t&&e){if(t.response.code&&"error"===t.response.code)return this.is_error=!0,void(this.error_message=t.response.data);this.$store.dispatch("retrieveWatermarks",{component:this})}t&&e&&t.success!==e.success&&this.$refs.upload.clear()},removeWatermark:function(t){this.$store.dispatch("removeWatermark",{postID:t,component:this})}}}},function(t,e,n){/*!
|
17 |
* Name: vue-upload-component
|
18 |
* Version: 2.8.19
|
19 |
* Author: LianYue
|
13 |
* (c) 2015-present Evan You
|
14 |
* @license MIT
|
15 |
*/
|
16 |
+
function(t){return t&&"object"==typeof t&&"default"in t?t.default:t}(n("8bbf")),u="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys,f={__proto__:[]},h=f instanceof Array,b=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];d.registerHooks=function(t){b.push.apply(b,t)},e.default=d,e.createDecorator=a,e.mixins=r},"8bbf":function(e,n){e.exports=t},ae61:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider-dot{position:absolute;will-change:transform;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""])},d5ac:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""])},df80:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-ms-touch-action:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-disabled{pointer-events:none}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}.vue-slider-sr-only{clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden;position:absolute!important}",""])},fb15:function(t,e,n){"use strict";function o(t,e,n,o){var i,a=arguments.length,r=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(r=(a<3?i(r):a>3?i(e,n,r):i(e,n))||r);return a>3&&r&&Object.defineProperty(e,n,r),r}function i(t,e,n){ut&&(Array.isArray(t)||"function"==typeof t||void 0!==t.type||(t.type=Reflect.getMetadata("design:type",e,n)))}function a(t){return void 0===t&&(t={}),function(e,n){i(t,e,n),Object(dt.createDecorator)(function(e,n){(e.props||(e.props={}))[n]=t})(e,n)}}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}function x(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function C(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){L(t,e,n[e])})}return t}function A(t,e){return E(t)||j(t,e)||$()}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function j(t,e){var n=[],o=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(o=(r=s.next()).done)&&(n.push(r.value),!e||n.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}return n}function E(t){if(Array.isArray(t))return t}function T(t){return R(t)||P(t)||D()}function D(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function P(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function R(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function N(t,e,n){return e&&M(t.prototype,e),n&&M(t,n),t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function U(t,e,n){return e&&B(t.prototype,e),n&&B(t,n),t}function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){X(t,e,n[e])})}return t}function V(t,e){return K(t)||W(t,e)||q()}function q(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function W(t,e){var n=[],o=!0,i=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(o=(r=s.next()).done)&&(n.push(r.value),!e||n.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}return n}function K(t){if(Array.isArray(t))return t}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J(t){return Q(t)||Z(t)||Y()}function Y(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Z(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function Q(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function tt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function et(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function nt(t,e,n){return e&&et(t.prototype,e),n&&et(t,n),t}function ot(t,e){return!e||"object"!==G(e)&&"function"!=typeof e?it(t):e}function it(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&st(t,e)}function st(t,e){return(st=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var lt;n.r(e),"undefined"!=typeof window&&(lt=window.document.currentScript)&&(lt=lt.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=lt[1]);var pt=n("8bbf"),ct=n.n(pt),dt=n("65d9"),mt=n.n(dt),ut="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;n("4ed8");var ft=function(t){function e(){return s(this,e),c(this,m(e).apply(this,arguments))}return u(e,t),p(e,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),e}(ct.a);o([a({default:0})],ft.prototype,"value",void 0),o([a()],ft.prototype,"tooltip",void 0),o([a()],ft.prototype,"dotStyle",void 0),o([a()],ft.prototype,"tooltipStyle",void 0),o([a({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],ft.prototype,"tooltipPlacement",void 0),o([a({type:[String,Function]})],ft.prototype,"tooltipFormatter",void 0),o([a({type:Boolean,default:!1})],ft.prototype,"focus",void 0),o([a({default:!1})],ft.prototype,"disabled",void 0),ft=o([mt.a],ft);var ht=ft;n("556c");var bt=function(t){function e(){return b(this,e),x(this,w(e).apply(this,arguments))}return k(e,t),g(e,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),e}(ct.a);o([a({required:!0})],bt.prototype,"mark",void 0),o([a(Boolean)],bt.prototype,"hideLabel",void 0),o([a()],bt.prototype,"stepStyle",void 0),o([a()],bt.prototype,"stepActiveStyle",void 0),o([a()],bt.prototype,"labelStyle",void 0),o([a()],bt.prototype,"labelActiveStyle",void 0),bt=o([mt.a],bt);var vt,gt=bt,xt=function(t){return"number"==typeof t?"".concat(t,"px"):t},yt=function(t){var e=document.documentElement,n=document.body,o=t.getBoundingClientRect();return{y:o.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:o.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}},wt=function(t,e,n){var o="targetTouches"in t?t.targetTouches[0]:t,i=yt(e),a={x:o.pageX-i.x,y:o.pageY-i.y};return{x:n?e.offsetWidth-a.x:a.x,y:n?e.offsetHeight-a.y:a.y}};!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(vt||(vt={}));var kt,_t,zt=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case vt.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case vt.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case vt.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case vt.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case vt.END:return function(){return e.max};case vt.HOME:return function(){return e.min};case vt.PAGE_UP:return function(t){return t+10};case vt.PAGE_DOWN:return function(t){return t-10};default:return null}},St=function(){function t(e){z(this,t),this.num=e}return C(t,[{key:"decimal",value:function(t,e){var n=this.num,o=this.getDecimalLen(n),i=this.getDecimalLen(t),a=0;switch(e){case"+":a=this.getExponent(o,i),this.num=(this.safeRoundUp(n,a)+this.safeRoundUp(t,a))/a;break;case"-":a=this.getExponent(o,i),this.num=(this.safeRoundUp(n,a)-this.safeRoundUp(t,a))/a;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(o)),this.safeRoundUp(t,this.getExponent(i)))/this.getExponent(o+i);break;case"/":a=this.getExponent(o,i),this.num=this.safeRoundUp(n,a)/this.safeRoundUp(t,a);break;case"%":a=this.getExponent(o,i),this.num=this.safeRoundUp(n,a)%this.safeRoundUp(t,a)/a}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){return("".concat(t).split(".")[1]||"").length}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(_t||(_t={}));var Ct=(kt={},L(kt,_t.VALUE,'The type of the "value" is illegal'),L(kt,_t.INTERVAL,'The prop "interval" is invalid, "(max - min)" cannot be divisible by "interval"'),L(kt,_t.MIN,'The "value" cannot be less than the minimum.'),L(kt,_t.MAX,'The "value" cannot be greater than the maximum.'),L(kt,_t.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),kt),Ot=function(){function t(e){I(this,t),this.dotsPos=[],this.dotsValue=[],this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(_t.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return N(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?T(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?T(t).sort(function(t,e){return t-e}):t;this.dotsPos=n,this.setDotsValue(n.map(function(t){return e.getValueByPos(t)}),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach(function(o){var i=Math.abs(o.pos-t);i<n&&(n=i,e=o.value)})}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map(function(e){return t.parseValue(e)})}},{key:"getRecentDot",value:function(t){var e=this.dotsPos.map(function(e){return Math.abs(e-t)});return e.indexOf(Math.min.apply(Math,T(e)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new St(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new St(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){t=this.getValidPos(t,e).pos;var n=t-this.dotsPos[e];if(n){var o=new Array(this.dotsPos.length);this.fixed?o=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?o=this.getLimitRangeChangePosArr(t,n,e):o[e]=n,this.setDotsPos(this.dotsPos.map(function(t,e){return t+(o[e]||0)}))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach(function(o,i){if(i!==e){var a=n.getValidPos(o+t,i),r=a.pos;a.inRange||(t=Math.min(Math.abs(r-o),Math.abs(t))*(t<0?-1:1))}}),this.dotsPos.map(function(e){return t})}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var o=this,i=[{index:n,changePos:e}],a=e;return[this.minRange,this.maxRange].forEach(function(r,s){if(!r)return!1;var l=0===s,p=e>0,c=0;c=l?p?1:-1:p?-1:1;for(var d=n+c,m=o.dotsPos[d],u=t;o.isPos(m)&&function(t,e){var n=Math.abs(t-e);return l?n<o.minRangeDir:n>o.maxRangeDir}(m,u);){var f=o.getValidPos(m+a,d),h=f.pos;i.push({index:d,changePos:h-m}),d+=c,u=h,m=o.dotsPos[d]}}),this.dotsPos.map(function(t,e){var n=i.filter(function(t){return t.index===e});return n.length?n[0].changePos:0})}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],o=!0;return t<n[0]?(t=n[0],o=!1):t>n[1]&&(t=n[1],o=!1),{pos:t,inRange:o}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(_t.MIN),0;if(t>this.max)return this.emitError(_t.MAX),0;if("number"!=typeof t||t!==t)return this.emitError(_t.VALUE),0;t=new St(t).minus(this.min).divide(this.interval).toNumber()}var e=new St(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some(function(e){var n=A(e,2),o=n[0],i=n[1];return t>=o&&t<=i})}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new St(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"emitError",value:function(t){this.onError&&this.onError(t,Ct[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var o=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return o&&void 0!==o[e]?this.parseValue(o[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var o=t.parseValue(e);return O({pos:o,value:e,label:e,active:t.isActiveByPos(o)},n)};return!0===this.marks?this.getValues().map(function(t){return e(t)}):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort(function(t,e){return+t-+e}).map(function(n){var o=t.marks[n];return e(n,"string"!=typeof o?o:{label:o})}):Array.isArray(this.marks)?this.marks.map(function(t){return e(t)}):"function"==typeof this.marks?this.getValues().map(function(e){return{value:e,result:t.marks(e)}}).filter(function(t){return!!t.result}).map(function(t){var n=t.value,o=t.result;return e(n,o)}):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,T(this.dotsPos)),Math.max.apply(Math,T(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new St(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!=0?(this.emitError(_t.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.minRange?this.minRange*this.gap:0}},{key:"maxRangeDir",get:function(){return this.maxRange?this.maxRange*this.gap:100}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach(function(o,i){n.push([Math.max(t.minRange?t.minRangeDir*i:0,t.enableCross?0:e[i-1]||0,t.getDotRange(i,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-i):100,t.enableCross?100:e[i+1]||100,t.getDotRange(i,"max",100))])}),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map(function(e){return t.getIndexByValue(e)})}}]),t}(),At=function(){function t(e){F(this,t),this.states=0,this.map=e}return U(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();n("4abb");var $t={None:0,Drag:2,Focus:4},jt=function(t){function e(){var t;return tt(this,e),t=ot(this,at(e).apply(this,arguments)),t.states=new At($t),t.scale=1,t.focusDotIndex=0,t}return rt(e,t),nt(e,[{key:"onValueChanged",value:function(){!this.states.has($t.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new St(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new Ot({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(function(e){t.$watch(e,function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every(function(e,n){return e===t.control.data[n]}))return!1;t.control[e]=n,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()})})}},{key:"isDisabledByDotIndex",value:function(t){return this.dots[t].disabled}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:J(t))}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some(function(t,n){return t!==e[n]})}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add($t.Drag),this.states.add($t.Focus),this.$emit("drag-start")}},{key:"dragMove",value:function(t){if(!this.states.has($t.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:J(n))}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex&&this.control.setDotPos(n,e)}}},{key:"dragEnd",value:function(){var t=this;if(!this.states.has($t.Drag))return!1;setTimeout(function(){t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.lazy&&t.syncValueByPos(),t.states.delete($t.Drag),t.useKeyboard||t.states.delete($t.Focus),t.$emit("drag-end")})}},{key:"blurHandle",value:function(t){if(!this.states.has($t.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete($t.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable)return!1;if(!this.states.has($t.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add($t.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete($t.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?J(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map(function(t){return e.control.getValueByIndex(t)}):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.isDisabledByDotIndex(n))return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add($t.Focus),setTimeout(function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()})}},{key:"keydownHandle",value:function(t){if(!this.useKeyboard||!this.states.has($t.Focus))return!1;var e=zt(t,{direction:this.direction,max:this.control.total,min:0,hook:this.keydownHook});if(e){t.preventDefault();var n=this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex]),o=e(n),i=this.control.parseValue(this.control.getValueByIndex(o));this.isCrossDot(i),this.control.setDotPos(i,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return wt(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,o){var i=this.$createElement,a=this.$scopedSlots[t];return a?o?a(e):i("template",{slot:t},[a(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",{ref:"container",class:this.containerClasses,style:this.containerStyles,attrs:{"aria-hidden":!0},on:{click:this.clickHandle}},[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map(function(n,o){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(o),style:n.style}),!0)}),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map(function(n,o){var i;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(o),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(i={},X(i,t.isHorizontal?"height":"width","100%"),X(i,t.isHorizontal?"width":"height",t.tailSize),X(i,t.mainDirection,"".concat(n.pos,"%")),i),on:{pressLabel:function(e){return t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)})]):null,this.dots.map(function(n,o){var i;return e("vue-slider-dot",{ref:"dot-".concat(o),key:"dot-".concat(o),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[o]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[o]},style:[t.dotBaseStyle,(i={},X(i,t.mainDirection,"".concat(n.pos,"%")),X(i,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),i)],on:{"drag-start":function(){return t.dragStart(o)}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})]),1!==this.dots.length||this.data?null:e("input",{class:"vue-slider-sr-only",attrs:{type:"range",min:this.min,max:this.max},domProps:{value:this.value}})])}},{key:"tailSize",get:function(){return xt((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],e=V(t,2),n=e[0],o=e[1],i=this.width?xt(this.width):this.isHorizontal?"auto":xt(4),a=this.height?xt(this.height):this.isHorizontal?xt(4):"auto";return{padding:this.contained?"".concat(o/2,"px ").concat(n/2,"px"):this.isHorizontal?"".concat(o/2,"px 0"):"0 ".concat(n/2,"px"),width:i,height:a}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map(function(e){var n,o=V(e,3),i=o[0],a=o[1],r=o[2];if(i>a){var s=[a,i];i=s[0],a=s[1]}var l=t.isHorizontal?"width":"height";return{start:i,end:a,style:H((n={},X(n,t.isHorizontal?"height":"width","100%"),X(n,t.isHorizontal?"top":"left",0),X(n,t.mainDirection,"".concat(i,"%")),X(n,l,"".concat(a-i,"%")),X(n,"transitionProperty","".concat(l,",").concat(t.mainDirection)),X(n,"transitionDuration","".concat(t.animateTime,"s")),n),t.processStyle,r)}})}},{key:"dotBaseStyle",get:function(){var t,e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],n=V(e,2),o=n[0],i=n[1];return t=this.isHorizontal?X({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):X({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),H({width:"".concat(o,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map(function(){return t})}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map(function(e,n){return H({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has($t.Focus)&&t.focusDotIndex===n,disabled:!1,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})})}},{key:"animateTime",get:function(){return this.states.has($t.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some(function(e,n){return e!==t[n]}):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),e}(ct.a);o([function(t,e){return void 0===e&&(e={}),function(n,o){i(e,n,o),Object(dt.createDecorator)(function(n,o){(n.props||(n.props={}))[o]=e,n.model={prop:o,event:t||o}})(n,o)}}("change",{default:0})],jt.prototype,"value",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"silent",void 0),o([a({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],jt.prototype,"direction",void 0),o([a({type:[Number,String]})],jt.prototype,"width",void 0),o([a({type:[Number,String]})],jt.prototype,"height",void 0),o([a({default:14})],jt.prototype,"dotSize",void 0),o([a({default:!1})],jt.prototype,"contained",void 0),o([a({type:Number,default:0})],jt.prototype,"min",void 0),o([a({type:Number,default:100})],jt.prototype,"max",void 0),o([a({type:Number,default:1})],jt.prototype,"interval",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"disabled",void 0),o([a({type:Boolean,default:!0})],jt.prototype,"clickable",void 0),o([a({type:Number,default:.5})],jt.prototype,"duration",void 0),o([a(Array)],jt.prototype,"data",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"lazy",void 0),o([a({type:String,validator:function(t){return["none","always","focus"].indexOf(t)>-1},default:"focus"})],jt.prototype,"tooltip",void 0),o([a({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every(function(t){return["top","right","bottom","left"].indexOf(t)>-1})}})],jt.prototype,"tooltipPlacement",void 0),o([a({type:[String,Array,Function]})],jt.prototype,"tooltipFormatter",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"useKeyboard",void 0),o([a({type:Function,default:function(){return!1}})],jt.prototype,"keydownHook",void 0),o([a({type:Boolean,default:!0})],jt.prototype,"enableCross",void 0),o([a({type:Boolean,default:!1})],jt.prototype,"fixed",void 0),o([a({type:Boolean,default:!0})],jt.prototype,"order",void 0),o([a(Number)],jt.prototype,"minRange",void 0),o([a(Number)],jt.prototype,"maxRange",void 0),o([a({type:[Boolean,Object,Array,Function],default:!1})],jt.prototype,"marks",void 0),o([a({type:[Boolean,Function],default:!0})],jt.prototype,"process",void 0),o([a(Boolean)],jt.prototype,"included",void 0),o([a(Boolean)],jt.prototype,"adsorb",void 0),o([a(Boolean)],jt.prototype,"hideLabel",void 0),o([a()],jt.prototype,"dotOptions",void 0),o([a()],jt.prototype,"railStyle",void 0),o([a()],jt.prototype,"processStyle",void 0),o([a()],jt.prototype,"dotStyle",void 0),o([a()],jt.prototype,"tooltipStyle",void 0),o([a()],jt.prototype,"stepStyle",void 0),o([a()],jt.prototype,"stepActiveStyle",void 0),o([a()],jt.prototype,"labelStyle",void 0),o([a()],jt.prototype,"labelActiveStyle",void 0),o([function(t,e){void 0===e&&(e={});var n=e.deep,o=void 0!==n&&n,i=e.immediate,a=void 0!==i&&i;return Object(dt.createDecorator)(function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var i=e.watch;"object"!=typeof i[t]||Array.isArray(i[t])?void 0===i[t]&&(i[t]=[]):i[t]=[i[t]],i[t].push({handler:n,deep:o,immediate:a})})}("value")],jt.prototype,"onValueChanged",null),jt=o([mt()({data:function(){return{control:null}},components:{VueSliderDot:ht,VueSliderMark:gt},inheritAttrs:!1})],jt);var Et=jt,Tt=Et;n.d(e,"ERROR_TYPE",function(){return _t}),e.default=Tt}}).default})},function(t,e,n){var o,i;n(60),o=n(62),i=n(63),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports.default),i&&(("function"==typeof t.exports?t.exports.options:t.exports).template=i)},function(t,e,n){var o=n(61);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t:root {\n\t\t--handle-bg: #4a4a4a;\n\t\t--handle-width: 30px;\n\t\t--handle-height: 30px;\n\t\t--handle-chevron-size: 20px;\n\t\t\n\t\t--handle-line-bg: #4a4a4a;\n\t\t--handle-line-width: 2px;\n\t\t--handle-line-height: 100%;\n\t\t\n\t\t--z-index-handle: 5;\n\t\t--z-index-handle-line: 4;\n\t\t--z-index-range-input: 6;\n\t}\n\t\n\t.compare-wrapper {\n\t\tposition: relative;\n\t}\n\t\n\t.compare,\n\t.compare__content {\n\t\tposition: relative;\n\t\theight: 100%;\n\t}\n\t\n\t.compare-overlay.initial,\n\t.compare__content.initial {\n\t\topacity: 0.2;\n\t}\n\t\n\t.compare-overlay,\n\t.compare__content {\n\t\ttransition: opacity .3s ease-in-out;\n\t}\n\t\n\t.compare-overlay {\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t\n\t.compare-overlay__content {\n\t\tposition: relative;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t\n\t.handle__arrow {\n\t\tposition: absolute;\n\t\twidth: var(--handle-chevron-size);\n\t}\n\t\n\t.handle__arrow--l {\n\t\tleft: 0;\n\t}\n\t\n\t.handle__arrow--r {\n\t\tright: 0;\n\t}\n\t\n\t.handle-wrap {\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: flex;\n\t\t-ms-flex-align: center;\n\t\t align-items: center;\n\t\t-ms-flex-pack: center;\n\t\t justify-content: center;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\theight: 100%;\n\t\ttransform: translate(-50%, -50%);\n\t\tz-index: var(--z-index-handle);\n\t}\n\t\n\t.handle-icon {\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: flex;\n\t\t-ms-flex-align: center;\n\t\t align-items: center;\n\t\t-ms-flex-pack: center;\n\t\t justify-content: center;\n\t\tcolor: white;\n\t\tbackground: var(--handle-bg);\n\t\tborder-radius: 50%;\n\t\twidth: var(--handle-width);\n\t\theight: var(--handle-height);\n\t}\n\t\n\t.handle-line {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\twidth: var(--handle-line-width);\n\t\theight: 100%;\n\t\tbackground: var(--handle-line-bg);\n\t\tz-index: var(--z-index-handle-line);\n\t\tpointer-events: none;\n\t\t-webkit-user-select: none;\n\t\t -moz-user-select: none;\n\t\t -ms-user-select: none;\n\t\t user-select: none;\n\t}\n\t\n\t.compare__range {\n\t\tposition: absolute;\n\t\tcursor: ew-resize;\n\t\tleft: calc(var(--handle-width) / -2);\n\t\twidth: calc(100% + var(--handle-width));\n\t\ttransform: translatey(-50%);\n\t\ttop: calc(50%);\n\t\tz-index: var(--z-index-range-input);\n\t\t-webkit-appearance: none;\n\t\theight: var(--handle-height);\n\t\t/* debugging purposes only */\n\t\tbackground: rgba(0, 0, 0, .4);\n\t\topacity: .0;\n\t}\n\t\n\t.object-fit-cover {\n\t\t-o-object-fit: cover;\n\t\t object-fit: cover;\n\t}\n\t\n\t.compare_optimized {\n\t\tright: 5px;\n\t}\n\t\n\t.compare_original {\n\t\tleft: 5px;\n\t}\n\t\n\t.compare_label {\n\t\tposition: absolute;\n\t\tz-index: 999;\n\t\tbackground: #444;\n\t\topacity: 0.6;\n\t\tpadding: 0.5rem;\n\t\tborder-radius: 0.2rem;\n\t\tcolor: #fff;\n\t\ttop: 10px;\n\t\t\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"image_diff",props:{value:{default:50},first_label:{type:String,default:""},second_label:{type:String,default:""},step:{default:".1"}},data:function(){return{width:null,initial:!1,compareWidth:this.value}},watch:{value:function(){this.compareWidth=this.value}},mounted:function(){this.width=this.getContainerWidth()},methods:{removeInitial:function(){this.initial=!0},handleInput:function(t){this.compareWidth=t.target.value,this.$emit("input",t.target.value)},handleResize:function(){var t=this.getContainerWidth();t!==this.width&&(this.width=t)},getContainerWidth:function(){return window.getComputedStyle(this.$el,null).getPropertyValue("width")}}}},function(t,e){t.exports='\n\t<div class="compare-wrapper" @mouseenter="removeInitial">\n\t\t<div class="compare">\n\t\t\t\n\t\t\t<span class="compare_label compare_original">{{this.first_label}}</span>\n\t\t\t<span class="compare_label compare_optimized">{{this.second_label}}</span>\n\t\t\t<div class="compare__content " :class="{\'initial\':!initial}" :style="{\'width\': width}">\n\t\t\t\t<slot name="first"></slot>\n\t\t\t\n\t\t\t</div>\n\t\t\t\n\t\t\t<resize-observer @notify="handleResize" style="display: none"></resize-observer>\n\t\t\t<div class="handle-wrap" :style="{left:`calc(${compareWidth + \'%\'} - var(--handle-line-width) / 2`}">\n\t\t\t\t<div class="handle-icon">\n\t\t\t\t\t<svg class="handle__arrow handle__arrow--l" xmlns="http://www.w3.org/2000/svg" width="24"\n\t\t\t\t\t height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"\n\t\t\t\t\t stroke-linecap="round" stroke-linejoin="round">\n\t\t\t\t\t\t<polyline points="15 18 9 12 15 6"></polyline>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg class="handle__arrow handle__arrow--r" xmlns="http://www.w3.org/2000/svg" width="24"\n\t\t\t\t\t height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"\n\t\t\t\t\t stroke-linecap="round" stroke-linejoin="round">\n\t\t\t\t\t\t<polyline points="9 18 15 12 9 6"></polyline>\n\t\t\t\t\t</svg>\n\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t<span class="handle-line"></span>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="compare-overlay" :class="{\'initial\':!initial}" :style="{width:`calc(${compareWidth + \'%\'})`}">\n\t\t\t\t<div class="compare-overlay__content" :style="{ \'width\': width}">\n\t\t\t\t\t<slot name="second"></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\n\t\t</div>\n\t\t<input type="range" min="0" max="100" :step="step" class="compare__range" :value="compareWidth"\n\t\t @input="handleInput" tabindex="-1">\n\t\n\t</div>\n'},function(t,e,n){var o=n(65);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n(66).default;i("39e86696",o,!1,{})},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,'/* component style */\n.vue-slider-disabled .vue-slider-process {\n background-color: #a7a7a7; }\n\n.vue-slider-disabled .vue-slider-dot-handle {\n border-color: #a7a7a7; }\n\n.vue-slider-disabled .vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #a7a7a7; }\n\n/* rail style */\n.vue-slider-rail {\n background-color: whitesmoke;\n border-radius: 15px;\n transition: background-color 0.3s; }\n\n.vue-slider:hover .vue-slider-rail {\n background-color: #e1e1e1; }\n\n/* process style */\n.vue-slider-process {\n background-color: #9cd5ff;\n border-radius: 15px;\n transition: background-color 0.3s; }\n\n.vue-slider:hover .vue-slider-process {\n background-color: #69c0ff; }\n\n/* mark style */\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n box-shadow: 0 0 0 2px #e8e8e8;\n background-color: #fff; }\n\n.vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #9cd5ff; }\n\n.vue-slider:hover .vue-slider-mark-step-active {\n box-shadow: 0 0 0 2px #69c0ff; }\n\n.vue-slider-mark-label {\n font-size: 12px;\n white-space: nowrap; }\n\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n border: 2px solid #9cd5ff;\n box-sizing: border-box;\n transition: box-shadow 0.3s, border-color 0.3s; }\n\n.vue-slider:hover .vue-slider-dot-handle {\n border-color: #69c0ff; }\n\n.vue-slider-dot-handle-focus {\n border-color: #36abff;\n box-shadow: 0 0 0 5px rgba(54, 171, 255, 0.2); }\n\n.vue-slider:hover .vue-slider-dot-handle-focus {\n border-color: #36abff; }\n\n.vue-slider-dot-handle:hover {\n border-color: #36abff; }\n\n.vue-slider:hover .vue-slider-dot-handle:hover {\n border-color: #36abff; }\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n border-color: #ddd !important; }\n\n.vue-slider-dot-tooltip {\n opacity: 0;\n visibility: hidden;\n transition: all 0.3s; }\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 6px 8px;\n color: #fff;\n border-radius: 5px;\n border-color: rgba(0, 0, 0, 0.75);\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n transform: scale(0.9);\n transition: transform 0.3s; }\n\n.vue-slider-dot-tooltip-inner::after {\n content: "";\n position: absolute; }\n\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit; }\n\n.vue-slider-dot-tooltip-inner-top {\n transform-origin: 50% 100%; }\n\n.vue-slider-dot-tooltip-inner-bottom {\n transform-origin: 50% 0; }\n\n.vue-slider-dot-tooltip-inner-left {\n transform-origin: 100% 50%; }\n\n.vue-slider-dot-tooltip-inner-right {\n transform-origin: 0% 50%; }\n\n.vue-slider-dot:hover .vue-slider-dot-tooltip, .vue-slider-dot-tooltip-show {\n opacity: 1;\n visibility: visible; }\n\n.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner, .vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner {\n transform: scale(1); }\n\n/*# sourceMappingURL=antd.css.map */\n',""])},function(t,e,n){"use strict";function o(t,e,n,o){h=n,v=o||{};var a=Object(p.a)(t,e);return i(a),function(e){for(var n=[],o=0;o<a.length;o++){var r=a[o],s=d[r.id];s.refs--,n.push(s)}e?(a=Object(p.a)(t,e),i(a)):a=[];for(var o=0;o<n.length;o++){var s=n[o];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}}function i(t){for(var e=0;e<t.length;e++){var n=t[e],o=d[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(r(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(r(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:a}}}}function a(){var t=document.createElement("style");return t.type="text/css",m.appendChild(t),t}function r(t){var e,n,o=document.querySelector("style["+g+'~="'+t.id+'"]');if(o){if(h)return b;o.parentNode.removeChild(o)}if(x){var i=f++;o=u||(u=a()),e=s.bind(null,o,i,!1),n=s.bind(null,o,i,!0)}else o=a(),e=l.bind(null,o),n=function(){o.parentNode.removeChild(o)};return e(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;e(t=o)}else n()}}function s(t,e,n,o){var i=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var a=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function l(t,e){var n=e.css,o=e.media,i=e.sourceMap;if(o&&t.setAttribute("media",o),v.ssrId&&t.setAttribute(g,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var p=n(67),c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)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 d={},m=c&&(document.head||document.getElementsByTagName("head")[0]),u=null,f=0,h=!1,b=function(){},v=null,g="data-vue-ssr-id",x="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";function o(t,e){for(var n=[],o={},i=0;i<e.length;i++){var a=e[i],r=a[0],s=a[1],l=a[2],p=a[3],c={id:t+":"+i,css:s,media:l,sourceMap:p};o[r]?o[r].parts.push(c):n.push(o[r]={id:r,parts:[c]})}return n}e.a=o},function(t,e){t.exports='\n <div :class="{ \'saving--option\' : this.$store.state.loading }" _v-2bdf3418="">\n <div class="field columns" _v-2bdf3418="">\n <label class="label column has-text-grey-dark" _v-2bdf3418="">\n {{strings.enable_network_opt_title}}\n <p class="is-italic has-text-weight-normal" _v-2bdf3418="">\n {{strings.enable_network_opt_desc}}\n </p>\n </label>\n <div class="column is-3" _v-2bdf3418="">\n <br _v-2bdf3418="">\n <toggle-button :class="\'has-text-dark\'" :disabled="this.$store.state.loading" v-model="networkStatus" :labels="{checked: strings.enabled, unchecked: strings.disabled}" :width="80" :height="25" color="#008ec2" _v-2bdf3418=""></toggle-button>\n </div>\n </div>\n \x3c!-- GIF replacement toggle button --\x3e\n <div class="field columns" _v-2bdf3418="">\n <label class="label column has-text-grey-dark" _v-2bdf3418="">\n {{strings.enable_gif_replace_title}}\n\n <p class="is-italic has-text-weight-normal" _v-2bdf3418="">\n {{strings.gif_replacer_desc}}\n </p>\n </label>\n\n <div class="column is-3 " _v-2bdf3418="">\n <toggle-button :class="\'has-text-dark\'" v-model="gifReplacementStatus" :disabled="this.$store.state.loading" :labels="{checked: strings.enabled, unchecked: strings.disabled}" :width="80" :height="25" color="#008ec2" _v-2bdf3418=""></toggle-button>\n </div>\n </div>\n <div class="field columns" _v-2bdf3418="">\n <label class="label column has-text-grey-dark" _v-2bdf3418="">\n {{strings.quality_title}}\n <p class="is-italic has-text-weight-normal" _v-2bdf3418="">\n {{strings.quality_desc}}\n </p>\n </label>\n\n\n </div>\n <div class="field columns" _v-2bdf3418="">\n <div class="column" _v-2bdf3418="">\n <vue-slider @change="() => { showSave=true;showSample=true }" v-bind="sliderOptions" v-model="new_data.quality" _v-2bdf3418=""></vue-slider>\n </div>\n </div>\n <div class="field is-fullwidth columns " _v-2bdf3418="">\n <div class="column is-left" _v-2bdf3418="">\n <button @click="saveChanges()" class="button is-success is-small " :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-2bdf3418="">{{strings.save_changes}}\n </button>\n <a href="#" v-if="showSample" @click="newSample(false)" class="view-sample-image is-link" _v-2bdf3418="">{{strings.view_sample_image}}\n </a>\n </div>\n </div>\n <div v-if="showComparison" class="sample-image" _v-2bdf3418="">\n <div v-if="loading_images" class="has-text-centered subtitle " _v-2bdf3418="">{{strings.sample_image_loading}}<span class="loader has-text-black-bis icon is-small" _v-2bdf3418=""></span>\n </div>\n <div v-else-if="sample_images.id && sample_images.original_size > 0" _v-2bdf3418="">\n <div class="columns is-centered is-vcentered is-multiline is-mobile" _v-2bdf3418="">\n <a @click="newSample(true)" class="button is-small is-pulled-right" _v-2bdf3418="">\n <span class="icon dashicons dashicons-image-rotate" _v-2bdf3418=""></span>\n </a>\n <div class="column visual-compare is-half-fullhd is-half-desktop is-three-quarters-touch is-12-mobile " _v-2bdf3418="">\n <div class="is-full progress-wrapper" _v-2bdf3418="">\n <p class="subtitle is-size-6 compress-optimization-ratio-done has-text-centered" v-if="compressionRatio > 0" _v-2bdf3418="">\n <strong _v-2bdf3418="">{{( 100 - compressionRatio )}}%</strong> smaller </p>\n <p class="subtitle compress-optimization-ratio-nothing is-size-6 has-text-centered" v-else="" _v-2bdf3418="">\n {{all_strings.latest_images.same_size}}\n </p>\n <progress class=" progress is-large is-success " :value="compressionRatio" :max="100" _v-2bdf3418="">\n </progress>\n <hr _v-2bdf3418="">\n </div>\n <image_diff class="is-fullwidth" value="50" :first_label="strings.image_1_label" :second_label="strings.image_2_label" _v-2bdf3418="">\n <img slot="first" :src="sample_images.optimized" _v-2bdf3418="">\n <img slot="second" :src="sample_images.original" _v-2bdf3418="">\n </image_diff>\n </div>\n </div>\n <p class="title has-text-centered is-6" _v-2bdf3418="">{{strings.quality_slider_desc}}</p>\n </div>\n <div v-else-if=" sample_images.id < 0" _v-2bdf3418="">\n <p class="title has-text-centered is-5 is-size-6-mobile" _v-2bdf3418="">{{strings.no_images_found}}</p>\n </div>\n </div>\n\n </div>\n'},function(t,e,n){var o=n(70);"string"==typeof o&&(o=[[t.i,o,""]]);n(1)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"\n\t.optml-layout-grid .grid-button.is-selected[_v-6d81614d] {\n\t\tbackground: #4a4a4a;\n\t}\n\t\n\t.optml-layout-grid .grid-button[_v-6d81614d] {\n\t\twidth: 50px;\n\t\theight: 50px;\n\t\tdisplay: inline-block;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tborder-radius: 9px;\n\t\tborder: 5px solid #4a4a4a;\n\t}\n\t\n\t.optml-layout-grid[_v-6d81614d] {\n\t\twidth: 200px;\n\t\t\n\t}\n\t#optimole-app .input.is-small.is-tiny[_v-6d81614d]{\n\t\twidth:60px;\n\t}\n",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(72),i=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default={name:"watermarks",components:{FileUpload:i.default},data:function(){return{global:optimoleDashboardApp,startTime:0,maxTime:20,noImages:!0,files:[],is_error:!1,error_message:"",home_url:optimoleDashboardApp.home_url,strings:optimoleDashboardApp.strings.watermarks,watermarkData:[{ID:1,guid:""}],watermarkSettings:this.$store.state.site_settings.watermark,newData:{}}},mounted:function(){this.$store.state.optimizedImages.length>0||(this.selectedWatermark=this.watermarkSettings.id,this.$store.dispatch("retrieveWatermarks",{component:this}))},computed:{watermarkOpacity:{set:function(t){return parseInt(t)<0?(this.$store.commit("updateWatermark",{opacity:0}),void(this.newData.wm_opacity=this.watermarkSettings.opacity)):parseInt(t)>100?(opacity=1,this.$store.commit("updateWatermark",{opacity:1}),void(this.newData.wm_opacity=this.watermarkSettings.opacity)):(this.$store.commit("updateWatermark",{opacity:parseFloat(parseInt(t)/100)}),void(this.newData.wm_opacity=this.watermarkSettings.opacity))},get:function(){return Math.round(100*this.watermarkSettings.opacity)}},watermarkScale:{set:function(t){return parseInt(t)<0?(this.$store.commit("updateWatermark",{scale:0}),void(this.newData.wm_scale=this.watermarkSettings.scale)):parseInt(t)>300?(this.$store.commit("updateWatermark",{scale:3}),void(this.newData.wm_scale=this.watermarkSettings.scale)):(this.$store.commit("updateWatermark",{scale:parseFloat(parseInt(t)/100)}),void(this.newData.wm_scale=this.watermarkSettings.scale))},get:function(){return Math.round(100*this.watermarkSettings.scale)}},watermarkX:{set:function(t){this.$store.commit("updateWatermark",{x_offset:parseInt(t)}),this.newData.wm_x=this.watermarkSettings.x_offset},get:function(){return this.watermarkSettings.x_offset}},watermarkY:{set:function(t){this.$store.commit("updateWatermark",{y_offset:parseInt(t)}),this.newData.wm_y=this.watermarkSettings.y_offset},get:function(){return this.watermarkSettings.y_offset}},selectedWatermark:{set:function(t){this.$store.commit("updateWatermark",{id:parseInt(t)}),this.newData.wm_id=this.watermarkSettings.id},get:function(){return this.watermarkSettings.id}},loading:function(){return this.$store.state.loading}},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.newData})},changePosition:function(t){this.$store.commit("updateWatermark",{position:t}),this.newData.wm_position=this.watermarkSettings.position},isSelectedWatermark:function(t){return this.$store.state.site_settings.watermark.id===t},isActivePosition:function(t){return this.watermarkSettings.position===t},inputFilter:function(t,e,n){if(t&&!e){if(/(\/|^)(Thumbs\.db|desktop\.ini|\..+)$/.test(t.name))return n();if(/\.(php5?|html?|jsx?)$/i.test(t.name))return n()}},inputFile:function(t,e){if(t&&!e&&(this.is_error=!1,this.error_message="",this.$refs.upload.active=!0),t&&e){if(t.response.code&&"error"===t.response.code)return this.is_error=!0,void(this.error_message=t.response.data);this.$store.dispatch("retrieveWatermarks",{component:this})}t&&e&&t.success!==e.success&&this.$refs.upload.clear()},removeWatermark:function(t){this.$store.dispatch("removeWatermark",{postID:t,component:this})}}}},function(t,e,n){/*!
|
17 |
* Name: vue-upload-component
|
18 |
* Version: 2.8.19
|
19 |
* Author: LianYue
|
inc/admin.php
CHANGED
@@ -601,6 +601,8 @@ The root cause might be either a security plugin which blocks this feature or so
|
|
601 |
'enable_lazyload_placeholder_title' => __( 'Enable generic lazyload placeholder', 'optimole-wp' ),
|
602 |
'enable_lazyload_placeholder_desc' => __( 'Enabling this might affect the user experience in some cases, however it will reduce the number of total requests and page weight. Try it out and see how works best for you!', 'optimole-wp' ),
|
603 |
'show' => __( 'Show', 'optimole-wp' ),
|
|
|
|
|
604 |
'filter_operator_contains' => __( 'contains', 'optimole-wp' ),
|
605 |
'filter_operator_is' => __( 'is', 'optimole-wp' ),
|
606 |
'filter_filename' => __( 'Image filename', 'optimole-wp' ),
|
601 |
'enable_lazyload_placeholder_title' => __( 'Enable generic lazyload placeholder', 'optimole-wp' ),
|
602 |
'enable_lazyload_placeholder_desc' => __( 'Enabling this might affect the user experience in some cases, however it will reduce the number of total requests and page weight. Try it out and see how works best for you!', 'optimole-wp' ),
|
603 |
'show' => __( 'Show', 'optimole-wp' ),
|
604 |
+
'enable_gif_replace_title' => __( 'Enable Gif to Video conversion', 'optimole-wp' ),
|
605 |
+
'gif_replacer_desc' => __( 'Automatically convert GIF images to Video files(MP4 and WebM)', 'optimole-wp' ),
|
606 |
'filter_operator_contains' => __( 'contains', 'optimole-wp' ),
|
607 |
'filter_operator_is' => __( 'is', 'optimole-wp' ),
|
608 |
'filter_filename' => __( 'Image filename', 'optimole-wp' ),
|
optimole-wp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Image optimization service by Optimole
|
4 |
* Description: Complete handling of your website images.
|
5 |
-
* Version: 2.2.
|
6 |
* Author: Optimole
|
7 |
* Author URI: https://optimole.com
|
8 |
* License: GPL-2.0+
|
@@ -75,7 +75,7 @@ function optml() {
|
|
75 |
define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
|
76 |
define( 'OPTML_JS_CDN', 'd5jmkjjpb7yfg.cloudfront.net' );
|
77 |
define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
|
78 |
-
define( 'OPTML_VERSION', '2.2.
|
79 |
define( 'OPTML_NAMESPACE', 'optml' );
|
80 |
define( 'OPTML_BASEFILE', __FILE__ );
|
81 |
// Fallback for old PHP versions when this constant is not defined.
|
2 |
/**
|
3 |
* Plugin Name: Image optimization service by Optimole
|
4 |
* Description: Complete handling of your website images.
|
5 |
+
* Version: 2.2.1
|
6 |
* Author: Optimole
|
7 |
* Author URI: https://optimole.com
|
8 |
* License: GPL-2.0+
|
75 |
define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
|
76 |
define( 'OPTML_JS_CDN', 'd5jmkjjpb7yfg.cloudfront.net' );
|
77 |
define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
|
78 |
+
define( 'OPTML_VERSION', '2.2.1' );
|
79 |
define( 'OPTML_NAMESPACE', 'optml' );
|
80 |
define( 'OPTML_BASEFILE', __FILE__ );
|
81 |
// Fallback for old PHP versions when this constant is not defined.
|
readme.txt
CHANGED
@@ -89,6 +89,13 @@ Premium users will be able to optimize images for more than 25k monthly active u
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
### [Version 2.2.0](https://github.com/Codeinwp/optimole-wp/compare/v2.1.2...v2.2.0) (2019-10-21)
|
93 |
|
94 |
* #### Bug Fixes
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
#### [Version 2.2.1](https://github.com/Codeinwp/optimole-wp/compare/v2.2.0...v2.2.1) (2019-10-21)
|
93 |
+
|
94 |
+
* **Bug Fixes**
|
95 |
+
* gif to video setting description ([063d37b](https://github.com/Codeinwp/optimole-wp/commit/063d37b))
|
96 |
+
|
97 |
+
|
98 |
+
|
99 |
### [Version 2.2.0](https://github.com/Codeinwp/optimole-wp/compare/v2.1.2...v2.2.0) (2019-10-21)
|
100 |
|
101 |
* #### Bug Fixes
|
themeisle-hash.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"optimole-wp.php":"
|
1 |
+
{"optimole-wp.php":"84f033dfeb05d06ea2df793c500d2826"}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit7ce5d1c453ee2878dfe9aca19ec5dc50::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit872a9dcf18c30c2b92f5c8c98140eda7
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit872a9dcf18c30c2b92f5c8c98140eda7
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit7ce5d1c453ee2878dfe9aca19ec5dc50
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit7ce5d1c453ee2878dfe9aca19ec5dc50', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit7ce5d1c453ee2878dfe9aca19ec5dc50', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit7ce5d1c453ee2878dfe9aca19ec5dc50::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit7ce5d1c453ee2878dfe9aca19ec5dc50::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequire7ce5d1c453ee2878dfe9aca19ec5dc50($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequire7ce5d1c453ee2878dfe9aca19ec5dc50($fileIdentifier, $file)
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit7ce5d1c453ee2878dfe9aca19ec5dc50
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
|