PageSourceSearch

https://teachingamericanhistory.org/wp-content/themes/teachingamericanhistory/build/woocommerce.js?ver=3.0.4

js teachingamericanhistory.org collected 2026-09-24 08:42:10 UTC 1,448 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={n:o=>{var t=o&&o.__esModule?()=>o.default:()=>o;return e.d(t,{a:t}),t},d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.jQuery;var t=e.n(o);const r=window.Swal;var n=e.n(r);t()(async function(e){e(document).on("click","form.woocommerce-cart-form .item-action",function(o){var t;o.preventDefault(),o.stopPropagation();const r=e(this).data("action"),a=e(this).data("cart-key");if(!a)return void console.error("item key missing");if(!r)return void console.error("unknown action");if(!TAH?.wc_api_nonce)return void console.error("WC API nonce missing");const i=e(`input[name="cart[${a}][qty]"]`);let c=parseInt(null!==(t=i.val())&&void 0!==t?t:"0",10);"increment"===r?c+=1:"decrement"===r&&(c-=1,c<0&&(c=0)),e.ajax({type:"POST",url:"/wp-json/wc/store/v1/cart/update-item",data:{key:a,quantity:c},beforeSend:function(e){var o;e.setRequestHeader("Nonce",null!==(o=TAH?.wc_api_nonce)&&void 0!==o?o:"")},success:function(e){(e.code||e.message)&&console.error("response failed",e)},error:function(e,o){console.error("Error updating cart:",e.responseText),n().fire({icon:"error",title:"Error",text:"Failed to update cart item. Please try again.",timer:5e3,animation:!1,toast:!0,position:"top-end",showConfirmButton:!1,timerProgressBar:!1})},complete:function(){e(document.body).trigger("wc_update_cart")}})})})})();

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.