function f(){import.meta.url,import("_").catch(()=>1);async function*e(){}}jQuery(function(e){var s;function n(r){const u=e(r||document),d="#coupon-error-notice";u.find(d).each((i,o)=>{const c=e(o),l=c.text(),m=c.html();let t="";if(l.includes("&lt;"))t=e("<textarea/>").html(l).text(),c.html(t);else if(m.match(/&lt;.*&gt;/)){const p=document.createElement("textarea");p.innerHTML=m,t=p.value,c.html(t)}t&&/<.*>/.test(t)&&c.css("margin-top","10px")})}n(),e(document).on("updated_checkout updated_cart_totals updated_wc_div applied_coupon removed_coupon",()=>n());const a=(s=document.querySelector(".coupon"))!=null?s:document.body;window.MutationObserver&&a&&new MutationObserver(u=>{u.forEach(d=>{d.addedNodes.forEach(i=>{if(i.nodeType!==Node.ELEMENT_NODE)return;const o=i;(o.id==="coupon-error-notice"||o.querySelector("#coupon-error-notice"))&&n(o)})})}).observe(a,{childList:!0,subtree:!0})});export{f as __vite_legacy_guard};
