1function debounce(func,delay){let timer;return function(...args){clearTimeout(timer),timer=setTimeout(()=>func.apply(this,args),delay)}}function updateCartNote(cartNote){fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({note:cartNote})}).then(response=>response.json()).catch(error=>{console.error("Error:",error)})}const debounceUpdateCartNote=debounce(updateCartNote,1e3);document.addEventListener("DOMContentLoaded",event=>{const cartNoteEle=document.querySelector("#bss-cart-note-textarea");BSS_B2B&&cartNoteEle&&(updateCartNote(""),cartNoteEle.addEventListener("input",function(){debounceUpdateCartNote(this.value)}))});const renderMessage=(value,isCheckout=!1,event,noteBox)=>{const message=noteBox.querySelector("#bss-b2b-note-message");if(value.length>200)if(isCheckout&&event&&(event.preventDefault(),event.stopPropagation(),event.stopImmediatePropagation()),message)message.style.visibility="visible";else{const div=document.createElement("div");div.textContent="Maximum 200 characters only",div.style.color="red",div.id="bss-b2b-note-message",noteBox.append(div)}else message&&value.length<=200&&(message.style.visibility="hidden")};setTimeout(()=>{const noteBox=document.querySelector(".bss-b2b-custom-fields.bss-config-header");if(noteBox){const textNoteBox=noteBox.querySelector("textarea");if(textNoteBox){textNoteBox.addEventListener("blur",event=>{const value=textNoteBox.value;renderMessage(value,!1,event,noteBox)});const checkoutBtn=document.querySelector('.cart__buttons-wrapper button[name="checkout"]');checkoutBtn&&checkoutBtn.addEventListener("click",event=>{const value=textNoteBox.value;renderMessage(value,!0,event,noteBox)})}}},300); 2//# sourceMappingURL=/cdn/shop/t/65/assets/bss-custom.js.map?v=174808184804217971151788357284
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.