1(()=>{var N=Object.create;var h=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var s=(e,t)=>()=>(e&&(t=e(e=0)),t);var C=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var F=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of T(t))!w.call(e,o)&&o!==r&&h(e,o,{get:()=>t[o],enumerable:!(n=P(t,o))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?N(O(e)):{},F(t||!e||!e.__esModule?h(r,"default",{value:e,enumerable:!0}):r,e));var p=(e,t,r)=>new Promise((n,o)=>{var a=i=>{try{d(r.next(i))}catch(m){o(m)}},E=i=>{try{d(r.throw(i))}catch(m){o(m)}},d=i=>i.done?n(i.value):Promise.resolve(i.value).then(a,E);d((r=r.apply(e,t)).next())});var b,k=s(()=>{b="WebPixel::Render"});var f,l=s(()=>{k();f=e=>shopify.extend(b,e)});var x=s(()=>{l()});var _=s(()=>{x()});var g=C(y=>{"use strict";_();function c(e,t){return fetch("https://api.withflex.com/v1/shopify/pixel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:e,settings:t}),keepalive:!0})}function S(e){var a;let t=new URL(e),r=t.pathname.split("/");if(r.at(1)!=="checkouts"){console.debug("[Flex] Attempted to retrieve a cart from a non-checkout URL",e);return}let n=r.at(-1),o=(a=t.searchParams.get("key"))!=null?a:t.searchParams.get("attributes[key]");if(!o){console.debug("[Flex] Cart key is missing from URL",e);return}return`${n}?key=${o}`}function u(e,t,r,n){return p(this,null,function*(){let o=yield t.cookie.get("cart");if(!o&&e==="checkout_started"&&(console.debug("[Flex] Cart cookie does not exist, falling back to URL"),o=S(r)),!o){console.error("[Flex] Failed to retrieve cart token from anywhere.");return}return fetch("https://api.withflex.com/v1/shopify/cart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cart:o,settings:n}),keepalive:!0})})}f(n=>p(null,[n],function*({analytics:e,settings:t,browser:r}){e.subscribe("checkout_contact_info_submitted",o=>{c(o,t)}),e.subscribe("checkout_shipping_info_submitted",o=>{c(o,t)}),e.subscribe("checkout_address_info_submitted",o=>{c(o,t)}),e.subscribe("cart_viewed",o=>{u(o.name,r,o.context.document.location.href,t)}),e.subscribe("payment_info_submitted",o=>{c(o,t),u(o.name,r,o.context.document.location.href,t)}),e.subscribe("product_added_to_cart",o=>{u(o.name,r,o.context.document.location.href,t)}),e.subscribe("checkout_started",o=>{c(o,t),u(o.name,r,o.context.document.location.href,t)})}))});var D=R(g());})();
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.