!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.sendRequest=function(e,t){var n=new FormData;return n.append("action","wpml_dismiss_notice"),n.append("id",e),n.append("dismiss",t),fetch(ajaxurl,{method:"POST",body:n}).then(function(e){if(!e.ok)throw new Error("Notice dismiss action has failed!.");return e.json()})},r=t.eventListener=function(e,t){var n=t.target,r=n.checked,i=n.dataset.id;return n.disabled=!0,o(i,r).catch(function(t){e.log(t)}).finally(function(){n.disabled=!1})};t.attachEvents=function(e,t){e.addEventListener("change",function(e){e.target.matches(".wpml_dismiss_notice")&&r(t,e)})}},function(e,t,n){"use strict";var o=n(0);document.addEventListener("DOMContentLoaded",function(){(0,o.attachEvents)(document,console)})},function(e,t,n){e.exports=n(1)}]);