1import{L as u}from"./BPvhIheo.js";import{d as p,i as d,l as i,x as l,h as _,q as f,o as y}from"./C-pd9DEJ.js";const x=p({__name:"cart_link",async setup(g){let t,r;const o=d(),n=/^\d+:\d*:\d+(,\d+:\d*:\d+)*$/,c=_(()=>{const a=o.query.items;if(typeof a=="string"&&n.test(a))return a;for(const s of Object.keys(o.query))if(n.test(s))return s;return""}),e=typeof o.query.ref=="string"?o.query.ref.trim():"",m=e?`&ref=${encodeURIComponent(e)}`:"";if(e)try{localStorage.setItem("referral_code",e)}catch{}return c.value?([t,r]=i(()=>f(`/compra?items=${c.value}${m}`,{replace:!0})),await t,r()):([t,r]=i(()=>f(e?`/?ref=${encodeURIComponent(e)}`:"/",{replace:!0})),await t,r()),(a,s)=>(y(),l(u,{message:"Preparando tu compraâ¦"}))}});export{x as default};
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.