PageSourceSearch

https://www.heavys.com/web-pixels/strict/app/[email protected]

js heavys.com collected 2026-09-24 09:27:38 UTC 3,431 bytes, 1 lines download raw bytes

1(()=>{var a=(t,e,r)=>new Promise((s,l)=>{var d=i=>{try{n(r.next(i))}catch(c){l(c)}},o=i=>{try{n(r.throw(i))}catch(c){l(c)}},n=i=>i.done?s(i.value):Promise.resolve(i.value).then(d,o);n((r=r.apply(t,e)).next())});var w="WebPixel::Render";var h=t=>shopify.extend(w,t);var p=(t,e)=>a(null,null,function*(){yield fetch(t,{method:"POST",body:JSON.stringify(e),keepalive:!0,headers:{"Content-Type":"application/json"},mode:"cors"})});var b="lv_session_id",u=t=>a(null,null,function*(){let e=yield t.localStorage.getItem(b);if(e)try{let{value:r,expires:s}=JSON.parse(e);return s<Date.now()?void 0:r}catch(r){return}}),E=(t,e)=>a(null,null,function*(){yield t.localStorage.setItem(b,JSON.stringify({value:e,expires:Date.now()+31536e6}))});var C=l=>a(null,[l],function*({event:t,init:e,settings:r,browser:s}){var m,g,I;let d=(m=t.data.checkout.token)!=null?m:"",o=(I=(g=t.data.checkout.order)==null?void 0:g.id)!=null?I:void 0;if(!d&&!o)return;let n=yield u(s);if(!t.clientId&&!n)return;let i={brandId:r.brandId,sellerTeamId:r.sellerTeamId,shopDomain:e.data.shop.myshopifyDomain,shopifyClientId:t.clientId,shopifyCheckoutToken:d,orderId:o,levantaSessionId:n},c=`${r.apiGatewayUrl}/checkout-event`;yield p(c,i)});var T=l=>a(null,[l],function*({event:t,init:e,settings:r,browser:s}){if(!t.data.checkout.token)return;let d=yield u(s);if(!t.clientId&&!d)return;let o={brandId:r.brandId,sellerTeamId:r.sellerTeamId,shopDomain:e.data.shop.myshopifyDomain,shopifyClientId:t.clientId,shopifyCheckoutToken:t.data.checkout.token,levantaSessionId:d},n=`${r.apiGatewayUrl}/checkout-event`;yield p(n,o)});var P=t=>{let e=new URLSearchParams(t);return{providerClickId:e.get("lv_uniqueid"),creatorTeamId:e.get("lv_creatorid"),pid:e.get("lv_productid"),subId1:e.get("subid1"),subId2:e.get("subid2"),subId3:e.get("subid3"),referrer:e.get("lv_ref"),sharedId:e.get("sharedid")}};var y=d=>a(null,[d],function*({browser:t,clientId:e,userAgent:r,init:s,settings:l}){var S,k,x,v;let{providerClickId:o,creatorTeamId:n,pid:i,subId1:c,subId2:m,subId3:g,referrer:I,sharedId:D}=P(s.context.document.location.search);if(!(n&&o))return;let f=yield u(t);f||(f=o,yield E(t,f));let A={providerClickId:o,creatorTeamId:n,brandId:l.brandId,sellerTeamId:l.sellerTeamId,pid:i,subId1:c,subId2:m,subId3:g,referrer:I,sharedId:D,shopDomain:s.data.shop.myshopifyDomain,customerId:(k=(S=s.data.customer)==null?void 0:S.id)!=null?k:null,cartId:(v=(x=s.data.cart)==null?void 0:x.id)!=null?v:null,shopifyClientId:e,levantaSessionId:f,clickTime:new Date().toISOString(),userAgent:r},_=`${l.apiGatewayUrl}/click-event`;yield p(_,A)});h(({analytics:t,init:e,settings:r,browser:s,customerPrivacy:l})=>{let d=e.customerPrivacy,o="",n="";t.subscribe("page_viewed",i=>a(null,null,function*(){o||(o=i.clientId),n||(n=i.context.navigator.userAgent),d.marketingAllowed&&(yield y({browser:s,clientId:i.clientId,userAgent:n,init:e,settings:r}))})),t.subscribe("checkout_started",i=>a(null,null,function*(){o||(o=i.clientId),n||(n=i.context.navigator.userAgent),d.marketingAllowed&&(yield T({browser:s,event:i,init:e,settings:r}))})),t.subscribe("checkout_completed",i=>a(null,null,function*(){o||(o=i.clientId),n||(n=i.context.navigator.userAgent),d.marketingAllowed&&(yield C({browser:s,event:i,init:e,settings:r}))})),l.subscribe("visitorConsentCollected",i=>a(null,null,function*(){d=i.customerPrivacy,d.marketingAllowed&&(yield y({browser:s,clientId:o,userAgent:n,init:e,settings:r}))}))});})();

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.