PageSourceSearch

https://www.veed.io/frontend-assets/dashboard-frontend/dashboard-static/log-purchase-D7oP8JVM.js

js veed.io collected 2026-10-02 08:34:25 UTC 2,490 bytes, 2 lines download raw bytes

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:`29ae0319a6961340fd1207c714d43b4796313dfd`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3c6f4f21-a4e8-4925-b80e-58cb754cdad1`,e._sentryDebugIdIdentifier=`sentry-dbid-3c6f4f21-a4e8-4925-b80e-58cb754cdad1`)}catch{}})();import{r as e}from"./rolldown-runtime-DLzXii5c.js";import{H as t,U as n,_t as r,a as i,d as a,ht as o,n as s,t as c}from"./event-logger-26BnyWLh.js";var l=e({logPurchase:()=>u});function u(e,l,u,d,f){if(!s.rr())return!1;if(u??=`USD`,d??=1,e==null||e.length<=0)return r.error(`logPurchase requires a non-empty productId, got "${e}", ignoring.`),!1;if(!n(e,`log purchase`,`the purchase name`))return!1;if(l==null||isNaN(parseFloat(l.toString())))return r.error(`logPurchase requires a numeric price, got ${l}, ignoring.`),!1;let p=parseFloat(l.toString()).toFixed(2);if(d==null||isNaN(parseInt(d.toString())))return r.error(`logPurchase requires an integer quantity, got ${d}, ignoring.`),!1;let m=parseInt(d.toString());if(m<1||m>100)return r.error(`logPurchase requires a quantity >1 and <100, got ${m}, ignoring.`),!1;if(u=u==null?u:u.toUpperCase(),`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`.split(`.`).indexOf(u)===-1)return r.error(`logPurchase requires a valid currencyCode, got ${u}, ignoring.`),!1;let[h,g]=t(f,`logPurchase`,`purchaseProperties`,`log purchase "${e}"`,`purchase`);if(!h)return!1;let _=s.v();if(_&&_.Dr(e))return r.info(`Purchase "${e}" is blocklisted, ignoring.`),!1;let v=c.ut(o.Pr,{pid:e,c:u,p,q:m,pr:g});if(v.tt){r.info(`Logged ${m} purchase${m>1?`s`:``} of "${e}" for ${u} ${p}.`);for(let t of v.$e)i.m().Ce(a.Rr,[e,f],t)}return v.tt}export{l as n,u as t};
2//# sourceMappingURL=log-purchase-D7oP8JVM.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.