You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.9 KiB
JavaScript
1 line
1.9 KiB
JavaScript
7 months ago
|
(()=>{"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 n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(a=n.key,i=void 0,i=function(e,t){if("object"!==o(e)||null===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)}(a,"string"),"symbol"===o(i)?i:String(i)),n)}var a,i}var a=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,o,a;return t=e,(o=[{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"),l=r()("#module-sitemap").is(":checked"),s=i&&l;e.attr("disabled",!s),e.next().toggleClass("rank-math-tooltip"),e.attr("checked",s&&o),s&&o?e.parents(".rank-math-box").addClass("active"):e.parents(".rank-math-box").removeClass("active"),"sitemap"===a&&(t.attr("disabled",!l),t.next().toggleClass("rank-math-tooltip"),t.parents(".rank-math-box").toggleClass(n?"active":""),t.attr("checked",l&&n))}}))}}])&&n(t.prototype,o),a&&n(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();r()((function(){new a}))})();
|