# elasticpress/4.2.0/dist/js/notice-script.min.js

ElasticPress, version 4.2.0. 1 lines.

- Page: https://pluginprobe.com/plugins/elasticpress/4.2.0/code/dist/js/notice-script.min.js
- Raw: https://pluginprobe.com/plugins/elasticpress/4.2.0/raw/dist/js/notice-script.min.js
- Modified: 2022-04-05T17:53:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elasticpress/4.2.0/code/dist/js/notice-script.min.js#L10-L20`.

```javascript
!function(){"use strict";var n={n:function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},d:function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}},e=window.wp.apiFetch,t=n.n(e),o=window.wp.domReady,r=n.n(o);const{epAdmin:c,ajaxurl:i}=window;r()((()=>{const n=document.querySelectorAll(".notice[data-ep-notice]"),e=n=>{if(!n.target.classList.contains("notice-dismiss"))return;const e=new FormData;e.append("action","ep_notice_dismiss"),e.append("notice",n.currentTarget.dataset.epNotice),e.append("nonce",c.nonce),t()({method:"POST",url:i,body:e})};for(const t of n)t.addEventListener("click",e)}))}();
```
