Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/bamagocr/wp-content/plugins/wp-smushit/app/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/bamagocr/wp-content/plugins/wp-smushit/app/assets/js/smush-global.min.js
!function(){"use strict";function e(t){return e="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},e(t)}var t=new function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={url:ajaxurl,method:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST",cache:!1};if(n instanceof FormData){var o;if(n.append("action",t),!n.has("_ajax_nonce"))n.append("_ajax_nonce",null===(o=window.smushUIData)||void 0===o||null===(o=o.wpAjax)||void 0===o?void 0:o.nonce);i.contentType=!1,i.processData=!1}else{var r;n._ajax_nonce=n._ajax_nonce||window.smush_global.nonce||(null===(r=window.smushUIData)||void 0===r||null===(r=r.wpAjax)||void 0===r?void 0:r.nonce),n.action=t}return i.data=n,new Promise(function(e,t){jQuery.ajax(i).done(e).fail(t)}).then(function(t){return"object"!==e(t)&&(t=JSON.parse(t)),t}).catch(function(e){return console.error("Error:",e),e})}var n={background:{start:function(){return t("bulk_smush_start")},cancel:function(){return t("bulk_smush_cancel")},pause:function(){return t("bulk_smush_pause")},resume:function(){return t("bulk_smush_resume")},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})}},configs:{save:function(){var e;return t("smush_save_config",{_ajax_nonce:(null===(e=window.smushUIData)||void 0===e||null===(e=e.configsData)||void 0===e?void 0:e.nonce)||""})},apply:function(e){var n;return t("smush_apply_config",{id:e,_ajax_nonce:(null===(n=window.smushUIData)||void 0===n||null===(n=n.configsData)||void 0===n?void 0:n.nonce)||""})},upload:function(e){var n,i=new FormData;return i.append("_ajax_nonce",(null===(n=window.smushUIData)||void 0===n||null===(n=n.configsData)||void 0===n?void 0:n.nonce)||""),i.append("file",e),t("smush_upload_config",i)},syncToHub:function(e){var n;return t("smush_hub_sync_config",{_ajax_nonce:(null===(n=window.smushUIData)||void 0===n||null===(n=n.configsData)||void 0===n?void 0:n.nonce)||"",config:JSON.stringify(e)})}},common:{hideUpgradeModal:function(){return t("hide_new_features")},dismissNotice:function(e){return t("smush_dismiss_notice",{key:e})},remindReviewPrompt:function(){return t("wp_smush_review_prompts_remind_later")},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)},poll:function(){return t("smush_frontend_poll",{})}},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.smushUIData.scanStatus.nonce})},cancel:function(){return t("wp_smush_cancel_background_scan",{_ajax_nonce:window.smushUIData.scanStatus.nonce})},getScanStatus:function(){return t("wp_smush_get_background_scan_status",{_ajax_nonce:window.smushUIData.scanStatus.nonce})}},webp:{switchMethod:function(e){return t("webp_switch_method",{method:e})},recheckStatus:function(){return t("smush_webp_get_status")},showWizard:function(){return t("smush_show_webp_wizard")},hideWizard:function(){return t("smush_hide_webp_wizard")},applyHtaccessRules:function(){return t("smush_webp_apply_htaccess_rules")}},cdn:{toggle:function(e){return t("smush_toggle_cdn",{param:e})},getStats:function(){return t("get_cdn_stats")}},settings:{disconnectSite:function(){return t("wp_smush_disconnect_site")},checkApiStatus:function(){return t("recheck_api_status")}},rating:{completed:function(){return t("smush_rating_completed")},remindLater:function(){return t("smush_rating_remind_later")},dismissed:function(){return t("smush_rating_dismissed")},firstCompletion:function(){return t("smush_rating_first_completion")}},onboarding:{resumeWizard:function(){return t("resume_smush_setup")}},request:function(e){return t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST")}};Object.assign(this,n)},n=t;function i(e){return i="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},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function s(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function a(e,t){return e.get(u(e,t))}function u(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,l=new WeakMap,d=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,c,new Set),s(this,l,void 0)},t=[{key:"track",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.allowToTrack()&&!this.inProgressEvent(e))return this.setInProgressEvent(e),n.common.track(e,i).then(function(n){return setTimeout(function(){t.restoreInProgressEvent(e)},1e3),n})}},{key:"inProgressEvent",value:function(e){return a(c,this).has(e)}},{key:"setInProgressEvent",value:function(e){a(c,this).add(e)}},{key:"restoreInProgressEvent",value:function(e){a(c,this).delete(e)}},{key:"allowToTrack",value:function(){var e;return a(l,this)||!(null===(e=window.wp_smush_mixpanel)||void 0===e||!e.opt_in)}},{key:"setAllowToTrack",value:function(e){var t,n,i;return n=this,i=e,(t=l).set(u(t,n),i),this}}],t&&o(e.prototype,t),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}(),h=new d;function f(e){return f="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},f(e)}function m(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,v(i.key),i)}}function v(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var p=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reason="not_set",this.requestedAssistance="na",this.modalAction="close",this.modalId="wp-smush-deactivation-survey-modal",this.modal=document.getElementById(this.modalId)},t=[{key:"init",value:function(){this.modal&&this.handleSurveyModal()}},{key:"handleSurveyModal",value:function(){var e=this;this.deactivatePluginLink=document.querySelector('a[id^="deactivate-smush"]')||document.querySelector('a[id^="deactivate-wp-smushit"]'),this.deactivatePluginLink&&this.deactivatePluginLink.addEventListener("click",function(t){t.preventDefault(),e.showModal(),e.handleSurveyForm()})}},{key:"handleSurveyForm",value:function(){this.registerRequestAssistanceLinkClickEvent(),this.handleRadioChange(),this.handleSkipDeactivation(),this.handleSubmitForm(),this.handleTrackDeactivate()}},{key:"registerRequestAssistanceLinkClickEvent",value:function(){var e=this,t=this.modal.querySelector("#smush-request-assistance-link");t&&(this.requestedAssistance="no",t.addEventListener("click",function(){e.requestedAssistance="yes"}))}},{key:"handleRadioChange",value:function(){var e=this;this.userMessageField=document.getElementById("smush-deactivation-user-message-field"),this.userMessageField&&this.modal.querySelectorAll('input[type="radio"]').forEach(function(t){t.addEventListener("change",function(){e.reason=this.value,e.toggleUserMessageField(this.parentElement)})})}},{key:"handleSkipDeactivation",value:function(){var e=this,t=this.modal.querySelector(".smush-skip-deactivate-button");t&&t.addEventListener("click",function(t){t.target.classList.add("sui-button-onload"),e.modalAction="skip",e.closeModal(),h.allowToTrack()||e.redirectToDeactivateLink()},{once:!0})}},{key:"handleSubmitForm",value:function(){var e=this,t=this.modal.querySelector(".smush-submit-deactivate-button");t&&t.addEventListener("click",function(t){t.target.classList.add("sui-button-onload"),e.modalAction="submit",e.closeModal()},{once:!0})}},{key:"toggleUserMessageField",value:function(e){var t;if(this.userMessageField){this.userMessageField.remove();var n=null===(t=e.dataset)||void 0===t?void 0:t.placeholder;if(n){var i=this.userMessageField.querySelector("textarea");i.placeholder=n,e.after(this.userMessageField),this.userMessageField.classList.remove("sui-hidden"),i.focus()}}}},{key:"getDeactivateLink",value:function(){return this.deactivatePluginLink.href}},{key:"showModal",value:function(){var e;null===(e=window.SUI)||void 0===e||e.openModal(this.modalId,"wpbody-content",void 0,!0,!1,!0)}},{key:"closeModal",value:function(){var e;null===(e=window.SUI)||void 0===e||e.closeModal(!0)}},{key:"handleTrackDeactivate",value:function(){var e=this;this.modal.addEventListener("afterClose",function(){return e.trackDeactivate()},{once:!0})}},{key:"trackDeactivate",value:function(){var e=this;if(this.shouldTrack()){var t=this.userMessageField.querySelector("textarea").value,i={Reason:this.reason,Message:t,"Modal Action":this.modalAction,"Requested Assistance":this.requestedAssistance,"Tracking Status":h.allowToTrack()?"opted_in":"opted_out"};n.common.request({action:"smush_track_deactivate",event:"Deactivation Survey",properties:i}).finally(function(){e.shouldDeactivatePlugin()&&e.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 e=this.getDeactivateLink();window.location.href=e}}],t&&m(e.prototype,t),i&&m(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}();function _(e){return _="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},_(e)}function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,g(i.key),i)}}function g(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=_(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_(t)?t:t+""}var b=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"init",value:function(){this.trackSubmenuProUpsell(),this.trackPluginListProUpsell(),this.trackDashboardWidgetProUpsell()}},{key:"trackSubmenuProUpsell",value:function(){var e=this,t=document.querySelector('#toplevel_page_smush a[href*="utm_campaign=smush_submenu_upsell');t&&t.addEventListener("click",function(t){var n;e.trackGeneralProUpsell("submenu",null==t||null===(n=t.target)||void 0===n?void 0:n.href)})}},{key:"trackPluginListProUpsell",value:function(){var e=this,t=document.getElementById("smush-pluginlist-upgrade-link");t&&t.addEventListener("click",function(t){var n;e.trackGeneralProUpsell("plugins_list",null==t||null===(n=t.target)||void 0===n?void 0:n.href)})}},{key:"trackDashboardWidgetProUpsell",value:function(){var e=this,t=document.getElementById("smush-box-dashboard-upsell-upsell");if(t){var n=t.querySelector("a[href*=smush-dashboard-upsell]");n&&n.addEventListener("click",function(t){var n;e.trackGeneralProUpsell("dash_widget",null==t||null===(n=t.target)||void 0===n?void 0:n.href)})}}},{key:"trackSetupWizardProUpsell",value:function(e,t){this.trackGeneralProUpsell("wizard",e,t)}},{key:"trackGeneralProUpsell",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"na";this.trackProUpsell({Feature:"pro_general",Location:e,"UTM Link":t,"Pro Interests":n})}},{key:"trackProUpsell",value:function(e){e=Object.assign({"User Action":"cta_clicked"},e),h.track("smush_pro_upsell",e)}}],t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();document.addEventListener("DOMContentLoaded",function(){function e(e){e.preventDefault();var n=e.target.closest(".smush-dismissible-notice");t(n.getAttribute("data-key"),n)}function t(e,t){var n=new XMLHttpRequest;n.open("POST",ajaxurl+"?action=smush_dismiss_notice&key="+e+"&_ajax_nonce="+smush_global.nonce,!0),n.onload=function(){if(t){var e=t.querySelector("button.notice-dismiss");e?e.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0})):t.style.display="none"}},n.send()}(new p).init(),(new b).init(),document.querySelectorAll(".smush-dismissible-notice .smush-dismiss-notice-button").forEach(function(t){t.addEventListener("click",e)});var n=document.querySelector("#wp-smush-cache-notice .smush-dismiss-notice-button");n&&n.addEventListener("click",function(){var e=new XMLHttpRequest;e.open("POST",ajaxurl+"?action=smush_dismiss_cache_notice&_ajax_nonce="+smush_global.nonce,!0),e.onload=function(){window.SUI.closeNotice("wp-smush-cache-notice")},e.send()});!function(){var e=document.querySelector(".wp-smush-dismissible-header-notice");if(e&&e.id){var n=e.dataset,i=n.dismissKey,o=n.message;if(o){e.onclick=function(n){var o=n.target.classList,r=o&&o.contains("smush-close-and-dismiss-notice");o&&(r||o.contains("sui-icon-check")||o.contains("sui-button-icon"))&&(i&&t(i),r&&window.SUI.closeNotice(e.id))};var r={type:"warning",icon:"info",dismiss:{show:!0,label:wp_smush_msgs.noticeDismiss,tooltip:wp_smush_msgs.noticeDismissTooltip}};window.SUI.openNotice(e.id,o,r)}}}();var i=document.querySelector('#toplevel_page_smush ul.wp-submenu li:last-child a[href*="wpmudev.com"]');i&&(i.target="_blank",i.rel="noopener noreferrer")})}();

Hry