document.addEventListener("DOMContentLoaded",(()=>(()=>{const e=document.querySelector("#woocommerce_cart_redirect_after_add"),c=document.querySelector(" #woocommerce_enable_ajax_add_to_cart");e&&(e.checked=!0,e.addEventListener("change",(()=>{e.checked||(e.checked=!0)})),e.parentElement.style.opacity=.5),c&&(c.checked=!1,c.addEventListener("change",(()=>{c.checked&&(c.checked=!1)})),c.parentElement.style.opacity=.5)})()));