jQuery(function(s){function i(){s(document).off("click",".disco-review-notice .notice-dismiss").on("click",".disco-review-notice .notice-dismiss",function(){s.ajax({url:ajaxurl,type:"POST",data:{action:"disco_dismiss_review_notice",nonce:DISCO_NOTICE.nonce,dismiss:"later"},success:function(i){i.success?s(".disco-review-notice").fadeOut():console.error("Failed to dismiss:",i.data.message)}})}),s(".disco-dismiss-review").off("click").on("click",function(i){i.preventDefault();let o=s(this).data("dismiss");s.ajax({url:ajaxurl,type:"POST",data:{action:"disco_dismiss_review_notice",nonce:DISCO_NOTICE.nonce,dismiss:o},success:function(i){i.success?s(".disco-review-notice").fadeOut():console.error("Failed to dismiss:",i.data.message)}})})}s(document).on("updated_notice",function(){i()}),i(),jQuery(document).ready(function(s){s(document).on("click",".disco-promotional-notice .notice-dismiss",function(i){i.preventDefault();const o=s(this).closest(".disco-promotional-notice");s.post(ajaxurl,{action:"disco_dismiss_promotional_notice",nonce:DISCO_NOTICE.nonce},function(s){s.success?o.fadeOut():console.error("Dismiss failed:",s.data.message)})})}),s(document).on("click",".disco-compatible-plugin-notice .notice-dismiss",function(i){i.preventDefault(),s.ajax({url:ajaxurl,type:"POST",data:{action:"disco_dismiss_compatible_plugin_notice",nonce:DISCO_NOTICE.nonce,dismiss:"never"},success:function(i){i.success?s(".disco-compatible-plugin-notice").fadeOut():console.error("Failed to dismiss:",i.data.message)}})})}),jQuery(function(s){s(document).on("click",".disco-promotional-notice-wrapper .notice-dismiss",function(i){i.preventDefault();const o=s(this).closest(".disco-promotional-notice");s.post(ajaxurl,{action:"disco_dismiss_promotional_notice",nonce:DISCO_NOTICE.nonce},function(s){s.success?o.fadeOut():console.error("Dismiss failed:",s.data.message)})}),s(document).on("click",".disco-feature-unlock-notice .notice-dismiss",function(i){i.preventDefault();const o=s(this).closest(".disco-feature-unlock-notice");s.ajax({url:ajaxurl,type:"POST",data:{action:"disco_dismiss_feature_unlock_notice",nonce:DISCO_NOTICE.nonce,dismiss:"never"},success:function(s){s.success?o.fadeOut():console.error("Failed to dismiss:",s.data.message)}})})});