PageSourceSearch

https://www.craftcannabis.com/assets/useCartLimitNotice-DsijEdUu.js

js craftcannabis.com collected 2026-10-01 23:42:55 UTC 667 bytes, 1 lines download raw bytes

1import{r as t}from"./chunk-4ZMWKKQ3-BvHWGg8R.js";import{l as d,z as p}from"./client-Cg1Z0sH-.js";function g(e){return e.replace(/\d+\.\d{3,}/g,u=>String(Number(Number(u).toFixed(2))))}function N(){const{cart:e}=d(),[u,a]=t.useState(null),[c,m]=t.useState(0);p(s=>{(s.type==="item_added"||s.type==="item_updated")&&m(f=>f+1)});const r=e.items.map(s=>`${s.id}:${s.quantity}`).join("|"),n=t.useRef(r),i=t.useRef(0),o=t.useRef(!1);return t.useEffect(()=>{if(!o.current){o.current=!0,n.current=r;return}if(r!==n.current){n.current=r,a(null);return}e.errorMessage&&(i.current+=1,a({message:g(e.errorMessage),seq:i.current}))},[r,e.errorMessage,c]),u}export{g as r,N as u};

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.