(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=jQuery;var r=e.n(t);function o(e){return o="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},o(e)}function n(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,a(o.key),o)}}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var i=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.updateModules()},(t=[{key:"updateModules",value:function(){var e=r()("#module-video-sitemap"),t=r()("#module-news-sitemap"),o=e.is(":checked"),n=t.is(":checked");r()(".rank-math-modules").on("change",(function(){var a=r()(this).val();if("sitemap"===a||"rich-snippet"===a){var i=r()("#module-rich-snippet").is(":checked"),c=r()("#module-sitemap").is(":checked"),l=i&&c;e.attr("disabled",!l),e.next().toggleClass("rank-math-tooltip"),e.attr("checked",l&&o),l&&o?e.parents(".rank-math-box").addClass("active"):e.parents(".rank-math-box").removeClass("active"),"sitemap"===a&&(t.attr("disabled",!c),t.next().toggleClass("rank-math-tooltip"),t.parents(".rank-math-box").toggleClass(n?"active":""),t.attr("checked",c&&n))}}))}}])&&n(e.prototype,t),o&&n(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,o}();r()((function(){new i}))})();