Image optimization & Lazy Load by Optimole - Version 3.5.0

Version Description

Download this release

Release Info

Developer optimole
Plugin Icon 128x128 Image optimization & Lazy Load by Optimole
Version 3.5.0
Comparing to
See all releases

Code changes from version 3.4.6 to 3.5.0

CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  ##### [Version 3.4.6](https://github.com/Codeinwp/optimole-wp/compare/v3.4.5...v3.4.6) (2022-09-08)
2
 
3
  * Updated cache buster format
1
+ #### [Version 3.5.0](https://github.com/Codeinwp/optimole-wp/compare/v3.4.6...v3.5.0) (2022-10-17)
2
+
3
+ * Improved images offload speed by marking processed pages
4
+ * Adds conflict validation before the rollback process
5
+ * Updated the logging for images that fail when offloading
6
+ * Enhance Elementor compatibility
7
+
8
  ##### [Version 3.4.6](https://github.com/Codeinwp/optimole-wp/compare/v3.4.5...v3.4.6) (2022-09-08)
9
 
10
  * Updated cache buster format
assets/js/bundle.min.js CHANGED
@@ -18,12 +18,12 @@ function(t){return t&&"object"==typeof t&&"default"in t?t.default:t}(o("8bbf")),
18
  * Version: 2.8.21
19
  * Author: Marco Lang
20
  */
21
- !function(e,o){t.exports=o()}(0,function(){"use strict";function t(t){var e=r(t);return s(e,t.body)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,o,i,n,a,r,s,l,p){"boolean"!=typeof r&&(l=s,s=r,r=!1);var d="function"==typeof o?o.options:o;t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,n&&(d.functional=!0)),i&&(d._scopeId=i);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=c):e&&(c=r?function(){e.call(this,p(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var m=d.render;d.render=function(t,e){return c.call(e),m(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return o}function i(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);e<t.length;e++)o[e]=t[e];return o}return Array.from(t)}function n(t){return function(t,e){return a(t,e)}}function a(t,e){var o=w?e.media||"default":t,i=_[o]||(_[o]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);var n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),k.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var a=i.ids.size-1,r=document.createTextNode(n),s=i.element.childNodes;s[a]&&i.element.removeChild(s[a]),s.length?i.element.insertBefore(r,s[a]):i.element.appendChild(r)}}}var r=function(t){var e=new XMLHttpRequest;return e.open(t.method||"GET",t.url),e.responseType="json",t.headers&&Object.keys(t.headers).forEach(function(o){e.setRequestHeader(o,t.headers[o])}),e},s=function(t,e){return new Promise(function(o,i){t.onload=function(){if(t.status>=200&&t.status<300){var e;try{e=JSON.parse(t.response)}catch(o){e=t.response}o(e)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(JSON.stringify(e))})},l=function(t,e){var o=new FormData;for(var i in e)o.append(i,e[i]);return new Promise(function(e,i){t.onload=function(){if(t.status>=200&&t.status<300){var o;try{o=JSON.parse(t.response)}catch(e){o=t.response}e(o)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(o)})},p=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),d=function(){function o(t,i){e(this,o),this.file=t,this.options=i,this.chunks=[],this.sessionId=null,this.chunkSize=null,this.speedInterval=null}return p(o,[{key:"createChunks",value:function(){this.chunks=[];for(var t=0,e=this.chunkSize;t<this.fileSize;)this.chunks.push({blob:this.file.file.slice(t,e),startOffset:t,active:!1,retries:this.maxRetries}),t=e,e=t+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach(function(t){t.xhr.abort(),t.active=!1}),this.stopSpeedCalc()}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var t=this;return this.promise=new Promise(function(e,o){t.resolve=e,t.reject=o}),this.start(),this.promise}},{key:"start",value:function(){var e=this;t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then(function(t){if("success"!==t.status)return e.file.response=t,e.reject("server");e.sessionId=t.data.session_id,e.chunkSize=t.data.end_offset,e.createChunks(),e.startChunking()}).catch(function(t){e.file.response=t,e.reject("server")})}},{key:"startChunking",value:function(){for(var t=0;t<this.maxActiveChunks;t++)this.uploadNextChunk();this.startSpeedCalc()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(t){var e=this;t.progress=0,t.active=!0,this.updateFileProgress(),t.xhr=r({method:"POST",headers:this.headers,url:this.action}),t.xhr.upload.addEventListener("progress",function(e){e.lengthComputable&&(t.progress=Math.round(e.loaded/e.total*100))},!1),l(t.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:t.startOffset,chunk:t.blob})).then(function(o){if(t.active=!1,"success"===o.status)t.uploaded=!0;else if(t.retries--<=0)return e.stopChunks(),e.reject("upload");e.uploadNextChunk()}).catch(function(){if(t.active=!1,t.retries--<=0)return e.stopChunks(),e.reject("upload");e.uploadNextChunk()})}},{key:"finish",value:function(){var e=this;this.updateFileProgress(),this.stopSpeedCalc(),t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then(function(t){if(e.file.response=t,"success"!==t.status)return e.reject("server");e.resolve(t)}).catch(function(t){e.file.response=t,e.reject("server")})}},{key:"startSpeedCalc",value:function(){var t=this;this.file.speed=0;var e=0;this.speedInterval||(this.speedInterval=window.setInterval(function(){var o=t.progress/100*t.fileSize;t.file.speed=o-e,e=o},1e3))}},{key:"stopSpeedCalc",value:function(){this.speedInterval&&window.clearInterval(this.speedInterval),this.speedInterval=null,this.file.speed=0}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries,10)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive,10)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var t=this,e=this.chunksUploaded.length/this.chunks.length*100,o=this.chunksUploading.reduce(function(e,o){return e+(0|o.progress)/t.chunks.length},0);return Math.min(e+o,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter(function(t){return!t.active&&!t.uploaded})}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter(function(t){return!!t.xhr&&!!t.active})}},{key:"chunksUploaded",get:function(){return this.chunks.filter(function(t){return!!t.uploaded})}}]),o}(),c={methods:{change:function(t){this.$parent.addInputFile(t.target),t.target.files?(t.target.value="",t.target.files.length&&!/safari/i.test(navigator.userAgent)&&(t.target.type="",t.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}},m=o,f=c,u=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"file",name:t.$parent.name,id:t.$parent.inputId||t.$parent.name,accept:t.$parent.accept,capture:t.$parent.capture,disabled:t.$parent.disabled,webkitdirectory:t.$parent.directory&&t.$parent.features.directory,directory:t.$parent.directory&&t.$parent.features.directory,multiple:t.$parent.multiple&&t.$parent.features.html5},on:{change:t.change}})},h=[],b=m({render:u,staticRenderFns:h},void 0,f,void 0,!1,void 0,void 0,void 0),v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},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},x={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:d},y={components:{InputFile:b},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return x}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drop:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var t=document.createElement("input");if(t.type="file",t.multiple=!0,window.FormData&&t.files?("boolean"!=typeof t.webkitdirectory&&"boolean"!=typeof t.directory||(this.features.directory=!0),this.features.html5&&void 0!==t.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var e=0;e<this.files.length;e++){var o=this.files[e];this.maps[o.id]=o}this.$nextTick(function(){var t=this;this.$parent?(this.$parent.$forceUpdate(),this.$parent.$nextTick(function(){t.watchDrop(t.drop)})):this.watchDrop(this.drop)})},beforeDestroy:function(){this.destroy=!0,this.active=!1,this.watchDrop(!1)},computed:{uploaded:function(){for(var t=void 0,e=0;e<this.files.length;e++)if(t=this.files[e],t.fileObject&&!t.error&&!t.success)return!1;return!0},chunkOptions:function(){return Object.assign(x,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(t){this.watchActive(t)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(t){this.watchDrop(t)},value:function(t){if(this.files!==t){this.files=t;var e=this.maps;this.maps={};for(var o=0;o<this.files.length;o++){var i=this.files[o];this.maps[i.id]=i}for(var n in this.maps){var a=this.maps[n],r=e[n];a!==r&&this.emitFile(a,r)}for(var s in e)this.maps[s]||this.emitFile(void 0,e[s])}}},methods:{clear:function(){if(this.files.length){var t=this.files;this.files=[],this.maps={},this.emitInput();for(var e=0;e<t.length;e++)this.emitFile(void 0,t[e])}return!0},get:function(t){return!!t&&("object"===(void 0===t?"undefined":g(t))?this.maps[t.id]||!1:this.maps[t]||!1)},add:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,o=t,i=o instanceof Array;i||(o=[o]);for(var n=[],a=0;a<o.length;a++){var r=o[a];this.features.html5&&r instanceof Blob&&(r={file:r,size:r.size,name:r.webkitRelativePath||r.relativePath||r.name||"unknown",type:r.type});var s=!1;if(!1===r.fileObject||(r.fileObject?s=!0:"undefined"!=typeof Element&&r.el instanceof Element?s=!0:"undefined"!=typeof Blob&&r.file instanceof Blob&&(s=!0)),s&&(r=v({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},r,{response:{},progress:"0.00",speed:0}),r.data=v({},this.data,r.data?r.data:{}),r.headers=v({},this.headers,r.headers?r.headers:{})),r.id||(r.id=Math.random().toString(36).substr(2)),!this.emitFilter(r,void 0)){if(this.maximum>1&&n.length+this.files.length>=this.maximum)break;if(n.push(r),1===this.maximum)break}}if(!n.length)return!1;1===this.maximum&&this.clear();var l=void 0;if(!0===e||0===e)l=n.concat(this.files);else if(e){var p;l=this.files.concat([]),(p=l).splice.apply(p,[e,0].concat(n))}else l=this.files.concat(n);this.files=l;for(var d=0;d<n.length;d++){var c=n[d];this.maps[c.id]=c}this.emitInput();for(var m=0;m<n.length;m++)this.emitFile(n[m],void 0);return i?n:n[0]},addInputFile:function(t){var e=[];if(t.files)for(var o=0;o<t.files.length;o++){var i=t.files[o];e.push({size:i.size,name:i.webkitRelativePath||i.relativePath||i.name,type:i.type,file:i})}else{var n=t.value.replace(/\\/g,"/").split("/");delete t.__vuex__,e.push({name:n[n.length-1],el:t})}return this.add(e)},addDataTransfer:function(t){var e=this,o=[];if(t.items&&t.items.length){for(var n=[],a=0;a<t.items.length;a++){var r=t.items[a];r=r.getAsEntry?r.getAsEntry()||r.getAsFile():r.webkitGetAsEntry?r.webkitGetAsEntry()||r.getAsFile():r.getAsFile(),r&&n.push(r)}return new Promise(function(t,a){!function a(r){var s=n[r];if(!s||e.maximum>0&&o.length>=e.maximum)return t(e.add(o));e.getEntry(s).then(function(t){o.push.apply(o,i(t)),a(r+1)})}(0)})}if(t.files.length){for(var s=0;s<t.files.length&&(o.push(t.files[s]),!(this.maximum>0&&o.length>=this.maximum));s++);return Promise.resolve(this.add(o))}return Promise.resolve([])},getEntry:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise(function(n,a){if(t.isFile)t.file(function(t){n([{size:t.size,name:o+t.name,type:t.type,file:t}])});else if(t.isDirectory&&e.dropDirectory){var r=[],s=t.createReader();!function a(){s.readEntries(function(s){!function l(p){return!s[p]&&0===p||e.maximum>0&&r.length>=e.maximum?n(r):s[p]?void e.getEntry(s[p],o+t.name+"/").then(function(t){r.push.apply(r,i(t)),l(p+1)}):a()}(0)})}()}else n([])})},replace:function(t,e){var o=this.get(t),i=this.get(e);if(!o||!i||o===i)return!1;var n=this.files.concat([]),a=n.indexOf(o),r=n.indexOf(i);return-1!==a&&-1!==r&&(n[a]=i,n[r]=o,this.files=n,this.emitInput(),!0)},remove:function(t){var e=this.get(t);if(e){if(this.emitFilter(void 0,e))return!1;var o=this.files.concat([]),i=o.indexOf(e);if(-1===i)return console.error("remove",e),!1;o.splice(i,1),this.files=o,delete this.maps[e.id],this.emitInput(),this.emitFile(void 0,e)}return e},update:function(t,e){var o=this.get(t);if(o){var i=v({},o,e);if(!o.fileObject||!o.active||i.active||i.error||i.success||(i.error="abort"),this.emitFilter(i,o))return!1;var n=this.files.concat([]),a=n.indexOf(o);return-1===a?(console.error("update",o),!1):(n.splice(a,1,i),this.files=n,delete this.maps[o.id],this.maps[i.id]=i,this.emitInput(),this.emitFile(i,o),i)}return!1},emitFilter:function(t,e){var o=!1;return this.$emit("input-filter",t,e,function(){return o=!0}),o},emitFile:function(t,e){this.$emit("input-file",t,e),!(t&&t.fileObject&&t.active)||e&&e.active?t&&t.fileObject&&t.active||!e||!e.fileObject||!e.active||this.uploading--:(this.uploading++,this.$nextTick(function(){var e=this;setTimeout(function(){e.upload(t).then(function(){(t=e.get(t))&&t.fileObject&&e.update(t,{active:!1,success:!t.error})}).catch(function(o){e.update(t,{active:!1,success:!1,error:o.code||o.error||o.message||o})})},parseInt(50*Math.random()+50,10))})),!this.active||Boolean(t)===Boolean(e)&&t.active===e.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(t){var e=this.get(t);if(!e)return Promise.reject("not_exists");if(!e.fileObject)return Promise.reject("file_object");if(e.error)return Promise.reject(e.error);if(e.success)return Promise.resolve(e);var o=this.extensions;if(o&&(o.length||void 0===o.length)&&("object"===(void 0===o?"undefined":g(o))&&o instanceof RegExp||("string"==typeof o&&(o=o.split(",").map(function(t){return t.trim()}).filter(function(t){return t})),o=new RegExp("\\.("+o.join("|").replace(/\./g,"\\.")+")$","i")),-1===e.name.search(o)))return Promise.reject("extension");if(this.size>0&&e.size>=0&&e.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(e,this);if(this.features.html5){if(this.shouldUseChunkUpload(e))return this.uploadChunk(e);if(e.putAction)return this.uploadPut(e);if(e.postAction)return this.uploadHtml5(e)}return e.postAction?this.uploadHtml4(e):Promise.reject("No action configured")},shouldUseChunkUpload:function(t){return this.chunkEnabled&&!!this.chunkOptions.handler&&t.size>this.chunkOptions.minSize},uploadChunk:function(t){var e=this.chunkOptions.handler;return t.chunk=new e(t,this.chunkOptions),t.chunk.upload()},uploadPut:function(t){var e=[],o=void 0;for(var i in t.data)null!==(o=t.data[i])&&void 0!==o&&e.push(encodeURIComponent(i)+"="+encodeURIComponent(o));var n=e.length?(-1===t.putAction.indexOf("?")?"?":"&")+e.join("&"):"",a=new XMLHttpRequest;return a.open("PUT",t.putAction+n),this.uploadXhr(a,t,t.file)},uploadHtml5:function(t){var e=new window.FormData,o=void 0;for(var i in t.data)o=t.data[i],o&&"object"===(void 0===o?"undefined":g(o))&&"function"!=typeof o.toString?o instanceof File?e.append(i,o,o.name):e.append(i,JSON.stringify(o)):null!==o&&void 0!==o&&e.append(i,o);e.append(this.name,t.file,t.file.filename||t.name);var n=new XMLHttpRequest;return n.open("POST",t.postAction),this.uploadXhr(n,t,e)},uploadXhr:function(t,e,o){var i=this,n=e,a=0,r=0;t.upload.onprogress=function(t){if(n=i.get(n),t.lengthComputable&&n&&n.fileObject&&n.active){var e=Math.round(Date.now()/1e3);e!==a&&(a=e,n=i.update(n,{progress:(t.loaded/t.total*100).toFixed(2),speed:t.loaded-r}),r=t.loaded)}};var s=setInterval(function(){if(!(n=i.get(n))||!n.fileObject||n.success||n.error||!n.active){s&&(clearInterval(s),s=!1);try{t.abort(),t.timeout=1}catch(t){}}},100);return new Promise(function(e,a){var r=void 0,l=function(o){if(!r){if(r=!0,s&&(clearInterval(s),s=!1),!(n=i.get(n)))return a("not_exists");if(!n.fileObject)return a("file_object");if(n.error)return a(n.error);if(!n.active)return a("abort");if(n.success)return e(n);var l={};switch(o.type){case"timeout":case"abort":l.error=o.type;break;case"error":t.status?t.status>=500?l.error="server":t.status>=400&&(l.error="denied"):l.error="network";break;default:t.status>=500?l.error="server":t.status>=400?l.error="denied":l.progress="100.00"}if(t.responseText){var p=t.getResponseHeader("Content-Type");p&&-1!==p.indexOf("/json")?l.response=JSON.parse(t.responseText):l.response=t.responseText}return n=i.update(n,l),n.error?a(n.error):e(n)}};t.onload=l,t.onerror=l,t.onabort=l,t.ontimeout=l,n.timeout&&(t.timeout=n.timeout);for(var p in n.headers)t.setRequestHeader(p,n.headers[p]);n=i.update(n,{xhr:t}),t.send(o)})},uploadHtml4:function(t){var e=this,o=t,i=function(t){27===t.keyCode&&t.preventDefault()},n=document.createElement("iframe");n.id="upload-iframe-"+o.id,n.name="upload-iframe-"+o.id,n.src="about:blank",n.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var a=document.createElement("form");a.action=o.postAction,a.name="upload-form-"+o.id,a.setAttribute("method","POST"),a.setAttribute("target","upload-iframe-"+o.id),a.setAttribute("enctype","multipart/form-data");var r=void 0,s=void 0;for(var l in o.data)r=o.data[l],r&&"object"===(void 0===r?"undefined":g(r))&&"function"!=typeof r.toString&&(r=JSON.stringify(r)),null!==r&&void 0!==r&&(s=document.createElement("input"),s.type="hidden",s.name=l,s.value=r,a.appendChild(s));a.appendChild(o.el),document.body.appendChild(n).appendChild(a);var p=function(){var t=void 0;try{n.contentWindow&&(t=n.contentWindow.document)}catch(t){}if(!t)try{t=n.contentDocument?n.contentDocument:n.document}catch(e){t=n.document}return t&&t.body?t.body.innerHTML:null};return new Promise(function(t,r){setTimeout(function(){if(!(o=e.update(o,{iframe:n})))return r("not_exists");var s=setInterval(function(){(o=e.get(o))&&o.fileObject&&!o.success&&!o.error&&o.active||(s&&(clearInterval(s),s=!1),n.onabort({type:o?"abort":"not_exists"}))},100),l=void 0,d=function(n){if(!l){if(l=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",i),!(o=e.get(o)))return r("not_exists");if(!o.fileObject)return r("file_object");if(o.error)return r(o.error);if(!o.active)return r("abort");if(o.success)return t(o);var a=p(),d={};switch(n.type){case"abort":d.error="abort";break;case"error":o.error?d.error=o.error:d.error=null===a?"network":"denied";break;default:o.error?d.error=o.error:null===d?d.error="network":d.progress="100.00"}if(null!==a){if(a&&"{"===a.substr(0,1)&&"}"===a.substr(a.length-1,1))try{a=JSON.parse(a)}catch(t){}d.response=a}return o=e.update(o,d),o.error?r(o.error):t(o)}};n.onload=d,n.onerror=d,n.onabort=d,document.body.addEventListener("keydown",i),a.submit()},50)}).then(function(t){return n.parentNode&&n.parentNode.removeChild(n),t}).catch(function(t){return n.parentNode&&n.parentNode.removeChild(n),t})},watchActive:function(t){for(var e=void 0,o=0;e=this.files[o];)if(o++,e.fileObject)if(t&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;e.active||e.error||e.success||this.update(e,{active:!0})}else e.active&&this.update(e,{active:!1});else;0===this.uploading&&(this.active=!1)},watchDrop:function(t){var e=t;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(t){}e?"string"==typeof e?e=document.querySelector(e)||this.$root.$el.querySelector(e):!0===e&&(e=this.$parent.$el):e=!1,this.dropElement=e,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(t){if(t.preventDefault(),!this.dropActive&&t.dataTransfer){var e=t.dataTransfer;e.files&&e.files.length?this.dropActive=!0:e.types?e.types.indexOf&&-1!==e.types.indexOf("Files")?this.dropActive=!0:e.types.contains&&e.types.contains("Files")&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(t){t.preventDefault(),this.dropActive&&("HTML"===t.target.nodeName||t.target===t.explicitOriginalTarget||!t.fromElement&&(t.clientX<=0||t.clientY<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(t){t.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(t){t.preventDefault(),this.addDataTransfer(t.dataTransfer)}}},w="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),k=document.head||document.getElementsByTagName("head")[0],_={},C=n,S=y,O=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("span",{class:t.className},[t._t("default"),t._v(" "),o("label",{attrs:{for:t.inputId||t.name}}),t._v(" "),o("input-file")],2)},z=[],A=function(t){t&&t("data-v-76d380b6_0",{source:".file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block}.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%}.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0}",map:void 0,media:void 0})},j=m({render:O,staticRenderFns:z},A,S,void 0,!1,void 0,C,void 0),$=Object.freeze({default:j});return function(t){return t&&t.default||t}($)})},function(t,e){t.exports='\n\t<div _v-73ff19ce="">\n\t\t<h4 _v-73ff19ce="">{{strings.add_desc}}</h4>\n\t\t<div class="field columns" _v-73ff19ce="">\n\t\t\t<div class="column" v-for="file in files" _v-73ff19ce="">\n <span class="tag" _v-73ff19ce="">\n <i _v-73ff19ce="">{{file.name}}</i>\n <i v-if="!file.active &amp;&amp; !file.success &amp;&amp; file.error === \'\'" class="dashicons dashicons-yes icon has-text-grey-light" _v-73ff19ce=""></i>\n <i v-else-if="file.active" class="dashicons dashicons-marker icon spin has-text-warning" _v-73ff19ce=""></i>\n <i v-else-if="!file.active &amp;&amp; file.success" class="dashicons dashicons-yes icon has-text-success" _v-73ff19ce=""></i>\n <i v-else="" class="dashicons dashicons-no-alt icon has-text-danger" _v-73ff19ce=""></i>\n </span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="column " _v-73ff19ce="">\n\t\t\t<file-upload class="button is-secondary is-rounded" :post-action=" global.root + \'/add_watermark\'" :headers="{\'X-WP-Nonce\': global.nonce}" extensions="gif,jpg,jpeg,png,webp" accept="image/png,image/gif,image/jpeg,image/webp" :size="1024 * 1024 * 10" v-model="files" @input-filter="inputFilter" @input-file="inputFile" :disabled="loading" ref="upload" _v-73ff19ce="">\n\t\t\t\t<i class="dashicons dashicons-plus icon" _v-73ff19ce=""></i>\n\t\t\t\t{{strings.upload}}\n\t\t\t</file-upload>\n\t\t\t<br _v-73ff19ce=""><br _v-73ff19ce=""><span class="tag is-danger" v-if="is_error" _v-73ff19ce="">{{error_message}}</span>\n\t\t</div>\n\t\t<hr _v-73ff19ce="">\n\t\t<div class="box" _v-73ff19ce="">\n\t\t\t<h3 _v-73ff19ce=""><span class="dashicons dashicons-menu" _v-73ff19ce=""></span> {{strings.list_header}} </h3>\n\t\t\t<small _v-73ff19ce=""><i _v-73ff19ce="">{{strings.max_allowed}}</i></small>\n\t\t\t\n\t\t\t<div class="optimized-images" _v-73ff19ce="">\n\t\t\t\t<div v-if="!noImages" _v-73ff19ce="">\n\t\t\t\t\t<h3 class="has-text-centered" _v-73ff19ce="">{{strings.last}} {{strings.optimized_images}}</h3>\n\t\t\t\t\t<table class="table is-striped is-hoverable is-fullwidth" _v-73ff19ce="">\n\t\t\t\t\t\t<thead _v-73ff19ce="">\n\t\t\t\t\t\t<tr _v-73ff19ce="">\n\t\t\t\t\t\t\t<th class="optml-image-heading" _v-73ff19ce="">{{strings.id}}</th>\n\t\t\t\t\t\t\t<th class="optml-image-heading" _v-73ff19ce="">{{strings.image}}</th>\n\t\t\t\t\t\t\t<th class="optml-image-heading" _v-73ff19ce="">{{strings.action}}</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t<tbody _v-73ff19ce="">\n\t\t\t\t\t\t<tr v-for="(item, index) in watermarkData" _v-73ff19ce="">\n\t\t\t\t\t\t\t<td _v-73ff19ce=""><code _v-73ff19ce="">#{{item.ID}}</code></td>\n\t\t\t\t\t\t\t<td _v-73ff19ce=""><img :src="item.guid" class="optml-image-watermark" width="50" _v-73ff19ce=""></td>\n\t\t\t\t\t\t\t<td width="50" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a @click="removeWatermark(item.ID)" class="button is-small is-danger is-rounded" :class="{\'is-loading\':loading}" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t<span class="dashicons dashicons-no-alt icon" _v-73ff19ce=""></span>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t\t\n\t\t\t\t\t<span class="tag is-success" v-if="loading" _v-73ff19ce="">\n\t\t\t\t\t{{strings.loading_remove_watermark}}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<table class="table is-striped is-hoverable is-fullwidth" v-if="noImages" _v-73ff19ce="">\n\t\t\t\t<thead _v-73ff19ce="">\n\t\t\t\t<tr _v-73ff19ce="">\n\t\t\t\t\t<th class="optml-image-heading has-text-centered" v-html="strings.no_images_found" _v-73ff19ce=""></th>\n\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t</table>\n\t\t\t<hr _v-73ff19ce="">\n\t\t\t<h3 _v-73ff19ce=""><span class="dashicons dashicons-grid-view" _v-73ff19ce=""></span> {{strings.settings_header}} </h3>\n\t\t\t<br _v-73ff19ce="">\n\t\t\t<div class="field is-fullwidth columns" _v-73ff19ce="">\n\t\t\t\t<label class="label is-half column has-text-grey-dark no-padding-right " _v-73ff19ce="">\n\t\t\t\t\t{{strings.wm_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.wm_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<div class="column is-paddingless" _v-73ff19ce="">\n\t\t\t\t\t<div class="columns" _v-73ff19ce="">\n\t\t\t\t\t\t<div class="field column is-narrow" _v-73ff19ce="">\n\t\t\t\t\t\t\t<div class="select" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<select title="Watermark Selection" v-model="selectedWatermark" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t<option value="-1" _v-73ff19ce="">No watermark</option>\n\t\t\t\t\t\t\t\t\t<option v-for="(item, index) in watermarkData" :value="item.ID" _v-73ff19ce="">#({{item.ID}})\n\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="field is-fullwidth columns" _v-73ff19ce="">\n\t\t\t\t<label class="label is-half column has-text-grey-dark no-padding-right " _v-73ff19ce="">\n\t\t\t\t\t{{strings.opacity_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.opacity_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<div class="column is-paddingless" _v-73ff19ce="">\n\t\t\t\t\t<div class="columns" _v-73ff19ce="">\n\t\t\t\t\t\t<div class="field column is-narrow has-addons" _v-73ff19ce="">\n\t\t\t\t\t\t\t<p class="control" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a class="button is-small is-static" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t{{strings.opacity_field}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class="control " _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<input v-model="watermarkOpacity" class="input is-small" type="number" min="0" max="100" _v-73ff19ce="">\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="field columns" _v-73ff19ce="">\n\t\t\t\t<label class="label column has-text-grey-dark" _v-73ff19ce="">\n\t\t\t\t\t{{strings.position_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.position_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t<div class="column buttons " _v-73ff19ce="">\n\t\t\t\t\t<div class="field columns is-gapless is-marginless " _v-73ff19ce="">\n\t\t\t\t\t\t<div class="is-fullwidth optml-layout-grid" _v-73ff19ce="">\n\t\t\t\t\t\t\t<a @click="changePosition(\'nowe\')" :class="{ \'is-info\':isActivePosition (\'nowe\'), \' is-selected\':watermarkSettings.position === \'nowe\' }" class="grid-button " :title="strings.pos_nowe_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'no\')" :class="{ \'is-info\':isActivePosition (\'no\'), \' is-selected\':watermarkSettings.position === \'no\' }" class="grid-button " :title="strings.pos_no_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'noea\')" :class="{ \'is-info\':isActivePosition (\'noea\'), \' is-selected\':watermarkSettings.position === \'noea\' }" class="grid-button" :title="strings.pos_noea_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'we\')" :class="{ \'is-info\':isActivePosition (\'we\'), \' is-selected\':watermarkSettings.position === \'we\' }" class="grid-button" :title="strings.pos_we_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'ce\')" :class="{ \'is-info\':isActivePosition (\'ce\'), \' is-selected\':watermarkSettings.position === \'ce\' }" class="grid-button" :title="strings.pos_ce_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'ea\')" :class="{ \'is-info\':isActivePosition (\'ea\'), \' is-selected\':watermarkSettings.position === \'ea\' }" class="grid-button" :title="strings.pos_ea_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'sowe\')" :class="{ \'is-info\':isActivePosition (\'sowe\'), \' is-selected\':watermarkSettings.position === \'sowe\' }" class="grid-button" :title="strings.pos_sowe_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'so\')" :class="{ \'is-info\':isActivePosition (\'so\'), \' is-selected\':watermarkSettings.position === \'so\' }" class="grid-button" :title="strings.pos_so_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'soea\')" :class="{ \'is-info\':isActivePosition (\'soea\'), \' is-selected\':watermarkSettings.position === \'soea\' }" class="grid-button" :title="strings.pos_soea_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<br _v-73ff19ce="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="field is-fullwidth columns " _v-73ff19ce="">\n\t\t\t\t<label class="label is-half column has-text-grey-dark no-padding-right " _v-73ff19ce="">\n\t\t\t\t\t{{strings.offset_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.offset_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<div class="column is-paddingless" _v-73ff19ce="">\n\t\t\t\t\t<div class="columns" _v-73ff19ce="">\n\t\t\t\t\t\t<div class="field column is-narrow has-addons" _v-73ff19ce="">\n\t\t\t\t\t\t\t<p class="control" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a class="button is-small is-static" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t{{strings.offset_x_field}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class="control " _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<input v-model="watermarkX" class="input is-tiny is-small" type="number" _v-73ff19ce="">\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="field column is-narrow has-addons" _v-73ff19ce="">\n\t\t\t\t\t\t\t<p class="control" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a class="button is-small is-static" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t{{strings.offset_y_field}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class="control " _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<input v-model="watermarkY" class="input is-small is-tiny" type="number" _v-73ff19ce="">\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="field is-fullwidth columns" _v-73ff19ce="">\n\t\t\t\t<label class="label is-half column has-text-grey-dark no-padding-right " _v-73ff19ce="">\n\t\t\t\t\t{{strings.scale_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.scale_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<div class="column is-paddingless" _v-73ff19ce="">\n\t\t\t\t\t<div class="columns" _v-73ff19ce="">\n\t\t\t\t\t\t<div class="field column is-narrow has-addons" _v-73ff19ce="">\n\t\t\t\t\t\t\t<p class="control" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a class="button is-small is-static" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t{{strings.scale_field}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class="control " _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<input v-model="watermarkScale" class="input is-small" type="number" min="0" max="100" _v-73ff19ce="">\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<p class="control column has-text-centered-desktop has-text-left-touch " _v-73ff19ce="">\n\t\t\t\t<a @click="saveChanges()" class="button is-small is-success " :class="{\'is-loading\':loading}" _v-73ff19ce="">\n\t\t\t\t\t<span class="dashicons dashicons-yes icon" _v-73ff19ce=""></span>\n\t\t\t\t\t<span _v-73ff19ce="">\t{{strings.save_changes}}</span>\n\t\t\t\t</a>\n\t\t\t</p>\n\t\t</div>\n\t</div>\n'},function(t,e,o){var i,n;o(108),i=o(110),n=o(127),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(109);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(13),a=i(n),r=o(123),s=i(r);e.default={name:"resize",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,size_width:"",size_height:"",crop:!1,showSave:!1,new_data:{}}},mounted:function(){},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})},addImageSize:function(){if(""!==this.size_height&&""!==this.size_width){var t="optimole_"+this.size_width+"_"+this.size_height+"_crop",e=(0,s.default)({},t,{width:this.size_width,height:this.size_height});this.$store.dispatch("saveSettings",{settings:{defined_image_sizes:e}})}},removeSize:function(t){var e=(0,s.default)({},t,"remove");this.$store.dispatch("saveSettings",{settings:{defined_image_sizes:e}})}},computed:{site_settings:function(){return this.$store.state.site_settings},sizes:function(){return this.$store.state.site_settings.defined_image_sizes},anySize:function(){return(0,a.default)(this.$store.state.site_settings.defined_image_sizes).length>0},widthStatus:{set:function(t){this.showSave=!0,this.new_data.max_width=t},get:function(){return this.site_settings.max_width}},heightStatus:{set:function(t){this.showSave=!0,this.new_data.max_height=t},get:function(){return this.site_settings.max_height}},resizeSmart:{set:function(t){this.showSave=!0,this.new_data.resize_smart=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.resize_smart)}},retinaReady:{set:function(t){this.showSave=!0,this.new_data.retina_images=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.retina_images)}}}}},function(t,e,o){o(112),t.exports=o(2).Object.keys},function(t,e,o){var i=o(23),n=o(24);o(118)("keys",function(){return function(t){return n(i(t))}})},function(t,e,o){var i=o(9),n=o(15),a=o(115)(!1),r=o(17)("IE_PROTO");t.exports=function(t,e){var o,s=n(t),l=0,p=[];for(o in s)o!=r&&i(s,o)&&p.push(o);for(;e.length>l;)i(s,o=e[l++])&&(~a(p,o)||p.push(o));return p}},function(t,e,o){var i=o(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,o){var i=o(15),n=o(116),a=o(117);t.exports=function(t){return function(e,o,r){var s,l=i(e),p=n(l.length),d=a(r,p);if(t&&o!=o){for(;p>d;)if((s=l[d++])!=s)return!0}else for(;p>d;d++)if((t||d in l)&&l[d]===o)return t||d||0;return!t&&-1}}},function(t,e,o){var i=o(16),n=Math.min;t.exports=function(t){return t>0?n(i(t),9007199254740991):0}},function(t,e,o){var i=o(16),n=Math.max,a=Math.min;t.exports=function(t,e){return t=i(t),t<0?n(t+e,0):a(t,e)}},function(t,e,o){var i=o(18),n=o(2),a=o(20);t.exports=function(t,e){var o=(n.Object||{})[t]||Object[t],r={};r[t]=e(o),i(i.S+i.F*a(function(){o(1)}),"Object",r)}},function(t,e,o){var i=o(120);t.exports=function(t,e,o){if(i(t),void 0===e)return t;switch(o){case 1:return function(o){return t.call(e,o)};case 2:return function(o,i){return t.call(e,o,i)};case 3:return function(o,i,n){return t.call(e,o,i,n)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,o){t.exports=!o(7)&&!o(20)(function(){return 7!=Object.defineProperty(o(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,o){var i=o(19);t.exports=function(t,e){if(!i(t))return t;var o,n;if(e&&"function"==typeof(o=t.toString)&&!i(n=o.call(t)))return n;if("function"==typeof(o=t.valueOf)&&!i(n=o.call(t)))return n;if(!e&&"function"==typeof(o=t.toString)&&!i(n=o.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},function(t,e,o){"use strict";e.__esModule=!0;var i=o(124),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,o){return e in t?(0,n.default)(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}},function(t,e,o){t.exports={default:o(125),__esModule:!0}},function(t,e,o){o(126);var i=o(2).Object;t.exports=function(t,e,o){return i.defineProperty(t,e,o)}},function(t,e,o){var i=o(18);i(i.S+i.F*!o(7),"Object",{defineProperty:o(10).f})},function(t,e){t.exports='\n <div :class="{ \'saving--option\' : this.$store.state.loading }" _v-549159be="">\n <div class="field columns" _v-549159be="">\n <label class="label column has-text-grey-dark optml-custom-label-margin" _v-549159be="">\n {{strings.enable_resize_smart_title}}\n <p class="optml-settings-desc-margin has-text-weight-normal" _v-549159be="">\n {{strings.enable_resize_smart_desc}}\n </p>\n </label>\n <div class="column is-1" _v-549159be="">\n <toggle-button :class="\'has-text-dark\'" v-model="resizeSmart" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-549159be=""></toggle-button>\n </div>\n\n </div>\n <hr _v-549159be="">\n <div class="field columns" _v-549159be="">\n <label class="label column has-text-grey-dark optml-custom-label-margin" _v-549159be="">\n {{strings.enable_retina_title}}\n <p class="optml-settings-desc-margin has-text-weight-normal" _v-549159be="">\n {{strings.enable_retina_desc}}\n </p>\n </label>\n <div class="column is-1" _v-549159be="">\n <toggle-button :class="\'has-text-dark\'" v-model="retinaReady" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-549159be=""></toggle-button>\n </div>\n\n </div>\n <hr _v-549159be="">\n <div class="field columns" _v-549159be="">\n\n <div class="columns" style="width: 100%;margin-left: 3px;" _v-549159be="">\n <div class="optml-fill-container" _v-549159be="">\n <div class="field " _v-549159be="">\n <label class="label column has-text-grey-dark" style="margin:2% 0;" _v-549159be="">\n <span _v-549159be=""> {{this.strings.add_image_size_desc}} </span>\n </label>\n <label class="label column " _v-549159be="">\n <p class="has-text-weight-normal optml-restore-notice-background" style="padding: 2%;" _v-549159be="">{{strings.image_size_notice}}</p>\n </label>\n <div class="fields column optml-light-background" style="padding: 1% 5%; margin: 0 1%;" _v-549159be="">\n <div class="field has-addons column has-addons-centered optml-filters-content" _v-549159be="">\n <p class="optml-fill-container has-text-centered" _v-549159be="">\n\n <input v-model="size_width" class="optml-textarea optml-text-input-border optml-fill-container has-text-left" type="number" min="1" :placeholder="this.strings.width_field" _v-549159be="">\n </p>\n\n <p class="optml-fill-container has-text-centered" style="margin-left: 5%;" _v-549159be="">\n\n <input v-model="size_height" class="optml-textarea optml-text-input-border optml-fill-container has-text-left" type="number" min="1" :placeholder="this.strings.height_field" _v-549159be="">\n </p>\n\n\n <div class="button optml-button-style-1 optml-fit-content" style="margin: 0 0 0 4%;" :class="this.$store.state.loading ? \'is-loading\' : \'\' " @click="addImageSize" _v-549159be="">\n {{this.strings.add_image_size_button}}\n </div>\n\n </div>\n </div>\n </div>\n\n <div v-if="anySize" class="label column has-text-grey-dark" style="white-space: nowrap;" _v-549159be=""> {{strings.image_sizes_title}}: </div>\n <div class="column is-full optml-fill-container" _v-549159be="">\n <div class=" exclusion-filter" v-for="(item, index) in sizes" style="margin-bottom: 2%;" _v-549159be="">\n <div _v-549159be="">\n <div class="tags has-addons" _v-549159be="">\n <div class="tag optml-light-background is-marginless is-link has-text-left" style="width: 97.8%;" _v-549159be=""><p v-html="strings.name" _v-549159be=""></p>\n &nbsp;{{index}} &nbsp;&nbsp;&nbsp;&nbsp; <strong _v-549159be="">{{strings.width_field}}</strong> : {{sizes[index].width}} &nbsp;&nbsp;&nbsp;&nbsp; <strong _v-549159be="">{{strings.height_field}}</strong> : {{sizes[index].height}}\n <a @click="removeSize(index)" _v-549159be="">\n <svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-549159be="">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-549159be=""></path>\n </svg>\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n\n <hr _v-549159be="">\n <div class="field columns optml-flex-column" style="align-content: center;justify-content: center;" _v-549159be="">\n <label class="label column has-text-grey-dark no-padding-right optml-custom-label-margin" _v-549159be="">\n {{strings.size_title}}\n <p class="optml-settings-desc-margin has-text-weight-normal" _v-549159be="">\n {{strings.size_desc}}\n </p>\n </label>\n\n <div class="column is-6 " _v-549159be="">\n <div class="columns" _v-549159be="">\n <div class="field column is-narrow has-addons" style="align-items: center;" _v-549159be="">\n\n <p class="optml-custom-label-margin" _v-549159be="">\n {{strings.width_field}}\n </p>\n\n <input v-model="widthStatus" class="optml-textarea" type="number" min="100" max="10000" _v-549159be="">\n\n </div>\n <div class="field column is-narrow has-addons" style="align-items: center; margin-bottom: 0.75rem;" _v-549159be="">\n <p class="optml-custom-label-margin" _v-549159be="">\n {{strings.height_field}}\n </p>\n\n <input class="optml-textarea" v-model="heightStatus" type="number" min="100" max="10000" _v-549159be="">\n </div>\n </div>\n </div>\n </div>\n\n <div class="field is-fullwidth columns " _v-549159be="">\n <div class="column is-left" _v-549159be="">\n <button @click="saveChanges()" class="button optml-button-style-1 " :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-549159be="">\n {{strings.save_changes}}\n </button>\n </div>\n </div>\n\n </div>\n'},function(t,e,o){var i,n;o(129),i=o(131),n=o(137),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(130);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(132),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"exclusions",components:{FilterControl:n.default},data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,new_data:{}}},mounted:function(){},methods:{},computed:{site_settings:function(){return this.$store.state.site_settings}}}},function(t,e,o){var i,n;o(133),i=o(135),n=o(136),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(134);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(13),a=i(n),r=o(5);i(r);e.default={name:"filter-control",props:["type"],data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,selected_filter:"filename",selected_value:"",selected_url_match_type:"contains",filter_operator:optimoleDashboardApp.strings.options_strings.filter_operator_contains,FILTER_TYPES:{EXT:"extension",URL:"page_url",URL_MATCH:"page_url_match",FILENAME:"filename",CLASS:"class"}}},mounted:function(){},methods:{saveRule:function(){var t={};this.selected_filter===this.FILTER_TYPES.URL&&"matches"===this.selected_url_match_type&&(this.selected_filter=this.FILTER_TYPES.URL_MATCH),t[this.type]={},t[this.type][this.selected_filter]={},t[this.type][this.selected_filter][this.selected_value]=!0,this.selected_value.length<3||this.$store.dispatch("saveSettings",{settings:{filters:t}})},removeRule:function(t,e){var o={};o[this.type]={},o[this.type][t]={},o[this.type][t][e]="false",this.$store.dispatch("saveSettings",{settings:{filters:o}})},changeFilterType:function(t){this.selected_value="",t.target.value===this.FILTER_TYPES.EXT&&(this.selected_value="svg",this.filter_operator=this.strings.filter_operator_is),t.target.value===this.FILTER_TYPES.FILENAME&&(this.filter_operator=this.strings.filter_operator_contains),t.target.value===this.FILTER_TYPES.CLASS&&(this.filter_operator=this.strings.filter_operator_contains),this.selected_filter=t.target.value},getFilterOperator:function(){return this.filter_operator}},computed:{filters:function(){return this.$store.state.site_settings.filters[this.type]},anyFilter:function(){return(0,a.default)(this.filters[this.FILTER_TYPES.EXT]).length>0||(0,a.default)(this.filters[this.FILTER_TYPES.CLASS]).length>0||(0,a.default)(this.filters[this.FILTER_TYPES.URL]).length>0||(0,a.default)(this.filters[this.FILTER_TYPES.FILENAME]).length>0}}}},function(t,e){t.exports='\n\t\t<div :id="\'filter-type-\'+type" class="optml-fill-container" _v-27af7d12="">\n\t\t\t\t<div class="field " _v-27af7d12="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark" _v-27af7d12="">\n\t\t\t\t\t\t\t\t<span v-if="type===\'lazyload\'" _v-27af7d12="">{{strings.exclude_title_lazyload}}</span>\n\t\t\t\t\t\t\t\t<span v-if="type===\'optimize\'" _v-27af7d12="">{{strings.exclude_title_optimize}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t\t<div class="field columns optml-light-background" style="padding: 1% 5%;" _v-27af7d12="">\n\t\t\t\t\t\t<div class="field has-addons column has-addons-centered optml-filters-content" _v-27af7d12="">\n\t\t\t\t\t\t\t\t<p _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select @change="changeFilterType($event)" class="optml-text-input-border" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option :value="FILTER_TYPES.FILENAME" _v-27af7d12="">{{strings.filter_filename}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option :value="FILTER_TYPES.EXT" _v-27af7d12="">{{strings.filter_ext}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option :value="FILTER_TYPES.URL" _v-27af7d12="">{{strings.filter_url}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option :value="FILTER_TYPES.CLASS" _v-27af7d12="">{{strings.filter_class}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<p style="margin-left: 2.5%;" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if="this.selected_filter===this.FILTER_TYPES.URL" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select v-model="selected_url_match_type" class="optml-text-input-border" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="contains" _v-27af7d12="">{{this.strings.filter_operator_contains}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="matches" _v-27af7d12="">{{this.strings.filter_operator_matches}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-else="" _v-27af7d12="">{{getFilterOperator()}}</span>\n\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<p class="optml-fill-container has-text-centered" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if="this.selected_filter===this.FILTER_TYPES.EXT" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select v-model="selected_value" class="optml-text-input-border" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="svg" _v-27af7d12="">.SVG</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="jpg" _v-27af7d12="">.JPG</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="png" _v-27af7d12="">.PNG</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="gif" _v-27af7d12="">.GIF</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<input v-else="" v-model="selected_value" class="optml-textarea optml-text-input-border optml-fill-container has-text-left" type="text" :placeholder="this.selected_url_match_type === \'matches\' ? \'path\' : \'word\'" _v-27af7d12="">\n\t\t\t\t\t\t\t\t</p>\n\n\t\t\t\t\t\t\t\t\t\t<div class="button optml-button-style-1 optml-fit-content" style="margin: 0 0 0 4%;" :class="this.$store.state.loading ? \'is-loading\' : \'\' " @click="saveRule()" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t{{strings.add_filter}}\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<p class="has-text-centered " v-if="this.selected_filter === FILTER_TYPES.URL" _v-27af7d12="">\n\t\t\t\t\t\t<i _v-27af7d12="">For homepage use <strong _v-27af7d12="">home</strong> keyword.</i>\n\t\t\t\t</p>\n\t\t\t<div class="field columns optml-flex-column" style="margin-top: 4%;" _v-27af7d12="">\n\t\t\t\t<div v-if="anyFilter" class="optml-gray has-text-weight-bold" style="white-space: nowrap;" _v-27af7d12=""> {{strings.active_exclusions}}: </div>\n\t\t\t\t<div class="column is-paddingless is-full optml-fill-container" _v-27af7d12="">\n\t\t\t\t\t<div class="list" style="margin-top: 4%;" _v-27af7d12="">\n\t\t\t\t\t\t<div class=" exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.EXT]" _v-27af7d12="">\n\t\t\t\t\t\t\t<div _v-27af7d12="">\n\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_ext_desc" _v-27af7d12=""></p>\n\t\t\t\t\t\t\t\t\t\t&nbsp;<strong _v-27af7d12="">{{index}}</strong>\n\t\t\t\t\t\t\t\t\t\t<a @click="removeRule(FILTER_TYPES.EXT,index)" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=" exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.URL]" _v-27af7d12="">\n\t\t\t\t\t\t\t<div _v-27af7d12="">\n\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_url_desc" _v-27af7d12=""></p>\n\t\t\t\t\t\t\t\t\t\t&nbsp;<strong _v-27af7d12="">{{index}}</strong>\n\t\t\t\t\t\t\t\t\t\t<a @click="removeRule(FILTER_TYPES.URL,index)" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n <div class=" exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.URL_MATCH]" _v-27af7d12="">\n <div _v-27af7d12="">\n <div class="tags has-addons" _v-27af7d12="">\n <div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_url_match_desc" _v-27af7d12=""></p>\n &nbsp;<strong _v-27af7d12="">{{index}}</strong>\n <a @click="removeRule(FILTER_TYPES.URL_MATCH,index)" _v-27af7d12="">\n <svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n </svg>\n </a>\n </div>\n\n </div>\n </div>\n </div>\n\t\t\t\t\t\t<div class="exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.FILENAME]" _v-27af7d12="">\n\t\t\t\t\t\t\t<div _v-27af7d12="">\n\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_filename_desc" _v-27af7d12=""></p>\n\t\t\t\t\t\t\t\t\t\t&nbsp;<strong _v-27af7d12="">{{index}}</strong>\n\t\t\t\t\t\t\t\t\t\t<a @click="removeRule(FILTER_TYPES.FILENAME,index)" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t</a>\n\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.CLASS]" _v-27af7d12="">\n\t\t\t\t\t\t\t<div _v-27af7d12="">\n\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_class_desc" _v-27af7d12=""></p>\n\t\t\t\t\t\t\t\t\t\t&nbsp;<strong _v-27af7d12="">{{index}}</strong>\n\t\t\t\t\t\t\t\t\t\t<a @click="removeRule(FILTER_TYPES.CLASS,index)" _v-27af7d12=""><svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n\t\t\t\t\t\t\t\t\t\t</svg>\n\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t</div>\n\t\t</div>\n'},function(t,e){t.exports='\n <div :class="{ \'saving--option\' : this.$store.state.loading }" _v-44e22022="">\n <div id="filters-list" _v-44e22022="">\n <div class="columns " _v-44e22022="">\n <filter-control :type="\'optimize\'" _v-44e22022=""></filter-control>\n </div>\n\t <hr _v-44e22022="">\n <div class="columns " v-if="this.$store.state.site_settings.lazyload === \'enabled\'" _v-44e22022="">\n <filter-control :type="\'lazyload\'" _v-44e22022=""></filter-control>\n </div>\n </div>\n\n </div>\n'},function(t,e,o){var i,n;o(139),i=o(141),n=o(142),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(140);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"lazyload",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,showBgSelectors:"enabled"===this.$store.state.site_settings.bg_replacer,new_data:{},selectedValue:this.$store.state.site_settings.skip_lazyload_images}},mounted:function(){},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})},changedValue:function(){this.new_data.skip_lazyload_images=this.selectedValue,this.showSave=!0}},computed:{site_settings:function(){return this.$store.state.site_settings},lazyloadPlaceholder:{set:function(t){this.showSave=!0,this.new_data.lazyload_placeholder=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.lazyload_placeholder)}},lazyloadBgImages:{set:function(t){this.showSave=!0,this.new_data.bg_replacer=t?"enabled":"disabled",this.showBgSelectors=t},get:function(){return!("disabled"===this.site_settings.bg_replacer)}},lazyloadVideo:{set:function(t){this.showSave=!0,this.new_data.video_lazyload=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.video_lazyload)}},lazyloadSelectors:{set:function(t){this.showSave=!0,this.new_data.watchers=t},get:function(){return this.site_settings.watchers}},scaleStatus:{set:function(t){this.showSave=!0,this.new_data.scale=t?"disabled":"enabled"},get:function(){return"disabled"===this.site_settings.scale}},nativeLazyStatus:{set:function(t){this.showSave=!0,this.new_data.native_lazyload=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.native_lazyload)}}}}},function(t,e){t.exports='\n\t\t<div :class="{ \'saving--option\' : this.$store.state.loading }" _v-c274b838="">\n\t\t\t\t<div class="field columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.enable_lazyload_placeholder_title}}\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.enable_lazyload_placeholder_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class="column is-1" _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="lazyloadPlaceholder" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\n\t\t\t\t<div class="field columns optml-flex-column" _v-c274b838="">\n\t\t\t\t\t<label class="label column optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t{{strings.exclude_first_images_title}}\n\n\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t{{strings.exclude_first_images_desc}}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</label>\n\n\t\t\t\t\t<div class="column optml-custom-label-margin" _v-c274b838="">\n\n\t\t\t\t\t\t\t{{strings.exclude_first}} <div style="display: inline-block; margin: 0 0.7%;" _v-c274b838=""><input v-model="selectedValue" style="width: 6ch; " class="optml-textarea" type="number" min="0" @change="changedValue" _v-c274b838=""></div> {{strings.images}}\n\n\n\t\t\t\t\t</div>\n\n\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t\x3c!--Native lazy toggle--\x3e\n\t\t\t\t<div class="field is-fullwidth columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.toggle_native}}\n\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.native_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\n\t\t\t\t\t\t<div class="column is-1 " _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="nativeLazyStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t<div class="field is-fullwidth columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.toggle_scale}}\n\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.scale_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\n\t\t\t\t\t\t<div class="column is-1 " _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="scaleStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t<div class="field columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.enable_bg_lazyload_title}}\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.enable_bg_lazyload_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class="column is-1" _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="lazyloadBgImages" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t\x3c!--Video lazyload toggle--\x3e\n\t\t\t\t<div class="field columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.enable_video_lazyload_title}}\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.enable_video_lazyload_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class="column is-1" _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="lazyloadVideo" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t<div class="field columns" v-if="showBgSelectors" _v-c274b838="">\n\t\t\t\t\t\t<div class="column" _v-c274b838="">\n\t\t\t\t\t\t\t\t<label class="label has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t<span _v-c274b838="">{{strings.watch_title_lazyload}}</span>\n\t\t\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t\t\t{{strings.watch_desc_lazyload}}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t<div _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t<textarea-autosize class="textarea is-secondary is-small" placeholder="e.g: .image, #item-id, div.with-background-image" v-model="lazyloadSelectors" :min-height="3" :max-height="350" _v-c274b838=""></textarea-autosize>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div class="field is-fullwidth columns " _v-c274b838="">\n\t\t\t\t\t\t<div class="column is-left" _v-c274b838="">\n\t\t\t\t\t\t\t\t<button @click="saveChanges()" class="button optml-button-style-1" :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.save_changes}}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t</div>\n'},function(t,e,o){var i,n;o(144),i=o(146),n=o(164),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(145);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(13),a=i(n),r=o(147),s=i(r);e.default={name:"media",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,maxTime:100,showSave:!1,showOffloadDisabled:!1,showOffloadEnabled:!1,offloadDisableOptions:[],select_rollback:"yes_rollback",new_data:{}}},mounted:function(){Object.prototype.hasOwnProperty.call(this.$store.state.queryArgs,"optimole_action")&&this.callSync(this.$store.state.queryArgs.optimole_action,this.$store.state.queryArgs.images)},methods:{selectValue:function(t){this.showSave=!0,this.select_rollback=t.target.value},changeSite:function(t){this.selected_site=t.target.value},saveSite:function(){var t={all:!0};void 0!==this.selected_site&&(t.all=!1,t[this.selected_site]=!0),this.$store.dispatch("saveSettings",{settings:{cloud_sites:t}})},callSync:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";this.$store.state.errorMedia=!1,this.$store.dispatch("callSync",{action:t,images:e})},saveChanges:function(){this.showOffloadEnabled=!1,this.showOffloadDisabled&&"yes_rollback"===this.select_rollback&&(this.callSync("rollback_images"),this.select_rollback="no_rollback"),this.showOffloadDisabled=!1,this.$store.dispatch("saveSettings",{settings:this.new_data})},removeSite:function(t){var e={};e[t]=!1,1===this.cloud_sites.length&&(e.all=!0),this.$store.dispatch("saveSettings",{settings:{cloud_sites:e}})}},computed:{site_settings:function(){return this.$store.state.site_settings},sites:function(){return this.$store.state.site_settings.whitelist_domains},cloud_sites:function(){var t=[],e=this.$store.state.site_settings.cloud_sites,o=!0,i=!1,n=void 0;try{for(var r,l=(0,s.default)((0,a.default)(e));!(o=(r=l.next()).done);o=!0){var p=r.value;if("true"===e[p]&&(t.push(p),"all"===p))return t}}catch(t){i=!0,n=t}finally{try{!o&&l.return&&l.return()}finally{if(i)throw n}}return t},offloadMediaStatus:{set:function(t){this.showSave=!0,this.new_data.offload_media=t?"enabled":"disabled",this.showOffloadDisabled="enabled"===this.site_settings.offload_media&&!t,this.showOffloadEnabled="disabled"===this.site_settings.offload_media&&!!t},get:function(){return!("disabled"===this.site_settings.offload_media)}},cloudImagesStatus:{set:function(t){this.showSave=!0,this.new_data.cloud_images=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.cloud_images)}}}}},function(t,e,o){t.exports={default:o(148),__esModule:!0}},function(t,e,o){o(149),o(159),t.exports=o(161)},function(t,e,o){o(150);for(var i=o(3),n=o(6),a=o(12),r=o(4)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var p=s[l],d=i[p],c=d&&d.prototype;c&&!c[r]&&n(c,r,p),a[p]=a.Array}},function(t,e,o){"use strict";var i=o(151),n=o(152),a=o(12),r=o(15);t.exports=o(32)(Array,"Array",function(t,e){this._t=r(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,o=this._i++;return!t||o>=t.length?(this._t=void 0,n(1)):"keys"==e?n(0,o):"values"==e?n(0,t[o]):n(0,[o,t[o]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,o){t.exports=o(6)},function(t,e,o){"use strict";var i=o(155),n=o(31),a=o(33),r={};o(6)(r,o(4)("iterator"),function(){return this}),t.exports=function(t,e,o){t.prototype=i(r,{next:n(1,o)}),a(t,e+" Iterator")}},function(t,e,o){var i=o(11),n=o(156),a=o(29),r=o(17)("IE_PROTO"),s=function(){},l=function(){var t,e=o(30)("iframe"),i=a.length;for(e.style.display="none",o(157).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[a[i]];return l()};t.exports=Object.create||function(t,e){var o;return null!==t?(s.prototype=i(t),o=new s,s.prototype=null,o[r]=t):o=l(),void 0===e?o:n(o,e)}},function(t,e,o){var i=o(10),n=o(11),a=o(24);t.exports=o(7)?Object.defineProperties:function(t,e){n(t);for(var o,r=a(e),s=r.length,l=0;s>l;)i.f(t,o=r[l++],e[o]);return t}},function(t,e,o){var i=o(3).document;t.exports=i&&i.documentElement},function(t,e,o){var i=o(9),n=o(23),a=o(17)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=n(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,e,o){"use strict";var i=o(160)(!0);o(32)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,o=this._i;return o>=e.length?{value:void 0,done:!0}:(t=i(e,o),this._i+=t.length,{value:t,done:!1})})},function(t,e,o){var i=o(16),n=o(14);t.exports=function(t){return function(e,o){var a,r,s=String(n(e)),l=i(o),p=s.length;return l<0||l>=p?t?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===p||(r=s.charCodeAt(l+1))<56320||r>57343?t?s.charAt(l):a:t?s.slice(l,l+2):r-56320+(a-55296<<10)+65536)}}},function(t,e,o){var i=o(11),n=o(162);t.exports=o(2).getIterator=function(t){var e=n(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,o){var i=o(163),n=o(4)("iterator"),a=o(12);t.exports=o(2).getIteratorMethod=function(t){if(void 0!=t)return t[n]||t["@@iterator"]||a[i(t)]}},function(t,e,o){var i=o(25),n=o(4)("toStringTag"),a="Arguments"==i(function(){return arguments}()),r=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,o,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=r(e=Object(t),n))?o:a?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports='\n\t<div _v-56984240="">\n\t\t\x3c!-- Show media cloud toggle--\x3e\n\t\t<div class="field columns" _v-56984240="">\n\t\t\t<label class="label column has-text-grey-dark" _v-56984240="">\n\t\t\t\t{{strings.enable_cloud_images_title}}\n\n\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" v-html="strings.enable_cloud_images_desc" _v-56984240="">\n\t\t\t\t</p>\n\t\t\t</label>\n\n\t\t\t<div class="column is-1 " _v-56984240="">\n\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="cloudImagesStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-56984240=""></toggle-button>\n\t\t\t</div>\n\t\t</div>\n\t\t<hr _v-56984240="">\n\t\t\x3c!--Sites select--\x3e\n\t\t<div id="filters-list" v-if="this.site_settings.cloud_images === \'enabled\'" _v-56984240="">\n\t\t\t<div class="columns " _v-56984240="">\n\t\t\t\t<div _v-56984240="">\n\n\t\t\t\t\t<div class="field columns " _v-56984240="">\n\t\t\t\t\t\t<div class="field has-addons column has-addons-centered optml-fit-content optml-flex-column" _v-56984240="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark no-padding-right " _v-56984240="">\n\t\t\t\t\t\t\t{{strings.cloud_site_title}}\n\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t\t\t\t{{strings.cloud_site_desc}}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\n\t\t\t\t\t\t<div class="column is-6 optml-fit-content" style="margin-left: 2%;" _v-56984240="">\n\t\t\t\t\t\t\t<div class="field columns optml-light-background optml-fit-content" style="min-width: 450px; padding: 1% 2%;" _v-56984240="">\n\t\t\t\t\t\t\t\t<div class="field has-addons column has-addons-centered optml-filters-content" _v-56984240="">\n\t\t\t\t\t\t\t\t\t<p _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select @change="changeSite($event)" class="optml-text-input-border" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <option value="all" disabled="" selected="" _v-56984240="">{{strings.select_site}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <option v-for="site in sites" :value="site" _v-56984240="">{{site}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</p>\n\n\n\n\t\t\t\t\t\t\t\t\t<div class="optml-button optml-fit-content" style="background-color: #577BF9; position: relative; white-space: nowrap; height: fit-content; padding: 1.4%;color: white;margin: 0 0 0 4%;" :class="this.$store.state.loading ? \'is-loading\' : \'\' " @click="saveSite()" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t{{strings.add_site}}\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="field columns optml-flex-column" style="margin-top: 4%;" _v-56984240="">\n\t\t\t\t\t\t\t\t<div v-if="cloud_sites.length > 0" class="optml-gray has-text-weight-bold field" style="white-space: nowrap; margin-left: 2%; font-size: 0.75rem;" _v-56984240=""> {{strings.selected_sites_title}}: </div>\n\n\t\t\t\t\t\t\t\t<div class="column is-paddingless is-full" _v-56984240="">\n\t\t\t\t\t\t\t\t\t<div class="list" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t<div class="exclusion-filter" style="margin-bottom: 2% !important;" v-for="site in cloud_sites" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t<div _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-link has-text-left" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{site}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a @click="removeSite(site)" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-56984240=""></path>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t </div>\n\n\n\n\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t<hr _v-56984240="">\n\t\t</div>\n\n\n\t\t\x3c!-- Show offload media toggle--\x3e\n\t\t<div class="field columns" _v-56984240="">\n\t\t\t<label class="label column has-text-grey-dark" _v-56984240="">\n\t\t\t\t{{strings.enable_offload_media_title}}\n\n\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t{{strings.enable_offload_media_desc}}\n\t\t\t\t</p>\n\t\t\t</label>\n\n\t\t\t<div class="column is-1 " _v-56984240="">\n\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="offloadMediaStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-56984240=""></toggle-button>\n\t\t\t</div>\n\n\t\t</div>\n\n\n\n\t\t\x3c!--Rollback on disable notice--\x3e\n\t\t<div class="field columns optml-flex-column optml-restore-notice-background" v-if="this.showOffloadDisabled" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\t\t\t\t<div style="margin-bottom: 2%;" _v-56984240="">\n\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" _v-56984240="">\n\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C12.42 0 16 3.58 16 8C16 12.42 12.42 16 8 16C3.58 16 0 12.42 0 8C0 3.58 3.58 0 8 0ZM9.64527 9L10 3H7L7.35473 9H9.64527ZM10 11.5115C10 11.9809 9.86364 12.3473 9.61189 12.6107C9.34965 12.874 8.98252 13 8.51049 13C8.03846 13 7.67133 12.874 7.3986 12.6107C7.13636 12.3473 7 11.9809 7 11.5115C7 11.0305 7.12587 10.6641 7.38811 10.4008C7.65035 10.1374 8.01748 10 8.51049 10C9.0035 10 9.37063 10.1374 9.62238 10.4008C9.87413 10.6641 10 11.0305 10 11.5115Z" fill="#282828" _v-56984240=""></path>\n\t\t\t\t\t</svg>\n\t\t\t\t\t{{strings.offload_disable_warning_title}}\n\t\t\t\t</div>\n\n\n\t\t\t\t<p class="has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t{{strings.offload_disable_warning_desc}}\n\t\t\t\t</p>\n\t\t\t</label>\n\n\t\t\t<div class="column is-3 " style="padding-top:0; margin-top: -1%; " _v-56984240="">\n\t\t\t\t<p class="control " _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="select is-small" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select @change="selectValue($event)" class="optml-text-input-border" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option selected="" value="yes_rollback" _v-56984240="">{{strings.yes}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="no_rollback" _v-56984240="">{{strings.no}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t</p>\n\t\t\t</div>\n\n\t\t</div>\n\n\n\t\t\x3c!--Rollback on enable notice--\x3e\n\t\t<div class="field columns optml-flex-column optml-restore-notice-background" v-if="this.showOffloadEnabled" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\n\n\t\t\t\t<p class="has-text-weight-normal" v-html="strings.offload_enable_info_desc" _v-56984240="">\n\n\t\t\t\t</p>\n\t\t\t</label>\n\n\t\t</div>\n\t\t<hr _v-56984240="">\n\n\t\t\x3c!-- Sync Media button --\x3e\n\t\t<div :class="{ \'saving--option\' : this.$store.state.loading }" class="field is-fullwidth columns " v-if="this.site_settings.offload_media===\'enabled\'" _v-56984240="">\n\t\t\t<label class="label column has-text-grey-dark" _v-56984240="">\n\t\t\t\t{{strings.sync_title}}\n\n\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t{{strings.sync_desc}}\n\t\t\t\t</p>\n\t\t\t</label>\n\t\t\t<div class="column is-2 is-right" style="position: relative;" _v-56984240="">\n\t\t\t\t<button @click="callSync(\'offload_images\')" class="optml-button is-small optml-button-page-position " :class="this.$store.state.loadingSync ? \'is-loading\' : \'\' " :disabled="this.$store.state.loadingRollback || this.$store.state.loadingSync" _v-56984240="">\n\t\t\t\t\t{{strings.sync_media}}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="field columns optml-light-background" v-if="this.$store.state.loadingSync" _v-56984240="">\n\t\t\t<div class="column optml-media-progress-labels" _v-56984240="">\n\n\t\t\t\t<label class="label has-text-grey-dark" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.sync_media_progress}}</span>\n\t\t\t\t\t<div style="float: right;" _v-56984240=""><svg class="optml-spin" xmlns="http://www.w3.org/2000/svg" width="18" height="14" viewBox="0 0 18 14" fill="none" _v-56984240="">\n\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2.5C6.9 2.5 5.1 4 4.7 6H7L3.5 10L0 6H2.1C2.6 2.6 5.5 0 9 0C11.1 0 13 0.9 14.2 2.3L12.5 4.3C11.7 3.2 10.5 2.5 9 2.5ZM13.3 8H11L14.5 4L18 8H15.9C15.4 11.4 12.5 14 9 14C6.9 14 5 13.1 3.8 11.6L5.5 9.7C6.3 10.8 7.5 11.5 9 11.5C11.1 11.5 12.8 10 13.3 8Z" fill="#577BF9" _v-56984240=""></path>\n\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t</label>\n\t\t\t\t<div style="position:relative;" _v-56984240="">\n\t\t\t\t\t<progress class="progress is-info optml-progress" :value="this.$store.state.pushedImagesProgress" :max="maxTime" _v-56984240=""></progress>\n\t\t\t\t</div>\n\n\t\t\t\t<label v-if="this.$store.state.estimatedTime == 0" class="label has-text-grey-dark" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.calculating_estimated_time}}</span>\n\t\t\t\t</label>\n\n\n\t\t\t\t<label v-else="" class="label has-text-grey-dark has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.estimated_time}}: <strong _v-56984240="">{{this.$store.state.estimatedTime}} {{strings.minutes}}</strong></span>\n\t\t\t\t</label>\n\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="field columns" v-if="this.$store.state.offloadLibraryLink === true" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\t\t\t\t{{strings.sync_media_link}} <a :href="this.$store.state.queryArgs.url" _v-56984240="">{{strings.here}}</a>\n\t\t\t</label>\n\t\t</div>\n\t\t\x3c!--Sync error notice--\x3e\n\t\t<div class="notification optml-warning is-size-6 optml-side-by-side" v-if="this.$store.state.errorMedia === \'offload_images\'" _v-56984240="">\n\n\t\t\t\t<div _v-56984240="">\n\t\t\t\t\t<svg style="position: relative; top:10%;" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg" _v-56984240="">\n\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M8.9581 0C13.5192 0 17.2136 3.58 17.2136 8C17.2136 12.42 13.5192 16 8.9581 16C4.39696 16 0.702637 12.42 0.702637 8C0.702637 3.58 4.39696 0 8.9581 0ZM10.6558 9L11.0219 3H7.92606L8.29211 9H10.6558ZM11.0219 11.5115C11.0219 11.9809 10.8811 12.3473 10.6213 12.6107C10.3507 12.874 9.97188 13 9.48478 13C8.99768 13 8.61882 12.874 8.33739 12.6107C8.06677 12.3473 7.92606 11.9809 7.92606 11.5115C7.92606 11.0305 8.05595 10.6641 8.32656 10.4008C8.59717 10.1374 8.97603 10 9.48478 10C9.99353 10 10.3724 10.1374 10.6322 10.4008C10.892 10.6641 11.0219 11.0305 11.0219 11.5115Z" fill="#AF3535" _v-56984240=""></path>\n\t\t\t\t\t</svg>\n\t\t\t\t</div>\n\t\t\t<div style="margin-left:1%; " _v-56984240="">\n\t\t\t\t<div _v-56984240=""><strong _v-56984240="">{{strings.sync_media_error}} </strong></div>\n\t\t\t\t<div _v-56984240="">{{strings.sync_media_error_desc}}</div>\n\t\t\t\t</div>\n\t\t</div>\n\t\t<hr v-if="this.site_settings.offload_media===\'enabled\'" _v-56984240="">\n\t\t\x3c!-- Rollback Media button --\x3e\n\t\t<div class="field is-fullwidth columns " v-if="this.site_settings.offload_media===\'enabled\' || this.$store.state.loadingRollback" _v-56984240="">\n\t\t\t<label class="label column has-text-grey-dark" _v-56984240="">\n\t\t\t\t{{strings.rollback_title}}\n\n\t\t\t\t<p class="is-italic has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t{{strings.rollback_desc}}\n\t\t\t\t</p>\n\t\t\t</label>\n\t\t\t<div class="column is-2 is-right" style="position: relative;" _v-56984240="">\n\t\t\t\t<button @click="callSync(\'rollback_images\')" class="optml-button optml-button-page-position is-primary is-small " :class="this.$store.state.loadingRollback ? \'is-loading\' : \'\' " :disabled="this.$store.state.loadingSync || this.$store.state.loadingRollback" _v-56984240="">\n\t\t\t\t\t{{strings.rollback_media}}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\n\n\t\t<div class="field columns optml-light-background" v-if="this.$store.state.loadingRollback" _v-56984240="">\n\t\t\t<div class="column optml-media-progress-labels" _v-56984240="">\n\n\t\t\t\t<label class="label has-text-grey-dark" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.rollback_media_progress}}</span>\n\t\t\t\t\t<div style="float: right;" _v-56984240=""><svg class="optml-spin" xmlns="http://www.w3.org/2000/svg" width="18" height="14" viewBox="0 0 18 14" fill="none" _v-56984240="">\n\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2.5C6.9 2.5 5.1 4 4.7 6H7L3.5 10L0 6H2.1C2.6 2.6 5.5 0 9 0C11.1 0 13 0.9 14.2 2.3L12.5 4.3C11.7 3.2 10.5 2.5 9 2.5ZM13.3 8H11L14.5 4L18 8H15.9C15.4 11.4 12.5 14 9 14C6.9 14 5 13.1 3.8 11.6L5.5 9.7C6.3 10.8 7.5 11.5 9 11.5C11.1 11.5 12.8 10 13.3 8Z" fill="#577BF9" _v-56984240=""></path>\n\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t</label>\n\t\t\t\t<div style="position:relative;" _v-56984240="">\n\t\t\t\t\t<progress class="progress is-info optml-progress" :value="this.$store.state.pushedImagesProgress" :max="maxTime" _v-56984240=""></progress>\n\t\t\t\t</div>\n\n\t\t\t\t<label v-if="this.$store.state.estimatedTime == 0" class="label has-text-grey-dark" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.calculating_estimated_time}}</span>\n\t\t\t\t</label>\n\n\n\t\t\t\t<label v-else="" class="label has-text-grey-dark has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.estimated_time}}: <strong _v-56984240="">{{this.$store.state.estimatedTime}} {{strings.minutes}}</strong></span>\n\t\t\t\t</label>\n\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="field columns" v-if="this.$store.state.rollbackLibraryLink === true" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\t\t\t\t{{strings.rollback_media_link}} <a :href="this.$store.state.queryArgs.url" _v-56984240="">{{strings.here}}</a>\n\t\t\t</label>\n\t\t</div>\n\t\t\x3c!--Rollback error notice--\x3e\n\t\t<div class="notification optml-warning is-size-6 optml-side-by-side" v-if="this.$store.state.errorMedia === \'rollback_images\'" _v-56984240="">\n\n\t\t\t<div _v-56984240="">\n\t\t\t\t<svg style="position: relative; top:10%;" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg" _v-56984240="">\n\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M8.9581 0C13.5192 0 17.2136 3.58 17.2136 8C17.2136 12.42 13.5192 16 8.9581 16C4.39696 16 0.702637 12.42 0.702637 8C0.702637 3.58 4.39696 0 8.9581 0ZM10.6558 9L11.0219 3H7.92606L8.29211 9H10.6558ZM11.0219 11.5115C11.0219 11.9809 10.8811 12.3473 10.6213 12.6107C10.3507 12.874 9.97188 13 9.48478 13C8.99768 13 8.61882 12.874 8.33739 12.6107C8.06677 12.3473 7.92606 11.9809 7.92606 11.5115C7.92606 11.0305 8.05595 10.6641 8.32656 10.4008C8.59717 10.1374 8.97603 10 9.48478 10C9.99353 10 10.3724 10.1374 10.6322 10.4008C10.892 10.6641 11.0219 11.0305 11.0219 11.5115Z" fill="#AF3535" _v-56984240=""></path>\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t\t<div style="margin-left:1%; " _v-56984240="">\n\t\t\t\t<div _v-56984240=""><strong _v-56984240="">{{strings.rollback_media_error}} </strong></div>\n\t\t\t\t<div _v-56984240="">{{strings.rollback_media_error_desc}}</div>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="field is-fullwidth columns " _v-56984240="">\n\t\t\t<div class="column is-left" _v-56984240="">\n\t\t\t\t<button @click="saveChanges()" class="button optml-button-style-1" :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-56984240="">\n\t\t\t\t\t{{strings.save_changes}}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\n\t</div>\n\n\n'},function(t,e,o){var i,n;o(166),i=o(168),n=o(169),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(167);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n .is-field-disabled[_v-c1ac671c] {\n opacity: 0.5;\n }\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"cssjs",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,showSample:!1,isReplacerOff:!1,loading_images:!1,showComparison:!1,new_data:{}}},mounted:function(){this.isReplacerOff="disabled"===this.site_settings.cdn},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})}},computed:{site_settings:function(){return this.$store.state.site_settings},cssMinifyStatus:{set:function(t){this.showSave=!0,this.new_data.css_minify=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.css_minify)}},jsMinifyStatus:{set:function(t){this.showSave=!0,this.new_data.js_minify=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.js_minify)}}}}},function(t,e){t.exports='\n <div :class="{ \'saving--option\' : this.$store.state.loading }" _v-c1ac671c="">\n\n\n \x3c!-- CSS minify toggle button --\x3e\n <div class="field columns" :class="{\'is-field-disabled\':isReplacerOff }" _v-c1ac671c="">\n <label class="label column has-text-grey-dark" _v-c1ac671c="">\n {{strings.enable_css_minify_title}}\n\n <p class="is-italic has-text-weight-normal" _v-c1ac671c="">\n {{strings.css_minify_desc}}\n </p>\n </label>\n\n <div class="column is-3 " _v-c1ac671c="">\n <toggle-button :class="\'has-text-dark\'" v-model="cssMinifyStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c1ac671c=""></toggle-button>\n </div>\n </div>\n \x3c!-- JS minify toggle button --\x3e\n <div class="field columns" :class="{\'is-field-disabled\':isReplacerOff }" _v-c1ac671c="">\n <label class="label column has-text-grey-dark" _v-c1ac671c="">\n {{strings.enable_js_minify_title}}\n\n <p class="is-italic has-text-weight-normal" _v-c1ac671c="">\n {{strings.js_minify_desc}}\n </p>\n </label>\n\n <div class="column is-3 " _v-c1ac671c="">\n <toggle-button :class="\'has-text-dark\'" v-model="jsMinifyStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c1ac671c=""></toggle-button>\n </div>\n </div>\n <div class="field is-fullwidth columns " _v-c1ac671c="">\n <div class="column is-left" _v-c1ac671c="">\n <button @click="saveChanges()" class="button is-info is-small " :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-c1ac671c="">{{strings.save_changes}}\n </button>\n <a href="#" v-if="showSample" @click="newSample(false)" class="view-sample-image is-link" _v-c1ac671c="">{{strings.view_sample_image}}\n </a>\n </div>\n </div>\n </div>\n'},function(t,e){t.exports='\n <div class="columns" style="margin-top: 1.7%;" _v-5f7ac404="">\n <aside id="optml-settings-menu" class="menu column is-2-fullhd is-3-desktop is-3-tablet" _v-5f7ac404="">\n <ul class="optml-menu optml-settings-submenu is-marginless" _v-5f7ac404="">\n <li _v-5f7ac404=""><a @click="changeTab(\'general\')" href="#" :class="tab === \'general\' ? \'is-active\' : \'\'" :title="all_strings.general_settings_menu_item+\' \'+all_strings.settings_menu_item" _v-5f7ac404="">{{all_strings.general_settings_menu_item}}</a>\n </li>\n <li :class="advancedOpen ? \'is-active\' : \'\' " class="optml-advanced-settings optml-fill-container" _v-5f7ac404=""><a @click="ToggleAdvanced()" href="#" :class="advancedOpen ? \'is-active\' : \'\' " title="General settings" _v-5f7ac404=""><span _v-5f7ac404="">{{all_strings.advanced_settings_menu_item}}</span>\n <span class=" dashicons advanced-link " :class="advancedOpen ? \'dashicons-arrow-up-alt2\' : \'dashicons-arrow-down-alt2\'" _v-5f7ac404=""></span>\n </a>\n \x3c!--Advanced--\x3e\n <ul class="optml-sublist optml-settings-submenu is-marginless " :class=" ! advancedOpen ? \'is-hidden\' : \'\' " _v-5f7ac404="">\n <li :class="tab === \'compression\' ? \'optml-light-background\' : \'\'" _v-5f7ac404=""><a class="optml-fit-content" @click="changeTab(\'compression\')" href="#" :title="all_strings.settings_compression_menu_item+\' \'+all_strings.settings_menu_item" _v-5f7ac404="">{{all_strings.settings_compression_menu_item}}</a>\n </li>\n <li :class="tab === \'resize\' ? \'is-active optml-light-background\' : \'\'" _v-5f7ac404=""><a class="optml-fit-content" @click="changeTab(\'resize\')" href="#" :title="all_strings.settings_resize_menu_item+\' \'+all_strings.settings_menu_item" _v-5f7ac404="">{{all_strings.settings_resize_menu_item}}</a>\n </li>\n\n <li :class="tab === \'lazyload\' ? \'optml-light-background\' : \'\'" v-if="this.$store.state.site_settings.lazyload===\'enabled\'" _v-5f7ac404=""><a class="optml-fit-content" @click="changeTab(\'lazyload\')" href="#" :title="all_strings.lazyload_settings_menu_item+\' \'+all_strings.lazyload_settings_menu_item" _v-5f7ac404="">{{all_strings.lazyload_settings_menu_item}}</a>\n </li>\n <li :class="tab === \'exclusions\' ? \'optml-light-background\' : \'\'" _v-5f7ac404=""><a class="optml-fit-content" href="#" @click="changeTab(\'exclusions\')" :title="all_strings.settings_exclusions_menu_item+\' \'+all_strings.settings_menu_item" _v-5f7ac404="">{{all_strings.settings_exclusions_menu_item}}</a>\n </li>\n </ul>\n </li>\n \x3c!-- Offload media menu--\x3e\n <li v-if="is_offload_media_available === \'yes\'" _v-5f7ac404=""><a @click="changeTab(\'offload_media\')" href="#" style="" :class="tab === \'offload_media\' ? \'is-active\' : \'\'" :title="all_strings.offload_media_settings_menu_item+\' \'+all_strings.offload_media_settings_menu_item" _v-5f7ac404="">{{all_strings.offload_media_settings_menu_item}}\n\n </a>\n\n </li>\n </ul>\n <hr _v-5f7ac404="">\n </aside>\n <div :class="[{ \'saving--option\' : this.$store.state.loading, \'is-tab-disabled\':isDisabled},\'is-tab-\'+tab] " class=" column" _v-5f7ac404="">\n <div class="subtab-content" _v-5f7ac404="">\n <general v-if="tab === \'general\' " @update-status="updateGlobalState" _v-5f7ac404=""></general>\n <compression v-if="tab === \'compression\' " _v-5f7ac404=""></compression>\n <watermarks v-if="tab ===\'watermark\'" _v-5f7ac404=""></watermarks>\n\x3c!-- <Cssjs v-if="tab ===\'cssjs\'"></Cssjs>--\x3e\n <resize v-if="tab ===\'resize\'" _v-5f7ac404=""></resize>\n <lazyload v-if="tab ===\'lazyload\'" _v-5f7ac404=""></lazyload>\n <media v-if="tab ===\'offload_media\'" _v-5f7ac404=""></media>\n <exclusions v-if="tab ===\'exclusions\'" _v-5f7ac404=""></exclusions>\n </div>\n </div>\n </div>\n'},function(t,e,o){var i,n;o(172),i=o(174),n=o(175),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(173);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n.optml-metric[_v-0d4963a9] {\n -ms-flex: 1 1 100%;\n flex: 1 1 100%;\n text-align: left;\n white-space: nowrap;\n}\n.optml-metric > p[_v-0d4963a9] {\n font-size: 14px;\n}\n.optml-metric > p[_v-0d4963a9]:nth-child(3) {\n margin-bottom: 1% !important;\n}\n.optml-metric > p[_v-0d4963a9]:nth-child(2){\n margin-bottom: 2.6% !important;\n}\n.optml-metric-wrapper[_v-0d4963a9] {\n margin: 4% 0 4% 0 !important;\n list-style: none !important;\n padding-left: 2% !important;\n}\n.optml-metric-wrapper > hr[_v-0d4963a9] {\n visibility: hidden;\n}\n@media (max-width: 768px) {\n .optml-metric-wrapper[_v-0d4963a9] {\n margin: 4% 0 4% 0 !important;;\n list-style: none !important;;\n -ms-flex-direction: column !important;;\n flex-direction: column !important;;\n }\n .optml-metric-wrapper > hr[_v-0d4963a9] {\n visibility: visible;\n }\n\n}\n\n.optml-progress-value[_v-0d4963a9] {\n position: absolute;\n margin-top: -1.5px !important;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n font-size: 10px;\n line-height: 1rem;\n font-weight: bold;\n}\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"metrics",data:function(){return{strings:optimoleDashboardApp.strings}},computed:{userData:function(){return this.$store.state.userData}},methods:{getMetric:function(t){return Object.prototype.hasOwnProperty.call(this.userData,t)?this.userData[t]:"saved_size"===t?Math.floor(2500*Math.random())+500:Math.floor(40*Math.random())+10},computedPercentage:function(){return(this.userData.usage/this.userData.quota*100).toFixed(2)},computedPercentageVisitors:function(){return(this.userData.visitors/this.userData.visitors_limit*100).toFixed(2)}}}},function(t,e){t.exports='\n <div _v-0d4963a9="">\n <div class="optml-light-background optml-side-by-side" style="padding: 2% 1% 2% 1%; min-width: 371px;" _v-0d4963a9="">\n <div _v-0d4963a9="">\n <svg xmlns="http://www.w3.org/2000/svg" width="55" height="55" viewBox="0 0 55 55" fill="none" _v-0d4963a9="">\n <path d="M46.6215 21.757C44.6278 22.9074 43.5209 25.0684 43.5415 27.3692C43.5415 27.4128 43.5415 27.4563 43.5415 27.4999C43.5415 27.5434 43.5415 27.5892 43.5415 27.6328C43.5209 29.9336 44.6278 32.0947 46.6215 33.2451L46.6399 33.2565C47.9943 34.038 49.7565 33.2657 50.043 31.728C50.5678 28.9047 50.5426 26.0378 50.0178 23.2717C49.7268 21.7386 47.9713 20.9778 46.6215 21.757V21.757Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M19.8137 13.4291C19.6052 13.5437 19.3989 13.6629 19.195 13.7866C17.2906 14.9462 14.8958 14.9256 12.9639 13.8096C11.621 13.035 11.385 11.1421 12.5583 10.1291C14.701 8.27747 17.1875 6.8131 19.9145 5.85518C21.3812 5.33955 22.912 6.48997 22.912 8.04372V8.06205C22.912 10.2781 21.7547 12.3635 19.8137 13.4291V13.4291Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M19.8137 13.4291C19.6052 13.5437 19.3989 13.6629 19.195 13.7866C17.2906 14.9462 14.8958 14.9256 12.9639 13.8096C11.621 13.035 11.385 11.1421 12.5583 10.1291C14.701 8.27747 17.1875 6.8131 19.9145 5.85518C21.3812 5.33955 22.912 6.48997 22.912 8.04372V8.06205C22.912 10.2781 21.7547 12.3635 19.8137 13.4291V13.4291Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M35.2025 41.5616C35.4065 41.4493 35.6081 41.3325 35.8075 41.211C37.7119 40.0514 40.1067 40.0721 42.0386 41.1881C43.3815 41.9627 43.6175 43.8556 42.4442 44.8685C40.3015 46.7202 37.815 48.1846 35.0879 49.1448C33.6213 49.6627 32.0881 48.5123 32.0881 46.9562C32.0881 44.731 33.2523 42.6364 35.2025 41.5616V41.5616Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M8.37836 33.243C7.02857 34.0221 5.27315 33.2613 4.98211 31.7305C4.45732 28.9644 4.43211 26.0953 4.9569 23.2719C5.24336 21.7342 7.00336 20.9619 8.35773 21.7434L8.37836 21.7548C10.3721 22.9053 11.479 25.0663 11.4584 27.3671C11.4584 27.4107 11.4584 27.4565 11.4584 27.5001C11.4584 27.5436 11.4584 27.5871 11.4584 27.6307C11.479 29.9315 10.3721 32.0926 8.37836 33.243V33.243Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M8.37836 33.243C7.02857 34.0221 5.27315 33.2613 4.98211 31.7305C4.45732 28.9644 4.43211 26.0953 4.9569 23.2719C5.24336 21.7342 7.00336 20.9619 8.35773 21.7434L8.37836 21.7548C10.3721 22.9053 11.479 25.0663 11.4584 27.3671C11.4584 27.4107 11.4584 27.4565 11.4584 27.5001C11.4584 27.5436 11.4584 27.5871 11.4584 27.6307C11.479 29.9315 10.3721 32.0926 8.37836 33.243V33.243Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M32.0881 8.06439C32.0881 6.50605 33.6258 5.36709 35.0948 5.88043C37.7531 6.80855 40.2511 8.22022 42.435 10.0902C43.6221 11.1077 43.4113 13.0167 42.0569 13.7981L42.0363 13.8096C40.1044 14.9233 37.7119 14.9463 35.8075 13.7867C35.6036 13.6629 35.3973 13.5415 35.1865 13.4269C33.2454 12.3636 32.0881 10.2781 32.0881 8.06439V8.06439Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M32.0881 8.06439C32.0881 6.50605 33.6258 5.36709 35.0948 5.88043C37.7531 6.80855 40.2511 8.22022 42.435 10.0902C43.6221 11.1077 43.4113 13.0167 42.0569 13.7981L42.0363 13.8096C40.1044 14.9233 37.7119 14.9463 35.8075 13.7867C35.6036 13.6629 35.3973 13.5415 35.1865 13.4269C33.2454 12.3636 32.0881 10.2781 32.0881 8.06439V8.06439Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M22.9122 46.9357C22.9122 48.494 21.3745 49.633 19.9055 49.1196C17.2472 48.1915 14.7493 46.7798 12.5653 44.9098C11.3782 43.8923 11.5891 41.9834 12.9434 41.2019C14.8868 40.079 17.2953 40.0607 19.2157 41.2248C19.4128 41.344 19.6122 41.4609 19.8161 41.5709C21.7549 42.6365 22.9122 44.7219 22.9122 46.9357V46.9357Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M27.5 20.6256L34.3755 27.5011L27.5 34.3766L20.6245 27.5011L27.5 20.6256Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n </svg>\n </div>\n <div style="width: 100%; margin: 0.5% 0 0 1%;" _v-0d4963a9="">\n <div class="optml-font optml-side-by-side" _v-0d4963a9="">\n <span class="is-size-5" style="font-weight: bold !important;" _v-0d4963a9=""> {{this.userData.visitors_pretty}}/{{this.userData.visitors_limit_pretty}} </span><span class="is-size-6" style="margin-left: 1%;" _v-0d4963a9=""> {{strings.quota}} </span>\n <a href="https://optimole.com/pricing" target="_blank" class="optml-button" style="right:0; bottom: -20%; font-size: 11px; padding: 5px 10px;" _v-0d4963a9=""> {{strings.upgrade.title}} </a>\n </div>\n\n <div style="position:relative;" _v-0d4963a9="">\n <progress style="margin: calc(max(1%, 10px)) auto calc(max(0.5%, 5px)); height: 10px !important;" class="progress is-info optml-progress" :value="this.userData.visitors" :max="this.userData.visitors_limit" _v-0d4963a9=""></progress>\n <div class="optml-is-horizontal-center" _v-0d4963a9="">\n <p style="width: fit-content;border-radius: 4px;padding: 0.4%;background-color: #577BF9;color: white;" _v-0d4963a9="">{{computedPercentageVisitors()}}%</p>\n </div>\n </div>\n </div>\n </div>\n <ul class="optml-side-by-side optml-metric-wrapper" _v-0d4963a9="">\n <li class="optml-metric" _v-0d4963a9="">\n <svg xmlns="http://www.w3.org/2000/svg" width="55" height="55" viewBox="0 0 55 55" fill="none" _v-0d4963a9="">\n <path d="M42.0235 45.3568L45.0279 46.6928C46.5427 47.3666 48.25 46.2574 48.25 44.5982V10.402C48.25 8.74281 46.5427 7.63364 45.0279 8.30739L42.0235 9.64343C32.8569 13.718 22.3931 13.718 13.2265 9.64343L10.2221 8.30739C8.70729 7.63364 7 8.74281 7 10.402V44.5982C7 46.2574 8.70729 47.3666 10.2221 46.6928L13.2265 45.3568C22.3931 41.2845 32.8569 41.2845 42.0235 45.3568Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M34.5002 35.5209H20.7502C19.4852 35.5209 18.4585 34.4942 18.4585 33.2292V21.7709C18.4585 20.5059 19.4852 19.4792 20.7502 19.4792H34.5002C35.7652 19.4792 36.7918 20.5059 36.7918 21.7709V33.2292C36.7918 34.4942 35.7652 35.5209 34.5002 35.5209Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M30.9707 25.0939L36.7915 29.8376" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M30.9711 25.0939L26.0669 30.2043" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M26.0665 30.2043L23.3853 28.4167" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M23.3856 28.4167L18.4585 32.5647" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n </svg>\n <p class="optml-font is-size-5 has-text-weight-bold" _v-0d4963a9="">\n {{getMetric(\'images_number\')}}/∞\n </p>\n <p class="is-size-6" _v-0d4963a9="">\n Images optimized\n </p>\n <p class="optml-gray" _v-0d4963a9="">\n Since plugin activation\n </p>\n </li>\n <hr _v-0d4963a9="">\n <li class="optml-metric" _v-0d4963a9="">\n <svg xmlns="http://www.w3.org/2000/svg" width="56" height="55" viewBox="0 0 56 55" fill="none" _v-0d4963a9="">\n <path d="M36.681 6.875H13.7643C8.70203 6.875 4.59766 10.9794 4.59766 16.0417C4.59766 21.104 8.70203 25.2083 13.7643 25.2083H36.681C41.7433 25.2083 45.8477 21.104 45.8477 16.0417C45.8477 10.9794 41.7433 6.875 36.681 6.875Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M13.7643 25.2084C8.70203 25.2084 4.59766 29.3127 4.59766 34.375C4.59766 39.4373 8.70203 43.5417 13.7643 43.5417H29.806" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M22.9307 16.0416H36.6807" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M13.845 15.9606C13.8898 16.0053 13.8898 16.0779 13.845 16.1226C13.8003 16.1674 13.7277 16.1674 13.683 16.1226C13.6382 16.0779 13.6382 16.0053 13.683 15.9606C13.7277 15.9158 13.8003 15.9158 13.845 15.9606Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M22.9307 34.375H27.7432" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M13.845 34.2938C13.8898 34.3386 13.8898 34.4111 13.845 34.4559C13.8003 34.5006 13.7277 34.5006 13.683 34.4559C13.6382 34.4111 13.6382 34.3386 13.683 34.2938C13.7277 34.2491 13.8003 34.2491 13.845 34.2938Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M38.9725 48.125C32.6452 48.125 27.5142 42.994 27.5142 36.6667C27.5142 30.3394 32.6452 25.2084 38.9725 25.2084C45.3021 25.2084 50.4308 30.3394 50.4308 36.6667C50.4308 42.994 45.3021 48.125 38.9725 48.125Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M40.2465 31.5745L36.4263 35.3924L41.5184 37.9407L37.6981 41.7586" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n </svg>\n\n <p class="optml-font is-size-5 has-text-weight-bold" _v-0d4963a9="">\n {{ (getMetric(\'saved_size\')/1000).toFixed(2)}}MB/∞\n </p>\n <p class="is-size-6" _v-0d4963a9="">\n Saved file size\n </p>\n <p class="optml-gray" _v-0d4963a9="">\n {{strings.for_latest_optimized_images}}\n </p>\n\n </li>\n <hr _v-0d4963a9="">\n\n <li class="optml-metric" _v-0d4963a9="">\n <svg xmlns="http://www.w3.org/2000/svg" width="55" height="55" viewBox="0 0 55 55" fill="none" _v-0d4963a9="">\n <path d="M43.5418 32.0833C41.0095 32.0833 38.9585 30.0323 38.9585 27.5C38.9585 24.9677 41.0095 22.9166 43.5418 22.9166C46.0741 22.9166 48.1252 24.9677 48.1252 27.5C48.1252 30.0323 46.0741 32.0833 43.5418 32.0833Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M32.0832 43.5417C32.0832 46.074 30.0321 48.1251 27.4998 48.1251C24.9675 48.1251 22.9165 46.074 22.9165 43.5417C22.9165 41.0094 24.9675 38.9584 27.4998 38.9584C30.0321 38.9584 32.0832 41.0094 32.0832 43.5417Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M43.5418 48.1251C41.0095 48.1251 38.9585 46.074 38.9585 43.5417C38.9585 41.0094 41.0095 38.9584 43.5418 38.9584C46.0741 38.9584 48.1252 41.0094 48.1252 43.5417C48.1252 46.074 46.0741 48.1251 43.5418 48.1251Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M27.4998 16.0417C24.9675 16.0417 22.9165 13.9906 22.9165 11.4583C22.9165 8.92604 24.9675 6.875 27.4998 6.875C30.0321 6.875 32.0832 8.92604 32.0832 11.4583C32.0832 13.9906 30.0321 16.0417 27.4998 16.0417Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M38.9585 11.4583C38.9585 8.92604 41.0095 6.875 43.5418 6.875C46.0741 6.875 48.1252 8.92604 48.1252 11.4583C48.1252 13.9906 46.0741 16.0417 43.5418 16.0417C41.0095 16.0417 38.9585 13.9906 38.9585 11.4583Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M30.7314 40.3104L40.3106 30.7312" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M14.6895 40.3104L24.2686 30.7312" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M30.7314 24.2687L40.3106 14.6896" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M22.9165 27.5C22.9165 24.9677 24.9675 22.9166 27.4998 22.9166C30.0321 22.9166 32.0832 24.9677 32.0832 27.5C32.0832 30.0323 30.0321 32.0833 27.4998 32.0833C24.9675 32.0833 22.9165 30.0323 22.9165 27.5Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M14.6895 24.2687L24.2686 14.6896" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M11.4583 32.0833C8.92604 32.0833 6.875 30.0323 6.875 27.5C6.875 24.9677 8.92604 22.9166 11.4583 22.9166C13.9906 22.9166 16.0417 24.9677 16.0417 27.5C16.0417 30.0323 13.9906 32.0833 11.4583 32.0833Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M16.0417 43.5417C16.0417 46.074 13.9906 48.1251 11.4583 48.1251C8.92604 48.1251 6.875 46.074 6.875 43.5417C6.875 41.0094 8.92604 38.9584 11.4583 38.9584C13.9906 38.9584 16.0417 41.0094 16.0417 43.5417Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M11.4583 16.0417C8.92604 16.0417 6.875 13.9906 6.875 11.4583C6.875 8.92604 8.92604 6.875 11.4583 6.875C13.9906 6.875 16.0417 8.92604 16.0417 11.4583C16.0417 13.9906 13.9906 16.0417 11.4583 16.0417Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n </svg>\n <p class="optml-font is-size-5 has-text-weight-bold" _v-0d4963a9="">\n {{getMetric(\'compression_percentage\').toFixed(2)}}%\n </p>\n <p class="is-size-6" _v-0d4963a9="">\n Average compression\n </p>\n <p class="optml-gray" _v-0d4963a9="">\n During last month\n </p>\n </li>\n <hr _v-0d4963a9="">\n <li class="optml-metric" _v-0d4963a9="">\n <svg width="55" height="55" viewBox="0 0 64 64" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg" svg-inline="" role="presentation" focusable="false" class="absolute w-16 h-16 text-o-blue" style="top: -0.25rem; left: -0.5rem;" _v-0d4963a9=""><path data-v-767b24d4="" d="M23.997 28c0 2.947-4.178 5.333-9.333 5.333S5.334 30.944 5.334 28" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 28c0 2.947-4.178 5.333-9.333 5.333S5.334 30.944 5.334 28" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 28c0 2.947-4.178 5.333-9.333 5.333S5.334 30.944 5.334 28" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M50.667 56H40a5.332 5.332 0 01-5.333-5.333V13.333A5.332 5.332 0 0140 8h10.667A5.332 5.332 0 0156 13.333v37.334A5.332 5.332 0 0150.667 56z" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M50.667 56H40a5.332 5.332 0 01-5.333-5.333V13.333A5.332 5.332 0 0140 8h10.667A5.332 5.332 0 0156 13.333v37.334A5.332 5.332 0 0150.667 56z" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M50.667 56H40a5.332 5.332 0 01-5.333-5.333V13.333A5.332 5.332 0 0140 8h10.667A5.332 5.332 0 0156 13.333v37.334A5.332 5.332 0 0150.667 56z" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M24 32h10.667M24 32h10.667" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M24 32h10.667" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 16H48M42.667 16H48" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 16H48" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 26.667H48M42.667 26.667H48" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 26.667H48" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 37.333H48M42.667 37.333H48" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 37.333H48" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 48H48M42.667 48H48" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 48H48" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c0 2.947 4.179 5.333 9.334 5.333C19.82 25.333 24 22.947 24 20" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c0 2.947 4.179 5.333 9.334 5.333C19.82 25.333 24 22.947 24 20" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c0 2.947 4.179 5.333 9.334 5.333C19.82 25.333 24 22.947 24 20" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c.003-2.944 4.182-5.333 9.334-5.333 5.152 0 9.333 2.386 9.33 5.333v24c0 2.947-4.178 5.333-9.333 5.333S5.334 46.944 5.334 44V20v0z" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c.003-2.944 4.182-5.333 9.334-5.333 5.152 0 9.333 2.386 9.33 5.333v24c0 2.947-4.178 5.333-9.333 5.333S5.334 46.944 5.334 44V20v0z" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c.003-2.944 4.182-5.333 9.334-5.333 5.152 0 9.333 2.386 9.33 5.333v24c0 2.947-4.178 5.333-9.333 5.333S5.334 46.944 5.334 44V20v0z" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path></svg>\n <p class="optml-font is-size-5 has-text-weight-bold" _v-0d4963a9="">\n {{getMetric(\'traffic\').toFixed(2)}}MB/∞\n </p>\n <p class="is-size-6" _v-0d4963a9="">\n Traffic\n </p>\n <p class="optml-gray" _v-0d4963a9="">\n During last month\n </p>\n </li>\n </ul>\n\n </div>\n'},function(t,e){t.exports='\n\t\t<div class="columns is-desktop" style="min-width: 480px;" v-bind:style="maxWidth">\n\n\t\t\t\t<div class="column ">\n\t\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t\t<app-header></app-header>\n\t\t\t\t\t\t\t\t<div class="card-content">\n\t\t\t\t\t\t\t\t\t\t<div class="content">\n\t\t\t\t\t\t\t\t\t\t\t\t<div v-if="showDisconnect">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="has-text-weight-bold" style="font-size: 19px; margin-bottom: 20px;">{{strings.disconnect_title}}</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="optml-line-height" style="font-size: 16px; margin-bottom: 20px;">{{strings.disconnect_desc}}</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="optml-side-by-side optml-settings-desc-margin">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div @click="keepConnected" class="button optml-button optml-button-style-2 optml-position-relative" > {{strings.keep_connected}}</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div @click="disconnect" :class="this.$store.state.loading ? \'is-loading\' : \'\' " class="button optml-button-style-1 optml-position-relative" style="margin-left: 20px; background-color: #e77777; border-color: #E77777;"> {{strings.disconnect_btn}}</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<connect-layout v-if="!this.is_connected && this.$store.state.autoConnect === \'no\'"></connect-layout>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!--Connecting--\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<transition name="slide-fade">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="optml-side-by-side" style="align-items: center; justify-content: center; margin-right: 4%;" v-if="((!showDisconnect && this.is_connected ) || this.$store.state.autoConnect !== \'no\') && ! this.$store.state.is_loaded" id="optml-loader">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<figure class="image">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img :src="connecting" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</figure>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="columns">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<transition name="slide-fade">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="has-text-left is-size-4 has-text-weight-bold">Connecting to Optimole</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</transition>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<transition name="slide-fade">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="has-text-left is-size-6" style="margin: 4% 0 1% 0;">Sit tight while we connect you to the Dashboard</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</transition>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="columns optml-flex-column" style="margin:1%;">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<progress id="optml-progress-bar" class="progress is-small is-success optml-custom-label-margin" :value="this.timer" max="25"></progress>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="is-size-7" style="padding-top: 7px;">{{this.getProgressMessage()}}</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</transition>\n\t\t\t\t\t\t\t\t\t\t\t\t<transition name="fade" mode="out-in">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div v-if="this.$store.state.connected && this.$store.state.hasApplication && this.$store.state.is_loaded && !showDisconnect">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tabs is-left is-medium optml-tabs optml-font overflow-mobile">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class="is-marginless ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li :class="tab === \'dashboard\' ? \'is-active\' : \'\'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a @click="changeTab(\'dashboard\')" class="is-size-5">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tab-text is-size-5-mobile is-size-5-touch">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{strings.dashboard_menu_item}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg width="110%" height="4" viewBox="0 0 110 4" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<rect width="110%" height="4" rx="2" fill="#577BF9"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li :class="tab === \'conflicts\' ? \'is-active\' : \'\'" v-if="conflictCount > 0">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a @click="changeTab(\'conflicts\')" class="is-size-5">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tab-text is-size-5-mobile is-size-5-touch">{{strings.conflicts_menu_item}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg width="110%" height="6" viewBox="0 0 100 6" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<rect width="110%" height="6" rx="2" fill="#D54222"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li :class="tab === \'settings\' ? \'is-active\' : \'\'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a @click="changeTab(\'settings\')" class="is-size-5 ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tab-text is-size-5-mobile is-size-5-touch">{{strings.settings_menu_item}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg width="110%" height="4" viewBox="0 0 110 4" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<rect width="110%" height="4" rx="2" fill="#577BF9"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- Refresh stats --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li style="margin-left:auto; position:relative; right:1%;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="level-item">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="is-size-7 has-text-weight-bold optml-gray optml-hide-on-mobile" style="margin-right: 20px;">{{ this.$store.state.loading ? strings.updating_stats_cta : strings.refresh_stats_cta}}</span>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a style="padding:0; margin:0;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg v-bind:class="{ \'optml-spin\': this.$store.state.loading }" width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg" style="visibility: visible" v-on:click="requestUpdate">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M17.0002 12.2747L15.4255 10.7L17.0002 9.12537" stroke="#6F6F6F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M28.3137 5.6863C34.5621 11.9347 34.5621 22.0653 28.3137 28.3137C22.0653 34.5621 11.9347 34.5621 5.6863 28.3137C-0.562099 22.0653 -0.562099 11.9347 5.6863 5.6863C11.9347 -0.5621 22.0653 -0.5621 28.3137 5.6863Z" fill="#EDF0FF"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M28.3137 5.6863C34.5621 11.9347 34.5621 22.0653 28.3137 28.3137C22.0653 34.5621 11.9347 34.5621 5.6863 28.3137C-0.562099 22.0653 -0.562099 11.9347 5.6863 5.6863C11.9347 -0.5621 22.0653 -0.5621 28.3137 5.6863" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M18.4014 23.1266C17.9494 23.2306 17.4841 23.296 17.0001 23.296C13.5228 23.296 10.7041 20.4773 10.7041 17C10.7041 15.5826 11.1894 14.2893 11.9788 13.2373" stroke="#577BF9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M22.0213 20.7626C22.8106 19.7106 23.296 18.4173 23.296 17C23.296 13.5226 20.4773 10.704 17 10.704C16.516 10.704 16.0506 10.7693 15.5986 10.8733" stroke="#577BF9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M17 21.7252L18.5747 23.2999L17 24.8746" stroke="#577BF9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="is-tab" v-if="tab === \'dashboard\' "\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t :class="remove_images ? \'no-images\' : \'\' ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="notification is-success optml-side-by-side" v-if="strings.notice_just_activated.length > 0 && user_status === \'active\' ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div><span style="position: relative; top:4%;" class="dashicons dashicons-cloud-saved"></span></div> <div style="margin-left:1%; line-height: 168.75%; " v-html="strings.notice_just_activated"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!--Disabled notice--\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="notification optml-warning is-size-6 optml-side-by-side" v-if="user_status === \'inactive\'" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg style="position: relative; top:10%;" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <path fill-rule="evenodd" clip-rule="evenodd" d="M8.9581 0C13.5192 0 17.2136 3.58 17.2136 8C17.2136 12.42 13.5192 16 8.9581 16C4.39696 16 0.702637 12.42 0.702637 8C0.702637 3.58 4.39696 0 8.9581 0ZM10.6558 9L11.0219 3H7.92606L8.29211 9H10.6558ZM11.0219 11.5115C11.0219 11.9809 10.8811 12.3473 10.6213 12.6107C10.3507 12.874 9.97188 13 9.48478 13C8.99768 13 8.61882 12.874 8.33739 12.6107C8.06677 12.3473 7.92606 11.9809 7.92606 11.5115C7.92606 11.0305 8.05595 10.6641 8.32656 10.4008C8.59717 10.1374 8.97603 10 9.48478 10C9.99353 10 10.3724 10.1374 10.6322 10.4008C10.892 10.6641 11.0219 11.0305 11.0219 11.5115Z" fill="#AF3535"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div style="margin-left:1%; line-height: 168.75%; " v-html="strings.notice_disabled_account">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<metrics></metrics>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>\n\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<last-images class="optml-hide-on-mobile" :status="fetchStatus" v-if="! remove_images"></last-images>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="is-tab" v-if=" tab === \'settings\'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<options></options>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="is-tab" v-if=" tab === \'conflicts\'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<conflicts></conflicts>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</transition>\n\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="level-right">\n\t\t\t\t\t\t\t\t\t\t<p class="level-item"><a href="https://optimole.com" target="_blank">Optimole\n\t\t\t\t\t\t\t\t\t\t\t\tv{{strings.version}}</a></p>\n\t\t\t\t\t\t\t\t\t\t<p class="level-item"><a href="https://optimole.com/terms/"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t target="_blank">{{strings.terms_menu}}</a></p>\n\t\t\t\t\t\t\t\t\t\t<p class="level-item"><a href="https://optimole.com/privacy-policy/" target="_blank">{{strings.privacy_menu}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p class="level-item"><a :href="\'https://optimole.com/test-drive?url=\' + home " target="_blank">{{strings.testdrive_menu}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!--right side--\x3e\n\t\t\t\t<div v-if="is_connected" class="column is-narrow">\n\n\n\t\t\t\t\t\t<div class="card optml-upgrade">\n\t\t\t\t\t\t\t<cdn-details v-if="this.$store.state.userData"></cdn-details>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t<div class=" is-hidden-desktop-only is-hidden-tablet-only is-hidden-mobile" style="padding-bottom:8%; margin-top: -4%; color:white !important; background-color: #577BF9;" v-if="this.$store.state.userData.plan === \'free\'">\n\t\t\t\t\t\t<div style="margin: 4% 4% 7.5% 4%; padding-top: 10%;" >\n\t\t\t\t\t\t\t<p class="is-size-5 has-text-centered has-text-weight-bold">\n\t\t\t\t\t\t\t\t{{strings.upgrade.title_long}}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="position:relative;">\n\t\t\t\t\t\t<ul class="is-size-6 upgrade" style="margin-left: 10%;">\n\t\t\t\t\t\t\t<li><span class="dashicons dashicons-yes-alt" style="margin: 0 2% 1% 0;"></span>{{strings.upgrade.reason_1}}</li>\n\t\t\t\t\t\t\t<li><span class="dashicons dashicons-yes-alt " style="margin: 0 2% 1% 0;"></span>{{strings.upgrade.reason_2}}</li>\n\t\t\t\t\t\t\t<li><span class="dashicons dashicons-yes-alt " style="margin: 0 2% 1% 0;"></span>{{strings.upgrade.reason_3}}</li>\n\t\t\t\t\t\t\t<li><span class="dashicons dashicons-yes-alt " style="margin: 0 2% 1% 0;"></span>{{strings.upgrade.reason_4}}</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t<figure class="image is-hidden-touch" style="position: absolute; left: 50%; top: 17%;">\n\t\t\t\t\t\t\t\t<img :src="logo" :alt="strings.optimole + \' \' + strings.service_details" >\n\t\t\t\t\t\t\t</figure>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<a class="is-size-6 optml-button" href="https://optimole.com/pricing" target="_blank" style="display:block; position:relative; color:white !important; margin:8% 10% 0 10%; padding: 4% 10% 4% 10%; text-align:center;background: rgba(0, 0, 0, 0.43);border-radius: 4px;">\n\t\t\t\t\t\t\t{{strings.upgrade.cta}}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>\n'},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(5),a=i(n),r=o(178),s=i(r),l=o(34),p=i(l),d=o(180),c=i(d),m=o(181),f=i(m);a.default.use(s.default),a.default.use(p.default);var u=new s.default.Store({strict:!0,state:{isConnecting:!1,loading:!1,loadingRollback:!1,loadingSync:!1,errorMedia:!1,site_settings:optimoleDashboardApp.site_settings,connected:"yes"===optimoleDashboardApp.connection_status,is_loaded:"yes"===optimoleDashboardApp.connection_status,apiKey:optimoleDashboardApp.api_key?optimoleDashboardApp.api_key:"",userStatus:optimoleDashboardApp.user_status?optimoleDashboardApp.user_status:"inactive",apiKeyValidity:!0,connectError:"",sample_rate:{},apiError:!1,userData:optimoleDashboardApp.user_data?optimoleDashboardApp.user_data:null,hasApplication:"yes"===optimoleDashboardApp.has_application,autoConnect:optimoleDashboardApp.auto_connect,availableApps:optimoleDashboardApp.available_apps?optimoleDashboardApp.available_apps:null,optimizedImages:[],watermarks:[],conflicts:[],pushedImagesProgress:0,totalNumberOfImages:1,estimatedTime:0,sumTime:0,offloadLibraryLink:!1,rollbackLibraryLink:!1,queryArgs:[],showDisconnect:!1},mutations:c.default,actions:f.default});e.default=u},function(t,e,o){"use strict";function i(t){S&&(t._devtoolHook=S,S.emit("vuex:init",t),S.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){S.emit("vuex:mutation",t,e)}))}function n(t,e){Object.keys(t).forEach(function(o){return e(t[o],o)})}function a(t){return null!==t&&"object"==typeof t}function r(t){return t&&"function"==typeof t.then}function s(t,e,o){if(e.update(o),o.modules)for(var i in o.modules){if(!e.getChild(i))return;s(t.concat(i),e.getChild(i),o.modules[i])}}function l(t,e){return e.indexOf(t)<0&&e.push(t),function(){var o=e.indexOf(t);o>-1&&e.splice(o,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var o=t.state;c(t,o,[],t._modules.root,!0),d(t,o,e)}function d(t,e,o){var i=t._vm;t.getters={};var a=t._wrappedGetters,r={};n(a,function(e,o){r[o]=function(){return e(t)},Object.defineProperty(t.getters,o,{get:function(){return t._vm[o]},enumerable:!0})});var s=j.config.silent;j.config.silent=!0,t._vm=new j({data:{$$state:e},computed:r}),j.config.silent=s,t.strict&&v(t),i&&(o&&t._withCommit(function(){i._data.$$state=null}),j.nextTick(function(){return i.$destroy()}))}function c(t,e,o,i,n){var a=!o.length,r=t._modules.getNamespace(o);if(i.namespaced&&(t._modulesNamespaceMap[r]=i),!a&&!n){var s=g(e,o.slice(0,-1)),l=o[o.length-1];t._withCommit(function(){j.set(s,l,i.state)})}var p=i.context=m(t,r,o);i.forEachMutation(function(e,o){u(t,r+o,e,p)}),i.forEachAction(function(e,o){var i=e.root?o:r+o,n=e.handler||e;h(t,i,n,p)}),i.forEachGetter(function(e,o){b(t,r+o,e,p)}),i.forEachChild(function(i,a){c(t,e,o.concat(a),i,n)})}function m(t,e,o){var i=""===e,n={dispatch:i?t.dispatch:function(o,i,n){var a=x(o,i,n),r=a.payload,s=a.options,l=a.type;return s&&s.root||(l=e+l),t.dispatch(l,r)},commit:i?t.commit:function(o,i,n){var a=x(o,i,n),r=a.payload,s=a.options,l=a.type;s&&s.root||(l=e+l),t.commit(l,r,s)}};return Object.defineProperties(n,{getters:{get:i?function(){return t.getters}:function(){return f(t,e)}},state:{get:function(){return g(t.state,o)}}}),n}function f(t,e){var o={},i=e.length;return Object.keys(t.getters).forEach(function(n){if(n.slice(0,i)===e){var a=n.slice(i);Object.defineProperty(o,a,{get:function(){return t.getters[n]},enumerable:!0})}}),o}function u(t,e,o,i){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){o.call(t,i.state,e)})}function h(t,e,o,i){(t._actions[e]||(t._actions[e]=[])).push(function(e,n){var a=o.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e,n);return r(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):a})}function b(t,e,o,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return o(i.state,i.getters,t.state,t.getters)})}function v(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function g(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function x(t,e,o){return a(t)&&t.type&&(o=e,e=t,t=t.type),{type:t,payload:e,options:o}}function y(t){j&&t===j||(j=t,C(j))}function w(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function k(t){return function(e,o){return"string"!=typeof e?(o=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,o)}}function _(t,e,o){return t._modulesNamespaceMap[o]}Object.defineProperty(e,"__esModule",{value:!0}),o.d(e,"Store",function(){return $}),o.d(e,"install",function(){return y}),o.d(e,"mapState",function(){return D}),o.d(e,"mapMutations",function(){return T}),o.d(e,"mapGetters",function(){return M}),o.d(e,"mapActions",function(){return F}),o.d(e,"createNamespacedHelpers",function(){return P});/**
22
  * vuex v2.5.0
23
  * (c) 2017 Evan You
24
  * @license MIT
25
  */
26
- var C=function(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var o=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,o.call(this,t)}}},S="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,O=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var o=t.state;this.state=("function"==typeof o?o():o)||{}},z={namespaced:{configurable:!0}};z.namespaced.get=function(){return!!this._rawModule.namespaced},O.prototype.addChild=function(t,e){this._children[t]=e},O.prototype.removeChild=function(t){delete this._children[t]},O.prototype.getChild=function(t){return this._children[t]},O.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},O.prototype.forEachChild=function(t){n(this._children,t)},O.prototype.forEachGetter=function(t){this._rawModule.getters&&n(this._rawModule.getters,t)},O.prototype.forEachAction=function(t){this._rawModule.actions&&n(this._rawModule.actions,t)},O.prototype.forEachMutation=function(t){this._rawModule.mutations&&n(this._rawModule.mutations,t)},Object.defineProperties(O.prototype,z);var A=function(t){this.register([],t,!1)};A.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},A.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,o){return e=e.getChild(o),t+(e.namespaced?o+"/":"")},"")},A.prototype.update=function(t){s([],this.root,t)},A.prototype.register=function(t,e,o){var i=this;void 0===o&&(o=!0);var a=new O(e,o);if(0===t.length)this.root=a;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],a)}e.modules&&n(e.modules,function(e,n){i.register(t.concat(n),e,o)})},A.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),o=t[t.length-1];e.getChild(o).runtime&&e.removeChild(o)};var j,$=function(t){var e=this;void 0===t&&(t={}),!j&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var o=t.plugins;void 0===o&&(o=[]);var n=t.strict;void 0===n&&(n=!1);var a=t.state;void 0===a&&(a={}),"function"==typeof a&&(a=a()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new j;var r=this,s=this,l=s.dispatch,p=s.commit;this.dispatch=function(t,e){return l.call(r,t,e)},this.commit=function(t,e,o){return p.call(r,t,e,o)},this.strict=n,c(this,a,[],this._modules.root),d(this,a),o.forEach(function(t){return t(e)}),j.config.devtools&&i(this)},E={state:{configurable:!0}};E.state.get=function(){return this._vm._data.$$state},E.state.set=function(t){},$.prototype.commit=function(t,e,o){var i=this,n=x(t,e,o),a=n.type,r=n.payload,s=(n.options,{type:a,payload:r}),l=this._mutations[a];l&&(this._withCommit(function(){l.forEach(function(t){t(r)})}),this._subscribers.forEach(function(t){return t(s,i.state)}))},$.prototype.dispatch=function(t,e){var o=this,i=x(t,e),n=i.type,a=i.payload,r={type:n,payload:a},s=this._actions[n];if(s)return this._actionSubscribers.forEach(function(t){return t(r,o.state)}),s.length>1?Promise.all(s.map(function(t){return t(a)})):s[0](a)},$.prototype.subscribe=function(t){return l(t,this._subscribers)},$.prototype.subscribeAction=function(t){return l(t,this._actionSubscribers)},$.prototype.watch=function(t,e,o){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},e,o)},$.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},$.prototype.registerModule=function(t,e,o){void 0===o&&(o={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),c(this,this.state,t,this._modules.get(t),o.preserveState),d(this,this.state)},$.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var o=g(e.state,t.slice(0,-1));j.delete(o,t[t.length-1])}),p(this)},$.prototype.hotUpdate=function(t){this._modules.update(t),p(this,!0)},$.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties($.prototype,E);var D=k(function(t,e){var o={};return w(e).forEach(function(e){var i=e.key,n=e.val;o[i]=function(){var e=this.$store.state,o=this.$store.getters;if(t){var i=_(this.$store,"mapState",t);if(!i)return;e=i.context.state,o=i.context.getters}return"function"==typeof n?n.call(this,e,o):e[n]},o[i].vuex=!0}),o}),T=k(function(t,e){var o={};return w(e).forEach(function(e){var i=e.key,n=e.val;o[i]=function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];var i=this.$store.commit;if(t){var a=_(this.$store,"mapMutations",t);if(!a)return;i=a.context.commit}return"function"==typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}}),o}),M=k(function(t,e){var o={};return w(e).forEach(function(e){var i=e.key,n=e.val;n=t+n,o[i]=function(){if(!t||_(this.$store,"mapGetters",t))return this.$store.getters[n]},o[i].vuex=!0}),o}),F=k(function(t,e){var o={};return w(e).forEach(function(e){var i=e.key,n=e.val;o[i]=function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];var i=this.$store.dispatch;if(t){var a=_(this.$store,"mapActions",t);if(!a)return;i=a.context.dispatch}return"function"==typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}}),o}),P=function(t){return{mapState:D.bind(null,t),mapGetters:M.bind(null,t),mapMutations:T.bind(null,t),mapActions:F.bind(null,t)}},L={Store:$,install:y,version:"2.5.0",mapState:D,mapMutations:T,mapGetters:M,mapActions:F,createNamespacedHelpers:P};e.default=L},function(t,e){},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){t.loading=e},n=function(t,e){Object.prototype.hasOwnProperty.call(t.queryArgs,"optimole_action")&&(t.rollbackLibraryLink=!e),t.loadingRollback=e},a=function(t,e){Object.prototype.hasOwnProperty.call(t.queryArgs,"optimole_action")&&(t.offloadLibraryLink=!e),t.loadingSync=e},r=function(t,e){t.errorMedia=e},s=function(t,e){t.isConnecting=e},l=function(t,e){t.apiKeyValidity=e},p=function(t,e){t.connected=e},d=function(t,e){t.showDisconnect=e},c=function(t,e){t.hasApplication=e},m=function(t,e){t.is_loaded=e},f=function(t,e){if(e&&e.app_count&&e.app_count>=1&&e.cdn_key){var o=!0,i=!1,n=void 0;try{for(var a,r=e.available_apps[Symbol.iterator]();!(o=(a=r.next()).done);o=!0){var s=a.value;s.key&&s.key===e.cdn_key&&s.status&&"active"===s.status&&(t.userStatus="active")}}catch(t){i=!0,n=t}finally{try{!o&&r.return&&r.return()}finally{if(i)throw n}}}t.userData=e},u=function(t,e){t.availableApps=e},h=function(t,e){t.connectError=e},b=function(t,e){t.apiKey=e},v=function(t,e){t.optimizedImages=e.body.data},g=function(t,e){t.sample_rate=e},x=function(t,e){t.apiError=e},y=function(t,e){for(var o in e)t.site_settings[o]=e[o]},w=function(t,e){for(var o in e)t.site_settings.watermark[o]=e[o]},k=function(t,e){t.conflicts=e.body.data},_=function(t,e){t.totalNumberOfImages=e},C=function(t,e){t.sumTime=t.sumTime+e.batchTime,t.estimatedTime=(t.sumTime/e.processedBatch*(Math.ceil(t.totalNumberOfImages/e.batchSize)-e.processedBatch)/6e4).toFixed(2)},S=function(t,e){if("finish"===e&&(t.pushedImagesProgress=100),"init"===e)return void(t.pushedImagesProgress=0);t.pushedImagesProgress<100&&(t.pushedImagesProgress+=e/t.totalNumberOfImages*100)};e.default={restApiNotWorking:x,toggleConnectedToOptml:p,toggleConnecting:s,toggleIsServiceLoaded:m,toggleKeyValidity:l,toggleLoading:i,updateApiKey:b,updateConflicts:k,updateOptimizedImages:v,updateSampleRate:g,updateServiceError:h,updateSettings:y,updateUserData:f,updateAvailableApps:u,toggleHasOptmlApp:c,updateWatermark:w,updatePushedImagesProgress:S,totalNumberOfImages:_,estimatedTime:C,toggleLoadingRollback:n,toggleLoadingSync:a,toggleActionError:r,toggleShowDisconnectNotice:d}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(5),a=i(n),r=o(34),s=i(r);a.default.use(s.default);var l=function(t,e){var o=t.commit;t.state;o("toggleConnecting",!0),o("restApiNotWorking",!1),a.default.http({url:optimoleDashboardApp.routes.select_application,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{api_key:e.apiKey,application:e.application},responseType:"json",emulateJSON:!0}).then(function(t){o("toggleConnecting",!1),"success"===t.body.code?(o("toggleKeyValidity",!0),o("toggleHasOptmlApp",!0),o("updateApiKey",e.apiKey),o("updateUserData",t.body.data),o("updateAvailableApps",t.body.data),console.log("%c OptiMole API connection successful.","color: #59B278")):(o("toggleKeyValidity",!1),o("updateServiceError",t.body.data),console.log("%c Invalid API Key.","color: #E7602A"))},function(){o("toggleConnecting",!1),o("restApiNotWorking",!0)})},p=function(t,e){var o=t.commit;t.state;o("toggleConnecting",!0),o("restApiNotWorking",!1),a.default.http({url:optimoleDashboardApp.routes.connect,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{api_key:e.apiKey},responseType:"json",emulateJSON:!0}).then(function(t){o("toggleConnecting",!1),"success"===t.body.code?(o("toggleKeyValidity",!0),o("toggleConnectedToOptml",!0),o("updateApiKey",e.apiKey),void 0!==t.body.data.app_count&&t.body.data.app_count>1?o("updateAvailableApps",t.body.data):(o("updateUserData",t.body.data),o("toggleHasOptmlApp",!0)),console.log("%c OptiMole API connection successful.","color: #59B278")):(o("toggleKeyValidity",!1),o("updateServiceError",t.body.data),console.log("%c Invalid API Key.","color: #E7602A"))},function(){o("toggleConnecting",!1),o("restApiNotWorking",!0)})},d=function(t,e){var o=t.commit;t.state;return o("restApiNotWorking",!1),o("toggleConnecting",!0),o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.register_service,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{email:e.email,auto_connect:e.autoConnect},emulateJSON:!0,responseType:"json"}).then(function(t){return o("toggleConnecting",!1),o("toggleLoading",!1),"success"===t.body.code&&(o("toggleConnectedToOptml",!0),o("toggleKeyValidity",!0),o("toggleHasOptmlApp",!0),o("updateApiKey",e.apiKey),o("updateUserData",t.body.data),o("updateAvailableApps",t.body.data)),t.data},function(t){return o("toggleConnecting",!1),o("restApiNotWorking",!0),t.data})},c=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0,"loading"),a.default.http({url:optimoleDashboardApp.routes.disconnect,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json"}).then(function(t){o("updateUserData",null),o("toggleLoading",!1),o("updateApiKey",""),o("updateAvailableApps",null),o("toggleHasOptmlApp",!1),t.ok?(o("toggleConnectedToOptml",!1),o("toggleIsServiceLoaded",!1),o("toggleShowDisconnectNotice",!1),console.log("%c Disconnected from OptiMole API.","color: #59B278")):console.error(t)})},m=function(t,e){var o=t.commit;t.state;return o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.clear_cache_request,method:"POST",body:{type:e.type},headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json"}).then(function(t){"200"===t.body.code?console.log("%c New cache token generated.","color: #59B278"):console.log("%c Could not generate cache token.","color: #E7602A"),o("toggleLoading",!1)})},f=function(t,e){var o=t.commit;t.state;return o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.update_option,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,body:{settings:e.settings},responseType:"json"}).then(function(t){"success"===t.body.code&&o("updateSettings",t.body.data),o("toggleLoading",!1)})},u=function(t,e){var o=t.commit;t.state;return e.component.loading_images=!0,a.default.http({url:optimoleDashboardApp.routes.get_sample_rate,method:"POST",emulateJSON:!0,headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{quality:e.quality,force:e.force},responseType:"json"}).then(function(t){e.component.loading_images=!1,"success"===t.body.code&&o("updateSampleRate",t.body.data)})},h=function(t,e){var o=t.commit,i=(t.state,this);setTimeout(function(){if(i.state.optimizedImages.length>0)return console.log("%c Images already exsist.","color: #59B278"),!1;a.default.http({url:optimoleDashboardApp.routes.poll_optimized_images,method:"GET",emulateJSON:!0,headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json",timeout:1e4}).then(function(t){"success"===t.body.code?(o("updateOptimizedImages",t),null!==e.component&&(e.component.loading=!1,e.component.startTime=e.component.maxTime,0===t.body.data.length&&(e.component.noImages=!0)),console.log("%c Images Fetched.","color: #59B278")):null!==e.component&&(e.component.noImages=!0,e.component.loading=!1,console.log("%c No images available.","color: #E7602A"))}).catch(function(t){null!==e.component&&(e.component.noImages=!0,e.component.loading=!1,console.log("Error while polling images",t))})},e.waitTime)},b=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.poll_watermarks,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){if(o("toggleLoading",!1),200===t.status){e.component.watermarkData=[];for(var i in t.data.data){var n=t.data.data[i],a={ID:n.ID,post_title:n.post_title,post_mime_type:n.post_mime_type,guid:n.post_content||n.guid};e.component.watermarkData.push(a),e.component.noImages=!1}}})},v=function(t,e){var o=t.commit,i=t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.remove_watermark,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{postID:e.postID},responseType:"json"}).then(function(t){o("toggleLoading",!1),b({commit:o,state:i},e)})},g=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.request_update,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){o("toggleLoading",!1),200===t.status&&o("updateUserData",t.body.data),"disconnected"===t.body.code&&(o("toggleConnectedToOptml",!1),o("toggleIsServiceLoaded",!1),console.log("%c Disconnected from OptiMole API.","color: #59B278"))})},x=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.poll_conflicts,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){o("toggleLoading",!1),200===t.status&&(console.log(t),o("updateConflicts",t))})},y=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.dismiss_conflict,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{conflictID:e.conflictID},responseType:"json"}).then(function(t){o("toggleLoading",!1),200===t.status&&(console.log(t),o("updateConflicts",t))})},w="pending",k="pending",_=function t(e,o,i,n,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;0===i.length?w="done":a.default.http({url:optimoleDashboardApp.routes.upload_rollback_images,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,timeout:0,responseType:"json",body:{image_ids:i,job:o}}).then(function(a){if(i.length>0)t(e,o,i,n,r),i.splice(0,r);else{C(n);var s=setInterval(function(){"done"===k&&(k="pending",w="done",clearInterval(s))},1e4)}}).catch(function(a){s<10?setTimeout(function(){t(e,o,i,n,r,s+1)},1e3*s+5e3):k="fail"})},C=function t(e){a.default.http({url:optimoleDashboardApp.routes.update_page,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,timeout:0,responseType:"json",body:{post_id:e}}).then(function(t){"success"===t.body.code&&!0===t.body.data&&(k="done")}).catch(function(o){consecutiveErrors<10?setTimeout(function(){t(e)},1e3*consecutiveErrors+5e3):w="fail"})},S=function t(e,o,i,n,r,s){var l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],p=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,d=new Date,c="update_content";if(!0===l){if("none"!==s&&0===s.length)return e("updatePushedImagesProgress","finish"),void("offload_images"===n?e("toggleLoadingSync",!1):e("toggleLoadingRollback",!1));c=n}a.default.http({url:optimoleDashboardApp.routes[c],method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,timeout:0,responseType:"json",body:{batch:o,page:i,job:n,images:s}}).then(function(a){if("success"===a.body.code&&(a.body.data.page>i||a.body.data.found_images>0))if(!1===l&&0!==Object.keys(a.body.data.imagesToUpdate).length){var p=!0,c=!1,m=void 0;try{for(var f,u=Object.keys(a.body.data.imagesToUpdate)[Symbol.iterator]();!(p=(f=u.next()).done);p=!0)!function(){var i=f.value,p=a.body.data.imagesToUpdate[i];"none"!==s&&0!==s.length&&(p=p.filter(function(t){return s.includes(t)})),_(e,n,p,i,o,0);var c=setInterval(function(){"done"===w&&(w="pending",e("updatePushedImagesProgress",o),e("estimatedTime",{batchTime:new Date-d,batchSize:o,processedBatch:r+1}),t(e,o,a.body.data.page,n,r+1,s,l,0),clearInterval(c))},1e4)}()}catch(t){c=!0,m=t}finally{try{!p&&u.return&&u.return()}finally{if(c)throw m}}}else e("updatePushedImagesProgress",o),e("estimatedTime",{batchTime:new Date-d,batchSize:o,processedBatch:r+1}),t(e,o,a.body.data.page,n,r+1,s,l,0),!0===l&&"none"!==s&&s.splice(0,o);else!1===l?(t(e,o,a.body.data.page,n,r+1,s,!0,0),"none"!==s&&s.splice(0,o)):(e("updatePushedImagesProgress","finish"),"offload_images"===n?e("toggleLoadingSync",!1):e("toggleLoadingRollback",!1))}).catch(function(a){console.log(a),p<10?setTimeout(function(){t(e,o,i,n,r,s,l,p+1)},1e3*p+5e3):(e("toggleActionError",n),e("toggleLoadingSync",!1),e("toggleLoadingRollback",!1))})},O=function t(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;a.default.http({url:optimoleDashboardApp.routes.number_of_images_and_pages,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json",body:{action:e.action}}).then(function(t){if(200===t.status&&t.body.data>0){o("totalNumberOfImages",t.body.data);var i=1;Math.ceil(t.body.data/10)<=i&&(i=Math.ceil(t.body.data/10)),S(o,i,1,e.action,0,e.images)}else"offload_images"===e.action&&o("toggleLoadingSync",!1),"rollback_images"===e.action&&o("toggleLoadingRollback",!1)}).catch(function(n){i<10?setTimeout(function(){t(e,o,i+1)},1e3*i+1e3):(o("toggleActionError",e.action),o("toggleLoadingSync",!1),o("toggleLoadingRollback",!1))})},z=function(t,e){var o=t.commit;t.state;o("updatePushedImagesProgress","init"),"offload_images"===e.action&&o("toggleLoadingSync",!0),"rollback_images"===e.action&&o("toggleLoadingRollback",!0),O(e,o,0)};e.default={clearCache:m,connectOptimole:p,disconnectOptimole:c,selectOptimoleDomain:l,dismissConflict:y,registerOptimole:d,removeWatermark:v,requestStatsUpdate:g,retrieveConflicts:x,retrieveOptimizedImages:h,retrieveWatermarks:b,sampleRate:u,saveSettings:f,callSync:z}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function i(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}function n(){n.init||(n.init=!0,r=-1!==i())}function a(t){t.component("resize-observer",s),t.component("ResizeObserver",s)}o.d(e,"install",function(){return a}),o.d(e,"ResizeObserver",function(){return s});var r=void 0,s={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var t=this;n(),this.$nextTick(function(){t._w=t.$el.offsetWidth,t._h=t.$el.offsetHeight});var e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",r&&this.$el.appendChild(e),e.data="about:blank",r||this.$el.appendChild(e)},beforeDestroy:function(){this.removeResizeHandlers()}},l={version:"0.4.5",install:a},p=null;"undefined"!=typeof window?p=window.Vue:void 0!==t&&(p=t.Vue),p&&p.use(l),e.default=l}.call(e,o(8))},function(t,e,o){!function(e,o){t.exports=o()}(0,function(){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,o){o(8);var i=o(6)(o(1),o(7),"data-v-25adc6c0",null);t.exports=i.exports},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(3),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"ToggleButton",props:{value:{type:Boolean,default:!1},name:{type:String},disabled:{type:Boolean,default:!1},tag:{type:String},sync:{type:Boolean,default:!1},speed:{type:Number,default:300},color:{type:[String,Object],validator:function(t){return o.i(i.a)(t)||o.i(i.b)(t,"checked")||o.i(i.b)(t,"unchecked")||o.i(i.b)(t,"disabled")}},switchColor:{type:[String,Object],validator:function(t){return o.i(i.a)(t)||o.i(i.b)(t,"checked")||o.i(i.b)(t,"unchecked")}},cssColors:{type:Boolean,default:!1},labels:{type:[Boolean,Object],default:!1,validator:function(t){return"object"===(void 0===t?"undefined":n(t))?t.checked||t.unchecked:"boolean"==typeof t}},height:{type:Number,default:22},width:{type:Number,default:50},margin:{type:Number,default:3},fontSize:{type:Number}},computed:{className:function(){return["vue-js-switch",{toggled:this.toggled,disabled:this.disabled}]},coreStyle:function(){return{width:o.i(i.c)(this.width),height:o.i(i.c)(this.height),backgroundColor:this.cssColors?null:this.disabled?this.colorDisabled:this.colorCurrent,borderRadius:o.i(i.c)(Math.round(this.height/2))}},buttonRadius:function(){return this.height-2*this.margin},distance:function(){return o.i(i.c)(this.width-this.height+this.margin)},buttonStyle:function(){var t="transform "+this.speed+"ms",e=o.i(i.c)(this.margin),n=this.toggled?o.i(i.d)(this.distance,e):o.i(i.d)(e,e),a=this.switchColor?this.switchColorCurrent:null;return{width:o.i(i.c)(this.buttonRadius),height:o.i(i.c)(this.buttonRadius),transition:t,transform:n,background:a}},labelStyle:function(){return{lineHeight:o.i(i.c)(this.height),fontSize:this.fontSize?o.i(i.c)(this.fontSize):null}},colorChecked:function(){var t=this.color;return o.i(i.e)(t)?o.i(i.f)(t,"checked","#75c791"):t||"#75c791"},colorUnchecked:function(){return o.i(i.f)(this.color,"unchecked","#bfcbd9")},colorDisabled:function(){return o.i(i.f)(this.color,"disabled",this.colorCurrent)},colorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){return o.i(i.f)(this.labels,"checked","on")},labelUnchecked:function(){return o.i(i.f)(this.labels,"unchecked","off")},switchColorChecked:function(){return o.i(i.f)(this.switchColor,"checked","#fff")},switchColorUnchecked:function(){return o.i(i.f)(this.switchColor,"unchecked","#fff")},switchColorCurrent:function(){this.switchColor;return o.i(i.e)(this.switchColor)?this.toggled?this.switchColorChecked:this.switchColorUnchecked:this.switchColor||"#fff"}},watch:{value:function(t){this.sync&&(this.toggled=!!t)}},data:function(){return{toggled:!!this.value}},methods:{toggle:function(t){var e=!this.toggled;this.sync||(this.toggled=e),this.$emit("input",e),this.$emit("change",{value:e,tag:this.tag,srcEvent:t})}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o.n(i);o.d(e,"ToggleButton",function(){return n.a});var a=!1;e.default={install:function(t){a||(t.component("ToggleButton",n.a),a=!0)}}},function(t,e,o){"use strict";o.d(e,"a",function(){return n}),o.d(e,"e",function(){return a}),o.d(e,"b",function(){return r}),o.d(e,"f",function(){return s}),o.d(e,"c",function(){return l}),o.d(e,"d",function(){return p});var i="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},n=function(t){return"string"==typeof t},a=function(t){return"object"===(void 0===t?"undefined":i(t))},r=function(t,e){return a(t)&&t.hasOwnProperty(e)},s=function(t,e,o){return r(t,e)?t[e]:o},l=function(t){return t+"px"},p=function(t,e){return"translate3d("+t+", "+e+", "+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0px")+")"}},function(t,e,o){e=t.exports=o(5)(),e.push([t.i,".vue-js-switch[data-v-25adc6c0]{display:inline-block;position:relative;vertical-align:middle;user-select:none;font-size:10px;cursor:pointer}.vue-js-switch .v-switch-input[data-v-25adc6c0]{opacity:0;position:absolute;width:1px;height:1px}.vue-js-switch .v-switch-label[data-v-25adc6c0]{position:absolute;top:0;font-weight:600;color:#fff;z-index:1}.vue-js-switch .v-switch-label.v-left[data-v-25adc6c0]{left:10px}.vue-js-switch .v-switch-label.v-right[data-v-25adc6c0]{right:10px}.vue-js-switch .v-switch-core[data-v-25adc6c0]{display:block;position:relative;box-sizing:border-box;outline:0;margin:0;transition:border-color .3s,background-color .3s;user-select:none}.vue-js-switch .v-switch-core .v-switch-button[data-v-25adc6c0]{display:block;position:absolute;overflow:hidden;top:0;left:0;border-radius:100%;background-color:#fff;z-index:2}.vue-js-switch.disabled[data-v-25adc6c0]{pointer-events:none;opacity:.6}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var o=this[e];o[2]?t.push("@media "+o[2]+"{"+o[1]+"}"):t.push(o[1])}return t.join("")},t.i=function(e,o){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},n=0;n<this.length;n++){var a=this[n][0];"number"==typeof a&&(i[a]=!0)}for(n=0;n<e.length;n++){var r=e[n];"number"==typeof r[0]&&i[r[0]]||(o&&!r[2]?r[2]=o:o&&(r[2]="("+r[2]+") and ("+o+")"),t.push(r))}},t}},function(t,e){t.exports=function(t,e,o,i){var n,a=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(n=t,a=t.default);var s="function"==typeof a?a.options:a;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),o&&(s._scopeId=o),i){var l=Object.create(s.computed||null);Object.keys(i).forEach(function(t){var e=i[t];l[t]=function(){return e}}),s.computed=l}return{esModule:n,exports:a,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("label",{class:t.className},[o("input",{staticClass:"v-switch-input",attrs:{type:"checkbox",name:t.name,disabled:t.disabled},domProps:{checked:t.value},on:{change:function(e){return e.stopPropagation(),t.toggle(e)}}}),t._v(" "),o("div",{staticClass:"v-switch-core",style:t.coreStyle},[o("div",{staticClass:"v-switch-button",style:t.buttonStyle})]),t._v(" "),t.labels?[t.toggled?o("span",{staticClass:"v-switch-label v-left",style:t.labelStyle},[t._t("checked",[[t._v(t._s(t.labelChecked))]])],2):o("span",{staticClass:"v-switch-label v-right",style:t.labelStyle},[t._t("unchecked",[[t._v(t._s(t.labelUnchecked))]])],2)]:t._e()],2)},staticRenderFns:[]}},function(t,e,o){var i=o(4);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);o(9)("2283861f",i,!0)},function(t,e,o){function i(t){for(var e=0;e<t.length;e++){var o=t[e],i=d[o.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](o.parts[n]);for(;n<o.parts.length;n++)i.parts.push(a(o.parts[n]));i.parts.length>o.parts.length&&(i.parts.length=o.parts.length)}else{for(var r=[],n=0;n<o.parts.length;n++)r.push(a(o.parts[n]));d[o.id]={id:o.id,refs:1,parts:r}}}}function n(){var t=document.createElement("style");return t.type="text/css",c.appendChild(t),t}function a(t){var e,o,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(u)return h;i.parentNode.removeChild(i)}if(b){var a=f++;i=m||(m=n()),e=r.bind(null,i,a,!1),o=r.bind(null,i,a,!0)}else i=n(),e=s.bind(null,i),o=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else o()}}function r(t,e,o,i){var n=o?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,n);else{var a=document.createTextNode(n),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function s(t,e){var o=e.css,i=e.media,n=e.sourceMap;if(i&&t.setAttribute("media",i),n&&(o+="\n/*# sourceURL="+n.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)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 p=o(10),d={},c=l&&(document.head||document.getElementsByTagName("head")[0]),m=null,f=0,u=!1,h=function(){},b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,o){u=o;var n=p(t,e);return i(n),function(e){for(var o=[],a=0;a<n.length;a++){var r=n[a],s=d[r.id];s.refs--,o.push(s)}e?(n=p(t,e),i(n)):n=[];for(var a=0;a<o.length;a++){var s=o[a];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}};var v=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var o=[],i={},n=0;n<e.length;n++){var a=e[n],r=a[0],s=a[1],l=a[2],p=a[3],d={id:t+":"+n,css:s,media:l,sourceMap:p};i[r]?i[r].parts.push(d):o.push(i[r]={id:r,parts:[d]})}return o}}])})},function(t,e,o){"use strict";function i(t,e,o,i,n,a,r,s,l,p){"boolean"!=typeof r&&(l=s,s=r,r=!1);var d="function"==typeof o?o.options:o;t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,n&&(d.functional=!0)),i&&(d._scopeId=i);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=c):e&&(c=r?function(){e.call(this,p(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var m=d.render;d.render=function(t,e){return c.call(e),m(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return o}Object.defineProperty(e,"__esModule",{value:!0});/*!
27
  * vue-textarea-autosize v1.1.1
28
  * (c) 2019 Saymon
29
  * Released under the MIT License.
18
  * Version: 2.8.21
19
  * Author: Marco Lang
20
  */
21
+ !function(e,o){t.exports=o()}(0,function(){"use strict";function t(t){var e=r(t);return s(e,t.body)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,o,i,n,a,r,s,l,p){"boolean"!=typeof r&&(l=s,s=r,r=!1);var d="function"==typeof o?o.options:o;t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,n&&(d.functional=!0)),i&&(d._scopeId=i);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=c):e&&(c=r?function(){e.call(this,p(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var m=d.render;d.render=function(t,e){return c.call(e),m(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return o}function i(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);e<t.length;e++)o[e]=t[e];return o}return Array.from(t)}function n(t){return function(t,e){return a(t,e)}}function a(t,e){var o=w?e.media||"default":t,i=_[o]||(_[o]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);var n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),k.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var a=i.ids.size-1,r=document.createTextNode(n),s=i.element.childNodes;s[a]&&i.element.removeChild(s[a]),s.length?i.element.insertBefore(r,s[a]):i.element.appendChild(r)}}}var r=function(t){var e=new XMLHttpRequest;return e.open(t.method||"GET",t.url),e.responseType="json",t.headers&&Object.keys(t.headers).forEach(function(o){e.setRequestHeader(o,t.headers[o])}),e},s=function(t,e){return new Promise(function(o,i){t.onload=function(){if(t.status>=200&&t.status<300){var e;try{e=JSON.parse(t.response)}catch(o){e=t.response}o(e)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(JSON.stringify(e))})},l=function(t,e){var o=new FormData;for(var i in e)o.append(i,e[i]);return new Promise(function(e,i){t.onload=function(){if(t.status>=200&&t.status<300){var o;try{o=JSON.parse(t.response)}catch(e){o=t.response}e(o)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(o)})},p=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),d=function(){function o(t,i){e(this,o),this.file=t,this.options=i,this.chunks=[],this.sessionId=null,this.chunkSize=null,this.speedInterval=null}return p(o,[{key:"createChunks",value:function(){this.chunks=[];for(var t=0,e=this.chunkSize;t<this.fileSize;)this.chunks.push({blob:this.file.file.slice(t,e),startOffset:t,active:!1,retries:this.maxRetries}),t=e,e=t+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach(function(t){t.xhr.abort(),t.active=!1}),this.stopSpeedCalc()}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var t=this;return this.promise=new Promise(function(e,o){t.resolve=e,t.reject=o}),this.start(),this.promise}},{key:"start",value:function(){var e=this;t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then(function(t){if("success"!==t.status)return e.file.response=t,e.reject("server");e.sessionId=t.data.session_id,e.chunkSize=t.data.end_offset,e.createChunks(),e.startChunking()}).catch(function(t){e.file.response=t,e.reject("server")})}},{key:"startChunking",value:function(){for(var t=0;t<this.maxActiveChunks;t++)this.uploadNextChunk();this.startSpeedCalc()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(t){var e=this;t.progress=0,t.active=!0,this.updateFileProgress(),t.xhr=r({method:"POST",headers:this.headers,url:this.action}),t.xhr.upload.addEventListener("progress",function(e){e.lengthComputable&&(t.progress=Math.round(e.loaded/e.total*100))},!1),l(t.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:t.startOffset,chunk:t.blob})).then(function(o){if(t.active=!1,"success"===o.status)t.uploaded=!0;else if(t.retries--<=0)return e.stopChunks(),e.reject("upload");e.uploadNextChunk()}).catch(function(){if(t.active=!1,t.retries--<=0)return e.stopChunks(),e.reject("upload");e.uploadNextChunk()})}},{key:"finish",value:function(){var e=this;this.updateFileProgress(),this.stopSpeedCalc(),t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then(function(t){if(e.file.response=t,"success"!==t.status)return e.reject("server");e.resolve(t)}).catch(function(t){e.file.response=t,e.reject("server")})}},{key:"startSpeedCalc",value:function(){var t=this;this.file.speed=0;var e=0;this.speedInterval||(this.speedInterval=window.setInterval(function(){var o=t.progress/100*t.fileSize;t.file.speed=o-e,e=o},1e3))}},{key:"stopSpeedCalc",value:function(){this.speedInterval&&window.clearInterval(this.speedInterval),this.speedInterval=null,this.file.speed=0}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries,10)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive,10)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var t=this,e=this.chunksUploaded.length/this.chunks.length*100,o=this.chunksUploading.reduce(function(e,o){return e+(0|o.progress)/t.chunks.length},0);return Math.min(e+o,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter(function(t){return!t.active&&!t.uploaded})}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter(function(t){return!!t.xhr&&!!t.active})}},{key:"chunksUploaded",get:function(){return this.chunks.filter(function(t){return!!t.uploaded})}}]),o}(),c={methods:{change:function(t){this.$parent.addInputFile(t.target),t.target.files?(t.target.value="",t.target.files.length&&!/safari/i.test(navigator.userAgent)&&(t.target.type="",t.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}},m=o,f=c,u=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"file",name:t.$parent.name,id:t.$parent.inputId||t.$parent.name,accept:t.$parent.accept,capture:t.$parent.capture,disabled:t.$parent.disabled,webkitdirectory:t.$parent.directory&&t.$parent.features.directory,directory:t.$parent.directory&&t.$parent.features.directory,multiple:t.$parent.multiple&&t.$parent.features.html5},on:{change:t.change}})},h=[],b=m({render:u,staticRenderFns:h},void 0,f,void 0,!1,void 0,void 0,void 0),v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},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},x={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:d},y={components:{InputFile:b},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return x}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drop:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var t=document.createElement("input");if(t.type="file",t.multiple=!0,window.FormData&&t.files?("boolean"!=typeof t.webkitdirectory&&"boolean"!=typeof t.directory||(this.features.directory=!0),this.features.html5&&void 0!==t.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var e=0;e<this.files.length;e++){var o=this.files[e];this.maps[o.id]=o}this.$nextTick(function(){var t=this;this.$parent?(this.$parent.$forceUpdate(),this.$parent.$nextTick(function(){t.watchDrop(t.drop)})):this.watchDrop(this.drop)})},beforeDestroy:function(){this.destroy=!0,this.active=!1,this.watchDrop(!1)},computed:{uploaded:function(){for(var t=void 0,e=0;e<this.files.length;e++)if(t=this.files[e],t.fileObject&&!t.error&&!t.success)return!1;return!0},chunkOptions:function(){return Object.assign(x,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(t){this.watchActive(t)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(t){this.watchDrop(t)},value:function(t){if(this.files!==t){this.files=t;var e=this.maps;this.maps={};for(var o=0;o<this.files.length;o++){var i=this.files[o];this.maps[i.id]=i}for(var n in this.maps){var a=this.maps[n],r=e[n];a!==r&&this.emitFile(a,r)}for(var s in e)this.maps[s]||this.emitFile(void 0,e[s])}}},methods:{clear:function(){if(this.files.length){var t=this.files;this.files=[],this.maps={},this.emitInput();for(var e=0;e<t.length;e++)this.emitFile(void 0,t[e])}return!0},get:function(t){return!!t&&("object"===(void 0===t?"undefined":g(t))?this.maps[t.id]||!1:this.maps[t]||!1)},add:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,o=t,i=o instanceof Array;i||(o=[o]);for(var n=[],a=0;a<o.length;a++){var r=o[a];this.features.html5&&r instanceof Blob&&(r={file:r,size:r.size,name:r.webkitRelativePath||r.relativePath||r.name||"unknown",type:r.type});var s=!1;if(!1===r.fileObject||(r.fileObject?s=!0:"undefined"!=typeof Element&&r.el instanceof Element?s=!0:"undefined"!=typeof Blob&&r.file instanceof Blob&&(s=!0)),s&&(r=v({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},r,{response:{},progress:"0.00",speed:0}),r.data=v({},this.data,r.data?r.data:{}),r.headers=v({},this.headers,r.headers?r.headers:{})),r.id||(r.id=Math.random().toString(36).substr(2)),!this.emitFilter(r,void 0)){if(this.maximum>1&&n.length+this.files.length>=this.maximum)break;if(n.push(r),1===this.maximum)break}}if(!n.length)return!1;1===this.maximum&&this.clear();var l=void 0;if(!0===e||0===e)l=n.concat(this.files);else if(e){var p;l=this.files.concat([]),(p=l).splice.apply(p,[e,0].concat(n))}else l=this.files.concat(n);this.files=l;for(var d=0;d<n.length;d++){var c=n[d];this.maps[c.id]=c}this.emitInput();for(var m=0;m<n.length;m++)this.emitFile(n[m],void 0);return i?n:n[0]},addInputFile:function(t){var e=[];if(t.files)for(var o=0;o<t.files.length;o++){var i=t.files[o];e.push({size:i.size,name:i.webkitRelativePath||i.relativePath||i.name,type:i.type,file:i})}else{var n=t.value.replace(/\\/g,"/").split("/");delete t.__vuex__,e.push({name:n[n.length-1],el:t})}return this.add(e)},addDataTransfer:function(t){var e=this,o=[];if(t.items&&t.items.length){for(var n=[],a=0;a<t.items.length;a++){var r=t.items[a];r=r.getAsEntry?r.getAsEntry()||r.getAsFile():r.webkitGetAsEntry?r.webkitGetAsEntry()||r.getAsFile():r.getAsFile(),r&&n.push(r)}return new Promise(function(t,a){!function a(r){var s=n[r];if(!s||e.maximum>0&&o.length>=e.maximum)return t(e.add(o));e.getEntry(s).then(function(t){o.push.apply(o,i(t)),a(r+1)})}(0)})}if(t.files.length){for(var s=0;s<t.files.length&&(o.push(t.files[s]),!(this.maximum>0&&o.length>=this.maximum));s++);return Promise.resolve(this.add(o))}return Promise.resolve([])},getEntry:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise(function(n,a){if(t.isFile)t.file(function(t){n([{size:t.size,name:o+t.name,type:t.type,file:t}])});else if(t.isDirectory&&e.dropDirectory){var r=[],s=t.createReader();!function a(){s.readEntries(function(s){!function l(p){return!s[p]&&0===p||e.maximum>0&&r.length>=e.maximum?n(r):s[p]?void e.getEntry(s[p],o+t.name+"/").then(function(t){r.push.apply(r,i(t)),l(p+1)}):a()}(0)})}()}else n([])})},replace:function(t,e){var o=this.get(t),i=this.get(e);if(!o||!i||o===i)return!1;var n=this.files.concat([]),a=n.indexOf(o),r=n.indexOf(i);return-1!==a&&-1!==r&&(n[a]=i,n[r]=o,this.files=n,this.emitInput(),!0)},remove:function(t){var e=this.get(t);if(e){if(this.emitFilter(void 0,e))return!1;var o=this.files.concat([]),i=o.indexOf(e);if(-1===i)return console.error("remove",e),!1;o.splice(i,1),this.files=o,delete this.maps[e.id],this.emitInput(),this.emitFile(void 0,e)}return e},update:function(t,e){var o=this.get(t);if(o){var i=v({},o,e);if(!o.fileObject||!o.active||i.active||i.error||i.success||(i.error="abort"),this.emitFilter(i,o))return!1;var n=this.files.concat([]),a=n.indexOf(o);return-1===a?(console.error("update",o),!1):(n.splice(a,1,i),this.files=n,delete this.maps[o.id],this.maps[i.id]=i,this.emitInput(),this.emitFile(i,o),i)}return!1},emitFilter:function(t,e){var o=!1;return this.$emit("input-filter",t,e,function(){return o=!0}),o},emitFile:function(t,e){this.$emit("input-file",t,e),!(t&&t.fileObject&&t.active)||e&&e.active?t&&t.fileObject&&t.active||!e||!e.fileObject||!e.active||this.uploading--:(this.uploading++,this.$nextTick(function(){var e=this;setTimeout(function(){e.upload(t).then(function(){(t=e.get(t))&&t.fileObject&&e.update(t,{active:!1,success:!t.error})}).catch(function(o){e.update(t,{active:!1,success:!1,error:o.code||o.error||o.message||o})})},parseInt(50*Math.random()+50,10))})),!this.active||Boolean(t)===Boolean(e)&&t.active===e.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(t){var e=this.get(t);if(!e)return Promise.reject("not_exists");if(!e.fileObject)return Promise.reject("file_object");if(e.error)return Promise.reject(e.error);if(e.success)return Promise.resolve(e);var o=this.extensions;if(o&&(o.length||void 0===o.length)&&("object"===(void 0===o?"undefined":g(o))&&o instanceof RegExp||("string"==typeof o&&(o=o.split(",").map(function(t){return t.trim()}).filter(function(t){return t})),o=new RegExp("\\.("+o.join("|").replace(/\./g,"\\.")+")$","i")),-1===e.name.search(o)))return Promise.reject("extension");if(this.size>0&&e.size>=0&&e.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(e,this);if(this.features.html5){if(this.shouldUseChunkUpload(e))return this.uploadChunk(e);if(e.putAction)return this.uploadPut(e);if(e.postAction)return this.uploadHtml5(e)}return e.postAction?this.uploadHtml4(e):Promise.reject("No action configured")},shouldUseChunkUpload:function(t){return this.chunkEnabled&&!!this.chunkOptions.handler&&t.size>this.chunkOptions.minSize},uploadChunk:function(t){var e=this.chunkOptions.handler;return t.chunk=new e(t,this.chunkOptions),t.chunk.upload()},uploadPut:function(t){var e=[],o=void 0;for(var i in t.data)null!==(o=t.data[i])&&void 0!==o&&e.push(encodeURIComponent(i)+"="+encodeURIComponent(o));var n=e.length?(-1===t.putAction.indexOf("?")?"?":"&")+e.join("&"):"",a=new XMLHttpRequest;return a.open("PUT",t.putAction+n),this.uploadXhr(a,t,t.file)},uploadHtml5:function(t){var e=new window.FormData,o=void 0;for(var i in t.data)o=t.data[i],o&&"object"===(void 0===o?"undefined":g(o))&&"function"!=typeof o.toString?o instanceof File?e.append(i,o,o.name):e.append(i,JSON.stringify(o)):null!==o&&void 0!==o&&e.append(i,o);e.append(this.name,t.file,t.file.filename||t.name);var n=new XMLHttpRequest;return n.open("POST",t.postAction),this.uploadXhr(n,t,e)},uploadXhr:function(t,e,o){var i=this,n=e,a=0,r=0;t.upload.onprogress=function(t){if(n=i.get(n),t.lengthComputable&&n&&n.fileObject&&n.active){var e=Math.round(Date.now()/1e3);e!==a&&(a=e,n=i.update(n,{progress:(t.loaded/t.total*100).toFixed(2),speed:t.loaded-r}),r=t.loaded)}};var s=setInterval(function(){if(!(n=i.get(n))||!n.fileObject||n.success||n.error||!n.active){s&&(clearInterval(s),s=!1);try{t.abort(),t.timeout=1}catch(t){}}},100);return new Promise(function(e,a){var r=void 0,l=function(o){if(!r){if(r=!0,s&&(clearInterval(s),s=!1),!(n=i.get(n)))return a("not_exists");if(!n.fileObject)return a("file_object");if(n.error)return a(n.error);if(!n.active)return a("abort");if(n.success)return e(n);var l={};switch(o.type){case"timeout":case"abort":l.error=o.type;break;case"error":t.status?t.status>=500?l.error="server":t.status>=400&&(l.error="denied"):l.error="network";break;default:t.status>=500?l.error="server":t.status>=400?l.error="denied":l.progress="100.00"}if(t.responseText){var p=t.getResponseHeader("Content-Type");p&&-1!==p.indexOf("/json")?l.response=JSON.parse(t.responseText):l.response=t.responseText}return n=i.update(n,l),n.error?a(n.error):e(n)}};t.onload=l,t.onerror=l,t.onabort=l,t.ontimeout=l,n.timeout&&(t.timeout=n.timeout);for(var p in n.headers)t.setRequestHeader(p,n.headers[p]);n=i.update(n,{xhr:t}),t.send(o)})},uploadHtml4:function(t){var e=this,o=t,i=function(t){27===t.keyCode&&t.preventDefault()},n=document.createElement("iframe");n.id="upload-iframe-"+o.id,n.name="upload-iframe-"+o.id,n.src="about:blank",n.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var a=document.createElement("form");a.action=o.postAction,a.name="upload-form-"+o.id,a.setAttribute("method","POST"),a.setAttribute("target","upload-iframe-"+o.id),a.setAttribute("enctype","multipart/form-data");var r=void 0,s=void 0;for(var l in o.data)r=o.data[l],r&&"object"===(void 0===r?"undefined":g(r))&&"function"!=typeof r.toString&&(r=JSON.stringify(r)),null!==r&&void 0!==r&&(s=document.createElement("input"),s.type="hidden",s.name=l,s.value=r,a.appendChild(s));a.appendChild(o.el),document.body.appendChild(n).appendChild(a);var p=function(){var t=void 0;try{n.contentWindow&&(t=n.contentWindow.document)}catch(t){}if(!t)try{t=n.contentDocument?n.contentDocument:n.document}catch(e){t=n.document}return t&&t.body?t.body.innerHTML:null};return new Promise(function(t,r){setTimeout(function(){if(!(o=e.update(o,{iframe:n})))return r("not_exists");var s=setInterval(function(){(o=e.get(o))&&o.fileObject&&!o.success&&!o.error&&o.active||(s&&(clearInterval(s),s=!1),n.onabort({type:o?"abort":"not_exists"}))},100),l=void 0,d=function(n){if(!l){if(l=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",i),!(o=e.get(o)))return r("not_exists");if(!o.fileObject)return r("file_object");if(o.error)return r(o.error);if(!o.active)return r("abort");if(o.success)return t(o);var a=p(),d={};switch(n.type){case"abort":d.error="abort";break;case"error":o.error?d.error=o.error:d.error=null===a?"network":"denied";break;default:o.error?d.error=o.error:null===d?d.error="network":d.progress="100.00"}if(null!==a){if(a&&"{"===a.substr(0,1)&&"}"===a.substr(a.length-1,1))try{a=JSON.parse(a)}catch(t){}d.response=a}return o=e.update(o,d),o.error?r(o.error):t(o)}};n.onload=d,n.onerror=d,n.onabort=d,document.body.addEventListener("keydown",i),a.submit()},50)}).then(function(t){return n.parentNode&&n.parentNode.removeChild(n),t}).catch(function(t){return n.parentNode&&n.parentNode.removeChild(n),t})},watchActive:function(t){for(var e=void 0,o=0;e=this.files[o];)if(o++,e.fileObject)if(t&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;e.active||e.error||e.success||this.update(e,{active:!0})}else e.active&&this.update(e,{active:!1});else;0===this.uploading&&(this.active=!1)},watchDrop:function(t){var e=t;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(t){}e?"string"==typeof e?e=document.querySelector(e)||this.$root.$el.querySelector(e):!0===e&&(e=this.$parent.$el):e=!1,this.dropElement=e,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(t){if(t.preventDefault(),!this.dropActive&&t.dataTransfer){var e=t.dataTransfer;e.files&&e.files.length?this.dropActive=!0:e.types?e.types.indexOf&&-1!==e.types.indexOf("Files")?this.dropActive=!0:e.types.contains&&e.types.contains("Files")&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(t){t.preventDefault(),this.dropActive&&("HTML"===t.target.nodeName||t.target===t.explicitOriginalTarget||!t.fromElement&&(t.clientX<=0||t.clientY<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(t){t.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(t){t.preventDefault(),this.addDataTransfer(t.dataTransfer)}}},w="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),k=document.head||document.getElementsByTagName("head")[0],_={},C=n,S=y,O=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("span",{class:t.className},[t._t("default"),t._v(" "),o("label",{attrs:{for:t.inputId||t.name}}),t._v(" "),o("input-file")],2)},z=[],A=function(t){t&&t("data-v-76d380b6_0",{source:".file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block}.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%}.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0}",map:void 0,media:void 0})},j=m({render:O,staticRenderFns:z},A,S,void 0,!1,void 0,C,void 0),$=Object.freeze({default:j});return function(t){return t&&t.default||t}($)})},function(t,e){t.exports='\n\t<div _v-73ff19ce="">\n\t\t<h4 _v-73ff19ce="">{{strings.add_desc}}</h4>\n\t\t<div class="field columns" _v-73ff19ce="">\n\t\t\t<div class="column" v-for="file in files" _v-73ff19ce="">\n <span class="tag" _v-73ff19ce="">\n <i _v-73ff19ce="">{{file.name}}</i>\n <i v-if="!file.active &amp;&amp; !file.success &amp;&amp; file.error === \'\'" class="dashicons dashicons-yes icon has-text-grey-light" _v-73ff19ce=""></i>\n <i v-else-if="file.active" class="dashicons dashicons-marker icon spin has-text-warning" _v-73ff19ce=""></i>\n <i v-else-if="!file.active &amp;&amp; file.success" class="dashicons dashicons-yes icon has-text-success" _v-73ff19ce=""></i>\n <i v-else="" class="dashicons dashicons-no-alt icon has-text-danger" _v-73ff19ce=""></i>\n </span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="column " _v-73ff19ce="">\n\t\t\t<file-upload class="button is-secondary is-rounded" :post-action=" global.root + \'/add_watermark\'" :headers="{\'X-WP-Nonce\': global.nonce}" extensions="gif,jpg,jpeg,png,webp" accept="image/png,image/gif,image/jpeg,image/webp" :size="1024 * 1024 * 10" v-model="files" @input-filter="inputFilter" @input-file="inputFile" :disabled="loading" ref="upload" _v-73ff19ce="">\n\t\t\t\t<i class="dashicons dashicons-plus icon" _v-73ff19ce=""></i>\n\t\t\t\t{{strings.upload}}\n\t\t\t</file-upload>\n\t\t\t<br _v-73ff19ce=""><br _v-73ff19ce=""><span class="tag is-danger" v-if="is_error" _v-73ff19ce="">{{error_message}}</span>\n\t\t</div>\n\t\t<hr _v-73ff19ce="">\n\t\t<div class="box" _v-73ff19ce="">\n\t\t\t<h3 _v-73ff19ce=""><span class="dashicons dashicons-menu" _v-73ff19ce=""></span> {{strings.list_header}} </h3>\n\t\t\t<small _v-73ff19ce=""><i _v-73ff19ce="">{{strings.max_allowed}}</i></small>\n\t\t\t\n\t\t\t<div class="optimized-images" _v-73ff19ce="">\n\t\t\t\t<div v-if="!noImages" _v-73ff19ce="">\n\t\t\t\t\t<h3 class="has-text-centered" _v-73ff19ce="">{{strings.last}} {{strings.optimized_images}}</h3>\n\t\t\t\t\t<table class="table is-striped is-hoverable is-fullwidth" _v-73ff19ce="">\n\t\t\t\t\t\t<thead _v-73ff19ce="">\n\t\t\t\t\t\t<tr _v-73ff19ce="">\n\t\t\t\t\t\t\t<th class="optml-image-heading" _v-73ff19ce="">{{strings.id}}</th>\n\t\t\t\t\t\t\t<th class="optml-image-heading" _v-73ff19ce="">{{strings.image}}</th>\n\t\t\t\t\t\t\t<th class="optml-image-heading" _v-73ff19ce="">{{strings.action}}</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t<tbody _v-73ff19ce="">\n\t\t\t\t\t\t<tr v-for="(item, index) in watermarkData" _v-73ff19ce="">\n\t\t\t\t\t\t\t<td _v-73ff19ce=""><code _v-73ff19ce="">#{{item.ID}}</code></td>\n\t\t\t\t\t\t\t<td _v-73ff19ce=""><img :src="item.guid" class="optml-image-watermark" width="50" _v-73ff19ce=""></td>\n\t\t\t\t\t\t\t<td width="50" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a @click="removeWatermark(item.ID)" class="button is-small is-danger is-rounded" :class="{\'is-loading\':loading}" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t<span class="dashicons dashicons-no-alt icon" _v-73ff19ce=""></span>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t\t\n\t\t\t\t\t<span class="tag is-success" v-if="loading" _v-73ff19ce="">\n\t\t\t\t\t{{strings.loading_remove_watermark}}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<table class="table is-striped is-hoverable is-fullwidth" v-if="noImages" _v-73ff19ce="">\n\t\t\t\t<thead _v-73ff19ce="">\n\t\t\t\t<tr _v-73ff19ce="">\n\t\t\t\t\t<th class="optml-image-heading has-text-centered" v-html="strings.no_images_found" _v-73ff19ce=""></th>\n\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t</table>\n\t\t\t<hr _v-73ff19ce="">\n\t\t\t<h3 _v-73ff19ce=""><span class="dashicons dashicons-grid-view" _v-73ff19ce=""></span> {{strings.settings_header}} </h3>\n\t\t\t<br _v-73ff19ce="">\n\t\t\t<div class="field is-fullwidth columns" _v-73ff19ce="">\n\t\t\t\t<label class="label is-half column has-text-grey-dark no-padding-right " _v-73ff19ce="">\n\t\t\t\t\t{{strings.wm_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.wm_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<div class="column is-paddingless" _v-73ff19ce="">\n\t\t\t\t\t<div class="columns" _v-73ff19ce="">\n\t\t\t\t\t\t<div class="field column is-narrow" _v-73ff19ce="">\n\t\t\t\t\t\t\t<div class="select" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<select title="Watermark Selection" v-model="selectedWatermark" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t<option value="-1" _v-73ff19ce="">No watermark</option>\n\t\t\t\t\t\t\t\t\t<option v-for="(item, index) in watermarkData" :value="item.ID" _v-73ff19ce="">#({{item.ID}})\n\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="field is-fullwidth columns" _v-73ff19ce="">\n\t\t\t\t<label class="label is-half column has-text-grey-dark no-padding-right " _v-73ff19ce="">\n\t\t\t\t\t{{strings.opacity_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.opacity_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<div class="column is-paddingless" _v-73ff19ce="">\n\t\t\t\t\t<div class="columns" _v-73ff19ce="">\n\t\t\t\t\t\t<div class="field column is-narrow has-addons" _v-73ff19ce="">\n\t\t\t\t\t\t\t<p class="control" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a class="button is-small is-static" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t{{strings.opacity_field}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class="control " _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<input v-model="watermarkOpacity" class="input is-small" type="number" min="0" max="100" _v-73ff19ce="">\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="field columns" _v-73ff19ce="">\n\t\t\t\t<label class="label column has-text-grey-dark" _v-73ff19ce="">\n\t\t\t\t\t{{strings.position_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.position_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t<div class="column buttons " _v-73ff19ce="">\n\t\t\t\t\t<div class="field columns is-gapless is-marginless " _v-73ff19ce="">\n\t\t\t\t\t\t<div class="is-fullwidth optml-layout-grid" _v-73ff19ce="">\n\t\t\t\t\t\t\t<a @click="changePosition(\'nowe\')" :class="{ \'is-info\':isActivePosition (\'nowe\'), \' is-selected\':watermarkSettings.position === \'nowe\' }" class="grid-button " :title="strings.pos_nowe_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'no\')" :class="{ \'is-info\':isActivePosition (\'no\'), \' is-selected\':watermarkSettings.position === \'no\' }" class="grid-button " :title="strings.pos_no_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'noea\')" :class="{ \'is-info\':isActivePosition (\'noea\'), \' is-selected\':watermarkSettings.position === \'noea\' }" class="grid-button" :title="strings.pos_noea_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'we\')" :class="{ \'is-info\':isActivePosition (\'we\'), \' is-selected\':watermarkSettings.position === \'we\' }" class="grid-button" :title="strings.pos_we_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'ce\')" :class="{ \'is-info\':isActivePosition (\'ce\'), \' is-selected\':watermarkSettings.position === \'ce\' }" class="grid-button" :title="strings.pos_ce_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'ea\')" :class="{ \'is-info\':isActivePosition (\'ea\'), \' is-selected\':watermarkSettings.position === \'ea\' }" class="grid-button" :title="strings.pos_ea_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'sowe\')" :class="{ \'is-info\':isActivePosition (\'sowe\'), \' is-selected\':watermarkSettings.position === \'sowe\' }" class="grid-button" :title="strings.pos_sowe_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'so\')" :class="{ \'is-info\':isActivePosition (\'so\'), \' is-selected\':watermarkSettings.position === \'so\' }" class="grid-button" :title="strings.pos_so_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<a @click="changePosition(\'soea\')" :class="{ \'is-info\':isActivePosition (\'soea\'), \' is-selected\':watermarkSettings.position === \'soea\' }" class="grid-button" :title="strings.pos_soea_title" _v-73ff19ce="">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<br _v-73ff19ce="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="field is-fullwidth columns " _v-73ff19ce="">\n\t\t\t\t<label class="label is-half column has-text-grey-dark no-padding-right " _v-73ff19ce="">\n\t\t\t\t\t{{strings.offset_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.offset_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<div class="column is-paddingless" _v-73ff19ce="">\n\t\t\t\t\t<div class="columns" _v-73ff19ce="">\n\t\t\t\t\t\t<div class="field column is-narrow has-addons" _v-73ff19ce="">\n\t\t\t\t\t\t\t<p class="control" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a class="button is-small is-static" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t{{strings.offset_x_field}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class="control " _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<input v-model="watermarkX" class="input is-tiny is-small" type="number" _v-73ff19ce="">\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="field column is-narrow has-addons" _v-73ff19ce="">\n\t\t\t\t\t\t\t<p class="control" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a class="button is-small is-static" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t{{strings.offset_y_field}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class="control " _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<input v-model="watermarkY" class="input is-small is-tiny" type="number" _v-73ff19ce="">\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="field is-fullwidth columns" _v-73ff19ce="">\n\t\t\t\t<label class="label is-half column has-text-grey-dark no-padding-right " _v-73ff19ce="">\n\t\t\t\t\t{{strings.scale_title}}\n\t\t\t\t\t<p class="is-italic has-text-weight-normal" _v-73ff19ce="">\n\t\t\t\t\t\t{{strings.scale_desc}}\n\t\t\t\t\t</p>\n\t\t\t\t</label>\n\t\t\t\t\n\t\t\t\t<div class="column is-paddingless" _v-73ff19ce="">\n\t\t\t\t\t<div class="columns" _v-73ff19ce="">\n\t\t\t\t\t\t<div class="field column is-narrow has-addons" _v-73ff19ce="">\n\t\t\t\t\t\t\t<p class="control" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<a class="button is-small is-static" _v-73ff19ce="">\n\t\t\t\t\t\t\t\t\t{{strings.scale_field}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p class="control " _v-73ff19ce="">\n\t\t\t\t\t\t\t\t<input v-model="watermarkScale" class="input is-small" type="number" min="0" max="100" _v-73ff19ce="">\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<p class="control column has-text-centered-desktop has-text-left-touch " _v-73ff19ce="">\n\t\t\t\t<a @click="saveChanges()" class="button is-small is-success " :class="{\'is-loading\':loading}" _v-73ff19ce="">\n\t\t\t\t\t<span class="dashicons dashicons-yes icon" _v-73ff19ce=""></span>\n\t\t\t\t\t<span _v-73ff19ce="">\t{{strings.save_changes}}</span>\n\t\t\t\t</a>\n\t\t\t</p>\n\t\t</div>\n\t</div>\n'},function(t,e,o){var i,n;o(108),i=o(110),n=o(127),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(109);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(13),a=i(n),r=o(123),s=i(r);e.default={name:"resize",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,size_width:"",size_height:"",crop:!1,showSave:!1,new_data:{}}},mounted:function(){},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})},addImageSize:function(){if(""!==this.size_height&&""!==this.size_width){var t="optimole_"+this.size_width+"_"+this.size_height+"_crop",e=(0,s.default)({},t,{width:this.size_width,height:this.size_height});this.$store.dispatch("saveSettings",{settings:{defined_image_sizes:e}})}},removeSize:function(t){var e=(0,s.default)({},t,"remove");this.$store.dispatch("saveSettings",{settings:{defined_image_sizes:e}})}},computed:{site_settings:function(){return this.$store.state.site_settings},sizes:function(){return this.$store.state.site_settings.defined_image_sizes},anySize:function(){return(0,a.default)(this.$store.state.site_settings.defined_image_sizes).length>0},widthStatus:{set:function(t){this.showSave=!0,this.new_data.max_width=t},get:function(){return this.site_settings.max_width}},heightStatus:{set:function(t){this.showSave=!0,this.new_data.max_height=t},get:function(){return this.site_settings.max_height}},resizeSmart:{set:function(t){this.showSave=!0,this.new_data.resize_smart=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.resize_smart)}},retinaReady:{set:function(t){this.showSave=!0,this.new_data.retina_images=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.retina_images)}}}}},function(t,e,o){o(112),t.exports=o(2).Object.keys},function(t,e,o){var i=o(23),n=o(24);o(118)("keys",function(){return function(t){return n(i(t))}})},function(t,e,o){var i=o(9),n=o(15),a=o(115)(!1),r=o(17)("IE_PROTO");t.exports=function(t,e){var o,s=n(t),l=0,p=[];for(o in s)o!=r&&i(s,o)&&p.push(o);for(;e.length>l;)i(s,o=e[l++])&&(~a(p,o)||p.push(o));return p}},function(t,e,o){var i=o(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,o){var i=o(15),n=o(116),a=o(117);t.exports=function(t){return function(e,o,r){var s,l=i(e),p=n(l.length),d=a(r,p);if(t&&o!=o){for(;p>d;)if((s=l[d++])!=s)return!0}else for(;p>d;d++)if((t||d in l)&&l[d]===o)return t||d||0;return!t&&-1}}},function(t,e,o){var i=o(16),n=Math.min;t.exports=function(t){return t>0?n(i(t),9007199254740991):0}},function(t,e,o){var i=o(16),n=Math.max,a=Math.min;t.exports=function(t,e){return t=i(t),t<0?n(t+e,0):a(t,e)}},function(t,e,o){var i=o(18),n=o(2),a=o(20);t.exports=function(t,e){var o=(n.Object||{})[t]||Object[t],r={};r[t]=e(o),i(i.S+i.F*a(function(){o(1)}),"Object",r)}},function(t,e,o){var i=o(120);t.exports=function(t,e,o){if(i(t),void 0===e)return t;switch(o){case 1:return function(o){return t.call(e,o)};case 2:return function(o,i){return t.call(e,o,i)};case 3:return function(o,i,n){return t.call(e,o,i,n)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,o){t.exports=!o(7)&&!o(20)(function(){return 7!=Object.defineProperty(o(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,o){var i=o(19);t.exports=function(t,e){if(!i(t))return t;var o,n;if(e&&"function"==typeof(o=t.toString)&&!i(n=o.call(t)))return n;if("function"==typeof(o=t.valueOf)&&!i(n=o.call(t)))return n;if(!e&&"function"==typeof(o=t.toString)&&!i(n=o.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},function(t,e,o){"use strict";e.__esModule=!0;var i=o(124),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,o){return e in t?(0,n.default)(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}},function(t,e,o){t.exports={default:o(125),__esModule:!0}},function(t,e,o){o(126);var i=o(2).Object;t.exports=function(t,e,o){return i.defineProperty(t,e,o)}},function(t,e,o){var i=o(18);i(i.S+i.F*!o(7),"Object",{defineProperty:o(10).f})},function(t,e){t.exports='\n <div :class="{ \'saving--option\' : this.$store.state.loading }" _v-549159be="">\n <div class="field columns" _v-549159be="">\n <label class="label column has-text-grey-dark optml-custom-label-margin" _v-549159be="">\n {{strings.enable_resize_smart_title}}\n <p class="optml-settings-desc-margin has-text-weight-normal" _v-549159be="">\n {{strings.enable_resize_smart_desc}}\n </p>\n </label>\n <div class="column is-1" _v-549159be="">\n <toggle-button :class="\'has-text-dark\'" v-model="resizeSmart" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-549159be=""></toggle-button>\n </div>\n\n </div>\n <hr _v-549159be="">\n <div class="field columns" _v-549159be="">\n <label class="label column has-text-grey-dark optml-custom-label-margin" _v-549159be="">\n {{strings.enable_retina_title}}\n <p class="optml-settings-desc-margin has-text-weight-normal" _v-549159be="">\n {{strings.enable_retina_desc}}\n </p>\n </label>\n <div class="column is-1" _v-549159be="">\n <toggle-button :class="\'has-text-dark\'" v-model="retinaReady" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-549159be=""></toggle-button>\n </div>\n\n </div>\n <hr _v-549159be="">\n <div class="field columns" _v-549159be="">\n\n <div class="columns" style="width: 100%;margin-left: 3px;" _v-549159be="">\n <div class="optml-fill-container" _v-549159be="">\n <div class="field " _v-549159be="">\n <label class="label column has-text-grey-dark" style="margin:2% 0;" _v-549159be="">\n <span _v-549159be=""> {{this.strings.add_image_size_desc}} </span>\n </label>\n <label class="label column " _v-549159be="">\n <p class="has-text-weight-normal optml-restore-notice-background" style="padding: 2%;" _v-549159be="">{{strings.image_size_notice}}</p>\n </label>\n <div class="fields column optml-light-background" style="padding: 1% 5%; margin: 0 1%;" _v-549159be="">\n <div class="field has-addons column has-addons-centered optml-filters-content" _v-549159be="">\n <p class="optml-fill-container has-text-centered" _v-549159be="">\n\n <input v-model="size_width" class="optml-textarea optml-text-input-border optml-fill-container has-text-left" type="number" min="1" :placeholder="this.strings.width_field" _v-549159be="">\n </p>\n\n <p class="optml-fill-container has-text-centered" style="margin-left: 5%;" _v-549159be="">\n\n <input v-model="size_height" class="optml-textarea optml-text-input-border optml-fill-container has-text-left" type="number" min="1" :placeholder="this.strings.height_field" _v-549159be="">\n </p>\n\n\n <div class="button optml-button-style-1 optml-fit-content" style="margin: 0 0 0 4%;" :class="this.$store.state.loading ? \'is-loading\' : \'\' " @click="addImageSize" _v-549159be="">\n {{this.strings.add_image_size_button}}\n </div>\n\n </div>\n </div>\n </div>\n\n <div v-if="anySize" class="label column has-text-grey-dark" style="white-space: nowrap;" _v-549159be=""> {{strings.image_sizes_title}}: </div>\n <div class="column is-full optml-fill-container" _v-549159be="">\n <div class=" exclusion-filter" v-for="(item, index) in sizes" style="margin-bottom: 2%;" _v-549159be="">\n <div _v-549159be="">\n <div class="tags has-addons" _v-549159be="">\n <div class="tag optml-light-background is-marginless is-link has-text-left" style="width: 97.8%;" _v-549159be=""><p v-html="strings.name" _v-549159be=""></p>\n &nbsp;{{index}} &nbsp;&nbsp;&nbsp;&nbsp; <strong _v-549159be="">{{strings.width_field}}</strong> : {{sizes[index].width}} &nbsp;&nbsp;&nbsp;&nbsp; <strong _v-549159be="">{{strings.height_field}}</strong> : {{sizes[index].height}}\n <a @click="removeSize(index)" _v-549159be="">\n <svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-549159be="">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-549159be=""></path>\n </svg>\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n\n <hr _v-549159be="">\n <div class="field columns optml-flex-column" style="align-content: center;justify-content: center;" _v-549159be="">\n <label class="label column has-text-grey-dark no-padding-right optml-custom-label-margin" _v-549159be="">\n {{strings.size_title}}\n <p class="optml-settings-desc-margin has-text-weight-normal" _v-549159be="">\n {{strings.size_desc}}\n </p>\n </label>\n\n <div class="column is-6 " _v-549159be="">\n <div class="columns" _v-549159be="">\n <div class="field column is-narrow has-addons" style="align-items: center;" _v-549159be="">\n\n <p class="optml-custom-label-margin" _v-549159be="">\n {{strings.width_field}}\n </p>\n\n <input v-model="widthStatus" class="optml-textarea" type="number" min="100" max="10000" _v-549159be="">\n\n </div>\n <div class="field column is-narrow has-addons" style="align-items: center; margin-bottom: 0.75rem;" _v-549159be="">\n <p class="optml-custom-label-margin" _v-549159be="">\n {{strings.height_field}}\n </p>\n\n <input class="optml-textarea" v-model="heightStatus" type="number" min="100" max="10000" _v-549159be="">\n </div>\n </div>\n </div>\n </div>\n\n <div class="field is-fullwidth columns " _v-549159be="">\n <div class="column is-left" _v-549159be="">\n <button @click="saveChanges()" class="button optml-button-style-1 " :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-549159be="">\n {{strings.save_changes}}\n </button>\n </div>\n </div>\n\n </div>\n'},function(t,e,o){var i,n;o(129),i=o(131),n=o(137),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(130);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(132),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"exclusions",components:{FilterControl:n.default},data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,new_data:{}}},mounted:function(){},methods:{},computed:{site_settings:function(){return this.$store.state.site_settings}}}},function(t,e,o){var i,n;o(133),i=o(135),n=o(136),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(134);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(13),a=i(n),r=o(5);i(r);e.default={name:"filter-control",props:["type"],data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,selected_filter:"filename",selected_value:"",selected_url_match_type:"contains",filter_operator:optimoleDashboardApp.strings.options_strings.filter_operator_contains,FILTER_TYPES:{EXT:"extension",URL:"page_url",URL_MATCH:"page_url_match",FILENAME:"filename",CLASS:"class"}}},mounted:function(){},methods:{saveRule:function(){var t={};this.selected_filter===this.FILTER_TYPES.URL&&"matches"===this.selected_url_match_type&&(this.selected_filter=this.FILTER_TYPES.URL_MATCH),t[this.type]={},t[this.type][this.selected_filter]={},t[this.type][this.selected_filter][this.selected_value]=!0,this.selected_value.length<3||this.$store.dispatch("saveSettings",{settings:{filters:t}})},removeRule:function(t,e){var o={};o[this.type]={},o[this.type][t]={},o[this.type][t][e]="false",this.$store.dispatch("saveSettings",{settings:{filters:o}})},changeFilterType:function(t){this.selected_value="",t.target.value===this.FILTER_TYPES.EXT&&(this.selected_value="svg",this.filter_operator=this.strings.filter_operator_is),t.target.value===this.FILTER_TYPES.FILENAME&&(this.filter_operator=this.strings.filter_operator_contains),t.target.value===this.FILTER_TYPES.CLASS&&(this.filter_operator=this.strings.filter_operator_contains),this.selected_filter=t.target.value},getFilterOperator:function(){return this.filter_operator}},computed:{filters:function(){return this.$store.state.site_settings.filters[this.type]},anyFilter:function(){return(0,a.default)(this.filters[this.FILTER_TYPES.EXT]).length>0||(0,a.default)(this.filters[this.FILTER_TYPES.CLASS]).length>0||(0,a.default)(this.filters[this.FILTER_TYPES.URL]).length>0||(0,a.default)(this.filters[this.FILTER_TYPES.FILENAME]).length>0}}}},function(t,e){t.exports='\n\t\t<div :id="\'filter-type-\'+type" class="optml-fill-container" _v-27af7d12="">\n\t\t\t\t<div class="field " _v-27af7d12="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark" _v-27af7d12="">\n\t\t\t\t\t\t\t\t<span v-if="type===\'lazyload\'" _v-27af7d12="">{{strings.exclude_title_lazyload}}</span>\n\t\t\t\t\t\t\t\t<span v-if="type===\'optimize\'" _v-27af7d12="">{{strings.exclude_title_optimize}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t\t<div class="field columns optml-light-background" style="padding: 1% 5%;" _v-27af7d12="">\n\t\t\t\t\t\t<div class="field has-addons column has-addons-centered optml-filters-content" _v-27af7d12="">\n\t\t\t\t\t\t\t\t<p _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select @change="changeFilterType($event)" class="optml-text-input-border" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option :value="FILTER_TYPES.FILENAME" _v-27af7d12="">{{strings.filter_filename}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option :value="FILTER_TYPES.EXT" _v-27af7d12="">{{strings.filter_ext}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option :value="FILTER_TYPES.URL" _v-27af7d12="">{{strings.filter_url}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option :value="FILTER_TYPES.CLASS" _v-27af7d12="">{{strings.filter_class}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<p style="margin-left: 2.5%;" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if="this.selected_filter===this.FILTER_TYPES.URL" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select v-model="selected_url_match_type" class="optml-text-input-border" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="contains" _v-27af7d12="">{{this.strings.filter_operator_contains}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="matches" _v-27af7d12="">{{this.strings.filter_operator_matches}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-else="" _v-27af7d12="">{{getFilterOperator()}}</span>\n\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<p class="optml-fill-container has-text-centered" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if="this.selected_filter===this.FILTER_TYPES.EXT" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select v-model="selected_value" class="optml-text-input-border" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="svg" _v-27af7d12="">.SVG</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="jpg" _v-27af7d12="">.JPG</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="png" _v-27af7d12="">.PNG</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="gif" _v-27af7d12="">.GIF</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<input v-else="" v-model="selected_value" class="optml-textarea optml-text-input-border optml-fill-container has-text-left" type="text" :placeholder="this.selected_url_match_type === \'matches\' ? \'path\' : \'word\'" _v-27af7d12="">\n\t\t\t\t\t\t\t\t</p>\n\n\t\t\t\t\t\t\t\t\t\t<div class="button optml-button-style-1 optml-fit-content" style="margin: 0 0 0 4%;" :class="this.$store.state.loading ? \'is-loading\' : \'\' " @click="saveRule()" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t{{strings.add_filter}}\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<p class="has-text-centered " v-if="this.selected_filter === FILTER_TYPES.URL" _v-27af7d12="">\n\t\t\t\t\t\t<i _v-27af7d12="">For homepage use <strong _v-27af7d12="">home</strong> keyword.</i>\n\t\t\t\t</p>\n\t\t\t<div class="field columns optml-flex-column" style="margin-top: 4%;" _v-27af7d12="">\n\t\t\t\t<div v-if="anyFilter" class="optml-gray has-text-weight-bold" style="white-space: nowrap;" _v-27af7d12=""> {{strings.active_exclusions}}: </div>\n\t\t\t\t<div class="column is-paddingless is-full optml-fill-container" _v-27af7d12="">\n\t\t\t\t\t<div class="list" style="margin-top: 4%;" _v-27af7d12="">\n\t\t\t\t\t\t<div class=" exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.EXT]" _v-27af7d12="">\n\t\t\t\t\t\t\t<div _v-27af7d12="">\n\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_ext_desc" _v-27af7d12=""></p>\n\t\t\t\t\t\t\t\t\t\t&nbsp;<strong _v-27af7d12="">{{index}}</strong>\n\t\t\t\t\t\t\t\t\t\t<a @click="removeRule(FILTER_TYPES.EXT,index)" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=" exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.URL]" _v-27af7d12="">\n\t\t\t\t\t\t\t<div _v-27af7d12="">\n\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_url_desc" _v-27af7d12=""></p>\n\t\t\t\t\t\t\t\t\t\t&nbsp;<strong _v-27af7d12="">{{index}}</strong>\n\t\t\t\t\t\t\t\t\t\t<a @click="removeRule(FILTER_TYPES.URL,index)" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n <div class=" exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.URL_MATCH]" _v-27af7d12="">\n <div _v-27af7d12="">\n <div class="tags has-addons" _v-27af7d12="">\n <div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_url_match_desc" _v-27af7d12=""></p>\n &nbsp;<strong _v-27af7d12="">{{index}}</strong>\n <a @click="removeRule(FILTER_TYPES.URL_MATCH,index)" _v-27af7d12="">\n <svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n </svg>\n </a>\n </div>\n\n </div>\n </div>\n </div>\n\t\t\t\t\t\t<div class="exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.FILENAME]" _v-27af7d12="">\n\t\t\t\t\t\t\t<div _v-27af7d12="">\n\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_filename_desc" _v-27af7d12=""></p>\n\t\t\t\t\t\t\t\t\t\t&nbsp;<strong _v-27af7d12="">{{index}}</strong>\n\t\t\t\t\t\t\t\t\t\t<a @click="removeRule(FILTER_TYPES.FILENAME,index)" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t</a>\n\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="exclusion-filter" v-for="(item, index) in filters[this.FILTER_TYPES.CLASS]" _v-27af7d12="">\n\t\t\t\t\t\t\t<div _v-27af7d12="">\n\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-marginless is-link has-text-left" _v-27af7d12=""><p v-html="strings.exclude_class_desc" _v-27af7d12=""></p>\n\t\t\t\t\t\t\t\t\t\t&nbsp;<strong _v-27af7d12="">{{index}}</strong>\n\t\t\t\t\t\t\t\t\t\t<a @click="removeRule(FILTER_TYPES.CLASS,index)" _v-27af7d12=""><svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-27af7d12="">\n\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-27af7d12=""></path>\n\t\t\t\t\t\t\t\t\t\t</svg>\n\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t</div>\n\t\t</div>\n'},function(t,e){t.exports='\n <div :class="{ \'saving--option\' : this.$store.state.loading }" _v-44e22022="">\n <div id="filters-list" _v-44e22022="">\n <div class="columns " _v-44e22022="">\n <filter-control :type="\'optimize\'" _v-44e22022=""></filter-control>\n </div>\n\t <hr _v-44e22022="">\n <div class="columns " v-if="this.$store.state.site_settings.lazyload === \'enabled\'" _v-44e22022="">\n <filter-control :type="\'lazyload\'" _v-44e22022=""></filter-control>\n </div>\n </div>\n\n </div>\n'},function(t,e,o){var i,n;o(139),i=o(141),n=o(142),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(140);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"lazyload",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,showBgSelectors:"enabled"===this.$store.state.site_settings.bg_replacer,new_data:{},selectedValue:this.$store.state.site_settings.skip_lazyload_images}},mounted:function(){},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})},changedValue:function(){this.new_data.skip_lazyload_images=this.selectedValue,this.showSave=!0}},computed:{site_settings:function(){return this.$store.state.site_settings},lazyloadPlaceholder:{set:function(t){this.showSave=!0,this.new_data.lazyload_placeholder=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.lazyload_placeholder)}},lazyloadBgImages:{set:function(t){this.showSave=!0,this.new_data.bg_replacer=t?"enabled":"disabled",this.showBgSelectors=t},get:function(){return!("disabled"===this.site_settings.bg_replacer)}},lazyloadVideo:{set:function(t){this.showSave=!0,this.new_data.video_lazyload=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.video_lazyload)}},lazyloadSelectors:{set:function(t){this.showSave=!0,this.new_data.watchers=t},get:function(){return this.site_settings.watchers}},scaleStatus:{set:function(t){this.showSave=!0,this.new_data.scale=t?"disabled":"enabled"},get:function(){return"disabled"===this.site_settings.scale}},nativeLazyStatus:{set:function(t){this.showSave=!0,this.new_data.native_lazyload=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.native_lazyload)}}}}},function(t,e){t.exports='\n\t\t<div :class="{ \'saving--option\' : this.$store.state.loading }" _v-c274b838="">\n\t\t\t\t<div class="field columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.enable_lazyload_placeholder_title}}\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.enable_lazyload_placeholder_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class="column is-1" _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="lazyloadPlaceholder" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\n\t\t\t\t<div class="field columns optml-flex-column" _v-c274b838="">\n\t\t\t\t\t<label class="label column optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t{{strings.exclude_first_images_title}}\n\n\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t{{strings.exclude_first_images_desc}}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</label>\n\n\t\t\t\t\t<div class="column optml-custom-label-margin" _v-c274b838="">\n\n\t\t\t\t\t\t\t{{strings.exclude_first}} <div style="display: inline-block; margin: 0 0.7%;" _v-c274b838=""><input v-model="selectedValue" style="width: 6ch; " class="optml-textarea" type="number" min="0" @change="changedValue" _v-c274b838=""></div> {{strings.images}}\n\n\n\t\t\t\t\t</div>\n\n\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t\x3c!--Native lazy toggle--\x3e\n\t\t\t\t<div class="field is-fullwidth columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.toggle_native}}\n\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.native_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\n\t\t\t\t\t\t<div class="column is-1 " _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="nativeLazyStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t<div class="field is-fullwidth columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.toggle_scale}}\n\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.scale_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\n\t\t\t\t\t\t<div class="column is-1 " _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="scaleStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t<div class="field columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.enable_bg_lazyload_title}}\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.enable_bg_lazyload_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class="column is-1" _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="lazyloadBgImages" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t\x3c!--Video lazyload toggle--\x3e\n\t\t\t\t<div class="field columns" _v-c274b838="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t{{strings.enable_video_lazyload_title}}\n\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.enable_video_lazyload_desc}}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class="column is-1" _v-c274b838="">\n\t\t\t\t\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="lazyloadVideo" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c274b838=""></toggle-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n <hr _v-c274b838="">\n\t\t\t\t<div class="field columns" v-if="showBgSelectors" _v-c274b838="">\n\t\t\t\t\t\t<div class="column" _v-c274b838="">\n\t\t\t\t\t\t\t\t<label class="label has-text-grey-dark optml-custom-label-margin" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t<span _v-c274b838="">{{strings.watch_title_lazyload}}</span>\n\t\t\t\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t\t\t{{strings.watch_desc_lazyload}}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t<div _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t<textarea-autosize class="textarea is-secondary is-small" placeholder="e.g: .image, #item-id, div.with-background-image" v-model="lazyloadSelectors" :min-height="3" :max-height="350" _v-c274b838=""></textarea-autosize>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div class="field is-fullwidth columns " _v-c274b838="">\n\t\t\t\t\t\t<div class="column is-left" _v-c274b838="">\n\t\t\t\t\t\t\t\t<button @click="saveChanges()" class="button optml-button-style-1" :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-c274b838="">\n\t\t\t\t\t\t\t\t\t\t{{strings.save_changes}}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t</div>\n'},function(t,e,o){var i,n;o(144),i=o(146),n=o(164),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(145);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\nbutton[_v-56984240]:disabled {\n\topacity: 0.5;\n}\n",""])},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(13),a=i(n),r=o(147),s=i(r);e.default={name:"media",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,conflictStrings:optimoleDashboardApp.strings.conflicts,all_strings:optimoleDashboardApp.strings,maxTime:100,showSave:!1,showOffloadDisabled:!1,showOffloadEnabled:!1,showConflictNotice:!1,offloadDisableOptions:[],select_rollback:"yes_rollback",is_loading:!1,new_data:{}}},mounted:function(){Object.prototype.hasOwnProperty.call(this.$store.state.queryArgs,"optimole_action")&&this.callSync(this.$store.state.queryArgs.optimole_action,this.$store.state.queryArgs.images)},methods:{selectValue:function(t){this.showSave=!0,this.select_rollback=t.target.value},changeSite:function(t){this.selected_site=t.target.value},saveSite:function(){var t={all:!0};void 0!==this.selected_site&&(t.all=!1,t[this.selected_site]=!0),this.$store.dispatch("saveSettings",{settings:{cloud_sites:t}})},callSync:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";if("rollback_images"===t){this.$store.commit("toggleCheckedOffloadConflicts",!1),this.$store.commit("updateOffloadConflicts",{body:{data:[]}}),this.$store.dispatch("getOffloadConflicts");var o=setInterval(function(i){!0===i.$store.state.checkedOffloadConflicts&&(0===i.$store.state.offloadConflicts.length?(i.$store.state.errorMedia=!1,i.$store.dispatch("callSync",{action:t,images:e})):i.showConflictNotice=!0,clearInterval(o))},1e3,this)}else this.$store.state.errorMedia=!1,this.$store.dispatch("callSync",{action:t,images:e})},dismissOffloadConflicts:function(){this.is_loading=!0,this.$store.commit("toggleCheckedOffloadConflicts",!1),this.showConflictNotice=!1,this.is_loading=!1},saveChanges:function(){this.showOffloadEnabled=!1,this.showOffloadDisabled&&"yes_rollback"===this.select_rollback&&(this.callSync("rollback_images"),this.select_rollback="no_rollback"),this.showOffloadDisabled=!1,this.$store.dispatch("saveSettings",{settings:this.new_data})},removeSite:function(t){var e={};e[t]=!1,1===this.cloud_sites.length&&(e.all=!0),this.$store.dispatch("saveSettings",{settings:{cloud_sites:e}})}},computed:{site_settings:function(){return this.$store.state.site_settings},showConflictNotice:function(){return this.showConflictNotice},getOffloadConflicts:function(){return this.$store.state.offloadConflicts},sites:function(){return this.$store.state.site_settings.whitelist_domains},cloud_sites:function(){var t=[],e=this.$store.state.site_settings.cloud_sites,o=!0,i=!1,n=void 0;try{for(var r,l=(0,s.default)((0,a.default)(e));!(o=(r=l.next()).done);o=!0){var p=r.value;if("true"===e[p]&&(t.push(p),"all"===p))return t}}catch(t){i=!0,n=t}finally{try{!o&&l.return&&l.return()}finally{if(i)throw n}}return t},offloadMediaStatus:{set:function(t){this.showSave=!0,this.new_data.offload_media=t?"enabled":"disabled",this.showOffloadDisabled="enabled"===this.site_settings.offload_media&&!t,this.showOffloadEnabled="disabled"===this.site_settings.offload_media&&!!t},get:function(){return!("disabled"===this.site_settings.offload_media)}},cloudImagesStatus:{set:function(t){this.showSave=!0,this.new_data.cloud_images=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.cloud_images)}}}}},function(t,e,o){t.exports={default:o(148),__esModule:!0}},function(t,e,o){o(149),o(159),t.exports=o(161)},function(t,e,o){o(150);for(var i=o(3),n=o(6),a=o(12),r=o(4)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var p=s[l],d=i[p],c=d&&d.prototype;c&&!c[r]&&n(c,r,p),a[p]=a.Array}},function(t,e,o){"use strict";var i=o(151),n=o(152),a=o(12),r=o(15);t.exports=o(32)(Array,"Array",function(t,e){this._t=r(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,o=this._i++;return!t||o>=t.length?(this._t=void 0,n(1)):"keys"==e?n(0,o):"values"==e?n(0,t[o]):n(0,[o,t[o]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,o){t.exports=o(6)},function(t,e,o){"use strict";var i=o(155),n=o(31),a=o(33),r={};o(6)(r,o(4)("iterator"),function(){return this}),t.exports=function(t,e,o){t.prototype=i(r,{next:n(1,o)}),a(t,e+" Iterator")}},function(t,e,o){var i=o(11),n=o(156),a=o(29),r=o(17)("IE_PROTO"),s=function(){},l=function(){var t,e=o(30)("iframe"),i=a.length;for(e.style.display="none",o(157).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[a[i]];return l()};t.exports=Object.create||function(t,e){var o;return null!==t?(s.prototype=i(t),o=new s,s.prototype=null,o[r]=t):o=l(),void 0===e?o:n(o,e)}},function(t,e,o){var i=o(10),n=o(11),a=o(24);t.exports=o(7)?Object.defineProperties:function(t,e){n(t);for(var o,r=a(e),s=r.length,l=0;s>l;)i.f(t,o=r[l++],e[o]);return t}},function(t,e,o){var i=o(3).document;t.exports=i&&i.documentElement},function(t,e,o){var i=o(9),n=o(23),a=o(17)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=n(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,e,o){"use strict";var i=o(160)(!0);o(32)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,o=this._i;return o>=e.length?{value:void 0,done:!0}:(t=i(e,o),this._i+=t.length,{value:t,done:!1})})},function(t,e,o){var i=o(16),n=o(14);t.exports=function(t){return function(e,o){var a,r,s=String(n(e)),l=i(o),p=s.length;return l<0||l>=p?t?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===p||(r=s.charCodeAt(l+1))<56320||r>57343?t?s.charAt(l):a:t?s.slice(l,l+2):r-56320+(a-55296<<10)+65536)}}},function(t,e,o){var i=o(11),n=o(162);t.exports=o(2).getIterator=function(t){var e=n(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,o){var i=o(163),n=o(4)("iterator"),a=o(12);t.exports=o(2).getIteratorMethod=function(t){if(void 0!=t)return t[n]||t["@@iterator"]||a[i(t)]}},function(t,e,o){var i=o(25),n=o(4)("toStringTag"),a="Arguments"==i(function(){return arguments}()),r=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,o,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=r(e=Object(t),n))?o:a?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports='\n\t<div _v-56984240="">\n\t\t\x3c!-- Show media cloud toggle--\x3e\n\t\t<div class="field columns" _v-56984240="">\n\t\t\t<label class="label column has-text-grey-dark" _v-56984240="">\n\t\t\t\t{{strings.enable_cloud_images_title}}\n\n\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" v-html="strings.enable_cloud_images_desc" _v-56984240="">\n\t\t\t\t</p>\n\t\t\t</label>\n\n\t\t\t<div class="column is-1 " _v-56984240="">\n\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="cloudImagesStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-56984240=""></toggle-button>\n\t\t\t</div>\n\t\t</div>\n\t\t<hr _v-56984240="">\n\t\t\x3c!--Sites select--\x3e\n\t\t<div id="filters-list" v-if="this.site_settings.cloud_images === \'enabled\'" _v-56984240="">\n\t\t\t<div class="columns " _v-56984240="">\n\t\t\t\t<div _v-56984240="">\n\n\t\t\t\t\t<div class="field columns " _v-56984240="">\n\t\t\t\t\t\t<div class="field has-addons column has-addons-centered optml-fit-content optml-flex-column" _v-56984240="">\n\t\t\t\t\t\t<label class="label column has-text-grey-dark no-padding-right " _v-56984240="">\n\t\t\t\t\t\t\t{{strings.cloud_site_title}}\n\t\t\t\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t\t\t\t{{strings.cloud_site_desc}}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</label>\n\n\t\t\t\t\t\t<div class="column is-6 optml-fit-content" style="margin-left: 2%;" _v-56984240="">\n\t\t\t\t\t\t\t<div class="field columns optml-light-background optml-fit-content" style="min-width: 450px; padding: 1% 2%;" _v-56984240="">\n\t\t\t\t\t\t\t\t<div class="field has-addons column has-addons-centered optml-filters-content" _v-56984240="">\n\t\t\t\t\t\t\t\t\t<p _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select @change="changeSite($event)" class="optml-text-input-border" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <option value="all" disabled="" selected="" _v-56984240="">{{strings.select_site}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <option v-for="site in sites" :value="site" _v-56984240="">{{site}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</p>\n\n\n\n\t\t\t\t\t\t\t\t\t<div class="optml-button optml-fit-content" style="background-color: #577BF9; position: relative; white-space: nowrap; height: fit-content; padding: 1.4%;color: white;margin: 0 0 0 4%;" :class="this.$store.state.loading ? \'is-loading\' : \'\' " @click="saveSite()" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t{{strings.add_site}}\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="field columns optml-flex-column" style="margin-top: 4%;" _v-56984240="">\n\t\t\t\t\t\t\t\t<div v-if="cloud_sites.length > 0" class="optml-gray has-text-weight-bold field" style="white-space: nowrap; margin-left: 2%; font-size: 0.75rem;" _v-56984240=""> {{strings.selected_sites_title}}: </div>\n\n\t\t\t\t\t\t\t\t<div class="column is-paddingless is-full" _v-56984240="">\n\t\t\t\t\t\t\t\t\t<div class="list" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t<div class="exclusion-filter" style="margin-bottom: 2% !important;" v-for="site in cloud_sites" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t<div _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="tags has-addons" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tag optml-light-background is-link has-text-left" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{site}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a @click="removeSite(site)" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="13" height="16" viewBox="0 0 13 16" fill="none" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2H12C12.6 2 13 2.4 13 3V4H0V3C0 2.4 0.5 2 1 2H4C4.2 0.9 5.3 0 6.5 0C7.7 0 8.8 0.9 9 2ZM8 2C7.8 1.4 7.1 1 6.5 1C5.9 1 5.2 1.4 5 2H8ZM11.1 15.1L12 5H1L1.9 15.1C2 15.6 2.4 16 2.9 16H10.1C10.6 16 11.1 15.6 11.1 15.1Z" fill="#757296" _v-56984240=""></path>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t </div>\n\n\n\n\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t<hr _v-56984240="">\n\t\t</div>\n\n\n\t\t\x3c!-- Show offload media toggle--\x3e\n\t\t<div class="field columns" _v-56984240="">\n\t\t\t<label class="label column has-text-grey-dark" _v-56984240="">\n\t\t\t\t{{strings.enable_offload_media_title}}\n\n\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t{{strings.enable_offload_media_desc}}\n\t\t\t\t</p>\n\t\t\t</label>\n\n\t\t\t<div class="column is-1 " _v-56984240="">\n\t\t\t\t<toggle-button :class="\'has-text-dark\'" v-model="offloadMediaStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-56984240=""></toggle-button>\n\t\t\t</div>\n\n\t\t</div>\n\n\n\n\t\t\x3c!--Rollback on disable notice--\x3e\n\t\t<div class="field columns optml-flex-column optml-restore-notice-background" v-if="this.showOffloadDisabled" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\t\t\t\t<div style="margin-bottom: 2%;" _v-56984240="">\n\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" _v-56984240="">\n\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C12.42 0 16 3.58 16 8C16 12.42 12.42 16 8 16C3.58 16 0 12.42 0 8C0 3.58 3.58 0 8 0ZM9.64527 9L10 3H7L7.35473 9H9.64527ZM10 11.5115C10 11.9809 9.86364 12.3473 9.61189 12.6107C9.34965 12.874 8.98252 13 8.51049 13C8.03846 13 7.67133 12.874 7.3986 12.6107C7.13636 12.3473 7 11.9809 7 11.5115C7 11.0305 7.12587 10.6641 7.38811 10.4008C7.65035 10.1374 8.01748 10 8.51049 10C9.0035 10 9.37063 10.1374 9.62238 10.4008C9.87413 10.6641 10 11.0305 10 11.5115Z" fill="#282828" _v-56984240=""></path>\n\t\t\t\t\t</svg>\n\t\t\t\t\t{{strings.offload_disable_warning_title}}\n\t\t\t\t</div>\n\n\n\t\t\t\t<p class="has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t{{strings.offload_disable_warning_desc}}\n\t\t\t\t</p>\n\t\t\t</label>\n\n\t\t\t<div class="column is-3 " style="padding-top:0; margin-top: -1%; " _v-56984240="">\n\t\t\t\t<p class="control " _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="select is-small" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select @change="selectValue($event)" class="optml-text-input-border" _v-56984240="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option selected="" value="yes_rollback" _v-56984240="">{{strings.yes}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="no_rollback" _v-56984240="">{{strings.no}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t</p>\n\t\t\t</div>\n\n\t\t</div>\n\n\n\t\t\x3c!--Offload on enable notice--\x3e\n\t\t<div class="field columns optml-flex-column optml-restore-notice-background" v-if="this.showOffloadEnabled" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\n\n\t\t\t\t<p class="has-text-weight-normal" v-html="strings.offload_enable_info_desc" _v-56984240="">\n\n\t\t\t\t</p>\n\t\t\t</label>\n\n\t\t</div>\n\t\t<hr _v-56984240="">\n\n\t\t\x3c!-- Sync Media button --\x3e\n\t\t<div :class="{ \'saving--option\' : this.$store.state.loading }" class="field is-fullwidth columns " v-if="this.site_settings.offload_media===\'enabled\'" _v-56984240="">\n\t\t\t<label class="label column has-text-grey-dark" _v-56984240="">\n\t\t\t\t{{strings.sync_title}}\n\n\t\t\t\t<p class="optml-settings-desc-margin has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t{{strings.sync_desc}}\n\t\t\t\t</p>\n\t\t\t</label>\n\t\t\t<div class="column is-2 is-right" style="position: relative;" _v-56984240="">\n\t\t\t\t<button @click="callSync(\'offload_images\')" class="optml-button is-small optml-button-page-position " :class="this.$store.state.loadingSync ? \'is-loading\' : \'\' " :disabled="this.$store.state.loadingRollback || this.$store.state.loadingSync" _v-56984240="">\n\t\t\t\t\t{{strings.sync_media}}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\n\n\t\t<div class="field columns optml-light-background" v-if="this.$store.state.loadingSync" _v-56984240="">\n\t\t\t<div class="column optml-media-progress-labels" _v-56984240="">\n\n\t\t\t\t<label class="label has-text-grey-dark" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.sync_media_progress}}</span>\n\t\t\t\t\t<div style="float: right;" _v-56984240=""><svg class="optml-spin" xmlns="http://www.w3.org/2000/svg" width="18" height="14" viewBox="0 0 18 14" fill="none" _v-56984240="">\n\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2.5C6.9 2.5 5.1 4 4.7 6H7L3.5 10L0 6H2.1C2.6 2.6 5.5 0 9 0C11.1 0 13 0.9 14.2 2.3L12.5 4.3C11.7 3.2 10.5 2.5 9 2.5ZM13.3 8H11L14.5 4L18 8H15.9C15.4 11.4 12.5 14 9 14C6.9 14 5 13.1 3.8 11.6L5.5 9.7C6.3 10.8 7.5 11.5 9 11.5C11.1 11.5 12.8 10 13.3 8Z" fill="#577BF9" _v-56984240=""></path>\n\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t</label>\n\t\t\t\t<div style="position:relative;" _v-56984240="">\n\t\t\t\t\t<progress class="progress is-info optml-progress" :value="this.$store.state.pushedImagesProgress" :max="maxTime" _v-56984240=""></progress>\n\t\t\t\t</div>\n\n\t\t\t\t<label v-if="this.$store.state.estimatedTime == 0" class="label has-text-grey-dark" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.calculating_estimated_time}}</span>\n\t\t\t\t</label>\n\n\n\t\t\t\t<label v-else="" class="label has-text-grey-dark has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.estimated_time}}: <strong _v-56984240="">{{this.$store.state.estimatedTime}} {{strings.minutes}}</strong></span>\n\t\t\t\t</label>\n\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="field columns" v-if="this.$store.state.offloadLibraryLink === true" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\t\t\t\t{{strings.sync_media_link}} <a :href="this.$store.state.queryArgs.url" _v-56984240="">{{strings.here}}</a>\n\t\t\t</label>\n\t\t</div>\n\t\t\x3c!--Sync error notice--\x3e\n\t\t<div class="notification optml-warning is-size-6 optml-side-by-side" v-if="this.$store.state.errorMedia === \'offload_images\'" _v-56984240="">\n\n\t\t\t\t<div _v-56984240="">\n\t\t\t\t\t<svg style="position: relative; top:10%;" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg" _v-56984240="">\n\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M8.9581 0C13.5192 0 17.2136 3.58 17.2136 8C17.2136 12.42 13.5192 16 8.9581 16C4.39696 16 0.702637 12.42 0.702637 8C0.702637 3.58 4.39696 0 8.9581 0ZM10.6558 9L11.0219 3H7.92606L8.29211 9H10.6558ZM11.0219 11.5115C11.0219 11.9809 10.8811 12.3473 10.6213 12.6107C10.3507 12.874 9.97188 13 9.48478 13C8.99768 13 8.61882 12.874 8.33739 12.6107C8.06677 12.3473 7.92606 11.9809 7.92606 11.5115C7.92606 11.0305 8.05595 10.6641 8.32656 10.4008C8.59717 10.1374 8.97603 10 9.48478 10C9.99353 10 10.3724 10.1374 10.6322 10.4008C10.892 10.6641 11.0219 11.0305 11.0219 11.5115Z" fill="#AF3535" _v-56984240=""></path>\n\t\t\t\t\t</svg>\n\t\t\t\t</div>\n\t\t\t<div style="margin-left:1%; " _v-56984240="">\n\t\t\t\t<div _v-56984240=""><strong _v-56984240="">{{strings.sync_media_error}} </strong></div>\n\t\t\t\t<div _v-56984240="">{{strings.sync_media_error_desc}}</div>\n\t\t\t\t</div>\n\t\t</div>\n\t\t<hr v-if="this.site_settings.offload_media===\'enabled\'" _v-56984240="">\n\t\t\x3c!--Rollback conflicts notice--\x3e\n\t\t<div class="field columns optml-flex-column optml-restore-notice-background" v-if="this.showConflictNotice" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\n\n\t\t\t\t<p class="has-text-weight-normal" _v-56984240=""> {{strings.offload_conflicts_part_1 }} </p>\n\t\t\t\t<div v-for="(item, index) in getOffloadConflicts" _v-56984240="">\n\t\t\t\t\t<p style="margin-bottom:10px;" _v-56984240=""> {{item}}</p>\n\t\t\t\t</div>\n\t\t\t\t<p class="has-text-weight-normal" _v-56984240=""> {{strings.offload_conflicts_part_2 }} </p>\n\n\t\t\t</label>\n\t\t\t<a :class="is_loading ? \'is-loading\' : \'\' " class="is-pulled-right button optml-conflict-done is-small is-link" v-on:click="dismissOffloadConflicts()" _v-56984240=""><span v-if="!is_loading" class="dashicons dashicons-yes" _v-56984240=""></span>{{conflictStrings.conflict_close}}</a>\n\t\t\t<div class=" is-clearfix" _v-56984240=""></div>\n\n\t\t</div>\n\n\t\t\x3c!-- Rollback Media button --\x3e\n\t\t<div class="field is-fullwidth columns " v-if="this.site_settings.offload_media===\'enabled\' || this.$store.state.loadingRollback" _v-56984240="">\n\t\t\t<label class="label column has-text-grey-dark" _v-56984240="">\n\t\t\t\t{{strings.rollback_title}}\n\n\t\t\t\t<p class="is-italic has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t{{strings.rollback_desc}}\n\t\t\t\t</p>\n\t\t\t</label>\n\t\t\t<div class="column is-2 is-right" style="position: relative;" _v-56984240="">\n\t\t\t\t<button @click="callSync(\'rollback_images\')" class="optml-button optml-button-page-position is-primary is-small " :class="this.$store.state.loadingRollback ? \'is-loading\' : \'\' " :disabled="this.$store.state.loadingSync || this.$store.state.loadingRollback || this.showConflictNotice" _v-56984240="">\n\t\t\t\t\t{{strings.rollback_media}}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\n\n\t\t<div class="field columns optml-light-background" v-if="this.$store.state.loadingRollback" _v-56984240="">\n\t\t\t<div class="column optml-media-progress-labels" _v-56984240="">\n\n\t\t\t\t<label class="label has-text-grey-dark" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.rollback_media_progress}}</span>\n\t\t\t\t\t<div style="float: right;" _v-56984240=""><svg class="optml-spin" xmlns="http://www.w3.org/2000/svg" width="18" height="14" viewBox="0 0 18 14" fill="none" _v-56984240="">\n\t\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M9 2.5C6.9 2.5 5.1 4 4.7 6H7L3.5 10L0 6H2.1C2.6 2.6 5.5 0 9 0C11.1 0 13 0.9 14.2 2.3L12.5 4.3C11.7 3.2 10.5 2.5 9 2.5ZM13.3 8H11L14.5 4L18 8H15.9C15.4 11.4 12.5 14 9 14C6.9 14 5 13.1 3.8 11.6L5.5 9.7C6.3 10.8 7.5 11.5 9 11.5C11.1 11.5 12.8 10 13.3 8Z" fill="#577BF9" _v-56984240=""></path>\n\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t</label>\n\t\t\t\t<div style="position:relative;" _v-56984240="">\n\t\t\t\t\t<progress class="progress is-info optml-progress" :value="this.$store.state.pushedImagesProgress" :max="maxTime" _v-56984240=""></progress>\n\t\t\t\t</div>\n\n\t\t\t\t<label v-if="this.$store.state.estimatedTime == 0" class="label has-text-grey-dark" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.calculating_estimated_time}}</span>\n\t\t\t\t</label>\n\n\n\t\t\t\t<label v-else="" class="label has-text-grey-dark has-text-weight-normal" _v-56984240="">\n\t\t\t\t\t<span _v-56984240="">{{strings.estimated_time}}: <strong _v-56984240="">{{this.$store.state.estimatedTime}} {{strings.minutes}}</strong></span>\n\t\t\t\t</label>\n\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="field columns" v-if="this.$store.state.rollbackLibraryLink === true" _v-56984240="">\n\t\t\t<label class="label column" _v-56984240="">\n\t\t\t\t{{strings.rollback_media_link}} <a :href="this.$store.state.queryArgs.url" _v-56984240="">{{strings.here}}</a>\n\t\t\t</label>\n\t\t</div>\n\t\t\x3c!--Rollback error notice--\x3e\n\t\t<div class="notification optml-warning is-size-6 optml-side-by-side" v-if="this.$store.state.errorMedia === \'rollback_images\'" _v-56984240="">\n\n\t\t\t<div _v-56984240="">\n\t\t\t\t<svg style="position: relative; top:10%;" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg" _v-56984240="">\n\t\t\t\t\t<path fill-rule="evenodd" clip-rule="evenodd" d="M8.9581 0C13.5192 0 17.2136 3.58 17.2136 8C17.2136 12.42 13.5192 16 8.9581 16C4.39696 16 0.702637 12.42 0.702637 8C0.702637 3.58 4.39696 0 8.9581 0ZM10.6558 9L11.0219 3H7.92606L8.29211 9H10.6558ZM11.0219 11.5115C11.0219 11.9809 10.8811 12.3473 10.6213 12.6107C10.3507 12.874 9.97188 13 9.48478 13C8.99768 13 8.61882 12.874 8.33739 12.6107C8.06677 12.3473 7.92606 11.9809 7.92606 11.5115C7.92606 11.0305 8.05595 10.6641 8.32656 10.4008C8.59717 10.1374 8.97603 10 9.48478 10C9.99353 10 10.3724 10.1374 10.6322 10.4008C10.892 10.6641 11.0219 11.0305 11.0219 11.5115Z" fill="#AF3535" _v-56984240=""></path>\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t\t<div style="margin-left:1%; " _v-56984240="">\n\t\t\t\t<div _v-56984240=""><strong _v-56984240="">{{strings.rollback_media_error}} </strong></div>\n\t\t\t\t<div _v-56984240="">{{strings.rollback_media_error_desc}}</div>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="field is-fullwidth columns " _v-56984240="">\n\t\t\t<div class="column is-left" _v-56984240="">\n\t\t\t\t<button @click="saveChanges()" class="button optml-button-style-1" :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-56984240="">\n\t\t\t\t\t{{strings.save_changes}}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\n\t</div>\n\n\n'},function(t,e,o){var i,n;o(166),i=o(168),n=o(169),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(167);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n .is-field-disabled[_v-c1ac671c] {\n opacity: 0.5;\n }\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"cssjs",data:function(){return{strings:optimoleDashboardApp.strings.options_strings,all_strings:optimoleDashboardApp.strings,showSave:!1,showSample:!1,isReplacerOff:!1,loading_images:!1,showComparison:!1,new_data:{}}},mounted:function(){this.isReplacerOff="disabled"===this.site_settings.cdn},methods:{saveChanges:function(){this.$store.dispatch("saveSettings",{settings:this.new_data})}},computed:{site_settings:function(){return this.$store.state.site_settings},cssMinifyStatus:{set:function(t){this.showSave=!0,this.new_data.css_minify=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.css_minify)}},jsMinifyStatus:{set:function(t){this.showSave=!0,this.new_data.js_minify=t?"enabled":"disabled"},get:function(){return!("disabled"===this.site_settings.js_minify)}}}}},function(t,e){t.exports='\n <div :class="{ \'saving--option\' : this.$store.state.loading }" _v-c1ac671c="">\n\n\n \x3c!-- CSS minify toggle button --\x3e\n <div class="field columns" :class="{\'is-field-disabled\':isReplacerOff }" _v-c1ac671c="">\n <label class="label column has-text-grey-dark" _v-c1ac671c="">\n {{strings.enable_css_minify_title}}\n\n <p class="is-italic has-text-weight-normal" _v-c1ac671c="">\n {{strings.css_minify_desc}}\n </p>\n </label>\n\n <div class="column is-3 " _v-c1ac671c="">\n <toggle-button :class="\'has-text-dark\'" v-model="cssMinifyStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c1ac671c=""></toggle-button>\n </div>\n </div>\n \x3c!-- JS minify toggle button --\x3e\n <div class="field columns" :class="{\'is-field-disabled\':isReplacerOff }" _v-c1ac671c="">\n <label class="label column has-text-grey-dark" _v-c1ac671c="">\n {{strings.enable_js_minify_title}}\n\n <p class="is-italic has-text-weight-normal" _v-c1ac671c="">\n {{strings.js_minify_desc}}\n </p>\n </label>\n\n <div class="column is-3 " _v-c1ac671c="">\n <toggle-button :class="\'has-text-dark\'" v-model="jsMinifyStatus" :disabled="this.$store.state.loading" :width="37" :height="20" color="#577BF9" _v-c1ac671c=""></toggle-button>\n </div>\n </div>\n <div class="field is-fullwidth columns " _v-c1ac671c="">\n <div class="column is-left" _v-c1ac671c="">\n <button @click="saveChanges()" class="button is-info is-small " :class="this.$store.state.loading ? \'is-loading\' : \'\' " :disabled="!showSave" _v-c1ac671c="">{{strings.save_changes}}\n </button>\n <a href="#" v-if="showSample" @click="newSample(false)" class="view-sample-image is-link" _v-c1ac671c="">{{strings.view_sample_image}}\n </a>\n </div>\n </div>\n </div>\n'},function(t,e){t.exports='\n <div class="columns" style="margin-top: 1.7%;" _v-5f7ac404="">\n <aside id="optml-settings-menu" class="menu column is-2-fullhd is-3-desktop is-3-tablet" _v-5f7ac404="">\n <ul class="optml-menu optml-settings-submenu is-marginless" _v-5f7ac404="">\n <li _v-5f7ac404=""><a @click="changeTab(\'general\')" href="#" :class="tab === \'general\' ? \'is-active\' : \'\'" :title="all_strings.general_settings_menu_item+\' \'+all_strings.settings_menu_item" _v-5f7ac404="">{{all_strings.general_settings_menu_item}}</a>\n </li>\n <li :class="advancedOpen ? \'is-active\' : \'\' " class="optml-advanced-settings optml-fill-container" _v-5f7ac404=""><a @click="ToggleAdvanced()" href="#" :class="advancedOpen ? \'is-active\' : \'\' " title="General settings" _v-5f7ac404=""><span _v-5f7ac404="">{{all_strings.advanced_settings_menu_item}}</span>\n <span class=" dashicons advanced-link " :class="advancedOpen ? \'dashicons-arrow-up-alt2\' : \'dashicons-arrow-down-alt2\'" _v-5f7ac404=""></span>\n </a>\n \x3c!--Advanced--\x3e\n <ul class="optml-sublist optml-settings-submenu is-marginless " :class=" ! advancedOpen ? \'is-hidden\' : \'\' " _v-5f7ac404="">\n <li :class="tab === \'compression\' ? \'optml-light-background\' : \'\'" _v-5f7ac404=""><a class="optml-fit-content" @click="changeTab(\'compression\')" href="#" :title="all_strings.settings_compression_menu_item+\' \'+all_strings.settings_menu_item" _v-5f7ac404="">{{all_strings.settings_compression_menu_item}}</a>\n </li>\n <li :class="tab === \'resize\' ? \'is-active optml-light-background\' : \'\'" _v-5f7ac404=""><a class="optml-fit-content" @click="changeTab(\'resize\')" href="#" :title="all_strings.settings_resize_menu_item+\' \'+all_strings.settings_menu_item" _v-5f7ac404="">{{all_strings.settings_resize_menu_item}}</a>\n </li>\n\n <li :class="tab === \'lazyload\' ? \'optml-light-background\' : \'\'" v-if="this.$store.state.site_settings.lazyload===\'enabled\'" _v-5f7ac404=""><a class="optml-fit-content" @click="changeTab(\'lazyload\')" href="#" :title="all_strings.lazyload_settings_menu_item+\' \'+all_strings.lazyload_settings_menu_item" _v-5f7ac404="">{{all_strings.lazyload_settings_menu_item}}</a>\n </li>\n <li :class="tab === \'exclusions\' ? \'optml-light-background\' : \'\'" _v-5f7ac404=""><a class="optml-fit-content" href="#" @click="changeTab(\'exclusions\')" :title="all_strings.settings_exclusions_menu_item+\' \'+all_strings.settings_menu_item" _v-5f7ac404="">{{all_strings.settings_exclusions_menu_item}}</a>\n </li>\n </ul>\n </li>\n \x3c!-- Offload media menu--\x3e\n <li v-if="is_offload_media_available === \'yes\'" _v-5f7ac404=""><a @click="changeTab(\'offload_media\')" href="#" style="" :class="tab === \'offload_media\' ? \'is-active\' : \'\'" :title="all_strings.offload_media_settings_menu_item+\' \'+all_strings.offload_media_settings_menu_item" _v-5f7ac404="">{{all_strings.offload_media_settings_menu_item}}\n\n </a>\n\n </li>\n </ul>\n <hr _v-5f7ac404="">\n </aside>\n <div :class="[{ \'saving--option\' : this.$store.state.loading, \'is-tab-disabled\':isDisabled},\'is-tab-\'+tab] " class=" column" _v-5f7ac404="">\n <div class="subtab-content" _v-5f7ac404="">\n <general v-if="tab === \'general\' " @update-status="updateGlobalState" _v-5f7ac404=""></general>\n <compression v-if="tab === \'compression\' " _v-5f7ac404=""></compression>\n <watermarks v-if="tab ===\'watermark\'" _v-5f7ac404=""></watermarks>\n\x3c!-- <Cssjs v-if="tab ===\'cssjs\'"></Cssjs>--\x3e\n <resize v-if="tab ===\'resize\'" _v-5f7ac404=""></resize>\n <lazyload v-if="tab ===\'lazyload\'" _v-5f7ac404=""></lazyload>\n <media v-if="tab ===\'offload_media\'" _v-5f7ac404=""></media>\n <exclusions v-if="tab ===\'exclusions\'" _v-5f7ac404=""></exclusions>\n </div>\n </div>\n </div>\n'},function(t,e,o){var i,n;o(172),i=o(174),n=o(175),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e,o){var i=o(173);"string"==typeof i&&(i=[[t.i,i,""]]);o(1)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,o){e=t.exports=o(0)(),e.push([t.i,"\n\n.optml-metric[_v-0d4963a9] {\n -ms-flex: 1 1 100%;\n flex: 1 1 100%;\n text-align: left;\n white-space: nowrap;\n}\n.optml-metric > p[_v-0d4963a9] {\n font-size: 14px;\n}\n.optml-metric > p[_v-0d4963a9]:nth-child(3) {\n margin-bottom: 1% !important;\n}\n.optml-metric > p[_v-0d4963a9]:nth-child(2){\n margin-bottom: 2.6% !important;\n}\n.optml-metric-wrapper[_v-0d4963a9] {\n margin: 4% 0 4% 0 !important;\n list-style: none !important;\n padding-left: 2% !important;\n}\n.optml-metric-wrapper > hr[_v-0d4963a9] {\n visibility: hidden;\n}\n@media (max-width: 768px) {\n .optml-metric-wrapper[_v-0d4963a9] {\n margin: 4% 0 4% 0 !important;;\n list-style: none !important;;\n -ms-flex-direction: column !important;;\n flex-direction: column !important;;\n }\n .optml-metric-wrapper > hr[_v-0d4963a9] {\n visibility: visible;\n }\n\n}\n\n.optml-progress-value[_v-0d4963a9] {\n position: absolute;\n margin-top: -1.5px !important;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n font-size: 10px;\n line-height: 1rem;\n font-weight: bold;\n}\n",""])},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"metrics",data:function(){return{strings:optimoleDashboardApp.strings}},computed:{userData:function(){return this.$store.state.userData}},methods:{getMetric:function(t){return Object.prototype.hasOwnProperty.call(this.userData,t)?this.userData[t]:"saved_size"===t?Math.floor(2500*Math.random())+500:Math.floor(40*Math.random())+10},computedPercentage:function(){return(this.userData.usage/this.userData.quota*100).toFixed(2)},computedPercentageVisitors:function(){return(this.userData.visitors/this.userData.visitors_limit*100).toFixed(2)}}}},function(t,e){t.exports='\n <div _v-0d4963a9="">\n <div class="optml-light-background optml-side-by-side" style="padding: 2% 1% 2% 1%; min-width: 371px;" _v-0d4963a9="">\n <div _v-0d4963a9="">\n <svg xmlns="http://www.w3.org/2000/svg" width="55" height="55" viewBox="0 0 55 55" fill="none" _v-0d4963a9="">\n <path d="M46.6215 21.757C44.6278 22.9074 43.5209 25.0684 43.5415 27.3692C43.5415 27.4128 43.5415 27.4563 43.5415 27.4999C43.5415 27.5434 43.5415 27.5892 43.5415 27.6328C43.5209 29.9336 44.6278 32.0947 46.6215 33.2451L46.6399 33.2565C47.9943 34.038 49.7565 33.2657 50.043 31.728C50.5678 28.9047 50.5426 26.0378 50.0178 23.2717C49.7268 21.7386 47.9713 20.9778 46.6215 21.757V21.757Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M19.8137 13.4291C19.6052 13.5437 19.3989 13.6629 19.195 13.7866C17.2906 14.9462 14.8958 14.9256 12.9639 13.8096C11.621 13.035 11.385 11.1421 12.5583 10.1291C14.701 8.27747 17.1875 6.8131 19.9145 5.85518C21.3812 5.33955 22.912 6.48997 22.912 8.04372V8.06205C22.912 10.2781 21.7547 12.3635 19.8137 13.4291V13.4291Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M19.8137 13.4291C19.6052 13.5437 19.3989 13.6629 19.195 13.7866C17.2906 14.9462 14.8958 14.9256 12.9639 13.8096C11.621 13.035 11.385 11.1421 12.5583 10.1291C14.701 8.27747 17.1875 6.8131 19.9145 5.85518C21.3812 5.33955 22.912 6.48997 22.912 8.04372V8.06205C22.912 10.2781 21.7547 12.3635 19.8137 13.4291V13.4291Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M35.2025 41.5616C35.4065 41.4493 35.6081 41.3325 35.8075 41.211C37.7119 40.0514 40.1067 40.0721 42.0386 41.1881C43.3815 41.9627 43.6175 43.8556 42.4442 44.8685C40.3015 46.7202 37.815 48.1846 35.0879 49.1448C33.6213 49.6627 32.0881 48.5123 32.0881 46.9562C32.0881 44.731 33.2523 42.6364 35.2025 41.5616V41.5616Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M8.37836 33.243C7.02857 34.0221 5.27315 33.2613 4.98211 31.7305C4.45732 28.9644 4.43211 26.0953 4.9569 23.2719C5.24336 21.7342 7.00336 20.9619 8.35773 21.7434L8.37836 21.7548C10.3721 22.9053 11.479 25.0663 11.4584 27.3671C11.4584 27.4107 11.4584 27.4565 11.4584 27.5001C11.4584 27.5436 11.4584 27.5871 11.4584 27.6307C11.479 29.9315 10.3721 32.0926 8.37836 33.243V33.243Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M8.37836 33.243C7.02857 34.0221 5.27315 33.2613 4.98211 31.7305C4.45732 28.9644 4.43211 26.0953 4.9569 23.2719C5.24336 21.7342 7.00336 20.9619 8.35773 21.7434L8.37836 21.7548C10.3721 22.9053 11.479 25.0663 11.4584 27.3671C11.4584 27.4107 11.4584 27.4565 11.4584 27.5001C11.4584 27.5436 11.4584 27.5871 11.4584 27.6307C11.479 29.9315 10.3721 32.0926 8.37836 33.243V33.243Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M32.0881 8.06439C32.0881 6.50605 33.6258 5.36709 35.0948 5.88043C37.7531 6.80855 40.2511 8.22022 42.435 10.0902C43.6221 11.1077 43.4113 13.0167 42.0569 13.7981L42.0363 13.8096C40.1044 14.9233 37.7119 14.9463 35.8075 13.7867C35.6036 13.6629 35.3973 13.5415 35.1865 13.4269C33.2454 12.3636 32.0881 10.2781 32.0881 8.06439V8.06439Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M32.0881 8.06439C32.0881 6.50605 33.6258 5.36709 35.0948 5.88043C37.7531 6.80855 40.2511 8.22022 42.435 10.0902C43.6221 11.1077 43.4113 13.0167 42.0569 13.7981L42.0363 13.8096C40.1044 14.9233 37.7119 14.9463 35.8075 13.7867C35.6036 13.6629 35.3973 13.5415 35.1865 13.4269C33.2454 12.3636 32.0881 10.2781 32.0881 8.06439V8.06439Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M22.9122 46.9357C22.9122 48.494 21.3745 49.633 19.9055 49.1196C17.2472 48.1915 14.7493 46.7798 12.5653 44.9098C11.3782 43.8923 11.5891 41.9834 12.9434 41.2019C14.8868 40.079 17.2953 40.0607 19.2157 41.2248C19.4128 41.344 19.6122 41.4609 19.8161 41.5709C21.7549 42.6365 22.9122 44.7219 22.9122 46.9357V46.9357Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M27.5 20.6256L34.3755 27.5011L27.5 34.3766L20.6245 27.5011L27.5 20.6256Z" stroke="#577BF9" stroke-width="1.91406" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n </svg>\n </div>\n <div style="width: 100%; margin: 0.5% 0 0 1%;" _v-0d4963a9="">\n <div class="optml-font optml-side-by-side" _v-0d4963a9="">\n <span class="is-size-5" style="font-weight: bold !important;" _v-0d4963a9=""> {{this.userData.visitors_pretty}}/{{this.userData.visitors_limit_pretty}} </span><span class="is-size-6" style="margin-left: 1%;" _v-0d4963a9=""> {{strings.quota}} </span>\n <a href="https://optimole.com/pricing" target="_blank" class="optml-button" style="right:0; bottom: -20%; font-size: 11px; padding: 5px 10px;" _v-0d4963a9=""> {{strings.upgrade.title}} </a>\n </div>\n\n <div style="position:relative;" _v-0d4963a9="">\n <progress style="margin: calc(max(1%, 10px)) auto calc(max(0.5%, 5px)); height: 10px !important;" class="progress is-info optml-progress" :value="this.userData.visitors" :max="this.userData.visitors_limit" _v-0d4963a9=""></progress>\n <div class="optml-is-horizontal-center" _v-0d4963a9="">\n <p style="width: fit-content;border-radius: 4px;padding: 0.4%;background-color: #577BF9;color: white;" _v-0d4963a9="">{{computedPercentageVisitors()}}%</p>\n </div>\n </div>\n </div>\n </div>\n <ul class="optml-side-by-side optml-metric-wrapper" _v-0d4963a9="">\n <li class="optml-metric" _v-0d4963a9="">\n <svg xmlns="http://www.w3.org/2000/svg" width="55" height="55" viewBox="0 0 55 55" fill="none" _v-0d4963a9="">\n <path d="M42.0235 45.3568L45.0279 46.6928C46.5427 47.3666 48.25 46.2574 48.25 44.5982V10.402C48.25 8.74281 46.5427 7.63364 45.0279 8.30739L42.0235 9.64343C32.8569 13.718 22.3931 13.718 13.2265 9.64343L10.2221 8.30739C8.70729 7.63364 7 8.74281 7 10.402V44.5982C7 46.2574 8.70729 47.3666 10.2221 46.6928L13.2265 45.3568C22.3931 41.2845 32.8569 41.2845 42.0235 45.3568Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M34.5002 35.5209H20.7502C19.4852 35.5209 18.4585 34.4942 18.4585 33.2292V21.7709C18.4585 20.5059 19.4852 19.4792 20.7502 19.4792H34.5002C35.7652 19.4792 36.7918 20.5059 36.7918 21.7709V33.2292C36.7918 34.4942 35.7652 35.5209 34.5002 35.5209Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M30.9707 25.0939L36.7915 29.8376" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M30.9711 25.0939L26.0669 30.2043" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M26.0665 30.2043L23.3853 28.4167" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M23.3856 28.4167L18.4585 32.5647" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n </svg>\n <p class="optml-font is-size-5 has-text-weight-bold" _v-0d4963a9="">\n {{getMetric(\'images_number\')}}/∞\n </p>\n <p class="is-size-6" _v-0d4963a9="">\n Images optimized\n </p>\n <p class="optml-gray" _v-0d4963a9="">\n Since plugin activation\n </p>\n </li>\n <hr _v-0d4963a9="">\n <li class="optml-metric" _v-0d4963a9="">\n <svg xmlns="http://www.w3.org/2000/svg" width="56" height="55" viewBox="0 0 56 55" fill="none" _v-0d4963a9="">\n <path d="M36.681 6.875H13.7643C8.70203 6.875 4.59766 10.9794 4.59766 16.0417C4.59766 21.104 8.70203 25.2083 13.7643 25.2083H36.681C41.7433 25.2083 45.8477 21.104 45.8477 16.0417C45.8477 10.9794 41.7433 6.875 36.681 6.875Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M13.7643 25.2084C8.70203 25.2084 4.59766 29.3127 4.59766 34.375C4.59766 39.4373 8.70203 43.5417 13.7643 43.5417H29.806" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M22.9307 16.0416H36.6807" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M13.845 15.9606C13.8898 16.0053 13.8898 16.0779 13.845 16.1226C13.8003 16.1674 13.7277 16.1674 13.683 16.1226C13.6382 16.0779 13.6382 16.0053 13.683 15.9606C13.7277 15.9158 13.8003 15.9158 13.845 15.9606Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M22.9307 34.375H27.7432" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M13.845 34.2938C13.8898 34.3386 13.8898 34.4111 13.845 34.4559C13.8003 34.5006 13.7277 34.5006 13.683 34.4559C13.6382 34.4111 13.6382 34.3386 13.683 34.2938C13.7277 34.2491 13.8003 34.2491 13.845 34.2938Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M38.9725 48.125C32.6452 48.125 27.5142 42.994 27.5142 36.6667C27.5142 30.3394 32.6452 25.2084 38.9725 25.2084C45.3021 25.2084 50.4308 30.3394 50.4308 36.6667C50.4308 42.994 45.3021 48.125 38.9725 48.125Z" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M40.2465 31.5745L36.4263 35.3924L41.5184 37.9407L37.6981 41.7586" stroke="#577BF9" stroke-width="1.875" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n </svg>\n\n <p class="optml-font is-size-5 has-text-weight-bold" _v-0d4963a9="">\n {{ (getMetric(\'saved_size\')/1000).toFixed(2)}}MB/∞\n </p>\n <p class="is-size-6" _v-0d4963a9="">\n Saved file size\n </p>\n <p class="optml-gray" _v-0d4963a9="">\n {{strings.for_latest_optimized_images}}\n </p>\n\n </li>\n <hr _v-0d4963a9="">\n\n <li class="optml-metric" _v-0d4963a9="">\n <svg xmlns="http://www.w3.org/2000/svg" width="55" height="55" viewBox="0 0 55 55" fill="none" _v-0d4963a9="">\n <path d="M43.5418 32.0833C41.0095 32.0833 38.9585 30.0323 38.9585 27.5C38.9585 24.9677 41.0095 22.9166 43.5418 22.9166C46.0741 22.9166 48.1252 24.9677 48.1252 27.5C48.1252 30.0323 46.0741 32.0833 43.5418 32.0833Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M32.0832 43.5417C32.0832 46.074 30.0321 48.1251 27.4998 48.1251C24.9675 48.1251 22.9165 46.074 22.9165 43.5417C22.9165 41.0094 24.9675 38.9584 27.4998 38.9584C30.0321 38.9584 32.0832 41.0094 32.0832 43.5417Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M43.5418 48.1251C41.0095 48.1251 38.9585 46.074 38.9585 43.5417C38.9585 41.0094 41.0095 38.9584 43.5418 38.9584C46.0741 38.9584 48.1252 41.0094 48.1252 43.5417C48.1252 46.074 46.0741 48.1251 43.5418 48.1251Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M27.4998 16.0417C24.9675 16.0417 22.9165 13.9906 22.9165 11.4583C22.9165 8.92604 24.9675 6.875 27.4998 6.875C30.0321 6.875 32.0832 8.92604 32.0832 11.4583C32.0832 13.9906 30.0321 16.0417 27.4998 16.0417Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M38.9585 11.4583C38.9585 8.92604 41.0095 6.875 43.5418 6.875C46.0741 6.875 48.1252 8.92604 48.1252 11.4583C48.1252 13.9906 46.0741 16.0417 43.5418 16.0417C41.0095 16.0417 38.9585 13.9906 38.9585 11.4583Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M30.7314 40.3104L40.3106 30.7312" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M14.6895 40.3104L24.2686 30.7312" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M30.7314 24.2687L40.3106 14.6896" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M22.9165 27.5C22.9165 24.9677 24.9675 22.9166 27.4998 22.9166C30.0321 22.9166 32.0832 24.9677 32.0832 27.5C32.0832 30.0323 30.0321 32.0833 27.4998 32.0833C24.9675 32.0833 22.9165 30.0323 22.9165 27.5Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M14.6895 24.2687L24.2686 14.6896" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M11.4583 32.0833C8.92604 32.0833 6.875 30.0323 6.875 27.5C6.875 24.9677 8.92604 22.9166 11.4583 22.9166C13.9906 22.9166 16.0417 24.9677 16.0417 27.5C16.0417 30.0323 13.9906 32.0833 11.4583 32.0833Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M16.0417 43.5417C16.0417 46.074 13.9906 48.1251 11.4583 48.1251C8.92604 48.1251 6.875 46.074 6.875 43.5417C6.875 41.0094 8.92604 38.9584 11.4583 38.9584C13.9906 38.9584 16.0417 41.0094 16.0417 43.5417Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n <path d="M11.4583 16.0417C8.92604 16.0417 6.875 13.9906 6.875 11.4583C6.875 8.92604 8.92604 6.875 11.4583 6.875C13.9906 6.875 16.0417 8.92604 16.0417 11.4583C16.0417 13.9906 13.9906 16.0417 11.4583 16.0417Z" stroke="#577BF9" stroke-width="1.97917" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path>\n </svg>\n <p class="optml-font is-size-5 has-text-weight-bold" _v-0d4963a9="">\n {{getMetric(\'compression_percentage\').toFixed(2)}}%\n </p>\n <p class="is-size-6" _v-0d4963a9="">\n Average compression\n </p>\n <p class="optml-gray" _v-0d4963a9="">\n During last month\n </p>\n </li>\n <hr _v-0d4963a9="">\n <li class="optml-metric" _v-0d4963a9="">\n <svg width="55" height="55" viewBox="0 0 64 64" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg" svg-inline="" role="presentation" focusable="false" class="absolute w-16 h-16 text-o-blue" style="top: -0.25rem; left: -0.5rem;" _v-0d4963a9=""><path data-v-767b24d4="" d="M23.997 28c0 2.947-4.178 5.333-9.333 5.333S5.334 30.944 5.334 28" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 28c0 2.947-4.178 5.333-9.333 5.333S5.334 30.944 5.334 28" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 28c0 2.947-4.178 5.333-9.333 5.333S5.334 30.944 5.334 28" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M23.997 36c0 2.947-4.178 5.333-9.333 5.333S5.334 38.944 5.334 36" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M50.667 56H40a5.332 5.332 0 01-5.333-5.333V13.333A5.332 5.332 0 0140 8h10.667A5.332 5.332 0 0156 13.333v37.334A5.332 5.332 0 0150.667 56z" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M50.667 56H40a5.332 5.332 0 01-5.333-5.333V13.333A5.332 5.332 0 0140 8h10.667A5.332 5.332 0 0156 13.333v37.334A5.332 5.332 0 0150.667 56z" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M50.667 56H40a5.332 5.332 0 01-5.333-5.333V13.333A5.332 5.332 0 0140 8h10.667A5.332 5.332 0 0156 13.333v37.334A5.332 5.332 0 0150.667 56z" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M24 32h10.667M24 32h10.667" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M24 32h10.667" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 16H48M42.667 16H48" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 16H48" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 26.667H48M42.667 26.667H48" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 26.667H48" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 37.333H48M42.667 37.333H48" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 37.333H48" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 48H48M42.667 48H48" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M42.667 48H48" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c0 2.947 4.179 5.333 9.334 5.333C19.82 25.333 24 22.947 24 20" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c0 2.947 4.179 5.333 9.334 5.333C19.82 25.333 24 22.947 24 20" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c0 2.947 4.179 5.333 9.334 5.333C19.82 25.333 24 22.947 24 20" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c.003-2.944 4.182-5.333 9.334-5.333 5.152 0 9.333 2.386 9.33 5.333v24c0 2.947-4.178 5.333-9.333 5.333S5.334 46.944 5.334 44V20v0z" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c.003-2.944 4.182-5.333 9.334-5.333 5.152 0 9.333 2.386 9.33 5.333v24c0 2.947-4.178 5.333-9.333 5.333S5.334 46.944 5.334 44V20v0z" stroke="#EDF0FF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path><path data-v-767b24d4="" d="M5.333 20c.003-2.944 4.182-5.333 9.334-5.333 5.152 0 9.333 2.386 9.33 5.333v24c0 2.947-4.178 5.333-9.333 5.333S5.334 46.944 5.334 44V20v0z" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" _v-0d4963a9=""></path></svg>\n <p class="optml-font is-size-5 has-text-weight-bold" _v-0d4963a9="">\n {{getMetric(\'traffic\').toFixed(2)}}MB/∞\n </p>\n <p class="is-size-6" _v-0d4963a9="">\n Traffic\n </p>\n <p class="optml-gray" _v-0d4963a9="">\n During last month\n </p>\n </li>\n </ul>\n\n </div>\n'},function(t,e){t.exports='\n\t\t<div class="columns is-desktop" style="min-width: 480px;" v-bind:style="maxWidth">\n\n\t\t\t\t<div class="column ">\n\t\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t\t<app-header></app-header>\n\t\t\t\t\t\t\t\t<div class="card-content">\n\t\t\t\t\t\t\t\t\t\t<div class="content">\n\t\t\t\t\t\t\t\t\t\t\t\t<div v-if="showDisconnect">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="has-text-weight-bold" style="font-size: 19px; margin-bottom: 20px;">{{strings.disconnect_title}}</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="optml-line-height" style="font-size: 16px; margin-bottom: 20px;">{{strings.disconnect_desc}}</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="optml-side-by-side optml-settings-desc-margin">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div @click="keepConnected" class="button optml-button optml-button-style-2 optml-position-relative" > {{strings.keep_connected}}</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div @click="disconnect" :class="this.$store.state.loading ? \'is-loading\' : \'\' " class="button optml-button-style-1 optml-position-relative" style="margin-left: 20px; background-color: #e77777; border-color: #E77777;"> {{strings.disconnect_btn}}</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<connect-layout v-if="!this.is_connected && this.$store.state.autoConnect === \'no\'"></connect-layout>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!--Connecting--\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<transition name="slide-fade">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="optml-side-by-side" style="align-items: center; justify-content: center; margin-right: 4%;" v-if="((!showDisconnect && this.is_connected ) || this.$store.state.autoConnect !== \'no\') && ! this.$store.state.is_loaded" id="optml-loader">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<figure class="image">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img :src="connecting" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</figure>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="columns">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<transition name="slide-fade">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="has-text-left is-size-4 has-text-weight-bold">Connecting to Optimole</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</transition>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<transition name="slide-fade">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="has-text-left is-size-6" style="margin: 4% 0 1% 0;">Sit tight while we connect you to the Dashboard</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</transition>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="columns optml-flex-column" style="margin:1%;">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<progress id="optml-progress-bar" class="progress is-small is-success optml-custom-label-margin" :value="this.timer" max="25"></progress>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="is-size-7" style="padding-top: 7px;">{{this.getProgressMessage()}}</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</transition>\n\t\t\t\t\t\t\t\t\t\t\t\t<transition name="fade" mode="out-in">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div v-if="this.$store.state.connected && this.$store.state.hasApplication && this.$store.state.is_loaded && !showDisconnect">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tabs is-left is-medium optml-tabs optml-font overflow-mobile">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class="is-marginless ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li :class="tab === \'dashboard\' ? \'is-active\' : \'\'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a @click="changeTab(\'dashboard\')" class="is-size-5">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tab-text is-size-5-mobile is-size-5-touch">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{strings.dashboard_menu_item}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg width="110%" height="4" viewBox="0 0 110 4" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<rect width="110%" height="4" rx="2" fill="#577BF9"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li :class="tab === \'conflicts\' ? \'is-active\' : \'\'" v-if="conflictCount > 0">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a @click="changeTab(\'conflicts\')" class="is-size-5">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tab-text is-size-5-mobile is-size-5-touch">{{strings.conflicts_menu_item}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg width="110%" height="6" viewBox="0 0 100 6" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<rect width="110%" height="6" rx="2" fill="#D54222"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li :class="tab === \'settings\' ? \'is-active\' : \'\'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a @click="changeTab(\'settings\')" class="is-size-5 ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tab-text is-size-5-mobile is-size-5-touch">{{strings.settings_menu_item}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg width="110%" height="4" viewBox="0 0 110 4" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<rect width="110%" height="4" rx="2" fill="#577BF9"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- Refresh stats --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li style="margin-left:auto; position:relative; right:1%;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="level-item">\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="is-size-7 has-text-weight-bold optml-gray optml-hide-on-mobile" style="margin-right: 20px;">{{ this.$store.state.loading ? strings.updating_stats_cta : strings.refresh_stats_cta}}</span>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a style="padding:0; margin:0;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg v-bind:class="{ \'optml-spin\': this.$store.state.loading }" width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg" style="visibility: visible" v-on:click="requestUpdate">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M17.0002 12.2747L15.4255 10.7L17.0002 9.12537" stroke="#6F6F6F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M28.3137 5.6863C34.5621 11.9347 34.5621 22.0653 28.3137 28.3137C22.0653 34.5621 11.9347 34.5621 5.6863 28.3137C-0.562099 22.0653 -0.562099 11.9347 5.6863 5.6863C11.9347 -0.5621 22.0653 -0.5621 28.3137 5.6863Z" fill="#EDF0FF"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M28.3137 5.6863C34.5621 11.9347 34.5621 22.0653 28.3137 28.3137C22.0653 34.5621 11.9347 34.5621 5.6863 28.3137C-0.562099 22.0653 -0.562099 11.9347 5.6863 5.6863C11.9347 -0.5621 22.0653 -0.5621 28.3137 5.6863" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M18.4014 23.1266C17.9494 23.2306 17.4841 23.296 17.0001 23.296C13.5228 23.296 10.7041 20.4773 10.7041 17C10.7041 15.5826 11.1894 14.2893 11.9788 13.2373" stroke="#577BF9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M22.0213 20.7626C22.8106 19.7106 23.296 18.4173 23.296 17C23.296 13.5226 20.4773 10.704 17 10.704C16.516 10.704 16.0506 10.7693 15.5986 10.8733" stroke="#577BF9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<path d="M17 21.7252L18.5747 23.2999L17 24.8746" stroke="#577BF9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="is-tab" v-if="tab === \'dashboard\' "\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t :class="remove_images ? \'no-images\' : \'\' ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="notification is-success optml-side-by-side" v-if="strings.notice_just_activated.length > 0 && user_status === \'active\' ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div><span style="position: relative; top:4%;" class="dashicons dashicons-cloud-saved"></span></div> <div style="margin-left:1%; line-height: 168.75%; " v-html="strings.notice_just_activated"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!--Disabled notice--\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="notification optml-warning is-size-6 optml-side-by-side" v-if="user_status === \'inactive\'" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<svg style="position: relative; top:10%;" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <path fill-rule="evenodd" clip-rule="evenodd" d="M8.9581 0C13.5192 0 17.2136 3.58 17.2136 8C17.2136 12.42 13.5192 16 8.9581 16C4.39696 16 0.702637 12.42 0.702637 8C0.702637 3.58 4.39696 0 8.9581 0ZM10.6558 9L11.0219 3H7.92606L8.29211 9H10.6558ZM11.0219 11.5115C11.0219 11.9809 10.8811 12.3473 10.6213 12.6107C10.3507 12.874 9.97188 13 9.48478 13C8.99768 13 8.61882 12.874 8.33739 12.6107C8.06677 12.3473 7.92606 11.9809 7.92606 11.5115C7.92606 11.0305 8.05595 10.6641 8.32656 10.4008C8.59717 10.1374 8.97603 10 9.48478 10C9.99353 10 10.3724 10.1374 10.6322 10.4008C10.892 10.6641 11.0219 11.0305 11.0219 11.5115Z" fill="#AF3535"/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div style="margin-left:1%; line-height: 168.75%; " v-html="strings.notice_disabled_account">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<metrics></metrics>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr/>\n\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<last-images class="optml-hide-on-mobile" :status="fetchStatus" v-if="! remove_images"></last-images>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="is-tab" v-if=" tab === \'settings\'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<options></options>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="is-tab" v-if=" tab === \'conflicts\'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<conflicts></conflicts>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</transition>\n\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="level-right">\n\t\t\t\t\t\t\t\t\t\t<p class="level-item"><a href="https://optimole.com" target="_blank">Optimole\n\t\t\t\t\t\t\t\t\t\t\t\tv{{strings.version}}</a></p>\n\t\t\t\t\t\t\t\t\t\t<p class="level-item"><a href="https://optimole.com/terms/"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t target="_blank">{{strings.terms_menu}}</a></p>\n\t\t\t\t\t\t\t\t\t\t<p class="level-item"><a href="https://optimole.com/privacy-policy/" target="_blank">{{strings.privacy_menu}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p class="level-item"><a :href="\'https://optimole.com/test-drive?url=\' + home " target="_blank">{{strings.testdrive_menu}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!--right side--\x3e\n\t\t\t\t<div v-if="is_connected" class="column is-narrow">\n\n\n\t\t\t\t\t\t<div class="card optml-upgrade">\n\t\t\t\t\t\t\t<cdn-details v-if="this.$store.state.userData"></cdn-details>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t<div class=" is-hidden-desktop-only is-hidden-tablet-only is-hidden-mobile" style="padding-bottom:8%; margin-top: -4%; color:white !important; background-color: #577BF9;" v-if="this.$store.state.userData.plan === \'free\'">\n\t\t\t\t\t\t<div style="margin: 4% 4% 7.5% 4%; padding-top: 10%;" >\n\t\t\t\t\t\t\t<p class="is-size-5 has-text-centered has-text-weight-bold">\n\t\t\t\t\t\t\t\t{{strings.upgrade.title_long}}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="position:relative;">\n\t\t\t\t\t\t<ul class="is-size-6 upgrade" style="margin-left: 10%;">\n\t\t\t\t\t\t\t<li><span class="dashicons dashicons-yes-alt" style="margin: 0 2% 1% 0;"></span>{{strings.upgrade.reason_1}}</li>\n\t\t\t\t\t\t\t<li><span class="dashicons dashicons-yes-alt " style="margin: 0 2% 1% 0;"></span>{{strings.upgrade.reason_2}}</li>\n\t\t\t\t\t\t\t<li><span class="dashicons dashicons-yes-alt " style="margin: 0 2% 1% 0;"></span>{{strings.upgrade.reason_3}}</li>\n\t\t\t\t\t\t\t<li><span class="dashicons dashicons-yes-alt " style="margin: 0 2% 1% 0;"></span>{{strings.upgrade.reason_4}}</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t<figure class="image is-hidden-touch" style="position: absolute; left: 50%; top: 17%;">\n\t\t\t\t\t\t\t\t<img :src="logo" :alt="strings.optimole + \' \' + strings.service_details" >\n\t\t\t\t\t\t\t</figure>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<a class="is-size-6 optml-button" href="https://optimole.com/pricing" target="_blank" style="display:block; position:relative; color:white !important; margin:8% 10% 0 10%; padding: 4% 10% 4% 10%; text-align:center;background: rgba(0, 0, 0, 0.43);border-radius: 4px;">\n\t\t\t\t\t\t\t{{strings.upgrade.cta}}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>\n'},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(5),a=i(n),r=o(178),s=i(r),l=o(34),p=i(l),d=o(180),c=i(d),m=o(181),f=i(m);a.default.use(s.default),a.default.use(p.default);var u=new s.default.Store({strict:!0,state:{isConnecting:!1,loading:!1,loadingRollback:!1,loadingSync:!1,errorMedia:!1,checkedOffloadConflicts:!1,offloadConflicts:[],site_settings:optimoleDashboardApp.site_settings,connected:"yes"===optimoleDashboardApp.connection_status,is_loaded:"yes"===optimoleDashboardApp.connection_status,apiKey:optimoleDashboardApp.api_key?optimoleDashboardApp.api_key:"",userStatus:optimoleDashboardApp.user_status?optimoleDashboardApp.user_status:"inactive",apiKeyValidity:!0,connectError:"",sample_rate:{},apiError:!1,userData:optimoleDashboardApp.user_data?optimoleDashboardApp.user_data:null,hasApplication:"yes"===optimoleDashboardApp.has_application,autoConnect:optimoleDashboardApp.auto_connect,availableApps:optimoleDashboardApp.available_apps?optimoleDashboardApp.available_apps:null,optimizedImages:[],watermarks:[],conflicts:[],pushedImagesProgress:0,totalNumberOfImages:1,estimatedTime:0,sumTime:0,offloadLibraryLink:!1,rollbackLibraryLink:!1,queryArgs:[],showDisconnect:!1},mutations:c.default,actions:f.default});e.default=u},function(t,e,o){"use strict";function i(t){S&&(t._devtoolHook=S,S.emit("vuex:init",t),S.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){S.emit("vuex:mutation",t,e)}))}function n(t,e){Object.keys(t).forEach(function(o){return e(t[o],o)})}function a(t){return null!==t&&"object"==typeof t}function r(t){return t&&"function"==typeof t.then}function s(t,e,o){if(e.update(o),o.modules)for(var i in o.modules){if(!e.getChild(i))return;s(t.concat(i),e.getChild(i),o.modules[i])}}function l(t,e){return e.indexOf(t)<0&&e.push(t),function(){var o=e.indexOf(t);o>-1&&e.splice(o,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var o=t.state;c(t,o,[],t._modules.root,!0),d(t,o,e)}function d(t,e,o){var i=t._vm;t.getters={};var a=t._wrappedGetters,r={};n(a,function(e,o){r[o]=function(){return e(t)},Object.defineProperty(t.getters,o,{get:function(){return t._vm[o]},enumerable:!0})});var s=j.config.silent;j.config.silent=!0,t._vm=new j({data:{$$state:e},computed:r}),j.config.silent=s,t.strict&&v(t),i&&(o&&t._withCommit(function(){i._data.$$state=null}),j.nextTick(function(){return i.$destroy()}))}function c(t,e,o,i,n){var a=!o.length,r=t._modules.getNamespace(o);if(i.namespaced&&(t._modulesNamespaceMap[r]=i),!a&&!n){var s=g(e,o.slice(0,-1)),l=o[o.length-1];t._withCommit(function(){j.set(s,l,i.state)})}var p=i.context=m(t,r,o);i.forEachMutation(function(e,o){u(t,r+o,e,p)}),i.forEachAction(function(e,o){var i=e.root?o:r+o,n=e.handler||e;h(t,i,n,p)}),i.forEachGetter(function(e,o){b(t,r+o,e,p)}),i.forEachChild(function(i,a){c(t,e,o.concat(a),i,n)})}function m(t,e,o){var i=""===e,n={dispatch:i?t.dispatch:function(o,i,n){var a=x(o,i,n),r=a.payload,s=a.options,l=a.type;return s&&s.root||(l=e+l),t.dispatch(l,r)},commit:i?t.commit:function(o,i,n){var a=x(o,i,n),r=a.payload,s=a.options,l=a.type;s&&s.root||(l=e+l),t.commit(l,r,s)}};return Object.defineProperties(n,{getters:{get:i?function(){return t.getters}:function(){return f(t,e)}},state:{get:function(){return g(t.state,o)}}}),n}function f(t,e){var o={},i=e.length;return Object.keys(t.getters).forEach(function(n){if(n.slice(0,i)===e){var a=n.slice(i);Object.defineProperty(o,a,{get:function(){return t.getters[n]},enumerable:!0})}}),o}function u(t,e,o,i){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){o.call(t,i.state,e)})}function h(t,e,o,i){(t._actions[e]||(t._actions[e]=[])).push(function(e,n){var a=o.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e,n);return r(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):a})}function b(t,e,o,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return o(i.state,i.getters,t.state,t.getters)})}function v(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function g(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function x(t,e,o){return a(t)&&t.type&&(o=e,e=t,t=t.type),{type:t,payload:e,options:o}}function y(t){j&&t===j||(j=t,C(j))}function w(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function k(t){return function(e,o){return"string"!=typeof e?(o=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,o)}}function _(t,e,o){return t._modulesNamespaceMap[o]}Object.defineProperty(e,"__esModule",{value:!0}),o.d(e,"Store",function(){return $}),o.d(e,"install",function(){return y}),o.d(e,"mapState",function(){return D}),o.d(e,"mapMutations",function(){return T}),o.d(e,"mapGetters",function(){return M}),o.d(e,"mapActions",function(){return F}),o.d(e,"createNamespacedHelpers",function(){return P});/**
22
  * vuex v2.5.0
23
  * (c) 2017 Evan You
24
  * @license MIT
25
  */
26
+ var C=function(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var o=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,o.call(this,t)}}},S="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,O=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var o=t.state;this.state=("function"==typeof o?o():o)||{}},z={namespaced:{configurable:!0}};z.namespaced.get=function(){return!!this._rawModule.namespaced},O.prototype.addChild=function(t,e){this._children[t]=e},O.prototype.removeChild=function(t){delete this._children[t]},O.prototype.getChild=function(t){return this._children[t]},O.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},O.prototype.forEachChild=function(t){n(this._children,t)},O.prototype.forEachGetter=function(t){this._rawModule.getters&&n(this._rawModule.getters,t)},O.prototype.forEachAction=function(t){this._rawModule.actions&&n(this._rawModule.actions,t)},O.prototype.forEachMutation=function(t){this._rawModule.mutations&&n(this._rawModule.mutations,t)},Object.defineProperties(O.prototype,z);var A=function(t){this.register([],t,!1)};A.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},A.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,o){return e=e.getChild(o),t+(e.namespaced?o+"/":"")},"")},A.prototype.update=function(t){s([],this.root,t)},A.prototype.register=function(t,e,o){var i=this;void 0===o&&(o=!0);var a=new O(e,o);if(0===t.length)this.root=a;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],a)}e.modules&&n(e.modules,function(e,n){i.register(t.concat(n),e,o)})},A.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),o=t[t.length-1];e.getChild(o).runtime&&e.removeChild(o)};var j,$=function(t){var e=this;void 0===t&&(t={}),!j&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var o=t.plugins;void 0===o&&(o=[]);var n=t.strict;void 0===n&&(n=!1);var a=t.state;void 0===a&&(a={}),"function"==typeof a&&(a=a()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new j;var r=this,s=this,l=s.dispatch,p=s.commit;this.dispatch=function(t,e){return l.call(r,t,e)},this.commit=function(t,e,o){return p.call(r,t,e,o)},this.strict=n,c(this,a,[],this._modules.root),d(this,a),o.forEach(function(t){return t(e)}),j.config.devtools&&i(this)},E={state:{configurable:!0}};E.state.get=function(){return this._vm._data.$$state},E.state.set=function(t){},$.prototype.commit=function(t,e,o){var i=this,n=x(t,e,o),a=n.type,r=n.payload,s=(n.options,{type:a,payload:r}),l=this._mutations[a];l&&(this._withCommit(function(){l.forEach(function(t){t(r)})}),this._subscribers.forEach(function(t){return t(s,i.state)}))},$.prototype.dispatch=function(t,e){var o=this,i=x(t,e),n=i.type,a=i.payload,r={type:n,payload:a},s=this._actions[n];if(s)return this._actionSubscribers.forEach(function(t){return t(r,o.state)}),s.length>1?Promise.all(s.map(function(t){return t(a)})):s[0](a)},$.prototype.subscribe=function(t){return l(t,this._subscribers)},$.prototype.subscribeAction=function(t){return l(t,this._actionSubscribers)},$.prototype.watch=function(t,e,o){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},e,o)},$.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},$.prototype.registerModule=function(t,e,o){void 0===o&&(o={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),c(this,this.state,t,this._modules.get(t),o.preserveState),d(this,this.state)},$.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var o=g(e.state,t.slice(0,-1));j.delete(o,t[t.length-1])}),p(this)},$.prototype.hotUpdate=function(t){this._modules.update(t),p(this,!0)},$.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties($.prototype,E);var D=k(function(t,e){var o={};return w(e).forEach(function(e){var i=e.key,n=e.val;o[i]=function(){var e=this.$store.state,o=this.$store.getters;if(t){var i=_(this.$store,"mapState",t);if(!i)return;e=i.context.state,o=i.context.getters}return"function"==typeof n?n.call(this,e,o):e[n]},o[i].vuex=!0}),o}),T=k(function(t,e){var o={};return w(e).forEach(function(e){var i=e.key,n=e.val;o[i]=function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];var i=this.$store.commit;if(t){var a=_(this.$store,"mapMutations",t);if(!a)return;i=a.context.commit}return"function"==typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}}),o}),M=k(function(t,e){var o={};return w(e).forEach(function(e){var i=e.key,n=e.val;n=t+n,o[i]=function(){if(!t||_(this.$store,"mapGetters",t))return this.$store.getters[n]},o[i].vuex=!0}),o}),F=k(function(t,e){var o={};return w(e).forEach(function(e){var i=e.key,n=e.val;o[i]=function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];var i=this.$store.dispatch;if(t){var a=_(this.$store,"mapActions",t);if(!a)return;i=a.context.dispatch}return"function"==typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}}),o}),P=function(t){return{mapState:D.bind(null,t),mapGetters:M.bind(null,t),mapMutations:T.bind(null,t),mapActions:F.bind(null,t)}},L={Store:$,install:y,version:"2.5.0",mapState:D,mapMutations:T,mapGetters:M,mapActions:F,createNamespacedHelpers:P};e.default=L},function(t,e){},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){t.loading=e},n=function(t,e){Object.prototype.hasOwnProperty.call(t.queryArgs,"optimole_action")&&(t.rollbackLibraryLink=!e),t.loadingRollback=e},a=function(t,e){Object.prototype.hasOwnProperty.call(t.queryArgs,"optimole_action")&&(t.offloadLibraryLink=!e),t.loadingSync=e},r=function(t,e){t.errorMedia=e},s=function(t,e){t.isConnecting=e},l=function(t,e){t.apiKeyValidity=e},p=function(t,e){t.connected=e},d=function(t,e){t.showDisconnect=e},c=function(t,e){t.checkedOffloadConflicts=e},m=function(t,e){t.hasApplication=e},f=function(t,e){t.is_loaded=e},u=function(t,e){if(e&&e.app_count&&e.app_count>=1&&e.cdn_key){var o=!0,i=!1,n=void 0;try{for(var a,r=e.available_apps[Symbol.iterator]();!(o=(a=r.next()).done);o=!0){var s=a.value;s.key&&s.key===e.cdn_key&&s.status&&"active"===s.status&&(t.userStatus="active")}}catch(t){i=!0,n=t}finally{try{!o&&r.return&&r.return()}finally{if(i)throw n}}}t.userData=e},h=function(t,e){t.availableApps=e},b=function(t,e){t.connectError=e},v=function(t,e){t.apiKey=e},g=function(t,e){t.optimizedImages=e.body.data},x=function(t,e){t.sample_rate=e},y=function(t,e){t.apiError=e},w=function(t,e){for(var o in e)t.site_settings[o]=e[o]},k=function(t,e){for(var o in e)t.site_settings.watermark[o]=e[o]},_=function(t,e){t.conflicts=e.body.data},C=function(t,e){t.totalNumberOfImages=e},S=function(t,e){t.sumTime=t.sumTime+e.batchTime,t.estimatedTime=(t.sumTime/e.processedBatch*(Math.ceil(t.totalNumberOfImages/e.batchSize)-e.processedBatch)/6e4).toFixed(2)},O=function(t,e){if("finish"===e&&(t.pushedImagesProgress=100),"init"===e)return void(t.pushedImagesProgress=0);t.pushedImagesProgress<100&&(t.pushedImagesProgress+=e/t.totalNumberOfImages*100)},z=function(t,e){t.offloadConflicts=e.body.data};e.default={restApiNotWorking:y,toggleConnectedToOptml:p,toggleConnecting:s,toggleIsServiceLoaded:f,toggleKeyValidity:l,toggleLoading:i,updateApiKey:v,updateConflicts:_,updateOptimizedImages:g,updateSampleRate:x,updateServiceError:b,updateSettings:w,updateUserData:u,updateAvailableApps:h,toggleHasOptmlApp:m,updateWatermark:k,updatePushedImagesProgress:O,totalNumberOfImages:C,estimatedTime:S,toggleLoadingRollback:n,toggleLoadingSync:a,toggleActionError:r,toggleShowDisconnectNotice:d,toggleCheckedOffloadConflicts:c,updateOffloadConflicts:z}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(5),a=i(n),r=o(34),s=i(r);a.default.use(s.default);var l=function(t,e){var o=t.commit;t.state;o("toggleConnecting",!0),o("restApiNotWorking",!1),a.default.http({url:optimoleDashboardApp.routes.select_application,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{api_key:e.apiKey,application:e.application},responseType:"json",emulateJSON:!0}).then(function(t){o("toggleConnecting",!1),"success"===t.body.code?(o("toggleKeyValidity",!0),o("toggleHasOptmlApp",!0),o("updateApiKey",e.apiKey),o("updateUserData",t.body.data),o("updateAvailableApps",t.body.data),console.log("%c OptiMole API connection successful.","color: #59B278")):(o("toggleKeyValidity",!1),o("updateServiceError",t.body.data),console.log("%c Invalid API Key.","color: #E7602A"))},function(){o("toggleConnecting",!1),o("restApiNotWorking",!0)})},p=function(t,e){var o=t.commit;t.state;o("toggleConnecting",!0),o("restApiNotWorking",!1),a.default.http({url:optimoleDashboardApp.routes.connect,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{api_key:e.apiKey},responseType:"json",emulateJSON:!0}).then(function(t){o("toggleConnecting",!1),"success"===t.body.code?(o("toggleKeyValidity",!0),o("toggleConnectedToOptml",!0),o("updateApiKey",e.apiKey),void 0!==t.body.data.app_count&&t.body.data.app_count>1?o("updateAvailableApps",t.body.data):(o("updateUserData",t.body.data),o("toggleHasOptmlApp",!0)),console.log("%c OptiMole API connection successful.","color: #59B278")):(o("toggleKeyValidity",!1),o("updateServiceError",t.body.data),console.log("%c Invalid API Key.","color: #E7602A"))},function(){o("toggleConnecting",!1),o("restApiNotWorking",!0)})},d=function(t,e){var o=t.commit;t.state;return o("restApiNotWorking",!1),o("toggleConnecting",!0),o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.register_service,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},body:{email:e.email,auto_connect:e.autoConnect},emulateJSON:!0,responseType:"json"}).then(function(t){return o("toggleConnecting",!1),o("toggleLoading",!1),"success"===t.body.code&&(o("toggleConnectedToOptml",!0),o("toggleKeyValidity",!0),o("toggleHasOptmlApp",!0),o("updateApiKey",e.apiKey),o("updateUserData",t.body.data),o("updateAvailableApps",t.body.data)),t.data},function(t){return o("toggleConnecting",!1),o("restApiNotWorking",!0),t.data})},c=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0,"loading"),a.default.http({url:optimoleDashboardApp.routes.disconnect,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json"}).then(function(t){o("updateUserData",null),o("toggleLoading",!1),o("updateApiKey",""),o("updateAvailableApps",null),o("toggleHasOptmlApp",!1),t.ok?(o("toggleConnectedToOptml",!1),o("toggleIsServiceLoaded",!1),o("toggleShowDisconnectNotice",!1),console.log("%c Disconnected from OptiMole API.","color: #59B278")):console.error(t)})},m=function(t,e){var o=t.commit;t.state;return o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.clear_cache_request,method:"POST",body:{type:e.type},headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json"}).then(function(t){"200"===t.body.code?console.log("%c New cache token generated.","color: #59B278"):console.log("%c Could not generate cache token.","color: #E7602A"),o("toggleLoading",!1)})},f=function(t,e){var o=t.commit;t.state;return o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.update_option,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,body:{settings:e.settings},responseType:"json"}).then(function(t){"success"===t.body.code&&o("updateSettings",t.body.data),o("toggleLoading",!1)})},u=function(t,e){var o=t.commit;t.state;return e.component.loading_images=!0,a.default.http({url:optimoleDashboardApp.routes.get_sample_rate,method:"POST",emulateJSON:!0,headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{quality:e.quality,force:e.force},responseType:"json"}).then(function(t){e.component.loading_images=!1,"success"===t.body.code&&o("updateSampleRate",t.body.data)})},h=function(t,e){var o=t.commit,i=(t.state,this);setTimeout(function(){if(i.state.optimizedImages.length>0)return console.log("%c Images already exsist.","color: #59B278"),!1;a.default.http({url:optimoleDashboardApp.routes.poll_optimized_images,method:"GET",emulateJSON:!0,headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json",timeout:1e4}).then(function(t){"success"===t.body.code?(o("updateOptimizedImages",t),null!==e.component&&(e.component.loading=!1,e.component.startTime=e.component.maxTime,0===t.body.data.length&&(e.component.noImages=!0)),console.log("%c Images Fetched.","color: #59B278")):null!==e.component&&(e.component.noImages=!0,e.component.loading=!1,console.log("%c No images available.","color: #E7602A"))}).catch(function(t){null!==e.component&&(e.component.noImages=!0,e.component.loading=!1,console.log("Error while polling images",t))})},e.waitTime)},b=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.poll_watermarks,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){if(o("toggleLoading",!1),200===t.status){e.component.watermarkData=[];for(var i in t.data.data){var n=t.data.data[i],a={ID:n.ID,post_title:n.post_title,post_mime_type:n.post_mime_type,guid:n.post_content||n.guid};e.component.watermarkData.push(a),e.component.noImages=!1}}})},v=function(t,e){var o=t.commit,i=t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.remove_watermark,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{postID:e.postID},responseType:"json"}).then(function(t){o("toggleLoading",!1),b({commit:o,state:i},e)})},g=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.request_update,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){o("toggleLoading",!1),200===t.status&&o("updateUserData",t.body.data),"disconnected"===t.body.code&&(o("toggleConnectedToOptml",!1),o("toggleIsServiceLoaded",!1),console.log("%c Disconnected from OptiMole API.","color: #59B278"))})},x=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.poll_conflicts,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},responseType:"json"}).then(function(t){o("toggleLoading",!1),200===t.status&&(console.log(t),o("updateConflicts",t))})},y=function(t,e){var o=t.commit;t.state;o("toggleLoading",!0),a.default.http({url:optimoleDashboardApp.routes.dismiss_conflict,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},params:{conflictID:e.conflictID},responseType:"json"}).then(function(t){o("toggleLoading",!1),200===t.status&&(console.log(t),o("updateConflicts",t))})},w="pending",k="pending",_=function t(e,o,i,n,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;0===i.length?w="done":a.default.http({url:optimoleDashboardApp.routes.upload_rollback_images,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,timeout:0,responseType:"json",body:{image_ids:i,job:o}}).then(function(a){if(i.length>0)t(e,o,i,n,r),i.splice(0,r);else{C(n);var s=setInterval(function(){"done"===k&&(k="pending",w="done",clearInterval(s))},1e4)}}).catch(function(a){s<10?setTimeout(function(){t(e,o,i,n,r,s+1)},1e3*s+5e3):k="fail"})},C=function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;a.default.http({url:optimoleDashboardApp.routes.update_page,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,timeout:0,responseType:"json",body:{post_id:e}}).then(function(t){if("success"!==t.body.code||!0!==t.body.data)throw"failed_update";k="done"}).catch(function(i){o<10?setTimeout(function(){t(e,o+1)},1e3*o+5e3):w="fail"})},S=function t(e,o,i,n,r,s){var l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],p=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,d=new Date,c="update_content";if(!0===l){if("none"!==s&&0===s.length)return e("updatePushedImagesProgress","finish"),void("offload_images"===n?e("toggleLoadingSync",!1):e("toggleLoadingRollback",!1));c=n}a.default.http({url:optimoleDashboardApp.routes[c],method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,timeout:0,responseType:"json",body:{batch:o,page:i,job:n,images:s}}).then(function(a){if("success"===a.body.code&&(a.body.data.page>i||a.body.data.found_images>0))if(!1===l&&0!==Object.keys(a.body.data.imagesToUpdate).length){var p=!0,c=!1,m=void 0;try{for(var f,u=Object.keys(a.body.data.imagesToUpdate)[Symbol.iterator]();!(p=(f=u.next()).done);p=!0)!function(){var i=f.value,p=a.body.data.imagesToUpdate[i];"none"!==s&&0!==s.length&&(p=p.filter(function(t){return s.includes(t)})),_(e,n,p,i,o,0);var c=setInterval(function(){("done"===w||"fail"===w&&"rollback_images"===n)&&(w="pending",e("updatePushedImagesProgress",o),e("estimatedTime",{batchTime:new Date-d,batchSize:o,processedBatch:r+1}),t(e,o,a.body.data.page,n,r+1,s,l,0),clearInterval(c))},1e4)}()}catch(t){c=!0,m=t}finally{try{!p&&u.return&&u.return()}finally{if(c)throw m}}}else e("updatePushedImagesProgress",o),e("estimatedTime",{batchTime:new Date-d,batchSize:o,processedBatch:r+1}),t(e,o,a.body.data.page,n,r+1,s,l,0),!0===l&&"none"!==s&&s.splice(0,o);else!1===l?(t(e,o,a.body.data.page,n,r+1,s,!0,0),"none"!==s&&s.splice(0,o)):(e("updatePushedImagesProgress","finish"),"offload_images"===n?e("toggleLoadingSync",!1):e("toggleLoadingRollback",!1))}).catch(function(a){console.log(a),p<10?setTimeout(function(){t(e,o,i,n,r,s,l,p+1)},1e3*p+5e3):(e("toggleActionError",n),e("toggleLoadingSync",!1),e("toggleLoadingRollback",!1))})},O=function t(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;a.default.http({url:optimoleDashboardApp.routes.number_of_images_and_pages,method:"POST",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json",body:{action:e.action}}).then(function(t){if(200===t.status&&t.body.data>0){o("totalNumberOfImages",t.body.data);var i=1;Math.ceil(t.body.data/10)<=i&&(i=Math.ceil(t.body.data/10)),S(o,i,1,e.action,0,e.images)}else"offload_images"===e.action&&o("toggleLoadingSync",!1),"rollback_images"===e.action&&o("toggleLoadingRollback",!1)}).catch(function(n){i<10?setTimeout(function(){t(e,o,i+1)},1e3*i+1e3):(o("toggleActionError",e.action),o("toggleLoadingSync",!1),o("toggleLoadingRollback",!1))})},z=function(t){var e=t.commit;t.state;a.default.http({url:optimoleDashboardApp.routes.get_offload_conflicts,method:"GET",headers:{"X-WP-Nonce":optimoleDashboardApp.nonce},emulateJSON:!0,responseType:"json"}).then(function(t){e("toggleCheckedOffloadConflicts",!0),0!==t.body.data.length&&e("updateOffloadConflicts",t)}).catch(function(t){})},A=function(t,e){var o=t.commit;t.state;o("updatePushedImagesProgress","init"),"offload_images"===e.action&&o("toggleLoadingSync",!0),"rollback_images"===e.action&&o("toggleLoadingRollback",!0),O(e,o,0)};e.default={clearCache:m,connectOptimole:p,disconnectOptimole:c,selectOptimoleDomain:l,dismissConflict:y,registerOptimole:d,removeWatermark:v,requestStatsUpdate:g,retrieveConflicts:x,retrieveOptimizedImages:h,retrieveWatermarks:b,sampleRate:u,saveSettings:f,callSync:A,getOffloadConflicts:z}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function i(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}function n(){n.init||(n.init=!0,r=-1!==i())}function a(t){t.component("resize-observer",s),t.component("ResizeObserver",s)}o.d(e,"install",function(){return a}),o.d(e,"ResizeObserver",function(){return s});var r=void 0,s={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var t=this;n(),this.$nextTick(function(){t._w=t.$el.offsetWidth,t._h=t.$el.offsetHeight});var e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",r&&this.$el.appendChild(e),e.data="about:blank",r||this.$el.appendChild(e)},beforeDestroy:function(){this.removeResizeHandlers()}},l={version:"0.4.5",install:a},p=null;"undefined"!=typeof window?p=window.Vue:void 0!==t&&(p=t.Vue),p&&p.use(l),e.default=l}.call(e,o(8))},function(t,e,o){!function(e,o){t.exports=o()}(0,function(){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,o){o(8);var i=o(6)(o(1),o(7),"data-v-25adc6c0",null);t.exports=i.exports},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(3),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"ToggleButton",props:{value:{type:Boolean,default:!1},name:{type:String},disabled:{type:Boolean,default:!1},tag:{type:String},sync:{type:Boolean,default:!1},speed:{type:Number,default:300},color:{type:[String,Object],validator:function(t){return o.i(i.a)(t)||o.i(i.b)(t,"checked")||o.i(i.b)(t,"unchecked")||o.i(i.b)(t,"disabled")}},switchColor:{type:[String,Object],validator:function(t){return o.i(i.a)(t)||o.i(i.b)(t,"checked")||o.i(i.b)(t,"unchecked")}},cssColors:{type:Boolean,default:!1},labels:{type:[Boolean,Object],default:!1,validator:function(t){return"object"===(void 0===t?"undefined":n(t))?t.checked||t.unchecked:"boolean"==typeof t}},height:{type:Number,default:22},width:{type:Number,default:50},margin:{type:Number,default:3},fontSize:{type:Number}},computed:{className:function(){return["vue-js-switch",{toggled:this.toggled,disabled:this.disabled}]},coreStyle:function(){return{width:o.i(i.c)(this.width),height:o.i(i.c)(this.height),backgroundColor:this.cssColors?null:this.disabled?this.colorDisabled:this.colorCurrent,borderRadius:o.i(i.c)(Math.round(this.height/2))}},buttonRadius:function(){return this.height-2*this.margin},distance:function(){return o.i(i.c)(this.width-this.height+this.margin)},buttonStyle:function(){var t="transform "+this.speed+"ms",e=o.i(i.c)(this.margin),n=this.toggled?o.i(i.d)(this.distance,e):o.i(i.d)(e,e),a=this.switchColor?this.switchColorCurrent:null;return{width:o.i(i.c)(this.buttonRadius),height:o.i(i.c)(this.buttonRadius),transition:t,transform:n,background:a}},labelStyle:function(){return{lineHeight:o.i(i.c)(this.height),fontSize:this.fontSize?o.i(i.c)(this.fontSize):null}},colorChecked:function(){var t=this.color;return o.i(i.e)(t)?o.i(i.f)(t,"checked","#75c791"):t||"#75c791"},colorUnchecked:function(){return o.i(i.f)(this.color,"unchecked","#bfcbd9")},colorDisabled:function(){return o.i(i.f)(this.color,"disabled",this.colorCurrent)},colorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){return o.i(i.f)(this.labels,"checked","on")},labelUnchecked:function(){return o.i(i.f)(this.labels,"unchecked","off")},switchColorChecked:function(){return o.i(i.f)(this.switchColor,"checked","#fff")},switchColorUnchecked:function(){return o.i(i.f)(this.switchColor,"unchecked","#fff")},switchColorCurrent:function(){this.switchColor;return o.i(i.e)(this.switchColor)?this.toggled?this.switchColorChecked:this.switchColorUnchecked:this.switchColor||"#fff"}},watch:{value:function(t){this.sync&&(this.toggled=!!t)}},data:function(){return{toggled:!!this.value}},methods:{toggle:function(t){var e=!this.toggled;this.sync||(this.toggled=e),this.$emit("input",e),this.$emit("change",{value:e,tag:this.tag,srcEvent:t})}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o.n(i);o.d(e,"ToggleButton",function(){return n.a});var a=!1;e.default={install:function(t){a||(t.component("ToggleButton",n.a),a=!0)}}},function(t,e,o){"use strict";o.d(e,"a",function(){return n}),o.d(e,"e",function(){return a}),o.d(e,"b",function(){return r}),o.d(e,"f",function(){return s}),o.d(e,"c",function(){return l}),o.d(e,"d",function(){return p});var i="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},n=function(t){return"string"==typeof t},a=function(t){return"object"===(void 0===t?"undefined":i(t))},r=function(t,e){return a(t)&&t.hasOwnProperty(e)},s=function(t,e,o){return r(t,e)?t[e]:o},l=function(t){return t+"px"},p=function(t,e){return"translate3d("+t+", "+e+", "+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0px")+")"}},function(t,e,o){e=t.exports=o(5)(),e.push([t.i,".vue-js-switch[data-v-25adc6c0]{display:inline-block;position:relative;vertical-align:middle;user-select:none;font-size:10px;cursor:pointer}.vue-js-switch .v-switch-input[data-v-25adc6c0]{opacity:0;position:absolute;width:1px;height:1px}.vue-js-switch .v-switch-label[data-v-25adc6c0]{position:absolute;top:0;font-weight:600;color:#fff;z-index:1}.vue-js-switch .v-switch-label.v-left[data-v-25adc6c0]{left:10px}.vue-js-switch .v-switch-label.v-right[data-v-25adc6c0]{right:10px}.vue-js-switch .v-switch-core[data-v-25adc6c0]{display:block;position:relative;box-sizing:border-box;outline:0;margin:0;transition:border-color .3s,background-color .3s;user-select:none}.vue-js-switch .v-switch-core .v-switch-button[data-v-25adc6c0]{display:block;position:absolute;overflow:hidden;top:0;left:0;border-radius:100%;background-color:#fff;z-index:2}.vue-js-switch.disabled[data-v-25adc6c0]{pointer-events:none;opacity:.6}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var o=this[e];o[2]?t.push("@media "+o[2]+"{"+o[1]+"}"):t.push(o[1])}return t.join("")},t.i=function(e,o){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},n=0;n<this.length;n++){var a=this[n][0];"number"==typeof a&&(i[a]=!0)}for(n=0;n<e.length;n++){var r=e[n];"number"==typeof r[0]&&i[r[0]]||(o&&!r[2]?r[2]=o:o&&(r[2]="("+r[2]+") and ("+o+")"),t.push(r))}},t}},function(t,e){t.exports=function(t,e,o,i){var n,a=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(n=t,a=t.default);var s="function"==typeof a?a.options:a;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),o&&(s._scopeId=o),i){var l=Object.create(s.computed||null);Object.keys(i).forEach(function(t){var e=i[t];l[t]=function(){return e}}),s.computed=l}return{esModule:n,exports:a,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("label",{class:t.className},[o("input",{staticClass:"v-switch-input",attrs:{type:"checkbox",name:t.name,disabled:t.disabled},domProps:{checked:t.value},on:{change:function(e){return e.stopPropagation(),t.toggle(e)}}}),t._v(" "),o("div",{staticClass:"v-switch-core",style:t.coreStyle},[o("div",{staticClass:"v-switch-button",style:t.buttonStyle})]),t._v(" "),t.labels?[t.toggled?o("span",{staticClass:"v-switch-label v-left",style:t.labelStyle},[t._t("checked",[[t._v(t._s(t.labelChecked))]])],2):o("span",{staticClass:"v-switch-label v-right",style:t.labelStyle},[t._t("unchecked",[[t._v(t._s(t.labelUnchecked))]])],2)]:t._e()],2)},staticRenderFns:[]}},function(t,e,o){var i=o(4);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);o(9)("2283861f",i,!0)},function(t,e,o){function i(t){for(var e=0;e<t.length;e++){var o=t[e],i=d[o.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](o.parts[n]);for(;n<o.parts.length;n++)i.parts.push(a(o.parts[n]));i.parts.length>o.parts.length&&(i.parts.length=o.parts.length)}else{for(var r=[],n=0;n<o.parts.length;n++)r.push(a(o.parts[n]));d[o.id]={id:o.id,refs:1,parts:r}}}}function n(){var t=document.createElement("style");return t.type="text/css",c.appendChild(t),t}function a(t){var e,o,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(u)return h;i.parentNode.removeChild(i)}if(b){var a=f++;i=m||(m=n()),e=r.bind(null,i,a,!1),o=r.bind(null,i,a,!0)}else i=n(),e=s.bind(null,i),o=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else o()}}function r(t,e,o,i){var n=o?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,n);else{var a=document.createTextNode(n),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function s(t,e){var o=e.css,i=e.media,n=e.sourceMap;if(i&&t.setAttribute("media",i),n&&(o+="\n/*# sourceURL="+n.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)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 p=o(10),d={},c=l&&(document.head||document.getElementsByTagName("head")[0]),m=null,f=0,u=!1,h=function(){},b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,o){u=o;var n=p(t,e);return i(n),function(e){for(var o=[],a=0;a<n.length;a++){var r=n[a],s=d[r.id];s.refs--,o.push(s)}e?(n=p(t,e),i(n)):n=[];for(var a=0;a<o.length;a++){var s=o[a];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}};var v=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var o=[],i={},n=0;n<e.length;n++){var a=e[n],r=a[0],s=a[1],l=a[2],p=a[3],d={id:t+":"+n,css:s,media:l,sourceMap:p};i[r]?i[r].parts.push(d):o.push(i[r]={id:r,parts:[d]})}return o}}])})},function(t,e,o){"use strict";function i(t,e,o,i,n,a,r,s,l,p){"boolean"!=typeof r&&(l=s,s=r,r=!1);var d="function"==typeof o?o.options:o;t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,n&&(d.functional=!0)),i&&(d._scopeId=i);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=c):e&&(c=r?function(){e.call(this,p(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),c)if(d.functional){var m=d.render;d.render=function(t,e){return c.call(e),m(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return o}Object.defineProperty(e,"__esModule",{value:!0});/*!
27
  * vue-textarea-autosize v1.1.1
28
  * (c) 2019 Saymon
29
  * Released under the MIT License.
cypress.config.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const { defineConfig } = require( 'cypress' )
2
+
3
+ module.exports = defineConfig( {
4
+ projectId: '767db5',
5
+ videoUploadOnPasses: false,
6
+ numTestsKeptInMemory: 0,
7
+ experimentalStudio: true,
8
+ e2e: {
9
+ setupNodeEvents( on, config ) {},
10
+ supportFile: false,
11
+ baseUrl: 'http://testing.optimole.com',
12
+ specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
13
+ pageLoadTimeout : 300000,
14
+ },
15
+ } )
inc/admin.php CHANGED
@@ -976,6 +976,8 @@ The root cause might be either a security plugin which blocks this feature or so
976
  'offload_disable_warning_title' => __( 'Important! Please read carefully', 'optimole-wp' ),
977
  'offload_disable_warning_desc' => __( 'If you disable this option you will not be able to see the images in the media library without restoring the images first, do you want to restore the images to your site upon disabling the option ?', 'optimole-wp' ),
978
  'offload_enable_info_desc' => sprintf( __( 'You are not required to use the offload functionality for the plugin to work, use it if you want to save on hosting space. %1$s More details. %2$s', 'optimole-wp' ), '<a href="https://docs.optimole.com/article/1323-cloud-library-browsing">', '</a>' ),
 
 
979
  'select' => __( 'Please select one ...', 'optimole-wp' ),
980
  'yes' => __( 'Restore images after disabling', 'optimole-wp' ),
981
  'no' => __( 'Do not restore images after disabling', 'optimole-wp' ),
976
  'offload_disable_warning_title' => __( 'Important! Please read carefully', 'optimole-wp' ),
977
  'offload_disable_warning_desc' => __( 'If you disable this option you will not be able to see the images in the media library without restoring the images first, do you want to restore the images to your site upon disabling the option ?', 'optimole-wp' ),
978
  'offload_enable_info_desc' => sprintf( __( 'You are not required to use the offload functionality for the plugin to work, use it if you want to save on hosting space. %1$s More details. %2$s', 'optimole-wp' ), '<a href="https://docs.optimole.com/article/1323-cloud-library-browsing">', '</a>' ),
979
+ 'offload_conflicts_part_1' => __( 'We have detected the following plugins that conflict with the offload features: ', 'optimole-wp' ),
980
+ 'offload_conflicts_part_2' => __( 'Please disable those plugins temporarily in order for Optimole to rollback the images to your site.', 'optimole-wp' ),
981
  'select' => __( 'Please select one ...', 'optimole-wp' ),
982
  'yes' => __( 'Restore images after disabling', 'optimole-wp' ),
983
  'no' => __( 'Do not restore images after disabling', 'optimole-wp' ),
inc/api.php CHANGED
@@ -21,6 +21,12 @@ final class Optml_Api {
21
  * @var string Api root.
22
  */
23
  private $upload_api_root = 'https://generateurls-prod.i.optimole.com/upload';
 
 
 
 
 
 
24
  /**
25
  * Hold the user api key.
26
  *
@@ -39,6 +45,9 @@ final class Optml_Api {
39
  if ( defined( 'OPTIML_UPLOAD_API_ROOT' ) && constant( 'OPTIML_UPLOAD_API_ROOT' ) ) {
40
  $this->upload_api_root = constant( 'OPTIML_UPLOAD_API_ROOT' );
41
  }
 
 
 
42
  }
43
 
44
  /**
@@ -200,7 +209,9 @@ final class Optml_Api {
200
  */
201
  public function check_optimized_url( $url ) {
202
  $response = wp_remote_get( $url, ['timeout' => 30] );
203
- if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) !== 200 ) {
 
 
204
  return false;
205
  }
206
  return true;
@@ -360,6 +371,45 @@ final class Optml_Api {
360
  }
361
  return $this->request( 'optml/v2/media/browser', 'GET', $params );
362
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
363
 
364
  /**
365
  * Throw error on object clone
21
  * @var string Api root.
22
  */
23
  private $upload_api_root = 'https://generateurls-prod.i.optimole.com/upload';
24
+ /**
25
+ * Optimole offload conflicts api root url.
26
+ *
27
+ * @var string Api root.
28
+ */
29
+ private $upload_conflicts_api = 'https://conflicts.i.optimole.com/offload_api/';
30
  /**
31
  * Hold the user api key.
32
  *
45
  if ( defined( 'OPTIML_UPLOAD_API_ROOT' ) && constant( 'OPTIML_UPLOAD_API_ROOT' ) ) {
46
  $this->upload_api_root = constant( 'OPTIML_UPLOAD_API_ROOT' );
47
  }
48
+ if ( defined( 'OPTIML_UPLOAD_CONFLICTS_API_ROOT' ) && constant( 'OPTIML_UPLOAD_CONFLICTS_API_ROOT' ) ) {
49
+ $this->upload_conflicts_api = constant( 'OPTIML_UPLOAD_CONFLICTS_API_ROOT' );
50
+ }
51
  }
52
 
53
  /**
209
  */
210
  public function check_optimized_url( $url ) {
211
  $response = wp_remote_get( $url, ['timeout' => 30] );
212
+
213
+ if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) !== 200 || ! empty( wp_remote_retrieve_header( $response, 'x-not-found-o' ) ) ) {
214
+ $this->log_offload_error( $response );
215
  return false;
216
  }
217
  return true;
371
  }
372
  return $this->request( 'optml/v2/media/browser', 'GET', $params );
373
  }
374
+ /**
375
+ * Get offload conflicts.
376
+ *
377
+ * @return array The decoded conflicts list.
378
+ */
379
+ public function get_offload_conflicts() {
380
+ $conflicts_list = wp_remote_retrieve_body( wp_remote_get( $this->upload_conflicts_api ) );
381
+ return json_decode( $conflicts_list, true );
382
+ }
383
+ /**
384
+ * Get offload conflicts.
385
+ *
386
+ * @param array $error_response The error to send as a string.
387
+ */
388
+ public function log_offload_error( $error_response ) {
389
+
390
+ $headers = wp_remote_retrieve_headers( $error_response );
391
+ $body = wp_remote_retrieve_body( $error_response );
392
+
393
+ $headers_to_log = 'no_headers_returned';
394
+ if ( ! empty( $headers ) ) {
395
+ $headers_to_log = wp_json_encode( $headers->getAll() );
396
+ }
397
+ wp_remote_post(
398
+ $this->upload_conflicts_api,
399
+ [
400
+ 'headers' => [ 'Content-Type' => 'application/json' ],
401
+ 'timeout' => 15,
402
+ 'blocking' => true,
403
+ 'sslverify' => false,
404
+ 'data_format' => 'body',
405
+ 'body' => [
406
+ 'error_body' => wp_json_encode( $body ),
407
+ 'error_headers' => $headers_to_log,
408
+ 'error_site' => wp_json_encode( get_home_url() ),
409
+ ],
410
+ ]
411
+ );
412
+ }
413
 
414
  /**
415
  * Throw error on object clone
inc/compatibilities/elementor_builder_late.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Class Optml_elementor_builder_late
5
+ *
6
+ * @reason Adding action for elementor meta replacement
7
+ */
8
+ class Optml_elementor_builder_late extends Optml_compatibility {
9
+
10
+ /**
11
+ * Should we load the integration logic.
12
+ *
13
+ * @return bool Should we load.
14
+ */
15
+ function should_load() {
16
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
17
+
18
+ return is_plugin_active( 'elementor/elementor.php' );
19
+ }
20
+
21
+ /**
22
+ * Register integration details.
23
+ */
24
+ public function register() {
25
+ add_action( 'get_post_metadata', [ $this, 'replace_meta' ], PHP_INT_MAX, 4 );
26
+ }
27
+ /**
28
+ * Replace urls in post meta values.
29
+ *
30
+ * @param mixed $metadata Metadata.
31
+ * @param int $object_id Post id.
32
+ * @param string $meta_key Meta key.
33
+ * @param bool $single Is single.
34
+ *
35
+ * @return mixed Altered meta.
36
+ */
37
+ public function replace_meta( $metadata, $object_id, $meta_key, $single ) {
38
+
39
+ $meta_needed = '_elementor_data';
40
+
41
+ if ( isset( $meta_key ) && $meta_needed === $meta_key ) {
42
+ remove_filter( 'get_post_metadata', [ $this, 'replace_meta' ], PHP_INT_MAX );
43
+
44
+ $current_meta = get_post_meta( $object_id, $meta_needed, $single );
45
+ add_filter( 'get_post_metadata', [ $this, 'replace_meta' ], PHP_INT_MAX, 4 );
46
+
47
+ if ( ! is_string( $current_meta ) ) {
48
+ return $metadata;
49
+ }
50
+
51
+ return Optml_Main::instance()->manager->replace_content( $current_meta );
52
+ }
53
+
54
+ // Return original if the check does not pass
55
+ return $metadata;
56
+ }
57
+ }
58
+
inc/manager.php CHANGED
@@ -81,6 +81,7 @@ final class Optml_Manager {
81
  'facetwp',
82
  'wp_rest_cache',
83
  'wp_bakery',
 
84
  ];
85
  /**
86
  * The current state of the buffer.
@@ -274,8 +275,6 @@ final class Optml_Manager {
274
  add_action( 'template_redirect', [ $this, 'register_after_setup' ] );
275
  add_action( 'rest_api_init', [ $this, 'process_template_redirect_content' ], PHP_INT_MIN );
276
 
277
- add_action( 'get_post_metadata', [ $this, 'replace_meta' ], PHP_INT_MAX, 4 );
278
-
279
  foreach ( self::$loaded_compatibilities as $registered_compatibility ) {
280
  $registered_compatibility->register();
281
  }
@@ -288,37 +287,6 @@ final class Optml_Manager {
288
  do_action( 'optml_after_setup' );
289
  }
290
 
291
- /**
292
- * Replace urls in post meta values.
293
- *
294
- * @param mixed $metadata Metadata.
295
- * @param int $object_id Post id.
296
- * @param string $meta_key Meta key.
297
- * @param bool $single Is single.
298
- *
299
- * @return mixed Altered meta.
300
- */
301
- public function replace_meta( $metadata, $object_id, $meta_key, $single ) {
302
-
303
- $meta_needed = '_elementor_data';
304
-
305
- if ( isset( $meta_key ) && $meta_needed === $meta_key ) {
306
- remove_filter( 'get_post_metadata', [ $this, 'replace_meta' ], PHP_INT_MAX );
307
-
308
- $current_meta = get_post_meta( $object_id, $meta_needed, $single );
309
- add_filter( 'get_post_metadata', [ $this, 'replace_meta' ], PHP_INT_MAX, 4 );
310
-
311
- if ( ! is_string( $current_meta ) ) {
312
- return $metadata;
313
- }
314
-
315
- return $this->replace_content( $current_meta );
316
- }
317
-
318
- // Return original if the check does not pass
319
- return $metadata;
320
- }
321
-
322
  /**
323
  * Filter raw HTML content for urls.
324
  *
81
  'facetwp',
82
  'wp_rest_cache',
83
  'wp_bakery',
84
+ 'elementor_builder_late',
85
  ];
86
  /**
87
  * The current state of the buffer.
275
  add_action( 'template_redirect', [ $this, 'register_after_setup' ] );
276
  add_action( 'rest_api_init', [ $this, 'process_template_redirect_content' ], PHP_INT_MIN );
277
 
 
 
278
  foreach ( self::$loaded_compatibilities as $registered_compatibility ) {
279
  $registered_compatibility->register();
280
  }
287
  do_action( 'optml_after_setup' );
288
  }
289
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  /**
291
  * Filter raw HTML content for urls.
292
  *
inc/media_offload.php CHANGED
@@ -28,12 +28,20 @@ class Optml_Media_Offload extends Optml_App_Replacer {
28
  'uploaded_flag' => 'id:',
29
  'not_processed_flag' => 'process:',
30
  ];
 
 
31
  /**
32
  * Flag used inside wp_get_attachment url filter.
33
  *
34
  * @var bool Whether or not to return the original url of the image.
35
  */
36
  private static $return_original_url = false;
 
 
 
 
 
 
37
  /**
38
  * Enqueue script for generating cloud media tab.
39
  */
@@ -183,10 +191,34 @@ class Optml_Media_Offload extends Optml_App_Replacer {
183
  add_filter( 'bulk_actions-upload', [self::$instance, 'register_bulk_media_actions'] );
184
  add_filter( 'media_row_actions', [self::$instance, 'add_inline_media_action'], 10, 2 );
185
  add_filter( 'wp_calculate_image_srcset', [self::$instance, 'calculate_image_srcset'], 1, 5 );
 
186
  }
187
  }
188
  return self::$instance;
189
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  /**
191
  * Get image size name from width and meta.
192
  *
@@ -438,11 +470,33 @@ class Optml_Media_Offload extends Optml_App_Replacer {
438
  'optml_replacement_wp_query_args',
439
  ['post_type' => $post_types, 'post_status' => 'any', 'fields' => 'ids',
440
  'posts_per_page' => $batch,
441
- 'update_post_meta_cache' => false,
442
  'update_post_term_cache' => false,
443
  ]
444
  );
445
- $query_args['paged'] = $page;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  $content = new \WP_Query( $query_args );
447
  if ( OPTML_DEBUG ) {
448
  do_action( 'optml_log', $page );
@@ -457,6 +511,14 @@ class Optml_Media_Offload extends Optml_App_Replacer {
457
  if ( count( $ids ) > 0 ) {
458
  $images_to_update[ $content_id ] = $ids;
459
  }
 
 
 
 
 
 
 
 
460
  }
461
  }
462
  $page ++;
@@ -1131,7 +1193,9 @@ class Optml_Media_Offload extends Optml_App_Replacer {
1131
  * @return bool Whether the update was succesful or not.
1132
  */
1133
  public function update_page( $post_id ) {
 
1134
  $post_update = wp_update_post( ['ID' => $post_id] );
 
1135
  if ( is_wp_error( $post_update ) || $post_update === 0 ) {
1136
  return false;
1137
  }
28
  'uploaded_flag' => 'id:',
29
  'not_processed_flag' => 'process:',
30
  ];
31
+ const POST_OFFLOADED_FLAG = 'optimole_offload_post';
32
+ const POST_ROLLBACK_FLAG = 'optimole_rollback_post';
33
  /**
34
  * Flag used inside wp_get_attachment url filter.
35
  *
36
  * @var bool Whether or not to return the original url of the image.
37
  */
38
  private static $return_original_url = false;
39
+ /**
40
+ * Flag used inside wp_get_attachment url filter.
41
+ *
42
+ * @var bool Whether or not to return the original url of the image.
43
+ */
44
+ private static $offload_update_post = false;
45
  /**
46
  * Enqueue script for generating cloud media tab.
47
  */
191
  add_filter( 'bulk_actions-upload', [self::$instance, 'register_bulk_media_actions'] );
192
  add_filter( 'media_row_actions', [self::$instance, 'add_inline_media_action'], 10, 2 );
193
  add_filter( 'wp_calculate_image_srcset', [self::$instance, 'calculate_image_srcset'], 1, 5 );
194
+ add_action( 'post_updated', [self::$instance, 'update_offload_meta'], 10, 3 );
195
  }
196
  }
197
  return self::$instance;
198
  }
199
+
200
+ /**
201
+ * Update offload meta when the page is updated.
202
+ *
203
+ * @param int $post_ID Updated post id.
204
+ * @param WP_Post $post_after Post before the update.
205
+ * @param WP_post $post_before Post after the update.
206
+ * @uses action:post_updated
207
+ *
208
+ * @return void
209
+ */
210
+ public function update_offload_meta( $post_ID, $post_after, $post_before ) {
211
+ if ( self::$offload_update_post === true ) {
212
+ return;
213
+ }
214
+ if ( get_post_type( $post_ID ) === 'attachment' ) {
215
+ return;
216
+ }
217
+
218
+ // revisions are skipped inside the function no need to check them before
219
+ delete_post_meta( $post_ID, self::POST_OFFLOADED_FLAG );
220
+ delete_post_meta( $post_ID, self::POST_ROLLBACK_FLAG );
221
+ }
222
  /**
223
  * Get image size name from width and meta.
224
  *
470
  'optml_replacement_wp_query_args',
471
  ['post_type' => $post_types, 'post_status' => 'any', 'fields' => 'ids',
472
  'posts_per_page' => $batch,
473
+ 'update_post_meta_cache' => true,
474
  'update_post_term_cache' => false,
475
  ]
476
  );
477
+ if ( $job === 'offload_images' ) {
478
+ $query_args['meta_query'] = [
479
+ 'relation' => 'AND',
480
+ [
481
+ 'key' => self::POST_OFFLOADED_FLAG,
482
+ 'compare' => 'NOT EXISTS',
483
+ ],
484
+ ];
485
+ }
486
+ if ( $job === 'rollback_images' ) {
487
+ $query_args['meta_query'] = [
488
+ 'relation' => 'AND',
489
+ [
490
+ 'key' => self::POST_OFFLOADED_FLAG,
491
+ 'value' => 'true',
492
+ 'compare' => '=',
493
+ ],
494
+ [
495
+ 'key' => self::POST_ROLLBACK_FLAG,
496
+ 'compare' => 'NOT EXISTS',
497
+ ],
498
+ ];
499
+ }
500
  $content = new \WP_Query( $query_args );
501
  if ( OPTML_DEBUG ) {
502
  do_action( 'optml_log', $page );
511
  if ( count( $ids ) > 0 ) {
512
  $images_to_update[ $content_id ] = $ids;
513
  }
514
+ if ( $job === 'offload_images' ) {
515
+ update_post_meta( $content_id, self::POST_OFFLOADED_FLAG, 'true' );
516
+ delete_post_meta( $content_id, self::POST_ROLLBACK_FLAG );
517
+ }
518
+ if ( $job === 'rollback_images' ) {
519
+ update_post_meta( $content_id, self::POST_ROLLBACK_FLAG, 'true' );
520
+ delete_post_meta( $content_id, self::POST_OFFLOADED_FLAG );
521
+ }
522
  }
523
  }
524
  $page ++;
1193
  * @return bool Whether the update was succesful or not.
1194
  */
1195
  public function update_page( $post_id ) {
1196
+ self::$offload_update_post = true;
1197
  $post_update = wp_update_post( ['ID' => $post_id] );
1198
+ self::$offload_update_post = false;
1199
  if ( is_wp_error( $post_update ) || $post_update === 0 ) {
1200
  return false;
1201
  }
inc/rest.php CHANGED
@@ -22,9 +22,9 @@ class Optml_Rest {
22
  private $namespace;
23
 
24
  /**
25
- * Rest api routes.
26
  *
27
- * @var array List of routes and details (type, required args).
28
  */
29
  public static $rest_routes = [
30
  'service_routes' => ['update_option' => 'POST', 'request_update' => 'GET', 'check_redirects' => 'POST_PUT_PATCH',
@@ -67,6 +67,7 @@ class Optml_Rest {
67
  'update_page' => 'POST',
68
  'upload_rollback_images' => 'POST',
69
  'number_of_images_and_pages' => 'POST',
 
70
  ],
71
  'watermark_routes' => [
72
  'poll_watermarks' => 'GET',
@@ -87,6 +88,7 @@ class Optml_Rest {
87
  */
88
  public function __construct() {
89
  $this->namespace = OPTML_NAMESPACE . '/v1';
 
90
  add_action( 'rest_api_init', [ $this, 'register' ] );
91
  }
92
 
@@ -818,4 +820,28 @@ class Optml_Rest {
818
  }
819
  return $this->response( Optml_Media_Offload::number_of_images_and_pages( $action ) );
820
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
821
  }
22
  private $namespace;
23
 
24
  /**
25
+ * Upload conflicts api.
26
  *
27
+ * @var string upload_conflicts_api.
28
  */
29
  public static $rest_routes = [
30
  'service_routes' => ['update_option' => 'POST', 'request_update' => 'GET', 'check_redirects' => 'POST_PUT_PATCH',
67
  'update_page' => 'POST',
68
  'upload_rollback_images' => 'POST',
69
  'number_of_images_and_pages' => 'POST',
70
+ 'get_offload_conflicts' => 'GET',
71
  ],
72
  'watermark_routes' => [
73
  'poll_watermarks' => 'GET',
88
  */
89
  public function __construct() {
90
  $this->namespace = OPTML_NAMESPACE . '/v1';
91
+
92
  add_action( 'rest_api_init', [ $this, 'register' ] );
93
  }
94
 
820
  }
821
  return $this->response( Optml_Media_Offload::number_of_images_and_pages( $action ) );
822
  }
823
+ /**
824
+ * Get conflicts list.
825
+ *
826
+ * @param WP_REST_Request $request rest request object.
827
+ *
828
+ * @return WP_REST_Response
829
+ */
830
+ public function get_offload_conflicts( WP_REST_Request $request ) {
831
+ $request = new Optml_Api();
832
+ $decoded_list = $request->get_offload_conflicts();
833
+ $active_conflicts = [];
834
+ if ( isset( $decoded_list['plugins'] ) ) {
835
+ foreach ( $decoded_list['plugins'] as $slug ) {
836
+ if ( is_plugin_active( $slug ) ) {
837
+ $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $slug );
838
+ if ( ! empty( $plugin_data['Name'] ) ) {
839
+ $active_conflicts[] = $plugin_data['Name'];
840
+ }
841
+ }
842
+ }
843
+ }
844
+
845
+ return $this->response( $active_conflicts );
846
+ }
847
  }
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: 3.4.6
6
  * Author: Optimole
7
  * Author URI: https://optimole.com
8
  * License: GPL-2.0+
@@ -74,7 +74,7 @@ function optml() {
74
  }
75
  define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
76
  define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
77
- define( 'OPTML_VERSION', '3.4.6' );
78
  define( 'OPTML_NAMESPACE', 'optml' );
79
  define( 'OPTML_BASEFILE', __FILE__ );
80
  // 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: 3.5.0
6
  * Author: Optimole
7
  * Author URI: https://optimole.com
8
  * License: GPL-2.0+
74
  }
75
  define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
76
  define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
77
+ define( 'OPTML_VERSION', '3.5.0' );
78
  define( 'OPTML_NAMESPACE', 'optml' );
79
  define( 'OPTML_BASEFILE', __FILE__ );
80
  // Fallback for old PHP versions when this constant is not defined.
readme.txt CHANGED
@@ -95,6 +95,16 @@ Premium users will be able to optimize images starting with more than 25k monthl
95
 
96
  == Changelog ==
97
 
 
 
 
 
 
 
 
 
 
 
98
  ##### [Version 3.4.6](https://github.com/Codeinwp/optimole-wp/compare/v3.4.5...v3.4.6) (2022-09-08)
99
 
100
  * Updated cache buster format
95
 
96
  == Changelog ==
97
 
98
+ #### [Version 3.5.0](https://github.com/Codeinwp/optimole-wp/compare/v3.4.6...v3.5.0) (2022-10-17)
99
+
100
+ * Improved images offload speed by marking processed pages
101
+ * Adds conflict validation before the rollback process
102
+ * Updated the logging for images that fail when offloading
103
+ * Enhance Elementor compatibility
104
+
105
+
106
+
107
+
108
  ##### [Version 3.4.6](https://github.com/Codeinwp/optimole-wp/compare/v3.4.5...v3.4.6) (2022-09-08)
109
 
110
  * Updated cache buster format
vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInit5e866adecc972fb8be4a714ec2d20c04::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit34a79de5967248eab968836e7f3735ed::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit5e866adecc972fb8be4a714ec2d20c04
6
  {
7
  private static $loader;
8
 
@@ -22,18 +22,18 @@ class ComposerAutoloaderInit5e866adecc972fb8be4a714ec2d20c04
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit5e866adecc972fb8be4a714ec2d20c04', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit5e866adecc972fb8be4a714ec2d20c04', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInit5e866adecc972fb8be4a714ec2d20c04::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
- $includeFiles = \Composer\Autoload\ComposerStaticInit5e866adecc972fb8be4a714ec2d20c04::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
- composerRequire5e866adecc972fb8be4a714ec2d20c04($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
@@ -45,7 +45,7 @@ class ComposerAutoloaderInit5e866adecc972fb8be4a714ec2d20c04
45
  * @param string $file
46
  * @return void
47
  */
48
- function composerRequire5e866adecc972fb8be4a714ec2d20c04($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit34a79de5967248eab968836e7f3735ed
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit34a79de5967248eab968836e7f3735ed', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit34a79de5967248eab968836e7f3735ed', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit34a79de5967248eab968836e7f3735ed::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
+ $includeFiles = \Composer\Autoload\ComposerStaticInit34a79de5967248eab968836e7f3735ed::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
+ composerRequire34a79de5967248eab968836e7f3735ed($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
45
  * @param string $file
46
  * @return void
47
  */
48
+ function composerRequire34a79de5967248eab968836e7f3735ed($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit5e866adecc972fb8be4a714ec2d20c04
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -17,7 +17,7 @@ class ComposerStaticInit5e866adecc972fb8be4a714ec2d20c04
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
- $loader->classMap = ComposerStaticInit5e866adecc972fb8be4a714ec2d20c04::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit34a79de5967248eab968836e7f3735ed
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
+ $loader->classMap = ComposerStaticInit34a79de5967248eab968836e7f3735ed::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }