SG Optimizer - Version 5.7.2

Version Description

Download this release

Release Info

Developer sstoqnov
Plugin Icon 128x128 SG Optimizer
Version 5.7.2
Comparing to
See all releases

Code changes from version 5.7.1 to 5.7.2

assets/js/optimizer.bundle.js CHANGED
@@ -333,4 +333,4 @@ function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,i
333
  * http://hammerjs.github.io/
334
  *
335
  * Copyright (c) 2016 Jorik Tangelder;
336
- * Licensed under the MIT license */!function(o,i,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=i.createElement("div"),d=Math.round,p=Math.abs,f=Date.now;function g(e,t,n){return setTimeout(v(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function y(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var b=y((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&void 0===e[r[o]])&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),_=y((function(e,t){return b(e,t,!0)}),"merge","Use `assign`.");function x(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&l(r,n)}function v(e,t){return function(){return e.apply(t,arguments)}}function M(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function w(e,t){return void 0===e?t:e}function z(e,t,n){h(O(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){h(O(t),(function(t){e.removeEventListener(t,n,!1)}))}function L(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function A(e,t){return e.indexOf(t)>-1}function O(e){return e.trim().split(/\s+/g)}function k(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function T(e){return Array.prototype.slice.call(e,0)}function E(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];k(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function N(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<c.length;){if((r=(n=c[i])?n+o:t)in e)return r;i++}}var j=1;function D(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var P="ontouchstart"in o,C=void 0!==N(o,"PointerEvent"),W=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),I=["x","y"],R=["clientX","clientY"];function Y(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){M(e.options.enable,[e])&&n.handler(t)},this.init()}function q(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&t&&r-o==0,a=12&t&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=H(t));o>1&&!n.firstMultiple?n.firstMultiple=H(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=t.center=B(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=Q(s,l),t.distance=X(s,l),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=U(t.deltaX,t.deltaY);var c=F(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=p(c.x)>p(c.y)?c.x:c.y,t.scale=a?(u=a.pointers,d=r,X(d[0],d[1],R)/X(u[0],u[1],R)):1,t.rotation=a?function(e,t){return Q(t[1],t[0],R)+Q(e[1],e[0],R)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(s>25||void 0===a.velocity)){var l=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,u=F(s,l,c);r=u.x,o=u.y,n=p(u.x)>p(u.y)?u.x:u.y,i=U(l,c),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var u,d;var g=e.element;L(t.srcEvent.target,g)&&(g=t.srcEvent.target);t.target=g}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:t,center:B(t),deltaX:e.deltaX,deltaY:e.deltaY}}function B(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:d(n/t),y:d(r/t)}}function F(e,t,n){return{x:t/e||0,y:n/e||0}}function U(e,t){return e===t?1:p(e)>=p(t)?e<0?2:4:t<0?8:16}function X(e,t,n){n||(n=I);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function Q(e,t,n){n||(n=I);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}Y.prototype={handler:function(){},init:function(){this.evEl&&z(this.element,this.evEl,this.domHandler),this.evTarget&&z(this.target,this.evTarget,this.domHandler),this.evWin&&z(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(D(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function V(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Y.apply(this,arguments)}x(V,Y,{handler:function(e){var t=G[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var K={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:"touch",3:"pen",4:"mouse",5:"kinect"},$="pointerdown",Z="pointermove pointerup pointercancel";function ee(){this.evEl=$,this.evWin=Z,Y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&($="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),x(ee,Y,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=K[r],i=J[e.pointerType]||e.pointerType,a="touch"==i,s=k(t,e.pointerId,"pointerId");1&o&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&o&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(s,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Y.apply(this,arguments)}function re(e,t){var n=T(e.touches),r=T(e.changedTouches);return 12&t&&(n=E(n.concat(r),"identifier",!0)),[n,r]}x(ne,Y,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Y.apply(this,arguments)}function ae(e,t){var n=T(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=T(e.changedTouches),s=[],l=this.target;if(i=n.filter((function(e){return L(e.target,l)})),1===t)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&s.push(a[o]),12&t&&delete r[a[o].identifier],o++;return s.length?[E(i.concat(s),"identifier",!0),s]:void 0}x(ie,Y,{handler:function(e){var t=oe[e.type],n=ae.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function se(){Y.apply(this,arguments);var e=v(this.handler,this);this.touch=new ie(this.manager,e),this.mouse=new V(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=25&&a<=25)return!0}return!1}x(se,Y,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)le.call(this,t,n);else if(o&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var de=N(u.style,"touchAction"),pe=void 0!==de,fe=function(){if(!pe)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function ge(e,t){this.manager=e,this.set(t)}ge.prototype={set:function(e){"compute"==e&&(e=this.compute()),pe&&this.manager.element.style&&fe[e]&&(this.manager.element.style[de]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,(function(t){M(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(A(e,"none"))return"none";var t=A(e,"pan-x"),n=A(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(A(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=A(r,"none")&&!fe.none,i=A(r,"pan-y")&&!fe["pan-y"],a=A(r,"pan-x")&&!fe["pan-x"];if(o){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!i)return o||i&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function me(e){this.options=l({},this.defaults,e||{}),this.id=j++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function he(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function ye(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function be(e,t){var n=t.manager;return n?n.get(e):e}function _e(){me.apply(this,arguments)}function xe(){_e.apply(this,arguments),this.pX=null,this.pY=null}function ve(){_e.apply(this,arguments)}function Me(){me.apply(this,arguments),this._timer=null,this._input=null}function we(){_e.apply(this,arguments)}function ze(){_e.apply(this,arguments)}function Se(){me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Le(e,t){return(t=t||{}).recognizers=w(t.recognizers,Le.defaults.preset),new Ae(e,t)}me.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=be(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=be(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===k(t,e=be(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=be(e,this);var t=k(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+he(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+he(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!M(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},x(_e,me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,o=this.attrTest(e);return r&&(8&n||!o)?16|t:r||o?4&n?8|t:2&t?4|t:2:32}}),x(xe,_e,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(6&t.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return _e.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ye(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),x(ve,_e,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),x(Me,me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=g((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),x(we,_e,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),x(ze,_e,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return xe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ye(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),x(Se,me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=g((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=g((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Le.VERSION="2.0.7",Le.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[we,{enable:!1}],[ve,{enable:!1},["rotate"]],[ze,{direction:6}],[xe,{direction:6},["swipe"]],[Se],[Se,{event:"doubletap",taps:2},["tap"]],[Me]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ae(e,t){var n;this.options=l({},Le.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(C?ee:W?ie:P?se:V))(n,q),this.touchAction=new ge(this,this.options.touchAction),Oe(this,!0),h(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Oe(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,(function(o,i){n=N(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ae.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=k(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return h(O(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return h(O(e),(function(e){t?n[e]&&n[e].splice(k(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Oe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Le,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ae,Input:Y,TouchAction:ge,TouchInput:ie,MouseInput:V,PointerEventInput:ee,TouchMouseInput:se,SingleTouchInput:ne,Recognizer:me,AttrRecognizer:_e,Tap:Se,Pan:xe,Swipe:ze,Pinch:ve,Rotate:we,Press:Me,on:z,off:S,each:h,merge:_,extend:b,assign:l,inherit:x,bindFn:v,prefixed:N}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Le,void 0===(r=function(){return Le}.call(t,n,t,e))||(e.exports=r)}(window,document)},function(e,t,n){var r=n(1075);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Table Row\n ========================================================================== */\n.table-row__loader-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n max-width: 100%; }\n\n.hammerjs-wrapper {\n user-select: auto !important; }\n\n@keyframes spin {\n 100% {\n transform: rotate(360deg); } }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){var r=n(1077);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Table Body\n ========================================================================== */\n.sg-table-dnd-placeholder {\n width: 100%; }\n .sg-table-dnd-placeholder tr {\n display: flex; }\n .sg-table-dnd-placeholder td {\n display: flex;\n align-items: center;\n flex: 1; }\n\n.sg-icon-expandable {\n margin-right: 15px; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,'/* stylelint-disable */\n\n/* ==========================================================================\n Table\n ========================================================================== */\n.sg-table-wrapper {\n width: 100%;\n max-width: 100%;\n border-radius: 3px;\n background-color: var(--background-component-primary); }\n\n.sg-theme-hcl .sg-table-wrapper,\n.sg-theme-hcb .sg-table-wrapper {\n border: 1px solid var(--high-contrast-foreground); }\n\n.sg-table-wrapper--box-shadow {\n box-shadow: var(--first-level-box-shadow); }\n\n.sg-table {\n width: 100%;\n border-radius: 3px;\n text-align: start;\n table-layout: fixed; }\n .sg-table .sg-table__head .sg-table__cell:first-of-type {\n border-top-left-radius: 3px; }\n .sg-table .sg-table__head .sg-table__cell:last-of-type {\n border-top-right-radius: 3px; }\n .sg-table .sg-table__row:last-of-type .sg-table__cell:first-of-type {\n border-bottom-left-radius: 3px; }\n .sg-table .sg-table__row:last-of-type .sg-table__cell:last-of-type {\n border-bottom-right-radius: 3px; }\n\n.sg-table__head .sg-table__cell {\n color: var(--typography-light);\n font-family: Roboto;\n font-weight: 500;\n font-size: 12px;\n line-height: 20px;\n text-align: left;\n border-top: none; }\n\n.sg-table__head-tile {\n background-color: var(--background-component-secondary);\n text-align: center; }\n\n.sg-table__head--background-default .sg-table__cell {\n background-color: var(--background-component-secondary); }\n\n.sg-table__head--background-white .sg-table__cell {\n background-color: var(--background-component-primary); }\n\n.sg-table__footer--background-default .sg-table__cell {\n background-color: var(--background-component-secondary); }\n\n.sg-table__footer--background-white .sg-table__cell {\n background-color: var(--background-component-primary); }\n\n/* Rows\n ========================================================================== */\n.sg-table__row--animation-enter {\n opacity: 0;\n transition: opacity 0.5s linear; }\n\n.sg-table__row--animation-enter-active {\n opacity: 1; }\n\n.sg-table__row--animation-exit {\n pointer-events: none;\n transition: opacity 0.5s linear; }\n\n.sg-table__row--animation-exit-active {\n opacity: 0; }\n\n.sg-table__cell.sg-table__cell--is-in-row-selection,\n.sg-table__cell--is-in-row-selection {\n background-color: var(--background-component-secondary); }\n\n.sg-theme-hcl .sg-table__cell.sg-table__cell--is-in-row-selection,\n.sg-theme-hcl .sg-table__cell--is-in-row-selection,\n.sg-theme-hcb .sg-table__cell.sg-table__cell--is-in-row-selection,\n.sg-theme-hcb .sg-table__cell--is-in-row-selection {\n background-color: var(--component-background-hover); }\n\n/* Cells\n ========================================================================== */\n.sg-table__cell {\n position: relative;\n padding: 0 20px;\n vertical-align: middle;\n background-color: var(--background-component-primary);\n border-top: 1px solid var(--border-color-inner);\n font-size: 14px;\n line-height: 20px;\n text-align: left; }\n .sg-table__cell:focus {\n outline: none; }\n .sg-keyboard .sg-table__cell:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-table__cell--height-small {\n height: 40px; }\n\n.sg-table__cell--height-medium {\n height: 60px; }\n\n.sg-table__cell-dnd-wrapper {\n display: flex;\n align-items: center; }\n .sg-table__cell-dnd-wrapper .sg-icon-move {\n display: none; }\n .sg-table__cell-dnd-wrapper .sg-icon-dnd {\n margin-right: 15px;\n color: var(--color-icon-button); }\n\n.sg-table__after-content {\n border-top: 1px solid var(--border-color-inner); }\n\n.sg-table-load-more {\n display: flex;\n justify-content: center;\n padding: 20px;\n background-color: var(--background-component-secondary); }\n\n.sg-theme-hcl .sg-table-load-more,\n.sg-theme-hcb .sg-table-load-more {\n border-top: 1px solid var(--high-contrast-foreground); }\n\n.sg-table .sg-table__row .sg-table__cell.sg-table__expand-toggle {\n text-align: center;\n background-color: var(--background-component-secondary);\n padding: 20px 15px; }\n\n/* Density\n ========================================================================== */\n.sg-table-wrapper--density-none .sg-table__cell {\n padding: 0; }\n\n.sg-table-wrapper--density-none .sg-table__after-content {\n padding: 0; }\n\n.sg-table-wrapper--density-small .sg-table__cell:first-child {\n padding-left: 20px; }\n\n.sg-table-wrapper--density-small .sg-table__cell:last-child {\n padding-right: 20px; }\n\n.sg-table-wrapper--density-small .sg-table__after-content {\n padding: 20px 20px; }\n\n.sg-table-wrapper--density-small .sg-table-wrapper--density-small .sg-table__cell:first-child {\n padding-left: 40px; }\n\n.sg-table-wrapper--density-small .sg-table-wrapper--density-small .sg-table__cell:last-child {\n padding-right: 40px; }\n\n.sg-table-wrapper--density-medium .sg-table__cell:first-child {\n padding-left: 30px; }\n .sg-table-wrapper--density-medium .sg-table__cell:first-child::before {\n left: 5px; }\n\n.sg-table-wrapper--density-medium .sg-table__cell:last-child {\n padding-right: 30px; }\n .sg-table-wrapper--density-medium .sg-table__cell:last-child::before {\n right: 5px; }\n\n.sg-table-wrapper--density-medium .sg-table__after-content {\n padding: 20px 30px; }\n\n.sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:first-child {\n padding-left: 60px; }\n .sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:first-child::before {\n left: 10px; }\n\n.sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:last-child {\n padding-right: 60px; }\n .sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:last-child::before {\n right: 10px; }\n\n.sg-table-wrapper--density-large .sg-table__cell:first-child {\n padding-left: 60px; }\n\n.sg-table-wrapper--density-large .sg-table__after-content {\n padding: 20px 60px; }\n\n.sg-table-wrapper--density-large .sg-table__cell:last-child {\n padding-right: 60px; }\n\n.sg-table-wrapper--density-large .sg-table-wrapper--density-large .sg-table__cell:first-child {\n padding-left: 120px; }\n\n.sg-table-wrapper--density-large .sg-table-wrapper--density-large .sg-table__cell:last-child {\n padding-right: 120px; }\n\n/* Product Table\n ========================================================================== */\n.sg-product-table {\n width: 100%; }\n .sg-product-table .sg-toolbar {\n margin: 0; }\n\n.sg-product-table--selected {\n border: 2px solid var(--color-primary); }\n\n.sg-product-table__row {\n border-bottom: 1px solid var(--border-color-inner); }\n\n/* Media queries\n ========================================================================== */\n@media (min-width: 801px) {\n .sg-table.sg-table--no-footer .sg-table__row:last-child .sg-table__cell--is-selected::before {\n border-bottom: 2px solid var(--color-primary); }\n .sg-table__cell--is-selected::before {\n content: " ";\n position: absolute;\n display: block;\n top: -1px;\n bottom: 0;\n right: 0;\n left: -2px;\n border-left: 2px solid var(--color-primary);\n border-right: 2px solid var(--color-primary);\n pointer-events: none; }\n .sg-table__head .sg-table__cell--is-selected::before {\n border-top: 2px solid var(--color-primary); }\n .sg-table__footer .sg-table__cell--is-selected::before {\n border-bottom: 2px solid var(--color-primary); } }\n\n@media (min-width: 801px) {\n .sg-theme-hcl .sg-table__row:hover .sg-table__cell,\n .sg-theme-hcb .sg-table__row:hover .sg-table__cell {\n background-color: var(--component-background-hover); }\n .sg-table__row:hover .sg-table__cell {\n background-color: var(--background-component-secondary); } }\n\n@media (max-width: 800px) {\n .sg-table {\n table-layout: fixed; }\n .sg-table-wrapper .sg-table__after-content {\n padding: 0; }\n .sg-table-wrapper--mobile-card .sg-table__cell,\n .sg-table-wrapper--mobile-card .sg-table__cell:first-child,\n .sg-table-wrapper--mobile-card .sg-table__cell:last-child,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:first-child,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:last-child {\n padding: 24px 20px 15px 20px; }\n .sg-table-wrapper--mobile-card .sg-table__cell:first-child,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px; }\n .sg-table-wrapper--mobile-card .sg-table__cell:last-child,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px; }\n .sg-table-wrapper--mobile-card .sg-table__footer,\n .sg-table-wrapper--mobile-card-flat .sg-table__footer {\n display: none; }\n .sg-table-wrapper--mobile-card.sg-table-wrapper,\n .sg-table-wrapper--mobile-card-flat.sg-table-wrapper {\n background-color: transparent; }\n .sg-table-wrapper--mobile-card:not(.sg-table-wrapper--no-data).sg-table-wrapper--box-shadow,\n .sg-table-wrapper--mobile-card-flat:not(.sg-table-wrapper--no-data).sg-table-wrapper--box-shadow {\n box-shadow: none; }\n .sg-table-wrapper--mobile-card .sg-table__head,\n .sg-table-wrapper--mobile-card-flat .sg-table__head {\n display: none; }\n .sg-table-wrapper--mobile-card .sg-table__row,\n .sg-table-wrapper--mobile-card-flat .sg-table__row {\n display: block;\n border-radius: 3px; }\n .sg-table-wrapper--mobile-card .sg-table__row {\n box-shadow: var(--first-level-box-shadow); }\n .sg-table-wrapper--mobile-card-flat .sg-table__row {\n box-shadow: none; }\n .sg-table-wrapper--mobile-card-flat .sg-table__row {\n border: 1px solid var(--border-color-outer); }\n .sg-table__cell-expandable-wrapper .sg-table__row {\n border-width: 1px 0 0; }\n .sg-table-wrapper--mobile-card:not(.sg-table-wrapper--reordable) .sg-table__row:not(:last-child),\n .sg-table-wrapper--mobile-card-flat:not(.sg-table-wrapper--reordable) .sg-table__row:not(:last-child) {\n margin-bottom: 20px; }\n .sg-table-wrapper--mobile-card .sg-table__cell,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell {\n height: auto;\n display: block;\n position: relative;\n border: none; }\n .sg-table-wrapper--mobile-card .sg-table__cell:nth-child(n+2)::after,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:nth-child(n+2)::after {\n content: attr(data-label);\n display: block;\n position: absolute;\n top: 4px;\n left: 20px;\n font-family: Roboto;\n font-size: 12px;\n line-height: 16px;\n color: var(--typography-light);\n text-align: initial;\n text-transform: capitalize; }\n .sg-table-load-more {\n margin-top: 20px;\n padding: 0;\n background: none; } }\n\n@media (max-width: 1500px) {\n .sg-table-wrapper--density-medium .sg-table__cell:first-child {\n padding-left: 20px; }\n .sg-table-wrapper--density-medium .sg-table__cell:first-child::before {\n left: 5px; }\n .sg-table-wrapper--density-medium .sg-table__cell:last-child {\n padding-right: 20px; }\n .sg-table-wrapper--density-medium .sg-table__cell:last-child::before {\n right: 5px; }\n .sg-table-wrapper--density-medium .sg-table__after-content {\n padding: 20px 20px; }\n .sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:first-child {\n padding-left: 40px; }\n .sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:last-child {\n padding-right: 40px; }\n .sg-table__cell--height-medium {\n height: 50px; } }\n',""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l,c,u=n(2),d=n(9),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.createMobileColumnsOptions=function(e,t,n){if(!e)return e;var r=d.deepclone(e);if(t)return r;var o={width:"100%",flexWrap:"nowrap"},i={flexShrink:0},s=r[0],l=r.pop(),c=s.render?s.render:function(e){return e},p=l.render?l.render:function(e){return e};return delete s.header,s.style=a({fontWeight:"bold"},s.style),s.render=function(e,t){return n?u.createElement(d.Flex,{justify:"space-between",align:"center",gutter:"none",margin:"none",style:o},u.createElement(d.Title,{level:"4",density:"none",truncate:!0},c(e,t)),u.createElement("div",{style:i},p(t[l.accessor],t))):c(e,t)},r},t.createDesktopColumnsOptions=function(e,t,n){if(!e||!t||0===t.length)return e;var r=d.deepclone(e),o=r[r.length-1];return o.style=a({paddingLeft:n&&"0px",textAlign:"right",whiteSpace:"nowrap"},o.style),n&&(o.mSize=o.mSize||"100px"),r},t.prototype.render=function(){var e=this.context.device,n=this.props,r=n.columns,o=n.data,i=n.disableMobileArrange,l=n.hasMenu,c=n.onMouseOver,p=s(n,["columns","data","disableMobileArrange","hasMenu","onMouseOver"]),f=t.createMobileColumnsOptions(r,i,e.isPhone),g=t.createDesktopColumnsOptions(r,o,l);return e.isPhone?u.createElement(d.Table,a({data:o,columns:f},p)):u.createElement(d.Table,a({data:o,columns:g,onMouseOver:c},p))},t.contextType=d.Context,t.defaultProps={hasMenu:!0,"data-e2e":"action-table"},t}(u.Component);t.default=p,l=n(0).default,c=n(0).leaveModule,l&&(l.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/action-table.tsx"),l.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/action-table.tsx"),l.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/action-table.tsx"),l.register(p,"ActionTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/action-table.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(1081),l=n(54),c=n(213),u=n(464),d=n(1082),p=n(211),f=n(1085),g=n(481);n(485);var m,h,y=function(e){var t=a.useContext(l.Context).device,n=e.columns,r=e.data,f=e.onCellSelection,m=e.selectedColumns,h=i(e,["columns","data","onCellSelection","selectedColumns"]),y=n.map((function(e){return o({},e)})),b=y.shift();return t.isPhone?a.createElement(s.default,o({},h),y.map((function(e,t){return a.createElement("div",{key:e.accessor,className:"sg-product-table"+(m.includes(t+1)?" sg-product-table--selected":"")},a.createElement(d.default,{border:"none",padding:"medium",className:"sg-table__head-tile"},e.renderHead?e.renderHead:e.header),r.map((function(n){return a.createElement(c.Flex,{className:"sg-product-table__row",key:n.accessor,padding:["none","medium"],gutter:"none",margin:"none",background:"white"},a.createElement(c.Box,{xs:"8",flex:!0,align:"center",justify:"flex-start"},b.render?b.render(n[b.accessor],n,b.accessor,t+1):n[b.accessor]),a.createElement(c.Box,{xs:"4",flex:!0,align:"center",justify:"center",style:{textAlign:"right"}},a.createElement(u.Grid,{padding:["medium","none"]},e.render(n[e.accessor],n,e.accessor,t+1))))})),e.footer&&a.createElement(p.default,{background:"light",justify:"center"},e.footer(t+1)))}))):a.createElement(g.default,o({className:"sg-product-table",mobileLayout:"row",data:r,columns:n,onCellSelection:f,selectedColumns:m},h))};y.defaultProps={selectedColumns:[]},t.default=f.default(y),m=n(0).default,h=n(0).leaveModule,m&&(m.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/product-table.tsx"),m.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/product-table.tsx"),m.register(y,"ProductTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/product-table.tsx"),h(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(447);t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(486);t.default=r.default},function(e,t,n){var r=n(1084);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Tile\n ========================================================================== */\n.sg-tile:focus {\n outline: none; }\n\n.sg-keyboard .sg-tile:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-tile,\n.sg-tile.sg-with-border {\n border-radius: 0; }\n\n@media (max-width: 800px) {\n .sg-tile.sg-with-border + .sg-tile.sg-with-border {\n border-top: none; }\n .sg-tile:first-of-type {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px; }\n .sg-tile:last-of-type {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px; } }\n\n@media (min-width: 801px) {\n .sg-tile.sg-with-border + .sg-tile.sg-with-border {\n border-left: none; }\n .sg-tile:first-of-type {\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px; }\n .sg-tile:last-of-type {\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px; } }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(218);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(7),u=n(8),d=n(11),p=n(199),f=n(145),g=function(e){switch(e.key){case d.default.SPACE:case d.default.ENTER:e.preventDefault(),e.stopPropagation(),e.target.click()}},m=l.forwardRef((function(e,t){var n=e.active,r=e.disabled,a=e.className,s=e.children,d=e.padding,m=e.tabIndex,h=e["data-e2e"],y=e["data-component"],b=i(e,["active","disabled","className","children","padding","tabIndex","data-e2e","data-component"]),_=c.default("sg-tabs__tab",n&&"sg-tabs__tab--active",r&&"sg-tabs__tab--disabled",f.default(d),a);return l.createElement(p.default,o({tag:"li",ref:t,className:_,tabIndex:m,"data-e2e":h,"data-component":y,role:"tab","aria-selected":n,"aria-controls":"panel-"+m},u.default(b),{onKeyDown:g}),s)}));m.displayName="Tab",m.defaultProps={tabIndex:-1,"data-e2e":"tab","data-component":"tab"},t.default=m,a=n(0).default,s=n(0).leaveModule,a&&(a.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tab.tsx"),a.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tab.tsx"),a.register(g,"handleKeyDown","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tab.tsx"),a.register(m,"Tab","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tab.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(7),u=n(53),d=n(33),p=n(64),f=n(8),g=n(11),m=n(25);n(1088);var h,y,b=function(e){function t(t){var n=e.call(this,t)||this;return n.onKeyDown=function(e){var t=p.getFocusableElement(n.tabsRef,{isDirectionForward:!0}),r=p.getFocusableElement(n.tabsRef,{isDirectionForward:!1});switch(e.key){case g.default.RIGHT:case g.default.DOWN:if(r===e.target)return;return e.target===n.tabsRootRef&&u.focusDomElement(t),void d.focusNextComponent({event:e});case g.default.LEFT:case g.default.UP:if(t===e.target)return;return e.target===n.tabsRootRef&&u.focusDomElement(r),void d.focusNextComponent({event:e,isDirectionForward:!1});default:return}},n.state={hasArrows:!1},n.tabsWrapperWith=null,n.tabsWidth=null,n.initialClientXLocation=0,n.deltaXFromLastTranslateRequest=0,n.deltaXfromLastMoveEvent=0,n.tabsRootRef=l.createRef(),n.tabsWrapperRef=l.createRef(),n.tabsRef=l.createRef(),n.applyTransformXStyle=n.applyTransformXStyle.bind(n),n.saveComponentDimensions=n.saveComponentDimensions.bind(n),n.resizeHandler=n.resizeHandler.bind(n),n.onMouseDown=n.onMouseDown.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n}return i(t,e),t.prototype.componentDidMount=function(){this.saveComponentDimensions(),this.setState({hasArrows:this.tabsWrapperWith<this.tabsWidth}),window.addEventListener("resize",this.resizeHandler,!1)},t.prototype.componentDidUpdate=function(e){e.children.length!==this.props.children.length&&this.setState({hasArrows:this.tabsWrapperWith<this.tabsWidth}),this.saveComponentDimensions()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.resizeHandler,!1)},t.prototype.onMouseDown=function(e){this.tabsWrapperWith>=this.tabsWidth||(this.initialClientXLocation=e.clientX||e.touches[0].clientX)},t.prototype.onMouseMove=function(e){if(this.initialClientXLocation){var t=e.clientX||e.touches[0].clientX;this.translateTabs(t)}},t.prototype.onMouseUp=function(){this.initialClientXLocation=0,this.deltaXFromLastTranslateRequest=this.deltaXfromLastMoveEvent},t.prototype.saveComponentDimensions=function(){this.tabsWrapperRef&&(this.tabsWrapperWith=this.tabsWrapperRef.getClientRects()[0].width,this.tabsWidth=this.tabsRef.getClientRects()[0].width)},t.prototype.translateTabs=function(e){var t=this.tabsWidth-this.tabsWrapperWith,n=e-this.initialClientXLocation+this.deltaXFromLastTranslateRequest,r=Math.min(Math.max(parseInt(n,10),-t),0);this.deltaXfromLastMoveEvent=r,this.applyTransformXStyle(r)},t.prototype.applyTransformXStyle=function(e){this.tabsRef.style.webkitTransform="translateX("+e+"px)",this.tabsRef.style.transform="translateX("+e+"px)"},t.prototype.resizeHandler=function(){var e=this.tabsWrapperWith<this.tabsWidth;this.state.hasArrows!==e&&this.setState({hasArrows:e}),this.applyTransformXStyle(0),this.saveComponentDimensions()},t.prototype.render=function(){var e=this,t=this.props,n=t.activeColor,r=t.className,o=t.children,i=t.border,u=t.size,d=t.tabIndex,p=t["data-e2e"],g=t["data-component"],h=t["aria-label"],y=s(t,["activeColor","className","children","border","size","tabIndex","data-e2e","data-component","aria-label"]),b=c.default("sg-tabs-wrapper",i&&"sg-tabs-wrapper--border-"+i,r),_=c.default("sg-tabs","sg-tabs--background-transparent","sg-tabs--"+u,n&&"sg-tabs--active-color-"+n),x=this.state.hasArrows;return l.createElement("div",a({ref:function(t){e.tabsRootRef=t},className:b,"data-e2e":p,"data-component":g,tabIndex:d},f.default(y),{onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseUp,onTouchStart:this.onMouseDown,onTouchMove:this.onMouseMove,onTouchEnd:this.onMouseUp,onKeyDown:this.onKeyDown}),x&&l.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--start",onClick:function(){return e.translateTabs(40)}},l.createElement(m.default,{name:"arrow-left-thin",size:"10"})),l.createElement("div",{className:"sg-tabs_container",ref:function(t){e.tabsWrapperRef=t}},l.createElement("ul",a({className:_,ref:function(t){e.tabsRef=t},role:"tablist","aria-label":h},y),o)),x&&l.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--end",onClick:function(){return e.translateTabs(-40)}},l.createElement(m.default,{name:"arrow-right-thin",size:"10"})))},t.defaultProps={activeColor:"sky",size:"medium",tabIndex:0,"data-e2e":"tabs","data-component":"tabs"},t}(l.Component);t.default=b,h=n(0).default,y=n(0).leaveModule,h&&(h.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tabs.tsx"),h.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tabs.tsx"),h.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tabs.tsx"),h.register(b,"Tabs","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tabs.tsx"),y(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1089);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,'/* stylelint-disable */\n\n/* ==========================================================================\n Tabs\n ========================================================================== */\n.sg-tabs-wrapper {\n display: flex;\n flex-shrink: 0;\n user-select: none;\n max-width: 100%; }\n .sg-tabs-wrapper:focus {\n outline: none; }\n .sg-keyboard .sg-tabs-wrapper:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-tabs_container {\n overflow: hidden; }\n\n.sg-tabs__arrow {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 60px;\n background: inherit;\n color: var(--color-icon-button);\n cursor: pointer; }\n .sg-tabs__arrow:hover {\n color: var(--typography-dark); }\n\n.sg-tabs {\n display: inline-flex; }\n\n.sg-tabs__tab {\n align-items: center;\n display: flex;\n position: relative;\n white-space: nowrap;\n height: 60px;\n padding: 0 30px;\n color: var(--typography-light);\n cursor: pointer;\n text-transform: uppercase; }\n .sg-tabs__tab:focus {\n outline: none; }\n .sg-keyboard .sg-tabs__tab:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n .sg-tabs__tab:hover, .sg-tabs__tab:active, .sg-tabs__tab--active {\n color: var(--typography-darker); }\n .sg-tabs__tab:active::after, .sg-tabs__tab--active::after {\n content: "";\n display: block;\n position: absolute;\n height: 2px;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: currentColor;\n z-index: 1; }\n .sg-tabs__tab a {\n color: var(--typography-darkest); }\n\n/* Background\n ========================================================================== */\n.sg-tabs--background-transparent {\n background-color: transparent; }\n\n/* Borders\n ========================================================================== */\n.sg-tabs-wrapper--border-light {\n position: relative; }\n .sg-tabs-wrapper--border-light::before {\n content: "";\n display: block;\n position: absolute;\n height: 1px;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--border-color-outer); }\n\n.sg-tabs--active-color-sky .sg-tabs__tab--active::after,\n.sg-tabs--active-color-sky .sg-tabs__tab:active::after {\n background-color: var(--ocean-base); }\n\n.sg-tabs--active-color-romantic .sg-tabs__tab--active,\n.sg-tabs--active-color-romantic .sg-tabs__tab:active {\n color: var(--royal-base); }\n\n.sg-tabs--active-color-dark .sg-tabs__tab--active,\n.sg-tabs--active-color-dark .sg-tabs__tab:active {\n color: var(--typography-darker); }\n\n/* Sizes\n ========================================================================== */\n.sg-tabs--small {\n font: 500 12px/16px Roboto; }\n\n.sg-tabs--medium {\n font: 600 14px/20px Roboto; }\n\n.sg-tabs--large {\n font: 600 16px/24px Roboto; }\n\n/* Disabled\n ========================================================================== */\n.sg-tabs__tab--disabled {\n color: var(--color-disabled);\n pointer-events: none; }\n\n@media (max-width: 1500px) {\n .sg-tabs__tab {\n padding: 0 20px;\n height: 50px; } }\n',""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(7),l=n(8),c=n(1091);n(1092);var u,d,p=function(e){var t=e.className,n=e.background,r=e.onRefsReady,c=e.tabIndex,u=e["data-e2e"],d=e["data-component"],p=i(e,["className","background","onRefsReady","tabIndex","data-e2e","data-component"]),f=s.default(t,"sg-textarea",n&&"sg-textarea--background-"+n);return a.createElement("textarea",o({ref:function(e){r&&r(e)},className:f,"data-e2e":u,"data-component":d,tabIndex:c},l.default(p)))},f=c.default(p);f.displayName="Textarea",p.defaultProps={tabIndex:0,"data-e2e":"textarea","data-component":"textarea"},t.default=f,u=n(0).default,d=n(0).leaveModule,u&&(u.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/textarea/textarea.tsx"),u.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/textarea/textarea.tsx"),u.register(p,"Textarea","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/textarea/textarea.tsx"),u.register(f,"WrappedTextarea","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/textarea/textarea.tsx"),d(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(461);t.default=r.default},function(e,t,n){var r=n(1093);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n.sg-field-wrapper .sg-textarea {\n height: auto; }\n\n/* Backgrounds\n ========================================================================== */\n.sg-textarea.sg-textarea--background-light {\n background-color: var(--background-main); }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(7),c=n(205),u=n(11),d=n(141),p=n(112),f=n(206),g=n(25),m=n(113),h=n(98),y=n(1095);n(1098);var b,_,x=function(e){function t(t){var n=e.call(this,t)||this;return n.handleHourKeyDown=function(e){switch(e.key){case u.default.SPACE:case u.default.ENTER:return e.preventDefault(),void e.stopPropagation();case u.default.UP:case u.default.RIGHT:return void n.handleHourIncrease();case u.default.DOWN:case u.default.LEFT:return void n.handleHourDecrease();default:return}},n.handleMinuteKeyDown=function(e){switch(e.key){case u.default.SPACE:case u.default.ENTER:return e.preventDefault(),void e.stopPropagation();case u.default.UP:case u.default.RIGHT:return void n.handleMinuteIncrease();case u.default.DOWN:case u.default.LEFT:return void n.handleMinuteDecrease();default:return}},n.state={viewType:"TIME",selectedTime:+(new Date).setMinutes(0),inputValue:null,isTimePickerVisible:!1},n.openTimePicker=n.openTimePicker.bind(n),n.closeTimePicker=n.closeTimePicker.bind(n),n.handleTimePick=n.handleTimePick.bind(n),n.handleTimeChange=n.handleTimeChange.bind(n),n.handleHourIncrease=n.handleHourIncrease.bind(n),n.handleHourSelection=n.handleHourSelection.bind(n),n.handleHourDecrease=n.handleHourDecrease.bind(n),n.handleMinuteIncrease=n.handleMinuteIncrease.bind(n),n.handleMinuteSelection=n.handleMinuteSelection.bind(n),n.handleMinuteDecrease=n.handleMinuteDecrease.bind(n),n.handleDayPeriodChange=n.handleDayPeriodChange.bind(n),n}return i(t,e),t.prototype.componentDidMount=function(){var e=this.props.value,t=this.state.selectedTime;e&&t!==e&&this.setStateFromValue(e)},t.prototype.componentDidUpdate=function(e){""===this.props.value&&null!==this.state.inputValue&&this.setState({inputValue:null}),e.value!==this.props.value&&this.setStateFromValue(this.props.value)},t.prototype.setStateFromValue=function(e){var t=+new Date(1e3*parseInt(e,10));"string"!=typeof e?this.setState({selectedTime:t,inputValue:t}):this.setState({selectedTime:+new Date,inputValue:""})},t.prototype.getTimeFromLocales=function(){var e=this.state.inputValue,t=this.props.locales;return c.getTime(e,t)},t.prototype.getHours=function(){var e=this.state.selectedTime;return new Date(e).getHours()},t.prototype.getMinutes=function(){var e=this.state.selectedTime;return new Date(e).getMinutes()},t.prototype.getFormattedTime=function(e){return Math.floor(e/1e3)},t.prototype.getHumanReadableSelectedHour=function(){var e=this.props.locales,t=this.state.selectedTime,n=c.getHoursFromDateTimeFormat(e,new Date(t));return parseInt(n,10).toString().padStart(2,"0")},t.prototype.getHumanReadableSelectedMinute=function(){var e=this.getMinutes().toString();return parseInt(e,10).toString().padStart(2,"0")},t.prototype.getHumanReadableSelectedDayPeriod=function(){return this.getHours()>=12?"PM":"AM"},t.prototype.closeTimePicker=function(){this.setState({isTimePickerVisible:!1,viewType:"TIME"})},t.prototype.openTimePicker=function(){this.props.disabled||this.setState({isTimePickerVisible:!0})},t.prototype.handleTimePick=function(){var e=this.props.onChange,t=this.state.selectedTime,n=this.getFormattedTime(t);this.setState({inputValue:t},(function(){return e(n)}))},t.prototype.handleTimeChange=function(e){var t=e.hour,n=e.minute,r=this.state.selectedTime,o=new Date(r),i=void 0!==t?t:o.getHours(),a=void 0!==n?n:o.getMinutes(),s=+new Date(o.getFullYear(),o.getMonth(),o.getDate(),i,a,0);this.setState({selectedTime:s})},t.prototype.handleHourIncrease=function(){var e=this.getHours(),t=23===e?0:e+1;this.handleTimeChange({hour:t})},t.prototype.handleHourDecrease=function(){var e=this.getHours(),t=0===e?23:e-1;this.handleTimeChange({hour:t})},t.prototype.handleHourSelection=function(e){var t=this;this.setState({viewType:"TIME"},(function(){return t.handleTimeChange({hour:e})}))},t.prototype.handleMinuteIncrease=function(){var e=this.getMinutes(),t=59===e?0:e+1;this.handleTimeChange({minute:t})},t.prototype.handleMinuteDecrease=function(){var e=this.getMinutes(),t=0===e?59:e-1;this.handleTimeChange({minute:t})},t.prototype.handleMinuteSelection=function(e){var t=this;this.setState({viewType:"TIME"},(function(){return t.handleTimeChange({minute:e})}))},t.prototype.handleDayPeriodChange=function(){var e=this.getHours(),t=e>=12?e-12:e+12;this.handleTimeChange({hour:t})},t.prototype.shouldUse12hFormat=function(){var e=this.state.selectedTime,t=this.props.locales,n=c.getHoursFromDateTimeFormat(t,new Date(e));return Boolean(["A","M","P","a","m","p"].find((function(e){return n.includes(e)})))},t.prototype.renderInput=function(){var e=this,t=this.props.disabled,n=this.state.inputValue,r={label:this.props.label,placeholder:this.props.placeholder,size:this.props.size,validationMessage:this.props.validationMessage,validationMessageTemplate:this.props.validationMessageTemplate,state:this.props.state,disabled:this.props.disabled,readOnly:this.props.readOnly,ariaLabel:this.props["aria-label"],"data-e2e":this.props["data-e2e-input"]},o=n?this.getTimeFromLocales():"",i=l.default("sg-time-picker__input",t&&"sg-time-picker__input--disabled"),c=l.default("sg-time-picker__field",t&&"sg-time-picker__field--disabled");return s.createElement(m.default,a({className:i,fieldClassName:c,value:o,prefix:s.createElement(g.default,{name:"generic-clock",color:"ocean",size:"18",className:"date-picker-calendar-icon","aria-hidden":!0}),onClick:this.openTimePicker,role:"button","aria-label":r.ariaLabel,onKeyDown:function(t){t.key!==u.default.SPACE&&t.key!==u.default.ENTER||(t.preventDefault(),t.stopPropagation(),e.openTimePicker())}},r))},t.prototype.renderTimePickerDialog=function(){var e=this.state,t=e.isTimePickerVisible,n=e.viewType,r=this.props.className,o=l.default("sg-time-picker",r);return t?s.createElement(f.default,{className:o,density:"none",size:"small",footer:this.renderFooter(),onCloseHandler:this.closeTimePicker,"data-e2e":this.props["data-e2e"],"aria-hidden":t,role:"region","aria-live":"polite"},"TIME"===n&&this.renderClock(),"HOUR"===n&&this.renderHourPicker(),"MINUTE"===n&&this.renderMinutePicker()):null},t.prototype.renderFooter=function(){var e=this,t=this.props.translation;return s.createElement(s.Fragment,null,s.createElement(p.default,{onClick:this.closeTimePicker,"data-e2e":"timepicker-cancel-button"},t.cancelButton),s.createElement(p.default,{"data-e2e":"timepicker-confirm-button",color:"primary",disabled:this.props.shouldDisableTime(this.getFormattedTime(this.state.selectedTime)),onClick:function(){e.handleTimePick(),e.closeTimePicker()}},t.okButton))},t.prototype.renderClock=function(){var e=this,t=this.shouldUse12hFormat(),n=this.getHumanReadableSelectedHour(),r=this.getHumanReadableSelectedMinute(),o=this.getHumanReadableSelectedDayPeriod(),i=this.props.ariaProps;return s.createElement("div",{className:"sg-time-picker__content sg-time-picker__content--flex","data-e2e":"timepicker-clock",role:"group"},s.createElement("div",{className:"sg-time-picker__column"},s.createElement(y.default,{size:"xx-large",tabIndex:0,style:{order:1},onClick:function(){return e.setState({viewType:"HOUR"})},onKeyDown:this.handleHourKeyDown,"data-e2e":"timepicker-hour",role:"spinbutton","aria-valuenow":parseInt(n),"aria-valuetext":n,"aria-valuemin":1,"aria-valuemax":t?12:24,"aria-label":i.ariaLabelHours,"aria-live":"polite"},n),s.createElement(y.default,{color:"secondary",style:{order:0},onClick:this.handleHourIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},s.createElement(g.default,{name:"arrow-up",size:"16"})),s.createElement(y.default,{color:"secondary",style:{order:2},onClick:this.handleHourDecrease,"data-e2e":"timepicker-hour-decrease",role:"presentation","aria-hidden":"true"},s.createElement(g.default,{name:"arrow-down",size:"16"}))),s.createElement("div",{className:"sg-time-picker__column sg-time-picker__column--justify-center"},":"),s.createElement("div",{className:"sg-time-picker__column"},s.createElement(y.default,{color:"secondary",onClick:this.handleMinuteIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},s.createElement(g.default,{name:"arrow-up",size:"16"})),s.createElement(y.default,{size:"xx-large",tabIndex:0,onClick:function(){return e.setState({viewType:"MINUTE"})},onKeyDown:this.handleMinuteKeyDown,"data-e2e":"timepicker-minute",role:"spinbutton","aria-valuenow":parseInt(r),"aria-valuetext":r,"aria-valuemin":0,"aria-valuemax":59,"aria-label":i.ariaLabelMinutes,"aria-live":"assertive"},r),s.createElement(y.default,{color:"secondary",onClick:this.handleMinuteDecrease,"data-e2e":"timepicker-minute-decrease",role:"presentation","aria-hidden":"true"},s.createElement(g.default,{name:"arrow-down",size:"16"}))),t&&s.createElement("div",{className:l.default("sg-time-picker__column","sg-time-picker__column--justify-center","sg-time-picker__column--margin-start")},s.createElement(y.default,{background:"secondary",onClick:this.handleDayPeriodChange,tabIndex:0,"data-e2e":"timepicker-period-change","aria-label":"am/pm",role:"button","aria-valuetext":o},o)))},t.prototype.renderHourPicker=function(){var e=this,t=this.getHours(),n=this.shouldUse12hFormat(),r=Array(n?12:24).fill(null).map((function(e,t){return n?t+1:t}));return s.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-hour"},r.map((function(n){var r=t===n,o=l.default("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return s.createElement("span",{key:n,ref:function(e){return r&&d.default(e,{block:"center"})},"data-e2e":"timepicker-hours"},s.createElement(h.default,{className:o,color:"dark",weight:"bold",onClick:function(){return e.handleHourSelection(n)}},n.toString().padStart(2,"0")))})))},t.prototype.renderMinutePicker=function(){var e=this,t=this.getMinutes(),n=Array(60).fill(null).map((function(e,t){return t}));return s.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-minutes"},n.map((function(n){var r=t===n,o=l.default("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return s.createElement("span",{key:n,ref:function(e){return r&&d.default(e,{block:"center"})},"data-e2e":"timepicker-minute"},s.createElement(h.default,{className:o,weight:"bold",onClick:function(){return e.handleMinuteSelection(n)}},n.toString().padStart(2,"0")))})))},t.prototype.render=function(){return s.createElement(s.Fragment,null,this.renderInput(),this.renderTimePickerDialog())},t.defaultProps={locales:navigator.language||"en-US",placeholder:"Select a time",onChange:function(){return!1},shouldDisableTime:function(){return!1},translation:{cancelButton:"Cancel",okButton:"Ok"},"data-e2e":"timepicker","data-e2e-input":"timepicker-input",ariaProps:{ariaLabelMinutes:"Minutes",ariaLabelHours:"Hour"}},t}(s.Component);t.default=x,b=n(0).default,_=n(0).leaveModule,b&&(b.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register("TIME","TIME_VIEW","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register("HOUR","HOUR_VIEW","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register("MINUTE","MINUTE_VIEW","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register(x,"TimePicker","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),_(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(7);n(1096);var l,c,u=function(e){var t=e.color,n=e.children,r=e.className,l=e.background,c=e.size,u=e.tabIndex,d=i(e,["color","children","className","background","size","tabIndex"]),p=s.default("sg-time-picker-button",t&&"sg-time-picker-button--color-"+t,l&&"sg-time-picker-button--background-"+l,"sg-time-picker-button--size-"+c,r);return a.createElement("button",o({className:p,type:"button",tabIndex:u},d),n)};u.defaultProps={size:"large",tabIndex:-1},t.default=u,l=n(0).default,c=n(0).leaveModule,l&&(l.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),l.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),l.register(u,"TimePickerButton","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1097);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n TimePickerButton\n ========================================================================== */\n.sg-time-picker-button {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 60px;\n background-color: transparent;\n color: var(--typography-dark);\n border: none;\n border-radius: 3px;\n font-family: Roboto;\n font-weight: 500;\n font-size: 20px;\n text-transform: uppercase; }\n .sg-time-picker-button:hover {\n cursor: pointer; }\n .sg-time-picker-button:hover, .sg-time-picker-button:focus {\n color: var(--component-color-hover);\n background-color: var(--component-background-hover); }\n\n/* Sizes\n ========================================================================== */\n.sg-time-picker-button--size-large {\n height: 40px; }\n\n.sg-time-picker-button--size-xx-large {\n height: 60px; }\n\n/* Colors\n ========================================================================== */\n.sg-time-picker-button--color-secondary {\n color: var(--color-secondary); }\n\n/* Backgrounds\n ========================================================================== */\n.sg-time-picker-button--background-secondary {\n color: var(--typography-white);\n background-color: var(--color-secondary); }\n .sg-time-picker-button--background-secondary:focus, .sg-time-picker-button--background-secondary:hover {\n background-color: var(--color-secondary-hovered); }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){var r=n(1099);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n TimePicker\n ========================================================================== */\n.sg-time-picker.sg-dialog {\n padding: 0; }\n\n.sg-time-picker .sg-time-picker-header {\n margin-top: 0; }\n\n.sg-time-picker__input,\n.sg-time-picker__field {\n cursor: pointer;\n caret-color: transparent; }\n .sg-time-picker__input.sg-time-picker__input--disabled, .sg-time-picker__input.sg-time-picker__field--disabled,\n .sg-time-picker__field.sg-time-picker__input--disabled,\n .sg-time-picker__field.sg-time-picker__field--disabled {\n cursor: not-allowed; }\n\n.sg-time-picker__content {\n padding-top: 30px;\n padding-bottom: 30px;\n height: 280px;\n width: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n overflow-y: overlay; }\n\n.sg-time-picker__content--flex {\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.sg-time-picker__column {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n min-width: 50px;\n min-height: 160px; }\n\n.sg-time-picker__column--justify-center {\n justify-content: center; }\n\n.sg-time-picker__column--margin-start {\n margin-left: 30px; }\n\n.sg-time-picker-entity {\n cursor: pointer;\n line-height: 36px; }\n .sg-time-picker-entity:hover {\n color: var(--color-secondary); }\n\n.sg-time-picker-entity--selected {\n color: var(--color-secondary);\n font-size: 26px; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(7),c=n(53),u=n(8),d=n(11),p=n(25);n(1101);var f,g,m=function(e,t){if(!e)return null;e.children&&e.children[t]&&c.focusDomElement(e.children[t])},h=function(e){var t=e.event,n=e.timelineRef,r=e.focusIndex,o=e.timelineLength,i=e.onChange;switch(t.key){case d.default.LEFT:var a=Math.min(Math.max(r-1,0),o);m(n.current,a);break;case d.default.RIGHT:var s=Math.min(Math.max(r+1,0),o);m(n.current,s);break;case d.default.ENTER:case d.default.SPACE:i(r+1)}},y=function(e){var t=e.activeStep,n=e.className,r=e.onChange,c=e.steps,d=e.tabIndex,f=e["data-e2e"],g=e["data-component"],m=e["aria-label"],y=i(e,["activeStep","className","onChange","steps","tabIndex","data-e2e","data-component","aria-label"]),b=s.useRef(null),_=a(s.useState(-1),2),x=_[0],v=_[1],M=l.default("sg-timeline",n),w=c.map((function(e,n){var i=n+1,a=i<=t,d=l.default("sg-timeline__item",a&&"sg-timeline__item--active",i===t&&"sg-timeline__item--bold",i>c.length&&"sg-timeline__item--bold");return s.createElement("li",o({key:n,className:d,tabIndex:-1},u.default(y),{onClick:a?function(){return r(i)}:null,onFocus:function(){return v(n)},"data-e2e":"timeline-step"}),s.createElement("div",{className:"sg-timeline__top-row"},i<t?s.createElement("span",{className:"sg-timeline__step","aria-hidden":"true"},s.createElement(p.default,{name:"check",size:"12"})):s.createElement("span",{className:"sg-timeline__step","aria-hidden":"true"},i)),s.createElement("div",{className:"sg-timeline__bottom-row"},s.createElement("span",{className:"sg-timeline__text"},c[n])))}));return s.createElement("ul",{ref:b,className:M,tabIndex:d,"data-e2e":f,role:"timeline","aria-label":m,"data-component":g,onKeyDown:function(e){return h({event:e,timelineRef:b,focusIndex:x,timelineLength:w.length,onChange:r})}},w)};y.defaultProps={onChange:function(){},tabIndex:0,"data-e2e":"timeline","data-component":"timeline"},t.default=y,f=n(0).default,g=n(0).leaveModule,f&&(f.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(a,"__read","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(m,"focusItem","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(h,"handleKeyDown","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(y,"Timeline","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),g(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1102);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,'/* stylelint-disable */\n\n.sg-timeline {\n display: flex; }\n .sg-timeline:focus {\n outline: none; }\n .sg-keyboard .sg-timeline:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-timeline__item {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n flex-basis: 0; }\n .sg-timeline__item:focus {\n outline: none; }\n .sg-keyboard .sg-timeline__item:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-timeline__item:first-child .sg-timeline__top-row::before {\n background: transparent; }\n\n.sg-timeline__item:last-child .sg-timeline__top-row::after {\n background: transparent; }\n\n.sg-timeline__item--active {\n cursor: pointer; }\n .sg-timeline__item--active .sg-timeline__step {\n background: var(--ocean-base); }\n\n.sg-timeline__item--bold {\n font-weight: 600; }\n\n.sg-timeline__top-row {\n display: flex;\n align-items: center; }\n\n.sg-timeline__bottom-row {\n display: flex;\n justify-content: center;\n text-align: center;\n padding: 5px 10px; }\n\n.sg-timeline__top-row::before,\n.sg-timeline__top-row::after {\n content: "";\n display: block;\n height: 1px;\n flex-grow: 1;\n background: var(--color-disabled); }\n\n.sg-timeline__top-row::before {\n margin-right: 10px; }\n\n.sg-timeline__top-row::after {\n margin-left: 10px; }\n\n.sg-timeline__step {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: 25px;\n height: 25px;\n line-height: 25px;\n border-radius: 50%;\n color: var(--typography-white);\n background: var(--color-disabled);\n font-family: Roboto;\n font-weight: 700; }\n',""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(7),u=n(8),d=n(1104);n(1107);var p,f,g=function(e){function t(t){var n=e.call(this,t)||this;return n.nodes={},n.rootRef=null,n.onCheck=function(e){var t=n.props,r=t.noCascade,o=t.onCheck;n.toggleChecked(e,e.checked,r),o(n.serializeList("checked"),e)},n.onExpand=function(e){var t=n.props.onExpand;n.toggleNode("expanded",e,e.expanded),t(n.serializeList("expanded"),e)},n.rootRef=l.createRef(),n.flattenNodes(t.nodes),n.unserializeLists({checked:t.checked,expanded:t.expanded}),n}return i(t,e),t.prototype.getFormattedNodes=function(e){var t=this;return e.map((function(e){var n=a({},e);return n.checked=t.nodes[e.value].checked,n.expanded=t.nodes[e.value].expanded,Array.isArray(e.children)&&e.children.length>0?n.children=t.getFormattedNodes(n.children):n.children=null,n}))},t.prototype.getCheckState=function(e,t){return null===e.children||t||this.props.noCascadeOnDisabledNode&&e.disabled?e.checked?1:0:this.isEveryChildChecked(e)?1:this.isSomeChildChecked(e)?2:0},t.prototype.getDisabledState=function(e,t,n,r){return!!n||(this.props.noCascadeOnDisabledNode&&t.disabled?Boolean(e.disabled):!(r||!t.disabled)||Boolean(e.disabled))},t.prototype.toggleChecked=function(e,t,n){var r=this;if(null===e.children||n){var o=this.props.noCascadeOnDisabledNode&&e.disabled?e.value:t;this.toggleNode("checked",e,o)}else e.children.forEach((function(e){r.toggleChecked(e,t)}))},t.prototype.toggleNode=function(e,t,n){this.nodes[t.value][e]=n},t.prototype.flattenNodes=function(e){var t=this;Array.isArray(e)&&0!==e.length&&e.forEach((function(e){t.nodes[e.value]={},t.flattenNodes(e.children)}))},t.prototype.unserializeLists=function(e){var t=this;Object.keys(this.nodes).forEach((function(n){Object.keys(e).forEach((function(e){t.nodes[n][e]=!1}))})),Object.keys(e).forEach((function(n){e[n].forEach((function(e){void 0!==t.nodes[e]&&(t.nodes[e][n]=!0)}))}))},t.prototype.serializeList=function(e){var t=this,n=[];return Object.keys(this.nodes).forEach((function(r){t.nodes[r][e]&&n.push(r)})),n},t.prototype.isEveryChildChecked=function(e){var t=this;return e.children.every((function(e){return null!==e.children?t.isEveryChildChecked(e):e.checked}))},t.prototype.isSomeChildChecked=function(e){var t=this;return e.children.some((function(e){return null!==e.children?t.isSomeChildChecked(e):e.checked}))},t.prototype.renderTreeNodes=function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=0);var o=this.props,i=o.disabled,a=o.noCascade,s=o.optimisticToggle,c=o.collapsedIcon,u=o.expandedIcon,p=o["data-component"],f=e.map((function(e){var o=""+e.value,f=r.getCheckState(e,a),g=r.renderChildNodes(e),m=r.getDisabledState(e,t,i,a);return l.createElement(d.default,{key:o,checked:f,disabled:m,depth:n,expanded:e.expanded,label:e.label,forceShowToggleIcon:e.forceShowToggleIcon,entity:e.entity,optimisticToggle:s,rawChildren:e.children,value:e.value,showCheckbox:e.showCheckbox,onCheck:r.onCheck,onExpand:r.onExpand,collapsedIcon:c,expandedIcon:u,parentRootRef:r.rootRef.current,htmlAttributes:e.htmlAttributes,"data-component":p+"-node"},g)}));return l.createElement("ol",{className:"sg-tree__list"},f)},t.prototype.renderChildNodes=function(e){var t=this.props.depth;return null!==e.children&&e.expanded?this.renderTreeNodes(e.children,e,t+1):null},t.prototype.render=function(){var e=this.props,t=e.nodes,n=e.checked,r=e.expanded;this.flattenNodes(t),this.unserializeLists({checked:n,expanded:r});var o=this.getFormattedNodes(t),i=this.props,d=i.className,p=i.tabIndex,f=i["data-e2e"],g=i["data-component"],m=s(i,["className","tabIndex","data-e2e","data-component"]),h=c.default("sg-tree",d);return l.createElement("div",a({ref:this.rootRef,className:h,"data-e2e":f,"data-component":g,tabIndex:p,role:"tree"},u.default(m)),this.renderTreeNodes(o))},t.defaultProps={depth:0,checked:[],disabled:!1,expanded:[],noCascade:!1,noCascadeOnDisabledNode:!1,optimisticToggle:!0,collapsedIcon:"arrow-right",expandedIcon:"arrow-down",onCheck:function(){return null},onExpand:function(){return null},"data-e2e":"tree","data-component":"tree"},t}(l.PureComponent);t.default=g,p=n(0).default,f=n(0).leaveModule,p&&(p.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree.tsx"),p.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree.tsx"),p.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree.tsx"),p.register(g,"Tree","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree.tsx"),f(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(33),c=n(81),u=n(11),d=n(200),p=n(26);n(1105);var f,g,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCheck=function(){var e=t.props,n=e.checked,r=e.entity,o=e.value,i=e.optimisticToggle,a=e.rawChildren,s=!1;0===n&&(s=!0),2===n&&(s=i),(0,e.onCheck)({value:o,checked:s,entity:r,children:a})},t.onExpand=function(){var e=t.props,n=e.expanded,r=e.entity,o=e.value;(0,e.onExpand)({expanded:!n,value:o,entity:r})},t.handleKeyDown=function(e){var n=t.props,r=n.expanded,o=n["data-component"],i=n.parentRootRef;if(u.isEventFromTab(e))l.focusNextComponent({event:e,startingElement:i});else if(u.isEventFromShiftPlusTab(e))l.focusNextComponent({event:e,isDirectionForward:!1,startingElement:i});else{var a=document.querySelectorAll('[data-component="'+o+'"]');switch(e.key){case u.default.DOWN:return e.preventDefault(),e.stopPropagation(),void l.focusNextComponent({event:e,includeChildren:!0,onComponentFiltering:function(e){return e.getAttribute("data-component")===o}});case u.default.UP:return e.preventDefault(),e.stopPropagation(),void l.focusNextComponent({event:e,includeChildren:!0,isDirectionForward:!1,onComponentFiltering:function(e){return e.getAttribute("data-component")===o}});case u.default.LEFT:if(e.preventDefault(),e.stopPropagation(),!r)return;return t.onExpand();case u.default.RIGHT:if(e.preventDefault(),e.stopPropagation(),r)return;return t.onExpand();case u.default.ENTER:case u.default.SPACE:return e.preventDefault(),e.stopPropagation(),t.onCheck();case u.default.END:var s=a&&a[a.length-1];return void l.focusNextComponent({event:e,isDirectionForward:!0,onComponentFiltering:function(e){return e===s}});case u.default.HOME:var c=a&&a[0];return void l.focusNextComponent({event:e,isDirectionForward:!1,onComponentFiltering:function(e){return e===c}})}}},t}return i(t,e),t.prototype.hasChildren=function(){return null!==this.props.rawChildren},t.prototype.renderExpandCollapseButton=function(){var e=this.props,t=e.expanded,n=e.forceShowToggleIcon,r=e.expandedIcon,o=e.collapsedIcon;return this.hasChildren()||n?s.createElement(p.default,{name:t?r:o,size:"10",color:"light",onClick:this.onExpand,"data-e2e":"tree-node-expand"}):s.createElement("div",{className:"sg-tree-node__spacer",style:{width:"10px",height:"10px"}})},t.prototype.renderLabel=function(){var e=this.props,t=e.checked,n=e.disabled,r=e.entity,o=e.label,i=e.value,a=e.showCheckbox,l=c.cn("sg-tree-node__label");return s.createElement("label",{className:l,role:"treeitem",onDoubleClick:this.onExpand,"data-e2e":"tree-node-label"},a&&s.createElement(d.default,{className:"sg-tree-node__checkbox",value:i,checked:1===t,indeterminate:2===t,disabled:n,onChange:this.onCheck,tabIndex:-1}),"function"==typeof o?o(r):o)},t.prototype.renderChildren=function(){return this.props.expanded?this.props.children:null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,r=e.depth,o=e.showCheckbox,i=e.checked,l=e.expanded,u=e.htmlAttributes,d=e.tabIndex,p=e["data-e2e"],f=e["data-component"],g=c.cn("sg-tree-node",n&&"sg-tree-node--disabled",t);return s.createElement("li",a({className:g,style:{paddingLeft:20*r+"px"},tabIndex:d,role:"treeitem","aria-checked":o?Boolean(i):void 0,"aria-expanded":l,"data-e2e":p,"data-component":f,onKeyDown:this.handleKeyDown},u),s.createElement("span",{className:"sg-tree-node__header"},this.renderExpandCollapseButton(),this.renderLabel()),this.renderChildren())},t.defaultProps={children:null,className:null,depth:0,rawChildren:null,forceShowToggleIcon:!1,showCheckbox:!0,tabIndex:0,"data-e2e":"tree-node","data-component":"tree-node"},t}(s.Component);t.default=m,f=n(0).default,g=n(0).leaveModule,f&&(f.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree-node/tree-node.tsx"),f.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree-node/tree-node.tsx"),f.register(m,"TreeNode","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree-node/tree-node.tsx"),g(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1106);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n TreeNode\n ========================================================================== */\n.sg-tree-node:focus {\n outline: none; }\n\n.sg-keyboard .sg-tree-node:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-tree-node__header {\n display: flex;\n align-items: center;\n min-height: 26px; }\n .sg-tree-node__header .sg-tree-node__spacer {\n flex-shrink: 0; }\n\n.sg-tree-node__label {\n display: flex;\n align-items: center;\n width: 100%;\n padding-left: 5px;\n flex-shrink: 0; }\n .sg-tree-node__label--no-icon {\n padding-left: 15px; }\n\n.sg-tree-node__checkbox {\n padding: 0 15px 0 0; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){var r=n(1108);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Tree\n ========================================================================== */\n.sg-tree {\n width: 100%;\n overflow-x: auto; }\n .sg-tree:focus {\n outline: none; }\n .sg-keyboard .sg-tree:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-tree__list {\n list-style: none;\n padding: 0; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(62),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasPermission:!1,windowFocus:!0},n.registerServiceWorker=function(){var e=n.props.pathToServiceWorker;navigator.serviceWorker.register(e).then((function(e){n.swRegistration=e,n.swRegistration.getNotifications().then((function(e){return e.forEach((function(e){return e.close()}))})),console.log("Registration successful, scope is:",e.scope),n.askForPermission(),n.addEvents()})).catch((function(e){console.log("Service worker registration failed, error:",e.message)}))},n.handleWindowFocus=function(){n.setState({windowFocus:!0})},n.handleWindowBlur=function(){n.setState({windowFocus:!1})},n.isPushNotificationSupported=function(){return"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window},n.askForPermission=function(){Notification.requestPermission().then((function(e){n.setState({hasPermission:"granted"===e})}))},n.createNotification=function(e,t){n.state.windowFocus||n.state.hasPermission&&("string"!=typeof t.tag&&(t.tag=c.uniqueId("sg-web-notification-")),n.notification[t.tag]||n.swRegistration&&n.swRegistration.showNotification&&(window.self=n.swRegistration,n.swRegistration.showNotification(e,t).catch((function(e){return console.log(e)})),n.notification[t.tag]={}))},n.notification={},n}return i(t,e),t.prototype.addEvents=function(){this.props.alwaysShow||(window.addEventListener("focus",this.handleWindowFocus),window.addEventListener("blur",this.handleWindowBlur))},t.prototype.removeEvents=function(){window.removeEventListener("focus",this.handleWindowFocus),window.removeEventListener("blur",this.handleWindowBlur)},t.prototype.componentDidMount=function(){this.isPushNotificationSupported()&&this.registerServiceWorker()},t.prototype.componentDidUpdate=function(e,t){var n=this.props.notification;e.notification!==n&&n&&this.createNotification(n.title,n.options)},t.prototype.componentWillUnmount=function(){this.removeEvents()},t.prototype.render=function(){return l.createElement("input",{type:"hidden",name:"web-notification",style:{display:"none"}})},t.defaultProps={alwaysShow:!1},t}(l.Component);t.default=u,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/web-notification/web-notification.tsx"),a.register(u,"WebNotification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/web-notification/web-notification.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(134),u=n(8),d=function(e){var t=e.link,n=i(e,["link"]);return l.createElement("span",o({},u.default(n)),t)};t.default=c.default(d,{preventTooltipOnMobile:!0}),a=n(0).default,s=n(0).leaveModule,a&&(a.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),a.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),a.register(d,"SGTooltip","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1112);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(81),u=n(25),d=n(210);n(1113);var p,f,g={success:"success",warning:"warning",error:"error"},m=function(e){return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={value:e.props.value},e.onChangeHandler=function(t){var n=e.props.onChange;e.setState({value:t.target.value}),n&&n(t)},e.getRegexValidation=function(t){var n=!t.match&&void 0!==t.match;if(Array.isArray(t.regex))return!t.regex.find((function(t){return!(n?!t.test(e.state.value):t.test(e.state.value))}));var r=n?!t.regex.test(e.state.value):t.regex.test(e.state.value);return t&&r},e.getModifyRuleObject=function(t){var n=Object.assign({},t),r=e.getRegexValidation(t);return Boolean(e.props.value)?n.icon=r?"success":n.required?"error":"warning":n.icon="error",n},e.getSemanticScore=function(){var t=e.props.rules.filter((function(t){return e.getRegexValidation(t)}));return Boolean(e.props.value)?t.length===e.props.rules.length?"success":"error":"default"},e.renderHint=function(e){var t=e.icon,n=e.description,r=c.cn("sg-rules-box__hint-icon",t&&"sg-rules-box__hint-icon--"+t);return l.createElement("div",{className:"sg-rules-box__hint",key:n},l.createElement(u.default,{name:g[t],size:"14",className:r}),n)},e.renderHints=function(){return e.props.rules.map((function(t){return e.getModifyRuleObject(t)})).map((function(t){return e.renderHint({icon:t.icon,description:t.description})}))},e.renderStrengthMeter=function(){var t=c.cn("sg-rules-box__hints",e.getSemanticScore()&&"sg-rules-box__hints--"+e.getSemanticScore());return l.createElement("div",{className:t},l.createElement(d.default,{level:"6",density:"cozy"},e.props.translation.title),l.createElement("div",{className:"sg-rules-box__meter"}),e.renderHints())},e}return i(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=s(t,["className"]),o=(r.rules,r.dispatch,r.onChange,s(r,["rules","dispatch","onChange"])),i=c.cn("sg-rules-box","sg-rules-box--custom-validation",n);return l.createElement(e,a({validationMessageTemplate:this.renderStrengthMeter,className:i,onChange:this.onChangeHandler},o))},n.defaultProps={rules:[],translation:{title:"Recommendations"}},n}(l.Component)};t.default=m,p=n(0).default,f=n(0).leaveModule,p&&(p.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),p.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),p.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),p.register(g,"ICON","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),p.register(m,"withFieldRules","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),f(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1114);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Recommendations\n ========================================================================== */\n.sg-rules-box .sg-input-addon--suffix {\n padding-right: 5px; }\n\n.sg-rules-box--custom-validation {\n background-color: var(--background-component-primary); }\n .sg-rules-box--custom-validation .sg-validation {\n background: var(--background-component-primary);\n border: 1px solid transparent;\n color: var(--typography-darkest);\n font-size: 14px; }\n .sg-rules-box--custom-validation .sg-validation--success {\n border-color: var(--color-success); }\n .sg-rules-box--custom-validation .sg-validation--error {\n border-color: var(--color-error); }\n .sg-rules-box--custom-validation .sg-validation--hint {\n border-color: var(--color-hint); }\n\n.sg-theme-hcl .sg-rules-box--custom-validation .sg-validation,\n.sg-theme-hcb .sg-rules-box--custom-validation .sg-validation {\n border-color: var(--high-contrast-foreground); }\n\n/* Hits wrapper\n ========================================================================== */\n.sg-rules-box__hints {\n display: flex;\n flex-direction: column;\n flex: 1 1 0;\n text-align: left; }\n\n.sg-rules-box__hints--error .sg-rules-box__meter {\n background: var(--color-error); }\n\n.sg-rules-box__hints--success .sg-rules-box__meter {\n background: var(--color-success); }\n\n.sg-rules-box__hints--default .sg-rules-box__meter {\n background: var(--color-hint); }\n\n/* Meter\n ========================================================================== */\n.sg-rules-box__meter {\n height: 2px;\n width: 100%; }\n\n/* Hit row\n ========================================================================== */\n.sg-rules-box__hint {\n display: flex;\n align-items: center;\n padding: 10px 0; }\n\n.sg-rules-box__hint-icon {\n margin-right: 5px; }\n\n.sg-rules-box__hint-icon--success {\n color: var(--color-success); }\n\n.sg-rules-box__hint-icon--error {\n color: var(--color-error); }\n\n.sg-rules-box__hint-icon--warning {\n color: var(--color-warning); }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1116);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(7),l=n(8),c=n(26),u=n(47);n(1117);var d,p,f={success:"success",error:"error",warning:"warning",info:"information",instruction:"information",hint:"information"},g=function(e){var t=e.children,n=e.className,r=e.density,d=e.title,p=e.type,g=e.tabIndex,m=e["data-e2e"],h=e["data-component"],y=i(e,["children","className","density","title","type","tabIndex","data-e2e","data-component"]),b=s.default("sg-banner-notice",p&&"sg-banner-notice--type-"+p,r&&"sg-banner-notice--density-"+r,n),_=s.default("sg-banner-notice__content"),x=t?"compact":"none";return a.createElement("div",o({className:b,"data-e2e":m,"data-component":h,tabIndex:g,role:"alert","aria-live":"assertive"},l.default(y)),a.createElement(c.default,{name:f[p],size:"20",className:"sg-banner-notice__icon",color:"white"}),a.createElement("div",{className:_},d&&a.createElement(u.default,{level:"6",density:x,className:"sg-banner-notice__title",color:"white",weight:"medium"},d),t))};g.defaultProps={density:"medium",type:"hint",tabIndex:0,"data-e2e":"banner-notification","data-component":"banner-notification"},t.default=g,d=n(0).default,p=n(0).leaveModule,d&&(d.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/banner-notification/banner-notification.tsx"),d.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/banner-notification/banner-notification.tsx"),d.register(f,"icons","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/banner-notification/banner-notification.tsx"),d.register(g,"BannerNotification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/banner-notification/banner-notification.tsx"),p(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1118);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Banner Notification\n ========================================================================== */\n.sg-banner-notice {\n display: flex;\n align-items: center;\n position: relative;\n text-align: start; }\n .sg-banner-notice:focus {\n outline: none; }\n .sg-keyboard .sg-banner-notice:focus {\n outline: none;\n box-shadow: var(--first-level-box-shadow), var(--focus-shadow); }\n .sg-banner-notice .sg-banner-notice__title {\n padding-top: 0; }\n .sg-banner-notice .sg-banner-notice__close-icon {\n color: var(--typography-white); }\n\n.sg-banner-notice--density-small {\n padding: 10px 15px; }\n\n.sg-banner-notice--density-medium {\n padding: 10px 20px; }\n\n.sg-banner-notice__icon {\n margin-right: 10px; }\n\n.sg-banner-notice__content {\n display: flex;\n align-items: center;\n flex-direction: column;\n padding: 0;\n word-break: break-word; }\n\n.sg-banner-notice__close-icon {\n position: absolute;\n top: 15px;\n right: 20px; }\n\n/* Borders and Shadows\n ========================================================================== */\n.sg-banner-notice--border {\n border-left: 3px solid transparent; }\n\n.sg-banner-notice--shadow {\n box-shadow: var(--first-level-box-shadow); }\n\n/* Types\n ========================================================================== */\n.sg-banner-notice--type-success {\n background: var(--color-success); }\n .sg-banner-notice--type-success .sg-list__icon {\n color: var(--color-success); }\n\n.sg-banner-notice--type-error {\n background: var(--color-error); }\n .sg-banner-notice--type-error .sg-list__icon {\n color: var(--color-error); }\n\n.sg-banner-notice--type-warning {\n background: var(--color-warning); }\n .sg-banner-notice--type-warning .sg-list__icon {\n color: var(--color-warning); }\n\n.sg-banner-notice--type-instruction {\n background: var(--ocean-base); }\n .sg-banner-notice--type-instruction .sg-list__icon {\n color: var(--ocean-base); }\n\n.sg-banner-notice--type-info {\n background: var(--royal-base); }\n .sg-banner-notice--type-info .sg-list__icon {\n color: var(--royal-base); }\n\n.sg-banner-notice--type-hint {\n background: var(--color-hint); }\n .sg-banner-notice--type-hint .sg-list__icon {\n color: var(--color-hint); }\n\n@media (max-width: 1500px) {\n .sg-banner-notice .sg-banner-notice__icon {\n max-width: 20px;\n max-height: 20px;\n margin-right: 5px; }\n .sg-banner-notice__title {\n padding-bottom: 0; }\n .sg-banner-notice__content {\n padding: 0 5px; }\n .sg-banner-notice--border {\n border-width: 2px; } }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51),o=n(35);t.onPageInit=r.createAction(o.PAGE_INIT),t.onPageResize=r.createAction(o.PAGE_RESIZE)},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i,a,s=n(2),l=n(10),c=n(44),u=n(9),d=n(1121),p=function(e){var t,n="sg-optimizer-intro-section single";return void 0!==window.optimizerData.cards&&(Object.keys(window.optimizerData.cards.cards).length>1&&(n="sg-optimizer-intro-section"),t=c.filter(window.optimizerData.cards.cards,(function(t,n){if("cloudflare_optimization"!=t.optimization||0!=e.hasCloudflare)return t;delete window.optimizerData.cards.whats_new[n]}))),s.createElement(u.Section,{className:n},s.createElement(u.Flex,{padding:["none","none","medium","none"],direction:"column",gutter:"none"},s.createElement(u.TitleOne,null,l.translate("SG Optimizer"))),void 0!==t&&s.createElement(u.Carousel,{showArrows:!1,renderContent:function(e){if(void 0!==t&&void 0!==window.optimizerData.cards.whats_new)return window.optimizerData.cards.whats_new.includes(e)?s.createElement("div",{className:"label-wrapper--absolute"},s.createElement(u.Label,{size:"small",color:"success"},"New feature")):void 0}},Object.keys(t).map((function(n){return"default"==t[n].type?s.createElement(d.DefaultCard,o({},t[n],{key:n,onClick:e.enableOption})):"optimizations"==t[n].type?s.createElement(d.OptimizationsCard,o({},t[n],{key:n,onClick:e.enableOption})):void 0}))))};t.default=p,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/intro/index.tsx"),i.register(p,"Intro","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/intro/index.tsx"),a(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1122);t.DefaultCard=r.default;var o=n(1123);t.OptimizationsCard=o.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(9),l=function(e){return a.createElement(s.Card,{key:e.index,iconName:e.icon,iconColor:e.icon_color,text:e.text,title:e.title,size:"x-large",outline:"none"},void 0!==e.button&&a.createElement(s.Button,{onClick:function(t){e.onClick(e.optimization,!0),window.location.hash=e.button.link},color:e.button.color},e.button.text))};t.default=l,o=n(0).default,i=n(0).leaveModule,o&&(o.register(l,"DefaultCard","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/default.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Container,{elevation:"none",padding:"responsive",className:"features-container"},a.createElement(l.Grid,{gap:"responsive"},a.createElement(l.Title,{density:"none",level:"2",weight:"bold",color:"darkest"},s.translate("Top 3 Optimization Opportunities")),a.createElement(l.Grid,{sm:"3",gap:"responsive"},e.boxes.map((function(t,n){return a.createElement(l.Container,{key:n,padding:"responsive",elevation:"none",className:"feature-box--highlight"},a.createElement(l.Grid,{gap:"small"},a.createElement(l.Title,{level:"5",weight:"bold",density:"none"},t.title),a.createElement(l.Text,null,t.text),a.createElement("div",null,a.createElement(l.Button,{onClick:function(n){e.onClick(t.optimization,!0),window.location.hash=t.link},color:"primary",size:"small"},"Enable Now"))))})))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"OptimizationsCard","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/optimizations.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(16),d=n(9),p=n(10),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this;return window.optimizerData.network_settings.is_multisite&&!window.optimizerData.network_settings.is_network_admin||1==this.props.hideRatingOption?"":l.createElement(d.Section,null,l.createElement(d.Container,{padding:"large",className:"sg-rate"},l.createElement(d.Flex,{margin:"none",gutter:"xx-large",expand:!0},l.createElement(d.Box,{sm:"3",flex:!0,align:"center",justify:"center",className:"sg-rate--stars"},l.createElement(d.Link,{href:"https://wordpress.org/support/plugin/sg-cachepress/reviews/?rate=5#new-post",target:"_blank",style:{width:"100%"}},l.createElement(d.StarRating,{rating:5,size:"large",style:{width:"100%"}}))),l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Thanks for using SG Optimizer to make your site faster!")),l.createElement(d.Link,{href:"https://wordpress.org/support/plugin/sg-cachepress/reviews/?rate=5#new-post",target:"_blank",style:{paddingBottom:"10px"}},p.translate("Help more people optimize their sites by rating our plugin."))),l.createElement(d.Button,{size:"small",type:"link",className:"sg-button--hide",style:{color:"#a4a4a4"},onClick:function(t){return e.props.hideRating()}},p.translate("Don’t Show This Again")))))},t}(l.Component),g=function(e){return{hideRatingOption:e.Options.hide_rating}},m=function(e){return{hideRating:function(){return e(u.hideRating())}}};t.default=c.connect(g,m)(f),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(f,"Rating","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(g,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(m,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s,l,c=n(2),u=n(24),d=n(9),p=n(487),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return c.createElement(d.Notifications,a({},this.props),this.props.notifications&&this.props.notifications.map((function(e){return c.createElement(p.Notification,{notification:e,message:e.message,key:e.id})})))},t}(c.Component),g=function(e){return{notifications:e.Notifications.notifications}},m=function(e){return{}};t.default=u.connect(g,m)(f),s=n(0).default,l=n(0).leaveModule,s&&(s.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),s.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),s.register(f,"Notifications","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),s.register(g,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),s.register(m,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l,c,u=n(2),d=n(24),p=n(16),f=n(9),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.removeNotification=function(){var e=t.props,n=e.removeNotification,r=e.notification;void 0!==t.timeout&&(clearTimeout(t.timeout),t.timeout=void 0,n({id:r.id}))},t}return i(t,e),t.prototype.componentWillMount=function(){var e=this;this.timeout=setTimeout((function(){e.removeNotification()}),4e3)},t.prototype.componentWillUnmount=function(){this.removeNotification()},t.prototype.render=function(){var e=this.props,t=e.notification,n=(e.removeNotification,s(e,["notification","removeNotification"]));return u.createElement(f.Notification,a({type:t.type,title:t.title,message:t.message,onClose:this.removeNotification},n))},t}(u.Component),m=function(e){return{notifications:e.Notifications.notifications}},h=function(e){return{removeNotification:function(t){return e(p.removeNotification(t))}}};t.default=d.connect(m,h)(g),l=n(0).default,c=n(0).leaveModule,l&&(l.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(g,"Notification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(m,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(h,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(9),d=n(16),p=n(10),f=n(1128),g=n(146),m=n(100),h=n(65),y=function(e){function t(t){var n=e.call(this,t)||this;return n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.toogleDialog=function(e){var t;n.setState(((t={})[e]=!n.state[e],t))},n.state={showUrlsDialog:!1,showCacheDialog:!1},n}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(h.Row,{title:p.translate("Dynamic Caching"),checked:this.props.options.enable_cache,name:"enable_cache",onChange:this.changeOption,hasExpand:1},p.translate("Store your content in the server’s memory for a faster access with this full-page caching solution powered by NGINX.")),1===this.props.options.enable_cache&&l.createElement(u.Flex,{gutter:"large"},l.createElement(u.Box,{sm:"12"},l.createElement(u.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(u.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(u.Box,{sm:"10"},l.createElement(u.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Manual Cache Purge")),l.createElement(u.Text,null,p.translate("Clear the Dynamic Cache for your entire website."))),l.createElement(u.Box,{sm:"2"},l.createElement(u.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.props.purgeCache},this.props.cachePurged?p.translate("Purge Cache"):p.translate("Purging ...")))),l.createElement(u.Flex,{className:"divider"}),l.createElement(h.InnerRow,{title:p.translate("Automatic Cache Purge"),checked:this.props.options.autoflush_cache,name:"autoflush_cache",onChange:this.changeOption},p.translate("Automatically perform a smart cache purge after every content modification."),"  ",l.createElement(u.Link,{onClick:function(t){return e.toogleDialog("showCacheDialog")},"aria-haspopup":"true",role:"button"}," ",p.translate("See rules"))),l.createElement(u.Flex,{className:"divider"}),l.createElement(h.InnerRow,{title:p.translate("Browser-Specific Caching"),checked:this.props.options.user_agent_header,name:"user_agent_header",onChange:this.changeOption},p.translate("We recommend you to enable this feature {{strong}}only{{/strong}} if you’re experiencing issues with plugins, generating mobile version of your site or similar functionality. Once enabled, the cache has to be generated separately for different browsers which lowers its efficiency.",{components:{strong:l.createElement("strong",null)}})),l.createElement(u.Flex,{className:"divider"}),l.createElement(h.InnerRow,{title:p.translate("Excluding URLs")},p.translate("Use this feature if you want to exclude certain parts of your website from being cached and keep them dynamic."),"  ",l.createElement(u.Link,{onClick:function(t){return e.toogleDialog("showUrlsDialog")},"aria-haspopup":"true",role:"button"}," ",p.translate("See examples"))),l.createElement(g.UrlsExclude,{updateExcludeList:this.props.updateExcludeList,excludedUrls:this.props.options.excluded_urls,addNotification:this.props.addNotification,prefix:window.optimizerData.home_url}),l.createElement(u.Flex,{className:"divider"}),l.createElement(f.default,{testUrl:this.props.testUrl})))),this.state.showUrlsDialog&&l.createElement(m.UrlsDialog,{toogleDialog:function(t){return e.toogleDialog("showUrlsDialog")}}),this.state.showCacheDialog&&l.createElement(m.CacheDialog,{toogleDialog:function(t){return e.toogleDialog("showCacheDialog")}}))},t}(l.Component),b=function(e){return{options:e.Options,cachePurged:e.Cache.cachePurged}},_=function(e){return{enableOption:function(t,n){return e(d.enableOption(t,n,!1))},disableOption:function(t,n){return e(d.disableOption(t,n,!1))},updateExcludeList:function(t){return e(d.updateExcludeList(t))},purgeCache:function(){return e(d.purgeCache())},testUrl:function(t){return e(d.testUrl(t))},addNotification:function(t){return e(d.addNotification(t))}}};t.default=c.connect(b,_)(y),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),a.register(y,"DynamicCache","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),a.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),a.register(_,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(9),u=n(10),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeyPressTestCache=function(e){"Enter"==e.key&&n.testUrlCache()},n.handleTestUrlInputChange=function(e){n.setState({testInputValue:e.target.value})},n.testUrlCache=function(){var e=n.state.testInputValue.replace(window.optimizerData.home_url,"");n.props.testUrl(e)},n.state={testInputValue:""},n}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(c.Flex,{direction:"row",gutter:"large",margin:"medium"},l.createElement(c.Box,{sm:"12"},l.createElement(c.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Test URLs for Cache Status")),l.createElement(c.Text,null,u.translate("Check if the Dynamic Cache is working on a certain URL. Especially useful to make sure your Exclude list is working the way it should.")))),l.createElement(c.Flex,{direction:"row",gutter:"large",margin:"medium"},l.createElement(c.Box,{sm:"10"},l.createElement(c.Input,{type:"text",size:"medium",prefix:window.optimizerData.home_url,value:this.state.testInputValue,onChange:function(t){return e.handleTestUrlInputChange(t)},onKeyPress:this.handleKeyPressTestCache})),l.createElement(c.Box,{sm:"2"},l.createElement(c.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.testUrlCache},u.translate("Test")))))},t}(l.Component);t.default=d,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cache-tester/index.tsx"),a.register(d,"CacheTester","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cache-tester/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(44),u=n(9),d=n(10),p=function(e){function t(t){var n=e.call(this,t)||this;return n.transformExcludedItems=function(){var e=[];return n.props.excludedItems.map((function(t){e.push({value:t})})),e.reverse()},n.handleKeyPressExcludeList=function(e){"Enter"==e.key&&n.updateExcludeList()},n.handleExcludeInputChange=function(e){n.setState({excludeInputValue:e.target.value})},n.isValidUrl=function(e){var t=new RegExp(n.props.regex);return null!==e.match(t)},n.updateExcludeList=function(){if(-1!==n.props.excludedItems.indexOf(n.state.excludeInputValue))return n.props.addNotification({id:n.state.excludeInputValue,type:"error",message:d.translate("This item already exists in exclude list.")}),!1;if(c.isEmpty(n.state.excludeInputValue))return n.props.addNotification({id:n.state.excludeInputValue+"error",type:"error",message:d.translate("You must input a class name.")}),!1;var e=n.state.excludeInputValue;if(n.props.regex){if(!1===n.isValidUrl(n.state.excludeInputValue))return n.props.addNotification({id:n.state.excludeInputValue,type:"error",message:d.translate("Please provide correct URL.")}),!1;var t=new RegExp(n.props.regex);e=e.replace(t,"//$1")}var r=n.props.excludedItems;r.push(e),n.props.updateExcludeList(r),n.setState({excludeInputValue:""})},n.deleteItem=function(e){var t=n.props.excludedItems,r=t.indexOf(e);t.splice(r,1),n.props.updateExcludeList(t)},n.getColumns=function(){return[{header:"",accessor:"value",render:function(e){return l.createElement(u.Flex,{margin:"none",gutter:"none"},l.createElement(u.Text,{weight:"bold"},e))}},{header:"",render:function(e,t){return l.createElement(u.IconButton,{icon:"trash",shape:"circle",onClick:function(e){return n.deleteItem(t.value)}})},style:{textAlign:"right"}}]},n.state={excludeInputValue:""},n}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(u.Flex,{gutter:"large",direction:"row",margin:"small"},l.createElement(u.Box,{sm:"10"},l.createElement(u.Input,{type:"text",size:"medium",prefix:this.props.prefix,value:this.state.excludeInputValue,onChange:function(t){return e.handleExcludeInputChange(t)},onKeyPress:this.handleKeyPressExcludeList})),l.createElement(u.Box,{sm:"2"},l.createElement(u.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.updateExcludeList},this.props.buttonText?this.props.buttonText:d.translate("Exclude")))),this.props.excludedItems.length>0&&l.createElement(u.Flex,{gutter:"large",direction:"column"},l.createElement(u.Box,null,l.createElement(u.Table,{data:this.transformExcludedItems(),columns:this.getColumns()}))))},t}(l.Component);t.default=p,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),a.register(p,"SimpleExclude","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(9),u=n(10),d=n(1131),p=function(e){function t(t){var n=e.call(this,t)||this;return n.transformExcludedUrls=function(){var e=[];return n.props.excludedUrls.map((function(t){e.push({value:d.unTrailingSlashIt(window.optimizerData.home_url)+t})})),e.reverse()},n.handleKeyPressExcludeList=function(e){"Enter"==e.key&&n.updateExcludeList()},n.handleExcludeInputChange=function(e){n.setState({excludeInputValue:e.target.value})},n.updateExcludeList=function(){var e=n.getAndValidateExcludeUrl();if(!1!==e){var t=n.props.excludedUrls;t.push(e),n.props.updateExcludeList(t),n.setState({excludeInputValue:""})}},n.deleteUrl=function(e){var t=e.replace(window.optimizerData.home_url,"/"),r=n.props.excludedUrls,o=r.indexOf(t);r.splice(o,1),n.props.updateExcludeList(r)},n.getColumns=function(){return[{header:"",accessor:"value",render:function(e){return l.createElement(c.Flex,{margin:"none",gutter:"none"},l.createElement(c.Text,{weight:"bold"},e))}},{header:"",render:function(e,t){return l.createElement(c.IconButton,{icon:"trash",shape:"circle",onClick:function(e){return n.deleteUrl(t.value)}})},style:{textAlign:"right"}}]},n.state={excludeInputValue:""},n}return i(t,e),t.prototype.getAndValidateExcludeUrl=function(){var e=new RegExp("^/+|"+window.optimizerData.home_url,"g"),t=this.state.excludeInputValue.replace(e,"");return"*"!==t.slice(-1)&&(t=d.trailingSlashIt(t)),"/"!==t&&(t="/"+t),-1!==this.props.excludedUrls.indexOf(t)?(this.props.addNotification({id:t,type:"error",message:u.translate("This URL already exists in exclude list.")}),!1):t},t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(c.Flex,{gutter:"large",direction:"row",margin:"none"},l.createElement(c.Box,{sm:"10"},l.createElement(c.Input,{type:"text",size:"medium",prefix:this.props.prefix,value:this.state.excludeInputValue,onChange:function(t){return e.handleExcludeInputChange(t)},onKeyPress:this.handleKeyPressExcludeList})),l.createElement(c.Box,{sm:"2"},l.createElement(c.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.updateExcludeList},u.translate("Exclude")))),this.props.excludedUrls.length>0&&l.createElement(c.Flex,{gutter:"large",direction:"column",margin:"medium"},l.createElement(c.Box,null,l.createElement(c.Table,{data:this.transformExcludedUrls(),columns:this.getColumns()}))))},t}(l.Component);t.default=p,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),a.register(p,"UrlsExclude","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";var r=function e(t){return t.endsWith("/")||t.endsWith("\\")?e(t.slice(0,-1)):t},o=function(e){return r(e)+"/"};e.exports=o,e.exports.trailingSlashIt=o,e.exports.unTrailingSlashIt=r},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Check Your Website!",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Defering render-blocking JavaScript may cause issues with scripts that require certain order of execution. This is why we advise you to check the frontend of your website after you enable this optimization."))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("If you notice issues with certain functionality, use the Exclude functionality to keep those scripts loading in a render-blocking manner."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"AsyncDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/async-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Automatic Purge Rule",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleDialog},s.translate("Close")))},a.createElement(l.Flex,{gutter:"none",margin:"none"},a.createElement(l.Text,{align:"left"},s.translate("Purge your installation's entire Dynamic Cache or select parts in order to achieve the best hit-to-cache ratio for your account. Here are the plugin's purge rules:"))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Full Purge on page, posts, and category deletion, plugin and theme activation, deactivation, or update, and on WordPress core updates."))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Specific URL Purge on comment actions and page, post, and category updates."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"CacheDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cache-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Important",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none",margin:"none"},a.createElement(l.Text,{align:"left"},"manual"==e.type&&s.translate("You’re switching to PHP %(version)s manually and you will stay on that version until you change it to a newer one. In case you experience any issues after the update, switch back the PHP version from your {{strong}}cPanel{{/strong}} > {{strong}}PHP Version Manager{{/strong}} tool.",{args:{version:e.version},components:{strong:a.createElement("strong",null)}}),"managed"==e.type&&s.translate("You’re about to switch to Managed PHP service. This means that SiteGround will automatically update your PHP version once we are sure there’s a better, safer and more stable version."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"PhpDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/php-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Force HTTPS",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:e.toogleConfirm,color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none",margin:"none"},a.createElement(l.Text,{align:"left"},s.translate("In order to force HTTPS on your site, we will automatically update your database replacing all insecure links. In addition to that, we will add a rule in your .htaccess file, forcing all requests to go through encrypted connection."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"SslDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/ssl-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Excluding URLs",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleDialog},s.translate("Close")))},a.createElement(l.Flex,{gutter:"none",margin:"none"},a.createElement(l.Text,{align:"left"},s.translate('You can exclude full or partial URLs using "*" as a wildcard. For example:'))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("{{strong}}www.site.com/parent-page/sub-page{{/strong}} will exclude only that single URL.",{components:{strong:a.createElement("strong",null)}}))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate('{{strong}}www.site.com/parent-page/*{{/strong}} will exclude all sub-pages of "parent-page".',{components:{strong:a.createElement("strong",null)}}))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"UrlsDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/urls-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Delete All WebP Files",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("This will delete all WebP files in your uploads folder! In case you need them, you will have to regenerate them again or restore that folder from a backup."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"DeleteWebpDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/delete-webp-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Re-generate All WebP Files",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Doing this will delete all WebP files in your uploads folder and generate them anew!"))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"RegenerateWebpDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/regenerate-webp-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Check Your Website!",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Combining JavaScript files may cause issues with scripts that require certain order of execution. This is why we advise you to check the frontend of your website after you enable this optimization."))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("If you notice issues with parts of your site, use the Exclude functionality to keep those scripts separate from the combination."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"JsCombineDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/js-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Warning for CDN Users",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("If you're using CloudFlare or other CDN provider, please keep this optimization disabled and check if you can have WebP enabled by your CDN provider."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"EnableWebpDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/enable-webp-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",size:"large",title:e.title,icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleDialog},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm(e.name)},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none",align:"left"},a.createElement(l.Box,{sm:"6"},a.createElement(l.RadioButton,{key:"ultrafast",value:1,align:"flex-start",name:e.statusName,size:"medium",onChange:function(t){return e.changeStatus(e.statusName,t)},checked:1==e.status?1:0},s.translate("Enabled"))),a.createElement(l.Box,{sm:"6"},a.createElement(l.RadioButton,{key:"standard",value:0,align:"flex-start",name:e.statusName,size:"medium",onChange:function(t){return e.changeStatus(e.statusName,t)},checked:0==e.status?1:0},s.translate("Disable")))),a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Notice,{type:"instruction",background:"light",contentSize:"expanded",shadow:!0},a.createElement(l.Text,{align:"left"},e.message))),1==e.status&&a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Box,{sm:"12"},a.createElement(l.Slider,{max:300,min:15,step:5,value:e.interval,label:"s",onChange:function(t){return e.changeInterval(e.intervalName,t)}}),a.createElement(l.Text,{align:"center"},s.translate("Select Heartbeat Frequency")))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"HeartbeatDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/heartbeat-control-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Your Cloudflare account may has page rules set that might affect the work of our integration. We will remove those rules in order to assure the proper plugin function."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"CloudflareDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cloudflare-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(44),p=n(9),f=n(16),g=n(100),m=n(489),h=n(61),y=n(490),b=n(1144),_=n(1149),x=n(1150),v=n(491),M=function(e){function t(t){var n=e.call(this,t)||this;return n.toogleSslDialog=function(){n.setState({showSslDialog:!n.state.showSslDialog})},n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.toogleDatabaseOptimization=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableDatabaseOptimization(e.name,t):n.props.disableDatabaseOptimization(e.name,t)},n.toogleSsl=function(){n.props.options.ssl_enabled?(n.props.disableSsl("ssl_enabled"),n.props.disableOption("fix_insecure_content")):(n.props.enableSsl("ssl_enabled"),n.setState({showSslDialog:!1}))},n.state={showSslDialog:!1},n}return i(t,e),t.prototype.render=function(){var e=this;return 1===window.optimizerData.network_settings.is_multisite&&0===window.optimizerData.network_settings.is_network_admin&&!0,l.createElement(h.default,null,d.includes(window.optimizerData.modules,"ssl")&&l.createElement(l.Fragment,null,l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},1===this.props.isLoading&&l.createElement(p.Loader,{style:{position:"absolute"}}),l.createElement(p.Box,{sm:"10"},l.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Enable HTTPS")),l.createElement(p.Text,null,u.translate("Configures your site to work correctly via HTTPS and forces a secure connection to your site."))),l.createElement(p.Box,{sm:"2",className:"right--actions"},l.createElement(p.Switch,{size:"small",checked:this.props.options.ssl_enabled,name:"ssl_enabled","aria-haspopup":!0,"aria-expanded":1==this.props.options.ssl_enabled,onChange:function(t){return t.target.checked?e.toogleSslDialog():e.toogleSsl()}}))),1===this.props.options.ssl_enabled&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(p.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(p.Box,{sm:"10"},l.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Fix Insecure Content")),l.createElement(p.Text,null,u.translate("Enable this option in case you’re getting insecure content errors on your website. We will dynamically rewrite insecure requests for resources coming from your site"))),l.createElement(p.Box,{sm:"2",className:"right--actions"},l.createElement(p.Switch,{size:"small",checked:this.props.options.fix_insecure_content,name:"fix_insecure_content",onChange:function(t){return e.changeOption(t.target,!0)}})))))),l.createElement(p.Flex,{className:"divider"})),l.createElement(b.default,null),l.createElement(_.default,{dns_prefetch:this.props.options.dns_prefetch,dns_prefetch_urls:this.props.options.dns_prefetch_urls,changeOption:this.changeOption,updateExcludes:this.props.updateExcludes,addNotification:this.props.addNotification}),l.createElement(x.default,{checked:this.props.options.database_optimization,toogleOptimization:this.toogleDatabaseOptimization}),d.includes(window.optimizerData.modules,"phpchecker")&&l.createElement(m.default,null),l.createElement(v.default,{checked:this.props.options.enable_gzip_compression,changeOption:this.changeOption}),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{checked:this.props.options.enable_browser_caching,changeOption:this.changeOption}),this.state.showSslDialog&&l.createElement(g.SslDialog,{toogleClose:this.toogleSslDialog,toogleConfirm:this.toogleSsl}))},t}(l.Component),w=function(e){return{options:e.Options,isLoading:e.Options.isLoading}},z=function(e){return{enableOption:function(t,n){return e(f.enableOption(t,n,!1))},disableOption:function(t,n){return e(f.disableOption(t,n,!1))},enableDatabaseOptimization:function(t,n){return e(f.enableDatabaseOptimization(t,n,!1))},disableDatabaseOptimization:function(t,n){return e(f.disableDatabaseOptimization(t,n,!1))},addNotification:function(t){return e(f.addNotification(t))},updateExcludes:function(t,n){return e(f.updateExcludes(t,n))},enableSsl:function(t){return e(f.enableSsl(t))},disableSsl:function(t){return e(f.disableSsl(t))}}};t.default=c.connect(w,z)(M),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),a.register(M,"EnvironmentOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),a.register(w,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),a.register(z,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(44),d=n(9),p=n(16),f=n(10),g=n(1145),m=n(65),h=n(100),y=function(e){function t(t){var n=e.call(this,t)||this;return n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.changeStatus=function(e,t){var r;n.setState(((r={})[e]=t.target.value,r))},n.changeInterval=function(e,t){var r;n.setState(((r={})[e]=t,r))},n.toogleDialog=function(e){var t;n.setState(((t={})[e]=!n.state[e],t))},n.toogleConfirm=function(e){var t,r=n.getOptions(e),o="heartbeat_"+r.option+"_status",i="heartbeat_"+r.option+"_interval";1===parseInt(n.state[r.status])?n.props.enableOption(o,!1):n.props.disableOption(o,!1),n.props.changeOption(i,n.state[r.interval]),n.setState(((t={})[r.dialog]=!n.state[r.dialog],t))},n.getOptions=function(e){var t={dashboard:{title:f.translate("WordPress Admin Pages"),dialog:"showDashboardDialog",status:"dashboardStatus",interval:"dashboardInterval",option:"dashboard",message:f.translate("Select whether the Heartbeat API to work or not on your {{strong}}WordPress Admin Pages{{/strong}}. Unless you rely on it to execute scheduled tasks, we recommend to keep it disabled.",{components:{strong:l.createElement("strong",null)}})},post:{title:f.translate("Post and Page Edit"),dialog:"showPostDialog",status:"frontendStatus",interval:"frontendInterval",option:"post",message:f.translate("Select whether the WordPress Heartbeat API to work or not on your {{strong}}Post and Page Edit{{/strong}} screens. We recommend that you keep it enabled at 180 seconds.",{components:{strong:l.createElement("strong",null)}})},frontend:{title:f.translate("Site Frontend"),dialog:"showFrontendDialog",status:"editStatus",interval:"editInterval",option:"frontend",message:f.translate("Select whether the WordPress Heartbeat API to work or not on your {{strong}}Site Frontend{{/strong}}. Unless you rely on it to execute scheduled tasks, we recommend to keep it disabled.",{components:{strong:l.createElement("strong",null)}})}};return!1===e?t:t[e]},n.getMessage=function(e){var t="heartbeat_"+e.option+"_status",r="heartbeat_"+e.option+"_interval";return 0===parseInt(n.props.options[t])?f.translate("Disabled"):n.props.options[r]+"s"},n.state={showDashboardDialog:!1,showPostDialog:!1,showFrontendDialog:!1,dashboardStatus:0,frontendStatus:0,editStatus:0,dashboardInterval:0,frontendInterval:0,editInterval:0,keys:["status","interval"]},n}return i(t,e),t.prototype.componentDidUpdate=function(e){var t=this,n=this.getOptions(!1);u.map(n,(function(n){u.map(t.state.keys,(function(r){var o,i="heartbeat_"+n.option+"_"+r;t.props.options[i]!==e.options[i]&&t.setState(((o={})[n[r]]=t.props.options[i],o))}))}))},t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(m.Row,{title:f.translate("WordPress Heartbeat Optimization"),checked:this.props.options.heartbeat_control,name:"heartbeat_control",onChange:function(t){return e.changeOption(t,!0)},hasExpand:1},f.translate("Enable this option to allow SG Optimizer to control the WordPress Heartbeat API.")),1===this.props.options.heartbeat_control&&l.createElement(l.Fragment,null,l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Notice,{type:"instruction",background:"light",contentSize:"expanded",shadow:!1},f.translate("By default, the WordPress Heartbeat API checks every 15 seconds on your post edit pages and every 60 seconds on your dashboard and frontend whether there is a scheduled tasks to be executed. This can generate high CPU usage if you leave browser tabs in which you're logged to WordPress opened for a longer period of time. With this option, you can make the checks run less frequently or completely disable them.")))),l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"medium",direction:"row",style:{padding:"0",margin:"0"}},u.map(this.getOptions(!1),(function(t,n){return l.createElement(d.Box,{sm:"4",key:n},l.createElement(g.default,{label:f.translate(t.title)},e.getMessage(t),l.createElement(d.IconButton,{icon:"edit",shape:"circle",onClick:function(n){return e.toogleDialog(t.dialog)}})))})))))),l.createElement(d.Flex,{className:"divider"}),u.map(this.getOptions(!1),(function(t,n){return e.state[t.dialog]&&l.createElement(h.HeartbeatControl,{name:n,key:n,title:t.title,message:t.message,toogleDialog:function(n){return e.toogleDialog(t.dialog)},changeStatus:e.changeStatus,confirm:e.toogleConfirm,changeInterval:e.changeInterval,toogleConfirm:e.toogleConfirm,statusName:t.status,status:e.state[t.status],interval:e.state[t.interval],intervalName:t.interval})})))},t}(l.Component),b=function(e){return{options:e.Options}},_=function(e){return{enableOption:function(t,n){return e(p.enableOption(t,n,!1))},disableOption:function(t,n){return e(p.disableOption(t,n,!1))},changeOption:function(t,n){return e(p.changeOption(t,n))},addNotification:function(t){return e(p.addNotification(t))}}};t.default=c.connect(b,_)(y),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),a.register(y,"Heartbeat_Control","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),a.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),a.register(_,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1146);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);n(1147);var a,s,l=n(9),c=function(e){var t=e.children,n=e.label;o(e,["children","label"]);return i.createElement("div",{className:"form-field-wrapper","data-e2e":"form-field-wrapper"},i.createElement(l.Text,{color:"dark",size:"large",align:"left",weight:"bold",tag:"span",className:"sg-form-label"},n),i.createElement("div",{className:"form-field-wrapper__content"},t))};t.default=c,a=n(0).default,s=n(0).leaveModule,a&&(a.register(o,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),a.register(c,"FormFieldWrapper","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1148);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n.form-field-wrapper__content {\n height: 40px;\n display: flex;\n align-items: center; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=n(65),u=n(146),d=n(221),p=function(e){return a.createElement(a.Fragment,null,a.createElement(c.Row,{title:s.translate("DNS Pre-fetch for External Domains"),checked:e.dns_prefetch,name:"dns_prefetch",onChange:e.changeOption},s.translate("With this functionality you can enable the DNS pre-fetching for external domains. Doing this will save DNS lookup for resources loaded from these domains.")),1===e.dns_prefetch&&a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{gutter:"none",background:"light",margin:"none",direction:"column",style:{paddingBottom:"20px"}},a.createElement(d.default,{margin:"medium"},s.translate("Add only your domain names without http:// or https:// - DNS prefetching will work for both")),a.createElement(u.SimpleExclude,{updateExcludeList:function(t,n,r){return e.updateExcludes("dns_prefetch_urls",t)},excludedItems:e.dns_prefetch_urls,addNotification:e.addNotification,buttonText:s.translate("Add"),regex:"(?:(?:https?:)?(?:\\/\\/)(?:www\\.|(?!www)))?((?:.*?)\\.(?:[a-zA-Z\\d-]+){2,})"})))),a.createElement(l.Flex,{className:"divider"}))};t.default=p,o=n(0).default,i=n(0).leaveModule,o&&(o.register(p,"DNSPrefetch","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=n(65),u=function(e){return a.createElement(a.Fragment,null,a.createElement(c.Row,{title:s.translate("Scheduled Database Maintenance"),checked:e.checked,name:"database_optimization",onChange:e.toogleOptimization},s.translate("Enable this option to regularly cleanup your database and keep it small and optimized.")),a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},a.createElement(l.Notice,{type:"instruction",background:"light",contentSize:"expanded",shadow:!1,title:s.translate("Enabling this optimization will perform these tasks once a week:")},a.createElement(l.List,{color:"dark","data-e2e":"list",density:"medium",justify:"center",orientation:"vertical",size:"small"},a.createElement(l.ListItem,{icon:"dot"},s.translate("Perform Database Optimization for MyISAM tables")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all automatically created post and page drafts")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all page and post revisions")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all posts and pages in your Trash")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all comments marked as Spam")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all expired Transients"))))))),a.createElement(l.Flex,{className:"divider"}))};t.default=u,o=n(0).default,i=n(0).leaveModule,o&&(o.register(u,"DatabaseOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/database-optimization/index.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(44),p=n(9),f=n(16),g=n(100),m=n(61),h=n(146),y=n(220),b=n(221),_=function(e){function t(t){var n=e.call(this,t)||this;return n.toogleAsyncDialog=function(){n.setState({showAsyncDialog:!n.state.showAsyncDialog})},n.toogleAsync=function(){n.props.options.optimize_javascript_async?n.props.disableOption("optimize_javascript_async",!0):(n.props.enableOption("optimize_javascript_async",!0),n.setState({showAsyncDialog:!1}))},n.toogleJsCombineDialog=function(){n.setState({showJsCombineDialog:!n.state.showJsCombineDialog})},n.toogleJsCombination=function(){n.props.options.combine_javascript?n.props.disableOption("combine_javascript",!0):(n.props.enableOption("combine_javascript",!0),n.props.disableOption("combine_javascript_error",!1),n.setState({showJsCombineDialog:!1}))},n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.openExclude=function(e){var t;n.setState(((t={})[e]=!n.state[e],t))},n.updateExclude=function(e,t,r){var o;n.props.updateExcludes(e,t),n.setState(((o={})[r]=!0,o))},n.state={showMinifyCssExclude:!1,showCombineCssExclude:!1,showMinifyJavascriptExclude:!1,showCombineJavascriptExclude:!1,showAsyncJavascriptExclude:!1,showHtmlMinifyExclude:!1,showAsyncDialog:!1,showJsCombineDialog:!1},n}return i(t,e),t.prototype.filterSelectedValues=function(e,t){return e.length?e.filter((function(e){return t.some((function(t){return e===t.value}))})):e},t.prototype.render=function(){var e=this,t=d.filter(this.props.jsAssets,{is_minified:0}),n=(d.filter(this.props.jsAssets,{in_footer:0}),d.filter(this.props.cssAssets,{is_minified:0})),r=this.filterSelectedValues(this.props.options.minify_javascript_exclude,t),o=this.filterSelectedValues(this.props.options.async_javascript_exclude,this.props.jsAssets),i=this.filterSelectedValues(this.props.options.minify_css_exclude,n),a=this.filterSelectedValues(this.props.options.combine_css_exclude,this.props.cssAssets),s=this.filterSelectedValues(this.props.options.combine_javascript_exclude,this.props.jsAssets);return l.createElement(m.default,null,l.createElement(y.default,{title:u.translate("Minify the HTML Output"),checked:this.props.options.optimize_html,name:"optimize_html",onChange:this.changeOption},u.translate("Removes unnecessary characters from your HTML output saving data and improving your site speed. "),!!this.props.options.optimize_html&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showHtmlMinifyExclude")},"aria-expanded":!!this.state.showHtmlMinifyExclude}," ",u.translate("Exclude URLs from HTML Minification"))),1===this.props.options.optimize_html&&(this.props.options.minify_html_exclude.length||this.state.showHtmlMinifyExclude)&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column",style:{paddingBottom:"20px"}},l.createElement(b.default,{margin:"medium",title:u.translate("Exclude URLs from HTML Minification")},u.translate("With this functionality, you can exclude different pages from HTML minification.")),l.createElement(h.UrlsExclude,{updateExcludeList:function(t,n,r){return e.updateExclude("minify_html_exclude",t,"showHtmlMinifyExclude")},excludedUrls:this.props.options.minify_html_exclude,addNotification:this.props.addNotification,prefix:window.optimizerData.home_url})))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Minify JavaScript Files"),checked:this.props.options.optimize_javascript,name:"optimize_javascript",onChange:this.changeOption},u.translate("Minify your JavaScript files in order to reduce their size and reduce the number of requests to the server. "),!!this.props.options.optimize_javascript&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showMinifyJavascriptExclude")},"aria-expanded":!!this.state.showMinifyJavascriptExclude}," ",u.translate("Exclude from JavaScript Minification"))),1===this.props.options.optimize_javascript&&(r.length||this.state.showMinifyJavascriptExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"minify_javascript_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:t,optionValue:"value",optionLabel:"title",selectedValue:r,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("minify_javascript_exclude",t,"showMinifyJavascriptExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Combine JavaScript Files"),checked:this.props.options.combine_javascript,name:"combine_javascript",hasPopup:1,onChange:function(t){return 0===e.props.options.combine_javascript?e.toogleJsCombineDialog():e.toogleJsCombination()}},u.translate("Combine your JavaScript files in order to reduce the number of requests to the server."),!!this.props.options.combine_javascript&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showCombineJavascriptExclude")},"aria-expanded":!!this.state.showCombineJavascriptExclude}," ",u.translate("Exclude from JavaScript Combination"))),1===this.props.options.combine_javascript_error&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"error",background:"light",contentSize:"expanded",shadow:!1,title:u.translate("JAVASCRIPT COMBINATION DISABLED")},u.translate("We have detected that a script is generating uniquely named files which results in our combined assets taking up huge amount of disk space. Please, exclude any scripts that generate unique JS code per page or per visit in order to avoid this from happening again.")))),1===this.props.options.combine_javascript&&(s.length||this.state.showCombineJavascriptExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"combine_javascript_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:this.props.jsAssets,optionValue:"value",optionLabel:"title",selectedValue:s,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("combine_javascript_exclude",t,"showCombineJavascriptExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Defer Render-blocking JS"),checked:this.props.options.optimize_javascript_async,name:"optimize_javascript_async",hasPopup:1,onChange:function(t){return 0===e.props.options.optimize_javascript_async?e.toogleAsyncDialog():e.toogleAsync()}},u.translate("Defer loading of render-blocking JavaScript files for faster initial site load. "),!!this.props.options.optimize_javascript_async&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showAsyncJavascriptExclude")},"aria-expanded":!!this.state.showAsyncJavascriptExclude}," ",u.translate("Exclude from Loading JS Files Asynchronously"))),1===this.props.options.optimize_javascript_async&&(o.length||this.state.showAsyncJavascriptExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"async_javascript_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:this.props.jsAssets,optionValue:"value",optionLabel:"title",selectedValue:o,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("async_javascript_exclude",t,"showAsyncJavascriptExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Minify CSS Files"),checked:this.props.options.optimize_css,name:"optimize_css",onChange:this.changeOption},u.translate("Minify your CSS files in order to reduce their size and reduce the number of requests to the server. "),!!this.props.options.optimize_css&&!!n.length&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showMinifyCssExclude")},"aria-expanded":!!this.state.showMinifyCssExclude}," ",u.translate("Exclude From CSS Minification"))),1===this.props.options.optimize_css&&(i.length||this.state.showMinifyCssExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"minify_css_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:n,optionValue:"value",optionLabel:"title",selectedValue:i,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("minify_css_exclude",t,"showMinifyCssExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Combine CSS Files"),checked:this.props.options.combine_css,name:"combine_css",onChange:this.changeOption},u.translate("Combine multiple CSS files into one to lower the number of requests your site generates. "),!!this.props.options.combine_css&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showCombineCssExclude")},"aria-expanded":!!this.state.showCombineCssExclude}," ",u.translate("Exclude from CSS Combination"))),1===this.props.options.combine_css&&(a.length||this.state.showCombineCssExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"combine_css_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:this.props.cssAssets,optionValue:"value",optionLabel:"title",selectedValue:a,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("combine_css_exclude",t,"showCombineCssExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Web Fonts Optimization"),checked:this.props.options.optimize_web_fonts,name:"optimize_web_fonts",onChange:this.changeOption},u.translate("With this optimization we're changing the default way to load Google fonts in order to save HTTP requests. In addition to that, all other fonts that your website uses will be properly preloaded so browsers take the least possible amount of time to cache and render them.")),1===this.props.options.optimize_web_fonts&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column",style:{paddingBottom:"20px"}},l.createElement(b.default,{margin:"medium",title:u.translate("Fonts Preloading")},u.translate("With this optiomization you can preload the fonts you’re using for faster rendering and better site performance. Make sure you preload only the fonts you are actually using.")),l.createElement(h.SimpleExclude,{updateExcludeList:function(t,n,r){return e.updateExclude("fonts_preload_urls",t,"showHtmlMinifyExclude")},excludedItems:this.props.options.fonts_preload_urls,addNotification:this.props.addNotification,buttonText:u.translate("Preload")})))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Remove Query Strings From Static Resources"),checked:this.props.options.remove_query_strings,name:"remove_query_strings",onChange:this.changeOption},u.translate("Removes version query strings from your static resources improving the caching of those resources.")),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Disable Emojis"),checked:this.props.options.disable_emojis,name:"disable_emojis",onChange:this.changeOption},u.translate("Enable to prevent WordPress from automatically detecting and generating emojis in your pages.")),this.state.showAsyncDialog&&l.createElement(g.AsyncDialog,{toogleConfirm:this.toogleAsync}),this.state.showJsCombineDialog&&l.createElement(g.JsCombineDialog,{toogleConfirm:this.toogleJsCombination}))},t}(l.Component),x=function(e){return{options:e.Options,jsAssets:e.Options.assets.scripts,cssAssets:e.Options.assets.styles}},v=function(e){return{enableOption:function(t,n,r){return e(f.enableOption(t,n,r))},disableOption:function(t,n,r){return e(f.disableOption(t,n,r))},addNotification:function(t){return e(f.addNotification(t))},updateExcludes:function(t,n){return e(f.updateExcludes(t,n))}}};t.default=c.connect(x,v)(_),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),a.register(_,"FrontendOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),a.register(x,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),a.register(v,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(44),p=n(9),f=n(16),g=n(61),m=n(146),h=n(1153),y=n(492),b=n(65),_=function(e){function t(t){var n=e.call(this,t)||this;return n.stopImagesOptimization=function(){clearInterval(n.interval),n.interval="",n.props.stopImagesOptimization()},n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.updateLazyLoadExcludeList=function(e,t,r){n.props.updateExcludes(e,t)},n.interval="",n}return i(t,e),t.prototype.componentDidUpdate=function(){1==this.props.options.image_optimization_status?(clearInterval(this.interval),this.interval=""):this.interval||0!=this.props.options.image_optimization_status||(this.interval=setInterval(this.props.checkImageOptimizationStatus,1e4))},t.prototype.componentDidMount=function(){0==this.props.options.image_optimization_status&&(this.interval=setInterval(this.props.checkImageOptimizationStatus,1e4))},t.prototype.render=function(){var e=this;return l.createElement(g.default,null,d.includes(window.optimizerData.modules,"optimize_images")&&l.createElement(l.Fragment,null,l.createElement(b.Row,{title:u.translate("New Images Optimization"),checked:this.props.options.optimize_images,name:"optimize_images",onChange:this.changeOption},u.translate("We will automatically optimize all new images that you upload to your Media Library.")),l.createElement(p.Flex,{className:"divider"}),l.createElement(p.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(p.Box,{sm:"9"},l.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Existing Images Optimization")),l.createElement(p.Text,null,u.translate("We will optimize all your existing images with minimal or no loss in quality. Note, that this will overwrite your original images."))),0!==this.props.options.image_optimization_status&&0<this.props.options.has_images_for_optimization&&(0===parseInt(window.optimizerData.is_cron_disabled)||1===this.props.options.dismiss_cron_notice)&&l.createElement(p.Box,{sm:"3"},l.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid","aria-expanded":0===this.props.options.image_optimization_status,onClick:function(t){return e.props.initImagesOptimization()}},1===this.props.options.image_optimization_stopped?u.translate("Resume Optimization"):u.translate("Start Optimization")))),1===parseInt(window.optimizerData.is_cron_disabled)&&0===this.props.options.dismiss_cron_notice&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"error"},u.translate("We've detected that the WordPress cronjob functionality is not working. Please, enable it following the instructions in {{link}}this article{{/link}} and refresh this page. If you’re using a real cron job, you can {{link2}}ignore this message{{/link2}} at your own risk. Note, that in this case, those operations may take longer than usual to complete.",{components:{link:l.createElement(p.Link,{href:u.translate("https://www.siteground.com/kb/disable-enable-wordpress-cron/"),target:"_blank",style:{textDecoration:"underline"}}),link2:l.createElement(p.Link,{style:{textDecoration:"underline"},onClick:function(t){return e.props.enableOption("dismiss_cron_notice")}})}})))),0===this.props.options.image_optimization_status&&l.createElement(y.ImageLoader,{stopOptimization:this.stopImagesOptimization,totalImages:this.props.options.has_images_for_optimization,totalUnoptimizedImages:this.props.options.total_unoptimized_images}),1===this.props.options.image_optimization_status&&(0===parseInt(window.optimizerData.is_cron_disabled)||1===this.props.options.dismiss_cron_notice)&&0===this.props.options.has_images_for_optimization&&1===this.props.options.has_images&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"success"},u.translate("All images in your Media Library have been optimized successfully! Force {{link}}re-optimization{{/link}} of your images.",{components:{link:l.createElement(p.Link,{onClick:this.props.resetImagesOptimization,style:{textDecoration:"underline"}})}}))))),l.createElement(h.WebP,null),d.includes(window.optimizerData.modules,"lazyload_images")&&l.createElement(l.Fragment,null,l.createElement(p.Flex,{className:"divider"}),l.createElement(b.Row,{title:u.translate("Lazy Load Media"),checked:this.props.options.lazyload_images,name:"lazyload_images",onChange:this.changeOption,hasExpand:1},u.translate("Load images only when they are visible in the browser")),1==this.props.options.lazyload_images&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Iframes"),checked:this.props.options.lazyload_iframes,name:"lazyload_iframes",onChange:this.changeOption,tooltip:u.translate("We will lazy load iframes often used for things like video embeds from another sources. "),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Videos"),checked:this.props.options.lazyload_videos,name:"lazyload_videos",onChange:this.changeOption,tooltip:u.translate("We will lazy load all videos you have added directly to your pages."),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Gravatars"),checked:this.props.options.lazyload_gravatars,name:"lazyload_gravatars",onChange:this.changeOption,tooltip:u.translate("When users comment under your posts, WordPress tries to load their avatars from gravatar.com. We recommend lazy-loading them as your users scroll down through your page if you have a high number of comments. "),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Thumbnails"),checked:this.props.options.lazyload_thumbnails,name:"lazyload_thumbnails",onChange:this.changeOption,tooltip:u.translate("Enable if you want to lazy-load the thumbnail sizes of your original images."),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Responsive Images"),checked:this.props.options.lazyload_responsive,name:"lazyload_responsive",onChange:this.changeOption,tooltip:u.translate("Certain plugins and themes generate multiple images from a single upload to work better on different devices. Enable if you want to lazy-load these too."),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Widgets"),checked:this.props.options.lazyload_textwidgets,name:"lazyload_textwidgets",onChange:this.changeOption,tooltip:u.translate("Enable this option if you want the images in your widget areas to load only when users reach them. "),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load for Mobile"),checked:this.props.options.lazyload_mobile,name:"lazyload_mobile",onChange:this.changeOption,tooltip:u.translate("Enable if you want to use lazy-loading features for mobile requests to your site."),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Fix for Lazy Loading Short Codes"),checked:this.props.options.lazyload_shortcodes,name:"lazyload_shortcodes",onChange:this.changeOption,tooltip:u.translate("If your images generated by shortcodes are not lazy loaded, please enable this feature."),titleDensity:"none"}),1===parseInt(window.optimizerData.is_shop)&&l.createElement(l.Fragment,null,l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Product Images"),checked:this.props.options.lazyload_woocommerce,name:"lazyload_woocommerce",onChange:this.changeOption,tooltip:u.translate("Enable if you want to enable lazy-load images in your store, product and other WooCommerce pages."),titleDensity:"none"})),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Exclude from Lazy Load")},u.translate("In order to exclude images from lazy loading, please add their CSS classes to the exclusion list. Add each CSS class on a separate line.")),l.createElement(m.SimpleExclude,{updateExcludeList:function(t,n,r){return e.props.updateExcludes("excluded_lazy_load_classes",t)},excludedItems:this.props.options.excluded_lazy_load_classes,addNotification:this.props.addNotification}),l.createElement(p.Flex,null))))))},t}(l.Component),x=function(e){return{options:e.Options}},v=function(e){return{enableOption:function(t,n){return e(f.enableOption(t,n,!1))},disableOption:function(t,n){return e(f.disableOption(t,n,!1))},addNotification:function(t){return e(f.addNotification(t))},checkImageOptimizationStatus:function(){return e(f.checkImageOptimizationStatus())},initImagesOptimization:function(){return e(f.initImagesOptimization())},stopImagesOptimization:function(){return e(f.stopImagesOptimization())},resetImagesOptimization:function(){return e(f.resetImagesOptimization())},updateExcludes:function(t,n){return e(f.updateExcludes(t,n))}}};t.default=c.connect(x,v)(_),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),a.register(_,"ImageOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),a.register(x,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),a.register(v,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1154);t.WebP=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(9),p=n(65),f=n(100),g=n(492),m=n(1157),h=n(16),y=n(1159),b=function(e){function t(t){var n=e.call(this,t)||this;return n.toogleDeleteWebpDialog=function(){n.setState({showDeleteWebpDialog:!n.state.showDeleteWebpDialog})},n.toogleRegenerateWebpDialog=function(){n.setState({showRegenerateWebpDialog:!n.state.showRegenerateWebpDialog})},n.deleteWebpFiles=function(){n.props.deleteWebpFiles(),n.setState({showDeleteWebpDialog:!1})},n.regenerateWebpFiles=function(){n.props.deleteWebpFiles(),n.props.generateWebpFiles(),n.setState({showRegenerateWebpDialog:!1})},n.stopWebpOptimization=function(){clearInterval(n.webpInterval),n.webpInterval="",n.props.stopWebpConvertion()},n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.getHeight=function(){return 0===n.props.options.webp_conversion_status?250:"auto"},n.changeWebpQuality=function(e,t){n.setState({webpQuality:t,showWebpNotice:!0}),clearTimeout(n.webpQualityInterval),n.webpQualityInterval=setTimeout((function(){n.props.changeOption(e,t)}),100)},n.changeWebpType=function(e,t){n.setState({showWebpNotice:!0}),n.props.changeOption(e,t)},n.toogleEnableWebp=function(){n.props.options.webp_support?n.props.disableOption("webp_support",!0):(n.props.enableOption("webp_support",!0),n.setState({showEnableWebpDialog:!1}))},n.toogleEnableWebpDialog=function(){n.setState({showEnableWebpDialog:!n.state.showEnableWebpDialog})},n.render=function(){return 1===parseInt(window.optimizerData.is_avalon)&&l.createElement(l.Fragment,null,l.createElement(d.Flex,{className:"divider"}),l.createElement("div",{className:"position--relative "},0===n.props.options.webp_conversion_status&&l.createElement(g.WebpLoader,{stopOptimization:n.stopWebpOptimization,totalImages:n.props.options.has_images_for_conversion,totalUnoptimizedImages:n.props.options.total_non_converted_images}),l.createElement(p.Row,{title:u.translate("Generate WebP Copies of New Images"),checked:n.props.options.webp_support,name:"webp_support",onChange:function(e){return 0===n.props.options.webp_support?n.toogleEnableWebpDialog():n.toogleEnableWebp()}},u.translate("WebP is a next generation image format supported by modern browers which greatly reduces the size of your images.")),1==n.props.options.webp_support&&l.createElement(m.QualitySlider,{title:u.translate("Optimization Level"),description:u.translate("Chose the quality of WebP copies created by us. Higher quality means higher image size."),options:[{type:"lossy",title:"Lossy"},{type:"lossless",title:"Lossless"}],sliderName:"quality_webp",dropdownName:"quality_type",dropdownLabel:u.translate("Optimization Type"),selectedValue:n.props.options.quality_type,changeQuality:n.changeWebpQuality,showNotice:n.state.showWebpNotice,changeType:n.changeWebpType,value:n.state.webpQuality,regenerate:n.toogleRegenerateWebpDialog}),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center",style:{minHeight:n.getHeight(),position:"relative"}},l.createElement(d.Box,{sm:"6"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Manage WebP Copies for Existing Images")),l.createElement(d.Text,null,u.translate("Generate or delete a WebP copy of your existing media library."))),0==n.props.options.has_images_for_conversion&&l.createElement(d.Box,{sm:"3"}),l.createElement(d.Box,{sm:"3"},l.createElement(d.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid","aria-haspopup":!0,onClick:function(e){return n.toogleDeleteWebpDialog()}},u.translate("Delete all WebP Files"))),0!==n.props.options.has_images_for_conversion&&l.createElement(d.Box,{sm:"3"},l.createElement(d.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid","aria-expanded":0===n.props.options.webp_conversion_status,onClick:function(e){return n.props.generateWebpFiles()}},u.translate("Bulk Generate WebP Files")))),0==n.props.options.has_images_for_conversion&&l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Notice,{type:"success"},u.translate("All WebP copies of your files have been generated successfully! Force {{link}}re-generation{{/link}} of your images.",{components:{link:l.createElement(d.Link,{onClick:n.toogleRegenerateWebpDialog,style:{textDecoration:"underline"},"aria-haspopup":!0})}})))),n.state.showEnableWebpDialog&&l.createElement(f.EnableWebpDialog,{toogleClose:n.toogleEnableWebpDialog,toogleConfirm:n.toogleEnableWebp}),n.state.showDeleteWebpDialog&&l.createElement(f.DeleteWebpDialog,{toogleClose:n.toogleDeleteWebpDialog,toogleConfirm:n.deleteWebpFiles}),n.state.showRegenerateWebpDialog&&l.createElement(f.RegenerateWebpDialog,{toogleClose:n.toogleRegenerateWebpDialog,toogleConfirm:n.regenerateWebpFiles})))},n.state={showDeleteWebpDialog:!1,showRegenerateWebpDialog:!1,webpQuality:t.options.quality_webp,showWebpNotice:!1,showEnableWebpDialog:!1},n.webpInterval="",n.webpQualityInterval="",n}return i(t,e),t.prototype.componentDidUpdate=function(e){this.props.options.webp_conversion_status!==e.options.webp_conversion_status&&1==this.props.options.webp_conversion_status&&this.setState({showWebpNotice:!1}),this.props.options.quality_webp!==e.options.quality_webp&&this.setState({webpQuality:this.props.options.quality_webp}),1==this.props.options.webp_conversion_status?(clearInterval(this.webpInterval),this.webpInterval=""):this.webpInterval||0!=this.props.options.webp_conversion_status||(this.webpInterval=setInterval(this.props.checkWebpConversionStatus,1e4))},t.prototype.componentDidMount=function(){0==this.props.options.webp_conversion_status&&(this.webpInterval=setInterval(this.props.checkWebpConversionStatus,1e4))},t}(l.Component),_=function(e){return{options:e.Options}},x=function(e){return{enableOption:function(t,n){return e(h.enableOption(t,n,!1))},disableOption:function(t,n){return e(h.disableOption(t,n,!1))},addNotification:function(t){return e(h.addNotification(t))},deleteWebpFiles:function(t){return e(y.deleteWebpFiles(t))},changeOption:function(t,n){return e(h.changeOption(t,n))},stopWebpConvertion:function(){return e(y.stopWebpConvertion())},generateWebpFiles:function(){return e(y.generateWebpFiles())},checkWebpConversionStatus:function(){return e(y.checkWebpConversionStatus())}}};t.default=c.connect(_,x)(b),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(b,"WebP","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(_,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(x,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(10),u=n(9),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getProgessPercent=function(){var e=(t.props.totalUnoptimizedImages-t.props.totalImages)/t.props.totalUnoptimizedImages*100;return e<1?1:e},t}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(u.Flex,{gutter:"xx-large",style:{minHeight:250,position:"relative"}},l.createElement(u.Loader,{style:{position:"absolute"},className:"loader-image-optimization"},l.createElement(u.Title,{level:"4",density:"compact",weight:"bold",color:"darkest"},c.translate("Please be patient, this process may take some time")),l.createElement("span",{style:{width:"100%",textAlign:"center",display:"inline-block",color:"#a4a4a4",padding:"10px 0"}},c.translate("Optimized %(optimized)s of %(total)s images",{args:{optimized:this.props.totalUnoptimizedImages-this.props.totalImages,total:this.props.totalUnoptimizedImages}})),l.createElement(u.Progress,{color:"blue","data-component":"progress","data-e2e":"progress",percent:this.getProgessPercent()}),l.createElement("span",{style:{width:"100%",textAlign:"center",display:"inline-block",color:"#a4a4a4",paddingBottom:"10px"}}),l.createElement(u.Button,{color:"secondary",size:"small",type:"outlined",onClick:function(t){return e.props.stopOptimization()}},c.translate("Pause"))))},t}(l.Component);t.default=d,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),a.register(d,"ImageLoader","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(10),u=n(9),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getProgessPercent=function(){var e=(t.props.totalUnoptimizedImages-t.props.totalImages)/t.props.totalUnoptimizedImages*100;return e<1?1:e},t}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(u.Loader,{style:{position:"absolute"},className:"loader-image-optimization"},l.createElement(u.Title,{level:"4",density:"compact",weight:"bold",color:"darkest"},c.translate("Please be patient, this process may take some time")),l.createElement("span",{style:{width:"100%",textAlign:"center",display:"inline-block",color:"#a4a4a4",padding:"10px 0"}},c.translate("Generated %(optimized)s of %(total)s webp copies",{args:{optimized:this.props.totalUnoptimizedImages-this.props.totalImages,total:this.props.totalUnoptimizedImages}})),l.createElement(u.Progress,{color:"blue","data-component":"progress","data-e2e":"progress",percent:this.getProgessPercent()}),l.createElement("span",{style:{width:"100%",textAlign:"center",display:"inline-block",color:"#a4a4a4",paddingBottom:"10px"}}),l.createElement(u.Button,{color:"secondary",size:"small",type:"outlined",onClick:function(t){return e.props.stopOptimization()}},c.translate("Pause")))},t}(l.Component);t.default=d,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),a.register(d,"WebpLoader","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1158);t.QualitySlider=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},a.createElement(l.Flex,{gutter:"large",direction:"row",align:"center"},a.createElement(l.Box,{sm:"10"},a.createElement(l.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},e.title),a.createElement(l.Text,null,e.description)),a.createElement(l.Box,{sm:"2"},a.createElement(l.Dropdown,{options:e.options,optionValue:"type",optionLabel:"title",selectedValue:e.selectedValue,onChange:function(t){return e.changeType(e.dropdownName,t)},label:e.dropdownLabel}))),a.createElement(l.Flex,{gutter:"xx-large",direction:"column",className:"margin-top--x-small"},a.createElement(l.Grid,{gap:"small"},"lossy"==e.selectedValue&&a.createElement(l.Slider,{max:100,min:1,step:1,value:e.value,label:"%",onChange:function(t){return e.changeQuality(e.sliderName,t)}}),e.showNotice&&a.createElement(l.Notice,{type:"warning"},s.translate("WebP settings have been changed, please, {{link}}re-generate{{/link}} your images!.",{components:{link:a.createElement(l.Link,{onClick:e.regenerate,style:{textDecoration:"underline"},"aria-haspopup":!0})}})))))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"QualitySlider","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/slider/quality-slider.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51),o=n(35);t.stopWebpConvertion=r.createAction(o.STOP_WEBP_CONVERSION),t.deleteWebpFiles=r.createAction(o.DELETE_WEBP_FILES),t.generateWebpFiles=r.createAction(o.GENERATE_WEBP_FILES),t.checkWebpConversionStatus=r.createAction(o.CHECK_WEBP_CONVERSION_STATUS)},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(9),p=n(16),f=n(61),g=n(489),m=n(488),h=n(491),y=n(490),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changeSiteOption=function(e,n){void 0===n&&(n=!1),e.checked?t.props.enableOption(e.name,n,!0):t.props.disableOption(e.name,n,!0)},t.changeOption=function(e,n){void 0===n&&(n=!1),e.checked?t.props.enableOption(e.name,n):t.props.disableOption(e.name,n)},t}return i(t,e),t.prototype.toogleMemcache=function(e){e.checked?this.props.enableMemcache(e.name):this.props.disableMemcache(e.name)},t.prototype.render=function(){var e=this;return l.createElement(f.default,null,l.createElement(g.default,null),l.createElement(h.default,{checked:this.props.options.enable_gzip_compression,changeOption:this.changeOption}),l.createElement(y.default,{checked:this.props.options.enable_browser_caching,changeOption:this.changeOption}),l.createElement(m.default,{enable_memcached:this.props.options.enable_memcached,enableMemcache:this.props.enableMemcache,disableMemcache:this.props.disableMemcache}),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Site Admin Permissions")),l.createElement(d.Text,null,u.translate("In this section, set the access permission for admins of separate sites.")))),l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(d.Flex,{direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("SuperCacher Settings")),l.createElement(d.Text,null,u.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's SuperCacher tab."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.supercacher_permissions,name:"supercacher_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Frontend Optimizations")),l.createElement(d.Text,null,u.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Frontend Optmization tab."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.frontend_permissions,name:"frontend_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Image Optimizations")),l.createElement(d.Text,null,u.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Image Optimization tab."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.images_permissions,name:"images_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Environment Optimizations")),l.createElement(d.Text,null,u.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Environment Optimization tab."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.environment_permissions,name:"environment_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))))},t}(l.Component),_=function(e){return{options:e.Options}},x=function(e){return{enableMemcache:function(t){return e(p.enableMemcache(t))},disableMemcache:function(t){return e(p.disableMemcache(t))},enableOption:function(t,n,r){return e(p.enableOption(t,n,r))},disableOption:function(t,n,r){return e(p.disableOption(t,n,r))},addNotification:function(t){return e(p.addNotification(t))}}};t.default=c.connect(_,x)(b),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),a.register(b,"MultisiteControl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),a.register(_,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),a.register(x,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(9),p=n(16),f=n(61),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changeSiteOption=function(e,n){void 0===n&&(n=!1),e.checked?t.props.enableOption(e.name,n,!0):t.props.disableOption(e.name,n,!0)},t}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(f.default,null,l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},u.translate("SUPERCACHER SETTINGS")))),l.createElement(d.Flex,{direction:"row",align:"center",gutter:"large"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Dynamic Caching")),l.createElement(d.Text,null,u.translate("Select whether new sites should have the Dynamic Caching enabled for them or not."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_enable_cache,name:"default_enable_cache",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),1===this.props.options.default_enable_cache&&l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Automatic Cache Purge")),l.createElement(d.Text,null,u.translate("Automatically perform a smart cache purge after every content modification."),"  ")),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_autoflush_cache,name:"default_autoflush_cache",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},u.translate("ENVIRONMENT OPTIMIZATION")))),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},1===this.props.isLoading&&l.createElement(d.Loader,{style:{position:"absolute"}}),l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Enable HTTPS")),l.createElement(d.Text,null,u.translate("Configures your site to work correctly via HTTPS and forces a secure connection to your site."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_ssl_enabled,name:"default_ssl_enabled",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),1===this.props.options.default_ssl_enabled&&l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Fix Insecure Content")),l.createElement(d.Text,null,u.translate("Enable this option in case you’re getting insecure content errors on your website. We will dynamically rewrite insecure requests for resources coming from your site"))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_fix_insecure_content,name:"default_fix_insecure_content",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},u.translate("FRONTEND OPTIMIZATION")))),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Minify the HTML Output")),l.createElement(d.Text,null,u.translate("Removes unnecessary characters from your HTML output saving data and improving your site speed."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_html,name:"default_optimize_html",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Minify JavaScript Files")),l.createElement(d.Text,null,u.translate("Combine and minify your JavaScript files in order to reduce their size, improve cachability, and reduce the number of requests to the server."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_javascript,name:"default_optimize_javascript",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Load Render-blocking JavaScript Files Asynchronously")),l.createElement(d.Text,null,u.translate("Add async parameter to the JavaScript files loaded in the header section of your site so they don’t block your page rendering."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_javascript_async,name:"default_optimize_javascript_async",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Minify CSS Files")),l.createElement(d.Text,null,u.translate("Combine and minify your CSS files in order to reduce their size, improve cachability, and reduce the number of requests to the server."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_css,name:"default_optimize_css",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Combine CSS Files")),l.createElement(d.Text,null,u.translate("Combine multiple CSS files into one to lower the number of requests your site generates."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_combine_css,name:"default_combine_css",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Remove Query Strings From Static Resources")),l.createElement(d.Text,null,u.translate("Removes version query strings from your static resources improving the caching of those resources."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_remove_query_strings,name:"default_remove_query_strings",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Disable Emojis")),l.createElement(d.Text,null,u.translate("Enable to prevent WordPress from automatically detecting and generating emojis in your pages."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_disable_emojis,name:"default_disable_emojis",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},u.translate("IMAGE OPTIMIZATION")))),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Image Optimization")),l.createElement(d.Text,null,u.translate("We will optimize all your existing images with minimal or no loss in quality. Note, that this will overwrite your original images."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_images,name:"default_optimize_images",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Lazy Load Images")),l.createElement(d.Text,null,u.translate("Load images only when they are visible in the browser"))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_images,name:"default_lazyload_images",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),1==this.props.options.default_lazyload_images&&l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Iframes")),l.createElement(d.Text,null,u.translate("We will lazy load iframes often used for things like video embeds from another sources. "))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_iframes,name:"default_lazyload_iframes",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Videos")),l.createElement(d.Text,null,u.translate("We will lazy load all videos you have added directly to your pages."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_videos,name:"default_lazyload_videos",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Thumbnails")),l.createElement(d.Text,null,u.translate("Enable if you want to enable lazy-load images in your store, product and other WooCommerce pages."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_woocommerce,name:"default_lazyload_woocommerce",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Gravatars")),l.createElement(d.Text,null,u.translate("When users comment under your posts, WordPress tries to load their avatars from gravatar.com. We recommend lazy-loading them as your users scroll down through your page if you have a high number of comments. "))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_gravatars,name:"default_lazyload_gravatars",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Thumbnails")),l.createElement(d.Text,null,u.translate("Enable if you want to lazy-load the thumbnail sizes of your original images."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_thumbnails,name:"default_lazyload_thumbnails",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Responsive Images")),l.createElement(d.Text,null,u.translate("Certain plugins and themes generate multiple images from a single upload to work better on different devices. Enable if you want to lazy-load these too."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_responsive,name:"default_lazyload_responsive",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Widgets")),l.createElement(d.Text,null,u.translate("Enable this option if you want the images in your widget areas to load only when users reach them. "))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_textwidgets,name:"default_lazyload_textwidgets",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))))},t}(l.Component),m=function(e){return{options:e.Options}},h=function(e){return{enableOption:function(t,n,r){return e(p.enableOption(t,n,r))},disableOption:function(t,n,r){return e(p.disableOption(t,n,r))},addNotification:function(t){return e(p.addNotification(t))}}};t.default=c.connect(m,h)(g),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),a.register(g,"SitesControl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),a.register(m,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),a.register(h,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(24),l=n(44),c=n(10),u=n(9),d=n(61),p=n(1163);n(1164);var f,g,m=n(16),h=function(e){function t(t){var n=e.call(this,t)||this;return n.getDevices=function(){return[{type:"desktop",title:"Desktop"},{type:"mobile",title:"Mobile"}]},n.handleKeyPressExcludeList=function(e){"Enter"==e.key&&n.runAnalysis()},n.updateCurrentUrl=function(e){var t=new RegExp("^/+|"+window.optimizerData.home_url,"g"),r=e.target.value.replace(t,"");n.setState({currentUrl:r})},n.getInputValue=function(){var e=new RegExp("^/+|"+window.optimizerData.home_url,"g");return n.state.currentUrl.replace(e,"")},n.runAnalysis=function(){n.props.runAnalysis(n.props.device,n.state.currentUrl)},n.prepareData=function(e){return l.map(e,(function(e){var t=new RegExp(/\s?\[.*?\]\(.*?\)\.?/g);e.description=e.description.replace(t,"")})),e},n.html=function(e){var t=e/100*352;return{__html:'<div class="lh-gauge__wrapper lh-gauge__wrapper--pass lh-gauge__wrapper--huge"><div class="lh-gauge__svg-wrapper"><svg viewBox="0 0 120 120" class="lh-gauge"><circle class="lh-gauge-arc lh-gauge-arc-placeholder" transform="rotate(-90 60 60)" r="56" cx="60" cy="60"></circle><circle class="lh-gauge-arc" transform="rotate(-90 60 60)" r="56" cx="60" cy="60" style="stroke-dasharray: {PERCENTAGE}, 352;"></circle></svg></div><div class="lh-gauge__percentage">{SCORE}</div></div>'.replace("{SCORE}",e).replace("{PERCENTAGE}",t.toString())}},n.renderSuccessfullyCompleted=function(e){return l.map(n.prepareData(e),(function(e){return a.createElement(u.Flex,{gutter:"large",direction:"column"},a.createElement(u.Box,null,a.createElement(u.Notice,{type:"success"},e.title," ",a.createElement(p.default,{tooltip:e.description,tooltipSize:"small"}))))}))},n.state={currentUrl:""},n}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement(d.default,null,a.createElement(u.Flex,{gutter:"large",direction:"row",align:"center"},a.createElement(u.Box,{sm:"10"},a.createElement(u.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},c.translate("Score Check")),a.createElement(u.Text,null,c.translate("Test how optimized your website is. Our performance check is powered by Google PageSpeed.")))),a.createElement(u.Flex,{gutter:"large"},a.createElement(u.Box,{sm:"12"},a.createElement(u.Flex,{gutter:"none",background:"light",margin:"none",direction:"column",border:"small"},a.createElement(u.Flex,{gutter:"large",direction:"row",align:"flex-end"},a.createElement(u.Box,{sm:"2"},a.createElement(u.Dropdown,{options:this.getDevices(),optionValue:"type",optionLabel:"title",selectedValue:this.props.device,onChange:function(t){return e.props.analysisChangeDevice(t)},label:c.translate("Device Type")})),a.createElement(u.Box,{sm:"8"},a.createElement(u.Input,{type:"text",size:"medium",label:c.translate("URL"),value:this.state.currentUrl,onChange:function(t){return e.updateCurrentUrl(t)},prefix:window.optimizerData.home_url,onKeyPress:this.handleKeyPressExcludeList})),a.createElement(u.Box,{sm:"2"},a.createElement(u.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:function(){return e.runAnalysis()}},c.translate("Analyze"))),!!this.props.isAnalysing&&a.createElement(u.Loader,{style:{position:"absolute"},className:"loader-analysis"},c.translate("Please Wait, We Are Performing a Google PageSpeed Test on Your Page"))),a.createElement(u.Flex,{className:"divider"}),a.createElement(u.Container,{elevation:"none",padding:"large",className:"sg-score"},a.createElement(u.Flex,{gutter:"none",margin:"none",align:"center",direction:"column",background:"white"},a.createElement("div",{className:"sg-placeholder__images-container"},a.createElement("div",{className:"sg-placeholder__background-elements"},a.createElement(u.Icon,{multicolor:!0,name:"background-dots",width:"800",height:"240"}))),(l.isEmpty(this.props.report)||!l.isEmpty(this.props.report)&&1==this.props.isAnalysing)&&a.createElement(u.Icon,{name:"presentational-no-data-dotted",color:"ocean",width:this.props.isPhone?"200":"300",height:this.props.isPhone?"120":"240",multicolor:!0}),!l.isEmpty(this.props.report)&&0==this.props.isAnalysing&&a.createElement("div",{dangerouslySetInnerHTML:this.html(this.props.report.score),className:this.props.report.class_name}),a.createElement(u.Title,{level:"3",weight:"light",density:"cozy",align:"center"},l.isEmpty(this.props.report.title)?c.translate("There is nothing here yet"):this.props.report.title),!l.isEmpty(this.props.report)&&a.createElement(u.Text,{align:"center"},this.props.report.message)))))),!l.isEmpty(this.props.report)&&0==this.props.isAnalysing&&Object.keys(this.props.report.data).map((function(t){return a.createElement(a.Fragment,{key:t},a.createElement(u.Flex,{className:"divider"}),a.createElement(u.Flex,{gutter:"large",direction:"row",align:"center"},a.createElement(u.Box,{sm:"12"},a.createElement(u.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},e.props.report.data[t].info.title),"opportunities"==e.props.report.data[t].info.id&&a.createElement(u.Flex,{gutter:"none"},a.createElement(u.Table,{data:e.prepareData(e.props.report.data[t].data),border:"small",className:"border-"+e.props.report.data[t].info.id,columns:[{header:"Optimization",accessor:"title",style:{fontWeight:"bold"},render:function(e,t){return a.createElement(u.Text,null,e," ",a.createElement(p.default,{tooltip:t.description,tooltipSize:"small"}))}},{header:"Action",accessor:"action",style:{fontWeight:"bold"},render:function(e,t){return a.createElement(u.Text,null,u.textToHTML(e,["a","strong"],["href"]))}}]})))),"opportunities"!==e.props.report.data[t].info.id&&e.renderSuccessfullyCompleted(e.props.report.data[t].data))})))},t}(a.Component),y=function(e){return{report:e.Report.report,isAnalysing:e.Report.isAnalysing,device:e.Report.device,isPhone:e.Environment.isPhone}},b=function(e){return{runAnalysis:function(t,n){return e(m.runAnalysis(t,n))},analysisChangeDevice:function(t,n){return e(m.analysisChangeDevice(t))}}};t.default=s.connect(y,b)(h),f=n(0).default,g=n(0).leaveModule,f&&(f.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),f.register(h,"Analytics","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),f.register(y,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),f.register(b,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),g(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(9),l=n(81),c=function(e){var t=e.tooltip,n=e.size,r=void 0===n?"11":n,o=e.tooltipSize,i=void 0===o?"medium":o,c=e.color,u=void 0===c?"light":c;return a.createElement(s.Icon,{color:u,tabIndex:0,name:"information",size:r,tooltip:l.textToHTML(t),tooltipSize:i,className:"ua-margin-horizontal-xx-small ua-v-align-middle"})};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"InfoIcon","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/info-icon/index.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1165);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,"td .sg-typography--truncate {\n white-space: initial !important; }\n\n.border-opportunities {\n border-top: 2px solid #F54545; }\n\n.border-passed {\n border-top: 2px solid #6ACA4C; }\n\n.placeholder-without-svg {\n padding: 0; }\n\n.placeholder-without-svg .sg-icon svg {\n display: none; }\n\n.loader-analysis .sg-loader__message {\n max-width: none; }\n\n.lh-gauge__percentage {\n display: block;\n font-size: 42.1px;\n height: 150px;\n line-height: 0;\n position: absolute;\n text-align: center;\n top: 75px;\n width: 150px;\n -webkit-font-smoothing: antialiased; }\n\n.lh-gauge-arc {\n animation-delay: 0.25s;\n display: inline;\n fill: none;\n font-family: Roboto, Helvetica, Arial, sans-serif;\n font-size: 16px;\n height: auto;\n line-height: 24px;\n stroke-width: 5px;\n text-size-adjust: 100%;\n transform-origin: 0px 0px;\n width: auto;\n word-break: break-word;\n -webkit-font-smoothing: antialiased; }\n\n.lh-gauge__svg-wrapper {\n display: block;\n font-family: Roboto, Helvetica, Arial, sans-serif;\n font-size: 16px;\n height: 150px;\n line-height: 24px;\n position: relative;\n text-size-adjust: 100%;\n width: 150px;\n word-break: break-word;\n -webkit-font-smoothing: antialiased; }\n\n.lh-gauge__wrapper {\n font-size: 16px;\n height: 150px;\n line-height: 24px;\n margin-bottom: 12px;\n margin-left: 0px;\n margin-right: 0px;\n margin-top: 24px;\n position: relative;\n width: 150px;\n -webkit-font-smoothing: antialiased; }\n\n.sg-score-holder {\n top: 15%;\n position: absolute; }\n\n.sg-score {\n position: relative; }\n\n.lh-gauge-arc-placeholder {\n color: #EBEBEB;\n stroke: #EBEBEB; }\n\n.placeholder-meduim .lh-gauge__percentage,\n.placeholder-meduim .lh-gauge__svg-wrapper,\n.placeholder-meduim .lh-gauge__wrapper {\n color: #eca03e;\n fill: #eca03e;\n stroke: #eca03e; }\n\n.placeholder-meduim .lh-gauge-arc {\n color: #eca03e; }\n\n.placeholder-low .lh-gauge__percentage,\n.placeholder-low .lh-gauge__svg-wrapper,\n.placeholder-low .lh-gauge__wrapper {\n color: #F54545;\n fill: #F54545;\n stroke: #F54545; }\n\n.placeholder-low .lh-gauge-arc {\n color: #F54545; }\n\n.placeholder-top .lh-gauge__percentage,\n.placeholder-top .lh-gauge__svg-wrapper,\n.placeholder-top .lh-gauge__wrapper {\n color: #6ACA4D;\n fill: #6ACA4D;\n stroke: #6ACA4D; }\n\n.placeholder-top .lh-gauge-arc {\n color: #6ACA4D; }\n\n.sg-tooltip {\n z-index: 9999; }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(61),p=n(9),f=n(16),g=n(220),m=n(100),h=function(e){function t(t){var n=e.call(this,t)||this;return n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.updateState=function(e){var t;n.setState(((t={})[e.target.name]=e.target.value,t))},n.toogleCloudflareDialog=function(){n.setState({showCloudflareDialog:!n.state.showCloudflareDialog})},n.authenticate=function(){n.setState({showCloudflareDialog:!1}),n.props.authenticate(n.state.cloudflare_email,n.state.cloudflare_auth_key)},n.validate=function(){n.validateEmail(n.state.cloudflare_email)&&n.validateKey(n.state.cloudflare_auth_key)&&n.toogleCloudflareDialog()},n.validateKey=function(e){var t=e.length;return n.setState({keyValidationError:!t}),t},n.updateKey=function(e){n.validateKey(e.target.value),n.updateState(e)},n.updateEmail=function(e){n.validateEmail(e.target.value),n.updateState(e)},n.validateEmail=function(e){var t=new RegExp(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,"g").test(e);return n.setState({emailValidationError:!t}),t},n.state={showCloudflareDialog:!1,cloudflare_email:"",cloudflare_auth_key:"",emailValidationError:!1,keyValidationError:!1},n}return i(t,e),t.prototype.componentDidUpdate=function(e){this.props.options.cloudflare_email!==e.options.cloudflare_email&&this.props.options.cloudflare_auth_key!==e.options.cloudflare_auth_key&&this.setState({cloudflare_email:this.props.options.cloudflare_email,cloudflare_auth_key:this.props.options.cloudflare_auth_key}),this.props.options.cloudflare_slots_deletion!==e.options.cloudflare_slots_deletion&&this.setState({showCloudflareDialog:this.props.options.cloudflare_slots_deletion})},t.prototype.render=function(){var e=this,t=u.translate("Cloudflare API Key get it from {{link}}here{{/link}}",{components:{link:l.createElement(p.Link,{onClick:function(e){e.preventDefault(),window.open("https://dash.cloudflare.com/profile/api-tokens")},style:{textDecoration:"underline"}})}});return l.createElement(d.default,null,l.createElement(p.Flex,{gutter:"none",direction:"column",margin:"none",style:{position:"relative"}},!!this.props.isOptimizing&&l.createElement(p.Loader,{style:{position:"absolute"},className:"loader-cloudflare-optimization"},u.translate("Cloudflare optimization in progress")),!!this.props.isDeauthenticating&&l.createElement(p.Loader,{style:{position:"absolute"},className:"loader-cloudflare-optimization"},u.translate("Cloudflare deauthentication in progress")),l.createElement(g.default,{title:u.translate("Cloudflare Full Page Caching"),checked:this.props.options.cloudflare_optimization,name:"cloudflare_optimization",onChange:this.changeOption},u.translate("This option will enable full-page caching on your Cloudflare CDN edges. This will reduce the load on your SiteGround server and improve the loading speeds of your pages because by default Cloudflare will cache only your static resources.")),0!==this.props.options.cloudflare_optimization&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(p.Flex,{gutter:"large",direction:"row",align:"center"},1==this.props.options.cloudflare_optimization_status&&l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"success",background:"white",contentSize:"expanded",shadow:!0},l.createElement(p.Text,{align:"left"},u.translate("You have successfully authenticated to your Cloudflare account. If you want to stop using this service, please {{link}}Deauthenticate{{/link}} first.",{components:{link:l.createElement(p.Link,{onClick:this.props.deauthenticate,style:{textDecoration:"underline"}})}})))),0==this.props.options.cloudflare_optimization_status&&l.createElement(l.Fragment,null,l.createElement(p.Box,{sm:"5"},l.createElement(p.Input,{type:"text",label:u.translate("Email used with Cloudflare"),size:"medium",value:this.state.cloudflare_email,name:"cloudflare_email",state:this.state.emailValidationError?"error":"",onChange:function(t){return e.updateState(t)},onBlur:function(t){return e.updateEmail(t)},showValidation:!!this.state.emailValidationError,validationMessage:!!this.state.emailValidationError&&u.translate("Please provide valid email address")})),l.createElement(p.Box,{sm:"5"},l.createElement(p.Input,{type:"text",label:t,size:"medium",value:this.state.cloudflare_auth_key,name:"cloudflare_auth_key",onChange:function(t){return e.updateState(t)},onBlur:function(t){return e.updateKey(t)},state:this.state.keyValidationError?"error":"",showValidation:!!this.state.keyValidationError,validationMessage:!!this.state.keyValidationError&&u.translate("Please provide API key")})),l.createElement(p.Box,{sm:"2"},l.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:function(t){return e.validate()}},u.translate("Authenticate"))))),1==this.props.options.cloudflare_optimization_status&&l.createElement(l.Fragment,null,l.createElement(p.Flex,{className:"divider"}),l.createElement(p.Flex,{gutter:"large",direction:"row",align:"center",style:{marginTop:0}},l.createElement(p.Box,{sm:"10"},l.createElement(p.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Purge Cloudflare Cache")),l.createElement(p.Text,null,u.translate("This will perform a complete manual purge of all Cloudflare assets. {{b}}It may take some time until the cache is purged on all edges.{{/b}}",{components:{b:l.createElement("strong",null)}}))),l.createElement(p.Box,{sm:"2"},l.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.props.purgeCloudflareCache},this.props.cloudflareCachePurged?u.translate("Purge Cache"):u.translate("Purging ..."))))))))),!!this.state.showCloudflareDialog&&l.createElement(m.CloudflareDialog,{toogleClose:this.toogleCloudflareDialog,toogleConfirm:this.authenticate}))},t}(l.Component),y=function(e){return{options:e.Options,isOptimizing:e.Cloudflare.isOptimizing,isDeauthenticating:e.Cloudflare.isDeauthenticating,cloudflareCachePurged:e.Cloudflare.cloudflareCachePurged}},b=function(e){return{enableOption:function(t,n){return e(f.enableOption(t,n,!1))},disableOption:function(t,n){return e(f.disableOption(t,n,!1))},authenticate:function(t,n){return e(f.authenticate(t,n))},deauthenticate:function(){return e(f.deauthenticate())},purgeCloudflareCache:function(){return e(f.purgeCloudflareCache())}}};t.default=c.connect(y,b)(h),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),a.register(h,"Cloudflare","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),a.register(y,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),a.register(b,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),s(e))}).call(this,n(1)(e))}]);
333
  * http://hammerjs.github.io/
334
  *
335
  * Copyright (c) 2016 Jorik Tangelder;
336
+ * Licensed under the MIT license */!function(o,i,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=i.createElement("div"),d=Math.round,p=Math.abs,f=Date.now;function g(e,t,n){return setTimeout(v(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function y(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var b=y((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&void 0===e[r[o]])&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),_=y((function(e,t){return b(e,t,!0)}),"merge","Use `assign`.");function x(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&l(r,n)}function v(e,t){return function(){return e.apply(t,arguments)}}function M(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function w(e,t){return void 0===e?t:e}function z(e,t,n){h(O(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){h(O(t),(function(t){e.removeEventListener(t,n,!1)}))}function L(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function A(e,t){return e.indexOf(t)>-1}function O(e){return e.trim().split(/\s+/g)}function k(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function T(e){return Array.prototype.slice.call(e,0)}function E(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];k(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function N(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<c.length;){if((r=(n=c[i])?n+o:t)in e)return r;i++}}var j=1;function D(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var P="ontouchstart"in o,C=void 0!==N(o,"PointerEvent"),W=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),I=["x","y"],R=["clientX","clientY"];function Y(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){M(e.options.enable,[e])&&n.handler(t)},this.init()}function q(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&t&&r-o==0,a=12&t&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=H(t));o>1&&!n.firstMultiple?n.firstMultiple=H(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=t.center=B(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=Q(s,l),t.distance=X(s,l),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=U(t.deltaX,t.deltaY);var c=F(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=p(c.x)>p(c.y)?c.x:c.y,t.scale=a?(u=a.pointers,d=r,X(d[0],d[1],R)/X(u[0],u[1],R)):1,t.rotation=a?function(e,t){return Q(t[1],t[0],R)+Q(e[1],e[0],R)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(s>25||void 0===a.velocity)){var l=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,u=F(s,l,c);r=u.x,o=u.y,n=p(u.x)>p(u.y)?u.x:u.y,i=U(l,c),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var u,d;var g=e.element;L(t.srcEvent.target,g)&&(g=t.srcEvent.target);t.target=g}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:t,center:B(t),deltaX:e.deltaX,deltaY:e.deltaY}}function B(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:d(n/t),y:d(r/t)}}function F(e,t,n){return{x:t/e||0,y:n/e||0}}function U(e,t){return e===t?1:p(e)>=p(t)?e<0?2:4:t<0?8:16}function X(e,t,n){n||(n=I);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function Q(e,t,n){n||(n=I);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}Y.prototype={handler:function(){},init:function(){this.evEl&&z(this.element,this.evEl,this.domHandler),this.evTarget&&z(this.target,this.evTarget,this.domHandler),this.evWin&&z(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(D(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function V(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,Y.apply(this,arguments)}x(V,Y,{handler:function(e){var t=G[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var K={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:"touch",3:"pen",4:"mouse",5:"kinect"},$="pointerdown",Z="pointermove pointerup pointercancel";function ee(){this.evEl=$,this.evWin=Z,Y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&($="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),x(ee,Y,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=K[r],i=J[e.pointerType]||e.pointerType,a="touch"==i,s=k(t,e.pointerId,"pointerId");1&o&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&o&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(s,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Y.apply(this,arguments)}function re(e,t){var n=T(e.touches),r=T(e.changedTouches);return 12&t&&(n=E(n.concat(r),"identifier",!0)),[n,r]}x(ne,Y,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},Y.apply(this,arguments)}function ae(e,t){var n=T(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=T(e.changedTouches),s=[],l=this.target;if(i=n.filter((function(e){return L(e.target,l)})),1===t)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&s.push(a[o]),12&t&&delete r[a[o].identifier],o++;return s.length?[E(i.concat(s),"identifier",!0),s]:void 0}x(ie,Y,{handler:function(e){var t=oe[e.type],n=ae.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function se(){Y.apply(this,arguments);var e=v(this.handler,this);this.touch=new ie(this.manager,e),this.mouse=new V(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=25&&a<=25)return!0}return!1}x(se,Y,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)le.call(this,t,n);else if(o&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var de=N(u.style,"touchAction"),pe=void 0!==de,fe=function(){if(!pe)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function ge(e,t){this.manager=e,this.set(t)}ge.prototype={set:function(e){"compute"==e&&(e=this.compute()),pe&&this.manager.element.style&&fe[e]&&(this.manager.element.style[de]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,(function(t){M(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(A(e,"none"))return"none";var t=A(e,"pan-x"),n=A(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(A(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=A(r,"none")&&!fe.none,i=A(r,"pan-y")&&!fe["pan-y"],a=A(r,"pan-x")&&!fe["pan-x"];if(o){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!i)return o||i&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function me(e){this.options=l({},this.defaults,e||{}),this.id=j++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function he(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function ye(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function be(e,t){var n=t.manager;return n?n.get(e):e}function _e(){me.apply(this,arguments)}function xe(){_e.apply(this,arguments),this.pX=null,this.pY=null}function ve(){_e.apply(this,arguments)}function Me(){me.apply(this,arguments),this._timer=null,this._input=null}function we(){_e.apply(this,arguments)}function ze(){_e.apply(this,arguments)}function Se(){me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Le(e,t){return(t=t||{}).recognizers=w(t.recognizers,Le.defaults.preset),new Ae(e,t)}me.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=be(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=be(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===k(t,e=be(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=be(e,this);var t=k(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+he(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+he(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!M(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},x(_e,me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,o=this.attrTest(e);return r&&(8&n||!o)?16|t:r||o?4&n?8|t:2&t?4|t:2:32}}),x(xe,_e,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(6&t.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return _e.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ye(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),x(ve,_e,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),x(Me,me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=g((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),x(we,_e,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),x(ze,_e,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return xe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ye(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),x(Se,me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=g((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=g((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Le.VERSION="2.0.7",Le.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[we,{enable:!1}],[ve,{enable:!1},["rotate"]],[ze,{direction:6}],[xe,{direction:6},["swipe"]],[Se],[Se,{event:"doubletap",taps:2},["tap"]],[Me]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ae(e,t){var n;this.options=l({},Le.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(C?ee:W?ie:P?se:V))(n,q),this.touchAction=new ge(this,this.options.touchAction),Oe(this,!0),h(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Oe(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,(function(o,i){n=N(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ae.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=k(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return h(O(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return h(O(e),(function(e){t?n[e]&&n[e].splice(k(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Oe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Le,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ae,Input:Y,TouchAction:ge,TouchInput:ie,MouseInput:V,PointerEventInput:ee,TouchMouseInput:se,SingleTouchInput:ne,Recognizer:me,AttrRecognizer:_e,Tap:Se,Pan:xe,Swipe:ze,Pinch:ve,Rotate:we,Press:Me,on:z,off:S,each:h,merge:_,extend:b,assign:l,inherit:x,bindFn:v,prefixed:N}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Le,void 0===(r=function(){return Le}.call(t,n,t,e))||(e.exports=r)}(window,document)},function(e,t,n){var r=n(1075);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Table Row\n ========================================================================== */\n.table-row__loader-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n max-width: 100%; }\n\n.hammerjs-wrapper {\n user-select: auto !important; }\n\n@keyframes spin {\n 100% {\n transform: rotate(360deg); } }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){var r=n(1077);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Table Body\n ========================================================================== */\n.sg-table-dnd-placeholder {\n width: 100%; }\n .sg-table-dnd-placeholder tr {\n display: flex; }\n .sg-table-dnd-placeholder td {\n display: flex;\n align-items: center;\n flex: 1; }\n\n.sg-icon-expandable {\n margin-right: 15px; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,'/* stylelint-disable */\n\n/* ==========================================================================\n Table\n ========================================================================== */\n.sg-table-wrapper {\n width: 100%;\n max-width: 100%;\n border-radius: 3px;\n background-color: var(--background-component-primary); }\n\n.sg-theme-hcl .sg-table-wrapper,\n.sg-theme-hcb .sg-table-wrapper {\n border: 1px solid var(--high-contrast-foreground); }\n\n.sg-table-wrapper--box-shadow {\n box-shadow: var(--first-level-box-shadow); }\n\n.sg-table {\n width: 100%;\n border-radius: 3px;\n text-align: start;\n table-layout: fixed; }\n .sg-table .sg-table__head .sg-table__cell:first-of-type {\n border-top-left-radius: 3px; }\n .sg-table .sg-table__head .sg-table__cell:last-of-type {\n border-top-right-radius: 3px; }\n .sg-table .sg-table__row:last-of-type .sg-table__cell:first-of-type {\n border-bottom-left-radius: 3px; }\n .sg-table .sg-table__row:last-of-type .sg-table__cell:last-of-type {\n border-bottom-right-radius: 3px; }\n\n.sg-table__head .sg-table__cell {\n color: var(--typography-light);\n font-family: Roboto;\n font-weight: 500;\n font-size: 12px;\n line-height: 20px;\n text-align: left;\n border-top: none; }\n\n.sg-table__head-tile {\n background-color: var(--background-component-secondary);\n text-align: center; }\n\n.sg-table__head--background-default .sg-table__cell {\n background-color: var(--background-component-secondary); }\n\n.sg-table__head--background-white .sg-table__cell {\n background-color: var(--background-component-primary); }\n\n.sg-table__footer--background-default .sg-table__cell {\n background-color: var(--background-component-secondary); }\n\n.sg-table__footer--background-white .sg-table__cell {\n background-color: var(--background-component-primary); }\n\n/* Rows\n ========================================================================== */\n.sg-table__row--animation-enter {\n opacity: 0;\n transition: opacity 0.5s linear; }\n\n.sg-table__row--animation-enter-active {\n opacity: 1; }\n\n.sg-table__row--animation-exit {\n pointer-events: none;\n transition: opacity 0.5s linear; }\n\n.sg-table__row--animation-exit-active {\n opacity: 0; }\n\n.sg-table__cell.sg-table__cell--is-in-row-selection,\n.sg-table__cell--is-in-row-selection {\n background-color: var(--background-component-secondary); }\n\n.sg-theme-hcl .sg-table__cell.sg-table__cell--is-in-row-selection,\n.sg-theme-hcl .sg-table__cell--is-in-row-selection,\n.sg-theme-hcb .sg-table__cell.sg-table__cell--is-in-row-selection,\n.sg-theme-hcb .sg-table__cell--is-in-row-selection {\n background-color: var(--component-background-hover); }\n\n/* Cells\n ========================================================================== */\n.sg-table__cell {\n position: relative;\n padding: 0 20px;\n vertical-align: middle;\n background-color: var(--background-component-primary);\n border-top: 1px solid var(--border-color-inner);\n font-size: 14px;\n line-height: 20px;\n text-align: left; }\n .sg-table__cell:focus {\n outline: none; }\n .sg-keyboard .sg-table__cell:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-table__cell--height-small {\n height: 40px; }\n\n.sg-table__cell--height-medium {\n height: 60px; }\n\n.sg-table__cell-dnd-wrapper {\n display: flex;\n align-items: center; }\n .sg-table__cell-dnd-wrapper .sg-icon-move {\n display: none; }\n .sg-table__cell-dnd-wrapper .sg-icon-dnd {\n margin-right: 15px;\n color: var(--color-icon-button); }\n\n.sg-table__after-content {\n border-top: 1px solid var(--border-color-inner); }\n\n.sg-table-load-more {\n display: flex;\n justify-content: center;\n padding: 20px;\n background-color: var(--background-component-secondary); }\n\n.sg-theme-hcl .sg-table-load-more,\n.sg-theme-hcb .sg-table-load-more {\n border-top: 1px solid var(--high-contrast-foreground); }\n\n.sg-table .sg-table__row .sg-table__cell.sg-table__expand-toggle {\n text-align: center;\n background-color: var(--background-component-secondary);\n padding: 20px 15px; }\n\n/* Density\n ========================================================================== */\n.sg-table-wrapper--density-none .sg-table__cell {\n padding: 0; }\n\n.sg-table-wrapper--density-none .sg-table__after-content {\n padding: 0; }\n\n.sg-table-wrapper--density-small .sg-table__cell:first-child {\n padding-left: 20px; }\n\n.sg-table-wrapper--density-small .sg-table__cell:last-child {\n padding-right: 20px; }\n\n.sg-table-wrapper--density-small .sg-table__after-content {\n padding: 20px 20px; }\n\n.sg-table-wrapper--density-small .sg-table-wrapper--density-small .sg-table__cell:first-child {\n padding-left: 40px; }\n\n.sg-table-wrapper--density-small .sg-table-wrapper--density-small .sg-table__cell:last-child {\n padding-right: 40px; }\n\n.sg-table-wrapper--density-medium .sg-table__cell:first-child {\n padding-left: 30px; }\n .sg-table-wrapper--density-medium .sg-table__cell:first-child::before {\n left: 5px; }\n\n.sg-table-wrapper--density-medium .sg-table__cell:last-child {\n padding-right: 30px; }\n .sg-table-wrapper--density-medium .sg-table__cell:last-child::before {\n right: 5px; }\n\n.sg-table-wrapper--density-medium .sg-table__after-content {\n padding: 20px 30px; }\n\n.sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:first-child {\n padding-left: 60px; }\n .sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:first-child::before {\n left: 10px; }\n\n.sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:last-child {\n padding-right: 60px; }\n .sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:last-child::before {\n right: 10px; }\n\n.sg-table-wrapper--density-large .sg-table__cell:first-child {\n padding-left: 60px; }\n\n.sg-table-wrapper--density-large .sg-table__after-content {\n padding: 20px 60px; }\n\n.sg-table-wrapper--density-large .sg-table__cell:last-child {\n padding-right: 60px; }\n\n.sg-table-wrapper--density-large .sg-table-wrapper--density-large .sg-table__cell:first-child {\n padding-left: 120px; }\n\n.sg-table-wrapper--density-large .sg-table-wrapper--density-large .sg-table__cell:last-child {\n padding-right: 120px; }\n\n/* Product Table\n ========================================================================== */\n.sg-product-table {\n width: 100%; }\n .sg-product-table .sg-toolbar {\n margin: 0; }\n\n.sg-product-table--selected {\n border: 2px solid var(--color-primary); }\n\n.sg-product-table__row {\n border-bottom: 1px solid var(--border-color-inner); }\n\n/* Media queries\n ========================================================================== */\n@media (min-width: 801px) {\n .sg-table.sg-table--no-footer .sg-table__row:last-child .sg-table__cell--is-selected::before {\n border-bottom: 2px solid var(--color-primary); }\n .sg-table__cell--is-selected::before {\n content: " ";\n position: absolute;\n display: block;\n top: -1px;\n bottom: 0;\n right: 0;\n left: -2px;\n border-left: 2px solid var(--color-primary);\n border-right: 2px solid var(--color-primary);\n pointer-events: none; }\n .sg-table__head .sg-table__cell--is-selected::before {\n border-top: 2px solid var(--color-primary); }\n .sg-table__footer .sg-table__cell--is-selected::before {\n border-bottom: 2px solid var(--color-primary); } }\n\n@media (min-width: 801px) {\n .sg-theme-hcl .sg-table__row:hover .sg-table__cell,\n .sg-theme-hcb .sg-table__row:hover .sg-table__cell {\n background-color: var(--component-background-hover); }\n .sg-table__row:hover .sg-table__cell {\n background-color: var(--background-component-secondary); } }\n\n@media (max-width: 800px) {\n .sg-table {\n table-layout: fixed; }\n .sg-table-wrapper .sg-table__after-content {\n padding: 0; }\n .sg-table-wrapper--mobile-card .sg-table__cell,\n .sg-table-wrapper--mobile-card .sg-table__cell:first-child,\n .sg-table-wrapper--mobile-card .sg-table__cell:last-child,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:first-child,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:last-child {\n padding: 24px 20px 15px 20px; }\n .sg-table-wrapper--mobile-card .sg-table__cell:first-child,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px; }\n .sg-table-wrapper--mobile-card .sg-table__cell:last-child,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px; }\n .sg-table-wrapper--mobile-card .sg-table__footer,\n .sg-table-wrapper--mobile-card-flat .sg-table__footer {\n display: none; }\n .sg-table-wrapper--mobile-card.sg-table-wrapper,\n .sg-table-wrapper--mobile-card-flat.sg-table-wrapper {\n background-color: transparent; }\n .sg-table-wrapper--mobile-card:not(.sg-table-wrapper--no-data).sg-table-wrapper--box-shadow,\n .sg-table-wrapper--mobile-card-flat:not(.sg-table-wrapper--no-data).sg-table-wrapper--box-shadow {\n box-shadow: none; }\n .sg-table-wrapper--mobile-card .sg-table__head,\n .sg-table-wrapper--mobile-card-flat .sg-table__head {\n display: none; }\n .sg-table-wrapper--mobile-card .sg-table__row,\n .sg-table-wrapper--mobile-card-flat .sg-table__row {\n display: block;\n border-radius: 3px; }\n .sg-table-wrapper--mobile-card .sg-table__row {\n box-shadow: var(--first-level-box-shadow); }\n .sg-table-wrapper--mobile-card-flat .sg-table__row {\n box-shadow: none; }\n .sg-table-wrapper--mobile-card-flat .sg-table__row {\n border: 1px solid var(--border-color-outer); }\n .sg-table__cell-expandable-wrapper .sg-table__row {\n border-width: 1px 0 0; }\n .sg-table-wrapper--mobile-card:not(.sg-table-wrapper--reordable) .sg-table__row:not(:last-child),\n .sg-table-wrapper--mobile-card-flat:not(.sg-table-wrapper--reordable) .sg-table__row:not(:last-child) {\n margin-bottom: 20px; }\n .sg-table-wrapper--mobile-card .sg-table__cell,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell {\n height: auto;\n display: block;\n position: relative;\n border: none; }\n .sg-table-wrapper--mobile-card .sg-table__cell:nth-child(n+2)::after,\n .sg-table-wrapper--mobile-card-flat .sg-table__cell:nth-child(n+2)::after {\n content: attr(data-label);\n display: block;\n position: absolute;\n top: 4px;\n left: 20px;\n font-family: Roboto;\n font-size: 12px;\n line-height: 16px;\n color: var(--typography-light);\n text-align: initial;\n text-transform: capitalize; }\n .sg-table-load-more {\n margin-top: 20px;\n padding: 0;\n background: none; } }\n\n@media (max-width: 1500px) {\n .sg-table-wrapper--density-medium .sg-table__cell:first-child {\n padding-left: 20px; }\n .sg-table-wrapper--density-medium .sg-table__cell:first-child::before {\n left: 5px; }\n .sg-table-wrapper--density-medium .sg-table__cell:last-child {\n padding-right: 20px; }\n .sg-table-wrapper--density-medium .sg-table__cell:last-child::before {\n right: 5px; }\n .sg-table-wrapper--density-medium .sg-table__after-content {\n padding: 20px 20px; }\n .sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:first-child {\n padding-left: 40px; }\n .sg-table-wrapper--density-medium .sg-table-wrapper--density-medium .sg-table__cell:last-child {\n padding-right: 40px; }\n .sg-table__cell--height-medium {\n height: 50px; } }\n',""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l,c,u=n(2),d=n(9),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.createMobileColumnsOptions=function(e,t,n){if(!e)return e;var r=d.deepclone(e);if(t)return r;var o={width:"100%",flexWrap:"nowrap"},i={flexShrink:0},s=r[0],l=r.pop(),c=s.render?s.render:function(e){return e},p=l.render?l.render:function(e){return e};return delete s.header,s.style=a({fontWeight:"bold"},s.style),s.render=function(e,t){return n?u.createElement(d.Flex,{justify:"space-between",align:"center",gutter:"none",margin:"none",style:o},u.createElement(d.Title,{level:"4",density:"none",truncate:!0},c(e,t)),u.createElement("div",{style:i},p(t[l.accessor],t))):c(e,t)},r},t.createDesktopColumnsOptions=function(e,t,n){if(!e||!t||0===t.length)return e;var r=d.deepclone(e),o=r[r.length-1];return o.style=a({paddingLeft:n&&"0px",textAlign:"right",whiteSpace:"nowrap"},o.style),n&&(o.mSize=o.mSize||"100px"),r},t.prototype.render=function(){var e=this.context.device,n=this.props,r=n.columns,o=n.data,i=n.disableMobileArrange,l=n.hasMenu,c=n.onMouseOver,p=s(n,["columns","data","disableMobileArrange","hasMenu","onMouseOver"]),f=t.createMobileColumnsOptions(r,i,e.isPhone),g=t.createDesktopColumnsOptions(r,o,l);return e.isPhone?u.createElement(d.Table,a({data:o,columns:f},p)):u.createElement(d.Table,a({data:o,columns:g,onMouseOver:c},p))},t.contextType=d.Context,t.defaultProps={hasMenu:!0,"data-e2e":"action-table"},t}(u.Component);t.default=p,l=n(0).default,c=n(0).leaveModule,l&&(l.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/action-table.tsx"),l.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/action-table.tsx"),l.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/action-table.tsx"),l.register(p,"ActionTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/action-table.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(1081),l=n(54),c=n(213),u=n(464),d=n(1082),p=n(211),f=n(1085),g=n(481);n(485);var m,h,y=function(e){var t=a.useContext(l.Context).device,n=e.columns,r=e.data,f=e.onCellSelection,m=e.selectedColumns,h=i(e,["columns","data","onCellSelection","selectedColumns"]),y=n.map((function(e){return o({},e)})),b=y.shift();return t.isPhone?a.createElement(s.default,o({},h),y.map((function(e,t){return a.createElement("div",{key:e.accessor,className:"sg-product-table"+(m.includes(t+1)?" sg-product-table--selected":"")},a.createElement(d.default,{border:"none",padding:"medium",className:"sg-table__head-tile"},e.renderHead?e.renderHead:e.header),r.map((function(n){return a.createElement(c.Flex,{className:"sg-product-table__row",key:n.accessor,padding:["none","medium"],gutter:"none",margin:"none",background:"white"},a.createElement(c.Box,{xs:"8",flex:!0,align:"center",justify:"flex-start"},b.render?b.render(n[b.accessor],n,b.accessor,t+1):n[b.accessor]),a.createElement(c.Box,{xs:"4",flex:!0,align:"center",justify:"center",style:{textAlign:"right"}},a.createElement(u.Grid,{padding:["medium","none"]},e.render(n[e.accessor],n,e.accessor,t+1))))})),e.footer&&a.createElement(p.default,{background:"light",justify:"center"},e.footer(t+1)))}))):a.createElement(g.default,o({className:"sg-product-table",mobileLayout:"row",data:r,columns:n,onCellSelection:f,selectedColumns:m},h))};y.defaultProps={selectedColumns:[]},t.default=f.default(y),m=n(0).default,h=n(0).leaveModule,m&&(m.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/product-table.tsx"),m.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/product-table.tsx"),m.register(y,"ProductTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/table/table-types/product-table.tsx"),h(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(447);t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(486);t.default=r.default},function(e,t,n){var r=n(1084);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Tile\n ========================================================================== */\n.sg-tile:focus {\n outline: none; }\n\n.sg-keyboard .sg-tile:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-tile,\n.sg-tile.sg-with-border {\n border-radius: 0; }\n\n@media (max-width: 800px) {\n .sg-tile.sg-with-border + .sg-tile.sg-with-border {\n border-top: none; }\n .sg-tile:first-of-type {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px; }\n .sg-tile:last-of-type {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px; } }\n\n@media (min-width: 801px) {\n .sg-tile.sg-with-border + .sg-tile.sg-with-border {\n border-left: none; }\n .sg-tile:first-of-type {\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px; }\n .sg-tile:last-of-type {\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px; } }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(218);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(7),u=n(8),d=n(11),p=n(199),f=n(145),g=function(e){switch(e.key){case d.default.SPACE:case d.default.ENTER:e.preventDefault(),e.stopPropagation(),e.target.click()}},m=l.forwardRef((function(e,t){var n=e.active,r=e.disabled,a=e.className,s=e.children,d=e.padding,m=e.tabIndex,h=e["data-e2e"],y=e["data-component"],b=i(e,["active","disabled","className","children","padding","tabIndex","data-e2e","data-component"]),_=c.default("sg-tabs__tab",n&&"sg-tabs__tab--active",r&&"sg-tabs__tab--disabled",f.default(d),a);return l.createElement(p.default,o({tag:"li",ref:t,className:_,tabIndex:m,"data-e2e":h,"data-component":y,role:"tab","aria-selected":n,"aria-controls":"panel-"+m},u.default(b),{onKeyDown:g}),s)}));m.displayName="Tab",m.defaultProps={tabIndex:-1,"data-e2e":"tab","data-component":"tab"},t.default=m,a=n(0).default,s=n(0).leaveModule,a&&(a.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tab.tsx"),a.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tab.tsx"),a.register(g,"handleKeyDown","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tab.tsx"),a.register(m,"Tab","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tab.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(7),u=n(53),d=n(33),p=n(64),f=n(8),g=n(11),m=n(25);n(1088);var h,y,b=function(e){function t(t){var n=e.call(this,t)||this;return n.onKeyDown=function(e){var t=p.getFocusableElement(n.tabsRef,{isDirectionForward:!0}),r=p.getFocusableElement(n.tabsRef,{isDirectionForward:!1});switch(e.key){case g.default.RIGHT:case g.default.DOWN:if(r===e.target)return;return e.target===n.tabsRootRef&&u.focusDomElement(t),void d.focusNextComponent({event:e});case g.default.LEFT:case g.default.UP:if(t===e.target)return;return e.target===n.tabsRootRef&&u.focusDomElement(r),void d.focusNextComponent({event:e,isDirectionForward:!1});default:return}},n.state={hasArrows:!1},n.tabsWrapperWith=null,n.tabsWidth=null,n.initialClientXLocation=0,n.deltaXFromLastTranslateRequest=0,n.deltaXfromLastMoveEvent=0,n.tabsRootRef=l.createRef(),n.tabsWrapperRef=l.createRef(),n.tabsRef=l.createRef(),n.applyTransformXStyle=n.applyTransformXStyle.bind(n),n.saveComponentDimensions=n.saveComponentDimensions.bind(n),n.resizeHandler=n.resizeHandler.bind(n),n.onMouseDown=n.onMouseDown.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n}return i(t,e),t.prototype.componentDidMount=function(){this.saveComponentDimensions(),this.setState({hasArrows:this.tabsWrapperWith<this.tabsWidth}),window.addEventListener("resize",this.resizeHandler,!1)},t.prototype.componentDidUpdate=function(e){e.children.length!==this.props.children.length&&this.setState({hasArrows:this.tabsWrapperWith<this.tabsWidth}),this.saveComponentDimensions()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.resizeHandler,!1)},t.prototype.onMouseDown=function(e){this.tabsWrapperWith>=this.tabsWidth||(this.initialClientXLocation=e.clientX||e.touches[0].clientX)},t.prototype.onMouseMove=function(e){if(this.initialClientXLocation){var t=e.clientX||e.touches[0].clientX;this.translateTabs(t)}},t.prototype.onMouseUp=function(){this.initialClientXLocation=0,this.deltaXFromLastTranslateRequest=this.deltaXfromLastMoveEvent},t.prototype.saveComponentDimensions=function(){this.tabsWrapperRef&&(this.tabsWrapperWith=this.tabsWrapperRef.getClientRects()[0].width,this.tabsWidth=this.tabsRef.getClientRects()[0].width)},t.prototype.translateTabs=function(e){var t=this.tabsWidth-this.tabsWrapperWith,n=e-this.initialClientXLocation+this.deltaXFromLastTranslateRequest,r=Math.min(Math.max(parseInt(n,10),-t),0);this.deltaXfromLastMoveEvent=r,this.applyTransformXStyle(r)},t.prototype.applyTransformXStyle=function(e){this.tabsRef.style.webkitTransform="translateX("+e+"px)",this.tabsRef.style.transform="translateX("+e+"px)"},t.prototype.resizeHandler=function(){var e=this.tabsWrapperWith<this.tabsWidth;this.state.hasArrows!==e&&this.setState({hasArrows:e}),this.applyTransformXStyle(0),this.saveComponentDimensions()},t.prototype.render=function(){var e=this,t=this.props,n=t.activeColor,r=t.className,o=t.children,i=t.border,u=t.size,d=t.tabIndex,p=t["data-e2e"],g=t["data-component"],h=t["aria-label"],y=s(t,["activeColor","className","children","border","size","tabIndex","data-e2e","data-component","aria-label"]),b=c.default("sg-tabs-wrapper",i&&"sg-tabs-wrapper--border-"+i,r),_=c.default("sg-tabs","sg-tabs--background-transparent","sg-tabs--"+u,n&&"sg-tabs--active-color-"+n),x=this.state.hasArrows;return l.createElement("div",a({ref:function(t){e.tabsRootRef=t},className:b,"data-e2e":p,"data-component":g,tabIndex:d},f.default(y),{onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseUp,onTouchStart:this.onMouseDown,onTouchMove:this.onMouseMove,onTouchEnd:this.onMouseUp,onKeyDown:this.onKeyDown}),x&&l.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--start",onClick:function(){return e.translateTabs(40)}},l.createElement(m.default,{name:"arrow-left-thin",size:"10"})),l.createElement("div",{className:"sg-tabs_container",ref:function(t){e.tabsWrapperRef=t}},l.createElement("ul",a({className:_,ref:function(t){e.tabsRef=t},role:"tablist","aria-label":h},y),o)),x&&l.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--end",onClick:function(){return e.translateTabs(-40)}},l.createElement(m.default,{name:"arrow-right-thin",size:"10"})))},t.defaultProps={activeColor:"sky",size:"medium",tabIndex:0,"data-e2e":"tabs","data-component":"tabs"},t}(l.Component);t.default=b,h=n(0).default,y=n(0).leaveModule,h&&(h.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tabs.tsx"),h.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tabs.tsx"),h.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tabs.tsx"),h.register(b,"Tabs","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tabs/tabs.tsx"),y(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1089);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,'/* stylelint-disable */\n\n/* ==========================================================================\n Tabs\n ========================================================================== */\n.sg-tabs-wrapper {\n display: flex;\n flex-shrink: 0;\n user-select: none;\n max-width: 100%; }\n .sg-tabs-wrapper:focus {\n outline: none; }\n .sg-keyboard .sg-tabs-wrapper:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-tabs_container {\n overflow: hidden; }\n\n.sg-tabs__arrow {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 60px;\n background: inherit;\n color: var(--color-icon-button);\n cursor: pointer; }\n .sg-tabs__arrow:hover {\n color: var(--typography-dark); }\n\n.sg-tabs {\n display: inline-flex; }\n\n.sg-tabs__tab {\n align-items: center;\n display: flex;\n position: relative;\n white-space: nowrap;\n height: 60px;\n padding: 0 30px;\n color: var(--typography-light);\n cursor: pointer;\n text-transform: uppercase; }\n .sg-tabs__tab:focus {\n outline: none; }\n .sg-keyboard .sg-tabs__tab:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n .sg-tabs__tab:hover, .sg-tabs__tab:active, .sg-tabs__tab--active {\n color: var(--typography-darker); }\n .sg-tabs__tab:active::after, .sg-tabs__tab--active::after {\n content: "";\n display: block;\n position: absolute;\n height: 2px;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: currentColor;\n z-index: 1; }\n .sg-tabs__tab a {\n color: var(--typography-darkest); }\n\n/* Background\n ========================================================================== */\n.sg-tabs--background-transparent {\n background-color: transparent; }\n\n/* Borders\n ========================================================================== */\n.sg-tabs-wrapper--border-light {\n position: relative; }\n .sg-tabs-wrapper--border-light::before {\n content: "";\n display: block;\n position: absolute;\n height: 1px;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--border-color-outer); }\n\n.sg-tabs--active-color-sky .sg-tabs__tab--active::after,\n.sg-tabs--active-color-sky .sg-tabs__tab:active::after {\n background-color: var(--ocean-base); }\n\n.sg-tabs--active-color-romantic .sg-tabs__tab--active,\n.sg-tabs--active-color-romantic .sg-tabs__tab:active {\n color: var(--royal-base); }\n\n.sg-tabs--active-color-dark .sg-tabs__tab--active,\n.sg-tabs--active-color-dark .sg-tabs__tab:active {\n color: var(--typography-darker); }\n\n/* Sizes\n ========================================================================== */\n.sg-tabs--small {\n font: 500 12px/16px Roboto; }\n\n.sg-tabs--medium {\n font: 600 14px/20px Roboto; }\n\n.sg-tabs--large {\n font: 600 16px/24px Roboto; }\n\n/* Disabled\n ========================================================================== */\n.sg-tabs__tab--disabled {\n color: var(--color-disabled);\n pointer-events: none; }\n\n@media (max-width: 1500px) {\n .sg-tabs__tab {\n padding: 0 20px;\n height: 50px; } }\n',""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(7),l=n(8),c=n(1091);n(1092);var u,d,p=function(e){var t=e.className,n=e.background,r=e.onRefsReady,c=e.tabIndex,u=e["data-e2e"],d=e["data-component"],p=i(e,["className","background","onRefsReady","tabIndex","data-e2e","data-component"]),f=s.default(t,"sg-textarea",n&&"sg-textarea--background-"+n);return a.createElement("textarea",o({ref:function(e){r&&r(e)},className:f,"data-e2e":u,"data-component":d,tabIndex:c},l.default(p)))},f=c.default(p);f.displayName="Textarea",p.defaultProps={tabIndex:0,"data-e2e":"textarea","data-component":"textarea"},t.default=f,u=n(0).default,d=n(0).leaveModule,u&&(u.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/textarea/textarea.tsx"),u.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/textarea/textarea.tsx"),u.register(p,"Textarea","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/textarea/textarea.tsx"),u.register(f,"WrappedTextarea","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/textarea/textarea.tsx"),d(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(461);t.default=r.default},function(e,t,n){var r=n(1093);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n.sg-field-wrapper .sg-textarea {\n height: auto; }\n\n/* Backgrounds\n ========================================================================== */\n.sg-textarea.sg-textarea--background-light {\n background-color: var(--background-main); }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(7),c=n(205),u=n(11),d=n(141),p=n(112),f=n(206),g=n(25),m=n(113),h=n(98),y=n(1095);n(1098);var b,_,x=function(e){function t(t){var n=e.call(this,t)||this;return n.handleHourKeyDown=function(e){switch(e.key){case u.default.SPACE:case u.default.ENTER:return e.preventDefault(),void e.stopPropagation();case u.default.UP:case u.default.RIGHT:return void n.handleHourIncrease();case u.default.DOWN:case u.default.LEFT:return void n.handleHourDecrease();default:return}},n.handleMinuteKeyDown=function(e){switch(e.key){case u.default.SPACE:case u.default.ENTER:return e.preventDefault(),void e.stopPropagation();case u.default.UP:case u.default.RIGHT:return void n.handleMinuteIncrease();case u.default.DOWN:case u.default.LEFT:return void n.handleMinuteDecrease();default:return}},n.state={viewType:"TIME",selectedTime:+(new Date).setMinutes(0),inputValue:null,isTimePickerVisible:!1},n.openTimePicker=n.openTimePicker.bind(n),n.closeTimePicker=n.closeTimePicker.bind(n),n.handleTimePick=n.handleTimePick.bind(n),n.handleTimeChange=n.handleTimeChange.bind(n),n.handleHourIncrease=n.handleHourIncrease.bind(n),n.handleHourSelection=n.handleHourSelection.bind(n),n.handleHourDecrease=n.handleHourDecrease.bind(n),n.handleMinuteIncrease=n.handleMinuteIncrease.bind(n),n.handleMinuteSelection=n.handleMinuteSelection.bind(n),n.handleMinuteDecrease=n.handleMinuteDecrease.bind(n),n.handleDayPeriodChange=n.handleDayPeriodChange.bind(n),n}return i(t,e),t.prototype.componentDidMount=function(){var e=this.props.value,t=this.state.selectedTime;e&&t!==e&&this.setStateFromValue(e)},t.prototype.componentDidUpdate=function(e){""===this.props.value&&null!==this.state.inputValue&&this.setState({inputValue:null}),e.value!==this.props.value&&this.setStateFromValue(this.props.value)},t.prototype.setStateFromValue=function(e){var t=+new Date(1e3*parseInt(e,10));"string"!=typeof e?this.setState({selectedTime:t,inputValue:t}):this.setState({selectedTime:+new Date,inputValue:""})},t.prototype.getTimeFromLocales=function(){var e=this.state.inputValue,t=this.props.locales;return c.getTime(e,t)},t.prototype.getHours=function(){var e=this.state.selectedTime;return new Date(e).getHours()},t.prototype.getMinutes=function(){var e=this.state.selectedTime;return new Date(e).getMinutes()},t.prototype.getFormattedTime=function(e){return Math.floor(e/1e3)},t.prototype.getHumanReadableSelectedHour=function(){var e=this.props.locales,t=this.state.selectedTime,n=c.getHoursFromDateTimeFormat(e,new Date(t));return parseInt(n,10).toString().padStart(2,"0")},t.prototype.getHumanReadableSelectedMinute=function(){var e=this.getMinutes().toString();return parseInt(e,10).toString().padStart(2,"0")},t.prototype.getHumanReadableSelectedDayPeriod=function(){return this.getHours()>=12?"PM":"AM"},t.prototype.closeTimePicker=function(){this.setState({isTimePickerVisible:!1,viewType:"TIME"})},t.prototype.openTimePicker=function(){this.props.disabled||this.setState({isTimePickerVisible:!0})},t.prototype.handleTimePick=function(){var e=this.props.onChange,t=this.state.selectedTime,n=this.getFormattedTime(t);this.setState({inputValue:t},(function(){return e(n)}))},t.prototype.handleTimeChange=function(e){var t=e.hour,n=e.minute,r=this.state.selectedTime,o=new Date(r),i=void 0!==t?t:o.getHours(),a=void 0!==n?n:o.getMinutes(),s=+new Date(o.getFullYear(),o.getMonth(),o.getDate(),i,a,0);this.setState({selectedTime:s})},t.prototype.handleHourIncrease=function(){var e=this.getHours(),t=23===e?0:e+1;this.handleTimeChange({hour:t})},t.prototype.handleHourDecrease=function(){var e=this.getHours(),t=0===e?23:e-1;this.handleTimeChange({hour:t})},t.prototype.handleHourSelection=function(e){var t=this;this.setState({viewType:"TIME"},(function(){return t.handleTimeChange({hour:e})}))},t.prototype.handleMinuteIncrease=function(){var e=this.getMinutes(),t=59===e?0:e+1;this.handleTimeChange({minute:t})},t.prototype.handleMinuteDecrease=function(){var e=this.getMinutes(),t=0===e?59:e-1;this.handleTimeChange({minute:t})},t.prototype.handleMinuteSelection=function(e){var t=this;this.setState({viewType:"TIME"},(function(){return t.handleTimeChange({minute:e})}))},t.prototype.handleDayPeriodChange=function(){var e=this.getHours(),t=e>=12?e-12:e+12;this.handleTimeChange({hour:t})},t.prototype.shouldUse12hFormat=function(){var e=this.state.selectedTime,t=this.props.locales,n=c.getHoursFromDateTimeFormat(t,new Date(e));return Boolean(["A","M","P","a","m","p"].find((function(e){return n.includes(e)})))},t.prototype.renderInput=function(){var e=this,t=this.props.disabled,n=this.state.inputValue,r={label:this.props.label,placeholder:this.props.placeholder,size:this.props.size,validationMessage:this.props.validationMessage,validationMessageTemplate:this.props.validationMessageTemplate,state:this.props.state,disabled:this.props.disabled,readOnly:this.props.readOnly,ariaLabel:this.props["aria-label"],"data-e2e":this.props["data-e2e-input"]},o=n?this.getTimeFromLocales():"",i=l.default("sg-time-picker__input",t&&"sg-time-picker__input--disabled"),c=l.default("sg-time-picker__field",t&&"sg-time-picker__field--disabled");return s.createElement(m.default,a({className:i,fieldClassName:c,value:o,prefix:s.createElement(g.default,{name:"generic-clock",color:"ocean",size:"18",className:"date-picker-calendar-icon","aria-hidden":!0}),onClick:this.openTimePicker,role:"button","aria-label":r.ariaLabel,onKeyDown:function(t){t.key!==u.default.SPACE&&t.key!==u.default.ENTER||(t.preventDefault(),t.stopPropagation(),e.openTimePicker())}},r))},t.prototype.renderTimePickerDialog=function(){var e=this.state,t=e.isTimePickerVisible,n=e.viewType,r=this.props.className,o=l.default("sg-time-picker",r);return t?s.createElement(f.default,{className:o,density:"none",size:"small",footer:this.renderFooter(),onCloseHandler:this.closeTimePicker,"data-e2e":this.props["data-e2e"],"aria-hidden":t,role:"region","aria-live":"polite"},"TIME"===n&&this.renderClock(),"HOUR"===n&&this.renderHourPicker(),"MINUTE"===n&&this.renderMinutePicker()):null},t.prototype.renderFooter=function(){var e=this,t=this.props.translation;return s.createElement(s.Fragment,null,s.createElement(p.default,{onClick:this.closeTimePicker,"data-e2e":"timepicker-cancel-button"},t.cancelButton),s.createElement(p.default,{"data-e2e":"timepicker-confirm-button",color:"primary",disabled:this.props.shouldDisableTime(this.getFormattedTime(this.state.selectedTime)),onClick:function(){e.handleTimePick(),e.closeTimePicker()}},t.okButton))},t.prototype.renderClock=function(){var e=this,t=this.shouldUse12hFormat(),n=this.getHumanReadableSelectedHour(),r=this.getHumanReadableSelectedMinute(),o=this.getHumanReadableSelectedDayPeriod(),i=this.props.ariaProps;return s.createElement("div",{className:"sg-time-picker__content sg-time-picker__content--flex","data-e2e":"timepicker-clock",role:"group"},s.createElement("div",{className:"sg-time-picker__column"},s.createElement(y.default,{size:"xx-large",tabIndex:0,style:{order:1},onClick:function(){return e.setState({viewType:"HOUR"})},onKeyDown:this.handleHourKeyDown,"data-e2e":"timepicker-hour",role:"spinbutton","aria-valuenow":parseInt(n),"aria-valuetext":n,"aria-valuemin":1,"aria-valuemax":t?12:24,"aria-label":i.ariaLabelHours,"aria-live":"polite"},n),s.createElement(y.default,{color:"secondary",style:{order:0},onClick:this.handleHourIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},s.createElement(g.default,{name:"arrow-up",size:"16"})),s.createElement(y.default,{color:"secondary",style:{order:2},onClick:this.handleHourDecrease,"data-e2e":"timepicker-hour-decrease",role:"presentation","aria-hidden":"true"},s.createElement(g.default,{name:"arrow-down",size:"16"}))),s.createElement("div",{className:"sg-time-picker__column sg-time-picker__column--justify-center"},":"),s.createElement("div",{className:"sg-time-picker__column"},s.createElement(y.default,{color:"secondary",onClick:this.handleMinuteIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},s.createElement(g.default,{name:"arrow-up",size:"16"})),s.createElement(y.default,{size:"xx-large",tabIndex:0,onClick:function(){return e.setState({viewType:"MINUTE"})},onKeyDown:this.handleMinuteKeyDown,"data-e2e":"timepicker-minute",role:"spinbutton","aria-valuenow":parseInt(r),"aria-valuetext":r,"aria-valuemin":0,"aria-valuemax":59,"aria-label":i.ariaLabelMinutes,"aria-live":"assertive"},r),s.createElement(y.default,{color:"secondary",onClick:this.handleMinuteDecrease,"data-e2e":"timepicker-minute-decrease",role:"presentation","aria-hidden":"true"},s.createElement(g.default,{name:"arrow-down",size:"16"}))),t&&s.createElement("div",{className:l.default("sg-time-picker__column","sg-time-picker__column--justify-center","sg-time-picker__column--margin-start")},s.createElement(y.default,{background:"secondary",onClick:this.handleDayPeriodChange,tabIndex:0,"data-e2e":"timepicker-period-change","aria-label":"am/pm",role:"button","aria-valuetext":o},o)))},t.prototype.renderHourPicker=function(){var e=this,t=this.getHours(),n=this.shouldUse12hFormat(),r=Array(n?12:24).fill(null).map((function(e,t){return n?t+1:t}));return s.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-hour"},r.map((function(n){var r=t===n,o=l.default("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return s.createElement("span",{key:n,ref:function(e){return r&&d.default(e,{block:"center"})},"data-e2e":"timepicker-hours"},s.createElement(h.default,{className:o,color:"dark",weight:"bold",onClick:function(){return e.handleHourSelection(n)}},n.toString().padStart(2,"0")))})))},t.prototype.renderMinutePicker=function(){var e=this,t=this.getMinutes(),n=Array(60).fill(null).map((function(e,t){return t}));return s.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-minutes"},n.map((function(n){var r=t===n,o=l.default("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return s.createElement("span",{key:n,ref:function(e){return r&&d.default(e,{block:"center"})},"data-e2e":"timepicker-minute"},s.createElement(h.default,{className:o,weight:"bold",onClick:function(){return e.handleMinuteSelection(n)}},n.toString().padStart(2,"0")))})))},t.prototype.render=function(){return s.createElement(s.Fragment,null,this.renderInput(),this.renderTimePickerDialog())},t.defaultProps={locales:navigator.language||"en-US",placeholder:"Select a time",onChange:function(){return!1},shouldDisableTime:function(){return!1},translation:{cancelButton:"Cancel",okButton:"Ok"},"data-e2e":"timepicker","data-e2e-input":"timepicker-input",ariaProps:{ariaLabelMinutes:"Minutes",ariaLabelHours:"Hour"}},t}(s.Component);t.default=x,b=n(0).default,_=n(0).leaveModule,b&&(b.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register("TIME","TIME_VIEW","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register("HOUR","HOUR_VIEW","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register("MINUTE","MINUTE_VIEW","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),b.register(x,"TimePicker","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker.tsx"),_(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(7);n(1096);var l,c,u=function(e){var t=e.color,n=e.children,r=e.className,l=e.background,c=e.size,u=e.tabIndex,d=i(e,["color","children","className","background","size","tabIndex"]),p=s.default("sg-time-picker-button",t&&"sg-time-picker-button--color-"+t,l&&"sg-time-picker-button--background-"+l,"sg-time-picker-button--size-"+c,r);return a.createElement("button",o({className:p,type:"button",tabIndex:u},d),n)};u.defaultProps={size:"large",tabIndex:-1},t.default=u,l=n(0).default,c=n(0).leaveModule,l&&(l.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),l.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),l.register(u,"TimePickerButton","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1097);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n TimePickerButton\n ========================================================================== */\n.sg-time-picker-button {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 60px;\n background-color: transparent;\n color: var(--typography-dark);\n border: none;\n border-radius: 3px;\n font-family: Roboto;\n font-weight: 500;\n font-size: 20px;\n text-transform: uppercase; }\n .sg-time-picker-button:hover {\n cursor: pointer; }\n .sg-time-picker-button:hover, .sg-time-picker-button:focus {\n color: var(--component-color-hover);\n background-color: var(--component-background-hover); }\n\n/* Sizes\n ========================================================================== */\n.sg-time-picker-button--size-large {\n height: 40px; }\n\n.sg-time-picker-button--size-xx-large {\n height: 60px; }\n\n/* Colors\n ========================================================================== */\n.sg-time-picker-button--color-secondary {\n color: var(--color-secondary); }\n\n/* Backgrounds\n ========================================================================== */\n.sg-time-picker-button--background-secondary {\n color: var(--typography-white);\n background-color: var(--color-secondary); }\n .sg-time-picker-button--background-secondary:focus, .sg-time-picker-button--background-secondary:hover {\n background-color: var(--color-secondary-hovered); }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){var r=n(1099);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n TimePicker\n ========================================================================== */\n.sg-time-picker.sg-dialog {\n padding: 0; }\n\n.sg-time-picker .sg-time-picker-header {\n margin-top: 0; }\n\n.sg-time-picker__input,\n.sg-time-picker__field {\n cursor: pointer;\n caret-color: transparent; }\n .sg-time-picker__input.sg-time-picker__input--disabled, .sg-time-picker__input.sg-time-picker__field--disabled,\n .sg-time-picker__field.sg-time-picker__input--disabled,\n .sg-time-picker__field.sg-time-picker__field--disabled {\n cursor: not-allowed; }\n\n.sg-time-picker__content {\n padding-top: 30px;\n padding-bottom: 30px;\n height: 280px;\n width: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n overflow-y: overlay; }\n\n.sg-time-picker__content--flex {\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.sg-time-picker__column {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n min-width: 50px;\n min-height: 160px; }\n\n.sg-time-picker__column--justify-center {\n justify-content: center; }\n\n.sg-time-picker__column--margin-start {\n margin-left: 30px; }\n\n.sg-time-picker-entity {\n cursor: pointer;\n line-height: 36px; }\n .sg-time-picker-entity:hover {\n color: var(--color-secondary); }\n\n.sg-time-picker-entity--selected {\n color: var(--color-secondary);\n font-size: 26px; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(7),c=n(53),u=n(8),d=n(11),p=n(25);n(1101);var f,g,m=function(e,t){if(!e)return null;e.children&&e.children[t]&&c.focusDomElement(e.children[t])},h=function(e){var t=e.event,n=e.timelineRef,r=e.focusIndex,o=e.timelineLength,i=e.onChange;switch(t.key){case d.default.LEFT:var a=Math.min(Math.max(r-1,0),o);m(n.current,a);break;case d.default.RIGHT:var s=Math.min(Math.max(r+1,0),o);m(n.current,s);break;case d.default.ENTER:case d.default.SPACE:i(r+1)}},y=function(e){var t=e.activeStep,n=e.className,r=e.onChange,c=e.steps,d=e.tabIndex,f=e["data-e2e"],g=e["data-component"],m=e["aria-label"],y=i(e,["activeStep","className","onChange","steps","tabIndex","data-e2e","data-component","aria-label"]),b=s.useRef(null),_=a(s.useState(-1),2),x=_[0],v=_[1],M=l.default("sg-timeline",n),w=c.map((function(e,n){var i=n+1,a=i<=t,d=l.default("sg-timeline__item",a&&"sg-timeline__item--active",i===t&&"sg-timeline__item--bold",i>c.length&&"sg-timeline__item--bold");return s.createElement("li",o({key:n,className:d,tabIndex:-1},u.default(y),{onClick:a?function(){return r(i)}:null,onFocus:function(){return v(n)},"data-e2e":"timeline-step"}),s.createElement("div",{className:"sg-timeline__top-row"},i<t?s.createElement("span",{className:"sg-timeline__step","aria-hidden":"true"},s.createElement(p.default,{name:"check",size:"12"})):s.createElement("span",{className:"sg-timeline__step","aria-hidden":"true"},i)),s.createElement("div",{className:"sg-timeline__bottom-row"},s.createElement("span",{className:"sg-timeline__text"},c[n])))}));return s.createElement("ul",{ref:b,className:M,tabIndex:d,"data-e2e":f,role:"timeline","aria-label":m,"data-component":g,onKeyDown:function(e){return h({event:e,timelineRef:b,focusIndex:x,timelineLength:w.length,onChange:r})}},w)};y.defaultProps={onChange:function(){},tabIndex:0,"data-e2e":"timeline","data-component":"timeline"},t.default=y,f=n(0).default,g=n(0).leaveModule,f&&(f.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(a,"__read","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(m,"focusItem","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(h,"handleKeyDown","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),f.register(y,"Timeline","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/timeline/timeline.tsx"),g(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1102);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,'/* stylelint-disable */\n\n.sg-timeline {\n display: flex; }\n .sg-timeline:focus {\n outline: none; }\n .sg-keyboard .sg-timeline:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-timeline__item {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n flex-basis: 0; }\n .sg-timeline__item:focus {\n outline: none; }\n .sg-keyboard .sg-timeline__item:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-timeline__item:first-child .sg-timeline__top-row::before {\n background: transparent; }\n\n.sg-timeline__item:last-child .sg-timeline__top-row::after {\n background: transparent; }\n\n.sg-timeline__item--active {\n cursor: pointer; }\n .sg-timeline__item--active .sg-timeline__step {\n background: var(--ocean-base); }\n\n.sg-timeline__item--bold {\n font-weight: 600; }\n\n.sg-timeline__top-row {\n display: flex;\n align-items: center; }\n\n.sg-timeline__bottom-row {\n display: flex;\n justify-content: center;\n text-align: center;\n padding: 5px 10px; }\n\n.sg-timeline__top-row::before,\n.sg-timeline__top-row::after {\n content: "";\n display: block;\n height: 1px;\n flex-grow: 1;\n background: var(--color-disabled); }\n\n.sg-timeline__top-row::before {\n margin-right: 10px; }\n\n.sg-timeline__top-row::after {\n margin-left: 10px; }\n\n.sg-timeline__step {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: 25px;\n height: 25px;\n line-height: 25px;\n border-radius: 50%;\n color: var(--typography-white);\n background: var(--color-disabled);\n font-family: Roboto;\n font-weight: 700; }\n',""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(7),u=n(8),d=n(1104);n(1107);var p,f,g=function(e){function t(t){var n=e.call(this,t)||this;return n.nodes={},n.rootRef=null,n.onCheck=function(e){var t=n.props,r=t.noCascade,o=t.onCheck;n.toggleChecked(e,e.checked,r),o(n.serializeList("checked"),e)},n.onExpand=function(e){var t=n.props.onExpand;n.toggleNode("expanded",e,e.expanded),t(n.serializeList("expanded"),e)},n.rootRef=l.createRef(),n.flattenNodes(t.nodes),n.unserializeLists({checked:t.checked,expanded:t.expanded}),n}return i(t,e),t.prototype.getFormattedNodes=function(e){var t=this;return e.map((function(e){var n=a({},e);return n.checked=t.nodes[e.value].checked,n.expanded=t.nodes[e.value].expanded,Array.isArray(e.children)&&e.children.length>0?n.children=t.getFormattedNodes(n.children):n.children=null,n}))},t.prototype.getCheckState=function(e,t){return null===e.children||t||this.props.noCascadeOnDisabledNode&&e.disabled?e.checked?1:0:this.isEveryChildChecked(e)?1:this.isSomeChildChecked(e)?2:0},t.prototype.getDisabledState=function(e,t,n,r){return!!n||(this.props.noCascadeOnDisabledNode&&t.disabled?Boolean(e.disabled):!(r||!t.disabled)||Boolean(e.disabled))},t.prototype.toggleChecked=function(e,t,n){var r=this;if(null===e.children||n){var o=this.props.noCascadeOnDisabledNode&&e.disabled?e.value:t;this.toggleNode("checked",e,o)}else e.children.forEach((function(e){r.toggleChecked(e,t)}))},t.prototype.toggleNode=function(e,t,n){this.nodes[t.value][e]=n},t.prototype.flattenNodes=function(e){var t=this;Array.isArray(e)&&0!==e.length&&e.forEach((function(e){t.nodes[e.value]={},t.flattenNodes(e.children)}))},t.prototype.unserializeLists=function(e){var t=this;Object.keys(this.nodes).forEach((function(n){Object.keys(e).forEach((function(e){t.nodes[n][e]=!1}))})),Object.keys(e).forEach((function(n){e[n].forEach((function(e){void 0!==t.nodes[e]&&(t.nodes[e][n]=!0)}))}))},t.prototype.serializeList=function(e){var t=this,n=[];return Object.keys(this.nodes).forEach((function(r){t.nodes[r][e]&&n.push(r)})),n},t.prototype.isEveryChildChecked=function(e){var t=this;return e.children.every((function(e){return null!==e.children?t.isEveryChildChecked(e):e.checked}))},t.prototype.isSomeChildChecked=function(e){var t=this;return e.children.some((function(e){return null!==e.children?t.isSomeChildChecked(e):e.checked}))},t.prototype.renderTreeNodes=function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=0);var o=this.props,i=o.disabled,a=o.noCascade,s=o.optimisticToggle,c=o.collapsedIcon,u=o.expandedIcon,p=o["data-component"],f=e.map((function(e){var o=""+e.value,f=r.getCheckState(e,a),g=r.renderChildNodes(e),m=r.getDisabledState(e,t,i,a);return l.createElement(d.default,{key:o,checked:f,disabled:m,depth:n,expanded:e.expanded,label:e.label,forceShowToggleIcon:e.forceShowToggleIcon,entity:e.entity,optimisticToggle:s,rawChildren:e.children,value:e.value,showCheckbox:e.showCheckbox,onCheck:r.onCheck,onExpand:r.onExpand,collapsedIcon:c,expandedIcon:u,parentRootRef:r.rootRef.current,htmlAttributes:e.htmlAttributes,"data-component":p+"-node"},g)}));return l.createElement("ol",{className:"sg-tree__list"},f)},t.prototype.renderChildNodes=function(e){var t=this.props.depth;return null!==e.children&&e.expanded?this.renderTreeNodes(e.children,e,t+1):null},t.prototype.render=function(){var e=this.props,t=e.nodes,n=e.checked,r=e.expanded;this.flattenNodes(t),this.unserializeLists({checked:n,expanded:r});var o=this.getFormattedNodes(t),i=this.props,d=i.className,p=i.tabIndex,f=i["data-e2e"],g=i["data-component"],m=s(i,["className","tabIndex","data-e2e","data-component"]),h=c.default("sg-tree",d);return l.createElement("div",a({ref:this.rootRef,className:h,"data-e2e":f,"data-component":g,tabIndex:p,role:"tree"},u.default(m)),this.renderTreeNodes(o))},t.defaultProps={depth:0,checked:[],disabled:!1,expanded:[],noCascade:!1,noCascadeOnDisabledNode:!1,optimisticToggle:!0,collapsedIcon:"arrow-right",expandedIcon:"arrow-down",onCheck:function(){return null},onExpand:function(){return null},"data-e2e":"tree","data-component":"tree"},t}(l.PureComponent);t.default=g,p=n(0).default,f=n(0).leaveModule,p&&(p.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree.tsx"),p.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree.tsx"),p.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree.tsx"),p.register(g,"Tree","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree.tsx"),f(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2),l=n(33),c=n(81),u=n(11),d=n(200),p=n(26);n(1105);var f,g,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCheck=function(){var e=t.props,n=e.checked,r=e.entity,o=e.value,i=e.optimisticToggle,a=e.rawChildren,s=!1;0===n&&(s=!0),2===n&&(s=i),(0,e.onCheck)({value:o,checked:s,entity:r,children:a})},t.onExpand=function(){var e=t.props,n=e.expanded,r=e.entity,o=e.value;(0,e.onExpand)({expanded:!n,value:o,entity:r})},t.handleKeyDown=function(e){var n=t.props,r=n.expanded,o=n["data-component"],i=n.parentRootRef;if(u.isEventFromTab(e))l.focusNextComponent({event:e,startingElement:i});else if(u.isEventFromShiftPlusTab(e))l.focusNextComponent({event:e,isDirectionForward:!1,startingElement:i});else{var a=document.querySelectorAll('[data-component="'+o+'"]');switch(e.key){case u.default.DOWN:return e.preventDefault(),e.stopPropagation(),void l.focusNextComponent({event:e,includeChildren:!0,onComponentFiltering:function(e){return e.getAttribute("data-component")===o}});case u.default.UP:return e.preventDefault(),e.stopPropagation(),void l.focusNextComponent({event:e,includeChildren:!0,isDirectionForward:!1,onComponentFiltering:function(e){return e.getAttribute("data-component")===o}});case u.default.LEFT:if(e.preventDefault(),e.stopPropagation(),!r)return;return t.onExpand();case u.default.RIGHT:if(e.preventDefault(),e.stopPropagation(),r)return;return t.onExpand();case u.default.ENTER:case u.default.SPACE:return e.preventDefault(),e.stopPropagation(),t.onCheck();case u.default.END:var s=a&&a[a.length-1];return void l.focusNextComponent({event:e,isDirectionForward:!0,onComponentFiltering:function(e){return e===s}});case u.default.HOME:var c=a&&a[0];return void l.focusNextComponent({event:e,isDirectionForward:!1,onComponentFiltering:function(e){return e===c}})}}},t}return i(t,e),t.prototype.hasChildren=function(){return null!==this.props.rawChildren},t.prototype.renderExpandCollapseButton=function(){var e=this.props,t=e.expanded,n=e.forceShowToggleIcon,r=e.expandedIcon,o=e.collapsedIcon;return this.hasChildren()||n?s.createElement(p.default,{name:t?r:o,size:"10",color:"light",onClick:this.onExpand,"data-e2e":"tree-node-expand"}):s.createElement("div",{className:"sg-tree-node__spacer",style:{width:"10px",height:"10px"}})},t.prototype.renderLabel=function(){var e=this.props,t=e.checked,n=e.disabled,r=e.entity,o=e.label,i=e.value,a=e.showCheckbox,l=c.cn("sg-tree-node__label");return s.createElement("label",{className:l,role:"treeitem",onDoubleClick:this.onExpand,"data-e2e":"tree-node-label"},a&&s.createElement(d.default,{className:"sg-tree-node__checkbox",value:i,checked:1===t,indeterminate:2===t,disabled:n,onChange:this.onCheck,tabIndex:-1}),"function"==typeof o?o(r):o)},t.prototype.renderChildren=function(){return this.props.expanded?this.props.children:null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,r=e.depth,o=e.showCheckbox,i=e.checked,l=e.expanded,u=e.htmlAttributes,d=e.tabIndex,p=e["data-e2e"],f=e["data-component"],g=c.cn("sg-tree-node",n&&"sg-tree-node--disabled",t);return s.createElement("li",a({className:g,style:{paddingLeft:20*r+"px"},tabIndex:d,role:"treeitem","aria-checked":o?Boolean(i):void 0,"aria-expanded":l,"data-e2e":p,"data-component":f,onKeyDown:this.handleKeyDown},u),s.createElement("span",{className:"sg-tree-node__header"},this.renderExpandCollapseButton(),this.renderLabel()),this.renderChildren())},t.defaultProps={children:null,className:null,depth:0,rawChildren:null,forceShowToggleIcon:!1,showCheckbox:!0,tabIndex:0,"data-e2e":"tree-node","data-component":"tree-node"},t}(s.Component);t.default=m,f=n(0).default,g=n(0).leaveModule,f&&(f.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree-node/tree-node.tsx"),f.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree-node/tree-node.tsx"),f.register(m,"TreeNode","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/tree/tree-node/tree-node.tsx"),g(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1106);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n TreeNode\n ========================================================================== */\n.sg-tree-node:focus {\n outline: none; }\n\n.sg-keyboard .sg-tree-node:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-tree-node__header {\n display: flex;\n align-items: center;\n min-height: 26px; }\n .sg-tree-node__header .sg-tree-node__spacer {\n flex-shrink: 0; }\n\n.sg-tree-node__label {\n display: flex;\n align-items: center;\n width: 100%;\n padding-left: 5px;\n flex-shrink: 0; }\n .sg-tree-node__label--no-icon {\n padding-left: 15px; }\n\n.sg-tree-node__checkbox {\n padding: 0 15px 0 0; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){var r=n(1108);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Tree\n ========================================================================== */\n.sg-tree {\n width: 100%;\n overflow-x: auto; }\n .sg-tree:focus {\n outline: none; }\n .sg-keyboard .sg-tree:focus {\n outline: none;\n box-shadow: var(--focus-shadow); }\n\n.sg-tree__list {\n list-style: none;\n padding: 0; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(62),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasPermission:!1,windowFocus:!0},n.registerServiceWorker=function(){var e=n.props.pathToServiceWorker;navigator.serviceWorker.register(e).then((function(e){n.swRegistration=e,n.swRegistration.getNotifications().then((function(e){return e.forEach((function(e){return e.close()}))})),console.log("Registration successful, scope is:",e.scope),n.askForPermission(),n.addEvents()})).catch((function(e){console.log("Service worker registration failed, error:",e.message)}))},n.handleWindowFocus=function(){n.setState({windowFocus:!0})},n.handleWindowBlur=function(){n.setState({windowFocus:!1})},n.isPushNotificationSupported=function(){return"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window},n.askForPermission=function(){Notification.requestPermission().then((function(e){n.setState({hasPermission:"granted"===e})}))},n.createNotification=function(e,t){n.state.windowFocus||n.state.hasPermission&&("string"!=typeof t.tag&&(t.tag=c.uniqueId("sg-web-notification-")),n.notification[t.tag]||n.swRegistration&&n.swRegistration.showNotification&&(window.self=n.swRegistration,n.swRegistration.showNotification(e,t).catch((function(e){return console.log(e)})),n.notification[t.tag]={}))},n.notification={},n}return i(t,e),t.prototype.addEvents=function(){this.props.alwaysShow||(window.addEventListener("focus",this.handleWindowFocus),window.addEventListener("blur",this.handleWindowBlur))},t.prototype.removeEvents=function(){window.removeEventListener("focus",this.handleWindowFocus),window.removeEventListener("blur",this.handleWindowBlur)},t.prototype.componentDidMount=function(){this.isPushNotificationSupported()&&this.registerServiceWorker()},t.prototype.componentDidUpdate=function(e,t){var n=this.props.notification;e.notification!==n&&n&&this.createNotification(n.title,n.options)},t.prototype.componentWillUnmount=function(){this.removeEvents()},t.prototype.render=function(){return l.createElement("input",{type:"hidden",name:"web-notification",style:{display:"none"}})},t.defaultProps={alwaysShow:!1},t}(l.Component);t.default=u,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/web-notification/web-notification.tsx"),a.register(u,"WebNotification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/web-notification/web-notification.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(134),u=n(8),d=function(e){var t=e.link,n=i(e,["link"]);return l.createElement("span",o({},u.default(n)),t)};t.default=c.default(d,{preventTooltipOnMobile:!0}),a=n(0).default,s=n(0).leaveModule,a&&(a.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),a.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),a.register(d,"SGTooltip","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1112);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l=n(2),c=n(81),u=n(25),d=n(210);n(1113);var p,f,g={success:"success",warning:"warning",error:"error"},m=function(e){return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={value:e.props.value},e.onChangeHandler=function(t){var n=e.props.onChange;e.setState({value:t.target.value}),n&&n(t)},e.getRegexValidation=function(t){var n=!t.match&&void 0!==t.match;if(Array.isArray(t.regex))return!t.regex.find((function(t){return!(n?!t.test(e.state.value):t.test(e.state.value))}));var r=n?!t.regex.test(e.state.value):t.regex.test(e.state.value);return t&&r},e.getModifyRuleObject=function(t){var n=Object.assign({},t),r=e.getRegexValidation(t);return Boolean(e.props.value)?n.icon=r?"success":n.required?"error":"warning":n.icon="error",n},e.getSemanticScore=function(){var t=e.props.rules.filter((function(t){return e.getRegexValidation(t)}));return Boolean(e.props.value)?t.length===e.props.rules.length?"success":"error":"default"},e.renderHint=function(e){var t=e.icon,n=e.description,r=c.cn("sg-rules-box__hint-icon",t&&"sg-rules-box__hint-icon--"+t);return l.createElement("div",{className:"sg-rules-box__hint",key:n},l.createElement(u.default,{name:g[t],size:"14",className:r}),n)},e.renderHints=function(){return e.props.rules.map((function(t){return e.getModifyRuleObject(t)})).map((function(t){return e.renderHint({icon:t.icon,description:t.description})}))},e.renderStrengthMeter=function(){var t=c.cn("sg-rules-box__hints",e.getSemanticScore()&&"sg-rules-box__hints--"+e.getSemanticScore());return l.createElement("div",{className:t},l.createElement(d.default,{level:"6",density:"cozy"},e.props.translation.title),l.createElement("div",{className:"sg-rules-box__meter"}),e.renderHints())},e}return i(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=s(t,["className"]),o=(r.rules,r.dispatch,r.onChange,s(r,["rules","dispatch","onChange"])),i=c.cn("sg-rules-box","sg-rules-box--custom-validation",n);return l.createElement(e,a({validationMessageTemplate:this.renderStrengthMeter,className:i,onChange:this.onChangeHandler},o))},n.defaultProps={rules:[],translation:{title:"Recommendations"}},n}(l.Component)};t.default=m,p=n(0).default,f=n(0).leaveModule,p&&(p.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),p.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),p.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),p.register(g,"ICON","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),p.register(m,"withFieldRules","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/with-field-rules/with-field-rules.tsx"),f(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1114);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Recommendations\n ========================================================================== */\n.sg-rules-box .sg-input-addon--suffix {\n padding-right: 5px; }\n\n.sg-rules-box--custom-validation {\n background-color: var(--background-component-primary); }\n .sg-rules-box--custom-validation .sg-validation {\n background: var(--background-component-primary);\n border: 1px solid transparent;\n color: var(--typography-darkest);\n font-size: 14px; }\n .sg-rules-box--custom-validation .sg-validation--success {\n border-color: var(--color-success); }\n .sg-rules-box--custom-validation .sg-validation--error {\n border-color: var(--color-error); }\n .sg-rules-box--custom-validation .sg-validation--hint {\n border-color: var(--color-hint); }\n\n.sg-theme-hcl .sg-rules-box--custom-validation .sg-validation,\n.sg-theme-hcb .sg-rules-box--custom-validation .sg-validation {\n border-color: var(--high-contrast-foreground); }\n\n/* Hits wrapper\n ========================================================================== */\n.sg-rules-box__hints {\n display: flex;\n flex-direction: column;\n flex: 1 1 0;\n text-align: left; }\n\n.sg-rules-box__hints--error .sg-rules-box__meter {\n background: var(--color-error); }\n\n.sg-rules-box__hints--success .sg-rules-box__meter {\n background: var(--color-success); }\n\n.sg-rules-box__hints--default .sg-rules-box__meter {\n background: var(--color-hint); }\n\n/* Meter\n ========================================================================== */\n.sg-rules-box__meter {\n height: 2px;\n width: 100%; }\n\n/* Hit row\n ========================================================================== */\n.sg-rules-box__hint {\n display: flex;\n align-items: center;\n padding: 10px 0; }\n\n.sg-rules-box__hint-icon {\n margin-right: 5px; }\n\n.sg-rules-box__hint-icon--success {\n color: var(--color-success); }\n\n.sg-rules-box__hint-icon--error {\n color: var(--color-error); }\n\n.sg-rules-box__hint-icon--warning {\n color: var(--color-warning); }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1116);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(7),l=n(8),c=n(26),u=n(47);n(1117);var d,p,f={success:"success",error:"error",warning:"warning",info:"information",instruction:"information",hint:"information"},g=function(e){var t=e.children,n=e.className,r=e.density,d=e.title,p=e.type,g=e.tabIndex,m=e["data-e2e"],h=e["data-component"],y=i(e,["children","className","density","title","type","tabIndex","data-e2e","data-component"]),b=s.default("sg-banner-notice",p&&"sg-banner-notice--type-"+p,r&&"sg-banner-notice--density-"+r,n),_=s.default("sg-banner-notice__content"),x=t?"compact":"none";return a.createElement("div",o({className:b,"data-e2e":m,"data-component":h,tabIndex:g,role:"alert","aria-live":"assertive"},l.default(y)),a.createElement(c.default,{name:f[p],size:"20",className:"sg-banner-notice__icon",color:"white"}),a.createElement("div",{className:_},d&&a.createElement(u.default,{level:"6",density:x,className:"sg-banner-notice__title",color:"white",weight:"medium"},d),t))};g.defaultProps={density:"medium",type:"hint",tabIndex:0,"data-e2e":"banner-notification","data-component":"banner-notification"},t.default=g,d=n(0).default,p=n(0).leaveModule,d&&(d.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/banner-notification/banner-notification.tsx"),d.register(i,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/banner-notification/banner-notification.tsx"),d.register(f,"icons","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/banner-notification/banner-notification.tsx"),d.register(g,"BannerNotification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/sg-styleguide/lib/components/banner-notification/banner-notification.tsx"),p(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1118);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n/* ==========================================================================\n Banner Notification\n ========================================================================== */\n.sg-banner-notice {\n display: flex;\n align-items: center;\n position: relative;\n text-align: start; }\n .sg-banner-notice:focus {\n outline: none; }\n .sg-keyboard .sg-banner-notice:focus {\n outline: none;\n box-shadow: var(--first-level-box-shadow), var(--focus-shadow); }\n .sg-banner-notice .sg-banner-notice__title {\n padding-top: 0; }\n .sg-banner-notice .sg-banner-notice__close-icon {\n color: var(--typography-white); }\n\n.sg-banner-notice--density-small {\n padding: 10px 15px; }\n\n.sg-banner-notice--density-medium {\n padding: 10px 20px; }\n\n.sg-banner-notice__icon {\n margin-right: 10px; }\n\n.sg-banner-notice__content {\n display: flex;\n align-items: center;\n flex-direction: column;\n padding: 0;\n word-break: break-word; }\n\n.sg-banner-notice__close-icon {\n position: absolute;\n top: 15px;\n right: 20px; }\n\n/* Borders and Shadows\n ========================================================================== */\n.sg-banner-notice--border {\n border-left: 3px solid transparent; }\n\n.sg-banner-notice--shadow {\n box-shadow: var(--first-level-box-shadow); }\n\n/* Types\n ========================================================================== */\n.sg-banner-notice--type-success {\n background: var(--color-success); }\n .sg-banner-notice--type-success .sg-list__icon {\n color: var(--color-success); }\n\n.sg-banner-notice--type-error {\n background: var(--color-error); }\n .sg-banner-notice--type-error .sg-list__icon {\n color: var(--color-error); }\n\n.sg-banner-notice--type-warning {\n background: var(--color-warning); }\n .sg-banner-notice--type-warning .sg-list__icon {\n color: var(--color-warning); }\n\n.sg-banner-notice--type-instruction {\n background: var(--ocean-base); }\n .sg-banner-notice--type-instruction .sg-list__icon {\n color: var(--ocean-base); }\n\n.sg-banner-notice--type-info {\n background: var(--royal-base); }\n .sg-banner-notice--type-info .sg-list__icon {\n color: var(--royal-base); }\n\n.sg-banner-notice--type-hint {\n background: var(--color-hint); }\n .sg-banner-notice--type-hint .sg-list__icon {\n color: var(--color-hint); }\n\n@media (max-width: 1500px) {\n .sg-banner-notice .sg-banner-notice__icon {\n max-width: 20px;\n max-height: 20px;\n margin-right: 5px; }\n .sg-banner-notice__title {\n padding-bottom: 0; }\n .sg-banner-notice__content {\n padding: 0 5px; }\n .sg-banner-notice--border {\n border-width: 2px; } }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51),o=n(35);t.onPageInit=r.createAction(o.PAGE_INIT),t.onPageResize=r.createAction(o.PAGE_RESIZE)},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i,a,s=n(2),l=n(10),c=n(44),u=n(9),d=n(1121),p=function(e){var t,n="sg-optimizer-intro-section single";return void 0!==window.optimizerData.cards&&(Object.keys(window.optimizerData.cards.cards).length>1&&(n="sg-optimizer-intro-section"),t=c.filter(window.optimizerData.cards.cards,(function(t,n){if("cloudflare_optimization"!=t.optimization||0!=e.hasCloudflare)return t;delete window.optimizerData.cards.whats_new[n]}))),s.createElement(u.Section,{className:n},s.createElement(u.Flex,{padding:["none","none","medium","none"],direction:"column",gutter:"none"},s.createElement(u.TitleOne,null,l.translate("SG Optimizer"))),void 0!==t&&s.createElement(u.Carousel,{showArrows:!1,renderContent:function(e){if(void 0!==t&&void 0!==window.optimizerData.cards.whats_new)return window.optimizerData.cards.whats_new.includes(e)?s.createElement("div",{className:"label-wrapper--absolute"},s.createElement(u.Label,{size:"small",color:"success"},"New feature")):void 0}},Object.keys(t).map((function(n){return"default"==t[n].type?s.createElement(d.DefaultCard,o({},t[n],{key:n,onClick:e.enableOption})):"optimizations"==t[n].type?s.createElement(d.OptimizationsCard,o({},t[n],{key:n,onClick:e.enableOption})):void 0}))))};t.default=p,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/intro/index.tsx"),i.register(p,"Intro","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/intro/index.tsx"),a(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1122);t.DefaultCard=r.default;var o=n(1123);t.OptimizationsCard=o.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(9),l=function(e){return a.createElement(s.Card,{key:e.index,iconName:e.icon,iconColor:e.icon_color,text:e.text,title:e.title,size:"x-large",outline:"none"},void 0!==e.button&&a.createElement(s.Button,{onClick:function(t){e.onClick(e.optimization,!0),window.location.hash=e.button.link},color:e.button.color},e.button.text))};t.default=l,o=n(0).default,i=n(0).leaveModule,o&&(o.register(l,"DefaultCard","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/default.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Container,{elevation:"none",padding:"responsive",className:"features-container"},a.createElement(l.Grid,{gap:"responsive"},a.createElement(l.Title,{density:"none",level:"2",weight:"bold",color:"darkest"},s.translate("Top 3 Optimization Opportunities")),a.createElement(l.Grid,{sm:"3",gap:"responsive"},e.boxes.map((function(t,n){return a.createElement(l.Container,{key:n,padding:"responsive",elevation:"none",className:"feature-box--highlight"},a.createElement(l.Grid,{gap:"small"},a.createElement(l.Title,{level:"5",weight:"bold",density:"none"},t.title),a.createElement(l.Text,null,t.text),a.createElement("div",null,a.createElement(l.Button,{onClick:function(n){e.onClick(t.optimization,!0),window.location.hash=t.link},color:"primary",size:"small"},"Enable Now"))))})))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"OptimizationsCard","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/optimizations.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(16),d=n(9),p=n(10),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this;return window.optimizerData.network_settings.is_multisite&&!window.optimizerData.network_settings.is_network_admin||1==this.props.hideRatingOption?"":l.createElement(d.Section,null,l.createElement(d.Container,{padding:"large",className:"sg-rate"},l.createElement(d.Flex,{margin:"none",gutter:"xx-large",expand:!0},l.createElement(d.Box,{sm:"3",flex:!0,align:"center",justify:"center",className:"sg-rate--stars"},l.createElement(d.Link,{href:"https://wordpress.org/support/plugin/sg-cachepress/reviews/?rate=5#new-post",target:"_blank",style:{width:"100%"}},l.createElement(d.StarRating,{rating:5,size:"large",style:{width:"100%"}}))),l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Thanks for using SG Optimizer to make your site faster!")),l.createElement(d.Link,{href:"https://wordpress.org/support/plugin/sg-cachepress/reviews/?rate=5#new-post",target:"_blank",style:{paddingBottom:"10px"}},p.translate("Help more people optimize their sites by rating our plugin."))),l.createElement(d.Button,{size:"small",type:"link",className:"sg-button--hide",style:{color:"#a4a4a4"},onClick:function(t){return e.props.hideRating()}},p.translate("Don’t Show This Again")))))},t}(l.Component),g=function(e){return{hideRatingOption:e.Options.hide_rating}},m=function(e){return{hideRating:function(){return e(u.hideRating())}}};t.default=c.connect(g,m)(f),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(f,"Rating","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(g,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(m,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s,l,c=n(2),u=n(24),d=n(9),p=n(487),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return c.createElement(d.Notifications,a({},this.props),this.props.notifications&&this.props.notifications.map((function(e){return c.createElement(p.Notification,{notification:e,message:e.message,key:e.id})})))},t}(c.Component),g=function(e){return{notifications:e.Notifications.notifications}},m=function(e){return{}};t.default=u.connect(g,m)(f),s=n(0).default,l=n(0).leaveModule,s&&(s.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),s.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),s.register(f,"Notifications","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),s.register(g,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),s.register(m,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var l,c,u=n(2),d=n(24),p=n(16),f=n(9),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.removeNotification=function(){var e=t.props,n=e.removeNotification,r=e.notification;void 0!==t.timeout&&(clearTimeout(t.timeout),t.timeout=void 0,n({id:r.id}))},t}return i(t,e),t.prototype.componentWillMount=function(){var e=this;this.timeout=setTimeout((function(){e.removeNotification()}),4e3)},t.prototype.componentWillUnmount=function(){this.removeNotification()},t.prototype.render=function(){var e=this.props,t=e.notification,n=(e.removeNotification,s(e,["notification","removeNotification"]));return u.createElement(f.Notification,a({type:t.type,title:t.title,message:t.message,onClose:this.removeNotification},n))},t}(u.Component),m=function(e){return{notifications:e.Notifications.notifications}},h=function(e){return{removeNotification:function(t){return e(p.removeNotification(t))}}};t.default=d.connect(m,h)(g),l=n(0).default,c=n(0).leaveModule,l&&(l.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(a,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(g,"Notification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(m,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(h,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(9),d=n(16),p=n(10),f=n(1128),g=n(146),m=n(100),h=n(65),y=function(e){function t(t){var n=e.call(this,t)||this;return n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.toogleDialog=function(e){var t;n.setState(((t={})[e]=!n.state[e],t))},n.state={showUrlsDialog:!1,showCacheDialog:!1},n}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(h.Row,{title:p.translate("Dynamic Caching"),checked:this.props.options.enable_cache,name:"enable_cache",onChange:this.changeOption,hasExpand:1},p.translate("Store your content in the server’s memory for a faster access with this full-page caching solution powered by NGINX.")),1===this.props.options.enable_cache&&l.createElement(u.Flex,{gutter:"large"},l.createElement(u.Box,{sm:"12"},l.createElement(u.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(u.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(u.Box,{sm:"10"},l.createElement(u.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Manual Cache Purge")),l.createElement(u.Text,null,p.translate("Clear the Dynamic Cache for your entire website."))),l.createElement(u.Box,{sm:"2"},l.createElement(u.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.props.purgeCache},this.props.cachePurged?p.translate("Purge Cache"):p.translate("Purging ...")))),l.createElement(u.Flex,{className:"divider"}),l.createElement(h.InnerRow,{title:p.translate("Automatic Cache Purge"),checked:this.props.options.autoflush_cache,name:"autoflush_cache",onChange:this.changeOption},p.translate("Automatically perform a smart cache purge after every content modification."),"  ",l.createElement(u.Link,{onClick:function(t){return e.toogleDialog("showCacheDialog")},"aria-haspopup":"true",role:"button"}," ",p.translate("See rules"))),l.createElement(u.Flex,{className:"divider"}),l.createElement(h.InnerRow,{title:p.translate("Browser-Specific Caching"),checked:this.props.options.user_agent_header,name:"user_agent_header",onChange:this.changeOption},p.translate("We recommend you to enable this feature {{strong}}only{{/strong}} if you’re experiencing issues with plugins, generating mobile version of your site or similar functionality. Once enabled, the cache has to be generated separately for different browsers which lowers its efficiency.",{components:{strong:l.createElement("strong",null)}})),l.createElement(u.Flex,{className:"divider"}),l.createElement(h.InnerRow,{title:p.translate("Excluding URLs")},p.translate("Use this feature if you want to exclude certain parts of your website from being cached and keep them dynamic."),"  ",l.createElement(u.Link,{onClick:function(t){return e.toogleDialog("showUrlsDialog")},"aria-haspopup":"true",role:"button"}," ",p.translate("See examples"))),l.createElement(g.UrlsExclude,{updateExcludeList:this.props.updateExcludeList,excludedUrls:this.props.options.excluded_urls,addNotification:this.props.addNotification,prefix:window.optimizerData.home_url}),l.createElement(u.Flex,{className:"divider"}),l.createElement(f.default,{testUrl:this.props.testUrl})))),this.state.showUrlsDialog&&l.createElement(m.UrlsDialog,{toogleDialog:function(t){return e.toogleDialog("showUrlsDialog")}}),this.state.showCacheDialog&&l.createElement(m.CacheDialog,{toogleDialog:function(t){return e.toogleDialog("showCacheDialog")}}))},t}(l.Component),b=function(e){return{options:e.Options,cachePurged:e.Cache.cachePurged}},_=function(e){return{enableOption:function(t,n){return e(d.enableOption(t,n,!1))},disableOption:function(t,n){return e(d.disableOption(t,n,!1))},updateExcludeList:function(t){return e(d.updateExcludeList(t))},purgeCache:function(){return e(d.purgeCache())},testUrl:function(t){return e(d.testUrl(t))},addNotification:function(t){return e(d.addNotification(t))}}};t.default=c.connect(b,_)(y),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),a.register(y,"DynamicCache","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),a.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),a.register(_,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(9),u=n(10),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeyPressTestCache=function(e){"Enter"==e.key&&n.testUrlCache()},n.handleTestUrlInputChange=function(e){n.setState({testInputValue:e.target.value})},n.testUrlCache=function(){var e=n.state.testInputValue.replace(window.optimizerData.home_url,"");n.props.testUrl(e)},n.state={testInputValue:""},n}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(c.Flex,{direction:"row",gutter:"large",margin:"medium"},l.createElement(c.Box,{sm:"12"},l.createElement(c.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Test URLs for Cache Status")),l.createElement(c.Text,null,u.translate("Check if the Dynamic Cache is working on a certain URL. Especially useful to make sure your Exclude list is working the way it should.")))),l.createElement(c.Flex,{direction:"row",gutter:"large",margin:"medium"},l.createElement(c.Box,{sm:"10"},l.createElement(c.Input,{type:"text",size:"medium",prefix:window.optimizerData.home_url,value:this.state.testInputValue,onChange:function(t){return e.handleTestUrlInputChange(t)},onKeyPress:this.handleKeyPressTestCache})),l.createElement(c.Box,{sm:"2"},l.createElement(c.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.testUrlCache},u.translate("Test")))))},t}(l.Component);t.default=d,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cache-tester/index.tsx"),a.register(d,"CacheTester","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cache-tester/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(44),u=n(9),d=n(10),p=function(e){function t(t){var n=e.call(this,t)||this;return n.transformExcludedItems=function(){var e=[];return n.props.excludedItems.map((function(t){e.push({value:t})})),e.reverse()},n.handleKeyPressExcludeList=function(e){"Enter"==e.key&&n.updateExcludeList()},n.handleExcludeInputChange=function(e){n.setState({excludeInputValue:e.target.value})},n.isValidUrl=function(e){var t=new RegExp(n.props.regex);return null!==e.match(t)},n.updateExcludeList=function(){if(-1!==n.props.excludedItems.indexOf(n.state.excludeInputValue))return n.props.addNotification({id:n.state.excludeInputValue,type:"error",message:d.translate("This item already exists in exclude list.")}),!1;if(c.isEmpty(n.state.excludeInputValue))return n.props.addNotification({id:n.state.excludeInputValue+"error",type:"error",message:d.translate("You must input a class name.")}),!1;var e=n.state.excludeInputValue;if(n.props.regex){if(!1===n.isValidUrl(n.state.excludeInputValue))return n.props.addNotification({id:n.state.excludeInputValue,type:"error",message:d.translate("Please provide correct URL.")}),!1;var t=new RegExp(n.props.regex);e=e.replace(t,"//$1")}var r=n.props.excludedItems;r.push(e),n.props.updateExcludeList(r),n.setState({excludeInputValue:""})},n.deleteItem=function(e){var t=n.props.excludedItems,r=t.indexOf(e);t.splice(r,1),n.props.updateExcludeList(t)},n.getColumns=function(){return[{header:"",accessor:"value",render:function(e){return l.createElement(u.Flex,{margin:"none",gutter:"none"},l.createElement(u.Text,{weight:"bold"},e))}},{header:"",render:function(e,t){return l.createElement(u.IconButton,{icon:"trash",shape:"circle",onClick:function(e){return n.deleteItem(t.value)}})},style:{textAlign:"right"}}]},n.state={excludeInputValue:""},n}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(u.Flex,{gutter:"large",direction:"row",margin:"small"},l.createElement(u.Box,{sm:"10"},l.createElement(u.Input,{type:"text",size:"medium",prefix:this.props.prefix,value:this.state.excludeInputValue,onChange:function(t){return e.handleExcludeInputChange(t)},onKeyPress:this.handleKeyPressExcludeList})),l.createElement(u.Box,{sm:"2"},l.createElement(u.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.updateExcludeList},this.props.buttonText?this.props.buttonText:d.translate("Exclude")))),this.props.excludedItems.length>0&&l.createElement(u.Flex,{gutter:"large",direction:"column"},l.createElement(u.Box,null,l.createElement(u.Table,{data:this.transformExcludedItems(),columns:this.getColumns()}))))},t}(l.Component);t.default=p,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),a.register(p,"SimpleExclude","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(9),u=n(10),d=n(1131),p=function(e){function t(t){var n=e.call(this,t)||this;return n.transformExcludedUrls=function(){var e=[];return n.props.excludedUrls.map((function(t){e.push({value:d.unTrailingSlashIt(window.optimizerData.home_url)+t})})),e.reverse()},n.handleKeyPressExcludeList=function(e){"Enter"==e.key&&n.updateExcludeList()},n.handleExcludeInputChange=function(e){n.setState({excludeInputValue:e.target.value})},n.updateExcludeList=function(){var e=n.getAndValidateExcludeUrl();if(!1!==e){var t=n.props.excludedUrls;t.push(e),n.props.updateExcludeList(t),n.setState({excludeInputValue:""})}},n.deleteUrl=function(e){var t=e.replace(window.optimizerData.home_url,"/"),r=n.props.excludedUrls,o=r.indexOf(t);r.splice(o,1),n.props.updateExcludeList(r)},n.getColumns=function(){return[{header:"",accessor:"value",render:function(e){return l.createElement(c.Flex,{margin:"none",gutter:"none"},l.createElement(c.Text,{weight:"bold"},e))}},{header:"",render:function(e,t){return l.createElement(c.IconButton,{icon:"trash",shape:"circle",onClick:function(e){return n.deleteUrl(t.value)}})},style:{textAlign:"right"}}]},n.state={excludeInputValue:""},n}return i(t,e),t.prototype.getAndValidateExcludeUrl=function(){var e=new RegExp("^/+|"+window.optimizerData.home_url,"g"),t=this.state.excludeInputValue.replace(e,"");return"*"!==t.slice(-1)&&(t=d.trailingSlashIt(t)),"/"!==t&&(t="/"+t),-1!==this.props.excludedUrls.indexOf(t)?(this.props.addNotification({id:t,type:"error",message:u.translate("This URL already exists in exclude list.")}),!1):t},t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(c.Flex,{gutter:"large",direction:"row",margin:"none"},l.createElement(c.Box,{sm:"10"},l.createElement(c.Input,{type:"text",size:"medium",prefix:this.props.prefix,value:this.state.excludeInputValue,onChange:function(t){return e.handleExcludeInputChange(t)},onKeyPress:this.handleKeyPressExcludeList})),l.createElement(c.Box,{sm:"2"},l.createElement(c.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.updateExcludeList},u.translate("Exclude")))),this.props.excludedUrls.length>0&&l.createElement(c.Flex,{gutter:"large",direction:"column",margin:"medium"},l.createElement(c.Box,null,l.createElement(c.Table,{data:this.transformExcludedUrls(),columns:this.getColumns()}))))},t}(l.Component);t.default=p,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),a.register(p,"UrlsExclude","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";var r=function e(t){return t.endsWith("/")||t.endsWith("\\")?e(t.slice(0,-1)):t},o=function(e){return r(e)+"/"};e.exports=o,e.exports.trailingSlashIt=o,e.exports.unTrailingSlashIt=r},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Check Your Website!",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Defering render-blocking JavaScript may cause issues with scripts that require certain order of execution. This is why we advise you to check the frontend of your website after you enable this optimization."))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("If you notice issues with certain functionality, use the Exclude functionality to keep those scripts loading in a render-blocking manner."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"AsyncDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/async-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Automatic Purge Rule",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleDialog},s.translate("Close")))},a.createElement(l.Flex,{gutter:"none",margin:"none"},a.createElement(l.Text,{align:"left"},s.translate("Purge your installation's entire Dynamic Cache or select parts in order to achieve the best hit-to-cache ratio for your account. Here are the plugin's purge rules:"))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Full Purge on page, posts, and category deletion, plugin and theme activation, deactivation, or update, and on WordPress core updates."))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Specific URL Purge on comment actions and page, post, and category updates."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"CacheDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cache-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Important",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none",margin:"none"},a.createElement(l.Text,{align:"left"},"manual"==e.type&&s.translate("You’re switching to PHP %(version)s manually and you will stay on that version until you change it to a newer one. In case you experience any issues after the update, switch back the PHP version from your {{strong}}cPanel{{/strong}} > {{strong}}PHP Version Manager{{/strong}} tool.",{args:{version:e.version},components:{strong:a.createElement("strong",null)}}),"managed"==e.type&&s.translate("You’re about to switch to Managed PHP service. This means that SiteGround will automatically update your PHP version once we are sure there’s a better, safer and more stable version."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"PhpDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/php-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Force HTTPS",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:e.toogleConfirm,color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none",margin:"none"},a.createElement(l.Text,{align:"left"},s.translate("In order to force HTTPS on your site, we will automatically update your database replacing all insecure links. In addition to that, we will add a rule in your .htaccess file, forcing all requests to go through encrypted connection."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"SslDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/ssl-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Excluding URLs",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleDialog},s.translate("Close")))},a.createElement(l.Flex,{gutter:"none",margin:"none"},a.createElement(l.Text,{align:"left"},s.translate('You can exclude full or partial URLs using "*" as a wildcard. For example:'))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("{{strong}}www.site.com/parent-page/sub-page{{/strong}} will exclude only that single URL.",{components:{strong:a.createElement("strong",null)}}))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate('{{strong}}www.site.com/parent-page/*{{/strong}} will exclude all sub-pages of "parent-page".',{components:{strong:a.createElement("strong",null)}}))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"UrlsDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/urls-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Delete All WebP Files",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("This will delete all WebP files in your uploads folder! In case you need them, you will have to regenerate them again or restore that folder from a backup."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"DeleteWebpDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/delete-webp-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Re-generate All WebP Files",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Doing this will delete all WebP files in your uploads folder and generate them anew!"))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"RegenerateWebpDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/regenerate-webp-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Check Your Website!",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Combining JavaScript files may cause issues with scripts that require certain order of execution. This is why we advise you to check the frontend of your website after you enable this optimization."))),a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("If you notice issues with parts of your site, use the Exclude functionality to keep those scripts separate from the combination."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"JsCombineDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/js-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",title:"Warning for CDN Users",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("If you're using CloudFlare or other CDN provider, please keep this optimization disabled and check if you can have WebP enabled by your CDN provider."))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"EnableWebpDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/enable-webp-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",size:"large",title:e.title,icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleDialog},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm(e.name)},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none",align:"left"},a.createElement(l.Box,{sm:"6"},a.createElement(l.RadioButton,{key:"ultrafast",value:1,align:"flex-start",name:e.statusName,size:"medium",onChange:function(t){return e.changeStatus(e.statusName,t)},checked:1==e.status?1:0},s.translate("Enabled"))),a.createElement(l.Box,{sm:"6"},a.createElement(l.RadioButton,{key:"standard",value:0,align:"flex-start",name:e.statusName,size:"medium",onChange:function(t){return e.changeStatus(e.statusName,t)},checked:0==e.status?1:0},s.translate("Disable")))),a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Notice,{type:"instruction",background:"light",contentSize:"expanded",shadow:!0},a.createElement(l.Text,{align:"left"},e.message))),1==e.status&&a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Box,{sm:"12"},a.createElement(l.Slider,{max:300,min:15,step:5,value:e.interval,label:"s",onChange:function(t){return e.changeInterval(e.intervalName,t)}}),a.createElement(l.Text,{align:"center"},s.translate("Select Heartbeat Frequency")))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"HeartbeatDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/heartbeat-control-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Dialog,{state:"info",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},s.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},s.translate("Confirm")))},a.createElement(l.Flex,{gutter:"none"},a.createElement(l.Text,{align:"left"},s.translate("Your Cloudflare account may have page rules set that might affect the work of our integration. SG Optimizer will {{strong}}delete all Page Rules{{/strong}} and replace that functionality with {{strong}}Cloudflare workers{{/strong}}. Note, that Cloudflare workers are free up to 100 000 requests a day and if you go past that number you may need to upgrade your account in order to keep using this functionality.",{components:{strong:a.createElement("strong",null)}}))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"CloudflareDialog","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cloudflare-dialog.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(44),p=n(9),f=n(16),g=n(100),m=n(489),h=n(61),y=n(490),b=n(1144),_=n(1149),x=n(1150),v=n(491),M=function(e){function t(t){var n=e.call(this,t)||this;return n.toogleSslDialog=function(){n.setState({showSslDialog:!n.state.showSslDialog})},n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.toogleDatabaseOptimization=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableDatabaseOptimization(e.name,t):n.props.disableDatabaseOptimization(e.name,t)},n.toogleSsl=function(){n.props.options.ssl_enabled?(n.props.disableSsl("ssl_enabled"),n.props.disableOption("fix_insecure_content")):(n.props.enableSsl("ssl_enabled"),n.setState({showSslDialog:!1}))},n.state={showSslDialog:!1},n}return i(t,e),t.prototype.render=function(){var e=this;return 1===window.optimizerData.network_settings.is_multisite&&0===window.optimizerData.network_settings.is_network_admin&&!0,l.createElement(h.default,null,d.includes(window.optimizerData.modules,"ssl")&&l.createElement(l.Fragment,null,l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},1===this.props.isLoading&&l.createElement(p.Loader,{style:{position:"absolute"}}),l.createElement(p.Box,{sm:"10"},l.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Enable HTTPS")),l.createElement(p.Text,null,u.translate("Configures your site to work correctly via HTTPS and forces a secure connection to your site."))),l.createElement(p.Box,{sm:"2",className:"right--actions"},l.createElement(p.Switch,{size:"small",checked:this.props.options.ssl_enabled,name:"ssl_enabled","aria-haspopup":!0,"aria-expanded":1==this.props.options.ssl_enabled,onChange:function(t){return t.target.checked?e.toogleSslDialog():e.toogleSsl()}}))),1===this.props.options.ssl_enabled&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(p.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(p.Box,{sm:"10"},l.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Fix Insecure Content")),l.createElement(p.Text,null,u.translate("Enable this option in case you’re getting insecure content errors on your website. We will dynamically rewrite insecure requests for resources coming from your site"))),l.createElement(p.Box,{sm:"2",className:"right--actions"},l.createElement(p.Switch,{size:"small",checked:this.props.options.fix_insecure_content,name:"fix_insecure_content",onChange:function(t){return e.changeOption(t.target,!0)}})))))),l.createElement(p.Flex,{className:"divider"})),l.createElement(b.default,null),l.createElement(_.default,{dns_prefetch:this.props.options.dns_prefetch,dns_prefetch_urls:this.props.options.dns_prefetch_urls,changeOption:this.changeOption,updateExcludes:this.props.updateExcludes,addNotification:this.props.addNotification}),l.createElement(x.default,{checked:this.props.options.database_optimization,toogleOptimization:this.toogleDatabaseOptimization}),d.includes(window.optimizerData.modules,"phpchecker")&&l.createElement(m.default,null),l.createElement(v.default,{checked:this.props.options.enable_gzip_compression,changeOption:this.changeOption}),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{checked:this.props.options.enable_browser_caching,changeOption:this.changeOption}),this.state.showSslDialog&&l.createElement(g.SslDialog,{toogleClose:this.toogleSslDialog,toogleConfirm:this.toogleSsl}))},t}(l.Component),w=function(e){return{options:e.Options,isLoading:e.Options.isLoading}},z=function(e){return{enableOption:function(t,n){return e(f.enableOption(t,n,!1))},disableOption:function(t,n){return e(f.disableOption(t,n,!1))},enableDatabaseOptimization:function(t,n){return e(f.enableDatabaseOptimization(t,n,!1))},disableDatabaseOptimization:function(t,n){return e(f.disableDatabaseOptimization(t,n,!1))},addNotification:function(t){return e(f.addNotification(t))},updateExcludes:function(t,n){return e(f.updateExcludes(t,n))},enableSsl:function(t){return e(f.enableSsl(t))},disableSsl:function(t){return e(f.disableSsl(t))}}};t.default=c.connect(w,z)(M),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),a.register(M,"EnvironmentOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),a.register(w,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),a.register(z,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(44),d=n(9),p=n(16),f=n(10),g=n(1145),m=n(65),h=n(100),y=function(e){function t(t){var n=e.call(this,t)||this;return n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.changeStatus=function(e,t){var r;n.setState(((r={})[e]=t.target.value,r))},n.changeInterval=function(e,t){var r;n.setState(((r={})[e]=t,r))},n.toogleDialog=function(e){var t;n.setState(((t={})[e]=!n.state[e],t))},n.toogleConfirm=function(e){var t,r=n.getOptions(e),o="heartbeat_"+r.option+"_status",i="heartbeat_"+r.option+"_interval";1===parseInt(n.state[r.status])?n.props.enableOption(o,!1):n.props.disableOption(o,!1),n.props.changeOption(i,n.state[r.interval]),n.setState(((t={})[r.dialog]=!n.state[r.dialog],t))},n.getOptions=function(e){var t={dashboard:{title:f.translate("WordPress Admin Pages"),dialog:"showDashboardDialog",status:"dashboardStatus",interval:"dashboardInterval",option:"dashboard",message:f.translate("Select whether the Heartbeat API to work or not on your {{strong}}WordPress Admin Pages{{/strong}}. Unless you rely on it to execute scheduled tasks, we recommend to keep it disabled.",{components:{strong:l.createElement("strong",null)}})},post:{title:f.translate("Post and Page Edit"),dialog:"showPostDialog",status:"frontendStatus",interval:"frontendInterval",option:"post",message:f.translate("Select whether the WordPress Heartbeat API to work or not on your {{strong}}Post and Page Edit{{/strong}} screens. We recommend that you keep it enabled at 180 seconds.",{components:{strong:l.createElement("strong",null)}})},frontend:{title:f.translate("Site Frontend"),dialog:"showFrontendDialog",status:"editStatus",interval:"editInterval",option:"frontend",message:f.translate("Select whether the WordPress Heartbeat API to work or not on your {{strong}}Site Frontend{{/strong}}. Unless you rely on it to execute scheduled tasks, we recommend to keep it disabled.",{components:{strong:l.createElement("strong",null)}})}};return!1===e?t:t[e]},n.getMessage=function(e){var t="heartbeat_"+e.option+"_status",r="heartbeat_"+e.option+"_interval";return 0===parseInt(n.props.options[t])?f.translate("Disabled"):n.props.options[r]+"s"},n.state={showDashboardDialog:!1,showPostDialog:!1,showFrontendDialog:!1,dashboardStatus:0,frontendStatus:0,editStatus:0,dashboardInterval:0,frontendInterval:0,editInterval:0,keys:["status","interval"]},n}return i(t,e),t.prototype.componentDidUpdate=function(e){var t=this,n=this.getOptions(!1);u.map(n,(function(n){u.map(t.state.keys,(function(r){var o,i="heartbeat_"+n.option+"_"+r;t.props.options[i]!==e.options[i]&&t.setState(((o={})[n[r]]=t.props.options[i],o))}))}))},t.prototype.render=function(){var e=this;return l.createElement(l.Fragment,null,l.createElement(m.Row,{title:f.translate("WordPress Heartbeat Optimization"),checked:this.props.options.heartbeat_control,name:"heartbeat_control",onChange:function(t){return e.changeOption(t,!0)},hasExpand:1},f.translate("Enable this option to allow SG Optimizer to control the WordPress Heartbeat API.")),1===this.props.options.heartbeat_control&&l.createElement(l.Fragment,null,l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Notice,{type:"instruction",background:"light",contentSize:"expanded",shadow:!1},f.translate("By default, the WordPress Heartbeat API checks every 15 seconds on your post edit pages and every 60 seconds on your dashboard and frontend whether there is a scheduled tasks to be executed. This can generate high CPU usage if you leave browser tabs in which you're logged to WordPress opened for a longer period of time. With this option, you can make the checks run less frequently or completely disable them.")))),l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"medium",direction:"row",style:{padding:"0",margin:"0"}},u.map(this.getOptions(!1),(function(t,n){return l.createElement(d.Box,{sm:"4",key:n},l.createElement(g.default,{label:f.translate(t.title)},e.getMessage(t),l.createElement(d.IconButton,{icon:"edit",shape:"circle",onClick:function(n){return e.toogleDialog(t.dialog)}})))})))))),l.createElement(d.Flex,{className:"divider"}),u.map(this.getOptions(!1),(function(t,n){return e.state[t.dialog]&&l.createElement(h.HeartbeatControl,{name:n,key:n,title:t.title,message:t.message,toogleDialog:function(n){return e.toogleDialog(t.dialog)},changeStatus:e.changeStatus,confirm:e.toogleConfirm,changeInterval:e.changeInterval,toogleConfirm:e.toogleConfirm,statusName:t.status,status:e.state[t.status],interval:e.state[t.interval],intervalName:t.interval})})))},t}(l.Component),b=function(e){return{options:e.Options}},_=function(e){return{enableOption:function(t,n){return e(p.enableOption(t,n,!1))},disableOption:function(t,n){return e(p.disableOption(t,n,!1))},changeOption:function(t,n){return e(p.changeOption(t,n))},addNotification:function(t){return e(p.addNotification(t))}}};t.default=c.connect(b,_)(y),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),a.register(y,"Heartbeat_Control","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),a.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),a.register(_,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1146);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);n(1147);var a,s,l=n(9),c=function(e){var t=e.children,n=e.label;o(e,["children","label"]);return i.createElement("div",{className:"form-field-wrapper","data-e2e":"form-field-wrapper"},i.createElement(l.Text,{color:"dark",size:"large",align:"left",weight:"bold",tag:"span",className:"sg-form-label"},n),i.createElement("div",{className:"form-field-wrapper__content"},t))};t.default=c,a=n(0).default,s=n(0).leaveModule,a&&(a.register(o,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),a.register(c,"FormFieldWrapper","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1148);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* stylelint-disable */\n\n.form-field-wrapper__content {\n height: 40px;\n display: flex;\n align-items: center; }\n",""]),t.locals={"fonts-groups":"fontFamily | fontSize | fontWeight | lineHeight | fontAspectRatio | fontSizeLetterWidth","fontFamily-font-family-main":"Roboto","fontSize-font-size-x-small":"11px","fontSize-font-size-small":"12px","fontSize-font-size-medium":"14px","fontSize-font-size-large":"16px","fontSize-font-size-x-large":"20px","fontWeight-font-weight-light":"300","fontWeight-font-weight-regular":"400","fontWeight-font-weight-medium":"500","fontWeight-font-weight-bold":"600","fontWeight-font-weight-extra-bold":"700","lineHeight-line-height-size-small":"17px","lineHeight-line-height-size-medium":"19px","lineHeight-line-height-size-large":"21px","lineHeight-line-height-size-x-large":"25px","fontAspectRatio-font-aspect-ratio":"0.42","fontSizeLetterWidth-font-size-small-letter-width":"5.04px","fontSizeLetterWidth-font-size-medium-letter-width":"5.88px","fontSizeLetterWidth-font-size-large-letter-width":"6.72px","fontSizeLetterWidth-font-size-x-large-letter-width":"8.4px","density-groups":"densityTitle","densityTitle-title-density-airy":"32px","densityTitle-title-density-comfortable":"22px","densityTitle-title-density-cozy":"16px","densityTitle-title-density-compact":"2px","densityTitle-title-density-none":"0","space-groups":"spacingFactor | spaces","spacingFactor-spacing-factor":"5px","spaces-space-xx-small":"5px","spaces-space-x-small":"10px","spaces-space-small":"15px","spaces-space-medium":"20px","spaces-space-large":"30px","spaces-space-x-large":"40px","spaces-space-xx-large":"60px","border-groups":"borderRadius","borderRadius-radius-small":"2px","borderRadius-radius-medium":"3px","borderRadius-radius-large":"5px","borderRadius-radius-x-large":"10px","borderRadius-radius-full":"50%","shadow-groups":"boxShadow","other-groups":"constants","constants-page-content-width":"1240px","constants-drawer-width":"260px","constants-prefix-postfix-max-allowed-letters":"18","constants-input-addon-height":"38px","constants-header-height":"80px","constants-header-height-mobile":"60px","constants-grid-buffer-for-ie":"1px","constants-timing-small":"0.3s","constants-timing-medium":"0.7s","constants-ease":"ease","responsive-groups":"mediaQuery","mediaQuery-max-phone-size":"800px","mediaQuery-media-query-max-phone":'"max-width: 800px"',"mediaQuery-media-query-min-tablet":'"min-width: 801px"',"mediaQuery-media-query-max-tablet":'"max-width: 1500px"',"mediaQuery-media-query-min-large-tablet":'"min-width: 1024px"',"mediaQuery-media-query-max-large-tablet":'"max-width: 1199px"',"mediaQuery-media-query-min-desktop":'"min-width: 1501px"',"mediaQuery-media-query-ie10plus":'"screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)"',"z-index-group":"zIndex","zIndex-drawer":"10","zIndex-dropdown":"20","zIndex-sticky":"30","zIndex-fixed":"40","zIndex-modalBackground":"60","zIndex-modal":"70","zIndex-loadingModal":"80","zIndex-contextWraper":"90","zIndex-notification":"100","zIndex-popover":"110","zIndex-tooltip":"130"}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=n(65),u=n(146),d=n(221),p=function(e){return a.createElement(a.Fragment,null,a.createElement(c.Row,{title:s.translate("DNS Pre-fetch for External Domains"),checked:e.dns_prefetch,name:"dns_prefetch",onChange:e.changeOption},s.translate("With this functionality you can enable the DNS pre-fetching for external domains. Doing this will save DNS lookup for resources loaded from these domains.")),1===e.dns_prefetch&&a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{gutter:"none",background:"light",margin:"none",direction:"column",style:{paddingBottom:"20px"}},a.createElement(d.default,{margin:"medium"},s.translate("Add only your domain names without http:// or https:// - DNS prefetching will work for both")),a.createElement(u.SimpleExclude,{updateExcludeList:function(t,n,r){return e.updateExcludes("dns_prefetch_urls",t)},excludedItems:e.dns_prefetch_urls,addNotification:e.addNotification,buttonText:s.translate("Add"),regex:"(?:(?:https?:)?(?:\\/\\/)(?:www\\.|(?!www)))?((?:.*?)\\.(?:[a-zA-Z\\d-]+){2,})"})))),a.createElement(l.Flex,{className:"divider"}))};t.default=p,o=n(0).default,i=n(0).leaveModule,o&&(o.register(p,"DNSPrefetch","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=n(65),u=function(e){return a.createElement(a.Fragment,null,a.createElement(c.Row,{title:s.translate("Scheduled Database Maintenance"),checked:e.checked,name:"database_optimization",onChange:e.toogleOptimization},s.translate("Enable this option to regularly cleanup your database and keep it small and optimized.")),a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},a.createElement(l.Notice,{type:"instruction",background:"light",contentSize:"expanded",shadow:!1,title:s.translate("Enabling this optimization will perform these tasks once a week:")},a.createElement(l.List,{color:"dark","data-e2e":"list",density:"medium",justify:"center",orientation:"vertical",size:"small"},a.createElement(l.ListItem,{icon:"dot"},s.translate("Perform Database Optimization for MyISAM tables")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all automatically created post and page drafts")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all page and post revisions")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all posts and pages in your Trash")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all comments marked as Spam")),a.createElement(l.ListItem,{icon:"dot"},s.translate("Delete all expired Transients"))))))),a.createElement(l.Flex,{className:"divider"}))};t.default=u,o=n(0).default,i=n(0).leaveModule,o&&(o.register(u,"DatabaseOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/database-optimization/index.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(44),p=n(9),f=n(16),g=n(100),m=n(61),h=n(146),y=n(220),b=n(221),_=function(e){function t(t){var n=e.call(this,t)||this;return n.toogleAsyncDialog=function(){n.setState({showAsyncDialog:!n.state.showAsyncDialog})},n.toogleAsync=function(){n.props.options.optimize_javascript_async?n.props.disableOption("optimize_javascript_async",!0):(n.props.enableOption("optimize_javascript_async",!0),n.setState({showAsyncDialog:!1}))},n.toogleJsCombineDialog=function(){n.setState({showJsCombineDialog:!n.state.showJsCombineDialog})},n.toogleJsCombination=function(){n.props.options.combine_javascript?n.props.disableOption("combine_javascript",!0):(n.props.enableOption("combine_javascript",!0),n.props.disableOption("combine_javascript_error",!1),n.setState({showJsCombineDialog:!1}))},n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.openExclude=function(e){var t;n.setState(((t={})[e]=!n.state[e],t))},n.updateExclude=function(e,t,r){var o;n.props.updateExcludes(e,t),n.setState(((o={})[r]=!0,o))},n.state={showMinifyCssExclude:!1,showCombineCssExclude:!1,showMinifyJavascriptExclude:!1,showCombineJavascriptExclude:!1,showAsyncJavascriptExclude:!1,showHtmlMinifyExclude:!1,showAsyncDialog:!1,showJsCombineDialog:!1},n}return i(t,e),t.prototype.filterSelectedValues=function(e,t){return e.length?e.filter((function(e){return t.some((function(t){return e===t.value}))})):e},t.prototype.render=function(){var e=this,t=d.filter(this.props.jsAssets,{is_minified:0}),n=(d.filter(this.props.jsAssets,{in_footer:0}),d.filter(this.props.cssAssets,{is_minified:0})),r=this.filterSelectedValues(this.props.options.minify_javascript_exclude,t),o=this.filterSelectedValues(this.props.options.async_javascript_exclude,this.props.jsAssets),i=this.filterSelectedValues(this.props.options.minify_css_exclude,n),a=this.filterSelectedValues(this.props.options.combine_css_exclude,this.props.cssAssets),s=this.filterSelectedValues(this.props.options.combine_javascript_exclude,this.props.jsAssets);return l.createElement(m.default,null,l.createElement(y.default,{title:u.translate("Minify the HTML Output"),checked:this.props.options.optimize_html,name:"optimize_html",onChange:this.changeOption},u.translate("Removes unnecessary characters from your HTML output saving data and improving your site speed. "),!!this.props.options.optimize_html&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showHtmlMinifyExclude")},"aria-expanded":!!this.state.showHtmlMinifyExclude}," ",u.translate("Exclude URLs from HTML Minification"))),1===this.props.options.optimize_html&&(this.props.options.minify_html_exclude.length||this.state.showHtmlMinifyExclude)&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column",style:{paddingBottom:"20px"}},l.createElement(b.default,{margin:"medium",title:u.translate("Exclude URLs from HTML Minification")},u.translate("With this functionality, you can exclude different pages from HTML minification.")),l.createElement(h.UrlsExclude,{updateExcludeList:function(t,n,r){return e.updateExclude("minify_html_exclude",t,"showHtmlMinifyExclude")},excludedUrls:this.props.options.minify_html_exclude,addNotification:this.props.addNotification,prefix:window.optimizerData.home_url})))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Minify JavaScript Files"),checked:this.props.options.optimize_javascript,name:"optimize_javascript",onChange:this.changeOption},u.translate("Minify your JavaScript files in order to reduce their size and reduce the number of requests to the server. "),!!this.props.options.optimize_javascript&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showMinifyJavascriptExclude")},"aria-expanded":!!this.state.showMinifyJavascriptExclude}," ",u.translate("Exclude from JavaScript Minification"))),1===this.props.options.optimize_javascript&&(r.length||this.state.showMinifyJavascriptExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"minify_javascript_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:t,optionValue:"value",optionLabel:"title",selectedValue:r,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("minify_javascript_exclude",t,"showMinifyJavascriptExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Combine JavaScript Files"),checked:this.props.options.combine_javascript,name:"combine_javascript",hasPopup:1,onChange:function(t){return 0===e.props.options.combine_javascript?e.toogleJsCombineDialog():e.toogleJsCombination()}},u.translate("Combine your JavaScript files in order to reduce the number of requests to the server."),!!this.props.options.combine_javascript&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showCombineJavascriptExclude")},"aria-expanded":!!this.state.showCombineJavascriptExclude}," ",u.translate("Exclude from JavaScript Combination"))),1===this.props.options.combine_javascript_error&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"error",background:"light",contentSize:"expanded",shadow:!1,title:u.translate("JAVASCRIPT COMBINATION DISABLED")},u.translate("We have detected that a script is generating uniquely named files which results in our combined assets taking up huge amount of disk space. Please, exclude any scripts that generate unique JS code per page or per visit in order to avoid this from happening again.")))),1===this.props.options.combine_javascript&&(s.length||this.state.showCombineJavascriptExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"combine_javascript_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:this.props.jsAssets,optionValue:"value",optionLabel:"title",selectedValue:s,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("combine_javascript_exclude",t,"showCombineJavascriptExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Defer Render-blocking JS"),checked:this.props.options.optimize_javascript_async,name:"optimize_javascript_async",hasPopup:1,onChange:function(t){return 0===e.props.options.optimize_javascript_async?e.toogleAsyncDialog():e.toogleAsync()}},u.translate("Defer loading of render-blocking JavaScript files for faster initial site load. "),!!this.props.options.optimize_javascript_async&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showAsyncJavascriptExclude")},"aria-expanded":!!this.state.showAsyncJavascriptExclude}," ",u.translate("Exclude from Loading JS Files Asynchronously"))),1===this.props.options.optimize_javascript_async&&(o.length||this.state.showAsyncJavascriptExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"async_javascript_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:this.props.jsAssets,optionValue:"value",optionLabel:"title",selectedValue:o,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("async_javascript_exclude",t,"showAsyncJavascriptExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Minify CSS Files"),checked:this.props.options.optimize_css,name:"optimize_css",onChange:this.changeOption},u.translate("Minify your CSS files in order to reduce their size and reduce the number of requests to the server. "),!!this.props.options.optimize_css&&!!n.length&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showMinifyCssExclude")},"aria-expanded":!!this.state.showMinifyCssExclude}," ",u.translate("Exclude From CSS Minification"))),1===this.props.options.optimize_css&&(i.length||this.state.showMinifyCssExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"minify_css_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:n,optionValue:"value",optionLabel:"title",selectedValue:i,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("minify_css_exclude",t,"showMinifyCssExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Combine CSS Files"),checked:this.props.options.combine_css,name:"combine_css",onChange:this.changeOption},u.translate("Combine multiple CSS files into one to lower the number of requests your site generates. "),!!this.props.options.combine_css&&l.createElement(p.Link,{onClick:function(t){return e.openExclude("showCombineCssExclude")},"aria-expanded":!!this.state.showCombineCssExclude}," ",u.translate("Exclude from CSS Combination"))),1===this.props.options.combine_css&&(a.length||this.state.showCombineCssExclude)&&l.createElement(p.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(p.Box,{sm:"12"},l.createElement(p.MultipleDropdown,{searchable:!0,name:"combine_css_exclude",placeholder:"Place select from the list below or type the name of the script you wish to exclude",options:this.props.cssAssets,optionValue:"value",optionLabel:"title",selectedValue:a,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("combine_css_exclude",t,"showCombineCssExclude")}}))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Web Fonts Optimization"),checked:this.props.options.optimize_web_fonts,name:"optimize_web_fonts",onChange:this.changeOption},u.translate("With this optimization we're changing the default way to load Google fonts in order to save HTTP requests. In addition to that, all other fonts that your website uses will be properly preloaded so browsers take the least possible amount of time to cache and render them.")),1===this.props.options.optimize_web_fonts&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column",style:{paddingBottom:"20px"}},l.createElement(b.default,{margin:"medium",title:u.translate("Fonts Preloading")},u.translate("With this optiomization you can preload the fonts you’re using for faster rendering and better site performance. Make sure you preload only the fonts you are actually using.")),l.createElement(h.SimpleExclude,{updateExcludeList:function(t,n,r){return e.updateExclude("fonts_preload_urls",t,"showHtmlMinifyExclude")},excludedItems:this.props.options.fonts_preload_urls,addNotification:this.props.addNotification,buttonText:u.translate("Preload")})))),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Remove Query Strings From Static Resources"),checked:this.props.options.remove_query_strings,name:"remove_query_strings",onChange:this.changeOption},u.translate("Removes version query strings from your static resources improving the caching of those resources.")),l.createElement(p.Flex,{className:"divider"}),l.createElement(y.default,{title:u.translate("Disable Emojis"),checked:this.props.options.disable_emojis,name:"disable_emojis",onChange:this.changeOption},u.translate("Enable to prevent WordPress from automatically detecting and generating emojis in your pages.")),this.state.showAsyncDialog&&l.createElement(g.AsyncDialog,{toogleConfirm:this.toogleAsync}),this.state.showJsCombineDialog&&l.createElement(g.JsCombineDialog,{toogleConfirm:this.toogleJsCombination}))},t}(l.Component),x=function(e){return{options:e.Options,jsAssets:e.Options.assets.scripts,cssAssets:e.Options.assets.styles}},v=function(e){return{enableOption:function(t,n,r){return e(f.enableOption(t,n,r))},disableOption:function(t,n,r){return e(f.disableOption(t,n,r))},addNotification:function(t){return e(f.addNotification(t))},updateExcludes:function(t,n){return e(f.updateExcludes(t,n))}}};t.default=c.connect(x,v)(_),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),a.register(_,"FrontendOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),a.register(x,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),a.register(v,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(44),p=n(9),f=n(16),g=n(61),m=n(146),h=n(1153),y=n(492),b=n(65),_=function(e){function t(t){var n=e.call(this,t)||this;return n.stopImagesOptimization=function(){clearInterval(n.interval),n.interval="",n.props.stopImagesOptimization()},n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.updateLazyLoadExcludeList=function(e,t,r){n.props.updateExcludes(e,t)},n.interval="",n}return i(t,e),t.prototype.componentDidUpdate=function(){1==this.props.options.image_optimization_status?(clearInterval(this.interval),this.interval=""):this.interval||0!=this.props.options.image_optimization_status||(this.interval=setInterval(this.props.checkImageOptimizationStatus,1e4))},t.prototype.componentDidMount=function(){0==this.props.options.image_optimization_status&&(this.interval=setInterval(this.props.checkImageOptimizationStatus,1e4))},t.prototype.render=function(){var e=this;return l.createElement(g.default,null,d.includes(window.optimizerData.modules,"optimize_images")&&l.createElement(l.Fragment,null,l.createElement(b.Row,{title:u.translate("New Images Optimization"),checked:this.props.options.optimize_images,name:"optimize_images",onChange:this.changeOption},u.translate("We will automatically optimize all new images that you upload to your Media Library.")),l.createElement(p.Flex,{className:"divider"}),l.createElement(p.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(p.Box,{sm:"9"},l.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Existing Images Optimization")),l.createElement(p.Text,null,u.translate("We will optimize all your existing images with minimal or no loss in quality. Note, that this will overwrite your original images."))),0!==this.props.options.image_optimization_status&&0<this.props.options.has_images_for_optimization&&(0===parseInt(window.optimizerData.is_cron_disabled)||1===this.props.options.dismiss_cron_notice)&&l.createElement(p.Box,{sm:"3"},l.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid","aria-expanded":0===this.props.options.image_optimization_status,onClick:function(t){return e.props.initImagesOptimization()}},1===this.props.options.image_optimization_stopped?u.translate("Resume Optimization"):u.translate("Start Optimization")))),1===parseInt(window.optimizerData.is_cron_disabled)&&0===this.props.options.dismiss_cron_notice&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"error"},u.translate("We've detected that the WordPress cronjob functionality is not working. Please, enable it following the instructions in {{link}}this article{{/link}} and refresh this page. If you’re using a real cron job, you can {{link2}}ignore this message{{/link2}} at your own risk. Note, that in this case, those operations may take longer than usual to complete.",{components:{link:l.createElement(p.Link,{href:u.translate("https://www.siteground.com/kb/disable-enable-wordpress-cron/"),target:"_blank",style:{textDecoration:"underline"}}),link2:l.createElement(p.Link,{style:{textDecoration:"underline"},onClick:function(t){return e.props.enableOption("dismiss_cron_notice")}})}})))),0===this.props.options.image_optimization_status&&l.createElement(y.ImageLoader,{stopOptimization:this.stopImagesOptimization,totalImages:this.props.options.has_images_for_optimization,totalUnoptimizedImages:this.props.options.total_unoptimized_images}),1===this.props.options.image_optimization_status&&(0===parseInt(window.optimizerData.is_cron_disabled)||1===this.props.options.dismiss_cron_notice)&&0===this.props.options.has_images_for_optimization&&1===this.props.options.has_images&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"success"},u.translate("All images in your Media Library have been optimized successfully! Force {{link}}re-optimization{{/link}} of your images.",{components:{link:l.createElement(p.Link,{onClick:this.props.resetImagesOptimization,style:{textDecoration:"underline"}})}}))))),l.createElement(h.WebP,null),d.includes(window.optimizerData.modules,"lazyload_images")&&l.createElement(l.Fragment,null,l.createElement(p.Flex,{className:"divider"}),l.createElement(b.Row,{title:u.translate("Lazy Load Media"),checked:this.props.options.lazyload_images,name:"lazyload_images",onChange:this.changeOption,hasExpand:1},u.translate("Load images only when they are visible in the browser")),1==this.props.options.lazyload_images&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Iframes"),checked:this.props.options.lazyload_iframes,name:"lazyload_iframes",onChange:this.changeOption,tooltip:u.translate("We will lazy load iframes often used for things like video embeds from another sources. "),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Videos"),checked:this.props.options.lazyload_videos,name:"lazyload_videos",onChange:this.changeOption,tooltip:u.translate("We will lazy load all videos you have added directly to your pages."),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Gravatars"),checked:this.props.options.lazyload_gravatars,name:"lazyload_gravatars",onChange:this.changeOption,tooltip:u.translate("When users comment under your posts, WordPress tries to load their avatars from gravatar.com. We recommend lazy-loading them as your users scroll down through your page if you have a high number of comments. "),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Thumbnails"),checked:this.props.options.lazyload_thumbnails,name:"lazyload_thumbnails",onChange:this.changeOption,tooltip:u.translate("Enable if you want to lazy-load the thumbnail sizes of your original images."),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Responsive Images"),checked:this.props.options.lazyload_responsive,name:"lazyload_responsive",onChange:this.changeOption,tooltip:u.translate("Certain plugins and themes generate multiple images from a single upload to work better on different devices. Enable if you want to lazy-load these too."),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Widgets"),checked:this.props.options.lazyload_textwidgets,name:"lazyload_textwidgets",onChange:this.changeOption,tooltip:u.translate("Enable this option if you want the images in your widget areas to load only when users reach them. "),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load for Mobile"),checked:this.props.options.lazyload_mobile,name:"lazyload_mobile",onChange:this.changeOption,tooltip:u.translate("Enable if you want to use lazy-loading features for mobile requests to your site."),titleDensity:"none"}),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Fix for Lazy Loading Short Codes"),checked:this.props.options.lazyload_shortcodes,name:"lazyload_shortcodes",onChange:this.changeOption,tooltip:u.translate("If your images generated by shortcodes are not lazy loaded, please enable this feature."),titleDensity:"none"}),1===parseInt(window.optimizerData.is_shop)&&l.createElement(l.Fragment,null,l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Lazy Load Product Images"),checked:this.props.options.lazyload_woocommerce,name:"lazyload_woocommerce",onChange:this.changeOption,tooltip:u.translate("Enable if you want to enable lazy-load images in your store, product and other WooCommerce pages."),titleDensity:"none"})),l.createElement(p.Flex,{className:"divider"}),l.createElement(b.InnerRow,{margin:"medium",title:u.translate("Exclude from Lazy Load")},u.translate("In order to exclude images from lazy loading, please add their CSS classes to the exclusion list. Add each CSS class on a separate line.")),l.createElement(m.SimpleExclude,{updateExcludeList:function(t,n,r){return e.props.updateExcludes("excluded_lazy_load_classes",t)},excludedItems:this.props.options.excluded_lazy_load_classes,addNotification:this.props.addNotification}),l.createElement(p.Flex,null))))))},t}(l.Component),x=function(e){return{options:e.Options}},v=function(e){return{enableOption:function(t,n){return e(f.enableOption(t,n,!1))},disableOption:function(t,n){return e(f.disableOption(t,n,!1))},addNotification:function(t){return e(f.addNotification(t))},checkImageOptimizationStatus:function(){return e(f.checkImageOptimizationStatus())},initImagesOptimization:function(){return e(f.initImagesOptimization())},stopImagesOptimization:function(){return e(f.stopImagesOptimization())},resetImagesOptimization:function(){return e(f.resetImagesOptimization())},updateExcludes:function(t,n){return e(f.updateExcludes(t,n))}}};t.default=c.connect(x,v)(_),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),a.register(_,"ImageOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),a.register(x,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),a.register(v,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1154);t.WebP=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(9),p=n(65),f=n(100),g=n(492),m=n(1157),h=n(16),y=n(1159),b=function(e){function t(t){var n=e.call(this,t)||this;return n.toogleDeleteWebpDialog=function(){n.setState({showDeleteWebpDialog:!n.state.showDeleteWebpDialog})},n.toogleRegenerateWebpDialog=function(){n.setState({showRegenerateWebpDialog:!n.state.showRegenerateWebpDialog})},n.deleteWebpFiles=function(){n.props.deleteWebpFiles(),n.setState({showDeleteWebpDialog:!1})},n.regenerateWebpFiles=function(){n.props.deleteWebpFiles(),n.props.generateWebpFiles(),n.setState({showRegenerateWebpDialog:!1})},n.stopWebpOptimization=function(){clearInterval(n.webpInterval),n.webpInterval="",n.props.stopWebpConvertion()},n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.getHeight=function(){return 0===n.props.options.webp_conversion_status?250:"auto"},n.changeWebpQuality=function(e,t){n.setState({webpQuality:t,showWebpNotice:!0}),clearTimeout(n.webpQualityInterval),n.webpQualityInterval=setTimeout((function(){n.props.changeOption(e,t)}),100)},n.changeWebpType=function(e,t){n.setState({showWebpNotice:!0}),n.props.changeOption(e,t)},n.toogleEnableWebp=function(){n.props.options.webp_support?n.props.disableOption("webp_support",!0):(n.props.enableOption("webp_support",!0),n.setState({showEnableWebpDialog:!1}))},n.toogleEnableWebpDialog=function(){n.setState({showEnableWebpDialog:!n.state.showEnableWebpDialog})},n.render=function(){return 1===parseInt(window.optimizerData.is_avalon)&&l.createElement(l.Fragment,null,l.createElement(d.Flex,{className:"divider"}),l.createElement("div",{className:"position--relative "},0===n.props.options.webp_conversion_status&&l.createElement(g.WebpLoader,{stopOptimization:n.stopWebpOptimization,totalImages:n.props.options.has_images_for_conversion,totalUnoptimizedImages:n.props.options.total_non_converted_images}),l.createElement(p.Row,{title:u.translate("Generate WebP Copies of New Images"),checked:n.props.options.webp_support,name:"webp_support",onChange:function(e){return 0===n.props.options.webp_support?n.toogleEnableWebpDialog():n.toogleEnableWebp()}},u.translate("WebP is a next generation image format supported by modern browers which greatly reduces the size of your images.")),1==n.props.options.webp_support&&l.createElement(m.QualitySlider,{title:u.translate("Optimization Level"),description:u.translate("Chose the quality of WebP copies created by us. Higher quality means higher image size."),options:[{type:"lossy",title:"Lossy"},{type:"lossless",title:"Lossless"}],sliderName:"quality_webp",dropdownName:"quality_type",dropdownLabel:u.translate("Optimization Type"),selectedValue:n.props.options.quality_type,changeQuality:n.changeWebpQuality,showNotice:n.state.showWebpNotice,changeType:n.changeWebpType,value:n.state.webpQuality,regenerate:n.toogleRegenerateWebpDialog}),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center",style:{minHeight:n.getHeight(),position:"relative"}},l.createElement(d.Box,{sm:"6"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Manage WebP Copies for Existing Images")),l.createElement(d.Text,null,u.translate("Generate or delete a WebP copy of your existing media library."))),0==n.props.options.has_images_for_conversion&&l.createElement(d.Box,{sm:"3"}),l.createElement(d.Box,{sm:"3"},l.createElement(d.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid","aria-haspopup":!0,onClick:function(e){return n.toogleDeleteWebpDialog()}},u.translate("Delete all WebP Files"))),0!==n.props.options.has_images_for_conversion&&l.createElement(d.Box,{sm:"3"},l.createElement(d.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid","aria-expanded":0===n.props.options.webp_conversion_status,onClick:function(e){return n.props.generateWebpFiles()}},u.translate("Bulk Generate WebP Files")))),0==n.props.options.has_images_for_conversion&&l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Notice,{type:"success"},u.translate("All WebP copies of your files have been generated successfully! Force {{link}}re-generation{{/link}} of your images.",{components:{link:l.createElement(d.Link,{onClick:n.toogleRegenerateWebpDialog,style:{textDecoration:"underline"},"aria-haspopup":!0})}})))),n.state.showEnableWebpDialog&&l.createElement(f.EnableWebpDialog,{toogleClose:n.toogleEnableWebpDialog,toogleConfirm:n.toogleEnableWebp}),n.state.showDeleteWebpDialog&&l.createElement(f.DeleteWebpDialog,{toogleClose:n.toogleDeleteWebpDialog,toogleConfirm:n.deleteWebpFiles}),n.state.showRegenerateWebpDialog&&l.createElement(f.RegenerateWebpDialog,{toogleClose:n.toogleRegenerateWebpDialog,toogleConfirm:n.regenerateWebpFiles})))},n.state={showDeleteWebpDialog:!1,showRegenerateWebpDialog:!1,webpQuality:t.options.quality_webp,showWebpNotice:!1,showEnableWebpDialog:!1},n.webpInterval="",n.webpQualityInterval="",n}return i(t,e),t.prototype.componentDidUpdate=function(e){this.props.options.webp_conversion_status!==e.options.webp_conversion_status&&1==this.props.options.webp_conversion_status&&this.setState({showWebpNotice:!1}),this.props.options.quality_webp!==e.options.quality_webp&&this.setState({webpQuality:this.props.options.quality_webp}),1==this.props.options.webp_conversion_status?(clearInterval(this.webpInterval),this.webpInterval=""):this.webpInterval||0!=this.props.options.webp_conversion_status||(this.webpInterval=setInterval(this.props.checkWebpConversionStatus,1e4))},t.prototype.componentDidMount=function(){0==this.props.options.webp_conversion_status&&(this.webpInterval=setInterval(this.props.checkWebpConversionStatus,1e4))},t}(l.Component),_=function(e){return{options:e.Options}},x=function(e){return{enableOption:function(t,n){return e(h.enableOption(t,n,!1))},disableOption:function(t,n){return e(h.disableOption(t,n,!1))},addNotification:function(t){return e(h.addNotification(t))},deleteWebpFiles:function(t){return e(y.deleteWebpFiles(t))},changeOption:function(t,n){return e(h.changeOption(t,n))},stopWebpConvertion:function(){return e(y.stopWebpConvertion())},generateWebpFiles:function(){return e(y.generateWebpFiles())},checkWebpConversionStatus:function(){return e(y.checkWebpConversionStatus())}}};t.default=c.connect(_,x)(b),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(b,"WebP","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(_,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(x,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(10),u=n(9),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getProgessPercent=function(){var e=(t.props.totalUnoptimizedImages-t.props.totalImages)/t.props.totalUnoptimizedImages*100;return e<1?1:e},t}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(u.Flex,{gutter:"xx-large",style:{minHeight:250,position:"relative"}},l.createElement(u.Loader,{style:{position:"absolute"},className:"loader-image-optimization"},l.createElement(u.Title,{level:"4",density:"compact",weight:"bold",color:"darkest"},c.translate("Please be patient, this process may take some time")),l.createElement("span",{style:{width:"100%",textAlign:"center",display:"inline-block",color:"#a4a4a4",padding:"10px 0"}},c.translate("Optimized %(optimized)s of %(total)s images",{args:{optimized:this.props.totalUnoptimizedImages-this.props.totalImages,total:this.props.totalUnoptimizedImages}})),l.createElement(u.Progress,{color:"blue","data-component":"progress","data-e2e":"progress",percent:this.getProgessPercent()}),l.createElement("span",{style:{width:"100%",textAlign:"center",display:"inline-block",color:"#a4a4a4",paddingBottom:"10px"}}),l.createElement(u.Button,{color:"secondary",size:"small",type:"outlined",onClick:function(t){return e.props.stopOptimization()}},c.translate("Pause"))))},t}(l.Component);t.default=d,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),a.register(d,"ImageLoader","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(10),u=n(9),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getProgessPercent=function(){var e=(t.props.totalUnoptimizedImages-t.props.totalImages)/t.props.totalUnoptimizedImages*100;return e<1?1:e},t}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(u.Loader,{style:{position:"absolute"},className:"loader-image-optimization"},l.createElement(u.Title,{level:"4",density:"compact",weight:"bold",color:"darkest"},c.translate("Please be patient, this process may take some time")),l.createElement("span",{style:{width:"100%",textAlign:"center",display:"inline-block",color:"#a4a4a4",padding:"10px 0"}},c.translate("Generated %(optimized)s of %(total)s webp copies",{args:{optimized:this.props.totalUnoptimizedImages-this.props.totalImages,total:this.props.totalUnoptimizedImages}})),l.createElement(u.Progress,{color:"blue","data-component":"progress","data-e2e":"progress",percent:this.getProgessPercent()}),l.createElement("span",{style:{width:"100%",textAlign:"center",display:"inline-block",color:"#a4a4a4",paddingBottom:"10px"}}),l.createElement(u.Button,{color:"secondary",size:"small",type:"outlined",onClick:function(t){return e.props.stopOptimization()}},c.translate("Pause")))},t}(l.Component);t.default=d,a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),a.register(d,"WebpLoader","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1158);t.QualitySlider=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(10),l=n(9),c=function(e){return a.createElement(l.Flex,{gutter:"large"},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},a.createElement(l.Flex,{gutter:"large",direction:"row",align:"center"},a.createElement(l.Box,{sm:"10"},a.createElement(l.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},e.title),a.createElement(l.Text,null,e.description)),a.createElement(l.Box,{sm:"2"},a.createElement(l.Dropdown,{options:e.options,optionValue:"type",optionLabel:"title",selectedValue:e.selectedValue,onChange:function(t){return e.changeType(e.dropdownName,t)},label:e.dropdownLabel}))),a.createElement(l.Flex,{gutter:"xx-large",direction:"column",className:"margin-top--x-small"},a.createElement(l.Grid,{gap:"small"},"lossy"==e.selectedValue&&a.createElement(l.Slider,{max:100,min:1,step:1,value:e.value,label:"%",onChange:function(t){return e.changeQuality(e.sliderName,t)}}),e.showNotice&&a.createElement(l.Notice,{type:"warning"},s.translate("WebP settings have been changed, please, {{link}}re-generate{{/link}} your images!.",{components:{link:a.createElement(l.Link,{onClick:e.regenerate,style:{textDecoration:"underline"},"aria-haspopup":!0})}})))))))};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"QualitySlider","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/slider/quality-slider.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51),o=n(35);t.stopWebpConvertion=r.createAction(o.STOP_WEBP_CONVERSION),t.deleteWebpFiles=r.createAction(o.DELETE_WEBP_FILES),t.generateWebpFiles=r.createAction(o.GENERATE_WEBP_FILES),t.checkWebpConversionStatus=r.createAction(o.CHECK_WEBP_CONVERSION_STATUS)},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(9),p=n(16),f=n(61),g=n(489),m=n(488),h=n(491),y=n(490),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changeSiteOption=function(e,n){void 0===n&&(n=!1),e.checked?t.props.enableOption(e.name,n,!0):t.props.disableOption(e.name,n,!0)},t.changeOption=function(e,n){void 0===n&&(n=!1),e.checked?t.props.enableOption(e.name,n):t.props.disableOption(e.name,n)},t}return i(t,e),t.prototype.toogleMemcache=function(e){e.checked?this.props.enableMemcache(e.name):this.props.disableMemcache(e.name)},t.prototype.render=function(){var e=this;return l.createElement(f.default,null,l.createElement(g.default,null),l.createElement(h.default,{checked:this.props.options.enable_gzip_compression,changeOption:this.changeOption}),l.createElement(y.default,{checked:this.props.options.enable_browser_caching,changeOption:this.changeOption}),l.createElement(m.default,{enable_memcached:this.props.options.enable_memcached,enableMemcache:this.props.enableMemcache,disableMemcache:this.props.disableMemcache}),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Site Admin Permissions")),l.createElement(d.Text,null,u.translate("In this section, set the access permission for admins of separate sites.")))),l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(d.Flex,{direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("SuperCacher Settings")),l.createElement(d.Text,null,u.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's SuperCacher tab."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.supercacher_permissions,name:"supercacher_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Frontend Optimizations")),l.createElement(d.Text,null,u.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Frontend Optmization tab."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.frontend_permissions,name:"frontend_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Image Optimizations")),l.createElement(d.Text,null,u.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Image Optimization tab."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.images_permissions,name:"images_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Environment Optimizations")),l.createElement(d.Text,null,u.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Environment Optimization tab."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.environment_permissions,name:"environment_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))))},t}(l.Component),_=function(e){return{options:e.Options}},x=function(e){return{enableMemcache:function(t){return e(p.enableMemcache(t))},disableMemcache:function(t){return e(p.disableMemcache(t))},enableOption:function(t,n,r){return e(p.enableOption(t,n,r))},disableOption:function(t,n,r){return e(p.disableOption(t,n,r))},addNotification:function(t){return e(p.addNotification(t))}}};t.default=c.connect(_,x)(b),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),a.register(b,"MultisiteControl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),a.register(_,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),a.register(x,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(9),p=n(16),f=n(61),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changeSiteOption=function(e,n){void 0===n&&(n=!1),e.checked?t.props.enableOption(e.name,n,!0):t.props.disableOption(e.name,n,!0)},t}return i(t,e),t.prototype.render=function(){var e=this;return l.createElement(f.default,null,l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},u.translate("SUPERCACHER SETTINGS")))),l.createElement(d.Flex,{direction:"row",align:"center",gutter:"large"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Dynamic Caching")),l.createElement(d.Text,null,u.translate("Select whether new sites should have the Dynamic Caching enabled for them or not."))),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_enable_cache,name:"default_enable_cache",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),1===this.props.options.default_enable_cache&&l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"9"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Automatic Cache Purge")),l.createElement(d.Text,null,u.translate("Automatically perform a smart cache purge after every content modification."),"  ")),l.createElement(d.Box,{sm:"3",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_autoflush_cache,name:"default_autoflush_cache",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},u.translate("ENVIRONMENT OPTIMIZATION")))),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},1===this.props.isLoading&&l.createElement(d.Loader,{style:{position:"absolute"}}),l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Enable HTTPS")),l.createElement(d.Text,null,u.translate("Configures your site to work correctly via HTTPS and forces a secure connection to your site."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_ssl_enabled,name:"default_ssl_enabled",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),1===this.props.options.default_ssl_enabled&&l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Fix Insecure Content")),l.createElement(d.Text,null,u.translate("Enable this option in case you’re getting insecure content errors on your website. We will dynamically rewrite insecure requests for resources coming from your site"))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_fix_insecure_content,name:"default_fix_insecure_content",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},u.translate("FRONTEND OPTIMIZATION")))),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Minify the HTML Output")),l.createElement(d.Text,null,u.translate("Removes unnecessary characters from your HTML output saving data and improving your site speed."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_html,name:"default_optimize_html",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Minify JavaScript Files")),l.createElement(d.Text,null,u.translate("Combine and minify your JavaScript files in order to reduce their size, improve cachability, and reduce the number of requests to the server."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_javascript,name:"default_optimize_javascript",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Load Render-blocking JavaScript Files Asynchronously")),l.createElement(d.Text,null,u.translate("Add async parameter to the JavaScript files loaded in the header section of your site so they don’t block your page rendering."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_javascript_async,name:"default_optimize_javascript_async",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Minify CSS Files")),l.createElement(d.Text,null,u.translate("Combine and minify your CSS files in order to reduce their size, improve cachability, and reduce the number of requests to the server."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_css,name:"default_optimize_css",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Combine CSS Files")),l.createElement(d.Text,null,u.translate("Combine multiple CSS files into one to lower the number of requests your site generates."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_combine_css,name:"default_combine_css",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Remove Query Strings From Static Resources")),l.createElement(d.Text,null,u.translate("Removes version query strings from your static resources improving the caching of those resources."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_remove_query_strings,name:"default_remove_query_strings",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Disable Emojis")),l.createElement(d.Text,null,u.translate("Enable to prevent WordPress from automatically detecting and generating emojis in your pages."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_disable_emojis,name:"default_disable_emojis",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},u.translate("IMAGE OPTIMIZATION")))),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Image Optimization")),l.createElement(d.Text,null,u.translate("We will optimize all your existing images with minimal or no loss in quality. Note, that this will overwrite your original images."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_optimize_images,name:"default_optimize_images",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{direction:"row",gutter:"large",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},u.translate("Lazy Load Images")),l.createElement(d.Text,null,u.translate("Load images only when they are visible in the browser"))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_images,name:"default_lazyload_images",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),1==this.props.options.default_lazyload_images&&l.createElement(d.Flex,{gutter:"large"},l.createElement(d.Box,{sm:"12"},l.createElement(d.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Iframes")),l.createElement(d.Text,null,u.translate("We will lazy load iframes often used for things like video embeds from another sources. "))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_iframes,name:"default_lazyload_iframes",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Videos")),l.createElement(d.Text,null,u.translate("We will lazy load all videos you have added directly to your pages."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_videos,name:"default_lazyload_videos",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Thumbnails")),l.createElement(d.Text,null,u.translate("Enable if you want to enable lazy-load images in your store, product and other WooCommerce pages."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_woocommerce,name:"default_lazyload_woocommerce",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Gravatars")),l.createElement(d.Text,null,u.translate("When users comment under your posts, WordPress tries to load their avatars from gravatar.com. We recommend lazy-loading them as your users scroll down through your page if you have a high number of comments. "))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_gravatars,name:"default_lazyload_gravatars",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Thumbnails")),l.createElement(d.Text,null,u.translate("Enable if you want to lazy-load the thumbnail sizes of your original images."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_thumbnails,name:"default_lazyload_thumbnails",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Responsive Images")),l.createElement(d.Text,null,u.translate("Certain plugins and themes generate multiple images from a single upload to work better on different devices. Enable if you want to lazy-load these too."))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_responsive,name:"default_lazyload_responsive",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),l.createElement(d.Flex,{className:"divider"}),l.createElement(d.Flex,{gutter:"large",direction:"row",align:"center"},l.createElement(d.Box,{sm:"10"},l.createElement(d.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Lazy Load Widgets")),l.createElement(d.Text,null,u.translate("Enable this option if you want the images in your widget areas to load only when users reach them. "))),l.createElement(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Switch,{size:"small",checked:this.props.options.default_lazyload_textwidgets,name:"default_lazyload_textwidgets",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))))},t}(l.Component),m=function(e){return{options:e.Options}},h=function(e){return{enableOption:function(t,n,r){return e(p.enableOption(t,n,r))},disableOption:function(t,n,r){return e(p.disableOption(t,n,r))},addNotification:function(t){return e(p.addNotification(t))}}};t.default=c.connect(m,h)(g),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),a.register(g,"SitesControl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),a.register(m,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),a.register(h,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),s(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=n(24),l=n(44),c=n(10),u=n(9),d=n(61),p=n(1163);n(1164);var f,g,m=n(16),h=function(e){function t(t){var n=e.call(this,t)||this;return n.getDevices=function(){return[{type:"desktop",title:"Desktop"},{type:"mobile",title:"Mobile"}]},n.handleKeyPressExcludeList=function(e){"Enter"==e.key&&n.runAnalysis()},n.updateCurrentUrl=function(e){var t=new RegExp("^/+|"+window.optimizerData.home_url,"g"),r=e.target.value.replace(t,"");n.setState({currentUrl:r})},n.getInputValue=function(){var e=new RegExp("^/+|"+window.optimizerData.home_url,"g");return n.state.currentUrl.replace(e,"")},n.runAnalysis=function(){n.props.runAnalysis(n.props.device,n.state.currentUrl)},n.prepareData=function(e){return l.map(e,(function(e){var t=new RegExp(/\s?\[.*?\]\(.*?\)\.?/g);e.description=e.description.replace(t,"")})),e},n.html=function(e){var t=e/100*352;return{__html:'<div class="lh-gauge__wrapper lh-gauge__wrapper--pass lh-gauge__wrapper--huge"><div class="lh-gauge__svg-wrapper"><svg viewBox="0 0 120 120" class="lh-gauge"><circle class="lh-gauge-arc lh-gauge-arc-placeholder" transform="rotate(-90 60 60)" r="56" cx="60" cy="60"></circle><circle class="lh-gauge-arc" transform="rotate(-90 60 60)" r="56" cx="60" cy="60" style="stroke-dasharray: {PERCENTAGE}, 352;"></circle></svg></div><div class="lh-gauge__percentage">{SCORE}</div></div>'.replace("{SCORE}",e).replace("{PERCENTAGE}",t.toString())}},n.renderSuccessfullyCompleted=function(e){return l.map(n.prepareData(e),(function(e){return a.createElement(u.Flex,{gutter:"large",direction:"column"},a.createElement(u.Box,null,a.createElement(u.Notice,{type:"success"},e.title," ",a.createElement(p.default,{tooltip:e.description,tooltipSize:"small"}))))}))},n.state={currentUrl:""},n}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement(d.default,null,a.createElement(u.Flex,{gutter:"large",direction:"row",align:"center"},a.createElement(u.Box,{sm:"10"},a.createElement(u.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},c.translate("Score Check")),a.createElement(u.Text,null,c.translate("Test how optimized your website is. Our performance check is powered by Google PageSpeed.")))),a.createElement(u.Flex,{gutter:"large"},a.createElement(u.Box,{sm:"12"},a.createElement(u.Flex,{gutter:"none",background:"light",margin:"none",direction:"column",border:"small"},a.createElement(u.Flex,{gutter:"large",direction:"row",align:"flex-end"},a.createElement(u.Box,{sm:"2"},a.createElement(u.Dropdown,{options:this.getDevices(),optionValue:"type",optionLabel:"title",selectedValue:this.props.device,onChange:function(t){return e.props.analysisChangeDevice(t)},label:c.translate("Device Type")})),a.createElement(u.Box,{sm:"8"},a.createElement(u.Input,{type:"text",size:"medium",label:c.translate("URL"),value:this.state.currentUrl,onChange:function(t){return e.updateCurrentUrl(t)},prefix:window.optimizerData.home_url,onKeyPress:this.handleKeyPressExcludeList})),a.createElement(u.Box,{sm:"2"},a.createElement(u.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:function(){return e.runAnalysis()}},c.translate("Analyze"))),!!this.props.isAnalysing&&a.createElement(u.Loader,{style:{position:"absolute"},className:"loader-analysis"},c.translate("Please Wait, We Are Performing a Google PageSpeed Test on Your Page"))),a.createElement(u.Flex,{className:"divider"}),a.createElement(u.Container,{elevation:"none",padding:"large",className:"sg-score"},a.createElement(u.Flex,{gutter:"none",margin:"none",align:"center",direction:"column",background:"white"},a.createElement("div",{className:"sg-placeholder__images-container"},a.createElement("div",{className:"sg-placeholder__background-elements"},a.createElement(u.Icon,{multicolor:!0,name:"background-dots",width:"800",height:"240"}))),(l.isEmpty(this.props.report)||!l.isEmpty(this.props.report)&&1==this.props.isAnalysing)&&a.createElement(u.Icon,{name:"presentational-no-data-dotted",color:"ocean",width:this.props.isPhone?"200":"300",height:this.props.isPhone?"120":"240",multicolor:!0}),!l.isEmpty(this.props.report)&&0==this.props.isAnalysing&&a.createElement("div",{dangerouslySetInnerHTML:this.html(this.props.report.score),className:this.props.report.class_name}),a.createElement(u.Title,{level:"3",weight:"light",density:"cozy",align:"center"},l.isEmpty(this.props.report.title)?c.translate("There is nothing here yet"):this.props.report.title),!l.isEmpty(this.props.report)&&a.createElement(u.Text,{align:"center"},this.props.report.message)))))),!l.isEmpty(this.props.report)&&0==this.props.isAnalysing&&Object.keys(this.props.report.data).map((function(t){return a.createElement(a.Fragment,{key:t},a.createElement(u.Flex,{className:"divider"}),a.createElement(u.Flex,{gutter:"large",direction:"row",align:"center"},a.createElement(u.Box,{sm:"12"},a.createElement(u.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},e.props.report.data[t].info.title),"opportunities"==e.props.report.data[t].info.id&&a.createElement(u.Flex,{gutter:"none"},a.createElement(u.Table,{data:e.prepareData(e.props.report.data[t].data),border:"small",className:"border-"+e.props.report.data[t].info.id,columns:[{header:"Optimization",accessor:"title",style:{fontWeight:"bold"},render:function(e,t){return a.createElement(u.Text,null,e," ",a.createElement(p.default,{tooltip:t.description,tooltipSize:"small"}))}},{header:"Action",accessor:"action",style:{fontWeight:"bold"},render:function(e,t){return a.createElement(u.Text,null,u.textToHTML(e,["a","strong"],["href"]))}}]})))),"opportunities"!==e.props.report.data[t].info.id&&e.renderSuccessfullyCompleted(e.props.report.data[t].data))})))},t}(a.Component),y=function(e){return{report:e.Report.report,isAnalysing:e.Report.isAnalysing,device:e.Report.device,isPhone:e.Environment.isPhone}},b=function(e){return{runAnalysis:function(t,n){return e(m.runAnalysis(t,n))},analysisChangeDevice:function(t,n){return e(m.analysisChangeDevice(t))}}};t.default=s.connect(y,b)(h),f=n(0).default,g=n(0).leaveModule,f&&(f.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),f.register(h,"Analytics","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),f.register(y,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),f.register(b,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),g(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(2),s=n(9),l=n(81),c=function(e){var t=e.tooltip,n=e.size,r=void 0===n?"11":n,o=e.tooltipSize,i=void 0===o?"medium":o,c=e.color,u=void 0===c?"light":c;return a.createElement(s.Icon,{color:u,tabIndex:0,name:"information",size:r,tooltip:l.textToHTML(t),tooltipSize:i,className:"ua-margin-horizontal-xx-small ua-v-align-middle"})};t.default=c,o=n(0).default,i=n(0).leaveModule,o&&(o.register(c,"InfoIcon","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/info-icon/index.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1165);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,"td .sg-typography--truncate {\n white-space: initial !important; }\n\n.border-opportunities {\n border-top: 2px solid #F54545; }\n\n.border-passed {\n border-top: 2px solid #6ACA4C; }\n\n.placeholder-without-svg {\n padding: 0; }\n\n.placeholder-without-svg .sg-icon svg {\n display: none; }\n\n.loader-analysis .sg-loader__message {\n max-width: none; }\n\n.lh-gauge__percentage {\n display: block;\n font-size: 42.1px;\n height: 150px;\n line-height: 0;\n position: absolute;\n text-align: center;\n top: 75px;\n width: 150px;\n -webkit-font-smoothing: antialiased; }\n\n.lh-gauge-arc {\n animation-delay: 0.25s;\n display: inline;\n fill: none;\n font-family: Roboto, Helvetica, Arial, sans-serif;\n font-size: 16px;\n height: auto;\n line-height: 24px;\n stroke-width: 5px;\n text-size-adjust: 100%;\n transform-origin: 0px 0px;\n width: auto;\n word-break: break-word;\n -webkit-font-smoothing: antialiased; }\n\n.lh-gauge__svg-wrapper {\n display: block;\n font-family: Roboto, Helvetica, Arial, sans-serif;\n font-size: 16px;\n height: 150px;\n line-height: 24px;\n position: relative;\n text-size-adjust: 100%;\n width: 150px;\n word-break: break-word;\n -webkit-font-smoothing: antialiased; }\n\n.lh-gauge__wrapper {\n font-size: 16px;\n height: 150px;\n line-height: 24px;\n margin-bottom: 12px;\n margin-left: 0px;\n margin-right: 0px;\n margin-top: 24px;\n position: relative;\n width: 150px;\n -webkit-font-smoothing: antialiased; }\n\n.sg-score-holder {\n top: 15%;\n position: absolute; }\n\n.sg-score {\n position: relative; }\n\n.lh-gauge-arc-placeholder {\n color: #EBEBEB;\n stroke: #EBEBEB; }\n\n.placeholder-meduim .lh-gauge__percentage,\n.placeholder-meduim .lh-gauge__svg-wrapper,\n.placeholder-meduim .lh-gauge__wrapper {\n color: #eca03e;\n fill: #eca03e;\n stroke: #eca03e; }\n\n.placeholder-meduim .lh-gauge-arc {\n color: #eca03e; }\n\n.placeholder-low .lh-gauge__percentage,\n.placeholder-low .lh-gauge__svg-wrapper,\n.placeholder-low .lh-gauge__wrapper {\n color: #F54545;\n fill: #F54545;\n stroke: #F54545; }\n\n.placeholder-low .lh-gauge-arc {\n color: #F54545; }\n\n.placeholder-top .lh-gauge__percentage,\n.placeholder-top .lh-gauge__svg-wrapper,\n.placeholder-top .lh-gauge__wrapper {\n color: #6ACA4D;\n fill: #6ACA4D;\n stroke: #6ACA4D; }\n\n.placeholder-top .lh-gauge-arc {\n color: #6ACA4D; }\n\n.sg-tooltip {\n z-index: 9999; }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=n(2),c=n(24),u=n(10),d=n(61),p=n(9),f=n(16),g=n(220),m=n(100),h=function(e){function t(t){var n=e.call(this,t)||this;return n.changeOption=function(e,t){void 0===t&&(t=!1),e.checked?n.props.enableOption(e.name,t):n.props.disableOption(e.name,t)},n.updateState=function(e){var t;n.setState(((t={})[e.target.name]=e.target.value,t))},n.toogleCloudflareDialog=function(){n.setState({showCloudflareDialog:!n.state.showCloudflareDialog})},n.authenticate=function(){n.setState({showCloudflareDialog:!1}),n.props.authenticate(n.state.cloudflare_email,n.state.cloudflare_auth_key)},n.validate=function(){n.validateEmail(n.state.cloudflare_email)&&n.validateKey(n.state.cloudflare_auth_key)&&n.toogleCloudflareDialog()},n.validateKey=function(e){var t=e.length;return n.setState({keyValidationError:!t}),t},n.updateKey=function(e){n.validateKey(e.target.value),n.updateState(e)},n.updateEmail=function(e){n.validateEmail(e.target.value),n.updateState(e)},n.validateEmail=function(e){var t=new RegExp(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,"g").test(e);return n.setState({emailValidationError:!t}),t},n.state={showCloudflareDialog:!1,cloudflare_email:"",cloudflare_auth_key:"",emailValidationError:!1,keyValidationError:!1},n}return i(t,e),t.prototype.componentDidUpdate=function(e){this.props.options.cloudflare_email!==e.options.cloudflare_email&&this.props.options.cloudflare_auth_key!==e.options.cloudflare_auth_key&&this.setState({cloudflare_email:this.props.options.cloudflare_email,cloudflare_auth_key:this.props.options.cloudflare_auth_key}),this.props.options.cloudflare_slots_deletion!==e.options.cloudflare_slots_deletion&&this.setState({showCloudflareDialog:this.props.options.cloudflare_slots_deletion})},t.prototype.render=function(){var e=this,t=u.translate("Cloudflare API Key get it from {{link}}here{{/link}}",{components:{link:l.createElement(p.Link,{onClick:function(e){e.preventDefault(),window.open("https://dash.cloudflare.com/profile/api-tokens")},style:{textDecoration:"underline"}})}});return l.createElement(d.default,null,l.createElement(p.Flex,{gutter:"none",direction:"column",margin:"none",style:{position:"relative"}},!!this.props.isOptimizing&&l.createElement(p.Loader,{style:{position:"absolute"},className:"loader-cloudflare-optimization"},u.translate("Cloudflare optimization in progress")),!!this.props.isDeauthenticating&&l.createElement(p.Loader,{style:{position:"absolute"},className:"loader-cloudflare-optimization"},u.translate("Cloudflare deauthentication in progress")),l.createElement(g.default,{title:u.translate("Cloudflare Full Page Caching"),checked:this.props.options.cloudflare_optimization,name:"cloudflare_optimization",onChange:this.changeOption},u.translate("This option will enable full-page caching on your Cloudflare CDN edges. This will reduce the load on your SiteGround server and improve the loading speeds of your pages because by default Cloudflare will cache only your static resources.")),0!==this.props.options.cloudflare_optimization&&l.createElement(p.Flex,{gutter:"large"},l.createElement(p.Box,{sm:"12"},l.createElement(p.Flex,{gutter:"none",background:"light",margin:"none",direction:"column"},l.createElement(p.Flex,{gutter:"large",direction:"row",align:"center"},1==this.props.options.cloudflare_optimization_status&&l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"success",background:"white",contentSize:"expanded",shadow:!0},l.createElement(p.Text,{align:"left"},u.translate("You have successfully authenticated to your Cloudflare account. If you want to stop using this service, please {{link}}Deauthenticate{{/link}} first.",{components:{link:l.createElement(p.Link,{onClick:this.props.deauthenticate,style:{textDecoration:"underline"}})}})))),0==this.props.options.cloudflare_optimization_status&&l.createElement(l.Fragment,null,l.createElement(p.Box,{sm:"5"},l.createElement(p.Input,{type:"text",label:u.translate("Email used with Cloudflare"),size:"medium",value:this.state.cloudflare_email,name:"cloudflare_email",state:this.state.emailValidationError?"error":"",onChange:function(t){return e.updateState(t)},onBlur:function(t){return e.updateEmail(t)},showValidation:!!this.state.emailValidationError,validationMessage:!!this.state.emailValidationError&&u.translate("Please provide valid email address")})),l.createElement(p.Box,{sm:"5"},l.createElement(p.Input,{type:"text",label:t,size:"medium",value:this.state.cloudflare_auth_key,name:"cloudflare_auth_key",onChange:function(t){return e.updateState(t)},onBlur:function(t){return e.updateKey(t)},state:this.state.keyValidationError?"error":"",showValidation:!!this.state.keyValidationError,validationMessage:!!this.state.keyValidationError&&u.translate("Please provide API key")})),l.createElement(p.Box,{sm:"2"},l.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:function(t){return e.validate()}},u.translate("Authenticate"))))),1==this.props.options.cloudflare_optimization_status&&l.createElement(l.Fragment,null,l.createElement(p.Flex,{className:"divider"}),l.createElement(p.Flex,{gutter:"large",direction:"row",align:"center",style:{marginTop:0}},l.createElement(p.Box,{sm:"10"},l.createElement(p.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},u.translate("Purge Cloudflare Cache")),l.createElement(p.Text,null,u.translate("This will perform a complete manual purge of all Cloudflare assets. {{b}}It may take some time until the cache is purged on all edges.{{/b}}",{components:{b:l.createElement("strong",null)}}))),l.createElement(p.Box,{sm:"2"},l.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.props.purgeCloudflareCache},this.props.cloudflareCachePurged?u.translate("Purge Cache"):u.translate("Purging ..."))))))))),!!this.state.showCloudflareDialog&&l.createElement(m.CloudflareDialog,{toogleClose:this.toogleCloudflareDialog,toogleConfirm:this.authenticate}))},t}(l.Component),y=function(e){return{options:e.Options,isOptimizing:e.Cloudflare.isOptimizing,isDeauthenticating:e.Cloudflare.isDeauthenticating,cloudflareCachePurged:e.Cloudflare.cloudflareCachePurged}},b=function(e){return{enableOption:function(t,n){return e(f.enableOption(t,n,!1))},disableOption:function(t,n){return e(f.disableOption(t,n,!1))},authenticate:function(t,n){return e(f.authenticate(t,n))},deauthenticate:function(){return e(f.deauthenticate())},purgeCloudflareCache:function(){return e(f.purgeCloudflareCache())}}};t.default=c.connect(y,b)(h),a=n(0).default,s=n(0).leaveModule,a&&(a.register(i,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),a.register(h,"Cloudflare","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),a.register(y,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),a.register(b,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),s(e))}).call(this,n(1)(e))}]);
core/Admin/Admin.php CHANGED
@@ -141,7 +141,6 @@ class Admin {
141
  true
142
  );
143
 
144
- $this->modules->has_cloudflare();
145
  $php_version_info = Htaccess::get_instance()->get_php_version();
146
 
147
  $data = array(
141
  true
142
  );
143
 
 
144
  $php_version_info = Htaccess::get_instance()->get_php_version();
145
 
146
  $data = array(
core/Analysis/Analysis.php CHANGED
@@ -237,6 +237,57 @@ class Analysis {
237
  'default' => __( 'Check for services like analytics tools, advertisement networks and tracking scrits and similar third party resources loaded outside of your site. Too many such scripts loaded may slow down your site signifficantly.', 'sg-cachepress' ),
238
  ),
239
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  );
241
 
242
  $response_messages = array();
237
  'default' => __( 'Check for services like analytics tools, advertisement networks and tracking scrits and similar third party resources loaded outside of your site. Too many such scripts loaded may slow down your site signifficantly.', 'sg-cachepress' ),
238
  ),
239
  ),
240
+ 'unused-javascript' => array(
241
+ 'enabled' => array(),
242
+ 'messages' => array(
243
+ 'default' => __( 'Check whether your theme is inserting JavaScript into pages that don\'t use it.', 'sg-cachepress' ),
244
+ ),
245
+ ),
246
+ 'server-response-time' => array(
247
+ 'enabled' => array(
248
+ 'siteground_optimizer_enable_cache',
249
+ ),
250
+ 'messages' => array(
251
+ 'enabled' => __( 'Please, use the test functionality to make sure your <strong>Dynamic caching</strong> is working properly and contact support of there\'s a problem.', 'sg-cachepress' ),
252
+ 'default' => __( 'Make sure you enable the <strong>Dynamic Caching</strong> in order to get the best loading speeds for your site.', 'sg-cachepress' ),
253
+ ),
254
+ ),
255
+ 'duplicated-javascript' => array(
256
+ 'enabled' => array(),
257
+ 'messages' => array(
258
+ 'default' => __( 'Check the header.php file of your theme if there is a JavaScript file included manually more than once.', 'sg-cachepress' ),
259
+ ),
260
+ ),
261
+ 'legacy-javascript' => array(
262
+ 'enabled' => array(),
263
+ 'messages' => array(
264
+ 'default' => __( 'Make sure you update your theme and plugins to their latest versions in order to avoid using legacy JavaScript.', 'sg-cachepress' ),
265
+ ),
266
+ ),
267
+ 'no-document-write' => array(
268
+ 'enabled' => array(),
269
+ 'messages' => array(
270
+ 'default' => __( 'Please, contact your theme or plugin provider that uses document.write in their JavaScript.', 'sg-cachepress' ),
271
+ ),
272
+ ),
273
+ 'non-composited-animations' => array(
274
+ 'enabled' => array(),
275
+ 'messages' => array(
276
+ 'default' => __( 'Check with your theme provider in order to detect any non-composited animations that can damage loading performance especially on mobile devices.', 'sg-cachepress' ),
277
+ ),
278
+ ),
279
+ 'large-javascript-libraries' => array(
280
+ 'enabled' => array(),
281
+ 'messages' => array(
282
+ 'default' => __( 'Large JavaScript librarie take a lot of time to load and can damage your performance. Consider using equivalent smaller ones.', 'sg-cachepress' ),
283
+ ),
284
+ ),
285
+ 'uses-passive-event-listeners' => array(
286
+ 'enabled' => array(),
287
+ 'messages' => array(
288
+ 'default' => __( 'Check for plugins that hook on events like mouse wheel down or touchpad scroll. Those listeners should be passive in order to keep good scrollig performance.', 'sg-cachepress' ),
289
+ ),
290
+ ),
291
  );
292
 
293
  $response_messages = array();
core/Helper/Helper.php CHANGED
@@ -52,6 +52,7 @@ class Helper {
52
  new Rest();
53
 
54
  // Init the supercacher.
 
55
  $this->supercacher = new Supercacher();
56
 
57
  // Init the memcacher.
52
  new Rest();
53
 
54
  // Init the supercacher.
55
+ // DO NOT REMOVE $this->supercacher, as its used from `sg_cachepress_purge_cache` helper function.
56
  $this->supercacher = new Supercacher();
57
 
58
  // Init the memcacher.
core/Modules/Modules.php CHANGED
@@ -494,6 +494,8 @@ class Modules {
494
  add_action( 'network_admin_notices', array( $this, 'cache_plugins_notice' ) );
495
  add_action( 'network_admin_notices', array( $this, 'blocking_plugins_notice' ) );
496
 
 
 
497
  if ( 1 === (int) get_option( 'disable_conflicting_modules', 0 ) ) {
498
  add_action( 'plugins_loaded', array( $this, 'disable_modules' ) );
499
  }
@@ -881,12 +883,6 @@ class Modules {
881
  return;
882
  }
883
 
884
- if ( false !== get_transient( 'siteground_optimizer_cloudflare_check' ) ) {
885
- return;
886
- }
887
-
888
- set_transient( 'siteground_optimizer_cloudflare_check', 1, 24 * HOUR_IN_SECONDS );
889
-
890
  $resolver = new \Net_DNS2_Resolver(
891
  array(
892
  'nameservers' => array( '1.1.1.1', '8.8.8.8' ),
@@ -904,7 +900,7 @@ class Modules {
904
  }
905
 
906
  foreach ( $dns_resolver_response->answer as $record ) {
907
- if ( is_a( $record, Net_DNS2_RR_A ) ) {
908
  $a_record = $record;
909
  break;
910
  }
494
  add_action( 'network_admin_notices', array( $this, 'cache_plugins_notice' ) );
495
  add_action( 'network_admin_notices', array( $this, 'blocking_plugins_notice' ) );
496
 
497
+ add_action( 'wp_login', array( $this, 'has_cloudflare' ) );
498
+
499
  if ( 1 === (int) get_option( 'disable_conflicting_modules', 0 ) ) {
500
  add_action( 'plugins_loaded', array( $this, 'disable_modules' ) );
501
  }
883
  return;
884
  }
885
 
 
 
 
 
 
 
886
  $resolver = new \Net_DNS2_Resolver(
887
  array(
888
  'nameservers' => array( '1.1.1.1', '8.8.8.8' ),
900
  }
901
 
902
  foreach ( $dns_resolver_response->answer as $record ) {
903
+ if ( is_a( $record, 'Net_DNS2_RR_A' ) ) {
904
  $a_record = $record;
905
  break;
906
  }
core/Supercacher/Supercacher.php CHANGED
@@ -356,17 +356,27 @@ class Supercacher {
356
  * Delete plugin assets
357
  *
358
  * @since 5.1.0
 
 
359
  */
360
- public static function delete_assets() {
361
- $assets_dir = Front_End_Optimization::get_instance()->assets_dir;
362
- $files = scandir( $assets_dir );
 
 
 
 
 
 
 
363
 
364
  foreach ( $files as $filename ) {
365
  // Build the filepath.
366
- $maybe_file = trailingslashit( $assets_dir ) . $filename;
367
 
368
  // Bail if the file is not a file.
369
  if ( ! is_file( $maybe_file ) ) {
 
370
  continue;
371
  }
372
 
356
  * Delete plugin assets
357
  *
358
  * @since 5.1.0
359
+ *
360
+ * @param bool|string $dir Directory to clean up.
361
  */
362
+ public static function delete_assets( $dir = false ) {
363
+ if ( false === $dir ) {
364
+ $dir = Front_End_Optimization::get_instance()->assets_dir;
365
+ }
366
+
367
+ // Scan the assets dir.
368
+ $all_files = scandir( $dir );
369
+
370
+ // Get only files and directories.
371
+ $files = array_diff( $all_files, array( '.', '..' ) );
372
 
373
  foreach ( $files as $filename ) {
374
  // Build the filepath.
375
+ $maybe_file = trailingslashit( $dir ) . $filename;
376
 
377
  // Bail if the file is not a file.
378
  if ( ! is_file( $maybe_file ) ) {
379
+ self::delete_assets( $maybe_file );
380
  continue;
381
  }
382
 
readme.txt CHANGED
@@ -215,6 +215,11 @@ Our plugin uses a cookie in order to function properly. It does not store person
215
 
216
  == Changelog ==
217
 
 
 
 
 
 
218
  = Version 5.7.1 =
219
  * Fixed bug with clearing cache from helper function
220
 
215
 
216
  == Changelog ==
217
 
218
+ = Version 5.7.2 =
219
+ * Fixed bug when external assets are not cleared properly
220
+ * Improved detection of active Cloudflare
221
+ * Text improvements
222
+
223
  = Version 5.7.1 =
224
  * Fixed bug with clearing cache from helper function
225
 
sg-cachepress.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: SG Optimizer
11
  * Plugin URI: https://siteground.com
12
  * Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
13
- * Version: 5.7.1
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
@@ -31,7 +31,7 @@ if ( ! defined( 'WPINC' ) ) {
31
 
32
  // Define version constant.
33
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
34
- define( __NAMESPACE__ . '\VERSION', '5.7.1' );
35
  }
36
 
37
  // Define slug constant.
10
  * Plugin Name: SG Optimizer
11
  * Plugin URI: https://siteground.com
12
  * Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
13
+ * Version: 5.7.2
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
31
 
32
  // Define version constant.
33
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
34
+ define( __NAMESPACE__ . '\VERSION', '5.7.2' );
35
  }
36
 
37
  // Define slug constant.