create-safest-tools 0.4.1 → 0.4.2
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/package.json +1 -1
- package/template/console/reports/ReportDrawer.tsx +9 -0
- package/template/console/reports/types.ts +3 -0
- package/template/package.json +2 -2
- package/template/public/console/auth-shell.js +270 -263
- package/template/src/index.ts +8 -2
- package/template/src/report-workflow.ts +36 -2
- package/template/worker-configuration.d.ts +3 -3
|
@@ -1166,9 +1166,9 @@ Error generating stack: ` + i.message + `
|
|
|
1166
1166
|
G.p = a;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
|
-
var fn = Math.random().toString(36).slice(2), vt = "__reactFiber$" + fn,
|
|
1169
|
+
var fn = Math.random().toString(36).slice(2), vt = "__reactFiber$" + fn, Mt = "__reactProps$" + fn, ii = "__reactContainer$" + fn, uo = "__reactEvents$" + fn, W0 = "__reactListeners$" + fn, F0 = "__reactHandles$" + fn, Md = "__reactResources$" + fn, si = "__reactMarker$" + fn;
|
|
1170
1170
|
function fo(e) {
|
|
1171
|
-
delete e[vt], delete e[
|
|
1171
|
+
delete e[vt], delete e[Mt], delete e[uo], delete e[W0], delete e[F0];
|
|
1172
1172
|
}
|
|
1173
1173
|
function ul(e) {
|
|
1174
1174
|
var t = e[vt];
|
|
@@ -1519,7 +1519,7 @@ Error generating stack: ` + i.message + `
|
|
|
1519
1519
|
function Vd(e) {
|
|
1520
1520
|
var t = dl(e);
|
|
1521
1521
|
if (t && (e = t.stateNode)) {
|
|
1522
|
-
var a = e[
|
|
1522
|
+
var a = e[Mt] || null;
|
|
1523
1523
|
e: switch (e = t.stateNode, t.type) {
|
|
1524
1524
|
case "input":
|
|
1525
1525
|
if (po(e, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name), t = a.name, a.type === "radio" && t != null) {
|
|
@@ -1527,7 +1527,7 @@ Error generating stack: ` + i.message + `
|
|
|
1527
1527
|
for (a = a.querySelectorAll('input[name="' + Ft("" + t) + '"][type="radio"]'), t = 0; t < a.length; t++) {
|
|
1528
1528
|
var i = a[t];
|
|
1529
1529
|
if (i !== e && i.form === e.form) {
|
|
1530
|
-
var s = i[
|
|
1530
|
+
var s = i[Mt] || null;
|
|
1531
1531
|
if (!s) throw Error(d(90));
|
|
1532
1532
|
po(i, s.value, s.defaultValue, s.defaultValue, s.checked, s.defaultChecked, s.type, s.name);
|
|
1533
1533
|
}
|
|
@@ -1557,7 +1557,7 @@ Error generating stack: ` + i.message + `
|
|
|
1557
1557
|
function oi(e, t) {
|
|
1558
1558
|
var a = e.stateNode;
|
|
1559
1559
|
if (a === null) return null;
|
|
1560
|
-
var i = a[
|
|
1560
|
+
var i = a[Mt] || null;
|
|
1561
1561
|
if (i === null) return null;
|
|
1562
1562
|
a = i[t];
|
|
1563
1563
|
e: switch (t) {
|
|
@@ -1609,7 +1609,7 @@ Error generating stack: ` + i.message + `
|
|
|
1609
1609
|
function Xd() {
|
|
1610
1610
|
return !1;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function Ot(e) {
|
|
1613
1613
|
function t(a, i, s, o, f) {
|
|
1614
1614
|
this._reactName = a, this._targetInst = s, this.type = i, this.nativeEvent = o, this.target = f, this.currentTarget = null;
|
|
1615
1615
|
for (var h in e) e.hasOwnProperty(h) && (a = e[h], this[h] = a ? a(o) : o[h]);
|
|
@@ -1639,10 +1639,10 @@ Error generating stack: ` + i.message + `
|
|
|
1639
1639
|
},
|
|
1640
1640
|
defaultPrevented: 0,
|
|
1641
1641
|
isTrusted: 0
|
|
1642
|
-
}, xs =
|
|
1642
|
+
}, xs = Ot(Bn), ui = y({}, Bn, {
|
|
1643
1643
|
view: 0,
|
|
1644
1644
|
detail: 0
|
|
1645
|
-
}), sv =
|
|
1645
|
+
}), sv = Ot(ui), wo, So, di, js = y({}, ui, {
|
|
1646
1646
|
screenX: 0,
|
|
1647
1647
|
screenY: 0,
|
|
1648
1648
|
clientX: 0,
|
|
@@ -1665,13 +1665,13 @@ Error generating stack: ` + i.message + `
|
|
|
1665
1665
|
movementY: function(e) {
|
|
1666
1666
|
return "movementY" in e ? e.movementY : So;
|
|
1667
1667
|
}
|
|
1668
|
-
}), Zd =
|
|
1668
|
+
}), Zd = Ot(js), rv = Ot(y({}, js, { dataTransfer: 0 })), No = Ot(y({}, ui, { relatedTarget: 0 })), ov = Ot(y({}, Bn, {
|
|
1669
1669
|
animationName: 0,
|
|
1670
1670
|
elapsedTime: 0,
|
|
1671
1671
|
pseudoElement: 0
|
|
1672
|
-
})), cv =
|
|
1672
|
+
})), cv = Ot(y({}, Bn, { clipboardData: function(e) {
|
|
1673
1673
|
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
|
|
1674
|
-
} })), Kd =
|
|
1674
|
+
} })), Kd = Ot(y({}, Bn, { data: 0 })), uv = {
|
|
1675
1675
|
Esc: "Escape",
|
|
1676
1676
|
Spacebar: " ",
|
|
1677
1677
|
Left: "ArrowLeft",
|
|
@@ -1734,7 +1734,7 @@ Error generating stack: ` + i.message + `
|
|
|
1734
1734
|
function Co() {
|
|
1735
1735
|
return hv;
|
|
1736
1736
|
}
|
|
1737
|
-
var pv =
|
|
1737
|
+
var pv = Ot(y({}, ui, {
|
|
1738
1738
|
key: function(e) {
|
|
1739
1739
|
if (e.key) {
|
|
1740
1740
|
var t = uv[e.key] || e.key;
|
|
@@ -1760,7 +1760,7 @@ Error generating stack: ` + i.message + `
|
|
|
1760
1760
|
which: function(e) {
|
|
1761
1761
|
return e.type === "keypress" ? ys(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
|
|
1762
1762
|
}
|
|
1763
|
-
})), Jd =
|
|
1763
|
+
})), Jd = Ot(y({}, js, {
|
|
1764
1764
|
pointerId: 0,
|
|
1765
1765
|
width: 0,
|
|
1766
1766
|
height: 0,
|
|
@@ -1771,7 +1771,7 @@ Error generating stack: ` + i.message + `
|
|
|
1771
1771
|
twist: 0,
|
|
1772
1772
|
pointerType: 0,
|
|
1773
1773
|
isPrimary: 0
|
|
1774
|
-
})), mv =
|
|
1774
|
+
})), mv = Ot(y({}, ui, {
|
|
1775
1775
|
touches: 0,
|
|
1776
1776
|
targetTouches: 0,
|
|
1777
1777
|
changedTouches: 0,
|
|
@@ -1780,11 +1780,11 @@ Error generating stack: ` + i.message + `
|
|
|
1780
1780
|
ctrlKey: 0,
|
|
1781
1781
|
shiftKey: 0,
|
|
1782
1782
|
getModifierState: Co
|
|
1783
|
-
})), vv =
|
|
1783
|
+
})), vv = Ot(y({}, Bn, {
|
|
1784
1784
|
propertyName: 0,
|
|
1785
1785
|
elapsedTime: 0,
|
|
1786
1786
|
pseudoElement: 0
|
|
1787
|
-
})), gv =
|
|
1787
|
+
})), gv = Ot(y({}, js, {
|
|
1788
1788
|
deltaX: function(e) {
|
|
1789
1789
|
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
|
|
1790
1790
|
},
|
|
@@ -1793,7 +1793,7 @@ Error generating stack: ` + i.message + `
|
|
|
1793
1793
|
},
|
|
1794
1794
|
deltaZ: 0,
|
|
1795
1795
|
deltaMode: 0
|
|
1796
|
-
})), yv =
|
|
1796
|
+
})), yv = Ot(y({}, Bn, {
|
|
1797
1797
|
newState: 0,
|
|
1798
1798
|
oldState: 0
|
|
1799
1799
|
})), bv = [
|
|
@@ -2210,7 +2210,7 @@ Error generating stack: ` + i.message + `
|
|
|
2210
2210
|
}
|
|
2211
2211
|
function _f(e) {
|
|
2212
2212
|
var t = e.stateNode, a = e.type, i = e.memoizedProps;
|
|
2213
|
-
switch (t[vt] = e, t[
|
|
2213
|
+
switch (t[vt] = e, t[Mt] = i, a) {
|
|
2214
2214
|
case "dialog":
|
|
2215
2215
|
Ae("cancel", t), Ae("close", t);
|
|
2216
2216
|
break;
|
|
@@ -2278,7 +2278,7 @@ Error generating stack: ` + i.message + `
|
|
|
2278
2278
|
}
|
|
2279
2279
|
function Qo() {
|
|
2280
2280
|
var e = mn;
|
|
2281
|
-
return e !== null && (
|
|
2281
|
+
return e !== null && (zt === null ? zt = e : zt.push.apply(zt, e), mn = null), e;
|
|
2282
2282
|
}
|
|
2283
2283
|
function yi(e) {
|
|
2284
2284
|
mn === null ? mn = [e] : mn.push(e);
|
|
@@ -3175,7 +3175,7 @@ Error generating stack: ` + i.message + `
|
|
|
3175
3175
|
}
|
|
3176
3176
|
function Jf(e) {
|
|
3177
3177
|
var t = Vn(e, 2);
|
|
3178
|
-
t !== null &&
|
|
3178
|
+
t !== null && Ut(t, e, 2);
|
|
3179
3179
|
}
|
|
3180
3180
|
function dc(e) {
|
|
3181
3181
|
var t = _t();
|
|
@@ -3525,7 +3525,7 @@ Error generating stack: ` + i.message + `
|
|
|
3525
3525
|
var a = ia();
|
|
3526
3526
|
e = Fn(a);
|
|
3527
3527
|
var i = Pn(t, e, a);
|
|
3528
|
-
i !== null && (
|
|
3528
|
+
i !== null && (Ut(i, t, a), Si(i, t, a)), t = { cache: Xo() }, e.payload = t;
|
|
3529
3529
|
return;
|
|
3530
3530
|
}
|
|
3531
3531
|
t = t.return;
|
|
@@ -3541,7 +3541,7 @@ Error generating stack: ` + i.message + `
|
|
|
3541
3541
|
hasEagerState: !1,
|
|
3542
3542
|
eagerState: null,
|
|
3543
3543
|
next: null
|
|
3544
|
-
}, Gs(e) ? wh(t, a) : (a = Do(e, t, a, i), a !== null && (
|
|
3544
|
+
}, Gs(e) ? wh(t, a) : (a = Do(e, t, a, i), a !== null && (Ut(a, e, i), Sh(a, t, i)));
|
|
3545
3545
|
}
|
|
3546
3546
|
function jh(e, t, a) {
|
|
3547
3547
|
Ti(e, t, a, ia());
|
|
@@ -3564,7 +3564,7 @@ Error generating stack: ` + i.message + `
|
|
|
3564
3564
|
if (s.hasEagerState = !0, s.eagerState = h, Yt(h, f)) return Cs(e, t, s, 0), Ye === null && Ns(), !1;
|
|
3565
3565
|
} catch {
|
|
3566
3566
|
}
|
|
3567
|
-
if (a = Do(e, t, s, i), a !== null) return
|
|
3567
|
+
if (a = Do(e, t, s, i), a !== null) return Ut(a, e, i), Sh(a, t, i), !0;
|
|
3568
3568
|
}
|
|
3569
3569
|
return !1;
|
|
3570
3570
|
}
|
|
@@ -3579,7 +3579,7 @@ Error generating stack: ` + i.message + `
|
|
|
3579
3579
|
next: null
|
|
3580
3580
|
}, Gs(e)) {
|
|
3581
3581
|
if (t) throw Error(d(479));
|
|
3582
|
-
} else t = Do(e, a, i, 2), t !== null &&
|
|
3582
|
+
} else t = Do(e, a, i, 2), t !== null && Ut(t, e, 2);
|
|
3583
3583
|
}
|
|
3584
3584
|
function Gs(e) {
|
|
3585
3585
|
var t = e.alternate;
|
|
@@ -3820,17 +3820,17 @@ Error generating stack: ` + i.message + `
|
|
|
3820
3820
|
enqueueSetState: function(e, t, a) {
|
|
3821
3821
|
e = e._reactInternals;
|
|
3822
3822
|
var i = ia(), s = Fn(i);
|
|
3823
|
-
s.payload = t, a != null && (s.callback = a), t = Pn(e, s, i), t !== null && (
|
|
3823
|
+
s.payload = t, a != null && (s.callback = a), t = Pn(e, s, i), t !== null && (Ut(t, e, i), Si(t, e, i));
|
|
3824
3824
|
},
|
|
3825
3825
|
enqueueReplaceState: function(e, t, a) {
|
|
3826
3826
|
e = e._reactInternals;
|
|
3827
3827
|
var i = ia(), s = Fn(i);
|
|
3828
|
-
s.tag = 1, s.payload = t, a != null && (s.callback = a), t = Pn(e, s, i), t !== null && (
|
|
3828
|
+
s.tag = 1, s.payload = t, a != null && (s.callback = a), t = Pn(e, s, i), t !== null && (Ut(t, e, i), Si(t, e, i));
|
|
3829
3829
|
},
|
|
3830
3830
|
enqueueForceUpdate: function(e, t) {
|
|
3831
3831
|
e = e._reactInternals;
|
|
3832
3832
|
var a = ia(), i = Fn(a);
|
|
3833
|
-
i.tag = 2, t != null && (i.callback = t), t = Pn(e, i, a), t !== null && (
|
|
3833
|
+
i.tag = 2, t != null && (i.callback = t), t = Pn(e, i, a), t !== null && (Ut(t, e, a), Si(t, e, a));
|
|
3834
3834
|
}
|
|
3835
3835
|
};
|
|
3836
3836
|
function _h(e, t, a, i, s, o, f) {
|
|
@@ -4048,7 +4048,7 @@ Error generating stack: ` + i.message + `
|
|
|
4048
4048
|
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
|
|
4049
4049
|
else throw Error(d(558));
|
|
4050
4050
|
else if (lt || _l(e, t, a, !1), s = (a & e.childLanes) !== 0, lt || s) {
|
|
4051
|
-
if (i = Ye, i !== null && (f = Ad(i, a), f !== 0 && f !== o.retryLane)) throw o.retryLane = f, Vn(e, f),
|
|
4051
|
+
if (i = Ye, i !== null && (f = Ad(i, a), f !== 0 && f !== o.retryLane)) throw o.retryLane = f, Vn(e, f), Ut(i, e, f), Sc;
|
|
4052
4052
|
lr(), t = zh(e, t, a);
|
|
4053
4053
|
} else e = o.treeContext, Ze = sa(f.nextSibling), gt = t, Re = !0, mn = null, na = !1, e !== null && Cf(t, e), t = Zs(t, i), t.flags |= 4096;
|
|
4054
4054
|
return t;
|
|
@@ -4146,7 +4146,7 @@ Error generating stack: ` + i.message + `
|
|
|
4146
4146
|
stack: null
|
|
4147
4147
|
}), t = Ec(e, t, a);
|
|
4148
4148
|
} else if (lt || _l(e, t, a, !1), f = (a & e.childLanes) !== 0, lt || f) {
|
|
4149
|
-
if (f = Ye, f !== null && (i = Ad(f, a), i !== 0 && i !== N.retryLane)) throw N.retryLane = i, Vn(e, i),
|
|
4149
|
+
if (f = Ye, f !== null && (i = Ad(f, a), i !== 0 && i !== N.retryLane)) throw N.retryLane = i, Vn(e, i), Ut(f, e, i), Sc;
|
|
4150
4150
|
ru(h) || lr(), t = Ec(e, t, a);
|
|
4151
4151
|
} else ru(h) ? (t.flags |= 192, t.child = e.child, t = null) : (e = N.treeContext, Ze = sa(h.nextSibling), gt = t, Re = !0, mn = null, na = !1, e !== null && Cf(t, e), t = Tc(t, i.children), t.flags |= 4096);
|
|
4152
4152
|
return t;
|
|
@@ -4350,7 +4350,7 @@ Error generating stack: ` + i.message + `
|
|
|
4350
4350
|
}
|
|
4351
4351
|
return t;
|
|
4352
4352
|
case 26:
|
|
4353
|
-
return Ks(e, t), e === null ? (a = tm(t.type, null, t.pendingProps, null)) ? t.memoizedState = a : Re || (a = t.type, e = t.pendingProps, i = dr(be.current).createElement(a), i[vt] = t, i[
|
|
4353
|
+
return Ks(e, t), e === null ? (a = tm(t.type, null, t.pendingProps, null)) ? t.memoizedState = a : Re || (a = t.type, e = t.pendingProps, i = dr(be.current).createElement(a), i[vt] = t, i[Mt] = e, xt(i, a, e), dt(i), t.stateNode = i) : t.memoizedState = tm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
|
|
4354
4354
|
case 27:
|
|
4355
4355
|
return ze(t), e === null && Re && (i = t.stateNode = Fp(t.type, t.pendingProps, be.current), gt = t, na = !0, s = Ze, Tn(t.type) ? (cu = s, Ze = sa(i.firstChild)) : Ze = s), bt(e, t, t.pendingProps.children, a), Ks(e, t), e === null && (t.flags |= 4194304), t.child;
|
|
4356
4356
|
case 5:
|
|
@@ -4498,7 +4498,7 @@ Error generating stack: ` + i.message + `
|
|
|
4498
4498
|
o = typeof i.is == "string" ? f.createElement(s, { is: i.is }) : f.createElement(s);
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
4501
|
-
o[vt] = t, o[
|
|
4501
|
+
o[vt] = t, o[Mt] = i;
|
|
4502
4502
|
e: for (f = t.child; f !== null; ) {
|
|
4503
4503
|
if (f.tag === 5 || f.tag === 6) o.appendChild(f.stateNode);
|
|
4504
4504
|
else if (f.tag !== 4 && f.tag !== 27 && f.child !== null) {
|
|
@@ -4803,7 +4803,7 @@ Error generating stack: ` + i.message + `
|
|
|
4803
4803
|
function kc(e, t, a) {
|
|
4804
4804
|
try {
|
|
4805
4805
|
var i = e.stateNode;
|
|
4806
|
-
jg(i, e.type, a, t), i[
|
|
4806
|
+
jg(i, e.type, a, t), i[Mt] = t;
|
|
4807
4807
|
} catch (s) {
|
|
4808
4808
|
Le(e, e.return, s);
|
|
4809
4809
|
}
|
|
@@ -4838,7 +4838,7 @@ Error generating stack: ` + i.message + `
|
|
|
4838
4838
|
var t = e.stateNode, a = e.memoizedProps;
|
|
4839
4839
|
try {
|
|
4840
4840
|
for (var i = e.type, s = t.attributes; s.length; ) t.removeAttributeNode(s[0]);
|
|
4841
|
-
xt(t, i, a), t[vt] = e, t[
|
|
4841
|
+
xt(t, i, a), t[vt] = e, t[Mt] = a;
|
|
4842
4842
|
} catch (o) {
|
|
4843
4843
|
Le(e, e.return, o);
|
|
4844
4844
|
}
|
|
@@ -5013,7 +5013,7 @@ Error generating stack: ` + i.message + `
|
|
|
5013
5013
|
var t = e.alternate;
|
|
5014
5014
|
t !== null && (e.alternate = null, Ph(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && fo(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
|
|
5015
5015
|
}
|
|
5016
|
-
var Ie = null,
|
|
5016
|
+
var Ie = null, kt = !1;
|
|
5017
5017
|
function Za(e, t, a) {
|
|
5018
5018
|
for (a = a.child; a !== null; ) ep(e, t, a), a = a.sibling;
|
|
5019
5019
|
}
|
|
@@ -5028,13 +5028,13 @@ Error generating stack: ` + i.message + `
|
|
|
5028
5028
|
break;
|
|
5029
5029
|
case 27:
|
|
5030
5030
|
it || _a(a, t);
|
|
5031
|
-
var i = Ie, s =
|
|
5032
|
-
Tn(a.type) && (Ie = a.stateNode,
|
|
5031
|
+
var i = Ie, s = kt;
|
|
5032
|
+
Tn(a.type) && (Ie = a.stateNode, kt = !1), Za(e, t, a), Qi(a.stateNode), Ie = i, kt = s;
|
|
5033
5033
|
break;
|
|
5034
5034
|
case 5:
|
|
5035
5035
|
it || _a(a, t);
|
|
5036
5036
|
case 6:
|
|
5037
|
-
if (i = Ie, s =
|
|
5037
|
+
if (i = Ie, s = kt, Ie = null, Za(e, t, a), Ie = i, kt = s, Ie !== null) if (kt) try {
|
|
5038
5038
|
(Ie.nodeType === 9 ? Ie.body : Ie.nodeName === "HTML" ? Ie.ownerDocument.body : Ie).removeChild(a.stateNode);
|
|
5039
5039
|
} catch (o) {
|
|
5040
5040
|
Le(a, t, o);
|
|
@@ -5046,10 +5046,10 @@ Error generating stack: ` + i.message + `
|
|
|
5046
5046
|
}
|
|
5047
5047
|
break;
|
|
5048
5048
|
case 18:
|
|
5049
|
-
Ie !== null && (
|
|
5049
|
+
Ie !== null && (kt ? (e = Ie, Zp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, a.stateNode), Xl(e)) : Zp(Ie, a.stateNode));
|
|
5050
5050
|
break;
|
|
5051
5051
|
case 4:
|
|
5052
|
-
i = Ie, s =
|
|
5052
|
+
i = Ie, s = kt, Ie = a.stateNode.containerInfo, kt = !0, Za(e, t, a), Ie = i, kt = s;
|
|
5053
5053
|
break;
|
|
5054
5054
|
case 0:
|
|
5055
5055
|
case 11:
|
|
@@ -5110,7 +5110,7 @@ Error generating stack: ` + i.message + `
|
|
|
5110
5110
|
}
|
|
5111
5111
|
});
|
|
5112
5112
|
}
|
|
5113
|
-
function
|
|
5113
|
+
function qt(e, t) {
|
|
5114
5114
|
var a = t.deletions;
|
|
5115
5115
|
if (a !== null) for (var i = 0; i < a.length; i++) {
|
|
5116
5116
|
var s = a[i], o = e, f = t, h = f;
|
|
@@ -5118,22 +5118,22 @@ Error generating stack: ` + i.message + `
|
|
|
5118
5118
|
switch (h.tag) {
|
|
5119
5119
|
case 27:
|
|
5120
5120
|
if (Tn(h.type)) {
|
|
5121
|
-
Ie = h.stateNode,
|
|
5121
|
+
Ie = h.stateNode, kt = !1;
|
|
5122
5122
|
break e;
|
|
5123
5123
|
}
|
|
5124
5124
|
break;
|
|
5125
5125
|
case 5:
|
|
5126
|
-
Ie = h.stateNode,
|
|
5126
|
+
Ie = h.stateNode, kt = !1;
|
|
5127
5127
|
break e;
|
|
5128
5128
|
case 3:
|
|
5129
5129
|
case 4:
|
|
5130
|
-
Ie = h.stateNode.containerInfo,
|
|
5130
|
+
Ie = h.stateNode.containerInfo, kt = !0;
|
|
5131
5131
|
break e;
|
|
5132
5132
|
}
|
|
5133
5133
|
h = h.return;
|
|
5134
5134
|
}
|
|
5135
5135
|
if (Ie === null) throw Error(d(160));
|
|
5136
|
-
ep(o, f, s), Ie = null,
|
|
5136
|
+
ep(o, f, s), Ie = null, kt = !1, o = s.alternate, o !== null && (o.return = null), s.return = null;
|
|
5137
5137
|
}
|
|
5138
5138
|
if (t.subtreeFlags & 13886) for (t = t.child; t !== null; ) np(t, e), t = t.sibling;
|
|
5139
5139
|
}
|
|
@@ -5145,14 +5145,14 @@ Error generating stack: ` + i.message + `
|
|
|
5145
5145
|
case 11:
|
|
5146
5146
|
case 14:
|
|
5147
5147
|
case 15:
|
|
5148
|
-
|
|
5148
|
+
qt(t, e), Dt(e), i & 4 && (jn(3, e, e.return), Oi(3, e), jn(5, e, e.return));
|
|
5149
5149
|
break;
|
|
5150
5150
|
case 1:
|
|
5151
|
-
|
|
5151
|
+
qt(t, e), Dt(e), i & 512 && (it || a === null || _a(a, a.return)), i & 64 && Xa && (e = e.updateQueue, e !== null && (i = e.callbacks, i !== null && (a = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = a === null ? i : a.concat(i))));
|
|
5152
5152
|
break;
|
|
5153
5153
|
case 26:
|
|
5154
5154
|
var s = pa;
|
|
5155
|
-
if (
|
|
5155
|
+
if (qt(t, e), Dt(e), i & 512 && (it || a === null || _a(a, a.return)), i & 4) {
|
|
5156
5156
|
var o = a !== null ? a.memoizedState : null;
|
|
5157
5157
|
if (i = e.memoizedState, a === null) if (i === null) if (e.stateNode === null) {
|
|
5158
5158
|
e: {
|
|
@@ -5192,10 +5192,10 @@ Error generating stack: ` + i.message + `
|
|
|
5192
5192
|
}
|
|
5193
5193
|
break;
|
|
5194
5194
|
case 27:
|
|
5195
|
-
|
|
5195
|
+
qt(t, e), Dt(e), i & 512 && (it || a === null || _a(a, a.return)), a !== null && i & 4 && kc(e, e.memoizedProps, a.memoizedProps);
|
|
5196
5196
|
break;
|
|
5197
5197
|
case 5:
|
|
5198
|
-
if (
|
|
5198
|
+
if (qt(t, e), Dt(e), i & 512 && (it || a === null || _a(a, a.return)), e.flags & 32) {
|
|
5199
5199
|
s = e.stateNode;
|
|
5200
5200
|
try {
|
|
5201
5201
|
ml(s, "");
|
|
@@ -5206,7 +5206,7 @@ Error generating stack: ` + i.message + `
|
|
|
5206
5206
|
i & 4 && e.stateNode != null && (s = e.memoizedProps, kc(e, s, a !== null ? a.memoizedProps : s)), i & 1024 && (zc = !0);
|
|
5207
5207
|
break;
|
|
5208
5208
|
case 6:
|
|
5209
|
-
if (
|
|
5209
|
+
if (qt(t, e), Dt(e), i & 4) {
|
|
5210
5210
|
if (e.stateNode === null) throw Error(d(162));
|
|
5211
5211
|
i = e.memoizedProps, a = e.stateNode;
|
|
5212
5212
|
try {
|
|
@@ -5217,7 +5217,7 @@ Error generating stack: ` + i.message + `
|
|
|
5217
5217
|
}
|
|
5218
5218
|
break;
|
|
5219
5219
|
case 3:
|
|
5220
|
-
if (pr = null, s = pa, pa = fr(t.containerInfo),
|
|
5220
|
+
if (pr = null, s = pa, pa = fr(t.containerInfo), qt(t, e), pa = s, Dt(e), i & 4 && a !== null && a.memoizedState.isDehydrated) try {
|
|
5221
5221
|
Xl(t.containerInfo);
|
|
5222
5222
|
} catch (le) {
|
|
5223
5223
|
Le(e, e.return, le);
|
|
@@ -5225,21 +5225,21 @@ Error generating stack: ` + i.message + `
|
|
|
5225
5225
|
zc && (zc = !1, lp(e));
|
|
5226
5226
|
break;
|
|
5227
5227
|
case 4:
|
|
5228
|
-
i = pa, pa = fr(e.stateNode.containerInfo),
|
|
5228
|
+
i = pa, pa = fr(e.stateNode.containerInfo), qt(t, e), Dt(e), pa = i;
|
|
5229
5229
|
break;
|
|
5230
5230
|
case 12:
|
|
5231
|
-
|
|
5231
|
+
qt(t, e), Dt(e);
|
|
5232
5232
|
break;
|
|
5233
5233
|
case 31:
|
|
5234
|
-
|
|
5234
|
+
qt(t, e), Dt(e), i & 4 && (i = e.updateQueue, i !== null && (e.updateQueue = null, Fs(e, i)));
|
|
5235
5235
|
break;
|
|
5236
5236
|
case 13:
|
|
5237
|
-
|
|
5237
|
+
qt(t, e), Dt(e), e.child.flags & 8192 && e.memoizedState !== null != (a !== null && a.memoizedState !== null) && (er = We()), i & 4 && (i = e.updateQueue, i !== null && (e.updateQueue = null, Fs(e, i)));
|
|
5238
5238
|
break;
|
|
5239
5239
|
case 22:
|
|
5240
5240
|
s = e.memoizedState !== null;
|
|
5241
5241
|
var N = a !== null && a.memoizedState !== null, R = Xa, z = it;
|
|
5242
|
-
if (Xa = R || s, it = z || N,
|
|
5242
|
+
if (Xa = R || s, it = z || N, qt(t, e), it = z, Xa = R, Dt(e), i & 8192) e: for (t = e.stateNode, t._visibility = s ? t._visibility & -2 : t._visibility | 1, s && (a === null || N || Xa || it || al(e)), a = null, t = e; ; ) {
|
|
5243
5243
|
if (t.tag === 5 || t.tag === 26) {
|
|
5244
5244
|
if (a === null) {
|
|
5245
5245
|
N = a = t;
|
|
@@ -5287,17 +5287,17 @@ Error generating stack: ` + i.message + `
|
|
|
5287
5287
|
i & 4 && (i = e.updateQueue, i !== null && (a = i.retryQueue, a !== null && (i.retryQueue = null, Fs(e, a))));
|
|
5288
5288
|
break;
|
|
5289
5289
|
case 19:
|
|
5290
|
-
|
|
5290
|
+
qt(t, e), Dt(e), i & 4 && (i = e.updateQueue, i !== null && (e.updateQueue = null, Fs(e, i)));
|
|
5291
5291
|
break;
|
|
5292
5292
|
case 30:
|
|
5293
5293
|
break;
|
|
5294
5294
|
case 21:
|
|
5295
5295
|
break;
|
|
5296
5296
|
default:
|
|
5297
|
-
|
|
5297
|
+
qt(t, e), Dt(e);
|
|
5298
5298
|
}
|
|
5299
5299
|
}
|
|
5300
|
-
function
|
|
5300
|
+
function Dt(e) {
|
|
5301
5301
|
var t = e.flags;
|
|
5302
5302
|
if (t & 2) {
|
|
5303
5303
|
try {
|
|
@@ -5653,7 +5653,7 @@ Error generating stack: ` + i.message + `
|
|
|
5653
5653
|
cacheSignal: function() {
|
|
5654
5654
|
return yt(at).controller.signal;
|
|
5655
5655
|
}
|
|
5656
|
-
}, ig = typeof WeakMap == "function" ? WeakMap : Map, De = 0, Ye = null, _e = null, Te = 0, Ue = 0, Kt = null, wn = !1, Ul = !1, Hc = !1, Ia = 0, Pe = 0, Sn = 0, nl = 0, Bc = 0, Jt = 0, Ll = 0, Ui = null,
|
|
5656
|
+
}, ig = typeof WeakMap == "function" ? WeakMap : Map, De = 0, Ye = null, _e = null, Te = 0, Ue = 0, Kt = null, wn = !1, Ul = !1, Hc = !1, Ia = 0, Pe = 0, Sn = 0, nl = 0, Bc = 0, Jt = 0, Ll = 0, Ui = null, zt = null, $c = !1, er = 0, up = 0, tr = 1 / 0, ar = null, Nn = null, st = 0, Cn = null, Hl = null, Wa = 0, Qc = 0, Vc = null, dp = null, Li = 0, Yc = null;
|
|
5657
5657
|
function ia() {
|
|
5658
5658
|
return (De & 2) !== 0 && Te !== 0 ? Te & -Te : B.T !== null ? Ic() : Ed();
|
|
5659
5659
|
}
|
|
@@ -5664,7 +5664,7 @@ Error generating stack: ` + i.message + `
|
|
|
5664
5664
|
} else Jt = 536870912;
|
|
5665
5665
|
return e = Xt.current, e !== null && (e.flags |= 32), Jt;
|
|
5666
5666
|
}
|
|
5667
|
-
function
|
|
5667
|
+
function Ut(e, t, a) {
|
|
5668
5668
|
(e === Ye && (Ue === 2 || Ue === 9) || e.cancelPendingCommit !== null) && (Bl(e, 0), _n(e, Te, Jt, !1)), fs(e, a), ((De & 2) === 0 || e !== Ye) && (e === Ye && ((De & 2) === 0 && (nl |= a), Pe === 4 && _n(e, Te, Jt, !1)), Fa(e));
|
|
5669
5669
|
}
|
|
5670
5670
|
function hp(e, t, a) {
|
|
@@ -5693,7 +5693,7 @@ Error generating stack: ` + i.message + `
|
|
|
5693
5693
|
h.errorRecoveryDisabledLanes |= o, nl |= o, s = 4;
|
|
5694
5694
|
break e;
|
|
5695
5695
|
}
|
|
5696
|
-
o =
|
|
5696
|
+
o = zt, zt = s, o !== null && (zt === null ? zt = o : zt.push.apply(zt, o));
|
|
5697
5697
|
}
|
|
5698
5698
|
s = f;
|
|
5699
5699
|
}
|
|
@@ -5715,7 +5715,7 @@ Error generating stack: ` + i.message + `
|
|
|
5715
5715
|
_n(i, t, Jt, !wn);
|
|
5716
5716
|
break e;
|
|
5717
5717
|
case 2:
|
|
5718
|
-
|
|
5718
|
+
zt = null;
|
|
5719
5719
|
break;
|
|
5720
5720
|
case 3:
|
|
5721
5721
|
case 5:
|
|
@@ -5725,10 +5725,10 @@ Error generating stack: ` + i.message + `
|
|
|
5725
5725
|
}
|
|
5726
5726
|
if ((t & 62914560) === t && (s = er + 300 - We(), 10 < s)) {
|
|
5727
5727
|
if (_n(i, t, Jt, !wn), ds(i, 0, !0) !== 0) break e;
|
|
5728
|
-
Wa = t, i.timeoutHandle = Gp(pp.bind(null, i, a,
|
|
5728
|
+
Wa = t, i.timeoutHandle = Gp(pp.bind(null, i, a, zt, ar, $c, t, Jt, nl, Ll, wn, o, "Throttled", -0, 0), s);
|
|
5729
5729
|
break e;
|
|
5730
5730
|
}
|
|
5731
|
-
pp(i, a,
|
|
5731
|
+
pp(i, a, zt, ar, $c, t, Jt, nl, Ll, wn, o, null, -0, 0);
|
|
5732
5732
|
}
|
|
5733
5733
|
}
|
|
5734
5734
|
break;
|
|
@@ -5800,7 +5800,7 @@ Error generating stack: ` + i.message + `
|
|
|
5800
5800
|
}
|
|
5801
5801
|
function Bl(e, t) {
|
|
5802
5802
|
var a = e.timeoutHandle;
|
|
5803
|
-
a !== -1 && (e.timeoutHandle = -1, Ng(a)), a = e.cancelPendingCommit, a !== null && (e.cancelPendingCommit = null, a()), Wa = 0, Gc(), Ye = e, _e = a = La(e.current, null), Te = t, Ue = 0, Kt = null, wn = !1, Ul = li(e, t), Hc = !1, Ll = Jt = Bc = nl = Sn = Pe = 0,
|
|
5803
|
+
a !== -1 && (e.timeoutHandle = -1, Ng(a)), a = e.cancelPendingCommit, a !== null && (e.cancelPendingCommit = null, a()), Wa = 0, Gc(), Ye = e, _e = a = La(e.current, null), Te = t, Ue = 0, Kt = null, wn = !1, Ul = li(e, t), Hc = !1, Ll = Jt = Bc = nl = Sn = Pe = 0, zt = Ui = null, $c = !1, (t & 8) !== 0 && (t |= t & 32);
|
|
5804
5804
|
var i = e.entangledLanes;
|
|
5805
5805
|
if (i !== 0) for (e = e.entanglements, i &= t; 0 < i; ) {
|
|
5806
5806
|
var s = 31 - Vt(i), o = 1 << s;
|
|
@@ -6306,8 +6306,8 @@ Error generating stack: ` + i.message + `
|
|
|
6306
6306
|
}
|
|
6307
6307
|
function vg(e, t, a, i, s) {
|
|
6308
6308
|
if (t === "submit" && a && a.stateNode === s) {
|
|
6309
|
-
var o = qp((s[
|
|
6310
|
-
f && (t = (t = f[
|
|
6309
|
+
var o = qp((s[Mt] || null).action), f = i.submitter;
|
|
6310
|
+
f && (t = (t = f[Mt] || null) ? qp(t.formAction) : f.getAttribute("formAction"), t !== null && (o = t, f = null));
|
|
6311
6311
|
var h = new xs("action", "action", null, i, s);
|
|
6312
6312
|
e.push({
|
|
6313
6313
|
event: h,
|
|
@@ -6877,7 +6877,7 @@ Error generating stack: ` + i.message + `
|
|
|
6877
6877
|
break;
|
|
6878
6878
|
default:
|
|
6879
6879
|
if (!kd.hasOwnProperty(a)) e: {
|
|
6880
|
-
if (a[0] === "o" && a[1] === "n" && (s = a.endsWith("Capture"), t = a.slice(2, s ? a.length - 7 : void 0), o = e[
|
|
6880
|
+
if (a[0] === "o" && a[1] === "n" && (s = a.endsWith("Capture"), t = a.slice(2, s ? a.length - 7 : void 0), o = e[Mt] || null, o = o != null ? o[a] : null, typeof o == "function" && e.removeEventListener(t, o, s), typeof i == "function")) {
|
|
6881
6881
|
typeof o != "function" && o !== null && (a in e ? e[a] = null : e.hasAttribute(a) && e.removeAttribute(a)), e.addEventListener(t, i, s);
|
|
6882
6882
|
break e;
|
|
6883
6883
|
}
|
|
@@ -7857,7 +7857,7 @@ Error generating stack: ` + i.message + `
|
|
|
7857
7857
|
return e ? (e = wl, e) : wl;
|
|
7858
7858
|
}
|
|
7859
7859
|
function rm(e, t, a, i, s, o) {
|
|
7860
|
-
s = Xg(s), i.context === null ? i.context = s : i.pendingContext = s, i = Fn(t), i.payload = { element: a }, o = o === void 0 ? null : o, o !== null && (i.callback = o), a = Pn(e, i, t), a !== null && (
|
|
7860
|
+
s = Xg(s), i.context === null ? i.context = s : i.pendingContext = s, i = Fn(t), i.payload = { element: a }, o = o === void 0 ? null : o, o !== null && (i.callback = o), a = Pn(e, i, t), a !== null && (Ut(a, e, t), Si(a, e, t));
|
|
7861
7861
|
}
|
|
7862
7862
|
function om(e, t) {
|
|
7863
7863
|
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
|
|
@@ -7871,7 +7871,7 @@ Error generating stack: ` + i.message + `
|
|
|
7871
7871
|
function cm(e) {
|
|
7872
7872
|
if (e.tag === 13 || e.tag === 31) {
|
|
7873
7873
|
var t = Vn(e, 67108864);
|
|
7874
|
-
t !== null &&
|
|
7874
|
+
t !== null && Ut(t, e, 67108864), hu(e, 67108864);
|
|
7875
7875
|
}
|
|
7876
7876
|
}
|
|
7877
7877
|
function um(e) {
|
|
@@ -7879,7 +7879,7 @@ Error generating stack: ` + i.message + `
|
|
|
7879
7879
|
var t = ia();
|
|
7880
7880
|
t = Td(t);
|
|
7881
7881
|
var a = Vn(e, t);
|
|
7882
|
-
a !== null &&
|
|
7882
|
+
a !== null && Ut(a, e, t), hu(e, t);
|
|
7883
7883
|
}
|
|
7884
7884
|
}
|
|
7885
7885
|
var yr = !0;
|
|
@@ -7927,7 +7927,7 @@ Error generating stack: ` + i.message + `
|
|
|
7927
7927
|
break;
|
|
7928
7928
|
case 31:
|
|
7929
7929
|
case 13:
|
|
7930
|
-
h = Vn(o, 2), h !== null &&
|
|
7930
|
+
h = Vn(o, 2), h !== null && Ut(h, o, 2), nr(), hu(o, 2);
|
|
7931
7931
|
}
|
|
7932
7932
|
if (o = mu(i), o === null && eu(e, t, i, br, a), o === s) break;
|
|
7933
7933
|
s = o;
|
|
@@ -8182,12 +8182,12 @@ Error generating stack: ` + i.message + `
|
|
|
8182
8182
|
}
|
|
8183
8183
|
for (; 0 < On.length && (a = On[0], a.blockedOn === null); ) hm(a), a.blockedOn === null && On.shift();
|
|
8184
8184
|
if (a = (e.ownerDocument || e).$$reactFormReplay, a != null) for (i = 0; i < a.length; i += 3) {
|
|
8185
|
-
var s = a[i], o = a[i + 1], f = s[
|
|
8185
|
+
var s = a[i], o = a[i + 1], f = s[Mt] || null;
|
|
8186
8186
|
if (typeof o == "function") f || mm(a);
|
|
8187
8187
|
else if (f) {
|
|
8188
8188
|
var h = null;
|
|
8189
8189
|
if (o && o.hasAttribute("formAction")) {
|
|
8190
|
-
if (s = o, f = o[
|
|
8190
|
+
if (s = o, f = o[Mt] || null) h = f.formAction;
|
|
8191
8191
|
else if (vu(s) !== null) continue;
|
|
8192
8192
|
} else h = f.action;
|
|
8193
8193
|
typeof h == "function" ? a[i + 1] = h : (a.splice(i, 3), i -= 3), mm(a);
|
|
@@ -9293,7 +9293,7 @@ window.addEventListener(ya.state, (l) => {
|
|
|
9293
9293
|
function sl() {
|
|
9294
9294
|
return zr;
|
|
9295
9295
|
}
|
|
9296
|
-
function
|
|
9296
|
+
function Et(l) {
|
|
9297
9297
|
zr = typeof l == "function" ? l(zr) : l;
|
|
9298
9298
|
for (const r of Dr) r();
|
|
9299
9299
|
}
|
|
@@ -9621,21 +9621,21 @@ function an(l) {
|
|
|
9621
9621
|
}
|
|
9622
9622
|
async function Ur() {
|
|
9623
9623
|
if (!de().session?.permissions.reviewAppeals) {
|
|
9624
|
-
|
|
9624
|
+
Et(an({
|
|
9625
9625
|
...y0(),
|
|
9626
9626
|
loading: !1
|
|
9627
9627
|
}));
|
|
9628
9628
|
return;
|
|
9629
9629
|
}
|
|
9630
9630
|
const l = sl();
|
|
9631
|
-
|
|
9631
|
+
Et(an({
|
|
9632
9632
|
...l,
|
|
9633
9633
|
error: "",
|
|
9634
9634
|
refreshing: !l.loading
|
|
9635
9635
|
}));
|
|
9636
9636
|
try {
|
|
9637
9637
|
const r = await F("/v1/admin/appeals?limit=100");
|
|
9638
|
-
|
|
9638
|
+
Et((c) => {
|
|
9639
9639
|
const u = r.appeals || [], d = c.detail.appealId && u.find((m) => m.id === c.detail.appealId) || null;
|
|
9640
9640
|
return an({
|
|
9641
9641
|
...c,
|
|
@@ -9647,12 +9647,12 @@ async function Ur() {
|
|
|
9647
9647
|
});
|
|
9648
9648
|
});
|
|
9649
9649
|
} catch (r) {
|
|
9650
|
-
|
|
9650
|
+
Et((c) => ({
|
|
9651
9651
|
...c,
|
|
9652
9652
|
error: ne(r, "Appeals could not be loaded.")
|
|
9653
9653
|
}));
|
|
9654
9654
|
} finally {
|
|
9655
|
-
|
|
9655
|
+
Et((r) => an({
|
|
9656
9656
|
...r,
|
|
9657
9657
|
loading: !1,
|
|
9658
9658
|
refreshing: !1
|
|
@@ -9660,7 +9660,7 @@ async function Ur() {
|
|
|
9660
9660
|
}
|
|
9661
9661
|
}
|
|
9662
9662
|
function $y(l) {
|
|
9663
|
-
|
|
9663
|
+
Et((r) => {
|
|
9664
9664
|
const c = r.appeals.find((u) => u.id === l) || null;
|
|
9665
9665
|
return c ? an({
|
|
9666
9666
|
...r,
|
|
@@ -9674,7 +9674,7 @@ function $y(l) {
|
|
|
9674
9674
|
});
|
|
9675
9675
|
}
|
|
9676
9676
|
function b0() {
|
|
9677
|
-
|
|
9677
|
+
Et((l) => an({
|
|
9678
9678
|
...l,
|
|
9679
9679
|
detail: {
|
|
9680
9680
|
appealId: null,
|
|
@@ -9687,7 +9687,7 @@ function b0() {
|
|
|
9687
9687
|
async function Qy() {
|
|
9688
9688
|
const l = sl(), r = l.detail.appeal;
|
|
9689
9689
|
if (!(!r || !l.canReview || l.detail.pendingAction)) {
|
|
9690
|
-
|
|
9690
|
+
Et({
|
|
9691
9691
|
...l,
|
|
9692
9692
|
detail: {
|
|
9693
9693
|
...l.detail,
|
|
@@ -9698,7 +9698,7 @@ async function Qy() {
|
|
|
9698
9698
|
try {
|
|
9699
9699
|
await F(`/v1/admin/appeals/${encodeURIComponent(r.id)}/claim`, { method: "POST" }), await Ur();
|
|
9700
9700
|
} catch (c) {
|
|
9701
|
-
|
|
9701
|
+
Et((u) => ({
|
|
9702
9702
|
...u,
|
|
9703
9703
|
detail: {
|
|
9704
9704
|
...u.detail,
|
|
@@ -9706,7 +9706,7 @@ async function Qy() {
|
|
|
9706
9706
|
}
|
|
9707
9707
|
}));
|
|
9708
9708
|
} finally {
|
|
9709
|
-
|
|
9709
|
+
Et((c) => an({
|
|
9710
9710
|
...c,
|
|
9711
9711
|
detail: {
|
|
9712
9712
|
...c.detail,
|
|
@@ -9720,7 +9720,7 @@ async function Vy(l) {
|
|
|
9720
9720
|
const r = sl(), c = r.detail.appeal, u = !!(c && c.reviewerId === r.actorId && c.claimExpiresAt && Date.parse(c.claimExpiresAt) > Date.now());
|
|
9721
9721
|
if (!c || !r.canReview || r.detail.pendingAction || !u) return;
|
|
9722
9722
|
const d = crypto.randomUUID();
|
|
9723
|
-
|
|
9723
|
+
Et({
|
|
9724
9724
|
...r,
|
|
9725
9725
|
detail: {
|
|
9726
9726
|
...r.detail,
|
|
@@ -9743,7 +9743,7 @@ async function Vy(l) {
|
|
|
9743
9743
|
})
|
|
9744
9744
|
}), b0(), await Ur(), ao();
|
|
9745
9745
|
} catch (m) {
|
|
9746
|
-
|
|
9746
|
+
Et((S) => ({
|
|
9747
9747
|
...S,
|
|
9748
9748
|
detail: {
|
|
9749
9749
|
...S.detail,
|
|
@@ -9751,7 +9751,7 @@ async function Vy(l) {
|
|
|
9751
9751
|
}
|
|
9752
9752
|
}));
|
|
9753
9753
|
} finally {
|
|
9754
|
-
|
|
9754
|
+
Et((m) => an({
|
|
9755
9755
|
...m,
|
|
9756
9756
|
detail: {
|
|
9757
9757
|
...m.detail,
|
|
@@ -9764,10 +9764,10 @@ function Yy() {
|
|
|
9764
9764
|
jm || (jm = !0, ct(() => {
|
|
9765
9765
|
const l = de().session, r = l?.actor.id || "";
|
|
9766
9766
|
if (r === xm) {
|
|
9767
|
-
|
|
9767
|
+
Et((c) => an(c));
|
|
9768
9768
|
return;
|
|
9769
9769
|
}
|
|
9770
|
-
xm = r,
|
|
9770
|
+
xm = r, Et(y0()), l && Ur();
|
|
9771
9771
|
}), window.addEventListener(ya.refresh, () => {
|
|
9772
9772
|
Ur();
|
|
9773
9773
|
}), window.addEventListener(ya.open, (l) => {
|
|
@@ -9782,7 +9782,7 @@ function Yy() {
|
|
|
9782
9782
|
].includes(l.detail.outcome) || typeof l.detail.rationale != "string" || typeof l.detail.participantNotice != "string" || Vy(l.detail);
|
|
9783
9783
|
}));
|
|
9784
9784
|
}
|
|
9785
|
-
var
|
|
9785
|
+
var Tt = {
|
|
9786
9786
|
state: "safest:operations:state",
|
|
9787
9787
|
refresh: "safest:operations:refresh",
|
|
9788
9788
|
filters: "safest:operations:filters",
|
|
@@ -9796,25 +9796,25 @@ function rl(l, r) {
|
|
|
9796
9796
|
window.dispatchEvent(r === void 0 ? new Event(l) : new CustomEvent(l, { detail: r }));
|
|
9797
9797
|
}
|
|
9798
9798
|
function Gy() {
|
|
9799
|
-
rl(
|
|
9799
|
+
rl(Tt.refresh);
|
|
9800
9800
|
}
|
|
9801
9801
|
function Xy(l) {
|
|
9802
|
-
rl(
|
|
9802
|
+
rl(Tt.filters, l);
|
|
9803
9803
|
}
|
|
9804
9804
|
function Zy(l) {
|
|
9805
|
-
rl(
|
|
9805
|
+
rl(Tt.open, { incidentId: l });
|
|
9806
9806
|
}
|
|
9807
9807
|
function wm() {
|
|
9808
|
-
rl(
|
|
9808
|
+
rl(Tt.close);
|
|
9809
9809
|
}
|
|
9810
9810
|
function Ky() {
|
|
9811
|
-
rl(
|
|
9811
|
+
rl(Tt.acknowledge);
|
|
9812
9812
|
}
|
|
9813
9813
|
function Jy() {
|
|
9814
|
-
rl(
|
|
9814
|
+
rl(Tt.retry);
|
|
9815
9815
|
}
|
|
9816
9816
|
function Iy(l) {
|
|
9817
|
-
rl(
|
|
9817
|
+
rl(Tt.resolve, l);
|
|
9818
9818
|
}
|
|
9819
9819
|
function Wy(l) {
|
|
9820
9820
|
if (!l || typeof l != "object") return !1;
|
|
@@ -9841,7 +9841,7 @@ var Lr = /* @__PURE__ */ new Set(), Hr = {
|
|
|
9841
9841
|
record: null
|
|
9842
9842
|
}
|
|
9843
9843
|
};
|
|
9844
|
-
window.addEventListener(
|
|
9844
|
+
window.addEventListener(Tt.state, (l) => {
|
|
9845
9845
|
if (!(!(l instanceof CustomEvent) || !Wy(l.detail))) {
|
|
9846
9846
|
Hr = l.detail;
|
|
9847
9847
|
for (const r of Lr) r();
|
|
@@ -10256,7 +10256,7 @@ window.addEventListener(nn.state, (l) => {
|
|
|
10256
10256
|
function ts() {
|
|
10257
10257
|
return Ir;
|
|
10258
10258
|
}
|
|
10259
|
-
function
|
|
10259
|
+
function Rt(l) {
|
|
10260
10260
|
Ir = typeof l == "function" ? l(Ir) : l;
|
|
10261
10261
|
for (const r of Jr) r();
|
|
10262
10262
|
}
|
|
@@ -10419,35 +10419,35 @@ function Wi(l) {
|
|
|
10419
10419
|
};
|
|
10420
10420
|
}
|
|
10421
10421
|
function wb() {
|
|
10422
|
-
|
|
10422
|
+
Rt(S0());
|
|
10423
10423
|
}
|
|
10424
10424
|
async function wu() {
|
|
10425
10425
|
if (!de().session?.permissions.readAnalytics) {
|
|
10426
|
-
|
|
10426
|
+
Rt(Wi({
|
|
10427
10427
|
...S0(),
|
|
10428
10428
|
loading: !1
|
|
10429
10429
|
}));
|
|
10430
10430
|
return;
|
|
10431
10431
|
}
|
|
10432
10432
|
const l = ts();
|
|
10433
|
-
|
|
10433
|
+
Rt(Wi({
|
|
10434
10434
|
...l,
|
|
10435
10435
|
error: "",
|
|
10436
10436
|
refreshing: !l.loading
|
|
10437
10437
|
}));
|
|
10438
10438
|
try {
|
|
10439
10439
|
const r = await F(`/v1/admin/analytics?days=${l.days}`);
|
|
10440
|
-
|
|
10440
|
+
Rt((c) => Wi({
|
|
10441
10441
|
...c,
|
|
10442
10442
|
analytics: r.analytics
|
|
10443
10443
|
}));
|
|
10444
10444
|
} catch (r) {
|
|
10445
|
-
|
|
10445
|
+
Rt((c) => ({
|
|
10446
10446
|
...c,
|
|
10447
10447
|
error: ne(r, "Analytics could not be loaded.")
|
|
10448
10448
|
}));
|
|
10449
10449
|
} finally {
|
|
10450
|
-
|
|
10450
|
+
Rt((r) => Wi({
|
|
10451
10451
|
...r,
|
|
10452
10452
|
loading: !1,
|
|
10453
10453
|
refreshing: !1
|
|
@@ -10457,7 +10457,7 @@ async function wu() {
|
|
|
10457
10457
|
async function Sb() {
|
|
10458
10458
|
const l = ts();
|
|
10459
10459
|
if (!(!l.canExport || l.exportPending)) {
|
|
10460
|
-
|
|
10460
|
+
Rt({
|
|
10461
10461
|
...l,
|
|
10462
10462
|
error: "",
|
|
10463
10463
|
exportPending: !0
|
|
@@ -10471,12 +10471,12 @@ async function Sb() {
|
|
|
10471
10471
|
const c = URL.createObjectURL(await r.blob()), u = document.createElement("a");
|
|
10472
10472
|
u.href = c, u.download = `safest-resolve-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, u.click(), URL.revokeObjectURL(c);
|
|
10473
10473
|
} catch (r) {
|
|
10474
|
-
|
|
10474
|
+
Rt((c) => ({
|
|
10475
10475
|
...c,
|
|
10476
10476
|
error: ne(r, "The report export could not be created.")
|
|
10477
10477
|
}));
|
|
10478
10478
|
} finally {
|
|
10479
|
-
|
|
10479
|
+
Rt((r) => ({
|
|
10480
10480
|
...r,
|
|
10481
10481
|
exportPending: !1
|
|
10482
10482
|
}));
|
|
@@ -10486,24 +10486,24 @@ async function Sb() {
|
|
|
10486
10486
|
async function Nb() {
|
|
10487
10487
|
const l = ts();
|
|
10488
10488
|
if (!(!l.canVerifyAudit || l.auditPending)) {
|
|
10489
|
-
|
|
10489
|
+
Rt({
|
|
10490
10490
|
...l,
|
|
10491
10491
|
error: "",
|
|
10492
10492
|
auditPending: !0
|
|
10493
10493
|
});
|
|
10494
10494
|
try {
|
|
10495
10495
|
const r = (await F("/v1/admin/audit/verify")).verification, c = r.valid ? `${r.verifiedEntries} chained entries verified at ${new Date(r.verifiedAt).toLocaleTimeString()}.` : `Audit verification failed at sequence ${r.failedSequence || "unknown"}: ${K(r.reason)}.`;
|
|
10496
|
-
|
|
10496
|
+
Rt((u) => ({
|
|
10497
10497
|
...u,
|
|
10498
10498
|
auditVerification: c
|
|
10499
10499
|
}));
|
|
10500
10500
|
} catch (r) {
|
|
10501
|
-
|
|
10501
|
+
Rt((c) => ({
|
|
10502
10502
|
...c,
|
|
10503
10503
|
error: ne(r, "The audit chain could not be verified.")
|
|
10504
10504
|
}));
|
|
10505
10505
|
} finally {
|
|
10506
|
-
|
|
10506
|
+
Rt((r) => ({
|
|
10507
10507
|
...r,
|
|
10508
10508
|
auditPending: !1
|
|
10509
10509
|
}));
|
|
@@ -10514,7 +10514,7 @@ function Cb() {
|
|
|
10514
10514
|
km || (km = !0, ct(() => {
|
|
10515
10515
|
const l = de().session, r = l?.actor.id || "";
|
|
10516
10516
|
if (r === Om) {
|
|
10517
|
-
|
|
10517
|
+
Rt((c) => Wi(c));
|
|
10518
10518
|
return;
|
|
10519
10519
|
}
|
|
10520
10520
|
Om = r, wb(), l && wu();
|
|
@@ -10529,7 +10529,7 @@ function Cb() {
|
|
|
10529
10529
|
90,
|
|
10530
10530
|
180,
|
|
10531
10531
|
365
|
|
10532
|
-
].includes(r) && (
|
|
10532
|
+
].includes(r) && (Rt((c) => ({
|
|
10533
10533
|
...c,
|
|
10534
10534
|
days: r
|
|
10535
10535
|
})), wu());
|
|
@@ -14350,20 +14350,20 @@ function xx() {
|
|
|
14350
14350
|
return;
|
|
14351
14351
|
}
|
|
14352
14352
|
Zm = r, Kl += 1, Ct(q0()), l && Rr();
|
|
14353
|
-
}), window.addEventListener(
|
|
14353
|
+
}), window.addEventListener(Tt.refresh, () => {
|
|
14354
14354
|
Rr();
|
|
14355
|
-
}), window.addEventListener(
|
|
14355
|
+
}), window.addEventListener(Tt.filters, (l) => {
|
|
14356
14356
|
!(l instanceof CustomEvent) || !bx(l.detail) || (Ct((r) => ({
|
|
14357
14357
|
...r,
|
|
14358
14358
|
filters: l.detail
|
|
14359
14359
|
})), Rr());
|
|
14360
|
-
}), window.addEventListener(
|
|
14360
|
+
}), window.addEventListener(Tt.open, (l) => {
|
|
14361
14361
|
l instanceof CustomEvent && typeof l.detail?.incidentId == "string" && z0(l.detail.incidentId);
|
|
14362
|
-
}), window.addEventListener(
|
|
14362
|
+
}), window.addEventListener(Tt.close, yx), window.addEventListener(Tt.acknowledge, () => {
|
|
14363
14363
|
Tu("acknowledge");
|
|
14364
|
-
}), window.addEventListener(
|
|
14364
|
+
}), window.addEventListener(Tt.retry, () => {
|
|
14365
14365
|
Tu("retry");
|
|
14366
|
-
}), window.addEventListener(
|
|
14366
|
+
}), window.addEventListener(Tt.resolve, (l) => {
|
|
14367
14367
|
!(l instanceof CustomEvent) || typeof l.detail?.resolutionCode != "string" || typeof l.detail?.summary != "string" || Tu("resolve", l.detail);
|
|
14368
14368
|
}));
|
|
14369
14369
|
}
|
|
@@ -15865,7 +15865,7 @@ function Ix() {
|
|
|
15865
15865
|
})]
|
|
15866
15866
|
});
|
|
15867
15867
|
}
|
|
15868
|
-
function
|
|
15868
|
+
function At({ label: l, children: r }) {
|
|
15869
15869
|
return /* @__PURE__ */ (0, n.jsxs)(n.Fragment, { children: [/* @__PURE__ */ (0, n.jsx)("dt", { children: l }), /* @__PURE__ */ (0, n.jsx)("dd", { children: r || "—" })] });
|
|
15870
15870
|
}
|
|
15871
15871
|
function Eu({ children: l }) {
|
|
@@ -15906,20 +15906,23 @@ function Wx({ answer: l }) {
|
|
|
15906
15906
|
children: r
|
|
15907
15907
|
});
|
|
15908
15908
|
}
|
|
15909
|
+
function Fx(l) {
|
|
15910
|
+
return l.reporterEmail ? l.reporterEmail : l.reporterContactStatus === "redacted" ? "Redacted by the retention policy" : l.reporterContactStatus === "restricted" ? "Restricted for this role" : l.reporterContactStatus === "unavailable" ? "Temporarily unavailable" : "Not provided";
|
|
15911
|
+
}
|
|
15909
15912
|
function a0(l) {
|
|
15910
15913
|
return l === "suppressed" ? "Not sent" : l === "queued" || l === "pending" || l === "sending" || l === "delivering" ? "Queued" : K(l);
|
|
15911
15914
|
}
|
|
15912
15915
|
function Ar(l) {
|
|
15913
15916
|
return l === "suppressed" ? "No eligible participant delivery channel was available when this message was created." : l === "queued" || l === "pending" || l === "sending" || l === "delivering" ? "Waiting for the delivery worker." : l === "delivered" ? "Successfully handed to the configured delivery provider." : l === "failed" || l === "rejected" || l === "bounced" ? "Delivery needs attention in Operations." : "";
|
|
15914
15917
|
}
|
|
15915
|
-
function
|
|
15918
|
+
function Px(l) {
|
|
15916
15919
|
const r = l.details ?? {}, c = (u) => typeof r[u] == "string" || typeof r[u] == "number" ? String(r[u]) : "";
|
|
15917
15920
|
return l.eventType === "state_transition" ? `${K(c("from_state") || "received")} → ${K(c("to_state") || l.code)}` : l.eventType === "finding" ? c("summary") || K(l.code) : l.eventType === "action" ? `${K(c("action_code") || "action")} · ${K(l.code)}` : l.eventType === "message" ? `${K(c("audience") || "reporter")} · ${K(c("delivery_state") || l.code)}` : `${K(l.code)}${c("error_code") ? ` · ${K(c("error_code"))}` : ""}`;
|
|
15918
15921
|
}
|
|
15919
|
-
function
|
|
15922
|
+
function ej(l) {
|
|
15920
15923
|
return l === "finding" ? "⬡" : l === "workflow_run" ? "⌘" : l === "decision" ? "✓" : l === "message" ? "↗" : l === "action" ? "!" : "•";
|
|
15921
15924
|
}
|
|
15922
|
-
function
|
|
15925
|
+
function tj({ report: l, actorId: r, generatedAt: c, actionCodes: u, claimReports: d, messageReporters: m, decideReports: S, pendingAction: p, messageMutationVersion: j, statusMessage: b, error: g }) {
|
|
15923
15926
|
const x = l.evidence ?? [], y = l.answers ?? [], k = l.messages ?? [], w = l.workflowRuns ?? [], L = l.timeline ?? [], P = l.findings ?? [], pe = l.decisions ?? [], $ = l.aiRuns ?? [], I = l.policyRules ?? [], [re, ge] = (0, v.useState)(() => new Set(x.map((T) => T.reference))), [oe, O] = (0, v.useState)(""), [Q, Z] = (0, v.useState)(!0), [W, he] = (0, v.useState)("no_violation_found"), [ve, Ve] = (0, v.useState)(I[0]?.code ?? ""), [fe, je] = (0, v.useState)(""), [V, B] = (0, v.useState)(""), [G, J] = (0, v.useState)(""), [ae, Ce] = (0, v.useState)("");
|
|
15924
15927
|
(0, v.useEffect)(() => {
|
|
15925
15928
|
ge(new Set(x.map((T) => T.reference))), O(""), Z(!0), he("no_violation_found"), Ve(I[0]?.code ?? ""), je(""), B(""), J(""), Ce("");
|
|
@@ -15974,21 +15977,25 @@ function ej({ report: l, actorId: r, generatedAt: c, actionCodes: u, claimReport
|
|
|
15974
15977
|
/* @__PURE__ */ (0, n.jsxs)("dl", {
|
|
15975
15978
|
className: "submission-meta",
|
|
15976
15979
|
children: [
|
|
15977
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
15980
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
15978
15981
|
label: "Form",
|
|
15979
15982
|
children: l.formTitle || l.formVersionId || "Unknown form"
|
|
15980
15983
|
}),
|
|
15981
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
15984
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
15982
15985
|
label: "Channel",
|
|
15983
15986
|
children: K(l.source || "unknown")
|
|
15984
15987
|
}),
|
|
15985
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
15988
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
15986
15989
|
label: "Submitted",
|
|
15987
15990
|
children: Ji(l.submittedAt || l.receivedAt)
|
|
15988
15991
|
}),
|
|
15989
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
15992
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
15990
15993
|
label: "Language",
|
|
15991
15994
|
children: l.locale || "—"
|
|
15995
|
+
}),
|
|
15996
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
15997
|
+
label: "Reporter email",
|
|
15998
|
+
children: Fx(l)
|
|
15992
15999
|
})
|
|
15993
16000
|
]
|
|
15994
16001
|
}),
|
|
@@ -16002,19 +16009,19 @@ function ej({ report: l, actorId: r, generatedAt: c, actionCodes: u, claimReport
|
|
|
16002
16009
|
]
|
|
16003
16010
|
}),
|
|
16004
16011
|
/* @__PURE__ */ (0, n.jsxs)("section", { children: [/* @__PURE__ */ (0, n.jsx)("h3", { children: "Allegation and target" }), /* @__PURE__ */ (0, n.jsxs)("dl", { children: [
|
|
16005
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16012
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16006
16013
|
label: "Allegation",
|
|
16007
16014
|
children: K(l.reasonCode)
|
|
16008
16015
|
}),
|
|
16009
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16016
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16010
16017
|
label: "Target type",
|
|
16011
16018
|
children: K(l.targetType)
|
|
16012
16019
|
}),
|
|
16013
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16020
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16014
16021
|
label: "Target reference",
|
|
16015
16022
|
children: l.targetReference
|
|
16016
16023
|
}),
|
|
16017
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16024
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16018
16025
|
label: "Customer content",
|
|
16019
16026
|
children: D ? /* @__PURE__ */ (0, n.jsx)("a", {
|
|
16020
16027
|
className: "text-button",
|
|
@@ -16025,15 +16032,15 @@ function ej({ report: l, actorId: r, generatedAt: c, actionCodes: u, claimReport
|
|
|
16025
16032
|
children: "Open in customer application ↗"
|
|
16026
16033
|
}) : "Not provided"
|
|
16027
16034
|
}),
|
|
16028
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16035
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16029
16036
|
label: "Owner reference",
|
|
16030
16037
|
children: l.ownerReference || "—"
|
|
16031
16038
|
}),
|
|
16032
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16039
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16033
16040
|
label: "Reporter reference",
|
|
16034
16041
|
children: l.reporterReference || "—"
|
|
16035
16042
|
}),
|
|
16036
|
-
/* @__PURE__ */ (0, n.jsxs)(
|
|
16043
|
+
/* @__PURE__ */ (0, n.jsxs)(At, {
|
|
16037
16044
|
label: "Adjudication policy",
|
|
16038
16045
|
children: [
|
|
16039
16046
|
l.policyTitle || "Policy",
|
|
@@ -16041,15 +16048,15 @@ function ej({ report: l, actorId: r, generatedAt: c, actionCodes: u, claimReport
|
|
|
16041
16048
|
l.policyVersionId || "unavailable"
|
|
16042
16049
|
]
|
|
16043
16050
|
}),
|
|
16044
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16051
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16045
16052
|
label: "Queue policy version",
|
|
16046
16053
|
children: l.queuePolicyVersionId || "—"
|
|
16047
16054
|
}),
|
|
16048
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16055
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16049
16056
|
label: "Reviewer policy",
|
|
16050
16057
|
children: l.reviewerInstructions || "—"
|
|
16051
16058
|
}),
|
|
16052
|
-
/* @__PURE__ */ (0, n.jsx)(
|
|
16059
|
+
/* @__PURE__ */ (0, n.jsx)(At, {
|
|
16053
16060
|
label: "Received",
|
|
16054
16061
|
children: Ji(l.receivedAt)
|
|
16055
16062
|
})
|
|
@@ -16100,10 +16107,10 @@ function ej({ report: l, actorId: r, generatedAt: c, actionCodes: u, claimReport
|
|
|
16100
16107
|
className: "timeline-event",
|
|
16101
16108
|
children: [/* @__PURE__ */ (0, n.jsx)("span", {
|
|
16102
16109
|
className: `timeline-marker ${T.eventType || "event"}`,
|
|
16103
|
-
children:
|
|
16110
|
+
children: ej(T.eventType)
|
|
16104
16111
|
}), /* @__PURE__ */ (0, n.jsxs)("div", { children: [
|
|
16105
16112
|
/* @__PURE__ */ (0, n.jsx)("strong", { children: K(T.eventType || "activity") }),
|
|
16106
|
-
/* @__PURE__ */ (0, n.jsx)("span", { children:
|
|
16113
|
+
/* @__PURE__ */ (0, n.jsx)("span", { children: Px(T) }),
|
|
16107
16114
|
/* @__PURE__ */ (0, n.jsxs)("small", { children: [
|
|
16108
16115
|
da(T.createdAt),
|
|
16109
16116
|
" · ",
|
|
@@ -16340,7 +16347,7 @@ function ej({ report: l, actorId: r, generatedAt: c, actionCodes: u, claimReport
|
|
|
16340
16347
|
})
|
|
16341
16348
|
] });
|
|
16342
16349
|
}
|
|
16343
|
-
function
|
|
16350
|
+
function aj() {
|
|
16344
16351
|
const l = (0, v.useSyncExternalStore)(ud, Me, Me), r = l.detail, c = !!r.reportId;
|
|
16345
16352
|
return /* @__PURE__ */ (0, n.jsxs)("dialog", {
|
|
16346
16353
|
className: "detail-dialog report-drawer",
|
|
@@ -16368,7 +16375,7 @@ function tj() {
|
|
|
16368
16375
|
className: "skeleton-block",
|
|
16369
16376
|
role: "status",
|
|
16370
16377
|
"aria-label": "Loading report detail"
|
|
16371
|
-
}) : r.report ? /* @__PURE__ */ (0, n.jsx)(
|
|
16378
|
+
}) : r.report ? /* @__PURE__ */ (0, n.jsx)(tj, {
|
|
16372
16379
|
report: r.report,
|
|
16373
16380
|
actorId: l.actorId,
|
|
16374
16381
|
generatedAt: l.generatedAt,
|
|
@@ -16388,10 +16395,10 @@ function tj() {
|
|
|
16388
16395
|
})]
|
|
16389
16396
|
});
|
|
16390
16397
|
}
|
|
16391
|
-
function
|
|
16398
|
+
function nj(l) {
|
|
16392
16399
|
return l >= 70 ? "high" : l >= 40 ? "medium" : "low";
|
|
16393
16400
|
}
|
|
16394
|
-
function
|
|
16401
|
+
function lj({ analysts: l }) {
|
|
16395
16402
|
return /* @__PURE__ */ (0, n.jsxs)("section", {
|
|
16396
16403
|
className: "active-analysts",
|
|
16397
16404
|
"aria-labelledby": "active-analysts-title",
|
|
@@ -16416,7 +16423,7 @@ function nj({ analysts: l }) {
|
|
|
16416
16423
|
})]
|
|
16417
16424
|
});
|
|
16418
16425
|
}
|
|
16419
|
-
function
|
|
16426
|
+
function ij({ report: l }) {
|
|
16420
16427
|
return l.owner ? /* @__PURE__ */ (0, n.jsx)(io, {
|
|
16421
16428
|
analyst: l.owner,
|
|
16422
16429
|
detail: l.owner.mine ? "You" : "Claimed"
|
|
@@ -16425,10 +16432,10 @@ function lj({ report: l }) {
|
|
|
16425
16432
|
children: "Unclaimed"
|
|
16426
16433
|
});
|
|
16427
16434
|
}
|
|
16428
|
-
function
|
|
16435
|
+
function sj({ report: l }) {
|
|
16429
16436
|
const r = () => od(l.id), c = (d) => {
|
|
16430
16437
|
d.stopPropagation(), r();
|
|
16431
|
-
}, u =
|
|
16438
|
+
}, u = nj(l.priority);
|
|
16432
16439
|
return /* @__PURE__ */ (0, n.jsxs)("tr", {
|
|
16433
16440
|
onClick: r,
|
|
16434
16441
|
children: [
|
|
@@ -16457,11 +16464,11 @@ function ij({ report: l }) {
|
|
|
16457
16464
|
children: K(u)
|
|
16458
16465
|
}) }),
|
|
16459
16466
|
/* @__PURE__ */ (0, n.jsxs)("td", { children: [/* @__PURE__ */ (0, n.jsx)("strong", { children: da(l.receivedAt).replace(" ago", "") }), /* @__PURE__ */ (0, n.jsx)("small", { children: new Date(l.receivedAt).toLocaleString() })] }),
|
|
16460
|
-
/* @__PURE__ */ (0, n.jsx)("td", { children: /* @__PURE__ */ (0, n.jsx)(
|
|
16467
|
+
/* @__PURE__ */ (0, n.jsx)("td", { children: /* @__PURE__ */ (0, n.jsx)(ij, { report: l }) })
|
|
16461
16468
|
]
|
|
16462
16469
|
});
|
|
16463
16470
|
}
|
|
16464
|
-
function
|
|
16471
|
+
function rj() {
|
|
16465
16472
|
const l = (0, v.useSyncExternalStore)(ud, Me, Me), r = (u, d) => {
|
|
16466
16473
|
Oy({
|
|
16467
16474
|
...l.filters,
|
|
@@ -16477,7 +16484,7 @@ function sj() {
|
|
|
16477
16484
|
className: "live-label",
|
|
16478
16485
|
children: [/* @__PURE__ */ (0, n.jsx)("i", {}), "Live queue"]
|
|
16479
16486
|
}),
|
|
16480
|
-
children: /* @__PURE__ */ (0, n.jsx)(
|
|
16487
|
+
children: /* @__PURE__ */ (0, n.jsx)(lj, { analysts: l.presence })
|
|
16481
16488
|
}), /* @__PURE__ */ (0, n.jsxs)("section", {
|
|
16482
16489
|
className: "surface report-surface",
|
|
16483
16490
|
"aria-labelledby": "inbox-title",
|
|
@@ -16626,7 +16633,7 @@ function sj() {
|
|
|
16626
16633
|
] }) }), /* @__PURE__ */ (0, n.jsx)("tbody", { children: l.loading ? /* @__PURE__ */ (0, n.jsx)("tr", { children: /* @__PURE__ */ (0, n.jsx)("td", {
|
|
16627
16634
|
colSpan: 5,
|
|
16628
16635
|
children: /* @__PURE__ */ (0, n.jsx)("div", { className: "skeleton-block" })
|
|
16629
|
-
}) }) : l.reports.map((u) => /* @__PURE__ */ (0, n.jsx)(
|
|
16636
|
+
}) }) : l.reports.map((u) => /* @__PURE__ */ (0, n.jsx)(sj, { report: u }, u.id)) })] }), !l.loading && l.reports.length === 0 ? /* @__PURE__ */ (0, n.jsxs)("div", {
|
|
16630
16637
|
className: "empty",
|
|
16631
16638
|
children: [
|
|
16632
16639
|
/* @__PURE__ */ (0, n.jsx)("span", {
|
|
@@ -16647,7 +16654,7 @@ function sj() {
|
|
|
16647
16654
|
})]
|
|
16648
16655
|
});
|
|
16649
16656
|
}
|
|
16650
|
-
function
|
|
16657
|
+
function oj(l, r, c, u, d) {
|
|
16651
16658
|
const m = l.publicBaseUrl || window.location.origin, S = `<script src="${m}/widget.js" defer><\/script>
|
|
16652
16659
|
<safest-report
|
|
16653
16660
|
api-base="${m}"
|
|
@@ -16697,7 +16704,7 @@ Return only Resolve's context_token and expires_at to the component. Trusted fac
|
|
|
16697
16704
|
Content Security Policy
|
|
16698
16705
|
Allow ${m} in script-src, style-src, and frame-src. The human check runs inside the isolated Resolve frame.`;
|
|
16699
16706
|
}
|
|
16700
|
-
function
|
|
16707
|
+
function cj() {
|
|
16701
16708
|
return {
|
|
16702
16709
|
id: crypto.randomUUID(),
|
|
16703
16710
|
key: "",
|
|
@@ -16708,10 +16715,10 @@ function oj() {
|
|
|
16708
16715
|
rule_eligible: !0
|
|
16709
16716
|
};
|
|
16710
16717
|
}
|
|
16711
|
-
function
|
|
16718
|
+
function uj(l) {
|
|
16712
16719
|
return `${l.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/gu, "-").replace(/^-+|-+$/gu, "").slice(0, 60) || "channel"}-${crypto.randomUUID().slice(0, 6)}`;
|
|
16713
16720
|
}
|
|
16714
|
-
async function
|
|
16721
|
+
async function dj(l) {
|
|
16715
16722
|
try {
|
|
16716
16723
|
await navigator.clipboard.writeText(l);
|
|
16717
16724
|
} catch {
|
|
@@ -16719,7 +16726,7 @@ async function uj(l) {
|
|
|
16719
16726
|
r.value = l, r.style.position = "fixed", r.style.opacity = "0", document.body.append(r), r.select(), document.execCommand("copy"), r.remove();
|
|
16720
16727
|
}
|
|
16721
16728
|
}
|
|
16722
|
-
function
|
|
16729
|
+
function fj(l) {
|
|
16723
16730
|
const r = l.map((c) => ({
|
|
16724
16731
|
key: c.key.trim(),
|
|
16725
16732
|
label: c.label.trim(),
|
|
@@ -16736,7 +16743,7 @@ function dj(l) {
|
|
|
16736
16743
|
fields: r
|
|
16737
16744
|
};
|
|
16738
16745
|
}
|
|
16739
|
-
function
|
|
16746
|
+
function hj() {
|
|
16740
16747
|
const l = (0, v.useSyncExternalStore)(ct, de, de), r = l.session?.permissions.manageIntegrations === !0, c = l.session?.permissions.manageConfiguration === !0, u = (0, v.useRef)(null), d = (0, v.useRef)(null), [m, S] = (0, v.useState)([]), [p, j] = (0, v.useState)(!1), [b, g] = (0, v.useState)("hosted"), [x, y] = (0, v.useState)(""), [k, w] = (0, v.useState)(""), [L, P] = (0, v.useState)(""), [pe, $] = (0, v.useState)([]), [I, re] = (0, v.useState)(!1), [ge, oe] = (0, v.useState)(""), [O, Q] = (0, v.useState)(null), [Z, W] = (0, v.useState)(!1), [he, ve] = (0, v.useState)(""), Ve = () => {
|
|
16741
16748
|
Q(null), W(!1), ve("");
|
|
16742
16749
|
};
|
|
@@ -16768,7 +16775,7 @@ function fj() {
|
|
|
16768
16775
|
...ae
|
|
16769
16776
|
} : C));
|
|
16770
16777
|
}, V = async (J, ae) => {
|
|
16771
|
-
await
|
|
16778
|
+
await dj(J), ve(ae), window.setTimeout(() => ve((Ce) => Ce === ae ? "" : Ce), 1500);
|
|
16772
16779
|
}, B = async (J) => {
|
|
16773
16780
|
if (J.preventDefault(), oe(""), !x) {
|
|
16774
16781
|
oe("Publish an intake form before adding a reporting channel.");
|
|
@@ -16802,7 +16809,7 @@ function fj() {
|
|
|
16802
16809
|
"[::1]"
|
|
16803
16810
|
].includes(ae.hostname);
|
|
16804
16811
|
if (ae.protocol !== "https:" && !(Ce && ae.protocol === "http:") || ae.username || ae.password) throw new Error("Use an HTTPS website origin. Localhost may use HTTP for development.");
|
|
16805
|
-
const C = b === "contextual" ?
|
|
16812
|
+
const C = b === "contextual" ? fj(pe) : {
|
|
16806
16813
|
version: 1,
|
|
16807
16814
|
allow_unknown: !1,
|
|
16808
16815
|
fields: []
|
|
@@ -16810,7 +16817,7 @@ function fj() {
|
|
|
16810
16817
|
method: "POST",
|
|
16811
16818
|
headers: ot(),
|
|
16812
16819
|
body: JSON.stringify({
|
|
16813
|
-
integration_key:
|
|
16820
|
+
integration_key: uj(k),
|
|
16814
16821
|
name: k,
|
|
16815
16822
|
allowed_origins: [ae.origin],
|
|
16816
16823
|
scopes: b === "contextual" ? ["submit_reports", "mint_context_tokens"] : ["submit_reports"],
|
|
@@ -16823,7 +16830,7 @@ function fj() {
|
|
|
16823
16830
|
kind: "widget",
|
|
16824
16831
|
mode: b,
|
|
16825
16832
|
apiKey: D.apiKey ?? "",
|
|
16826
|
-
handoff:
|
|
16833
|
+
handoff: oj(D, ae.origin, x, b, C),
|
|
16827
16834
|
publicBaseUrl: D.publicBaseUrl || window.location.origin,
|
|
16828
16835
|
integrationId: D.integrationId,
|
|
16829
16836
|
formVersion: x
|
|
@@ -17121,7 +17128,7 @@ function fj() {
|
|
|
17121
17128
|
/* @__PURE__ */ (0, n.jsx)("button", {
|
|
17122
17129
|
className: "secondary compact-button",
|
|
17123
17130
|
type: "button",
|
|
17124
|
-
onClick: () => $((J) => [...J,
|
|
17131
|
+
onClick: () => $((J) => [...J, cj()]),
|
|
17125
17132
|
children: "Add trusted field"
|
|
17126
17133
|
})
|
|
17127
17134
|
] }) : null,
|
|
@@ -17143,7 +17150,7 @@ function fj() {
|
|
|
17143
17150
|
})]
|
|
17144
17151
|
});
|
|
17145
17152
|
}
|
|
17146
|
-
var
|
|
17153
|
+
var pj = {
|
|
17147
17154
|
organization_name: "Safest Resolve",
|
|
17148
17155
|
logo_url: "",
|
|
17149
17156
|
logo_alt: "",
|
|
@@ -17160,19 +17167,19 @@ var hj = {
|
|
|
17160
17167
|
font_css_url: "",
|
|
17161
17168
|
border_radius: 12
|
|
17162
17169
|
};
|
|
17163
|
-
function
|
|
17170
|
+
function mj(l, r) {
|
|
17164
17171
|
return {
|
|
17165
|
-
...
|
|
17172
|
+
...pj,
|
|
17166
17173
|
...window.SafestBrand?.defaults ?? {},
|
|
17167
17174
|
...l ?? {},
|
|
17168
17175
|
organization_name: l?.organization_name || r || "Safest Resolve"
|
|
17169
17176
|
};
|
|
17170
17177
|
}
|
|
17171
|
-
function
|
|
17178
|
+
function vj(l) {
|
|
17172
17179
|
return l.split(/\s+/u).filter(Boolean).slice(0, 2).map((r) => r[0] ?? "").join("").toUpperCase() || "YO";
|
|
17173
17180
|
}
|
|
17174
|
-
function
|
|
17175
|
-
const d = (0, v.useMemo)(() =>
|
|
17181
|
+
function gj({ brand: l, displayName: r, loading: c, onSaved: u }) {
|
|
17182
|
+
const d = (0, v.useMemo)(() => mj(l, r), [l, r]), [m, S] = (0, v.useState)(d), [p, j] = (0, v.useState)(!1), [b, g] = (0, v.useState)(""), [x, y] = (0, v.useState)("");
|
|
17176
17183
|
(0, v.useEffect)(() => {
|
|
17177
17184
|
S(d), g(""), y("");
|
|
17178
17185
|
}, [d]);
|
|
@@ -17341,7 +17348,7 @@ function vj({ brand: l, displayName: r, loading: c, onSaved: u }) {
|
|
|
17341
17348
|
children: [/* @__PURE__ */ (0, n.jsx)("span", {
|
|
17342
17349
|
className: `brand-preview-logo${m.logo_url ? " has-image" : ""}`,
|
|
17343
17350
|
style: pe,
|
|
17344
|
-
children:
|
|
17351
|
+
children: vj(m.organization_name)
|
|
17345
17352
|
}), /* @__PURE__ */ (0, n.jsxs)("div", { children: [
|
|
17346
17353
|
/* @__PURE__ */ (0, n.jsx)("h3", { children: m.organization_name || "Your organisation" }),
|
|
17347
17354
|
/* @__PURE__ */ (0, n.jsx)("p", { children: "Report a safety concern" }),
|
|
@@ -17376,7 +17383,7 @@ function vj({ brand: l, displayName: r, loading: c, onSaved: u }) {
|
|
|
17376
17383
|
})]
|
|
17377
17384
|
});
|
|
17378
17385
|
}
|
|
17379
|
-
var
|
|
17386
|
+
var yj = {
|
|
17380
17387
|
database: "Database",
|
|
17381
17388
|
email: "Email delivery",
|
|
17382
17389
|
queues: "Queues",
|
|
@@ -17385,10 +17392,10 @@ var gj = {
|
|
|
17385
17392
|
turnstile: "Human verification",
|
|
17386
17393
|
workflows: "Workflows"
|
|
17387
17394
|
};
|
|
17388
|
-
function yj(l) {
|
|
17389
|
-
return gj[l] ?? l.replaceAll("_", " ").replace(/^./u, (r) => r.toUpperCase());
|
|
17390
|
-
}
|
|
17391
17395
|
function bj(l) {
|
|
17396
|
+
return yj[l] ?? l.replaceAll("_", " ").replace(/^./u, (r) => r.toUpperCase());
|
|
17397
|
+
}
|
|
17398
|
+
function xj(l) {
|
|
17392
17399
|
return [
|
|
17393
17400
|
["Workspace", l.displayName || "Safety workspace"],
|
|
17394
17401
|
["Default language", l.defaultLocale || "en"],
|
|
@@ -17404,7 +17411,7 @@ function Ru() {
|
|
|
17404
17411
|
children: /* @__PURE__ */ (0, n.jsx)("div", { className: "skeleton-block" })
|
|
17405
17412
|
});
|
|
17406
17413
|
}
|
|
17407
|
-
function
|
|
17414
|
+
function jj({ channel: l }) {
|
|
17408
17415
|
const r = l.enabled !== !1;
|
|
17409
17416
|
return /* @__PURE__ */ (0, n.jsxs)("article", {
|
|
17410
17417
|
className: "integration-row",
|
|
@@ -17430,7 +17437,7 @@ function xj({ channel: l }) {
|
|
|
17430
17437
|
]
|
|
17431
17438
|
});
|
|
17432
17439
|
}
|
|
17433
|
-
function
|
|
17440
|
+
function wj({ integration: l }) {
|
|
17434
17441
|
const r = l.enabled !== !1, c = l.channelMode === "contextual", u = r && (!c || l.activeKeyCount > 0), d = l.allowedOrigins.length ? l.allowedOrigins.join(", ") : "No website origin", m = r ? c ? l.activeKeyCount > 0 ? "Signed-in" : "Needs key" : "Anonymous" : "Disabled";
|
|
17435
17442
|
return /* @__PURE__ */ (0, n.jsxs)("article", {
|
|
17436
17443
|
className: "integration-row",
|
|
@@ -17447,7 +17454,7 @@ function jj({ integration: l }) {
|
|
|
17447
17454
|
]
|
|
17448
17455
|
});
|
|
17449
17456
|
}
|
|
17450
|
-
function
|
|
17457
|
+
function Sj() {
|
|
17451
17458
|
const l = (0, v.useSyncExternalStore)(ct, de, de), r = l.session?.permissions.manageInstallation === !0, c = l.session?.permissions.manageConfiguration === !0, u = l.session?.permissions.manageIntegrations === !0, [d, m] = (0, v.useState)(null), [S, p] = (0, v.useState)(null), [j, b] = (0, v.useState)(null), [g, x] = (0, v.useState)([]), [y, k] = (0, v.useState)([]), [w, L] = (0, v.useState)(!1), [P, pe] = (0, v.useState)(""), [$, I] = (0, v.useState)(""), re = (0, v.useCallback)(async () => {
|
|
17452
17459
|
if (!u) {
|
|
17453
17460
|
x([]), k([]);
|
|
@@ -17549,7 +17556,7 @@ function wj() {
|
|
|
17549
17556
|
className: `setup-state${he ? "" : " warning"}`,
|
|
17550
17557
|
children: he ? "✓" : "!"
|
|
17551
17558
|
}),
|
|
17552
|
-
/* @__PURE__ */ (0, n.jsxs)("div", { children: [/* @__PURE__ */ (0, n.jsx)("strong", { children:
|
|
17559
|
+
/* @__PURE__ */ (0, n.jsxs)("div", { children: [/* @__PURE__ */ (0, n.jsx)("strong", { children: bj(W.featureKey) }), /* @__PURE__ */ (0, n.jsx)("small", { children: W.message || W.detail || (he ? "Verified in this deployment" : ve ? "Optional setup" : "Verification required") })] }),
|
|
17553
17560
|
he ? /* @__PURE__ */ (0, n.jsx)("span", {
|
|
17554
17561
|
className: "badge",
|
|
17555
17562
|
children: "Ready"
|
|
@@ -17580,7 +17587,7 @@ function wj() {
|
|
|
17580
17587
|
})
|
|
17581
17588
|
}), w && !S ? /* @__PURE__ */ (0, n.jsx)(Ru, {}) : S ? /* @__PURE__ */ (0, n.jsx)("dl", {
|
|
17582
17589
|
className: "settings-facts",
|
|
17583
|
-
children:
|
|
17590
|
+
children: xj(S).map(([W, he]) => /* @__PURE__ */ (0, n.jsxs)("span", {
|
|
17584
17591
|
className: "settings-fact",
|
|
17585
17592
|
children: [/* @__PURE__ */ (0, n.jsx)("dt", { children: W }), /* @__PURE__ */ (0, n.jsx)("dd", { children: he })]
|
|
17586
17593
|
}, W))
|
|
@@ -17589,7 +17596,7 @@ function wj() {
|
|
|
17589
17596
|
children: "Workspace details are unavailable."
|
|
17590
17597
|
})]
|
|
17591
17598
|
})] }) : null,
|
|
17592
|
-
c ? /* @__PURE__ */ (0, n.jsx)(
|
|
17599
|
+
c ? /* @__PURE__ */ (0, n.jsx)(gj, {
|
|
17593
17600
|
brand: j,
|
|
17594
17601
|
displayName: S?.displayName ?? "Safest Resolve",
|
|
17595
17602
|
loading: w && !j,
|
|
@@ -17612,8 +17619,8 @@ function wj() {
|
|
|
17612
17619
|
}), w && !y.length && !g.length ? /* @__PURE__ */ (0, n.jsx)(Ru, {}) : /* @__PURE__ */ (0, n.jsxs)("div", {
|
|
17613
17620
|
className: "integration-list",
|
|
17614
17621
|
children: [
|
|
17615
|
-
y.map((W) => /* @__PURE__ */ (0, n.jsx)(
|
|
17616
|
-
g.map((W) => /* @__PURE__ */ (0, n.jsx)(
|
|
17622
|
+
y.map((W) => /* @__PURE__ */ (0, n.jsx)(jj, { channel: W }, W.id)),
|
|
17623
|
+
g.map((W) => /* @__PURE__ */ (0, n.jsx)(wj, { integration: W }, W.id)),
|
|
17617
17624
|
!y.length && !g.length ? /* @__PURE__ */ (0, n.jsxs)("div", {
|
|
17618
17625
|
className: "settings-empty-row",
|
|
17619
17626
|
children: [/* @__PURE__ */ (0, n.jsx)("strong", { children: "No reporting channels yet" }), /* @__PURE__ */ (0, n.jsx)("small", { children: "Add a hosted form or connect the widget to your application." })]
|
|
@@ -17631,7 +17638,7 @@ function wj() {
|
|
|
17631
17638
|
]
|
|
17632
17639
|
});
|
|
17633
17640
|
}
|
|
17634
|
-
var n0 = () => !0, Aa = (l) => (r) => r.permissions[l] === !0,
|
|
17641
|
+
var n0 = () => !0, Aa = (l) => (r) => r.permissions[l] === !0, Nj = (...l) => (r) => l.some((c) => r.permissions[c] === !0), Cj = [
|
|
17635
17642
|
{
|
|
17636
17643
|
label: "Work",
|
|
17637
17644
|
items: [
|
|
@@ -17721,7 +17728,7 @@ var n0 = () => !0, Aa = (l) => (r) => r.permissions[l] === !0, Sj = (...l) => (r
|
|
|
17721
17728
|
view: "settings",
|
|
17722
17729
|
label: "Settings",
|
|
17723
17730
|
icon: "i-settings",
|
|
17724
|
-
visible:
|
|
17731
|
+
visible: Nj("manageInstallation", "manageConfiguration", "manageIntegrations")
|
|
17725
17732
|
},
|
|
17726
17733
|
{
|
|
17727
17734
|
view: "people",
|
|
@@ -17739,27 +17746,27 @@ var n0 = () => !0, Aa = (l) => (r) => r.permissions[l] === !0, Sj = (...l) => (r
|
|
|
17739
17746
|
}
|
|
17740
17747
|
];
|
|
17741
17748
|
function Q0(l) {
|
|
17742
|
-
return
|
|
17749
|
+
return Cj.map((r) => ({
|
|
17743
17750
|
...r,
|
|
17744
17751
|
items: r.items.filter((c) => c.visible(l))
|
|
17745
17752
|
})).filter((r) => r.items.length > 0);
|
|
17746
17753
|
}
|
|
17747
|
-
var
|
|
17754
|
+
var _j = {
|
|
17748
17755
|
organization_name: "Safest Resolve",
|
|
17749
17756
|
logo_url: "",
|
|
17750
17757
|
logo_alt: ""
|
|
17751
|
-
},
|
|
17758
|
+
}, Aj = {
|
|
17752
17759
|
reviewer: "Analyst",
|
|
17753
17760
|
appeal_reviewer: "Appeal analyst",
|
|
17754
17761
|
administrator: "Administrator",
|
|
17755
17762
|
owner: "Infrastructure owner",
|
|
17756
17763
|
auditor: "Auditor"
|
|
17757
17764
|
};
|
|
17758
|
-
function
|
|
17765
|
+
function Tj(l) {
|
|
17759
17766
|
return l.split(/\s+/u).slice(0, 2).map((r) => r[0] ?? "").join("").toUpperCase() || "SR";
|
|
17760
17767
|
}
|
|
17761
|
-
function
|
|
17762
|
-
const [l, r] = (0, v.useState)(() => window.SafestBrand?.defaults ??
|
|
17768
|
+
function Ej() {
|
|
17769
|
+
const [l, r] = (0, v.useState)(() => window.SafestBrand?.defaults ?? _j);
|
|
17763
17770
|
return (0, v.useEffect)(() => {
|
|
17764
17771
|
const c = (u) => {
|
|
17765
17772
|
!(u instanceof CustomEvent) || !u.detail?.brand || r((d) => ({
|
|
@@ -17781,10 +17788,10 @@ function l0({ brand: l, size: r }) {
|
|
|
17781
17788
|
}) : /* @__PURE__ */ (0, n.jsx)("span", {
|
|
17782
17789
|
className: r === "workspace" ? "workspace-mark" : "customer-brand-fallback",
|
|
17783
17790
|
"aria-hidden": "true",
|
|
17784
|
-
children:
|
|
17791
|
+
children: Tj(l.organization_name)
|
|
17785
17792
|
});
|
|
17786
17793
|
}
|
|
17787
|
-
function
|
|
17794
|
+
function Rj(l) {
|
|
17788
17795
|
return l.profile ?? {
|
|
17789
17796
|
actorId: l.actor.id,
|
|
17790
17797
|
displayName: l.displayName,
|
|
@@ -17794,10 +17801,10 @@ function Ej(l) {
|
|
|
17794
17801
|
roles: l.roles
|
|
17795
17802
|
};
|
|
17796
17803
|
}
|
|
17797
|
-
function
|
|
17798
|
-
return l.roles.map((r) =>
|
|
17804
|
+
function Mj(l) {
|
|
17805
|
+
return l.roles.map((r) => Aj[r] ?? r.replaceAll("_", " ")).join(", ") || "Team member";
|
|
17799
17806
|
}
|
|
17800
|
-
function
|
|
17807
|
+
function Oj({ session: l, currentView: r, reportCount: c, open: u, onClose: d }) {
|
|
17801
17808
|
const m = (0, v.useMemo)(() => Q0(l), [l]), S = (p, j) => {
|
|
17802
17809
|
p.preventDefault(), tn(j), d();
|
|
17803
17810
|
};
|
|
@@ -17832,8 +17839,8 @@ function Mj({ session: l, currentView: r, reportCount: c, open: u, onClose: d })
|
|
|
17832
17839
|
onClick: d
|
|
17833
17840
|
})] });
|
|
17834
17841
|
}
|
|
17835
|
-
function
|
|
17836
|
-
const r = (0, v.useSyncExternalStore)(ct, de, de), [c, u] = (0, v.useState)(!1), d =
|
|
17842
|
+
function kj({ navigationTarget: l }) {
|
|
17843
|
+
const r = (0, v.useSyncExternalStore)(ct, de, de), [c, u] = (0, v.useState)(!1), d = Ej(), m = r.session;
|
|
17837
17844
|
(0, v.useEffect)(() => u(!1), [r.currentView, m]), (0, v.useEffect)(() => (document.body.classList.toggle("mobile-navigation-open", c && !!m), () => document.body.classList.remove("mobile-navigation-open")), [c, m]), (0, v.useEffect)(() => {
|
|
17838
17845
|
const p = () => {
|
|
17839
17846
|
window.innerWidth > 760 && u(!1);
|
|
@@ -17904,8 +17911,8 @@ function Oj({ navigationTarget: l }) {
|
|
|
17904
17911
|
m ? /* @__PURE__ */ (0, n.jsx)("div", {
|
|
17905
17912
|
className: "current-analyst",
|
|
17906
17913
|
children: /* @__PURE__ */ (0, n.jsx)(io, {
|
|
17907
|
-
analyst:
|
|
17908
|
-
detail:
|
|
17914
|
+
analyst: Rj(m),
|
|
17915
|
+
detail: Mj(m)
|
|
17909
17916
|
})
|
|
17910
17917
|
}) : null,
|
|
17911
17918
|
m ? /* @__PURE__ */ (0, n.jsx)("button", {
|
|
@@ -17917,7 +17924,7 @@ function Oj({ navigationTarget: l }) {
|
|
|
17917
17924
|
]
|
|
17918
17925
|
})
|
|
17919
17926
|
]
|
|
17920
|
-
}), m ? (0, St.createPortal)(/* @__PURE__ */ (0, n.jsx)(
|
|
17927
|
+
}), m ? (0, St.createPortal)(/* @__PURE__ */ (0, n.jsx)(Oj, {
|
|
17921
17928
|
session: m,
|
|
17922
17929
|
currentView: r.currentView,
|
|
17923
17930
|
reportCount: r.reportCount,
|
|
@@ -17925,7 +17932,7 @@ function Oj({ navigationTarget: l }) {
|
|
|
17925
17932
|
onClose: () => u(!1)
|
|
17926
17933
|
}), l) : null] });
|
|
17927
17934
|
}
|
|
17928
|
-
var
|
|
17935
|
+
var qj = {
|
|
17929
17936
|
command: "Command centre",
|
|
17930
17937
|
queues: "Queues and policies",
|
|
17931
17938
|
assistant: "Ask Safest",
|
|
@@ -17940,7 +17947,7 @@ var kj = {
|
|
|
17940
17947
|
function s0(l) {
|
|
17941
17948
|
return document.querySelector(`#${l}`);
|
|
17942
17949
|
}
|
|
17943
|
-
function
|
|
17950
|
+
function Dj(l) {
|
|
17944
17951
|
const r = l.replaceAll("_", " ");
|
|
17945
17952
|
if (!r) return "";
|
|
17946
17953
|
const c = `${r.charAt(0).toUpperCase()}${r.slice(1)}`, u = {
|
|
@@ -17958,7 +17965,7 @@ function qj(l) {
|
|
|
17958
17965
|
};
|
|
17959
17966
|
return c.replace(/\b(ai|api|csv|d1|http|https|id|json|r2|sla|url)\b/giu, (d) => u[d.toLowerCase()] ?? d);
|
|
17960
17967
|
}
|
|
17961
|
-
function
|
|
17968
|
+
function zj(l) {
|
|
17962
17969
|
document.body.classList.toggle("workspace-mode", l), document.body.classList.toggle("login-mode", !l), document.body.classList.remove("mobile-navigation-open", "report-open"), window.scrollTo({
|
|
17963
17970
|
top: 0,
|
|
17964
17971
|
left: 0,
|
|
@@ -17967,19 +17974,19 @@ function Dj(l) {
|
|
|
17967
17974
|
}
|
|
17968
17975
|
function so(l) {
|
|
17969
17976
|
const r = s0("login"), c = s0("workspace");
|
|
17970
|
-
r && (r.hidden = l), c && (c.hidden = !l),
|
|
17977
|
+
r && (r.hidden = l), c && (c.hidden = !l), zj(l), l || wd("command");
|
|
17971
17978
|
}
|
|
17972
|
-
function
|
|
17979
|
+
function Uj(l) {
|
|
17973
17980
|
return new Set(Q0(l).flatMap((r) => r.items.map((c) => c.view)));
|
|
17974
17981
|
}
|
|
17975
17982
|
function wd(l) {
|
|
17976
|
-
const r = de().session ?
|
|
17983
|
+
const r = de().session ? qj[l] || Dj(l) : "Reports and workflows";
|
|
17977
17984
|
document.title = `${il.organization_name || "Safest Resolve"} — ${r}`;
|
|
17978
17985
|
}
|
|
17979
17986
|
function kr(l) {
|
|
17980
17987
|
const r = de().session;
|
|
17981
17988
|
if (!r) return;
|
|
17982
|
-
const c = [...document.querySelectorAll("[data-view]")], u =
|
|
17989
|
+
const c = [...document.querySelectorAll("[data-view]")], u = Uj(r), d = l, m = u.has(d) && c.some((S) => S.dataset.view === d) ? d : "command";
|
|
17983
17990
|
for (const S of c) S.hidden = S.dataset.view !== m;
|
|
17984
17991
|
window.location.hash !== `#${m}` && history.replaceState(null, "", `#${m}`), Dn((S) => ({
|
|
17985
17992
|
...S,
|
|
@@ -18010,7 +18017,7 @@ async function Y0(l, r = !1) {
|
|
|
18010
18017
|
V0(r ? "" : ne(c, "Authentication failed."));
|
|
18011
18018
|
}
|
|
18012
18019
|
}
|
|
18013
|
-
async function
|
|
18020
|
+
async function Lj() {
|
|
18014
18021
|
let l = "ready", r = "Durable storage ready";
|
|
18015
18022
|
try {
|
|
18016
18023
|
await F("/health");
|
|
@@ -18025,7 +18032,7 @@ async function Uj() {
|
|
|
18025
18032
|
}
|
|
18026
18033
|
}));
|
|
18027
18034
|
}
|
|
18028
|
-
async function
|
|
18035
|
+
async function Hj() {
|
|
18029
18036
|
try {
|
|
18030
18037
|
await F("/v1/auth/logout", { method: "POST" });
|
|
18031
18038
|
} catch {
|
|
@@ -18038,17 +18045,17 @@ async function Lj() {
|
|
|
18038
18045
|
reportCount: 0
|
|
18039
18046
|
})), so(!1), window.dispatchEvent(new Event(Nt.focusEmail));
|
|
18040
18047
|
}
|
|
18041
|
-
async function
|
|
18048
|
+
async function Bj() {
|
|
18042
18049
|
try {
|
|
18043
18050
|
il = await window.SafestBrand?.loadBrand("/v1/brand", { title: "Reports and workflows" }) || il;
|
|
18044
18051
|
} catch {
|
|
18045
18052
|
il = window.SafestBrand?.defaults || il;
|
|
18046
18053
|
}
|
|
18047
|
-
await
|
|
18054
|
+
await Lj();
|
|
18048
18055
|
const l = new URLSearchParams(window.location.hash.slice(1));
|
|
18049
18056
|
l.has("invite") || l.has("reset") || (sessionStorage.getItem("safest-reports-force-login") !== "true" ? await Y0(void 0, !uy()) : (so(!1), window.dispatchEvent(new Event(Nt.focusEmail))));
|
|
18050
18057
|
}
|
|
18051
|
-
function
|
|
18058
|
+
function $j() {
|
|
18052
18059
|
i0 || (i0 = !0, window.addEventListener("safest-brand-applied", (l) => {
|
|
18053
18060
|
!(l instanceof CustomEvent) || !l.detail?.brand || (il = {
|
|
18054
18061
|
...il,
|
|
@@ -18059,7 +18066,7 @@ function Bj() {
|
|
|
18059
18066
|
}), window.addEventListener("safest:auth:expired", (l) => {
|
|
18060
18067
|
V0(l instanceof CustomEvent && typeof l.detail?.message == "string" ? l.detail.message : "Your session expired. Sign in again.");
|
|
18061
18068
|
}), window.addEventListener(Fi.signOut, () => {
|
|
18062
|
-
|
|
18069
|
+
Hj();
|
|
18063
18070
|
}), window.addEventListener(Fi.navigate, (l) => {
|
|
18064
18071
|
const r = l instanceof CustomEvent && typeof l.detail?.view == "string" ? l.detail.view : "command";
|
|
18065
18072
|
kr(r), r === "assistant" && window.dispatchEvent(new Event("safest:assistant:focus"));
|
|
@@ -18067,7 +18074,7 @@ function Bj() {
|
|
|
18067
18074
|
(l.metaKey || l.ctrlKey) && l.key.toLowerCase() === "k" && de().session?.permissions.useAssistant && (l.preventDefault(), kr("assistant"), window.dispatchEvent(new Event("safest:assistant:focus")));
|
|
18068
18075
|
}), window.addEventListener("hashchange", () => {
|
|
18069
18076
|
de().session && !window.location.hash.startsWith("#invite=") && kr(window.location.hash.slice(1) || "reports");
|
|
18070
|
-
}),
|
|
18077
|
+
}), Bj());
|
|
18071
18078
|
}
|
|
18072
18079
|
var rn = {
|
|
18073
18080
|
openCreate: "safest:workflows:create-open",
|
|
@@ -18112,7 +18119,7 @@ function jt(l, r, c, u, d = "input") {
|
|
|
18112
18119
|
}
|
|
18113
18120
|
};
|
|
18114
18121
|
}
|
|
18115
|
-
var
|
|
18122
|
+
var Qj = [
|
|
18116
18123
|
{
|
|
18117
18124
|
value: "human",
|
|
18118
18125
|
name: "Human review",
|
|
@@ -18129,7 +18136,7 @@ var $j = [
|
|
|
18129
18136
|
detail: "Only a start and end step. Build the path yourself."
|
|
18130
18137
|
}
|
|
18131
18138
|
];
|
|
18132
|
-
function
|
|
18139
|
+
function Vj(l, r) {
|
|
18133
18140
|
const c = {
|
|
18134
18141
|
schema_version: "1",
|
|
18135
18142
|
purpose: r,
|
|
@@ -18205,7 +18212,7 @@ function Qj(l, r) {
|
|
|
18205
18212
|
]
|
|
18206
18213
|
};
|
|
18207
18214
|
}
|
|
18208
|
-
var
|
|
18215
|
+
var Yj = {
|
|
18209
18216
|
name: "Happy path",
|
|
18210
18217
|
input: {},
|
|
18211
18218
|
component_results: {},
|
|
@@ -18216,10 +18223,10 @@ var Vj = {
|
|
|
18216
18223
|
},
|
|
18217
18224
|
failure_injection: {}
|
|
18218
18225
|
};
|
|
18219
|
-
function
|
|
18226
|
+
function Gj(l) {
|
|
18220
18227
|
return l.toLowerCase().trim().replace(/[^a-z0-9]+/gu, "-").replace(/^-|-$/gu, "").slice(0, 100);
|
|
18221
18228
|
}
|
|
18222
|
-
function
|
|
18229
|
+
function Xj() {
|
|
18223
18230
|
const l = (0, v.useRef)(null), r = (0, v.useRef)(null), [c, u] = (0, v.useState)(!1), [d, m] = (0, v.useState)(""), [S, p] = (0, v.useState)(""), [j, b] = (0, v.useState)(!1), [g, x] = (0, v.useState)(""), [y, k] = (0, v.useState)("report"), [w, L] = (0, v.useState)("human"), [P, pe] = (0, v.useState)(!1), [$, I] = (0, v.useState)(""), re = () => {
|
|
18224
18231
|
m(""), p(""), b(!1), x(""), k("report"), L("human"), I("");
|
|
18225
18232
|
}, ge = () => {
|
|
@@ -18245,7 +18252,7 @@ function Gj() {
|
|
|
18245
18252
|
name: d,
|
|
18246
18253
|
description: g,
|
|
18247
18254
|
purpose: y,
|
|
18248
|
-
graph:
|
|
18255
|
+
graph: Vj(w, y)
|
|
18249
18256
|
})
|
|
18250
18257
|
});
|
|
18251
18258
|
let Z = "";
|
|
@@ -18253,7 +18260,7 @@ function Gj() {
|
|
|
18253
18260
|
await F(`/v1/admin/workflows/${encodeURIComponent(Q.workflowId)}/fixtures`, {
|
|
18254
18261
|
method: "POST",
|
|
18255
18262
|
headers: ot(),
|
|
18256
|
-
body: JSON.stringify(
|
|
18263
|
+
body: JSON.stringify(Yj)
|
|
18257
18264
|
});
|
|
18258
18265
|
} catch (W) {
|
|
18259
18266
|
Z = ne(W, "The starter fixture could not be created.");
|
|
@@ -18301,7 +18308,7 @@ function Gj() {
|
|
|
18301
18308
|
value: d,
|
|
18302
18309
|
onChange: (O) => {
|
|
18303
18310
|
const Q = O.currentTarget.value;
|
|
18304
|
-
m(Q), j || p(
|
|
18311
|
+
m(Q), j || p(Gj(Q));
|
|
18305
18312
|
}
|
|
18306
18313
|
})] }),
|
|
18307
18314
|
/* @__PURE__ */ (0, n.jsxs)("label", { children: ["Key", /* @__PURE__ */ (0, n.jsx)("input", {
|
|
@@ -18348,7 +18355,7 @@ function Gj() {
|
|
|
18348
18355
|
})] })
|
|
18349
18356
|
]
|
|
18350
18357
|
}),
|
|
18351
|
-
/* @__PURE__ */ (0, n.jsxs)("fieldset", { children: [/* @__PURE__ */ (0, n.jsx)("legend", { children: "Starting template" }),
|
|
18358
|
+
/* @__PURE__ */ (0, n.jsxs)("fieldset", { children: [/* @__PURE__ */ (0, n.jsx)("legend", { children: "Starting template" }), Qj.map((O) => /* @__PURE__ */ (0, n.jsxs)("label", {
|
|
18352
18359
|
className: "template-choice",
|
|
18353
18360
|
children: [/* @__PURE__ */ (0, n.jsx)("input", {
|
|
18354
18361
|
type: "radio",
|
|
@@ -18382,7 +18389,7 @@ function Gj() {
|
|
|
18382
18389
|
})]
|
|
18383
18390
|
});
|
|
18384
18391
|
}
|
|
18385
|
-
var
|
|
18392
|
+
var Zj = [
|
|
18386
18393
|
{
|
|
18387
18394
|
kind: "enrichment",
|
|
18388
18395
|
name: "Enrichment",
|
|
@@ -18444,7 +18451,7 @@ var Xj = [
|
|
|
18444
18451
|
tone: "action"
|
|
18445
18452
|
}
|
|
18446
18453
|
];
|
|
18447
|
-
function
|
|
18454
|
+
function Kj(l) {
|
|
18448
18455
|
return l === "human_task" || l === "wait_for_event" || l === "send_message" || l === "decision" ? "human" : l === "action" ? "action" : l === "ai_proposal" ? "ai" : "";
|
|
18449
18456
|
}
|
|
18450
18457
|
function Sd(l, r) {
|
|
@@ -18454,7 +18461,7 @@ function Sd(l, r) {
|
|
|
18454
18461
|
y: Number.isFinite(u) ? u : 70 + Math.floor(r / 5) * 125
|
|
18455
18462
|
};
|
|
18456
18463
|
}
|
|
18457
|
-
function
|
|
18464
|
+
function Jj(l) {
|
|
18458
18465
|
const r = new Map(l.nodes.map((c, u) => [c.id, Sd(c, u)]));
|
|
18459
18466
|
return {
|
|
18460
18467
|
width: Math.max(920, ...[...r.values()].map((c) => c.x + 200)),
|
|
@@ -18462,7 +18469,7 @@ function Kj(l) {
|
|
|
18462
18469
|
positions: r
|
|
18463
18470
|
};
|
|
18464
18471
|
}
|
|
18465
|
-
function
|
|
18472
|
+
function Ij(l, r, c = 0) {
|
|
18466
18473
|
const S = r.x - (l.x + 168), p = c * 9;
|
|
18467
18474
|
if (S >= 0) return {
|
|
18468
18475
|
kind: "forward",
|
|
@@ -18499,7 +18506,7 @@ function Jj(l, r, c = 0) {
|
|
|
18499
18506
|
}
|
|
18500
18507
|
};
|
|
18501
18508
|
}
|
|
18502
|
-
function
|
|
18509
|
+
function Wj(l, r = 0) {
|
|
18503
18510
|
const { start: c, end: u } = l;
|
|
18504
18511
|
if (l.kind === "forward") {
|
|
18505
18512
|
const S = Math.max(28, Math.abs(u.x - c.x) * 0.42);
|
|
@@ -18512,7 +18519,7 @@ function Ij(l, r = 0) {
|
|
|
18512
18519
|
const d = Math.max(28, Math.abs(u.y - c.y) * 0.38), m = u.y >= c.y ? 1 : -1;
|
|
18513
18520
|
return `M ${c.x} ${c.y} C ${c.x} ${c.y + d * m}, ${u.x} ${u.y - d * m}, ${u.x} ${u.y}`;
|
|
18514
18521
|
}
|
|
18515
|
-
function
|
|
18522
|
+
function Fj(l) {
|
|
18516
18523
|
return l.label ? l.label : [
|
|
18517
18524
|
"success",
|
|
18518
18525
|
"input",
|
|
@@ -18525,10 +18532,10 @@ function Wj(l) {
|
|
|
18525
18532
|
"received"
|
|
18526
18533
|
].includes(l.from.port) ? "" : K(l.from.port);
|
|
18527
18534
|
}
|
|
18528
|
-
function
|
|
18535
|
+
function Pj(l) {
|
|
18529
18536
|
return /error|failed|rejected|timeout/u.test(l.from.port) ? "exception" : /uncertain|cancelled|expired/u.test(l.from.port) ? "warning" : "standard";
|
|
18530
18537
|
}
|
|
18531
|
-
function
|
|
18538
|
+
function ew(l, r) {
|
|
18532
18539
|
return l === "human_task" ? {
|
|
18533
18540
|
queue_id: r || "select-a-queue",
|
|
18534
18541
|
response_schema: { type: "object" }
|
|
@@ -18549,10 +18556,10 @@ function Pj(l, r) {
|
|
|
18549
18556
|
optional_ports: []
|
|
18550
18557
|
} : l === "parallel_group" ? { branch_ids: [] } : {};
|
|
18551
18558
|
}
|
|
18552
|
-
function
|
|
18559
|
+
function tw(l) {
|
|
18553
18560
|
return l === "action" ? "applied" : l === "decision" ? "recorded" : l === "human_task" ? "completed" : l === "send_message" ? "sent" : "success";
|
|
18554
18561
|
}
|
|
18555
|
-
function
|
|
18562
|
+
function aw(l, r, c, u) {
|
|
18556
18563
|
const d = structuredClone(l), m = r.replaceAll("_", "-");
|
|
18557
18564
|
let S = m, p = 2;
|
|
18558
18565
|
for (; d.nodes.some((x) => x.id === S); ) S = `${m}-${p++}`;
|
|
@@ -18563,7 +18570,7 @@ function tw(l, r, c, u) {
|
|
|
18563
18570
|
name: c,
|
|
18564
18571
|
description: "",
|
|
18565
18572
|
input_mapping: {},
|
|
18566
|
-
config:
|
|
18573
|
+
config: ew(r, u),
|
|
18567
18574
|
metadata: Sd({ metadata: void 0 }, b)
|
|
18568
18575
|
});
|
|
18569
18576
|
const g = j ? d.edges.find((x) => x.to.node_id === j.id) : void 0;
|
|
@@ -18574,7 +18581,7 @@ function tw(l, r, c, u) {
|
|
|
18574
18581
|
id: `edge-${S}-${j.id}`.slice(0, 100),
|
|
18575
18582
|
from: {
|
|
18576
18583
|
node_id: S,
|
|
18577
|
-
port:
|
|
18584
|
+
port: tw(r)
|
|
18578
18585
|
},
|
|
18579
18586
|
to: {
|
|
18580
18587
|
node_id: j.id,
|
|
@@ -18585,7 +18592,7 @@ function tw(l, r, c, u) {
|
|
|
18585
18592
|
nodeId: S
|
|
18586
18593
|
};
|
|
18587
18594
|
}
|
|
18588
|
-
function
|
|
18595
|
+
function nw(l, r) {
|
|
18589
18596
|
const c = structuredClone(l), u = c.nodes.find((S) => S.id === r);
|
|
18590
18597
|
if (!u || u.kind === "start" || u.kind === "end") return c;
|
|
18591
18598
|
const d = c.edges.filter((S) => S.to.node_id === r), m = c.edges.filter((S) => S.from.node_id === r);
|
|
@@ -18597,8 +18604,8 @@ function aw(l, r) {
|
|
|
18597
18604
|
});
|
|
18598
18605
|
return c;
|
|
18599
18606
|
}
|
|
18600
|
-
function
|
|
18601
|
-
const { width: u, height: d, positions: m } =
|
|
18607
|
+
function lw({ graph: l, selectedNodeId: r, onSelect: c }) {
|
|
18608
|
+
const { width: u, height: d, positions: m } = Jj(l), S = /* @__PURE__ */ new Map();
|
|
18602
18609
|
for (const p of l.edges) {
|
|
18603
18610
|
const j = `${p.from.node_id}:${p.to.node_id}`;
|
|
18604
18611
|
S.set(j, [...S.get(j) ?? [], p.id]);
|
|
@@ -18634,12 +18641,12 @@ function nw({ graph: l, selectedNodeId: r, onSelect: c }) {
|
|
|
18634
18641
|
}, p)) }), l.edges.map((p) => {
|
|
18635
18642
|
const j = m.get(p.from.node_id), b = m.get(p.to.node_id);
|
|
18636
18643
|
if (!j || !b) return null;
|
|
18637
|
-
const g = S.get(`${p.from.node_id}:${p.to.node_id}`) ?? [p.id], x = g.indexOf(p.id) - (g.length - 1) / 2, y =
|
|
18644
|
+
const g = S.get(`${p.from.node_id}:${p.to.node_id}`) ?? [p.id], x = g.indexOf(p.id) - (g.length - 1) / 2, y = Ij(j, b, x), k = Pj(p), w = Fj(p), L = Math.hypot(y.end.x - y.start.x, y.end.y - y.start.y);
|
|
18638
18645
|
return /* @__PURE__ */ (0, n.jsxs)("g", {
|
|
18639
18646
|
className: `workflow-edge-group ${k}`,
|
|
18640
18647
|
children: [/* @__PURE__ */ (0, n.jsx)("path", {
|
|
18641
18648
|
className: "workflow-edge-path",
|
|
18642
|
-
d:
|
|
18649
|
+
d: Wj(y, x),
|
|
18643
18650
|
markerEnd: `url(#workflow-arrow-${k})`,
|
|
18644
18651
|
children: /* @__PURE__ */ (0, n.jsx)("title", { children: p.label || `${p.from.port} → ${p.to.port}` })
|
|
18645
18652
|
}), w && L >= Math.max(70, w.length * 5.2 + 18) ? /* @__PURE__ */ (0, n.jsx)("text", {
|
|
@@ -18654,7 +18661,7 @@ function nw({ graph: l, selectedNodeId: r, onSelect: c }) {
|
|
|
18654
18661
|
}), l.nodes.map((p, j) => {
|
|
18655
18662
|
const b = m.get(p.id) ?? Sd(p, j);
|
|
18656
18663
|
return /* @__PURE__ */ (0, n.jsxs)("button", {
|
|
18657
|
-
className: `canvas-node ${
|
|
18664
|
+
className: `canvas-node ${Kj(p.kind)}${r === p.id ? " selected" : ""}`,
|
|
18658
18665
|
type: "button",
|
|
18659
18666
|
"data-kind": p.kind,
|
|
18660
18667
|
"aria-pressed": r === p.id,
|
|
@@ -18683,7 +18690,7 @@ function o0(l, r) {
|
|
|
18683
18690
|
function c0(l, r) {
|
|
18684
18691
|
return !(l instanceof eo) || l.status !== r || !l.body || typeof l.body != "object" ? null : l.body;
|
|
18685
18692
|
}
|
|
18686
|
-
function
|
|
18693
|
+
function iw(l, r) {
|
|
18687
18694
|
return l.draft?.validation ? {
|
|
18688
18695
|
kind: "validation",
|
|
18689
18696
|
heading: r,
|
|
@@ -18694,7 +18701,7 @@ function lw(l, r) {
|
|
|
18694
18701
|
detail: "This immutable version can be inspected or pinned to a queue."
|
|
18695
18702
|
};
|
|
18696
18703
|
}
|
|
18697
|
-
function
|
|
18704
|
+
function sw({ state: l }) {
|
|
18698
18705
|
if (l.kind === "validation") {
|
|
18699
18706
|
const r = [...(l.validation.errors || []).map((c) => ({
|
|
18700
18707
|
...c,
|
|
@@ -18750,7 +18757,7 @@ function iw({ state: l }) {
|
|
|
18750
18757
|
}
|
|
18751
18758
|
return /* @__PURE__ */ (0, n.jsxs)(n.Fragment, { children: [/* @__PURE__ */ (0, n.jsx)("p", { children: /* @__PURE__ */ (0, n.jsx)("strong", { children: l.heading }) }), /* @__PURE__ */ (0, n.jsx)("p", { children: l.detail })] });
|
|
18752
18759
|
}
|
|
18753
|
-
function
|
|
18760
|
+
function rw({ node: l, readOnly: r, busy: c, onApply: u, onRemove: d }) {
|
|
18754
18761
|
const [m, S] = (0, v.useState)(""), [p, j] = (0, v.useState)(""), [b, g] = (0, v.useState)(""), [x, y] = (0, v.useState)("{}"), [k, w] = (0, v.useState)("{}"), [L, P] = (0, v.useState)("");
|
|
18755
18762
|
if ((0, v.useEffect)(() => {
|
|
18756
18763
|
S(l?.name || ""), j(l?.description || ""), g(l?.error_port || ""), y(JSON.stringify(l?.input_mapping || {}, null, 2)), w(JSON.stringify(l?.config || {}, null, 2)), P("");
|
|
@@ -18857,7 +18864,7 @@ function sw({ node: l, readOnly: r, busy: c, onApply: u, onRemove: d }) {
|
|
|
18857
18864
|
]
|
|
18858
18865
|
});
|
|
18859
18866
|
}
|
|
18860
|
-
function
|
|
18867
|
+
function ow() {
|
|
18861
18868
|
const l = (0, v.useSyncExternalStore)(ct, de, de), r = (0, v.useRef)(null), c = (0, v.useRef)(null), [u, d] = (0, v.useState)(null), [m, S] = (0, v.useState)(""), [p, j] = (0, v.useState)(null), [b, g] = (0, v.useState)(null), [x, y] = (0, v.useState)(null), [k, w] = (0, v.useState)([]), [L, P] = (0, v.useState)("assist"), [pe, $] = (0, v.useState)(!1), [I, re] = (0, v.useState)(!1), [ge, oe] = (0, v.useState)(""), [O, Q] = (0, v.useState)(""), [Z, W] = (0, v.useState)(!1), [he, ve] = (0, v.useState)(""), [Ve, fe] = (0, v.useState)({
|
|
18862
18869
|
kind: "message",
|
|
18863
18870
|
heading: "Workflow studio",
|
|
@@ -18902,7 +18909,7 @@ function rw() {
|
|
|
18902
18909
|
kind: "message",
|
|
18903
18910
|
heading: "Workflow created with a warning",
|
|
18904
18911
|
detail: m
|
|
18905
|
-
} :
|
|
18912
|
+
} : iw(Sa, "Stored validation"));
|
|
18906
18913
|
} catch (Oe) {
|
|
18907
18914
|
X && Q(ne(Oe, "The workflow could not be opened."));
|
|
18908
18915
|
} finally {
|
|
@@ -19088,11 +19095,11 @@ function rw() {
|
|
|
19088
19095
|
ce.nodes = ce.nodes.map((Oe) => Oe.id === X.id ? X : Oe), await xe(ce);
|
|
19089
19096
|
}, Bt = async (X) => {
|
|
19090
19097
|
if (!b || !window.confirm(`Remove “${X.name}” and reconnect its surrounding steps?`)) return;
|
|
19091
|
-
const ce =
|
|
19098
|
+
const ce = nw(b, X.id);
|
|
19092
19099
|
await xe(ce) && y(ce.entry_node_id || ce.nodes[0]?.id || null);
|
|
19093
19100
|
}, fa = async (X, ce) => {
|
|
19094
19101
|
if (!b) return;
|
|
19095
|
-
const Oe =
|
|
19102
|
+
const Oe = aw(b, X, ce, k[0]?.id);
|
|
19096
19103
|
await xe(Oe.graph) && y(Oe.nodeId);
|
|
19097
19104
|
}, on = async () => {
|
|
19098
19105
|
Q("");
|
|
@@ -19214,7 +19221,7 @@ function rw() {
|
|
|
19214
19221
|
/* @__PURE__ */ (0, n.jsx)("p", { children: "Choose a step. Use Advanced graph for branches or parallel paths." }),
|
|
19215
19222
|
/* @__PURE__ */ (0, n.jsx)("div", {
|
|
19216
19223
|
className: "node-palette-list",
|
|
19217
|
-
children:
|
|
19224
|
+
children: Zj.map((X) => /* @__PURE__ */ (0, n.jsxs)("button", {
|
|
19218
19225
|
className: "palette-button",
|
|
19219
19226
|
type: "button",
|
|
19220
19227
|
disabled: Y || D,
|
|
@@ -19244,7 +19251,7 @@ function rw() {
|
|
|
19244
19251
|
/* @__PURE__ */ (0, n.jsxs)("span", { children: [/* @__PURE__ */ (0, n.jsx)("i", { className: "human" }), "Human"] }),
|
|
19245
19252
|
/* @__PURE__ */ (0, n.jsxs)("span", { children: [/* @__PURE__ */ (0, n.jsx)("i", { className: "action" }), "Action"] })
|
|
19246
19253
|
]
|
|
19247
|
-
}), /* @__PURE__ */ (0, n.jsx)(
|
|
19254
|
+
}), /* @__PURE__ */ (0, n.jsx)(lw, {
|
|
19248
19255
|
graph: b,
|
|
19249
19256
|
selectedNodeId: x,
|
|
19250
19257
|
onSelect: y
|
|
@@ -19252,7 +19259,7 @@ function rw() {
|
|
|
19252
19259
|
}),
|
|
19253
19260
|
/* @__PURE__ */ (0, n.jsx)("aside", {
|
|
19254
19261
|
className: "node-inspector",
|
|
19255
|
-
children: /* @__PURE__ */ (0, n.jsx)(
|
|
19262
|
+
children: /* @__PURE__ */ (0, n.jsx)(rw, {
|
|
19256
19263
|
node: te,
|
|
19257
19264
|
readOnly: D,
|
|
19258
19265
|
busy: Y,
|
|
@@ -19291,7 +19298,7 @@ function rw() {
|
|
|
19291
19298
|
children: [/* @__PURE__ */ (0, n.jsx)("strong", { children: "Checks and test results" }), /* @__PURE__ */ (0, n.jsx)("span", { children: p?.draft?.validationStatus ? K(p.draft.validationStatus) : D ? "Published" : "Not checked" })]
|
|
19292
19299
|
}), /* @__PURE__ */ (0, n.jsxs)("div", {
|
|
19293
19300
|
className: "console-output",
|
|
19294
|
-
children: [/* @__PURE__ */ (0, n.jsx)(
|
|
19301
|
+
children: [/* @__PURE__ */ (0, n.jsx)(sw, { state: Ve }), je ? /* @__PURE__ */ (0, n.jsxs)("form", {
|
|
19295
19302
|
className: "pin-control",
|
|
19296
19303
|
onSubmit: (X) => {
|
|
19297
19304
|
mt(X);
|
|
@@ -19340,10 +19347,10 @@ function rw() {
|
|
|
19340
19347
|
]
|
|
19341
19348
|
});
|
|
19342
19349
|
}
|
|
19343
|
-
function
|
|
19344
|
-
return /* @__PURE__ */ (0, n.jsxs)(n.Fragment, { children: [/* @__PURE__ */ (0, n.jsx)(
|
|
19350
|
+
function cw() {
|
|
19351
|
+
return /* @__PURE__ */ (0, n.jsxs)(n.Fragment, { children: [/* @__PURE__ */ (0, n.jsx)(Xj, {}), /* @__PURE__ */ (0, n.jsx)(ow, {})] });
|
|
19345
19352
|
}
|
|
19346
|
-
function
|
|
19353
|
+
function uw({ workflow: l }) {
|
|
19347
19354
|
const r = l.activeVersion?.version, c = l.activeVersion?.authorityMode;
|
|
19348
19355
|
return /* @__PURE__ */ (0, n.jsxs)("article", {
|
|
19349
19356
|
className: "object-card workflow-card",
|
|
@@ -19381,7 +19388,7 @@ function cw({ workflow: l }) {
|
|
|
19381
19388
|
]
|
|
19382
19389
|
});
|
|
19383
19390
|
}
|
|
19384
|
-
function
|
|
19391
|
+
function dw() {
|
|
19385
19392
|
const l = (0, v.useSyncExternalStore)(ct, de, de), r = l.session?.permissions.manageWorkflows === !0, [c, u] = (0, v.useState)([]), [d, m] = (0, v.useState)(!1), [S, p] = (0, v.useState)(!1), [j, b] = (0, v.useState)(""), g = (0, v.useCallback)(async (x = !1) => {
|
|
19386
19393
|
if (!r) {
|
|
19387
19394
|
u([]), m(!1);
|
|
@@ -19442,7 +19449,7 @@ function uw() {
|
|
|
19442
19449
|
/* @__PURE__ */ (0, n.jsx)("div", {
|
|
19443
19450
|
className: "object-grid workflow-list",
|
|
19444
19451
|
"aria-busy": d || S,
|
|
19445
|
-
children: d ? /* @__PURE__ */ (0, n.jsxs)(n.Fragment, { children: [/* @__PURE__ */ (0, n.jsx)("div", { className: "skeleton-card" }), /* @__PURE__ */ (0, n.jsx)("div", { className: "skeleton-card" })] }) : c.length ? c.map((x) => /* @__PURE__ */ (0, n.jsx)(
|
|
19452
|
+
children: d ? /* @__PURE__ */ (0, n.jsxs)(n.Fragment, { children: [/* @__PURE__ */ (0, n.jsx)("div", { className: "skeleton-card" }), /* @__PURE__ */ (0, n.jsx)("div", { className: "skeleton-card" })] }) : c.length ? c.map((x) => /* @__PURE__ */ (0, n.jsx)(uw, { workflow: x }, x.id)) : j ? null : /* @__PURE__ */ (0, n.jsxs)("div", {
|
|
19446
19453
|
className: "empty-product",
|
|
19447
19454
|
children: [
|
|
19448
19455
|
/* @__PURE__ */ (0, n.jsx)("span", {
|
|
@@ -19476,7 +19483,7 @@ if (Mu) {
|
|
|
19476
19483
|
var Ou = document.querySelector("#workspace-shell-root"), u0 = document.querySelector("#workspace-navigation-root");
|
|
19477
19484
|
if (Ou && u0) {
|
|
19478
19485
|
const l = (0, Je.createRoot)(Ou);
|
|
19479
|
-
(0, St.flushSync)(() => l.render(/* @__PURE__ */ (0, n.jsx)(
|
|
19486
|
+
(0, St.flushSync)(() => l.render(/* @__PURE__ */ (0, n.jsx)(kj, { navigationTarget: u0 }))), Ou.dataset.reactMounted = "true";
|
|
19480
19487
|
}
|
|
19481
19488
|
var ku = document.querySelector("#command-centre-root");
|
|
19482
19489
|
if (ku) {
|
|
@@ -19487,7 +19494,7 @@ var qu = document.querySelector("#report-workspace-root"), Du = document.querySe
|
|
|
19487
19494
|
if (qu && Du) {
|
|
19488
19495
|
const l = (0, Je.createRoot)(qu), r = (0, Je.createRoot)(Du);
|
|
19489
19496
|
(0, St.flushSync)(() => {
|
|
19490
|
-
l.render(/* @__PURE__ */ (0, n.jsx)(
|
|
19497
|
+
l.render(/* @__PURE__ */ (0, n.jsx)(rj, {})), r.render(/* @__PURE__ */ (0, n.jsx)(aj, {}));
|
|
19491
19498
|
}), qu.dataset.reactMounted = "true", Du.dataset.reactMounted = "true";
|
|
19492
19499
|
}
|
|
19493
19500
|
var zu = document.querySelector("#queue-workspace-root"), Uu = document.querySelector("#queue-editor-root");
|
|
@@ -19501,7 +19508,7 @@ var Lu = document.querySelector("#workflow-workspace-root"), Hu = document.query
|
|
|
19501
19508
|
if (Lu && Hu) {
|
|
19502
19509
|
const l = (0, Je.createRoot)(Lu), r = (0, Je.createRoot)(Hu);
|
|
19503
19510
|
(0, St.flushSync)(() => {
|
|
19504
|
-
l.render(/* @__PURE__ */ (0, n.jsx)(
|
|
19511
|
+
l.render(/* @__PURE__ */ (0, n.jsx)(dw, {})), r.render(/* @__PURE__ */ (0, n.jsx)(cw, {}));
|
|
19505
19512
|
}), Lu.dataset.reactMounted = "true", Hu.dataset.reactMounted = "true";
|
|
19506
19513
|
}
|
|
19507
19514
|
var Bu = document.querySelector("#registry-workspace-root"), $u = document.querySelector("#registry-dialog-root");
|
|
@@ -19570,7 +19577,7 @@ var ed = document.querySelector("#settings-workspace-root"), td = document.query
|
|
|
19570
19577
|
if (ed && td) {
|
|
19571
19578
|
const l = (0, Je.createRoot)(ed), r = (0, Je.createRoot)(td);
|
|
19572
19579
|
(0, St.flushSync)(() => {
|
|
19573
|
-
l.render(/* @__PURE__ */ (0, n.jsx)(
|
|
19580
|
+
l.render(/* @__PURE__ */ (0, n.jsx)(Sj, {})), r.render(/* @__PURE__ */ (0, n.jsx)(hj, {}));
|
|
19574
19581
|
}), ed.dataset.reactMounted = "true", td.dataset.reactMounted = "true";
|
|
19575
19582
|
}
|
|
19576
|
-
|
|
19583
|
+
$j();
|