1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`10a6e87f847ce918c46f601bb4ef493f558428ce`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f6cba0cd-4173-4d6d-8bb2-d0bc195987d3`,e._sentryDebugIdIdentifier=`sentry-dbid-f6cba0cd-4173-4d6d-8bb2-d0bc195987d3`)}catch{}})();import{JD as e,KD as t,YD as n,bw as r,hO as i,qD as a}from"./api-resources-uXa7PAP1.js";var o=(e,t,n)=>{let i=e?.find(e=>e.code===t),a=i?.value?.currency||n;return i?.value?.amount?{amount:r(i.value.amount,a),currency:a}:{amount:void 0,currency:a}},s=e=>{if(e&&typeof e==`object`&&`core_packages_duration_code`in e){let t=e.core_packages_duration_code;if(t===`monthly`||t===`yearly`)return t}},c=async()=>{if(!t(`gtm_purchase_view_tracked`))return;let e=await a();n(i.purchaseView,e)},l=async e=>{if(!t(`gtm_begin_checkout_${e.purchase_id}`))return;let r=await a(),o={value:e.value,currency:e.currency,coupon:e.coupon,items:e.items};n(i.beginCheckout,{...r,ecommerce:o})},u=async r=>{if(!t(`gtm_purchase_${r.transaction_id}`))return;let o=await a(),s={};o.email_hash&&(s.sha256_email_address=o.email_hash),o.phone_hash&&(s.sha256_phone_number=o.phone_hash),o.first_name&&(s.address={sha256_first_name:await e(o.first_name)});let c={transaction_id:r.transaction_id,value:r.value,currency:r.currency,coupon:r.coupon,items:r.items};n(i.purchase,{user_data:s,ecommerce:c,utm_params:o.utm_params,click_ids:o.click_ids,marketing_cookies:o.marketing_cookies})},d=(e,t)=>{if(!e.item_id||!e.item_name||e.price==null)return;let r={currency:t,value:(e.price-(e.discount??0))*(e.quantity??1),items:[e]};n(i.addToCart,{ecommerce:r})},f=async e=>{if(!t(`gtm_purchase_failed_${e.transaction_id}`))return;let r={...await a(),...e};n(i.purchaseFailed,r)};export{c as a,f as i,l as n,s as o,u as r,o as s,d as t}; 2//# sourceMappingURL=purchase-events-5EWcB4Qg.js.map
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.