Current File : /home/aventura/www/site/wp-content/plugins/wp-smushit/assets/js/resize-detection.min.js
!function(e){var t={};function r(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,s){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(s,n,function(t){return e[t]}.bind(null,n));return s},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=15)}({15:function(e,t,r){"use strict";jQuery(function(e){e(window).load(function(){e("#wp-admin-bar-smush-resize-detection").toggle(function(){t()},function(){r()})});var t=function(){e("body img[data-smush-image]").each(function(){var t=e(this);if(null===t.css("width")||null===t.css("height"))return!0;var r=t.css("width").replace("px",""),s=t.css("height").replace("px",""),n=t.prop("naturalWidth"),i=t.prop("naturalHeight"),o=1.5*r<n,u=1.5*s<i,a=r>n,c=s>i;if(!(o||u||a||c))return!0;if(o||u)var l=wp_smush_resize_vars.large_image;else if(a||c)l=wp_smush_resize_vars.small_image;var d='<div class="smush-resize-box smush-tooltip smush-tooltip-constrained" data-tooltip="'+(l=(l=l.replace("width",r)).replace("height",s))+'"><span class="smush-tag">'+n+" × "+i+'px</span><i class="smush-front-icons smush-front-icon-arrows-in" aria-hidden="true"></i><span class="smush-tag smush-tag-success">'+r+" × "+s+"px</span></div>";t.before(d),t.addClass("smush-detected-img")})},r=function(){e(".smush-resize-box").remove(),e(".smush-detected-img").removeClass("smush-detected-img")}})}});
//# sourceMappingURL=resize-detection.min.js.map