!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=373)}({12:function(e,t){e.exports=jQuery},16:function(e,t){e.exports=wp.hooks},373:function(e,t,n){"use strict";n.r(t);var r=n(12),o=n.n(r),i=n(16);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.productImages=o()(".product_images"),this.events(),this.hooks()}var t,n,r;return t=e,(n=[{key:"hooks",value:function(){Object(i.addFilter)("rank_math_content","rank-math-pro",this.getContent.bind(this),11),Object(i.addFilter)("rankMath_analysis_contentLength","rank-math-pro",this.changeFilteredText.bind(this),11),Object(i.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math-pro",this.contentBoundaries.bind(this),11),Object(i.addAction)("rank_math_data_changed","rank-math-pro",this.refreshResults.bind(this))}},{key:"getContent",value:function(e){return this.productImages.length?(this.productImages.find("li").each((function(){void 0!==o()(this).find("img")[0]&&(e+=o()(this).find("img")[0].outerHTML)})),e):e}},{key:"events",value:function(){this.productImages.length&&this.productImages.on("DOMSubtreeModified",(function(){rankMathEditor.refresh("content")}))}},{key:"changeFilteredText",value:function(e){return e.failed=e.failed.replace("600 words","200 words"),e.emptyContent=e.emptyContent.replace("600-2500 words","200 words"),e}},{key:"contentBoundaries",value:function(){return{recommended:{boundary:200,score:8},belowRecommended:{boundary:150,score:5},medium:{boundary:120,score:4},belowMedium:{boundary:100,score:3},low:{boundary:80,score:2}}}},{key:"refreshResults",value:function(e){"schemas"===e&&rankMathEditor.refresh("content")}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();o()((function(){new u}))}});