@riab/vendor-due-diligence 1.1.19-beta.2 → 1.1.19-beta.4
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/dist/vendor-due-diligence.js +558 -531
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ var gn = (t, e) => {
|
|
|
7
7
|
return e;
|
|
8
8
|
throw Error("Symbol." + t + " is not defined");
|
|
9
9
|
};
|
|
10
|
-
var $s = (t, e, i) => e in t ? Ra(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i,
|
|
10
|
+
var $s = (t, e, i) => e in t ? Ra(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, h = (t, e) => {
|
|
11
11
|
for (var i in e || (e = {}))
|
|
12
12
|
ks.call(e, i) && $s(t, i, e[i]);
|
|
13
13
|
if (Ti)
|
|
@@ -26,20 +26,20 @@ var un = (t, e) => {
|
|
|
26
26
|
};
|
|
27
27
|
var Ne = (t, e, i) => $a(Na(t), i, e);
|
|
28
28
|
var A = (t, e, i) => new Promise((n, s) => {
|
|
29
|
-
var o = (
|
|
29
|
+
var o = (a) => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
l(i.next(a));
|
|
32
32
|
} catch (c) {
|
|
33
33
|
s(c);
|
|
34
34
|
}
|
|
35
|
-
}, r = (
|
|
35
|
+
}, r = (a) => {
|
|
36
36
|
try {
|
|
37
|
-
|
|
37
|
+
l(i.throw(a));
|
|
38
38
|
} catch (c) {
|
|
39
39
|
s(c);
|
|
40
40
|
}
|
|
41
|
-
},
|
|
42
|
-
|
|
41
|
+
}, l = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(o, r);
|
|
42
|
+
l((i = i.apply(t, e)).next());
|
|
43
43
|
}), ka = function(t, e) {
|
|
44
44
|
this[0] = t, this[1] = e;
|
|
45
45
|
};
|
|
@@ -53,11 +53,11 @@ var Ms = (t) => {
|
|
|
53
53
|
}
|
|
54
54
|
return i = !0, {
|
|
55
55
|
done: !1,
|
|
56
|
-
value: new ka(new Promise((
|
|
57
|
-
var
|
|
58
|
-
if (!(
|
|
56
|
+
value: new ka(new Promise((l) => {
|
|
57
|
+
var a = e[o](r);
|
|
58
|
+
if (!(a instanceof Object))
|
|
59
59
|
throw TypeError("Object expected");
|
|
60
|
-
a
|
|
60
|
+
l(a);
|
|
61
61
|
}), 1)
|
|
62
62
|
};
|
|
63
63
|
}), s[gn("iterator")] = () => s, n("next"), "throw" in e ? n("throw") : s.throw = (o) => {
|
|
@@ -256,8 +256,8 @@ let St = class extends HTMLElement {
|
|
|
256
256
|
var n;
|
|
257
257
|
const s = this.constructor, o = s._$Ev.get(e);
|
|
258
258
|
if (o !== void 0 && this._$El !== o) {
|
|
259
|
-
const r = s.getPropertyOptions(o),
|
|
260
|
-
this._$El = o, this[o] =
|
|
259
|
+
const r = s.getPropertyOptions(o), l = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((n = r.converter) === null || n === void 0 ? void 0 : n.fromAttribute) !== void 0 ? r.converter : Nn;
|
|
260
|
+
this._$El = o, this[o] = l.fromAttribute(i, r.type), this._$El = null;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
requestUpdate(e, i, n) {
|
|
@@ -343,13 +343,13 @@ function cr(t, e) {
|
|
|
343
343
|
const ja = (t, e) => {
|
|
344
344
|
const i = t.length - 1, n = [];
|
|
345
345
|
let s, o = e === 2 ? "<svg>" : "", r = Jt;
|
|
346
|
-
for (let
|
|
347
|
-
const
|
|
348
|
-
let c,
|
|
349
|
-
for (; f <
|
|
350
|
-
f = r.lastIndex, r === Jt ?
|
|
351
|
-
const I = r === Xe && t[
|
|
352
|
-
o += r === Jt ?
|
|
346
|
+
for (let l = 0; l < i; l++) {
|
|
347
|
+
const a = t[l];
|
|
348
|
+
let c, u, p = -1, f = 0;
|
|
349
|
+
for (; f < a.length && (r.lastIndex = f, u = r.exec(a), u !== null); )
|
|
350
|
+
f = r.lastIndex, r === Jt ? u[1] === "!--" ? r = Ys : u[1] !== void 0 ? r = Fs : u[2] !== void 0 ? (lr.test(u[2]) && (s = RegExp("</" + u[2], "g")), r = Xe) : u[3] !== void 0 && (r = Xe) : r === Xe ? u[0] === ">" ? (r = s != null ? s : Jt, p = -1) : u[1] === void 0 ? p = -2 : (p = r.lastIndex - u[2].length, c = u[1], r = u[3] === void 0 ? Xe : u[3] === '"' ? zs : Bs) : r === zs || r === Bs ? r = Xe : r === Ys || r === Fs ? r = Jt : (r = Xe, s = void 0);
|
|
351
|
+
const I = r === Xe && t[l + 1].startsWith("/>") ? " " : "";
|
|
352
|
+
o += r === Jt ? a + Va : p >= 0 ? (n.push(c), a.slice(0, p) + kn + a.slice(p) + He + I) : a + He + (p === -2 ? (n.push(void 0), l) : I);
|
|
353
353
|
}
|
|
354
354
|
return [cr(t, o + (t[i] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
|
355
355
|
};
|
|
@@ -358,23 +358,23 @@ let Ln = class dr {
|
|
|
358
358
|
let s;
|
|
359
359
|
this.parts = [];
|
|
360
360
|
let o = 0, r = 0;
|
|
361
|
-
const
|
|
361
|
+
const l = e.length - 1, a = this.parts, [c, u] = ja(e, i);
|
|
362
362
|
if (this.el = dr.createElement(c, n), rt.currentNode = this.el.content, i === 2) {
|
|
363
363
|
const p = this.el.content, f = p.firstChild;
|
|
364
364
|
f.remove(), p.append(...f.childNodes);
|
|
365
365
|
}
|
|
366
|
-
for (; (s = rt.nextNode()) !== null &&
|
|
366
|
+
for (; (s = rt.nextNode()) !== null && a.length < l; ) {
|
|
367
367
|
if (s.nodeType === 1) {
|
|
368
368
|
if (s.hasAttributes()) {
|
|
369
369
|
const p = [];
|
|
370
370
|
for (const f of s.getAttributeNames())
|
|
371
371
|
if (f.endsWith(kn) || f.startsWith(He)) {
|
|
372
|
-
const I =
|
|
372
|
+
const I = u[r++];
|
|
373
373
|
if (p.push(f), I !== void 0) {
|
|
374
374
|
const D = s.getAttribute(I.toLowerCase() + kn).split(He), me = /([.?@])?(.*)/.exec(I);
|
|
375
|
-
|
|
375
|
+
a.push({ type: 1, index: o, name: me[2], strings: D, ctor: me[1] === "." ? Fa : me[1] === "?" ? za : me[1] === "@" ? Ga : Qi });
|
|
376
376
|
} else
|
|
377
|
-
|
|
377
|
+
a.push({ type: 6, index: o });
|
|
378
378
|
}
|
|
379
379
|
for (const f of p)
|
|
380
380
|
s.removeAttribute(f);
|
|
@@ -384,17 +384,17 @@ let Ln = class dr {
|
|
|
384
384
|
if (f > 0) {
|
|
385
385
|
s.textContent = $t ? $t.emptyScript : "";
|
|
386
386
|
for (let I = 0; I < f; I++)
|
|
387
|
-
s.append(p[I], gi()), rt.nextNode(),
|
|
387
|
+
s.append(p[I], gi()), rt.nextNode(), a.push({ type: 2, index: ++o });
|
|
388
388
|
s.append(p[f], gi());
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
} else if (s.nodeType === 8)
|
|
392
392
|
if (s.data === rr)
|
|
393
|
-
|
|
393
|
+
a.push({ type: 2, index: o });
|
|
394
394
|
else {
|
|
395
395
|
let p = -1;
|
|
396
396
|
for (; (p = s.data.indexOf(He, p + 1)) !== -1; )
|
|
397
|
-
|
|
397
|
+
a.push({ type: 7, index: o }), p += He.length - 1;
|
|
398
398
|
}
|
|
399
399
|
o++;
|
|
400
400
|
}
|
|
@@ -405,12 +405,12 @@ let Ln = class dr {
|
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
407
|
function kt(t, e, i = t, n) {
|
|
408
|
-
var s, o, r,
|
|
408
|
+
var s, o, r, l;
|
|
409
409
|
if (e === gt)
|
|
410
410
|
return e;
|
|
411
|
-
let
|
|
411
|
+
let a = n !== void 0 ? (s = i._$Co) === null || s === void 0 ? void 0 : s[n] : i._$Cl;
|
|
412
412
|
const c = ui(e) ? void 0 : e._$litDirective$;
|
|
413
|
-
return (
|
|
413
|
+
return (a == null ? void 0 : a.constructor) !== c && ((o = a == null ? void 0 : a._$AO) === null || o === void 0 || o.call(a, !1), c === void 0 ? a = void 0 : (a = new c(t), a._$AT(t, i, n)), n !== void 0 ? ((r = (l = i)._$Co) !== null && r !== void 0 ? r : l._$Co = [])[n] = a : i._$Cl = a), a !== void 0 && (e = kt(t, a._$AS(t, e.values), a, n)), e;
|
|
414
414
|
}
|
|
415
415
|
let Ya = class {
|
|
416
416
|
constructor(e, i) {
|
|
@@ -426,13 +426,13 @@ let Ya = class {
|
|
|
426
426
|
var i;
|
|
427
427
|
const { el: { content: n }, parts: s } = this._$AD, o = ((i = e == null ? void 0 : e.creationScope) !== null && i !== void 0 ? i : dt).importNode(n, !0);
|
|
428
428
|
rt.currentNode = o;
|
|
429
|
-
let r = rt.nextNode(),
|
|
429
|
+
let r = rt.nextNode(), l = 0, a = 0, c = s[0];
|
|
430
430
|
for (; c !== void 0; ) {
|
|
431
|
-
if (
|
|
432
|
-
let
|
|
433
|
-
c.type === 2 ?
|
|
431
|
+
if (l === c.index) {
|
|
432
|
+
let u;
|
|
433
|
+
c.type === 2 ? u = new ss(r, r.nextSibling, this, e) : c.type === 1 ? u = new c.ctor(r, c.name, c.strings, this, e) : c.type === 6 && (u = new Wa(r, this, e)), this._$AV.push(u), c = s[++a];
|
|
434
434
|
}
|
|
435
|
-
|
|
435
|
+
l !== (c == null ? void 0 : c.index) && (r = rt.nextNode(), l++);
|
|
436
436
|
}
|
|
437
437
|
return rt.currentNode = dt, o;
|
|
438
438
|
}
|
|
@@ -479,8 +479,8 @@ let Ya = class {
|
|
|
479
479
|
if (((i = this._$AH) === null || i === void 0 ? void 0 : i._$AD) === o)
|
|
480
480
|
this._$AH.v(n);
|
|
481
481
|
else {
|
|
482
|
-
const r = new Ya(o, this),
|
|
483
|
-
r.v(n), this.$(
|
|
482
|
+
const r = new Ya(o, this), l = r.u(this.options);
|
|
483
|
+
r.v(n), this.$(l), this._$AH = r;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
_$AC(e) {
|
|
@@ -522,10 +522,10 @@ let Ya = class {
|
|
|
522
522
|
if (o === void 0)
|
|
523
523
|
e = kt(this, e, i, 0), r = !ui(e) || e !== this._$AH && e !== gt, r && (this._$AH = e);
|
|
524
524
|
else {
|
|
525
|
-
const
|
|
526
|
-
let
|
|
527
|
-
for (e = o[0],
|
|
528
|
-
c = kt(this,
|
|
525
|
+
const l = e;
|
|
526
|
+
let a, c;
|
|
527
|
+
for (e = o[0], a = 0; a < o.length - 1; a++)
|
|
528
|
+
c = kt(this, l[n + a], i, a), c === gt && (c = this._$AH[a]), r || (r = !ui(c) || c !== this._$AH[a]), c === k ? e = k : e !== k && (e += (c != null ? c : "") + o[a + 1]), this._$AH[a] = c;
|
|
529
529
|
}
|
|
530
530
|
r && !s && this.j(e);
|
|
531
531
|
}
|
|
@@ -581,8 +581,8 @@ const Za = (t, e, i) => {
|
|
|
581
581
|
const o = (n = i == null ? void 0 : i.renderBefore) !== null && n !== void 0 ? n : e;
|
|
582
582
|
let r = o._$litPart$;
|
|
583
583
|
if (r === void 0) {
|
|
584
|
-
const
|
|
585
|
-
o._$litPart$ = r = new ss(e.insertBefore(gi(),
|
|
584
|
+
const l = (s = i == null ? void 0 : i.renderBefore) !== null && s !== void 0 ? s : null;
|
|
585
|
+
o._$litPart$ = r = new ss(e.insertBefore(gi(), l), l, void 0, i != null ? i : {});
|
|
586
586
|
}
|
|
587
587
|
return r._$AI(t), r;
|
|
588
588
|
};
|
|
@@ -637,7 +637,7 @@ const w = (t) => (e) => typeof e == "function" ? ((i, n) => (customElements.defi
|
|
|
637
637
|
* Copyright 2017 Google LLC
|
|
638
638
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
639
639
|
*/
|
|
640
|
-
const qa = (t, e) => e.kind === "method" && e.descriptor && !("value" in e.descriptor) ? _(
|
|
640
|
+
const qa = (t, e) => e.kind === "method" && e.descriptor && !("value" in e.descriptor) ? _(h({}, e), { finisher(i) {
|
|
641
641
|
i.createProperty(e.key, t);
|
|
642
642
|
} }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e.key, initializer() {
|
|
643
643
|
typeof e.initializer == "function" && (this[e.key] = e.initializer.call(this));
|
|
@@ -657,9 +657,9 @@ function d(t) {
|
|
|
657
657
|
const Xi = ({ finisher: t, descriptor: e }) => (i, n) => {
|
|
658
658
|
var s;
|
|
659
659
|
if (n === void 0) {
|
|
660
|
-
const o = (s = i.originalKey) !== null && s !== void 0 ? s : i.key, r = e != null ? { kind: "method", placement: "prototype", key: o, descriptor: e(i.key) } : _(
|
|
661
|
-
return t != null && (r.finisher = function(
|
|
662
|
-
t(
|
|
660
|
+
const o = (s = i.originalKey) !== null && s !== void 0 ? s : i.key, r = e != null ? { kind: "method", placement: "prototype", key: o, descriptor: e(i.key) } : _(h({}, i), { key: o });
|
|
661
|
+
return t != null && (r.finisher = function(l) {
|
|
662
|
+
t(l, o);
|
|
663
663
|
}), r;
|
|
664
664
|
}
|
|
665
665
|
{
|
|
@@ -725,8 +725,8 @@ let ur = class extends Event {
|
|
|
725
725
|
let Qa = class {
|
|
726
726
|
constructor(e, i, n, s) {
|
|
727
727
|
var o;
|
|
728
|
-
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (r,
|
|
729
|
-
this.unsubscribe && (this.unsubscribe !==
|
|
728
|
+
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (r, l) => {
|
|
729
|
+
this.unsubscribe && (this.unsubscribe !== l && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = r, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(r, l)), this.unsubscribe = l;
|
|
730
730
|
}, this.host = e, i.context !== void 0) {
|
|
731
731
|
const r = i;
|
|
732
732
|
this.context = r.context, this.callback = r.callback, this.subscribe = (o = r.subscribe) !== null && o !== void 0 && o;
|
|
@@ -798,8 +798,8 @@ let el = class extends Event {
|
|
|
798
798
|
if (s.context !== this.context || o === this.host)
|
|
799
799
|
return;
|
|
800
800
|
const r = /* @__PURE__ */ new Set();
|
|
801
|
-
for (const [
|
|
802
|
-
r.has(
|
|
801
|
+
for (const [l, { consumerHost: a }] of this.subscriptions)
|
|
802
|
+
r.has(l) || (r.add(l), a.dispatchEvent(new ur(this.context, l, !0)));
|
|
803
803
|
s.stopPropagation();
|
|
804
804
|
}, this.host = e, i.context !== void 0 ? this.context = i.context : this.context = i, this.attachListeners(), this.host.addController(this);
|
|
805
805
|
}
|
|
@@ -818,12 +818,12 @@ let el = class extends Event {
|
|
|
818
818
|
function K({ context: t }) {
|
|
819
819
|
return Xi({ finisher: (e, i) => {
|
|
820
820
|
const n = /* @__PURE__ */ new WeakMap();
|
|
821
|
-
e.addInitializer((
|
|
822
|
-
n.set(
|
|
821
|
+
e.addInitializer((l) => {
|
|
822
|
+
n.set(l, new tl(l, { context: t }));
|
|
823
823
|
});
|
|
824
|
-
const s = Object.getOwnPropertyDescriptor(e.prototype, i), o = s == null ? void 0 : s.set, r = _(
|
|
825
|
-
var
|
|
826
|
-
(
|
|
824
|
+
const s = Object.getOwnPropertyDescriptor(e.prototype, i), o = s == null ? void 0 : s.set, r = _(h({}, s), { set: function(l) {
|
|
825
|
+
var a;
|
|
826
|
+
(a = n.get(this)) === null || a === void 0 || a.setValue(l), o && o.call(this, l);
|
|
827
827
|
} });
|
|
828
828
|
Object.defineProperty(e.prototype, i, r);
|
|
829
829
|
} });
|
|
@@ -922,8 +922,8 @@ function Js(t, e) {
|
|
|
922
922
|
function rl(t, e, i = 250, n, s, o, r) {
|
|
923
923
|
if (!o.exception || !o.exception.values || !r || !ut(r.originalException, Error))
|
|
924
924
|
return;
|
|
925
|
-
const
|
|
926
|
-
|
|
925
|
+
const l = o.exception.values.length > 0 ? o.exception.values[o.exception.values.length - 1] : void 0;
|
|
926
|
+
l && (o.exception.values = al(
|
|
927
927
|
Mn(
|
|
928
928
|
t,
|
|
929
929
|
e,
|
|
@@ -931,54 +931,54 @@ function rl(t, e, i = 250, n, s, o, r) {
|
|
|
931
931
|
r.originalException,
|
|
932
932
|
n,
|
|
933
933
|
o.exception.values,
|
|
934
|
-
|
|
934
|
+
l,
|
|
935
935
|
0
|
|
936
936
|
),
|
|
937
937
|
i
|
|
938
938
|
));
|
|
939
939
|
}
|
|
940
|
-
function Mn(t, e, i, n, s, o, r,
|
|
940
|
+
function Mn(t, e, i, n, s, o, r, l) {
|
|
941
941
|
if (o.length >= i + 1)
|
|
942
942
|
return o;
|
|
943
|
-
let
|
|
943
|
+
let a = [...o];
|
|
944
944
|
if (ut(n[s], Error)) {
|
|
945
|
-
Ks(r,
|
|
946
|
-
const c = t(e, n[s]),
|
|
947
|
-
Qs(c, s,
|
|
945
|
+
Ks(r, l);
|
|
946
|
+
const c = t(e, n[s]), u = a.length;
|
|
947
|
+
Qs(c, s, u, l), a = Mn(
|
|
948
948
|
t,
|
|
949
949
|
e,
|
|
950
950
|
i,
|
|
951
951
|
n[s],
|
|
952
952
|
s,
|
|
953
|
-
[c, ...
|
|
953
|
+
[c, ...a],
|
|
954
954
|
c,
|
|
955
|
-
|
|
955
|
+
u
|
|
956
956
|
);
|
|
957
957
|
}
|
|
958
|
-
return Array.isArray(n.errors) && n.errors.forEach((c,
|
|
958
|
+
return Array.isArray(n.errors) && n.errors.forEach((c, u) => {
|
|
959
959
|
if (ut(c, Error)) {
|
|
960
|
-
Ks(r,
|
|
961
|
-
const p = t(e, c), f =
|
|
962
|
-
Qs(p, `errors[${
|
|
960
|
+
Ks(r, l);
|
|
961
|
+
const p = t(e, c), f = a.length;
|
|
962
|
+
Qs(p, `errors[${u}]`, f, l), a = Mn(
|
|
963
963
|
t,
|
|
964
964
|
e,
|
|
965
965
|
i,
|
|
966
966
|
c,
|
|
967
967
|
s,
|
|
968
|
-
[p, ...
|
|
968
|
+
[p, ...a],
|
|
969
969
|
p,
|
|
970
970
|
f
|
|
971
971
|
);
|
|
972
972
|
}
|
|
973
|
-
}),
|
|
973
|
+
}), a;
|
|
974
974
|
}
|
|
975
975
|
function Ks(t, e) {
|
|
976
|
-
t.mechanism = t.mechanism || { type: "generic", handled: !0 }, t.mechanism = _(
|
|
976
|
+
t.mechanism = t.mechanism || { type: "generic", handled: !0 }, t.mechanism = _(h(h({}, t.mechanism), t.type === "AggregateError" && { is_exception_group: !0 }), {
|
|
977
977
|
exception_id: e
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
980
|
function Qs(t, e, i, n) {
|
|
981
|
-
t.mechanism = t.mechanism || { type: "generic", handled: !0 }, t.mechanism = _(
|
|
981
|
+
t.mechanism = t.mechanism || { type: "generic", handled: !0 }, t.mechanism = _(h({}, t.mechanism), {
|
|
982
982
|
type: "chained",
|
|
983
983
|
source: e,
|
|
984
984
|
exception_id: i,
|
|
@@ -1010,19 +1010,19 @@ function Cr(t, e = {}) {
|
|
|
1010
1010
|
let i = t;
|
|
1011
1011
|
const n = 5, s = [];
|
|
1012
1012
|
let o = 0, r = 0;
|
|
1013
|
-
const
|
|
1013
|
+
const l = " > ", a = l.length;
|
|
1014
1014
|
let c;
|
|
1015
|
-
const
|
|
1016
|
-
for (; i && o++ < n && (c = cl(i,
|
|
1015
|
+
const u = Array.isArray(e) ? e : e.keyAttrs, p = !Array.isArray(e) && e.maxStringLength || ll;
|
|
1016
|
+
for (; i && o++ < n && (c = cl(i, u), !(c === "html" || o > 1 && r + s.length * a + c.length >= p)); )
|
|
1017
1017
|
s.push(c), r += c.length, i = i.parentNode;
|
|
1018
|
-
return s.reverse().join(
|
|
1018
|
+
return s.reverse().join(l);
|
|
1019
1019
|
} catch (i) {
|
|
1020
1020
|
return "<unknown>";
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
function cl(t, e) {
|
|
1024
1024
|
const i = t, n = [];
|
|
1025
|
-
let s, o, r,
|
|
1025
|
+
let s, o, r, l, a;
|
|
1026
1026
|
if (!i || !i.tagName)
|
|
1027
1027
|
return "";
|
|
1028
1028
|
if (cs.HTMLElement && i instanceof HTMLElement && i.dataset && i.dataset.sentryComponent)
|
|
@@ -1034,11 +1034,11 @@ function cl(t, e) {
|
|
|
1034
1034
|
n.push(`[${p[0]}="${p[1]}"]`);
|
|
1035
1035
|
});
|
|
1036
1036
|
else if (i.id && n.push(`#${i.id}`), s = i.className, s && lt(s))
|
|
1037
|
-
for (o = s.split(/\s+/),
|
|
1038
|
-
n.push(`.${o[
|
|
1039
|
-
const
|
|
1040
|
-
for (
|
|
1041
|
-
r =
|
|
1037
|
+
for (o = s.split(/\s+/), a = 0; a < o.length; a++)
|
|
1038
|
+
n.push(`.${o[a]}`);
|
|
1039
|
+
const u = ["aria-label", "type", "name", "title", "alt"];
|
|
1040
|
+
for (a = 0; a < u.length; a++)
|
|
1041
|
+
r = u[a], l = i.getAttribute(r), l && n.push(`[${r}="${l}"]`);
|
|
1042
1042
|
return n.join("");
|
|
1043
1043
|
}
|
|
1044
1044
|
function dl() {
|
|
@@ -1105,8 +1105,8 @@ function ul() {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
const fn = ul(), hl = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
|
|
1107
1107
|
function vi(t, e = !1) {
|
|
1108
|
-
const { host: i, path: n, pass: s, port: o, projectId: r, protocol:
|
|
1109
|
-
return `${
|
|
1108
|
+
const { host: i, path: n, pass: s, port: o, projectId: r, protocol: l, publicKey: a } = t;
|
|
1109
|
+
return `${l}://${a}${e && s ? `:${s}` : ""}@${i}${o ? `:${o}` : ""}/${n && `${n}/`}${r}`;
|
|
1110
1110
|
}
|
|
1111
1111
|
function pl(t) {
|
|
1112
1112
|
const e = hl.exec(t);
|
|
@@ -1116,14 +1116,14 @@ function pl(t) {
|
|
|
1116
1116
|
});
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
|
-
const [i, n, s = "", o, r = "",
|
|
1120
|
-
let
|
|
1121
|
-
const
|
|
1122
|
-
if (
|
|
1119
|
+
const [i, n, s = "", o, r = "", l] = e.slice(1);
|
|
1120
|
+
let a = "", c = l;
|
|
1121
|
+
const u = c.split("/");
|
|
1122
|
+
if (u.length > 1 && (a = u.slice(0, -1).join("/"), c = u.pop()), c) {
|
|
1123
1123
|
const p = c.match(/^\d+/);
|
|
1124
1124
|
p && (c = p[0]);
|
|
1125
1125
|
}
|
|
1126
|
-
return vr({ host: o, pass: s, path:
|
|
1126
|
+
return vr({ host: o, pass: s, path: a, projectId: c, port: r, protocol: i, publicKey: n });
|
|
1127
1127
|
}
|
|
1128
1128
|
function vr(t) {
|
|
1129
1129
|
return {
|
|
@@ -1179,13 +1179,13 @@ function ml(t) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
function _r(t) {
|
|
1181
1181
|
if (pr(t))
|
|
1182
|
-
return
|
|
1182
|
+
return h({
|
|
1183
1183
|
message: t.message,
|
|
1184
1184
|
name: t.name,
|
|
1185
1185
|
stack: t.stack
|
|
1186
1186
|
}, eo(t));
|
|
1187
1187
|
if (en(t)) {
|
|
1188
|
-
const e =
|
|
1188
|
+
const e = h({
|
|
1189
1189
|
type: t.type,
|
|
1190
1190
|
target: Xs(t.target),
|
|
1191
1191
|
currentTarget: Xs(t.currentTarget)
|
|
@@ -1265,15 +1265,15 @@ function _l(...t) {
|
|
|
1265
1265
|
const s = [], o = i.split(`
|
|
1266
1266
|
`);
|
|
1267
1267
|
for (let r = n; r < o.length; r++) {
|
|
1268
|
-
const
|
|
1269
|
-
if (
|
|
1268
|
+
const l = o[r];
|
|
1269
|
+
if (l.length > 1024)
|
|
1270
1270
|
continue;
|
|
1271
|
-
const
|
|
1272
|
-
if (!
|
|
1271
|
+
const a = to.test(l) ? l.replace(to, "$1") : l;
|
|
1272
|
+
if (!a.match(/\S*Error: /)) {
|
|
1273
1273
|
for (const c of e) {
|
|
1274
|
-
const
|
|
1275
|
-
if (
|
|
1276
|
-
s.push(
|
|
1274
|
+
const u = c(a);
|
|
1275
|
+
if (u) {
|
|
1276
|
+
s.push(u);
|
|
1277
1277
|
break;
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
@@ -1288,7 +1288,7 @@ function bl(t) {
|
|
|
1288
1288
|
if (!t.length)
|
|
1289
1289
|
return [];
|
|
1290
1290
|
const e = Array.from(t);
|
|
1291
|
-
return /sentryWrapped/.test(e[e.length - 1].function || "") && e.pop(), e.reverse(), io.test(e[e.length - 1].function || "") && (e.pop(), io.test(e[e.length - 1].function || "") && e.pop()), e.slice(0, br).map((i) => _(
|
|
1291
|
+
return /sentryWrapped/.test(e[e.length - 1].function || "") && e.pop(), e.reverse(), io.test(e[e.length - 1].function || "") && (e.pop(), io.test(e[e.length - 1].function || "") && e.pop()), e.slice(0, br).map((i) => _(h({}, i), {
|
|
1292
1292
|
filename: i.filename || e[e.length - 1].filename,
|
|
1293
1293
|
function: i.function || "?"
|
|
1294
1294
|
}));
|
|
@@ -1371,8 +1371,8 @@ function Wi(t, e) {
|
|
|
1371
1371
|
if (!i)
|
|
1372
1372
|
return;
|
|
1373
1373
|
const n = { type: "generic", handled: !0 }, s = i.mechanism;
|
|
1374
|
-
if (i.mechanism =
|
|
1375
|
-
const o =
|
|
1374
|
+
if (i.mechanism = h(h(h({}, n), s), e), e && "data" in e) {
|
|
1375
|
+
const o = h(h({}, s && s.data), e.data);
|
|
1376
1376
|
i.mechanism.data = o;
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
@@ -1401,31 +1401,31 @@ function Dl() {
|
|
|
1401
1401
|
xt.document.addEventListener("click", e, !1), xt.document.addEventListener("keypress", e, !1), ["EventTarget", "Node"].forEach((i) => {
|
|
1402
1402
|
const n = xt[i] && xt[i].prototype;
|
|
1403
1403
|
!n || !n.hasOwnProperty || !n.hasOwnProperty("addEventListener") || (ve(n, "addEventListener", function(s) {
|
|
1404
|
-
return function(o, r,
|
|
1404
|
+
return function(o, r, l) {
|
|
1405
1405
|
if (o === "click" || o == "keypress")
|
|
1406
1406
|
try {
|
|
1407
|
-
const
|
|
1408
|
-
if (!
|
|
1407
|
+
const a = this, c = a.__sentry_instrumentation_handlers__ = a.__sentry_instrumentation_handlers__ || {}, u = c[o] = c[o] || { refCount: 0 };
|
|
1408
|
+
if (!u.handler) {
|
|
1409
1409
|
const p = ao(t);
|
|
1410
|
-
|
|
1410
|
+
u.handler = p, s.call(this, o, p, l);
|
|
1411
1411
|
}
|
|
1412
|
-
|
|
1413
|
-
} catch (
|
|
1412
|
+
u.refCount++;
|
|
1413
|
+
} catch (a) {
|
|
1414
1414
|
}
|
|
1415
|
-
return s.call(this, o, r,
|
|
1415
|
+
return s.call(this, o, r, l);
|
|
1416
1416
|
};
|
|
1417
1417
|
}), ve(
|
|
1418
1418
|
n,
|
|
1419
1419
|
"removeEventListener",
|
|
1420
1420
|
function(s) {
|
|
1421
|
-
return function(o, r,
|
|
1421
|
+
return function(o, r, l) {
|
|
1422
1422
|
if (o === "click" || o == "keypress")
|
|
1423
1423
|
try {
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1426
|
-
} catch (
|
|
1424
|
+
const a = this, c = a.__sentry_instrumentation_handlers__ || {}, u = c[o];
|
|
1425
|
+
u && (u.refCount--, u.refCount <= 0 && (s.call(this, o, u.handler, l), u.handler = void 0, delete c[o]), Object.keys(c).length === 0 && delete a.__sentry_instrumentation_handlers__);
|
|
1426
|
+
} catch (a) {
|
|
1427
1427
|
}
|
|
1428
|
-
return s.call(this, o, r,
|
|
1428
|
+
return s.call(this, o, r, l);
|
|
1429
1429
|
};
|
|
1430
1430
|
}
|
|
1431
1431
|
));
|
|
@@ -1510,16 +1510,16 @@ function Pl() {
|
|
|
1510
1510
|
},
|
|
1511
1511
|
startTimestamp: Date.now()
|
|
1512
1512
|
};
|
|
1513
|
-
return he("fetch",
|
|
1513
|
+
return he("fetch", h({}, s)), t.apply(S, e).then(
|
|
1514
1514
|
(o) => {
|
|
1515
|
-
const r = _(
|
|
1515
|
+
const r = _(h({}, s), {
|
|
1516
1516
|
endTimestamp: Date.now(),
|
|
1517
1517
|
response: o
|
|
1518
1518
|
});
|
|
1519
1519
|
return he("fetch", r), o;
|
|
1520
1520
|
},
|
|
1521
1521
|
(o) => {
|
|
1522
|
-
const r = _(
|
|
1522
|
+
const r = _(h({}, s), {
|
|
1523
1523
|
endTimestamp: Date.now(),
|
|
1524
1524
|
error: o
|
|
1525
1525
|
});
|
|
@@ -1632,29 +1632,29 @@ function Zl() {
|
|
|
1632
1632
|
request_headers: {}
|
|
1633
1633
|
}, s === "POST" && o.match(/sentry_key/) && (this.__sentry_own_request__ = !0);
|
|
1634
1634
|
const r = () => {
|
|
1635
|
-
const
|
|
1636
|
-
if (
|
|
1635
|
+
const l = this[ri];
|
|
1636
|
+
if (l && this.readyState === 4) {
|
|
1637
1637
|
try {
|
|
1638
|
-
|
|
1638
|
+
l.status_code = this.status;
|
|
1639
1639
|
} catch (c) {
|
|
1640
1640
|
}
|
|
1641
|
-
const
|
|
1641
|
+
const a = {
|
|
1642
1642
|
args: [s, o],
|
|
1643
1643
|
endTimestamp: Date.now(),
|
|
1644
1644
|
startTimestamp: n,
|
|
1645
1645
|
xhr: this
|
|
1646
1646
|
};
|
|
1647
|
-
he("xhr",
|
|
1647
|
+
he("xhr", a);
|
|
1648
1648
|
}
|
|
1649
1649
|
};
|
|
1650
|
-
return "onreadystatechange" in this && typeof this.onreadystatechange == "function" ? ve(this, "onreadystatechange", function(
|
|
1651
|
-
return function(...
|
|
1652
|
-
return r(),
|
|
1650
|
+
return "onreadystatechange" in this && typeof this.onreadystatechange == "function" ? ve(this, "onreadystatechange", function(l) {
|
|
1651
|
+
return function(...a) {
|
|
1652
|
+
return r(), l.apply(this, a);
|
|
1653
1653
|
};
|
|
1654
|
-
}) : this.addEventListener("readystatechange", r), ve(this, "setRequestHeader", function(
|
|
1655
|
-
return function(...
|
|
1656
|
-
const [c,
|
|
1657
|
-
return p && lt(c) && lt(
|
|
1654
|
+
}) : this.addEventListener("readystatechange", r), ve(this, "setRequestHeader", function(l) {
|
|
1655
|
+
return function(...a) {
|
|
1656
|
+
const [c, u] = a, p = this[ri];
|
|
1657
|
+
return p && lt(c) && lt(u) && (p.request_headers[c.toLowerCase()] = u), l.apply(this, a);
|
|
1658
1658
|
};
|
|
1659
1659
|
}), e.apply(this, i);
|
|
1660
1660
|
};
|
|
@@ -1722,37 +1722,37 @@ function Fn(t, e, i = 1 / 0, n = 1 / 0, s = Kl()) {
|
|
|
1722
1722
|
if (e == null || // this matches null and undefined -> eqeq not eqeqeq
|
|
1723
1723
|
["number", "boolean", "string"].includes(typeof e) && !ol(e))
|
|
1724
1724
|
return e;
|
|
1725
|
-
const
|
|
1726
|
-
if (!
|
|
1727
|
-
return
|
|
1725
|
+
const l = Ql(t, e);
|
|
1726
|
+
if (!l.startsWith("[object "))
|
|
1727
|
+
return l;
|
|
1728
1728
|
if (e.__sentry_skip_normalization__)
|
|
1729
1729
|
return e;
|
|
1730
|
-
const
|
|
1731
|
-
if (
|
|
1732
|
-
return
|
|
1730
|
+
const a = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : i;
|
|
1731
|
+
if (a === 0)
|
|
1732
|
+
return l.replace("object ", "");
|
|
1733
1733
|
if (o(e))
|
|
1734
1734
|
return "[Circular ~]";
|
|
1735
1735
|
const c = e;
|
|
1736
1736
|
if (c && typeof c.toJSON == "function")
|
|
1737
1737
|
try {
|
|
1738
1738
|
const I = c.toJSON();
|
|
1739
|
-
return Fn("", I,
|
|
1739
|
+
return Fn("", I, a - 1, n, s);
|
|
1740
1740
|
} catch (I) {
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const u = Array.isArray(e) ? [] : {};
|
|
1743
1743
|
let p = 0;
|
|
1744
1744
|
const f = _r(e);
|
|
1745
1745
|
for (const I in f) {
|
|
1746
1746
|
if (!Object.prototype.hasOwnProperty.call(f, I))
|
|
1747
1747
|
continue;
|
|
1748
1748
|
if (p >= n) {
|
|
1749
|
-
|
|
1749
|
+
u[I] = "[MaxProperties ~]";
|
|
1750
1750
|
break;
|
|
1751
1751
|
}
|
|
1752
1752
|
const D = f[I];
|
|
1753
|
-
|
|
1753
|
+
u[I] = Fn(I, D, a - 1, n, s), p++;
|
|
1754
1754
|
}
|
|
1755
|
-
return r(e),
|
|
1755
|
+
return r(e), u;
|
|
1756
1756
|
}
|
|
1757
1757
|
function Ql(t, e) {
|
|
1758
1758
|
try {
|
|
@@ -1920,25 +1920,25 @@ function ic(t) {
|
|
|
1920
1920
|
function s(r) {
|
|
1921
1921
|
if (!i())
|
|
1922
1922
|
return ds(new fe("Not adding Promise because buffer limit was reached."));
|
|
1923
|
-
const
|
|
1924
|
-
return e.indexOf(
|
|
1923
|
+
const l = r();
|
|
1924
|
+
return e.indexOf(l) === -1 && e.push(l), l.then(() => n(l)).then(
|
|
1925
1925
|
null,
|
|
1926
|
-
() => n(
|
|
1926
|
+
() => n(l).then(null, () => {
|
|
1927
1927
|
})
|
|
1928
|
-
),
|
|
1928
|
+
), l;
|
|
1929
1929
|
}
|
|
1930
1930
|
function o(r) {
|
|
1931
|
-
return new X((
|
|
1931
|
+
return new X((l, a) => {
|
|
1932
1932
|
let c = e.length;
|
|
1933
1933
|
if (!c)
|
|
1934
|
-
return
|
|
1935
|
-
const
|
|
1936
|
-
r && r > 0 &&
|
|
1934
|
+
return l(!0);
|
|
1935
|
+
const u = setTimeout(() => {
|
|
1936
|
+
r && r > 0 && l(!1);
|
|
1937
1937
|
}, r);
|
|
1938
1938
|
e.forEach((p) => {
|
|
1939
1939
|
Mt(p).then(() => {
|
|
1940
|
-
--c || (clearTimeout(
|
|
1941
|
-
},
|
|
1940
|
+
--c || (clearTimeout(u), l(!0));
|
|
1941
|
+
}, a);
|
|
1942
1942
|
});
|
|
1943
1943
|
});
|
|
1944
1944
|
}
|
|
@@ -1985,8 +1985,8 @@ const Sr = oc();
|
|
|
1985
1985
|
const { performance: t } = S;
|
|
1986
1986
|
if (!t || !t.now)
|
|
1987
1987
|
return;
|
|
1988
|
-
const e = 3600 * 1e3, i = t.now(), n = Date.now(), s = t.timeOrigin ? Math.abs(t.timeOrigin + i - n) : e, o = s < e, r = t.timing && t.timing.navigationStart,
|
|
1989
|
-
return o || c ? s <=
|
|
1988
|
+
const e = 3600 * 1e3, i = t.now(), n = Date.now(), s = t.timeOrigin ? Math.abs(t.timeOrigin + i - n) : e, o = s < e, r = t.timing && t.timing.navigationStart, a = typeof r == "number" ? Math.abs(r + i - n) : e, c = a < e;
|
|
1989
|
+
return o || c ? s <= a ? t.timeOrigin : r : n;
|
|
1990
1990
|
})();
|
|
1991
1991
|
function Yt(t, e = []) {
|
|
1992
1992
|
return [t, e];
|
|
@@ -2014,17 +2014,17 @@ function ac(t, e) {
|
|
|
2014
2014
|
typeof s == "string" ? s = typeof r == "string" ? s + r : [Bn(s, e), r] : s.push(typeof r == "string" ? Bn(r, e) : r);
|
|
2015
2015
|
}
|
|
2016
2016
|
for (const r of n) {
|
|
2017
|
-
const [
|
|
2017
|
+
const [l, a] = r;
|
|
2018
2018
|
if (o(`
|
|
2019
|
-
${JSON.stringify(
|
|
2020
|
-
`), typeof
|
|
2021
|
-
o(
|
|
2019
|
+
${JSON.stringify(l)}
|
|
2020
|
+
`), typeof a == "string" || a instanceof Uint8Array)
|
|
2021
|
+
o(a);
|
|
2022
2022
|
else {
|
|
2023
2023
|
let c;
|
|
2024
2024
|
try {
|
|
2025
|
-
c = JSON.stringify(
|
|
2026
|
-
} catch (
|
|
2027
|
-
c = JSON.stringify(Ue(
|
|
2025
|
+
c = JSON.stringify(a);
|
|
2026
|
+
} catch (u) {
|
|
2027
|
+
c = JSON.stringify(Ue(a));
|
|
2028
2028
|
}
|
|
2029
2029
|
o(c);
|
|
2030
2030
|
}
|
|
@@ -2078,11 +2078,11 @@ function xr(t) {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
function gc(t, e, i, n) {
|
|
2080
2080
|
const s = t.sdkProcessingMetadata && t.sdkProcessingMetadata.dynamicSamplingContext;
|
|
2081
|
-
return
|
|
2081
|
+
return h(h(h({
|
|
2082
2082
|
event_id: t.event_id,
|
|
2083
2083
|
sent_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2084
2084
|
}, e && { sdk: e }), !!i && n && { dsn: vi(n) }), s && {
|
|
2085
|
-
trace: ke(
|
|
2085
|
+
trace: ke(h({}, s))
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
2088
2088
|
function uc(t, e, i) {
|
|
@@ -2110,15 +2110,15 @@ function Ic(t, e, i = Date.now()) {
|
|
|
2110
2110
|
return Ac(t, e) > i;
|
|
2111
2111
|
}
|
|
2112
2112
|
function Cc(t, { statusCode: e, headers: i }, n = Date.now()) {
|
|
2113
|
-
const s =
|
|
2113
|
+
const s = h({}, t), o = i && i["x-sentry-rate-limits"], r = i && i["retry-after"];
|
|
2114
2114
|
if (o)
|
|
2115
|
-
for (const
|
|
2116
|
-
const [
|
|
2115
|
+
for (const l of o.trim().split(",")) {
|
|
2116
|
+
const [a, c, , , u] = l.split(":", 5), p = parseInt(a, 10), f = (isNaN(p) ? 60 : p) * 1e3;
|
|
2117
2117
|
if (!c)
|
|
2118
2118
|
s.all = n + f;
|
|
2119
2119
|
else
|
|
2120
2120
|
for (const I of c.split(";"))
|
|
2121
|
-
I === "metric_bucket" ? (!
|
|
2121
|
+
I === "metric_bucket" ? (!u || u.split(";").includes("custom")) && (s[I] = n + f) : s[I] = n + f;
|
|
2122
2122
|
}
|
|
2123
2123
|
else
|
|
2124
2124
|
r ? s.all = n + pc(r, n) : e === 429 && (s.all = n + 60 * 1e3);
|
|
@@ -2137,8 +2137,8 @@ function Zi(t, e, i, n = 0) {
|
|
|
2137
2137
|
if (e === null || typeof r != "function")
|
|
2138
2138
|
s(e);
|
|
2139
2139
|
else {
|
|
2140
|
-
const
|
|
2141
|
-
tn(
|
|
2140
|
+
const l = r(h({}, e), i);
|
|
2141
|
+
tn(l) ? l.then((a) => Zi(t, a, i, n + 1).then(s)).then(null, o) : Zi(t, l, i, n + 1).then(s).then(null, o);
|
|
2142
2142
|
}
|
|
2143
2143
|
});
|
|
2144
2144
|
}
|
|
@@ -2193,16 +2193,16 @@ function _c(t) {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
const bc = 1;
|
|
2195
2195
|
function yc(t) {
|
|
2196
|
-
const { spanId: e, traceId: i } = t.spanContext(), { data: n, op: s, parent_span_id: o, status: r, tags:
|
|
2196
|
+
const { spanId: e, traceId: i } = t.spanContext(), { data: n, op: s, parent_span_id: o, status: r, tags: l, origin: a } = hi(t);
|
|
2197
2197
|
return ke({
|
|
2198
2198
|
data: n,
|
|
2199
2199
|
op: s,
|
|
2200
2200
|
parent_span_id: o,
|
|
2201
2201
|
span_id: e,
|
|
2202
2202
|
status: r,
|
|
2203
|
-
tags:
|
|
2203
|
+
tags: l,
|
|
2204
2204
|
trace_id: i,
|
|
2205
|
-
origin:
|
|
2205
|
+
origin: a
|
|
2206
2206
|
});
|
|
2207
2207
|
}
|
|
2208
2208
|
function hi(t) {
|
|
@@ -2216,24 +2216,24 @@ function wc(t) {
|
|
|
2216
2216
|
return !!(e & bc);
|
|
2217
2217
|
}
|
|
2218
2218
|
function Sc(t, e, i, n, s, o) {
|
|
2219
|
-
const { normalizeDepth: r = 3, normalizeMaxBreadth:
|
|
2219
|
+
const { normalizeDepth: r = 3, normalizeMaxBreadth: l = 1e3 } = t, a = _(h({}, e), {
|
|
2220
2220
|
event_id: e.event_id || i.event_id || te(),
|
|
2221
2221
|
timestamp: e.timestamp || _i()
|
|
2222
2222
|
}), c = i.integrations || t.integrations.map((Y) => Y.name);
|
|
2223
|
-
xc(
|
|
2224
|
-
const
|
|
2225
|
-
i.mechanism && Wi(
|
|
2223
|
+
xc(a, t), Dc(a, c), e.type === void 0 && Tc(a, t.stackParser);
|
|
2224
|
+
const u = Nc(n, i.captureContext);
|
|
2225
|
+
i.mechanism && Wi(a, i.mechanism);
|
|
2226
2226
|
const p = s && s.getEventProcessors ? s.getEventProcessors() : [], f = zc().getScopeData();
|
|
2227
2227
|
if (o) {
|
|
2228
2228
|
const Y = o.getScopeData();
|
|
2229
2229
|
Ao(f, Y);
|
|
2230
2230
|
}
|
|
2231
|
-
if (
|
|
2232
|
-
const Y =
|
|
2231
|
+
if (u) {
|
|
2232
|
+
const Y = u.getScopeData();
|
|
2233
2233
|
Ao(f, Y);
|
|
2234
2234
|
}
|
|
2235
2235
|
const I = [...i.attachments || [], ...f.attachments];
|
|
2236
|
-
I.length && (i.attachments = I), Or(
|
|
2236
|
+
I.length && (i.attachments = I), Or(a, f);
|
|
2237
2237
|
const D = [
|
|
2238
2238
|
...p,
|
|
2239
2239
|
// eslint-disable-next-line deprecation/deprecation
|
|
@@ -2241,15 +2241,15 @@ function Sc(t, e, i, n, s, o) {
|
|
|
2241
2241
|
// Run scope event processors _after_ all other processors
|
|
2242
2242
|
...f.eventProcessors
|
|
2243
2243
|
];
|
|
2244
|
-
return Zi(D,
|
|
2244
|
+
return Zi(D, a, i).then((Y) => (Y && Rc(Y), typeof r == "number" && r > 0 ? Oc(Y, r, l) : Y));
|
|
2245
2245
|
}
|
|
2246
2246
|
function xc(t, e) {
|
|
2247
2247
|
const { environment: i, release: n, dist: s, maxValueLength: o = 250 } = e;
|
|
2248
2248
|
"environment" in t || (t.environment = "environment" in e ? i : gs), t.release === void 0 && n !== void 0 && (t.release = n), t.dist === void 0 && s !== void 0 && (t.dist = s), t.message && (t.message = Nt(t.message, o));
|
|
2249
2249
|
const r = t.exception && t.exception.values && t.exception.values[0];
|
|
2250
2250
|
r && r.value && (r.value = Nt(r.value, o));
|
|
2251
|
-
const
|
|
2252
|
-
|
|
2251
|
+
const l = t.request;
|
|
2252
|
+
l && l.url && (l.url = Nt(l.url, o));
|
|
2253
2253
|
}
|
|
2254
2254
|
const uo = /* @__PURE__ */ new WeakMap();
|
|
2255
2255
|
function Tc(t, e) {
|
|
@@ -2259,14 +2259,14 @@ function Tc(t, e) {
|
|
|
2259
2259
|
let n;
|
|
2260
2260
|
const s = uo.get(e);
|
|
2261
2261
|
s ? n = s : (n = /* @__PURE__ */ new Map(), uo.set(e, n));
|
|
2262
|
-
const o = Object.keys(i).reduce((r,
|
|
2263
|
-
let
|
|
2264
|
-
const c = n.get(
|
|
2265
|
-
c ?
|
|
2266
|
-
for (let
|
|
2267
|
-
const p =
|
|
2262
|
+
const o = Object.keys(i).reduce((r, l) => {
|
|
2263
|
+
let a;
|
|
2264
|
+
const c = n.get(l);
|
|
2265
|
+
c ? a = c : (a = e(l), n.set(l, a));
|
|
2266
|
+
for (let u = a.length - 1; u >= 0; u--) {
|
|
2267
|
+
const p = a[u];
|
|
2268
2268
|
if (p.filename) {
|
|
2269
|
-
r[p.filename] = i[
|
|
2269
|
+
r[p.filename] = i[l];
|
|
2270
2270
|
break;
|
|
2271
2271
|
}
|
|
2272
2272
|
}
|
|
@@ -2274,8 +2274,8 @@ function Tc(t, e) {
|
|
|
2274
2274
|
}, {});
|
|
2275
2275
|
try {
|
|
2276
2276
|
t.exception.values.forEach((r) => {
|
|
2277
|
-
r.stacktrace.frames.forEach((
|
|
2278
|
-
|
|
2277
|
+
r.stacktrace.frames.forEach((l) => {
|
|
2278
|
+
l.filename && (l.debug_id = o[l.filename]);
|
|
2279
2279
|
});
|
|
2280
2280
|
});
|
|
2281
2281
|
} catch (r) {
|
|
@@ -2309,8 +2309,8 @@ function Dc(t, e) {
|
|
|
2309
2309
|
function Oc(t, e, i) {
|
|
2310
2310
|
if (!t)
|
|
2311
2311
|
return null;
|
|
2312
|
-
const n =
|
|
2313
|
-
breadcrumbs: t.breadcrumbs.map((s) =>
|
|
2312
|
+
const n = h(h(h(h(h({}, t), t.breadcrumbs && {
|
|
2313
|
+
breadcrumbs: t.breadcrumbs.map((s) => h(h({}, s), s.data && {
|
|
2314
2314
|
data: Ue(s.data, e, i)
|
|
2315
2315
|
}))
|
|
2316
2316
|
}), t.user && {
|
|
@@ -2399,8 +2399,8 @@ function Vc(t) {
|
|
|
2399
2399
|
return s;
|
|
2400
2400
|
const { sampleRate: o, source: r } = n.metadata;
|
|
2401
2401
|
o != null && (i.sample_rate = `${o}`);
|
|
2402
|
-
const
|
|
2403
|
-
return r && r !== "url" && (i.transaction =
|
|
2402
|
+
const l = hi(n);
|
|
2403
|
+
return r && r !== "url" && (i.transaction = l.description), i.sampled = String(wc(n)), e.emit && e.emit("createDsc", i), i;
|
|
2404
2404
|
}
|
|
2405
2405
|
function Or(t, e) {
|
|
2406
2406
|
const { fingerprint: i, span: n, breadcrumbs: s, sdkProcessingMetadata: o } = e;
|
|
@@ -2413,21 +2413,21 @@ function Ao(t, e) {
|
|
|
2413
2413
|
user: s,
|
|
2414
2414
|
contexts: o,
|
|
2415
2415
|
level: r,
|
|
2416
|
-
sdkProcessingMetadata:
|
|
2417
|
-
breadcrumbs:
|
|
2416
|
+
sdkProcessingMetadata: l,
|
|
2417
|
+
breadcrumbs: a,
|
|
2418
2418
|
fingerprint: c,
|
|
2419
|
-
eventProcessors:
|
|
2419
|
+
eventProcessors: u,
|
|
2420
2420
|
attachments: p,
|
|
2421
2421
|
propagationContext: f,
|
|
2422
2422
|
// eslint-disable-next-line deprecation/deprecation
|
|
2423
2423
|
transactionName: I,
|
|
2424
2424
|
span: D
|
|
2425
2425
|
} = e;
|
|
2426
|
-
Qt(t, "extra", i), Qt(t, "tags", n), Qt(t, "user", s), Qt(t, "contexts", o), Qt(t, "sdkProcessingMetadata",
|
|
2426
|
+
Qt(t, "extra", i), Qt(t, "tags", n), Qt(t, "user", s), Qt(t, "contexts", o), Qt(t, "sdkProcessingMetadata", l), r && (t.level = r), I && (t.transactionName = I), D && (t.span = D), a.length && (t.breadcrumbs = [...t.breadcrumbs, ...a]), c.length && (t.fingerprint = [...t.fingerprint, ...c]), u.length && (t.eventProcessors = [...t.eventProcessors, ...u]), p.length && (t.attachments = [...t.attachments, ...p]), t.propagationContext = h(h({}, t.propagationContext), f);
|
|
2427
2427
|
}
|
|
2428
2428
|
function Qt(t, e, i) {
|
|
2429
2429
|
if (i && Object.keys(i).length) {
|
|
2430
|
-
t[e] =
|
|
2430
|
+
t[e] = h({}, t[e]);
|
|
2431
2431
|
for (const n in i)
|
|
2432
2432
|
Object.prototype.hasOwnProperty.call(i, n) && (t[e][n] = i[n]);
|
|
2433
2433
|
}
|
|
@@ -2440,32 +2440,32 @@ function Uc(t, e) {
|
|
|
2440
2440
|
contexts: o,
|
|
2441
2441
|
level: r,
|
|
2442
2442
|
// eslint-disable-next-line deprecation/deprecation
|
|
2443
|
-
transactionName:
|
|
2444
|
-
} = e,
|
|
2445
|
-
|
|
2443
|
+
transactionName: l
|
|
2444
|
+
} = e, a = ke(i);
|
|
2445
|
+
a && Object.keys(a).length && (t.extra = h(h({}, a), t.extra));
|
|
2446
2446
|
const c = ke(n);
|
|
2447
|
-
c && Object.keys(c).length && (t.tags =
|
|
2448
|
-
const
|
|
2449
|
-
|
|
2447
|
+
c && Object.keys(c).length && (t.tags = h(h({}, c), t.tags));
|
|
2448
|
+
const u = ke(s);
|
|
2449
|
+
u && Object.keys(u).length && (t.user = h(h({}, u), t.user));
|
|
2450
2450
|
const p = ke(o);
|
|
2451
|
-
p && Object.keys(p).length && (t.contexts =
|
|
2451
|
+
p && Object.keys(p).length && (t.contexts = h(h({}, p), t.contexts)), r && (t.level = r), l && (t.transaction = l);
|
|
2452
2452
|
}
|
|
2453
2453
|
function Hc(t, e) {
|
|
2454
2454
|
const i = [...t.breadcrumbs || [], ...e];
|
|
2455
2455
|
t.breadcrumbs = i.length ? i : void 0;
|
|
2456
2456
|
}
|
|
2457
2457
|
function jc(t, e) {
|
|
2458
|
-
t.sdkProcessingMetadata =
|
|
2458
|
+
t.sdkProcessingMetadata = h(h({}, t.sdkProcessingMetadata), e);
|
|
2459
2459
|
}
|
|
2460
2460
|
function Yc(t, e) {
|
|
2461
|
-
t.contexts =
|
|
2461
|
+
t.contexts = h({ trace: yc(e) }, t.contexts);
|
|
2462
2462
|
const i = Rr(e);
|
|
2463
2463
|
if (i) {
|
|
2464
|
-
t.sdkProcessingMetadata =
|
|
2464
|
+
t.sdkProcessingMetadata = h({
|
|
2465
2465
|
dynamicSamplingContext: Vc(e)
|
|
2466
2466
|
}, t.sdkProcessingMetadata);
|
|
2467
2467
|
const n = hi(i).description;
|
|
2468
|
-
n && (t.tags =
|
|
2468
|
+
n && (t.tags = h({ transaction: n }, t.tags));
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
2471
|
function Fc(t, e) {
|
|
@@ -2514,7 +2514,7 @@ class Le {
|
|
|
2514
2514
|
*/
|
|
2515
2515
|
clone() {
|
|
2516
2516
|
const e = new Le();
|
|
2517
|
-
return e._breadcrumbs = [...this._breadcrumbs], e._tags =
|
|
2517
|
+
return e._breadcrumbs = [...this._breadcrumbs], e._tags = h({}, this._tags), e._extra = h({}, this._extra), e._contexts = h({}, this._contexts), e._user = this._user, e._level = this._level, e._span = this._span, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._requestSession = this._requestSession, e._attachments = [...this._attachments], e._sdkProcessingMetadata = h({}, this._sdkProcessingMetadata), e._propagationContext = h({}, this._propagationContext), e._client = this._client, e;
|
|
2518
2518
|
}
|
|
2519
2519
|
/** Update the client on the scope. */
|
|
2520
2520
|
setClient(e) {
|
|
@@ -2575,25 +2575,25 @@ class Le {
|
|
|
2575
2575
|
* @inheritDoc
|
|
2576
2576
|
*/
|
|
2577
2577
|
setTags(e) {
|
|
2578
|
-
return this._tags =
|
|
2578
|
+
return this._tags = h(h({}, this._tags), e), this._notifyScopeListeners(), this;
|
|
2579
2579
|
}
|
|
2580
2580
|
/**
|
|
2581
2581
|
* @inheritDoc
|
|
2582
2582
|
*/
|
|
2583
2583
|
setTag(e, i) {
|
|
2584
|
-
return this._tags = _(
|
|
2584
|
+
return this._tags = _(h({}, this._tags), { [e]: i }), this._notifyScopeListeners(), this;
|
|
2585
2585
|
}
|
|
2586
2586
|
/**
|
|
2587
2587
|
* @inheritDoc
|
|
2588
2588
|
*/
|
|
2589
2589
|
setExtras(e) {
|
|
2590
|
-
return this._extra =
|
|
2590
|
+
return this._extra = h(h({}, this._extra), e), this._notifyScopeListeners(), this;
|
|
2591
2591
|
}
|
|
2592
2592
|
/**
|
|
2593
2593
|
* @inheritDoc
|
|
2594
2594
|
*/
|
|
2595
2595
|
setExtra(e, i) {
|
|
2596
|
-
return this._extra = _(
|
|
2596
|
+
return this._extra = _(h({}, this._extra), { [e]: i }), this._notifyScopeListeners(), this;
|
|
2597
2597
|
}
|
|
2598
2598
|
/**
|
|
2599
2599
|
* @inheritDoc
|
|
@@ -2663,10 +2663,10 @@ class Le {
|
|
|
2663
2663
|
const i = typeof e == "function" ? e(this) : e;
|
|
2664
2664
|
if (i instanceof Le) {
|
|
2665
2665
|
const n = i.getScopeData();
|
|
2666
|
-
this._tags =
|
|
2666
|
+
this._tags = h(h({}, this._tags), n.tags), this._extra = h(h({}, this._extra), n.extra), this._contexts = h(h({}, this._contexts), n.contexts), n.user && Object.keys(n.user).length && (this._user = n.user), n.level && (this._level = n.level), n.fingerprint.length && (this._fingerprint = n.fingerprint), i.getRequestSession() && (this._requestSession = i.getRequestSession()), n.propagationContext && (this._propagationContext = n.propagationContext);
|
|
2667
2667
|
} else if (Lt(i)) {
|
|
2668
2668
|
const n = e;
|
|
2669
|
-
this._tags =
|
|
2669
|
+
this._tags = h(h({}, this._tags), n.tags), this._extra = h(h({}, this._extra), n.extra), this._contexts = h(h({}, this._contexts), n.contexts), n.user && (this._user = n.user), n.level && (this._level = n.level), n.fingerprint && (this._fingerprint = n.fingerprint), n.requestSession && (this._requestSession = n.requestSession), n.propagationContext && (this._propagationContext = n.propagationContext);
|
|
2670
2670
|
}
|
|
2671
2671
|
return this;
|
|
2672
2672
|
}
|
|
@@ -2683,7 +2683,7 @@ class Le {
|
|
|
2683
2683
|
const n = typeof i == "number" ? i : Bc;
|
|
2684
2684
|
if (n <= 0)
|
|
2685
2685
|
return this;
|
|
2686
|
-
const s =
|
|
2686
|
+
const s = h({
|
|
2687
2687
|
timestamp: _i()
|
|
2688
2688
|
}, e), o = this._breadcrumbs;
|
|
2689
2689
|
return o.push(s), this._breadcrumbs = o.length > n ? o.slice(-n) : o, this._notifyScopeListeners(), this;
|
|
@@ -2728,10 +2728,10 @@ class Le {
|
|
|
2728
2728
|
_tags: s,
|
|
2729
2729
|
_extra: o,
|
|
2730
2730
|
_user: r,
|
|
2731
|
-
_level:
|
|
2732
|
-
_fingerprint:
|
|
2731
|
+
_level: l,
|
|
2732
|
+
_fingerprint: a,
|
|
2733
2733
|
_eventProcessors: c,
|
|
2734
|
-
_propagationContext:
|
|
2734
|
+
_propagationContext: u,
|
|
2735
2735
|
_sdkProcessingMetadata: p,
|
|
2736
2736
|
_transactionName: f,
|
|
2737
2737
|
_span: I
|
|
@@ -2743,10 +2743,10 @@ class Le {
|
|
|
2743
2743
|
tags: s,
|
|
2744
2744
|
extra: o,
|
|
2745
2745
|
user: r,
|
|
2746
|
-
level:
|
|
2747
|
-
fingerprint:
|
|
2746
|
+
level: l,
|
|
2747
|
+
fingerprint: a || [],
|
|
2748
2748
|
eventProcessors: c,
|
|
2749
|
-
propagationContext:
|
|
2749
|
+
propagationContext: u,
|
|
2750
2750
|
sdkProcessingMetadata: p,
|
|
2751
2751
|
transactionName: f,
|
|
2752
2752
|
span: I
|
|
@@ -2774,7 +2774,7 @@ class Le {
|
|
|
2774
2774
|
* Add data which will be accessible during event processing but won't get sent to Sentry
|
|
2775
2775
|
*/
|
|
2776
2776
|
setSDKProcessingMetadata(e) {
|
|
2777
|
-
return this._sdkProcessingMetadata =
|
|
2777
|
+
return this._sdkProcessingMetadata = h(h({}, this._sdkProcessingMetadata), e), this;
|
|
2778
2778
|
}
|
|
2779
2779
|
/**
|
|
2780
2780
|
* @inheritDoc
|
|
@@ -2802,7 +2802,7 @@ class Le {
|
|
|
2802
2802
|
const s = new Error("Sentry syntheticException");
|
|
2803
2803
|
return this._client.captureException(
|
|
2804
2804
|
e,
|
|
2805
|
-
_(
|
|
2805
|
+
_(h({
|
|
2806
2806
|
originalException: e,
|
|
2807
2807
|
syntheticException: s
|
|
2808
2808
|
}, i), {
|
|
@@ -2827,7 +2827,7 @@ class Le {
|
|
|
2827
2827
|
return this._client.captureMessage(
|
|
2828
2828
|
e,
|
|
2829
2829
|
i,
|
|
2830
|
-
_(
|
|
2830
|
+
_(h({
|
|
2831
2831
|
originalException: e,
|
|
2832
2832
|
syntheticException: o
|
|
2833
2833
|
}, n), {
|
|
@@ -2845,7 +2845,7 @@ class Le {
|
|
|
2845
2845
|
*/
|
|
2846
2846
|
captureEvent(e, i) {
|
|
2847
2847
|
const n = i && i.event_id ? i.event_id : te();
|
|
2848
|
-
return this._client ? (this._client.captureEvent(e, _(
|
|
2848
|
+
return this._client ? (this._client.captureEvent(e, _(h({}, i), { event_id: n }), this), n) : (fn.warn("No client configured on scope - will not capture event!"), n);
|
|
2849
2849
|
}
|
|
2850
2850
|
/**
|
|
2851
2851
|
* This will be called on every set call.
|
|
@@ -3029,7 +3029,7 @@ class $r {
|
|
|
3029
3029
|
*/
|
|
3030
3030
|
captureException(e, i) {
|
|
3031
3031
|
const n = this._lastEventId = i && i.event_id ? i.event_id : te(), s = new Error("Sentry syntheticException");
|
|
3032
|
-
return this.getScope().captureException(e, _(
|
|
3032
|
+
return this.getScope().captureException(e, _(h({
|
|
3033
3033
|
originalException: e,
|
|
3034
3034
|
syntheticException: s
|
|
3035
3035
|
}, i), {
|
|
@@ -3043,7 +3043,7 @@ class $r {
|
|
|
3043
3043
|
*/
|
|
3044
3044
|
captureMessage(e, i, n) {
|
|
3045
3045
|
const s = this._lastEventId = n && n.event_id ? n.event_id : te(), o = new Error(e);
|
|
3046
|
-
return this.getScope().captureMessage(e, i, _(
|
|
3046
|
+
return this.getScope().captureMessage(e, i, _(h({
|
|
3047
3047
|
originalException: e,
|
|
3048
3048
|
syntheticException: o
|
|
3049
3049
|
}, n), {
|
|
@@ -3057,7 +3057,7 @@ class $r {
|
|
|
3057
3057
|
*/
|
|
3058
3058
|
captureEvent(e, i) {
|
|
3059
3059
|
const n = i && i.event_id ? i.event_id : te();
|
|
3060
|
-
return e.type || (this._lastEventId = n), this.getScope().captureEvent(e, _(
|
|
3060
|
+
return e.type || (this._lastEventId = n), this.getScope().captureEvent(e, _(h({}, i), { event_id: n })), n;
|
|
3061
3061
|
}
|
|
3062
3062
|
/**
|
|
3063
3063
|
* @inheritDoc
|
|
@@ -3079,7 +3079,7 @@ class $r {
|
|
|
3079
3079
|
const { beforeBreadcrumb: o = null, maxBreadcrumbs: r = Gc } = s.getOptions && s.getOptions() || {};
|
|
3080
3080
|
if (r <= 0)
|
|
3081
3081
|
return;
|
|
3082
|
-
const
|
|
3082
|
+
const l = _i(), a = h({ timestamp: l }, e), c = o ? fr(() => o(a, i)) : a;
|
|
3083
3083
|
c !== null && (s.emit && s.emit("beforeAddBreadcrumb", c, i), n.addBreadcrumb(c, r));
|
|
3084
3084
|
}
|
|
3085
3085
|
/**
|
|
@@ -3212,12 +3212,12 @@ class $r {
|
|
|
3212
3212
|
* @deprecated Use top level `startSession` instead.
|
|
3213
3213
|
*/
|
|
3214
3214
|
startSession(e) {
|
|
3215
|
-
const { scope: i, client: n } = this.getStackTop(), { release: s, environment: o = gs } = n && n.getOptions() || {}, { userAgent: r } = S.navigator || {},
|
|
3215
|
+
const { scope: i, client: n } = this.getStackTop(), { release: s, environment: o = gs } = n && n.getOptions() || {}, { userAgent: r } = S.navigator || {}, l = fc(h(h({
|
|
3216
3216
|
release: s,
|
|
3217
3217
|
environment: o,
|
|
3218
3218
|
user: i.getUser()
|
|
3219
|
-
}, r && { userAgent: r }), e)),
|
|
3220
|
-
return
|
|
3219
|
+
}, r && { userAgent: r }), e)), a = i.getSession && i.getSession();
|
|
3220
|
+
return a && a.status === "ok" && Pt(a, { status: "exited" }), this.endSession(), i.setSession(l), l;
|
|
3221
3221
|
}
|
|
3222
3222
|
/**
|
|
3223
3223
|
* Returns if default PII should be sent to Sentry and propagated in ourgoing requests
|
|
@@ -3290,7 +3290,7 @@ function Jc(t, e) {
|
|
|
3290
3290
|
return e && (t.sdk = t.sdk || {}, t.sdk.name = t.sdk.name || e.name, t.sdk.version = t.sdk.version || e.version, t.sdk.integrations = [...t.sdk.integrations || [], ...e.integrations || []], t.sdk.packages = [...t.sdk.packages || [], ...e.packages || []]), t;
|
|
3291
3291
|
}
|
|
3292
3292
|
function Kc(t, e, i, n) {
|
|
3293
|
-
const s = xr(i), o =
|
|
3293
|
+
const s = xr(i), o = h(h({
|
|
3294
3294
|
sent_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3295
3295
|
}, s && { sdk: s }), !!n && e && { dsn: vi(e) }), r = "aggregates" in t ? [{ type: "sessions" }, t] : [{ type: "session" }, t.toJSON()];
|
|
3296
3296
|
return Yt(o, [r]);
|
|
@@ -3310,7 +3310,7 @@ function td(t) {
|
|
|
3310
3310
|
return `${ed(t)}${t.projectId}/envelope/`;
|
|
3311
3311
|
}
|
|
3312
3312
|
function id(t, e) {
|
|
3313
|
-
return ml(
|
|
3313
|
+
return ml(h({
|
|
3314
3314
|
// We send only the minimum set of required information. See
|
|
3315
3315
|
// https://github.com/getsentry/sentry-javascript/issues/2572.
|
|
3316
3316
|
sentry_key: t.publicKey,
|
|
@@ -3398,7 +3398,7 @@ class ld {
|
|
|
3398
3398
|
constructor(e) {
|
|
3399
3399
|
if (this._options = e, this._integrations = {}, this._integrationsInitialized = !1, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn && (this._dsn = Il(e.dsn)), this._dsn) {
|
|
3400
3400
|
const i = nd(this._dsn, e);
|
|
3401
|
-
this._transport = e.transport(_(
|
|
3401
|
+
this._transport = e.transport(_(h({
|
|
3402
3402
|
tunnel: this._options.tunnel,
|
|
3403
3403
|
recordDroppedEvent: this.recordDroppedEvent.bind(this)
|
|
3404
3404
|
}, e.transportOptions), {
|
|
@@ -3425,10 +3425,10 @@ class ld {
|
|
|
3425
3425
|
*/
|
|
3426
3426
|
captureMessage(e, i, n, s) {
|
|
3427
3427
|
let o = n && n.event_id;
|
|
3428
|
-
const r = rs(e) ? e : String(e),
|
|
3428
|
+
const r = rs(e) ? e : String(e), l = as(e) ? this.eventFromMessage(r, i, n) : this.eventFromException(e, n);
|
|
3429
3429
|
return this._process(
|
|
3430
|
-
|
|
3431
|
-
o =
|
|
3430
|
+
l.then((a) => this._captureEvent(a, n, s)).then((a) => {
|
|
3431
|
+
o = a;
|
|
3432
3432
|
})
|
|
3433
3433
|
), o;
|
|
3434
3434
|
}
|
|
@@ -3441,8 +3441,8 @@ class ld {
|
|
|
3441
3441
|
let s = i && i.event_id;
|
|
3442
3442
|
const r = (e.sdkProcessingMetadata || {}).capturedSpanScope;
|
|
3443
3443
|
return this._process(
|
|
3444
|
-
this._captureEvent(e, i, r || n).then((
|
|
3445
|
-
s =
|
|
3444
|
+
this._captureEvent(e, i, r || n).then((l) => {
|
|
3445
|
+
s = l;
|
|
3446
3446
|
})
|
|
3447
3447
|
), s;
|
|
3448
3448
|
}
|
|
@@ -3614,8 +3614,8 @@ class ld {
|
|
|
3614
3614
|
const o = i.exception && i.exception.values;
|
|
3615
3615
|
if (o) {
|
|
3616
3616
|
s = !0;
|
|
3617
|
-
for (const
|
|
3618
|
-
const c =
|
|
3617
|
+
for (const a of o) {
|
|
3618
|
+
const c = a.mechanism;
|
|
3619
3619
|
if (c && c.handled === !1) {
|
|
3620
3620
|
n = !0;
|
|
3621
3621
|
break;
|
|
@@ -3623,7 +3623,7 @@ class ld {
|
|
|
3623
3623
|
}
|
|
3624
3624
|
}
|
|
3625
3625
|
const r = e.status === "ok";
|
|
3626
|
-
(r && e.errors === 0 || r && n) && (Pt(e, _(
|
|
3626
|
+
(r && e.errors === 0 || r && n) && (Pt(e, _(h({}, n && { status: "crashed" }), {
|
|
3627
3627
|
errors: e.errors || Number(s || n)
|
|
3628
3628
|
})), this.captureSession(e));
|
|
3629
3629
|
}
|
|
@@ -3665,25 +3665,25 @@ class ld {
|
|
|
3665
3665
|
*/
|
|
3666
3666
|
_prepareEvent(e, i, n, s = Wc()) {
|
|
3667
3667
|
const o = this.getOptions(), r = Object.keys(this._integrations);
|
|
3668
|
-
return !i.integrations && r.length > 0 && (i.integrations = r), this.emit("preprocessEvent", e, i), Sc(o, e, i, n, this, s).then((
|
|
3669
|
-
if (
|
|
3670
|
-
return
|
|
3671
|
-
const
|
|
3672
|
-
if (!(
|
|
3673
|
-
const { traceId:
|
|
3674
|
-
|
|
3668
|
+
return !i.integrations && r.length > 0 && (i.integrations = r), this.emit("preprocessEvent", e, i), Sc(o, e, i, n, this, s).then((l) => {
|
|
3669
|
+
if (l === null)
|
|
3670
|
+
return l;
|
|
3671
|
+
const a = h(h({}, s.getPropagationContext()), n ? n.getPropagationContext() : void 0);
|
|
3672
|
+
if (!(l.contexts && l.contexts.trace) && a) {
|
|
3673
|
+
const { traceId: u, spanId: p, parentSpanId: f, dsc: I } = a;
|
|
3674
|
+
l.contexts = h({
|
|
3675
3675
|
trace: {
|
|
3676
|
-
trace_id:
|
|
3676
|
+
trace_id: u,
|
|
3677
3677
|
span_id: p,
|
|
3678
3678
|
parent_span_id: f
|
|
3679
3679
|
}
|
|
3680
|
-
},
|
|
3681
|
-
const D = I || Dr(
|
|
3682
|
-
|
|
3680
|
+
}, l.contexts);
|
|
3681
|
+
const D = I || Dr(u, this, n);
|
|
3682
|
+
l.sdkProcessingMetadata = h({
|
|
3683
3683
|
dynamicSamplingContext: D
|
|
3684
|
-
},
|
|
3684
|
+
}, l.sdkProcessingMetadata);
|
|
3685
3685
|
}
|
|
3686
|
-
return
|
|
3686
|
+
return l;
|
|
3687
3687
|
});
|
|
3688
3688
|
}
|
|
3689
3689
|
/**
|
|
@@ -3713,25 +3713,25 @@ class ld {
|
|
|
3713
3713
|
* @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.
|
|
3714
3714
|
*/
|
|
3715
3715
|
_processEvent(e, i, n) {
|
|
3716
|
-
const s = this.getOptions(), { sampleRate: o } = s, r = Pr(e),
|
|
3717
|
-
if (
|
|
3716
|
+
const s = this.getOptions(), { sampleRate: o } = s, r = Pr(e), l = Mr(e), a = e.type || "error", c = `before send for type \`${a}\``;
|
|
3717
|
+
if (l && typeof o == "number" && Math.random() > o)
|
|
3718
3718
|
return this.recordDroppedEvent("sample_rate", "error", e), ds(
|
|
3719
3719
|
new fe(
|
|
3720
3720
|
`Discarding event because it's not included in the random sample (sampling rate = ${o})`,
|
|
3721
3721
|
"log"
|
|
3722
3722
|
)
|
|
3723
3723
|
);
|
|
3724
|
-
const
|
|
3724
|
+
const u = a === "replay_event" ? "replay" : a, f = (e.sdkProcessingMetadata || {}).capturedSpanIsolationScope;
|
|
3725
3725
|
return this._prepareEvent(e, i, n, f).then((I) => {
|
|
3726
3726
|
if (I === null)
|
|
3727
|
-
throw this.recordDroppedEvent("event_processor",
|
|
3727
|
+
throw this.recordDroppedEvent("event_processor", u, e), new fe("An event processor returned `null`, will not send event.", "log");
|
|
3728
3728
|
if (i.data && i.data.__sentry__ === !0)
|
|
3729
3729
|
return I;
|
|
3730
3730
|
const me = dd(s, I, i);
|
|
3731
3731
|
return cd(me, c);
|
|
3732
3732
|
}).then((I) => {
|
|
3733
3733
|
if (I === null) {
|
|
3734
|
-
if (this.recordDroppedEvent("before_send",
|
|
3734
|
+
if (this.recordDroppedEvent("before_send", u, e), r) {
|
|
3735
3735
|
const dn = 1 + (e.spans || []).length;
|
|
3736
3736
|
this.recordDroppedEvent("before_send", "span", dn);
|
|
3737
3737
|
}
|
|
@@ -3745,7 +3745,7 @@ class ld {
|
|
|
3745
3745
|
const me = I.transaction_info;
|
|
3746
3746
|
if (r && me && I.transaction !== e.transaction) {
|
|
3747
3747
|
const Y = "custom";
|
|
3748
|
-
I.transaction_info = _(
|
|
3748
|
+
I.transaction_info = _(h({}, me), {
|
|
3749
3749
|
source: Y
|
|
3750
3750
|
});
|
|
3751
3751
|
}
|
|
@@ -3822,7 +3822,7 @@ function dd(t, e, i) {
|
|
|
3822
3822
|
if (Pr(e) && s) {
|
|
3823
3823
|
if (e.spans) {
|
|
3824
3824
|
const o = e.spans.length;
|
|
3825
|
-
e.sdkProcessingMetadata = _(
|
|
3825
|
+
e.sdkProcessingMetadata = _(h({}, e.sdkProcessingMetadata), {
|
|
3826
3826
|
spanCountBeforeProcessing: o
|
|
3827
3827
|
});
|
|
3828
3828
|
}
|
|
@@ -3843,28 +3843,28 @@ function ud(t, e, i = ic(
|
|
|
3843
3843
|
let n = {};
|
|
3844
3844
|
const s = (r) => i.drain(r);
|
|
3845
3845
|
function o(r) {
|
|
3846
|
-
const
|
|
3846
|
+
const l = [];
|
|
3847
3847
|
if (co(r, (p, f) => {
|
|
3848
3848
|
const I = go(f);
|
|
3849
3849
|
if (Ic(n, I)) {
|
|
3850
3850
|
const D = vo(p, f);
|
|
3851
3851
|
t.recordDroppedEvent("ratelimit_backoff", I, D);
|
|
3852
3852
|
} else
|
|
3853
|
-
|
|
3854
|
-
}),
|
|
3853
|
+
l.push(p);
|
|
3854
|
+
}), l.length === 0)
|
|
3855
3855
|
return Mt();
|
|
3856
|
-
const
|
|
3857
|
-
co(
|
|
3856
|
+
const a = Yt(r[0], l), c = (p) => {
|
|
3857
|
+
co(a, (f, I) => {
|
|
3858
3858
|
const D = vo(f, I);
|
|
3859
3859
|
t.recordDroppedEvent(p, go(I), D);
|
|
3860
3860
|
});
|
|
3861
|
-
},
|
|
3861
|
+
}, u = () => e({ body: ac(a, t.textEncoder) }).then(
|
|
3862
3862
|
(p) => (n = Cc(n, p), p),
|
|
3863
3863
|
(p) => {
|
|
3864
3864
|
throw c("network_error"), p;
|
|
3865
3865
|
}
|
|
3866
3866
|
);
|
|
3867
|
-
return i.add(
|
|
3867
|
+
return i.add(u).then(
|
|
3868
3868
|
(p) => p,
|
|
3869
3869
|
(p) => {
|
|
3870
3870
|
if (p instanceof fe)
|
|
@@ -3920,8 +3920,8 @@ function Ad(t, e, i, n) {
|
|
|
3920
3920
|
}
|
|
3921
3921
|
};
|
|
3922
3922
|
if (i) {
|
|
3923
|
-
const
|
|
3924
|
-
|
|
3923
|
+
const l = hs(t, i);
|
|
3924
|
+
l.length && (r.exception.values[0].stacktrace = { frames: l });
|
|
3925
3925
|
}
|
|
3926
3926
|
return r;
|
|
3927
3927
|
}
|
|
@@ -3971,10 +3971,10 @@ function ps(t, e, i, n, s) {
|
|
|
3971
3971
|
if ("stack" in e)
|
|
3972
3972
|
o = yn(t, e);
|
|
3973
3973
|
else {
|
|
3974
|
-
const
|
|
3975
|
-
o = Zn(t,
|
|
3974
|
+
const l = r.name || (qs(r) ? "DOMError" : "DOMException"), a = r.message ? `${l}: ${r.message}` : l;
|
|
3975
|
+
o = Zn(t, a, i, n), so(o, a);
|
|
3976
3976
|
}
|
|
3977
|
-
return "code" in r && (o.tags = _(
|
|
3977
|
+
return "code" in r && (o.tags = _(h({}, o.tags), { "DOMException.code": `${r.code}` })), o;
|
|
3978
3978
|
}
|
|
3979
3979
|
return pr(e) ? yn(t, e) : Lt(e) || en(e) ? (o = Ad(t, e, i, s), Wi(o, {
|
|
3980
3980
|
synthetic: !0
|
|
@@ -4015,7 +4015,7 @@ function yd(t, {
|
|
|
4015
4015
|
tunnel: i,
|
|
4016
4016
|
dsn: n
|
|
4017
4017
|
}) {
|
|
4018
|
-
const s =
|
|
4018
|
+
const s = h(h({
|
|
4019
4019
|
event_id: t.event_id,
|
|
4020
4020
|
sent_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
4021
4021
|
}, e && e.sdk && {
|
|
@@ -4111,7 +4111,7 @@ function Td(t, e = Sd()) {
|
|
|
4111
4111
|
function s(o) {
|
|
4112
4112
|
const r = o.body.length;
|
|
4113
4113
|
i += r, n++;
|
|
4114
|
-
const
|
|
4114
|
+
const l = h({
|
|
4115
4115
|
body: o.body,
|
|
4116
4116
|
method: "POST",
|
|
4117
4117
|
referrerPolicy: "origin",
|
|
@@ -4130,15 +4130,15 @@ function Td(t, e = Sd()) {
|
|
|
4130
4130
|
keepalive: i <= 6e4 && n < 15
|
|
4131
4131
|
}, t.fetchOptions);
|
|
4132
4132
|
try {
|
|
4133
|
-
return e(t.url,
|
|
4134
|
-
statusCode:
|
|
4133
|
+
return e(t.url, l).then((a) => (i -= r, n--, {
|
|
4134
|
+
statusCode: a.status,
|
|
4135
4135
|
headers: {
|
|
4136
|
-
"x-sentry-rate-limits":
|
|
4137
|
-
"retry-after":
|
|
4136
|
+
"x-sentry-rate-limits": a.headers.get("X-Sentry-Rate-Limits"),
|
|
4137
|
+
"retry-after": a.headers.get("Retry-After")
|
|
4138
4138
|
}
|
|
4139
4139
|
}));
|
|
4140
|
-
} catch (
|
|
4141
|
-
return xd(), i -= r, n--, ds(
|
|
4140
|
+
} catch (a) {
|
|
4141
|
+
return xd(), i -= r, n--, ds(a);
|
|
4142
4142
|
}
|
|
4143
4143
|
}
|
|
4144
4144
|
return ud(t, s);
|
|
@@ -4183,7 +4183,7 @@ const Nd = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((
|
|
|
4183
4183
|
i ? `safari-extension:${e}` : `safari-web-extension:${e}`
|
|
4184
4184
|
] : [t, e];
|
|
4185
4185
|
}, _o = 1024, jr = "Breadcrumbs", zd = (t = {}) => {
|
|
4186
|
-
const e =
|
|
4186
|
+
const e = h({
|
|
4187
4187
|
console: !0,
|
|
4188
4188
|
dom: !0,
|
|
4189
4189
|
fetch: !0,
|
|
@@ -4221,21 +4221,21 @@ function qd(t, e) {
|
|
|
4221
4221
|
return function(n) {
|
|
4222
4222
|
if (pe() !== t)
|
|
4223
4223
|
return;
|
|
4224
|
-
let s, o, r = typeof e == "object" ? e.serializeAttribute : void 0,
|
|
4225
|
-
|
|
4224
|
+
let s, o, r = typeof e == "object" ? e.serializeAttribute : void 0, l = typeof e == "object" && typeof e.maxStringLength == "number" ? e.maxStringLength : void 0;
|
|
4225
|
+
l && l > _o && (l = _o), typeof r == "string" && (r = [r]);
|
|
4226
4226
|
try {
|
|
4227
|
-
const c = n.event,
|
|
4228
|
-
s = Cr(
|
|
4227
|
+
const c = n.event, u = eg(c) ? c.target : c;
|
|
4228
|
+
s = Cr(u, { keyAttrs: r, maxStringLength: l }), o = gl(u);
|
|
4229
4229
|
} catch (c) {
|
|
4230
4230
|
s = "<unknown>";
|
|
4231
4231
|
}
|
|
4232
4232
|
if (s.length === 0)
|
|
4233
4233
|
return;
|
|
4234
|
-
const
|
|
4234
|
+
const a = {
|
|
4235
4235
|
category: `ui.${n.name}`,
|
|
4236
4236
|
message: s
|
|
4237
4237
|
};
|
|
4238
|
-
o && (
|
|
4238
|
+
o && (a.data = { "ui.component_name": o }), ht(a, {
|
|
4239
4239
|
event: n.event,
|
|
4240
4240
|
name: n.name,
|
|
4241
4241
|
global: n.global
|
|
@@ -4273,10 +4273,10 @@ function Kd(t) {
|
|
|
4273
4273
|
const { startTimestamp: n, endTimestamp: s } = i, o = i.xhr[ri];
|
|
4274
4274
|
if (!n || !s || !o)
|
|
4275
4275
|
return;
|
|
4276
|
-
const { method: r, url:
|
|
4276
|
+
const { method: r, url: l, status_code: a, body: c } = o, u = {
|
|
4277
4277
|
method: r,
|
|
4278
|
-
url:
|
|
4279
|
-
status_code:
|
|
4278
|
+
url: l,
|
|
4279
|
+
status_code: a
|
|
4280
4280
|
}, p = {
|
|
4281
4281
|
xhr: i.xhr,
|
|
4282
4282
|
input: c,
|
|
@@ -4286,7 +4286,7 @@ function Kd(t) {
|
|
|
4286
4286
|
ht(
|
|
4287
4287
|
{
|
|
4288
4288
|
category: "xhr",
|
|
4289
|
-
data:
|
|
4289
|
+
data: u,
|
|
4290
4290
|
type: "http"
|
|
4291
4291
|
},
|
|
4292
4292
|
p
|
|
@@ -4316,9 +4316,9 @@ function Qd(t) {
|
|
|
4316
4316
|
r
|
|
4317
4317
|
);
|
|
4318
4318
|
} else {
|
|
4319
|
-
const o = i.response, r = _(
|
|
4319
|
+
const o = i.response, r = _(h({}, i.fetchData), {
|
|
4320
4320
|
status_code: o && o.status
|
|
4321
|
-
}),
|
|
4321
|
+
}), l = {
|
|
4322
4322
|
input: i.args,
|
|
4323
4323
|
response: o,
|
|
4324
4324
|
startTimestamp: n,
|
|
@@ -4330,7 +4330,7 @@ function Qd(t) {
|
|
|
4330
4330
|
data: r,
|
|
4331
4331
|
type: "http"
|
|
4332
4332
|
},
|
|
4333
|
-
|
|
4333
|
+
l
|
|
4334
4334
|
);
|
|
4335
4335
|
}
|
|
4336
4336
|
};
|
|
@@ -4342,8 +4342,8 @@ function Xd(t) {
|
|
|
4342
4342
|
let n = i.from, s = i.to;
|
|
4343
4343
|
const o = _n(ge.location.href);
|
|
4344
4344
|
let r = n ? _n(n) : void 0;
|
|
4345
|
-
const
|
|
4346
|
-
(!r || !r.path) && (r = o), o.protocol ===
|
|
4345
|
+
const l = _n(s);
|
|
4346
|
+
(!r || !r.path) && (r = o), o.protocol === l.protocol && o.host === l.host && (s = l.relative), o.protocol === r.protocol && o.host === r.host && (n = r.relative), ht({
|
|
4347
4347
|
category: "navigation",
|
|
4348
4348
|
data: {
|
|
4349
4349
|
from: n,
|
|
@@ -4425,7 +4425,7 @@ function yo(t) {
|
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
4427
|
const zr = "GlobalHandlers", ag = (t = {}) => {
|
|
4428
|
-
const e =
|
|
4428
|
+
const e = h({
|
|
4429
4429
|
onerror: !0,
|
|
4430
4430
|
onunhandledrejection: !0
|
|
4431
4431
|
}, t);
|
|
@@ -4447,14 +4447,14 @@ function dg(t) {
|
|
|
4447
4447
|
const { stackParser: i, attachStacktrace: n } = Wr();
|
|
4448
4448
|
if (pe() !== t || Vr())
|
|
4449
4449
|
return;
|
|
4450
|
-
const { msg: s, url: o, line: r, column:
|
|
4451
|
-
ps(i,
|
|
4450
|
+
const { msg: s, url: o, line: r, column: l, error: a } = e, c = a === void 0 && lt(s) ? pg(s, o, r, l) : Gr(
|
|
4451
|
+
ps(i, a || s, void 0, n, !1),
|
|
4452
4452
|
o,
|
|
4453
4453
|
r,
|
|
4454
|
-
|
|
4454
|
+
l
|
|
4455
4455
|
);
|
|
4456
4456
|
c.level = "error", Tr(c, {
|
|
4457
|
-
originalException:
|
|
4457
|
+
originalException: a,
|
|
4458
4458
|
mechanism: {
|
|
4459
4459
|
handled: !1,
|
|
4460
4460
|
type: "onerror"
|
|
@@ -4506,8 +4506,8 @@ function hg(t) {
|
|
|
4506
4506
|
function pg(t, e, i, n) {
|
|
4507
4507
|
const s = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
4508
4508
|
let o = os(t) ? t.message : t, r = "Error";
|
|
4509
|
-
const
|
|
4510
|
-
return
|
|
4509
|
+
const l = o.match(s);
|
|
4510
|
+
return l && (r = l[1], o = l[2]), Gr({
|
|
4511
4511
|
exception: {
|
|
4512
4512
|
values: [
|
|
4513
4513
|
{
|
|
@@ -4519,13 +4519,13 @@ function pg(t, e, i, n) {
|
|
|
4519
4519
|
}, e, i, n);
|
|
4520
4520
|
}
|
|
4521
4521
|
function Gr(t, e, i, n) {
|
|
4522
|
-
const s = t.exception = t.exception || {}, o = s.values = s.values || [], r = o[0] = o[0] || {},
|
|
4523
|
-
return
|
|
4522
|
+
const s = t.exception = t.exception || {}, o = s.values = s.values || [], r = o[0] = o[0] || {}, l = r.stacktrace = r.stacktrace || {}, a = l.frames = l.frames || [], c = isNaN(parseInt(n, 10)) ? void 0 : n, u = isNaN(parseInt(i, 10)) ? void 0 : i, p = lt(e) && e.length > 0 ? e : dl();
|
|
4523
|
+
return a.length === 0 && a.push({
|
|
4524
4524
|
colno: c,
|
|
4525
4525
|
filename: p,
|
|
4526
4526
|
function: "?",
|
|
4527
4527
|
in_app: !0,
|
|
4528
|
-
lineno:
|
|
4528
|
+
lineno: u
|
|
4529
4529
|
}), t;
|
|
4530
4530
|
}
|
|
4531
4531
|
function Wr() {
|
|
@@ -4728,22 +4728,24 @@ class yg {
|
|
|
4728
4728
|
}
|
|
4729
4729
|
});
|
|
4730
4730
|
}
|
|
4731
|
-
executeRequest(
|
|
4732
|
-
return A(this, arguments, function* (e, i, n = {}, s = {}, o = !1) {
|
|
4733
|
-
const
|
|
4734
|
-
headers:
|
|
4731
|
+
executeRequest(l, a) {
|
|
4732
|
+
return A(this, arguments, function* (e, i, n = {}, s = {}, o = !1, r) {
|
|
4733
|
+
const c = {
|
|
4734
|
+
headers: h(h({}, this.headers), s),
|
|
4735
4735
|
method: i
|
|
4736
4736
|
};
|
|
4737
|
-
(i === "PUT" || i === "POST") && (o ? (delete
|
|
4737
|
+
r && (c.signal = r), (i === "PUT" || i === "POST") && (o ? (delete c.headers["Content-Type"], c.body = n) : c.body = JSON.stringify(n));
|
|
4738
4738
|
try {
|
|
4739
|
-
const
|
|
4740
|
-
if (!
|
|
4739
|
+
const u = yield fetch(`${this.BASE_URL}${e}`, c);
|
|
4740
|
+
if (!u.ok)
|
|
4741
4741
|
throw new qr(
|
|
4742
|
-
`API Request to ${
|
|
4742
|
+
`API Request to ${u.url} failed with status: ${u.status}`
|
|
4743
4743
|
);
|
|
4744
|
-
return
|
|
4745
|
-
} catch (
|
|
4746
|
-
|
|
4744
|
+
return u.json();
|
|
4745
|
+
} catch (u) {
|
|
4746
|
+
if (u instanceof Error && u.name === "AbortError")
|
|
4747
|
+
throw u;
|
|
4748
|
+
return zn({ id: this.user }), po("endpoint", e), ho(u), null;
|
|
4747
4749
|
}
|
|
4748
4750
|
});
|
|
4749
4751
|
}
|
|
@@ -4995,12 +4997,12 @@ let Tt = class extends HTMLElement {
|
|
|
4995
4997
|
var r;
|
|
4996
4998
|
const { get: s, set: o } = (r = Pg(this.prototype, e)) != null ? r : { get() {
|
|
4997
4999
|
return this[i];
|
|
4998
|
-
}, set(
|
|
4999
|
-
this[i] =
|
|
5000
|
+
}, set(l) {
|
|
5001
|
+
this[i] = l;
|
|
5000
5002
|
} };
|
|
5001
|
-
return { get: s, set(
|
|
5002
|
-
const
|
|
5003
|
-
o == null || o.call(this,
|
|
5003
|
+
return { get: s, set(l) {
|
|
5004
|
+
const a = s == null ? void 0 : s.call(this);
|
|
5005
|
+
o == null || o.call(this, l), this.requestUpdate(e, a, n);
|
|
5004
5006
|
}, configurable: !0, enumerable: !0 };
|
|
5005
5007
|
}
|
|
5006
5008
|
static getPropertyOptions(e) {
|
|
@@ -5103,28 +5105,28 @@ let Tt = class extends HTMLElement {
|
|
|
5103
5105
|
}
|
|
5104
5106
|
}
|
|
5105
5107
|
_$AK(e, i) {
|
|
5106
|
-
var o, r,
|
|
5108
|
+
var o, r, l;
|
|
5107
5109
|
const n = this.constructor, s = n._$Eh.get(e);
|
|
5108
5110
|
if (s !== void 0 && this._$Em !== s) {
|
|
5109
|
-
const
|
|
5111
|
+
const a = n.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((o = a.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? a.converter : Vt;
|
|
5110
5112
|
this._$Em = s;
|
|
5111
|
-
const
|
|
5112
|
-
this[s] = (
|
|
5113
|
+
const u = c.fromAttribute(i, a.type);
|
|
5114
|
+
this[s] = (l = u != null ? u : (r = this._$Ej) == null ? void 0 : r.get(s)) != null ? l : u, this._$Em = null;
|
|
5113
5115
|
}
|
|
5114
5116
|
}
|
|
5115
5117
|
requestUpdate(e, i, n, s = !1, o) {
|
|
5116
|
-
var r,
|
|
5118
|
+
var r, l;
|
|
5117
5119
|
if (e !== void 0) {
|
|
5118
|
-
const
|
|
5119
|
-
if (s === !1 && (o = this[e]), n != null || (n =
|
|
5120
|
+
const a = this.constructor;
|
|
5121
|
+
if (s === !1 && (o = this[e]), n != null || (n = a.getPropertyOptions(e)), !(((r = n.hasChanged) != null ? r : fs)(o, i) || n.useDefault && n.reflect && o === ((l = this._$Ej) == null ? void 0 : l.get(e)) && !this.hasAttribute(a._$Eu(e, n))))
|
|
5120
5122
|
return;
|
|
5121
5123
|
this.C(e, i, n);
|
|
5122
5124
|
}
|
|
5123
5125
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
5124
5126
|
}
|
|
5125
5127
|
C(e, i, { useDefault: n, reflect: s, wrapped: o }, r) {
|
|
5126
|
-
var
|
|
5127
|
-
n && !((
|
|
5128
|
+
var l, a, c;
|
|
5129
|
+
n && !((l = this._$Ej) != null ? l : this._$Ej = /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, (a = r != null ? r : i) != null ? a : this[e]), o !== !0 || r !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (i = void 0), this._$AL.set(e, i)), s === !0 && this._$Em !== e && ((c = this._$Eq) != null ? c : this._$Eq = /* @__PURE__ */ new Set()).add(e));
|
|
5128
5130
|
}
|
|
5129
5131
|
_$EP() {
|
|
5130
5132
|
return A(this, null, function* () {
|
|
@@ -5147,15 +5149,15 @@ let Tt = class extends HTMLElement {
|
|
|
5147
5149
|
return;
|
|
5148
5150
|
if (!this.hasUpdated) {
|
|
5149
5151
|
if ((n = this.renderRoot) != null || (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
5150
|
-
for (const [r,
|
|
5151
|
-
this[r] =
|
|
5152
|
+
for (const [r, l] of this._$Ep)
|
|
5153
|
+
this[r] = l;
|
|
5152
5154
|
this._$Ep = void 0;
|
|
5153
5155
|
}
|
|
5154
5156
|
const o = this.constructor.elementProperties;
|
|
5155
5157
|
if (o.size > 0)
|
|
5156
|
-
for (const [r,
|
|
5157
|
-
const { wrapped:
|
|
5158
|
-
|
|
5158
|
+
for (const [r, l] of o) {
|
|
5159
|
+
const { wrapped: a } = l, c = this[r];
|
|
5160
|
+
a !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, l, c);
|
|
5159
5161
|
}
|
|
5160
5162
|
}
|
|
5161
5163
|
let e = !1;
|
|
@@ -5217,13 +5219,13 @@ function ea(t, e) {
|
|
|
5217
5219
|
const zg = (t, e) => {
|
|
5218
5220
|
const i = t.length - 1, n = [];
|
|
5219
5221
|
let s, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", r = Xt;
|
|
5220
|
-
for (let
|
|
5221
|
-
const
|
|
5222
|
-
let c,
|
|
5223
|
-
for (; f <
|
|
5224
|
-
f = r.lastIndex, r === Xt ?
|
|
5225
|
-
const I = r === et && t[
|
|
5226
|
-
o += r === Xt ?
|
|
5222
|
+
for (let l = 0; l < i; l++) {
|
|
5223
|
+
const a = t[l];
|
|
5224
|
+
let c, u, p = -1, f = 0;
|
|
5225
|
+
for (; f < a.length && (r.lastIndex = f, u = r.exec(a), u !== null); )
|
|
5226
|
+
f = r.lastIndex, r === Xt ? u[1] === "!--" ? r = $o : u[1] !== void 0 ? r = ko : u[2] !== void 0 ? (Xr.test(u[2]) && (s = RegExp("</" + u[2], "g")), r = et) : u[3] !== void 0 && (r = et) : r === et ? u[0] === ">" ? (r = s != null ? s : Xt, p = -1) : u[1] === void 0 ? p = -2 : (p = r.lastIndex - u[2].length, c = u[1], r = u[3] === void 0 ? et : u[3] === '"' ? Mo : Lo) : r === Mo || r === Lo ? r = et : r === $o || r === ko ? r = Xt : (r = et, s = void 0);
|
|
5227
|
+
const I = r === et && t[l + 1].startsWith("/>") ? " " : "";
|
|
5228
|
+
o += r === Xt ? a + Yg : p >= 0 ? (n.push(c), a.slice(0, p) + Kr + a.slice(p) + je + I) : a + je + (p === -2 ? l : I);
|
|
5227
5229
|
}
|
|
5228
5230
|
return [ea(t, o + (t[i] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
|
|
5229
5231
|
};
|
|
@@ -5232,36 +5234,36 @@ class Ii {
|
|
|
5232
5234
|
let s;
|
|
5233
5235
|
this.parts = [];
|
|
5234
5236
|
let o = 0, r = 0;
|
|
5235
|
-
const
|
|
5237
|
+
const l = e.length - 1, a = this.parts, [c, u] = zg(e, i);
|
|
5236
5238
|
if (this.el = Ii.createElement(c, n), at.currentNode = this.el.content, i === 2 || i === 3) {
|
|
5237
5239
|
const p = this.el.content.firstChild;
|
|
5238
5240
|
p.replaceWith(...p.childNodes);
|
|
5239
5241
|
}
|
|
5240
|
-
for (; (s = at.nextNode()) !== null &&
|
|
5242
|
+
for (; (s = at.nextNode()) !== null && a.length < l; ) {
|
|
5241
5243
|
if (s.nodeType === 1) {
|
|
5242
5244
|
if (s.hasAttributes())
|
|
5243
5245
|
for (const p of s.getAttributeNames())
|
|
5244
5246
|
if (p.endsWith(Kr)) {
|
|
5245
|
-
const f =
|
|
5246
|
-
|
|
5247
|
+
const f = u[r++], I = s.getAttribute(p).split(je), D = /([.?@])?(.*)/.exec(f);
|
|
5248
|
+
a.push({ type: 1, index: o, name: D[2], strings: I, ctor: D[1] === "." ? Wg : D[1] === "?" ? Zg : D[1] === "@" ? qg : rn }), s.removeAttribute(p);
|
|
5247
5249
|
} else
|
|
5248
|
-
p.startsWith(je) && (
|
|
5250
|
+
p.startsWith(je) && (a.push({ type: 6, index: o }), s.removeAttribute(p));
|
|
5249
5251
|
if (Xr.test(s.tagName)) {
|
|
5250
5252
|
const p = s.textContent.split(je), f = p.length - 1;
|
|
5251
5253
|
if (f > 0) {
|
|
5252
5254
|
s.textContent = qi ? qi.emptyScript : "";
|
|
5253
5255
|
for (let I = 0; I < f; I++)
|
|
5254
|
-
s.append(p[I], pi()), at.nextNode(),
|
|
5256
|
+
s.append(p[I], pi()), at.nextNode(), a.push({ type: 2, index: ++o });
|
|
5255
5257
|
s.append(p[f], pi());
|
|
5256
5258
|
}
|
|
5257
5259
|
}
|
|
5258
5260
|
} else if (s.nodeType === 8)
|
|
5259
5261
|
if (s.data === Qr)
|
|
5260
|
-
|
|
5262
|
+
a.push({ type: 2, index: o });
|
|
5261
5263
|
else {
|
|
5262
5264
|
let p = -1;
|
|
5263
5265
|
for (; (p = s.data.indexOf(je, p + 1)) !== -1; )
|
|
5264
|
-
|
|
5266
|
+
a.push({ type: 7, index: o }), p += je.length - 1;
|
|
5265
5267
|
}
|
|
5266
5268
|
o++;
|
|
5267
5269
|
}
|
|
@@ -5272,12 +5274,12 @@ class Ii {
|
|
|
5272
5274
|
}
|
|
5273
5275
|
}
|
|
5274
5276
|
function Ut(t, e, i = t, n) {
|
|
5275
|
-
var r,
|
|
5277
|
+
var r, l, a;
|
|
5276
5278
|
if (e === ue)
|
|
5277
5279
|
return e;
|
|
5278
5280
|
let s = n !== void 0 ? (r = i._$Co) == null ? void 0 : r[n] : i._$Cl;
|
|
5279
5281
|
const o = Ai(e) ? void 0 : e._$litDirective$;
|
|
5280
|
-
return (s == null ? void 0 : s.constructor) !== o && ((
|
|
5282
|
+
return (s == null ? void 0 : s.constructor) !== o && ((l = s == null ? void 0 : s._$AO) == null || l.call(s, !1), o === void 0 ? s = void 0 : (s = new o(t), s._$AT(t, i, n)), n !== void 0 ? ((a = i._$Co) != null ? a : i._$Co = [])[n] = s : i._$Cl = s), s !== void 0 && (e = Ut(t, s._$AS(t, e.values), s, n)), e;
|
|
5281
5283
|
}
|
|
5282
5284
|
class Gg {
|
|
5283
5285
|
constructor(e, i) {
|
|
@@ -5293,13 +5295,13 @@ class Gg {
|
|
|
5293
5295
|
var c;
|
|
5294
5296
|
const { el: { content: i }, parts: n } = this._$AD, s = ((c = e == null ? void 0 : e.creationScope) != null ? c : pt).importNode(i, !0);
|
|
5295
5297
|
at.currentNode = s;
|
|
5296
|
-
let o = at.nextNode(), r = 0,
|
|
5297
|
-
for (;
|
|
5298
|
-
if (r ===
|
|
5299
|
-
let
|
|
5300
|
-
|
|
5298
|
+
let o = at.nextNode(), r = 0, l = 0, a = n[0];
|
|
5299
|
+
for (; a !== void 0; ) {
|
|
5300
|
+
if (r === a.index) {
|
|
5301
|
+
let u;
|
|
5302
|
+
a.type === 2 ? u = new bi(o, o.nextSibling, this, e) : a.type === 1 ? u = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (u = new Jg(o, this, e)), this._$AV.push(u), a = n[++l];
|
|
5301
5303
|
}
|
|
5302
|
-
r !== (
|
|
5304
|
+
r !== (a == null ? void 0 : a.index) && (o = at.nextNode(), r++);
|
|
5303
5305
|
}
|
|
5304
5306
|
return at.currentNode = pt, s;
|
|
5305
5307
|
}
|
|
@@ -5347,8 +5349,8 @@ class bi {
|
|
|
5347
5349
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === s)
|
|
5348
5350
|
this._$AH.p(i);
|
|
5349
5351
|
else {
|
|
5350
|
-
const r = new Gg(s, this),
|
|
5351
|
-
r.p(i), this.T(
|
|
5352
|
+
const r = new Gg(s, this), l = r.u(this.options);
|
|
5353
|
+
r.p(i), this.T(l), this._$AH = r;
|
|
5352
5354
|
}
|
|
5353
5355
|
}
|
|
5354
5356
|
_$AC(e) {
|
|
@@ -5391,10 +5393,10 @@ class rn {
|
|
|
5391
5393
|
if (o === void 0)
|
|
5392
5394
|
e = Ut(this, e, i, 0), r = !Ai(e) || e !== this._$AH && e !== ue, r && (this._$AH = e);
|
|
5393
5395
|
else {
|
|
5394
|
-
const
|
|
5395
|
-
let
|
|
5396
|
-
for (e = o[0],
|
|
5397
|
-
c = Ut(this,
|
|
5396
|
+
const l = e;
|
|
5397
|
+
let a, c;
|
|
5398
|
+
for (e = o[0], a = 0; a < o.length - 1; a++)
|
|
5399
|
+
c = Ut(this, l[n + a], i, a), c === ue && (c = this._$AH[a]), r || (r = !Ai(c) || c !== this._$AH[a]), c === L ? e = L : e !== L && (e += (c != null ? c : "") + o[a + 1]), this._$AH[a] = c;
|
|
5398
5400
|
}
|
|
5399
5401
|
r && !s && this.j(e);
|
|
5400
5402
|
}
|
|
@@ -5453,8 +5455,8 @@ const Kg = (t, e, i) => {
|
|
|
5453
5455
|
const n = (o = i == null ? void 0 : i.renderBefore) != null ? o : e;
|
|
5454
5456
|
let s = n._$litPart$;
|
|
5455
5457
|
if (s === void 0) {
|
|
5456
|
-
const
|
|
5457
|
-
n._$litPart$ = s = new bi(e.insertBefore(pi(),
|
|
5458
|
+
const l = (r = i == null ? void 0 : i.renderBefore) != null ? r : null;
|
|
5459
|
+
n._$litPart$ = s = new bi(e.insertBefore(pi(), l), l, void 0, i != null ? i : {});
|
|
5458
5460
|
}
|
|
5459
5461
|
return s._$AI(t), s;
|
|
5460
5462
|
};
|
|
@@ -5520,9 +5522,9 @@ var Qg = _t`:host{display:inline-block;width:1em;height:1em;box-sizing:content-b
|
|
|
5520
5522
|
}
|
|
5521
5523
|
return i = !0, {
|
|
5522
5524
|
done: !1,
|
|
5523
|
-
value: new au(new Promise((
|
|
5524
|
-
var
|
|
5525
|
-
|
|
5525
|
+
value: new au(new Promise((l) => {
|
|
5526
|
+
var a = e[o](r);
|
|
5527
|
+
a instanceof Object || _s("Object expected"), l(a);
|
|
5526
5528
|
}), 1)
|
|
5527
5529
|
};
|
|
5528
5530
|
}), s[Tn("iterator")] = () => s, n("next"), "throw" in e ? n("throw") : s.throw = (o) => {
|
|
@@ -5535,14 +5537,14 @@ function qe(t, e) {
|
|
|
5535
5537
|
}, e);
|
|
5536
5538
|
return (n, s) => {
|
|
5537
5539
|
const { update: o } = n, r = Array.isArray(t) ? t : [t];
|
|
5538
|
-
n.update = function(
|
|
5539
|
-
r.forEach((
|
|
5540
|
-
const c =
|
|
5541
|
-
if (
|
|
5542
|
-
const
|
|
5543
|
-
|
|
5540
|
+
n.update = function(l) {
|
|
5541
|
+
r.forEach((a) => {
|
|
5542
|
+
const c = a;
|
|
5543
|
+
if (l.has(c)) {
|
|
5544
|
+
const u = l.get(c), p = this[c];
|
|
5545
|
+
u !== p && (!i.waitUntilFirstUpdate || this.hasUpdated) && this[s](u, p);
|
|
5544
5546
|
}
|
|
5545
|
-
}), o.call(this,
|
|
5547
|
+
}), o.call(this, l);
|
|
5546
5548
|
};
|
|
5547
5549
|
};
|
|
5548
5550
|
}
|
|
@@ -5557,18 +5559,18 @@ const cu = { attribute: !0, type: String, converter: Vt, reflect: !1, hasChanged
|
|
|
5557
5559
|
let o = globalThis.litPropertyMetadata.get(s);
|
|
5558
5560
|
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(i.name, t), n === "accessor") {
|
|
5559
5561
|
const { name: r } = i;
|
|
5560
|
-
return { set(
|
|
5561
|
-
const
|
|
5562
|
-
e.set.call(this,
|
|
5563
|
-
}, init(
|
|
5564
|
-
return
|
|
5562
|
+
return { set(l) {
|
|
5563
|
+
const a = e.get.call(this);
|
|
5564
|
+
e.set.call(this, l), this.requestUpdate(r, a, t, !0, l);
|
|
5565
|
+
}, init(l) {
|
|
5566
|
+
return l !== void 0 && this.C(r, void 0, t, l), l;
|
|
5565
5567
|
} };
|
|
5566
5568
|
}
|
|
5567
5569
|
if (n === "setter") {
|
|
5568
5570
|
const { name: r } = i;
|
|
5569
|
-
return function(
|
|
5570
|
-
const
|
|
5571
|
-
e.call(this,
|
|
5571
|
+
return function(l) {
|
|
5572
|
+
const a = this[r];
|
|
5573
|
+
e.call(this, l), this.requestUpdate(r, a, t, !0, l);
|
|
5572
5574
|
};
|
|
5573
5575
|
}
|
|
5574
5576
|
throw Error("Unsupported decorator location: " + n);
|
|
@@ -5585,7 +5587,7 @@ function v(t) {
|
|
|
5585
5587
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5586
5588
|
*/
|
|
5587
5589
|
function an(t) {
|
|
5588
|
-
return v(_(
|
|
5590
|
+
return v(_(h({}, t), { state: !0, attribute: !1 }));
|
|
5589
5591
|
}
|
|
5590
5592
|
/**
|
|
5591
5593
|
* @license
|
|
@@ -5601,21 +5603,21 @@ const Ho = (t, e, i) => (i.configurable = !0, i.enumerable = !0, Reflect.decorat
|
|
|
5601
5603
|
function bt(t, e) {
|
|
5602
5604
|
return (i, n, s) => {
|
|
5603
5605
|
const o = (r) => {
|
|
5604
|
-
var
|
|
5605
|
-
return (
|
|
5606
|
+
var l, a;
|
|
5607
|
+
return (a = (l = r.renderRoot) == null ? void 0 : l.querySelector(t)) != null ? a : null;
|
|
5606
5608
|
};
|
|
5607
5609
|
if (e) {
|
|
5608
|
-
const { get: r, set:
|
|
5609
|
-
const
|
|
5610
|
+
const { get: r, set: l } = typeof n == "object" ? i : s != null ? s : (() => {
|
|
5611
|
+
const a = Symbol();
|
|
5610
5612
|
return { get() {
|
|
5611
|
-
return this[
|
|
5613
|
+
return this[a];
|
|
5612
5614
|
}, set(c) {
|
|
5613
|
-
this[
|
|
5615
|
+
this[a] = c;
|
|
5614
5616
|
} };
|
|
5615
5617
|
})();
|
|
5616
5618
|
return Ho(i, n, { get() {
|
|
5617
|
-
let
|
|
5618
|
-
return
|
|
5619
|
+
let a = r.call(this);
|
|
5620
|
+
return a === void 0 && (a = o(this), (a !== null || this.hasUpdated) && l.call(this, a)), a;
|
|
5619
5621
|
} });
|
|
5620
5622
|
}
|
|
5621
5623
|
return Ho(i, n, { get() {
|
|
@@ -5707,8 +5709,8 @@ var ei = Symbol(), ki = Symbol(), Rn, Dn = /* @__PURE__ */ new Map(), Ae = class
|
|
|
5707
5709
|
if (((i = o == null ? void 0 : o.tagName) == null ? void 0 : i.toLowerCase()) !== "svg")
|
|
5708
5710
|
return ei;
|
|
5709
5711
|
Rn || (Rn = new DOMParser());
|
|
5710
|
-
const
|
|
5711
|
-
return
|
|
5712
|
+
const l = Rn.parseFromString(o.outerHTML, "text/html").body.querySelector("svg");
|
|
5713
|
+
return l ? (l.part.add("svg"), document.adoptNode(l)) : ei;
|
|
5712
5714
|
} catch (s) {
|
|
5713
5715
|
return ei;
|
|
5714
5716
|
}
|
|
@@ -5875,7 +5877,7 @@ const Cu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5875
5877
|
"duration",
|
|
5876
5878
|
"icon"
|
|
5877
5879
|
]);
|
|
5878
|
-
return Object.assign(document.createElement("sl-alert"),
|
|
5880
|
+
return Object.assign(document.createElement("sl-alert"), h({
|
|
5879
5881
|
variant: e != null ? e : "primary",
|
|
5880
5882
|
closable: !0,
|
|
5881
5883
|
duration: i != null ? i : 3e3,
|
|
@@ -5905,7 +5907,7 @@ const Cu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5905
5907
|
return i == "asc" ? o.localeCompare(r) : r.localeCompare(o);
|
|
5906
5908
|
})], Kn = (t) => jo[t] ? jo[t] : "Select Tier", de = (t, e, i = null) => {
|
|
5907
5909
|
const n = {
|
|
5908
|
-
detail: i ?
|
|
5910
|
+
detail: i ? h({}, i) : null,
|
|
5909
5911
|
bubbles: !0,
|
|
5910
5912
|
composed: !0
|
|
5911
5913
|
}, s = new CustomEvent(e, n);
|
|
@@ -5945,21 +5947,21 @@ class Eu {
|
|
|
5945
5947
|
`<a ${this.page === 1 ? 'class="current"' : ""}>1</a><i>...</i>`
|
|
5946
5948
|
)
|
|
5947
5949
|
);
|
|
5948
|
-
for (let
|
|
5950
|
+
for (let a = i; a <= n; ++a)
|
|
5949
5951
|
o.appendChild(document.createRange().createContextualFragment(
|
|
5950
|
-
`<a ${this.page ===
|
|
5952
|
+
`<a ${this.page === a ? 'class="current"' : ""}>${a}</a>`
|
|
5951
5953
|
));
|
|
5952
5954
|
n < this.size && o.appendChild(document.createRange().createContextualFragment(
|
|
5953
5955
|
`<i>...</i><a ${this.page === this.size ? 'class="current"' : ""}>${this.size}</a>`
|
|
5954
|
-
)), s.querySelectorAll("span a").forEach((
|
|
5955
|
-
|
|
5956
|
-
this.page = +
|
|
5956
|
+
)), s.querySelectorAll("span a").forEach((a) => {
|
|
5957
|
+
a.addEventListener("click", () => {
|
|
5958
|
+
this.page = +a.innerText, this.Build(e), this.createChangeEvent(this.page);
|
|
5957
5959
|
});
|
|
5958
5960
|
});
|
|
5959
|
-
const [r, ...
|
|
5961
|
+
const [r, ...l] = s.querySelectorAll("a");
|
|
5960
5962
|
r.addEventListener("click", () => {
|
|
5961
5963
|
this.page--, this.page < 1 && (this.page = 1), this.Build(e), this.createChangeEvent(this.page);
|
|
5962
|
-
}),
|
|
5964
|
+
}), l.at(-1).addEventListener("click", () => {
|
|
5963
5965
|
++this.page, this.page > this.size && (this.page = this.size), this.Build(e), this.createChangeEvent(this.page);
|
|
5964
5966
|
}), e.innerHTML = "", e.append(s);
|
|
5965
5967
|
}
|
|
@@ -6076,7 +6078,7 @@ let Be = class extends E {
|
|
|
6076
6078
|
bubbles: !0,
|
|
6077
6079
|
composed: !0,
|
|
6078
6080
|
detail: {
|
|
6079
|
-
currentVendor:
|
|
6081
|
+
currentVendor: h(h({}, this.vendor), t)
|
|
6080
6082
|
}
|
|
6081
6083
|
};
|
|
6082
6084
|
this.dispatchEvent(new CustomEvent("vendor-edit", i));
|
|
@@ -6307,21 +6309,21 @@ ze = Gt([
|
|
|
6307
6309
|
const Aa = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmkteCIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNNC42NDYgNC42NDZhLjUuNSAwIDAgMSAuNzA4IDBMOCA3LjI5M2wyLjY0Ni0yLjY0N2EuNS41IDAgMCAxIC43MDguNzA4TDguNzA3IDhsMi42NDcgMi42NDZhLjUuNSAwIDAgMS0uNzA4LjcwOEw4IDguNzA3bC0yLjY0NiAyLjY0N2EuNS41IDAgMCAxLS43MDgtLjcwOEw3LjI5MyA4IDQuNjQ2IDUuMzU0YS41LjUgMCAwIDEgMC0uNzA4eiIvPgo8L3N2Zz4=";
|
|
6308
6310
|
var Uu = _t`:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;font-family:var(--sl-input-font-family);font-weight:var(--sl-input-font-weight);letter-spacing:var(--sl-input-letter-spacing);vertical-align:middle;overflow:hidden;cursor:text;transition:var(--sl-transition-fast) color,var(--sl-transition-fast) border,var(--sl-transition-fast) box-shadow,var(--sl-transition-fast) background-color}.input--standard{background-color:var(--sl-input-background-color);border:solid var(--sl-input-border-width) var(--sl-input-border-color)}.input--standard:hover:not(.input--disabled){background-color:var(--sl-input-background-color-hover);border-color:var(--sl-input-border-color-hover)}.input--standard.input--focused:not(.input--disabled){background-color:var(--sl-input-background-color-focus);border-color:var(--sl-input-border-color-focus);box-shadow:0 0 0 var(--sl-focus-ring-width) var(--sl-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled) .input__control{color:var(--sl-input-color-focus)}.input--standard.input--disabled{background-color:var(--sl-input-background-color-disabled);border-color:var(--sl-input-border-color-disabled);opacity:.5;cursor:not-allowed}.input--standard.input--disabled .input__control{color:var(--sl-input-color-disabled)}.input--standard.input--disabled .input__control::placeholder{color:var(--sl-input-placeholder-color-disabled)}.input--filled{border:none;background-color:var(--sl-input-filled-background-color);color:var(--sl-input-color)}.input--filled:hover:not(.input--disabled){background-color:var(--sl-input-filled-background-color-hover)}.input--filled.input--focused:not(.input--disabled){background-color:var(--sl-input-filled-background-color-focus);outline:var(--sl-focus-ring);outline-offset:var(--sl-focus-ring-offset)}.input--filled.input--disabled{background-color:var(--sl-input-filled-background-color-disabled);opacity:.5;cursor:not-allowed}.input__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;min-width:0;height:100%;color:var(--sl-input-color);border:none;background:inherit;box-shadow:none;padding:0;margin:0;cursor:inherit;-webkit-appearance:none}.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-decoration,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:active,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:hover{box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset!important;-webkit-text-fill-color:var(--sl-color-primary-500);caret-color:var(--sl-input-color)}.input--filled .input__control:-webkit-autofill,.input--filled .input__control:-webkit-autofill:active,.input--filled .input__control:-webkit-autofill:focus,.input--filled .input__control:-webkit-autofill:hover{box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-filled-background-color) inset!important}.input__control::placeholder{color:var(--sl-input-placeholder-color);user-select:none;-webkit-user-select:none}.input:hover:not(.input--disabled) .input__control{color:var(--sl-input-color-hover)}.input__control:focus{outline:0}.input__prefix,.input__suffix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}.input__prefix ::slotted(sl-icon),.input__suffix ::slotted(sl-icon){color:var(--sl-input-icon-color)}.input--small{border-radius:var(--sl-input-border-radius-small);font-size:var(--sl-input-font-size-small);height:var(--sl-input-height-small)}.input--small .input__control{height:calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);padding:0 var(--sl-input-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{width:calc(1em + var(--sl-input-spacing-small) * 2)}.input--small .input__prefix ::slotted(*){margin-inline-start:var(--sl-input-spacing-small)}.input--small .input__suffix ::slotted(*){margin-inline-end:var(--sl-input-spacing-small)}.input--medium{border-radius:var(--sl-input-border-radius-medium);font-size:var(--sl-input-font-size-medium);height:var(--sl-input-height-medium)}.input--medium .input__control{height:calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);padding:0 var(--sl-input-spacing-medium)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--sl-input-spacing-medium) * 2)}.input--medium .input__prefix ::slotted(*){margin-inline-start:var(--sl-input-spacing-medium)}.input--medium .input__suffix ::slotted(*){margin-inline-end:var(--sl-input-spacing-medium)}.input--large{border-radius:var(--sl-input-border-radius-large);font-size:var(--sl-input-font-size-large);height:var(--sl-input-height-large)}.input--large .input__control{height:calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);padding:0 var(--sl-input-spacing-large)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--sl-input-spacing-large) * 2)}.input--large .input__prefix ::slotted(*){margin-inline-start:var(--sl-input-spacing-large)}.input--large .input__suffix ::slotted(*){margin-inline-end:var(--sl-input-spacing-large)}.input--pill.input--small{border-radius:var(--sl-input-height-small)}.input--pill.input--medium{border-radius:var(--sl-input-height-medium)}.input--pill.input--large{border-radius:var(--sl-input-height-large)}.input__clear,.input__password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:inherit;color:var(--sl-input-icon-color);border:none;background:0 0;padding:0;transition:var(--sl-transition-fast) color;cursor:pointer}.input__clear:hover,.input__password-toggle:hover{color:var(--sl-input-icon-color-hover)}.input__clear:focus,.input__password-toggle:focus{outline:0}::-ms-reveal{display:none}.input--no-spin-buttons input[type=number]::-webkit-inner-spin-button,.input--no-spin-buttons input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input--no-spin-buttons input[type=number]{-moz-appearance:textfield}`, Hu = (t = "value") => (e, i) => {
|
|
6309
6311
|
const n = e.constructor, s = n.prototype.attributeChangedCallback;
|
|
6310
|
-
n.prototype.attributeChangedCallback = function(o, r,
|
|
6311
|
-
var
|
|
6312
|
-
const c = n.getPropertyOptions(t),
|
|
6313
|
-
if (o ===
|
|
6314
|
-
const p = c.converter || Vt, I = (typeof p == "function" ? p : (
|
|
6312
|
+
n.prototype.attributeChangedCallback = function(o, r, l) {
|
|
6313
|
+
var a;
|
|
6314
|
+
const c = n.getPropertyOptions(t), u = typeof c.attribute == "string" ? c.attribute : t;
|
|
6315
|
+
if (o === u) {
|
|
6316
|
+
const p = c.converter || Vt, I = (typeof p == "function" ? p : (a = p == null ? void 0 : p.fromAttribute) != null ? a : Vt.fromAttribute)(l, c.type);
|
|
6315
6317
|
this[t] !== I && (this[i] = I);
|
|
6316
6318
|
}
|
|
6317
|
-
s.call(this, o, r,
|
|
6319
|
+
s.call(this, o, r, l);
|
|
6318
6320
|
};
|
|
6319
6321
|
}, ju = _t`.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control--has-label .form-control__label{display:inline-block;color:var(--sl-input-label-color);margin-bottom:var(--sl-spacing-3x-small)}.form-control--has-label.form-control--small .form-control__label{font-size:var(--sl-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--sl-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control__label{font-size:var(--sl-input-label-font-size-large)}:host([required]) .form-control--has-label .form-control__label::after{content:var(--sl-input-required-content);margin-inline-start:var(--sl-input-required-content-offset);color:var(--sl-input-required-content-color)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--sl-input-help-text-color);margin-top:var(--sl-spacing-3x-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--sl-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--sl-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--sl-input-help-text-font-size-large)}.form-control--has-help-text.form-control--radio-group .form-control__help-text{margin-top:var(--sl-spacing-2x-small)}`, ii = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakSet(), Mi = /* @__PURE__ */ new WeakMap(), Yu = class {
|
|
6320
6322
|
constructor(t, e) {
|
|
6321
6323
|
this.handleFormData = (i) => {
|
|
6322
6324
|
const n = this.options.disabled(this.host), s = this.options.name(this.host), o = this.options.value(this.host), r = this.host.tagName.toLowerCase() === "sl-button";
|
|
6323
|
-
this.host.isConnected && !n && !r && typeof s == "string" && s.length > 0 && typeof o != "undefined" && (Array.isArray(o) ? o.forEach((
|
|
6324
|
-
i.formData.append(s,
|
|
6325
|
+
this.host.isConnected && !n && !r && typeof s == "string" && s.length > 0 && typeof o != "undefined" && (Array.isArray(o) ? o.forEach((l) => {
|
|
6326
|
+
i.formData.append(s, l.toString());
|
|
6325
6327
|
}) : i.formData.append(s, o.toString()));
|
|
6326
6328
|
}, this.handleFormSubmit = (i) => {
|
|
6327
6329
|
var n;
|
|
@@ -6547,8 +6549,14 @@ let Fu = class {
|
|
|
6547
6549
|
}
|
|
6548
6550
|
getTranslationData(e) {
|
|
6549
6551
|
var i, n;
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
+
let s;
|
|
6553
|
+
try {
|
|
6554
|
+
s = new Intl.Locale(e.replace(/_/g, "-"));
|
|
6555
|
+
} catch (c) {
|
|
6556
|
+
return { locale: void 0, language: "", region: "", primary: void 0, secondary: void 0 };
|
|
6557
|
+
}
|
|
6558
|
+
const o = s.language.toLowerCase(), r = (n = (i = s.region) === null || i === void 0 ? void 0 : i.toLowerCase()) !== null && n !== void 0 ? n : "", l = Dt.get(`${o}-${r}`), a = Dt.get(o);
|
|
6559
|
+
return { locale: s, language: o, region: r, primary: l, secondary: a };
|
|
6552
6560
|
}
|
|
6553
6561
|
exists(e, i) {
|
|
6554
6562
|
var n;
|
|
@@ -7184,7 +7192,7 @@ let G = class t extends E {
|
|
|
7184
7192
|
return this.mrcVendors = this.mrcVendors.filter((i) => !e.includes(i.vendor_name)), g`<div class="add_vendor_popup"><button class="close-dialog-button close-add-vendor-dialog" @click="${this.closePopup}"><sl-icon src="${Aa}" class="close-dialog-button-icon"></sl-icon>Close</button> ${this.confirmationMessage ? g`<div class="confirmation_message"><p id="confirmationMsg">${this.confirmationMessage}</p><div class="actions-wrapper"><button class="button--primary no-margin" @click="${this.closePopup}">OK</button></div></div>` : g`<h2>ADD VENDOR</h2>${this.isLoadingMRCVendors ? g`<div><page-spinner class="vendor-docs-spinner"></page-spinner></div>` : this.mrcVendors.length > 0 ? g`<div class="vendor_select_cont"><cpm-select-search placeholder="Select an option" .options="${this.mrcVendors.map((i) => ({
|
|
7185
7193
|
id: i.vendor_name,
|
|
7186
7194
|
title: i.vendor_name
|
|
7187
|
-
}))}" @onSelectChange="${this.handleChange}"></cpm-select-search></div>` : g`<div>Currently there are no vendors.</div>`} ${this.isLoadingMRCVendors ? g`<div><page-spinner class="vendor-docs-spinner"></page-spinner></div>` : this.mrcVendors.length > 0 && this.selectedVendor.vendor_type === "partnered" ? g`<div class="add_vendor_content"><form style="width:100%" @submit="${this.handlePartneredSubmit}"><div class="vdd_partnered_desc">${this.selectedVendor.description}</div>${this.selectedVendor.info_docs.length > 0 ? g`<div class="spr_label">Information Documents:</div>` : ""} ${this.selectedVendor.info_docs.length > 0 ? this.selectedVendor.info_docs.map((i) => g`<div class="info_doc_links"><a href="${this.getVendorInfoDocDownloadURL(this.selectedVendor.info_docs[0].file_name)}" target="_blank" class="vendor_info_doc">${i.file_name}</a></div>`) : ""}<div class="request_note_cont"><textarea class="request_note vdd_textarea" placeholder="Please describe the nature of your request. If a TAMP service is utilized, please
|
|
7195
|
+
}))}" @onSelectChange="${this.handleChange}"></cpm-select-search></div>` : g`<div>Currently there are no vendors.</div>`} ${this.isLoadingMRCVendors ? g`<div><page-spinner class="vendor-docs-spinner"></page-spinner></div>` : this.mrcVendors.length > 0 && this.selectedVendor.vendor_type === "partnered" ? g`<div class="add_vendor_content"><form style="width:100%" @submit="${this.handlePartneredSubmit}"><div class="vdd_partnered_desc">${this.selectedVendor.description}</div>${this.selectedVendor.info_docs.length > 0 ? g`<div class="spr_label">Information Documents:</div>` : ""} ${this.selectedVendor.info_docs.length > 0 ? this.selectedVendor.info_docs.map((i) => g`<div class="info_doc_links"><a href="${this.getVendorInfoDocDownloadURL(this.selectedVendor.info_docs[0].file_name)}" target="_blank" class="vendor_info_doc">${i.file_name}</a></div>`) : ""}<div class="request_note_cont"><textarea class="request_note vdd_textarea" placeholder="Please describe the nature of your request. If a TAMP service is utilized, please include the name of the provider (Maximum of 1000 characters)" .value=""></textarea></div><div>Are you under NDA or client contract with this vendor?</div><div style="margin:5px 0 0 -5px"><input type="radio" name="nda_contract_radio" value="1" @change="${this.handleNDA}" ?checked="${this.isUnderNDA}"> Yes <input type="radio" name="nda_contract_radio" value="0" @change="${this.handleNDA}" ?checked="${!this.isUnderNDA}"> No</div><div id="nda_contract_yes_wrapper" ?hidden="${!this.isUnderNDA}"><label class="upload-nda-label">If Yes, please upload NDA or Client Contract, if available.</label><div class="vdd_ovd_ad_upload_outer_wrapper"><div class="file-container nda-file is-info has-name"><div class="button-wrap"><label class="button--default" for="upload">SELECT FILES...</label> <input class="nda-file-label" id="upload" type="file" name="nda_contract_file[]"></div></div></div></div><div id="nda_contract_no_wrapper" ?hidden="${this.isUnderNDA}"><div class="no_nda_text">If No, please download their Vendor NDA below (if available), then sign and upload NDA with this request. If you choose not to sign an NDA, then the vendor may only make publicly available documents accessible to you.</div><div class="nda-document-container">${this.selectedVendor.nda_url ? g`<div class="spr_vendor_nda_url_item" ?hidden="${!this.selectedVendor.nda_url}"><a href="${this.getVendorNdaDownloadURL(this.selectedVendor.nda_url.filename)}" class="download_nda_link" style="color:#333;text-decoration:underline" title="Download this vendor's provided NDA"><i>Download Vendor NDA</i></a></div>` : g`<div class="spr_vendor_nda_url_item" ?hidden="${this.selectedVendor.nda_url}"><span class="font_grey_medium"><i>NDA for this vendor is not available.</i></span></div>`}<div class="spr_vendor_upload_file"><label class="upload-nda-label">Upload Signed NDA</label><div class="file-container nda-file is-info has-name"><label class="no-nda-file-label"><input class="nda-file-input" type="file" name="nda_contract_file[]"></label></div></div></div></div><div class="actions-wrapper"><button class="button--clear" @click="${this.closePopup}">Cancel</button> <button class="button--primary no-margin" type="submit" .disabled="${this.isLoading}">${this.isLoading ? g`<page-spinner customStyle="width: 20px; height: 20px"></page-spinner>` : "Add Vendor"}</button></div></form></div>` : g`<div></div>`} ${this.isLoadingMRCVendors ? g`<div><page-spinner class="vendor-docs-spinner"></page-spinner></div>` : this.mrcVendors.length > 0 && this.selectedVendor.vendor_type === "non_partnered" ? g`<div class="add_vendor_content"><form @submit="${this.handleNonPartneredSubmit}"><div class="vdd_other_content"><br><div class="other_vendor_notice"><p>The selected vendor is not participating on the platform. Please use the fields below to manually add the vendor to your profile.</p></div><br><textarea name="description" class="vdd_textarea other_description" required maxlength="1000" placeholder="Please describe the nature of your request. If a TAMP service is utilized, please include the name of the provider (Maximum of 1000 characters)"></textarea><div class="documents-wrapper"><h4>Documents</h4><p>Add Associated Documents (i.e. client contract - Limit of total files with a maximum size of 20MB per file)</p><div class="vdd_ovd_ad_upload_outer_wrapper"><div><div class="upload_file_remove_button_wrapper"></div><div class="file-container-other other-popup-file-container nda-file is-info has-name"><div class="button-wrap"><label class="button--default" for="other-upload">SELECT FILES...</label> <input class="nda-file-label" id="other-upload" type="file" name="associated_document_files[]"></div></div></div></div></div></div><div class="vdd_invite_content"><div class="send_invite_header"><h4>Invitation</h4><p>Send an email to the vendor to join the MyRIACompliance Platform</p></div><input type="email" placeholder="Email Address" id="recipient_email" name="recipient_email" style="width:372px"> <input type="text" placeholder="Contact Name *Optional" id="invite_vendor_contact" name="invite_contact_name" style="width:372px"></div><div class="actions-wrapper"><button class="button--clear" @click="${this.closePopup}">Cancel</button> <button class="button--primary no-margin" type="submit" .disabled="${this.isLoading}">${this.isLoading ? g`<page-spinner customStyle="width: 20px; height: 20px"></page-spinner>` : "Add Vendor"}</button></div></form></div>` : g`<div></div>`} ${this.isLoadingMRCVendors ? g`<div><page-spinner class="vendor-docs-spinner"></page-spinner></div>` : this.mrcVendors.length > 0 && this.selectedVendor.vendor_type === "unknown" ? g`<div class="add_vendor_content"><form @submit="${this.handleUnknownSubmit}"><div class="vdd_email_info"><div style="width:100%"><input type="text" placeholder="Vendor Name" required id="invite_vendor_name" name="invite_vendor_name"></div><div><textarea name="vendor_request_description" required placeholder="Please describe the nature of your request. If a TAMP service is utilized, please include the name of the provider (Maximum of 1000 characters)" maxlength="1000" class="vdd_textarea"></textarea></div></div><div class="vdd_invite_content"><div class="send_invite_header"><h4>Invitation</h4><p>Send an email to the vendor to join the MyRIACompliance Platform</p></div><input type="email" placeholder="Email Address" id="recipient_email" name="recipient_email"> <input type="text" placeholder="Contact Name *Optional" id="invite_vendor_contact" name="invite_vendor_contact"></div><div class="actions-wrapper"><button class="button--clear" @click="${this.closePopup}">Cancel</button> <button class="button--primary no-margin" type="submit" .disabled="${this.isLoading}">${this.isLoading ? g`<page-spinner customStyle="width: 20px; height: 20px"></page-spinner>` : "Request Vendor"}</button></div></form></div>` : g`<div></div>`}`}</div>`;
|
|
7188
7196
|
}
|
|
7189
7197
|
};
|
|
7190
7198
|
G.styles = [F, N, R`#confirmationMsg{font-size:16px}.close-dialog-button.close-add-vendor-dialog{background:#fff}`];
|
|
@@ -7381,8 +7389,8 @@ function ah(t) {
|
|
|
7381
7389
|
if (t.hasAttribute("tabindex") && (isNaN(i) || i <= -1) || t.hasAttribute("disabled") || t.closest("[inert]"))
|
|
7382
7390
|
return !1;
|
|
7383
7391
|
if (e === "input" && t.getAttribute("type") === "radio") {
|
|
7384
|
-
const o = t.getRootNode(), r = `input[type='radio'][name="${t.getAttribute("name")}"]`,
|
|
7385
|
-
return
|
|
7392
|
+
const o = t.getRootNode(), r = `input[type='radio'][name="${t.getAttribute("name")}"]`, l = o.querySelector(`${r}:checked`);
|
|
7393
|
+
return l ? l === t : o.querySelector(r) === t;
|
|
7386
7394
|
}
|
|
7387
7395
|
return oh(t) ? (e === "audio" || e === "video") && t.hasAttribute("controls") || t.hasAttribute("tabindex") || t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false" || [
|
|
7388
7396
|
"button",
|
|
@@ -7431,20 +7439,20 @@ var oi = [], ch = class {
|
|
|
7431
7439
|
return;
|
|
7432
7440
|
e.shiftKey ? this.tabDirection = "backward" : this.tabDirection = "forward";
|
|
7433
7441
|
const s = Fo(this.element);
|
|
7434
|
-
let o = s.findIndex((
|
|
7442
|
+
let o = s.findIndex((l) => l === n);
|
|
7435
7443
|
this.previousFocus = this.currentFocus;
|
|
7436
7444
|
const r = this.tabDirection === "forward" ? 1 : -1;
|
|
7437
7445
|
for (; ; ) {
|
|
7438
7446
|
o + r >= s.length ? o = 0 : o + r < 0 ? o = s.length - 1 : o += r, this.previousFocus = this.currentFocus;
|
|
7439
|
-
const
|
|
7447
|
+
const l = (
|
|
7440
7448
|
/** @type {HTMLElement} */
|
|
7441
7449
|
s[o]
|
|
7442
7450
|
);
|
|
7443
|
-
if (this.tabDirection === "backward" && this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus) ||
|
|
7451
|
+
if (this.tabDirection === "backward" && this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus) || l && this.possiblyHasTabbableChildren(l))
|
|
7444
7452
|
return;
|
|
7445
|
-
e.preventDefault(), this.currentFocus =
|
|
7446
|
-
const
|
|
7447
|
-
if (
|
|
7453
|
+
e.preventDefault(), this.currentFocus = l, (i = this.currentFocus) == null || i.focus({ preventScroll: !1 });
|
|
7454
|
+
const a = [...Rs()];
|
|
7455
|
+
if (a.includes(this.currentFocus) || !a.includes(this.previousFocus))
|
|
7448
7456
|
break;
|
|
7449
7457
|
}
|
|
7450
7458
|
setTimeout(() => this.checkFocus());
|
|
@@ -7524,16 +7532,16 @@ const wa = Symbol.for(""), ph = (t) => {
|
|
|
7524
7532
|
})(n) + t[s + 1], t[0]), r: wa }), Wo = /* @__PURE__ */ new Map(), Ah = (t) => (e, ...i) => {
|
|
7525
7533
|
const n = i.length;
|
|
7526
7534
|
let s, o;
|
|
7527
|
-
const r = [],
|
|
7528
|
-
let
|
|
7535
|
+
const r = [], l = [];
|
|
7536
|
+
let a, c = 0, u = !1;
|
|
7529
7537
|
for (; c < n; ) {
|
|
7530
|
-
for (
|
|
7531
|
-
|
|
7532
|
-
c !== n &&
|
|
7538
|
+
for (a = e[c]; c < n && (o = i[c], (s = ph(o)) !== void 0); )
|
|
7539
|
+
a += s + e[++c], u = !0;
|
|
7540
|
+
c !== n && l.push(o), r.push(a), c++;
|
|
7533
7541
|
}
|
|
7534
|
-
if (c === n && r.push(e[n]),
|
|
7542
|
+
if (c === n && r.push(e[n]), u) {
|
|
7535
7543
|
const p = r.join("$$lit$$");
|
|
7536
|
-
(e = Wo.get(p)) === void 0 && (r.raw = r, Wo.set(p, e = r)), i =
|
|
7544
|
+
(e = Wo.get(p)) === void 0 && (r.raw = r, Wo.set(p, e = r)), i = l;
|
|
7537
7545
|
}
|
|
7538
7546
|
return t(e, ...i);
|
|
7539
7547
|
}, Ih = Ah(ee);
|
|
@@ -7872,14 +7880,14 @@ let ie = class extends E {
|
|
|
7872
7880
|
*/
|
|
7873
7881
|
createViewer() {
|
|
7874
7882
|
return A(this, null, function* () {
|
|
7875
|
-
var i, n, s, o, r,
|
|
7883
|
+
var i, n, s, o, r, l, a;
|
|
7876
7884
|
for (; (i = this._documentViewer) != null && i.firstChild; )
|
|
7877
7885
|
(s = this._documentViewer) == null || s.removeChild((n = this._documentViewer) == null ? void 0 : n.lastChild);
|
|
7878
7886
|
if (!this.url)
|
|
7879
7887
|
return;
|
|
7880
7888
|
if (!this.isTxtFile(this.url)) {
|
|
7881
|
-
const c = this.getDocumentCleanURL(this.url),
|
|
7882
|
-
this._documentIframe.src =
|
|
7889
|
+
const c = this.getDocumentCleanURL(this.url), u = `${this.api.BASE_URL}/file-preview?user=${encodeURIComponent(this.api.user)}&url=${c}`;
|
|
7890
|
+
this._documentIframe.src = u.replace("/api/", "/");
|
|
7883
7891
|
return;
|
|
7884
7892
|
}
|
|
7885
7893
|
const t = yield this.api.executeRequest(
|
|
@@ -7893,7 +7901,7 @@ let ie = class extends E {
|
|
|
7893
7901
|
return;
|
|
7894
7902
|
}
|
|
7895
7903
|
const e = document.createElement("object");
|
|
7896
|
-
e.setAttribute("data", t.content), (
|
|
7904
|
+
e.setAttribute("data", t.content), (l = this.document) != null && l.name && ((a = this._documentViewer) == null || a.appendChild(e));
|
|
7897
7905
|
});
|
|
7898
7906
|
}
|
|
7899
7907
|
markAsReviewed(t) {
|
|
@@ -8212,7 +8220,7 @@ let ne = class extends E {
|
|
|
8212
8220
|
constructor() {
|
|
8213
8221
|
super(), this.isLoading = !1, this.files = [], this.activeFileName = "", this.activeDescription = "", this.fileCategories = {}, document.addEventListener("cpm-multi-select-selection-changed", (t) => {
|
|
8214
8222
|
const e = this.getOtherCategory();
|
|
8215
|
-
t.detail.selectedOptions.includes(e.id) && (this.activeFileName = t.detail.id, this.fileCategories[t.detail.id] && this.fileCategories[t.detail.id][e.id] && (this.activeDescription = this.fileCategories[t.detail.id][e.id]), t.detail.clicked == e.id && this._otherDocumentCategory.shadowRoot.querySelector(".dialog").show()), this.fileCategories = _(
|
|
8223
|
+
t.detail.selectedOptions.includes(e.id) && (this.activeFileName = t.detail.id, this.fileCategories[t.detail.id] && this.fileCategories[t.detail.id][e.id] && (this.activeDescription = this.fileCategories[t.detail.id][e.id]), t.detail.clicked == e.id && this._otherDocumentCategory.shadowRoot.querySelector(".dialog").show()), this.fileCategories = _(h({}, this.fileCategories), {
|
|
8216
8224
|
[t.detail.id]: Object.fromEntries(t.detail.selectedOptions.map((i) => [i, null]))
|
|
8217
8225
|
});
|
|
8218
8226
|
}), document.addEventListener("other-document-category-description-changed", (t) => {
|
|
@@ -8256,22 +8264,22 @@ let ne = class extends E {
|
|
|
8256
8264
|
const i = new FormData();
|
|
8257
8265
|
if (this.files.map((r) => A(this, null, function* () {
|
|
8258
8266
|
i.append("files[]", r);
|
|
8259
|
-
const
|
|
8267
|
+
const l = Es(r.name);
|
|
8260
8268
|
if (r.size > Is) {
|
|
8261
8269
|
e = !1;
|
|
8262
|
-
const
|
|
8270
|
+
const a = `File ${r.name} exceeds 20MB upload limit. Please choose another file!`;
|
|
8263
8271
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
8264
|
-
error_message:
|
|
8272
|
+
error_message: a,
|
|
8265
8273
|
document_names: r.name
|
|
8266
|
-
}), y(
|
|
8274
|
+
}), y(a, this.shadowRoot), this.isLoading = !1;
|
|
8267
8275
|
}
|
|
8268
|
-
if (
|
|
8276
|
+
if (l) {
|
|
8269
8277
|
e = !1;
|
|
8270
|
-
const
|
|
8278
|
+
const a = `File name '${r.name}' contains unsupported character${l.length == 1 ? "" : "s"} '${l}'. Please rename the file without special symbols and try again.`;
|
|
8271
8279
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
8272
|
-
error_message:
|
|
8280
|
+
error_message: a,
|
|
8273
8281
|
document_names: r.name
|
|
8274
|
-
}), this.isLoading = !1, y(
|
|
8282
|
+
}), this.isLoading = !1, y(a, this.shadowRoot);
|
|
8275
8283
|
}
|
|
8276
8284
|
})), !e)
|
|
8277
8285
|
return;
|
|
@@ -8390,7 +8398,7 @@ let se = class extends E {
|
|
|
8390
8398
|
constructor() {
|
|
8391
8399
|
super(), this.isLoading = !1, this.files = [], this.activeFileName = "", this.activeDescription = "", this.fileCategories = {}, document.addEventListener("cpm-multi-select-selection-changed", (t) => {
|
|
8392
8400
|
const e = this.getOtherCategory();
|
|
8393
|
-
t.detail.selectedOptions.includes(e.id) && (this.activeFileName = t.detail.id, this.fileCategories[t.detail.id] && this.fileCategories[t.detail.id][e.id] && (this.activeDescription = this.fileCategories[t.detail.id][e.id]), t.detail.clicked == e.id && this._otherDocumentCategory.shadowRoot.querySelector(".dialog").show()), this.fileCategories = _(
|
|
8401
|
+
t.detail.selectedOptions.includes(e.id) && (this.activeFileName = t.detail.id, this.fileCategories[t.detail.id] && this.fileCategories[t.detail.id][e.id] && (this.activeDescription = this.fileCategories[t.detail.id][e.id]), t.detail.clicked == e.id && this._otherDocumentCategory.shadowRoot.querySelector(".dialog").show()), this.fileCategories = _(h({}, this.fileCategories), {
|
|
8394
8402
|
[t.detail.id]: Object.fromEntries(t.detail.selectedOptions.map((i) => [i, null]))
|
|
8395
8403
|
});
|
|
8396
8404
|
}), document.addEventListener("other-document-category-description-changed", (t) => {
|
|
@@ -8436,23 +8444,23 @@ let se = class extends E {
|
|
|
8436
8444
|
let i = !0;
|
|
8437
8445
|
this.isLoading = !0;
|
|
8438
8446
|
const n = new FormData();
|
|
8439
|
-
if (this.files.map((
|
|
8440
|
-
n.append("files[]",
|
|
8441
|
-
const
|
|
8442
|
-
if (
|
|
8447
|
+
if (this.files.map((l) => A(this, null, function* () {
|
|
8448
|
+
n.append("files[]", l);
|
|
8449
|
+
const a = Es(l.name);
|
|
8450
|
+
if (l.size > Is) {
|
|
8443
8451
|
i = !1;
|
|
8444
|
-
const c = `File ${
|
|
8452
|
+
const c = `File ${l.name} exceeds 20MB upload limit. Please choose another file!`;
|
|
8445
8453
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
8446
8454
|
error_message: c,
|
|
8447
|
-
document_names:
|
|
8455
|
+
document_names: l.name
|
|
8448
8456
|
}), y(c, this.shadowRoot), this.isLoading = !1;
|
|
8449
8457
|
}
|
|
8450
|
-
if (
|
|
8458
|
+
if (a) {
|
|
8451
8459
|
i = !1;
|
|
8452
|
-
const c = `File name '${
|
|
8460
|
+
const c = `File name '${l.name}' contains unsupported character${a.length == 1 ? "" : "s"} '${a}'. Please rename the file without special symbols and try again.`;
|
|
8453
8461
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
8454
8462
|
error_message: c,
|
|
8455
|
-
document_names:
|
|
8463
|
+
document_names: l.name
|
|
8456
8464
|
}), this.isLoading = !1, y(c, this.shadowRoot);
|
|
8457
8465
|
}
|
|
8458
8466
|
})), !i)
|
|
@@ -8568,7 +8576,7 @@ let M = class t extends E {
|
|
|
8568
8576
|
yield this.markReviewedUnknownVendorDocument(n.id, n.name, n.unknown_vendor_id, s), this.unknownVendorDocuments = this.updateNote(s, n.id, this.unknownVendorDocuments);
|
|
8569
8577
|
break;
|
|
8570
8578
|
}
|
|
8571
|
-
this.activeDocument = _(
|
|
8579
|
+
this.activeDocument = _(h({}, this.activeDocument), {
|
|
8572
8580
|
note: s
|
|
8573
8581
|
}), e.detail.methods.hideLoader();
|
|
8574
8582
|
})), ["partnered-doc-uploaded", "risk-assessment-completed"].forEach((e) => {
|
|
@@ -8603,7 +8611,7 @@ let M = class t extends E {
|
|
|
8603
8611
|
}));
|
|
8604
8612
|
}
|
|
8605
8613
|
updateNote(e, i, n) {
|
|
8606
|
-
return n.map((o) => o.id !== i ?
|
|
8614
|
+
return n.map((o) => o.id !== i ? h({}, o) : _(h({}, o), {
|
|
8607
8615
|
note: e
|
|
8608
8616
|
}));
|
|
8609
8617
|
}
|
|
@@ -8634,7 +8642,7 @@ let M = class t extends E {
|
|
|
8634
8642
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/other_vendor_documents/${this.currentVendor.request_vendor_id}`);
|
|
8635
8643
|
if (e.error || !e.payload)
|
|
8636
8644
|
return y(e.error || "No documents found for this vendor!", this.shadowRoot);
|
|
8637
|
-
e.payload.other_vendor_documents && e.payload.other_vendor_documents.length && (this.otherVendorDocuments = [...e.payload.other_vendor_documents.map((i) => _(
|
|
8645
|
+
e.payload.other_vendor_documents && e.payload.other_vendor_documents.length && (this.otherVendorDocuments = [...e.payload.other_vendor_documents.map((i) => _(h({}, i), {
|
|
8638
8646
|
is_reviewed_text: i.dt_reviewed,
|
|
8639
8647
|
type: Li
|
|
8640
8648
|
}))]);
|
|
@@ -8647,7 +8655,7 @@ let M = class t extends E {
|
|
|
8647
8655
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/unknown_vendor_documents/${this.currentVendor.request_vendor_id}`);
|
|
8648
8656
|
if (e.error || !e.payload)
|
|
8649
8657
|
return y(e.error || "No documents found for this vendor!", this.shadowRoot);
|
|
8650
|
-
e.payload.unknown_vendor_documents && e.payload.unknown_vendor_documents.length && (this.unknownVendorDocuments = [...e.payload.unknown_vendor_documents.map((i) => _(
|
|
8658
|
+
e.payload.unknown_vendor_documents && e.payload.unknown_vendor_documents.length && (this.unknownVendorDocuments = [...e.payload.unknown_vendor_documents.map((i) => _(h({}, i), {
|
|
8651
8659
|
is_reviewed_text: i.dt_reviewed,
|
|
8652
8660
|
type: B
|
|
8653
8661
|
}))]);
|
|
@@ -8660,10 +8668,10 @@ let M = class t extends E {
|
|
|
8660
8668
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/vendor_documents/${this.currentVendor.vendor_account_id}`, "GET");
|
|
8661
8669
|
if (e.error || !e.payload)
|
|
8662
8670
|
return y(e.error || "No documents found for this vendor!", this.shadowRoot);
|
|
8663
|
-
e.payload.vendor_documents && e.payload.vendor_documents.length && (this.vendorDocuments = [...e.payload.vendor_documents.map((i) => _(
|
|
8671
|
+
e.payload.vendor_documents && e.payload.vendor_documents.length && (this.vendorDocuments = [...e.payload.vendor_documents.map((i) => _(h({}, i), {
|
|
8664
8672
|
is_reviewed_text: i.dt_reviewed,
|
|
8665
8673
|
type: ti
|
|
8666
|
-
}))]), e.payload && e.payload.client_docs && e.payload.client_docs.length && (this.clientVendorDocuments = [...e.payload.client_docs.map((i) => _(
|
|
8674
|
+
}))]), e.payload && e.payload.client_docs && e.payload.client_docs.length && (this.clientVendorDocuments = [...e.payload.client_docs.map((i) => _(h({}, i), {
|
|
8667
8675
|
is_reviewed_text: i.dt_reviewed,
|
|
8668
8676
|
type: Rt
|
|
8669
8677
|
}))]);
|
|
@@ -8734,7 +8742,7 @@ let M = class t extends E {
|
|
|
8734
8742
|
});
|
|
8735
8743
|
}
|
|
8736
8744
|
updateItemAfterReviewed(e, i, n) {
|
|
8737
|
-
this[e] = this[e].map((s) => s.id === i ? _(
|
|
8745
|
+
this[e] = this[e].map((s) => s.id === i ? _(h({}, s), { dt_reviewed: n }) : s), this.activeDocument = _(h({}, this.activeDocument), {
|
|
8738
8746
|
dt_reviewed: n
|
|
8739
8747
|
});
|
|
8740
8748
|
}
|
|
@@ -8912,7 +8920,7 @@ let jt = class extends E {
|
|
|
8912
8920
|
}
|
|
8913
8921
|
removeVendor(t) {
|
|
8914
8922
|
return A(this, null, function* () {
|
|
8915
|
-
var
|
|
8923
|
+
var l;
|
|
8916
8924
|
t.preventDefault();
|
|
8917
8925
|
let e = "/vendor_due_diligence/";
|
|
8918
8926
|
this.isLoading = !0;
|
|
@@ -8920,10 +8928,10 @@ let jt = class extends E {
|
|
|
8920
8928
|
is_cyber: this.currentVendor.is_cyber
|
|
8921
8929
|
};
|
|
8922
8930
|
const n = "We're unable to delete this vendor. Please try again!";
|
|
8923
|
-
this.currentVendor.vendor_type == O ? (e += "remove_partner_vendor", i = _(
|
|
8931
|
+
this.currentVendor.vendor_type == O ? (e += "remove_partner_vendor", i = _(h({}, i), { vendor_account_id: this.currentVendor.vendor_account_id })) : this.currentVendor.vendor_type == z ? (e += "remove_non_partnered_vendor", i = _(h({}, i), { request_vendor_id: this.currentVendor.request_vendor_id })) : this.currentVendor.vendor_type == B && (e += "remove_unknown_vendor", i = _(h({}, i), { unknown_vendor_id: this.currentVendor.request_vendor_id }));
|
|
8924
8932
|
const s = yield this.api.executeRequest(e, "POST", i);
|
|
8925
8933
|
if (!s || s.error_message) {
|
|
8926
|
-
y((
|
|
8934
|
+
y((l = s == null ? void 0 : s.error_message) != null ? l : n, this.shadowRoot), this.isLoading = !1;
|
|
8927
8935
|
return;
|
|
8928
8936
|
}
|
|
8929
8937
|
const o = {
|
|
@@ -8991,23 +8999,23 @@ let oe = class extends E {
|
|
|
8991
8999
|
let e = !0, i = "edit_non_partner_vendor_info";
|
|
8992
9000
|
this.currentVendor.vendor_type == B && (i = "edit_unknown_vendor_info"), this.isLoading = !0;
|
|
8993
9001
|
const n = new FormData();
|
|
8994
|
-
if (this.files.map((
|
|
8995
|
-
n.append("associated_document_files[]",
|
|
8996
|
-
const
|
|
8997
|
-
if (
|
|
9002
|
+
if (this.files.map((l) => A(this, null, function* () {
|
|
9003
|
+
n.append("associated_document_files[]", l);
|
|
9004
|
+
const a = Es(l.name);
|
|
9005
|
+
if (l.size > Is) {
|
|
8998
9006
|
e = !1;
|
|
8999
|
-
const c = `File ${
|
|
9007
|
+
const c = `File ${l.name} exceeds 20MB upload limit. Please choose another file!`;
|
|
9000
9008
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
9001
9009
|
error_message: c,
|
|
9002
|
-
document_names:
|
|
9010
|
+
document_names: l.name
|
|
9003
9011
|
}), y(c, this.shadowRoot), this.isLoading = !1;
|
|
9004
9012
|
}
|
|
9005
|
-
if (
|
|
9013
|
+
if (a) {
|
|
9006
9014
|
e = !1;
|
|
9007
|
-
const c = `File name '${
|
|
9015
|
+
const c = `File name '${l.name}' contains unsupported character${a.length == 1 ? "" : "s"} '${a}'. Please rename the file without special symbols and try again.`;
|
|
9008
9016
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
9009
9017
|
error_message: c,
|
|
9010
|
-
document_names:
|
|
9018
|
+
document_names: l.name
|
|
9011
9019
|
}), this.isLoading = !1, y(c, this.shadowRoot);
|
|
9012
9020
|
}
|
|
9013
9021
|
})), n.append("request_vendor_id", this.currentVendor.request_vendor_id), n.append("description", this.description), n.append("is_cyber", this.currentVendor.is_cyber), n.append("category_id", this.category_id), !e)
|
|
@@ -9025,7 +9033,7 @@ let oe = class extends E {
|
|
|
9025
9033
|
}
|
|
9026
9034
|
const o = {
|
|
9027
9035
|
detail: {
|
|
9028
|
-
currentVendor: _(
|
|
9036
|
+
currentVendor: _(h({}, this.currentVendor), {
|
|
9029
9037
|
description: this.description
|
|
9030
9038
|
})
|
|
9031
9039
|
},
|
|
@@ -9044,7 +9052,7 @@ let oe = class extends E {
|
|
|
9044
9052
|
y(e.error_message, this.shadowRoot);
|
|
9045
9053
|
return;
|
|
9046
9054
|
}
|
|
9047
|
-
this.currentVendor = _(
|
|
9055
|
+
this.currentVendor = _(h({}, this.currentVendor), {
|
|
9048
9056
|
associated_docs: this.currentVendor.associated_docs.filter((i) => i !== t)
|
|
9049
9057
|
});
|
|
9050
9058
|
});
|
|
@@ -9126,7 +9134,7 @@ const qo = {
|
|
|
9126
9134
|
};
|
|
9127
9135
|
let q = class t extends E {
|
|
9128
9136
|
constructor() {
|
|
9129
|
-
super(), this.page = 0, this.pdf = null, this.riskAssessmentItem =
|
|
9137
|
+
super(), this.page = 0, this.pdf = null, this.riskAssessmentItem = h({}, qo), this.isLoadingSave = !1, this.isLoadingFinish = !1, this.isLoading = !1, document.addEventListener("close-ra-popup", (e) => {
|
|
9130
9138
|
e.detail.isRiskAssessment && (this.page == 9 && this.dispatchEvent(new CustomEvent("risk-assessment-completed", {
|
|
9131
9139
|
bubbles: !0,
|
|
9132
9140
|
composed: !0
|
|
@@ -9168,14 +9176,14 @@ let q = class t extends E {
|
|
|
9168
9176
|
save(e, i = !1) {
|
|
9169
9177
|
return A(this, null, function* () {
|
|
9170
9178
|
if (e.preventDefault(), i ? this.isLoadingFinish = !0 : this.isLoadingSave = !0, !i)
|
|
9171
|
-
for (const
|
|
9172
|
-
this.riskAssessmentItem[
|
|
9179
|
+
for (const a in this.riskAssessmentItem)
|
|
9180
|
+
this.riskAssessmentItem[a] || delete this.riskAssessmentItem[a];
|
|
9173
9181
|
const n = {
|
|
9174
|
-
risk_assessment_responses:
|
|
9182
|
+
risk_assessment_responses: h({}, this.riskAssessmentItem)
|
|
9175
9183
|
};
|
|
9176
9184
|
if (this.currentVendor.vendor_type === O ? n.vendor_account_id = this.currentVendor.vendor_account_id : this.currentVendor.vendor_type == z ? n.request_vendor_id = this.currentVendor.request_vendor_id : this.currentVendor.vendor_type == B && (n.unknown_vendor_id = this.currentVendor.request_vendor_id), i) {
|
|
9177
|
-
for (const
|
|
9178
|
-
if (qo.hasOwnProperty(
|
|
9185
|
+
for (const a in this.riskAssessmentItem)
|
|
9186
|
+
if (qo.hasOwnProperty(a) && (this.riskAssessmentItem[a] === null || this.riskAssessmentItem[a] === "")) {
|
|
9179
9187
|
y("Error submitting Risk Assessment Progress. Make sure you have filled all inputs!", this.shadowRoot), this.isLoadingFinish = !1;
|
|
9180
9188
|
return;
|
|
9181
9189
|
}
|
|
@@ -9196,13 +9204,13 @@ let q = class t extends E {
|
|
|
9196
9204
|
bubbles: !0,
|
|
9197
9205
|
composed: !0,
|
|
9198
9206
|
detail: {
|
|
9199
|
-
currentVendor: _(
|
|
9207
|
+
currentVendor: _(h({}, this.currentVendor), {
|
|
9200
9208
|
ra_submitted: _e(/* @__PURE__ */ new Date()),
|
|
9201
9209
|
latest_submit: _e(/* @__PURE__ */ new Date())
|
|
9202
9210
|
})
|
|
9203
9211
|
}
|
|
9204
|
-
},
|
|
9205
|
-
this.dispatchEvent(
|
|
9212
|
+
}, l = new CustomEvent("vendor-edit", r);
|
|
9213
|
+
this.dispatchEvent(l);
|
|
9206
9214
|
});
|
|
9207
9215
|
}
|
|
9208
9216
|
render() {
|
|
@@ -9354,7 +9362,7 @@ let J = class t extends E {
|
|
|
9354
9362
|
`/vendor_due_diligence/save_and_edit_ra/${this.vdd_ra_block_id}/${this.year}/${this.currentVendor.vendor_type}/${e}`,
|
|
9355
9363
|
"POST"
|
|
9356
9364
|
), de(this, "vendor-edit", {
|
|
9357
|
-
currentVendor: _(
|
|
9365
|
+
currentVendor: _(h({}, this.currentVendor), {
|
|
9358
9366
|
ra_exists: 1,
|
|
9359
9367
|
ra_submitted: _e(/* @__PURE__ */ new Date()),
|
|
9360
9368
|
latest_submit: _e(/* @__PURE__ */ new Date())
|
|
@@ -9559,7 +9567,7 @@ let Ct = class extends E {
|
|
|
9559
9567
|
bubbles: !0,
|
|
9560
9568
|
composed: !0,
|
|
9561
9569
|
detail: {
|
|
9562
|
-
currentVendor:
|
|
9570
|
+
currentVendor: h(h({}, this.currentVendor), t)
|
|
9563
9571
|
}
|
|
9564
9572
|
};
|
|
9565
9573
|
this.dispatchEvent(new CustomEvent("vendor-edit", i)), this.closePopupEvent();
|
|
@@ -9654,7 +9662,7 @@ let re = class t extends E {
|
|
|
9654
9662
|
bubbles: !0,
|
|
9655
9663
|
composed: !0,
|
|
9656
9664
|
detail: {
|
|
9657
|
-
currentVendor: _(
|
|
9665
|
+
currentVendor: _(h({}, this.currentVendor), {
|
|
9658
9666
|
associated_docs: i.payload.associated_docs
|
|
9659
9667
|
})
|
|
9660
9668
|
}
|
|
@@ -9765,8 +9773,8 @@ const Cp = Ap(ts), mp = R`.form-build-wrapper form>div>h2{border-bottom:4px soli
|
|
|
9765
9773
|
}, Ko = (t, e) => t.part_order > e.part_order ? 1 : -1, Ep = (t) => {
|
|
9766
9774
|
const e = {}, i = (n) => {
|
|
9767
9775
|
for (const o in n) {
|
|
9768
|
-
const r = n[o],
|
|
9769
|
-
e[o] = c, typeof
|
|
9776
|
+
const r = n[o], l = r.children || {}, s = r, { children: a } = s, c = un(s, ["children"]);
|
|
9777
|
+
e[o] = c, typeof l == "object" && l !== null && i(l);
|
|
9770
9778
|
}
|
|
9771
9779
|
};
|
|
9772
9780
|
return i(t), e;
|
|
@@ -9812,12 +9820,12 @@ let ye = class extends E {
|
|
|
9812
9820
|
let s = vp(t.attributes, n, e);
|
|
9813
9821
|
const o = wp(s);
|
|
9814
9822
|
if (o.hasOwnProperty("trigger_source")) {
|
|
9815
|
-
const c = o.trigger_source,
|
|
9816
|
-
this.flattenData[c] && this.flattenData[c].response_value !=
|
|
9823
|
+
const c = o.trigger_source, u = o.trigger_value;
|
|
9824
|
+
this.flattenData[c] && this.flattenData[c].response_value != u && (i = !0, s = s.replace('style="', 'style="display:none!important;'));
|
|
9817
9825
|
}
|
|
9818
|
-
const [r,
|
|
9819
|
-
this.template += fp(t, e,
|
|
9820
|
-
this.buildItem(
|
|
9826
|
+
const [r, l] = bp(t, s), a = yp(t, r, l, s, e);
|
|
9827
|
+
this.template += fp(t, e, a), this.splitSections && e && !i && (this.riskSections = [...this.riskSections, t]), t.children && Object.values(t.children).sort(Ko).map((u) => {
|
|
9828
|
+
this.buildItem(u, t.tag === "form");
|
|
9821
9829
|
}), this.template += `</${t.tag}>`;
|
|
9822
9830
|
}
|
|
9823
9831
|
formSubmit(t) {
|
|
@@ -9926,7 +9934,7 @@ let mt = class extends E {
|
|
|
9926
9934
|
bubbles: !0,
|
|
9927
9935
|
composed: !0,
|
|
9928
9936
|
detail: {
|
|
9929
|
-
currentVendor:
|
|
9937
|
+
currentVendor: h(h({}, this.currentVendor), t)
|
|
9930
9938
|
}
|
|
9931
9939
|
};
|
|
9932
9940
|
this.dispatchEvent(new CustomEvent("vendor-edit", i)), this.closePopupEvent(), document.body.classList.remove("sl-scroll-lock");
|
|
@@ -9983,11 +9991,11 @@ let ae = class t extends E {
|
|
|
9983
9991
|
}
|
|
9984
9992
|
formSubmitHandler(e) {
|
|
9985
9993
|
return A(this, null, function* () {
|
|
9986
|
-
const i = _(
|
|
9994
|
+
const i = _(h({}, e.detail.data), {
|
|
9987
9995
|
vendor_type: this.currentVendor.vendor_type
|
|
9988
9996
|
}), n = this.currentVendor.vendor_type === "partnered" ? this.currentVendor.vendor_account_id : this.currentVendor.request_vendor_id;
|
|
9989
9997
|
de(this, "vendor-edit", {
|
|
9990
|
-
currentVendor: _(
|
|
9998
|
+
currentVendor: _(h({}, this.currentVendor), {
|
|
9991
9999
|
ra_exists: 1,
|
|
9992
10000
|
ra_submitted: this.isSubmit ? _e(/* @__PURE__ */ new Date()) : null,
|
|
9993
10001
|
latest_submit: this.isSubmit ? _e(/* @__PURE__ */ new Date()) : null
|
|
@@ -10186,12 +10194,12 @@ let P = class t extends E {
|
|
|
10186
10194
|
vendor_page: g`<vendor-page></vendor-page>`,
|
|
10187
10195
|
tos_page: g`<vendor-due-diligence-tos-page></vendor-due-diligence-tos-page>`,
|
|
10188
10196
|
risk_assessment_page: g`<vdd-risk-assessment-page></vdd-risk-assessment-page>`
|
|
10189
|
-
}, this.page = 1, this.addEventListener("back-to-main", () => A(this, null, function* () {
|
|
10197
|
+
}, this.page = 1, this.getVendorsAbortController = null, this.addEventListener("back-to-main", () => A(this, null, function* () {
|
|
10190
10198
|
this.currentPage == "risk_assessment_page" ? this.currentPage = "vendor_page" : (this.currentPage = "vendors_page", this.clearUrlParams());
|
|
10191
10199
|
})), this.addEventListener("remove_vendors", (e) => A(this, null, function* () {
|
|
10192
10200
|
this.currentVendor = e.detail.vendorInfo;
|
|
10193
10201
|
})), this.addEventListener("go_to_vendor_button", (e) => A(this, null, function* () {
|
|
10194
|
-
this.currentVendor = e.detail.vendorInfo, this.currentVendor.category_id || (this.currentVendor = _(
|
|
10202
|
+
this.currentVendor = e.detail.vendorInfo, this.currentVendor.category_id || (this.currentVendor = _(h({}, this.currentVendor), {
|
|
10195
10203
|
category_id: 6,
|
|
10196
10204
|
category_name: "Other"
|
|
10197
10205
|
})), this.currentPage = "vendor_page";
|
|
@@ -10200,7 +10208,7 @@ let P = class t extends E {
|
|
|
10200
10208
|
})), this.addEventListener("vendor-edit", (e) => {
|
|
10201
10209
|
this.currentVendor = e.detail.currentVendor;
|
|
10202
10210
|
const i = this.currentVendor.vendor_type == O ? "vendor_account_id" : "request_vendor_id";
|
|
10203
|
-
this.allVendors = this.allVendors.map((n) => n[i] == this.currentVendor[i] ?
|
|
10211
|
+
this.allVendors = this.allVendors.map((n) => n[i] == this.currentVendor[i] ? h({}, e.detail.currentVendor) : h({}, n));
|
|
10204
10212
|
}), this.addEventListener("vendor-removed", (e) => A(this, null, function* () {
|
|
10205
10213
|
const i = e.detail.vendor;
|
|
10206
10214
|
let n = "request_vendor_id";
|
|
@@ -10218,7 +10226,9 @@ let P = class t extends E {
|
|
|
10218
10226
|
this.order = this.order == "asc" ? "desc" : "asc", this.allVendors = ua(this.allVendors, i, this.order);
|
|
10219
10227
|
}), this.addEventListener("show-risk-assessment-page", (e) => A(this, null, function* () {
|
|
10220
10228
|
e.detail.showRiskAssessmentPage && (this.currentPage = "risk_assessment_page");
|
|
10221
|
-
}))
|
|
10229
|
+
})), this.addEventListener("document-reviewed", () => {
|
|
10230
|
+
this.getVendors();
|
|
10231
|
+
});
|
|
10222
10232
|
}
|
|
10223
10233
|
// URL parameter management methods
|
|
10224
10234
|
updateUrlParams(e, i) {
|
|
@@ -10257,7 +10267,7 @@ let P = class t extends E {
|
|
|
10257
10267
|
if (s.vendor_id && s.vendor_type) {
|
|
10258
10268
|
this.pageLoading = !0, yield this.getVendors(), this.getMrcVendors();
|
|
10259
10269
|
const o = this.findVendorById(s.vendor_id, s.vendor_type);
|
|
10260
|
-
o ? (this.currentVendor = o, this.currentVendor.category_id || (this.currentVendor = _(
|
|
10270
|
+
o ? (this.currentVendor = o, this.currentVendor.category_id || (this.currentVendor = _(h({}, this.currentVendor), {
|
|
10261
10271
|
category_id: 6,
|
|
10262
10272
|
category_name: "Other"
|
|
10263
10273
|
})), this.currentPage = "vendor_page") : (this.clearUrlParams(), this.currentPage = "vendors_page"), this.pageLoading = !1;
|
|
@@ -10291,29 +10301,46 @@ let P = class t extends E {
|
|
|
10291
10301
|
//User Associated Vendors
|
|
10292
10302
|
getVendors() {
|
|
10293
10303
|
return A(this, null, function* () {
|
|
10304
|
+
this.getVendorsAbortController && this.getVendorsAbortController.abort(), this.getVendorsAbortController = new AbortController();
|
|
10305
|
+
const e = this.getVendorsAbortController.signal;
|
|
10294
10306
|
this.isLoading = !0;
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10307
|
+
try {
|
|
10308
|
+
const i = yield this.api.executeRequest(
|
|
10309
|
+
"/vendor_due_diligence/get_all_vendor_due_diligence_vendor_info",
|
|
10310
|
+
"GET",
|
|
10311
|
+
{},
|
|
10312
|
+
{},
|
|
10313
|
+
!1,
|
|
10314
|
+
e
|
|
10315
|
+
);
|
|
10316
|
+
if (e.aborted)
|
|
10317
|
+
return this.isLoading = !1, [];
|
|
10318
|
+
if (i && i.payload) {
|
|
10319
|
+
let n = [];
|
|
10320
|
+
const s = i.payload.partnered_vendors, o = i.payload.non_partnered_vendors, r = i.payload.unknown_vendors;
|
|
10321
|
+
n = [...s, o, r];
|
|
10322
|
+
const l = n.reduce((a, c) => a.concat(c), []);
|
|
10323
|
+
return l.sort((a, c) => {
|
|
10324
|
+
const u = a.vendor_name.toUpperCase(), p = c.vendor_name.toUpperCase();
|
|
10325
|
+
return u < p ? -1 : u > p ? 1 : 0;
|
|
10326
|
+
}), this.allVendors = l.map((a) => {
|
|
10327
|
+
const c = a.vendor_doc_count ? "View (" + a.vendor_doc_count + ")" : "View", u = a.has_not_reviewed_vendor_documents ? "Unreviewed (" + a.has_not_reviewed_vendor_documents + ")" : "Unreviewed", p = Kn(a == null ? void 0 : a.risk_tier);
|
|
10328
|
+
return _(h({}, a), {
|
|
10329
|
+
/**
|
|
10330
|
+
* we need these properties here because of sorting feature
|
|
10331
|
+
*/
|
|
10332
|
+
risk_tier_text: p,
|
|
10333
|
+
status: this.getVendorStatus(a),
|
|
10334
|
+
documents_reviewed: a.has_not_reviewed_vendor_documents ? u : c
|
|
10335
|
+
});
|
|
10336
|
+
}), this.isLoading = !1, i.payload;
|
|
10337
|
+
}
|
|
10338
|
+
return this.isLoading = !1, [];
|
|
10339
|
+
} catch (i) {
|
|
10340
|
+
if (e.aborted)
|
|
10341
|
+
return [];
|
|
10342
|
+
throw this.isLoading = !1, i;
|
|
10315
10343
|
}
|
|
10316
|
-
return this.isLoading = !1, [];
|
|
10317
10344
|
});
|
|
10318
10345
|
}
|
|
10319
10346
|
getVendorStatus(e) {
|