@riab/vendor-due-diligence 1.1.19-beta.3 → 1.1.19
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 +580 -632
- 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, u = (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 = (l) => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
a(i.next(l));
|
|
32
32
|
} catch (c) {
|
|
33
33
|
s(c);
|
|
34
34
|
}
|
|
35
|
-
}, r = (
|
|
35
|
+
}, r = (l) => {
|
|
36
36
|
try {
|
|
37
|
-
|
|
37
|
+
a(i.throw(l));
|
|
38
38
|
} catch (c) {
|
|
39
39
|
s(c);
|
|
40
40
|
}
|
|
41
|
-
},
|
|
42
|
-
|
|
41
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, r);
|
|
42
|
+
a((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((a) => {
|
|
57
|
+
var l = e[o](r);
|
|
58
|
+
if (!(l instanceof Object))
|
|
59
59
|
throw TypeError("Object expected");
|
|
60
|
-
l
|
|
60
|
+
a(l);
|
|
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), a = 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] = a.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 a = 0; a < i; a++) {
|
|
347
|
+
const l = t[a];
|
|
348
|
+
let c, h, p = -1, f = 0;
|
|
349
|
+
for (; f < l.length && (r.lastIndex = f, h = r.exec(l), h !== null); )
|
|
350
|
+
f = r.lastIndex, r === Jt ? h[1] === "!--" ? r = Ys : h[1] !== void 0 ? r = Fs : h[2] !== void 0 ? (lr.test(h[2]) && (s = RegExp("</" + h[2], "g")), r = Xe) : h[3] !== void 0 && (r = Xe) : r === Xe ? h[0] === ">" ? (r = s != null ? s : Jt, p = -1) : h[1] === void 0 ? p = -2 : (p = r.lastIndex - h[2].length, c = h[1], r = h[3] === void 0 ? Xe : h[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[a + 1].startsWith("/>") ? " " : "";
|
|
352
|
+
o += r === Jt ? l + Va : p >= 0 ? (n.push(c), l.slice(0, p) + kn + l.slice(p) + He + I) : l + He + (p === -2 ? (n.push(void 0), a) : 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 a = e.length - 1, l = this.parts, [c, h] = 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 && l.length < a; ) {
|
|
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 = h[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
|
+
l.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
|
+
l.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(), l.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
|
+
l.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
|
+
l.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, a;
|
|
409
409
|
if (e === gt)
|
|
410
410
|
return e;
|
|
411
|
-
let
|
|
411
|
+
let l = 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 (l == null ? void 0 : l.constructor) !== c && ((o = l == null ? void 0 : l._$AO) === null || o === void 0 || o.call(l, !1), c === void 0 ? l = void 0 : (l = new c(t), l._$AT(t, i, n)), n !== void 0 ? ((r = (a = i)._$Co) !== null && r !== void 0 ? r : a._$Co = [])[n] = l : i._$Cl = l), l !== void 0 && (e = kt(t, l._$AS(t, e.values), l, 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(), a = 0, l = 0, c = s[0];
|
|
430
430
|
for (; c !== void 0; ) {
|
|
431
|
-
if (
|
|
432
|
-
let
|
|
433
|
-
c.type === 2 ?
|
|
431
|
+
if (a === c.index) {
|
|
432
|
+
let h;
|
|
433
|
+
c.type === 2 ? h = new ss(r, r.nextSibling, this, e) : c.type === 1 ? h = new c.ctor(r, c.name, c.strings, this, e) : c.type === 6 && (h = new Wa(r, this, e)), this._$AV.push(h), c = s[++l];
|
|
434
434
|
}
|
|
435
|
-
|
|
435
|
+
a !== (c == null ? void 0 : c.index) && (r = rt.nextNode(), a++);
|
|
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), a = r.u(this.options);
|
|
483
|
+
r.v(n), this.$(a), 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 a = e;
|
|
526
|
+
let l, c;
|
|
527
|
+
for (e = o[0], l = 0; l < o.length - 1; l++)
|
|
528
|
+
c = kt(this, a[n + l], i, l), c === gt && (c = this._$AH[l]), r || (r = !ui(c) || c !== this._$AH[l]), c === k ? e = k : e !== k && (e += (c != null ? c : "") + o[l + 1]), this._$AH[l] = 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 a = (s = i == null ? void 0 : i.renderBefore) !== null && s !== void 0 ? s : null;
|
|
585
|
+
o._$litPart$ = r = new ss(e.insertBefore(gi(), a), a, 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) ? _(u({}, 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) } : _(u({}, i), { key: o });
|
|
661
|
+
return t != null && (r.finisher = function(a) {
|
|
662
|
+
t(a, o);
|
|
663
663
|
}), r;
|
|
664
664
|
}
|
|
665
665
|
{
|
|
@@ -701,7 +701,7 @@ function Ka(t) {
|
|
|
701
701
|
});
|
|
702
702
|
}, enumerable: !0, configurable: !0 }) });
|
|
703
703
|
}
|
|
704
|
-
const
|
|
704
|
+
const O = R`.button--primary{display:flex;justify-content:center;align-items:center;padding:12px 16px;color:#fff;font-size:14px;font-weight:500;letter-spacing:1.25px;text-transform:uppercase;border-radius:4px;border:1px dashed var(--primary,#0051ca);background:var(--primary,#0051ca);box-shadow:0 1px 5px 0 rgba(0,0,0,.12),0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2);transition:all .3s;cursor:pointer;text-decoration:none;transition:background .3s}.button--default{display:inline-block;justify-content:center;align-items:center;padding:12px 16px;color:#000;font-size:14px;font-weight:500;letter-spacing:1.25px;text-transform:uppercase;border-radius:4px;border:1px dashed #e4e4e4;background:#e4e4e4;box-shadow:0 1px 5px 0 rgba(0,0,0,.12),0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2);transition:all .3s;cursor:pointer;text-decoration:none;transition:background .3s}.button--clear{display:inline-block;justify-content:center;align-items:center;padding:12px 16px;font-size:14px;font-weight:500;letter-spacing:1.25px;text-transform:uppercase;border-radius:4px;background:#e4e4e4;cursor:pointer;text-decoration:none;transition:background .3s;background:0 0;border:0;outline:0;box-shadow:none;color:#0051ca}.button--primary:disabled{opacity:.6;background:var(--on-surface-black-overlay-black-12,linear-gradient(0deg,rgba(1,35,48,.12) 0,rgba(1,35,48,.12) 100%),#fff);color:grey;cursor:initial;border:1px solid var(--on-surface-black-overlay-black-12,linear-gradient(0deg,rgba(1,35,48,.12) 0,rgba(1,35,48,.12) 100%),#fff)}.button--primary:active:not([disabled]),.button--primary:focus:not([disabled]),.button--primary:hover:not([disabled]){background:var(--on-primary-white-overlay-white-overlay-24,linear-gradient(0deg,rgba(255,255,255,.24) 0,rgba(255,255,255,.24) 100%),#0051ca)}.button--default:active:not([disabled]),.button--default:focus:not([disabled]),.button--default:hover:not([disabled]){background:#d1d1d1}.close-dialog-button{width:120px;box-sizing:border-box;height:36px;position:absolute;top:25px;right:15px;display:flex;padding:8px 16px;justify-content:center;align-items:center;border-radius:4px;background-color:transparent;border:none;text-transform:uppercase;color:rgba(1,35,48,.87);font-size:14px;line-height:20px;letter-spacing:1.25px;cursor:pointer;font-weight:500;z-index:2}.close-dialog-button-icon{font-size:20px;color:rgba(1,35,48,.87)}.form-control{padding:10px;border-bottom:2px solid #b1b1b1;border-top:none;border-right:none;border-left:none;outline:0;background:#f7f7f7;width:100%;box-sizing:border-box;border-radius:0;font-size:14px;outline:0;box-shadow:none}.actions-wrapper{margin:20px 0 0 0;display:flex;text-align:right;justify-content:right;align-items:center;width:100%}.actions-wrapper button:not(:last-child){margin-right:10px}.mb-1{margin-bottom:1em}.mb-2{margin-bottom:2em}.mb-3{margin-bottom:3em}`;
|
|
705
705
|
/**
|
|
706
706
|
* @license
|
|
707
707
|
* Copyright 2021 Google LLC
|
|
@@ -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, a) => {
|
|
729
|
+
this.unsubscribe && (this.unsubscribe !== a && (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, a)), this.unsubscribe = a;
|
|
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 [a, { consumerHost: l }] of this.subscriptions)
|
|
802
|
+
r.has(a) || (r.add(a), l.dispatchEvent(new ur(this.context, a, !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((a) => {
|
|
822
|
+
n.set(a, new tl(a, { 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 = _(u({}, s), { set: function(a) {
|
|
825
|
+
var l;
|
|
826
|
+
(l = n.get(this)) === null || l === void 0 || l.setValue(a), o && o.call(this, a);
|
|
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 a = o.exception.values.length > 0 ? o.exception.values[o.exception.values.length - 1] : void 0;
|
|
926
|
+
a && (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
|
+
a,
|
|
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, a) {
|
|
941
941
|
if (o.length >= i + 1)
|
|
942
942
|
return o;
|
|
943
|
-
let
|
|
943
|
+
let l = [...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, a);
|
|
946
|
+
const c = t(e, n[s]), h = l.length;
|
|
947
|
+
Qs(c, s, h, a), l = Mn(
|
|
948
948
|
t,
|
|
949
949
|
e,
|
|
950
950
|
i,
|
|
951
951
|
n[s],
|
|
952
952
|
s,
|
|
953
|
-
[c, ...
|
|
953
|
+
[c, ...l],
|
|
954
954
|
c,
|
|
955
|
-
|
|
955
|
+
h
|
|
956
956
|
);
|
|
957
957
|
}
|
|
958
|
-
return Array.isArray(n.errors) && n.errors.forEach((c,
|
|
958
|
+
return Array.isArray(n.errors) && n.errors.forEach((c, h) => {
|
|
959
959
|
if (ut(c, Error)) {
|
|
960
|
-
Ks(r,
|
|
961
|
-
const p = t(e, c), f =
|
|
962
|
-
Qs(p, `errors[${
|
|
960
|
+
Ks(r, a);
|
|
961
|
+
const p = t(e, c), f = l.length;
|
|
962
|
+
Qs(p, `errors[${h}]`, f, a), l = Mn(
|
|
963
963
|
t,
|
|
964
964
|
e,
|
|
965
965
|
i,
|
|
966
966
|
c,
|
|
967
967
|
s,
|
|
968
|
-
[p, ...
|
|
968
|
+
[p, ...l],
|
|
969
969
|
p,
|
|
970
970
|
f
|
|
971
971
|
);
|
|
972
972
|
}
|
|
973
|
-
}),
|
|
973
|
+
}), l;
|
|
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 = _(u(u({}, 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 = _(u({}, 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 a = " > ", l = a.length;
|
|
1014
1014
|
let c;
|
|
1015
|
-
const
|
|
1016
|
-
for (; i && o++ < n && (c = cl(i,
|
|
1015
|
+
const h = Array.isArray(e) ? e : e.keyAttrs, p = !Array.isArray(e) && e.maxStringLength || ll;
|
|
1016
|
+
for (; i && o++ < n && (c = cl(i, h), !(c === "html" || o > 1 && r + s.length * l + c.length >= p)); )
|
|
1017
1017
|
s.push(c), r += c.length, i = i.parentNode;
|
|
1018
|
-
return s.reverse().join(
|
|
1018
|
+
return s.reverse().join(a);
|
|
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, a, l;
|
|
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+/), l = 0; l < o.length; l++)
|
|
1038
|
+
n.push(`.${o[l]}`);
|
|
1039
|
+
const h = ["aria-label", "type", "name", "title", "alt"];
|
|
1040
|
+
for (l = 0; l < h.length; l++)
|
|
1041
|
+
r = h[l], a = i.getAttribute(r), a && n.push(`[${r}="${a}"]`);
|
|
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: a, publicKey: l } = t;
|
|
1109
|
+
return `${a}://${l}${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 = "", a] = e.slice(1);
|
|
1120
|
+
let l = "", c = a;
|
|
1121
|
+
const h = c.split("/");
|
|
1122
|
+
if (h.length > 1 && (l = h.slice(0, -1).join("/"), c = h.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: l, 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 u({
|
|
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 = u({
|
|
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 a = o[r];
|
|
1269
|
+
if (a.length > 1024)
|
|
1270
1270
|
continue;
|
|
1271
|
-
const
|
|
1272
|
-
if (!
|
|
1271
|
+
const l = to.test(a) ? a.replace(to, "$1") : a;
|
|
1272
|
+
if (!l.match(/\S*Error: /)) {
|
|
1273
1273
|
for (const c of e) {
|
|
1274
|
-
const
|
|
1275
|
-
if (
|
|
1276
|
-
s.push(
|
|
1274
|
+
const h = c(l);
|
|
1275
|
+
if (h) {
|
|
1276
|
+
s.push(h);
|
|
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) => _(u({}, 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 = u(u(u({}, n), s), e), e && "data" in e) {
|
|
1375
|
+
const o = u(u({}, 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, a) {
|
|
1405
1405
|
if (o === "click" || o == "keypress")
|
|
1406
1406
|
try {
|
|
1407
|
-
const
|
|
1408
|
-
if (!
|
|
1407
|
+
const l = this, c = l.__sentry_instrumentation_handlers__ = l.__sentry_instrumentation_handlers__ || {}, h = c[o] = c[o] || { refCount: 0 };
|
|
1408
|
+
if (!h.handler) {
|
|
1409
1409
|
const p = ao(t);
|
|
1410
|
-
|
|
1410
|
+
h.handler = p, s.call(this, o, p, a);
|
|
1411
1411
|
}
|
|
1412
|
-
|
|
1413
|
-
} catch (
|
|
1412
|
+
h.refCount++;
|
|
1413
|
+
} catch (l) {
|
|
1414
1414
|
}
|
|
1415
|
-
return s.call(this, o, r,
|
|
1415
|
+
return s.call(this, o, r, a);
|
|
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, a) {
|
|
1422
1422
|
if (o === "click" || o == "keypress")
|
|
1423
1423
|
try {
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1426
|
-
} catch (
|
|
1424
|
+
const l = this, c = l.__sentry_instrumentation_handlers__ || {}, h = c[o];
|
|
1425
|
+
h && (h.refCount--, h.refCount <= 0 && (s.call(this, o, h.handler, a), h.handler = void 0, delete c[o]), Object.keys(c).length === 0 && delete l.__sentry_instrumentation_handlers__);
|
|
1426
|
+
} catch (l) {
|
|
1427
1427
|
}
|
|
1428
|
-
return s.call(this, o, r,
|
|
1428
|
+
return s.call(this, o, r, a);
|
|
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", u({}, s)), t.apply(S, e).then(
|
|
1514
1514
|
(o) => {
|
|
1515
|
-
const r = _(
|
|
1515
|
+
const r = _(u({}, 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 = _(u({}, 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 a = this[ri];
|
|
1636
|
+
if (a && this.readyState === 4) {
|
|
1637
1637
|
try {
|
|
1638
|
-
|
|
1638
|
+
a.status_code = this.status;
|
|
1639
1639
|
} catch (c) {
|
|
1640
1640
|
}
|
|
1641
|
-
const
|
|
1641
|
+
const l = {
|
|
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", l);
|
|
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(a) {
|
|
1651
|
+
return function(...l) {
|
|
1652
|
+
return r(), a.apply(this, l);
|
|
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(a) {
|
|
1655
|
+
return function(...l) {
|
|
1656
|
+
const [c, h] = l, p = this[ri];
|
|
1657
|
+
return p && lt(c) && lt(h) && (p.request_headers[c.toLowerCase()] = h), a.apply(this, l);
|
|
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 a = Ql(t, e);
|
|
1726
|
+
if (!a.startsWith("[object "))
|
|
1727
|
+
return a;
|
|
1728
1728
|
if (e.__sentry_skip_normalization__)
|
|
1729
1729
|
return e;
|
|
1730
|
-
const
|
|
1731
|
-
if (
|
|
1732
|
-
return
|
|
1730
|
+
const l = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : i;
|
|
1731
|
+
if (l === 0)
|
|
1732
|
+
return a.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, l - 1, n, s);
|
|
1740
1740
|
} catch (I) {
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const h = 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
|
+
h[I] = "[MaxProperties ~]";
|
|
1750
1750
|
break;
|
|
1751
1751
|
}
|
|
1752
1752
|
const D = f[I];
|
|
1753
|
-
|
|
1753
|
+
h[I] = Fn(I, D, l - 1, n, s), p++;
|
|
1754
1754
|
}
|
|
1755
|
-
return r(e),
|
|
1755
|
+
return r(e), h;
|
|
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 a = r();
|
|
1924
|
+
return e.indexOf(a) === -1 && e.push(a), a.then(() => n(a)).then(
|
|
1925
1925
|
null,
|
|
1926
|
-
() => n(
|
|
1926
|
+
() => n(a).then(null, () => {
|
|
1927
1927
|
})
|
|
1928
|
-
),
|
|
1928
|
+
), a;
|
|
1929
1929
|
}
|
|
1930
1930
|
function o(r) {
|
|
1931
|
-
return new X((
|
|
1931
|
+
return new X((a, l) => {
|
|
1932
1932
|
let c = e.length;
|
|
1933
1933
|
if (!c)
|
|
1934
|
-
return
|
|
1935
|
-
const
|
|
1936
|
-
r && r > 0 &&
|
|
1934
|
+
return a(!0);
|
|
1935
|
+
const h = setTimeout(() => {
|
|
1936
|
+
r && r > 0 && a(!1);
|
|
1937
1937
|
}, r);
|
|
1938
1938
|
e.forEach((p) => {
|
|
1939
1939
|
Mt(p).then(() => {
|
|
1940
|
-
--c || (clearTimeout(
|
|
1941
|
-
},
|
|
1940
|
+
--c || (clearTimeout(h), a(!0));
|
|
1941
|
+
}, l);
|
|
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, l = typeof r == "number" ? Math.abs(r + i - n) : e, c = l < e;
|
|
1989
|
+
return o || c ? s <= l ? 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 [a, l] = r;
|
|
2018
2018
|
if (o(`
|
|
2019
|
-
${JSON.stringify(
|
|
2020
|
-
`), typeof
|
|
2021
|
-
o(
|
|
2019
|
+
${JSON.stringify(a)}
|
|
2020
|
+
`), typeof l == "string" || l instanceof Uint8Array)
|
|
2021
|
+
o(l);
|
|
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(l);
|
|
2026
|
+
} catch (h) {
|
|
2027
|
+
c = JSON.stringify(Ue(l));
|
|
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 u(u(u({
|
|
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(u({}, 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 = u({}, 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 a of o.trim().split(",")) {
|
|
2116
|
+
const [l, c, , , h] = a.split(":", 5), p = parseInt(l, 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" ? (!h || h.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 a = r(u({}, e), i);
|
|
2141
|
+
tn(a) ? a.then((l) => Zi(t, l, i, n + 1).then(s)).then(null, o) : Zi(t, a, 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: a, origin: l } = 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: a,
|
|
2204
2204
|
trace_id: i,
|
|
2205
|
-
origin:
|
|
2205
|
+
origin: l
|
|
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: a = 1e3 } = t, l = _(u({}, 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(l, t), Dc(l, c), e.type === void 0 && Tc(l, t.stackParser);
|
|
2224
|
+
const h = Nc(n, i.captureContext);
|
|
2225
|
+
i.mechanism && Wi(l, 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 (h) {
|
|
2232
|
+
const Y = h.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(l, 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, l, i).then((Y) => (Y && Rc(Y), typeof r == "number" && r > 0 ? Oc(Y, r, a) : 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 a = t.request;
|
|
2252
|
+
a && a.url && (a.url = Nt(a.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, a) => {
|
|
2263
|
+
let l;
|
|
2264
|
+
const c = n.get(a);
|
|
2265
|
+
c ? l = c : (l = e(a), n.set(a, l));
|
|
2266
|
+
for (let h = l.length - 1; h >= 0; h--) {
|
|
2267
|
+
const p = l[h];
|
|
2268
2268
|
if (p.filename) {
|
|
2269
|
-
r[p.filename] = i[
|
|
2269
|
+
r[p.filename] = i[a];
|
|
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((a) => {
|
|
2278
|
+
a.filename && (a.debug_id = o[a.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 = u(u(u(u(u({}, t), t.breadcrumbs && {
|
|
2313
|
+
breadcrumbs: t.breadcrumbs.map((s) => u(u({}, 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 a = hi(n);
|
|
2403
|
+
return r && r !== "url" && (i.transaction = a.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: a,
|
|
2417
|
+
breadcrumbs: l,
|
|
2418
2418
|
fingerprint: c,
|
|
2419
|
-
eventProcessors:
|
|
2419
|
+
eventProcessors: h,
|
|
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", a), r && (t.level = r), I && (t.transactionName = I), D && (t.span = D), l.length && (t.breadcrumbs = [...t.breadcrumbs, ...l]), c.length && (t.fingerprint = [...t.fingerprint, ...c]), h.length && (t.eventProcessors = [...t.eventProcessors, ...h]), p.length && (t.attachments = [...t.attachments, ...p]), t.propagationContext = u(u({}, 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] = u({}, 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: a
|
|
2444
|
+
} = e, l = ke(i);
|
|
2445
|
+
l && Object.keys(l).length && (t.extra = u(u({}, l), 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 = u(u({}, c), t.tags));
|
|
2448
|
+
const h = ke(s);
|
|
2449
|
+
h && Object.keys(h).length && (t.user = u(u({}, h), t.user));
|
|
2450
2450
|
const p = ke(o);
|
|
2451
|
-
p && Object.keys(p).length && (t.contexts =
|
|
2451
|
+
p && Object.keys(p).length && (t.contexts = u(u({}, p), t.contexts)), r && (t.level = r), a && (t.transaction = a);
|
|
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 = u(u({}, t.sdkProcessingMetadata), e);
|
|
2459
2459
|
}
|
|
2460
2460
|
function Yc(t, e) {
|
|
2461
|
-
t.contexts =
|
|
2461
|
+
t.contexts = u({ trace: yc(e) }, t.contexts);
|
|
2462
2462
|
const i = Rr(e);
|
|
2463
2463
|
if (i) {
|
|
2464
|
-
t.sdkProcessingMetadata =
|
|
2464
|
+
t.sdkProcessingMetadata = u({
|
|
2465
2465
|
dynamicSamplingContext: Vc(e)
|
|
2466
2466
|
}, t.sdkProcessingMetadata);
|
|
2467
2467
|
const n = hi(i).description;
|
|
2468
|
-
n && (t.tags =
|
|
2468
|
+
n && (t.tags = u({ 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 = u({}, this._tags), e._extra = u({}, this._extra), e._contexts = u({}, 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 = u({}, this._sdkProcessingMetadata), e._propagationContext = u({}, 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 = u(u({}, 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 = _(u({}, 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 = u(u({}, 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 = _(u({}, 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 = u(u({}, this._tags), n.tags), this._extra = u(u({}, this._extra), n.extra), this._contexts = u(u({}, 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 = u(u({}, this._tags), n.tags), this._extra = u(u({}, this._extra), n.extra), this._contexts = u(u({}, 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 = u({
|
|
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: a,
|
|
2732
|
+
_fingerprint: l,
|
|
2733
2733
|
_eventProcessors: c,
|
|
2734
|
-
_propagationContext:
|
|
2734
|
+
_propagationContext: h,
|
|
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: a,
|
|
2747
|
+
fingerprint: l || [],
|
|
2748
2748
|
eventProcessors: c,
|
|
2749
|
-
propagationContext:
|
|
2749
|
+
propagationContext: h,
|
|
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 = u(u({}, 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
|
+
_(u({
|
|
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
|
+
_(u({
|
|
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, _(u({}, 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, _(u({
|
|
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, _(u({
|
|
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, _(u({}, 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 a = _i(), l = u({ timestamp: a }, e), c = o ? fr(() => o(l, i)) : l;
|
|
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 || {}, a = fc(u(u({
|
|
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)), l = i.getSession && i.getSession();
|
|
3220
|
+
return l && l.status === "ok" && Pt(l, { status: "exited" }), this.endSession(), i.setSession(a), a;
|
|
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 = u(u({
|
|
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(u({
|
|
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(_(u({
|
|
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), a = as(e) ? this.eventFromMessage(r, i, n) : this.eventFromException(e, n);
|
|
3429
3429
|
return this._process(
|
|
3430
|
-
|
|
3431
|
-
o =
|
|
3430
|
+
a.then((l) => this._captureEvent(l, n, s)).then((l) => {
|
|
3431
|
+
o = l;
|
|
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((a) => {
|
|
3445
|
+
s = a;
|
|
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 l of o) {
|
|
3618
|
+
const c = l.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, _(u({}, 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((a) => {
|
|
3669
|
+
if (a === null)
|
|
3670
|
+
return a;
|
|
3671
|
+
const l = u(u({}, s.getPropagationContext()), n ? n.getPropagationContext() : void 0);
|
|
3672
|
+
if (!(a.contexts && a.contexts.trace) && l) {
|
|
3673
|
+
const { traceId: h, spanId: p, parentSpanId: f, dsc: I } = l;
|
|
3674
|
+
a.contexts = u({
|
|
3675
3675
|
trace: {
|
|
3676
|
-
trace_id:
|
|
3676
|
+
trace_id: h,
|
|
3677
3677
|
span_id: p,
|
|
3678
3678
|
parent_span_id: f
|
|
3679
3679
|
}
|
|
3680
|
-
},
|
|
3681
|
-
const D = I || Dr(
|
|
3682
|
-
|
|
3680
|
+
}, a.contexts);
|
|
3681
|
+
const D = I || Dr(h, this, n);
|
|
3682
|
+
a.sdkProcessingMetadata = u({
|
|
3683
3683
|
dynamicSamplingContext: D
|
|
3684
|
-
},
|
|
3684
|
+
}, a.sdkProcessingMetadata);
|
|
3685
3685
|
}
|
|
3686
|
-
return
|
|
3686
|
+
return a;
|
|
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), a = Mr(e), l = e.type || "error", c = `before send for type \`${l}\``;
|
|
3717
|
+
if (a && 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 h = l === "replay_event" ? "replay" : l, 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", h, 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", h, 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 = _(u({}, 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 = _(u({}, 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 a = [];
|
|
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
|
+
a.push(p);
|
|
3854
|
+
}), a.length === 0)
|
|
3855
3855
|
return Mt();
|
|
3856
|
-
const
|
|
3857
|
-
co(
|
|
3856
|
+
const l = Yt(r[0], a), c = (p) => {
|
|
3857
|
+
co(l, (f, I) => {
|
|
3858
3858
|
const D = vo(f, I);
|
|
3859
3859
|
t.recordDroppedEvent(p, go(I), D);
|
|
3860
3860
|
});
|
|
3861
|
-
},
|
|
3861
|
+
}, h = () => e({ body: ac(l, 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(h).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 a = hs(t, i);
|
|
3924
|
+
a.length && (r.exception.values[0].stacktrace = { frames: a });
|
|
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 a = r.name || (qs(r) ? "DOMError" : "DOMException"), l = r.message ? `${a}: ${r.message}` : a;
|
|
3975
|
+
o = Zn(t, l, i, n), so(o, l);
|
|
3976
3976
|
}
|
|
3977
|
-
return "code" in r && (o.tags = _(
|
|
3977
|
+
return "code" in r && (o.tags = _(u({}, 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 = u(u({
|
|
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 a = u({
|
|
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, a).then((l) => (i -= r, n--, {
|
|
4134
|
+
statusCode: l.status,
|
|
4135
4135
|
headers: {
|
|
4136
|
-
"x-sentry-rate-limits":
|
|
4137
|
-
"retry-after":
|
|
4136
|
+
"x-sentry-rate-limits": l.headers.get("X-Sentry-Rate-Limits"),
|
|
4137
|
+
"retry-after": l.headers.get("Retry-After")
|
|
4138
4138
|
}
|
|
4139
4139
|
}));
|
|
4140
|
-
} catch (
|
|
4141
|
-
return xd(), i -= r, n--, ds(
|
|
4140
|
+
} catch (l) {
|
|
4141
|
+
return xd(), i -= r, n--, ds(l);
|
|
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 = u({
|
|
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, a = typeof e == "object" && typeof e.maxStringLength == "number" ? e.maxStringLength : void 0;
|
|
4225
|
+
a && a > _o && (a = _o), typeof r == "string" && (r = [r]);
|
|
4226
4226
|
try {
|
|
4227
|
-
const c = n.event,
|
|
4228
|
-
s = Cr(
|
|
4227
|
+
const c = n.event, h = eg(c) ? c.target : c;
|
|
4228
|
+
s = Cr(h, { keyAttrs: r, maxStringLength: a }), o = gl(h);
|
|
4229
4229
|
} catch (c) {
|
|
4230
4230
|
s = "<unknown>";
|
|
4231
4231
|
}
|
|
4232
4232
|
if (s.length === 0)
|
|
4233
4233
|
return;
|
|
4234
|
-
const
|
|
4234
|
+
const l = {
|
|
4235
4235
|
category: `ui.${n.name}`,
|
|
4236
4236
|
message: s
|
|
4237
4237
|
};
|
|
4238
|
-
o && (
|
|
4238
|
+
o && (l.data = { "ui.component_name": o }), ht(l, {
|
|
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: a, status_code: l, body: c } = o, h = {
|
|
4277
4277
|
method: r,
|
|
4278
|
-
url:
|
|
4279
|
-
status_code:
|
|
4278
|
+
url: a,
|
|
4279
|
+
status_code: l
|
|
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: h,
|
|
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 = _(u({}, i.fetchData), {
|
|
4320
4320
|
status_code: o && o.status
|
|
4321
|
-
}),
|
|
4321
|
+
}), a = {
|
|
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
|
+
a
|
|
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 a = _n(s);
|
|
4346
|
+
(!r || !r.path) && (r = o), o.protocol === a.protocol && o.host === a.host && (s = a.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 = u({
|
|
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: a, error: l } = e, c = l === void 0 && lt(s) ? pg(s, o, r, a) : Gr(
|
|
4451
|
+
ps(i, l || s, void 0, n, !1),
|
|
4452
4452
|
o,
|
|
4453
4453
|
r,
|
|
4454
|
-
|
|
4454
|
+
a
|
|
4455
4455
|
);
|
|
4456
4456
|
c.level = "error", Tr(c, {
|
|
4457
|
-
originalException:
|
|
4457
|
+
originalException: l,
|
|
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 a = o.match(s);
|
|
4510
|
+
return a && (r = a[1], o = a[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] || {}, a = r.stacktrace = r.stacktrace || {}, l = a.frames = a.frames || [], c = isNaN(parseInt(n, 10)) ? void 0 : n, h = isNaN(parseInt(i, 10)) ? void 0 : i, p = lt(e) && e.length > 0 ? e : dl();
|
|
4523
|
+
return l.length === 0 && l.push({
|
|
4524
4524
|
colno: c,
|
|
4525
4525
|
filename: p,
|
|
4526
4526
|
function: "?",
|
|
4527
4527
|
in_app: !0,
|
|
4528
|
-
lineno:
|
|
4528
|
+
lineno: h
|
|
4529
4529
|
}), t;
|
|
4530
4530
|
}
|
|
4531
4531
|
function Wr() {
|
|
@@ -4728,24 +4728,22 @@ 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(r, a) {
|
|
4732
|
+
return A(this, arguments, function* (e, i, n = {}, s = {}, o = !1) {
|
|
4733
|
+
const l = {
|
|
4734
|
+
headers: u(u({}, this.headers), s),
|
|
4735
4735
|
method: i
|
|
4736
4736
|
};
|
|
4737
|
-
|
|
4737
|
+
(i === "PUT" || i === "POST") && (o ? (delete l.headers["Content-Type"], l.body = n) : l.body = JSON.stringify(n));
|
|
4738
4738
|
try {
|
|
4739
|
-
const
|
|
4740
|
-
if (!
|
|
4739
|
+
const c = yield fetch(`${this.BASE_URL}${e}`, l);
|
|
4740
|
+
if (!c.ok)
|
|
4741
4741
|
throw new qr(
|
|
4742
|
-
`API Request to ${
|
|
4742
|
+
`API Request to ${c.url} failed with status: ${c.status}`
|
|
4743
4743
|
);
|
|
4744
|
-
return
|
|
4745
|
-
} catch (
|
|
4746
|
-
|
|
4747
|
-
throw u;
|
|
4748
|
-
return zn({ id: this.user }), po("endpoint", e), ho(u), null;
|
|
4744
|
+
return c.json();
|
|
4745
|
+
} catch (c) {
|
|
4746
|
+
return zn({ id: this.user }), po("endpoint", e), ho(c), null;
|
|
4749
4747
|
}
|
|
4750
4748
|
});
|
|
4751
4749
|
}
|
|
@@ -4997,12 +4995,12 @@ let Tt = class extends HTMLElement {
|
|
|
4997
4995
|
var r;
|
|
4998
4996
|
const { get: s, set: o } = (r = Pg(this.prototype, e)) != null ? r : { get() {
|
|
4999
4997
|
return this[i];
|
|
5000
|
-
}, set(
|
|
5001
|
-
this[i] =
|
|
4998
|
+
}, set(a) {
|
|
4999
|
+
this[i] = a;
|
|
5002
5000
|
} };
|
|
5003
|
-
return { get: s, set(
|
|
5004
|
-
const
|
|
5005
|
-
o == null || o.call(this,
|
|
5001
|
+
return { get: s, set(a) {
|
|
5002
|
+
const l = s == null ? void 0 : s.call(this);
|
|
5003
|
+
o == null || o.call(this, a), this.requestUpdate(e, l, n);
|
|
5006
5004
|
}, configurable: !0, enumerable: !0 };
|
|
5007
5005
|
}
|
|
5008
5006
|
static getPropertyOptions(e) {
|
|
@@ -5105,28 +5103,28 @@ let Tt = class extends HTMLElement {
|
|
|
5105
5103
|
}
|
|
5106
5104
|
}
|
|
5107
5105
|
_$AK(e, i) {
|
|
5108
|
-
var o, r,
|
|
5106
|
+
var o, r, a;
|
|
5109
5107
|
const n = this.constructor, s = n._$Eh.get(e);
|
|
5110
5108
|
if (s !== void 0 && this._$Em !== s) {
|
|
5111
|
-
const
|
|
5109
|
+
const l = n.getPropertyOptions(s), c = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((o = l.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? l.converter : Vt;
|
|
5112
5110
|
this._$Em = s;
|
|
5113
|
-
const
|
|
5114
|
-
this[s] = (
|
|
5111
|
+
const h = c.fromAttribute(i, l.type);
|
|
5112
|
+
this[s] = (a = h != null ? h : (r = this._$Ej) == null ? void 0 : r.get(s)) != null ? a : h, this._$Em = null;
|
|
5115
5113
|
}
|
|
5116
5114
|
}
|
|
5117
5115
|
requestUpdate(e, i, n, s = !1, o) {
|
|
5118
|
-
var r,
|
|
5116
|
+
var r, a;
|
|
5119
5117
|
if (e !== void 0) {
|
|
5120
|
-
const
|
|
5121
|
-
if (s === !1 && (o = this[e]), n != null || (n =
|
|
5118
|
+
const l = this.constructor;
|
|
5119
|
+
if (s === !1 && (o = this[e]), n != null || (n = l.getPropertyOptions(e)), !(((r = n.hasChanged) != null ? r : fs)(o, i) || n.useDefault && n.reflect && o === ((a = this._$Ej) == null ? void 0 : a.get(e)) && !this.hasAttribute(l._$Eu(e, n))))
|
|
5122
5120
|
return;
|
|
5123
5121
|
this.C(e, i, n);
|
|
5124
5122
|
}
|
|
5125
5123
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
5126
5124
|
}
|
|
5127
5125
|
C(e, i, { useDefault: n, reflect: s, wrapped: o }, r) {
|
|
5128
|
-
var
|
|
5129
|
-
n && !((
|
|
5126
|
+
var a, l, c;
|
|
5127
|
+
n && !((a = this._$Ej) != null ? a : this._$Ej = /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, (l = r != null ? r : i) != null ? l : 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));
|
|
5130
5128
|
}
|
|
5131
5129
|
_$EP() {
|
|
5132
5130
|
return A(this, null, function* () {
|
|
@@ -5149,15 +5147,15 @@ let Tt = class extends HTMLElement {
|
|
|
5149
5147
|
return;
|
|
5150
5148
|
if (!this.hasUpdated) {
|
|
5151
5149
|
if ((n = this.renderRoot) != null || (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
5152
|
-
for (const [r,
|
|
5153
|
-
this[r] =
|
|
5150
|
+
for (const [r, a] of this._$Ep)
|
|
5151
|
+
this[r] = a;
|
|
5154
5152
|
this._$Ep = void 0;
|
|
5155
5153
|
}
|
|
5156
5154
|
const o = this.constructor.elementProperties;
|
|
5157
5155
|
if (o.size > 0)
|
|
5158
|
-
for (const [r,
|
|
5159
|
-
const { wrapped:
|
|
5160
|
-
|
|
5156
|
+
for (const [r, a] of o) {
|
|
5157
|
+
const { wrapped: l } = a, c = this[r];
|
|
5158
|
+
l !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, a, c);
|
|
5161
5159
|
}
|
|
5162
5160
|
}
|
|
5163
5161
|
let e = !1;
|
|
@@ -5219,13 +5217,13 @@ function ea(t, e) {
|
|
|
5219
5217
|
const zg = (t, e) => {
|
|
5220
5218
|
const i = t.length - 1, n = [];
|
|
5221
5219
|
let s, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", r = Xt;
|
|
5222
|
-
for (let
|
|
5223
|
-
const
|
|
5224
|
-
let c,
|
|
5225
|
-
for (; f <
|
|
5226
|
-
f = r.lastIndex, r === Xt ?
|
|
5227
|
-
const I = r === et && t[
|
|
5228
|
-
o += r === Xt ?
|
|
5220
|
+
for (let a = 0; a < i; a++) {
|
|
5221
|
+
const l = t[a];
|
|
5222
|
+
let c, h, p = -1, f = 0;
|
|
5223
|
+
for (; f < l.length && (r.lastIndex = f, h = r.exec(l), h !== null); )
|
|
5224
|
+
f = r.lastIndex, r === Xt ? h[1] === "!--" ? r = $o : h[1] !== void 0 ? r = ko : h[2] !== void 0 ? (Xr.test(h[2]) && (s = RegExp("</" + h[2], "g")), r = et) : h[3] !== void 0 && (r = et) : r === et ? h[0] === ">" ? (r = s != null ? s : Xt, p = -1) : h[1] === void 0 ? p = -2 : (p = r.lastIndex - h[2].length, c = h[1], r = h[3] === void 0 ? et : h[3] === '"' ? Mo : Lo) : r === Mo || r === Lo ? r = et : r === $o || r === ko ? r = Xt : (r = et, s = void 0);
|
|
5225
|
+
const I = r === et && t[a + 1].startsWith("/>") ? " " : "";
|
|
5226
|
+
o += r === Xt ? l + Yg : p >= 0 ? (n.push(c), l.slice(0, p) + Kr + l.slice(p) + je + I) : l + je + (p === -2 ? a : I);
|
|
5229
5227
|
}
|
|
5230
5228
|
return [ea(t, o + (t[i] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
|
|
5231
5229
|
};
|
|
@@ -5234,36 +5232,36 @@ class Ii {
|
|
|
5234
5232
|
let s;
|
|
5235
5233
|
this.parts = [];
|
|
5236
5234
|
let o = 0, r = 0;
|
|
5237
|
-
const
|
|
5235
|
+
const a = e.length - 1, l = this.parts, [c, h] = zg(e, i);
|
|
5238
5236
|
if (this.el = Ii.createElement(c, n), at.currentNode = this.el.content, i === 2 || i === 3) {
|
|
5239
5237
|
const p = this.el.content.firstChild;
|
|
5240
5238
|
p.replaceWith(...p.childNodes);
|
|
5241
5239
|
}
|
|
5242
|
-
for (; (s = at.nextNode()) !== null &&
|
|
5240
|
+
for (; (s = at.nextNode()) !== null && l.length < a; ) {
|
|
5243
5241
|
if (s.nodeType === 1) {
|
|
5244
5242
|
if (s.hasAttributes())
|
|
5245
5243
|
for (const p of s.getAttributeNames())
|
|
5246
5244
|
if (p.endsWith(Kr)) {
|
|
5247
|
-
const f =
|
|
5248
|
-
|
|
5245
|
+
const f = h[r++], I = s.getAttribute(p).split(je), D = /([.?@])?(.*)/.exec(f);
|
|
5246
|
+
l.push({ type: 1, index: o, name: D[2], strings: I, ctor: D[1] === "." ? Wg : D[1] === "?" ? Zg : D[1] === "@" ? qg : rn }), s.removeAttribute(p);
|
|
5249
5247
|
} else
|
|
5250
|
-
p.startsWith(je) && (
|
|
5248
|
+
p.startsWith(je) && (l.push({ type: 6, index: o }), s.removeAttribute(p));
|
|
5251
5249
|
if (Xr.test(s.tagName)) {
|
|
5252
5250
|
const p = s.textContent.split(je), f = p.length - 1;
|
|
5253
5251
|
if (f > 0) {
|
|
5254
5252
|
s.textContent = qi ? qi.emptyScript : "";
|
|
5255
5253
|
for (let I = 0; I < f; I++)
|
|
5256
|
-
s.append(p[I], pi()), at.nextNode(),
|
|
5254
|
+
s.append(p[I], pi()), at.nextNode(), l.push({ type: 2, index: ++o });
|
|
5257
5255
|
s.append(p[f], pi());
|
|
5258
5256
|
}
|
|
5259
5257
|
}
|
|
5260
5258
|
} else if (s.nodeType === 8)
|
|
5261
5259
|
if (s.data === Qr)
|
|
5262
|
-
|
|
5260
|
+
l.push({ type: 2, index: o });
|
|
5263
5261
|
else {
|
|
5264
5262
|
let p = -1;
|
|
5265
5263
|
for (; (p = s.data.indexOf(je, p + 1)) !== -1; )
|
|
5266
|
-
|
|
5264
|
+
l.push({ type: 7, index: o }), p += je.length - 1;
|
|
5267
5265
|
}
|
|
5268
5266
|
o++;
|
|
5269
5267
|
}
|
|
@@ -5274,12 +5272,12 @@ class Ii {
|
|
|
5274
5272
|
}
|
|
5275
5273
|
}
|
|
5276
5274
|
function Ut(t, e, i = t, n) {
|
|
5277
|
-
var r,
|
|
5275
|
+
var r, a, l;
|
|
5278
5276
|
if (e === ue)
|
|
5279
5277
|
return e;
|
|
5280
5278
|
let s = n !== void 0 ? (r = i._$Co) == null ? void 0 : r[n] : i._$Cl;
|
|
5281
5279
|
const o = Ai(e) ? void 0 : e._$litDirective$;
|
|
5282
|
-
return (s == null ? void 0 : s.constructor) !== o && ((
|
|
5280
|
+
return (s == null ? void 0 : s.constructor) !== o && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), o === void 0 ? s = void 0 : (s = new o(t), s._$AT(t, i, n)), n !== void 0 ? ((l = i._$Co) != null ? l : i._$Co = [])[n] = s : i._$Cl = s), s !== void 0 && (e = Ut(t, s._$AS(t, e.values), s, n)), e;
|
|
5283
5281
|
}
|
|
5284
5282
|
class Gg {
|
|
5285
5283
|
constructor(e, i) {
|
|
@@ -5295,13 +5293,13 @@ class Gg {
|
|
|
5295
5293
|
var c;
|
|
5296
5294
|
const { el: { content: i }, parts: n } = this._$AD, s = ((c = e == null ? void 0 : e.creationScope) != null ? c : pt).importNode(i, !0);
|
|
5297
5295
|
at.currentNode = s;
|
|
5298
|
-
let o = at.nextNode(), r = 0,
|
|
5299
|
-
for (;
|
|
5300
|
-
if (r ===
|
|
5301
|
-
let
|
|
5302
|
-
|
|
5296
|
+
let o = at.nextNode(), r = 0, a = 0, l = n[0];
|
|
5297
|
+
for (; l !== void 0; ) {
|
|
5298
|
+
if (r === l.index) {
|
|
5299
|
+
let h;
|
|
5300
|
+
l.type === 2 ? h = new bi(o, o.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (h = new Jg(o, this, e)), this._$AV.push(h), l = n[++a];
|
|
5303
5301
|
}
|
|
5304
|
-
r !== (
|
|
5302
|
+
r !== (l == null ? void 0 : l.index) && (o = at.nextNode(), r++);
|
|
5305
5303
|
}
|
|
5306
5304
|
return at.currentNode = pt, s;
|
|
5307
5305
|
}
|
|
@@ -5349,8 +5347,8 @@ class bi {
|
|
|
5349
5347
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === s)
|
|
5350
5348
|
this._$AH.p(i);
|
|
5351
5349
|
else {
|
|
5352
|
-
const r = new Gg(s, this),
|
|
5353
|
-
r.p(i), this.T(
|
|
5350
|
+
const r = new Gg(s, this), a = r.u(this.options);
|
|
5351
|
+
r.p(i), this.T(a), this._$AH = r;
|
|
5354
5352
|
}
|
|
5355
5353
|
}
|
|
5356
5354
|
_$AC(e) {
|
|
@@ -5393,10 +5391,10 @@ class rn {
|
|
|
5393
5391
|
if (o === void 0)
|
|
5394
5392
|
e = Ut(this, e, i, 0), r = !Ai(e) || e !== this._$AH && e !== ue, r && (this._$AH = e);
|
|
5395
5393
|
else {
|
|
5396
|
-
const
|
|
5397
|
-
let
|
|
5398
|
-
for (e = o[0],
|
|
5399
|
-
c = Ut(this,
|
|
5394
|
+
const a = e;
|
|
5395
|
+
let l, c;
|
|
5396
|
+
for (e = o[0], l = 0; l < o.length - 1; l++)
|
|
5397
|
+
c = Ut(this, a[n + l], i, l), c === ue && (c = this._$AH[l]), r || (r = !Ai(c) || c !== this._$AH[l]), c === L ? e = L : e !== L && (e += (c != null ? c : "") + o[l + 1]), this._$AH[l] = c;
|
|
5400
5398
|
}
|
|
5401
5399
|
r && !s && this.j(e);
|
|
5402
5400
|
}
|
|
@@ -5455,8 +5453,8 @@ const Kg = (t, e, i) => {
|
|
|
5455
5453
|
const n = (o = i == null ? void 0 : i.renderBefore) != null ? o : e;
|
|
5456
5454
|
let s = n._$litPart$;
|
|
5457
5455
|
if (s === void 0) {
|
|
5458
|
-
const
|
|
5459
|
-
n._$litPart$ = s = new bi(e.insertBefore(pi(),
|
|
5456
|
+
const a = (r = i == null ? void 0 : i.renderBefore) != null ? r : null;
|
|
5457
|
+
n._$litPart$ = s = new bi(e.insertBefore(pi(), a), a, void 0, i != null ? i : {});
|
|
5460
5458
|
}
|
|
5461
5459
|
return s._$AI(t), s;
|
|
5462
5460
|
};
|
|
@@ -5522,9 +5520,9 @@ var Qg = _t`:host{display:inline-block;width:1em;height:1em;box-sizing:content-b
|
|
|
5522
5520
|
}
|
|
5523
5521
|
return i = !0, {
|
|
5524
5522
|
done: !1,
|
|
5525
|
-
value: new au(new Promise((
|
|
5526
|
-
var
|
|
5527
|
-
|
|
5523
|
+
value: new au(new Promise((a) => {
|
|
5524
|
+
var l = e[o](r);
|
|
5525
|
+
l instanceof Object || _s("Object expected"), a(l);
|
|
5528
5526
|
}), 1)
|
|
5529
5527
|
};
|
|
5530
5528
|
}), s[Tn("iterator")] = () => s, n("next"), "throw" in e ? n("throw") : s.throw = (o) => {
|
|
@@ -5537,14 +5535,14 @@ function qe(t, e) {
|
|
|
5537
5535
|
}, e);
|
|
5538
5536
|
return (n, s) => {
|
|
5539
5537
|
const { update: o } = n, r = Array.isArray(t) ? t : [t];
|
|
5540
|
-
n.update = function(
|
|
5541
|
-
r.forEach((
|
|
5542
|
-
const c =
|
|
5543
|
-
if (
|
|
5544
|
-
const
|
|
5545
|
-
|
|
5538
|
+
n.update = function(a) {
|
|
5539
|
+
r.forEach((l) => {
|
|
5540
|
+
const c = l;
|
|
5541
|
+
if (a.has(c)) {
|
|
5542
|
+
const h = a.get(c), p = this[c];
|
|
5543
|
+
h !== p && (!i.waitUntilFirstUpdate || this.hasUpdated) && this[s](h, p);
|
|
5546
5544
|
}
|
|
5547
|
-
}), o.call(this,
|
|
5545
|
+
}), o.call(this, a);
|
|
5548
5546
|
};
|
|
5549
5547
|
};
|
|
5550
5548
|
}
|
|
@@ -5559,18 +5557,18 @@ const cu = { attribute: !0, type: String, converter: Vt, reflect: !1, hasChanged
|
|
|
5559
5557
|
let o = globalThis.litPropertyMetadata.get(s);
|
|
5560
5558
|
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") {
|
|
5561
5559
|
const { name: r } = i;
|
|
5562
|
-
return { set(
|
|
5563
|
-
const
|
|
5564
|
-
e.set.call(this,
|
|
5565
|
-
}, init(
|
|
5566
|
-
return
|
|
5560
|
+
return { set(a) {
|
|
5561
|
+
const l = e.get.call(this);
|
|
5562
|
+
e.set.call(this, a), this.requestUpdate(r, l, t, !0, a);
|
|
5563
|
+
}, init(a) {
|
|
5564
|
+
return a !== void 0 && this.C(r, void 0, t, a), a;
|
|
5567
5565
|
} };
|
|
5568
5566
|
}
|
|
5569
5567
|
if (n === "setter") {
|
|
5570
5568
|
const { name: r } = i;
|
|
5571
|
-
return function(
|
|
5572
|
-
const
|
|
5573
|
-
e.call(this,
|
|
5569
|
+
return function(a) {
|
|
5570
|
+
const l = this[r];
|
|
5571
|
+
e.call(this, a), this.requestUpdate(r, l, t, !0, a);
|
|
5574
5572
|
};
|
|
5575
5573
|
}
|
|
5576
5574
|
throw Error("Unsupported decorator location: " + n);
|
|
@@ -5587,7 +5585,7 @@ function v(t) {
|
|
|
5587
5585
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5588
5586
|
*/
|
|
5589
5587
|
function an(t) {
|
|
5590
|
-
return v(_(
|
|
5588
|
+
return v(_(u({}, t), { state: !0, attribute: !1 }));
|
|
5591
5589
|
}
|
|
5592
5590
|
/**
|
|
5593
5591
|
* @license
|
|
@@ -5603,21 +5601,21 @@ const Ho = (t, e, i) => (i.configurable = !0, i.enumerable = !0, Reflect.decorat
|
|
|
5603
5601
|
function bt(t, e) {
|
|
5604
5602
|
return (i, n, s) => {
|
|
5605
5603
|
const o = (r) => {
|
|
5606
|
-
var
|
|
5607
|
-
return (
|
|
5604
|
+
var a, l;
|
|
5605
|
+
return (l = (a = r.renderRoot) == null ? void 0 : a.querySelector(t)) != null ? l : null;
|
|
5608
5606
|
};
|
|
5609
5607
|
if (e) {
|
|
5610
|
-
const { get: r, set:
|
|
5611
|
-
const
|
|
5608
|
+
const { get: r, set: a } = typeof n == "object" ? i : s != null ? s : (() => {
|
|
5609
|
+
const l = Symbol();
|
|
5612
5610
|
return { get() {
|
|
5613
|
-
return this[
|
|
5611
|
+
return this[l];
|
|
5614
5612
|
}, set(c) {
|
|
5615
|
-
this[
|
|
5613
|
+
this[l] = c;
|
|
5616
5614
|
} };
|
|
5617
5615
|
})();
|
|
5618
5616
|
return Ho(i, n, { get() {
|
|
5619
|
-
let
|
|
5620
|
-
return
|
|
5617
|
+
let l = r.call(this);
|
|
5618
|
+
return l === void 0 && (l = o(this), (l !== null || this.hasUpdated) && a.call(this, l)), l;
|
|
5621
5619
|
} });
|
|
5622
5620
|
}
|
|
5623
5621
|
return Ho(i, n, { get() {
|
|
@@ -5709,8 +5707,8 @@ var ei = Symbol(), ki = Symbol(), Rn, Dn = /* @__PURE__ */ new Map(), Ae = class
|
|
|
5709
5707
|
if (((i = o == null ? void 0 : o.tagName) == null ? void 0 : i.toLowerCase()) !== "svg")
|
|
5710
5708
|
return ei;
|
|
5711
5709
|
Rn || (Rn = new DOMParser());
|
|
5712
|
-
const
|
|
5713
|
-
return
|
|
5710
|
+
const a = Rn.parseFromString(o.outerHTML, "text/html").body.querySelector("svg");
|
|
5711
|
+
return a ? (a.part.add("svg"), document.adoptNode(a)) : ei;
|
|
5714
5712
|
} catch (s) {
|
|
5715
5713
|
return ei;
|
|
5716
5714
|
}
|
|
@@ -5832,7 +5830,7 @@ let Fe = class t extends E {
|
|
|
5832
5830
|
return g`<div class="tos_container"><div class="tos_headers">Welcome to the RIA in a Box Vendor Due Diligence Platform</div><p>Thank you for choosing the MyRIACompliance Vendor Due Diligence Platform™ (as updated from time to time and together with its contents, the "Platform") offered by RIA in a Box LLC. RIA in a Box LLC, together with its subsidiaries, parents, successors, assigns, affiliates, officers, employees, and other representatives, collectively, is referred to herein as the "Company". The Platform offers access to materials provided by participating vendors (collectively, together with their respective subsidiaries, parents, successors, assigns, affiliates, officers, employees, and other representatives, the "Vendors") that can be accessed by your financial services firm and its representatives (collectively, "you"). By clicking "Agree" button below or by otherwise accessing the Platform, you are entering a binding contract and agree to abide by these terms of use (as updated from time to time, the "Terms of Use"). You and the Company are each a "Party" and together constitute the "Parties" to these Term of Use. Please read these Terms of Use carefully.</p><ol><li><span class="tos_headers">Limited Use</span> Subject to these Terms of Use and any other applicable limitations, the Company grants you a limited, revocable, single-user, non-assignable, non-transferable, non-exclusive license to access the Platform solely in your capacity as a financial services professional.</li><li><div class="tos_headers">Reservation of Rights</div>These Terms of Use do not provide you with a license to reproduce, distribute, display, or otherwise provide access to any portion of the Platform to any third party. The rights granted herein are limited to the Company's and any licensors' intellectual property rights in the Platform and do not include any other intellectual property rights whatsoever. You shall not have ownership rights in the Platform or any marks (including trademarks) of the Company or the Vendors (collectively, the "Marks"). By using the Platform, you further agree not to:<br><br><ul><li>Alter, display, or otherwise use the Marks;</li><li>Sell, rent, lease, lend, license, sublicense, export, distribute, display (or otherwise provide access to), modify, merge, adapt, replicate, reproduce, combine, integrate, reverse engineer, decompile, disassemble, or alter any portion of the Platform, including the source code or logical structure thereof;</li><li>Remove or modify any copyright or other intellectual property notices that appear in the Platform;</li><li>Access the Platform via terminals or internet connections without appropriate security;</li><li>Use the Platform in any way that is unlawful or in any way that harms the Company, its service providers, its customers, the Vendors, or any other user;</li><li>Take any action that would disparage, portray in an adverse light, or otherwise cause injury to the Company;</li><li>Upload invalid data, viruses, worms, or other software agents to or via the Platform;</li><li>Impersonate another person or misrepresent your affiliation with another person;</li><li>Interfere with the system integrity or security of the Platform or otherwise bypass any measures aimed at restricting or otherwise controlling access to the Platform;</li><li>Conduct automated queries, including screen and database scraping, spiders, robots, crawlers, and any other automated activity, with the purpose of obtaining information from the Platform;</li><li>Attempt to do any of the above; or</li><li>Permit or encourage any other person to do any of the above.</li></ul><br>The above is a non-exhaustive list of prohibited activities and the fact that a given act or omission is not referenced above does not mean that it is permissible. The Platform, including the original content and the selection, coordination, arrangement and enhancement of its contents, is protected by United States ("U.S.") and foreign copyright and other intellectual property laws and treaties. The Company reserves all rights not expressly granted to Client.</li><li><div class="tos_headers">Registration, Access, and Communications</div>In order to access the Platform, you, as a financial services firm, will be required to register for an account and maintain a password. You are solely responsible for maintaining the confidentiality of your account and password, and you are responsible for all actions taken via your account. You may not share your user account(s) with others or use the Platform on behalf of any other person. When you register for an account, you will be required to provide us with some information, such as email address or other contact information, and may be required to take additional actions, such as providing survey responses or entering into updated terms of use, as a condition of future access to the Platform. You agree that the information you provide must be, and will be, accurate and that this information may be shared with third parties, including after termination of these Terms of Use, subject to the Company's <a href="https://www.riainabox.com/privacy-policy" target="_blank" style="text-decoration:underline;color:#22f">privacy policy</a> as updated from time to time. You also consent to receiving certain communications from the Company while these Terms of Use are in effect and agree that any notices, agreements, disclosures, or other communications that the Company sends to you electronically will satisfy any legal communication requirements, including any requirements that those communications be "written" or "in writing."</li><li><div class="tos_headers">NO WARRANTIES</div>IF AND WHEN PROVIDED, THE PLATFORM IS PROVIDED "AS IS," "WITH ALL FAULTS" AND "AS AVAILABLE." NO GUARANTEE, REPRESENTATION, CONDITION, OR WARRANTY, EXPRESS OR IMPLIED, IS INCLUDED OR INTENDED VIA THESE TERMS OF USE OR OTHERWISE. FURTHERMORE, TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE COMPANY AND THE VENDORS EXPRESSLY DISCLAIM ANY AND ALL WARRANTIES OR CONDITIONS, EXPRESS, STATUTORY AND IMPLIED, INCLUDING WITHOUT LIMITATION: (A) WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, ACCURACY, TITLE, QUIET ENJOYMENT, NO ENCUMBRANCES, NO LIENS AND NON-INFRINGEMENT; (B) WARRANTIES OR CONDITIONS ARISING THROUGH COURSE OF DEALING OR USAGE OF TRADE; AND (C) WARRANTIES OR CONDITIONS OF UNINTERRUPTED OR ERROR-FREE ACCESS OR USE. YOU MAY HAVE OTHER RIGHTS, AS SOME JURISDICTIONS MAY LIMIT DISCLAIMERS OF WARRANTIES. THIS SECTION SETS FORTH THE ONLY WARRANTIES, IF ANY, PROVIDED BY THE COMPANY CONCERNING THE PLATFORM AND IS MADE EXPRESSLY IN LIEU OF ALL OTHER WARRANTIES. THE COMPANY DOES NOT ENDORSE THE VENDORS OR MAKE ANY REPRESENTATION AS TO THE VENDORS, THEIR SERVICES, OR ANY INFORMATION PROVIDED BY THE VENDORS VIA THE PLATFORM OR OTHERWISE. YOU UNDERSTAND AND AGREE THAT YOUR USE OF THE PLATFORM IS AT YOUR OWN DISCRETION AND RISK, AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, ACCURACY, AND PERFORMANCE IS WITH YOU.</li><li><div class="tos_headers">LIMITATION OF LIABILITY</div>THE COMPANY ASSUMES NO RESPONSIBILITY FOR ANY RESULT OR CONSEQUENCE RELATED DIRECTLY OR INDIRECTLY TO ANY ACTION OR INACTION THAT YOU, VENDORS, OR OTHERS TAKE BASED ON THE PLATFORM. YOU UNDERSTAND AND AGREE THAT ACCESS TO THE PLATFORM DOES NOT CONSTITUTE ACCOUNTING, COMPLIANCE, RISK, DILIGENCE, LEGAL, TAX, OR INVESTMENT ADVICE. THE PLATFORM IS NOT INTENDED TO BE A SUBSTITUTE FOR PROFESSIONAL ADVICE TAILORED TO YOUR SPECIFIC SITUATION. YOU SHOULD ALWAYS CONSULT YOUR RELEVANT REGULATORY AUTHORITIES, LEGAL COUNSEL, AND/OR PROFESSIONAL ADVISORS IF APPLICABLE. ANY DATA, RECORDS, OR OTHER INFORMATION THAT ARE INPUT, GENERATED, OR OTHERWISE USED IN CONNECTION WITH THE PLATFORM SHOULD ALWAYS BE VERIFIED AND STORED BY YOU. THE COMPANY IS NOT RESPONSIBLE FOR FEES OWED BY YOU TO VENDORS, THE COMPANY, OR OTHER PERSONS. IN NO EVENT WILL THE COMPANY OR THE VENDORS BE LIABLE FOR CONTRIBUTION, INDEMNIFICATION, OR ANY SPECIAL, INDIRECT, INCIDENTAL CONSEQUENTIAL, OR PUNITIVE DAMAGES (INCLUDING BUT NOT LIMITED TO FINES, PENALTIES, LOSS OF GOODWILL, LOST PROFITS, OR ANY OTHER TANGIBLE OR INTANGIBLE LOSS) ARISING OUT OF, BASED ON, OR RESULTING FROM THESE TERMS OF USE OR YOUR USE OR ACCESS, OR INABILITY TO USE OR ACCESS, THE PLATFORM, WHETHER BASED ON (A) BREACH OF CONTRACT, (B) BREACH OF WARRANTY, (C) NEGLIGENCE, OR (D) ANY OTHER CAUSE OF ACTION, EVEN IF THE COMPANY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE COMPANY ASSUMES NO LIABILITY OR RESPONSIBILITY FOR ANY (A) ERRORS, OMISSIONS, MISTAKES, OR INACCURACIES; (B) PERSONAL INJURY OR PROPERTY DAMAGE OF ANY NATURE WHATSOEVER; (C) UNAUTHORIZED ACCESS TO OR USE OF THE COMPANY'S SERVERS AND/OR ANY AND ALL PERSONAL INFORMATION STORED THEREIN; (D) VIRUSES, BUGS, TROJAN HORSES, OR THE LIKE THAT MAY BE TRANSMITTED TO OR THROUGH THE PLATFORM; (E) INTERRUPTION OR CESSATION OF TRANSMISSION TO OR FROM THE PLATFORM; (F) ACTIONS TAKEN BY VENDORS, U.S. OR FOREIGN GOVERNMENTAL OR REGULATORY BODIES, OR OTHER THIRD PARTIES. THE AGGREGATE LIABILITY OF THE COMPANY AND THE VENDORS TO YOU FOR ALL CLAIMS ARISING OUT OF OR RELATING TO THE USE OF OR INABILITY TO USE ANY PORTION OF THE PLATFORM OR OTHERWISE UNDER THESE TERMS OF USE, WHETHER IN CONTRACT, TORT, OR OTHERWISE, SHALL BE NO GREATER THAN ONE HUNDRED DOLLARS (US $100.00). YOU AND YOUR AFFILIATES, REPRESENTATIVES, BROKERS, AND INSURERS HEREBY WAIVE ALL RIGHTS TO SUBROGATION BY THEIR RESPECTIVE INSURANCE COMPANIES AGAINST THE COMPANY AND THE VENDORS. YOU MAY HAVE OTHER RIGHTS, AS SOME JURISDICTIONS MAY LIMIT THE EXCLUSION OR LIMITATION OF LIABILITY FOR CERTAIN DAMAGES.</li><li><div class="tos_headers">NOTICE OF CLAIM</div>YOU MUST GIVE THE COMPANY WRITTEN NOTICE WITHIN THIRTY (30) DAYS OF OBTAINING KNOWLEDGE OF THE EXISTENCE OF ANY PURPORTED DISPUTE, CONFLICT, CAUSE OF ACTION, LOSS, INJURY, DAMAGES, DEMAND, COUNTERCLAIM, OR OTHER CLAIM AGAINST THE COMPANY, WHETHER AT LAW OR IN EQUITY, WHETHER RELATED TO THE PLATFORM OR OTHERWISE, AGAINST THE COMPANY ("POTENTIAL CLAIMS"). SUPERSEDING THE "WAIVER" SECTION HEREOF, IF YOU FAIL TO GIVE SUCH NOTICE TO THE COMPANY, YOU WILL BE DEEMED TO HAVE WAIVED, AND SHALL BE FOREVER BARRED FROM BRINGING OR ASSERTING, SUCH POTENTIAL CLAIMS IN ANY SUIT, ACTION, PROCEEDING OR OTHER MANNER, INCLUDING BUT NOT LIMITED TO BEFORE ANY COURT, MEDIATOR, ARBITRATOR, GOVERNMENTAL AGENCY OR OTHER AUTHORITY.</li><li><div class="tos_headers">GOVERNING LAW AND CONSTRUCTION</div>THESE TERMS OF USE WILL BE GOVERNED BY AND CONSTRUED IN ACCORDANCE WITH THE LAWS OF NEW YORK, WITHOUT REGARD TO THE PRINCIPLES OF CONFLICTS OF LAW. THE LANGUAGE OF EACH PARTY AGREES THAT IT (A) HAS BEEN AFFORDED THE OPPORTUNITY TO REVIEW THESE TERMS OF USE, INCLUDING WITH COUNSEL IF THE PARTY SO DESIRES, AND (B) IS A SOPHISTICATED COMMERCIAL PARTY CAPABLE OF ENTERING INTO THE BINDING OBLIGATIONS, WAIVERS, AND OTHER PROVISIONS SET FORTH IN THESE TERMS OF USE. THESE TERMS OF USE SHALL BE DEEMED TO BE THE RESULT OF ARMS' LENGTH NEGOTIATION AMONG THE PARTIES AND/OR THEIR RESPECTIVE COUNSEL AND SHALL NOT BE CONSTRUED STRICTLY FOR OR AGAINST ANY PARTY, INCLUDING THE DRAFTING PARTY.</li><li><div class="tos_headers">WAIVER OF JURY TRIAL; DISPUTE RESOLUTION</div>YOU HEREBY KNOWINGLY, VOLUNTARILY, INTENTIONALLY, AND IRREVOCABLY WAIVE, TO THE FULLEST EXTENT PERMITTED BY LAW, THE RIGHT TO TRIAL BY JURY WITH RESPECT TO THE PLATFORM, THESE TERMS OF USE, OR ANY MATTERS RELATING OR INCIDENTAL THERETO. THE PARTIES AGREE THAT ANY POTENTIAL CLAIMS SHALL BE SETTLED SOLELY BY CONFIDENTIAL BINDING ARBITRATION BY A SINGLE ARBITRATOR IN ACCORDANCE WITH THE COMMERCIAL ARBITRATION RULES OF JAMS IN EFFECT AT THE TIME THE ARBITRATION COMMENCES, UNLESS THE PARTIES, IN WRITING, MUTUALLY AGREE OTHERWISE. ACCORDINGLY, TO THE FULLEST EXTENT POSSIBLE AND REGARDLESS OF WHETHER THE POTENTIAL CLAIM IS BROUGHT BY YOU OR ANOTHER PERSON, YOU HEREBY IRREVOCABLY (A) CONSENT TO JAMS ARBITRATION HELD IN NEW YORK, NEW YORK AS THE EXCLUSIVE JURISDICTION, (B) CONSENT TO SERVICE OF PROCESS BY CERTIFIED U.S. MAIL, RETURN RECEIPT REQUESTED, MAILED TO SUCH PARTY AT THE ADDRESS SET FORTH BELOW, AS WELL AS OTHER MEANS OF SERVICE PERMITTED BY LAW, AND (C) WAIVE ANY OBJECTION, WHETHER ON THE GROUNDS OF VENUE, RESIDENCE, DOMICILE, INCONVENIENT FORUM, OR OTHERWISE, TO JAMS ARBITRATION HELD IN NEW YORK, NEW YORK. ALL POTENTIAL CLAIMS OR CONTROVERSIES, AND RESOLUTION THEREOF, REMAIN SUBJECT TO THE LIMITATION ON LIABILITY, INDEMNIFICATION, NOTICE OF CLAIM, AND OTHER PROVISIONS OF THESE TERMS OF USE.</li><li><div class="tos_headers">INDEMNIFICATION</div>YOU AGREE TO INDEMNIFY, DEFEND, AND HOLD HARMLESS THE COMPANY AND THE VENDORS FROM ANY AND ALL CLAIMS AND DEMANDS MADE BY ANY OTHER PERSON, INCLUDING ANY OF YOUR AFFILIATES, DUE TO OR ARISING OUT OF: (A) YOUR ACCESS TO OR USE OF THE PLATFORM, INCLUDING ANY DISPUTE OR ISSUE BETWEEN YOU AND ANY OTHER PERSON; (B) YOUR WILLFUL MISCONDUCT; (C) YOUR VIOLATION OF ANY LAW OR REGULATION; (D) YOUR BREACH OF THESE TERMS OF USE; (D) YOUR VIOLATION OF THE RIGHTS OF THE COMPANY, THE VENDORS, OR ANY THIRD PARTY; AND (E) ANY OTHER PERSON'S ACCESS TO OR USE OF THE PLATFORM USING YOUR ACCOUNT AND PASSWORD. FOR THE SAKE OF CLARITY, THE PRECEDING SENTENCE INCLUDES YOUR OBLIGATION TO INDEMNIFY, DEFEND, AND HOLD HARMLESS THE COMPANY FROM ANY AND ALL CLAIMS AND DEMANDS ARISING OUT OF ANY DISPUTE BETWEEN YOU AND A VENDOR. THE COMPANY RESERVES THE RIGHT, AT ITS OWN EXPENSE, TO ASSUME THE EXCLUSIVE DEFENSE AND CONTROL OF ANY MATTER OTHERWISE SUBJECT TO INDEMNIFICATION BY YOU, AND IN THAT CASE, YOU AGREE TO COOPERATE WITH THE COMPANY'S DEFENSE OF THAT CLAIM.</li><li><div class="tos_headers">ESSENTIAL ELEMENTS</div>EACH PROVISION OF THESE TERMS OF USE THAT PROVIDES FOR A LIMITATION OF LIABILITY, DISCLAIMER OF WARRANTIES, EXCLUSION OF DAMAGES, NOTICE OF CLAIM, DISPUTE RESOLUTION, OR INDEMNIFICATION IS INTENDED TO AND DOES ALLOCATE THE RISKS BETWEEN THE PARTIES UNDER THESE TERMS. THIS ALLOCATION IS AN ESSENTIAL ELEMENT OF THE AGREEMENT OF THE PARTIES. THE LIMITATIONS IN THESE TERMS OF USE WILL APPLY EVEN IF ANY LIMITED REMEDY FAILS ITS ESSENTIAL PURPOSE.</li><li><div class="tos_headers">Laws and Regulations</div>You acknowledge that the Platform may be subject to U.S. or foreign export laws and regulations, and that your use of the Platform must be permitted under those regulations. You hereby represent and warrant that during your use of the Platform: (a) you are not located in a country that is subject to a U.S. government embargo, or that has been designated by the U.S. government as a "terrorist supporting" country; (b) you are not listed on any U.S. government list of prohibited or restricted parties; (c) your registration and your use of the Platform is in compliance with all applicable laws and regulations; and (d) you have not previously been suspended or removed from the Platform.</li><li><div class="tos_headers">Waiver</div>Subject to these Terms of Use, including the "Notice of Claim" section hereof, no waiver shall be binding unless executed in writing by the Party making the waiver. No waiver of any provision of these Terms of Use shall be deemed a waiver of any other provision, whether or not similar, nor shall a waiver in any one instance constitute a continuing waiver or a waiver in any other instance.</li><li><div class="tos_headers">Modification</div>These Terms of Use will govern any upgrades or additional software, products or services provided by the Company via the Platform, unless such upgrade is accompanied by a separate agreement, in which case the provisions of that agreement will govern to the extent that such provisions conflict with these Terms of Use. Except as expressly stated herein, these Terms of Use comprises the entire understanding between the Parties and supersede any and all previous agreements, understandings, representations, warranties, contracts and proposals (whether oral or written) and all other communications between you and the Company regarding the subject matter thereof. These Terms of Use are binding on the Parties and those that lawfully succeed to their rights or take their place. The Company is permitted to assign these Terms of Use, in whole or in part, at any time with or without notice to you. You may not assign these Terms of Use, or assign, transfer or sublicense your rights, if any, in the Platform. These Terms of Use may be executed by original, telecopy, electronic, or digital signature, each of which shall be deemed an original, but all of which taken together shall constitute but one and the same instrument. These Terms of Use may be amended or modified only upon written consent by the Parties. However, your access to the Platform may be revoked by the Company upon immediate notice or no notice, in the Company's sole discretion, for any reason or no reason. Additionally, the Platform may be altered from time to time without written agreement or amendment to these Terms of Use and same will not constitute breach or violation of these Terms of Use or necessitate re-execution of these Terms of Use.</li><li><div class="tos_headers">Remedies</div>You agree that any breach of these Terms of Use may cause the Company substantial and irreparable damages. Therefore, in the event of any such breach, in addition to other remedies which may be available, you agree that the Company shall have the right to seek specific performance, along with any additional relief, without the need to post bond.</li><li><div class="tos_headers">Residuals</div>Nothing in these Terms of Use or elsewhere will prohibit or limit the Company's ownership and use of ideas, concepts, know-how, methods, models, data, techniques, skill, knowledge, and experience that were used, developed, or gained by the Company.</li><li><div class="tos_headers">Termination</div>You may terminate these Term of Service upon written notice to the Company at the physical mailing address set forth on the Company's website, as updated from time to time. The Company may terminate these Term of Service upon notice to you at either the physical address or the email address you provided when first registering for access to the Platform, or another address you subsequently provide. Upon any such termination, either by you or by the Company, you (a) will no longer be permitted to access the Platform unless otherwise expressly permitted to do so in writing by the Company and (b) will remain subject to the portions of these Terms of Use that survive termination.</li><li><div class="tos_headers">Severability</div>Should any part of these Terms of Use for any reason be declared not fully valid, then such decision shall not affect the validity of any remaining provisions and the provision in question shall be construed so as to give it the maximum effect permitted by law.</li><li><div class="tos_headers">Section Headings</div>Headings and titles of sections of these Terms of Use are for convenience of reference only and shall not affect the construction of any provision of these Terms of Use.</li><li><div class="tos_headers">Independent Relationship</div>You, the Vendors, and the Company are unaffiliated and independent of one another; there is no relationship of partnership, joint venture, employment, franchise, agency, or similar relationship created between the Parties under these Terms of Use or otherwise. These Terms of Use shall not create any rights or benefits to persons other than you, the Vendors, and the Company.</li><li><div class="tos_headers">Survival</div>Sections 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19 and 20 shall survive the expiration, conclusion, or other termination of these Terms of Use.</li></ol><br><p></p><form @submit="${this.markTosComplete}"><div style="text-align:right;margin:10px"><div>I agree to the above terms of agreement.<input type="checkbox" name="is_tos_completed" value="1"></div></div><div class="tos_submit_container"><button type="submit" id="vdd_tos_submit_button" class="button--primary" style="width:100px">Submit</button></div></form><p></p><br><p style="text-align:center">Copyright © ${(/* @__PURE__ */ new Date()).getFullYear()} RIA in a Box LLC. All rights reserved.</p></div>`;
|
|
5833
5831
|
}
|
|
5834
5832
|
};
|
|
5835
|
-
Fe.styles = [
|
|
5833
|
+
Fe.styles = [O, F];
|
|
5836
5834
|
Bt([
|
|
5837
5835
|
m({ context: $ }),
|
|
5838
5836
|
d()
|
|
@@ -5853,7 +5851,7 @@ Bt([
|
|
|
5853
5851
|
Fe = Bt([
|
|
5854
5852
|
w("vendor-due-diligence-tos-page")
|
|
5855
5853
|
], Fe);
|
|
5856
|
-
const Cu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hlY2syLWNpcmNsZSIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNMi41IDhhNS41IDUuNSAwIDAgMSA4LjI1LTQuNzY0LjUuNSAwIDAgMCAuNS0uODY2QTYuNSA2LjUgMCAxIDAgMTQuNSA4YS41LjUgMCAwIDAtMSAwIDUuNSA1LjUgMCAxIDEtMTEgMHoiLz4KICA8cGF0aCBkPSJNMTUuMzU0IDMuMzU0YS41LjUgMCAwIDAtLjcwOC0uNzA4TDggOS4yOTMgNS4zNTQgNi42NDZhLjUuNSAwIDEgMC0uNzA4LjcwOGwzIDNhLjUuNSAwIDAgMCAuNzA4IDBsNy03eiIvPgo8L3N2Zz4=", mu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktZXhjbGFtYXRpb24tb2N0YWdvbiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNNC41NC4xNDZBLjUuNSAwIDAgMSA0Ljg5MyAwaDYuMjE0YS41LjUgMCAwIDEgLjM1My4xNDZsNC4zOTQgNC4zOTRhLjUuNSAwIDAgMSAuMTQ2LjM1M3Y2LjIxNGEuNS41IDAgMCAxLS4xNDYuMzUzbC00LjM5NCA0LjM5NGEuNS41IDAgMCAxLS4zNTMuMTQ2SDQuODkzYS41LjUgMCAwIDEtLjM1My0uMTQ2TC4xNDYgMTEuNDZBLjUuNSAwIDAgMSAwIDExLjEwN1Y0Ljg5M2EuNS41IDAgMCAxIC4xNDYtLjM1M0w0LjU0LjE0NnpNNS4xIDEgMSA1LjF2NS44TDUuMSAxNWg1LjhsNC4xLTQuMVY1LjFMMTAuOSAxSDUuMXoiLz4KICA8cGF0aCBkPSJNNy4wMDIgMTFhMSAxIDAgMSAxIDIgMCAxIDEgMCAwIDEtMiAwek03LjEgNC45OTVhLjkwNS45MDUgMCAxIDEgMS44IDBsLS4zNSAzLjUwN2EuNTUyLjU1MiAwIDAgMS0xLjEgMEw3LjEgNC45OTV6Ii8+Cjwvc3ZnPg==", ti = "vendor", Li = "other_vendor", Rt = "client_vendor_docs", z = "non_partnered",
|
|
5854
|
+
const Cu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hlY2syLWNpcmNsZSIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNMi41IDhhNS41IDUuNSAwIDAgMSA4LjI1LTQuNzY0LjUuNSAwIDAgMCAuNS0uODY2QTYuNSA2LjUgMCAxIDAgMTQuNSA4YS41LjUgMCAwIDAtMSAwIDUuNSA1LjUgMCAxIDEtMTEgMHoiLz4KICA8cGF0aCBkPSJNMTUuMzU0IDMuMzU0YS41LjUgMCAwIDAtLjcwOC0uNzA4TDggOS4yOTMgNS4zNTQgNi42NDZhLjUuNSAwIDEgMC0uNzA4LjcwOGwzIDNhLjUuNSAwIDAgMCAuNzA4IDBsNy03eiIvPgo8L3N2Zz4=", mu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktZXhjbGFtYXRpb24tb2N0YWdvbiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNNC41NC4xNDZBLjUuNSAwIDAgMSA0Ljg5MyAwaDYuMjE0YS41LjUgMCAwIDEgLjM1My4xNDZsNC4zOTQgNC4zOTRhLjUuNSAwIDAgMSAuMTQ2LjM1M3Y2LjIxNGEuNS41IDAgMCAxLS4xNDYuMzUzbC00LjM5NCA0LjM5NGEuNS41IDAgMCAxLS4zNTMuMTQ2SDQuODkzYS41LjUgMCAwIDEtLjM1My0uMTQ2TC4xNDYgMTEuNDZBLjUuNSAwIDAgMSAwIDExLjEwN1Y0Ljg5M2EuNS41IDAgMCAxIC4xNDYtLjM1M0w0LjU0LjE0NnpNNS4xIDEgMSA1LjF2NS44TDUuMSAxNWg1LjhsNC4xLTQuMVY1LjFMMTAuOSAxSDUuMXoiLz4KICA8cGF0aCBkPSJNNy4wMDIgMTFhMSAxIDAgMSAxIDIgMCAxIDEgMCAwIDEtMiAwek03LjEgNC45OTVhLjkwNS45MDUgMCAxIDEgMS44IDBsLS4zNSAzLjUwN2EuNTUyLjU1MiAwIDAgMS0xLjEgMEw3LjEgNC45OTV6Ii8+Cjwvc3ZnPg==", ti = "vendor", Li = "other_vendor", Rt = "client_vendor_docs", z = "non_partnered", N = "partnered", B = "unknown", Yi = "unknown", jo = {
|
|
5857
5855
|
1: "Low Risk",
|
|
5858
5856
|
2: "Medium Risk",
|
|
5859
5857
|
3: "High Risk"
|
|
@@ -5877,7 +5875,7 @@ const Cu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5877
5875
|
"duration",
|
|
5878
5876
|
"icon"
|
|
5879
5877
|
]);
|
|
5880
|
-
return Object.assign(document.createElement("sl-alert"),
|
|
5878
|
+
return Object.assign(document.createElement("sl-alert"), u({
|
|
5881
5879
|
variant: e != null ? e : "primary",
|
|
5882
5880
|
closable: !0,
|
|
5883
5881
|
duration: i != null ? i : 3e3,
|
|
@@ -5893,7 +5891,7 @@ const Cu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5893
5891
|
});
|
|
5894
5892
|
return e.append(i), i.toast();
|
|
5895
5893
|
}, _u = (t, e, i = null) => {
|
|
5896
|
-
if (i ==
|
|
5894
|
+
if (i == N)
|
|
5897
5895
|
return `${t.BASE_URL}/vendor_due_diligence/get_partnered_doc/${Rt}/${e.vendor_account_id}/${e.id}/${encodeURIComponent(e.name)}?download=1&user=${encodeURIComponent(t.user)}`;
|
|
5898
5896
|
if (i == z)
|
|
5899
5897
|
return `${t.BASE_URL}/vendor_due_diligence/get_nonpartnered_doc/${e.request_vendor_id}/${e.id}/${encodeURIComponent(e.name)}?download=1&user=${encodeURIComponent(t.user)}`;
|
|
@@ -5907,7 +5905,7 @@ const Cu = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5907
5905
|
return i == "asc" ? o.localeCompare(r) : r.localeCompare(o);
|
|
5908
5906
|
})], Kn = (t) => jo[t] ? jo[t] : "Select Tier", de = (t, e, i = null) => {
|
|
5909
5907
|
const n = {
|
|
5910
|
-
detail: i ?
|
|
5908
|
+
detail: i ? u({}, i) : null,
|
|
5911
5909
|
bubbles: !0,
|
|
5912
5910
|
composed: !0
|
|
5913
5911
|
}, s = new CustomEvent(e, n);
|
|
@@ -5947,21 +5945,21 @@ class Eu {
|
|
|
5947
5945
|
`<a ${this.page === 1 ? 'class="current"' : ""}>1</a><i>...</i>`
|
|
5948
5946
|
)
|
|
5949
5947
|
);
|
|
5950
|
-
for (let
|
|
5948
|
+
for (let l = i; l <= n; ++l)
|
|
5951
5949
|
o.appendChild(document.createRange().createContextualFragment(
|
|
5952
|
-
`<a ${this.page ===
|
|
5950
|
+
`<a ${this.page === l ? 'class="current"' : ""}>${l}</a>`
|
|
5953
5951
|
));
|
|
5954
5952
|
n < this.size && o.appendChild(document.createRange().createContextualFragment(
|
|
5955
5953
|
`<i>...</i><a ${this.page === this.size ? 'class="current"' : ""}>${this.size}</a>`
|
|
5956
|
-
)), s.querySelectorAll("span a").forEach((
|
|
5957
|
-
|
|
5958
|
-
this.page = +
|
|
5954
|
+
)), s.querySelectorAll("span a").forEach((l) => {
|
|
5955
|
+
l.addEventListener("click", () => {
|
|
5956
|
+
this.page = +l.innerText, this.Build(e), this.createChangeEvent(this.page);
|
|
5959
5957
|
});
|
|
5960
5958
|
});
|
|
5961
|
-
const [r, ...
|
|
5959
|
+
const [r, ...a] = s.querySelectorAll("a");
|
|
5962
5960
|
r.addEventListener("click", () => {
|
|
5963
5961
|
this.page--, this.page < 1 && (this.page = 1), this.Build(e), this.createChangeEvent(this.page);
|
|
5964
|
-
}),
|
|
5962
|
+
}), a.at(-1).addEventListener("click", () => {
|
|
5965
5963
|
++this.page, this.page > this.size && (this.page = this.size), this.Build(e), this.createChangeEvent(this.page);
|
|
5966
5964
|
}), e.innerHTML = "", e.append(s);
|
|
5967
5965
|
}
|
|
@@ -6071,14 +6069,14 @@ let Be = class extends E {
|
|
|
6071
6069
|
vendor_type: this.vendor.vendor_type,
|
|
6072
6070
|
is_cyber: this.vendor.is_cyber
|
|
6073
6071
|
};
|
|
6074
|
-
this.vendor.vendor_type ==
|
|
6072
|
+
this.vendor.vendor_type == N ? (t.vendor_account_id = this.vendor.vendor_account_id, this.vendor.hasOwnProperty("is_requested") && this.vendor.is_requested == 1 && (t.is_requested = 1)) : t.request_vendor_id = this.vendor.request_vendor_id, this.isLoading = !0;
|
|
6075
6073
|
const e = yield this.api.executeRequest("/vendor_due_diligence/update_risk_tier", "POST", t);
|
|
6076
6074
|
this.isLoading = !1, e || y("Error updating vendor risk tier!", this.shadowRoot);
|
|
6077
6075
|
const i = {
|
|
6078
6076
|
bubbles: !0,
|
|
6079
6077
|
composed: !0,
|
|
6080
6078
|
detail: {
|
|
6081
|
-
currentVendor:
|
|
6079
|
+
currentVendor: u(u({}, this.vendor), t)
|
|
6082
6080
|
}
|
|
6083
6081
|
};
|
|
6084
6082
|
this.dispatchEvent(new CustomEvent("vendor-edit", i));
|
|
@@ -6100,7 +6098,7 @@ let Be = class extends E {
|
|
|
6100
6098
|
})}</select><div class="actions-wrapper"><button class="button--clear" @click="${this.closePopup}">Cancel</button> <button class="button--primary" @click="${this.changeTier}">${this.isLoading ? g`<page-spinner customStyle="width: 20px; height: 20px"></page-spinner>` : "Change Tier"}</button></div></div>`;
|
|
6101
6099
|
}
|
|
6102
6100
|
};
|
|
6103
|
-
Be.styles = [
|
|
6101
|
+
Be.styles = [O, R`a{color:#1c61c9}select.form-control{display:block;width:265px}`];
|
|
6104
6102
|
zt([
|
|
6105
6103
|
d()
|
|
6106
6104
|
], Be.prototype, "isLoading", 2);
|
|
@@ -6280,10 +6278,10 @@ let ze = class extends E {
|
|
|
6280
6278
|
});
|
|
6281
6279
|
}
|
|
6282
6280
|
render() {
|
|
6283
|
-
return g`<section><div class="blue_container"></div>${this.currentPage === "vendors_page" ? g`<div class="add_vendor_container"><div id="vdd_add_vendor_btn" @click="${() => this.addVendor()}"><sl-icon src="${Lu}"></sl-icon>Add Vendor</div></div>` : g`<div class="back_to_vendor_container"><div class="vendors_back_btn" @click="${() => this.goToMainPage()}"><sl-icon src="${Mu}"></sl-icon>BACK</div>${this.currentVendor.vendor_type !== void 0 && (this.currentVendor.vendor_type ===
|
|
6281
|
+
return g`<section><div class="blue_container"></div>${this.currentPage === "vendors_page" ? g`<div class="add_vendor_container"><div id="vdd_add_vendor_btn" @click="${() => this.addVendor()}"><sl-icon src="${Lu}"></sl-icon>Add Vendor</div></div>` : g`<div class="back_to_vendor_container"><div class="vendors_back_btn" @click="${() => this.goToMainPage()}"><sl-icon src="${Mu}"></sl-icon>BACK</div>${this.currentVendor.vendor_type !== void 0 && (this.currentVendor.vendor_type === N || this.currentVendor.vendor_type === z && this.currentVendor.email_amount > 0 || this.currentVendor.vendor_type === Yi && this.currentVendor.has_vendor_invite > 0) ? g`<div class="send_reminder_btn" @click="${() => this.sendReminderEmail()}">Send Reminder</div>` : ""}</div>`}</section>`;
|
|
6284
6282
|
}
|
|
6285
6283
|
};
|
|
6286
|
-
ze.styles = [
|
|
6284
|
+
ze.styles = [O, F];
|
|
6287
6285
|
Gt([
|
|
6288
6286
|
d()
|
|
6289
6287
|
], ze.prototype, "user", 2);
|
|
@@ -6309,21 +6307,21 @@ ze = Gt([
|
|
|
6309
6307
|
const Aa = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmkteCIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNNC42NDYgNC42NDZhLjUuNSAwIDAgMSAuNzA4IDBMOCA3LjI5M2wyLjY0Ni0yLjY0N2EuNS41IDAgMCAxIC43MDguNzA4TDguNzA3IDhsMi42NDcgMi42NDZhLjUuNSAwIDAgMS0uNzA4LjcwOEw4IDguNzA3bC0yLjY0NiAyLjY0N2EuNS41IDAgMCAxLS43MDgtLjcwOEw3LjI5MyA4IDQuNjQ2IDUuMzU0YS41LjUgMCAwIDEgMC0uNzA4eiIvPgo8L3N2Zz4=";
|
|
6310
6308
|
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) => {
|
|
6311
6309
|
const n = e.constructor, s = n.prototype.attributeChangedCallback;
|
|
6312
|
-
n.prototype.attributeChangedCallback = function(o, r,
|
|
6313
|
-
var
|
|
6314
|
-
const c = n.getPropertyOptions(t),
|
|
6315
|
-
if (o ===
|
|
6316
|
-
const p = c.converter || Vt, I = (typeof p == "function" ? p : (
|
|
6310
|
+
n.prototype.attributeChangedCallback = function(o, r, a) {
|
|
6311
|
+
var l;
|
|
6312
|
+
const c = n.getPropertyOptions(t), h = typeof c.attribute == "string" ? c.attribute : t;
|
|
6313
|
+
if (o === h) {
|
|
6314
|
+
const p = c.converter || Vt, I = (typeof p == "function" ? p : (l = p == null ? void 0 : p.fromAttribute) != null ? l : Vt.fromAttribute)(a, c.type);
|
|
6317
6315
|
this[t] !== I && (this[i] = I);
|
|
6318
6316
|
}
|
|
6319
|
-
s.call(this, o, r,
|
|
6317
|
+
s.call(this, o, r, a);
|
|
6320
6318
|
};
|
|
6321
6319
|
}, 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 {
|
|
6322
6320
|
constructor(t, e) {
|
|
6323
6321
|
this.handleFormData = (i) => {
|
|
6324
6322
|
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";
|
|
6325
|
-
this.host.isConnected && !n && !r && typeof s == "string" && s.length > 0 && typeof o != "undefined" && (Array.isArray(o) ? o.forEach((
|
|
6326
|
-
i.formData.append(s,
|
|
6323
|
+
this.host.isConnected && !n && !r && typeof s == "string" && s.length > 0 && typeof o != "undefined" && (Array.isArray(o) ? o.forEach((a) => {
|
|
6324
|
+
i.formData.append(s, a.toString());
|
|
6327
6325
|
}) : i.formData.append(s, o.toString()));
|
|
6328
6326
|
}, this.handleFormSubmit = (i) => {
|
|
6329
6327
|
var n;
|
|
@@ -6549,8 +6547,14 @@ let Fu = class {
|
|
|
6549
6547
|
}
|
|
6550
6548
|
getTranslationData(e) {
|
|
6551
6549
|
var i, n;
|
|
6552
|
-
|
|
6553
|
-
|
|
6550
|
+
let s;
|
|
6551
|
+
try {
|
|
6552
|
+
s = new Intl.Locale(e.replace(/_/g, "-"));
|
|
6553
|
+
} catch (c) {
|
|
6554
|
+
return { locale: void 0, language: "", region: "", primary: void 0, secondary: void 0 };
|
|
6555
|
+
}
|
|
6556
|
+
const o = s.language.toLowerCase(), r = (n = (i = s.region) === null || i === void 0 ? void 0 : i.toLowerCase()) !== null && n !== void 0 ? n : "", a = Dt.get(`${o}-${r}`), l = Dt.get(o);
|
|
6557
|
+
return { locale: s, language: o, region: r, primary: a, secondary: l };
|
|
6554
6558
|
}
|
|
6555
6559
|
exists(e, i) {
|
|
6556
6560
|
var n;
|
|
@@ -7186,10 +7190,10 @@ let G = class t extends E {
|
|
|
7186
7190
|
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) => ({
|
|
7187
7191
|
id: i.vendor_name,
|
|
7188
7192
|
title: i.vendor_name
|
|
7189
|
-
}))}" @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
|
|
7193
|
+
}))}" @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>`;
|
|
7190
7194
|
}
|
|
7191
7195
|
};
|
|
7192
|
-
G.styles = [F,
|
|
7196
|
+
G.styles = [F, O, R`#confirmationMsg{font-size:16px}.close-dialog-button.close-add-vendor-dialog{background:#fff}`];
|
|
7193
7197
|
ce([
|
|
7194
7198
|
m({ context: $ }),
|
|
7195
7199
|
d()
|
|
@@ -7275,7 +7279,7 @@ let Pe = class extends E {
|
|
|
7275
7279
|
return g`<div><div class="confirmation_cont"><div>Are you sure you want to remove ${this.removeVendorDetails.vendor_name} from your vendors?</div><button @click="${() => this.removeVendor()}">Yes</button></div></div>`;
|
|
7276
7280
|
}
|
|
7277
7281
|
};
|
|
7278
|
-
Pe.styles = [F,
|
|
7282
|
+
Pe.styles = [F, O];
|
|
7279
7283
|
Et([
|
|
7280
7284
|
m({ context: $ }),
|
|
7281
7285
|
d()
|
|
@@ -7339,7 +7343,7 @@ let At = class extends E {
|
|
|
7339
7343
|
return this.error ? g`<div>Error loading content</div>` : g`<div><div class="vdd_subtitle_container"><div>Vendor List</div></div><vendor-header-bar></vendor-header-bar><vendor-subscribed-table></vendor-subscribed-table><cpm-modal id="removeVendorDialog" width="552px" height="100%"><remove-vendor-popup slot="content"></remove-vendor-popup></cpm-modal><cpm-modal noEscClose="${!0}" noOverlayClose="${!0}" id="addVendorDialog" width="552px" minHeight="300px" height="100%"><add-vendor-dialog slot="content"></add-vendor-dialog></cpm-modal></div>`;
|
|
7340
7344
|
}
|
|
7341
7345
|
};
|
|
7342
|
-
At.styles = [
|
|
7346
|
+
At.styles = [O, F];
|
|
7343
7347
|
Ei([
|
|
7344
7348
|
d()
|
|
7345
7349
|
], At.prototype, "error", 2);
|
|
@@ -7383,8 +7387,8 @@ function ah(t) {
|
|
|
7383
7387
|
if (t.hasAttribute("tabindex") && (isNaN(i) || i <= -1) || t.hasAttribute("disabled") || t.closest("[inert]"))
|
|
7384
7388
|
return !1;
|
|
7385
7389
|
if (e === "input" && t.getAttribute("type") === "radio") {
|
|
7386
|
-
const o = t.getRootNode(), r = `input[type='radio'][name="${t.getAttribute("name")}"]`,
|
|
7387
|
-
return
|
|
7390
|
+
const o = t.getRootNode(), r = `input[type='radio'][name="${t.getAttribute("name")}"]`, a = o.querySelector(`${r}:checked`);
|
|
7391
|
+
return a ? a === t : o.querySelector(r) === t;
|
|
7388
7392
|
}
|
|
7389
7393
|
return oh(t) ? (e === "audio" || e === "video") && t.hasAttribute("controls") || t.hasAttribute("tabindex") || t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false" || [
|
|
7390
7394
|
"button",
|
|
@@ -7433,20 +7437,20 @@ var oi = [], ch = class {
|
|
|
7433
7437
|
return;
|
|
7434
7438
|
e.shiftKey ? this.tabDirection = "backward" : this.tabDirection = "forward";
|
|
7435
7439
|
const s = Fo(this.element);
|
|
7436
|
-
let o = s.findIndex((
|
|
7440
|
+
let o = s.findIndex((a) => a === n);
|
|
7437
7441
|
this.previousFocus = this.currentFocus;
|
|
7438
7442
|
const r = this.tabDirection === "forward" ? 1 : -1;
|
|
7439
7443
|
for (; ; ) {
|
|
7440
7444
|
o + r >= s.length ? o = 0 : o + r < 0 ? o = s.length - 1 : o += r, this.previousFocus = this.currentFocus;
|
|
7441
|
-
const
|
|
7445
|
+
const a = (
|
|
7442
7446
|
/** @type {HTMLElement} */
|
|
7443
7447
|
s[o]
|
|
7444
7448
|
);
|
|
7445
|
-
if (this.tabDirection === "backward" && this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus) ||
|
|
7449
|
+
if (this.tabDirection === "backward" && this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus) || a && this.possiblyHasTabbableChildren(a))
|
|
7446
7450
|
return;
|
|
7447
|
-
e.preventDefault(), this.currentFocus =
|
|
7448
|
-
const
|
|
7449
|
-
if (
|
|
7451
|
+
e.preventDefault(), this.currentFocus = a, (i = this.currentFocus) == null || i.focus({ preventScroll: !1 });
|
|
7452
|
+
const l = [...Rs()];
|
|
7453
|
+
if (l.includes(this.currentFocus) || !l.includes(this.previousFocus))
|
|
7450
7454
|
break;
|
|
7451
7455
|
}
|
|
7452
7456
|
setTimeout(() => this.checkFocus());
|
|
@@ -7526,16 +7530,16 @@ const wa = Symbol.for(""), ph = (t) => {
|
|
|
7526
7530
|
})(n) + t[s + 1], t[0]), r: wa }), Wo = /* @__PURE__ */ new Map(), Ah = (t) => (e, ...i) => {
|
|
7527
7531
|
const n = i.length;
|
|
7528
7532
|
let s, o;
|
|
7529
|
-
const r = [],
|
|
7530
|
-
let
|
|
7533
|
+
const r = [], a = [];
|
|
7534
|
+
let l, c = 0, h = !1;
|
|
7531
7535
|
for (; c < n; ) {
|
|
7532
|
-
for (
|
|
7533
|
-
|
|
7534
|
-
c !== n &&
|
|
7536
|
+
for (l = e[c]; c < n && (o = i[c], (s = ph(o)) !== void 0); )
|
|
7537
|
+
l += s + e[++c], h = !0;
|
|
7538
|
+
c !== n && a.push(o), r.push(l), c++;
|
|
7535
7539
|
}
|
|
7536
|
-
if (c === n && r.push(e[n]),
|
|
7540
|
+
if (c === n && r.push(e[n]), h) {
|
|
7537
7541
|
const p = r.join("$$lit$$");
|
|
7538
|
-
(e = Wo.get(p)) === void 0 && (r.raw = r, Wo.set(p, e = r)), i =
|
|
7542
|
+
(e = Wo.get(p)) === void 0 && (r.raw = r, Wo.set(p, e = r)), i = a;
|
|
7539
7543
|
}
|
|
7540
7544
|
return t(e, ...i);
|
|
7541
7545
|
}, Ih = Ah(ee);
|
|
@@ -7837,7 +7841,7 @@ let Ge = class extends E {
|
|
|
7837
7841
|
}
|
|
7838
7842
|
};
|
|
7839
7843
|
Ge.styles = [
|
|
7840
|
-
|
|
7844
|
+
O,
|
|
7841
7845
|
R`.dialog::part(body){position:relative}.dialog::part(body){position:relative!important}`
|
|
7842
7846
|
];
|
|
7843
7847
|
Wt([
|
|
@@ -7874,14 +7878,14 @@ let ie = class extends E {
|
|
|
7874
7878
|
*/
|
|
7875
7879
|
createViewer() {
|
|
7876
7880
|
return A(this, null, function* () {
|
|
7877
|
-
var i, n, s, o, r,
|
|
7881
|
+
var i, n, s, o, r, a, l;
|
|
7878
7882
|
for (; (i = this._documentViewer) != null && i.firstChild; )
|
|
7879
7883
|
(s = this._documentViewer) == null || s.removeChild((n = this._documentViewer) == null ? void 0 : n.lastChild);
|
|
7880
7884
|
if (!this.url)
|
|
7881
7885
|
return;
|
|
7882
7886
|
if (!this.isTxtFile(this.url)) {
|
|
7883
|
-
const c = this.getDocumentCleanURL(this.url),
|
|
7884
|
-
this._documentIframe.src =
|
|
7887
|
+
const c = this.getDocumentCleanURL(this.url), h = `${this.api.BASE_URL}/file-preview?user=${encodeURIComponent(this.api.user)}&url=${c}`;
|
|
7888
|
+
this._documentIframe.src = h.replace("/api/", "/");
|
|
7885
7889
|
return;
|
|
7886
7890
|
}
|
|
7887
7891
|
const t = yield this.api.executeRequest(
|
|
@@ -7895,7 +7899,7 @@ let ie = class extends E {
|
|
|
7895
7899
|
return;
|
|
7896
7900
|
}
|
|
7897
7901
|
const e = document.createElement("object");
|
|
7898
|
-
e.setAttribute("data", t.content), (
|
|
7902
|
+
e.setAttribute("data", t.content), (a = this.document) != null && a.name && ((l = this._documentViewer) == null || l.appendChild(e));
|
|
7899
7903
|
});
|
|
7900
7904
|
}
|
|
7901
7905
|
markAsReviewed(t) {
|
|
@@ -7949,7 +7953,7 @@ let ie = class extends E {
|
|
|
7949
7953
|
}
|
|
7950
7954
|
};
|
|
7951
7955
|
ie.styles = [
|
|
7952
|
-
|
|
7956
|
+
O,
|
|
7953
7957
|
R`object{width:100%;height:500px}textarea{width:100%;min-width:100%;max-width:100%;height:150px;margin:20px 0}.document-review-note{margin:15px 0}.document-review-note p{margin:0}.download-doc-btn{margin-right:15px}.mark-reviewed-btn{display:inline-block}.dv-buttons-wrapper{margin-top:15px;padding-bottom:15px}.no-preview{width:100%;height:300px;border:1px solid #b5b5b5;border-radius:5px;position:relative}.no-preview p{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;font-size:30px;color:#b5b5b5}.download-section{display:flex;justify-content:end;padding-bottom:10px}.actions-wrapper{padding-bottom:20px}iframe{width:100%;min-height:500px}`
|
|
7954
7958
|
];
|
|
7955
7959
|
Se([
|
|
@@ -8214,7 +8218,7 @@ let ne = class extends E {
|
|
|
8214
8218
|
constructor() {
|
|
8215
8219
|
super(), this.isLoading = !1, this.files = [], this.activeFileName = "", this.activeDescription = "", this.fileCategories = {}, document.addEventListener("cpm-multi-select-selection-changed", (t) => {
|
|
8216
8220
|
const e = this.getOtherCategory();
|
|
8217
|
-
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 = _(
|
|
8221
|
+
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 = _(u({}, this.fileCategories), {
|
|
8218
8222
|
[t.detail.id]: Object.fromEntries(t.detail.selectedOptions.map((i) => [i, null]))
|
|
8219
8223
|
});
|
|
8220
8224
|
}), document.addEventListener("other-document-category-description-changed", (t) => {
|
|
@@ -8258,22 +8262,22 @@ let ne = class extends E {
|
|
|
8258
8262
|
const i = new FormData();
|
|
8259
8263
|
if (this.files.map((r) => A(this, null, function* () {
|
|
8260
8264
|
i.append("files[]", r);
|
|
8261
|
-
const
|
|
8265
|
+
const a = Es(r.name);
|
|
8262
8266
|
if (r.size > Is) {
|
|
8263
8267
|
e = !1;
|
|
8264
|
-
const
|
|
8268
|
+
const l = `File ${r.name} exceeds 20MB upload limit. Please choose another file!`;
|
|
8265
8269
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
8266
|
-
error_message:
|
|
8270
|
+
error_message: l,
|
|
8267
8271
|
document_names: r.name
|
|
8268
|
-
}), y(
|
|
8272
|
+
}), y(l, this.shadowRoot), this.isLoading = !1;
|
|
8269
8273
|
}
|
|
8270
|
-
if (
|
|
8274
|
+
if (a) {
|
|
8271
8275
|
e = !1;
|
|
8272
|
-
const
|
|
8276
|
+
const l = `File name '${r.name}' contains unsupported character${a.length == 1 ? "" : "s"} '${a}'. Please rename the file without special symbols and try again.`;
|
|
8273
8277
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
8274
|
-
error_message:
|
|
8278
|
+
error_message: l,
|
|
8275
8279
|
document_names: r.name
|
|
8276
|
-
}), this.isLoading = !1, y(
|
|
8280
|
+
}), this.isLoading = !1, y(l, this.shadowRoot);
|
|
8277
8281
|
}
|
|
8278
8282
|
})), !e)
|
|
8279
8283
|
return;
|
|
@@ -8307,7 +8311,7 @@ let ne = class extends E {
|
|
|
8307
8311
|
return g`<div class="documents-upload-wrapper"><h2>${this.currentVendor.vendor_name} - ADD DOCUMENTS</h2><div class="drop-files"><input type="file" id="files" @change="${this.uploadedFiles}" @drop="${this.filesOnDrag}" multiple="multiple"> <span>Drop file here to upload</span></div><ul class="files-list">${t && this.files && this.files.map((i) => g`<li class="file-item file-item-3"><span class="file-name">${i.name}</span><cpm-multi-select label="Select Categories" .id="${i.name}" .options="${[...t.map((n) => ({ id: n.id, title: n.name }))]}"></cpm-multi-select><span class="file-remove" @click="${() => this.removeFile(i.name)}">X</span></li>`)}</ul><p class="file-types">Allowed file types: pdf, xls, xlsx, csv, doc, docx, ppt, pptx, jpg, png, txt and rtf.</p><div class="actions-wrapper"><button class="button--default" @click="${this.browseFiles}">Browse your computer</button> <button class="button--primary" @click="${this.upload}" .disabled="${!this.files || this.files.length < 1}">${this.isLoading ? g`<page-spinner customStyle="width: 15px; height: 15px;"></page-spinner>` : "Save Documents"}</button></div><cpm-modal id="otherDocumentCategory" width="700px" height="225px"><other-document-category .activeDescription="${this.activeDescription}" .activeFileName="${this.activeFileName}" slot="content"></other-document-category></cpm-modal></div>`;
|
|
8308
8312
|
}
|
|
8309
8313
|
};
|
|
8310
|
-
ne.styles = [
|
|
8314
|
+
ne.styles = [O, Ds];
|
|
8311
8315
|
xe([
|
|
8312
8316
|
d()
|
|
8313
8317
|
], ne.prototype, "isLoading", 2);
|
|
@@ -8365,7 +8369,7 @@ let It = class extends E {
|
|
|
8365
8369
|
}
|
|
8366
8370
|
};
|
|
8367
8371
|
It.styles = [
|
|
8368
|
-
|
|
8372
|
+
O,
|
|
8369
8373
|
R`textarea{max-width:100%;min-width:100%;width:100%;max-height:80px;min-height:80px;height:80px}`
|
|
8370
8374
|
];
|
|
8371
8375
|
wi([
|
|
@@ -8392,7 +8396,7 @@ let se = class extends E {
|
|
|
8392
8396
|
constructor() {
|
|
8393
8397
|
super(), this.isLoading = !1, this.files = [], this.activeFileName = "", this.activeDescription = "", this.fileCategories = {}, document.addEventListener("cpm-multi-select-selection-changed", (t) => {
|
|
8394
8398
|
const e = this.getOtherCategory();
|
|
8395
|
-
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 = _(
|
|
8399
|
+
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 = _(u({}, this.fileCategories), {
|
|
8396
8400
|
[t.detail.id]: Object.fromEntries(t.detail.selectedOptions.map((i) => [i, null]))
|
|
8397
8401
|
});
|
|
8398
8402
|
}), document.addEventListener("other-document-category-description-changed", (t) => {
|
|
@@ -8438,23 +8442,23 @@ let se = class extends E {
|
|
|
8438
8442
|
let i = !0;
|
|
8439
8443
|
this.isLoading = !0;
|
|
8440
8444
|
const n = new FormData();
|
|
8441
|
-
if (this.files.map((
|
|
8442
|
-
n.append("files[]",
|
|
8443
|
-
const
|
|
8444
|
-
if (
|
|
8445
|
+
if (this.files.map((a) => A(this, null, function* () {
|
|
8446
|
+
n.append("files[]", a);
|
|
8447
|
+
const l = Es(a.name);
|
|
8448
|
+
if (a.size > Is) {
|
|
8445
8449
|
i = !1;
|
|
8446
|
-
const c = `File ${
|
|
8450
|
+
const c = `File ${a.name} exceeds 20MB upload limit. Please choose another file!`;
|
|
8447
8451
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
8448
8452
|
error_message: c,
|
|
8449
|
-
document_names:
|
|
8453
|
+
document_names: a.name
|
|
8450
8454
|
}), y(c, this.shadowRoot), this.isLoading = !1;
|
|
8451
8455
|
}
|
|
8452
|
-
if (
|
|
8456
|
+
if (l) {
|
|
8453
8457
|
i = !1;
|
|
8454
|
-
const c = `File name '${
|
|
8458
|
+
const c = `File name '${a.name}' contains unsupported character${l.length == 1 ? "" : "s"} '${l}'. Please rename the file without special symbols and try again.`;
|
|
8455
8459
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
8456
8460
|
error_message: c,
|
|
8457
|
-
document_names:
|
|
8461
|
+
document_names: a.name
|
|
8458
8462
|
}), this.isLoading = !1, y(c, this.shadowRoot);
|
|
8459
8463
|
}
|
|
8460
8464
|
})), !i)
|
|
@@ -8489,7 +8493,7 @@ let se = class extends E {
|
|
|
8489
8493
|
return g`<div class="documents-upload-wrapper"><h2>${this.currentVendor.vendor_name} - ADD DOCUMENTS</h2><div class="drop-files"><input type="file" id="files" @change="${this.uploadedFiles}" @drop="${this.filesOnDrag}" multiple="multiple"> <span>Drop file here to upload</span></div><ul class="files-list">${t && this.files && this.files.map((i) => g`<li class="file-item file-item-3"><span class="file-name">${i.name}</span><cpm-multi-select label="Select Categories" .id="${i.name}" .options="${[...t.map((n) => ({ id: n.id, title: n.name }))]}"></cpm-multi-select><span class="file-remove" @click="${() => this.removeFile(i.name)}">X</span></li>`)}</ul><p class="file-types">Allowed file types: pdf, xls, xlsx, csv, doc, docx, ppt, pptx, jpg, png, txt and rtf.</p><div class="actions-wrapper"><button class="button--default" @click="${this.browseFiles}">Browse your computer</button> <button class="button--primary" @click="${this.upload}" .disabled="${!this.files || this.files.length < 1}">${this.isLoading ? g`<page-spinner customStyle="width: 15px; height: 15px;"></page-spinner>` : "Save Documents"}</button></div><cpm-modal id="otherDocumentCategory" width="700px" height="225px"><other-document-category .activeDescription="${this.activeDescription}" .activeFileName="${this.activeFileName}" slot="content"></other-document-category></cpm-modal></div>`;
|
|
8490
8494
|
}
|
|
8491
8495
|
};
|
|
8492
|
-
se.styles = [
|
|
8496
|
+
se.styles = [O, Ds];
|
|
8493
8497
|
Te([
|
|
8494
8498
|
d()
|
|
8495
8499
|
], se.prototype, "isLoading", 2);
|
|
@@ -8530,7 +8534,7 @@ var Lh = Object.defineProperty, Mh = Object.getOwnPropertyDescriptor, ln = (t, e
|
|
|
8530
8534
|
};
|
|
8531
8535
|
let Ci = class extends E {
|
|
8532
8536
|
render() {
|
|
8533
|
-
return this.currentVendor.vendor_type ==
|
|
8537
|
+
return this.currentVendor.vendor_type == N ? g`<vendor-documents-upload></vendor-documents-upload>` : g`<other-vendor-documents-upload></other-vendor-documents-upload>`;
|
|
8534
8538
|
}
|
|
8535
8539
|
};
|
|
8536
8540
|
ln([
|
|
@@ -8570,7 +8574,7 @@ let M = class t extends E {
|
|
|
8570
8574
|
yield this.markReviewedUnknownVendorDocument(n.id, n.name, n.unknown_vendor_id, s), this.unknownVendorDocuments = this.updateNote(s, n.id, this.unknownVendorDocuments);
|
|
8571
8575
|
break;
|
|
8572
8576
|
}
|
|
8573
|
-
this.activeDocument = _(
|
|
8577
|
+
this.activeDocument = _(u({}, this.activeDocument), {
|
|
8574
8578
|
note: s
|
|
8575
8579
|
}), e.detail.methods.hideLoader();
|
|
8576
8580
|
})), ["partnered-doc-uploaded", "risk-assessment-completed"].forEach((e) => {
|
|
@@ -8582,7 +8586,7 @@ let M = class t extends E {
|
|
|
8582
8586
|
this.isLoading = !0, this.showDocumentsUploadDialog(!1), yield this.getOtherVendorDocuments(), yield this.getUnknownVendorDocuments(), this.isLoading = !1;
|
|
8583
8587
|
}));
|
|
8584
8588
|
}), this.addEventListener("remove-vendor-doc", (e) => A(this, null, function* () {
|
|
8585
|
-
if (e.detail.vendor.vendor_type ===
|
|
8589
|
+
if (e.detail.vendor.vendor_type === N) {
|
|
8586
8590
|
const i = "customer_remove_client_vendor_document", n = {
|
|
8587
8591
|
vendor_document_id: e.detail.document.id,
|
|
8588
8592
|
vendor_account_id: e.detail.vendor.vendor_account_id
|
|
@@ -8605,7 +8609,7 @@ let M = class t extends E {
|
|
|
8605
8609
|
}));
|
|
8606
8610
|
}
|
|
8607
8611
|
updateNote(e, i, n) {
|
|
8608
|
-
return n.map((o) => o.id !== i ?
|
|
8612
|
+
return n.map((o) => o.id !== i ? u({}, o) : _(u({}, o), {
|
|
8609
8613
|
note: e
|
|
8610
8614
|
}));
|
|
8611
8615
|
}
|
|
@@ -8636,7 +8640,7 @@ let M = class t extends E {
|
|
|
8636
8640
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/other_vendor_documents/${this.currentVendor.request_vendor_id}`);
|
|
8637
8641
|
if (e.error || !e.payload)
|
|
8638
8642
|
return y(e.error || "No documents found for this vendor!", this.shadowRoot);
|
|
8639
|
-
e.payload.other_vendor_documents && e.payload.other_vendor_documents.length && (this.otherVendorDocuments = [...e.payload.other_vendor_documents.map((i) => _(
|
|
8643
|
+
e.payload.other_vendor_documents && e.payload.other_vendor_documents.length && (this.otherVendorDocuments = [...e.payload.other_vendor_documents.map((i) => _(u({}, i), {
|
|
8640
8644
|
is_reviewed_text: i.dt_reviewed,
|
|
8641
8645
|
type: Li
|
|
8642
8646
|
}))]);
|
|
@@ -8649,7 +8653,7 @@ let M = class t extends E {
|
|
|
8649
8653
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/unknown_vendor_documents/${this.currentVendor.request_vendor_id}`);
|
|
8650
8654
|
if (e.error || !e.payload)
|
|
8651
8655
|
return y(e.error || "No documents found for this vendor!", this.shadowRoot);
|
|
8652
|
-
e.payload.unknown_vendor_documents && e.payload.unknown_vendor_documents.length && (this.unknownVendorDocuments = [...e.payload.unknown_vendor_documents.map((i) => _(
|
|
8656
|
+
e.payload.unknown_vendor_documents && e.payload.unknown_vendor_documents.length && (this.unknownVendorDocuments = [...e.payload.unknown_vendor_documents.map((i) => _(u({}, i), {
|
|
8653
8657
|
is_reviewed_text: i.dt_reviewed,
|
|
8654
8658
|
type: B
|
|
8655
8659
|
}))]);
|
|
@@ -8657,15 +8661,15 @@ let M = class t extends E {
|
|
|
8657
8661
|
}
|
|
8658
8662
|
getVendorDocuments() {
|
|
8659
8663
|
return A(this, null, function* () {
|
|
8660
|
-
if (this.currentVendor.vendor_type !==
|
|
8664
|
+
if (this.currentVendor.vendor_type !== N || !this.currentVendor.vendor_account_id)
|
|
8661
8665
|
return;
|
|
8662
8666
|
const e = yield this.api.executeRequest(`/vendor_due_diligence/vendor_documents/${this.currentVendor.vendor_account_id}`, "GET");
|
|
8663
8667
|
if (e.error || !e.payload)
|
|
8664
8668
|
return y(e.error || "No documents found for this vendor!", this.shadowRoot);
|
|
8665
|
-
e.payload.vendor_documents && e.payload.vendor_documents.length && (this.vendorDocuments = [...e.payload.vendor_documents.map((i) => _(
|
|
8669
|
+
e.payload.vendor_documents && e.payload.vendor_documents.length && (this.vendorDocuments = [...e.payload.vendor_documents.map((i) => _(u({}, i), {
|
|
8666
8670
|
is_reviewed_text: i.dt_reviewed,
|
|
8667
8671
|
type: ti
|
|
8668
|
-
}))]), e.payload && e.payload.client_docs && e.payload.client_docs.length && (this.clientVendorDocuments = [...e.payload.client_docs.map((i) => _(
|
|
8672
|
+
}))]), e.payload && e.payload.client_docs && e.payload.client_docs.length && (this.clientVendorDocuments = [...e.payload.client_docs.map((i) => _(u({}, i), {
|
|
8669
8673
|
is_reviewed_text: i.dt_reviewed,
|
|
8670
8674
|
type: Rt
|
|
8671
8675
|
}))]);
|
|
@@ -8736,7 +8740,7 @@ let M = class t extends E {
|
|
|
8736
8740
|
});
|
|
8737
8741
|
}
|
|
8738
8742
|
updateItemAfterReviewed(e, i, n) {
|
|
8739
|
-
this[e] = this[e].map((s) => s.id === i ? _(
|
|
8743
|
+
this[e] = this[e].map((s) => s.id === i ? _(u({}, s), { dt_reviewed: n }) : s), this.activeDocument = _(u({}, this.activeDocument), {
|
|
8740
8744
|
dt_reviewed: n
|
|
8741
8745
|
});
|
|
8742
8746
|
}
|
|
@@ -8914,7 +8918,7 @@ let jt = class extends E {
|
|
|
8914
8918
|
}
|
|
8915
8919
|
removeVendor(t) {
|
|
8916
8920
|
return A(this, null, function* () {
|
|
8917
|
-
var
|
|
8921
|
+
var a;
|
|
8918
8922
|
t.preventDefault();
|
|
8919
8923
|
let e = "/vendor_due_diligence/";
|
|
8920
8924
|
this.isLoading = !0;
|
|
@@ -8922,10 +8926,10 @@ let jt = class extends E {
|
|
|
8922
8926
|
is_cyber: this.currentVendor.is_cyber
|
|
8923
8927
|
};
|
|
8924
8928
|
const n = "We're unable to delete this vendor. Please try again!";
|
|
8925
|
-
this.currentVendor.vendor_type ==
|
|
8929
|
+
this.currentVendor.vendor_type == N ? (e += "remove_partner_vendor", i = _(u({}, i), { vendor_account_id: this.currentVendor.vendor_account_id })) : this.currentVendor.vendor_type == z ? (e += "remove_non_partnered_vendor", i = _(u({}, i), { request_vendor_id: this.currentVendor.request_vendor_id })) : this.currentVendor.vendor_type == B && (e += "remove_unknown_vendor", i = _(u({}, i), { unknown_vendor_id: this.currentVendor.request_vendor_id }));
|
|
8926
8930
|
const s = yield this.api.executeRequest(e, "POST", i);
|
|
8927
8931
|
if (!s || s.error_message) {
|
|
8928
|
-
y((
|
|
8932
|
+
y((a = s == null ? void 0 : s.error_message) != null ? a : n, this.shadowRoot), this.isLoading = !1;
|
|
8929
8933
|
return;
|
|
8930
8934
|
}
|
|
8931
8935
|
const o = {
|
|
@@ -8943,7 +8947,7 @@ let jt = class extends E {
|
|
|
8943
8947
|
}
|
|
8944
8948
|
};
|
|
8945
8949
|
jt.styles = [
|
|
8946
|
-
|
|
8950
|
+
O,
|
|
8947
8951
|
R`#removeVendorMsg{margin-top:40px;font-size:16px}`
|
|
8948
8952
|
];
|
|
8949
8953
|
cn([
|
|
@@ -8993,23 +8997,23 @@ let oe = class extends E {
|
|
|
8993
8997
|
let e = !0, i = "edit_non_partner_vendor_info";
|
|
8994
8998
|
this.currentVendor.vendor_type == B && (i = "edit_unknown_vendor_info"), this.isLoading = !0;
|
|
8995
8999
|
const n = new FormData();
|
|
8996
|
-
if (this.files.map((
|
|
8997
|
-
n.append("associated_document_files[]",
|
|
8998
|
-
const
|
|
8999
|
-
if (
|
|
9000
|
+
if (this.files.map((a) => A(this, null, function* () {
|
|
9001
|
+
n.append("associated_document_files[]", a);
|
|
9002
|
+
const l = Es(a.name);
|
|
9003
|
+
if (a.size > Is) {
|
|
9000
9004
|
e = !1;
|
|
9001
|
-
const c = `File ${
|
|
9005
|
+
const c = `File ${a.name} exceeds 20MB upload limit. Please choose another file!`;
|
|
9002
9006
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
9003
9007
|
error_message: c,
|
|
9004
|
-
document_names:
|
|
9008
|
+
document_names: a.name
|
|
9005
9009
|
}), y(c, this.shadowRoot), this.isLoading = !1;
|
|
9006
9010
|
}
|
|
9007
|
-
if (
|
|
9011
|
+
if (l) {
|
|
9008
9012
|
e = !1;
|
|
9009
|
-
const c = `File name '${
|
|
9013
|
+
const c = `File name '${a.name}' contains unsupported character${l.length == 1 ? "" : "s"} '${l}'. Please rename the file without special symbols and try again.`;
|
|
9010
9014
|
yield this.api.executeRequest("/add_logs/cpm_file_upload_fails.log", "POST", {
|
|
9011
9015
|
error_message: c,
|
|
9012
|
-
document_names:
|
|
9016
|
+
document_names: a.name
|
|
9013
9017
|
}), this.isLoading = !1, y(c, this.shadowRoot);
|
|
9014
9018
|
}
|
|
9015
9019
|
})), 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)
|
|
@@ -9027,7 +9031,7 @@ let oe = class extends E {
|
|
|
9027
9031
|
}
|
|
9028
9032
|
const o = {
|
|
9029
9033
|
detail: {
|
|
9030
|
-
currentVendor: _(
|
|
9034
|
+
currentVendor: _(u({}, this.currentVendor), {
|
|
9031
9035
|
description: this.description
|
|
9032
9036
|
})
|
|
9033
9037
|
},
|
|
@@ -9046,7 +9050,7 @@ let oe = class extends E {
|
|
|
9046
9050
|
y(e.error_message, this.shadowRoot);
|
|
9047
9051
|
return;
|
|
9048
9052
|
}
|
|
9049
|
-
this.currentVendor = _(
|
|
9053
|
+
this.currentVendor = _(u({}, this.currentVendor), {
|
|
9050
9054
|
associated_docs: this.currentVendor.associated_docs.filter((i) => i !== t)
|
|
9051
9055
|
});
|
|
9052
9056
|
});
|
|
@@ -9059,7 +9063,7 @@ let oe = class extends E {
|
|
|
9059
9063
|
return g`<div class="edit-vendor-wrapper"><h2>${this.currentVendor.vendor_name} Information & Documents</h2><form @submit="${this.submitEdit}"><div class="mb-2"><label>Category</label> <select class="form-control" .disabled="${t.category_id}" @change="${(i) => this.category_id = i.target.value}"><option value="">Choose category</option>${e.map((i) => g`<option .selected="${t.category_id == i.id}" value="${i.id}">${i.name}</option>`)}</select></div><div><label>Description</label> <textarea class="form-control" required @keyup="${(i) => this.description = i.target.value}">${this.currentVendor.description}</textarea></div><ul class="files-list">${this.currentVendor.associated_docs && this.currentVendor.associated_docs.map((i) => g`<li class="file-item"><span class="file-name"><a href="${this.getFileLink(i)}" target="_blank">${i}</a> </span><span class="file-remove" @click="${() => this.removeFileFromAPI(i)}">X</span></li>`)} ${this.files.map((i) => g`<li class="file-item"><span class="file-name">${i.name}</span> <span class="file-remove" @click="${() => this.removeFile(i.name)}">X</span></li>`)}</ul><div class="upload-files actions-wrapper"><input type="file" id="files" @change="${this.uploadedFiles}" @drop="${this.filesOnDrag}" multiple="multiple"> <button class="button--default" @click="${this.browseFiles}">${this.files.length > 0 ? "Add another file" : "Add Files"}</button> <button class="button--primary submit-btn" type="submit" .disabled="${this.isLoading}">${this.isLoading ? g`<page-spinner customStyle="width:15px;height:15px"></page-spinner>` : "Submit Edit"}</button></div></form></div>`;
|
|
9060
9064
|
}
|
|
9061
9065
|
};
|
|
9062
|
-
oe.styles = [
|
|
9066
|
+
oe.styles = [O, Zh, Ds];
|
|
9063
9067
|
Re([
|
|
9064
9068
|
d()
|
|
9065
9069
|
], oe.prototype, "files", 2);
|
|
@@ -9128,7 +9132,7 @@ const qo = {
|
|
|
9128
9132
|
};
|
|
9129
9133
|
let q = class t extends E {
|
|
9130
9134
|
constructor() {
|
|
9131
|
-
super(), this.page = 0, this.pdf = null, this.riskAssessmentItem =
|
|
9135
|
+
super(), this.page = 0, this.pdf = null, this.riskAssessmentItem = u({}, qo), this.isLoadingSave = !1, this.isLoadingFinish = !1, this.isLoading = !1, document.addEventListener("close-ra-popup", (e) => {
|
|
9132
9136
|
e.detail.isRiskAssessment && (this.page == 9 && this.dispatchEvent(new CustomEvent("risk-assessment-completed", {
|
|
9133
9137
|
bubbles: !0,
|
|
9134
9138
|
composed: !0
|
|
@@ -9170,14 +9174,14 @@ let q = class t extends E {
|
|
|
9170
9174
|
save(e, i = !1) {
|
|
9171
9175
|
return A(this, null, function* () {
|
|
9172
9176
|
if (e.preventDefault(), i ? this.isLoadingFinish = !0 : this.isLoadingSave = !0, !i)
|
|
9173
|
-
for (const
|
|
9174
|
-
this.riskAssessmentItem[
|
|
9177
|
+
for (const l in this.riskAssessmentItem)
|
|
9178
|
+
this.riskAssessmentItem[l] || delete this.riskAssessmentItem[l];
|
|
9175
9179
|
const n = {
|
|
9176
|
-
risk_assessment_responses:
|
|
9180
|
+
risk_assessment_responses: u({}, this.riskAssessmentItem)
|
|
9177
9181
|
};
|
|
9178
|
-
if (this.currentVendor.vendor_type ===
|
|
9179
|
-
for (const
|
|
9180
|
-
if (qo.hasOwnProperty(
|
|
9182
|
+
if (this.currentVendor.vendor_type === N ? 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) {
|
|
9183
|
+
for (const l in this.riskAssessmentItem)
|
|
9184
|
+
if (qo.hasOwnProperty(l) && (this.riskAssessmentItem[l] === null || this.riskAssessmentItem[l] === "")) {
|
|
9181
9185
|
y("Error submitting Risk Assessment Progress. Make sure you have filled all inputs!", this.shadowRoot), this.isLoadingFinish = !1;
|
|
9182
9186
|
return;
|
|
9183
9187
|
}
|
|
@@ -9198,13 +9202,13 @@ let q = class t extends E {
|
|
|
9198
9202
|
bubbles: !0,
|
|
9199
9203
|
composed: !0,
|
|
9200
9204
|
detail: {
|
|
9201
|
-
currentVendor: _(
|
|
9205
|
+
currentVendor: _(u({}, this.currentVendor), {
|
|
9202
9206
|
ra_submitted: _e(/* @__PURE__ */ new Date()),
|
|
9203
9207
|
latest_submit: _e(/* @__PURE__ */ new Date())
|
|
9204
9208
|
})
|
|
9205
9209
|
}
|
|
9206
|
-
},
|
|
9207
|
-
this.dispatchEvent(
|
|
9210
|
+
}, a = new CustomEvent("vendor-edit", r);
|
|
9211
|
+
this.dispatchEvent(a);
|
|
9208
9212
|
});
|
|
9209
9213
|
}
|
|
9210
9214
|
render() {
|
|
@@ -9283,7 +9287,7 @@ let q = class t extends E {
|
|
|
9283
9287
|
return g`<div class="page page-9"><h3>Vendor Risk Assessment Marked as Complete</h3><img src="${xa}" class="page-back-button-icon"> ${e.includes("myriacompliance.com") || this.environment == "local" ? g`<p>The Compliance Log has been updated to reflect this.</p>` : ""}</div>`;
|
|
9284
9288
|
}
|
|
9285
9289
|
};
|
|
9286
|
-
q.styles = [
|
|
9290
|
+
q.styles = [O, Kh];
|
|
9287
9291
|
Ie([
|
|
9288
9292
|
m({ context: Je, subscribe: !0 }),
|
|
9289
9293
|
d()
|
|
@@ -9334,7 +9338,7 @@ let es = class extends E {
|
|
|
9334
9338
|
return g`<div><div class="confirmation_cont"><div>To save this review to your documents and to edit a new version, save this document first.</div><button class="button--primary" @click="${() => this.saveAndEdit()}">Save</button></div></div>`;
|
|
9335
9339
|
}
|
|
9336
9340
|
};
|
|
9337
|
-
es.styles = [F,
|
|
9341
|
+
es.styles = [F, O, R`.confirmation_cont{margin-top:25px}.confirmation_cont button{margin:15px 0 0 auto}`];
|
|
9338
9342
|
es = ip([
|
|
9339
9343
|
w("save-and-edit-ra")
|
|
9340
9344
|
], es);
|
|
@@ -9356,7 +9360,7 @@ let J = class t extends E {
|
|
|
9356
9360
|
`/vendor_due_diligence/save_and_edit_ra/${this.vdd_ra_block_id}/${this.year}/${this.currentVendor.vendor_type}/${e}`,
|
|
9357
9361
|
"POST"
|
|
9358
9362
|
), de(this, "vendor-edit", {
|
|
9359
|
-
currentVendor: _(
|
|
9363
|
+
currentVendor: _(u({}, this.currentVendor), {
|
|
9360
9364
|
ra_exists: 1,
|
|
9361
9365
|
ra_submitted: _e(/* @__PURE__ */ new Date()),
|
|
9362
9366
|
latest_submit: _e(/* @__PURE__ */ new Date())
|
|
@@ -9446,9 +9450,9 @@ let Ze = class extends E {
|
|
|
9446
9450
|
let t = "";
|
|
9447
9451
|
return this.currentVendor.vendor_type !== void 0 && (this.currentVendor.vendor_type == z || this.currentVendor.vendor_type == Yi ? t = `I am conducting my required third-party vendor due diligence and have been utilizing RIA in a Box to organize my firm’s due diligence efforts via their MyRIACompliance® Vendor Due Diligence Platform. The Platform allows me to digitally connect with industry leading technology vendors, to help automate my due diligence review and to save me a little time.
|
|
9448
9452
|
|
|
9449
|
-
I would encourage you to join the platform to help streamline the due diligence process for RIA firms. The subscription is currently complementary for the initial vendors joining the platform and takes less than 30 minutes to get started.` : this.currentVendor.vendor_type ==
|
|
9453
|
+
I would encourage you to join the platform to help streamline the due diligence process for RIA firms. The subscription is currently complementary for the initial vendors joining the platform and takes less than 30 minutes to get started.` : this.currentVendor.vendor_type == N && this.currentVendor.is_subscribed ? t = `I am conducting my required third-party vendor due diligence and have been utilizing RIA in a Box to organize my firm’s due diligence efforts via their MyRIACompliance® Vendor Due Diligence Platform. The Platform allows me to digitally connect with industry leading technology vendors, to help automate my due diligence review and save me a little time.
|
|
9450
9454
|
|
|
9451
|
-
In my review, it appears that the documents for your firm have not yet been updated. At your earliest convenience, could you please update those documents in the Platform so that I can complete my due diligence review.` : this.currentVendor.vendor_type ==
|
|
9455
|
+
In my review, it appears that the documents for your firm have not yet been updated. At your earliest convenience, could you please update those documents in the Platform so that I can complete my due diligence review.` : this.currentVendor.vendor_type == N && !this.currentVendor.is_subscribed && (t = `I wanted to reach out to remind you of my pending subscription request on the MyRIACompliance® Vendor Due Diligence Platform.
|
|
9452
9456
|
|
|
9453
9457
|
It is crucial for me to gain access to your documents and resources to effectively evaluate and manage our vendor relationships.
|
|
9454
9458
|
|
|
@@ -9456,11 +9460,11 @@ To approve my request, please log in to your vendor portal, navigate to Manage C
|
|
|
9456
9460
|
}
|
|
9457
9461
|
getDefaultHeader() {
|
|
9458
9462
|
let t = "";
|
|
9459
|
-
return this.currentVendor.vendor_type !== void 0 && (this.currentVendor.vendor_type == z || this.currentVendor.vendor_type == Yi ? t = "Send Reminder To Join" : this.currentVendor.vendor_type ==
|
|
9463
|
+
return this.currentVendor.vendor_type !== void 0 && (this.currentVendor.vendor_type == z || this.currentVendor.vendor_type == Yi ? t = "Send Reminder To Join" : this.currentVendor.vendor_type == N && this.currentVendor.is_subscribed ? t = "Send Reminder To Update Documents" : this.currentVendor.vendor_type == N && !this.currentVendor.is_subscribed && (t = "Send Reminder To Subscribe")), t;
|
|
9460
9464
|
}
|
|
9461
9465
|
getDefaultInstructions() {
|
|
9462
9466
|
let t = "";
|
|
9463
|
-
return this.currentVendor.vendor_type !== void 0 && (this.currentVendor.vendor_type == z || this.currentVendor.vendor_type == Yi ? t = `Remind ${this.currentVendor.vendor_name !== null ? this.currentVendor.vendor_name : "Vendor"} to join the Vendor Due Diligence to distribute relevant information.` : this.currentVendor.vendor_type ==
|
|
9467
|
+
return this.currentVendor.vendor_type !== void 0 && (this.currentVendor.vendor_type == z || this.currentVendor.vendor_type == Yi ? t = `Remind ${this.currentVendor.vendor_name !== null ? this.currentVendor.vendor_name : "Vendor"} to join the Vendor Due Diligence to distribute relevant information.` : this.currentVendor.vendor_type == N && this.currentVendor.is_subscribed ? t = `Remind ${this.currentVendor.vendor_name !== null ? this.currentVendor.vendor_name : "Vendor"} to update key vendor due diligence documents.` : this.currentVendor.vendor_type == N && !this.currentVendor.is_subscribed && (t = `Remind ${this.currentVendor.vendor_name !== null ? this.currentVendor.vendor_name : "Vendor"} to accept your pending subscription request.`)), t;
|
|
9464
9468
|
}
|
|
9465
9469
|
handleInputChange(t) {
|
|
9466
9470
|
const e = t.target;
|
|
@@ -9484,7 +9488,7 @@ To approve my request, please log in to your vendor portal, navigate to Manage C
|
|
|
9484
9488
|
request_vendor_id: e.request_vendor_id,
|
|
9485
9489
|
email_type: 1,
|
|
9486
9490
|
client_email_content: this.submitText
|
|
9487
|
-
} : e.vendor_type ==
|
|
9491
|
+
} : e.vendor_type == N ? i = {
|
|
9488
9492
|
vendor_account_id: e.vendor_account_id,
|
|
9489
9493
|
email_type: e.is_subscribed ? 3 : 2,
|
|
9490
9494
|
client_email_content: this.submitText
|
|
@@ -9506,7 +9510,7 @@ To approve my request, please log in to your vendor portal, navigate to Manage C
|
|
|
9506
9510
|
return this.currentVendor.vendor_type ? g`<div class="reminder_cont"><p class="reminder_header">${this.getDefaultHeader()}</p><div class="reminder_instructions">${this.getDefaultInstructions()}</div><div class="reminder_content"><textarea class="reminder_textarea" .value="${this.getDefaultText()}" @input="${this.handleInputChange}"></textarea></div><div class="actions-wrapper"><div class="button--clear" @click="${this.closePopup}">Cancel</div><div class="button--primary no-margin" @click="${this.handleVendorReminder}">${this.isLoading ? g`<page-spinner customStyle="width: 20px; height: 20px"></page-spinner>` : "Confirm"}</div></div></div>` : g`<div class="error-message">Error: Error retrieveing vendor details.</div>`;
|
|
9507
9511
|
}
|
|
9508
9512
|
};
|
|
9509
|
-
Ze.styles = [
|
|
9513
|
+
Ze.styles = [O, F];
|
|
9510
9514
|
qt([
|
|
9511
9515
|
m({ context: $ }),
|
|
9512
9516
|
d()
|
|
@@ -9543,7 +9547,7 @@ let Ct = class extends E {
|
|
|
9543
9547
|
fetchRiskTier() {
|
|
9544
9548
|
return A(this, null, function* () {
|
|
9545
9549
|
this.isLoading = !0;
|
|
9546
|
-
const t = this.currentVendor.vendor_type ==
|
|
9550
|
+
const t = this.currentVendor.vendor_type == N ? this.currentVendor.vendor_account_id : this.currentVendor.request_vendor_id, e = yield this.api.executeRequest(`/vendor_due_diligence/get_vendor_risk_tier_recommendation/${this.currentVendor.vendor_type}/${t}`, "GET");
|
|
9547
9551
|
this.isLoading = !1, e && e.payload.vendor_risk_tier_recommendation && (this.riskTier = e.payload.vendor_risk_tier_recommendation);
|
|
9548
9552
|
});
|
|
9549
9553
|
}
|
|
@@ -9554,14 +9558,14 @@ let Ct = class extends E {
|
|
|
9554
9558
|
vendor_type: this.currentVendor.vendor_type,
|
|
9555
9559
|
is_cyber: this.currentVendor.is_cyber
|
|
9556
9560
|
};
|
|
9557
|
-
this.currentVendor.vendor_type ==
|
|
9561
|
+
this.currentVendor.vendor_type == N ? (t.vendor_account_id = this.currentVendor.vendor_account_id, this.currentVendor.hasOwnProperty("is_requested") && this.currentVendor.is_requested == 1 && (t.is_requested = 1)) : t.request_vendor_id = this.currentVendor.request_vendor_id, this.isLoading = !0;
|
|
9558
9562
|
const e = yield this.api.executeRequest("/vendor_due_diligence/update_risk_tier", "POST", t);
|
|
9559
9563
|
this.isLoading = !1, e || y("Error updating vendor risk tier!", this.shadowRoot);
|
|
9560
9564
|
const i = {
|
|
9561
9565
|
bubbles: !0,
|
|
9562
9566
|
composed: !0,
|
|
9563
9567
|
detail: {
|
|
9564
|
-
currentVendor:
|
|
9568
|
+
currentVendor: u(u({}, this.currentVendor), t)
|
|
9565
9569
|
}
|
|
9566
9570
|
};
|
|
9567
9571
|
this.dispatchEvent(new CustomEvent("vendor-edit", i)), this.closePopupEvent();
|
|
@@ -9581,7 +9585,7 @@ let Ct = class extends E {
|
|
|
9581
9585
|
return g`<div class="risk-tier-wrapper"><h1>Select Risk Tier</h1><p>Current Tier: <span class="show-tier">${this.currentVendor.risk_tier}</span></p><p>Recommended Tier: <span class="show-tier">${this.riskTier}</span></p><p>Based on your responses in your Risk Assessment, consider reclassifying the vendor according to our recommandation.</p><div class="actions-wrapper"><button class="button--clear" @click="${this.closePopup}">Cancel</button> <button class="button--primary" @click="${this.changeTier}">${this.isLoading ? g`<page-spinner customStyle="width: 20px; height: 20px"></page-spinner>` : "Change Tier"}</button></div></div>`;
|
|
9582
9586
|
}
|
|
9583
9587
|
};
|
|
9584
|
-
Ct.styles = [
|
|
9588
|
+
Ct.styles = [O, R`a{color:#1c61c9}select.form-control{display:block;width:265px}`];
|
|
9585
9589
|
Si([
|
|
9586
9590
|
d()
|
|
9587
9591
|
], Ct.prototype, "isLoading", 2);
|
|
@@ -9634,7 +9638,7 @@ let re = class t extends E {
|
|
|
9634
9638
|
});
|
|
9635
9639
|
}
|
|
9636
9640
|
getVendorActivityData() {
|
|
9637
|
-
this.currentVendor.vendor_type ==
|
|
9641
|
+
this.currentVendor.vendor_type == N && this.getActivityData(
|
|
9638
9642
|
`/vendor_due_diligence/get_partnered_vendor_activity_log/${this.currentVendor.vendor_account_id}`
|
|
9639
9643
|
), this.currentVendor.vendor_type == z && this.getActivityData(
|
|
9640
9644
|
`/vendor_due_diligence/get_non_partnered_vendor_activity_log/${this.currentVendor.request_vendor_id}`
|
|
@@ -9656,7 +9660,7 @@ let re = class t extends E {
|
|
|
9656
9660
|
bubbles: !0,
|
|
9657
9661
|
composed: !0,
|
|
9658
9662
|
detail: {
|
|
9659
|
-
currentVendor: _(
|
|
9663
|
+
currentVendor: _(u({}, this.currentVendor), {
|
|
9660
9664
|
associated_docs: i.payload.associated_docs
|
|
9661
9665
|
})
|
|
9662
9666
|
}
|
|
@@ -9670,7 +9674,7 @@ let re = class t extends E {
|
|
|
9670
9674
|
return this.error ? g`<div>Error loading content</div>` : g`<div><div class="vdd_subtitle_container"><div>Vendor List</div></div><vendor-header-bar></vendor-header-bar><div class="vendor-info-wrapper"><vendor-details .isLoading="${this.isLoading}"></vendor-details><vendor-activity .isLoading="${this.isLoading}"></vendor-activity></div><vendor-documents-table></vendor-documents-table><cpm-modal id="inviteVendorDialog" width="700px" height="600px"><vendor-invite-dialog slot="content"></vendor-invite-dialog></cpm-modal><cpm-modal id="updateTierModal" width="500px" height="unset"><update-tier slot="content"></update-tier></cpm-modal></div>`;
|
|
9671
9675
|
}
|
|
9672
9676
|
};
|
|
9673
|
-
re.styles = [
|
|
9677
|
+
re.styles = [O, F];
|
|
9674
9678
|
De([
|
|
9675
9679
|
m({ context: le }),
|
|
9676
9680
|
d()
|
|
@@ -9767,8 +9771,8 @@ const Cp = Ap(ts), mp = R`.form-build-wrapper form>div>h2{border-bottom:4px soli
|
|
|
9767
9771
|
}, Ko = (t, e) => t.part_order > e.part_order ? 1 : -1, Ep = (t) => {
|
|
9768
9772
|
const e = {}, i = (n) => {
|
|
9769
9773
|
for (const o in n) {
|
|
9770
|
-
const r = n[o],
|
|
9771
|
-
e[o] = c, typeof
|
|
9774
|
+
const r = n[o], a = r.children || {}, s = r, { children: l } = s, c = un(s, ["children"]);
|
|
9775
|
+
e[o] = c, typeof a == "object" && a !== null && i(a);
|
|
9772
9776
|
}
|
|
9773
9777
|
};
|
|
9774
9778
|
return i(t), e;
|
|
@@ -9814,12 +9818,12 @@ let ye = class extends E {
|
|
|
9814
9818
|
let s = vp(t.attributes, n, e);
|
|
9815
9819
|
const o = wp(s);
|
|
9816
9820
|
if (o.hasOwnProperty("trigger_source")) {
|
|
9817
|
-
const c = o.trigger_source,
|
|
9818
|
-
this.flattenData[c] && this.flattenData[c].response_value !=
|
|
9821
|
+
const c = o.trigger_source, h = o.trigger_value;
|
|
9822
|
+
this.flattenData[c] && this.flattenData[c].response_value != h && (i = !0, s = s.replace('style="', 'style="display:none!important;'));
|
|
9819
9823
|
}
|
|
9820
|
-
const [r,
|
|
9821
|
-
this.template += fp(t, e,
|
|
9822
|
-
this.buildItem(
|
|
9824
|
+
const [r, a] = bp(t, s), l = yp(t, r, a, s, e);
|
|
9825
|
+
this.template += fp(t, e, l), this.splitSections && e && !i && (this.riskSections = [...this.riskSections, t]), t.children && Object.values(t.children).sort(Ko).map((h) => {
|
|
9826
|
+
this.buildItem(h, t.tag === "form");
|
|
9823
9827
|
}), this.template += `</${t.tag}>`;
|
|
9824
9828
|
}
|
|
9825
9829
|
formSubmit(t) {
|
|
@@ -9839,7 +9843,7 @@ let ye = class extends E {
|
|
|
9839
9843
|
return g`<div class="form-build-wrapper">${this.buildForm()}</div>`;
|
|
9840
9844
|
}
|
|
9841
9845
|
};
|
|
9842
|
-
ye.styles = [F,
|
|
9846
|
+
ye.styles = [F, O, mp];
|
|
9843
9847
|
Qe([
|
|
9844
9848
|
m({ context: $ }),
|
|
9845
9849
|
d()
|
|
@@ -9918,7 +9922,7 @@ let mt = class extends E {
|
|
|
9918
9922
|
vendor_type: this.currentVendor.vendor_type,
|
|
9919
9923
|
is_cyber: this.currentVendor.is_cyber
|
|
9920
9924
|
};
|
|
9921
|
-
this.currentVendor.vendor_type ==
|
|
9925
|
+
this.currentVendor.vendor_type == N ? (t.vendor_account_id = this.currentVendor.vendor_account_id, this.currentVendor.hasOwnProperty("is_requested") && this.currentVendor.is_requested == 1 && (t.is_requested = 1)) : t.request_vendor_id = this.currentVendor.request_vendor_id, this.isLoading = !0;
|
|
9922
9926
|
const e = yield this.api.executeRequest("/vendor_due_diligence/update_risk_tier", "POST", t);
|
|
9923
9927
|
if (this.isLoading = !1, !e) {
|
|
9924
9928
|
y("Error occurred while saving data. Please choose the risk tier and try again!", this.shadowRoot);
|
|
@@ -9928,7 +9932,7 @@ let mt = class extends E {
|
|
|
9928
9932
|
bubbles: !0,
|
|
9929
9933
|
composed: !0,
|
|
9930
9934
|
detail: {
|
|
9931
|
-
currentVendor:
|
|
9935
|
+
currentVendor: u(u({}, this.currentVendor), t)
|
|
9932
9936
|
}
|
|
9933
9937
|
};
|
|
9934
9938
|
this.dispatchEvent(new CustomEvent("vendor-edit", i)), this.closePopupEvent(), document.body.classList.remove("sl-scroll-lock");
|
|
@@ -9948,7 +9952,7 @@ let mt = class extends E {
|
|
|
9948
9952
|
return g`<div class="risk-tier-wrapper"><h1>Select Risk Tier</h1><select id="selectRiskTier" class="form-control" @change="${(t) => this.riskTier = t.target.value}"><option value="">Select Risk Tier</option>${pa(ha(1, 4), (t) => g`<option value="${t}" ?selected="${this.currentVendor.risk_tier == t}">Tier ${t}</option>`)}</select><div class="actions-wrapper"><button class="button--clear" @click="${this.closePopup}">Cancel</button> <button class="button--primary" @click="${this.changeTier}">${this.isLoading ? g`<page-spinner customStyle="width: 20px; height: 20px"></page-spinner>` : "Change Tier"}</button></div></div>`;
|
|
9949
9953
|
}
|
|
9950
9954
|
};
|
|
9951
|
-
mt.styles = [
|
|
9955
|
+
mt.styles = [O, R`a{color:#1c61c9}select.form-control{display:block;width:265px}`];
|
|
9952
9956
|
xi([
|
|
9953
9957
|
d()
|
|
9954
9958
|
], mt.prototype, "isLoading", 2);
|
|
@@ -9985,11 +9989,11 @@ let ae = class t extends E {
|
|
|
9985
9989
|
}
|
|
9986
9990
|
formSubmitHandler(e) {
|
|
9987
9991
|
return A(this, null, function* () {
|
|
9988
|
-
const i = _(
|
|
9992
|
+
const i = _(u({}, e.detail.data), {
|
|
9989
9993
|
vendor_type: this.currentVendor.vendor_type
|
|
9990
9994
|
}), n = this.currentVendor.vendor_type === "partnered" ? this.currentVendor.vendor_account_id : this.currentVendor.request_vendor_id;
|
|
9991
9995
|
de(this, "vendor-edit", {
|
|
9992
|
-
currentVendor: _(
|
|
9996
|
+
currentVendor: _(u({}, this.currentVendor), {
|
|
9993
9997
|
ra_exists: 1,
|
|
9994
9998
|
ra_submitted: this.isSubmit ? _e(/* @__PURE__ */ new Date()) : null,
|
|
9995
9999
|
latest_submit: this.isSubmit ? _e(/* @__PURE__ */ new Date()) : null
|
|
@@ -10137,7 +10141,7 @@ let ae = class t extends E {
|
|
|
10137
10141
|
</div>`;
|
|
10138
10142
|
}
|
|
10139
10143
|
};
|
|
10140
|
-
ae.styles = [F,
|
|
10144
|
+
ae.styles = [F, O, gp];
|
|
10141
10145
|
Oe([
|
|
10142
10146
|
m({ context: $ }),
|
|
10143
10147
|
d()
|
|
@@ -10188,25 +10192,23 @@ let P = class t extends E {
|
|
|
10188
10192
|
vendor_page: g`<vendor-page></vendor-page>`,
|
|
10189
10193
|
tos_page: g`<vendor-due-diligence-tos-page></vendor-due-diligence-tos-page>`,
|
|
10190
10194
|
risk_assessment_page: g`<vdd-risk-assessment-page></vdd-risk-assessment-page>`
|
|
10191
|
-
}, this.page = 1, this.
|
|
10192
|
-
this.currentPage == "risk_assessment_page" ? this.currentPage = "vendor_page" :
|
|
10195
|
+
}, this.page = 1, this.addEventListener("back-to-main", () => A(this, null, function* () {
|
|
10196
|
+
this.currentPage == "risk_assessment_page" ? this.currentPage = "vendor_page" : this.currentPage = "vendors_page";
|
|
10193
10197
|
})), this.addEventListener("remove_vendors", (e) => A(this, null, function* () {
|
|
10194
10198
|
this.currentVendor = e.detail.vendorInfo;
|
|
10195
10199
|
})), this.addEventListener("go_to_vendor_button", (e) => A(this, null, function* () {
|
|
10196
|
-
this.currentVendor = e.detail.vendorInfo, this.currentVendor.category_id || (this.currentVendor = _(
|
|
10200
|
+
this.currentVendor = e.detail.vendorInfo, this.currentVendor.category_id || (this.currentVendor = _(u({}, this.currentVendor), {
|
|
10197
10201
|
category_id: 6,
|
|
10198
10202
|
category_name: "Other"
|
|
10199
10203
|
})), this.currentPage = "vendor_page";
|
|
10200
|
-
const i = this.currentVendor.vendor_type === O ? this.currentVendor.vendor_account_id : this.currentVendor.request_vendor_id;
|
|
10201
|
-
this.updateUrlParams(i, this.currentVendor.vendor_type);
|
|
10202
10204
|
})), this.addEventListener("vendor-edit", (e) => {
|
|
10203
10205
|
this.currentVendor = e.detail.currentVendor;
|
|
10204
|
-
const i = this.currentVendor.vendor_type ==
|
|
10205
|
-
this.allVendors = this.allVendors.map((n) => n[i] == this.currentVendor[i] ?
|
|
10206
|
+
const i = this.currentVendor.vendor_type == N ? "vendor_account_id" : "request_vendor_id";
|
|
10207
|
+
this.allVendors = this.allVendors.map((n) => n[i] == this.currentVendor[i] ? u({}, e.detail.currentVendor) : u({}, n));
|
|
10206
10208
|
}), this.addEventListener("vendor-removed", (e) => A(this, null, function* () {
|
|
10207
10209
|
const i = e.detail.vendor;
|
|
10208
10210
|
let n = "request_vendor_id";
|
|
10209
|
-
i.vendor_type ==
|
|
10211
|
+
i.vendor_type == N && (n = "vendor_account_id"), i[n] && (this.allVendors = this.allVendors.filter((s) => s[n] !== i[n]), this.getMrcVendors(), this.currentPage = "vendors_page");
|
|
10210
10212
|
})), this.addEventListener("vendor-added", (e) => A(this, null, function* () {
|
|
10211
10213
|
this.getMrcVendors(), this.getVendors();
|
|
10212
10214
|
})), this.addEventListener("mark-tos-complete", (e) => A(this, null, function* () {
|
|
@@ -10220,31 +10222,7 @@ let P = class t extends E {
|
|
|
10220
10222
|
this.order = this.order == "asc" ? "desc" : "asc", this.allVendors = ua(this.allVendors, i, this.order);
|
|
10221
10223
|
}), this.addEventListener("show-risk-assessment-page", (e) => A(this, null, function* () {
|
|
10222
10224
|
e.detail.showRiskAssessmentPage && (this.currentPage = "risk_assessment_page");
|
|
10223
|
-
}))
|
|
10224
|
-
this.getVendors();
|
|
10225
|
-
});
|
|
10226
|
-
}
|
|
10227
|
-
// URL parameter management methods
|
|
10228
|
-
updateUrlParams(e, i) {
|
|
10229
|
-
const n = new URL(window.location.href);
|
|
10230
|
-
n.searchParams.set("vendor_id", String(e)), n.searchParams.set("vendor_type", i), window.history.pushState({}, "", n);
|
|
10231
|
-
}
|
|
10232
|
-
getUrlParams() {
|
|
10233
|
-
const e = new URL(window.location.href);
|
|
10234
|
-
return {
|
|
10235
|
-
vendor_id: e.searchParams.get("vendor_id"),
|
|
10236
|
-
vendor_type: e.searchParams.get("vendor_type")
|
|
10237
|
-
};
|
|
10238
|
-
}
|
|
10239
|
-
clearUrlParams() {
|
|
10240
|
-
const e = new URL(window.location.href);
|
|
10241
|
-
e.searchParams.delete("vendor_id"), e.searchParams.delete("vendor_type"), window.history.pushState({}, "", e);
|
|
10242
|
-
}
|
|
10243
|
-
findVendorById(e, i) {
|
|
10244
|
-
const n = i === O ? "vendor_account_id" : "request_vendor_id";
|
|
10245
|
-
return this.allVendors.find(
|
|
10246
|
-
(s) => String(s[n]) === e && s.vendor_type === i
|
|
10247
|
-
);
|
|
10225
|
+
}));
|
|
10248
10226
|
}
|
|
10249
10227
|
connectedCallback() {
|
|
10250
10228
|
return A(this, null, function* () {
|
|
@@ -10254,20 +10232,7 @@ let P = class t extends E {
|
|
|
10254
10232
|
const i = (e = this.environment) == null ? void 0 : e.trim().toLowerCase();
|
|
10255
10233
|
this.api = new Eg(i, this.user), vg(i, this.user);
|
|
10256
10234
|
const n = yield this.getVddFreeDetails();
|
|
10257
|
-
|
|
10258
|
-
this.currentPage = "tos_page";
|
|
10259
|
-
else {
|
|
10260
|
-
const s = this.getUrlParams();
|
|
10261
|
-
if (s.vendor_id && s.vendor_type) {
|
|
10262
|
-
this.pageLoading = !0, yield this.getVendors(), this.getMrcVendors();
|
|
10263
|
-
const o = this.findVendorById(s.vendor_id, s.vendor_type);
|
|
10264
|
-
o ? (this.currentVendor = o, this.currentVendor.category_id || (this.currentVendor = _(h({}, this.currentVendor), {
|
|
10265
|
-
category_id: 6,
|
|
10266
|
-
category_name: "Other"
|
|
10267
|
-
})), this.currentPage = "vendor_page") : (this.clearUrlParams(), this.currentPage = "vendors_page"), this.pageLoading = !1;
|
|
10268
|
-
} else
|
|
10269
|
-
this.currentPage = "vendors_page", this.getVendors(), this.getMrcVendors();
|
|
10270
|
-
}
|
|
10235
|
+
this.userVddFreeDetails = n, !this.userVddFreeDetails.is_customer_terms_of_service_completed && this.userVddFreeDetails.is_vdd_free_type ? this.currentPage = "tos_page" : this.currentPage = "vendors_page", this.getVendors(), this.getMrcVendors();
|
|
10271
10236
|
} catch (i) {
|
|
10272
10237
|
return y("Error occurred while initializing API!", this.shadowRoot);
|
|
10273
10238
|
}
|
|
@@ -10295,46 +10260,29 @@ let P = class t extends E {
|
|
|
10295
10260
|
//User Associated Vendors
|
|
10296
10261
|
getVendors() {
|
|
10297
10262
|
return A(this, null, function* () {
|
|
10298
|
-
this.getVendorsAbortController && this.getVendorsAbortController.abort(), this.getVendorsAbortController = new AbortController();
|
|
10299
|
-
const e = this.getVendorsAbortController.signal;
|
|
10300
10263
|
this.isLoading = !0;
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
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);
|
|
10322
|
-
return _(h({}, a), {
|
|
10323
|
-
/**
|
|
10324
|
-
* we need these properties here because of sorting feature
|
|
10325
|
-
*/
|
|
10326
|
-
risk_tier_text: p,
|
|
10327
|
-
status: this.getVendorStatus(a),
|
|
10328
|
-
documents_reviewed: a.has_not_reviewed_vendor_documents ? u : c
|
|
10329
|
-
});
|
|
10330
|
-
}), this.isLoading = !1, i.payload;
|
|
10331
|
-
}
|
|
10332
|
-
return this.isLoading = !1, [];
|
|
10333
|
-
} catch (i) {
|
|
10334
|
-
if (e.aborted)
|
|
10335
|
-
return [];
|
|
10336
|
-
throw this.isLoading = !1, i;
|
|
10264
|
+
const e = yield this.api.executeRequest("/vendor_due_diligence/get_all_vendor_due_diligence_vendor_info", "GET");
|
|
10265
|
+
if (e && e.payload) {
|
|
10266
|
+
let i = [];
|
|
10267
|
+
const n = e.payload.partnered_vendors, s = e.payload.non_partnered_vendors, o = e.payload.unknown_vendors;
|
|
10268
|
+
i = [...n, s, o];
|
|
10269
|
+
const r = i.reduce((a, l) => a.concat(l), []);
|
|
10270
|
+
return r.sort((a, l) => {
|
|
10271
|
+
const c = a.vendor_name.toUpperCase(), h = l.vendor_name.toUpperCase();
|
|
10272
|
+
return c < h ? -1 : c > h ? 1 : 0;
|
|
10273
|
+
}), this.allVendors = r.map((a) => {
|
|
10274
|
+
const l = a.vendor_doc_count ? "View (" + a.vendor_doc_count + ")" : "View", c = a.has_not_reviewed_vendor_documents ? "Unreviewed (" + a.has_not_reviewed_vendor_documents + ")" : "Unreviewed", h = Kn(a == null ? void 0 : a.risk_tier);
|
|
10275
|
+
return _(u({}, a), {
|
|
10276
|
+
/**
|
|
10277
|
+
* we need these properties here because of sorting feature
|
|
10278
|
+
*/
|
|
10279
|
+
risk_tier_text: h,
|
|
10280
|
+
status: this.getVendorStatus(a),
|
|
10281
|
+
documents_reviewed: a.has_not_reviewed_vendor_documents ? c : l
|
|
10282
|
+
});
|
|
10283
|
+
}), this.isLoading = !1, e.payload;
|
|
10337
10284
|
}
|
|
10285
|
+
return this.isLoading = !1, [];
|
|
10338
10286
|
});
|
|
10339
10287
|
}
|
|
10340
10288
|
getVendorStatus(e) {
|
|
@@ -10362,7 +10310,7 @@ let P = class t extends E {
|
|
|
10362
10310
|
return this.error ? g`<div>Error loading content</div>` : g`<div class="main_page_container"><h1>Vendor Due Diligence</h1>${this.pageLoading ? g`<page-spinner class="vendor-docs-spinner"></page-spinner>` : g`${this.pages[this.currentPage]}`}</div>`;
|
|
10363
10311
|
}
|
|
10364
10312
|
};
|
|
10365
|
-
P.styles = [
|
|
10313
|
+
P.styles = [O, F];
|
|
10366
10314
|
j([
|
|
10367
10315
|
K({ context: da }),
|
|
10368
10316
|
d()
|