SG Optimizer - Version 5.8.2

Version Description

Download this release

Release Info

Developer stoyangeorgiev
Plugin Icon 128x128 SG Optimizer
Version 5.8.2
Comparing to
See all releases

Code changes from version 5.8.1 to 5.8.2

assets/js/optimizer.bundle.js CHANGED
@@ -324,7 +324,7 @@ e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月
324
  * @license See CREDITS.md
325
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
326
  */
327
- function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,s=isFinite(+t)?Math.abs(t):0,i=void 0===r?",":r,a=void 0===n?".":n,c="";return(c=(s?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,s):""+Math.round(o)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(c[1]||"").length<s&&(c[1]=c[1]||"",c[1]+=new Array(s-c[1].length+1).join("0")),c.join(a)}},function(e,t,n){var r=n(2),o=n(412),s=n(45);e.exports=function(e){var t={moment:e.moment,numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var i=n.displayName||n.name||"",a=s({displayName:"Localized("+i+")",componentDidMount:function(){this.boundForceUpdate=this.forceUpdate.bind(this),e.stateObserver.addListener("change",this.boundForceUpdate)},componentWillUnmount:function(){this.boundForceUpdate&&e.stateObserver.removeListener("change",this.boundForceUpdate)},render:function(){var s=o({locale:e.getLocaleSlug()},this.props,t);return r.createElement(n,s)}});return a._composedComponent=n,a}}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n,s){s.debug;var i=o({},n);e&&"object"===(void 0===e?"undefined":r(e))&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(i[r]=e[r])}));0;return i}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.stateReconciler=void 0===e.stateReconciler?s.default:e.stateReconciler,(0,o.default)(e,(0,r.combineReducers)(t))};var r=n(93),o=i(n(189)),s=i(n(761));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(190),o=Object.prototype,s=o.hasOwnProperty,i=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[a]=n:delete e[a]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(419)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,s,i=n(757),a=(o=i)&&o.__esModule?o:{default:o};s="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var c=(0,a.default)(s);t.default=c}).call(this,n(116),n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var i=t[o];0,"function"==typeof e[i]&&(n[i]=e[i])}var a=Object.keys(n);0;var c=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:r.ActionTypes.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+r.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){c=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(c)throw c;for(var r=!1,o={},i=0;i<a.length;i++){var l=a[i],u=n[l],d=e[l],p=u(d,t);if(void 0===p){var f=s(l,t);throw new Error(f)}o[l]=p,r=r||p!==d}return r?o:e}};var r=n(417);o(n(131)),o(n(420));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}t.__esModule=!0,t.default=function(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},s=0;s<n.length;s++){var i=n[s],a=e[i];"function"==typeof a&&(o[i]=r(a,t))}return o}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,o,s){var a,c=e(n,o,s),l=c.dispatch,u={getState:c.getState,dispatch:function(e){return l(e)}};return a=t.map((function(e){return e(u)})),l=i.default.apply(void 0,a)(c.dispatch),r({},c,{dispatch:l})}}};var o,s=n(421),i=(o=s)&&o.__esModule?o:{default:o}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n,s){s.debug;var i=o({},n);e&&"object"===(void 0===e?"undefined":r(e))&&Object.keys(e).forEach((function(s){var a;"_persist"!==s&&(t[s]===n[s]&&(null===(a=n[s])||Array.isArray(a)||"object"!==(void 0===a?"undefined":r(a))?i[s]=e[s]:i[s]=o({},i[s],e[s])))}));0;return i}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n){0;var o=n||!1,i=(0,s.createStore)(u,l,t?t.enhancer:void 0),c=function(e){i.dispatch({type:a.REGISTER,key:e})},d=function(t,n,r){var s={type:a.REHYDRATE,payload:n,err:r,key:t};e.dispatch(s),i.dispatch(s),o&&p.getState().bootstrapped&&(o(),o=!1)},p=r({},i,{purge:function(){var t=[];return e.dispatch({type:a.PURGE,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:a.FLUSH,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:a.PAUSE})},persist:function(){e.dispatch({type:a.PERSIST,register:c,rehydrate:d})}});return p.persist(),p};var o,s=n(93),i=n(189),a=((o=i)&&o.__esModule,n(81));function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l={registry:[],bootstrapped:!1},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case a.REGISTER:return r({},e,{registry:[].concat(c(e.registry),[t.key])});case a.REHYDRATE:var n=e.registry.indexOf(t.key),o=[].concat(c(e.registry));return o.splice(n,1),r({},e,{registry:o,bootstrapped:0===o.length});default:return e}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){(t||{}).debug;return function(t,n){if(!t)return Promise.resolve(void 0);var o=t._persist&&void 0!==t._persist.version?t._persist.version:r.DEFAULT_VERSION;if(o===n)return Promise.resolve(t);if(o>n)return Promise.resolve(t);var s=Object.keys(e).map((function(e){return parseInt(e)})).filter((function(e){return n>=e&&e>o})).sort((function(e,t){return e-t}));try{var i=s.reduce((function(t,n){return e[n](t)}),t);return Promise.resolve(i)}catch(e){return Promise.reject(e)}}};var r=n(81)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.whitelist||null,o=n.blacklist||null;function s(e){return!(!r||-1!==r.indexOf(e))||!(!o||-1===o.indexOf(e))}return{in:function(t,n,r){return!s(n)&&e?e(t,n,r):t},out:function(e,n,r){return!s(n)&&t?t(e,n,r):e}}}},function(e,t,n){var r=n(766);"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,"@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Roboto+Condensed:300,400,700|Roboto:300,300i,400,400i,500,500i,700,700i&subset=latin-ext);",""]),t.push([e.i,':root {\n --padding-responsive: 30px; }\n\n@media (max-width: 1500px) {\n :root {\n --padding-responsive: 20px; } }\n\n:root,\n.sg-theme-light {\n --royal-base: #7d5aa6;\n --royal-dark: #532f82;\n --royal-light: #d1bfda;\n --royal-lighter: #ebe0ef;\n --ocean-base: #22b8d1;\n --ocean-dark: #226d7a;\n --ocean-light: #b0e0e9;\n --ocean-lighter: #e4f5fa;\n --mint-base: #2bab7f;\n --mint-dark: #1e6346;\n --mint-light: #add9c0;\n --mint-lighter: #e1f1e7;\n --grassy-base: #96ca51;\n --grassy-dark: #577635;\n --grassy-light: #d8e5b5;\n --grassy-lighter: #edf4db;\n --salmon-base: #f47b44;\n --salmon-dark: #b35227;\n --salmon-light: #f3cfbb;\n --salmon-lighter: #f8eae0;\n --sunset-base: #ee9629;\n --sunset-dark: #8e5d25;\n --sunset-light: #f0c99a;\n --sunset-lighter: #f6e8d5;\n --mango-base: #e5b22a;\n --mango-dark: #96762e;\n --mango-light: #efe0a0;\n --mango-lighter: #f7f3da;\n --bronze-base: #cdaa72;\n --bronze-dark: #8c7653;\n --bronze-light: #ecdcc6;\n --bronze-lighter: #e2dbd5;\n --color-primary: var(--salmon-base);\n --color-primary-hovered: var(--salmon-dark);\n --color-primary-active: var(--salmon-light);\n --color-secondary: var(--ocean-base);\n --color-secondary-hovered: var(--ocean-dark);\n --color-secondary-active: var(--ocean-light);\n --color-positive: var(--mint-base);\n --color-positive-hovered: var(--mint-dark);\n --color-positive-active: var(--mint-light);\n --color-error: #f54545;\n --color-success: #6acb4c;\n --color-warning: var(--sunset-base);\n --color-instruction: var(--ocean-base);\n --color-info: var(--royal-base);\n --color-hint: #c2c2c2;\n --color-presentational: #ccaf83; }\n\n:root,\n.sg-theme-light {\n --background-main: #f2f2f2;\n --background-component-primary: #fff;\n --background-component-secondary: #f8f8f8;\n --background-disabled: #ddd;\n --background-slider: #ddd;\n --background-overlay: rgba(54, 54, 54, 0.8);\n --background-highlight: #f8f8f8;\n --backround-employee: #f2efea;\n --backround-client: #fbfaf8;\n --backround-popover-image-hover: rgba(0, 0, 0, 0.3); }\n\n:root,\n.sg-theme-light {\n --typography-white: #fff;\n --typography-lightest: #ddd;\n --typography-lighter: #c2c2c2;\n --typography-light: #a4a4a4;\n --typography-dark: #666;\n --typography-darker: #444;\n --typography-darkest: #363636;\n --typography-field-label-size: 13px;\n --typography-table-label-size: 13px; }\n\n:root {\n --font-family-default: "Open Sans", Arial, Helvetica, sans-serif;\n --font-family-component: Roboto; }\n\n:root,\n.sg-theme-light {\n --color-scrollbar: #f2f2f2;\n --color-scrollbar-thumb: #ddd;\n --color-scrollbar-thumb-hover: #c2c2c2;\n --color-button-base: #ececec;\n --color-button-base-focus: #ddd;\n --color-button-base-hover: #ececec;\n --color-button-base-active: #ececec;\n --color-button-white: #fff;\n --color-icon-button: #858484;\n --color-editor-icon: #ddd;\n --color-disabled: #ddd;\n --border-color-outer: #ddd;\n --border-color-inner: #f2f2f2;\n --border-color-focus: #ddd;\n --border-color-default: #666;\n /* Components */\n --component-background-hover: #f2f2f2;\n --component-color-hover: currentColor;\n --avatar-color: #61554c;\n --avatar-background: #d7cebf;\n --context-menu-background: var(--background-component-primary);\n --chart-color-first: var(--ocean-base);\n --chart-color-second: var(--salmon-base);\n --chart-color-third: var(--grassy-base);\n --chart-color-fourth: var(--sunset-base);\n --chart-color-fifth: var(--mint-base);\n --chart-color-sixth: var(--royal-base);\n --chart-color-seventh: var(--ocean-light);\n --chart-color-eighth: var(--sunset-light);\n --icon-color-royal: var(--royal-dark);\n --icon-color-royal-light: var(--royal-light);\n --icon-color-royal-lighter: var(--royal-lighter);\n --icon-color-ocean: var(--ocean-dark);\n --icon-color-ocean-light: var(--ocean-light);\n --icon-color-ocean-lighter: var(--ocean-lighter);\n --icon-color-mint: var(--mint-dark);\n --icon-color-mint-light: var(--mint-light);\n --icon-color-mint-lighter: var(--mint-lighter);\n --icon-color-grassy: var(--grassy-dark);\n --icon-color-grassy-light: var(--grassy-light);\n --icon-color-grassy-lighter: var(--grassy-lighter);\n --icon-color-salmon: var(--salmon-dark);\n --icon-color-salmon-light: var(--salmon-light);\n --icon-color-salmon-lighter: var(--salmon-lighter);\n --icon-color-sunset: var(--sunset-dark);\n --icon-color-sunset-light: var(--sunset-light);\n --icon-color-sunset-lighter: var(--sunset-lighter);\n --icon-color-mango: var(--mango-dark);\n --icon-color-mango-light: var(--mango-light);\n --icon-color-mango-lighter: var(--mango-lighter);\n --icon-color-bronze: var(--bronze-dark);\n --icon-color-bronze-light: var(--bronze-light);\n --icon-color-bronze-lighter: var(--bronze-lighter);\n --icon-logo-background-light: #fff;\n --notice-border-color: #f19b7a;\n --notice-background-attention: #fef5ec;\n --loader-background: rgba(255, 255, 255, 0.75);\n --loader-background-dark: rgba(71, 67, 64, 0.8);\n --drawer-background: #474340;\n --drawer-icon-color: #fff;\n --drawer-icon-background-hover: #474340;\n --header-background: #343230;\n --footer-background: #343230;\n --navigation-background: #474340;\n --navigation-background-hover: #343230;\n --navigation-list-color: #343230;\n --navigation-list-color-selected: #343230;\n --navigation-list-background: #d7cebf;\n --navigation-list-background-opened: #343230;\n --navigation-list-background-hovered: #343230;\n --navigation-list-background-selected: #d7cebf;\n --navigation-icon-color: #c1aa95;\n --navigation-icon-color-selected: #c1aa95;\n --navigation-separator-background: #343230;\n --navigation-button-color: #c1aa95;\n --header-navigation-color: #e6e3e3;\n --header-navigation-color-hover: #1d1d1d;\n --header-navigation-color-selected: #1d1d1d;\n --header-navigation-background: transparent;\n --header-navigation-background-hover: #dfdccb;\n --header-navigation-background-selected: #f3efe7;\n --header-navigation-active-border-color: #c8a36d;\n --header-second-navigation-background-selected: #f3efe7;\n --header-support-navigation-background-selected: #e9e7db;\n --section-background-white: var(--background-component-primary);\n --section-background-yellow: var(--header-second-navigation-background-selected);\n --section-background-light: var(--background-component-secondary);\n --section-background-dark: var(--header-background);\n --tooltip-color: #fff;\n --tooltip-background-light: #fff;\n --tooltip-background-dark: rgba(54, 54, 54, 0.9); }\n\n:root,\n.sg-theme-light {\n --first-level-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 0 rgba(0, 0, 0, 0.05);\n --second-level-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06), 0 4px 12px 0 rgba(0, 0, 0, 0.1);\n --third-level-box-shadow: 0 17px 40px 0 rgba(0, 0, 0, 0.17), 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n --fourth-level-box-shadow: 0 25px 45px 0 rgba(0, 0, 0, 0.2), 0 16px 24px 0 rgba(0, 0, 0, 0.22);\n --fifth-level-box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.22), 0 27px 22px 0 rgba(0, 0, 0, 0.2);\n --focus-shadow: inset 1px 1px 0 #24b8d2, inset -1px -1px 0 #24b8d2; }\n\n.sg-theme-dark {\n --royal-base: #b37ef1;\n --royal-dark: #ab83c4;\n --royal-light: #d1bfda;\n --royal-lighter: #ebe0ef;\n --ocean-base: #7cd4e4;\n --ocean-dark: #3aa6ba;\n --ocean-light: #70d7e2;\n --ocean-lighter: #e4f5fa;\n --mint-base: #5ccfa7;\n --mint-dark: #4bb892;\n --mint-light: #8de0c0;\n --mint-lighter: #e1f1e7;\n --grassy-base: #a6d367;\n --grassy-dark: #94ae59;\n --grassy-light: #c2ed8e;\n --grassy-lighter: #edf4db;\n --salmon-base: #f68f61;\n --salmon-dark: #da764a;\n --salmon-light: #f1a98c;\n --salmon-lighter: #f8eae0;\n --sunset-base: #efae5b;\n --sunset-dark: #cb934a;\n --sunset-light: #fccf74;\n --sunset-lighter: #f6e8d5;\n --mango-base: #e9bd4a;\n --mango-dark: #a68a4d;\n --mango-light: #f1e5ae;\n --mango-lighter: #f7f3da;\n --bronze-base: #d4b787;\n --bronze-dark: #9d8a6d;\n --bronze-light: #efe1ce;\n --bronze-lighter: #e2dbd5;\n --color-primary: var(--salmon-base);\n --color-primary-hovered: var(--salmon-dark);\n --color-primary-active: var(--salmon-light);\n --color-secondary: var(--ocean-base);\n --color-secondary-hovered: var(--ocean-dark);\n --color-secondary-active: var(--ocean-light);\n --color-positive: var(--mint-base);\n --color-positive-hovered: var(--mint-dark);\n --color-positive-active: var(--mint-light);\n --color-error: #f57c7c;\n --color-success: #80d367;\n --color-warning: var(--sunset-base);\n --color-instruction: var(--ocean-base);\n --color-info: var(--royal-base);\n --color-hint: #c2c2c2;\n --color-presentational: #ccaf83; }\n\n.sg-theme-dark {\n --background-main: #121212;\n --background-component-primary: #363636;\n --background-component-secondary: #444;\n --background-disabled: #666;\n --background-slider: #858484;\n --background-overlay: rgba(102, 102, 102, 0.95);\n --background-highlight: #444;\n --backround-employee: #666;\n --backround-client: #444;\n --backround-popover-image-hover: rgba(0, 0, 0, 0.3); }\n\n.sg-theme-dark {\n --typography-white: #fff;\n --typography-lightest: #858484;\n --typography-lighter: #c2c2c2;\n --typography-light: #c2c2c2;\n --typography-dark: #ececec;\n --typography-darker: #f2f2f2;\n --typography-darkest: #fff; }\n\n.sg-theme-dark {\n --color-scrollbar: #f2f2f2;\n --color-scrollbar-thumb: #ddd;\n --color-scrollbar-thumb-hover: #c2c2c2;\n --color-button-base: #666;\n --color-button-base-focus: #858484;\n --color-button-base-hover: #666;\n --color-button-base-active: #666;\n --color-button-white: #363636;\n --color-icon-button: #ddd;\n --color-editor-icon: #ddd;\n --color-disabled: #888;\n --border-color-outer: #858484;\n --border-color-inner: #444;\n --border-color-focus: #fff;\n --border-color-default: #858484;\n /* Components */\n --component-background-hover: #444;\n --component-color-hover: currentColor;\n --avatar-color: #444;\n --avatar-background: #ddd;\n --context-menu-background: #666;\n --chart-color-first: var(--ocean-base);\n --chart-color-second: var(--salmon-base);\n --chart-color-third: var(--grassy-base);\n --chart-color-fourth: var(--sunset-base);\n --chart-color-fifth: var(--mint-base);\n --chart-color-sixth: var(--royal-base);\n --chart-color-seventh: var(--ocean-light);\n --chart-color-eighth: var(--sunset-light);\n --icon-color-royal: var(--royal-dark);\n --icon-color-royal-light: transparent;\n --icon-color-royal-lighter: transparent;\n --icon-color-ocean: var(--ocean-dark);\n --icon-color-ocean-light: transparent;\n --icon-color-ocean-lighter: transparent;\n --icon-color-mint: var(--mint-dark);\n --icon-color-mint-light: transparent;\n --icon-color-mint-lighter: transparent;\n --icon-color-grassy: var(--grassy-dark);\n --icon-color-grassy-light: transparent;\n --icon-color-grassy-lighter: transparent;\n --icon-color-salmon: var(--salmon-dark);\n --icon-color-salmon-light: transparent;\n --icon-color-salmon-lighter: transparent;\n --icon-color-sunset: var(--sunset-dark);\n --icon-color-sunset-light: transparent;\n --icon-color-sunset-lighter: transparent;\n --icon-color-mango: var(--mango-dark);\n --icon-color-mango-light: transparent;\n --icon-color-mango-lighter: transparent;\n --icon-color-bronze: var(--bronze-dark);\n --icon-color-bronze-light: transparent;\n --icon-color-bronze-lighter: transparent;\n --icon-logo-background-light: #fff;\n --notice-border-color: #f19b7a;\n --notice-background-attention: var(--background-component-secondary);\n --loader-background: rgba(54, 54, 54, 0.75);\n --loader-background-dark: rgba(54, 54, 54, 0.75);\n --drawer-background: #363636;\n --drawer-icon-color: #fff;\n --drawer-icon-background-hover: #858484;\n --header-background: #363636;\n --footer-background: #363636;\n --navigation-background: #363636;\n --navigation-background-hover: #363636;\n --navigation-list-color: #363636;\n --navigation-list-color-selected: #fff;\n --navigation-list-background: #444;\n --navigation-list-background-opened: #444;\n --navigation-list-background-hovered: #292929;\n --navigation-list-background-selected: #666;\n --navigation-icon-color: #ddd;\n --navigation-icon-color-selected: #ddd;\n --navigation-separator-background: #ddd;\n --navigation-button-color: #ddd;\n --header-navigation-color: #fff;\n --header-navigation-color-hover: #fff;\n --header-navigation-color-selected: #fff;\n --header-navigation-background: transparent;\n --header-navigation-background-hover: #666;\n --header-navigation-background-selected: #444;\n --header-second-navigation-background-selected: #444;\n --header-support-navigation-background-selected: #858484;\n --section-background-white: var(--background-component-secondary);\n --section-background-yellow: var(--background-component-secondary);\n --section-background-light: var(--background-component-secondary);\n --section-background-dark: var(--header-background);\n --tooltip-color: #fff;\n --tooltip-background-light: #fff;\n --tooltip-background-dark: #666; }\n\n.sg-theme-dark {\n --first-level-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 0 rgba(0, 0, 0, 0.05);\n --second-level-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06), 0 4px 12px 0 rgba(0, 0, 0, 0.1);\n --third-level-box-shadow: 0 17px 40px 0 rgba(0, 0, 0, 0.17), 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n --fourth-level-box-shadow: 0 25px 45px 0 rgba(0, 0, 0, 0.2), 0 16px 24px 0 rgba(0, 0, 0, 0.22);\n --fifth-level-box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.22), 0 27px 22px 0 rgba(0, 0, 0, 0.2);\n --focus-shadow: inset 1px 1px 0 #24b8d2, inset -1px -1px 0 #24b8d2; }\n\n.sg-theme-hcb {\n --royal-base: #d0abfd;\n --royal-dark: #7d5aa6;\n --royal-light: #d1bfda;\n --royal-lighter: #ebe0ef;\n --ocean-base: #6adae6;\n --ocean-dark: #22b8d1;\n --ocean-light: #b0e0e9;\n --ocean-lighter: #e4f5fa;\n --mint-base: #2bab7f;\n --mint-dark: #1e6346;\n --mint-light: #add9c0;\n --mint-lighter: #e1f1e7;\n --grassy-base: #96ca51;\n --grassy-dark: #577635;\n --grassy-light: #d8e5b5;\n --grassy-lighter: #edf4db;\n --salmon-base: #f47b44;\n --salmon-dark: #b35227;\n --salmon-light: #f3cfbb;\n --salmon-lighter: #f8eae0;\n --sunset-base: #ee9629;\n --sunset-dark: #8e5d25;\n --sunset-light: #f0c99a;\n --sunset-lighter: #f6e8d5;\n --mango-base: #e5b22a;\n --mango-dark: #96762e;\n --mango-light: #efe0a0;\n --mango-lighter: #f7f3da;\n --bronze-base: #cdaa72;\n --bronze-dark: #343230;\n --bronze-light: #ecdcc6;\n --bronze-lighter: #e2dbd5;\n --color-primary: #ef9a78;\n --color-primary-hovered: #f57b45;\n --color-primary-active: var(--salmon-light);\n --color-secondary: var(--ocean-base);\n --color-secondary-hovered: var(--ocean-dark);\n --color-secondary-active: var(--ocean-light);\n --color-positive: var(--mint-base);\n --color-positive-hovered: var(--mint-dark);\n --color-positive-active: var(--mint-light);\n --color-error: #f98f8f;\n --color-success: #a6e094;\n --color-warning: #f4c68b;\n --color-instruction: var(--ocean-base);\n --color-info: var(--royal-base);\n --color-hint: #c2c2c2;\n --color-presentational: #fff; }\n\n.sg-theme-hcb {\n --background-main: #000;\n --background-component-primary: #000;\n --background-component-secondary: #000;\n --background-disabled: #888;\n --background-slider: #fff;\n --background-overlay: rgba(102, 102, 102, 0.95);\n --background-highlight: #000;\n --backround-employee: #000;\n --backround-client: #000;\n --backround-popover-image-hover: rgba(0, 0, 0, 0.3); }\n\n.sg-theme-hcb {\n --typography-white: #fff;\n --typography-lightest: #fff;\n --typography-lighter: #fff;\n --typography-light: #fff;\n --typography-dark: #fff;\n --typography-darker: #fff;\n --typography-darkest: #fff; }\n\n.sg-theme-hcb {\n --color-scrollbar: #f2f2f2;\n --color-scrollbar-thumb: #ddd;\n --color-scrollbar-thumb-hover: #c2c2c2;\n --color-button-base: #666;\n --color-button-base-focus: #858484;\n --color-button-base-hover: #666;\n --color-button-base-active: #666;\n --color-button-white: #000;\n --color-icon-button: #fff;\n --color-editor-icon: #fff;\n --color-disabled: #888;\n --border-color-outer: #ececec;\n --border-color-inner: #ececec;\n --border-color-focus: #fff;\n --border-color-default: #fff;\n --high-contrast-foreground: #fff;\n --high-contrast-background: #000;\n /* Components */\n --component-background-hover: #1797ae;\n --component-color-hover: currentColor;\n --avatar-color: #000;\n --avatar-background: #fff;\n --context-menu-background: #000;\n --icon-color-royal: #ececec;\n --icon-color-royal-light: transparent;\n --icon-color-royal-lighter: transparent;\n --icon-color-ocean: #ececec;\n --icon-color-ocean-light: transparent;\n --icon-color-ocean-lighter: transparent;\n --icon-color-mint: #ececec;\n --icon-color-mint-light: transparent;\n --icon-color-mint-lighter: transparent;\n --icon-color-grassy: #ececec;\n --icon-color-grassy-light: transparent;\n --icon-color-grassy-lighter: transparent;\n --icon-color-salmon: #ececec;\n --icon-color-salmon-light: transparent;\n --icon-color-salmon-lighter: transparent;\n --icon-color-sunset: #ececec;\n --icon-color-sunset-light: transparent;\n --icon-color-sunset-lighter: transparent;\n --icon-color-mango: #ececec;\n --icon-color-mango-light: transparent;\n --icon-color-mango-lighter: transparent;\n --icon-color-bronze: #ececec;\n --icon-color-bronze-light: transparent;\n --icon-color-bronze-lighter: transparent;\n --icon-logo-background-light: #fff;\n --notice-border-color: #f19b7a;\n --notice-background-attention: #000;\n --loader-background: rgba(0, 0, 0, 0.75);\n --loader-background-dark: rgba(0, 0, 0, 0.75);\n --drawer-background: #000;\n --drawer-icon-color: #fff;\n --drawer-icon-background-hover: #858484;\n --header-background: #000;\n --footer-background: #000;\n --navigation-background: #000;\n --navigation-background-hover: #363636;\n --navigation-list-color: #363636;\n --navigation-list-color-selected: #363636;\n --navigation-list-background: #000;\n --navigation-list-background-opened: #000;\n --navigation-list-background-hovered: #444;\n --navigation-list-background-selected: #fff;\n --navigation-icon-color: #fff;\n --navigation-icon-color-selected: #000;\n --navigation-separator-background: #fff;\n --navigation-button-color: #fff;\n --header-navigation-color: #fff;\n --header-navigation-color-hover: #000;\n --header-navigation-color-selected: #000;\n --header-navigation-background: transparent;\n --header-navigation-background-hover: #fff;\n --header-navigation-background-selected: #fff;\n --header-second-navigation-background-selected: #000;\n --header-support-navigation-background-selected: #fff;\n --section-background-white: var(--background-component-primary);\n --section-background-yellow: var(--header-second-navigation-background-selected);\n --section-background-light: var(--background-component-secondary);\n --section-background-dark: var(--header-background);\n --tooltip-color: #fff;\n --tooltip-background-light: #000;\n --tooltip-background-dark: #000; }\n\n.sg-theme-hcb {\n --first-level-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 0 rgba(0, 0, 0, 0.05);\n --second-level-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06), 0 4px 12px 0 rgba(0, 0, 0, 0.1);\n --third-level-box-shadow: 0 17px 40px 0 rgba(0, 0, 0, 0.17), 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n --fourth-level-box-shadow: 0 25px 45px 0 rgba(0, 0, 0, 0.2), 0 16px 24px 0 rgba(0, 0, 0, 0.22);\n --fifth-level-box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.22), 0 27px 22px 0 rgba(0, 0, 0, 0.2);\n --focus-shadow: inset 1px 1px 0 #24b8d2, inset -1px -1px 0 #24b8d2; }\n\n.sg-theme-hcl {\n --royal-base: #4f2d61;\n --royal-dark: #362143;\n --royal-light: #674f76;\n --royal-lighter: #ebe0ef;\n --ocean-base: #166e7e;\n --ocean-dark: #0e5b68;\n --ocean-light: #347d85;\n --ocean-lighter: #e4f5fa;\n --mint-base: #26775b;\n --mint-dark: #1a674c;\n --mint-light: #347d85;\n --mint-lighter: #e1f1e7;\n --grassy-base: #5a7a2e;\n --grassy-dark: #4d6024;\n --grassy-light: #6e8549;\n --grassy-lighter: #edf4db;\n --salmon-base: #8e6025;\n --salmon-dark: #744d19;\n --salmon-light: #977737;\n --salmon-lighter: #f8eae0;\n --sunset-base: #934a29;\n --sunset-dark: #7f3819;\n --sunset-light: #8f5c48;\n --sunset-lighter: #f6e8d5;\n --mango-base: #896b19;\n --mango-dark: #5a471c;\n --mango-light: #8f8660;\n --mango-lighter: #f7f3da;\n --bronze-base: #7b6644;\n --bronze-dark: #544732;\n --bronze-light: #8e8477;\n --bronze-lighter: #e2dbd5;\n --color-primary: var(--salmon-base);\n --color-primary-hovered: var(--salmon-dark);\n --color-primary-active: var(--salmon-light);\n --color-secondary: var(--ocean-base);\n --color-secondary-hovered: var(--ocean-dark);\n --color-secondary-active: var(--ocean-light);\n --color-positive: var(--mint-base);\n --color-positive-hovered: var(--mint-dark);\n --color-positive-active: var(--mint-light);\n --color-error: #932929;\n --color-success: #407a2e;\n --color-warning: var(--sunset-base);\n --color-instruction: var(--ocean-base);\n --color-info: var(--royal-base);\n --color-hint: #c2c2c2;\n --color-presentational: #000; }\n\n.sg-theme-hcl {\n --background-main: #fff;\n --background-component-primary: #fff;\n --background-component-secondary: #fff;\n --background-disabled: #888;\n --background-slider: #000;\n --background-overlay: rgba(255, 255, 255, 0.95);\n --background-highlight: #fff;\n --backround-employee: #fff;\n --backround-client: #fff;\n --backround-popover-image-hover: rgba(0, 0, 0, 0.3); }\n\n.sg-theme-hcl {\n --typography-white: #000;\n --typography-lightest: #000;\n --typography-lighter: #000;\n --typography-light: #000;\n --typography-dark: #000;\n --typography-darker: #000;\n --typography-darkest: #000; }\n\n.sg-theme-hcl {\n --color-scrollbar: #f2f2f2;\n --color-scrollbar-thumb: #212121;\n --color-scrollbar-thumb-hover: #000;\n --color-icon-button: #000;\n --color-editor-icon: #000;\n --color-disabled: #888;\n --border-color-outer: #000;\n --border-color-inner: #000;\n --border-color-focus: #000;\n --border-color-default: #000;\n --high-contrast-foreground: #000;\n --high-contrast-background: #fff;\n /* Components */\n --component-background-hover: #1797ae;\n --component-color-hover: currentColor;\n --avatar-color: #fff;\n --avatar-background: #000;\n --context-menu-background: #fff;\n --icon-color-royal: #000;\n --icon-color-royal-light: transparent;\n --icon-color-royal-lighter: transparent;\n --icon-color-ocean: #000;\n --icon-color-ocean-light: transparent;\n --icon-color-ocean-lighter: transparent;\n --icon-color-mint: #000;\n --icon-color-mint-light: transparent;\n --icon-color-mint-lighter: transparent;\n --icon-color-grassy: #000;\n --icon-color-grassy-light: transparent;\n --icon-color-grassy-lighter: transparent;\n --icon-color-salmon: #000;\n --icon-color-salmon-light: transparent;\n --icon-color-salmon-lighter: transparent;\n --icon-color-sunset: #000;\n --icon-color-sunset-light: transparent;\n --icon-color-sunset-lighter: transparent;\n --icon-color-mango: #000;\n --icon-color-mango-light: transparent;\n --icon-color-mango-lighter: transparent;\n --icon-color-bronze: #000;\n --icon-color-bronze-light: transparent;\n --icon-color-bronze-lighter: transparent;\n --loader-background: rgba(255, 255, 255, 0.75);\n --loader-background-dark: rgba(255, 255, 255, 0.75);\n --drawer-background: #fff;\n --drawer-icon-color: #000;\n --drawer-icon-background-hover: #858484;\n --header-background: #fff;\n --footer-background: #fff;\n --navigation-background: #fff;\n --navigation-background-hover: #363636;\n --navigation-list-color: #363636;\n --navigation-list-color-selected: #fff;\n --navigation-list-background: #fff;\n --navigation-list-background-opened: #fff;\n --navigation-list-background-hovered: #ddd;\n --navigation-list-background-selected: #000;\n --navigation-icon-color: #000;\n --navigation-icon-color-selected: #fff;\n --navigation-separator-background: #000;\n --navigation-button-color: #000;\n --header-navigation-color: #000;\n --header-navigation-color-hover: #fff;\n --header-navigation-color-selected: #fff;\n --header-navigation-background: transparent;\n --header-navigation-background-hover: #000;\n --header-navigation-background-selected: #000;\n --header-second-navigation-background-selected: #fff;\n --header-support-navigation-background-selected: #000;\n --section-background-white: var(--background-component-primary);\n --section-background-yellow: var(--header-second-navigation-background-selected);\n --section-background-light: var(--background-component-secondary);\n --section-background-dark: var(--header-background);\n --tooltip-color: #000;\n --tooltip-background-light: #fff;\n --tooltip-background-dark: #fff; }\n\n.sg-theme-hcl {\n --first-level-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 0 rgba(0, 0, 0, 0.05);\n --second-level-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06), 0 4px 12px 0 rgba(0, 0, 0, 0.1);\n --third-level-box-shadow: 0 17px 40px 0 rgba(0, 0, 0, 0.17), 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n --fourth-level-box-shadow: 0 25px 45px 0 rgba(0, 0, 0, 0.2), 0 16px 24px 0 rgba(0, 0, 0, 0.22);\n --fifth-level-box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.22), 0 27px 22px 0 rgba(0, 0, 0, 0.2);\n --focus-shadow: inset 1px 1px 0 #24b8d2, inset -1px -1px 0 #24b8d2; }\n\n:root {\n --z-index-drawer: 10;\n --z-index-dropdown: 20;\n --z-index-sticky: 30;\n --z-index-fixed: 40;\n --z-index-filter: 50;\n --z-index-chat: 60;\n --z-index-modalBackground: 70;\n --z-index-modal: 80;\n --z-index-loadingModal: 90;\n --z-index-contextWraper: 100;\n --z-index-chat-notification: 110;\n --z-index-notification: 120;\n --z-index-popover: 130;\n --z-index-popoverZoomIn: 140;\n --z-index-tooltip: 150; }\n\n* {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n scrollbar-face-color: var(--color-scrollbar);\n scrollbar-highlight-color: var(--color-scrollbar);\n scrollbar-shadow-color: var(--color-scrollbar);\n scrollbar-track-color: var(--color-scrollbar);\n -webkit-overflow-scrolling: touch; }\n\n::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: var(--color-scrollbar); }\n\n::-webkit-scrollbar-thumb {\n background-color: var(--color-scrollbar-thumb);\n border-radius: 10px; }\n\n::-webkit-scrollbar-thumb:hover {\n background-color: var(--color-scrollbar-thumb-hover); }\n\n::-webkit-scrollbar-corner {\n background-color: var(--color-scrollbar); }\n\nheader,\nnav,\nsection,\nmain,\narticle,\naside,\nfigure,\ntoolbar,\niframe,\nobject,\nsvg {\n display: block; }\n\nhtml {\n background: #fff;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased; }\n\nbody {\n color: var(--typography-darkest);\n background: var(--background-main);\n font-weight: 400;\n font-size: 14px;\n font-family: var(--font-family-default);\n line-height: 18px; }\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n line-height: normal; }\n\ndl,\ndt,\ndd,\nul {\n list-style: none; }\n\nol {\n padding: 0 0 0 20px; }\n\nform,\ninput,\ntextarea,\nselect {\n resize: none; }\n\nform,\ntextarea {\n width: 100%; }\n\ninput,\ntextarea,\nselect {\n border-radius: 0; }\n input:focus,\n textarea:focus,\n select:focus {\n outline: none; }\n input[type="submit"]:focus,\n textarea[type="submit"]:focus,\n select[type="submit"]:focus {\n border: none !important; }\n\nbutton {\n outline: none;\n border-radius: 0; }\n\nimg {\n max-width: 100%;\n height: auto;\n display: block;\n border: 0; }\n\ntable {\n border-collapse: collapse; }\n\na {\n text-decoration: none;\n color: #000; }\n\n.divider {\n border-bottom: 1px solid #ECECEC; }\n\n.right--actions {\n text-align: right; }\n\n.sg-tabs__tab.sg-optimizer-tab {\n padding: 0 20px; }\n .sg-tabs__tab.sg-optimizer-tab:first-child {\n padding-left: 30px; }\n\n.sg-field-wrapper--medium .sg-input-addon .sg-text-truncate {\n max-width: 500px; }\n\n.sg-checkbox__input {\n display: none !important; }\n\n.sg-field-wrapper--large .sg-input-addon .sg-text-truncate {\n max-width: none !important; }\n\n.sg-text {\n word-break: break-word !important; }\n\n.sg-slider .sg-slider__labels {\n display: none; }\n\n.sg-flex.margin-top--x-small {\n margin-top: 5px; }\n\n.position--relative {\n position: relative; }\n\n.loader-image-optimization .sg-loader__content--position-absolute {\n width: 90%; }\n\n.loader-image-optimization .sg-loader-message,\n.loader-image-optimization .sg-loader__message {\n max-width: none; }\n\n.sg-field-wrapper--medium .sg-input-addon .sg-text-truncate {\n max-width: 350px !important; }\n\n.label-wrapper--absolute {\n position: absolute;\n z-index: 2;\n top: 0;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%); }\n\n.sg-optimizer-intro-section.single .sg-carousel__indicators {\n display: none; }\n\n.feature-box--highlight {\n border-radius: 3px;\n border: 1px solid var(--border-color-outer);\n border-top: 3px solid var(--bronze-base);\n text-align: center; }\n\n@media (max-width: 800px) {\n .right--actions {\n text-align: left; } }\n\n@media (min-width: 801px) and (max-width: 1500px) {\n .sg-field-wrapper--small .sg-input-addon .sg-text-truncate {\n max-width: 80.64px !important; }\n .sg-field-wrapper--medium .sg-input-addon .sg-text-truncate {\n max-width: 80.64px !important; }\n .sg-field-wrapper--large .sg-input-addon .sg-text-truncate {\n max-width: 80.64px !important; }\n .sg-field-wrapper--x-large .sg-input-addon .sg-text-truncate {\n max-width: 100.8px !important; } }\n\n@media (min-width: 801px) {\n .button--fluid {\n width: 100%; } }\n\n.loader-cloudflare-optimization .sg-loader__message {\n min-width: 300px; }\n',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,s=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s)?e:(o=0===s.indexOf("//")?s:0===s.indexOf("/")?n+s:r+s.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t){e.exports=function(e){return null===e}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(771),o=n(193),s=n(194),i=n(775),a=n(780),c=Math.max;e.exports=function(e,t,n,l){e=o(e)?e:a(e),n=n&&!l?i(n):0;var u=e.length;return n<0&&(n=c(u+n,0)),s(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}},function(e,t,n){var r=n(772),o=n(773),s=n(774);e.exports=function(e,t,n){return t==t?s(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,s=n+(r?1:-1);r?s--:++s<o;)if(t(e[s],s,e))return s;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(776);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(777);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(778),o=n(192),s=n(195),i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(779),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(781),o=n(782);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(426);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){var r=n(783),o=n(430),s=n(193);e.exports=function(e){return s(e)?r(e):o(e)}},function(e,t,n){var r=n(784),o=n(427),s=n(108),i=n(428),a=n(787),c=n(429),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=s(e),u=!n&&o(e),d=!n&&!u&&i(e),p=!n&&!u&&!d&&c(e),f=n||u||d||p,g=f?r(e.length,String):[],m=g.length;for(var h in e)!t&&!l.call(e,h)||f&&("length"==h||d&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||a(h,m))||g.push(h);return g}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(82),o=n(94);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(82),o=n(425),s=n(94),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&o(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(418),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===o&&r.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}).call(this,n(1)(e))},function(e,t,n){var r=n(419)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(430),o=n(793),s=n(427),i=n(108),a=n(193),c=n(428),l=n(431),u=n(429),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||s(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t,n){var r=n(794),o=n(799),s=n(800),i=n(801),a=n(802),c=n(82),l=n(433),u=l(r),d=l(o),p=l(s),f=l(i),g=l(a),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||s&&"[object Promise]"!=m(s.resolve())||i&&"[object Set]"!=m(new i)||a&&"[object WeakMap]"!=m(new a))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case g:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(109)(n(61),"DataView");e.exports=r},function(e,t,n){var r=n(95),o=n(796),s=n(192),i=n(433),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||o(e))&&(r(e)?p:a).test(i(e))}},function(e,t,n){var r,o=n(797),s=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!s&&s in e}},function(e,t,n){var r=n(61)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(109)(n(61),"Map");e.exports=r},function(e,t,n){var r=n(109)(n(61),"Promise");e.exports=r},function(e,t,n){var r=n(109)(n(61),"Set");e.exports=r},function(e,t,n){var r=n(109)(n(61),"WeakMap");e.exports=r},function(e,t,n){var r=n(804);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(190),o=n(426),s=n(108),i=n(195),a=r?r.prototype:void 0,c=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e).map((function(n){return(0,r.default)(n,e[n],t)})),i=s.default.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n));return function(e,t){return i(e,t)}};var r=i(n(424)),o=i(n(806)),s=i(n(807));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e)));return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if((0,p.default)(n.every(l.default)&&((0,l.default)(e)||(0,a.default)(e)),"Expected optional object followed by string action types"),(0,l.default)(e))return h([e].concat(n));return o({},m(e),h(n))};var s=f(n(191)),i=f(n(809)),a=f(n(131)),c=f(n(108)),l=f(n(194)),u=f(n(95)),d=f(n(422)),p=f(n(20));function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return Object.keys(e).reduce((function(t,n){var a=e[n];(0,p.default)(function(e){if((0,u.default)(e))return!0;if((0,c.default)(e)){var t=r(e,2),n=t[0],o=void 0===n?s.default:n,i=t[1];return(0,u.default)(o)&&(0,u.default)(i)}return!1}(a),"Expected function, undefined, or array with payload and meta functions for "+n);var l=(0,c.default)(a)?d.default.apply(void 0,[n].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a))):(0,d.default)(n,a);return o({},t,g({},(0,i.default)(n),l))}),{})}function h(e){return m(e.reduce((function(e,t){return o({},e,g({},t,s.default))}),{}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:(?:1ST|2ND|3RD|(?![123])\dTH)\b)|\d*(?:(?:1st|2nd|3rd|(?![123])\dth)\b)|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g;function o(e){return e.match(r).reduce((function(e,t,n){return e+(0===n?t.toLowerCase():t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())}),"")}t.default=function(e){return e.split("/").map(o).join("/")}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(93),c=n(413),l=o(n(811)),u=o(n(815)),d=o(n(818)),p=o(n(819)),f=o(n(826)),g=l.default(),m={key:window.optimizerData.home_url,storage:u.default,stateReconciler:d.default,whitelist:["isAnalysing","device"]},h=c.persistReducer(m,p.default);t.store=a.createStore(h,a.applyMiddleware(g)),t.persistor=c.persistStore(t.store),g.run(f.default),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(l,"redux_saga_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(u,"storage_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(d,"hardSet_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(p,"reducers_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(f,"sagas_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(g,"sagaMiddleware","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(m,"persistConfig","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(h,"persistedReducer","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.effects=t.CANCEL=t.delay=t.throttle=t.takeLatest=t.takeEvery=t.buffers=t.channel=t.eventChannel=t.END=t.runSaga=void 0;var r=n(812);Object.defineProperty(t,"runSaga",{enumerable:!0,get:function(){return r.runSaga}});var o=n(133);Object.defineProperty(t,"END",{enumerable:!0,get:function(){return o.END}}),Object.defineProperty(t,"eventChannel",{enumerable:!0,get:function(){return o.eventChannel}}),Object.defineProperty(t,"channel",{enumerable:!0,get:function(){return o.channel}});var s=n(134);Object.defineProperty(t,"buffers",{enumerable:!0,get:function(){return s.buffers}});var i=n(435);Object.defineProperty(t,"takeEvery",{enumerable:!0,get:function(){return i.takeEvery}}),Object.defineProperty(t,"takeLatest",{enumerable:!0,get:function(){return i.takeLatest}}),Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return i.throttle}});var a=n(53);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return a.delay}}),Object.defineProperty(t,"CANCEL",{enumerable:!0,get:function(){return a.CANCEL}});var c,l=n(813),u=(c=l)&&c.__esModule?c:{default:c},d=f(n(83)),p=f(n(814));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.default=u.default,t.effects=d,t.utils=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runSaga=function(e,t){var n=t.subscribe,r=t.dispatch,s=t.getState,a=t.context,c=t.sagaMonitor,l=t.logger,u=t.onError;(0,o.check)(e,o.is.iterator,"runSaga must be called on an iterator");var d=(0,o.uid)();c&&c.effectTriggered({effectId:d,root:!0,parentEffectId:0,effect:{root:!0,saga:e,args:[]}});var p=(0,i.default)(e,n,(0,o.wrapSagaDispatch)(r),s,a,{sagaMonitor:c,logger:l,onError:u},d,e.name);c&&c.effectResolved(d,p);return p};var r,o=n(53),s=n(196),i=(r=s)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.context,n=void 0===t?{}:t,r=l(e,["context"]),s=void 0,u=r.sagaMonitor;u&&(u.effectTriggered=u.effectTriggered||o.noop,u.effectResolved=u.effectResolved||o.noop,u.effectRejected=u.effectRejected||o.noop,u.effectCancelled=u.effectCancelled||o.noop,u.actionDispatched=u.actionDispatched||o.noop);if(o.is.func(r))throw new Error("Saga middleware no longer accept Generator functions. Use sagaMiddleware.run instead");if(r.logger&&!o.is.func(r.logger))throw new Error("`options.logger` passed to the Saga middleware is not a function!");r.onerror&&(o.isDev&&(0,o.log)("warn","`options.onerror` is deprecated. Use `options.onError` instead."),r.onError=r.onerror,delete r.onerror);if(r.onError&&!o.is.func(r.onError))throw new Error("`options.onError` passed to the Saga middleware is not a function!");if(r.emitter&&!o.is.func(r.emitter))throw new Error("`options.emitter` passed to the Saga middleware is not a function!");function d(e){var t=e.getState,l=e.dispatch;s=function(e,o,s){return(0,i.default)(e.apply(void 0,c(o)),d.subscribe,p,t,n,r,s,e.name)};var d=(0,a.emitter)();d.emit=(r.emitter||o.ident)(d.emit);var p=(0,o.wrapSagaDispatch)(l);return function(e){return function(t){u&&u.actionDispatched(t);var n=e(t);return d.emit(t),n}}}return d.run=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,o.check)(s,o.is.notUndef,"Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware"),(0,o.check)(e,o.is.func,"sagaMiddleware.run(saga, ...args): saga argument must be a Generator function!");var i=(0,o.uid)();u&&u.effectTriggered({effectId:i,root:!0,parentEffectId:0,effect:{root:!0,saga:e,args:n}});var a=s(e,n,i);return u&&u.effectResolved(i,a),a},d.setContext=function(e){(0,o.check)(e,o.is.object,(0,o.createSetContextWarning)("sagaMiddleware",e)),o.object.assign(n,e)},d};var r,o=n(53),s=n(196),i=(r=s)&&r.__esModule?r:{default:r},a=n(133);function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(53);Object.defineProperty(t,"TASK",{enumerable:!0,get:function(){return r.TASK}}),Object.defineProperty(t,"SAGA_ACTION",{enumerable:!0,get:function(){return r.SAGA_ACTION}}),Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return r.noop}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return r.is}}),Object.defineProperty(t,"deferred",{enumerable:!0,get:function(){return r.deferred}}),Object.defineProperty(t,"arrayOfDeffered",{enumerable:!0,get:function(){return r.arrayOfDeffered}}),Object.defineProperty(t,"createMockTask",{enumerable:!0,get:function(){return r.createMockTask}});var o=n(132);Object.defineProperty(t,"asEffect",{enumerable:!0,get:function(){return o.asEffect}});var s=n(196);Object.defineProperty(t,"CHANNEL_END",{enumerable:!0,get:function(){return s.CHANNEL_END}})},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(816),s=(r=o)&&r.__esModule?r:{default:r};t.default=(0,s.default)("local")},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,o){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,o=n(817),s=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(){}t.default=function(e){var t=e+"Storage";return function(e){if("object"!==("undefined"==typeof self?"undefined":r(self))||!(e in self))return!1;try{var t=self[e],n="redux-persist "+e+" test";t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}(t)?self[t]:s};var s={getItem:o,setItem:o,removeItem:o}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(93),c=o(n(820)),l=o(n(821)),u=o(n(822)),d=o(n(823)),p=o(n(824)),f=o(n(825)),g=n(256),m=a.combineReducers({Environment:c.default,Options:l.default,Cache:u.default,Notifications:d.default,Report:p.default,Cloudflare:f.default,routing:g.routerReducer});t.default=m,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(c,"environment_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(l,"options_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(u,"cache_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(d,"notifications_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(p,"report_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(f,"cloudflare_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(m,"rootReducer","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),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,s=this&&this.__assign||function(){return(s=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.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=n(52),u=i(n(37)),d={};t.default=l.handleActions(((o={})[u.PAGE_INIT]=function(e,t){return s(s({},e),t.payload)},o[u.PAGE_RESIZE]=function(e,t){return s(s({},e),t.payload)},o),d),a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),a.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),a.register(u,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),a.register(d,"initialState","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),c(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r,o;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=n(16);t.default=a.handleActions(((o={})[c.fetchOptionsSuccess]=function(e,t){var n=t.payload;return Object.assign({},e,n)},o[c.optionEnabled]=function(e,t){var n=e[t.payload.payload.option]=1;return Object.assign({},e,n)},o[c.optionDisabled]=function(e,t){var n=e[t.payload.payload.option]=0;return Object.assign({},e,n)},o[c.optionChanged]=function(e,t){var n,r=t.payload;return Object.assign({},e,((n={})[r.payload.id]=r.payload.value,n))},o[c.isLoading]=function(e,t){var n=t.payload,r=e.isLoading=Number(n);return Object.assign({},e,r)},o[c.updateExcludeListSuccess]=function(e,t){var n=t.payload;return Object.assign({},e,{excluded_urls:n})},o[c.updateExcludesSuccess]=function(e,t){var n,r=t.payload;return Object.assign({},e,((n={})[r.type]=r.handles,n))},o[c.runAnalysisSuccess]=function(e,t){var n=t.payload;return Object.assign({},e,{previous_tests:n})},o),{assets:[],enable_cache:0,database_optimization:0,heartbeat_control:0,heartbeat_dashboard_interval:0,heartbeat_dashboard_status:0,heartbeat_post_interval:0,heartbeat_post_status:0,heartbeat_frontend_interval:0,heartbeat_frontend_status:0,dns_prefetch:0,dns_prefetch_urls:[],fix_insecure_content:0,autoflush_cache:0,enable_memcached:0,preload_combined_css:0,memcache_notice:0,memcache_crashed:0,memcache_dropin_crashed:0,ssl_enabled:0,enable_gzip_compression:0,enable_browser_caching:0,optimize_html:0,optimize_javascript:0,combine_javascript:0,combine_javascript_error:0,optimize_javascript_async:0,optimize_css:0,combine_css:0,remove_query_strings:0,disable_emojis:0,optimize_images:0,image_optimization_stopped:0,lazyload_images:0,lazyload_mobile:0,isLoading:0,lazyload_woocommerce:0,lazyload_iframes:0,lazyload_videos:0,lazyload_shortcodes:0,image_optimization_status:1,total_unoptimized_images:0,user_agent_header:0,excluded_urls:[],minify_javascript_exclude:[],combine_javascript_exclude:[],async_javascript_exclude:[],minify_css_exclude:[],combine_css_exclude:[],minify_html_exclude:[],excluded_lazy_load_classes:[],multisite_permissions:{},sites_data:[],previous_tests:[],dismiss_cron_notice:0,hide_rating:0,has_images:0,combine_google_fonts:0,has_images_for_optimization:0,webp_support:0,webp_enabled:0,quality_type:"",webp_conversion_status:1,webp_quality_changed:0,has_images_for_conversion:0,total_non_converted_images:0,fonts_preload_urls:[],cloudflare_optimization_status:0,cloudflare_optimization:0,cloudflare_email:"",cloudflare_auth_key:"",cloudflare_slots_deletion:0,has_cloudflare:0,post_types:[],post_types_exclude:[]}),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/options.ts"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r,o;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=n(16);t.default=a.handleActions(((o={})[c.purgeCache]=function(e,t){t.payload;return Object.assign({},e,{cachePurged:!1})},o[c.purgeCacheSuccess]=function(e,t){t.payload;return Object.assign({},e,{cachePurged:!0})},o),{cachePurged:!0}),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/cache.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,s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=n(52),d=n(46),p=a(n(37)),f={notifications:[]},g=((o={})[p.ADD_NOTIFICATION]=function(e,t){var n=t.payload,r=i(e.notifications);return r.push(n),Object.assign({},e,{notifications:r})},o[p.REMOVE_NOTIFICATION]=function(e,t){var n=t.payload,r=e.notifications;r=d.remove(e.notifications,(function(e){return e.id!==n.id}));return Object.assign({},e,{notifications:r})},o);t.default=u.handleActions(g,f),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__read","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(i,"__spread","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(p,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(f,"initialState","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(g,"reducerMap","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r,o;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=n(16),l={previous_tests:{},isAnalysing:0,device:"desktop"};t.default=a.handleActions(((o={})[c.runAnalysisSuccess]=function(e,t){t.payload;return Object.assign({},e,{isAnalysing:0})},o[c.runAnalysisFail]=function(e,t){t.payload;return Object.assign({},e,l)},o[c.analysisisLoading]=function(e,t){t.payload;return Object.assign({},e,{isAnalysing:1})},o[c.analysisChangeDevice]=function(e,t){var n=t.payload;return Object.assign({},e,{device:n.device})},o),l),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/report.ts"),s.register(l,"initialState","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/report.ts"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r,o;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=n(16),l={isOptimizing:0,isDeauthenticating:0,cloudflareCachePurged:!0};t.default=a.handleActions(((o={})[c.runCloudflareOptimizationSuccess]=function(e,t){t.payload;return Object.assign({},e,{isOptimizing:0})},o[c.runCloudflareOptimizationFail]=function(e,t){t.payload;return Object.assign({},e,l)},o[c.cloudflareOptimizationLoading]=function(e,t){t.payload;return Object.assign({},e,{isOptimizing:1})},o[c.purgeCloudflareCache]=function(e,t){t.payload;return Object.assign({},e,{cloudflareCachePurged:!1})},o[c.purgeCloudflareCacheSuccess]=function(e,t){t.payload;return Object.assign({},e,{cloudflareCachePurged:!0})},o[c.deauthenticateSuccess]=function(e,t){t.payload;return Object.assign({},e,{isDeauthenticating:0})},o[c.isDeauthenticating]=function(e,t){t.payload;return Object.assign({},e,{isDeauthenticating:1})},o[c.deauthenticateFail]=function(e,t){t.payload;return Object.assign({},e,l)},o),l),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/cloudflare.ts"),s.register(l,"initialState","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/cloudflare.ts"),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=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=s(n(827)),l=s(n(829)),u=s(n(830)),d=s(n(831)),p=s(n(832)),f=s(n(833));function g(){return o(this,(function(e){switch(e.label){case 0:return[4,[u.default(),l.default(),p.default(),d.default(),f.default(),c.default()]];case 1:return e.sent(),[2]}}))}t.default=g,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(s,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(c,"cloudflare_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(l,"options_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(u,"cache_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(d,"report_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(p,"image_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(f,"webp_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(g,"sagas","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),a(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.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(83),c=n(10),l=n(16),u=n(37),d=n(96);function p(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,12,,14]),[4,a.put(l.cloudflareOptimizationLoading())];case 1:return r.sent(),[4,a.put(l.fetchOptionsSuccess({cloudflare_slots_deletion:0}))];case 2:return r.sent(),[4,a.call(d.mainApi(window.optimizerData.rest_base+"/authenticate-cloudflare","POST",e.payload,{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 3:return(t=r.sent()).success?[4,a.put(l.runCloudflareOptimizationSuccess(t.data))]:[3,7];case 4:return r.sent(),[4,a.put(l.fetchOptionsSuccess(t.data.data))];case 5:return r.sent(),[4,a.put(l.addNotification({id:"cloudflare-disable",type:t.success?"success":"error",message:t.data.message}))];case 6:return r.sent(),[3,11];case 7:return[4,a.put(l.runCloudflareOptimizationFail())];case 8:return r.sent(),[4,a.put(l.addNotification({id:"cloudflare-authentication-failed",type:"error",message:t.data.message}))];case 9:return r.sent(),[4,a.put(l.fetchOptionsSuccess(t.data.data))];case 10:r.sent(),r.label=11;case 11:return[3,14];case 12:return n=r.sent(),[4,a.put(l.runCloudflareOptimizationFail())];case 13:return r.sent(),console.error(""+n,n),[3,14];case 14:return[2]}}))}function f(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,12,,14]),e.payload.hideInfo?[3,2]:[4,a.put(l.isDeauthenticating())];case 1:r.sent(),r.label=2;case 2:return[4,a.call(d.mainApi(window.optimizerData.rest_base+"/deauthenticate-cloudflare","GET"))];case 3:return(t=r.sent()).success?[4,a.put(l.deauthenticateSuccess())]:[3,8];case 4:return r.sent(),[4,a.put(l.fetchOptionsSuccess(t.data.data))];case 5:return r.sent(),e.payload.hideInfo?[3,7]:[4,a.put(l.addNotification({id:"cloudflare-deauthenticate-enable",type:t.success?"success":"error",message:t.data.message}))];case 6:r.sent(),r.label=7;case 7:return[3,11];case 8:return[4,a.put(l.deauthenticateFail())];case 9:return r.sent(),[4,a.put(l.addNotification({id:"cloudflare-deauthenticate-disable",type:"error",message:t.data.message}))];case 10:r.sent(),r.label=11;case 11:return[3,14];case 12:return n=r.sent(),[4,a.put(l.deauthenticateFail())];case 13:return r.sent(),console.error(""+n,n),[3,14];case 14:return[2]}}))}function g(){var e;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,4,,5]),[4,a.call(d.mainApi(window.optimizerData.rest_base+"/purge-cloudflare-cache","GET",{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t.sent(),[4,a.put({type:u.ADD_NOTIFICATION,payload:{id:"cloudflare-cache-purged",type:"success",message:c.translate("Cloudflare Cache Successfully Purged")}})];case 2:return t.sent(),[4,a.put(l.purgeCloudflareCacheSuccess())];case 3:return t.sent(),[3,5];case 4:return e=t.sent(),console.error(""+e,e),[3,5];case 5:return[2]}}))}function m(){return o(this,(function(e){switch(e.label){case 0:return[4,a.takeLatest(u.PURGE_CLOUDFLARE_CACHE,g)];case 1:return e.sent(),[4,a.takeLatest(u.AUTHENTICATE,p)];case 2:return e.sent(),[4,a.takeLatest(u.DEAUTHENTICATE,f)];case 3:return e.sent(),[2]}}))}t.default=m,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),s.register(p,"handleAuthenticate","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),s.register(f,"handleDeauthenticate","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),s.register(g,"handeCloudflareCachePurge","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),s.register(m,"cloudflare","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),i(e))}).call(this,n(1)(e))},function(e,t,n){!function(e){"use strict";var t="URLSearchParams"in self,n="Symbol"in self&&"iterator"in Symbol,r="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in self,s="ArrayBuffer"in self;if(s)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var n;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=l(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u(e)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var n,r,o=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];b.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.DOMException=self.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function M(t,n){return new Promise((function(o,s){var i=new v(t,n);if(i.signal&&i.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;o(new b(r,n))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",c)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}M.polyfill=!0,self.fetch||(self.fetch=M,self.Headers=d,self.Request=v,self.Response=b),e.Headers=d,e.Request=v,e.Response=b,e.fetch=M,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(83),a=n(10),c=n(16);window.optimizerData=window.optimizerData||{};var l,u,d=s(n(37)),p=n(96);function f(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/fetch-options","GET",{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return void 0!==(e=n.sent())?[3,3]:[4,i.put(c.addNotification({id:"fetchoptionserror",type:"error",title:a.translate("Could not connect to the WordPress REST API"),message:a.translate("Either a security plugin, custom function or rules in your .htaccess file is preventing the WordPress REST API from working properly. SiteGround Optimizer is using it to store its options and other functionalities so please make sure it works properly.")}))];case 2:n.sent(),n.label=3;case 3:return[4,i.put(c.fetchOptionsSuccess(e.data))];case 4:return n.sent(),[3,6];case 5:return t=n.sent(),console.error(""+t,t),[3,6];case 6:return[2]}}))}function g(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-option","POST",{option_key:"siteground_optimizer_"+e.payload.option,is_multisite:e.payload.isMultisite},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success?[4,i.put(c.optionEnabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return e.payload.showNotification?[4,i.put(c.addNotification({id:e.payload.option+"enable",type:t.success?"success":"error",message:t.data.message}))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function m(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-option","POST",{option_key:"siteground_optimizer_"+e.payload.option,is_multisite:e.payload.isMultisite},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success?[4,i.put(c.optionDisabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return e.payload.showNotification?[4,i.put(c.addNotification({id:e.payload.option+"disable",type:t.success?"success":"error",message:t.data.message}))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function h(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-multisite-optimization","POST",{blog_id:e.payload.blogId,setting:"enable_"+e.payload.setting+"_optimization"},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success||!t.data.message?[3,3]:[4,i.put(c.addNotification({id:"bulk_error_message",type:"error",message:t.data.message}))];case 2:return r.sent(),[3,5];case 3:return[4,i.put(c.fetchOptions())];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function _(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-multisite-optimization","POST",{blog_id:e.payload.blogId,setting:"disable_"+e.payload.setting+"_optimization"},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success||!t.data.message.lenght?[3,3]:[4,i.put(c.addNotification({id:"bulk_error_message",type:"error",message:t.data.message}))];case 2:return r.sent(),[3,5];case 3:return[4,i.put(c.fetchOptions())];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function v(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-memcache"))];case 1:return(t=r.sent()).success?[4,i.put(c.optionEnabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,i.put(c.addNotification({id:e.payload,type:t.success?"success":"error",message:t.data.message}))];case 4:return r.sent(),[3,6];case 5:return n=r.sent(),console.error(""+n,n),[3,6];case 6:return[2]}}))}function y(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-memcache"))];case 1:return(t=r.sent()).success?[4,i.put(c.optionDisabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,i.put(c.addNotification({id:e.payload,type:t.success?"success":"error",message:t.data.message}))];case 4:return r.sent(),[3,6];case 5:return n=r.sent(),console.error(""+n,n),[3,6];case 6:return[2]}}))}function b(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return[4,i.put(c.isLoading(!0))];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,8,,9]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-ssl","POST",{option_key:"siteground_optimizer_"+e.payload.option},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 3:return(t=r.sent()).success?[4,i.put(c.optionEnabled(e))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[4,i.put(c.isLoading(!1))];case 6:return r.sent(),[4,i.put(c.addNotification({id:e.payload,type:t.success?"success":"error",message:t.data.message}))];case 7:return r.sent(),[3,9];case 8:return n=r.sent(),console.error(""+n,n),[3,9];case 9:return[2]}}))}function w(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return[4,i.put(c.isLoading(!0))];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,8,,9]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-ssl","POST",{option_key:"siteground_optimizer_"+e.payload.option},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 3:return(t=r.sent()).success?[4,i.put(c.optionDisabled(e))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[4,i.put(c.isLoading(!1))];case 6:return r.sent(),[4,i.put(c.addNotification({id:e.payload,type:t.success?"success":"error",message:t.data.message}))];case 7:return r.sent(),[3,9];case 8:return n=r.sent(),console.error(""+n,n),[3,9];case 9:return[2]}}))}function M(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/update-excluded-urls","POST",{excluded_urls:JSON.stringify(e.payload)},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t=r.sent(),[4,i.put(c.updateExcludeListSuccess(t.data))];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),console.error(""+n,n),[3,4];case 4:return[2]}}))}function x(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/update-exclude-list","POST",{type:e.payload.type,handle:e.payload.handle},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t=r.sent(),[4,i.put(c.updateExcludesSuccess({type:e.payload.type,handles:t.handles}))];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),console.error(""+n,n),[3,4];case 4:return[2]}}))}function S(e){var t,n;return o(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/hide-rating"))];case 1:return e.sent(),t={hide_rating:1},[4,i.put(c.fetchOptionsSuccess(t))];case 2:return e.sent(),[3,4];case 3:return n=e.sent(),console.error(""+n,n),[3,4];case 4:return[2]}}))}function O(e){var t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/change-option","POST",{option_key:"siteground_optimizer_"+e.payload.id,value:e.payload.value},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return n.sent().success?[4,i.put(c.optionChanged(e))]:[3,3];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:return t=n.sent(),console.error(""+t,t),[3,5];case 5:return[2]}}))}function A(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-database-optimization","POST",{option_key:"siteground_optimizer_"+e.payload.option,is_multisite:e.payload.isMultisite},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success?[4,i.put(c.optionEnabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return e.payload.showNotification?[4,i.put(c.addNotification({id:e.payload.option+"enable",type:t.success?"success":"error",message:t.data.message}))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function k(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-database-optimization","POST",{option_key:"siteground_optimizer_"+e.payload.option,is_multisite:e.payload.isMultisite},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success?[4,i.put(c.optionDisabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return e.payload.showNotification?[4,i.put(c.addNotification({id:e.payload.option+"disable",type:t.success?"success":"error",message:t.data.message}))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function L(){return o(this,(function(e){switch(e.label){case 0:return[4,i.takeLatest(d.ENABLE_OPTION,g)];case 1:return e.sent(),[4,i.takeLatest(d.DISABLE_OPTION,m)];case 2:return e.sent(),[4,i.takeLatest(d.ENABLE_BLOG_SETTINGS,h)];case 3:return e.sent(),[4,i.takeLatest(d.DISABLE_BLOG_SETTINGS,_)];case 4:return e.sent(),[4,i.takeLatest(d.FETCH_OPTIONS,f)];case 5:return e.sent(),[4,i.takeLatest(d.UPDATE_EXCLUDE_LIST,M)];case 6:return e.sent(),[4,i.takeLatest(d.UPDATE_EXCLUDES,x)];case 7:return e.sent(),[4,i.takeLatest(d.ENABLE_MEMCACHE,v)];case 8:return e.sent(),[4,i.takeLatest(d.DISABLE_MEMCACHE,y)];case 9:return e.sent(),[4,i.takeLatest(d.ENABLE_SSL,b)];case 10:return e.sent(),[4,i.takeLatest(d.DISABLE_SSL,w)];case 11:return e.sent(),[4,i.takeLatest(d.HIDE_RATING,S)];case 12:return e.sent(),[4,i.takeLatest(d.CHANGE_OPTION,O)];case 13:return e.sent(),[4,i.takeLatest(d.ENABLE_DATABASE_OPTIMIZATION,A)];case 14:return e.sent(),[4,i.takeLatest(d.DISABLE_DATABASE_OPTIMIZATION,k)];case 15:return e.sent(),[2]}}))}t.default=L,l=n(0).default,u=n(0).leaveModule,l&&(l.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(d,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(f,"handleFetchOptions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(g,"handleOptionEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(m,"handleOptionDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(h,"handleBlogSettingsEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(_,"handleBlogSettingsDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(v,"handleMemcacheEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(y,"handleMemcacheDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(b,"handleSslEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(w,"handleSslDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(M,"handleUpdateExcludeList","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(x,"handleUpdateExcludes","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(S,"handleHideRating","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(O,"handleChangeOption","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(A,"handleDatabaseOptimizationEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(k,"handleDatabaseOptimizationDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(L,"options","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),u(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.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=n(83),l=n(10),u=n(16),d=s(n(37)),p=n(96);function f(){var e;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,4,,5]),[4,c.call(p.mainApi(window.optimizerData.rest_base+"/purge-cache","GET",{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t.sent(),[4,c.put({type:d.ADD_NOTIFICATION,payload:{id:"cache-purged",type:"success",message:l.translate("Dynamic Cache Successfully Purged")}})];case 2:return t.sent(),[4,c.put(u.purgeCacheSuccess())];case 3:return t.sent(),[3,5];case 4:return e=t.sent(),console.error(""+e,e),[3,5];case 5:return[2]}}))}function g(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,c.call(p.mainApi(window.optimizerData.rest_base+"/test-url-cache","POST",{url:window.optimizerData.home_url+e.payload.url,isCloudflare:e.payload.isCloudflare},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t=r.sent(),[4,c.put({type:d.ADD_NOTIFICATION,payload:{id:e.payload,type:t.data.cached?"success":"error",message:t.data.cached?"The URL is cached":"The URL is not cached"}})];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),console.error(""+n,n),[3,4];case 4:return[2]}}))}function m(){return o(this,(function(e){switch(e.label){case 0:return[4,c.takeLatest(d.PURGE_CACHE,f)];case 1:return e.sent(),[4,c.takeLatest(d.TEST_URL,g)];case 2:return e.sent(),[2]}}))}t.default=m,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(d,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(f,"handeCachePurge","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(g,"handleTestUrl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(m,"cache","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),a(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.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(83),c=n(16),l=n(37),u=n(96);function d(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,7,,9]),[4,a.put(c.analysisisLoading())];case 1:return r.sent(),[4,a.call(u.mainApi(window.optimizerData.rest_base+"/run-analysis","POST",e.payload,{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 2:return(t=r.sent()).success?[4,a.put(c.runAnalysisSuccess(t.data))]:[3,4];case 3:return r.sent(),[3,6];case 4:return[4,a.put(c.runAnalysisFail())];case 5:r.sent(),r.label=6;case 6:return[3,9];case 7:return n=r.sent(),[4,a.put(c.runAnalysisFail())];case 8:return r.sent(),console.error(""+n,n),[3,9];case 9:return[2]}}))}function p(e){return o(this,(function(t){switch(t.label){case 0:return[4,a.put({type:l.ADD_NOTIFICATION,payload:{id:e.type,type:"error",message:"We failed to connect to Google servers, please try later!"}})];case 1:return t.sent(),[2]}}))}function f(){return o(this,(function(e){switch(e.label){case 0:return[4,a.takeLatest(l.RUN_ANALYSIS,d)];case 1:return e.sent(),[4,a.takeLatest(l.RUN_ANALYSIS_FAIL,p)];case 2:return e.sent(),[4,a.takeLatest(l.ANALYSIS_CHANGE_DEVICE,c.analysisChangeDevice)];case 3:return e.sent(),[2]}}))}t.default=f,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/report.ts"),s.register(d,"handleRunAnalysis","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/report.ts"),s.register(p,"handleRunAnalysisFail","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/report.ts"),s.register(f,"report","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/report.ts"),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=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=n(83),l=n(16),u=n(96),d=s(n(37));function p(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,c.call(u.mainApi(window.optimizerData.rest_base+"/check-image-optimizing-status?"+ +(new Date).getTime()))];case 1:return e=n.sent(),[4,c.put(l.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function f(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,c.call(u.mainApi(window.optimizerData.rest_base+"/optimize-images"))];case 1:return e=n.sent(),[4,c.put(l.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function g(){var e,t;return o(this,(function(n){switch(n.label){case 0:e={has_images_for_optimization:1},n.label=1;case 1:return n.trys.push([1,4,,5]),[4,c.call(u.mainApi(window.optimizerData.rest_base+"/reset-images-optimization"))];case 2:return n.sent(),[4,c.put(l.fetchOptionsSuccess(e))];case 3:return n.sent(),[3,5];case 4:return t=n.sent(),console.error(""+t,t),[3,5];case 5:return[2]}}))}function m(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,c.call(u.mainApi(window.optimizerData.rest_base+"/stop-images-optimization"))];case 1:return e=n.sent(),[4,c.put(l.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function h(){return o(this,(function(e){switch(e.label){case 0:return[4,c.takeLatest(d.CHECK_IMAGE_OPTIMIZATION_STATUS,p)];case 1:return e.sent(),[4,c.takeLatest(d.INIT_IMAGES_OPTIMIZATION,f)];case 2:return e.sent(),[4,c.takeLatest(d.STOP_IMAGES_OPTIMIZATION,m)];case 3:return e.sent(),[4,c.takeLatest(d.RESET_IMAGES_OPTIMIZATION,g)];case 4:return e.sent(),[2]}}))}t.default=h,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(d,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(p,"handleCheckImageOptimizationStatus","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(f,"handleInitImagesOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(g,"handleResetImagesOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(m,"handleStopImagesOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(h,"imageOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),a(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.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(83),c=n(10),l=n(96),u=n(16),d=n(37);function p(){var e;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,a.call(l.mainApi(window.optimizerData.rest_base+"/delete-webp-files","GET",{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t.sent(),[4,a.put({type:d.ADD_NOTIFICATION,payload:{id:"webp-files-deleted",type:"success",message:c.translate("WebP Files Successfully Deleted")}})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error(""+e,e),[3,4];case 4:return[2]}}))}function f(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,a.call(l.mainApi(window.optimizerData.rest_base+"/generate-webp-files"))];case 1:return e=n.sent(),[4,a.put(u.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function g(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,a.call(l.mainApi(window.optimizerData.rest_base+"/stop-webp-conversion"))];case 1:return e=n.sent(),[4,a.put(u.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function m(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,a.call(l.mainApi(window.optimizerData.rest_base+"/check-webp-conversion-status?"+ +(new Date).getTime()))];case 1:return e=n.sent(),[4,a.put(u.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function h(){return o(this,(function(e){switch(e.label){case 0:return[4,a.takeLatest(d.DELETE_WEBP_FILES,p)];case 1:return e.sent(),[4,a.takeLatest(d.GENERATE_WEBP_FILES,f)];case 2:return e.sent(),[4,a.takeLatest(d.STOP_WEBP_CONVERSION,g)];case 3:return e.sent(),[4,a.takeLatest(d.CHECK_WEBP_CONVERSION_STATUS,m)];case 4:return e.sent(),[2]}}))}t.default=h,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(p,"handleDeleteWebpFiles","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(f,"handleGenerateWebpFiles","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(g,"handleStopWebpConversion","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(m,"handleCheckWebpConversionStatus","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(h,"cache","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(259),f=n(46),g=a(n(851)),m=a(n(1192)),h=a(n(1200)),_=a(n(1201)),v=a(n(1209)),y=a(n(1210)),b=a(n(1211)),w=a(n(1217)),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e={supercacher:g.default,environment:m.default,frontend:h.default,images:_.default,global:v.default,defaults:y.default,analytics:b.default,cloudflare:w.default};return u.createElement(d.Provider,{store:this.props.store},u.createElement(p.Router,{history:this.props.history,key:Math.random()},u.createElement(u.Fragment,null,u.createElement(p.Redirect,{exact:!0,from:"/",to:Object.keys(window.optimizerData.tabs)[0]}),f.map(window.optimizerData.tabs,(function(t,n){return u.createElement(p.Route,{key:Math.random(),path:n,component:e[n]})})))))},t}(u.Component);t.default=M,c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(g,"supercacher_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(m,"environment_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(h,"frontend_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(_,"image_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(v,"multisite_control_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(y,"sites_control_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(b,"analytics_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(w,"cloudflare_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(M,"Root","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(836).default;function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(47);t.__esModule=!0,t.createProvider=c,t.default=void 0;var o=r(n(436)),s=n(2),i=r(n(23)),a=n(437);r(n(197));function c(e){var t;void 0===e&&(e="store");var n=e+"Subscription",r=function(t){(0,o.default)(i,t);var r=i.prototype;function i(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return r.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.render=function(){return s.Children.only(this.props.children)},i}(s.Component);return r.propTypes={store:a.storeShape.isRequired,children:i.default.element.isRequired},r.childContextTypes=((t={})[e]=a.storeShape.isRequired,t[n]=a.subscriptionShape,t),r}var l=c();t.default=l},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(439),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?i:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(g){var o=f(n);o&&o!==g&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var a=c(t),m=c(n),h=0;h<i.length;++h){var _=i[h];if(!(s[_]||r&&r[_]||m&&m[_]||a&&a[_])){var v=p(n,_);try{l(t,_,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";
328
  /** @license React v16.13.1
329
  * react-is.production.min.js
330
  *
@@ -342,4 +342,4 @@ function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,s
342
  * http://hammerjs.github.io/
343
  *
344
  * Copyright (c) 2016 Jorik Tangelder;
345
- * Licensed under the MIT license */!function(o,s,i,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=s.createElement("div"),d=Math.round,p=Math.abs,f=Date.now;function g(e,t,n){return setTimeout(w(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 _(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",s=o.console&&(o.console.warn||o.console.log);return s&&s.call(o.console,r,n),e.apply(this,arguments)}}c="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 v=_((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 v(e,t,!0)}),"merge","Use `assign`.");function b(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&c(r,n)}function w(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 x(e,t){return void 0===e?t:e}function S(e,t,n){h(L(t),(function(t){e.addEventListener(t,n,!1)}))}function O(e,t,n){h(L(t),(function(t){e.removeEventListener(t,n,!1)}))}function A(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function k(e,t){return e.indexOf(t)>-1}function L(e){return e.trim().split(/\s+/g)}function E(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 j(e){return Array.prototype.slice.call(e,0)}function T(e,t,n){for(var r=[],o=[],s=0;s<e.length;){var i=t?e[s][t]:e[s];E(o,i)<0&&r.push(e[s]),o[s]=i,s++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function z(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),s=0;s<l.length;){if((r=(n=l[s])?n+o:t)in e)return r;s++}}var D=1;function N(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var P="ontouchstart"in o,C=void 0!==z(o,"PointerEvent"),U=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Y=["x","y"],R=["clientX","clientY"];function I(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 W(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,s=1&t&&r-o==0,i=12&t&&r-o==0;n.isFirst=!!s,n.isFinal=!!i,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=q(t));o>1&&!n.firstMultiple?n.firstMultiple=q(t):1===o&&(n.firstMultiple=!1);var s=n.firstInput,i=n.firstMultiple,a=i?i.center:s.center,c=t.center=B(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=V(a,c),t.distance=X(a,c),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},s=e.prevInput||{};1!==t.eventType&&4!==s.eventType||(o=e.prevDelta={x:s.deltaX||0,y:s.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=H(t.deltaX,t.deltaY);var l=F(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=p(l.x)>p(l.y)?l.x:l.y,t.scale=i?(u=i.pointers,d=r,X(d[0],d[1],R)/X(u[0],u[1],R)):1,t.rotation=i?function(e,t){return V(t[1],t[0],R)+V(e[1],e[0],R)}(i.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,s,i=e.lastInterval||t,a=t.timeStamp-i.timeStamp;if(8!=t.eventType&&(a>25||void 0===i.velocity)){var c=t.deltaX-i.deltaX,l=t.deltaY-i.deltaY,u=F(a,c,l);r=u.x,o=u.y,n=p(u.x)>p(u.y)?u.x:u.y,s=H(c,l),e.lastInterval=t}else n=i.velocity,r=i.velocityX,o=i.velocityY,s=i.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=s}(n,t);var u,d;var g=e.element;A(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 q(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 H(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=Y);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function V(e,t,n){n||(n=Y);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}I.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(N(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,I.apply(this,arguments)}b(K,I,{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 J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:"touch",3:"pen",4:"mouse",5:"kinect"},$="pointerdown",Z="pointermove pointerup pointercancel";function ee(){this.evEl=$,this.evWin=Z,I.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&($="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),b(ee,I,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=J[r],s=Q[e.pointerType]||e.pointerType,i="touch"==s,a=E(t,e.pointerId,"pointerId");1&o&&(0===e.button||i)?a<0&&(t.push(e),a=t.length-1):12&o&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),n&&t.splice(a,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,I.apply(this,arguments)}function re(e,t){var n=j(e.touches),r=j(e.changedTouches);return 12&t&&(n=T(n.concat(r),"identifier",!0)),[n,r]}b(ne,I,{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 se(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},I.apply(this,arguments)}function ie(e,t){var n=j(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,s,i=j(e.changedTouches),a=[],c=this.target;if(s=n.filter((function(e){return A(e.target,c)})),1===t)for(o=0;o<s.length;)r[s[o].identifier]=!0,o++;for(o=0;o<i.length;)r[i[o].identifier]&&a.push(i[o]),12&t&&delete r[i[o].identifier],o++;return a.length?[T(s.concat(a),"identifier",!0),a]:void 0}b(se,I,{handler:function(e){var t=oe[e.type],n=ie.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function ae(){I.apply(this,arguments);var e=w(this.handler,this);this.touch=new se(this.manager,e),this.mouse=new K(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ce(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,le.call(this,t)):12&e&&le.call(this,t)}function le(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],s=Math.abs(t-o.x),i=Math.abs(n-o.y);if(s<=25&&i<=25)return!0}return!1}b(ae,I,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ce.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=z(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(k(e,"none"))return"none";var t=k(e,"pan-x"),n=k(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(k(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=k(r,"none")&&!fe.none,s=k(r,"pan-y")&&!fe["pan-y"],i=k(r,"pan-x")&&!fe["pan-x"];if(o){var a=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(a&&c&&l)return}if(!i||!s)return o||s&&6&n||i&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function me(e){this.options=c({},this.defaults,e||{}),this.id=D++,this.manager=null,this.options.enable=x(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 _e(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ve(e,t){var n=t.manager;return n?n.get(e):e}function ye(){me.apply(this,arguments)}function be(){ye.apply(this,arguments),this.pX=null,this.pY=null}function we(){ye.apply(this,arguments)}function Me(){me.apply(this,arguments),this._timer=null,this._input=null}function xe(){ye.apply(this,arguments)}function Se(){ye.apply(this,arguments)}function Oe(){me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ae(e,t){return(t=t||{}).recognizers=x(t.recognizers,Ae.defaults.preset),new ke(e,t)}me.prototype={defaults:{},set:function(e){return c(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=ve(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=ve(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===E(t,e=ve(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=ve(e,this);var t=E(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=c({},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(){}},b(ye,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}}),b(be,ye,{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,s=e.deltaX,i=e.deltaY;return o&t.direction||(6&t.direction?(o=0===s?1:s<0?2:4,n=s!=this.pX,r=Math.abs(e.deltaX)):(o=0===i?1:i<0?8:16,n=i!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return ye.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=_e(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(we,ye,{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)}}),b(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)))}}),b(xe,ye,{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)}}),b(Se,ye,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return be.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=_e(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(Oe,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 s=!this.pTime||e.timeStamp-this.pTime<t.interval,i=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,i&&s?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))}}),Ae.VERSION="2.0.7",Ae.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[xe,{enable:!1}],[we,{enable:!1},["rotate"]],[Se,{direction:6}],[be,{direction:6},["swipe"]],[Oe],[Oe,{event:"doubletap",taps:2},["tap"]],[Me]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function ke(e,t){var n;this.options=c({},Ae.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:U?se:P?ae:K))(n,W),this.touchAction=new ge(this,this.options.touchAction),Le(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 Le(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,(function(o,s){n=z(r.style,s),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}ke.prototype={set:function(e){return c(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 s=0;s<r.length;)n=r[s],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),s++}},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=E(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(L(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(L(e),(function(e){t?n[e]&&n[e].splice(E(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=s.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&&Le(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Ae,{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:ke,Input:I,TouchAction:ge,TouchInput:se,MouseInput:K,PointerEventInput:ee,TouchMouseInput:ae,SingleTouchInput:ne,Recognizer:me,AttrRecognizer:ye,Tap:Oe,Pan:be,Swipe:Se,Pinch:we,Rotate:xe,Press:Me,on:S,off:O,each:h,merge:y,extend:v,assign:c,inherit:b,bindFn:w,prefixed:z}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Ae,void 0===(r=function(){return Ae}.call(t,n,t,e))||(e.exports=r)}(window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(485);t.default=r.default},function(e,t,n){var r=n(1120);"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,"/* ==========================================================================\n Table Row\n ========================================================================== */\n.table-row--loading {\n pointer-events: none; }\n .table-row--loading .table-row__cell--loading {\n padding: 5px; }\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 height: 100%;\n position: relative; }\n\n.hammerjs-wrapper {\n user-select: auto !important; }\n\n@media (max-width: 800px) {\n .table-row__loader-wrapper {\n min-height: 50px; } }\n",""])},function(e,t,n){var r=n(1122);"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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1124);t.TableSkeleton=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=function(e){return Array(e).fill(null).map((function(e,t,n){return a.createElement("td",{key:t,className:"sg-table__cell sg-table__cell--height-medium"},a.createElement("div",{className:"sg-table__cell--skeleton"}))}))},l=function(e){var t=e.columnLength,n=e.rowLength,r=e.tableHead,o=Array(n).fill(null);return a.createElement("table",{className:"sg-table"},r,o.map((function(e,n){return a.createElement("tr",{key:n,className:"sg-table__row"},c(t))})))};l.defaultProps={"data-e2e":"table-cell","data-component":"table-cell",rowLength:5,tabIndex:-1},t.default=l,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-skeleton/table-skeleton.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-skeleton/table-skeleton.tsx"),s.register(c,"generagteCells","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-skeleton/table-skeleton.tsx"),s.register(l,"TableSkeleton","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-skeleton/table-skeleton.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,'/* ==========================================================================\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-dark);\n font-family: var(--font-family-component);\n font-weight: 500;\n font-size: var(--typography-table-label-size);\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.sg-table__cell--skeleton {\n background-color: var(--background-component-secondary);\n height: 14px; }\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: var(--font-family-component);\n font-weight: 500;\n font-size: var(--typography-table-label-size);\n line-height: 16px;\n color: var(--typography-dark);\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',""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l,u,d=c(n(2)),p=n(9),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.createMobileColumnsOptions=function(e,t,n){if(!e)return e;var r=p.deepclone(e);if(t)return r;var o={width:"100%",flexWrap:"nowrap"},s={flexShrink:0},a=r[0],c=r.pop(),l=a.render?a.render:function(e){return e},u=c.render?c.render:function(e){return e};return delete a.header,a.style=i({fontWeight:"bold"},a.style),a.render=function(e,t){return n?d.createElement(p.Flex,{justify:"space-between",align:"center",style:o},d.createElement(p.Title,{level:"4",density:"none",truncate:!0},l(e,t)),d.createElement("div",{style:s},u(t[c.accessor],t))):l(e,t)},r},t.createDesktopColumnsOptions=function(e,t,n){if(!e)return e;var r=p.deepclone(e),o=r[r.length-1];return o.style=i({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,s=n.disableMobileArrange,c=n.hasMenu,l=n.onMouseOver,u=a(n,["columns","data","disableMobileArrange","hasMenu","onMouseOver"]),f=t.createMobileColumnsOptions(r,s,e.isPhone),g=t.createDesktopColumnsOptions(r,o,c);return e.isPhone?d.createElement(p.Table,i({data:o,columns:f},u)):d.createElement(p.Table,i({data:o,columns:g,onMouseOver:l},u))},t.contextType=p.Context,t.defaultProps={hasMenu:!0,"data-e2e":"action-table"},t}(d.Component);t.default=f,l=n(0).default,u=n(0).leaveModule,l&&(l.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(d,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(f,"ActionTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),u(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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=a(n(1128)),u=n(48),d=n(215),p=n(468),f=a(n(1129)),g=a(n(214)),m=a(n(1132)),h=a(n(489));n(493);var _,v,y=function(e){var t=c.useContext(u.Context).device,n=e.columns,r=e.data,i=e.onCellSelection,a=e.selectedColumns,m=s(e,["columns","data","onCellSelection","selectedColumns"]),_=n.map((function(e){return o({},e)})),v=_.shift();return t.isPhone?c.createElement(l.default,o({},m),_.map((function(e,t){return c.createElement("div",{key:e.accessor,className:"sg-product-table"+(a.includes(t+1)?" sg-product-table--selected":"")},c.createElement(f.default,{border:"none",padding:"medium",className:"sg-table__head-tile"},e.renderHead?e.renderHead:e.header),r.map((function(n){return c.createElement(d.Flex,{className:"sg-product-table__row",key:n.accessor,padding:["none","medium"],background:"white"},c.createElement(d.Box,{xs:"8",flex:!0,align:"center",justify:"flex-start"},v.render?v.render(n[v.accessor],n,v.accessor,t+1):n[v.accessor]),c.createElement(d.Box,{xs:"4",flex:!0,align:"center",justify:"center",style:{textAlign:"right"}},c.createElement(p.Grid,{padding:["medium","none"]},e.render(n[e.accessor],n,e.accessor,t+1))))})),e.footer&&c.createElement(g.default,{background:"light",justify:"center"},e.footer(t+1)))}))):c.createElement(h.default,o({className:"sg-product-table",mobileLayout:"row",data:r,columns:n,onCellSelection:i,selectedColumns:a},m))};y.defaultProps={selectedColumns:[]},t.default=m.default(y),_=n(0).default,v=n(0).leaveModule,_&&(_.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(l,"carousel_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(f,"index_2","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(g,"toolbar_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(m,"index_3","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(h,"table_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(y,"ProductTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),v(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(451);t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(494);t.default=r.default},function(e,t,n){var r=n(1131);"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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(138);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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=a(n(7)),p=a(n(8)),f=a(n(11)),g=a(n(202)),m=a(n(28)),h=function(e){switch(e.key){case f.default.SPACE:case f.default.ENTER:e.preventDefault(),e.stopPropagation(),e.target.click()}},_=u.forwardRef((function(e,t){var n=e.active,r=e.disabled,i=e.className,a=e.children,c=e.padding,l=e.tabIndex,f=e["data-e2e"],_=e["data-component"],v=s(e,["active","disabled","className","children","padding","tabIndex","data-e2e","data-component"]),y=d.default("sg-tabs__tab",n&&"sg-tabs__tab--active",r&&"sg-tabs__tab--disabled",m.default(c),i);return u.createElement(g.default,o({tag:"li",ref:t,className:y,tabIndex:l,"data-e2e":f,"data-component":_,role:"tab","aria-selected":n,"aria-controls":"panel-"+l},p.default(v),{onKeyDown:h}),a)}));_.displayName="Tab",_.defaultProps={tabIndex:-1,"data-e2e":"tab","data-component":"tab"},t.default=_,c=n(0).default,l=n(0).leaveModule,c&&(c.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(d,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(p,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(f,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(g,"ripple_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(m,"with_padding_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(h,"handleKeyDown","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(_,"Tab","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.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,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=c(n(2)),d=l(n(7)),p=n(55),f=n(35),g=n(66),m=l(n(8)),h=l(n(11)),_=l(n(24));n(1135);var v,y,b=function(e){function t(t){var n=e.call(this,t)||this;return n.onKeyDown=function(e){var t=g.getFocusableElement(n.tabsRef,{isDirectionForward:!0}),r=g.getFocusableElement(n.tabsRef,{isDirectionForward:!1});switch(e.key){case h.default.RIGHT:case h.default.DOWN:if(r===e.target)return;return e.target===n.tabsRootRef&&p.focusDomElement(t),void f.focusNextComponent({event:e});case h.default.LEFT:case h.default.UP:if(t===e.target)return;return e.target===n.tabsRootRef&&p.focusDomElement(r),void f.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=u.createRef(),n.tabsWrapperRef=u.createRef(),n.tabsRef=u.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 s(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,s=t.border,c=t.size,l=t.tabIndex,p=t["data-e2e"],f=t["data-component"],g=t["aria-label"],h=a(t,["activeColor","className","children","border","size","tabIndex","data-e2e","data-component","aria-label"]),v=d.default("sg-tabs-wrapper",s&&"sg-tabs-wrapper--border-"+s,r),y=d.default("sg-tabs","sg-tabs--background-transparent","sg-tabs--"+c,n&&"sg-tabs--active-color-"+n),b=this.state.hasArrows;return u.createElement("div",i({ref:function(t){e.tabsRootRef=t},className:v,"data-e2e":p,"data-component":f,tabIndex:l},m.default(h),{onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseUp,onTouchStart:this.onMouseDown,onTouchMove:this.onMouseMove,onTouchEnd:this.onMouseUp,onKeyDown:this.onKeyDown}),b&&u.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--start",onClick:function(){return e.translateTabs(40)}},u.createElement(_.default,{name:"arrow-left-thin",size:"10"})),u.createElement("div",{className:"sg-tabs_container",ref:function(t){e.tabsWrapperRef=t}},u.createElement("ul",i({className:y,ref:function(t){e.tabsRef=t},role:"tablist","aria-label":g},h),o)),b&&u.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--end",onClick:function(){return e.translateTabs(-40)}},u.createElement(_.default,{name:"arrow-right-thin",size:"10"})))},t.defaultProps={activeColor:"sky",size:"medium",tabIndex:0,"data-e2e":"tabs","data-component":"tabs"},t}(u.Component);t.default=b,v=n(0).default,y=n(0).leaveModule,v&&(v.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(l,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(d,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(m,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(h,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(_,"index_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(b,"Tabs","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),y(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1136);"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,'/* ==========================================================================\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: inherit; }\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-family: var(--font-family-component);\n font-weight: 500;\n font-size: 12px;\n line-height: 16px; }\n\n.sg-tabs--medium {\n font-family: var(--font-family-component);\n font-weight: 600;\n font-size: 14px;\n line-height: 20px; }\n\n.sg-tabs--large {\n font-family: var(--font-family-component);\n font-weight: 600;\n font-size: 16px;\n line-height: 24px; }\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',""])},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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=a(n(7)),u=a(n(8)),d=a(n(1138));n(1139);var p,f,g=function(e){var t=e.className,n=e.background,r=e.onRefsReady,i=e.tabIndex,a=e["data-e2e"],d=e["data-component"],p=s(e,["className","background","onRefsReady","tabIndex","data-e2e","data-component"]),f=l.default(t,"sg-textarea",n&&"sg-textarea--background-"+n);return c.createElement("textarea",o({ref:function(e){r&&r(e)},className:f,"data-e2e":a,"data-component":d,tabIndex:i},u.default(p)))},m=d.default(g);m.displayName="Textarea",g.defaultProps={tabIndex:0,"data-e2e":"textarea","data-component":"textarea"},t.default=m,p=n(0).default,f=n(0).leaveModule,p&&(p.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(l,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(u,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(d,"with_form_field_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(g,"Textarea","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(m,"WrappedTextarea","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),f(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(466);t.default=r.default},function(e,t,n){var r=n(1140);"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,".sg-field-wrapper .sg-textarea {\n height: auto; }\n\n.sg-textarea {\n font-size: 14px;\n line-height: 22px; }\n\n/* Backgrounds\n ========================================================================== */\n.sg-textarea.sg-textarea--background-light {\n background-color: var(--background-main); }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(2)),u=c(n(7)),d=n(209),p=c(n(11)),f=c(n(145)),g=c(n(98)),m=c(n(210)),h=c(n(24)),_=c(n(114)),v=c(n(64)),y=c(n(1142));n(1145);var b,w,M=function(e){function t(t){var n=e.call(this,t)||this;return n.handleHourKeyDown=function(e){switch(e.key){case p.default.SPACE:case p.default.ENTER:return e.preventDefault(),void e.stopPropagation();case p.default.UP:case p.default.RIGHT:return void n.handleHourIncrease();case p.default.DOWN:case p.default.LEFT:return void n.handleHourDecrease();default:return}},n.handleMinuteKeyDown=function(e){switch(e.key){case p.default.SPACE:case p.default.ENTER:return e.preventDefault(),void e.stopPropagation();case p.default.UP:case p.default.RIGHT:return void n.handleMinuteIncrease();case p.default.DOWN:case p.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 s(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 d.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=d.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),s=void 0!==t?t:o.getHours(),i=void 0!==n?n:o.getMinutes(),a=+new Date(o.getFullYear(),o.getMonth(),o.getDate(),s,i,0);this.setState({selectedTime:a})},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=d.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():"",s=u.default("sg-time-picker__input",t&&"sg-time-picker__input--disabled"),a=u.default("sg-time-picker__field",t&&"sg-time-picker__field--disabled");return l.createElement(_.default,i({className:s,fieldClassName:a,value:o,prefix:l.createElement(h.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!==p.default.SPACE&&t.key!==p.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=u.default("sg-time-picker",r);return t?l.createElement(m.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 l.createElement(l.Fragment,null,l.createElement(g.default,{onClick:this.closeTimePicker,"data-e2e":"timepicker-cancel-button"},t.cancelButton),l.createElement(g.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(),s=this.props.ariaProps;return l.createElement("div",{className:"sg-time-picker__content sg-time-picker__content--flex","data-e2e":"timepicker-clock",role:"group"},l.createElement("div",{className:"sg-time-picker__column"},l.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":s.ariaLabelHours,"aria-live":"polite"},n),l.createElement(y.default,{color:"secondary",style:{order:0},onClick:this.handleHourIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},l.createElement(h.default,{name:"arrow-up",size:"16"})),l.createElement(y.default,{color:"secondary",style:{order:2},onClick:this.handleHourDecrease,"data-e2e":"timepicker-hour-decrease",role:"presentation","aria-hidden":"true"},l.createElement(h.default,{name:"arrow-down",size:"16"}))),l.createElement("div",{className:"sg-time-picker__column sg-time-picker__column--justify-center"},":"),l.createElement("div",{className:"sg-time-picker__column"},l.createElement(y.default,{color:"secondary",onClick:this.handleMinuteIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},l.createElement(h.default,{name:"arrow-up",size:"16"})),l.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":s.ariaLabelMinutes,"aria-live":"assertive"},r),l.createElement(y.default,{color:"secondary",onClick:this.handleMinuteDecrease,"data-e2e":"timepicker-minute-decrease",role:"presentation","aria-hidden":"true"},l.createElement(h.default,{name:"arrow-down",size:"16"}))),t&&l.createElement("div",{className:u.default("sg-time-picker__column","sg-time-picker__column--justify-center","sg-time-picker__column--margin-start")},l.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 l.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-hour"},r.map((function(n){var r=t===n,o=u.default("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return l.createElement("span",{key:n,ref:function(e){return r&&f.default(e,{block:"center"})},"data-e2e":"timepicker-hours"},l.createElement(v.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 l.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-minutes"},n.map((function(n){var r=t===n,o=u.default("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return l.createElement("span",{key:n,ref:function(e){return r&&f.default(e,{block:"center"})},"data-e2e":"timepicker-minute"},l.createElement(v.default,{className:o,weight:"bold",onClick:function(){return e.handleMinuteSelection(n)}},n.toString().padStart(2,"0")))})))},t.prototype.render=function(){return l.createElement(l.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}(l.Component);t.default=M,b=n(0).default,w=n(0).leaveModule,b&&(b.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(c,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(u,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(p,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(f,"scroll_to_element_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(g,"button_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(m,"dialog_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(h,"index_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(_,"index_2","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(v,"text_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(y,"time_picker_button_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/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/@siteground/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/@siteground/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/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(M,"TimePicker","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),w(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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=a(n(7));n(1143);var u,d,p=function(e){var t=e.color,n=e.children,r=e.className,i=e.background,a=e.size,u=e.tabIndex,d=s(e,["color","children","className","background","size","tabIndex"]),p=l.default("sg-time-picker-button",t&&"sg-time-picker-button--color-"+t,i&&"sg-time-picker-button--background-"+i,"sg-time-picker-button--size-"+a,r);return c.createElement("button",o({className:p,type:"button",tabIndex:u},d),n)};p.defaultProps={size:"large",tabIndex:-1},t.default=p,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/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(l,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(p,"TimePickerButton","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),d(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1144);"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,"/* ==========================================================================\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: var(--font-family-component);\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",""])},function(e,t,n){var r=n(1146);"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,"/* ==========================================================================\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",""])},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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(2)),u=c(n(7)),d=n(55),p=c(n(8)),f=c(n(11)),g=c(n(24));n(1148);var m,h,_=function(e,t){if(!e)return null;e.children&&e.children[t]&&d.focusDomElement(e.children[t])},v=function(e){var t=e.event,n=e.timelineRef,r=e.focusIndex,o=e.timelineLength,s=e.onChange;switch(t.key){case f.default.LEFT:var i=Math.min(Math.max(r-1,0),o);_(n.current,i);break;case f.default.RIGHT:var a=Math.min(Math.max(r+1,0),o);_(n.current,a);break;case f.default.ENTER:case f.default.SPACE:s(r+1)}},y=function(e){var t=e.activeStep,n=e.className,r=e.onChange,a=e.steps,c=e.tabIndex,d=e["data-e2e"],f=e["data-component"],m=e["aria-label"],h=s(e,["activeStep","className","onChange","steps","tabIndex","data-e2e","data-component","aria-label"]),_=l.useRef(null),y=i(l.useState(-1),2),b=y[0],w=y[1],M=u.default("sg-timeline",n),x=a.map((function(e,n){var s=n+1,i=s<=t,c=u.default("sg-timeline__item",i&&"sg-timeline__item--active",s===t&&"sg-timeline__item--bold",s>a.length&&"sg-timeline__item--bold");return l.createElement("li",o({key:n,className:c,tabIndex:-1},p.default(h),{onClick:i?function(){return r(s)}:null,onFocus:function(){return w(n)},"data-e2e":"timeline-step"}),l.createElement("div",{className:"sg-timeline__top-row"},s<t?l.createElement("span",{className:"sg-timeline__step","aria-hidden":"true"},l.createElement(g.default,{name:"check",size:"12"})):l.createElement("span",{className:"sg-timeline__step","aria-hidden":"true"},s)),l.createElement("div",{className:"sg-timeline__bottom-row"},l.createElement("span",{className:"sg-timeline__text"},a[n])))}));return l.createElement("ul",{ref:_,className:M,tabIndex:c,"data-e2e":d,role:"timeline","aria-label":m,"data-component":f,onKeyDown:function(e){return v({event:e,timelineRef:_,focusIndex:b,timelineLength:x.length,onChange:r})}},x)};y.defaultProps={onChange:function(){},tabIndex:0,"data-e2e":"timeline","data-component":"timeline"},t.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/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(i,"__read","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(c,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(u,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(p,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(f,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(g,"index_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(_,"focusItem","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(v,"handleKeyDown","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(y,"Timeline","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),h(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1149);"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,'.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 color: var(--typography-white); }\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-dark);\n background: var(--color-disabled);\n font-family: var(--font-family-component);\n font-weight: 700; }\n',""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=c(n(2)),d=l(n(7)),p=l(n(8)),f=l(n(1151));n(1154);var g,m,h=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=u.createRef(),n.flattenNodes(t.nodes),n.unserializeLists({checked:t.checked,expanded:t.expanded}),n}return s(t,e),t.prototype.getFormattedNodes=function(e){var t=this;return e.map((function(e){var n=i({},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,s=o.disabled,i=o.noCascade,a=o.optimisticToggle,c=o.collapsedIcon,l=o.expandedIcon,d=o["data-component"],p=e.map((function(e){var o=""+e.value,p=r.getCheckState(e,i),g=r.renderChildNodes(e),m=r.getDisabledState(e,t,s,i);return u.createElement(f.default,{key:o,checked:p,disabled:m,depth:n,expanded:e.expanded,label:e.label,forceShowToggleIcon:e.forceShowToggleIcon,entity:e.entity,optimisticToggle:a,rawChildren:e.children,value:e.value,showCheckbox:e.showCheckbox,onCheck:r.onCheck,onExpand:r.onExpand,collapsedIcon:c,expandedIcon:l,parentRootRef:r.rootRef.current,htmlAttributes:e.htmlAttributes,"data-component":d+"-node"},g)}));return u.createElement("ol",{className:"sg-tree__list"},p)},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),s=this.props,c=s.className,l=s.tabIndex,f=s["data-e2e"],g=s["data-component"],m=a(s,["className","tabIndex","data-e2e","data-component"]),h=d.default("sg-tree",c);return u.createElement("div",i({ref:this.rootRef,className:h,"data-e2e":f,"data-component":g,tabIndex:l,role:"tree"},p.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}(u.PureComponent);t.default=h,g=n(0).default,m=n(0).leaveModule,g&&(g.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(l,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(d,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(p,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(f,"tree_node_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(h,"Tree","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),m(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(2)),u=n(35),d=n(67),p=a(n(11)),f=c(n(203)),g=c(n(26));n(1152);var m,h,_=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,s=e.optimisticToggle,i=e.rawChildren,a=!1;0===n&&(a=!0),2===n&&(a=s),(0,e.onCheck)({value:o,checked:a,entity:r,children:i})},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"],s=n.parentRootRef;if(p.isEventFromTab(e))u.focusNextComponent({event:e,startingElement:s});else if(p.isEventFromShiftPlusTab(e))u.focusNextComponent({event:e,isDirectionForward:!1,startingElement:s});else{var i=document.querySelectorAll('[data-component="'+o+'"]');switch(e.key){case p.default.DOWN:return e.preventDefault(),e.stopPropagation(),void u.focusNextComponent({event:e,includeChildren:!0,onComponentFiltering:function(e){return e.getAttribute("data-component")===o}});case p.default.UP:return e.preventDefault(),e.stopPropagation(),void u.focusNextComponent({event:e,includeChildren:!0,isDirectionForward:!1,onComponentFiltering:function(e){return e.getAttribute("data-component")===o}});case p.default.LEFT:if(e.preventDefault(),e.stopPropagation(),!r)return;return t.onExpand();case p.default.RIGHT:if(e.preventDefault(),e.stopPropagation(),r)return;return t.onExpand();case p.default.ENTER:case p.default.SPACE:return e.preventDefault(),e.stopPropagation(),t.onCheck();case p.default.END:var a=i&&i[i.length-1];return void u.focusNextComponent({event:e,isDirectionForward:!0,onComponentFiltering:function(e){return e===a}});case p.default.HOME:var c=i&&i[0];return void u.focusNextComponent({event:e,isDirectionForward:!1,onComponentFiltering:function(e){return e===c}})}}},t}return s(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?l.createElement(g.default,{name:t?r:o,size:"10",color:"light",onClick:this.onExpand,"data-e2e":"tree-node-expand"}):l.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,s=e.value,i=e.showCheckbox,a=d.cn("sg-tree-node__label");return l.createElement("label",{className:a,role:"treeitem",onDoubleClick:this.onExpand,"data-e2e":"tree-node-label"},i&&l.createElement(f.default,{className:"sg-tree-node__checkbox",value:s,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,s=e.checked,a=e.expanded,c=e.htmlAttributes,u=e.tabIndex,p=e["data-e2e"],f=e["data-component"],g=d.cn("sg-tree-node",n&&"sg-tree-node--disabled",t);return l.createElement("li",i({className:g,style:{paddingLeft:20*r+"px"},tabIndex:u,role:"treeitem","aria-checked":o?Boolean(s):void 0,"aria-expanded":a,"data-e2e":p,"data-component":f,onKeyDown:this.handleKeyDown},c),l.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}(l.Component);t.default=_,m=n(0).default,h=n(0).leaveModule,m&&(m.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(c,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(p,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(f,"checkbox_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(g,"icon_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(_,"TreeNode","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),h(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1153);"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,"/* ==========================================================================\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 flex: 1 0 0;\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.sg-tree-node__checkbox {\n padding: 0 15px 0 0; }\n",""])},function(e,t,n){var r=n(1155);"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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(54),d=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=u.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 s(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=d,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/web-notification/web-notification.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/web-notification/web-notification.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/web-notification/web-notification.tsx"),a.register(d,"WebNotification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/web-notification/web-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=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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=a(n(135)),p=a(n(8)),f=function(e){var t=e.link,n=s(e,["link"]);return u.createElement("span",o({},p.default(n)),t)};t.default=d.default(f,{preventTooltipOnMobile:!0}),c=n(0).default,l=n(0).leaveModule,c&&(c.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(d,"with_tooltip_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(p,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(f,"SGTooltip","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1159);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=c(n(2)),d=n(67),p=l(n(24)),f=l(n(136));n(1160);var g,m,h={success:"success",warning:"warning",error:"error"},_=function(e){var t;return(t=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=d.cn("sg-rules-box__hint-icon",t&&"sg-rules-box__hint-icon--"+t);return u.createElement("div",{className:"sg-rules-box__hint",key:n},u.createElement(p.default,{name:h[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=d.cn("sg-rules-box__hints",e.getSemanticScore()&&"sg-rules-box__hints--"+e.getSemanticScore());return u.createElement("div",{className:t},u.createElement(f.default,{level:"6",density:"cozy"},e.props.translation.title),u.createElement("div",{className:"sg-rules-box__meter"}),e.renderHints())},e}return s(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=a(t,["className"]),o=(r.rules,r.dispatch,r.onChange,a(r,["rules","dispatch","onChange"])),s=d.cn("sg-rules-box","sg-rules-box--custom-validation",n);return u.createElement(e,i({validationMessageTemplate:this.renderStrengthMeter,className:s,onChange:this.onChangeHandler},o))},n}(u.Component)).defaultProps={rules:[],translation:{title:"Recommendations"}},t};t.default=_,g=n(0).default,m=n(0).leaveModule,g&&(g.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(l,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(p,"icon_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(f,"title_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(h,"ICON","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(_,"withFieldRules","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),m(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1161);"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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1163);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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=a(n(7)),u=a(n(8)),d=a(n(26)),p=a(n(38));n(1164);var f,g,m={success:"success",error:"error",warning:"warning",info:"information",instruction:"information",hint:"information"},h=function(e){var t=e.children,n=e.className,r=e.density,i=e.title,a=e.type,f=e.tabIndex,g=e["data-e2e"],h=e["data-component"],_=s(e,["children","className","density","title","type","tabIndex","data-e2e","data-component"]),v=l.default("sg-banner-notice",a&&"sg-banner-notice--type-"+a,r&&"sg-banner-notice--density-"+r,n),y=l.default("sg-banner-notice__content"),b=t?"compact":"none";return c.createElement("div",o({className:v,"data-e2e":g,"data-component":h,tabIndex:f,role:"alert","aria-live":"assertive"},u.default(_)),c.createElement(d.default,{name:m[a],size:"20",className:"sg-banner-notice__icon",color:"white"}),c.createElement("div",{className:y},i&&c.createElement(p.default,{level:"6",density:b,className:"sg-banner-notice__title",color:"white",weight:"medium"},i),t))};h.defaultProps={density:"medium",type:"hint",tabIndex:0,"data-e2e":"banner-notification","data-component":"banner-notification"},t.default=h,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/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(l,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(u,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(d,"icon_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(p,"title_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(m,"icons","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(h,"BannerNotification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),g(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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(2)),i=n(67),a=n(9);n(1167);var c,l,u={success:"check",warning:"product-clock",error:"cross",attention:"presentational-attention",exclamation:"exclamation-mark",loading:"loader"},d={success:"40",warning:"64",error:"40",attention:"110",exclamation:"50"},p={success:"grassy",warning:"sunset",error:"error",attention:"sunset",exclamation:"mango"},f=function(e){var t=e.children,n=e.className,r=e.description,o=e.status,c=e.title,l=s.useContext(a.Context).device,f=i.cn("status-box",o&&"status-box--"+o,n),g=i.cn("status-box-icon-wrapper",o&&"status-box-icon-wrapper--"+o),m=l.isPhone?"medium":"xx-large";return s.createElement(a.Container,{padding:m,className:f,tabIndex:0},s.createElement("div",{className:"status-box-wrapper"},s.createElement("div",{className:"status-box-icon-background"},s.createElement("div",{className:g},s.createElement(a.Icon,{name:u[o],size:d[o],color:p[o],multicolor:!p[o],className:"status-box-icon"}))),s.createElement(a.Title,{align:"center",color:"darker",weight:"regular",className:"status-box-title"},c),r&&s.createElement(a.Text,{align:"center",color:"dark",size:"large",className:"status-box-description"},r),t))};f.defaultProps={status:"success"},f.displayName="StatusBox",t.default=f,c=n(0).default,l=n(0).leaveModule,c&&(c.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(s,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(u,"icon","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(d,"iconSize","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(p,"iconColor","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(f,"StatusBox","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1168);"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,".status-box {\n margin-top: 45px; }\n .status-box--attention {\n margin-top: 0; }\n\n.status-box-wrapper {\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n align-items: center; }\n\n.status-box--loading .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%23cba871' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%23cba871' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%23cba871' fill-opacity= '0' /></svg>\"); }\n\n.status-box--loading .status-box-icon {\n color: var(--grassy-base); }\n\n.status-box--success .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%2373c04f' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%2373c04f' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%2373c04f' fill-opacity= '0' /></svg>\"); }\n\n.status-box--attention .status-box-icon-background,\n.status-box--warning .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%23eca03e' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%23eca03e' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%23eca03e' fill-opacity= '0' /></svg>\"); }\n\n.status-box--error .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%23f54545' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%23f54545' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%23f54545' fill-opacity= '0' /></svg>\"); }\n\n.status-box--exclamation .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%23cba871' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%23cba871' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%23cba871' fill-opacity= '0' /></svg>\"); }\n\n.status-box-icon-background {\n position: relative;\n display: flex;\n justify-content: center;\n min-width: 400px;\n height: 70px;\n background-size: 15px; }\n .status-box-icon-background::after {\n position: absolute;\n bottom: 0;\n right: 0;\n display: block;\n content: \" \";\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 0 30px 30px;\n border-color: transparent transparent var(--background-component-primary) transparent; }\n\n.status-box-icon-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: 100px;\n height: 100px;\n margin-top: -30px;\n background-color: var(--background-component-secondary); }\n .status-box-icon-wrapper--loading {\n background-color: var(--background-component-primary); }\n .status-box-icon-wrapper--attention {\n margin-top: -15px;\n width: 110px;\n height: 110px;\n background-color: transparent; }\n\n.status-box-title {\n margin-top: 15px; }\n\n.status-box-description {\n padding-bottom: 30px;\n max-width: 800px; }\n\n.status-box--token-button {\n width: 100%; }\n\n.status-box__grid {\n grid-template-columns: auto auto auto; }\n\n@media (max-width: 800px) {\n .status-box {\n padding: 60px 20px 20px;\n margin-top: 30px; }\n .status-box--attention {\n margin-top: 0; }\n .status-box-icon-background {\n min-width: 100%; } }\n\n.status-box--buttons-box > .border-box {\n flex: 1 1; }\n .status-box--buttons-box > .border-box:not(first-child) {\n margin-left: 30px; }\n\n@media (max-width: 800px) {\n .status-box--buttons-box {\n flex-direction: column; }\n .status-box--buttons-box > .border-box:not(first-child) {\n margin-left: 0;\n margin-top: 30px; } }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=o(n(37));t.onPageInit=a.createAction(c.PAGE_INIT),t.onPageResize=a.createAction(c.PAGE_RESIZE),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/actions/device.ts"),s.register(c,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/actions/device.ts"),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=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)},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=s(n(2)),l=n(10),u=n(46),d=n(9),p=n(1171),f=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=u.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]}))),c.createElement(d.Section,{className:n},c.createElement(d.Flex,{gutter:"medium",direction:"row",justify:"space-between",align:"center",wrap:"nowrap",padding:["responsive","none"]},c.createElement(d.TitleOne,{density:"none"},l.translate("SiteGround Optimizer"))),void 0!==t&&c.createElement(d.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)?c.createElement("div",{className:"label-wrapper--absolute"},c.createElement(d.Label,{size:"small",color:"success"},"New feature")):void 0}},Object.keys(t).map((function(n){return"default"==t[n].type?c.createElement(p.DefaultCard,o({},t[n],{key:n,onClick:e.enableOption})):"optimizations"==t[n].type?c.createElement(p.OptimizationsCard,o({},t[n],{key:n,onClick:e.enableOption})):void 0}))))};t.default=f,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(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/intro/index.tsx"),i.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/intro/index.tsx"),i.register(f,"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(1172);t.DefaultCard=r.default;var o=n(1173);t.OptimizationsCard=o.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(9),l=function(e){return a.createElement(c.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(c.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,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/default.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/default.tsx"),s.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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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"},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/optimizations.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/optimizations.tsx"),s.register(u,"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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(25),d=n(16),p=n(9),f=n(10),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(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(p.Section,null,l.createElement(p.Container,{padding:"large",style:{position:"relative"}},l.createElement(p.Flex,{gutter:"xx-large",expand:!0},l.createElement(p.Box,{sm:"3",flex:!0,align:"center",justify:"center",className:"sg-rate--stars"},l.createElement(p.Link,{href:"https://wordpress.org/support/plugin/sg-cachepress/reviews/?rate=5#new-post",target:"_blank",style:{width:"100%"}},l.createElement(p.StarRating,{rating:5,size:"large",style:{width:"100%"}}))),l.createElement(p.Box,{sm:"9"},l.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},f.translate("Thanks for using SiteGround Optimizer to make your site faster!")),l.createElement(p.Link,{href:"https://wordpress.org/support/plugin/sg-cachepress/reviews/?rate=5#new-post",target:"_blank",style:{paddingBottom:"10px"}},f.translate("Help more people optimize their sites by rating our plugin."))),l.createElement(p.Button,{size:"small",type:"link",style:{color:"#a4a4a4",position:"absolute",top:"10px",right:"20px"},onClick:function(t){return e.props.hideRating()}},f.translate("Don’t Show This Again")))))},t}(l.Component),m=function(e){return{hideRatingOption:e.Options.hide_rating}},h=function(e){return{hideRating:function(){return e(d.hideRating())}}};t.default=u.connect(m,h)(g),a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(g,"Rating","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(m,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(h,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.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,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=a(n(2)),d=n(25),p=n(9),f=n(495),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return u.createElement(p.Notifications,i({},this.props),this.props.notifications&&this.props.notifications.map((function(e){return u.createElement(f.Notification,{notification:e,message:e.message,key:e.id})})))},t}(u.Component),m=function(e){return{notifications:e.Notifications.notifications}},h=function(e){return{}};t.default=d.connect(m,h)(g),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(g,"Notifications","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(m,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(h,"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,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l,u,d=c(n(2)),p=n(25),f=n(16),g=n(9),m=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 s(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,a(e,["notification","removeNotification"]));return d.createElement(g.Notification,i({type:t.type,title:t.title,message:t.message,onClose:this.removeNotification},n))},t}(d.Component),h=function(e){return{notifications:e.Notifications.notifications}},_=function(e){return{removeNotification:function(t){return e(f.removeNotification(t))}}};t.default=p.connect(h,_)(m),l=n(0).default,u=n(0).leaveModule,l&&(l.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(d,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(m,"Notification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(h,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(_,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),u(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(9),f=n(16),g=n(10),m=a(n(496)),h=n(149),_=n(100),v=n(68),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 s(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;return u.createElement(u.Fragment,null,u.createElement(v.Row,{title:g.translate("Dynamic Caching"),checked:this.props.options.enable_cache,name:"enable_cache",onChange:this.changeOption,hasExpand:1},g.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&&u.createElement(p.Flex,{padding:["none","responsive","responsive"]},u.createElement(p.Box,{sm:"12"},u.createElement(p.Flex,{background:"light",direction:"column"},u.createElement(p.Flex,{direction:"row",align:"center",padding:["medium","responsive"]},u.createElement(p.Box,{sm:"10"},u.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},g.translate("Manual Cache Purge")),u.createElement(p.Text,null,g.translate("Clear the Dynamic Cache for your entire website."))),u.createElement(p.Box,{sm:"2",className:"right--actions"},u.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",onClick:this.props.purgeCache},this.props.cachePurged?g.translate("Purge Cache"):g.translate("Purging ...")))),u.createElement(p.Flex,{className:"divider"}),u.createElement(v.InnerRow,{title:g.translate("Automatic Cache Purge"),checked:this.props.options.autoflush_cache,name:"autoflush_cache",onChange:this.changeOption},g.translate("Automatically perform a smart cache purge after every content modification."),"  ",u.createElement(p.Link,{onClick:function(t){return e.toogleDialog("showCacheDialog")},"aria-haspopup":"true",role:"button"}," ",g.translate("See rules"))),u.createElement(p.Flex,{className:"divider"}),u.createElement(v.InnerRow,{title:g.translate("Browser-Specific Caching"),checked:this.props.options.user_agent_header,name:"user_agent_header",onChange:this.changeOption},g.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:u.createElement("strong",null)}})),u.createElement(p.Flex,{className:"divider"}),u.createElement(p.Flex,{direction:"row",align:"center",padding:["medium","responsive"]},u.createElement(p.Box,{sm:"12"},u.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},g.translate("Exclude Post Types")),u.createElement(p.Text,null,g.translate("Use this feature to exclude certains types of pages from being cached.")))),u.createElement(p.Flex,{direction:"row",align:"center",padding:["xx-small","responsive","responsive"]},u.createElement(p.Box,{sm:"12"},u.createElement(p.MultipleDropdown,{searchable:!0,name:"post_types_exclude",placeholder:"Please, select the post types you wish to exclude from the list below",options:this.props.options.post_types,optionValue:"value",optionLabel:"title",selectedValue:this.filterSelectedValues(this.props.options.post_types_exclude,this.props.options.post_types),groupBy:"group_title",onChange:function(t,n,r){return e.props.updateExcludes("post_types_exclude",t)}}))),u.createElement(p.Flex,{className:"divider"}),u.createElement(v.InnerRow,{title:g.translate("Excluding URLs")},g.translate("Use this feature if you want to exclude certain parts of your website from being cached and keep them dynamic."),"  ",u.createElement(p.Link,{onClick:function(t){return e.toogleDialog("showUrlsDialog")},"aria-haspopup":"true",role:"button"}," ",g.translate("See examples"))),u.createElement(h.UrlsExclude,{updateExcludeList:this.props.updateExcludeList,excludedUrls:this.props.options.excluded_urls,addNotification:this.props.addNotification,prefix:window.optimizerData.home_url}),u.createElement(p.Flex,{className:"divider"}),u.createElement(m.default,{testUrl:this.props.testUrl,cloudflareTest:0,hasCloudflare:this.props.options.cloudflare_optimization_status,cacheDescription:g.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.")})))),this.state.showUrlsDialog&&u.createElement(_.UrlsDialog,{toogleDialog:function(t){return e.toogleDialog("showUrlsDialog")}}),this.state.showCacheDialog&&u.createElement(_.CacheDialog,{toogleDialog:function(t){return e.toogleDialog("showCacheDialog")}}))},t}(u.Component),b=function(e){return{options:e.Options,cachePurged:e.Cache.cachePurged}},w=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))},updateExcludeList:function(t){return e(f.updateExcludeList(t))},purgeCache:function(){return e(f.purgeCache())},testUrl:function(t,n){return e(f.testUrl(t,n))},addNotification:function(t){return e(f.addNotification(t))},updateExcludes:function(t,n){return e(f.updateExcludes(t,n))}}};t.default=d.connect(b,w)(y),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(m,"cache_tester_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(y,"DynamicCache","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(46),d=n(9),p=n(10),f=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:p.translate("This item already exists in exclude list.")}),!1;if(u.isEmpty(n.state.excludeInputValue))return n.props.addNotification({id:n.state.excludeInputValue+"error",type:"error",message:p.translate("You must input a value.")}),!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:p.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(d.Flex,{gutter:"xx-small"},l.createElement(d.Text,{weight:"bold"},e))}},{header:"",render:function(e,t){return l.createElement(d.IconButton,{icon:"trash",shape:"circle",onClick:function(e){return n.deleteItem(t.value)}})},style:{textAlign:"right"}}]},n.state={excludeInputValue:""},n}return s(t,e),t.prototype.render=function(){var e=this;return l.createElement(d.Grid,{gap:"small",padding:["none","responsive","responsive"]},l.createElement(d.Flex,{direction:"row"},l.createElement(d.Box,{sm:"10"},l.createElement(d.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(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Button,{color:"secondary",size:"large",type:"outlined",onClick:this.updateExcludeList},this.props.buttonText?this.props.buttonText:p.translate("Exclude")))),this.props.excludedItems.length>0&&l.createElement(d.Flex,{direction:"column"},l.createElement(d.Box,null,l.createElement(d.Table,{data:this.transformExcludedItems(),columns:this.getColumns()}))))},t}(l.Component);t.default=f,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),a.register(f,"SimpleExclude","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(9),d=n(10),p=n(1180),f=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:p.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(u.Flex,{gutter:"xx-small"},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.deleteUrl(t.value)}})},style:{textAlign:"right"}}]},n.state={excludeInputValue:""},n}return s(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=p.trailingSlashIt(t)),"/"!==t&&(t="/"+t),-1!==this.props.excludedUrls.indexOf(t)?(this.props.addNotification({id:t,type:"error",message:d.translate("This URL already exists in exclude list.")}),!1):t},t.prototype.render=function(){var e=this;return l.createElement(u.Grid,{gap:"small",padding:["none","responsive","responsive"]},l.createElement(u.Flex,{direction:"row"},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",className:"right--actions"},l.createElement(u.Button,{color:"secondary",size:"large",type:"outlined",onClick:this.updateExcludeList},d.translate("Exclude")))),this.props.excludedUrls.length>0&&l.createElement(u.Flex,null,l.createElement(u.Table,{data:this.transformExcludedUrls(),columns:this.getColumns()})))},t}(l.Component);t.default=f,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),a.register(f,"UrlsExclude","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),c(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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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"},c.translate("Confirm")))},a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.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,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.translate("If you notice issues with certain functionality, use the Exclude functionality to keep those scripts loading in a render-blocking manner."))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/async-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/async-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Close")))},a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.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,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.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,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.translate("Specific URL Purge on comment actions and page, post, and category updates."))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cache-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cache-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Text,{align:"left"},"manual"==e.type&&c.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&&c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/php-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/php-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:e.toogleConfirm,color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/ssl-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/ssl-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Close")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate('You can exclude full or partial URLs using "*" as a wildcard. For example:'))),a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.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:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate('{{strong}}www.site.com/parent-page/*{{/strong}} will exclude all sub-pages of "parent-page".',{components:{strong:a.createElement("strong",null)}}))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/urls-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/urls-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/delete-webp-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/delete-webp-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate("Doing this will delete all WebP files in your uploads folder and generate them anew!"))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/regenerate-webp-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/regenerate-webp-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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"},c.translate("Confirm")))},a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.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,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.translate("If you notice issues with parts of your site, use the Exclude functionality to keep those scripts separate from the combination."))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/js-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/js-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/enable-webp-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/enable-webp-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=function(e){return a.createElement(l.Dialog,{state:"warning",size:"large",title:e.title,icon:"edit",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleDialog},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm(e.name)},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{padding:"x-small",align:"flex-start"},a.createElement(l.Box,{sm:"6",align:"flex-start"},a.createElement(l.RadioButton,{key:"ultrafast",value:1,name:e.statusName,size:"medium",onChange:function(t){return e.changeStatus(e.statusName,t)},checked:1==e.status},c.translate("Enabled"))),a.createElement(l.Box,{sm:"6",align:"flex-start"},a.createElement(l.RadioButton,{key:"standard",value:0,name:e.statusName,size:"medium",onChange:function(t){return e.changeStatus(e.statusName,t)},checked:0==e.status},c.translate("Disable")))),a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Notice,{shadow:!1,type:"instruction",background:"light"},a.createElement(l.Text,{align:"left"},e.message))),1==e.status&&a.createElement(l.Flex,{gutter:"x-small"},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"},c.translate("Select Heartbeat Frequency")))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/heartbeat-control-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/heartbeat-control-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=function(e){return a.createElement(l.Dialog,{state:"info",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate("Your Cloudflare account may have page rules set that might affect the work of our integration. SiteGround 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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cloudflare-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cloudflare-dialog.tsx"),s.register(u,"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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(46),g=n(9),m=n(16),h=n(100),_=a(n(62)),v=a(n(498)),y=a(n(1193)),b=a(n(1198)),w=a(n(1199)),M=a(n(499)),x=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 s(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,u.createElement(_.default,null,f.includes(window.optimizerData.modules,"ssl")&&u.createElement(u.Fragment,null,u.createElement(g.Flex,{direction:"row",align:"center",padding:["medium","responsive"]},1===this.props.isLoading&&u.createElement(g.Loader,{style:{position:"absolute"}}),u.createElement(g.Box,{sm:"10"},u.createElement(g.Title,{level:"5",density:"compact",color:"darkest"},p.translate("Enable HTTPS")),u.createElement(g.Text,null,p.translate("Configures your site to work correctly via HTTPS and forces a secure connection to your site."))),u.createElement(g.Box,{sm:"2",className:"right--actions"},u.createElement(g.Switch,{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&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Flex,{background:"light",direction:"row",align:"center",padding:["medium","responsive"]},u.createElement(g.Box,{sm:"10"},u.createElement(g.Title,{level:"5",density:"compact",color:"darkest"},p.translate("Fix Insecure Content")),u.createElement(g.Text,null,p.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"))),u.createElement(g.Box,{sm:"2",className:"right--actions"},u.createElement(g.Switch,{checked:this.props.options.fix_insecure_content,name:"fix_insecure_content",onChange:function(t){return e.changeOption(t.target,!0)}})))),u.createElement(g.Flex,{className:"divider"})),u.createElement(y.default,null),u.createElement(b.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}),u.createElement(w.default,{checked:this.props.options.database_optimization,toogleOptimization:this.toogleDatabaseOptimization}),u.createElement(M.default,{checked:this.props.options.enable_gzip_compression,changeOption:this.changeOption}),u.createElement(g.Flex,{className:"divider"}),u.createElement(v.default,{checked:this.props.options.enable_browser_caching,changeOption:this.changeOption}),this.state.showSslDialog&&u.createElement(h.SslDialog,{toogleClose:this.toogleSslDialog,toogleConfirm:this.toogleSsl}))},t}(u.Component),S=function(e){return{options:e.Options,isLoading:e.Options.isLoading}},O=function(e){return{enableOption:function(t,n){return e(m.enableOption(t,n,!1))},disableOption:function(t,n){return e(m.disableOption(t,n,!1))},enableDatabaseOptimization:function(t,n){return e(m.enableDatabaseOptimization(t,n,!1))},disableDatabaseOptimization:function(t,n){return e(m.disableDatabaseOptimization(t,n,!1))},addNotification:function(t){return e(m.addNotification(t))},updateExcludes:function(t,n){return e(m.updateExcludes(t,n))},enableSsl:function(t){return e(m.enableSsl(t))},disableSsl:function(t){return e(m.disableSsl(t))}}};t.default=d.connect(S,O)(x),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(_,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(v,"browser_cache_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(y,"heartbeat_control_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(b,"dns_prefetch_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(w,"database_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(M,"gzip_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(x,"EnvironmentOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(S,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(O,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(46),f=n(9),g=n(16),m=n(10),h=a(n(1194)),_=n(68),v=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",s="heartbeat_"+r.option+"_interval";1===parseInt(n.state[r.status])?n.props.enableOption(o,!1):n.props.disableOption(o,!1),n.props.changeOption(s,n.state[r.interval]),n.setState(((t={})[r.dialog]=!n.state[r.dialog],t))},n.getOptions=function(e){var t={dashboard:{title:m.translate("WordPress Admin Pages"),dialog:"showDashboardDialog",status:"dashboardStatus",interval:"dashboardInterval",option:"dashboard",message:m.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:u.createElement("strong",null)}})},post:{title:m.translate("Post and Page Edit"),dialog:"showPostDialog",status:"frontendStatus",interval:"frontendInterval",option:"post",message:m.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:u.createElement("strong",null)}})},frontend:{title:m.translate("Site Frontend"),dialog:"showFrontendDialog",status:"editStatus",interval:"editInterval",option:"frontend",message:m.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:u.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])?m.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 s(t,e),t.prototype.componentDidUpdate=function(e){var t=this,n=this.getOptions(!1);p.map(n,(function(n){p.map(t.state.keys,(function(r){var o,s="heartbeat_"+n.option+"_"+r;t.props.options[s]!==e.options[s]&&t.setState(((o={})[n[r]]=t.props.options[s],o))}))}))},t.prototype.render=function(){var e=this;return u.createElement(u.Fragment,null,u.createElement(_.Row,{title:m.translate("WordPress Heartbeat Optimization"),checked:this.props.options.heartbeat_control,name:"heartbeat_control",onChange:function(t){return e.changeOption(t,!0)},hasExpand:1},m.translate("Enable this option to allow SiteGround Optimizer to control the WordPress Heartbeat API.")),1===this.props.options.heartbeat_control&&u.createElement(f.Flex,{padding:["none","responsive","responsive"]},u.createElement(f.Flex,{direction:"row",align:"center",background:"light",padding:["responsive","responsive"]},u.createElement(f.Grid,{gap:"small"},u.createElement("div",null,u.createElement(f.Notice,{type:"instruction",contentSize:"expanded",shadow:!1},m.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."))),u.createElement("div",null,u.createElement(f.Flex,{direction:"row"},p.map(this.getOptions(!1),(function(t,n){return u.createElement(f.Box,{sm:"4",key:n},u.createElement(h.default,{label:m.translate(t.title)},e.getMessage(t),u.createElement(f.IconButton,{icon:"edit",shape:"circle",onClick:function(n){return e.toogleDialog(t.dialog)}})))}))))))),u.createElement(f.Flex,{className:"divider"}),p.map(this.getOptions(!1),(function(t,n){return e.state[t.dialog]&&u.createElement(v.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}(u.Component),b=function(e){return{options:e.Options}},w=function(e){return{enableOption:function(t,n){return e(g.enableOption(t,n,!1))},disableOption:function(t,n){return e(g.disableOption(t,n,!1))},changeOption:function(t,n){return e(g.changeOption(t,n))},addNotification:function(t){return e(g.addNotification(t))}}};t.default=d.connect(b,w)(y),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(h,"form_field_wrapper_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(y,"Heartbeat_Control","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1195);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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(2));n(1196);var a,c,l=n(9),u=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=u,a=n(0).default,c=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(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),a.register(i,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),a.register(u,"FormFieldWrapper","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1197);"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,".form-field-wrapper__content {\n height: 40px;\n display: flex;\n align-items: center; }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=o(n(2)),l=n(10),u=n(9),d=n(68),p=n(149),f=s(n(222)),g=function(e){return c.createElement(c.Fragment,null,c.createElement(d.Row,{title:l.translate("DNS Pre-fetch for External Domains"),checked:e.dns_prefetch,name:"dns_prefetch",onChange:e.changeOption},l.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&&c.createElement(u.Flex,{padding:["none","responsive","responsive"]},c.createElement(u.Box,{sm:"12"},c.createElement(u.Flex,{background:"light",direction:"column"},c.createElement(f.default,{margin:"medium"},l.translate("Add only your domain names without http:// or https:// - DNS prefetching will work for both")),c.createElement(p.SimpleExclude,{updateExcludeList:function(t,n,r){return e.updateExcludes("dns_prefetch_urls",t)},excludedItems:e.dns_prefetch_urls,addNotification:e.addNotification,buttonText:l.translate("Add"),regex:"(?:(?:https?:)?(?:\\/\\/)(?:www\\.|(?!www)))?((?:.*?)\\.(?:[a-zA-Z\\d-]+){2,})"})))),c.createElement(u.Flex,{className:"divider"}))};t.default=g,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i.register(s,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i.register(f,"inner_row_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i.register(g,"DNSPrefetch","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),a(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.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=n(68),d=function(e){return a.createElement(a.Fragment,null,a.createElement(u.Row,{title:c.translate("Scheduled Database Maintenance"),checked:e.checked,name:"database_optimization",onChange:e.toogleOptimization},c.translate("Enable this option to regularly cleanup your database and keep it small and optimized.")),a.createElement(l.Flex,{padding:["none","responsive","responsive"]},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{gutter:"xx-small",background:"light",direction:"column"},a.createElement(l.Notice,{type:"instruction",background:"light",contentSize:"expanded",shadow:!1,title:c.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"},c.translate("Perform Database Optimization for MyISAM tables")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all automatically created post and page drafts")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all page and post revisions")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all posts and pages in your Trash")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all comments marked as Spam")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all expired Transients"))))))),a.createElement(l.Flex,{className:"divider"}))};t.default=d,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/database-optimization/index.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/database-optimization/index.tsx"),s.register(d,"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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(46),g=n(9),m=n(16),h=n(100),_=a(n(62)),v=n(149),y=a(n(221)),b=a(n(222)),w=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 s(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=f.filter(this.props.jsAssets,{is_minified:0}),n=(f.filter(this.props.jsAssets,{in_footer:0}),f.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),s=this.filterSelectedValues(this.props.options.minify_css_exclude,n),i=this.filterSelectedValues(this.props.options.combine_css_exclude,this.props.cssAssets),a=this.filterSelectedValues(this.props.options.combine_javascript_exclude,this.props.jsAssets);return u.createElement(_.default,null,u.createElement(y.default,{title:p.translate("Minify the HTML Output"),checked:this.props.options.optimize_html,name:"optimize_html",onChange:this.changeOption},p.translate("Removes unnecessary characters from your HTML output saving data and improving your site speed. "),!!this.props.options.optimize_html&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showHtmlMinifyExclude")},"aria-expanded":!!this.state.showHtmlMinifyExclude}," ",p.translate("Exclude URLs from HTML Minification"))),1===this.props.options.optimize_html&&(this.props.options.minify_html_exclude.length||this.state.showHtmlMinifyExclude)&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{background:"light",direction:"column"},u.createElement(b.default,{margin:"medium",title:p.translate("Exclude URLs from HTML Minification")},p.translate("With this functionality, you can exclude different pages from HTML minification.")),u.createElement(v.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})))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Minify JavaScript Files"),checked:this.props.options.optimize_javascript,name:"optimize_javascript",onChange:this.changeOption},p.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&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showMinifyJavascriptExclude")},"aria-expanded":!!this.state.showMinifyJavascriptExclude}," ",p.translate("Exclude from JavaScript Minification"))),1===this.props.options.optimize_javascript&&(r.length||this.state.showMinifyJavascriptExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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")}}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.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()}},p.translate("Combine your JavaScript files in order to reduce the number of requests to the server."),!!this.props.options.combine_javascript&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showCombineJavascriptExclude")},"aria-expanded":!!this.state.showCombineJavascriptExclude}," ",p.translate("Exclude from JavaScript Combination"))),1===this.props.options.combine_javascript_error&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Notice,{type:"error",background:"light",contentSize:"expanded",shadow:!1,title:p.translate("JAVASCRIPT COMBINATION DISABLED")},p.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&&(a.length||this.state.showCombineJavascriptExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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:a,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("combine_javascript_exclude",t,"showCombineJavascriptExclude")}}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.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()}},p.translate("Defer loading of render-blocking JavaScript files for faster initial site load. "),!!this.props.options.optimize_javascript_async&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showAsyncJavascriptExclude")},"aria-expanded":!!this.state.showAsyncJavascriptExclude}," ",p.translate("Exclude from Loading JS Files Asynchronously"))),1===this.props.options.optimize_javascript_async&&(o.length||this.state.showAsyncJavascriptExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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")}}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Minify CSS Files"),checked:this.props.options.optimize_css,name:"optimize_css",onChange:this.changeOption},p.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&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showMinifyCssExclude")},"aria-expanded":!!this.state.showMinifyCssExclude}," ",p.translate("Exclude From CSS Minification"))),1===this.props.options.optimize_css&&(s.length||this.state.showMinifyCssExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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:s,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("minify_css_exclude",t,"showMinifyCssExclude")}}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Combine CSS Files"),checked:this.props.options.combine_css,name:"combine_css",onChange:this.changeOption},p.translate("Combine multiple CSS files into one to lower the number of requests your site generates. "),!!this.props.options.combine_css&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showCombineCssExclude")},"aria-expanded":!!this.state.showCombineCssExclude}," ",p.translate("Exclude from CSS Combination"))),1===this.props.options.combine_css&&(i.length||this.state.showCombineCssExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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:i,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("combine_css_exclude",t,"showCombineCssExclude")}}))),1==this.props.options.combine_css&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["small","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{background:"light",direction:"column"},u.createElement(b.default,{margin:"medium",title:p.translate("Preload Combined CSS"),checked:this.props.options.preload_combined_css,name:"preload_combined_css",onChange:this.changeOption,titleDensity:"none"},p.translate("Adds the preload value to the combine css files instructing the browser that this is important resource which will be needed very soon to render the page.")),u.createElement(g.Flex,{className:"divider"})))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Web Fonts Optimization"),checked:this.props.options.optimize_web_fonts,name:"optimize_web_fonts",onChange:this.changeOption},p.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&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Flex,{background:"light",direction:"column"},u.createElement(b.default,{margin:"medium",title:p.translate("Fonts Preloading")},p.translate("With this optimization 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 and that you paste the {{strong}}full URL to the font{{/strong}}.",{components:{strong:u.createElement("strong",null)}})),u.createElement(v.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:p.translate("Preload")}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Remove Query Strings From Static Resources"),checked:this.props.options.remove_query_strings,name:"remove_query_strings",onChange:this.changeOption},p.translate("Removes version query strings from your static resources improving the caching of those resources.")),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Disable Emojis"),checked:this.props.options.disable_emojis,name:"disable_emojis",onChange:this.changeOption},p.translate("Enable to prevent WordPress from automatically detecting and generating emojis in your pages.")),this.state.showAsyncDialog&&u.createElement(h.AsyncDialog,{toogleConfirm:this.toogleAsync}),this.state.showJsCombineDialog&&u.createElement(h.JsCombineDialog,{toogleConfirm:this.toogleJsCombination}))},t}(u.Component),M=function(e){return{options:e.Options,jsAssets:e.Options.assets.scripts,cssAssets:e.Options.assets.styles}},x=function(e){return{enableOption:function(t,n,r){return e(m.enableOption(t,n,r))},disableOption:function(t,n,r){return e(m.disableOption(t,n,r))},addNotification:function(t){return e(m.addNotification(t))},updateExcludes:function(t,n){return e(m.updateExcludes(t,n))}}};t.default=d.connect(M,x)(w),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(_,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(y,"row_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(b,"inner_row_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(w,"FrontendOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(M,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(x,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(46),g=n(9),m=n(16),h=a(n(62)),_=n(149),v=n(1202),y=n(500),b=n(68),w=function(e){function t(t){var n=e.call(this,t)||this;return n.getHeight=function(){return 0===n.props.options.image_optimization_status?320:"auto"},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 s(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 u.createElement(h.default,null,f.includes(window.optimizerData.modules,"optimize_images")&&u.createElement(u.Fragment,null,u.createElement(b.Row,{title:p.translate("New Images Optimization"),checked:this.props.options.optimize_images,name:"optimize_images",onChange:this.changeOption},p.translate("We will automatically optimize all new images that you upload to your Media Library.")),u.createElement(g.Flex,{className:"divider"}),u.createElement("div",{className:"position--relative"},0===this.props.options.image_optimization_status&&u.createElement(y.ImageLoader,{stopOptimization:this.stopImagesOptimization,totalImages:this.props.options.has_images_for_optimization,totalUnoptimizedImages:this.props.options.total_unoptimized_images}),u.createElement(g.Flex,{padding:["medium","responsive"],style:{minHeight:this.getHeight(),position:"relative"}},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{direction:"row",align:"center",justify:"space-between"},u.createElement(g.Box,{sm:"9"},u.createElement(g.Title,{level:"5",density:"compact",color:"darkest"},p.translate("Existing Images Optimization")),u.createElement(g.Text,null,p.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)&&u.createElement(g.Box,{sm:"3",className:"right--actions"},u.createElement(g.Button,{color:"secondary",size:"large",type:"outlined","aria-expanded":0===this.props.options.image_optimization_status,onClick:function(t){return e.props.initImagesOptimization()}},1===this.props.options.image_optimization_stopped?p.translate("Resume Optimization"):p.translate("Start Optimization"))))))),1===parseInt(window.optimizerData.is_cron_disabled)&&0===this.props.options.dismiss_cron_notice&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Notice,{type:"error"},p.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:u.createElement(g.Link,{href:p.translate("https://www.siteground.com/tutorials/wordpress/real-cron-job/"),target:"_blank",style:{textDecoration:"underline"}}),link2:u.createElement(g.Link,{style:{textDecoration:"underline"},onClick:function(t){return e.props.enableOption("dismiss_cron_notice")}})}}))),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&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Notice,{type:"success",background:"light",contentSize:"expanded",shadow:!1},p.translate("All images in your Media Library have been optimized successfully! Force {{link}}re-optimization{{/link}} of your images.",{components:{link:u.createElement(g.Link,{onClick:this.props.resetImagesOptimization,style:{textDecoration:"underline"}})}}))))),u.createElement(g.Flex,{className:"divider"}),u.createElement(v.WebP,null),f.includes(window.optimizerData.modules,"lazyload_images")&&u.createElement(u.Fragment,null,u.createElement(g.Flex,{className:"divider"}),u.createElement(b.Row,{title:p.translate("Lazy Load Media"),checked:this.props.options.lazyload_images,name:"lazyload_images",onChange:this.changeOption,hasExpand:1},p.translate("Load images only when they are visible in the browser")),1==this.props.options.lazyload_images&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{background:"light",direction:"column"},u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Iframes"),checked:this.props.options.lazyload_iframes,name:"lazyload_iframes",onChange:this.changeOption,tooltip:p.translate("We will lazy load iframes often used for things like video embeds from another sources. "),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Videos"),checked:this.props.options.lazyload_videos,name:"lazyload_videos",onChange:this.changeOption,tooltip:p.translate("We will lazy load all videos you have added directly to your pages."),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Gravatars"),checked:this.props.options.lazyload_gravatars,name:"lazyload_gravatars",onChange:this.changeOption,tooltip:p.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"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Thumbnails"),checked:this.props.options.lazyload_thumbnails,name:"lazyload_thumbnails",onChange:this.changeOption,tooltip:p.translate("Enable if you want to lazy-load the thumbnail sizes of your original images."),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Responsive Images"),checked:this.props.options.lazyload_responsive,name:"lazyload_responsive",onChange:this.changeOption,tooltip:p.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"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Widgets"),checked:this.props.options.lazyload_textwidgets,name:"lazyload_textwidgets",onChange:this.changeOption,tooltip:p.translate("Enable this option if you want the images in your widget areas to load only when users reach them. "),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load for Mobile"),checked:this.props.options.lazyload_mobile,name:"lazyload_mobile",onChange:this.changeOption,tooltip:p.translate("Enable if you want to use lazy-loading features for mobile requests to your site."),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Fix for Lazy Loading Short Codes"),checked:this.props.options.lazyload_shortcodes,name:"lazyload_shortcodes",onChange:this.changeOption,tooltip:p.translate("If your images generated by shortcodes are not lazy loaded, please enable this feature."),titleDensity:"none"}),1===parseInt(window.optimizerData.is_shop)&&u.createElement(u.Fragment,null,u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Product Images"),checked:this.props.options.lazyload_woocommerce,name:"lazyload_woocommerce",onChange:this.changeOption,tooltip:p.translate("Enable if you want to enable lazy-load images in your store, product and other WooCommerce pages."),titleDensity:"none"})),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Exclude from Lazy Load")},p.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.")),u.createElement(_.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}),u.createElement(g.Flex,null))))))},t}(u.Component),M=function(e){return{options:e.Options}},x=function(e){return{enableOption:function(t,n){return e(m.enableOption(t,n,!1))},disableOption:function(t,n){return e(m.disableOption(t,n,!1))},addNotification:function(t){return e(m.addNotification(t))},checkImageOptimizationStatus:function(){return e(m.checkImageOptimizationStatus())},initImagesOptimization:function(){return e(m.initImagesOptimization())},stopImagesOptimization:function(){return e(m.stopImagesOptimization())},resetImagesOptimization:function(){return e(m.resetImagesOptimization())},updateExcludes:function(t,n){return e(m.updateExcludes(t,n))}}};t.default=d.connect(M,x)(w),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(h,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(w,"ImageOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(M,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(x,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1203);t.WebP=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(25),d=n(10),p=n(9),f=n(68),g=n(100),m=n(500),h=n(1206),_=n(16),v=n(1208),y=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?320:"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("div",{className:"position--relative",style:{minHeight:n.getHeight()}},0===n.props.options.webp_conversion_status&&l.createElement(m.WebpLoader,{stopOptimization:n.stopWebpOptimization,totalImages:n.props.options.has_images_for_conversion,totalUnoptimizedImages:n.props.options.total_non_converted_images}),l.createElement(f.Row,{title:d.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()}},d.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(h.QualitySlider,{title:d.translate("Optimization Level"),description:d.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:d.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(p.Flex,{className:"divider"}),l.createElement(p.Container,{elevation:"none",padding:["medium","responsive"]},l.createElement(p.Flex,{direction:"row",align:"center"},l.createElement(p.Box,{sm:"5"},l.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},d.translate("Manage WebP Copies for Existing Images")),l.createElement(p.Text,null,d.translate("Generate or delete a WebP copy of your existing media library."))),0==n.props.options.has_images_for_conversion&&l.createElement(p.Box,null),l.createElement(p.Box,{sm:"7",className:"right--actions"},l.createElement(p.Button,{color:"secondary",size:"large",type:"outlined","aria-haspopup":!0,onClick:function(e){return n.toogleDeleteWebpDialog()}},d.translate("Delete all WebP Files")),l.createElement(p.Spacer,{size:"small"}),0!==n.props.options.has_images_for_conversion&&l.createElement(p.Button,{style:{marginTop:n.props.isPhone?"10px":"0"},color:"secondary",size:"large",type:"outlined","aria-expanded":0===n.props.options.webp_conversion_status,onClick:function(e){return n.props.generateWebpFiles()}},d.translate("Bulk Generate WebP Files"))))),0==n.props.options.has_images_for_conversion&&l.createElement(p.Flex,{padding:["none","responsive","responsive"]},l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"success",background:"light",contentSize:"expanded",shadow:!1},d.translate("All WebP copies of your files have been generated successfully! Force {{link}}re-generation{{/link}} of your images.",{components:{link:l.createElement(p.Link,{onClick:n.toogleRegenerateWebpDialog,style:{textDecoration:"underline"},"aria-haspopup":!0})}})))),n.state.showEnableWebpDialog&&l.createElement(g.EnableWebpDialog,{toogleClose:n.toogleEnableWebpDialog,toogleConfirm:n.toogleEnableWebp}),n.state.showDeleteWebpDialog&&l.createElement(g.DeleteWebpDialog,{toogleClose:n.toogleDeleteWebpDialog,toogleConfirm:n.deleteWebpFiles}),n.state.showRegenerateWebpDialog&&l.createElement(g.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 s(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),b=function(e){return{options:e.Options,isPhone:e.Environment.isPhone}},w=function(e){return{enableOption:function(t,n){return e(_.enableOption(t,n,!1))},disableOption:function(t,n){return e(_.disableOption(t,n,!1))},addNotification:function(t){return e(_.addNotification(t))},deleteWebpFiles:function(t){return e(v.deleteWebpFiles(t))},changeOption:function(t,n){return e(_.changeOption(t,n))},stopWebpConvertion:function(){return e(v.stopWebpConvertion())},generateWebpFiles:function(){return e(v.generateWebpFiles())},checkWebpConversionStatus:function(){return e(v.checkWebpConversionStatus())}}};t.default=u.connect(b,w)(y),a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(y,"WebP","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(10),d=n(9),p=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 s(t,e),t.prototype.render=function(){var e=this;return l.createElement(d.Loader,{spinnerPosition:"absolute",density:"none",position:"absolute",className:"loader-image-optimization"},l.createElement(d.Title,{level:"4",density:"compact",weight:"bold",color:"darkest"},u.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"}},u.translate("Optimized %(optimized)s of %(total)s images",{args:{optimized:this.props.totalUnoptimizedImages-this.props.totalImages,total:this.props.totalUnoptimizedImages}})),l.createElement(d.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(d.Button,{color:"secondary",size:"small",type:"outlined",onClick:function(t){return e.props.stopOptimization()}},u.translate("Pause")))},t}(l.Component);t.default=p,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),a.register(p,"ImageLoader","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(10),d=n(9),p=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 s(t,e),t.prototype.render=function(){var e=this;return l.createElement(d.Loader,{spinnerPosition:"absolute",density:"none",position:"absolute",className:"loader-image-optimization"},l.createElement(d.Title,{level:"4",density:"compact",weight:"bold",color:"darkest"},u.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"}},u.translate("Generated %(optimized)s of %(total)s webp copies",{args:{optimized:this.props.totalUnoptimizedImages-this.props.totalImages,total:this.props.totalUnoptimizedImages}})),l.createElement(d.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(d.Button,{color:"secondary",size:"small",type:"outlined",onClick:function(t){return e.props.stopOptimization()}},u.translate("Pause")))},t}(l.Component);t.default=p,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),a.register(p,"WebpLoader","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1207);t.QualitySlider=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=function(e){return a.createElement(l.Flex,{padding:["none","responsive","responsive"]},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{background:"light",direction:"column",padding:["small","responsive","medium"]},a.createElement(l.Flex,{direction:"row",align:"center"},a.createElement(l.Box,{sm:"10"},a.createElement(l.Title,{level:"5",density:"compact",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,{direction:"column"},a.createElement("div",{className:"grid-wrapper"},a.createElement(l.Grid,{gap:"medium"},"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",contentSize:"expanded",shadow:!1},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/slider/quality-slider.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/slider/quality-slider.tsx"),s.register(u,"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";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=o(n(37));t.stopWebpConvertion=a.createAction(c.STOP_WEBP_CONVERSION),t.deleteWebpFiles=a.createAction(c.DELETE_WEBP_FILES),t.generateWebpFiles=a.createAction(c.GENERATE_WEBP_FILES),t.checkWebpConversionStatus=a.createAction(c.CHECK_WEBP_CONVERSION_STATUS),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/actions/webp.ts"),s.register(c,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/actions/webp.ts"),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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(9),g=n(16),m=a(n(62)),h=a(n(497)),_=a(n(499)),v=a(n(498)),y=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 s(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 u.createElement(m.default,null,u.createElement(_.default,{checked:this.props.options.enable_gzip_compression,changeOption:this.changeOption}),u.createElement(v.default,{checked:this.props.options.enable_browser_caching,changeOption:this.changeOption}),u.createElement(h.default,{enable_memcached:this.props.options.enable_memcached,enableMemcache:this.props.enableMemcache,disableMemcache:this.props.disableMemcache}),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Site Admin Permissions")),u.createElement(f.Text,null,p.translate("In this section, set the access permission for admins of separate sites.")))),u.createElement(f.Flex,{gutter:"large"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(f.Flex,{direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("SuperCacher Settings")),u.createElement(f.Text,null,p.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's SuperCacher tab."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.supercacher_permissions,name:"supercacher_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Frontend Optimizations")),u.createElement(f.Text,null,p.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Frontend Optmization tab."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.frontend_permissions,name:"frontend_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Image Optimizations")),u.createElement(f.Text,null,p.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Image Optimization tab."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.images_permissions,name:"images_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Environment Optimizations")),u.createElement(f.Text,null,p.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Environment Optimization tab."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.environment_permissions,name:"environment_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))))},t}(u.Component),b=function(e){return{options:e.Options}},w=function(e){return{enableMemcache:function(t){return e(g.enableMemcache(t))},disableMemcache:function(t){return e(g.disableMemcache(t))},enableOption:function(t,n,r){return e(g.enableOption(t,n,r))},disableOption:function(t,n,r){return e(g.disableOption(t,n,r))},addNotification:function(t){return e(g.addNotification(t))}}};t.default=d.connect(b,w)(y),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(m,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(h,"memcached_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(_,"gzip_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(v,"browser_cache_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(y,"MultisiteControl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(9),g=n(16),m=a(n(62)),h=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 s(t,e),t.prototype.render=function(){var e=this;return u.createElement(m.default,null,u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},p.translate("SUPERCACHER SETTINGS")))),u.createElement(f.Flex,{direction:"row",align:"center",gutter:"large"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Dynamic Caching")),u.createElement(f.Text,null,p.translate("Select whether new sites should have the Dynamic Caching enabled for them or not."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{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&&u.createElement(f.Flex,{gutter:"large"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Automatic Cache Purge")),u.createElement(f.Text,null,p.translate("Automatically perform a smart cache purge after every content modification."),"  ")),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_autoflush_cache,name:"default_autoflush_cache",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},p.translate("ENVIRONMENT OPTIMIZATION")))),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},1===this.props.isLoading&&u.createElement(f.Loader,{style:{position:"absolute"}}),u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Enable HTTPS")),u.createElement(f.Text,null,p.translate("Configures your site to work correctly via HTTPS and forces a secure connection to your site."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{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&&u.createElement(f.Flex,{gutter:"large"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Fix Insecure Content")),u.createElement(f.Text,null,p.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"))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_fix_insecure_content,name:"default_fix_insecure_content",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},p.translate("FRONTEND OPTIMIZATION")))),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Minify the HTML Output")),u.createElement(f.Text,null,p.translate("Removes unnecessary characters from your HTML output saving data and improving your site speed."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_html,name:"default_optimize_html",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Minify JavaScript Files")),u.createElement(f.Text,null,p.translate("Combine and minify your JavaScript files in order to reduce their size, improve cachability, and reduce the number of requests to the server."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_javascript,name:"default_optimize_javascript",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Load Render-blocking JavaScript Files Asynchronously")),u.createElement(f.Text,null,p.translate("Add async parameter to the JavaScript files loaded in the header section of your site so they don’t block your page rendering."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_javascript_async,name:"default_optimize_javascript_async",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Minify CSS Files")),u.createElement(f.Text,null,p.translate("Combine and minify your CSS files in order to reduce their size, improve cachability, and reduce the number of requests to the server."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_css,name:"default_optimize_css",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Combine CSS Files")),u.createElement(f.Text,null,p.translate("Combine multiple CSS files into one to lower the number of requests your site generates."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_combine_css,name:"default_combine_css",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Remove Query Strings From Static Resources")),u.createElement(f.Text,null,p.translate("Removes version query strings from your static resources improving the caching of those resources."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_remove_query_strings,name:"default_remove_query_strings",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Disable Emojis")),u.createElement(f.Text,null,p.translate("Enable to prevent WordPress from automatically detecting and generating emojis in your pages."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_disable_emojis,name:"default_disable_emojis",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},p.translate("IMAGE OPTIMIZATION")))),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Image Optimization")),u.createElement(f.Text,null,p.translate("We will optimize all your existing images with minimal or no loss in quality. Note, that this will overwrite your original images."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_images,name:"default_optimize_images",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Lazy Load Images")),u.createElement(f.Text,null,p.translate("Load images only when they are visible in the browser"))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{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&&u.createElement(f.Flex,{gutter:"large"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Iframes")),u.createElement(f.Text,null,p.translate("We will lazy load iframes often used for things like video embeds from another sources. "))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_iframes,name:"default_lazyload_iframes",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Videos")),u.createElement(f.Text,null,p.translate("We will lazy load all videos you have added directly to your pages."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_videos,name:"default_lazyload_videos",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Thumbnails")),u.createElement(f.Text,null,p.translate("Enable if you want to enable lazy-load images in your store, product and other WooCommerce pages."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_woocommerce,name:"default_lazyload_woocommerce",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Gravatars")),u.createElement(f.Text,null,p.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. "))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_gravatars,name:"default_lazyload_gravatars",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Thumbnails")),u.createElement(f.Text,null,p.translate("Enable if you want to lazy-load the thumbnail sizes of your original images."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_thumbnails,name:"default_lazyload_thumbnails",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Responsive Images")),u.createElement(f.Text,null,p.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."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_responsive,name:"default_lazyload_responsive",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Widgets")),u.createElement(f.Text,null,p.translate("Enable this option if you want the images in your widget areas to load only when users reach them. "))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_textwidgets,name:"default_lazyload_textwidgets",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))))},t}(u.Component),_=function(e){return{options:e.Options}},v=function(e){return{enableOption:function(t,n,r){return e(g.enableOption(t,n,r))},disableOption:function(t,n,r){return e(g.disableOption(t,n,r))},addNotification:function(t){return e(g.addNotification(t))}}};t.default=d.connect(_,v)(h),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(m,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(h,"SitesControl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(_,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(v,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=n(25),u=n(46),d=n(10),p=n(9),f=a(n(62)),g=a(n(1212)),m=n(1213);n(1215);var h,_,v=n(16),y=function(e){function t(t){var n=e.call(this,t)||this;return n.showResult=function(e){n.setState({testKey:e})},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 u.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 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 lh-gauge__percentage">{SCORE}</div></div>'.replace("{SCORE}",e).replace("{PERCENTAGE}",t.toString())}},n.getCircleClassName=function(e){return e<90&&e>49?"placeholder-without-svg placeholder-meduim":e<49?"placeholder-without-svg placeholder-low":"placeholder-without-svg placeholder-top"},n.createUnixtoDate=function(e){var t=new Date(0),n=new Date(t.setUTCSeconds(e.replace("sgo_speed_test_","")));return new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"}).format(n)},n.getMessageResponse=function(e){return e[0].description},n.renderSuccessfullyCompleted=function(e){return u.map(n.prepareData(e),(function(e){return c.createElement(p.Flex,{gutter:"large",direction:"column"},c.createElement(p.Box,null,c.createElement(p.Notice,{type:"success"},e.title," ",c.createElement(g.default,{tooltip:e.description,tooltipSize:"small"}))))}))},n.renderRecommendedOptimizations=function(e){var t=[];if(u.map(e,(function(r,o){1!==n.props.options[o]&&t.push(e[o])})),t.length)return c.createElement("div",null,c.createElement(p.Title,{level:"5",density:"cozy",color:"darkest"},d.translate("Recommended Optimizations")),c.createElement(p.Flex,{border:"small"},c.createElement(p.Box,{sm:"12"},!u.isEmpty(e)&&Object.keys(e).map((function(t){return c.createElement(c.Fragment,null,1!==n.props.options[t]&&c.createElement(c.Fragment,null,c.createElement(p.Flex,{padding:["medium","responsive"]},c.createElement(p.Box,{sm:"12"},c.createElement(p.Flex,{direction:"row",align:"center",justify:"space-between"},c.createElement(p.Box,{sm:"9"},c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},e[t].title),c.createElement(p.Text,null,e[t].message)),c.createElement(p.Box,{sm:"3",className:"right--actions"},c.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",onClick:function(e){return n.props.enableOption(t,!0)}},d.translate("Enable")))))),c.createElement(p.Flex,{className:"divider"})))})))))},n.state={currentUrl:"",testKey:!1},n}return s(t,e),t.prototype.componentDidUpdate=function(e){u.isEmpty(this.props.previousTests)||u.isEmpty(e.previousTests)||this.props.previousTests===e.previousTests||this.setState({testKey:Object.keys(this.props.previousTests)[0]})},t.prototype.render=function(){var e=this;return c.createElement(f.default,null,c.createElement(p.Container,{elevation:"none",padding:["none","responsive","responsive"],style:{display:"block"}},!!this.state.testKey&&c.createElement(p.Flex,null,c.createElement(p.Box,{sm:"12"},c.createElement(p.Container,{elevation:"none",padding:["responsive","none"]},c.createElement(p.Flex,{align:"center",wrap:"nowrap"},c.createElement(p.Box,null,c.createElement(p.IconButton,{icon:"arrow-back",shape:"circle",onClick:function(t){return e.showResult(!1)}}),c.createElement(p.Spacer,{size:"large"})),c.createElement(p.Box,null,c.createElement(p.Title,{level:"4",density:"compact",color:"darkest"},this.props.previousTests[this.state.testKey].result.human_readable_timestamp,1===this.props.previousTests[this.state.testKey].previous_test&&d.translate(" - Results from previous host")),c.createElement(p.List,{size:"small",orientation:this.props.isPhone?"vertical":"horizontal"},c.createElement(p.ListItem,{icon:"dot"},d.translate("Device:"),c.createElement(p.Label,{type:"link",size:"medium",color:"dark"},this.props.previousTests[this.state.testKey].result.device)))))),c.createElement(p.Grid,{gap:"responsive"},c.createElement(p.Grid,{gap:"responsive",sm:"3"},c.createElement(p.Grid,{border:"small",padding:"responsive",justify:"center",justifyItems:"center",gap:"xx-small"},c.createElement("div",{dangerouslySetInnerHTML:this.html(100*this.props.previousTests[this.state.testKey].result.scores.score.score),className:"lh-gauge-arc--transparent "+this.props.previousTests[this.state.testKey].result.scores.score.class_name}),c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},c.createElement(p.Spacer,{size:"medium"}),c.createElement("span",null,d.translate("Google Score"),c.createElement(p.IconButton,{size:"small",shape:"circle",icon:"information",tooltip:this.props.previousTests[this.state.testKey].result.scores.descriptions.score}))),c.createElement(p.List,{size:"small",orientation:"horizontal"},c.createElement(p.ListItem,{color:"error"},"0-49"),c.createElement(p.ListItem,{color:"warning"},"50-89"),c.createElement(p.ListItem,{color:"success"},"90-100"))),c.createElement(p.Grid,{border:"small",padding:"responsive",justify:"center",justifyItems:"center",gap:"xx-small"},c.createElement("div",{dangerouslySetInnerHTML:this.html((this.props.previousTests[this.state.testKey].result.scores.fcp.score/1e3).toFixed(1)+"s"),className:"lh-gauge-arc--transparent "+this.props.previousTests[this.state.testKey].result.scores.fcp.class_name}),c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},c.createElement(p.Spacer,{size:"medium"}),c.createElement("span",null,d.translate("Page Load Time"),c.createElement(p.IconButton,{size:"small",shape:"square",icon:"information",tooltip:this.props.previousTests[this.state.testKey].result.scores.descriptions.fcp}))),c.createElement(p.List,{size:"small",orientation:"horizontal"},c.createElement(p.ListItem,{color:"error"},d.translate("Over 4s")),c.createElement(p.ListItem,{color:"warning"},d.translate("2s-4s")),c.createElement(p.ListItem,{color:"success"},d.translate("0-2s")))),c.createElement(p.Grid,{border:"small",padding:"responsive",justify:"center",justifyItems:"center",gap:"xx-small"},c.createElement("div",{dangerouslySetInnerHTML:this.html(this.props.previousTests[this.state.testKey].result.scores.ttfb.score+"ms"),className:"lh-gauge-arc--transparent "+this.props.previousTests[this.state.testKey].result.scores.ttfb.class_name}),c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},c.createElement(p.Spacer,{size:"medium"}),c.createElement("span",null,d.translate("Time to First Byte"),c.createElement(p.IconButton,{size:"small",shape:"circle",icon:"information",tooltip:this.props.previousTests[this.state.testKey].result.scores.descriptions.ttfb}))),c.createElement(p.List,{size:"small",orientation:"horizontal"},c.createElement(p.ListItem,{color:"error"},"600ms+"),c.createElement(p.ListItem,{color:"warning"},"100ms-600ms"),c.createElement(p.ListItem,{color:"success"},">100ms")))),!u.isEmpty(this.props.previousTests[this.state.testKey].result.data["load-opportunities"])&&0==this.props.isAnalysing&&c.createElement(c.Fragment,null,c.createElement(p.Box,{sm:"12"},c.createElement(p.Title,{level:"5",density:"cozy",color:"darkest"},this.props.previousTests[this.state.testKey].result.data["load-opportunities"].info.title),!u.isEmpty(this.props.previousTests[this.state.testKey].result.data["load-opportunities"].data)&&Object.keys(this.props.previousTests[this.state.testKey].result.data["load-opportunities"].data).map((function(t,n){return c.createElement(c.Fragment,{key:t},c.createElement(p.Title,{level:"5",density:"cozy",color:"darkest",transform:"capitalize"},t.replace("_"," ")),c.createElement(m.AnalysysTable,{data:e.props.previousTests[e.state.testKey].result.data["load-opportunities"].data[t]}))})))),this.renderRecommendedOptimizations(this.props.previousTests[this.state.testKey].result.optimizations))))),c.createElement("div",{style:{display:"block"}},!this.state.testKey&&c.createElement(c.Fragment,null,c.createElement(p.Container,{elevation:"none",padding:["medium","responsive"]},c.createElement(p.Flex,{direction:"row",align:"center"},c.createElement(p.Box,{sm:"10"},c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},d.translate("Run Your Test")),c.createElement(p.Text,null,d.translate("Test how optimized your website is. Our performance check is powered by Google PageSpeed."))))),c.createElement(p.Flex,{padding:["none","responsive","responsive"]},c.createElement(p.Box,{sm:"12"},c.createElement(p.Flex,{background:"light",direction:"row",align:"flex-end",gutter:"large",padding:"responsive"},c.createElement(p.Box,{sm:"2"},c.createElement(p.Dropdown,{options:this.getDevices(),optionValue:"type",optionLabel:"title",selectedValue:this.props.device,onChange:function(t){return e.props.analysisChangeDevice(t)},label:d.translate("Device Type")})),c.createElement(p.Box,{sm:"8"},c.createElement(p.Input,{type:"text",size:"medium",label:d.translate("URL"),value:this.state.currentUrl,onChange:function(t){return e.updateCurrentUrl(t)},prefix:window.optimizerData.home_url,onKeyPress:this.handleKeyPressExcludeList})),c.createElement(p.Box,{sm:"2"},c.createElement(p.Button,{color:"primary",size:"large",className:"button--fluid",onClick:function(){return e.runAnalysis()}},d.translate("Analyze"))))))),!u.isEmpty(this.props.previousTests)&&!this.state.testKey&&c.createElement(c.Fragment,null,c.createElement(p.Flex,{className:"divider"}),c.createElement(p.Container,{elevation:"none",padding:["medium","responsive"]},c.createElement(p.Flex,{direction:"row",align:"center"},c.createElement(p.Box,{sm:"10"},c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},d.translate("Your Test Results")),c.createElement(p.Text,null,d.translate("This is your history of speed test results for the past 6 months."))))),c.createElement(p.Container,{elevation:"none",padding:["none","responsive","responsive"]},c.createElement(p.Flex,{border:"small"},c.createElement(p.Box,{sm:"12"},Object.keys(this.props.previousTests).map((function(t){return c.createElement(c.Fragment,{key:t},c.createElement(p.Flex,{align:"center",justify:"space-between",wrap:"nowrap",padding:"medium",className:"sg-action-list--clickable",onClick:function(n){return e.showResult(t)}},c.createElement(p.Flex,{align:"center",wrap:"nowrap"},c.createElement("div",{dangerouslySetInnerHTML:e.html(100*e.props.previousTests[t].result.scores.score.score),className:e.props.previousTests[t].result.scores.score.class_name}),c.createElement(p.Spacer,{size:"medium"}),c.createElement(p.Box,null,c.createElement(p.Grid,{gap:"xx-small"},c.createElement(p.Title,{level:"5",density:"none",color:"darkest"},e.props.previousTests[t].result.human_readable_timestamp,1===e.props.previousTests[t].previous_test&&d.translate(" - Results from previous host")),c.createElement(p.List,{size:"small",orientation:e.props.isPhone?"vertical":"horizontal"},c.createElement(p.ListItem,{icon:"dot"},d.translate("Device:"),c.createElement(p.Label,{type:"link",size:"medium",color:"dark"},e.props.previousTests[t].result.device)),c.createElement(p.ListItem,{icon:"dot"},d.translate("Page Load:"),c.createElement(p.Label,{type:"link",size:"medium",color:e.props.previousTests[t].result.scores.fcp.class_name_table},(e.props.previousTests[t].result.scores.fcp.score/1e3).toFixed(1)," s")),c.createElement(p.ListItem,{icon:"dot"},d.translate("TTFB:"),c.createElement(p.Label,{type:"link",size:"medium",color:e.props.previousTests[t].result.scores.ttfb.class_name_table},e.props.previousTests[t].result.scores.ttfb.score," ms")))))),c.createElement(p.Spacer,{size:"medium"}),c.createElement(p.Icon,{size:"16",color:"dark",name:"arrow-right"})),c.createElement(p.Flex,{className:"divider"}))}))))))),!u.isEmpty(this.props.report)&&0==this.props.isAnalysing&&Object.keys(this.props.report.data).map((function(t){return c.createElement(c.Fragment,{key:t},c.createElement(p.Flex,{className:"divider"}),c.createElement(p.Flex,{gutter:"large",direction:"row",align:"center"},c.createElement(p.Box,{sm:"12"},c.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},e.props.report.data[t].info.title),"opportunities"==e.props.report.data[t].info.id&&c.createElement(p.Flex,{gutter:"xx-small"},c.createElement(p.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 c.createElement(p.Text,null,e," ",c.createElement(g.default,{tooltip:t.description,tooltipSize:"small"}))}},{header:"Action",accessor:"action",style:{fontWeight:"bold"},render:function(e,t){return c.createElement(p.Text,null,p.textToHTML(e,["a","strong"],["href"]))}}]})))),"opportunities"!==e.props.report.data[t].info.id&&e.renderSuccessfullyCompleted(e.props.report.data[t].data))})),!!this.props.isAnalysing&&c.createElement(p.Loader,{style:{position:"absolute"},className:"loader-analysis"},d.translate("Please Wait, We Are Performing a Google PageSpeed Test on Your Page")))},t}(c.Component),b=function(e){return{report:e.Report.report,isAnalysing:e.Report.isAnalysing,device:e.Report.device,isPhone:e.Environment.isPhone,options:e.Options,previousTests:e.Options.previous_tests}},w=function(e){return{runAnalysis:function(t,n){return e(v.runAnalysis(t,n))},analysisChangeDevice:function(t,n){return e(v.analysisChangeDevice(t))},enableOption:function(t,n,r){return e(v.enableOption(t,n,r))}}};t.default=l.connect(b,w)(y),h=n(0).default,_=n(0).leaveModule,h&&(h.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(f,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(g,"info_icon_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(y,"Analytics","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.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.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(9),l=n(67),u=function(e){var t=e.tooltip,n=e.size,r=void 0===n?"11":n,o=e.tooltipSize,s=void 0===o?"medium":o,i=e.color,u=void 0===i?"light":i;return a.createElement(c.Icon,{color:u,tabIndex:0,name:"information",size:r,tooltip:l.textToHTML(t),tooltipSize:s,className:"ua-margin-horizontal-xx-small ua-v-align-middle"})};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/info-icon/index.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/info-icon/index.tsx"),s.register(u,"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){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1214);t.AnalysysTable=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(9),d=function(e){function t(t){var n=e.call(this,t)||this;return n.createTableDataHeadings=function(e){var t=[];return Object.keys(e).map((function(n){t.push({resources:e[n].title,id:e[n].id,time:(e[n].details.overallSavingsMs/1e3).toFixed(2)+"s"})})),t},n.createTableDataAdditionalInfo=function(e,t){var n=[];return Object.keys(e).map((function(r){e[r].id===t&&Object.keys(e[r].details.items).map((function(t){var o;o=e[r].details.items[t].wastedBytes?(e[r].details.items[t].wastedBytes/1024).toFixed(2)+"KiB":e[r].details.items[t].wastedMs+" ms",n.push({url:e[r].details.items[t].url,size:(e[r].details.items[t].totalBytes/1024).toFixed(2)+" KiB",saving:o})}))})),n},n.getColumns=function(e){return"uses-rel-preload"==e?[{header:"URL Address",accessor:"url",mSize:"80%"},{header:"Potential Saving",accessor:"saving"}]:[{header:"URL Address",accessor:"url",mSize:"60%"},{header:"Transfer Size",accessor:"size"},{header:"Potential Saving",accessor:"saving"}]},n.isSelectedRowInComponentState=function(e){return Boolean(n.state.expandedRows.find((function(t){return n.areObjectsEqual(t,e)})))},n.handleExpandToggle=function(e){if(n.isSelectedRowInComponentState(e))n.setState({expandedRows:n.state.expandedRows.filter((function(t){return!n.areObjectsEqual(t,e)}))});else{var t=[].concat(n.state.expandedRows);n.setState({expandedRows:t.concat(e)})}},n.render=function(){var e=n.state.expandedRows;return l.createElement(u.Table,{border:"small",mobileLayout:"card-flat",columns:[{header:"Optimize Resources",accessor:"resources"},{header:"Potential Saving",accessor:"time",style:{textAlign:n.props.isPhone?"left":"right"}}],data:n.createTableDataHeadings(n.props.data),expandedRows:e,onExpandToggle:n.handleExpandToggle,expandableTemplate:function(e){return l.createElement(u.Grid,{gap:"small",padding:n.props.isPhone?"none":"responsive"},l.createElement(u.Table,{mobileLayout:"card-flat",border:"small",cellHeight:"small",density:"small",columns:n.getColumns(e.id),data:n.createTableDataAdditionalInfo(n.props.data,e.id)}))}})},n.state={expandedRows:[]},n}return s(t,e),t.prototype.getDataByRow=function(e){return this.props.data[e.name]},t.prototype.areObjectsEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t}(l.Component);t.default=d,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/analysys-table/analysys-table.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/analysys-table/analysys-table.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/analysys-table/analysys-table.tsx"),a.register(d,"AnalysysTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/analysys-table/analysys-table.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1216);"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: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n height: 60px;\n line-height: 0;\n position: absolute;\n text-align: center;\n top: 0;\n width: 60px;\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: 4px;\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: 60px;\n line-height: 24px;\n position: relative;\n text-size-adjust: 100%;\n width: 60px;\n word-break: break-word;\n -webkit-font-smoothing: antialiased; }\n\n.lh-gauge__wrapper {\n font-size: 16px;\n height: 60px;\n line-height: 24px;\n position: relative;\n width: 60px;\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.lh-gauge-arc--transparent .lh-gauge__percentage {\n font-size: 32px;\n font-weight: bold; }\n\n.lh-gauge-arc--transparent .lh-gauge-arc {\n color: transparent !important;\n stroke: transparent !important; }\n\n.sg-tooltip {\n z-index: 9999; }\n\n.lh-gauge__percentage--small, .lh-gauge__wrapper--small, .lh-gauge__svg-wrapper--small {\n height: 48px;\n width: 48px;\n font-size: 16px; }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=a(n(62)),g=n(9),m=n(16),h=a(n(221)),_=n(100),v=a(n(496)),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):1==n.props.options.cloudflare_optimization_status?(n.props.deauthenticate(!0),n.props.disableOption(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 s(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=p.translate("Cloudflare API Key get it from {{link}}here{{/link}}",{components:{link:u.createElement(g.Link,{onClick:function(e){e.preventDefault(),window.open("https://dash.cloudflare.com/profile/api-tokens")},style:{textDecoration:"underline"}})}});return u.createElement(f.default,null,u.createElement(g.Flex,{gutter:"xx-small",direction:"column",style:{position:"relative"}},!!this.props.isOptimizing&&u.createElement(g.Loader,{style:{position:"absolute"},className:"loader-cloudflare-optimization"},p.translate("Cloudflare optimization in progress")),!!this.props.isDeauthenticating&&u.createElement(g.Loader,{style:{position:"absolute"},className:"loader-cloudflare-optimization"},p.translate("Cloudflare deauthentication in progress")),u.createElement(h.default,{title:p.translate("Cloudflare Full Page Caching"),checked:this.props.options.cloudflare_optimization,name:"cloudflare_optimization",onChange:this.changeOption},p.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&&u.createElement(g.Flex,{gutter:"large"},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(g.Flex,{gutter:"large",direction:"row",align:"center"},1==this.props.options.cloudflare_optimization_status&&u.createElement(g.Box,{sm:"12"},u.createElement(g.Notice,{type:"success",background:"white",contentSize:"expanded",shadow:!0},u.createElement(g.Text,{align:"left"},p.translate("You have successfully authenticated to your Cloudflare account. If you want to stop using this service, please {{link}}Deauthenticate{{/link}} first.",{components:{link:u.createElement(g.Link,{onClick:function(t){return e.props.deauthenticate(!1)},style:{textDecoration:"underline"}})}})))),0==this.props.options.cloudflare_optimization_status&&u.createElement(u.Fragment,null,u.createElement(g.Box,{sm:"5"},u.createElement(g.Input,{type:"text",label:p.translate("Email used with Cloudflare"),size:"medium",value:this.state.cloudflare_email,name:"cloudflare_email",state:this.state.emailValidationError?"error":void 0,onChange:function(t){return e.updateState(t)},onBlur:function(t){return e.updateEmail(t)},showValidation:!!this.state.emailValidationError,validationMessage:!!this.state.emailValidationError&&p.translate("Please provide valid email address")})),u.createElement(g.Box,{sm:"5"},u.createElement(g.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":void 0,showValidation:!!this.state.keyValidationError,validationMessage:!!this.state.keyValidationError&&p.translate("Please provide API key")})),u.createElement(g.Box,{sm:"2"},u.createElement(g.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:function(t){return e.validate()}},p.translate("Authenticate"))))),1==this.props.options.cloudflare_optimization_status&&u.createElement(u.Fragment,null,u.createElement(g.Flex,{className:"divider"}),u.createElement(g.Flex,{gutter:"large",direction:"row",align:"center",style:{marginTop:0}},u.createElement(g.Box,{sm:"10"},u.createElement(g.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Purge Cloudflare Cache")),u.createElement(g.Text,null,p.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:u.createElement("strong",null)}}))),u.createElement(g.Box,{sm:"2"},u.createElement(g.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.props.purgeCloudflareCache},this.props.cloudflareCachePurged?p.translate("Purge Cache"):p.translate("Purging ..."))))),u.createElement(v.default,{testUrl:this.props.testUrl,hasCloudflare:0,cloudflareTest:1,cacheDescription:p.translate("Check if the CloudFlare Cache is working on a certain URL.")}))))),!!this.state.showCloudflareDialog&&u.createElement(_.CloudflareDialog,{toogleClose:this.toogleCloudflareDialog,toogleConfirm:this.authenticate}))},t}(u.Component),b=function(e){return{options:e.Options,isOptimizing:e.Cloudflare.isOptimizing,isDeauthenticating:e.Cloudflare.isDeauthenticating,cloudflareCachePurged:e.Cloudflare.cloudflareCachePurged}},w=function(e){return{enableOption:function(t,n){return e(m.enableOption(t,n,!1))},disableOption:function(t,n){return e(m.disableOption(t,n,!1))},authenticate:function(t,n){return e(m.authenticate(t,n))},deauthenticate:function(t){return e(m.deauthenticate(t))},purgeCloudflareCache:function(){return e(m.purgeCloudflareCache())},testUrl:function(t,n){return e(m.testUrl(t,n))}}};t.default=d.connect(b,w)(y),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(f,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(h,"row_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(v,"cache_tester_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(y,"Cloudflare","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),l(e))}).call(this,n(1)(e))}]);
324
  * @license See CREDITS.md
325
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
326
  */
327
+ function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,s=isFinite(+t)?Math.abs(t):0,i=void 0===r?",":r,a=void 0===n?".":n,c="";return(c=(s?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,s):""+Math.round(o)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(c[1]||"").length<s&&(c[1]=c[1]||"",c[1]+=new Array(s-c[1].length+1).join("0")),c.join(a)}},function(e,t,n){var r=n(2),o=n(412),s=n(45);e.exports=function(e){var t={moment:e.moment,numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var i=n.displayName||n.name||"",a=s({displayName:"Localized("+i+")",componentDidMount:function(){this.boundForceUpdate=this.forceUpdate.bind(this),e.stateObserver.addListener("change",this.boundForceUpdate)},componentWillUnmount:function(){this.boundForceUpdate&&e.stateObserver.removeListener("change",this.boundForceUpdate)},render:function(){var s=o({locale:e.getLocaleSlug()},this.props,t);return r.createElement(n,s)}});return a._composedComponent=n,a}}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n,s){s.debug;var i=o({},n);e&&"object"===(void 0===e?"undefined":r(e))&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(i[r]=e[r])}));0;return i}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.stateReconciler=void 0===e.stateReconciler?s.default:e.stateReconciler,(0,o.default)(e,(0,r.combineReducers)(t))};var r=n(93),o=i(n(189)),s=i(n(761));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(190),o=Object.prototype,s=o.hasOwnProperty,i=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[a]=n:delete e[a]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(419)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,s,i=n(757),a=(o=i)&&o.__esModule?o:{default:o};s="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var c=(0,a.default)(s);t.default=c}).call(this,n(116),n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var i=t[o];0,"function"==typeof e[i]&&(n[i]=e[i])}var a=Object.keys(n);0;var c=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:r.ActionTypes.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+r.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){c=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(c)throw c;for(var r=!1,o={},i=0;i<a.length;i++){var l=a[i],u=n[l],d=e[l],p=u(d,t);if(void 0===p){var f=s(l,t);throw new Error(f)}o[l]=p,r=r||p!==d}return r?o:e}};var r=n(417);o(n(131)),o(n(420));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}t.__esModule=!0,t.default=function(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},s=0;s<n.length;s++){var i=n[s],a=e[i];"function"==typeof a&&(o[i]=r(a,t))}return o}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,o,s){var a,c=e(n,o,s),l=c.dispatch,u={getState:c.getState,dispatch:function(e){return l(e)}};return a=t.map((function(e){return e(u)})),l=i.default.apply(void 0,a)(c.dispatch),r({},c,{dispatch:l})}}};var o,s=n(421),i=(o=s)&&o.__esModule?o:{default:o}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n,s){s.debug;var i=o({},n);e&&"object"===(void 0===e?"undefined":r(e))&&Object.keys(e).forEach((function(s){var a;"_persist"!==s&&(t[s]===n[s]&&(null===(a=n[s])||Array.isArray(a)||"object"!==(void 0===a?"undefined":r(a))?i[s]=e[s]:i[s]=o({},i[s],e[s])))}));0;return i}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n){0;var o=n||!1,i=(0,s.createStore)(u,l,t?t.enhancer:void 0),c=function(e){i.dispatch({type:a.REGISTER,key:e})},d=function(t,n,r){var s={type:a.REHYDRATE,payload:n,err:r,key:t};e.dispatch(s),i.dispatch(s),o&&p.getState().bootstrapped&&(o(),o=!1)},p=r({},i,{purge:function(){var t=[];return e.dispatch({type:a.PURGE,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:a.FLUSH,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:a.PAUSE})},persist:function(){e.dispatch({type:a.PERSIST,register:c,rehydrate:d})}});return p.persist(),p};var o,s=n(93),i=n(189),a=((o=i)&&o.__esModule,n(81));function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l={registry:[],bootstrapped:!1},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case a.REGISTER:return r({},e,{registry:[].concat(c(e.registry),[t.key])});case a.REHYDRATE:var n=e.registry.indexOf(t.key),o=[].concat(c(e.registry));return o.splice(n,1),r({},e,{registry:o,bootstrapped:0===o.length});default:return e}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){(t||{}).debug;return function(t,n){if(!t)return Promise.resolve(void 0);var o=t._persist&&void 0!==t._persist.version?t._persist.version:r.DEFAULT_VERSION;if(o===n)return Promise.resolve(t);if(o>n)return Promise.resolve(t);var s=Object.keys(e).map((function(e){return parseInt(e)})).filter((function(e){return n>=e&&e>o})).sort((function(e,t){return e-t}));try{var i=s.reduce((function(t,n){return e[n](t)}),t);return Promise.resolve(i)}catch(e){return Promise.reject(e)}}};var r=n(81)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.whitelist||null,o=n.blacklist||null;function s(e){return!(!r||-1!==r.indexOf(e))||!(!o||-1===o.indexOf(e))}return{in:function(t,n,r){return!s(n)&&e?e(t,n,r):t},out:function(e,n,r){return!s(n)&&t?t(e,n,r):e}}}},function(e,t,n){var r=n(766);"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,"@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Roboto+Condensed:300,400,700|Roboto:300,300i,400,400i,500,500i,700,700i&subset=latin-ext);",""]),t.push([e.i,':root {\n --padding-responsive: 30px; }\n\n@media (max-width: 1500px) {\n :root {\n --padding-responsive: 20px; } }\n\n:root,\n.sg-theme-light {\n --royal-base: #7d5aa6;\n --royal-dark: #532f82;\n --royal-light: #d1bfda;\n --royal-lighter: #ebe0ef;\n --ocean-base: #22b8d1;\n --ocean-dark: #226d7a;\n --ocean-light: #b0e0e9;\n --ocean-lighter: #e4f5fa;\n --mint-base: #2bab7f;\n --mint-dark: #1e6346;\n --mint-light: #add9c0;\n --mint-lighter: #e1f1e7;\n --grassy-base: #96ca51;\n --grassy-dark: #577635;\n --grassy-light: #d8e5b5;\n --grassy-lighter: #edf4db;\n --salmon-base: #f47b44;\n --salmon-dark: #b35227;\n --salmon-light: #f3cfbb;\n --salmon-lighter: #f8eae0;\n --sunset-base: #ee9629;\n --sunset-dark: #8e5d25;\n --sunset-light: #f0c99a;\n --sunset-lighter: #f6e8d5;\n --mango-base: #e5b22a;\n --mango-dark: #96762e;\n --mango-light: #efe0a0;\n --mango-lighter: #f7f3da;\n --bronze-base: #cdaa72;\n --bronze-dark: #8c7653;\n --bronze-light: #ecdcc6;\n --bronze-lighter: #e2dbd5;\n --color-primary: var(--salmon-base);\n --color-primary-hovered: var(--salmon-dark);\n --color-primary-active: var(--salmon-light);\n --color-secondary: var(--ocean-base);\n --color-secondary-hovered: var(--ocean-dark);\n --color-secondary-active: var(--ocean-light);\n --color-positive: var(--mint-base);\n --color-positive-hovered: var(--mint-dark);\n --color-positive-active: var(--mint-light);\n --color-error: #f54545;\n --color-success: #6acb4c;\n --color-warning: var(--sunset-base);\n --color-instruction: var(--ocean-base);\n --color-info: var(--royal-base);\n --color-hint: #c2c2c2;\n --color-presentational: #ccaf83; }\n\n:root,\n.sg-theme-light {\n --background-main: #f2f2f2;\n --background-component-primary: #fff;\n --background-component-secondary: #f8f8f8;\n --background-disabled: #ddd;\n --background-slider: #ddd;\n --background-overlay: rgba(54, 54, 54, 0.8);\n --background-highlight: #f8f8f8;\n --backround-employee: #f2efea;\n --backround-client: #fbfaf8;\n --backround-popover-image-hover: rgba(0, 0, 0, 0.3); }\n\n:root,\n.sg-theme-light {\n --typography-white: #fff;\n --typography-lightest: #ddd;\n --typography-lighter: #c2c2c2;\n --typography-light: #a4a4a4;\n --typography-dark: #666;\n --typography-darker: #444;\n --typography-darkest: #363636;\n --typography-field-label-size: 13px;\n --typography-table-label-size: 13px; }\n\n:root {\n --font-family-default: "Open Sans", Arial, Helvetica, sans-serif;\n --font-family-component: Roboto; }\n\n:root,\n.sg-theme-light {\n --color-scrollbar: #f2f2f2;\n --color-scrollbar-thumb: #ddd;\n --color-scrollbar-thumb-hover: #c2c2c2;\n --color-button-base: #ececec;\n --color-button-base-focus: #ddd;\n --color-button-base-hover: #ececec;\n --color-button-base-active: #ececec;\n --color-button-white: #fff;\n --color-icon-button: #858484;\n --color-editor-icon: #ddd;\n --color-disabled: #ddd;\n --border-color-outer: #ddd;\n --border-color-inner: #f2f2f2;\n --border-color-focus: #ddd;\n --border-color-default: #666;\n /* Components */\n --component-background-hover: #f2f2f2;\n --component-color-hover: currentColor;\n --avatar-color: #61554c;\n --avatar-background: #d7cebf;\n --context-menu-background: var(--background-component-primary);\n --chart-color-first: var(--ocean-base);\n --chart-color-second: var(--salmon-base);\n --chart-color-third: var(--grassy-base);\n --chart-color-fourth: var(--sunset-base);\n --chart-color-fifth: var(--mint-base);\n --chart-color-sixth: var(--royal-base);\n --chart-color-seventh: var(--ocean-light);\n --chart-color-eighth: var(--sunset-light);\n --icon-color-royal: var(--royal-dark);\n --icon-color-royal-light: var(--royal-light);\n --icon-color-royal-lighter: var(--royal-lighter);\n --icon-color-ocean: var(--ocean-dark);\n --icon-color-ocean-light: var(--ocean-light);\n --icon-color-ocean-lighter: var(--ocean-lighter);\n --icon-color-mint: var(--mint-dark);\n --icon-color-mint-light: var(--mint-light);\n --icon-color-mint-lighter: var(--mint-lighter);\n --icon-color-grassy: var(--grassy-dark);\n --icon-color-grassy-light: var(--grassy-light);\n --icon-color-grassy-lighter: var(--grassy-lighter);\n --icon-color-salmon: var(--salmon-dark);\n --icon-color-salmon-light: var(--salmon-light);\n --icon-color-salmon-lighter: var(--salmon-lighter);\n --icon-color-sunset: var(--sunset-dark);\n --icon-color-sunset-light: var(--sunset-light);\n --icon-color-sunset-lighter: var(--sunset-lighter);\n --icon-color-mango: var(--mango-dark);\n --icon-color-mango-light: var(--mango-light);\n --icon-color-mango-lighter: var(--mango-lighter);\n --icon-color-bronze: var(--bronze-dark);\n --icon-color-bronze-light: var(--bronze-light);\n --icon-color-bronze-lighter: var(--bronze-lighter);\n --icon-logo-background-light: #fff;\n --notice-border-color: #f19b7a;\n --notice-background-attention: #fef5ec;\n --loader-background: rgba(255, 255, 255, 0.75);\n --loader-background-dark: rgba(71, 67, 64, 0.8);\n --drawer-background: #474340;\n --drawer-icon-color: #fff;\n --drawer-icon-background-hover: #474340;\n --header-background: #343230;\n --footer-background: #343230;\n --navigation-background: #474340;\n --navigation-background-hover: #343230;\n --navigation-list-color: #343230;\n --navigation-list-color-selected: #343230;\n --navigation-list-background: #d7cebf;\n --navigation-list-background-opened: #343230;\n --navigation-list-background-hovered: #343230;\n --navigation-list-background-selected: #d7cebf;\n --navigation-icon-color: #c1aa95;\n --navigation-icon-color-selected: #c1aa95;\n --navigation-separator-background: #343230;\n --navigation-button-color: #c1aa95;\n --header-navigation-color: #e6e3e3;\n --header-navigation-color-hover: #1d1d1d;\n --header-navigation-color-selected: #1d1d1d;\n --header-navigation-background: transparent;\n --header-navigation-background-hover: #dfdccb;\n --header-navigation-background-selected: #f3efe7;\n --header-navigation-active-border-color: #c8a36d;\n --header-second-navigation-background-selected: #f3efe7;\n --header-support-navigation-background-selected: #e9e7db;\n --section-background-white: var(--background-component-primary);\n --section-background-yellow: var(--header-second-navigation-background-selected);\n --section-background-light: var(--background-component-secondary);\n --section-background-dark: var(--header-background);\n --tooltip-color: #fff;\n --tooltip-background-light: #fff;\n --tooltip-background-dark: rgba(54, 54, 54, 0.9); }\n\n:root,\n.sg-theme-light {\n --first-level-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 0 rgba(0, 0, 0, 0.05);\n --second-level-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06), 0 4px 12px 0 rgba(0, 0, 0, 0.1);\n --third-level-box-shadow: 0 17px 40px 0 rgba(0, 0, 0, 0.17), 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n --fourth-level-box-shadow: 0 25px 45px 0 rgba(0, 0, 0, 0.2), 0 16px 24px 0 rgba(0, 0, 0, 0.22);\n --fifth-level-box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.22), 0 27px 22px 0 rgba(0, 0, 0, 0.2);\n --focus-shadow: inset 1px 1px 0 #24b8d2, inset -1px -1px 0 #24b8d2; }\n\n.sg-theme-dark {\n --royal-base: #b37ef1;\n --royal-dark: #ab83c4;\n --royal-light: #d1bfda;\n --royal-lighter: #ebe0ef;\n --ocean-base: #7cd4e4;\n --ocean-dark: #3aa6ba;\n --ocean-light: #70d7e2;\n --ocean-lighter: #e4f5fa;\n --mint-base: #5ccfa7;\n --mint-dark: #4bb892;\n --mint-light: #8de0c0;\n --mint-lighter: #e1f1e7;\n --grassy-base: #a6d367;\n --grassy-dark: #94ae59;\n --grassy-light: #c2ed8e;\n --grassy-lighter: #edf4db;\n --salmon-base: #f68f61;\n --salmon-dark: #da764a;\n --salmon-light: #f1a98c;\n --salmon-lighter: #f8eae0;\n --sunset-base: #efae5b;\n --sunset-dark: #cb934a;\n --sunset-light: #fccf74;\n --sunset-lighter: #f6e8d5;\n --mango-base: #e9bd4a;\n --mango-dark: #a68a4d;\n --mango-light: #f1e5ae;\n --mango-lighter: #f7f3da;\n --bronze-base: #d4b787;\n --bronze-dark: #9d8a6d;\n --bronze-light: #efe1ce;\n --bronze-lighter: #e2dbd5;\n --color-primary: var(--salmon-base);\n --color-primary-hovered: var(--salmon-dark);\n --color-primary-active: var(--salmon-light);\n --color-secondary: var(--ocean-base);\n --color-secondary-hovered: var(--ocean-dark);\n --color-secondary-active: var(--ocean-light);\n --color-positive: var(--mint-base);\n --color-positive-hovered: var(--mint-dark);\n --color-positive-active: var(--mint-light);\n --color-error: #f57c7c;\n --color-success: #80d367;\n --color-warning: var(--sunset-base);\n --color-instruction: var(--ocean-base);\n --color-info: var(--royal-base);\n --color-hint: #c2c2c2;\n --color-presentational: #ccaf83; }\n\n.sg-theme-dark {\n --background-main: #121212;\n --background-component-primary: #363636;\n --background-component-secondary: #444;\n --background-disabled: #666;\n --background-slider: #858484;\n --background-overlay: rgba(102, 102, 102, 0.95);\n --background-highlight: #444;\n --backround-employee: #666;\n --backround-client: #444;\n --backround-popover-image-hover: rgba(0, 0, 0, 0.3); }\n\n.sg-theme-dark {\n --typography-white: #fff;\n --typography-lightest: #858484;\n --typography-lighter: #c2c2c2;\n --typography-light: #c2c2c2;\n --typography-dark: #ececec;\n --typography-darker: #f2f2f2;\n --typography-darkest: #fff; }\n\n.sg-theme-dark {\n --color-scrollbar: #f2f2f2;\n --color-scrollbar-thumb: #ddd;\n --color-scrollbar-thumb-hover: #c2c2c2;\n --color-button-base: #666;\n --color-button-base-focus: #858484;\n --color-button-base-hover: #666;\n --color-button-base-active: #666;\n --color-button-white: #363636;\n --color-icon-button: #ddd;\n --color-editor-icon: #ddd;\n --color-disabled: #888;\n --border-color-outer: #858484;\n --border-color-inner: #444;\n --border-color-focus: #fff;\n --border-color-default: #858484;\n /* Components */\n --component-background-hover: #444;\n --component-color-hover: currentColor;\n --avatar-color: #444;\n --avatar-background: #ddd;\n --context-menu-background: #666;\n --chart-color-first: var(--ocean-base);\n --chart-color-second: var(--salmon-base);\n --chart-color-third: var(--grassy-base);\n --chart-color-fourth: var(--sunset-base);\n --chart-color-fifth: var(--mint-base);\n --chart-color-sixth: var(--royal-base);\n --chart-color-seventh: var(--ocean-light);\n --chart-color-eighth: var(--sunset-light);\n --icon-color-royal: var(--royal-dark);\n --icon-color-royal-light: transparent;\n --icon-color-royal-lighter: transparent;\n --icon-color-ocean: var(--ocean-dark);\n --icon-color-ocean-light: transparent;\n --icon-color-ocean-lighter: transparent;\n --icon-color-mint: var(--mint-dark);\n --icon-color-mint-light: transparent;\n --icon-color-mint-lighter: transparent;\n --icon-color-grassy: var(--grassy-dark);\n --icon-color-grassy-light: transparent;\n --icon-color-grassy-lighter: transparent;\n --icon-color-salmon: var(--salmon-dark);\n --icon-color-salmon-light: transparent;\n --icon-color-salmon-lighter: transparent;\n --icon-color-sunset: var(--sunset-dark);\n --icon-color-sunset-light: transparent;\n --icon-color-sunset-lighter: transparent;\n --icon-color-mango: var(--mango-dark);\n --icon-color-mango-light: transparent;\n --icon-color-mango-lighter: transparent;\n --icon-color-bronze: var(--bronze-dark);\n --icon-color-bronze-light: transparent;\n --icon-color-bronze-lighter: transparent;\n --icon-logo-background-light: #fff;\n --notice-border-color: #f19b7a;\n --notice-background-attention: var(--background-component-secondary);\n --loader-background: rgba(54, 54, 54, 0.75);\n --loader-background-dark: rgba(54, 54, 54, 0.75);\n --drawer-background: #363636;\n --drawer-icon-color: #fff;\n --drawer-icon-background-hover: #858484;\n --header-background: #363636;\n --footer-background: #363636;\n --navigation-background: #363636;\n --navigation-background-hover: #363636;\n --navigation-list-color: #363636;\n --navigation-list-color-selected: #fff;\n --navigation-list-background: #444;\n --navigation-list-background-opened: #444;\n --navigation-list-background-hovered: #292929;\n --navigation-list-background-selected: #666;\n --navigation-icon-color: #ddd;\n --navigation-icon-color-selected: #ddd;\n --navigation-separator-background: #ddd;\n --navigation-button-color: #ddd;\n --header-navigation-color: #fff;\n --header-navigation-color-hover: #fff;\n --header-navigation-color-selected: #fff;\n --header-navigation-background: transparent;\n --header-navigation-background-hover: #666;\n --header-navigation-background-selected: #444;\n --header-second-navigation-background-selected: #444;\n --header-support-navigation-background-selected: #858484;\n --section-background-white: var(--background-component-secondary);\n --section-background-yellow: var(--background-component-secondary);\n --section-background-light: var(--background-component-secondary);\n --section-background-dark: var(--header-background);\n --tooltip-color: #fff;\n --tooltip-background-light: #fff;\n --tooltip-background-dark: #666; }\n\n.sg-theme-dark {\n --first-level-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 0 rgba(0, 0, 0, 0.05);\n --second-level-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06), 0 4px 12px 0 rgba(0, 0, 0, 0.1);\n --third-level-box-shadow: 0 17px 40px 0 rgba(0, 0, 0, 0.17), 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n --fourth-level-box-shadow: 0 25px 45px 0 rgba(0, 0, 0, 0.2), 0 16px 24px 0 rgba(0, 0, 0, 0.22);\n --fifth-level-box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.22), 0 27px 22px 0 rgba(0, 0, 0, 0.2);\n --focus-shadow: inset 1px 1px 0 #24b8d2, inset -1px -1px 0 #24b8d2; }\n\n.sg-theme-hcb {\n --royal-base: #d0abfd;\n --royal-dark: #7d5aa6;\n --royal-light: #d1bfda;\n --royal-lighter: #ebe0ef;\n --ocean-base: #6adae6;\n --ocean-dark: #22b8d1;\n --ocean-light: #b0e0e9;\n --ocean-lighter: #e4f5fa;\n --mint-base: #2bab7f;\n --mint-dark: #1e6346;\n --mint-light: #add9c0;\n --mint-lighter: #e1f1e7;\n --grassy-base: #96ca51;\n --grassy-dark: #577635;\n --grassy-light: #d8e5b5;\n --grassy-lighter: #edf4db;\n --salmon-base: #f47b44;\n --salmon-dark: #b35227;\n --salmon-light: #f3cfbb;\n --salmon-lighter: #f8eae0;\n --sunset-base: #ee9629;\n --sunset-dark: #8e5d25;\n --sunset-light: #f0c99a;\n --sunset-lighter: #f6e8d5;\n --mango-base: #e5b22a;\n --mango-dark: #96762e;\n --mango-light: #efe0a0;\n --mango-lighter: #f7f3da;\n --bronze-base: #cdaa72;\n --bronze-dark: #343230;\n --bronze-light: #ecdcc6;\n --bronze-lighter: #e2dbd5;\n --color-primary: #ef9a78;\n --color-primary-hovered: #f57b45;\n --color-primary-active: var(--salmon-light);\n --color-secondary: var(--ocean-base);\n --color-secondary-hovered: var(--ocean-dark);\n --color-secondary-active: var(--ocean-light);\n --color-positive: var(--mint-base);\n --color-positive-hovered: var(--mint-dark);\n --color-positive-active: var(--mint-light);\n --color-error: #f98f8f;\n --color-success: #a6e094;\n --color-warning: #f4c68b;\n --color-instruction: var(--ocean-base);\n --color-info: var(--royal-base);\n --color-hint: #c2c2c2;\n --color-presentational: #fff; }\n\n.sg-theme-hcb {\n --background-main: #000;\n --background-component-primary: #000;\n --background-component-secondary: #000;\n --background-disabled: #888;\n --background-slider: #fff;\n --background-overlay: rgba(102, 102, 102, 0.95);\n --background-highlight: #000;\n --backround-employee: #000;\n --backround-client: #000;\n --backround-popover-image-hover: rgba(0, 0, 0, 0.3); }\n\n.sg-theme-hcb {\n --typography-white: #fff;\n --typography-lightest: #fff;\n --typography-lighter: #fff;\n --typography-light: #fff;\n --typography-dark: #fff;\n --typography-darker: #fff;\n --typography-darkest: #fff; }\n\n.sg-theme-hcb {\n --color-scrollbar: #f2f2f2;\n --color-scrollbar-thumb: #ddd;\n --color-scrollbar-thumb-hover: #c2c2c2;\n --color-button-base: #666;\n --color-button-base-focus: #858484;\n --color-button-base-hover: #666;\n --color-button-base-active: #666;\n --color-button-white: #000;\n --color-icon-button: #fff;\n --color-editor-icon: #fff;\n --color-disabled: #888;\n --border-color-outer: #ececec;\n --border-color-inner: #ececec;\n --border-color-focus: #fff;\n --border-color-default: #fff;\n --high-contrast-foreground: #fff;\n --high-contrast-background: #000;\n /* Components */\n --component-background-hover: #1797ae;\n --component-color-hover: currentColor;\n --avatar-color: #000;\n --avatar-background: #fff;\n --context-menu-background: #000;\n --icon-color-royal: #ececec;\n --icon-color-royal-light: transparent;\n --icon-color-royal-lighter: transparent;\n --icon-color-ocean: #ececec;\n --icon-color-ocean-light: transparent;\n --icon-color-ocean-lighter: transparent;\n --icon-color-mint: #ececec;\n --icon-color-mint-light: transparent;\n --icon-color-mint-lighter: transparent;\n --icon-color-grassy: #ececec;\n --icon-color-grassy-light: transparent;\n --icon-color-grassy-lighter: transparent;\n --icon-color-salmon: #ececec;\n --icon-color-salmon-light: transparent;\n --icon-color-salmon-lighter: transparent;\n --icon-color-sunset: #ececec;\n --icon-color-sunset-light: transparent;\n --icon-color-sunset-lighter: transparent;\n --icon-color-mango: #ececec;\n --icon-color-mango-light: transparent;\n --icon-color-mango-lighter: transparent;\n --icon-color-bronze: #ececec;\n --icon-color-bronze-light: transparent;\n --icon-color-bronze-lighter: transparent;\n --icon-logo-background-light: #fff;\n --notice-border-color: #f19b7a;\n --notice-background-attention: #000;\n --loader-background: rgba(0, 0, 0, 0.75);\n --loader-background-dark: rgba(0, 0, 0, 0.75);\n --drawer-background: #000;\n --drawer-icon-color: #fff;\n --drawer-icon-background-hover: #858484;\n --header-background: #000;\n --footer-background: #000;\n --navigation-background: #000;\n --navigation-background-hover: #363636;\n --navigation-list-color: #363636;\n --navigation-list-color-selected: #363636;\n --navigation-list-background: #000;\n --navigation-list-background-opened: #000;\n --navigation-list-background-hovered: #444;\n --navigation-list-background-selected: #fff;\n --navigation-icon-color: #fff;\n --navigation-icon-color-selected: #000;\n --navigation-separator-background: #fff;\n --navigation-button-color: #fff;\n --header-navigation-color: #fff;\n --header-navigation-color-hover: #000;\n --header-navigation-color-selected: #000;\n --header-navigation-background: transparent;\n --header-navigation-background-hover: #fff;\n --header-navigation-background-selected: #fff;\n --header-second-navigation-background-selected: #000;\n --header-support-navigation-background-selected: #fff;\n --section-background-white: var(--background-component-primary);\n --section-background-yellow: var(--header-second-navigation-background-selected);\n --section-background-light: var(--background-component-secondary);\n --section-background-dark: var(--header-background);\n --tooltip-color: #fff;\n --tooltip-background-light: #000;\n --tooltip-background-dark: #000; }\n\n.sg-theme-hcb {\n --first-level-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 0 rgba(0, 0, 0, 0.05);\n --second-level-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06), 0 4px 12px 0 rgba(0, 0, 0, 0.1);\n --third-level-box-shadow: 0 17px 40px 0 rgba(0, 0, 0, 0.17), 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n --fourth-level-box-shadow: 0 25px 45px 0 rgba(0, 0, 0, 0.2), 0 16px 24px 0 rgba(0, 0, 0, 0.22);\n --fifth-level-box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.22), 0 27px 22px 0 rgba(0, 0, 0, 0.2);\n --focus-shadow: inset 1px 1px 0 #24b8d2, inset -1px -1px 0 #24b8d2; }\n\n.sg-theme-hcl {\n --royal-base: #4f2d61;\n --royal-dark: #362143;\n --royal-light: #674f76;\n --royal-lighter: #ebe0ef;\n --ocean-base: #166e7e;\n --ocean-dark: #0e5b68;\n --ocean-light: #347d85;\n --ocean-lighter: #e4f5fa;\n --mint-base: #26775b;\n --mint-dark: #1a674c;\n --mint-light: #347d85;\n --mint-lighter: #e1f1e7;\n --grassy-base: #5a7a2e;\n --grassy-dark: #4d6024;\n --grassy-light: #6e8549;\n --grassy-lighter: #edf4db;\n --salmon-base: #8e6025;\n --salmon-dark: #744d19;\n --salmon-light: #977737;\n --salmon-lighter: #f8eae0;\n --sunset-base: #934a29;\n --sunset-dark: #7f3819;\n --sunset-light: #8f5c48;\n --sunset-lighter: #f6e8d5;\n --mango-base: #896b19;\n --mango-dark: #5a471c;\n --mango-light: #8f8660;\n --mango-lighter: #f7f3da;\n --bronze-base: #7b6644;\n --bronze-dark: #544732;\n --bronze-light: #8e8477;\n --bronze-lighter: #e2dbd5;\n --color-primary: var(--salmon-base);\n --color-primary-hovered: var(--salmon-dark);\n --color-primary-active: var(--salmon-light);\n --color-secondary: var(--ocean-base);\n --color-secondary-hovered: var(--ocean-dark);\n --color-secondary-active: var(--ocean-light);\n --color-positive: var(--mint-base);\n --color-positive-hovered: var(--mint-dark);\n --color-positive-active: var(--mint-light);\n --color-error: #932929;\n --color-success: #407a2e;\n --color-warning: var(--sunset-base);\n --color-instruction: var(--ocean-base);\n --color-info: var(--royal-base);\n --color-hint: #c2c2c2;\n --color-presentational: #000; }\n\n.sg-theme-hcl {\n --background-main: #fff;\n --background-component-primary: #fff;\n --background-component-secondary: #fff;\n --background-disabled: #888;\n --background-slider: #000;\n --background-overlay: rgba(255, 255, 255, 0.95);\n --background-highlight: #fff;\n --backround-employee: #fff;\n --backround-client: #fff;\n --backround-popover-image-hover: rgba(0, 0, 0, 0.3); }\n\n.sg-theme-hcl {\n --typography-white: #000;\n --typography-lightest: #000;\n --typography-lighter: #000;\n --typography-light: #000;\n --typography-dark: #000;\n --typography-darker: #000;\n --typography-darkest: #000; }\n\n.sg-theme-hcl {\n --color-scrollbar: #f2f2f2;\n --color-scrollbar-thumb: #212121;\n --color-scrollbar-thumb-hover: #000;\n --color-icon-button: #000;\n --color-editor-icon: #000;\n --color-disabled: #888;\n --border-color-outer: #000;\n --border-color-inner: #000;\n --border-color-focus: #000;\n --border-color-default: #000;\n --high-contrast-foreground: #000;\n --high-contrast-background: #fff;\n /* Components */\n --component-background-hover: #1797ae;\n --component-color-hover: currentColor;\n --avatar-color: #fff;\n --avatar-background: #000;\n --context-menu-background: #fff;\n --icon-color-royal: #000;\n --icon-color-royal-light: transparent;\n --icon-color-royal-lighter: transparent;\n --icon-color-ocean: #000;\n --icon-color-ocean-light: transparent;\n --icon-color-ocean-lighter: transparent;\n --icon-color-mint: #000;\n --icon-color-mint-light: transparent;\n --icon-color-mint-lighter: transparent;\n --icon-color-grassy: #000;\n --icon-color-grassy-light: transparent;\n --icon-color-grassy-lighter: transparent;\n --icon-color-salmon: #000;\n --icon-color-salmon-light: transparent;\n --icon-color-salmon-lighter: transparent;\n --icon-color-sunset: #000;\n --icon-color-sunset-light: transparent;\n --icon-color-sunset-lighter: transparent;\n --icon-color-mango: #000;\n --icon-color-mango-light: transparent;\n --icon-color-mango-lighter: transparent;\n --icon-color-bronze: #000;\n --icon-color-bronze-light: transparent;\n --icon-color-bronze-lighter: transparent;\n --loader-background: rgba(255, 255, 255, 0.75);\n --loader-background-dark: rgba(255, 255, 255, 0.75);\n --drawer-background: #fff;\n --drawer-icon-color: #000;\n --drawer-icon-background-hover: #858484;\n --header-background: #fff;\n --footer-background: #fff;\n --navigation-background: #fff;\n --navigation-background-hover: #363636;\n --navigation-list-color: #363636;\n --navigation-list-color-selected: #fff;\n --navigation-list-background: #fff;\n --navigation-list-background-opened: #fff;\n --navigation-list-background-hovered: #ddd;\n --navigation-list-background-selected: #000;\n --navigation-icon-color: #000;\n --navigation-icon-color-selected: #fff;\n --navigation-separator-background: #000;\n --navigation-button-color: #000;\n --header-navigation-color: #000;\n --header-navigation-color-hover: #fff;\n --header-navigation-color-selected: #fff;\n --header-navigation-background: transparent;\n --header-navigation-background-hover: #000;\n --header-navigation-background-selected: #000;\n --header-second-navigation-background-selected: #fff;\n --header-support-navigation-background-selected: #000;\n --section-background-white: var(--background-component-primary);\n --section-background-yellow: var(--header-second-navigation-background-selected);\n --section-background-light: var(--background-component-secondary);\n --section-background-dark: var(--header-background);\n --tooltip-color: #000;\n --tooltip-background-light: #fff;\n --tooltip-background-dark: #fff; }\n\n.sg-theme-hcl {\n --first-level-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05), 0 1px 5px 0 rgba(0, 0, 0, 0.05);\n --second-level-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06), 0 4px 12px 0 rgba(0, 0, 0, 0.1);\n --third-level-box-shadow: 0 17px 40px 0 rgba(0, 0, 0, 0.17), 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n --fourth-level-box-shadow: 0 25px 45px 0 rgba(0, 0, 0, 0.2), 0 16px 24px 0 rgba(0, 0, 0, 0.22);\n --fifth-level-box-shadow: 0 40px 60px 0 rgba(0, 0, 0, 0.22), 0 27px 22px 0 rgba(0, 0, 0, 0.2);\n --focus-shadow: inset 1px 1px 0 #24b8d2, inset -1px -1px 0 #24b8d2; }\n\n:root {\n --z-index-drawer: 10;\n --z-index-dropdown: 20;\n --z-index-sticky: 30;\n --z-index-fixed: 40;\n --z-index-filter: 50;\n --z-index-chat: 60;\n --z-index-modalBackground: 70;\n --z-index-modal: 80;\n --z-index-loadingModal: 90;\n --z-index-contextWraper: 100;\n --z-index-chat-notification: 110;\n --z-index-notification: 120;\n --z-index-popover: 130;\n --z-index-popoverZoomIn: 140;\n --z-index-tooltip: 150; }\n\n* {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n scrollbar-face-color: var(--color-scrollbar);\n scrollbar-highlight-color: var(--color-scrollbar);\n scrollbar-shadow-color: var(--color-scrollbar);\n scrollbar-track-color: var(--color-scrollbar);\n -webkit-overflow-scrolling: touch; }\n\n::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: var(--color-scrollbar); }\n\n::-webkit-scrollbar-thumb {\n background-color: var(--color-scrollbar-thumb);\n border-radius: 10px; }\n\n::-webkit-scrollbar-thumb:hover {\n background-color: var(--color-scrollbar-thumb-hover); }\n\n::-webkit-scrollbar-corner {\n background-color: var(--color-scrollbar); }\n\nheader,\nnav,\nsection,\nmain,\narticle,\naside,\nfigure,\ntoolbar,\niframe,\nobject,\nsvg {\n display: block; }\n\nhtml {\n background: #fff;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased; }\n\nbody {\n color: var(--typography-darkest);\n background: var(--background-main);\n font-weight: 400;\n font-size: 14px;\n font-family: var(--font-family-default);\n line-height: 18px; }\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n line-height: normal; }\n\ndl,\ndt,\ndd,\nul {\n list-style: none; }\n\nol {\n padding: 0 0 0 20px; }\n\nform,\ninput,\ntextarea,\nselect {\n resize: none; }\n\nform,\ntextarea {\n width: 100%; }\n\ninput,\ntextarea,\nselect {\n border-radius: 0; }\n input:focus,\n textarea:focus,\n select:focus {\n outline: none; }\n input[type="submit"]:focus,\n textarea[type="submit"]:focus,\n select[type="submit"]:focus {\n border: none !important; }\n\nbutton {\n outline: none;\n border-radius: 0; }\n\nimg {\n max-width: 100%;\n height: auto;\n display: block;\n border: 0; }\n\ntable {\n border-collapse: collapse; }\n\na {\n text-decoration: none;\n color: #000; }\n\n.divider {\n border-bottom: 1px solid #ECECEC; }\n\n.right--actions {\n text-align: right; }\n\n.sg-tabs__tab.sg-optimizer-tab {\n padding: 0 20px; }\n .sg-tabs__tab.sg-optimizer-tab:first-child {\n padding-left: 30px; }\n\n.sg-field-wrapper--medium .sg-input-addon .sg-text-truncate {\n max-width: 500px; }\n\n.sg-checkbox__input {\n display: none !important; }\n\n.sg-field-wrapper--large .sg-input-addon .sg-text-truncate {\n max-width: none !important; }\n\n.sg-text {\n word-break: break-word !important; }\n\n.sg-slider .sg-slider__labels {\n display: none; }\n\n.sg-flex.margin-top--x-small {\n margin-top: 5px; }\n\n.position--relative {\n position: relative; }\n\n.loader-image-optimization .sg-loader__content--position-absolute {\n width: 90%; }\n\n.loader-image-optimization .sg-loader-message,\n.loader-image-optimization .sg-loader__message {\n max-width: none; }\n\n.sg-field-wrapper--medium .sg-input-addon .sg-text-truncate {\n max-width: 350px !important; }\n\n.label-wrapper--absolute {\n position: absolute;\n z-index: 2;\n top: 0;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%); }\n\n.sg-optimizer-intro-section.single .sg-carousel__indicators {\n display: none; }\n\n.feature-box--highlight {\n border-radius: 3px;\n border: 1px solid var(--border-color-outer);\n border-top: 3px solid var(--bronze-base);\n text-align: center; }\n\n@media (max-width: 800px) {\n .right--actions {\n text-align: left; } }\n\n@media (min-width: 801px) and (max-width: 1500px) {\n .sg-field-wrapper--small .sg-input-addon .sg-text-truncate {\n max-width: 80.64px !important; }\n .sg-field-wrapper--medium .sg-input-addon .sg-text-truncate {\n max-width: 80.64px !important; }\n .sg-field-wrapper--large .sg-input-addon .sg-text-truncate {\n max-width: 80.64px !important; }\n .sg-field-wrapper--x-large .sg-input-addon .sg-text-truncate {\n max-width: 100.8px !important; } }\n\n@media (min-width: 801px) {\n .button--fluid {\n width: 100%; } }\n\n.loader-cloudflare-optimization .sg-loader__message {\n min-width: 300px; }\n',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,s=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s)?e:(o=0===s.indexOf("//")?s:0===s.indexOf("/")?n+s:r+s.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t){e.exports=function(e){return null===e}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(771),o=n(193),s=n(194),i=n(775),a=n(780),c=Math.max;e.exports=function(e,t,n,l){e=o(e)?e:a(e),n=n&&!l?i(n):0;var u=e.length;return n<0&&(n=c(u+n,0)),s(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}},function(e,t,n){var r=n(772),o=n(773),s=n(774);e.exports=function(e,t,n){return t==t?s(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,s=n+(r?1:-1);r?s--:++s<o;)if(t(e[s],s,e))return s;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(776);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(777);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(778),o=n(192),s=n(195),i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(779),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(781),o=n(782);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(426);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){var r=n(783),o=n(430),s=n(193);e.exports=function(e){return s(e)?r(e):o(e)}},function(e,t,n){var r=n(784),o=n(427),s=n(108),i=n(428),a=n(787),c=n(429),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=s(e),u=!n&&o(e),d=!n&&!u&&i(e),p=!n&&!u&&!d&&c(e),f=n||u||d||p,g=f?r(e.length,String):[],m=g.length;for(var h in e)!t&&!l.call(e,h)||f&&("length"==h||d&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||a(h,m))||g.push(h);return g}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(82),o=n(94);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(82),o=n(425),s=n(94),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&o(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(418),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===o&&r.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}).call(this,n(1)(e))},function(e,t,n){var r=n(419)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(430),o=n(793),s=n(427),i=n(108),a=n(193),c=n(428),l=n(431),u=n(429),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||s(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t,n){var r=n(794),o=n(799),s=n(800),i=n(801),a=n(802),c=n(82),l=n(433),u=l(r),d=l(o),p=l(s),f=l(i),g=l(a),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||s&&"[object Promise]"!=m(s.resolve())||i&&"[object Set]"!=m(new i)||a&&"[object WeakMap]"!=m(new a))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case g:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(109)(n(61),"DataView");e.exports=r},function(e,t,n){var r=n(95),o=n(796),s=n(192),i=n(433),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||o(e))&&(r(e)?p:a).test(i(e))}},function(e,t,n){var r,o=n(797),s=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!s&&s in e}},function(e,t,n){var r=n(61)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(109)(n(61),"Map");e.exports=r},function(e,t,n){var r=n(109)(n(61),"Promise");e.exports=r},function(e,t,n){var r=n(109)(n(61),"Set");e.exports=r},function(e,t,n){var r=n(109)(n(61),"WeakMap");e.exports=r},function(e,t,n){var r=n(804);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(190),o=n(426),s=n(108),i=n(195),a=r?r.prototype:void 0,c=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e).map((function(n){return(0,r.default)(n,e[n],t)})),i=s.default.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n));return function(e,t){return i(e,t)}};var r=i(n(424)),o=i(n(806)),s=i(n(807));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e)));return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){return t.reduce((function(e,t){return t(e,n)}),e)}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if((0,p.default)(n.every(l.default)&&((0,l.default)(e)||(0,a.default)(e)),"Expected optional object followed by string action types"),(0,l.default)(e))return h([e].concat(n));return o({},m(e),h(n))};var s=f(n(191)),i=f(n(809)),a=f(n(131)),c=f(n(108)),l=f(n(194)),u=f(n(95)),d=f(n(422)),p=f(n(20));function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return Object.keys(e).reduce((function(t,n){var a=e[n];(0,p.default)(function(e){if((0,u.default)(e))return!0;if((0,c.default)(e)){var t=r(e,2),n=t[0],o=void 0===n?s.default:n,i=t[1];return(0,u.default)(o)&&(0,u.default)(i)}return!1}(a),"Expected function, undefined, or array with payload and meta functions for "+n);var l=(0,c.default)(a)?d.default.apply(void 0,[n].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a))):(0,d.default)(n,a);return o({},t,g({},(0,i.default)(n),l))}),{})}function h(e){return m(e.reduce((function(e,t){return o({},e,g({},t,s.default))}),{}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:(?:1ST|2ND|3RD|(?![123])\dTH)\b)|\d*(?:(?:1st|2nd|3rd|(?![123])\dth)\b)|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g;function o(e){return e.match(r).reduce((function(e,t,n){return e+(0===n?t.toLowerCase():t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())}),"")}t.default=function(e){return e.split("/").map(o).join("/")}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(93),c=n(413),l=o(n(811)),u=o(n(815)),d=o(n(818)),p=o(n(819)),f=o(n(826)),g=l.default(),m={key:window.optimizerData.home_url,storage:u.default,stateReconciler:d.default,whitelist:["isAnalysing","device"]},h=c.persistReducer(m,p.default);t.store=a.createStore(h,a.applyMiddleware(g)),t.persistor=c.persistStore(t.store),g.run(f.default),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(l,"redux_saga_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(u,"storage_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(d,"hardSet_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(p,"reducers_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(f,"sagas_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(g,"sagaMiddleware","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(m,"persistConfig","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),s.register(h,"persistedReducer","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/store/index.ts"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.effects=t.CANCEL=t.delay=t.throttle=t.takeLatest=t.takeEvery=t.buffers=t.channel=t.eventChannel=t.END=t.runSaga=void 0;var r=n(812);Object.defineProperty(t,"runSaga",{enumerable:!0,get:function(){return r.runSaga}});var o=n(133);Object.defineProperty(t,"END",{enumerable:!0,get:function(){return o.END}}),Object.defineProperty(t,"eventChannel",{enumerable:!0,get:function(){return o.eventChannel}}),Object.defineProperty(t,"channel",{enumerable:!0,get:function(){return o.channel}});var s=n(134);Object.defineProperty(t,"buffers",{enumerable:!0,get:function(){return s.buffers}});var i=n(435);Object.defineProperty(t,"takeEvery",{enumerable:!0,get:function(){return i.takeEvery}}),Object.defineProperty(t,"takeLatest",{enumerable:!0,get:function(){return i.takeLatest}}),Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return i.throttle}});var a=n(53);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return a.delay}}),Object.defineProperty(t,"CANCEL",{enumerable:!0,get:function(){return a.CANCEL}});var c,l=n(813),u=(c=l)&&c.__esModule?c:{default:c},d=f(n(83)),p=f(n(814));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.default=u.default,t.effects=d,t.utils=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.runSaga=function(e,t){var n=t.subscribe,r=t.dispatch,s=t.getState,a=t.context,c=t.sagaMonitor,l=t.logger,u=t.onError;(0,o.check)(e,o.is.iterator,"runSaga must be called on an iterator");var d=(0,o.uid)();c&&c.effectTriggered({effectId:d,root:!0,parentEffectId:0,effect:{root:!0,saga:e,args:[]}});var p=(0,i.default)(e,n,(0,o.wrapSagaDispatch)(r),s,a,{sagaMonitor:c,logger:l,onError:u},d,e.name);c&&c.effectResolved(d,p);return p};var r,o=n(53),s=n(196),i=(r=s)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.context,n=void 0===t?{}:t,r=l(e,["context"]),s=void 0,u=r.sagaMonitor;u&&(u.effectTriggered=u.effectTriggered||o.noop,u.effectResolved=u.effectResolved||o.noop,u.effectRejected=u.effectRejected||o.noop,u.effectCancelled=u.effectCancelled||o.noop,u.actionDispatched=u.actionDispatched||o.noop);if(o.is.func(r))throw new Error("Saga middleware no longer accept Generator functions. Use sagaMiddleware.run instead");if(r.logger&&!o.is.func(r.logger))throw new Error("`options.logger` passed to the Saga middleware is not a function!");r.onerror&&(o.isDev&&(0,o.log)("warn","`options.onerror` is deprecated. Use `options.onError` instead."),r.onError=r.onerror,delete r.onerror);if(r.onError&&!o.is.func(r.onError))throw new Error("`options.onError` passed to the Saga middleware is not a function!");if(r.emitter&&!o.is.func(r.emitter))throw new Error("`options.emitter` passed to the Saga middleware is not a function!");function d(e){var t=e.getState,l=e.dispatch;s=function(e,o,s){return(0,i.default)(e.apply(void 0,c(o)),d.subscribe,p,t,n,r,s,e.name)};var d=(0,a.emitter)();d.emit=(r.emitter||o.ident)(d.emit);var p=(0,o.wrapSagaDispatch)(l);return function(e){return function(t){u&&u.actionDispatched(t);var n=e(t);return d.emit(t),n}}}return d.run=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,o.check)(s,o.is.notUndef,"Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware"),(0,o.check)(e,o.is.func,"sagaMiddleware.run(saga, ...args): saga argument must be a Generator function!");var i=(0,o.uid)();u&&u.effectTriggered({effectId:i,root:!0,parentEffectId:0,effect:{root:!0,saga:e,args:n}});var a=s(e,n,i);return u&&u.effectResolved(i,a),a},d.setContext=function(e){(0,o.check)(e,o.is.object,(0,o.createSetContextWarning)("sagaMiddleware",e)),o.object.assign(n,e)},d};var r,o=n(53),s=n(196),i=(r=s)&&r.__esModule?r:{default:r},a=n(133);function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(53);Object.defineProperty(t,"TASK",{enumerable:!0,get:function(){return r.TASK}}),Object.defineProperty(t,"SAGA_ACTION",{enumerable:!0,get:function(){return r.SAGA_ACTION}}),Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return r.noop}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return r.is}}),Object.defineProperty(t,"deferred",{enumerable:!0,get:function(){return r.deferred}}),Object.defineProperty(t,"arrayOfDeffered",{enumerable:!0,get:function(){return r.arrayOfDeffered}}),Object.defineProperty(t,"createMockTask",{enumerable:!0,get:function(){return r.createMockTask}});var o=n(132);Object.defineProperty(t,"asEffect",{enumerable:!0,get:function(){return o.asEffect}});var s=n(196);Object.defineProperty(t,"CHANNEL_END",{enumerable:!0,get:function(){return s.CHANNEL_END}})},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(816),s=(r=o)&&r.__esModule?r:{default:r};t.default=(0,s.default)("local")},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,o){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,o=n(817),s=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(){}t.default=function(e){var t=e+"Storage";return function(e){if("object"!==("undefined"==typeof self?"undefined":r(self))||!(e in self))return!1;try{var t=self[e],n="redux-persist "+e+" test";t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}(t)?self[t]:s};var s={getItem:o,setItem:o,removeItem:o}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e}},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(93),c=o(n(820)),l=o(n(821)),u=o(n(822)),d=o(n(823)),p=o(n(824)),f=o(n(825)),g=n(256),m=a.combineReducers({Environment:c.default,Options:l.default,Cache:u.default,Notifications:d.default,Report:p.default,Cloudflare:f.default,routing:g.routerReducer});t.default=m,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(c,"environment_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(l,"options_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(u,"cache_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(d,"notifications_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(p,"report_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(f,"cloudflare_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),s.register(m,"rootReducer","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/index.ts"),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,s=this&&this.__assign||function(){return(s=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.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=n(52),u=i(n(37)),d={};t.default=l.handleActions(((o={})[u.PAGE_INIT]=function(e,t){return s(s({},e),t.payload)},o[u.PAGE_RESIZE]=function(e,t){return s(s({},e),t.payload)},o),d),a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),a.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),a.register(u,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),a.register(d,"initialState","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/environment.ts"),c(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r,o;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=n(16);t.default=a.handleActions(((o={})[c.fetchOptionsSuccess]=function(e,t){var n=t.payload;return Object.assign({},e,n)},o[c.optionEnabled]=function(e,t){var n=e[t.payload.payload.option]=1;return Object.assign({},e,n)},o[c.optionDisabled]=function(e,t){var n=e[t.payload.payload.option]=0;return Object.assign({},e,n)},o[c.optionChanged]=function(e,t){var n,r=t.payload;return Object.assign({},e,((n={})[r.payload.id]=r.payload.value,n))},o[c.isLoading]=function(e,t){var n=t.payload,r=e.isLoading=Number(n);return Object.assign({},e,r)},o[c.updateExcludeListSuccess]=function(e,t){var n=t.payload;return Object.assign({},e,{excluded_urls:n})},o[c.updateExcludesSuccess]=function(e,t){var n,r=t.payload;return Object.assign({},e,((n={})[r.type]=r.handles,n))},o[c.runAnalysisSuccess]=function(e,t){var n=t.payload;return Object.assign({},e,{previous_tests:n})},o),{assets:[],enable_cache:0,database_optimization:0,heartbeat_control:0,heartbeat_dashboard_interval:0,heartbeat_dashboard_status:0,heartbeat_post_interval:0,heartbeat_post_status:0,heartbeat_frontend_interval:0,heartbeat_frontend_status:0,dns_prefetch:0,dns_prefetch_urls:[],fix_insecure_content:0,autoflush_cache:0,enable_memcached:0,preload_combined_css:0,memcache_notice:0,memcache_crashed:0,memcache_dropin_crashed:0,ssl_enabled:0,enable_gzip_compression:0,enable_browser_caching:0,optimize_html:0,optimize_javascript:0,combine_javascript:0,combine_javascript_error:0,optimize_javascript_async:0,optimize_css:0,combine_css:0,remove_query_strings:0,disable_emojis:0,optimize_images:0,image_optimization_stopped:0,lazyload_images:0,lazyload_mobile:0,isLoading:0,lazyload_woocommerce:0,lazyload_iframes:0,lazyload_videos:0,lazyload_shortcodes:0,image_optimization_status:1,total_unoptimized_images:0,user_agent_header:0,excluded_urls:[],minify_javascript_exclude:[],combine_javascript_exclude:[],async_javascript_exclude:[],minify_css_exclude:[],combine_css_exclude:[],minify_html_exclude:[],excluded_lazy_load_classes:[],multisite_permissions:{},sites_data:[],previous_tests:[],dismiss_cron_notice:0,hide_rating:0,has_images:0,combine_google_fonts:0,has_images_for_optimization:0,webp_support:0,webp_enabled:0,quality_type:"",webp_conversion_status:1,webp_quality_changed:0,has_images_for_conversion:0,total_non_converted_images:0,fonts_preload_urls:[],cloudflare_optimization_status:0,cloudflare_optimization:0,cloudflare_email:"",cloudflare_auth_key:"",cloudflare_slots_deletion:0,has_cloudflare:0,post_types:[],post_types_exclude:[]}),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/options.ts"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r,o;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=n(16);t.default=a.handleActions(((o={})[c.purgeCache]=function(e,t){t.payload;return Object.assign({},e,{cachePurged:!1})},o[c.purgeCacheSuccess]=function(e,t){t.payload;return Object.assign({},e,{cachePurged:!0})},o),{cachePurged:!0}),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/cache.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,s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=n(52),d=n(46),p=a(n(37)),f={notifications:[]},g=((o={})[p.ADD_NOTIFICATION]=function(e,t){var n=t.payload,r=i(e.notifications);return r.push(n),Object.assign({},e,{notifications:r})},o[p.REMOVE_NOTIFICATION]=function(e,t){var n=t.payload,r=e.notifications;r=d.remove(e.notifications,(function(e){return e.id!==n.id}));return Object.assign({},e,{notifications:r})},o);t.default=u.handleActions(g,f),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__read","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(i,"__spread","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(p,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(f,"initialState","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),c.register(g,"reducerMap","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/notifications.ts"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r,o;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=n(16),l={previous_tests:{},isAnalysing:0,device:"desktop"};t.default=a.handleActions(((o={})[c.runAnalysisSuccess]=function(e,t){t.payload;return Object.assign({},e,{isAnalysing:0})},o[c.runAnalysisFail]=function(e,t){t.payload;return Object.assign({},e,l)},o[c.analysisisLoading]=function(e,t){t.payload;return Object.assign({},e,{isAnalysing:1})},o[c.analysisChangeDevice]=function(e,t){var n=t.payload;return Object.assign({},e,{device:n.device})},o),l),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/report.ts"),s.register(l,"initialState","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/report.ts"),i(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r,o;(r=n(0).enterModule)&&r(e),Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=n(16),l={isOptimizing:0,isDeauthenticating:0,cloudflareCachePurged:!0};t.default=a.handleActions(((o={})[c.runCloudflareOptimizationSuccess]=function(e,t){t.payload;return Object.assign({},e,{isOptimizing:0})},o[c.runCloudflareOptimizationFail]=function(e,t){t.payload;return Object.assign({},e,l)},o[c.cloudflareOptimizationLoading]=function(e,t){t.payload;return Object.assign({},e,{isOptimizing:1})},o[c.purgeCloudflareCache]=function(e,t){t.payload;return Object.assign({},e,{cloudflareCachePurged:!1})},o[c.purgeCloudflareCacheSuccess]=function(e,t){t.payload;return Object.assign({},e,{cloudflareCachePurged:!0})},o[c.deauthenticateSuccess]=function(e,t){t.payload;return Object.assign({},e,{isDeauthenticating:0})},o[c.isDeauthenticating]=function(e,t){t.payload;return Object.assign({},e,{isDeauthenticating:1})},o[c.deauthenticateFail]=function(e,t){t.payload;return Object.assign({},e,l)},o),l),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"_a","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/cloudflare.ts"),s.register(l,"initialState","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/reducers/cloudflare.ts"),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=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=s(n(827)),l=s(n(829)),u=s(n(830)),d=s(n(831)),p=s(n(832)),f=s(n(833));function g(){return o(this,(function(e){switch(e.label){case 0:return[4,[u.default(),l.default(),p.default(),d.default(),f.default(),c.default()]];case 1:return e.sent(),[2]}}))}t.default=g,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(s,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(c,"cloudflare_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(l,"options_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(u,"cache_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(d,"report_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(p,"image_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(f,"webp_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),i.register(g,"sagas","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/index.ts"),a(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.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(83),c=n(10),l=n(16),u=n(37),d=n(96);function p(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,12,,14]),[4,a.put(l.cloudflareOptimizationLoading())];case 1:return r.sent(),[4,a.put(l.fetchOptionsSuccess({cloudflare_slots_deletion:0}))];case 2:return r.sent(),[4,a.call(d.mainApi(window.optimizerData.rest_base+"/authenticate-cloudflare","POST",e.payload,{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 3:return(t=r.sent()).success?[4,a.put(l.runCloudflareOptimizationSuccess(t.data))]:[3,7];case 4:return r.sent(),[4,a.put(l.fetchOptionsSuccess(t.data.data))];case 5:return r.sent(),[4,a.put(l.addNotification({id:"cloudflare-disable",type:t.success?"success":"error",message:t.data.message}))];case 6:return r.sent(),[3,11];case 7:return[4,a.put(l.runCloudflareOptimizationFail())];case 8:return r.sent(),[4,a.put(l.addNotification({id:"cloudflare-authentication-failed",type:"error",message:t.data.message}))];case 9:return r.sent(),[4,a.put(l.fetchOptionsSuccess(t.data.data))];case 10:r.sent(),r.label=11;case 11:return[3,14];case 12:return n=r.sent(),[4,a.put(l.runCloudflareOptimizationFail())];case 13:return r.sent(),console.error(""+n,n),[3,14];case 14:return[2]}}))}function f(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,12,,14]),e.payload.hideInfo?[3,2]:[4,a.put(l.isDeauthenticating())];case 1:r.sent(),r.label=2;case 2:return[4,a.call(d.mainApi(window.optimizerData.rest_base+"/deauthenticate-cloudflare","GET"))];case 3:return(t=r.sent()).success?[4,a.put(l.deauthenticateSuccess())]:[3,8];case 4:return r.sent(),[4,a.put(l.fetchOptionsSuccess(t.data.data))];case 5:return r.sent(),e.payload.hideInfo?[3,7]:[4,a.put(l.addNotification({id:"cloudflare-deauthenticate-enable",type:t.success?"success":"error",message:t.data.message}))];case 6:r.sent(),r.label=7;case 7:return[3,11];case 8:return[4,a.put(l.deauthenticateFail())];case 9:return r.sent(),[4,a.put(l.addNotification({id:"cloudflare-deauthenticate-disable",type:"error",message:t.data.message}))];case 10:r.sent(),r.label=11;case 11:return[3,14];case 12:return n=r.sent(),[4,a.put(l.deauthenticateFail())];case 13:return r.sent(),console.error(""+n,n),[3,14];case 14:return[2]}}))}function g(){var e;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,4,,5]),[4,a.call(d.mainApi(window.optimizerData.rest_base+"/purge-cloudflare-cache","GET",{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t.sent(),[4,a.put({type:u.ADD_NOTIFICATION,payload:{id:"cloudflare-cache-purged",type:"success",message:c.translate("Cloudflare Cache Successfully Purged")}})];case 2:return t.sent(),[4,a.put(l.purgeCloudflareCacheSuccess())];case 3:return t.sent(),[3,5];case 4:return e=t.sent(),console.error(""+e,e),[3,5];case 5:return[2]}}))}function m(){return o(this,(function(e){switch(e.label){case 0:return[4,a.takeLatest(u.PURGE_CLOUDFLARE_CACHE,g)];case 1:return e.sent(),[4,a.takeLatest(u.AUTHENTICATE,p)];case 2:return e.sent(),[4,a.takeLatest(u.DEAUTHENTICATE,f)];case 3:return e.sent(),[2]}}))}t.default=m,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),s.register(p,"handleAuthenticate","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),s.register(f,"handleDeauthenticate","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),s.register(g,"handeCloudflareCachePurge","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),s.register(m,"cloudflare","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cloudflare.ts"),i(e))}).call(this,n(1)(e))},function(e,t,n){!function(e){"use strict";var t="URLSearchParams"in self,n="Symbol"in self&&"iterator"in Symbol,r="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in self,s="ArrayBuffer"in self;if(s)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var n;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=l(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u(e)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var n,r,o=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),_.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];b.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.DOMException=self.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function M(t,n){return new Promise((function(o,s){var i=new v(t,n);if(i.signal&&i.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;o(new b(r,n))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",c)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}M.polyfill=!0,self.fetch||(self.fetch=M,self.Headers=d,self.Request=v,self.Response=b),e.Headers=d,e.Request=v,e.Response=b,e.fetch=M,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(83),a=n(10),c=n(16);window.optimizerData=window.optimizerData||{};var l,u,d=s(n(37)),p=n(96);function f(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/fetch-options","GET",{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return void 0!==(e=n.sent())?[3,3]:[4,i.put(c.addNotification({id:"fetchoptionserror",type:"error",title:a.translate("Could not connect to the WordPress REST API"),message:a.translate("Either a security plugin, custom function or rules in your .htaccess file is preventing the WordPress REST API from working properly. SiteGround Optimizer is using it to store its options and other functionalities so please make sure it works properly.")}))];case 2:n.sent(),n.label=3;case 3:return[4,i.put(c.fetchOptionsSuccess(e.data))];case 4:return n.sent(),[3,6];case 5:return t=n.sent(),console.error(""+t,t),[3,6];case 6:return[2]}}))}function g(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-option","POST",{option_key:"siteground_optimizer_"+e.payload.option,is_multisite:e.payload.isMultisite},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success?[4,i.put(c.optionEnabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return e.payload.showNotification?[4,i.put(c.addNotification({id:e.payload.option+"enable",type:t.success?"success":"error",message:t.data.message}))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function m(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-option","POST",{option_key:"siteground_optimizer_"+e.payload.option,is_multisite:e.payload.isMultisite},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success?[4,i.put(c.optionDisabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return e.payload.showNotification?[4,i.put(c.addNotification({id:e.payload.option+"disable",type:t.success?"success":"error",message:t.data.message}))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function h(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-multisite-optimization","POST",{blog_id:e.payload.blogId,setting:"enable_"+e.payload.setting+"_optimization"},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success||!t.data.message?[3,3]:[4,i.put(c.addNotification({id:"bulk_error_message",type:"error",message:t.data.message}))];case 2:return r.sent(),[3,5];case 3:return[4,i.put(c.fetchOptions())];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function _(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-multisite-optimization","POST",{blog_id:e.payload.blogId,setting:"disable_"+e.payload.setting+"_optimization"},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success||!t.data.message.lenght?[3,3]:[4,i.put(c.addNotification({id:"bulk_error_message",type:"error",message:t.data.message}))];case 2:return r.sent(),[3,5];case 3:return[4,i.put(c.fetchOptions())];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function v(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-memcache"))];case 1:return(t=r.sent()).success?[4,i.put(c.optionEnabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,i.put(c.addNotification({id:e.payload,type:t.success?"success":"error",message:t.data.message}))];case 4:return r.sent(),[3,6];case 5:return n=r.sent(),console.error(""+n,n),[3,6];case 6:return[2]}}))}function y(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-memcache"))];case 1:return(t=r.sent()).success?[4,i.put(c.optionDisabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,i.put(c.addNotification({id:e.payload,type:t.success?"success":"error",message:t.data.message}))];case 4:return r.sent(),[3,6];case 5:return n=r.sent(),console.error(""+n,n),[3,6];case 6:return[2]}}))}function b(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return[4,i.put(c.isLoading(!0))];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,8,,9]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-ssl","POST",{option_key:"siteground_optimizer_"+e.payload.option},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 3:return(t=r.sent()).success?[4,i.put(c.optionEnabled(e))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[4,i.put(c.isLoading(!1))];case 6:return r.sent(),[4,i.put(c.addNotification({id:e.payload,type:t.success?"success":"error",message:t.data.message}))];case 7:return r.sent(),t.success&&window.location.reload(),[3,9];case 8:return n=r.sent(),console.error(""+n,n),[3,9];case 9:return[2]}}))}function w(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return[4,i.put(c.isLoading(!0))];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,8,,9]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-ssl","POST",{option_key:"siteground_optimizer_"+e.payload.option},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 3:return(t=r.sent()).success?[4,i.put(c.optionDisabled(e))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[4,i.put(c.isLoading(!1))];case 6:return r.sent(),[4,i.put(c.addNotification({id:e.payload,type:t.success?"success":"error",message:t.data.message}))];case 7:return r.sent(),t.success&&window.location.reload(),[3,9];case 8:return n=r.sent(),console.error(""+n,n),[3,9];case 9:return[2]}}))}function M(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/update-excluded-urls","POST",{excluded_urls:JSON.stringify(e.payload)},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t=r.sent(),[4,i.put(c.updateExcludeListSuccess(t.data))];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),console.error(""+n,n),[3,4];case 4:return[2]}}))}function x(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/update-exclude-list","POST",{type:e.payload.type,handle:e.payload.handle},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t=r.sent(),[4,i.put(c.updateExcludesSuccess({type:e.payload.type,handles:t.handles}))];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),console.error(""+n,n),[3,4];case 4:return[2]}}))}function S(e){var t,n;return o(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/hide-rating"))];case 1:return e.sent(),t={hide_rating:1},[4,i.put(c.fetchOptionsSuccess(t))];case 2:return e.sent(),[3,4];case 3:return n=e.sent(),console.error(""+n,n),[3,4];case 4:return[2]}}))}function O(e){var t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/change-option","POST",{option_key:"siteground_optimizer_"+e.payload.id,value:e.payload.value},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return n.sent().success?[4,i.put(c.optionChanged(e))]:[3,3];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:return t=n.sent(),console.error(""+t,t),[3,5];case 5:return[2]}}))}function A(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/enable-database-optimization","POST",{option_key:"siteground_optimizer_"+e.payload.option,is_multisite:e.payload.isMultisite},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success?[4,i.put(c.optionEnabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return e.payload.showNotification?[4,i.put(c.addNotification({id:e.payload.option+"enable",type:t.success?"success":"error",message:t.data.message}))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function k(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,i.call(p.mainApi(window.optimizerData.rest_base+"/disable-database-optimization","POST",{option_key:"siteground_optimizer_"+e.payload.option,is_multisite:e.payload.isMultisite},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return(t=r.sent()).success?[4,i.put(c.optionDisabled(e))]:[3,3];case 2:r.sent(),r.label=3;case 3:return e.payload.showNotification?[4,i.put(c.addNotification({id:e.payload.option+"disable",type:t.success?"success":"error",message:t.data.message}))]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return n=r.sent(),console.error(""+n,n),[3,7];case 7:return[2]}}))}function L(){return o(this,(function(e){switch(e.label){case 0:return[4,i.takeLatest(d.ENABLE_OPTION,g)];case 1:return e.sent(),[4,i.takeLatest(d.DISABLE_OPTION,m)];case 2:return e.sent(),[4,i.takeLatest(d.ENABLE_BLOG_SETTINGS,h)];case 3:return e.sent(),[4,i.takeLatest(d.DISABLE_BLOG_SETTINGS,_)];case 4:return e.sent(),[4,i.takeLatest(d.FETCH_OPTIONS,f)];case 5:return e.sent(),[4,i.takeLatest(d.UPDATE_EXCLUDE_LIST,M)];case 6:return e.sent(),[4,i.takeLatest(d.UPDATE_EXCLUDES,x)];case 7:return e.sent(),[4,i.takeLatest(d.ENABLE_MEMCACHE,v)];case 8:return e.sent(),[4,i.takeLatest(d.DISABLE_MEMCACHE,y)];case 9:return e.sent(),[4,i.takeLatest(d.ENABLE_SSL,b)];case 10:return e.sent(),[4,i.takeLatest(d.DISABLE_SSL,w)];case 11:return e.sent(),[4,i.takeLatest(d.HIDE_RATING,S)];case 12:return e.sent(),[4,i.takeLatest(d.CHANGE_OPTION,O)];case 13:return e.sent(),[4,i.takeLatest(d.ENABLE_DATABASE_OPTIMIZATION,A)];case 14:return e.sent(),[4,i.takeLatest(d.DISABLE_DATABASE_OPTIMIZATION,k)];case 15:return e.sent(),[2]}}))}t.default=L,l=n(0).default,u=n(0).leaveModule,l&&(l.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(d,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(f,"handleFetchOptions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(g,"handleOptionEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(m,"handleOptionDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(h,"handleBlogSettingsEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(_,"handleBlogSettingsDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(v,"handleMemcacheEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(y,"handleMemcacheDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(b,"handleSslEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(w,"handleSslDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(M,"handleUpdateExcludeList","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(x,"handleUpdateExcludes","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(S,"handleHideRating","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(O,"handleChangeOption","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(A,"handleDatabaseOptimizationEnable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(k,"handleDatabaseOptimizationDisable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),l.register(L,"options","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/options.ts"),u(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.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=n(83),l=n(10),u=n(16),d=s(n(37)),p=n(96);function f(){var e;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,4,,5]),[4,c.call(p.mainApi(window.optimizerData.rest_base+"/purge-cache","GET",{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t.sent(),[4,c.put({type:d.ADD_NOTIFICATION,payload:{id:"cache-purged",type:"success",message:l.translate("Dynamic Cache Successfully Purged")}})];case 2:return t.sent(),[4,c.put(u.purgeCacheSuccess())];case 3:return t.sent(),[3,5];case 4:return e=t.sent(),console.error(""+e,e),[3,5];case 5:return[2]}}))}function g(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,c.call(p.mainApi(window.optimizerData.rest_base+"/test-url-cache","POST",{url:window.optimizerData.home_url+e.payload.url,isCloudflare:e.payload.isCloudflare},{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t=r.sent(),[4,c.put({type:d.ADD_NOTIFICATION,payload:{id:e.payload,type:t.data.cached?"success":"error",message:t.data.cached?"The URL is cached":"The URL is not cached"}})];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),console.error(""+n,n),[3,4];case 4:return[2]}}))}function m(){return o(this,(function(e){switch(e.label){case 0:return[4,c.takeLatest(d.PURGE_CACHE,f)];case 1:return e.sent(),[4,c.takeLatest(d.TEST_URL,g)];case 2:return e.sent(),[2]}}))}t.default=m,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(d,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(f,"handeCachePurge","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(g,"handleTestUrl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),i.register(m,"cache","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/cache.ts"),a(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.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(83),c=n(16),l=n(37),u=n(96);function d(e){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,7,,9]),[4,a.put(c.analysisisLoading())];case 1:return r.sent(),[4,a.call(u.mainApi(window.optimizerData.rest_base+"/run-analysis","POST",e.payload,{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 2:return(t=r.sent()).success?[4,a.put(c.runAnalysisSuccess(t.data))]:[3,4];case 3:return r.sent(),[3,6];case 4:return[4,a.put(c.runAnalysisFail())];case 5:r.sent(),r.label=6;case 6:return[3,9];case 7:return n=r.sent(),[4,a.put(c.runAnalysisFail())];case 8:return r.sent(),console.error(""+n,n),[3,9];case 9:return[2]}}))}function p(e){return o(this,(function(t){switch(t.label){case 0:return[4,a.put({type:l.ADD_NOTIFICATION,payload:{id:e.type,type:"error",message:"We failed to connect to Google servers, please try later!"}})];case 1:return t.sent(),[2]}}))}function f(){return o(this,(function(e){switch(e.label){case 0:return[4,a.takeLatest(l.RUN_ANALYSIS,d)];case 1:return e.sent(),[4,a.takeLatest(l.RUN_ANALYSIS_FAIL,p)];case 2:return e.sent(),[4,a.takeLatest(l.ANALYSIS_CHANGE_DEVICE,c.analysisChangeDevice)];case 3:return e.sent(),[2]}}))}t.default=f,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/report.ts"),s.register(d,"handleRunAnalysis","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/report.ts"),s.register(p,"handleRunAnalysisFail","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/report.ts"),s.register(f,"report","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/report.ts"),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=this&&this.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=n(83),l=n(16),u=n(96),d=s(n(37));function p(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,c.call(u.mainApi(window.optimizerData.rest_base+"/check-image-optimizing-status?"+ +(new Date).getTime()))];case 1:return e=n.sent(),[4,c.put(l.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function f(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,c.call(u.mainApi(window.optimizerData.rest_base+"/optimize-images"))];case 1:return e=n.sent(),[4,c.put(l.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function g(){var e,t;return o(this,(function(n){switch(n.label){case 0:e={has_images_for_optimization:1},n.label=1;case 1:return n.trys.push([1,4,,5]),[4,c.call(u.mainApi(window.optimizerData.rest_base+"/reset-images-optimization"))];case 2:return n.sent(),[4,c.put(l.fetchOptionsSuccess(e))];case 3:return n.sent(),[3,5];case 4:return t=n.sent(),console.error(""+t,t),[3,5];case 5:return[2]}}))}function m(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,c.call(u.mainApi(window.optimizerData.rest_base+"/stop-images-optimization"))];case 1:return e=n.sent(),[4,c.put(l.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function h(){return o(this,(function(e){switch(e.label){case 0:return[4,c.takeLatest(d.CHECK_IMAGE_OPTIMIZATION_STATUS,p)];case 1:return e.sent(),[4,c.takeLatest(d.INIT_IMAGES_OPTIMIZATION,f)];case 2:return e.sent(),[4,c.takeLatest(d.STOP_IMAGES_OPTIMIZATION,m)];case 3:return e.sent(),[4,c.takeLatest(d.RESET_IMAGES_OPTIMIZATION,g)];case 4:return e.sent(),[2]}}))}t.default=h,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(d,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(p,"handleCheckImageOptimizationStatus","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(f,"handleInitImagesOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(g,"handleResetImagesOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(m,"handleStopImagesOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),i.register(h,"imageOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/image-optimization.ts"),a(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.__generator||function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(83),c=n(10),l=n(96),u=n(16),d=n(37);function p(){var e;return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,a.call(l.mainApi(window.optimizerData.rest_base+"/delete-webp-files","GET",{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}))];case 1:return t.sent(),[4,a.put({type:d.ADD_NOTIFICATION,payload:{id:"webp-files-deleted",type:"success",message:c.translate("WebP Files Successfully Deleted")}})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error(""+e,e),[3,4];case 4:return[2]}}))}function f(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,a.call(l.mainApi(window.optimizerData.rest_base+"/generate-webp-files"))];case 1:return e=n.sent(),[4,a.put(u.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function g(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,a.call(l.mainApi(window.optimizerData.rest_base+"/stop-webp-conversion"))];case 1:return e=n.sent(),[4,a.put(u.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function m(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,a.call(l.mainApi(window.optimizerData.rest_base+"/check-webp-conversion-status?"+ +(new Date).getTime()))];case 1:return e=n.sent(),[4,a.put(u.fetchOptionsSuccess(e.data))];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),console.error(""+t,t),[3,4];case 4:return[2]}}))}function h(){return o(this,(function(e){switch(e.label){case 0:return[4,a.takeLatest(d.DELETE_WEBP_FILES,p)];case 1:return e.sent(),[4,a.takeLatest(d.GENERATE_WEBP_FILES,f)];case 2:return e.sent(),[4,a.takeLatest(d.STOP_WEBP_CONVERSION,g)];case 3:return e.sent(),[4,a.takeLatest(d.CHECK_WEBP_CONVERSION_STATUS,m)];case 4:return e.sent(),[2]}}))}t.default=h,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__generator","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(p,"handleDeleteWebpFiles","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(f,"handleGenerateWebpFiles","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(g,"handleStopWebpConversion","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(m,"handleCheckWebpConversionStatus","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),s.register(h,"cache","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/sagas/webp.ts"),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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(259),f=n(46),g=a(n(851)),m=a(n(1192)),h=a(n(1200)),_=a(n(1201)),v=a(n(1209)),y=a(n(1210)),b=a(n(1211)),w=a(n(1217)),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e={supercacher:g.default,environment:m.default,frontend:h.default,images:_.default,global:v.default,defaults:y.default,analytics:b.default,cloudflare:w.default};return u.createElement(d.Provider,{store:this.props.store},u.createElement(p.Router,{history:this.props.history,key:Math.random()},u.createElement(u.Fragment,null,u.createElement(p.Redirect,{exact:!0,from:"/",to:Object.keys(window.optimizerData.tabs)[0]}),f.map(window.optimizerData.tabs,(function(t,n){return u.createElement(p.Route,{key:Math.random(),path:n,component:e[n]})})))))},t}(u.Component);t.default=M,c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(g,"supercacher_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(m,"environment_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(h,"frontend_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(_,"image_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(v,"multisite_control_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(y,"sites_control_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(b,"analytics_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(w,"cloudflare_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),c.register(M,"Root","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/root/index.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(836).default;function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(47);t.__esModule=!0,t.createProvider=c,t.default=void 0;var o=r(n(436)),s=n(2),i=r(n(23)),a=n(437);r(n(197));function c(e){var t;void 0===e&&(e="store");var n=e+"Subscription",r=function(t){(0,o.default)(i,t);var r=i.prototype;function i(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return r.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.render=function(){return s.Children.only(this.props.children)},i}(s.Component);return r.propTypes={store:a.storeShape.isRequired,children:i.default.element.isRequired},r.childContextTypes=((t={})[e]=a.storeShape.isRequired,t[n]=a.subscriptionShape,t),r}var l=c();t.default=l},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(439),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?i:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(g){var o=f(n);o&&o!==g&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var a=c(t),m=c(n),h=0;h<i.length;++h){var _=i[h];if(!(s[_]||r&&r[_]||m&&m[_]||a&&a[_])){var v=p(n,_);try{l(t,_,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";
328
  /** @license React v16.13.1
329
  * react-is.production.min.js
330
  *
342
  * http://hammerjs.github.io/
343
  *
344
  * Copyright (c) 2016 Jorik Tangelder;
345
+ * Licensed under the MIT license */!function(o,s,i,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=s.createElement("div"),d=Math.round,p=Math.abs,f=Date.now;function g(e,t,n){return setTimeout(w(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 _(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",s=o.console&&(o.console.warn||o.console.log);return s&&s.call(o.console,r,n),e.apply(this,arguments)}}c="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 v=_((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 v(e,t,!0)}),"merge","Use `assign`.");function b(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&c(r,n)}function w(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 x(e,t){return void 0===e?t:e}function S(e,t,n){h(L(t),(function(t){e.addEventListener(t,n,!1)}))}function O(e,t,n){h(L(t),(function(t){e.removeEventListener(t,n,!1)}))}function A(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function k(e,t){return e.indexOf(t)>-1}function L(e){return e.trim().split(/\s+/g)}function E(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 j(e){return Array.prototype.slice.call(e,0)}function T(e,t,n){for(var r=[],o=[],s=0;s<e.length;){var i=t?e[s][t]:e[s];E(o,i)<0&&r.push(e[s]),o[s]=i,s++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function z(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),s=0;s<l.length;){if((r=(n=l[s])?n+o:t)in e)return r;s++}}var D=1;function N(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var P="ontouchstart"in o,C=void 0!==z(o,"PointerEvent"),U=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Y=["x","y"],R=["clientX","clientY"];function I(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 W(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,s=1&t&&r-o==0,i=12&t&&r-o==0;n.isFirst=!!s,n.isFinal=!!i,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=q(t));o>1&&!n.firstMultiple?n.firstMultiple=q(t):1===o&&(n.firstMultiple=!1);var s=n.firstInput,i=n.firstMultiple,a=i?i.center:s.center,c=t.center=B(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=V(a,c),t.distance=X(a,c),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},s=e.prevInput||{};1!==t.eventType&&4!==s.eventType||(o=e.prevDelta={x:s.deltaX||0,y:s.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=H(t.deltaX,t.deltaY);var l=F(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=p(l.x)>p(l.y)?l.x:l.y,t.scale=i?(u=i.pointers,d=r,X(d[0],d[1],R)/X(u[0],u[1],R)):1,t.rotation=i?function(e,t){return V(t[1],t[0],R)+V(e[1],e[0],R)}(i.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,s,i=e.lastInterval||t,a=t.timeStamp-i.timeStamp;if(8!=t.eventType&&(a>25||void 0===i.velocity)){var c=t.deltaX-i.deltaX,l=t.deltaY-i.deltaY,u=F(a,c,l);r=u.x,o=u.y,n=p(u.x)>p(u.y)?u.x:u.y,s=H(c,l),e.lastInterval=t}else n=i.velocity,r=i.velocityX,o=i.velocityY,s=i.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=s}(n,t);var u,d;var g=e.element;A(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 q(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 H(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=Y);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function V(e,t,n){n||(n=Y);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}I.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(N(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,I.apply(this,arguments)}b(K,I,{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 J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:"touch",3:"pen",4:"mouse",5:"kinect"},$="pointerdown",Z="pointermove pointerup pointercancel";function ee(){this.evEl=$,this.evWin=Z,I.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&($="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),b(ee,I,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=J[r],s=Q[e.pointerType]||e.pointerType,i="touch"==s,a=E(t,e.pointerId,"pointerId");1&o&&(0===e.button||i)?a<0&&(t.push(e),a=t.length-1):12&o&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),n&&t.splice(a,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,I.apply(this,arguments)}function re(e,t){var n=j(e.touches),r=j(e.changedTouches);return 12&t&&(n=T(n.concat(r),"identifier",!0)),[n,r]}b(ne,I,{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 se(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},I.apply(this,arguments)}function ie(e,t){var n=j(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,s,i=j(e.changedTouches),a=[],c=this.target;if(s=n.filter((function(e){return A(e.target,c)})),1===t)for(o=0;o<s.length;)r[s[o].identifier]=!0,o++;for(o=0;o<i.length;)r[i[o].identifier]&&a.push(i[o]),12&t&&delete r[i[o].identifier],o++;return a.length?[T(s.concat(a),"identifier",!0),a]:void 0}b(se,I,{handler:function(e){var t=oe[e.type],n=ie.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function ae(){I.apply(this,arguments);var e=w(this.handler,this);this.touch=new se(this.manager,e),this.mouse=new K(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ce(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,le.call(this,t)):12&e&&le.call(this,t)}function le(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],s=Math.abs(t-o.x),i=Math.abs(n-o.y);if(s<=25&&i<=25)return!0}return!1}b(ae,I,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ce.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=z(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(k(e,"none"))return"none";var t=k(e,"pan-x"),n=k(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(k(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=k(r,"none")&&!fe.none,s=k(r,"pan-y")&&!fe["pan-y"],i=k(r,"pan-x")&&!fe["pan-x"];if(o){var a=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(a&&c&&l)return}if(!i||!s)return o||s&&6&n||i&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function me(e){this.options=c({},this.defaults,e||{}),this.id=D++,this.manager=null,this.options.enable=x(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 _e(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ve(e,t){var n=t.manager;return n?n.get(e):e}function ye(){me.apply(this,arguments)}function be(){ye.apply(this,arguments),this.pX=null,this.pY=null}function we(){ye.apply(this,arguments)}function Me(){me.apply(this,arguments),this._timer=null,this._input=null}function xe(){ye.apply(this,arguments)}function Se(){ye.apply(this,arguments)}function Oe(){me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ae(e,t){return(t=t||{}).recognizers=x(t.recognizers,Ae.defaults.preset),new ke(e,t)}me.prototype={defaults:{},set:function(e){return c(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=ve(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=ve(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===E(t,e=ve(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=ve(e,this);var t=E(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=c({},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(){}},b(ye,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}}),b(be,ye,{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,s=e.deltaX,i=e.deltaY;return o&t.direction||(6&t.direction?(o=0===s?1:s<0?2:4,n=s!=this.pX,r=Math.abs(e.deltaX)):(o=0===i?1:i<0?8:16,n=i!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return ye.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=_e(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(we,ye,{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)}}),b(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)))}}),b(xe,ye,{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)}}),b(Se,ye,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return be.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=_e(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(Oe,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 s=!this.pTime||e.timeStamp-this.pTime<t.interval,i=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,i&&s?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))}}),Ae.VERSION="2.0.7",Ae.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[xe,{enable:!1}],[we,{enable:!1},["rotate"]],[Se,{direction:6}],[be,{direction:6},["swipe"]],[Oe],[Oe,{event:"doubletap",taps:2},["tap"]],[Me]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function ke(e,t){var n;this.options=c({},Ae.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:U?se:P?ae:K))(n,W),this.touchAction=new ge(this,this.options.touchAction),Le(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 Le(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,(function(o,s){n=z(r.style,s),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}ke.prototype={set:function(e){return c(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 s=0;s<r.length;)n=r[s],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),s++}},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=E(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(L(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(L(e),(function(e){t?n[e]&&n[e].splice(E(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=s.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&&Le(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Ae,{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:ke,Input:I,TouchAction:ge,TouchInput:se,MouseInput:K,PointerEventInput:ee,TouchMouseInput:ae,SingleTouchInput:ne,Recognizer:me,AttrRecognizer:ye,Tap:Oe,Pan:be,Swipe:Se,Pinch:we,Rotate:xe,Press:Me,on:S,off:O,each:h,merge:y,extend:v,assign:c,inherit:b,bindFn:w,prefixed:z}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Ae,void 0===(r=function(){return Ae}.call(t,n,t,e))||(e.exports=r)}(window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(485);t.default=r.default},function(e,t,n){var r=n(1120);"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,"/* ==========================================================================\n Table Row\n ========================================================================== */\n.table-row--loading {\n pointer-events: none; }\n .table-row--loading .table-row__cell--loading {\n padding: 5px; }\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 height: 100%;\n position: relative; }\n\n.hammerjs-wrapper {\n user-select: auto !important; }\n\n@media (max-width: 800px) {\n .table-row__loader-wrapper {\n min-height: 50px; } }\n",""])},function(e,t,n){var r=n(1122);"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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1124);t.TableSkeleton=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=function(e){return Array(e).fill(null).map((function(e,t,n){return a.createElement("td",{key:t,className:"sg-table__cell sg-table__cell--height-medium"},a.createElement("div",{className:"sg-table__cell--skeleton"}))}))},l=function(e){var t=e.columnLength,n=e.rowLength,r=e.tableHead,o=Array(n).fill(null);return a.createElement("table",{className:"sg-table"},r,o.map((function(e,n){return a.createElement("tr",{key:n,className:"sg-table__row"},c(t))})))};l.defaultProps={"data-e2e":"table-cell","data-component":"table-cell",rowLength:5,tabIndex:-1},t.default=l,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-skeleton/table-skeleton.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-skeleton/table-skeleton.tsx"),s.register(c,"generagteCells","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-skeleton/table-skeleton.tsx"),s.register(l,"TableSkeleton","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-skeleton/table-skeleton.tsx"),i(e))}).call(this,n(1)(e))},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,'/* ==========================================================================\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-dark);\n font-family: var(--font-family-component);\n font-weight: 500;\n font-size: var(--typography-table-label-size);\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.sg-table__cell--skeleton {\n background-color: var(--background-component-secondary);\n height: 14px; }\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: var(--font-family-component);\n font-weight: 500;\n font-size: var(--typography-table-label-size);\n line-height: 16px;\n color: var(--typography-dark);\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',""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l,u,d=c(n(2)),p=n(9),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.createMobileColumnsOptions=function(e,t,n){if(!e)return e;var r=p.deepclone(e);if(t)return r;var o={width:"100%",flexWrap:"nowrap"},s={flexShrink:0},a=r[0],c=r.pop(),l=a.render?a.render:function(e){return e},u=c.render?c.render:function(e){return e};return delete a.header,a.style=i({fontWeight:"bold"},a.style),a.render=function(e,t){return n?d.createElement(p.Flex,{justify:"space-between",align:"center",style:o},d.createElement(p.Title,{level:"4",density:"none",truncate:!0},l(e,t)),d.createElement("div",{style:s},u(t[c.accessor],t))):l(e,t)},r},t.createDesktopColumnsOptions=function(e,t,n){if(!e)return e;var r=p.deepclone(e),o=r[r.length-1];return o.style=i({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,s=n.disableMobileArrange,c=n.hasMenu,l=n.onMouseOver,u=a(n,["columns","data","disableMobileArrange","hasMenu","onMouseOver"]),f=t.createMobileColumnsOptions(r,s,e.isPhone),g=t.createDesktopColumnsOptions(r,o,c);return e.isPhone?d.createElement(p.Table,i({data:o,columns:f},u)):d.createElement(p.Table,i({data:o,columns:g,onMouseOver:l},u))},t.contextType=p.Context,t.defaultProps={hasMenu:!0,"data-e2e":"action-table"},t}(d.Component);t.default=f,l=n(0).default,u=n(0).leaveModule,l&&(l.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(d,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),l.register(f,"ActionTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/action-table.tsx"),u(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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=a(n(1128)),u=n(48),d=n(215),p=n(468),f=a(n(1129)),g=a(n(214)),m=a(n(1132)),h=a(n(489));n(493);var _,v,y=function(e){var t=c.useContext(u.Context).device,n=e.columns,r=e.data,i=e.onCellSelection,a=e.selectedColumns,m=s(e,["columns","data","onCellSelection","selectedColumns"]),_=n.map((function(e){return o({},e)})),v=_.shift();return t.isPhone?c.createElement(l.default,o({},m),_.map((function(e,t){return c.createElement("div",{key:e.accessor,className:"sg-product-table"+(a.includes(t+1)?" sg-product-table--selected":"")},c.createElement(f.default,{border:"none",padding:"medium",className:"sg-table__head-tile"},e.renderHead?e.renderHead:e.header),r.map((function(n){return c.createElement(d.Flex,{className:"sg-product-table__row",key:n.accessor,padding:["none","medium"],background:"white"},c.createElement(d.Box,{xs:"8",flex:!0,align:"center",justify:"flex-start"},v.render?v.render(n[v.accessor],n,v.accessor,t+1):n[v.accessor]),c.createElement(d.Box,{xs:"4",flex:!0,align:"center",justify:"center",style:{textAlign:"right"}},c.createElement(p.Grid,{padding:["medium","none"]},e.render(n[e.accessor],n,e.accessor,t+1))))})),e.footer&&c.createElement(g.default,{background:"light",justify:"center"},e.footer(t+1)))}))):c.createElement(h.default,o({className:"sg-product-table",mobileLayout:"row",data:r,columns:n,onCellSelection:i,selectedColumns:a},m))};y.defaultProps={selectedColumns:[]},t.default=m.default(y),_=n(0).default,v=n(0).leaveModule,_&&(_.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(l,"carousel_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(f,"index_2","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(g,"toolbar_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(m,"index_3","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(h,"table_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),_.register(y,"ProductTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/table/table-types/product-table.tsx"),v(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(451);t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(494);t.default=r.default},function(e,t,n){var r=n(1131);"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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(138);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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=a(n(7)),p=a(n(8)),f=a(n(11)),g=a(n(202)),m=a(n(28)),h=function(e){switch(e.key){case f.default.SPACE:case f.default.ENTER:e.preventDefault(),e.stopPropagation(),e.target.click()}},_=u.forwardRef((function(e,t){var n=e.active,r=e.disabled,i=e.className,a=e.children,c=e.padding,l=e.tabIndex,f=e["data-e2e"],_=e["data-component"],v=s(e,["active","disabled","className","children","padding","tabIndex","data-e2e","data-component"]),y=d.default("sg-tabs__tab",n&&"sg-tabs__tab--active",r&&"sg-tabs__tab--disabled",m.default(c),i);return u.createElement(g.default,o({tag:"li",ref:t,className:y,tabIndex:l,"data-e2e":f,"data-component":_,role:"tab","aria-selected":n,"aria-controls":"panel-"+l},p.default(v),{onKeyDown:h}),a)}));_.displayName="Tab",_.defaultProps={tabIndex:-1,"data-e2e":"tab","data-component":"tab"},t.default=_,c=n(0).default,l=n(0).leaveModule,c&&(c.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(d,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(p,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(f,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(g,"ripple_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(m,"with_padding_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(h,"handleKeyDown","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.tsx"),c.register(_,"Tab","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tab.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,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=c(n(2)),d=l(n(7)),p=n(55),f=n(35),g=n(66),m=l(n(8)),h=l(n(11)),_=l(n(24));n(1135);var v,y,b=function(e){function t(t){var n=e.call(this,t)||this;return n.onKeyDown=function(e){var t=g.getFocusableElement(n.tabsRef,{isDirectionForward:!0}),r=g.getFocusableElement(n.tabsRef,{isDirectionForward:!1});switch(e.key){case h.default.RIGHT:case h.default.DOWN:if(r===e.target)return;return e.target===n.tabsRootRef&&p.focusDomElement(t),void f.focusNextComponent({event:e});case h.default.LEFT:case h.default.UP:if(t===e.target)return;return e.target===n.tabsRootRef&&p.focusDomElement(r),void f.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=u.createRef(),n.tabsWrapperRef=u.createRef(),n.tabsRef=u.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 s(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,s=t.border,c=t.size,l=t.tabIndex,p=t["data-e2e"],f=t["data-component"],g=t["aria-label"],h=a(t,["activeColor","className","children","border","size","tabIndex","data-e2e","data-component","aria-label"]),v=d.default("sg-tabs-wrapper",s&&"sg-tabs-wrapper--border-"+s,r),y=d.default("sg-tabs","sg-tabs--background-transparent","sg-tabs--"+c,n&&"sg-tabs--active-color-"+n),b=this.state.hasArrows;return u.createElement("div",i({ref:function(t){e.tabsRootRef=t},className:v,"data-e2e":p,"data-component":f,tabIndex:l},m.default(h),{onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseUp,onTouchStart:this.onMouseDown,onTouchMove:this.onMouseMove,onTouchEnd:this.onMouseUp,onKeyDown:this.onKeyDown}),b&&u.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--start",onClick:function(){return e.translateTabs(40)}},u.createElement(_.default,{name:"arrow-left-thin",size:"10"})),u.createElement("div",{className:"sg-tabs_container",ref:function(t){e.tabsWrapperRef=t}},u.createElement("ul",i({className:y,ref:function(t){e.tabsRef=t},role:"tablist","aria-label":g},h),o)),b&&u.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--end",onClick:function(){return e.translateTabs(-40)}},u.createElement(_.default,{name:"arrow-right-thin",size:"10"})))},t.defaultProps={activeColor:"sky",size:"medium",tabIndex:0,"data-e2e":"tabs","data-component":"tabs"},t}(u.Component);t.default=b,v=n(0).default,y=n(0).leaveModule,v&&(v.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(l,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(d,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(m,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(h,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(_,"index_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),v.register(b,"Tabs","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tabs/tabs.tsx"),y(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1136);"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,'/* ==========================================================================\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: inherit; }\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-family: var(--font-family-component);\n font-weight: 500;\n font-size: 12px;\n line-height: 16px; }\n\n.sg-tabs--medium {\n font-family: var(--font-family-component);\n font-weight: 600;\n font-size: 14px;\n line-height: 20px; }\n\n.sg-tabs--large {\n font-family: var(--font-family-component);\n font-weight: 600;\n font-size: 16px;\n line-height: 24px; }\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',""])},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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=a(n(7)),u=a(n(8)),d=a(n(1138));n(1139);var p,f,g=function(e){var t=e.className,n=e.background,r=e.onRefsReady,i=e.tabIndex,a=e["data-e2e"],d=e["data-component"],p=s(e,["className","background","onRefsReady","tabIndex","data-e2e","data-component"]),f=l.default(t,"sg-textarea",n&&"sg-textarea--background-"+n);return c.createElement("textarea",o({ref:function(e){r&&r(e)},className:f,"data-e2e":a,"data-component":d,tabIndex:i},u.default(p)))},m=d.default(g);m.displayName="Textarea",g.defaultProps={tabIndex:0,"data-e2e":"textarea","data-component":"textarea"},t.default=m,p=n(0).default,f=n(0).leaveModule,p&&(p.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(l,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(u,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(d,"with_form_field_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(g,"Textarea","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),p.register(m,"WrappedTextarea","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/textarea/textarea.tsx"),f(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(466);t.default=r.default},function(e,t,n){var r=n(1140);"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,".sg-field-wrapper .sg-textarea {\n height: auto; }\n\n.sg-textarea {\n font-size: 14px;\n line-height: 22px; }\n\n/* Backgrounds\n ========================================================================== */\n.sg-textarea.sg-textarea--background-light {\n background-color: var(--background-main); }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(2)),u=c(n(7)),d=n(209),p=c(n(11)),f=c(n(145)),g=c(n(98)),m=c(n(210)),h=c(n(24)),_=c(n(114)),v=c(n(64)),y=c(n(1142));n(1145);var b,w,M=function(e){function t(t){var n=e.call(this,t)||this;return n.handleHourKeyDown=function(e){switch(e.key){case p.default.SPACE:case p.default.ENTER:return e.preventDefault(),void e.stopPropagation();case p.default.UP:case p.default.RIGHT:return void n.handleHourIncrease();case p.default.DOWN:case p.default.LEFT:return void n.handleHourDecrease();default:return}},n.handleMinuteKeyDown=function(e){switch(e.key){case p.default.SPACE:case p.default.ENTER:return e.preventDefault(),void e.stopPropagation();case p.default.UP:case p.default.RIGHT:return void n.handleMinuteIncrease();case p.default.DOWN:case p.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 s(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 d.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=d.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),s=void 0!==t?t:o.getHours(),i=void 0!==n?n:o.getMinutes(),a=+new Date(o.getFullYear(),o.getMonth(),o.getDate(),s,i,0);this.setState({selectedTime:a})},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=d.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():"",s=u.default("sg-time-picker__input",t&&"sg-time-picker__input--disabled"),a=u.default("sg-time-picker__field",t&&"sg-time-picker__field--disabled");return l.createElement(_.default,i({className:s,fieldClassName:a,value:o,prefix:l.createElement(h.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!==p.default.SPACE&&t.key!==p.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=u.default("sg-time-picker",r);return t?l.createElement(m.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 l.createElement(l.Fragment,null,l.createElement(g.default,{onClick:this.closeTimePicker,"data-e2e":"timepicker-cancel-button"},t.cancelButton),l.createElement(g.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(),s=this.props.ariaProps;return l.createElement("div",{className:"sg-time-picker__content sg-time-picker__content--flex","data-e2e":"timepicker-clock",role:"group"},l.createElement("div",{className:"sg-time-picker__column"},l.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":s.ariaLabelHours,"aria-live":"polite"},n),l.createElement(y.default,{color:"secondary",style:{order:0},onClick:this.handleHourIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},l.createElement(h.default,{name:"arrow-up",size:"16"})),l.createElement(y.default,{color:"secondary",style:{order:2},onClick:this.handleHourDecrease,"data-e2e":"timepicker-hour-decrease",role:"presentation","aria-hidden":"true"},l.createElement(h.default,{name:"arrow-down",size:"16"}))),l.createElement("div",{className:"sg-time-picker__column sg-time-picker__column--justify-center"},":"),l.createElement("div",{className:"sg-time-picker__column"},l.createElement(y.default,{color:"secondary",onClick:this.handleMinuteIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},l.createElement(h.default,{name:"arrow-up",size:"16"})),l.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":s.ariaLabelMinutes,"aria-live":"assertive"},r),l.createElement(y.default,{color:"secondary",onClick:this.handleMinuteDecrease,"data-e2e":"timepicker-minute-decrease",role:"presentation","aria-hidden":"true"},l.createElement(h.default,{name:"arrow-down",size:"16"}))),t&&l.createElement("div",{className:u.default("sg-time-picker__column","sg-time-picker__column--justify-center","sg-time-picker__column--margin-start")},l.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 l.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-hour"},r.map((function(n){var r=t===n,o=u.default("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return l.createElement("span",{key:n,ref:function(e){return r&&f.default(e,{block:"center"})},"data-e2e":"timepicker-hours"},l.createElement(v.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 l.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-minutes"},n.map((function(n){var r=t===n,o=u.default("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return l.createElement("span",{key:n,ref:function(e){return r&&f.default(e,{block:"center"})},"data-e2e":"timepicker-minute"},l.createElement(v.default,{className:o,weight:"bold",onClick:function(){return e.handleMinuteSelection(n)}},n.toString().padStart(2,"0")))})))},t.prototype.render=function(){return l.createElement(l.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}(l.Component);t.default=M,b=n(0).default,w=n(0).leaveModule,b&&(b.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(c,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(u,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(p,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(f,"scroll_to_element_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(g,"button_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(m,"dialog_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(h,"index_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(_,"index_2","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(v,"text_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(y,"time_picker_button_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/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/@siteground/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/@siteground/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/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),b.register(M,"TimePicker","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker.tsx"),w(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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=a(n(7));n(1143);var u,d,p=function(e){var t=e.color,n=e.children,r=e.className,i=e.background,a=e.size,u=e.tabIndex,d=s(e,["color","children","className","background","size","tabIndex"]),p=l.default("sg-time-picker-button",t&&"sg-time-picker-button--color-"+t,i&&"sg-time-picker-button--background-"+i,"sg-time-picker-button--size-"+a,r);return c.createElement("button",o({className:p,type:"button",tabIndex:u},d),n)};p.defaultProps={size:"large",tabIndex:-1},t.default=p,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/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(l,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),u.register(p,"TimePickerButton","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/time-picker/time-picker-button/time-picker-button.tsx"),d(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1144);"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,"/* ==========================================================================\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: var(--font-family-component);\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",""])},function(e,t,n){var r=n(1146);"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,"/* ==========================================================================\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",""])},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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(2)),u=c(n(7)),d=n(55),p=c(n(8)),f=c(n(11)),g=c(n(24));n(1148);var m,h,_=function(e,t){if(!e)return null;e.children&&e.children[t]&&d.focusDomElement(e.children[t])},v=function(e){var t=e.event,n=e.timelineRef,r=e.focusIndex,o=e.timelineLength,s=e.onChange;switch(t.key){case f.default.LEFT:var i=Math.min(Math.max(r-1,0),o);_(n.current,i);break;case f.default.RIGHT:var a=Math.min(Math.max(r+1,0),o);_(n.current,a);break;case f.default.ENTER:case f.default.SPACE:s(r+1)}},y=function(e){var t=e.activeStep,n=e.className,r=e.onChange,a=e.steps,c=e.tabIndex,d=e["data-e2e"],f=e["data-component"],m=e["aria-label"],h=s(e,["activeStep","className","onChange","steps","tabIndex","data-e2e","data-component","aria-label"]),_=l.useRef(null),y=i(l.useState(-1),2),b=y[0],w=y[1],M=u.default("sg-timeline",n),x=a.map((function(e,n){var s=n+1,i=s<=t,c=u.default("sg-timeline__item",i&&"sg-timeline__item--active",s===t&&"sg-timeline__item--bold",s>a.length&&"sg-timeline__item--bold");return l.createElement("li",o({key:n,className:c,tabIndex:-1},p.default(h),{onClick:i?function(){return r(s)}:null,onFocus:function(){return w(n)},"data-e2e":"timeline-step"}),l.createElement("div",{className:"sg-timeline__top-row"},s<t?l.createElement("span",{className:"sg-timeline__step","aria-hidden":"true"},l.createElement(g.default,{name:"check",size:"12"})):l.createElement("span",{className:"sg-timeline__step","aria-hidden":"true"},s)),l.createElement("div",{className:"sg-timeline__bottom-row"},l.createElement("span",{className:"sg-timeline__text"},a[n])))}));return l.createElement("ul",{ref:_,className:M,tabIndex:c,"data-e2e":d,role:"timeline","aria-label":m,"data-component":f,onKeyDown:function(e){return v({event:e,timelineRef:_,focusIndex:b,timelineLength:x.length,onChange:r})}},x)};y.defaultProps={onChange:function(){},tabIndex:0,"data-e2e":"timeline","data-component":"timeline"},t.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/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(i,"__read","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(c,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(u,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(p,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(f,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(g,"index_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(_,"focusItem","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(v,"handleKeyDown","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),m.register(y,"Timeline","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/timeline/timeline.tsx"),h(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1149);"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,'.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 color: var(--typography-white); }\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-dark);\n background: var(--color-disabled);\n font-family: var(--font-family-component);\n font-weight: 700; }\n',""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=c(n(2)),d=l(n(7)),p=l(n(8)),f=l(n(1151));n(1154);var g,m,h=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=u.createRef(),n.flattenNodes(t.nodes),n.unserializeLists({checked:t.checked,expanded:t.expanded}),n}return s(t,e),t.prototype.getFormattedNodes=function(e){var t=this;return e.map((function(e){var n=i({},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,s=o.disabled,i=o.noCascade,a=o.optimisticToggle,c=o.collapsedIcon,l=o.expandedIcon,d=o["data-component"],p=e.map((function(e){var o=""+e.value,p=r.getCheckState(e,i),g=r.renderChildNodes(e),m=r.getDisabledState(e,t,s,i);return u.createElement(f.default,{key:o,checked:p,disabled:m,depth:n,expanded:e.expanded,label:e.label,forceShowToggleIcon:e.forceShowToggleIcon,entity:e.entity,optimisticToggle:a,rawChildren:e.children,value:e.value,showCheckbox:e.showCheckbox,onCheck:r.onCheck,onExpand:r.onExpand,collapsedIcon:c,expandedIcon:l,parentRootRef:r.rootRef.current,htmlAttributes:e.htmlAttributes,"data-component":d+"-node"},g)}));return u.createElement("ol",{className:"sg-tree__list"},p)},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),s=this.props,c=s.className,l=s.tabIndex,f=s["data-e2e"],g=s["data-component"],m=a(s,["className","tabIndex","data-e2e","data-component"]),h=d.default("sg-tree",c);return u.createElement("div",i({ref:this.rootRef,className:h,"data-e2e":f,"data-component":g,tabIndex:l,role:"tree"},p.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}(u.PureComponent);t.default=h,g=n(0).default,m=n(0).leaveModule,g&&(g.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(l,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(d,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(p,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(f,"tree_node_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),g.register(h,"Tree","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree.tsx"),m(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(2)),u=n(35),d=n(67),p=a(n(11)),f=c(n(203)),g=c(n(26));n(1152);var m,h,_=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,s=e.optimisticToggle,i=e.rawChildren,a=!1;0===n&&(a=!0),2===n&&(a=s),(0,e.onCheck)({value:o,checked:a,entity:r,children:i})},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"],s=n.parentRootRef;if(p.isEventFromTab(e))u.focusNextComponent({event:e,startingElement:s});else if(p.isEventFromShiftPlusTab(e))u.focusNextComponent({event:e,isDirectionForward:!1,startingElement:s});else{var i=document.querySelectorAll('[data-component="'+o+'"]');switch(e.key){case p.default.DOWN:return e.preventDefault(),e.stopPropagation(),void u.focusNextComponent({event:e,includeChildren:!0,onComponentFiltering:function(e){return e.getAttribute("data-component")===o}});case p.default.UP:return e.preventDefault(),e.stopPropagation(),void u.focusNextComponent({event:e,includeChildren:!0,isDirectionForward:!1,onComponentFiltering:function(e){return e.getAttribute("data-component")===o}});case p.default.LEFT:if(e.preventDefault(),e.stopPropagation(),!r)return;return t.onExpand();case p.default.RIGHT:if(e.preventDefault(),e.stopPropagation(),r)return;return t.onExpand();case p.default.ENTER:case p.default.SPACE:return e.preventDefault(),e.stopPropagation(),t.onCheck();case p.default.END:var a=i&&i[i.length-1];return void u.focusNextComponent({event:e,isDirectionForward:!0,onComponentFiltering:function(e){return e===a}});case p.default.HOME:var c=i&&i[0];return void u.focusNextComponent({event:e,isDirectionForward:!1,onComponentFiltering:function(e){return e===c}})}}},t}return s(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?l.createElement(g.default,{name:t?r:o,size:"10",color:"light",onClick:this.onExpand,"data-e2e":"tree-node-expand"}):l.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,s=e.value,i=e.showCheckbox,a=d.cn("sg-tree-node__label");return l.createElement("label",{className:a,role:"treeitem",onDoubleClick:this.onExpand,"data-e2e":"tree-node-label"},i&&l.createElement(f.default,{className:"sg-tree-node__checkbox",value:s,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,s=e.checked,a=e.expanded,c=e.htmlAttributes,u=e.tabIndex,p=e["data-e2e"],f=e["data-component"],g=d.cn("sg-tree-node",n&&"sg-tree-node--disabled",t);return l.createElement("li",i({className:g,style:{paddingLeft:20*r+"px"},tabIndex:u,role:"treeitem","aria-checked":o?Boolean(s):void 0,"aria-expanded":a,"data-e2e":p,"data-component":f,onKeyDown:this.handleKeyDown},c),l.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}(l.Component);t.default=_,m=n(0).default,h=n(0).leaveModule,m&&(m.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(c,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(p,"keys_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(f,"checkbox_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(g,"icon_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),m.register(_,"TreeNode","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/tree/tree-node/tree-node.tsx"),h(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1153);"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,"/* ==========================================================================\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 flex: 1 0 0;\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.sg-tree-node__checkbox {\n padding: 0 15px 0 0; }\n",""])},function(e,t,n){var r=n(1155);"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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(54),d=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=u.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 s(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=d,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/web-notification/web-notification.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/web-notification/web-notification.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/web-notification/web-notification.tsx"),a.register(d,"WebNotification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/web-notification/web-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=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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=a(n(135)),p=a(n(8)),f=function(e){var t=e.link,n=s(e,["link"]);return u.createElement("span",o({},p.default(n)),t)};t.default=d.default(f,{preventTooltipOnMobile:!0}),c=n(0).default,l=n(0).leaveModule,c&&(c.register(o,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(d,"with_tooltip_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(p,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),c.register(f,"SGTooltip","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/sg-tooltip/sg-tooltip.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1159);t.default=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=c(n(2)),d=n(67),p=l(n(24)),f=l(n(136));n(1160);var g,m,h={success:"success",warning:"warning",error:"error"},_=function(e){var t;return(t=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=d.cn("sg-rules-box__hint-icon",t&&"sg-rules-box__hint-icon--"+t);return u.createElement("div",{className:"sg-rules-box__hint",key:n},u.createElement(p.default,{name:h[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=d.cn("sg-rules-box__hints",e.getSemanticScore()&&"sg-rules-box__hints--"+e.getSemanticScore());return u.createElement("div",{className:t},u.createElement(f.default,{level:"6",density:"cozy"},e.props.translation.title),u.createElement("div",{className:"sg-rules-box__meter"}),e.renderHints())},e}return s(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=a(t,["className"]),o=(r.rules,r.dispatch,r.onChange,a(r,["rules","dispatch","onChange"])),s=d.cn("sg-rules-box","sg-rules-box--custom-validation",n);return u.createElement(e,i({validationMessageTemplate:this.renderStrengthMeter,className:s,onChange:this.onChangeHandler},o))},n}(u.Component)).defaultProps={rules:[],translation:{title:"Recommendations"}},t};t.default=_,g=n(0).default,m=n(0).leaveModule,g&&(g.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(l,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(p,"icon_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(f,"title_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(h,"ICON","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),g.register(_,"withFieldRules","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/with-field-rules/with-field-rules.tsx"),m(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1161);"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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1163);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)},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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=a(n(7)),u=a(n(8)),d=a(n(26)),p=a(n(38));n(1164);var f,g,m={success:"success",error:"error",warning:"warning",info:"information",instruction:"information",hint:"information"},h=function(e){var t=e.children,n=e.className,r=e.density,i=e.title,a=e.type,f=e.tabIndex,g=e["data-e2e"],h=e["data-component"],_=s(e,["children","className","density","title","type","tabIndex","data-e2e","data-component"]),v=l.default("sg-banner-notice",a&&"sg-banner-notice--type-"+a,r&&"sg-banner-notice--density-"+r,n),y=l.default("sg-banner-notice__content"),b=t?"compact":"none";return c.createElement("div",o({className:v,"data-e2e":g,"data-component":h,tabIndex:f,role:"alert","aria-live":"assertive"},u.default(_)),c.createElement(d.default,{name:m[a],size:"20",className:"sg-banner-notice__icon",color:"white"}),c.createElement("div",{className:y},i&&c.createElement(p.default,{level:"6",density:b,className:"sg-banner-notice__title",color:"white",weight:"medium"},i),t))};h.defaultProps={density:"medium",type:"hint",tabIndex:0,"data-e2e":"banner-notification","data-component":"banner-notification"},t.default=h,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/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(s,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(l,"classnames_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(u,"get_html_props_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(d,"icon_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(p,"title_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(m,"icons","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),f.register(h,"BannerNotification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/banner-notification/banner-notification.tsx"),g(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,"/* ==========================================================================\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",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(2)),i=n(67),a=n(9);n(1167);var c,l,u={success:"check",warning:"product-clock",error:"cross",attention:"presentational-attention",exclamation:"exclamation-mark",loading:"loader"},d={success:"40",warning:"64",error:"40",attention:"110",exclamation:"50"},p={success:"grassy",warning:"sunset",error:"error",attention:"sunset",exclamation:"mango"},f=function(e){var t=e.children,n=e.className,r=e.description,o=e.status,c=e.title,l=s.useContext(a.Context).device,f=i.cn("status-box",o&&"status-box--"+o,n),g=i.cn("status-box-icon-wrapper",o&&"status-box-icon-wrapper--"+o),m=l.isPhone?"medium":"xx-large";return s.createElement(a.Container,{padding:m,className:f,tabIndex:0},s.createElement("div",{className:"status-box-wrapper"},s.createElement("div",{className:"status-box-icon-background"},s.createElement("div",{className:g},s.createElement(a.Icon,{name:u[o],size:d[o],color:p[o],multicolor:!p[o],className:"status-box-icon"}))),s.createElement(a.Title,{align:"center",color:"darker",weight:"regular",className:"status-box-title"},c),r&&s.createElement(a.Text,{align:"center",color:"dark",size:"large",className:"status-box-description"},r),t))};f.defaultProps={status:"success"},f.displayName="StatusBox",t.default=f,c=n(0).default,l=n(0).leaveModule,c&&(c.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(s,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(u,"icon","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(d,"iconSize","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(p,"iconColor","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),c.register(f,"StatusBox","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/node_modules/@siteground/styleguide/lib/components/status-box/status-box.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1168);"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,".status-box {\n margin-top: 45px; }\n .status-box--attention {\n margin-top: 0; }\n\n.status-box-wrapper {\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n align-items: center; }\n\n.status-box--loading .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%23cba871' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%23cba871' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%23cba871' fill-opacity= '0' /></svg>\"); }\n\n.status-box--loading .status-box-icon {\n color: var(--grassy-base); }\n\n.status-box--success .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%2373c04f' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%2373c04f' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%2373c04f' fill-opacity= '0' /></svg>\"); }\n\n.status-box--attention .status-box-icon-background,\n.status-box--warning .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%23eca03e' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%23eca03e' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%23eca03e' fill-opacity= '0' /></svg>\"); }\n\n.status-box--error .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%23f54545' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%23f54545' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%23f54545' fill-opacity= '0' /></svg>\"); }\n\n.status-box--exclamation .status-box-icon-background {\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 13 14'><polygon points= '1.5 0 0 1.8 1.5 3.6 3 1.8 1.5 0 1.5 0' fill= '%23cba871' /><polygon points= '11.5 0 10 1.8 11.5 3.6 13 1.8 11.5 0 11.5 0' fill= '%23cba871' fill-opacity= '0' /><polygon points= '1.5 10.4 0 12.2 1.5 14 3 12.2 1.5 10.4 1.5 10.4' fill= '%23cba871' fill-opacity= '0' /></svg>\"); }\n\n.status-box-icon-background {\n position: relative;\n display: flex;\n justify-content: center;\n min-width: 400px;\n height: 70px;\n background-size: 15px; }\n .status-box-icon-background::after {\n position: absolute;\n bottom: 0;\n right: 0;\n display: block;\n content: \" \";\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 0 30px 30px;\n border-color: transparent transparent var(--background-component-primary) transparent; }\n\n.status-box-icon-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n width: 100px;\n height: 100px;\n margin-top: -30px;\n background-color: var(--background-component-secondary); }\n .status-box-icon-wrapper--loading {\n background-color: var(--background-component-primary); }\n .status-box-icon-wrapper--attention {\n margin-top: -15px;\n width: 110px;\n height: 110px;\n background-color: transparent; }\n\n.status-box-title {\n margin-top: 15px; }\n\n.status-box-description {\n padding-bottom: 30px;\n max-width: 800px; }\n\n.status-box--token-button {\n width: 100%; }\n\n.status-box__grid {\n grid-template-columns: auto auto auto; }\n\n@media (max-width: 800px) {\n .status-box {\n padding: 60px 20px 20px;\n margin-top: 30px; }\n .status-box--attention {\n margin-top: 0; }\n .status-box-icon-background {\n min-width: 100%; } }\n\n.status-box--buttons-box > .border-box {\n flex: 1 1; }\n .status-box--buttons-box > .border-box:not(first-child) {\n margin-left: 30px; }\n\n@media (max-width: 800px) {\n .status-box--buttons-box {\n flex-direction: column; }\n .status-box--buttons-box > .border-box:not(first-child) {\n margin-left: 0;\n margin-top: 30px; } }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=o(n(37));t.onPageInit=a.createAction(c.PAGE_INIT),t.onPageResize=a.createAction(c.PAGE_RESIZE),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/actions/device.ts"),s.register(c,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/actions/device.ts"),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=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)},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=s(n(2)),l=n(10),u=n(46),d=n(9),p=n(1171),f=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=u.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]}))),c.createElement(d.Section,{className:n},c.createElement(d.Flex,{gutter:"medium",direction:"row",justify:"space-between",align:"center",wrap:"nowrap",padding:["responsive","none"]},c.createElement(d.TitleOne,{density:"none"},l.translate("SiteGround Optimizer"))),void 0!==t&&c.createElement(d.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)?c.createElement("div",{className:"label-wrapper--absolute"},c.createElement(d.Label,{size:"small",color:"success"},"New feature")):void 0}},Object.keys(t).map((function(n){return"default"==t[n].type?c.createElement(p.DefaultCard,o({},t[n],{key:n,onClick:e.enableOption})):"optimizations"==t[n].type?c.createElement(p.OptimizationsCard,o({},t[n],{key:n,onClick:e.enableOption})):void 0}))))};t.default=f,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(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/intro/index.tsx"),i.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/intro/index.tsx"),i.register(f,"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(1172);t.DefaultCard=r.default;var o=n(1173);t.OptimizationsCard=o.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(9),l=function(e){return a.createElement(c.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(c.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,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/default.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/default.tsx"),s.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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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"},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/optimizations.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/cards/optimizations.tsx"),s.register(u,"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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(25),d=n(16),p=n(9),f=n(10),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(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(p.Section,null,l.createElement(p.Container,{padding:"large",style:{position:"relative"}},l.createElement(p.Flex,{gutter:"xx-large",expand:!0},l.createElement(p.Box,{sm:"3",flex:!0,align:"center",justify:"center",className:"sg-rate--stars"},l.createElement(p.Link,{href:"https://wordpress.org/support/plugin/sg-cachepress/reviews/?rate=5#new-post",target:"_blank",style:{width:"100%"}},l.createElement(p.StarRating,{rating:5,size:"large",style:{width:"100%"}}))),l.createElement(p.Box,{sm:"9"},l.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},f.translate("Thanks for using SiteGround Optimizer to make your site faster!")),l.createElement(p.Link,{href:"https://wordpress.org/support/plugin/sg-cachepress/reviews/?rate=5#new-post",target:"_blank",style:{paddingBottom:"10px"}},f.translate("Help more people optimize their sites by rating our plugin."))),l.createElement(p.Button,{size:"small",type:"link",style:{color:"#a4a4a4",position:"absolute",top:"10px",right:"20px"},onClick:function(t){return e.props.hideRating()}},f.translate("Don’t Show This Again")))))},t}(l.Component),m=function(e){return{hideRatingOption:e.Options.hide_rating}},h=function(e){return{hideRating:function(){return e(d.hideRating())}}};t.default=u.connect(m,h)(g),a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(g,"Rating","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(m,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.tsx"),a.register(h,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/rating/index.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,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=a(n(2)),d=n(25),p=n(9),f=n(495),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return u.createElement(p.Notifications,i({},this.props),this.props.notifications&&this.props.notifications.map((function(e){return u.createElement(f.Notification,{notification:e,message:e.message,key:e.id})})))},t}(u.Component),m=function(e){return{notifications:e.Notifications.notifications}},h=function(e){return{}};t.default=d.connect(m,h)(g),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(a,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(g,"Notifications","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(m,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notifications.tsx"),c.register(h,"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,s=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)}),i=this&&this.__assign||function(){return(i=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)},a=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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l,u,d=c(n(2)),p=n(25),f=n(16),g=n(9),m=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 s(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,a(e,["notification","removeNotification"]));return d.createElement(g.Notification,i({type:t.type,title:t.title,message:t.message,onClose:this.removeNotification},n))},t}(d.Component),h=function(e){return{notifications:e.Notifications.notifications}},_=function(e){return{removeNotification:function(t){return e(f.removeNotification(t))}}};t.default=p.connect(h,_)(m),l=n(0).default,u=n(0).leaveModule,l&&(l.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(i,"__assign","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(a,"__rest","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(c,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(d,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(m,"Notification","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(h,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),l.register(_,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/containers/notifications/notification.tsx"),u(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(9),f=n(16),g=n(10),m=a(n(496)),h=n(149),_=n(100),v=n(68),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 s(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;return u.createElement(u.Fragment,null,u.createElement(v.Row,{title:g.translate("Dynamic Caching"),checked:this.props.options.enable_cache,name:"enable_cache",onChange:this.changeOption,hasExpand:1},g.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&&u.createElement(p.Flex,{padding:["none","responsive","responsive"]},u.createElement(p.Box,{sm:"12"},u.createElement(p.Flex,{background:"light",direction:"column"},u.createElement(p.Flex,{direction:"row",align:"center",padding:["medium","responsive"]},u.createElement(p.Box,{sm:"10"},u.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},g.translate("Manual Cache Purge")),u.createElement(p.Text,null,g.translate("Clear the Dynamic Cache for your entire website."))),u.createElement(p.Box,{sm:"2",className:"right--actions"},u.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",onClick:this.props.purgeCache},this.props.cachePurged?g.translate("Purge Cache"):g.translate("Purging ...")))),u.createElement(p.Flex,{className:"divider"}),u.createElement(v.InnerRow,{title:g.translate("Automatic Cache Purge"),checked:this.props.options.autoflush_cache,name:"autoflush_cache",onChange:this.changeOption},g.translate("Automatically perform a smart cache purge after every content modification."),"  ",u.createElement(p.Link,{onClick:function(t){return e.toogleDialog("showCacheDialog")},"aria-haspopup":"true",role:"button"}," ",g.translate("See rules"))),u.createElement(p.Flex,{className:"divider"}),u.createElement(v.InnerRow,{title:g.translate("Browser-Specific Caching"),checked:this.props.options.user_agent_header,name:"user_agent_header",onChange:this.changeOption},g.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:u.createElement("strong",null)}})),u.createElement(p.Flex,{className:"divider"}),u.createElement(p.Flex,{direction:"row",align:"center",padding:["medium","responsive"]},u.createElement(p.Box,{sm:"12"},u.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},g.translate("Exclude Post Types")),u.createElement(p.Text,null,g.translate("Use this feature to exclude certains types of pages from being cached.")))),u.createElement(p.Flex,{direction:"row",align:"center",padding:["xx-small","responsive","responsive"]},u.createElement(p.Box,{sm:"12"},u.createElement(p.MultipleDropdown,{searchable:!0,name:"post_types_exclude",placeholder:"Please, select the post types you wish to exclude from the list below",options:this.props.options.post_types,optionValue:"value",optionLabel:"title",selectedValue:this.filterSelectedValues(this.props.options.post_types_exclude,this.props.options.post_types),groupBy:"group_title",onChange:function(t,n,r){return e.props.updateExcludes("post_types_exclude",t)}}))),u.createElement(p.Flex,{className:"divider"}),u.createElement(v.InnerRow,{title:g.translate("Excluding URLs")},g.translate("Use this feature if you want to exclude certain parts of your website from being cached and keep them dynamic."),"  ",u.createElement(p.Link,{onClick:function(t){return e.toogleDialog("showUrlsDialog")},"aria-haspopup":"true",role:"button"}," ",g.translate("See examples"))),u.createElement(h.UrlsExclude,{updateExcludeList:this.props.updateExcludeList,excludedUrls:this.props.options.excluded_urls,addNotification:this.props.addNotification,prefix:window.optimizerData.home_url}),u.createElement(p.Flex,{className:"divider"}),u.createElement(m.default,{testUrl:this.props.testUrl,cloudflareTest:0,hasCloudflare:this.props.options.cloudflare_optimization_status,cacheDescription:g.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.")})))),this.state.showUrlsDialog&&u.createElement(_.UrlsDialog,{toogleDialog:function(t){return e.toogleDialog("showUrlsDialog")}}),this.state.showCacheDialog&&u.createElement(_.CacheDialog,{toogleDialog:function(t){return e.toogleDialog("showCacheDialog")}}))},t}(u.Component),b=function(e){return{options:e.Options,cachePurged:e.Cache.cachePurged}},w=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))},updateExcludeList:function(t){return e(f.updateExcludeList(t))},purgeCache:function(){return e(f.purgeCache())},testUrl:function(t,n){return e(f.testUrl(t,n))},addNotification:function(t){return e(f.addNotification(t))},updateExcludes:function(t,n){return e(f.updateExcludes(t,n))}}};t.default=d.connect(b,w)(y),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(m,"cache_tester_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(y,"DynamicCache","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.tsx"),c.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dynamic-cache/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(46),d=n(9),p=n(10),f=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:p.translate("This item already exists in exclude list.")}),!1;if(u.isEmpty(n.state.excludeInputValue))return n.props.addNotification({id:n.state.excludeInputValue+"error",type:"error",message:p.translate("You must input a value.")}),!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:p.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(d.Flex,{gutter:"xx-small"},l.createElement(d.Text,{weight:"bold"},e))}},{header:"",render:function(e,t){return l.createElement(d.IconButton,{icon:"trash",shape:"circle",onClick:function(e){return n.deleteItem(t.value)}})},style:{textAlign:"right"}}]},n.state={excludeInputValue:""},n}return s(t,e),t.prototype.render=function(){var e=this;return l.createElement(d.Grid,{gap:"small",padding:["none","responsive","responsive"]},l.createElement(d.Flex,{direction:"row"},l.createElement(d.Box,{sm:"10"},l.createElement(d.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(d.Box,{sm:"2",className:"right--actions"},l.createElement(d.Button,{color:"secondary",size:"large",type:"outlined",onClick:this.updateExcludeList},this.props.buttonText?this.props.buttonText:p.translate("Exclude")))),this.props.excludedItems.length>0&&l.createElement(d.Flex,{direction:"column"},l.createElement(d.Box,null,l.createElement(d.Table,{data:this.transformExcludedItems(),columns:this.getColumns()}))))},t}(l.Component);t.default=f,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.tsx"),a.register(f,"SimpleExclude","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/simple-exclude.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(9),d=n(10),p=n(1180),f=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:p.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(u.Flex,{gutter:"xx-small"},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.deleteUrl(t.value)}})},style:{textAlign:"right"}}]},n.state={excludeInputValue:""},n}return s(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=p.trailingSlashIt(t)),"/"!==t&&(t="/"+t),-1!==this.props.excludedUrls.indexOf(t)?(this.props.addNotification({id:t,type:"error",message:d.translate("This URL already exists in exclude list.")}),!1):t},t.prototype.render=function(){var e=this;return l.createElement(u.Grid,{gap:"small",padding:["none","responsive","responsive"]},l.createElement(u.Flex,{direction:"row"},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",className:"right--actions"},l.createElement(u.Button,{color:"secondary",size:"large",type:"outlined",onClick:this.updateExcludeList},d.translate("Exclude")))),this.props.excludedUrls.length>0&&l.createElement(u.Flex,null,l.createElement(u.Table,{data:this.transformExcludedUrls(),columns:this.getColumns()})))},t}(l.Component);t.default=f,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),a.register(f,"UrlsExclude","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/exclude/urls-exclude.tsx"),c(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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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"},c.translate("Confirm")))},a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.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,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.translate("If you notice issues with certain functionality, use the Exclude functionality to keep those scripts loading in a render-blocking manner."))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/async-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/async-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Close")))},a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.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,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.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,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.translate("Specific URL Purge on comment actions and page, post, and category updates."))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cache-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cache-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Text,{align:"left"},"manual"==e.type&&c.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&&c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/php-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/php-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:e.toogleConfirm,color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate("{{strong}}You Will be Logged Out !{{/strong}}",{components:{strong:a.createElement("strong",null)}})),a.createElement(l.Text,{align:"left"},c.translate("Bear in mind that you will be logged out and you’ll need to log back in to WordPress when you change this setting."))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/ssl-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/ssl-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Close")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate('You can exclude full or partial URLs using "*" as a wildcard. For example:'))),a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.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:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate('{{strong}}www.site.com/parent-page/*{{/strong}} will exclude all sub-pages of "parent-page".',{components:{strong:a.createElement("strong",null)}}))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/urls-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/urls-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/delete-webp-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/delete-webp-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate("Doing this will delete all WebP files in your uploads folder and generate them anew!"))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/regenerate-webp-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/regenerate-webp-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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"},c.translate("Confirm")))},a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.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,{padding:"x-small"},a.createElement(l.Text,{align:"left"},c.translate("If you notice issues with parts of your site, use the Exclude functionality to keep those scripts separate from the combination."))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/js-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/js-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=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},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/enable-webp-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/enable-webp-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=function(e){return a.createElement(l.Dialog,{state:"warning",size:"large",title:e.title,icon:"edit",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleDialog},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm(e.name)},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{padding:"x-small",align:"flex-start"},a.createElement(l.Box,{sm:"6",align:"flex-start"},a.createElement(l.RadioButton,{key:"ultrafast",value:1,name:e.statusName,size:"medium",onChange:function(t){return e.changeStatus(e.statusName,t)},checked:1==e.status},c.translate("Enabled"))),a.createElement(l.Box,{sm:"6",align:"flex-start"},a.createElement(l.RadioButton,{key:"standard",value:0,name:e.statusName,size:"medium",onChange:function(t){return e.changeStatus(e.statusName,t)},checked:0==e.status},c.translate("Disable")))),a.createElement(l.Flex,{padding:"x-small"},a.createElement(l.Notice,{shadow:!1,type:"instruction",background:"light"},a.createElement(l.Text,{align:"left"},e.message))),1==e.status&&a.createElement(l.Flex,{gutter:"x-small"},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"},c.translate("Select Heartbeat Frequency")))))};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/heartbeat-control-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/heartbeat-control-dialog.tsx"),s.register(u,"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);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=function(e){return a.createElement(l.Dialog,{state:"info",icon:"information",footer:a.createElement("div",null,a.createElement(l.Button,{onClick:e.toogleClose},c.translate("Cancel")),a.createElement(l.Button,{onClick:function(t){return e.toogleConfirm()},color:"primary"},c.translate("Confirm")))},a.createElement(l.Flex,{gutter:"xx-small"},a.createElement(l.Text,{align:"left"},c.translate("Your Cloudflare account may have page rules set that might affect the work of our integration. SiteGround 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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cloudflare-dialog.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/dialogs/cloudflare-dialog.tsx"),s.register(u,"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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(46),g=n(9),m=n(16),h=n(100),_=a(n(62)),v=a(n(498)),y=a(n(1193)),b=a(n(1198)),w=a(n(1199)),M=a(n(499)),x=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 s(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,u.createElement(_.default,null,f.includes(window.optimizerData.modules,"ssl")&&u.createElement(u.Fragment,null,u.createElement(g.Flex,{direction:"row",align:"center",padding:["medium","responsive"]},1===this.props.isLoading&&u.createElement(g.Loader,{style:{position:"absolute"}}),u.createElement(g.Box,{sm:"10"},u.createElement(g.Title,{level:"5",density:"compact",color:"darkest"},p.translate("Enable HTTPS")),u.createElement(g.Text,null,p.translate("Configures your site to work correctly via HTTPS and forces a secure connection to your site. In order to force HTTPS, 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."))),u.createElement(g.Box,{sm:"2",className:"right--actions"},u.createElement(g.Switch,{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&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Flex,{background:"light",direction:"row",align:"center",padding:["medium","responsive"]},u.createElement(g.Box,{sm:"10"},u.createElement(g.Title,{level:"5",density:"compact",color:"darkest"},p.translate("Fix Insecure Content")),u.createElement(g.Text,null,p.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"))),u.createElement(g.Box,{sm:"2",className:"right--actions"},u.createElement(g.Switch,{checked:this.props.options.fix_insecure_content,name:"fix_insecure_content",onChange:function(t){return e.changeOption(t.target,!0)}})))),u.createElement(g.Flex,{className:"divider"})),u.createElement(y.default,null),u.createElement(b.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}),u.createElement(w.default,{checked:this.props.options.database_optimization,toogleOptimization:this.toogleDatabaseOptimization}),u.createElement(M.default,{checked:this.props.options.enable_gzip_compression,changeOption:this.changeOption}),u.createElement(g.Flex,{className:"divider"}),u.createElement(v.default,{checked:this.props.options.enable_browser_caching,changeOption:this.changeOption}),this.state.showSslDialog&&u.createElement(h.SslDialog,{toogleClose:this.toogleSslDialog,toogleConfirm:this.toogleSsl}))},t}(u.Component),S=function(e){return{options:e.Options,isLoading:e.Options.isLoading}},O=function(e){return{enableOption:function(t,n){return e(m.enableOption(t,n,!1))},disableOption:function(t,n){return e(m.disableOption(t,n,!1))},enableDatabaseOptimization:function(t,n){return e(m.enableDatabaseOptimization(t,n,!1))},disableDatabaseOptimization:function(t,n){return e(m.disableDatabaseOptimization(t,n,!1))},addNotification:function(t){return e(m.addNotification(t))},updateExcludes:function(t,n){return e(m.updateExcludes(t,n))},enableSsl:function(t){return e(m.enableSsl(t))},disableSsl:function(t){return e(m.disableSsl(t))}}};t.default=d.connect(S,O)(x),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(_,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(v,"browser_cache_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(y,"heartbeat_control_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(b,"dns_prefetch_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(w,"database_optimization_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(M,"gzip_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(x,"EnvironmentOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(S,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.tsx"),c.register(O,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/environment-optimization/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(46),f=n(9),g=n(16),m=n(10),h=a(n(1194)),_=n(68),v=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",s="heartbeat_"+r.option+"_interval";1===parseInt(n.state[r.status])?n.props.enableOption(o,!1):n.props.disableOption(o,!1),n.props.changeOption(s,n.state[r.interval]),n.setState(((t={})[r.dialog]=!n.state[r.dialog],t))},n.getOptions=function(e){var t={dashboard:{title:m.translate("WordPress Admin Pages"),dialog:"showDashboardDialog",status:"dashboardStatus",interval:"dashboardInterval",option:"dashboard",message:m.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:u.createElement("strong",null)}})},post:{title:m.translate("Post and Page Edit"),dialog:"showPostDialog",status:"frontendStatus",interval:"frontendInterval",option:"post",message:m.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:u.createElement("strong",null)}})},frontend:{title:m.translate("Site Frontend"),dialog:"showFrontendDialog",status:"editStatus",interval:"editInterval",option:"frontend",message:m.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:u.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])?m.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 s(t,e),t.prototype.componentDidUpdate=function(e){var t=this,n=this.getOptions(!1);p.map(n,(function(n){p.map(t.state.keys,(function(r){var o,s="heartbeat_"+n.option+"_"+r;t.props.options[s]!==e.options[s]&&t.setState(((o={})[n[r]]=t.props.options[s],o))}))}))},t.prototype.render=function(){var e=this;return u.createElement(u.Fragment,null,u.createElement(_.Row,{title:m.translate("WordPress Heartbeat Optimization"),checked:this.props.options.heartbeat_control,name:"heartbeat_control",onChange:function(t){return e.changeOption(t,!0)},hasExpand:1},m.translate("Enable this option to allow SiteGround Optimizer to control the WordPress Heartbeat API.")),1===this.props.options.heartbeat_control&&u.createElement(f.Flex,{padding:["none","responsive","responsive"]},u.createElement(f.Flex,{direction:"row",align:"center",background:"light",padding:["responsive","responsive"]},u.createElement(f.Grid,{gap:"small"},u.createElement("div",null,u.createElement(f.Notice,{type:"instruction",contentSize:"expanded",shadow:!1},m.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."))),u.createElement("div",null,u.createElement(f.Flex,{direction:"row"},p.map(this.getOptions(!1),(function(t,n){return u.createElement(f.Box,{sm:"4",key:n},u.createElement(h.default,{label:m.translate(t.title)},e.getMessage(t),u.createElement(f.IconButton,{icon:"edit",shape:"circle",onClick:function(n){return e.toogleDialog(t.dialog)}})))}))))))),u.createElement(f.Flex,{className:"divider"}),p.map(this.getOptions(!1),(function(t,n){return e.state[t.dialog]&&u.createElement(v.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}(u.Component),b=function(e){return{options:e.Options}},w=function(e){return{enableOption:function(t,n){return e(g.enableOption(t,n,!1))},disableOption:function(t,n){return e(g.disableOption(t,n,!1))},changeOption:function(t,n){return e(g.changeOption(t,n))},addNotification:function(t){return e(g.addNotification(t))}}};t.default=d.connect(b,w)(y),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(h,"form_field_wrapper_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(y,"Heartbeat_Control","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),c.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/heartbeat-control/index.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1195);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&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(2));n(1196);var a,c,l=n(9),u=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=u,a=n(0).default,c=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(s,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),a.register(i,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),a.register(u,"FormFieldWrapper","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/form-field-wrapper/form-field-wrapper.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1197);"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,".form-field-wrapper__content {\n height: 40px;\n display: flex;\n align-items: center; }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i,a,c=o(n(2)),l=n(10),u=n(9),d=n(68),p=n(149),f=s(n(222)),g=function(e){return c.createElement(c.Fragment,null,c.createElement(d.Row,{title:l.translate("DNS Pre-fetch for External Domains"),checked:e.dns_prefetch,name:"dns_prefetch",onChange:e.changeOption},l.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&&c.createElement(u.Flex,{padding:["none","responsive","responsive"]},c.createElement(u.Box,{sm:"12"},c.createElement(u.Flex,{background:"light",direction:"column"},c.createElement(f.default,{margin:"medium"},l.translate("Add only your domain names without http:// or https:// - DNS prefetching will work for both")),c.createElement(p.SimpleExclude,{updateExcludeList:function(t,n,r){return e.updateExcludes("dns_prefetch_urls",t)},excludedItems:e.dns_prefetch_urls,addNotification:e.addNotification,buttonText:l.translate("Add"),regex:"(?:(?:https?:)?(?:\\/\\/)(?:www\\.|(?!www)))?((?:.*?)\\.(?:[a-zA-Z\\d-]+){2,})"})))),c.createElement(u.Flex,{className:"divider"}))};t.default=g,i=n(0).default,a=n(0).leaveModule,i&&(i.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i.register(s,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i.register(f,"inner_row_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),i.register(g,"DNSPrefetch","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/dns-prefetch/index.tsx"),a(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.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=n(68),d=function(e){return a.createElement(a.Fragment,null,a.createElement(u.Row,{title:c.translate("Scheduled Database Maintenance"),checked:e.checked,name:"database_optimization",onChange:e.toogleOptimization},c.translate("Enable this option to regularly cleanup your database and keep it small and optimized.")),a.createElement(l.Flex,{padding:["none","responsive","responsive"]},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{gutter:"xx-small",background:"light",direction:"column"},a.createElement(l.Notice,{type:"instruction",background:"light",contentSize:"expanded",shadow:!1,title:c.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"},c.translate("Perform Database Optimization for MyISAM tables")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all automatically created post and page drafts")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all page and post revisions")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all posts and pages in your Trash")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all comments marked as Spam")),a.createElement(l.ListItem,{icon:"dot"},c.translate("Delete all expired Transients"))))))),a.createElement(l.Flex,{className:"divider"}))};t.default=d,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/database-optimization/index.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/modules/database-optimization/index.tsx"),s.register(d,"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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(46),g=n(9),m=n(16),h=n(100),_=a(n(62)),v=n(149),y=a(n(221)),b=a(n(222)),w=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 s(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=f.filter(this.props.jsAssets,{is_minified:0}),n=(f.filter(this.props.jsAssets,{in_footer:0}),f.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),s=this.filterSelectedValues(this.props.options.minify_css_exclude,n),i=this.filterSelectedValues(this.props.options.combine_css_exclude,this.props.cssAssets),a=this.filterSelectedValues(this.props.options.combine_javascript_exclude,this.props.jsAssets);return u.createElement(_.default,null,u.createElement(y.default,{title:p.translate("Minify the HTML Output"),checked:this.props.options.optimize_html,name:"optimize_html",onChange:this.changeOption},p.translate("Removes unnecessary characters from your HTML output saving data and improving your site speed. "),!!this.props.options.optimize_html&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showHtmlMinifyExclude")},"aria-expanded":!!this.state.showHtmlMinifyExclude}," ",p.translate("Exclude URLs from HTML Minification"))),1===this.props.options.optimize_html&&(this.props.options.minify_html_exclude.length||this.state.showHtmlMinifyExclude)&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{background:"light",direction:"column"},u.createElement(b.default,{margin:"medium",title:p.translate("Exclude URLs from HTML Minification")},p.translate("With this functionality, you can exclude different pages from HTML minification.")),u.createElement(v.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})))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Minify JavaScript Files"),checked:this.props.options.optimize_javascript,name:"optimize_javascript",onChange:this.changeOption},p.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&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showMinifyJavascriptExclude")},"aria-expanded":!!this.state.showMinifyJavascriptExclude}," ",p.translate("Exclude from JavaScript Minification"))),1===this.props.options.optimize_javascript&&(r.length||this.state.showMinifyJavascriptExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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")}}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.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()}},p.translate("Combine your JavaScript files in order to reduce the number of requests to the server."),!!this.props.options.combine_javascript&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showCombineJavascriptExclude")},"aria-expanded":!!this.state.showCombineJavascriptExclude}," ",p.translate("Exclude from JavaScript Combination"))),1===this.props.options.combine_javascript_error&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Notice,{type:"error",background:"light",contentSize:"expanded",shadow:!1,title:p.translate("JAVASCRIPT COMBINATION DISABLED")},p.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&&(a.length||this.state.showCombineJavascriptExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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:a,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("combine_javascript_exclude",t,"showCombineJavascriptExclude")}}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.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()}},p.translate("Defer loading of render-blocking JavaScript files for faster initial site load. "),!!this.props.options.optimize_javascript_async&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showAsyncJavascriptExclude")},"aria-expanded":!!this.state.showAsyncJavascriptExclude}," ",p.translate("Exclude from Loading JS Files Asynchronously"))),1===this.props.options.optimize_javascript_async&&(o.length||this.state.showAsyncJavascriptExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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")}}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Minify CSS Files"),checked:this.props.options.optimize_css,name:"optimize_css",onChange:this.changeOption},p.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&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showMinifyCssExclude")},"aria-expanded":!!this.state.showMinifyCssExclude}," ",p.translate("Exclude From CSS Minification"))),1===this.props.options.optimize_css&&(s.length||this.state.showMinifyCssExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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:s,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("minify_css_exclude",t,"showMinifyCssExclude")}}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Combine CSS Files"),checked:this.props.options.combine_css,name:"combine_css",onChange:this.changeOption},p.translate("Combine multiple CSS files into one to lower the number of requests your site generates. "),!!this.props.options.combine_css&&u.createElement(g.Link,{onClick:function(t){return e.openExclude("showCombineCssExclude")},"aria-expanded":!!this.state.showCombineCssExclude}," ",p.translate("Exclude from CSS Combination"))),1===this.props.options.combine_css&&(i.length||this.state.showCombineCssExclude)&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.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:i,groupBy:"group_title",onChange:function(t,n,r){return e.updateExclude("combine_css_exclude",t,"showCombineCssExclude")}}))),1==this.props.options.combine_css&&u.createElement(g.Flex,{direction:"row",align:"center",padding:["small","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{background:"light",direction:"column"},u.createElement(b.default,{margin:"medium",title:p.translate("Preload Combined CSS"),checked:this.props.options.preload_combined_css,name:"preload_combined_css",onChange:this.changeOption,titleDensity:"none"},p.translate("Adds the preload value to the combine css files instructing the browser that this is important resource which will be needed very soon to render the page.")),u.createElement(g.Flex,{className:"divider"})))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Web Fonts Optimization"),checked:this.props.options.optimize_web_fonts,name:"optimize_web_fonts",onChange:this.changeOption},p.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&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Flex,{background:"light",direction:"column"},u.createElement(b.default,{margin:"medium",title:p.translate("Fonts Preloading")},p.translate("With this optimization 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 and that you paste the {{strong}}full URL to the font{{/strong}}.",{components:{strong:u.createElement("strong",null)}})),u.createElement(v.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:p.translate("Preload")}))),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Remove Query Strings From Static Resources"),checked:this.props.options.remove_query_strings,name:"remove_query_strings",onChange:this.changeOption},p.translate("Removes version query strings from your static resources improving the caching of those resources.")),u.createElement(g.Flex,{className:"divider"}),u.createElement(y.default,{title:p.translate("Disable Emojis"),checked:this.props.options.disable_emojis,name:"disable_emojis",onChange:this.changeOption},p.translate("Enable to prevent WordPress from automatically detecting and generating emojis in your pages.")),this.state.showAsyncDialog&&u.createElement(h.AsyncDialog,{toogleConfirm:this.toogleAsync}),this.state.showJsCombineDialog&&u.createElement(h.JsCombineDialog,{toogleConfirm:this.toogleJsCombination}))},t}(u.Component),M=function(e){return{options:e.Options,jsAssets:e.Options.assets.scripts,cssAssets:e.Options.assets.styles}},x=function(e){return{enableOption:function(t,n,r){return e(m.enableOption(t,n,r))},disableOption:function(t,n,r){return e(m.disableOption(t,n,r))},addNotification:function(t){return e(m.addNotification(t))},updateExcludes:function(t,n){return e(m.updateExcludes(t,n))}}};t.default=d.connect(M,x)(w),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(_,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(y,"row_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(b,"inner_row_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(w,"FrontendOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(M,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.tsx"),c.register(x,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/frontend-optimization/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(46),g=n(9),m=n(16),h=a(n(62)),_=n(149),v=n(1202),y=n(500),b=n(68),w=function(e){function t(t){var n=e.call(this,t)||this;return n.getHeight=function(){return 0===n.props.options.image_optimization_status?320:"auto"},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 s(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 u.createElement(h.default,null,f.includes(window.optimizerData.modules,"optimize_images")&&u.createElement(u.Fragment,null,u.createElement(b.Row,{title:p.translate("New Images Optimization"),checked:this.props.options.optimize_images,name:"optimize_images",onChange:this.changeOption},p.translate("We will automatically optimize all new images that you upload to your Media Library.")),u.createElement(g.Flex,{className:"divider"}),u.createElement("div",{className:"position--relative"},0===this.props.options.image_optimization_status&&u.createElement(y.ImageLoader,{stopOptimization:this.stopImagesOptimization,totalImages:this.props.options.has_images_for_optimization,totalUnoptimizedImages:this.props.options.total_unoptimized_images}),u.createElement(g.Flex,{padding:["medium","responsive"],style:{minHeight:this.getHeight(),position:"relative"}},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{direction:"row",align:"center",justify:"space-between"},u.createElement(g.Box,{sm:"9"},u.createElement(g.Title,{level:"5",density:"compact",color:"darkest"},p.translate("Existing Images Optimization")),u.createElement(g.Text,null,p.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)&&u.createElement(g.Box,{sm:"3",className:"right--actions"},u.createElement(g.Button,{color:"secondary",size:"large",type:"outlined","aria-expanded":0===this.props.options.image_optimization_status,onClick:function(t){return e.props.initImagesOptimization()}},1===this.props.options.image_optimization_stopped?p.translate("Resume Optimization"):p.translate("Start Optimization"))))))),1===parseInt(window.optimizerData.is_cron_disabled)&&0===this.props.options.dismiss_cron_notice&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Notice,{type:"error"},p.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:u.createElement(g.Link,{href:p.translate("https://www.siteground.com/tutorials/wordpress/real-cron-job/"),target:"_blank",style:{textDecoration:"underline"}}),link2:u.createElement(g.Link,{style:{textDecoration:"underline"},onClick:function(t){return e.props.enableOption("dismiss_cron_notice")}})}}))),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&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Notice,{type:"success",background:"light",contentSize:"expanded",shadow:!1},p.translate("All images in your Media Library have been optimized successfully! Force {{link}}re-optimization{{/link}} of your images.",{components:{link:u.createElement(g.Link,{onClick:this.props.resetImagesOptimization,style:{textDecoration:"underline"}})}}))))),u.createElement(g.Flex,{className:"divider"}),u.createElement(v.WebP,null),f.includes(window.optimizerData.modules,"lazyload_images")&&u.createElement(u.Fragment,null,u.createElement(g.Flex,{className:"divider"}),u.createElement(b.Row,{title:p.translate("Lazy Load Media"),checked:this.props.options.lazyload_images,name:"lazyload_images",onChange:this.changeOption,hasExpand:1},p.translate("Load images only when they are visible in the browser")),1==this.props.options.lazyload_images&&u.createElement(g.Flex,{padding:["none","responsive","responsive"]},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{background:"light",direction:"column"},u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Iframes"),checked:this.props.options.lazyload_iframes,name:"lazyload_iframes",onChange:this.changeOption,tooltip:p.translate("We will lazy load iframes often used for things like video embeds from another sources. "),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Videos"),checked:this.props.options.lazyload_videos,name:"lazyload_videos",onChange:this.changeOption,tooltip:p.translate("We will lazy load all videos you have added directly to your pages."),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Gravatars"),checked:this.props.options.lazyload_gravatars,name:"lazyload_gravatars",onChange:this.changeOption,tooltip:p.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"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Thumbnails"),checked:this.props.options.lazyload_thumbnails,name:"lazyload_thumbnails",onChange:this.changeOption,tooltip:p.translate("Enable if you want to lazy-load the thumbnail sizes of your original images."),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Responsive Images"),checked:this.props.options.lazyload_responsive,name:"lazyload_responsive",onChange:this.changeOption,tooltip:p.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"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Widgets"),checked:this.props.options.lazyload_textwidgets,name:"lazyload_textwidgets",onChange:this.changeOption,tooltip:p.translate("Enable this option if you want the images in your widget areas to load only when users reach them. "),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load for Mobile"),checked:this.props.options.lazyload_mobile,name:"lazyload_mobile",onChange:this.changeOption,tooltip:p.translate("Enable if you want to use lazy-loading features for mobile requests to your site."),titleDensity:"none"}),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Fix for Lazy Loading Short Codes"),checked:this.props.options.lazyload_shortcodes,name:"lazyload_shortcodes",onChange:this.changeOption,tooltip:p.translate("If your images generated by shortcodes are not lazy loaded, please enable this feature."),titleDensity:"none"}),1===parseInt(window.optimizerData.is_shop)&&u.createElement(u.Fragment,null,u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Lazy Load Product Images"),checked:this.props.options.lazyload_woocommerce,name:"lazyload_woocommerce",onChange:this.changeOption,tooltip:p.translate("Enable if you want to enable lazy-load images in your store, product and other WooCommerce pages."),titleDensity:"none"})),u.createElement(g.Flex,{className:"divider"}),u.createElement(b.InnerRow,{margin:"medium",title:p.translate("Exclude from Lazy Load")},p.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.")),u.createElement(_.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}),u.createElement(g.Flex,null))))))},t}(u.Component),M=function(e){return{options:e.Options}},x=function(e){return{enableOption:function(t,n){return e(m.enableOption(t,n,!1))},disableOption:function(t,n){return e(m.disableOption(t,n,!1))},addNotification:function(t){return e(m.addNotification(t))},checkImageOptimizationStatus:function(){return e(m.checkImageOptimizationStatus())},initImagesOptimization:function(){return e(m.initImagesOptimization())},stopImagesOptimization:function(){return e(m.stopImagesOptimization())},resetImagesOptimization:function(){return e(m.resetImagesOptimization())},updateExcludes:function(t,n){return e(m.updateExcludes(t,n))}}};t.default=d.connect(M,x)(w),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(h,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(w,"ImageOptimization","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(M,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),c.register(x,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/image-optimization/index.tsx"),l(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1203);t.WebP=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(25),d=n(10),p=n(9),f=n(68),g=n(100),m=n(500),h=n(1206),_=n(16),v=n(1208),y=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?320:"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("div",{className:"position--relative",style:{minHeight:n.getHeight()}},0===n.props.options.webp_conversion_status&&l.createElement(m.WebpLoader,{stopOptimization:n.stopWebpOptimization,totalImages:n.props.options.has_images_for_conversion,totalUnoptimizedImages:n.props.options.total_non_converted_images}),l.createElement(f.Row,{title:d.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()}},d.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(h.QualitySlider,{title:d.translate("Optimization Level"),description:d.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:d.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(p.Flex,{className:"divider"}),l.createElement(p.Container,{elevation:"none",padding:["medium","responsive"]},l.createElement(p.Flex,{direction:"row",align:"center"},l.createElement(p.Box,{sm:"5"},l.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},d.translate("Manage WebP Copies for Existing Images")),l.createElement(p.Text,null,d.translate("Generate or delete a WebP copy of your existing media library."))),0==n.props.options.has_images_for_conversion&&l.createElement(p.Box,null),l.createElement(p.Box,{sm:"7",className:"right--actions"},l.createElement(p.Button,{color:"secondary",size:"large",type:"outlined","aria-haspopup":!0,onClick:function(e){return n.toogleDeleteWebpDialog()}},d.translate("Delete all WebP Files")),l.createElement(p.Spacer,{size:"small"}),0!==n.props.options.has_images_for_conversion&&l.createElement(p.Button,{style:{marginTop:n.props.isPhone?"10px":"0"},color:"secondary",size:"large",type:"outlined","aria-expanded":0===n.props.options.webp_conversion_status,onClick:function(e){return n.props.generateWebpFiles()}},d.translate("Bulk Generate WebP Files"))))),0==n.props.options.has_images_for_conversion&&l.createElement(p.Flex,{padding:["none","responsive","responsive"]},l.createElement(p.Box,{sm:"12"},l.createElement(p.Notice,{type:"success",background:"light",contentSize:"expanded",shadow:!1},d.translate("All WebP copies of your files have been generated successfully! Force {{link}}re-generation{{/link}} of your images.",{components:{link:l.createElement(p.Link,{onClick:n.toogleRegenerateWebpDialog,style:{textDecoration:"underline"},"aria-haspopup":!0})}})))),n.state.showEnableWebpDialog&&l.createElement(g.EnableWebpDialog,{toogleClose:n.toogleEnableWebpDialog,toogleConfirm:n.toogleEnableWebp}),n.state.showDeleteWebpDialog&&l.createElement(g.DeleteWebpDialog,{toogleClose:n.toogleDeleteWebpDialog,toogleConfirm:n.deleteWebpFiles}),n.state.showRegenerateWebpDialog&&l.createElement(g.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 s(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),b=function(e){return{options:e.Options,isPhone:e.Environment.isPhone}},w=function(e){return{enableOption:function(t,n){return e(_.enableOption(t,n,!1))},disableOption:function(t,n){return e(_.disableOption(t,n,!1))},addNotification:function(t){return e(_.addNotification(t))},deleteWebpFiles:function(t){return e(v.deleteWebpFiles(t))},changeOption:function(t,n){return e(_.changeOption(t,n))},stopWebpConvertion:function(){return e(v.stopWebpConvertion())},generateWebpFiles:function(){return e(v.generateWebpFiles())},checkWebpConversionStatus:function(){return e(v.checkWebpConversionStatus())}}};t.default=u.connect(b,w)(y),a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(y,"WebP","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.tsx"),a.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/webp/webp.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(10),d=n(9),p=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 s(t,e),t.prototype.render=function(){var e=this;return l.createElement(d.Loader,{spinnerPosition:"absolute",density:"none",position:"absolute",className:"loader-image-optimization"},l.createElement(d.Title,{level:"4",density:"compact",weight:"bold",color:"darkest"},u.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"}},u.translate("Optimized %(optimized)s of %(total)s images",{args:{optimized:this.props.totalUnoptimizedImages-this.props.totalImages,total:this.props.totalUnoptimizedImages}})),l.createElement(d.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(d.Button,{color:"secondary",size:"small",type:"outlined",onClick:function(t){return e.props.stopOptimization()}},u.translate("Pause")))},t}(l.Component);t.default=p,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.tsx"),a.register(p,"ImageLoader","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/image-loader.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(10),d=n(9),p=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 s(t,e),t.prototype.render=function(){var e=this;return l.createElement(d.Loader,{spinnerPosition:"absolute",density:"none",position:"absolute",className:"loader-image-optimization"},l.createElement(d.Title,{level:"4",density:"compact",weight:"bold",color:"darkest"},u.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"}},u.translate("Generated %(optimized)s of %(total)s webp copies",{args:{optimized:this.props.totalUnoptimizedImages-this.props.totalImages,total:this.props.totalUnoptimizedImages}})),l.createElement(d.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(d.Button,{color:"secondary",size:"small",type:"outlined",onClick:function(t){return e.props.stopOptimization()}},u.translate("Pause")))},t}(l.Component);t.default=p,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),a.register(p,"WebpLoader","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/loaders/webp-loader.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1207);t.QualitySlider=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(10),l=n(9),u=function(e){return a.createElement(l.Flex,{padding:["none","responsive","responsive"]},a.createElement(l.Box,{sm:"12"},a.createElement(l.Flex,{background:"light",direction:"column",padding:["small","responsive","medium"]},a.createElement(l.Flex,{direction:"row",align:"center"},a.createElement(l.Box,{sm:"10"},a.createElement(l.Title,{level:"5",density:"compact",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,{direction:"column"},a.createElement("div",{className:"grid-wrapper"},a.createElement(l.Grid,{gap:"medium"},"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",contentSize:"expanded",shadow:!1},c.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=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/slider/quality-slider.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/slider/quality-slider.tsx"),s.register(u,"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";(function(e){var r;(r=n(0).enterModule)&&r(e);var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(52),c=o(n(37));t.stopWebpConvertion=a.createAction(c.STOP_WEBP_CONVERSION),t.deleteWebpFiles=a.createAction(c.DELETE_WEBP_FILES),t.generateWebpFiles=a.createAction(c.GENERATE_WEBP_FILES),t.checkWebpConversionStatus=a.createAction(c.CHECK_WEBP_CONVERSION_STATUS),s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/actions/webp.ts"),s.register(c,"Actions","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/actions/webp.ts"),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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(9),g=n(16),m=a(n(62)),h=a(n(497)),_=a(n(499)),v=a(n(498)),y=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 s(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 u.createElement(m.default,null,u.createElement(_.default,{checked:this.props.options.enable_gzip_compression,changeOption:this.changeOption}),u.createElement(v.default,{checked:this.props.options.enable_browser_caching,changeOption:this.changeOption}),u.createElement(h.default,{enable_memcached:this.props.options.enable_memcached,enableMemcache:this.props.enableMemcache,disableMemcache:this.props.disableMemcache}),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Site Admin Permissions")),u.createElement(f.Text,null,p.translate("In this section, set the access permission for admins of separate sites.")))),u.createElement(f.Flex,{gutter:"large"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(f.Flex,{direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("SuperCacher Settings")),u.createElement(f.Text,null,p.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's SuperCacher tab."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.supercacher_permissions,name:"supercacher_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Frontend Optimizations")),u.createElement(f.Text,null,p.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Frontend Optmization tab."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.frontend_permissions,name:"frontend_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Image Optimizations")),u.createElement(f.Text,null,p.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Image Optimization tab."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.images_permissions,name:"images_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Environment Optimizations")),u.createElement(f.Text,null,p.translate("Select whether site admins can access and make changes within the SiteGround Optimizer's Environment Optimization tab."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.environment_permissions,name:"environment_permissions",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))))},t}(u.Component),b=function(e){return{options:e.Options}},w=function(e){return{enableMemcache:function(t){return e(g.enableMemcache(t))},disableMemcache:function(t){return e(g.disableMemcache(t))},enableOption:function(t,n,r){return e(g.enableOption(t,n,r))},disableOption:function(t,n,r){return e(g.disableOption(t,n,r))},addNotification:function(t){return e(g.addNotification(t))}}};t.default=d.connect(b,w)(y),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(m,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(h,"memcached_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(_,"gzip_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(v,"browser_cache_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(y,"MultisiteControl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.tsx"),c.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/multisite-control/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=n(9),g=n(16),m=a(n(62)),h=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 s(t,e),t.prototype.render=function(){var e=this;return u.createElement(m.default,null,u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},p.translate("SUPERCACHER SETTINGS")))),u.createElement(f.Flex,{direction:"row",align:"center",gutter:"large"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Dynamic Caching")),u.createElement(f.Text,null,p.translate("Select whether new sites should have the Dynamic Caching enabled for them or not."))),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{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&&u.createElement(f.Flex,{gutter:"large"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"9"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Automatic Cache Purge")),u.createElement(f.Text,null,p.translate("Automatically perform a smart cache purge after every content modification."),"  ")),u.createElement(f.Box,{sm:"3",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_autoflush_cache,name:"default_autoflush_cache",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},p.translate("ENVIRONMENT OPTIMIZATION")))),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},1===this.props.isLoading&&u.createElement(f.Loader,{style:{position:"absolute"}}),u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Enable HTTPS")),u.createElement(f.Text,null,p.translate("Configures your site to work correctly via HTTPS and forces a secure connection to your site."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{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&&u.createElement(f.Flex,{gutter:"large"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Fix Insecure Content")),u.createElement(f.Text,null,p.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"))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_fix_insecure_content,name:"default_fix_insecure_content",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},p.translate("FRONTEND OPTIMIZATION")))),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Minify the HTML Output")),u.createElement(f.Text,null,p.translate("Removes unnecessary characters from your HTML output saving data and improving your site speed."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_html,name:"default_optimize_html",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Minify JavaScript Files")),u.createElement(f.Text,null,p.translate("Combine and minify your JavaScript files in order to reduce their size, improve cachability, and reduce the number of requests to the server."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_javascript,name:"default_optimize_javascript",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Load Render-blocking JavaScript Files Asynchronously")),u.createElement(f.Text,null,p.translate("Add async parameter to the JavaScript files loaded in the header section of your site so they don’t block your page rendering."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_javascript_async,name:"default_optimize_javascript_async",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Minify CSS Files")),u.createElement(f.Text,null,p.translate("Combine and minify your CSS files in order to reduce their size, improve cachability, and reduce the number of requests to the server."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_css,name:"default_optimize_css",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Combine CSS Files")),u.createElement(f.Text,null,p.translate("Combine multiple CSS files into one to lower the number of requests your site generates."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_combine_css,name:"default_combine_css",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Remove Query Strings From Static Resources")),u.createElement(f.Text,null,p.translate("Removes version query strings from your static resources improving the caching of those resources."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_remove_query_strings,name:"default_remove_query_strings",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Disable Emojis")),u.createElement(f.Text,null,p.translate("Enable to prevent WordPress from automatically detecting and generating emojis in your pages."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_disable_emojis,name:"default_disable_emojis",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Title,{level:"4",density:"compact",weight:"medium",color:"darkest"},p.translate("IMAGE OPTIMIZATION")))),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Image Optimization")),u.createElement(f.Text,null,p.translate("We will optimize all your existing images with minimal or no loss in quality. Note, that this will overwrite your original images."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_optimize_images,name:"default_optimize_images",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{direction:"row",gutter:"large",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},p.translate("Lazy Load Images")),u.createElement(f.Text,null,p.translate("Load images only when they are visible in the browser"))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{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&&u.createElement(f.Flex,{gutter:"large"},u.createElement(f.Box,{sm:"12"},u.createElement(f.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Iframes")),u.createElement(f.Text,null,p.translate("We will lazy load iframes often used for things like video embeds from another sources. "))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_iframes,name:"default_lazyload_iframes",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Videos")),u.createElement(f.Text,null,p.translate("We will lazy load all videos you have added directly to your pages."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_videos,name:"default_lazyload_videos",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Thumbnails")),u.createElement(f.Text,null,p.translate("Enable if you want to enable lazy-load images in your store, product and other WooCommerce pages."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_woocommerce,name:"default_lazyload_woocommerce",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Gravatars")),u.createElement(f.Text,null,p.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. "))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_gravatars,name:"default_lazyload_gravatars",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Thumbnails")),u.createElement(f.Text,null,p.translate("Enable if you want to lazy-load the thumbnail sizes of your original images."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_thumbnails,name:"default_lazyload_thumbnails",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Responsive Images")),u.createElement(f.Text,null,p.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."))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_responsive,name:"default_lazyload_responsive",onChange:function(t){return e.changeSiteOption(t.target,!0)}}))),u.createElement(f.Flex,{className:"divider"}),u.createElement(f.Flex,{gutter:"large",direction:"row",align:"center"},u.createElement(f.Box,{sm:"10"},u.createElement(f.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Lazy Load Widgets")),u.createElement(f.Text,null,p.translate("Enable this option if you want the images in your widget areas to load only when users reach them. "))),u.createElement(f.Box,{sm:"2",className:"right--actions"},u.createElement(f.Switch,{checked:this.props.options.default_lazyload_textwidgets,name:"default_lazyload_textwidgets",onChange:function(t){return e.changeSiteOption(t.target,!0)}})))))))},t}(u.Component),_=function(e){return{options:e.Options}},v=function(e){return{enableOption:function(t,n,r){return e(g.enableOption(t,n,r))},disableOption:function(t,n,r){return e(g.disableOption(t,n,r))},addNotification:function(t){return e(g.addNotification(t))}}};t.default=d.connect(_,v)(h),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(m,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(h,"SitesControl","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(_,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.tsx"),c.register(v,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/sites-control/index.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,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(n(2)),l=n(25),u=n(46),d=n(10),p=n(9),f=a(n(62)),g=a(n(1212)),m=n(1213);n(1215);var h,_,v=n(16),y=function(e){function t(t){var n=e.call(this,t)||this;return n.showResult=function(e){n.setState({testKey:e})},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 u.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 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 lh-gauge__percentage">{SCORE}</div></div>'.replace("{SCORE}",e).replace("{PERCENTAGE}",t.toString())}},n.getCircleClassName=function(e){return e<90&&e>49?"placeholder-without-svg placeholder-meduim":e<49?"placeholder-without-svg placeholder-low":"placeholder-without-svg placeholder-top"},n.createUnixtoDate=function(e){var t=new Date(0),n=new Date(t.setUTCSeconds(e.replace("sgo_speed_test_","")));return new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"}).format(n)},n.getMessageResponse=function(e){return e[0].description},n.renderSuccessfullyCompleted=function(e){return u.map(n.prepareData(e),(function(e){return c.createElement(p.Flex,{gutter:"large",direction:"column"},c.createElement(p.Box,null,c.createElement(p.Notice,{type:"success"},e.title," ",c.createElement(g.default,{tooltip:e.description,tooltipSize:"small"}))))}))},n.renderRecommendedOptimizations=function(e){var t=[];if(u.map(e,(function(r,o){1!==n.props.options[o]&&t.push(e[o])})),t.length)return c.createElement("div",null,c.createElement(p.Title,{level:"5",density:"cozy",color:"darkest"},d.translate("Recommended Optimizations")),c.createElement(p.Flex,{border:"small"},c.createElement(p.Box,{sm:"12"},!u.isEmpty(e)&&Object.keys(e).map((function(t){return c.createElement(c.Fragment,null,1!==n.props.options[t]&&c.createElement(c.Fragment,null,c.createElement(p.Flex,{padding:["medium","responsive"]},c.createElement(p.Box,{sm:"12"},c.createElement(p.Flex,{direction:"row",align:"center",justify:"space-between"},c.createElement(p.Box,{sm:"9"},c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},e[t].title),c.createElement(p.Text,null,e[t].message)),c.createElement(p.Box,{sm:"3",className:"right--actions"},c.createElement(p.Button,{color:"secondary",size:"large",type:"outlined",onClick:function(e){return n.props.enableOption(t,!0)}},d.translate("Enable")))))),c.createElement(p.Flex,{className:"divider"})))})))))},n.state={currentUrl:"",testKey:!1},n}return s(t,e),t.prototype.componentDidUpdate=function(e){u.isEmpty(this.props.previousTests)||u.isEmpty(e.previousTests)||this.props.previousTests===e.previousTests||this.setState({testKey:Object.keys(this.props.previousTests)[0]})},t.prototype.render=function(){var e=this;return c.createElement(f.default,null,c.createElement(p.Container,{elevation:"none",padding:["none","responsive","responsive"],style:{display:"block"}},!!this.state.testKey&&c.createElement(p.Flex,null,c.createElement(p.Box,{sm:"12"},c.createElement(p.Container,{elevation:"none",padding:["responsive","none"]},c.createElement(p.Flex,{align:"center",wrap:"nowrap"},c.createElement(p.Box,null,c.createElement(p.IconButton,{icon:"arrow-back",shape:"circle",onClick:function(t){return e.showResult(!1)}}),c.createElement(p.Spacer,{size:"large"})),c.createElement(p.Box,null,c.createElement(p.Title,{level:"4",density:"compact",color:"darkest"},this.props.previousTests[this.state.testKey].result.human_readable_timestamp,1===this.props.previousTests[this.state.testKey].previous_test&&d.translate(" - Results from previous host")),c.createElement(p.List,{size:"small",orientation:this.props.isPhone?"vertical":"horizontal"},c.createElement(p.ListItem,{icon:"dot"},d.translate("Device:"),c.createElement(p.Label,{type:"link",size:"medium",color:"dark"},this.props.previousTests[this.state.testKey].result.device)))))),c.createElement(p.Grid,{gap:"responsive"},c.createElement(p.Grid,{gap:"responsive",sm:"3"},!!this.props.previousTests[this.state.testKey].result.scores.score&&c.createElement(p.Grid,{border:"small",padding:"responsive",justify:"center",justifyItems:"center",gap:"xx-small"},c.createElement("div",{dangerouslySetInnerHTML:this.html(100*this.props.previousTests[this.state.testKey].result.scores.score.score),className:"lh-gauge-arc--transparent "+this.props.previousTests[this.state.testKey].result.scores.score.class_name}),c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},c.createElement(p.Spacer,{size:"medium"}),c.createElement("span",null,d.translate("Google Score"),c.createElement(p.IconButton,{size:"small",shape:"circle",icon:"information",tooltip:this.props.previousTests[this.state.testKey].result.scores.descriptions.score}))),c.createElement(p.List,{size:"small",orientation:"horizontal"},c.createElement(p.ListItem,{color:"error"},"0-49"),c.createElement(p.ListItem,{color:"warning"},"50-89"),c.createElement(p.ListItem,{color:"success"},"90-100"))),!!this.props.previousTests[this.state.testKey].result.scores.fcp&&c.createElement(p.Grid,{border:"small",padding:"responsive",justify:"center",justifyItems:"center",gap:"xx-small"},c.createElement("div",{dangerouslySetInnerHTML:this.html((this.props.previousTests[this.state.testKey].result.scores.fcp.score/1e3).toFixed(1)+"s"),className:"lh-gauge-arc--transparent "+this.props.previousTests[this.state.testKey].result.scores.fcp.class_name}),c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},c.createElement(p.Spacer,{size:"medium"}),c.createElement("span",null,d.translate("Page Load Time"),c.createElement(p.IconButton,{size:"small",shape:"square",icon:"information",tooltip:this.props.previousTests[this.state.testKey].result.scores.descriptions.fcp}))),c.createElement(p.List,{size:"small",orientation:"horizontal"},c.createElement(p.ListItem,{color:"error"},d.translate("Over 4s")),c.createElement(p.ListItem,{color:"warning"},d.translate("2s-4s")),c.createElement(p.ListItem,{color:"success"},d.translate("0-2s")))),!!this.props.previousTests[this.state.testKey].result.scores.ttfb&&c.createElement(p.Grid,{border:"small",padding:"responsive",justify:"center",justifyItems:"center",gap:"xx-small"},c.createElement("div",{dangerouslySetInnerHTML:this.html(this.props.previousTests[this.state.testKey].result.scores.ttfb.score+"ms"),className:"lh-gauge-arc--transparent "+this.props.previousTests[this.state.testKey].result.scores.ttfb.class_name}),c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},c.createElement(p.Spacer,{size:"medium"}),c.createElement("span",null,d.translate("Time to First Byte"),c.createElement(p.IconButton,{size:"small",shape:"circle",icon:"information",tooltip:this.props.previousTests[this.state.testKey].result.scores.descriptions.ttfb}))),c.createElement(p.List,{size:"small",orientation:"horizontal"},c.createElement(p.ListItem,{color:"error"},"600ms+"),c.createElement(p.ListItem,{color:"warning"},"100ms-600ms"),c.createElement(p.ListItem,{color:"success"},">100ms")))),!u.isEmpty(this.props.previousTests[this.state.testKey].result.data["load-opportunities"])&&0==this.props.isAnalysing&&c.createElement(c.Fragment,null,c.createElement(p.Box,{sm:"12"},c.createElement(p.Title,{level:"5",density:"cozy",color:"darkest"},this.props.previousTests[this.state.testKey].result.data["load-opportunities"].info.title),!u.isEmpty(this.props.previousTests[this.state.testKey].result.data["load-opportunities"].data)&&Object.keys(this.props.previousTests[this.state.testKey].result.data["load-opportunities"].data).map((function(t,n){return c.createElement(c.Fragment,{key:t},c.createElement(p.Title,{level:"5",density:"cozy",color:"darkest",transform:"capitalize"},t.replace("_"," ")),c.createElement(m.AnalysysTable,{data:e.props.previousTests[e.state.testKey].result.data["load-opportunities"].data[t]}))})))),this.renderRecommendedOptimizations(this.props.previousTests[this.state.testKey].result.optimizations))))),c.createElement("div",{style:{display:"block"}},!this.state.testKey&&c.createElement(c.Fragment,null,c.createElement(p.Container,{elevation:"none",padding:["medium","responsive"]},c.createElement(p.Flex,{direction:"row",align:"center"},c.createElement(p.Box,{sm:"10"},c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},d.translate("Run Your Test")),c.createElement(p.Text,null,d.translate("Test how optimized your website is. Our performance check is powered by Google PageSpeed."))))),c.createElement(p.Flex,{padding:["none","responsive","responsive"]},c.createElement(p.Box,{sm:"12"},c.createElement(p.Flex,{background:"light",direction:"row",align:"flex-end",gutter:"large",padding:"responsive"},c.createElement(p.Box,{sm:"2"},c.createElement(p.Dropdown,{options:this.getDevices(),optionValue:"type",optionLabel:"title",selectedValue:this.props.device,onChange:function(t){return e.props.analysisChangeDevice(t)},label:d.translate("Device Type")})),c.createElement(p.Box,{sm:"8"},c.createElement(p.Input,{type:"text",size:"medium",label:d.translate("URL"),value:this.state.currentUrl,onChange:function(t){return e.updateCurrentUrl(t)},prefix:window.optimizerData.home_url,onKeyPress:this.handleKeyPressExcludeList})),c.createElement(p.Box,{sm:"2"},c.createElement(p.Button,{color:"primary",size:"large",className:"button--fluid",onClick:function(){return e.runAnalysis()}},d.translate("Analyze"))))))),!u.isEmpty(this.props.previousTests)&&!this.state.testKey&&c.createElement(c.Fragment,null,c.createElement(p.Flex,{className:"divider"}),c.createElement(p.Container,{elevation:"none",padding:["medium","responsive"]},c.createElement(p.Flex,{direction:"row",align:"center"},c.createElement(p.Box,{sm:"10"},c.createElement(p.Title,{level:"5",density:"compact",color:"darkest"},d.translate("Your Test Results")),c.createElement(p.Text,null,d.translate("This is your history of speed test results for the past 6 months."))))),c.createElement(p.Container,{elevation:"none",padding:["none","responsive","responsive"]},c.createElement(p.Flex,{border:"small"},c.createElement(p.Box,{sm:"12"},Object.keys(this.props.previousTests).map((function(t){return c.createElement(c.Fragment,{key:t},c.createElement(p.Flex,{align:"center",justify:"space-between",wrap:"nowrap",padding:"medium",className:"sg-action-list--clickable",onClick:function(n){return e.showResult(t)}},c.createElement(p.Flex,{align:"center",wrap:"nowrap"},c.createElement("div",{dangerouslySetInnerHTML:e.html(100*e.props.previousTests[t].result.scores.score.score),className:e.props.previousTests[t].result.scores.score.class_name}),c.createElement(p.Spacer,{size:"medium"}),c.createElement(p.Box,null,c.createElement(p.Grid,{gap:"xx-small"},c.createElement(p.Title,{level:"5",density:"none",color:"darkest"},e.props.previousTests[t].result.human_readable_timestamp,1===e.props.previousTests[t].previous_test&&d.translate(" - Results from previous host")),c.createElement(p.List,{size:"small",orientation:e.props.isPhone?"vertical":"horizontal"},c.createElement(p.ListItem,{icon:"dot"},d.translate("Device:"),c.createElement(p.Label,{type:"link",size:"medium",color:"dark"},e.props.previousTests[t].result.device)),!!e.props.previousTests[t].result.scores.fcp&&c.createElement(p.ListItem,{icon:"dot"},d.translate("Page Load:"),c.createElement(p.Label,{type:"link",size:"medium",color:e.props.previousTests[t].result.scores.fcp.class_name_table},(e.props.previousTests[t].result.scores.fcp.score/1e3).toFixed(1)," s")),!!e.props.previousTests[t].result.scores.ttfb&&c.createElement(p.ListItem,{icon:"dot"},d.translate("TTFB:"),c.createElement(p.Label,{type:"link",size:"medium",color:e.props.previousTests[t].result.scores.ttfb.class_name_table},e.props.previousTests[t].result.scores.ttfb.score," ms")))))),c.createElement(p.Spacer,{size:"medium"}),c.createElement(p.Icon,{size:"16",color:"dark",name:"arrow-right"})),c.createElement(p.Flex,{className:"divider"}))}))))))),!u.isEmpty(this.props.report)&&0==this.props.isAnalysing&&Object.keys(this.props.report.data).map((function(t){return c.createElement(c.Fragment,{key:t},c.createElement(p.Flex,{className:"divider"}),c.createElement(p.Flex,{gutter:"large",direction:"row",align:"center"},c.createElement(p.Box,{sm:"12"},c.createElement(p.Title,{level:"4",density:"compact",weight:"light",color:"darkest"},e.props.report.data[t].info.title),"opportunities"==e.props.report.data[t].info.id&&c.createElement(p.Flex,{gutter:"xx-small"},c.createElement(p.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 c.createElement(p.Text,null,e," ",c.createElement(g.default,{tooltip:t.description,tooltipSize:"small"}))}},{header:"Action",accessor:"action",style:{fontWeight:"bold"},render:function(e,t){return c.createElement(p.Text,null,p.textToHTML(e,["a","strong"],["href"]))}}]})))),"opportunities"!==e.props.report.data[t].info.id&&e.renderSuccessfullyCompleted(e.props.report.data[t].data))})),!!this.props.isAnalysing&&c.createElement(p.Loader,{style:{position:"absolute"},className:"loader-analysis"},d.translate("Please Wait, We Are Performing a Google PageSpeed Test on Your Page")))},t}(c.Component),b=function(e){return{report:e.Report.report,isAnalysing:e.Report.isAnalysing,device:e.Report.device,isPhone:e.Environment.isPhone,options:e.Options,previousTests:e.Options.previous_tests}},w=function(e){return{runAnalysis:function(t,n){return e(v.runAnalysis(t,n))},analysisChangeDevice:function(t,n){return e(v.analysisChangeDevice(t))},enableOption:function(t,n,r){return e(v.enableOption(t,n,r))}}};t.default=l.connect(b,w)(y),h=n(0).default,_=n(0).leaveModule,h&&(h.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(c,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(f,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(g,"info_icon_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(y,"Analytics","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.tsx"),h.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/analytics/index.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.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=o(n(2)),c=n(9),l=n(67),u=function(e){var t=e.tooltip,n=e.size,r=void 0===n?"11":n,o=e.tooltipSize,s=void 0===o?"medium":o,i=e.color,u=void 0===i?"light":i;return a.createElement(c.Icon,{color:u,tabIndex:0,name:"information",size:r,tooltip:l.textToHTML(t),tooltipSize:s,className:"ua-margin-horizontal-xx-small ua-v-align-middle"})};t.default=u,s=n(0).default,i=n(0).leaveModule,s&&(s.register(o,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/info-icon/index.tsx"),s.register(a,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/info-icon/index.tsx"),s.register(u,"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){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1214);t.AnalysysTable=r.default},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a,c,l=i(n(2)),u=n(9),d=function(e){function t(t){var n=e.call(this,t)||this;return n.createTableDataHeadings=function(e){var t=[];return Object.keys(e).map((function(n){var r=void 0!==e[n].details?e[n].details.overallSavingsMs:"";t.push({resources:e[n].title,id:e[n].id,time:(r/1e3).toFixed(2)+"s"})})),t},n.createTableDataAdditionalInfo=function(e,t){var n=[];return Object.keys(e).map((function(r){e[r].id===t&&Object.keys(e[r].details.items).map((function(t){var o;o=e[r].details.items[t].wastedBytes?(e[r].details.items[t].wastedBytes/1024).toFixed(2)+"KiB":e[r].details.items[t].wastedMs+" ms",n.push({url:e[r].details.items[t].url,size:(e[r].details.items[t].totalBytes/1024).toFixed(2)+" KiB",saving:o})}))})),n},n.getColumns=function(e){return"uses-rel-preload"==e?[{header:"URL Address",accessor:"url",mSize:"80%"},{header:"Potential Saving",accessor:"saving"}]:[{header:"URL Address",accessor:"url",mSize:"60%"},{header:"Transfer Size",accessor:"size"},{header:"Potential Saving",accessor:"saving"}]},n.isSelectedRowInComponentState=function(e){return Boolean(n.state.expandedRows.find((function(t){return n.areObjectsEqual(t,e)})))},n.handleExpandToggle=function(e){if(n.isSelectedRowInComponentState(e))n.setState({expandedRows:n.state.expandedRows.filter((function(t){return!n.areObjectsEqual(t,e)}))});else{var t=[].concat(n.state.expandedRows);n.setState({expandedRows:t.concat(e)})}},n.render=function(){var e=n.state.expandedRows;return l.createElement(u.Table,{border:"small",mobileLayout:"card-flat",columns:[{header:"Optimize Resources",accessor:"resources"},{header:"Potential Saving",accessor:"time",style:{textAlign:n.props.isPhone?"left":"right"}}],data:n.createTableDataHeadings(n.props.data),expandedRows:e,onExpandToggle:n.handleExpandToggle,expandableTemplate:function(e){return l.createElement(u.Grid,{gap:"small",padding:n.props.isPhone?"none":"responsive"},l.createElement(u.Table,{mobileLayout:"card-flat",border:"small",cellHeight:"small",density:"small",columns:n.getColumns(e.id),data:n.createTableDataAdditionalInfo(n.props.data,e.id)}))}})},n.state={expandedRows:[]},n}return s(t,e),t.prototype.getDataByRow=function(e){return this.props.data[e.name]},t.prototype.areObjectsEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t}(l.Component);t.default=d,a=n(0).default,c=n(0).leaveModule,a&&(a.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/analysys-table/analysys-table.tsx"),a.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/analysys-table/analysys-table.tsx"),a.register(l,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/analysys-table/analysys-table.tsx"),a.register(d,"AnalysysTable","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/analysys-table/analysys-table.tsx"),c(e))}).call(this,n(1)(e))},function(e,t,n){var r=n(1216);"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: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n height: 60px;\n line-height: 0;\n position: absolute;\n text-align: center;\n top: 0;\n width: 60px;\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: 4px;\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: 60px;\n line-height: 24px;\n position: relative;\n text-size-adjust: 100%;\n width: 60px;\n word-break: break-word;\n -webkit-font-smoothing: antialiased; }\n\n.lh-gauge__wrapper {\n font-size: 16px;\n height: 60px;\n line-height: 24px;\n position: relative;\n width: 60px;\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.lh-gauge-arc--transparent .lh-gauge__percentage {\n font-size: 32px;\n font-weight: bold; }\n\n.lh-gauge-arc--transparent .lh-gauge-arc {\n color: transparent !important;\n stroke: transparent !important; }\n\n.sg-tooltip {\n z-index: 9999; }\n\n.lh-gauge__percentage--small, .lh-gauge__wrapper--small, .lh-gauge__svg-wrapper--small {\n height: 48px;\n width: 48px;\n font-size: 16px; }\n",""])},function(e,t,n){"use strict";(function(e){var r;(r=n(0).enterModule)&&r(e);var o,s=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)}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c,l,u=i(n(2)),d=n(25),p=n(10),f=a(n(62)),g=n(9),m=n(16),h=a(n(221)),_=n(100),v=a(n(496)),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):1==n.props.options.cloudflare_optimization_status?(n.props.deauthenticate(!0),n.props.disableOption(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 s(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=p.translate("Cloudflare API Key get it from {{link}}here{{/link}}",{components:{link:u.createElement(g.Link,{onClick:function(e){e.preventDefault(),window.open("https://dash.cloudflare.com/profile/api-tokens")},style:{textDecoration:"underline"}})}});return u.createElement(f.default,null,u.createElement(g.Flex,{gutter:"xx-small",direction:"column",style:{position:"relative"}},!!this.props.isOptimizing&&u.createElement(g.Loader,{style:{position:"absolute"},className:"loader-cloudflare-optimization"},p.translate("Cloudflare optimization in progress")),!!this.props.isDeauthenticating&&u.createElement(g.Loader,{style:{position:"absolute"},className:"loader-cloudflare-optimization"},p.translate("Cloudflare deauthentication in progress")),u.createElement(h.default,{title:p.translate("Cloudflare Full Page Caching"),checked:this.props.options.cloudflare_optimization,name:"cloudflare_optimization",onChange:this.changeOption},p.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&&u.createElement(g.Flex,{gutter:"large"},u.createElement(g.Box,{sm:"12"},u.createElement(g.Flex,{gutter:"xx-small",background:"light",direction:"column"},u.createElement(g.Flex,{gutter:"large",direction:"row",align:"center"},1==this.props.options.cloudflare_optimization_status&&u.createElement(g.Box,{sm:"12"},u.createElement(g.Notice,{type:"success",background:"white",contentSize:"expanded",shadow:!0},u.createElement(g.Text,{align:"left"},p.translate("You have successfully authenticated to your Cloudflare account. If you want to stop using this service, please {{link}}Deauthenticate{{/link}} first.",{components:{link:u.createElement(g.Link,{onClick:function(t){return e.props.deauthenticate(!1)},style:{textDecoration:"underline"}})}})))),0==this.props.options.cloudflare_optimization_status&&u.createElement(u.Fragment,null,u.createElement(g.Box,{sm:"5"},u.createElement(g.Input,{type:"text",label:p.translate("Email used with Cloudflare"),size:"medium",value:this.state.cloudflare_email,name:"cloudflare_email",state:this.state.emailValidationError?"error":void 0,onChange:function(t){return e.updateState(t)},onBlur:function(t){return e.updateEmail(t)},showValidation:!!this.state.emailValidationError,validationMessage:!!this.state.emailValidationError&&p.translate("Please provide valid email address")})),u.createElement(g.Box,{sm:"5"},u.createElement(g.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":void 0,showValidation:!!this.state.keyValidationError,validationMessage:!!this.state.keyValidationError&&p.translate("Please provide API key")})),u.createElement(g.Box,{sm:"2"},u.createElement(g.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:function(t){return e.validate()}},p.translate("Authenticate"))))),1==this.props.options.cloudflare_optimization_status&&u.createElement(u.Fragment,null,u.createElement(g.Flex,{className:"divider"}),u.createElement(g.Flex,{gutter:"large",direction:"row",align:"center",style:{marginTop:0}},u.createElement(g.Box,{sm:"10"},u.createElement(g.Title,{level:"5",density:"compact",weight:"medium",color:"darkest"},p.translate("Purge Cloudflare Cache")),u.createElement(g.Text,null,p.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:u.createElement("strong",null)}}))),u.createElement(g.Box,{sm:"2"},u.createElement(g.Button,{color:"secondary",size:"large",type:"outlined",className:"button--fluid",onClick:this.props.purgeCloudflareCache},this.props.cloudflareCachePurged?p.translate("Purge Cache"):p.translate("Purging ..."))))),u.createElement(v.default,{testUrl:this.props.testUrl,hasCloudflare:0,cloudflareTest:1,cacheDescription:p.translate("Check if the CloudFlare Cache is working on a certain URL.")}))))),!!this.state.showCloudflareDialog&&u.createElement(_.CloudflareDialog,{toogleClose:this.toogleCloudflareDialog,toogleConfirm:this.authenticate}))},t}(u.Component),b=function(e){return{options:e.Options,isOptimizing:e.Cloudflare.isOptimizing,isDeauthenticating:e.Cloudflare.isDeauthenticating,cloudflareCachePurged:e.Cloudflare.cloudflareCachePurged}},w=function(e){return{enableOption:function(t,n){return e(m.enableOption(t,n,!1))},disableOption:function(t,n){return e(m.disableOption(t,n,!1))},authenticate:function(t,n){return e(m.authenticate(t,n))},deauthenticate:function(t){return e(m.deauthenticate(t))},purgeCloudflareCache:function(){return e(m.purgeCloudflareCache())},testUrl:function(t,n){return e(m.testUrl(t,n))}}};t.default=d.connect(b,w)(y),c=n(0).default,l=n(0).leaveModule,c&&(c.register(s,"__extends","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(i,"__importStar","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(a,"__importDefault","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(u,"React","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(f,"main_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(h,"row_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(v,"cache_tester_1","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(y,"Cloudflare","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(b,"mapStateToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),c.register(w,"mapDispatchToProps","/Users/stanimirstoyanov/Server/projects/wordpress/wp-content/plugins/sg-cachepress/src-js/components/tabs/cloudflare/index.tsx"),l(e))}).call(this,n(1)(e))}]);
core/Combinator/Fonts_Optimizer.php CHANGED
@@ -18,6 +18,15 @@ class Fonts_Optimizer extends Abstract_Combinator {
18
  */
19
  public $fonts_dir = 'google-fonts';
20
 
 
 
 
 
 
 
 
 
 
21
  /**
22
  * Regex parts.
23
  *
@@ -32,7 +41,8 @@ class Fonts_Optimizer extends Abstract_Combinator {
32
  '(?:\s+href\s*=\s*(?P<quotes>[\'|"]))', // Match the href attribute followed by single or double quotes. Create a `quotes` group, so we can use it later.
33
  '(', // Open the capturing group for the href value.
34
  '(?:https?:)?', // Match the protocol, which is optional. Sometimes the fons is added. without protocol i.e. //fonts.googleapi.com/css.
35
- '\/\/fonts\.googleapis\.com\/css', // Match that the href value is google font link.
 
36
  '(?:(?!(?P=quotes)).)+', // Match anything in the href attribute until the closing quote.
37
  ')', // Close the capturing group.
38
  '(?P=quotes)', // Match the closing quote.
@@ -90,6 +100,7 @@ class Fonts_Optimizer extends Abstract_Combinator {
90
  $fonts = $this->get_items( $html );
91
  // Insert preload links for local fonts.
92
  $html = $this->preload_local_fonts( $html );
 
93
  // Bail if there are no fonts or if there is only one font.
94
  if ( empty( $fonts ) ) {
95
  return $html;
@@ -101,10 +112,9 @@ class Fonts_Optimizer extends Abstract_Combinator {
101
  $methods = array(
102
  'parse_fonts', // Parse fonts.
103
  'beautify', // Beautify and remove duplicates.
104
- 'implode_pieces', // Beautify and remove duplicates.
105
  'get_combined_css', // Get combined css.
106
  );
107
-
108
  foreach ( $methods as $method ) {
109
  $_fonts = call_user_func( array( $this, $method ), $_fonts );
110
  }
@@ -116,8 +126,7 @@ class Fonts_Optimizer extends Abstract_Combinator {
116
  $html = str_replace( $font[0], '', $html );
117
  }
118
 
119
- $html = str_replace( '</title>', '</title><link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin/>', $html );
120
-
121
  return $html;
122
  }
123
 
@@ -131,17 +140,11 @@ class Fonts_Optimizer extends Abstract_Combinator {
131
  * @return array Google fonts details.
132
  */
133
  public function parse_fonts( $fonts ) {
134
- $parts = array(
135
- 'fonts' => array(),
136
- 'subset' => array(),
137
- );
138
-
139
  foreach ( $fonts as $font ) {
140
  // Decode the entities.
141
- $url = html_entity_decode( $font[2] );
142
  // Parse the url and get the query string.
143
  $query_string = wp_parse_url( $url, PHP_URL_QUERY );
144
-
145
  // Bail if the query string is empty.
146
  if ( ! isset( $query_string ) ) {
147
  return;
@@ -149,16 +152,16 @@ class Fonts_Optimizer extends Abstract_Combinator {
149
 
150
  // Parse the query args.
151
  $parsed_font = wp_parse_args( $query_string );
152
-
153
- $parts['fonts'][] = $parsed_font['family'];
154
-
155
  // Add subset to collection.
156
  if ( isset( $parsed_font['subset'] ) ) {
157
- $parts['subset'][] = $parsed_font['subset'];
158
  }
159
  }
160
 
161
  return $parts;
 
162
  }
163
 
164
  /**
@@ -171,25 +174,41 @@ class Fonts_Optimizer extends Abstract_Combinator {
171
  * @return arrray Beatified font details.
172
  */
173
  public function beautify( $parts ) {
 
174
  // URL encode & convert characters to HTML entities.
175
- $parts = array_map( function( $item ) {
176
- return array_map(
177
- 'rawurlencode',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  array_map(
179
- 'htmlentities',
180
- $item
181
  )
182
  );
183
- }, $parts);
 
 
184
 
185
- // Remove duplicates.
186
- return array_map(
187
- 'array_filter',
188
- array_map(
189
- 'array_unique',
190
- $parts
191
- )
192
- );
193
  }
194
 
195
  /**
@@ -201,11 +220,31 @@ class Fonts_Optimizer extends Abstract_Combinator {
201
  *
202
  * @return array Imploaded fonts and subsets.
203
  */
204
- public function implode_pieces( $fonts ) {
205
- return array(
206
- 'fonts' => implode( '%7C', $fonts['fonts'] ),
207
- 'subsets' => implode( ',', $fonts['subset'] ),
208
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  }
210
 
211
  /**
@@ -213,28 +252,29 @@ class Fonts_Optimizer extends Abstract_Combinator {
213
  *
214
  * @since 5.3.4
215
  *
216
- * @param array $fonts Fonts data.
217
  *
218
  * @return string Combined tag.
219
  */
220
- public function get_combined_css( $fonts ) {
221
- $display = apply_filters( 'sgo_google_fonts_display', 'swap' );
222
- // Combined url for Google fonts.
223
- $url = 'https://fonts.googleapis.com/css?family=' . $fonts['fonts'] . '&subset=' . $fonts['subsets'] . '&display=' . $display;
224
- // Build the combined tag in case the css is missing or the request fail.
225
- $combined_tag = '<link rel="stylesheet" data-provider="sgoptimizer" href="' . $url . '" />';
 
 
226
 
227
- // Get the fonts css.
228
- $css = $this->get_external_file_content( $url, 'css', 'fonts' );
229
 
230
  // Return the combined tag if the css is empty.
231
  if ( false === $css ) {
232
- return $combined_tag;
233
  }
234
 
235
  // Return combined tag if AMP plugin is active.
236
  if ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() ) {
237
- return $combined_tag;
238
  }
239
 
240
  // Return the inline css.
18
  */
19
  public $fonts_dir = 'google-fonts';
20
 
21
+ /**
22
+ * Google fonts url.
23
+ *
24
+ * @since 5.8.1
25
+ *
26
+ * @var string URL to the google fonts lib.
27
+ */
28
+ const GOOGLE_API_URL = 'https://fonts.googleapis.com/';
29
+
30
  /**
31
  * Regex parts.
32
  *
41
  '(?:\s+href\s*=\s*(?P<quotes>[\'|"]))', // Match the href attribute followed by single or double quotes. Create a `quotes` group, so we can use it later.
42
  '(', // Open the capturing group for the href value.
43
  '(?:https?:)?', // Match the protocol, which is optional. Sometimes the fons is added. without protocol i.e. //fonts.googleapi.com/css.
44
+ '\/\/fonts\.googleapis\.com\/', // Match that the href value is google font link.
45
+ '(?P<type>css2?)', // The type of the fonts CSS/CSS2.
46
  '(?:(?!(?P=quotes)).)+', // Match anything in the href attribute until the closing quote.
47
  ')', // Close the capturing group.
48
  '(?P=quotes)', // Match the closing quote.
100
  $fonts = $this->get_items( $html );
101
  // Insert preload links for local fonts.
102
  $html = $this->preload_local_fonts( $html );
103
+
104
  // Bail if there are no fonts or if there is only one font.
105
  if ( empty( $fonts ) ) {
106
  return $html;
112
  $methods = array(
113
  'parse_fonts', // Parse fonts.
114
  'beautify', // Beautify and remove duplicates.
115
+ 'prepare_urls', // Prepare the combined urls.
116
  'get_combined_css', // Get combined css.
117
  );
 
118
  foreach ( $methods as $method ) {
119
  $_fonts = call_user_func( array( $this, $method ), $_fonts );
120
  }
126
  $html = str_replace( $font[0], '', $html );
127
  }
128
 
129
+ $html = str_replace( '</title>', '</title><link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin/><link rel="preconnect" href="https://fonts.googleapis.com">', $html );
 
130
  return $html;
131
  }
132
 
140
  * @return array Google fonts details.
141
  */
142
  public function parse_fonts( $fonts ) {
 
 
 
 
 
143
  foreach ( $fonts as $font ) {
144
  // Decode the entities.
145
+ $url = html_entity_decode( $font[2] );
146
  // Parse the url and get the query string.
147
  $query_string = wp_parse_url( $url, PHP_URL_QUERY );
 
148
  // Bail if the query string is empty.
149
  if ( ! isset( $query_string ) ) {
150
  return;
152
 
153
  // Parse the query args.
154
  $parsed_font = wp_parse_args( $query_string );
155
+ // Assign parsed fonts to the parts array.
156
+ $parts[ $font['type'] ]['fonts'][] = $parsed_font['family'];
 
157
  // Add subset to collection.
158
  if ( isset( $parsed_font['subset'] ) ) {
159
+ $parts[ $font['type'] ]['subset'][] = $parsed_font['subset'];
160
  }
161
  }
162
 
163
  return $parts;
164
+
165
  }
166
 
167
  /**
174
  * @return arrray Beatified font details.
175
  */
176
  public function beautify( $parts ) {
177
+
178
  // URL encode & convert characters to HTML entities.
179
+ foreach ( $parts as $key => $type ) {
180
+ if ( 'css2' === $key ) {
181
+ continue;
182
+ }
183
+ $type = array_map( function( $item ) {
184
+ return array_map(
185
+ 'rawurlencode',
186
+ array_map(
187
+ 'htmlentities',
188
+ $item
189
+ )
190
+ );
191
+ }, $type);
192
+ $parts[ $key ] = $type;
193
+ }
194
+
195
+ // Remove duplicates.
196
+ foreach ( $parts as $key => $type ) {
197
+ if ( 'css2' === $key ) {
198
+ continue;
199
+ }
200
+ $type = array_map(
201
+ 'array_filter',
202
  array_map(
203
+ 'array_unique',
204
+ $type
205
  )
206
  );
207
+ // Assign array with removed duplicates to the main one.
208
+ $parts[ $key ] = $type;
209
+ }
210
 
211
+ return $parts;
 
 
 
 
 
 
 
212
  }
213
 
214
  /**
220
  *
221
  * @return array Imploaded fonts and subsets.
222
  */
223
+ public function prepare_urls( $fonts ) {
224
+ // Define the display variable.
225
+ $display = apply_filters( 'sgo_google_fonts_display', 'swap' );
226
+ // Implode different fonts into one.
227
+ foreach ( $fonts as $css_type => $value ) {
228
+ $url = self::GOOGLE_API_URL . $css_type;
229
+ $subsets = ! empty( $value['subset'] ) ? implode( ',', $value['subset'] ) : '';
230
+ switch ( $css_type ) {
231
+ case 'css':
232
+ $url .= '?family=' . implode( '%7C', $value['fonts'] );
233
+ break;
234
+ case 'css2':
235
+ $query_string = '';
236
+ foreach ( $value['fonts'] as $index => $font_family ) {
237
+ $delimiter = 0 === $index ? '?' : '&';
238
+ $query_string .= $delimiter . 'family=' . $font_family;
239
+ }
240
+ $url .= $query_string;
241
+ break;
242
+ }
243
+
244
+ $urls[] = $url . '&display=' . $display . '&subset=' . $subsets;
245
+ }
246
+
247
+ return $urls;
248
  }
249
 
250
  /**
252
  *
253
  * @since 5.3.4
254
  *
255
+ * @param array $urls Fonts data.
256
  *
257
  * @return string Combined tag.
258
  */
259
+ public function get_combined_css( $urls ) {
260
+ // Gather all of the Google fonts and generate the combined tag.
261
+ $combined_tags = array();
262
+ $css = '';
263
+ foreach ( $urls as $url ) {
264
+ // Get the fonts css.
265
+ $css .= $this->get_external_file_content( $url, 'css', 'fonts' );
266
+ $combined_tags[] = '<link rel="stylesheet" data-provider="sgoptimizer" href="' . $url . '" />'; //phpcs:ignore
267
 
268
+ }
 
269
 
270
  // Return the combined tag if the css is empty.
271
  if ( false === $css ) {
272
+ return implode( '', $combined_tags );
273
  }
274
 
275
  // Return combined tag if AMP plugin is active.
276
  if ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() ) {
277
+ return implode( '', $combined_tags );
278
  }
279
 
280
  // Return the inline css.
core/Modules/Modules.php CHANGED
@@ -131,7 +131,7 @@ class Modules {
131
  ),
132
  ),
133
  'css' => array(
134
- 'title' => 'Mnify CSS Files',
135
  'text' => 'Minify your CSS files in order to reduce their size and reduce the number of requests to the server.',
136
  'weight' => 85,
137
  'tab' => 'frontend',
131
  ),
132
  ),
133
  'css' => array(
134
+ 'title' => 'Minify CSS Files',
135
  'text' => 'Minify your CSS files in order to reduce their size and reduce the number of requests to the server.',
136
  'weight' => 85,
137
  'tab' => 'frontend',
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Hristo Sg, siteground, sstoqnov, stoyangeorgiev
3
  Tags: nginx, caching, speed, memcache, memcached, performance, siteground, nginx, supercacher
4
  Requires at least: 4.7
5
  Requires PHP: 5.5
6
- Tested up to: 5.7.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -232,6 +232,11 @@ Our plugin uses a cookie in order to function properly. It does not store person
232
 
233
  == Changelog ==
234
 
 
 
 
 
 
235
  = Version 5.8.1 =
236
  * Improved cache purge
237
 
3
  Tags: nginx, caching, speed, memcache, memcached, performance, siteground, nginx, supercacher
4
  Requires at least: 4.7
5
  Requires PHP: 5.5
6
+ Tested up to: 5.8
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
232
 
233
  == Changelog ==
234
 
235
+ = Version 5.8.2 =
236
+ * Improved speed tests
237
+ * Improved Google Fonts combination
238
+ * Improved HTTPS enforce
239
+
240
  = Version 5.8.1 =
241
  * Improved cache purge
242
 
sg-cachepress.php CHANGED
@@ -7,10 +7,10 @@
7
  * @link http://www.siteground.com/
8
  *
9
  * @wordpress-plugin
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.8.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.8.1' );
35
  }
36
 
37
  // Define slug constant.
7
  * @link http://www.siteground.com/
8
  *
9
  * @wordpress-plugin
10
+ * Plugin Name: SiteGround 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.8.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.8.2' );
35
  }
36
 
37
  // Define slug constant.