jQuery(document).ready((function(e){if("undefined"!=typeof adbc_global_settings){var t=e("#adbc-rating-notice");t.length&&e(".adbc-rating-dismiss, #adbc-rating-btn-remind-me").on("click",(function(n){n.preventDefault();var i=e(this).hasClass("adbc-rating-dismiss")?"/dismiss-notification":"/delay-rating-notice";e.ajax({url:adbc_global_settings.rest_url+i,method:"POST",cache:!1,data:{notificationKey:"rating_notice"},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",adbc_global_settings.nonce)},success:function(n){n.success&&t.fadeOut(300,(function(){e(this).remove()}))}})}));var n=e("#adbc-ltd-migration-notice");n.length&&(n.find(".adbc-ltd-dismiss a").on("click",(function(t){t.preventDefault(),e.ajax({url:adbc_global_settings.rest_url+"/dismiss-notification",method:"POST",cache:!1,data:{notificationKey:"ltd_migration_notice"},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",adbc_global_settings.nonce)},success:function(t){t.success&&n.fadeOut(300,(function(){e(this).remove()}))}})})),n.find("#adbc-ltd-btn-remind-me").on("click",(function(t){t.preventDefault(),e.ajax({url:adbc_global_settings.rest_url+"/delay-ltd-migration-notice",method:"POST",cache:!1,data:{notificationKey:"ltd_migration_notice"},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",adbc_global_settings.nonce)},success:function(t){t.success&&n.fadeOut(300,(function(){e(this).remove()}))}})})))}}));