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