PageSourceSearch

https://www.merkapp.com/assets/cart-DW1BGDmc.js

js merkapp.com collected 2026-10-01 23:45:46 UTC 1,603 bytes, 1 lines download raw bytes

1import{n as e}from"./auth-C5PZJecf.js";var t={lastUpdate:0,isValid:()=>Date.now()-t.lastUpdate<1e3},n=()=>{t.lastUpdate=0},r=`49f1dbc2-14b3-4cdc-b2d5-2cf81b100f1b`,i={cart:null,note:null,deliverydate:null,deliverynow:!0,deliveryType:`deliverynow`,preference:`contactenme`,deliveryOption:`normal`,isProcessingOrder:!1,tipAmount:0,yappyCancelReason:null,freeShippingEnabled:!1,freeShippingTurboEnabled:!1,shippingConfig:null},a=e((e,t)=>({...i,getCartTotalQuantity:()=>{let{cart:e}=t();if(!e?.cartLines)return 0;let n=e.cartLines.find(e=>e.productId===r),i=e.cartLines.reduce((e,t)=>e+t.quantity,0),a=n?.quantity??0;return Math.max(0,i-a)},getCurrentShoppingBags:()=>{let{cart:e}=t();return e?.cartLines?e.cartLines.find(e=>e.productId===r)?.quantity??0:0},getNeededShoppingBags:()=>{let e=t().getCartTotalQuantity();return Math.max(Math.ceil(e/7),1)},setProcessingOrder:t=>e({isProcessingOrder:t}),setYappyCancelReason:t=>e({yappyCancelReason:t}),setFreeShippingEnabled:t=>e({freeShippingEnabled:t}),setFreeShippingTurboEnabled:t=>e({freeShippingTurboEnabled:t}),setShippingConfig:t=>e({shippingConfig:t}),setLocalValues:t=>e(t),getTotalLines:()=>t().cart?.cartLines?.length??0,getQuantityForProduct:({productId:e})=>{let{cart:n}=t();return n?.cartLines?n.cartLines.find(t=>t.productId===e)?.quantity??0:0},getCosts:()=>{let e=t().cart?.costs;return{subtotal:e?.subtotal??0,tax:e?.tax??0,shipping:e?.shipping??0,discount:e?.discount??0,total:e?.total??0,shippingZone:e?.shippingZone??``,quantity:e?.quantity??0,productDiscounts:e?.productDiscounts??0}},reset:()=>{e({...i}),n()}}));export{t as n,a as t};

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.