(()=>{"use strict";var a={n:t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},d:(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(a,t)=>Object.prototype.hasOwnProperty.call(a,t)};const t=jQuery;var e;(e=a.n(t)())((function(){e(".rank-math-mark-solved a").on("click",(function(a){a.preventDefault();var t=e(this),r=t.data("is-solved");return e.ajax({url:rankMath.ajaxurl,type:"POST",dataType:"json",data:{action:"rank_math_mark_answer_solved",security:rankMath.security,topic:t.data("topic-id"),reply:t.data("id"),isSolved:r}}).done((function(){if(r)return t.text(t.data("unsolved-text")),void e(".rank-math-mark-solved.rank-math-hidden").removeClass("rank-math-hidden");e(".rank-math-mark-solved").addClass("rank-math-hidden"),t.parent().removeClass("rank-math-hidden"),t.text(t.data("solved-text"))})),!1}))}))})();