@rebilly/risk-data-collector 8.0.5 → 8.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/data-collector.d.ts +27 -0
- package/dist/data-collector.js +120 -121
- package/dist/data-collector.js.map +1 -1
- package/dist/data-collector.min.js +4 -4
- package/dist/data-collector.min.js.map +1 -1
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [8.0.
|
|
1
|
+
## [8.0.7](https://github.com/Rebilly/rebilly/compare/risk-data-collector-v8.0.6...risk-data-collector-v8.0.7) (2025-07-29)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare function collectData({ env, kountAccountId, kountSessionId, }?: KountParams): Promise<{
|
|
2
|
+
riskMetadata: RiskMetadata;
|
|
3
|
+
}>;
|
|
4
|
+
|
|
5
|
+
declare interface KountParams {
|
|
6
|
+
env: string | null;
|
|
7
|
+
kountAccountId: string | null;
|
|
8
|
+
kountSessionId?: string | null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare interface RiskMetadata {
|
|
12
|
+
fingerprint: string | null;
|
|
13
|
+
extraData: {
|
|
14
|
+
kountFraudSessionId: string | null;
|
|
15
|
+
};
|
|
16
|
+
browserData: {
|
|
17
|
+
colorDepth: number | null;
|
|
18
|
+
isJavaEnabled: boolean | null;
|
|
19
|
+
language: string | null;
|
|
20
|
+
screenHeight: number | null;
|
|
21
|
+
screenWidth: number | null;
|
|
22
|
+
timeZoneOffset: number;
|
|
23
|
+
isAdBlockEnabled: boolean | null;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { }
|
package/dist/data-collector.js
CHANGED
|
@@ -168,11 +168,11 @@ function A(e, t) {
|
|
|
168
168
|
function L(e, t) {
|
|
169
169
|
return t %= 64, t === 0 ? e : t < 32 ? [e[0] << t | e[1] >>> 32 - t, e[1] << t] : [e[1] << t - 32, 0];
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function h(e, t) {
|
|
172
172
|
return [e[0] ^ t[0], e[1] ^ t[1]];
|
|
173
173
|
}
|
|
174
174
|
function q(e) {
|
|
175
|
-
return e =
|
|
175
|
+
return e = h(e, [0, e[0] >>> 1]), e = C(e, [4283543511, 3981806797]), e = h(e, [0, e[0] >>> 1]), e = C(e, [3301882366, 444984403]), e = h(e, [0, e[0] >>> 1]), e;
|
|
176
176
|
}
|
|
177
177
|
function we(e, t) {
|
|
178
178
|
e = e || "", t = t || 0;
|
|
@@ -184,40 +184,40 @@ function we(e, t) {
|
|
|
184
184
|
], c = [
|
|
185
185
|
e.charCodeAt(u + 12) & 255 | (e.charCodeAt(u + 13) & 255) << 8 | (e.charCodeAt(u + 14) & 255) << 16 | (e.charCodeAt(u + 15) & 255) << 24,
|
|
186
186
|
e.charCodeAt(u + 8) & 255 | (e.charCodeAt(u + 9) & 255) << 8 | (e.charCodeAt(u + 10) & 255) << 16 | (e.charCodeAt(u + 11) & 255) << 24
|
|
187
|
-
], o = C(o, l), o = A(o, 31), o = C(o, s), i =
|
|
187
|
+
], o = C(o, l), o = A(o, 31), o = C(o, s), i = h(i, o), i = A(i, 27), i = Z(i, r), i = Z(C(i, [0, 5]), [0, 1390208809]), c = C(c, s), c = A(c, 33), c = C(c, l), r = h(r, c), r = A(r, 31), r = Z(r, i), r = Z(C(r, [0, 5]), [0, 944331445]);
|
|
188
188
|
switch (o = [0, 0], c = [0, 0], n) {
|
|
189
189
|
case 15:
|
|
190
|
-
c =
|
|
190
|
+
c = h(c, L([0, e.charCodeAt(u + 14)], 48));
|
|
191
191
|
case 14:
|
|
192
|
-
c =
|
|
192
|
+
c = h(c, L([0, e.charCodeAt(u + 13)], 40));
|
|
193
193
|
case 13:
|
|
194
|
-
c =
|
|
194
|
+
c = h(c, L([0, e.charCodeAt(u + 12)], 32));
|
|
195
195
|
case 12:
|
|
196
|
-
c =
|
|
196
|
+
c = h(c, L([0, e.charCodeAt(u + 11)], 24));
|
|
197
197
|
case 11:
|
|
198
|
-
c =
|
|
198
|
+
c = h(c, L([0, e.charCodeAt(u + 10)], 16));
|
|
199
199
|
case 10:
|
|
200
|
-
c =
|
|
200
|
+
c = h(c, L([0, e.charCodeAt(u + 9)], 8));
|
|
201
201
|
case 9:
|
|
202
|
-
c =
|
|
202
|
+
c = h(c, [0, e.charCodeAt(u + 8)]), c = C(c, s), c = A(c, 33), c = C(c, l), r = h(r, c);
|
|
203
203
|
case 8:
|
|
204
|
-
o =
|
|
204
|
+
o = h(o, L([0, e.charCodeAt(u + 7)], 56));
|
|
205
205
|
case 7:
|
|
206
|
-
o =
|
|
206
|
+
o = h(o, L([0, e.charCodeAt(u + 6)], 48));
|
|
207
207
|
case 6:
|
|
208
|
-
o =
|
|
208
|
+
o = h(o, L([0, e.charCodeAt(u + 5)], 40));
|
|
209
209
|
case 5:
|
|
210
|
-
o =
|
|
210
|
+
o = h(o, L([0, e.charCodeAt(u + 4)], 32));
|
|
211
211
|
case 4:
|
|
212
|
-
o =
|
|
212
|
+
o = h(o, L([0, e.charCodeAt(u + 3)], 24));
|
|
213
213
|
case 3:
|
|
214
|
-
o =
|
|
214
|
+
o = h(o, L([0, e.charCodeAt(u + 2)], 16));
|
|
215
215
|
case 2:
|
|
216
|
-
o =
|
|
216
|
+
o = h(o, L([0, e.charCodeAt(u + 1)], 8));
|
|
217
217
|
case 1:
|
|
218
|
-
o =
|
|
218
|
+
o = h(o, [0, e.charCodeAt(u)]), o = C(o, l), o = A(o, 31), o = C(o, s), i = h(i, o);
|
|
219
219
|
}
|
|
220
|
-
return i =
|
|
220
|
+
return i = h(i, [0, e.length]), r = h(r, [0, e.length]), i = Z(i, r), r = Z(r, i), i = q(i), r = q(r), i = Z(i, r), r = Z(r, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r[1] >>> 0).toString(16)).slice(-8);
|
|
221
221
|
}
|
|
222
222
|
function Se(e) {
|
|
223
223
|
var t;
|
|
@@ -254,8 +254,8 @@ function fe(e, t) {
|
|
|
254
254
|
return Math.round(e * n) / n;
|
|
255
255
|
}
|
|
256
256
|
function xe(e) {
|
|
257
|
-
for (var t, n, a = "Unexpected syntax '".concat(e, "'"), i = /^\s*([a-z-]*)(.*)$/i.exec(e), r = i[1] || void 0, o = {}, c = /([.:#][\w-]+|\[.+?\])/gi, l = function(d,
|
|
258
|
-
o[d] = o[d] || [], o[d].push(
|
|
257
|
+
for (var t, n, a = "Unexpected syntax '".concat(e, "'"), i = /^\s*([a-z-]*)(.*)$/i.exec(e), r = i[1] || void 0, o = {}, c = /([.:#][\w-]+|\[.+?\])/gi, l = function(d, p) {
|
|
258
|
+
o[d] = o[d] || [], o[d].push(p);
|
|
259
259
|
}; ; ) {
|
|
260
260
|
var s = c.exec(i[2]);
|
|
261
261
|
if (!s)
|
|
@@ -310,10 +310,10 @@ function Ve(e, t) {
|
|
|
310
310
|
K(l, function() {
|
|
311
311
|
for (var f = [], d = 0; d < arguments.length; d++)
|
|
312
312
|
f[d] = arguments[d];
|
|
313
|
-
var
|
|
313
|
+
var p = c + Date.now() - u;
|
|
314
314
|
if (!f[0])
|
|
315
|
-
return s({ error: $(f[1]), duration:
|
|
316
|
-
s({ value: f[1], duration:
|
|
315
|
+
return s({ error: $(f[1]), duration: p });
|
|
316
|
+
s({ value: f[1], duration: p });
|
|
317
317
|
});
|
|
318
318
|
});
|
|
319
319
|
});
|
|
@@ -340,8 +340,8 @@ function Fe(e, t, n) {
|
|
|
340
340
|
return [4, i];
|
|
341
341
|
case 1:
|
|
342
342
|
return o = f.sent(), [4, _(o, function(d) {
|
|
343
|
-
var
|
|
344
|
-
return Y(
|
|
343
|
+
var p = d();
|
|
344
|
+
return Y(p), p;
|
|
345
345
|
})];
|
|
346
346
|
case 2:
|
|
347
347
|
return c = f.sent(), [
|
|
@@ -492,8 +492,8 @@ function Pe(e) {
|
|
|
492
492
|
var t = 3, n = 500, a = 500, i = 5e3, r = function() {
|
|
493
493
|
}, o = new Promise(function(c, l) {
|
|
494
494
|
var s = !1, u = 0, f = 0;
|
|
495
|
-
e.oncomplete = function(
|
|
496
|
-
return c(
|
|
495
|
+
e.oncomplete = function(g) {
|
|
496
|
+
return c(g.renderedBuffer);
|
|
497
497
|
};
|
|
498
498
|
var d = function() {
|
|
499
499
|
setTimeout(function() {
|
|
@@ -502,10 +502,10 @@ function Pe(e) {
|
|
|
502
502
|
/* InnerErrorName.Timeout */
|
|
503
503
|
));
|
|
504
504
|
}, Math.min(a, f + i - Date.now()));
|
|
505
|
-
},
|
|
505
|
+
}, p = function() {
|
|
506
506
|
try {
|
|
507
|
-
var
|
|
508
|
-
switch (le(
|
|
507
|
+
var g = e.startRendering();
|
|
508
|
+
switch (le(g) && Y(g), e.state) {
|
|
509
509
|
case "running":
|
|
510
510
|
f = Date.now(), s && d();
|
|
511
511
|
break;
|
|
@@ -513,14 +513,14 @@ function Pe(e) {
|
|
|
513
513
|
document.hidden || u++, s && u >= t ? l(ee(
|
|
514
514
|
"suspended"
|
|
515
515
|
/* InnerErrorName.Suspended */
|
|
516
|
-
)) : setTimeout(
|
|
516
|
+
)) : setTimeout(p, n);
|
|
517
517
|
break;
|
|
518
518
|
}
|
|
519
519
|
} catch (y) {
|
|
520
520
|
l(y);
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
|
-
|
|
523
|
+
p(), r = function() {
|
|
524
524
|
s || (s = !0, f > 0 && d());
|
|
525
525
|
};
|
|
526
526
|
});
|
|
@@ -553,15 +553,15 @@ function ve(e, t, n) {
|
|
|
553
553
|
return l.trys.push([4, , 10, 11]), [4, new Promise(function(s, u) {
|
|
554
554
|
var f = !1, d = function() {
|
|
555
555
|
f = !0, s();
|
|
556
|
-
},
|
|
557
|
-
f = !0, u(
|
|
556
|
+
}, p = function(b) {
|
|
557
|
+
f = !0, u(b);
|
|
558
558
|
};
|
|
559
|
-
c.onload = d, c.onerror =
|
|
560
|
-
var
|
|
561
|
-
|
|
559
|
+
c.onload = d, c.onerror = p;
|
|
560
|
+
var g = c.style;
|
|
561
|
+
g.setProperty("display", "block", "important"), g.position = "absolute", g.top = "0", g.left = "0", g.visibility = "hidden", t && "srcdoc" in c ? c.srcdoc = t : c.src = "about:blank", o.body.appendChild(c);
|
|
562
562
|
var y = function() {
|
|
563
|
-
var
|
|
564
|
-
f || (((w = (
|
|
563
|
+
var b, w;
|
|
564
|
+
f || (((w = (b = c.contentWindow) === null || b === void 0 ? void 0 : b.document) === null || w === void 0 ? void 0 : w.readyState) === "complete" ? d() : setTimeout(y, 10));
|
|
565
565
|
};
|
|
566
566
|
y();
|
|
567
567
|
})];
|
|
@@ -665,32 +665,32 @@ function Je() {
|
|
|
665
665
|
var n = t.document, a = n.body;
|
|
666
666
|
a.style.fontSize = He;
|
|
667
667
|
var i = n.createElement("div"), r = {}, o = {}, c = function(y) {
|
|
668
|
-
var
|
|
669
|
-
return w.position = "absolute", w.top = "0", w.left = "0", w.fontFamily = y,
|
|
670
|
-
}, l = function(y,
|
|
671
|
-
return c("'".concat(y, "',").concat(
|
|
668
|
+
var b = n.createElement("span"), w = b.style;
|
|
669
|
+
return w.position = "absolute", w.top = "0", w.left = "0", w.fontFamily = y, b.textContent = Ee, i.appendChild(b), b;
|
|
670
|
+
}, l = function(y, b) {
|
|
671
|
+
return c("'".concat(y, "',").concat(b));
|
|
672
672
|
}, s = function() {
|
|
673
673
|
return M.map(c);
|
|
674
674
|
}, u = function() {
|
|
675
|
-
for (var y = {},
|
|
675
|
+
for (var y = {}, b = function(P) {
|
|
676
676
|
y[P] = M.map(function(T) {
|
|
677
677
|
return l(P, T);
|
|
678
678
|
});
|
|
679
679
|
}, w = 0, R = te; w < R.length; w++) {
|
|
680
680
|
var D = R[w];
|
|
681
|
-
|
|
681
|
+
b(D);
|
|
682
682
|
}
|
|
683
683
|
return y;
|
|
684
684
|
}, f = function(y) {
|
|
685
|
-
return M.some(function(
|
|
686
|
-
return y[w].offsetWidth !== r[
|
|
685
|
+
return M.some(function(b, w) {
|
|
686
|
+
return y[w].offsetWidth !== r[b] || y[w].offsetHeight !== o[b];
|
|
687
687
|
});
|
|
688
|
-
}, d = s(),
|
|
688
|
+
}, d = s(), p = u();
|
|
689
689
|
a.appendChild(i);
|
|
690
|
-
for (var
|
|
691
|
-
r[M[
|
|
690
|
+
for (var g = 0; g < M.length; g++)
|
|
691
|
+
r[M[g]] = d[g].offsetWidth, o[M[g]] = d[g].offsetHeight;
|
|
692
692
|
return te.filter(function(y) {
|
|
693
|
-
return f(
|
|
693
|
+
return f(p[y]);
|
|
694
694
|
});
|
|
695
695
|
});
|
|
696
696
|
}
|
|
@@ -1239,8 +1239,8 @@ function St(e) {
|
|
|
1239
1239
|
})), [4, Ct(r)]) : [2, void 0];
|
|
1240
1240
|
case 1:
|
|
1241
1241
|
return o = s.sent(), n && xt(a, o), c = i.filter(function(u) {
|
|
1242
|
-
var f = a[u], d = k(f.map(function(
|
|
1243
|
-
return o[
|
|
1242
|
+
var f = a[u], d = k(f.map(function(p) {
|
|
1243
|
+
return o[p];
|
|
1244
1244
|
}));
|
|
1245
1245
|
return d > f.length * 0.6;
|
|
1246
1246
|
}), c.sort(), [2, c];
|
|
@@ -1363,29 +1363,29 @@ var m = Math, S = function() {
|
|
|
1363
1363
|
return 0;
|
|
1364
1364
|
};
|
|
1365
1365
|
function It() {
|
|
1366
|
-
var e = m.acos || S, t = m.acosh || S, n = m.asin || S, a = m.asinh || S, i = m.atanh || S, r = m.atan || S, o = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f = m.tanh || S, d = m.exp || S,
|
|
1367
|
-
return m.pow(m.PI,
|
|
1368
|
-
},
|
|
1369
|
-
return m.log(
|
|
1370
|
-
}, w = function(
|
|
1371
|
-
return m.log(
|
|
1372
|
-
}, R = function(
|
|
1373
|
-
return m.log((1 +
|
|
1374
|
-
}, D = function(
|
|
1375
|
-
return m.exp(
|
|
1376
|
-
}, P = function(
|
|
1377
|
-
return (m.exp(
|
|
1378
|
-
}, T = function(
|
|
1379
|
-
return m.exp(
|
|
1380
|
-
}, ge = function(
|
|
1381
|
-
return (m.exp(2 *
|
|
1382
|
-
}, be = function(
|
|
1383
|
-
return m.log(1 +
|
|
1366
|
+
var e = m.acos || S, t = m.acosh || S, n = m.asin || S, a = m.asinh || S, i = m.atanh || S, r = m.atan || S, o = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f = m.tanh || S, d = m.exp || S, p = m.expm1 || S, g = m.log1p || S, y = function(v) {
|
|
1367
|
+
return m.pow(m.PI, v);
|
|
1368
|
+
}, b = function(v) {
|
|
1369
|
+
return m.log(v + m.sqrt(v * v - 1));
|
|
1370
|
+
}, w = function(v) {
|
|
1371
|
+
return m.log(v + m.sqrt(v * v + 1));
|
|
1372
|
+
}, R = function(v) {
|
|
1373
|
+
return m.log((1 + v) / (1 - v)) / 2;
|
|
1374
|
+
}, D = function(v) {
|
|
1375
|
+
return m.exp(v) - 1 / m.exp(v) / 2;
|
|
1376
|
+
}, P = function(v) {
|
|
1377
|
+
return (m.exp(v) + 1 / m.exp(v)) / 2;
|
|
1378
|
+
}, T = function(v) {
|
|
1379
|
+
return m.exp(v) - 1;
|
|
1380
|
+
}, ge = function(v) {
|
|
1381
|
+
return (m.exp(2 * v) - 1) / (m.exp(2 * v) + 1);
|
|
1382
|
+
}, be = function(v) {
|
|
1383
|
+
return m.log(1 + v);
|
|
1384
1384
|
};
|
|
1385
1385
|
return {
|
|
1386
1386
|
acos: e(0.12312423423423424),
|
|
1387
1387
|
acosh: t(1e308),
|
|
1388
|
-
acoshPf:
|
|
1388
|
+
acoshPf: b(1e154),
|
|
1389
1389
|
asin: n(0.12312423423423424),
|
|
1390
1390
|
asinh: a(1),
|
|
1391
1391
|
asinhPf: w(1),
|
|
@@ -1402,9 +1402,9 @@ function It() {
|
|
|
1402
1402
|
tanh: f(1),
|
|
1403
1403
|
tanhPf: ge(1),
|
|
1404
1404
|
exp: d(1),
|
|
1405
|
-
expm1:
|
|
1405
|
+
expm1: p(1),
|
|
1406
1406
|
expm1Pf: T(1),
|
|
1407
|
-
log1p:
|
|
1407
|
+
log1p: g(10),
|
|
1408
1408
|
log1pPf: be(10),
|
|
1409
1409
|
powPI: y(-100)
|
|
1410
1410
|
};
|
|
@@ -1436,9 +1436,9 @@ function Yt() {
|
|
|
1436
1436
|
for (var n = {}, a = {}, i = 0, r = Object.keys(J); i < r.length; i++) {
|
|
1437
1437
|
var o = r[i], c = J[o], l = c[0], s = l === void 0 ? {} : l, u = c[1], f = u === void 0 ? Gt : u, d = e.createElement("span");
|
|
1438
1438
|
d.textContent = f, d.style.whiteSpace = "nowrap";
|
|
1439
|
-
for (var
|
|
1440
|
-
var y =
|
|
1441
|
-
|
|
1439
|
+
for (var p = 0, g = Object.keys(s); p < g.length; p++) {
|
|
1440
|
+
var y = g[p], b = s[y];
|
|
1441
|
+
b !== void 0 && (d.style[y] = b);
|
|
1442
1442
|
}
|
|
1443
1443
|
n[o] = d, t.appendChild(e.createElement("br")), t.appendChild(d);
|
|
1444
1444
|
}
|
|
@@ -1621,24 +1621,32 @@ async function ce() {
|
|
|
1621
1621
|
const e = typeof Cypress == "object", t = typeof process == "object" && process.env.NODE_ENV === "test";
|
|
1622
1622
|
return e || t ? "a-mock-visitor-id" : (await (await qt.load()).get()).visitorId;
|
|
1623
1623
|
} catch (e) {
|
|
1624
|
-
return console.error(e),
|
|
1624
|
+
return console.error(e), null;
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
1627
|
async function $t() {
|
|
1628
|
-
return new Promise(
|
|
1629
|
-
|
|
1630
|
-
|
|
1628
|
+
return new Promise(
|
|
1629
|
+
(t) => {
|
|
1630
|
+
window.requestIdleCallback ? requestIdleCallback(
|
|
1631
|
+
async () => {
|
|
1632
|
+
const n = await ce();
|
|
1633
|
+
t(n);
|
|
1634
|
+
},
|
|
1635
|
+
{ timeout: 200 }
|
|
1636
|
+
) : setTimeout(async () => {
|
|
1631
1637
|
const n = await ce();
|
|
1632
1638
|
t(n);
|
|
1633
|
-
},
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
const n = await ce();
|
|
1637
|
-
t(n);
|
|
1638
|
-
}, 200);
|
|
1639
|
-
});
|
|
1639
|
+
}, 200);
|
|
1640
|
+
}
|
|
1641
|
+
);
|
|
1640
1642
|
}
|
|
1641
|
-
const en = "https://tst.kaptcha.com", tn = "https://ssl.kaptcha.com", nn = (e) => e === "production", rn = ({
|
|
1643
|
+
const en = "https://tst.kaptcha.com", tn = "https://ssl.kaptcha.com", nn = (e) => e === "production", rn = ({
|
|
1644
|
+
env: e,
|
|
1645
|
+
kountAccountId: t,
|
|
1646
|
+
kountSessionId: n
|
|
1647
|
+
}) => {
|
|
1648
|
+
if (t === null)
|
|
1649
|
+
throw new Error("Kount account ID is required");
|
|
1642
1650
|
const a = nn(e) ? tn : en, i = new URL(`${a}/collect/sdk`);
|
|
1643
1651
|
i.searchParams.append("m", t), n && i.searchParams.append("m", n);
|
|
1644
1652
|
const r = document.createElement("script");
|
|
@@ -1678,42 +1686,38 @@ const on = () => {
|
|
|
1678
1686
|
};
|
|
1679
1687
|
async function cn({
|
|
1680
1688
|
env: e = null,
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
kountAccountId: a = null,
|
|
1684
|
-
kountSessionId: i = null,
|
|
1685
|
-
getFingerprint: r,
|
|
1686
|
-
getFraudSessionId: o
|
|
1689
|
+
kountAccountId: t = null,
|
|
1690
|
+
kountSessionId: n = null
|
|
1687
1691
|
}) {
|
|
1688
|
-
const { colorDepth:
|
|
1689
|
-
let
|
|
1692
|
+
const { colorDepth: a, height: i, width: r } = screen || {}, { javaEnabled: o, language: c } = navigator || {};
|
|
1693
|
+
let l = null, s, u = null;
|
|
1690
1694
|
try {
|
|
1691
|
-
[
|
|
1695
|
+
[u, l, s] = await Promise.all([
|
|
1692
1696
|
on(),
|
|
1693
|
-
|
|
1694
|
-
|
|
1697
|
+
$t(),
|
|
1698
|
+
t ? an({
|
|
1695
1699
|
env: e,
|
|
1696
|
-
kountAccountId:
|
|
1697
|
-
kountSessionId:
|
|
1700
|
+
kountAccountId: t,
|
|
1701
|
+
kountSessionId: n
|
|
1698
1702
|
}) : void 0
|
|
1699
1703
|
]);
|
|
1700
|
-
} catch (
|
|
1701
|
-
console.error(
|
|
1704
|
+
} catch (d) {
|
|
1705
|
+
console.error(d);
|
|
1702
1706
|
}
|
|
1703
1707
|
return {
|
|
1704
1708
|
riskMetadata: {
|
|
1705
|
-
fingerprint:
|
|
1709
|
+
fingerprint: l || null,
|
|
1706
1710
|
extraData: {
|
|
1707
|
-
kountFraudSessionId:
|
|
1711
|
+
kountFraudSessionId: s || null
|
|
1708
1712
|
},
|
|
1709
1713
|
browserData: {
|
|
1710
|
-
colorDepth:
|
|
1711
|
-
isJavaEnabled:
|
|
1712
|
-
language:
|
|
1713
|
-
screenHeight:
|
|
1714
|
-
screenWidth:
|
|
1714
|
+
colorDepth: a || null,
|
|
1715
|
+
isJavaEnabled: o ? o.call(navigator) : null,
|
|
1716
|
+
language: c || null,
|
|
1717
|
+
screenHeight: i || null,
|
|
1718
|
+
screenWidth: r || null,
|
|
1715
1719
|
timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset(),
|
|
1716
|
-
isAdBlockEnabled:
|
|
1720
|
+
isAdBlockEnabled: u
|
|
1717
1721
|
}
|
|
1718
1722
|
}
|
|
1719
1723
|
};
|
|
@@ -1722,19 +1726,14 @@ async function un({
|
|
|
1722
1726
|
env: e = null,
|
|
1723
1727
|
kountAccountId: t = null,
|
|
1724
1728
|
kountSessionId: n = null
|
|
1725
|
-
} = {}) {
|
|
1729
|
+
} = { env: null, kountAccountId: null }) {
|
|
1726
1730
|
return cn({
|
|
1727
1731
|
env: e,
|
|
1728
|
-
screen,
|
|
1729
|
-
navigator,
|
|
1730
1732
|
kountAccountId: t,
|
|
1731
|
-
kountSessionId: n
|
|
1732
|
-
getFingerprint: $t,
|
|
1733
|
-
getFraudSessionId: an
|
|
1733
|
+
kountSessionId: n
|
|
1734
1734
|
});
|
|
1735
1735
|
}
|
|
1736
1736
|
export {
|
|
1737
|
-
un as collectData
|
|
1738
|
-
cn as collectDataHelper
|
|
1737
|
+
un as collectData
|
|
1739
1738
|
};
|
|
1740
1739
|
//# sourceMappingURL=data-collector.js.map
|