PageSourceSearch

https://www.lovetoknow.com/_sites/be94ff46ee6a79aa249cfbf2f90d6c369f1abae4/_nuxt/DsSiQNg9.js

js lovetoknow.com collected 2026-09-24 08:41:40 UTC 1,314 bytes, 1 lines download raw bytes

1import{d,N as p,P as g,ab as h,aq as u,B as b,D as _,aJ as A,aK as k,aL as v,V as w,b as y,e as z,aM as C}from"./C8_Tehsm.js";const L={class:"flex h-screen items-center justify-center"},N=d({__name:"index",setup(P){const{publish:m}=p(g.AMAZON_LINK_CLICKED),f=h();return u().hook("page:finish",f.initClient),u().hook("page:loading:end",async()=>{const{searchParams:o}=b();let e=o.get("u"),n=e??void 0,c;const i=o.get("asin");if(i&&(e=`https://www.amazon.com/dp/${i}`,n=i),!e)throw _("missing url");e=new URL(e);const t=A(e).value;if(o.get("fbclid"))for(let s=0;s<15&&!k("_fbc");s++)await new Promise(a=>setTimeout(a,1e3));v(e)&&(c="Amazon",m({href:t})),w({creative:{click:{count:1,url:t},product:{id:n,seller:c},source:"direct"}});const l=C();if(l?.dataLayer()){const s=()=>{const a=l.dataLayer();return Array.isArray(a)?a.some(r=>r.event==="gtm.dom"):!1};for(let a=0;a<15&&!s();a++)await new Promise(r=>setTimeout(r,1e3))}/iphone|ipad|ios/i.test(navigator.userAgent)&&/\bfbios|instagram\b/i.test(navigator.userAgent)?(setTimeout(()=>location.href=t,500),location.href=t.replace("https:","com.amazon.mobile.shopping.web:")):(/android/i.test(navigator.userAgent)&&setTimeout(()=>location.href=t.replace("intent:","https:"),500),location.href=t)}),(o,e)=>(y(),z("div",L,"Opening Amazon..."))}});export{N 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.