File Manager
!function(){var t={294:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},361:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},392:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},659:function(t,e,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},695:function(t,e,n){var r=n(8096),o=n(2428),i=n(6449),a=n(3656),u=n(361),c=n(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&o(t),f=!n&&!l&&a(t),d=!n&&!l&&!f&&c(t),p=n||l||f||d,v=p?r(t.length,String):[],h=v.length;for(var y in t)!e&&!s.call(t,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,h))||v.push(y);return v}},999:function(t,e,n){var r=n(9302),o=n(6800);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var c=n[r];c&&t(e,c,r,a)}return e}))}},1033:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},1791:function(t,e,n){var r=n(6547),o=n(3360);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var s=e[u],l=i?i(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),a?o(n,s,l):r(n,s,l)}return n}},1811:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},1873:function(t,e,n){var r=n(9325).Symbol;t.exports=r},1882:function(t,e,n){var r=n(2552),o=n(3805);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},2428:function(t,e,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},2552:function(t,e,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},2865:function(t,e,n){var r=n(9570),o=n(1811)(r);t.exports=o},3243:function(t,e,n){var r=n(6110),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},3360:function(t,e,n){var r=n(3243);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},3488:function(t){t.exports=function(t){return t}},3650:function(t,e,n){var r=n(4335)(Object.keys,Object);t.exports=r},3656:function(t,e,n){t=n.nmd(t);var r=n(9325),o=n(9935),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c},3805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},4335:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4840:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},4894:function(t,e,n){var r=n(1882),o=n(294);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4901:function(t,e,n){var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},5083:function(t,e,n){var r=n(1882),o=n(7296),i=n(3805),a=n(7473),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?d:u).test(a(t))}},5288:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},5481:function(t,e,n){var r=n(9325)["__core-js_shared__"];t.exports=r},5527:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},5950:function(t,e,n){var r=n(695),o=n(8984),i=n(4894);t.exports=function(t){return i(t)?r(t):o(t)}},6009:function(t,e,n){t=n.nmd(t);var r=n(4840),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},6110:function(t,e,n){var r=n(5083),o=n(392);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},6139:function(t,e,n){var r=n(6547),o=n(1791),i=n(999),a=n(4894),u=n(5527),c=n(5950),s=Object.prototype.hasOwnProperty,l=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var n in e)s.call(e,n)&&r(t,n,e[n])}));t.exports=l},6449:function(t){var e=Array.isArray;t.exports=e},6547:function(t,e,n){var r=n(3360),o=n(5288),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},6757:function(t,e,n){var r=n(1033),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(c),r(t,this,s)}}},6800:function(t,e,n){var r=n(5288),o=n(4894),i=n(361),a=n(3805);t.exports=function(t,e,n){if(!a(n))return!1;var u=typeof e;return!!("number"==u?o(n)&&i(e,n.length):"string"==u&&e in n)&&r(n[e],t)}},7167:function(t,e,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},7296:function(t,e,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},7301:function(t){t.exports=function(t){return function(e){return t(e)}}},7334:function(t){t.exports=function(t){return function(){return t}}},7473:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:function(t,e,n){var r=n(2552),o=n(346);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},8096:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},8984:function(t,e,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},9302:function(t,e,n){var r=n(3488),o=n(6757),i=n(2865);t.exports=function(t,e){return i(o(t,e,r),t+"")}},9325:function(t,e,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},9350:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9570:function(t,e,n){var r=n(7334),o=n(3243),i=n(3488),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},9935:function(t){t.exports=function(){return!1}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";var t=n(6139),e=n.n(t);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=new function(){function t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={url:ajaxurl,method:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST",cache:!1};return e instanceof FormData?(e.append("action",t),e.append("_ajax_nonce",window.wp_smush_msgs.nonce),n.contentType=!1,n.processData=!1):(e._ajax_nonce=e._ajax_nonce||window.smush_global.nonce||window.wp_smush_msgs.nonce,e.action=t),n.data=e,new Promise((function(t,e){jQuery.ajax(n).done(t).fail(e)})).then((function(t){return"object"!==r(t)&&(t=JSON.parse(t)),t})).catch((function(t){return console.error("Error:",t),t}))}var n={background:{start:function(){return t("bulk_smush_start")},cancel:function(){return t("bulk_smush_cancel")},initState:function(){return t("bulk_smush_get_status")},getStatus:function(){return t("bulk_smush_get_status")},getStats:function(){return t("bulk_smush_get_global_stats")},backgroundHealthyCheck:function(){return t("smush_start_background_pre_flight_check")},backgroundHealthyStatus:function(){return t("smush_get_background_pre_flight_status")}},smush:{syncStats:function(e){return t("get_stats",e=e||{})},ignoreAll:function(e){return t("wp_smush_ignore_all_failed_items",{type:e})}},common:{dismissNotice:function(e){return t("smush_dismiss_notice",{key:e})},hideModal:function(e){return t("hide_modal",{modal_id:e})},track:function(e,n){return t("smush_analytics_track_event",{event:e,properties:n})},request:function(e){return e.action&&t(e.action,e)}},scanMediaLibrary:{start:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t("wp_smush_start_background_scan",{optimize_on_scan_completed:e=e?1:0,_ajax_nonce:window.wp_smushit_data.media_library_scan.nonce})},cancel:function(){return t("wp_smush_cancel_background_scan",{_ajax_nonce:window.wp_smushit_data.media_library_scan.nonce})},getScanStatus:function(){return t("wp_smush_get_background_scan_status",{_ajax_nonce:window.wp_smushit_data.media_library_scan.nonce})}},webp:{switchMethod:function(e){return t("webp_switch_method",{method:e})}}};e()(this,n)},i=o;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function s(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function l(t,e){return t.get(f(t,e))}function f(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,p=new WeakMap,v=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,d,new Set),s(this,p,void 0)},e=[{key:"track",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.allowToTrack()&&!this.inProgressEvent(t))return this.setInProgressEvent(t),i.common.track(t,n).then((function(n){return setTimeout((function(){e.restoreInProgressEvent(t)}),1e3),n}))}},{key:"inProgressEvent",value:function(t){return l(d,this).has(t)}},{key:"setInProgressEvent",value:function(t){l(d,this).add(t)}},{key:"restoreInProgressEvent",value:function(t){l(d,this).delete(t)}},{key:"allowToTrack",value:function(){var t;return l(p,this)||!(null===(t=window.wp_smush_mixpanel)||void 0===t||!t.opt_in)}},{key:"setAllowToTrack",value:function(t){var e,n,r;return n=this,r=t,(e=p).set(f(e,n),r),this}}],e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),h=new v;function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function b(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}var g=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.reason="not_set",this.requestedAssistance="na",this.modalAction="close",this.modalId="wp-smush-deactivation-survey-modal",this.modal=document.getElementById(this.modalId)},e=[{key:"init",value:function(){this.modal&&this.handleSurveyModal()}},{key:"handleSurveyModal",value:function(){var t=this;this.deactivatePluginLink=document.querySelector('a[id^="deactivate-smush"]')||document.querySelector('a[id^="deactivate-wp-smushit"]'),this.deactivatePluginLink&&this.deactivatePluginLink.addEventListener("click",(function(e){e.preventDefault(),t.showModal(),t.handleSurveyForm()}))}},{key:"handleSurveyForm",value:function(){this.registerRequestAssistanceLinkClickEvent(),this.handleRadioChange(),this.handleSkipDeactivation(),this.handleSubmitForm(),this.handleTrackDeactivate()}},{key:"registerRequestAssistanceLinkClickEvent",value:function(){var t=this,e=this.modal.querySelector("#smush-request-assistance-link");e&&(this.requestedAssistance="no",e.addEventListener("click",(function(){t.requestedAssistance="yes"})))}},{key:"handleRadioChange",value:function(){var t=this;this.userMessageField=document.getElementById("smush-deactivation-user-message-field"),this.userMessageField&&this.modal.querySelectorAll('input[type="radio"]').forEach((function(e){e.addEventListener("change",(function(){t.reason=this.value,t.toggleUserMessageField(this.parentElement)}))}))}},{key:"handleSkipDeactivation",value:function(){var t=this,e=this.modal.querySelector(".smush-skip-deactivate-button");e&&e.addEventListener("click",(function(e){e.target.classList.add("sui-button-onload"),t.modalAction="skip",t.closeModal(),h.allowToTrack()||t.redirectToDeactivateLink()}),{once:!0})}},{key:"handleSubmitForm",value:function(){var t=this,e=this.modal.querySelector(".smush-submit-deactivate-button");e&&e.addEventListener("click",(function(e){e.target.classList.add("sui-button-onload"),t.modalAction="submit",t.closeModal()}),{once:!0})}},{key:"toggleUserMessageField",value:function(t){var e;if(this.userMessageField){this.userMessageField.remove();var n=null===(e=t.dataset)||void 0===e?void 0:e.placeholder;if(n){var r=this.userMessageField.querySelector("textarea");r.placeholder=n,t.after(this.userMessageField),this.userMessageField.classList.remove("sui-hidden"),r.focus()}}}},{key:"getDeactivateLink",value:function(){return this.deactivatePluginLink.href}},{key:"showModal",value:function(){var t;null===(t=window.SUI)||void 0===t||t.openModal(this.modalId,"wpbody-content",void 0,!0,!1,!0)}},{key:"closeModal",value:function(){var t;null===(t=window.SUI)||void 0===t||t.closeModal(!0)}},{key:"handleTrackDeactivate",value:function(){var t=this;this.modal.addEventListener("afterClose",(function(){return t.trackDeactivate()}),{once:!0})}},{key:"trackDeactivate",value:function(){var t=this;if(this.shouldTrack()){var e=this.userMessageField.querySelector("textarea").value,n={Reason:this.reason,Message:e,"Modal Action":this.modalAction,"Requested Assistance":this.requestedAssistance,"Tracking Status":h.allowToTrack()?"opted_in":"opted_out"};i.common.request({action:"smush_track_deactivate",event:"Deactivation Survey",properties:n}).finally((function(){t.shouldDeactivatePlugin()&&t.redirectToDeactivateLink()}))}}},{key:"shouldTrack",value:function(){return h.allowToTrack()||this.isSubmitAction()}},{key:"isSubmitAction",value:function(){return"submit"===this.modalAction}},{key:"shouldDeactivatePlugin",value:function(){return"skip"===this.modalAction||this.isSubmitAction()}},{key:"redirectToDeactivateLink",value:function(){var t=this.getDeactivateLink();window.location.href=t}}],e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w(r.key),r)}}function w(t){var e=function(t,e){if("object"!=_(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_(e)?e:e+""}var j=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},e=[{key:"init",value:function(){this.trackSubmenuProUpsell(),this.trackPluginListProUpsell(),this.trackDashboardWidgetProUpsell()}},{key:"trackSubmenuProUpsell",value:function(){var t=this,e=document.querySelector('#toplevel_page_smush a[href*="utm_campaign=smush_submenu_upsell');e&&e.addEventListener("click",(function(e){var n;t.trackGeneralProUpsell("submenu",null==e||null===(n=e.target)||void 0===n?void 0:n.href)}))}},{key:"trackPluginListProUpsell",value:function(){var t=this,e=document.getElementById("smush-pluginlist-upgrade-link");e&&e.addEventListener("click",(function(e){var n;t.trackGeneralProUpsell("plugins_list",null==e||null===(n=e.target)||void 0===n?void 0:n.href)}))}},{key:"trackDashboardWidgetProUpsell",value:function(){var t=this,e=document.getElementById("smush-box-dashboard-upsell-upsell");if(e){var n=e.querySelector("a[href*=smush-dashboard-upsell]");n&&n.addEventListener("click",(function(e){var n;t.trackGeneralProUpsell("dash_widget",null==e||null===(n=e.target)||void 0===n?void 0:n.href)}))}}},{key:"trackSetupWizardProUpsell",value:function(t,e){this.trackGeneralProUpsell("wizard",t,e)}},{key:"trackGeneralProUpsell",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"na";this.trackProUpsell({Feature:"pro_general",Location:t,"UTM Link":e,"Pro Interests":n})}},{key:"trackProUpsell",value:function(t){t=Object.assign({"User Action":"cta_clicked"},t),h.track("smush_pro_upsell",t)}}],e&&k(t.prototype,e),n&&k(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();document.addEventListener("DOMContentLoaded",(function(){function t(t){t.preventDefault();var n=t.target.closest(".smush-dismissible-notice");e(n.getAttribute("data-key"),n)}function e(t,e){var n=new XMLHttpRequest;n.open("POST",ajaxurl+"?action=smush_dismiss_notice&key="+t+"&_ajax_nonce="+smush_global.nonce,!0),n.onload=function(){e&&e.querySelector("button.notice-dismiss").dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))},n.send()}(new g).init(),(new j).init(),document.querySelectorAll(".smush-dismissible-notice .smush-dismiss-notice-button").forEach((function(e){e.addEventListener("click",t)}));var n=document.querySelector("#wp-smush-cache-notice .smush-dismiss-notice-button");n&&n.addEventListener("click",(function(){var t=new XMLHttpRequest;t.open("POST",ajaxurl+"?action=smush_dismiss_cache_notice&_ajax_nonce="+smush_global.nonce,!0),t.onload=function(){window.SUI.closeNotice("wp-smush-cache-notice")},t.send()}));!function(){var t=document.querySelector(".wp-smush-dismissible-header-notice");if(t&&t.id){var n=t.dataset,r=n.dismissKey,o=n.message;if(o){t.onclick=function(n){var o=n.target.classList,i=o&&o.contains("smush-close-and-dismiss-notice");o&&(i||o.contains("sui-icon-check")||o.contains("sui-button-icon"))&&(r&&e(r),i&&window.SUI.closeNotice(t.id))};var i={type:"warning",icon:"info",dismiss:{show:!0,label:wp_smush_msgs.noticeDismiss,tooltip:wp_smush_msgs.noticeDismissTooltip}};window.SUI.openNotice(t.id,o,i)}}}()}))}()}();
//# sourceMappingURL=smush-global.min.js.map
File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com