!function(){"use strict";var e={n:function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,{a:t}),t},d:function(n,t){for(var i in t)e.o(t,i)&&!e.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:t[i]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},n=jQuery,t=e.n(n),i=lodash,r=wp.hooks;function a(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}new(function(){function e(){var n,t,i;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),i=[],(t="fields")in(n=this)?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,(0,r.addAction)("rank_math_loaded","rank-math",this.init.bind(this))}var n,o,u;return n=e,(o=[{key:"init",value:function(){this.getFields(),this.events()}},{key:"getFields",value:function(){var e=this;t()("#the-list > tr:visible").each((function(n,i){var r=t()("#"+i.id+"-key").val();-1!==t().inArray(r,rankMath.analyzeFields)&&e.fields.push("#"+i.id+"-value")}))}},{key:"events",value:function(){(0,r.addFilter)("rank_math_content","rank-math",this.getContent.bind(this)),t()(this.fields).each((function(e,n){t()(n).on("keyup change",(0,i.debounce)((function(){rankMathEditor.refresh("content")}),500))}))}},{key:"getContent",value:function(e){return t()(this.fields).each((function(n,i){e+=t()(i).val()})),e}}])&&a(n.prototype,o),u&&a(n,u),Object.defineProperty(n,"prototype",{writable:!1}),e}())}();