!function(){function e(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0,configurable:!0})}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},i={},o=t.parcelRequired478;null==o&&((o=function(e){if(e in n)return n[e].exports;if(e in i){var t=i[e];delete i[e];var o={id:e,exports:{}};return n[e]=o,t.call(o.exports,o,o.exports),o.exports}var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(e,t){i[e]=t},t.parcelRequired478=o),(0,o.register)("6LTuJ",function(t,n){e(t.exports,"emptyElement",function(){return i}),e(t.exports,"getClosest",function(){return o}),e(t.exports,"startLoading",function(){return r}),e(t.exports,"stopLoading",function(){return s});let i=e=>{for(;e.firstChild;)e.removeChild(e.firstChild)},o=(e,t,n)=>{if(e.matches(t))return e;if("BODY"!==e.tagName&&"HTML"!==e.tagName){n=n||20;for(let i=0;i<n;i++){let n=e.parentNode;if(!n||"BODY"===n.tagName||"HTML"===n.tagName)break;if(n.matches(t))return n;e=n}}},r=e=>{e.classList.add("is-loading")},s=e=>{e.classList.remove("is-loading")}});var r=o("6LTuJ");document.addEventListener("click",function(e){let t=e.target;(0,r.getClosest)(t,".kirki-discount-notice.is-dismissible .notice-dismiss")&&function(e){let t=(0,r.getClosest)(e.target,".kirki-discount-notice");if(!t)return;let n=t.dataset.dismissNonce;n=n||"";let i=new URLSearchParams;i.append("action","kirki_dismiss_discount_notice"),i.append("nonce",n),i.append("dismiss","1"),fetch(ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:i.toString(),credentials:"same-origin"}).then(e=>e.json()).then(e=>{e&&e.success&&console.log(e.data)}).catch(()=>{})}(e)})}();