(()=>{"use strict";document.body.tfOn("change click",(t=>{let e=t.target;if("change"===t.type){const t="INPUT"===e?.tagName?e.closest(".tb_pro_add_to_cart")?.tfTag("button")[0]:null;t&&(t.dataset.quantity=~~e.value)}else window.wc_add_to_cart_params&&(e=e?.closest(".tbp_remove_from_cart_button"),e&&(t.preventDefault(),e.classList.remove("tf_close"),e.classList.add("tf_loader")))}))})();