1document.addEventListener("alpine:init",()=>{Alpine.data("toastNotifications",()=>({notifications:[],displayDuration:5e3,maxNotifications:10,addNotification({variant:i="info",title:t=null,message:o=null,duration:a=null}){const n={id:Date.now(),variant:i,title:t,message:o,duration:a||this.displayDuration};this.notifications.length>=this.maxNotifications&&this.notifications.splice(0,this.notifications.length-(this.maxNotifications-1)),this.notifications.push(n)},removeNotification(i){this.notifications=this.notifications.filter(t=>t.id!==i)},handleCartError(i){let t="Something went wrong. Please try again.",o="Cart Error";i.detail&&(typeof i.detail=="string"?t=i.detail:i.detail.message&&(t=i.detail.message,i.detail.title&&(o=i.detail.title))),t.toLowerCase().includes("out of stock")?(o="Out of Stock",t="This product is currently out of stock. Please try again later."):t.toLowerCase().includes("limit")?(o="Quantity Limit",t="You've reached the maximum quantity for this item."):t.toLowerCase().includes("network")&&(o="Connection Error",t="Please check your internet connection and try again."),this.addNotification({variant:"error",title:o,message:t,duration:8e3})},showSuccess(i,t=null){this.addNotification({variant:"success",title:i,message:t})},showWarning(i,t=null){this.addNotification({variant:"warning",title:i,message:t})},showInfo(i,t=null){this.addNotification({variant:"info",title:i,message:t})},showError(i,t=null){this.addNotification({variant:"error",title:i,message:t,duration:8e3})},clearAll(){this.notifications=[]}}))});window.showToast=(i,t,o=null,a=null)=>{window.dispatchEvent(new CustomEvent("notify",{detail:{variant:i,title:t,message:o,duration:a}}))};window.showCartSuccess=(i="Item added to cart!")=>{window.showToast("success",i)};window.showCartError=(i="Failed to update cart")=>{window.dispatchEvent(new CustomEvent("cart:error",{detail:i}))};
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.