(()=>{var e={};!function(){"use strict";function e(e){e.querySelectorAll(".ddfw-review-notice-action").forEach((function(t){t.addEventListener("click",(function(n){var i=t.getAttribute("data-action"),o=new FormData;"true"!==t.getAttribute("data-open-review")&&n.preventDefault(),o.append("action","ddfw_dismiss_review_notice"),o.append("dismiss_action",i),o.append("prefix",e.getAttribute("data-prefix")||""),o.append("nonce",e.getAttribute("data-nonce")||""),fetch(ajaxurl,{method:"POST",body:o}).then((function(e){return e.json()})).then((function(t){t.success&&function(e){e.style.transition="opacity 0.5s",e.style.opacity="0",setTimeout((function(){e.remove()}),500)}(e)}))}))}))}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".ddfw-review-notice").forEach(e)}))}();for(var t in e)this[t]=e[t];e.__esModule&&Object.defineProperty(this,"__esModule",{value:!0})})();