PageSourceSearch

http://uhhmami.com/wp-content/plugins/bowe-blocks/build/blocks/woo-minicart/view.js?ver=dc7ed1d1bd5aa9617520

js uhhmami.com collected 2026-10-06 17:33:04 UTC 2,914 bytes, 1 lines download raw bytes

1(()=>{var e={3:()=>{jQuery(document).ready(function(e){const o={init:function(){e(document).on("click",".apply-coupon",this.applyCoupon),e("body").on("click",".bowe-minicart-applied-discounts-item-remove",this.removeCoupon)},applyCoupon:function(c){c.preventDefault();let a=e("#coupon_code").val();o.ajax({action:"apply_coupon_via_ajax",coupon_code:a},function(e){e.success?(o.showNotice(e.data?.message||"Coupon applied successfully!","success"),setTimeout(()=>{t()},500)):o.showNotice(e.data?.message||"Failed to add coupon.","error")})},removeCoupon:function(c){c.preventDefault();let a=e(this).data("coupon");o.ajax({action:"remove_coupon_via_ajax",coupon_code:a},function(e){e.success?t():o.showNotice(e.data?.message||"Failed to remove coupon.","error")})},showNotice:function(o,t="success"){const c=e("#cart .woocommerce-notices-wrapper"),a=e(`<div class="woocommerce-message ${t}">${o}</div>`);c.append(a),setTimeout(()=>{a.fadeOut(2e3,function(){e(this).remove()})},5e3)},ajax:function(o,t){return e.ajax({url:wc_add_to_cart_params.ajax_url,type:"POST",data:o,success:t||function(e){console.log("Response:",e)},error:function(e,o,t){console.error("Error:",t)}})}};function t(){e("body").hasClass("woocommerce-checkout")?jQuery("body").trigger("update_checkout"):e(document.body).trigger("wc_fragment_refresh")}o.init()})},771:()=>{jQuery(document).ready(function(e){let o;e(document).on("input change",".bowe-minicart-items-item .input-text.qty.text",function(){let t=e(this);clearTimeout(o),o=setTimeout(function(){console.log("Updating mini cart fragment...");let o=t.closest(".woocommerce-mini-cart-item").data("cart_item_key"),c=t.val();c<1&&(console.log("here somehow...."),c=1,t.val(1)),e.ajax({url:wc_cart_fragments_params.ajax_url,type:"POST",data:{action:"update_cart_quantity",cart_item_key:o,quantity:c,security:wc_cart_fragments_params.ajax_nonce},success:function(o){e(document.body).trigger("wc_fragment_refresh")},error:function(e){console.error("Failed to update cart:",e)}})},1e3)})})}},o={};function t(c){var a=o[c];if(void 0!==a)return a.exports;var n=o[c]={exports:{}};return e[c](n,n.exports,t),n.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var c in o)t.o(o,c)&&!t.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:o[c]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{"use strict";t(771),t(3),document.addEventListener("DOMContentLoaded",()=>{!function(){let e=document.querySelectorAll(".minicart-trigger");const o=document.getElementById("cart");function t(){o.classList.toggle("active"),o.classList.contains("active")?document.body.classList.add("stop-scroll"):document.body.classList.remove("stop-scroll")}e.forEach(e=>{e.addEventListener("click",t)}),window.cart=t,window.openCart=function(){o.classList.contains("active")||(o.classList.add("active"),document.body.classList.add("stop-scroll"))}}()})})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.