1("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"v2.157.0"};try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(r=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="104ae021-811e-4dd0-9304-34c70e38956b",e._sentryDebugIdIdentifier="sentry-dbid-104ae021-811e-4dd0-9304-34c70e38956b")}catch(e){}var e,r;import{hB as n,hy as o,hN as t,hO as i,hP as s,hQ as a,hR as D,hS as u,hT as l}from"./DpvK3hpn.js";function g(e,r,g,d,P){if(!n.rr())return!1;if(null==g&&(g="USD"),null==d&&(d=1),null==e||e.length<=0)return o.error(`logPurchase requires a non-empty productId, got "${e}", ignoring.`),!1;if(!t(e,"log purchase","the purchase name"))return!1;if(null==r||isNaN(parseFloat(r.toString())))return o.error(`logPurchase requires a numeric price, got ${r}, ignoring.`),!1;const f=parseFloat(r.toString()).toFixed(2);if(null==d||isNaN(parseInt(d.toString())))return o.error(`logPurchase requires an integer quantity, got ${d}, ignoring.`),!1;const R=parseInt(d.toString());if(R<1||R>i)return o.error(`logPurchase requires a quantity >1 and <${i}, got ${R}, ignoring.`),!1;if(g=null!=g?g.toUpperCase():g,-1===["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MTL","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","YER","ZAR","ZMK","ZMW","ZWL"].indexOf(g))return o.error(`logPurchase requires a valid currencyCode, got ${g}, ignoring.`),!1;const[S,c]=s(P,"logPurchase","purchaseProperties",`log purchase "${e}"`,"purchase");if(!S)return!1;const N=n.v();if(N&&N.Dr(e))return o.info(`Purchase "${e}" is blocklisted, ignoring.`),!1;const T=a.ut(D.Pr,{pid:e,c:g,p:f,q:R,pr:c});if(T.tt){o.info(`Logged ${R} purchase${R>1?"s":""} of "${e}" for ${g} ${f}.`);for(const r of T.$e)u.m().Ce(l.Rr,[e,P],r)}return T.tt}export{g as logPurchase}; 2//# sourceMappingURL=EJFej4d6.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.