@apolitical/component-library 8.3.9 → 8.3.10-ae.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/index.mjs
CHANGED
|
@@ -411,7 +411,7 @@ function iD() {
|
|
|
411
411
|
}
|
|
412
412
|
return "";
|
|
413
413
|
}
|
|
414
|
-
var se = Object.prototype.hasOwnProperty,
|
|
414
|
+
var se = Object.prototype.hasOwnProperty, ve = {}, De = v.ReactDebugCurrentFrame;
|
|
415
415
|
function Me(W) {
|
|
416
416
|
if (W) {
|
|
417
417
|
var Ee = W._owner, Oe = xe(W.type, W._source, Ee ? Ee.type : null);
|
|
@@ -434,7 +434,7 @@ function iD() {
|
|
|
434
434
|
} catch (hn) {
|
|
435
435
|
Tt = hn;
|
|
436
436
|
}
|
|
437
|
-
Tt && !(Tt instanceof Error) && (Me(Rt), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", nt || "React class", Oe, St, typeof Tt), Me(null)), Tt instanceof Error && !(Tt.message in
|
|
437
|
+
Tt && !(Tt instanceof Error) && (Me(Rt), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", nt || "React class", Oe, St, typeof Tt), Me(null)), Tt instanceof Error && !(Tt.message in ve) && (ve[Tt.message] = !0, Me(Rt), b("Failed %s type: %s", Oe, Tt.message), Me(null));
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
}
|
|
@@ -458,7 +458,7 @@ function iD() {
|
|
|
458
458
|
function re(W) {
|
|
459
459
|
return "" + W;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function ge(W) {
|
|
462
462
|
if (Ue(W))
|
|
463
463
|
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ut(W)), re(W);
|
|
464
464
|
}
|
|
@@ -545,7 +545,7 @@ function iD() {
|
|
|
545
545
|
function Jn(W, Ee, Oe, nt, Rt) {
|
|
546
546
|
{
|
|
547
547
|
var Yt, St = {}, Tt = null, qn = null;
|
|
548
|
-
Oe !== void 0 && (
|
|
548
|
+
Oe !== void 0 && (ge(Oe), Tt = "" + Oe), It(Ee) && (ge(Ee.key), Tt = "" + Ee.key), Ve(Ee) && (qn = Ee.ref, _t(Ee, Rt));
|
|
549
549
|
for (Yt in Ee)
|
|
550
550
|
se.call(Ee, Yt) && !be.hasOwnProperty(Yt) && (St[Yt] = Ee[Yt]);
|
|
551
551
|
if (W && W.defaultProps) {
|
|
@@ -2243,6 +2243,7 @@ const Nv = ({
|
|
|
2243
2243
|
const m5 = {
|
|
2244
2244
|
customCard: "custom",
|
|
2245
2245
|
microcourse: "course",
|
|
2246
|
+
courseJourney: "course",
|
|
2246
2247
|
solutionArticle: "article",
|
|
2247
2248
|
qaQuestion: "question",
|
|
2248
2249
|
listPage: "list",
|
|
@@ -6241,9 +6242,9 @@ function zN({
|
|
|
6241
6242
|
}) {
|
|
6242
6243
|
const { mutate: r } = dn({
|
|
6243
6244
|
mutationFn: e,
|
|
6244
|
-
onMutate: ({ activityId: i, content: a }) => t((
|
|
6245
|
-
const
|
|
6246
|
-
return
|
|
6245
|
+
onMutate: ({ activityId: i, content: a, title: o }) => t((s) => {
|
|
6246
|
+
const l = fr(i, s);
|
|
6247
|
+
return l && (l.content = a, l.title = o), s;
|
|
6247
6248
|
}),
|
|
6248
6249
|
onError: n
|
|
6249
6250
|
});
|
|
@@ -6613,7 +6614,7 @@ const Lve = ({
|
|
|
6613
6614
|
}
|
|
6614
6615
|
),
|
|
6615
6616
|
E == null ? void 0 : E.map((Y, M) => {
|
|
6616
|
-
var xe, se,
|
|
6617
|
+
var xe, se, ve, De, Me, vt, Et, ot, ut;
|
|
6617
6618
|
const {
|
|
6618
6619
|
id: U,
|
|
6619
6620
|
own_reactions: V,
|
|
@@ -6622,11 +6623,11 @@ const Lve = ({
|
|
|
6622
6623
|
mentioned_users: ue,
|
|
6623
6624
|
total_replies: Q,
|
|
6624
6625
|
additional_data: ie
|
|
6625
|
-
} = Y, le = (((xe = z == null ? void 0 : z.like) == null ? void 0 : xe.length) || 0) > 0, te = (((se = V == null ? void 0 : V.like) == null ? void 0 : se.length) || 0) > 0, Se = te ? V == null ? void 0 : V.like[0].id : "", Pe = le ? (
|
|
6626
|
-
var re,
|
|
6626
|
+
} = Y, le = (((xe = z == null ? void 0 : z.like) == null ? void 0 : xe.length) || 0) > 0, te = (((se = V == null ? void 0 : V.like) == null ? void 0 : se.length) || 0) > 0, Se = te ? V == null ? void 0 : V.like[0].id : "", Pe = le ? (ve = z == null ? void 0 : z.like) == null ? void 0 : ve.map((Ue) => {
|
|
6627
|
+
var re, ge, Ie;
|
|
6627
6628
|
return {
|
|
6628
6629
|
id: (re = Ue == null ? void 0 : Ue.user) == null ? void 0 : re.id,
|
|
6629
|
-
name: (Ie = (
|
|
6630
|
+
name: (Ie = (ge = Ue == null ? void 0 : Ue.user) == null ? void 0 : ge.data) == null ? void 0 : Ie.name
|
|
6630
6631
|
};
|
|
6631
6632
|
}) : !1;
|
|
6632
6633
|
return /* @__PURE__ */ g.jsx(bc, { children: /* @__PURE__ */ g.jsx(
|
|
@@ -6676,7 +6677,7 @@ const Lve = ({
|
|
|
6676
6677
|
createContent: () => null,
|
|
6677
6678
|
deleteContent: () => F({ activityId: U }),
|
|
6678
6679
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6679
|
-
updateContent: (Ue, { body: re }) => D({ activityId: U, content: re })
|
|
6680
|
+
updateContent: (Ue, { body: re, title: ge }) => D({ activityId: U, content: re, title: ge })
|
|
6680
6681
|
},
|
|
6681
6682
|
likes: {
|
|
6682
6683
|
createLike: () => I({ activityId: U }),
|
|
@@ -10708,12 +10709,12 @@ const Fa = ({
|
|
|
10708
10709
|
return /* @__PURE__ */ g.jsx(te, { ...Q.props || {} }, `component-${le}-${ie}`);
|
|
10709
10710
|
const xe = (w == null ? void 0 : w[le]) || "", se = {
|
|
10710
10711
|
...Se,
|
|
10711
|
-
onChange: (
|
|
10712
|
-
R({ type: "updateValue", payload: { key: le, value:
|
|
10712
|
+
onChange: (ve) => {
|
|
10713
|
+
R({ type: "updateValue", payload: { key: le, value: ve } }), Se.onChange(ve, R);
|
|
10713
10714
|
}
|
|
10714
10715
|
};
|
|
10715
|
-
return Pe && (se.onKeyDown = (
|
|
10716
|
-
|
|
10716
|
+
return Pe && (se.onKeyDown = (ve) => {
|
|
10717
|
+
ve.key === "Enter" && (ve.stopPropagation(), ve.preventDefault(), U()), Se.onKeyDown && Se.onKeyDown(ve);
|
|
10717
10718
|
}), /* @__PURE__ */ g.jsx(
|
|
10718
10719
|
w3,
|
|
10719
10720
|
{
|
|
@@ -11987,8 +11988,8 @@ var TR = (e, t, n) => {
|
|
|
11987
11988
|
break;
|
|
11988
11989
|
var Se = _e.leaf(e, ie), Pe = Se.text.slice(0, le), xe = Se.text.slice(le + te.length);
|
|
11989
11990
|
if (Se.text = Pe + xe, t)
|
|
11990
|
-
for (var [se,
|
|
11991
|
-
t[
|
|
11991
|
+
for (var [se, ve] of ce.points(t))
|
|
11992
|
+
t[ve] = mt.transform(se, n);
|
|
11992
11993
|
break;
|
|
11993
11994
|
}
|
|
11994
11995
|
case "set_node": {
|
|
@@ -12022,14 +12023,14 @@ var TR = (e, t, n) => {
|
|
|
12022
12023
|
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(kn.stringify(re), " when there is no current selection."));
|
|
12023
12024
|
t = fu({}, re);
|
|
12024
12025
|
}
|
|
12025
|
-
for (var
|
|
12026
|
-
var Ie = re[
|
|
12026
|
+
for (var ge in re) {
|
|
12027
|
+
var Ie = re[ge];
|
|
12027
12028
|
if (Ie == null) {
|
|
12028
|
-
if (
|
|
12029
|
-
throw new Error('Cannot remove the "'.concat(
|
|
12030
|
-
delete t[
|
|
12029
|
+
if (ge === "anchor" || ge === "focus")
|
|
12030
|
+
throw new Error('Cannot remove the "'.concat(ge, '" selection property'));
|
|
12031
|
+
delete t[ge];
|
|
12031
12032
|
} else
|
|
12032
|
-
t[
|
|
12033
|
+
t[ge] = Ie;
|
|
12033
12034
|
}
|
|
12034
12035
|
}
|
|
12035
12036
|
break;
|
|
@@ -16907,15 +16908,15 @@ function LM(e) {
|
|
|
16907
16908
|
case "deleteContent":
|
|
16908
16909
|
case "deleteContentForward": {
|
|
16909
16910
|
var {
|
|
16910
|
-
anchor:
|
|
16911
|
+
anchor: ve
|
|
16911
16912
|
} = H;
|
|
16912
16913
|
if (N && ce.isCollapsed(H)) {
|
|
16913
|
-
var De = _e.leaf(t,
|
|
16914
|
-
if (
|
|
16915
|
-
return y(
|
|
16914
|
+
var De = _e.leaf(t, ve.path);
|
|
16915
|
+
if (ve.offset < De.text.length)
|
|
16916
|
+
return y(ve.path, {
|
|
16916
16917
|
text: "",
|
|
16917
|
-
start:
|
|
16918
|
-
end:
|
|
16918
|
+
start: ve.offset,
|
|
16919
|
+
end: ve.offset + 1
|
|
16919
16920
|
});
|
|
16920
16921
|
}
|
|
16921
16922
|
return v(() => O.deleteForward(t), {
|
|
@@ -17019,8 +17020,8 @@ function LM(e) {
|
|
|
17019
17020
|
text: ot
|
|
17020
17021
|
};
|
|
17021
17022
|
if (ot && u && B === "insertCompositionText") {
|
|
17022
|
-
var
|
|
17023
|
-
Ie ===
|
|
17023
|
+
var ge = u.start + u.text.search(/\S|$/), Ie = re.start + re.text.search(/\S|$/);
|
|
17024
|
+
Ie === ge + 1 && re.end === u.start + u.text.length ? (re.start -= 1, u = null, F()) : u = !1;
|
|
17024
17025
|
} else
|
|
17025
17026
|
B === "insertText" ? u === null ? u = re : u && ce.isCollapsed(H) && u.end + u.text.length === ut.offset ? u = R1(R1({}, u), {}, {
|
|
17026
17027
|
text: u.text + ot
|
|
@@ -17708,14 +17709,14 @@ var _L = (e) => /* @__PURE__ */ L.createElement(L.Fragment, null, gx(e)), TL = (
|
|
|
17708
17709
|
var ie = (Pe) => {
|
|
17709
17710
|
var xe = Q.type !== "None";
|
|
17710
17711
|
if (!(!j && !xe)) {
|
|
17711
|
-
var se = Q.focusNode,
|
|
17712
|
+
var se = Q.focusNode, ve;
|
|
17712
17713
|
if (el && Q.rangeCount > 1) {
|
|
17713
17714
|
var De = Q.getRangeAt(0), Me = Q.getRangeAt(Q.rangeCount - 1);
|
|
17714
|
-
De.startContainer === se ?
|
|
17715
|
+
De.startContainer === se ? ve = Me.endContainer : ve = De.startContainer;
|
|
17715
17716
|
} else
|
|
17716
|
-
|
|
17717
|
+
ve = Q.anchorNode;
|
|
17717
17718
|
var vt = Id.get(p), Et = !1;
|
|
17718
|
-
if (vt.contains(
|
|
17719
|
+
if (vt.contains(ve) && vt.contains(se) && (Et = !0), xe && Et && j && !Pe) {
|
|
17719
17720
|
var ot = fe.toSlateRange(p, Q, {
|
|
17720
17721
|
exactMatch: !0,
|
|
17721
17722
|
// domSelection is not necessarily a valid Slate range
|
|
@@ -17724,7 +17725,7 @@ var _L = (e) => /* @__PURE__ */ L.createElement(L.Fragment, null, gx(e)), TL = (
|
|
|
17724
17725
|
});
|
|
17725
17726
|
if (ot && ce.equals(ot, j)) {
|
|
17726
17727
|
var ut;
|
|
17727
|
-
if (!D.hasMarkPlaceholder || (ut =
|
|
17728
|
+
if (!D.hasMarkPlaceholder || (ut = ve) !== null && ut !== void 0 && (ut = ut.parentElement) !== null && ut !== void 0 && ut.hasAttribute("data-slate-mark-placeholder"))
|
|
17728
17729
|
return;
|
|
17729
17730
|
}
|
|
17730
17731
|
}
|
|
@@ -17792,15 +17793,15 @@ var _L = (e) => /* @__PURE__ */ L.createElement(L.Fragment, null, gx(e)), TL = (
|
|
|
17792
17793
|
ie = !0, p.marks && (ie = !1);
|
|
17793
17794
|
var {
|
|
17794
17795
|
anchor: Se
|
|
17795
|
-
} = z, [Pe, xe] = fe.toDOMPoint(p, Se), se = (le = Pe.parentElement) === null || le === void 0 ? void 0 : le.closest("a"),
|
|
17796
|
+
} = z, [Pe, xe] = fe.toDOMPoint(p, Se), se = (le = Pe.parentElement) === null || le === void 0 ? void 0 : le.closest("a"), ve = fe.getWindow(p);
|
|
17796
17797
|
if (ie && se && fe.hasDOMNode(p, se)) {
|
|
17797
|
-
var De, Me =
|
|
17798
|
+
var De, Me = ve == null ? void 0 : ve.document.createTreeWalker(se, NodeFilter.SHOW_TEXT).lastChild();
|
|
17798
17799
|
Me === Pe && ((De = Me.textContent) === null || De === void 0 ? void 0 : De.length) === xe && (ie = !1);
|
|
17799
17800
|
}
|
|
17800
|
-
if (ie && Pe.parentElement && (
|
|
17801
|
+
if (ie && Pe.parentElement && (ve == null || (te = ve.getComputedStyle(Pe.parentElement)) === null || te === void 0 ? void 0 : te.whiteSpace) === "pre") {
|
|
17801
17802
|
var vt = O.above(p, {
|
|
17802
17803
|
at: Se.path,
|
|
17803
|
-
match: (
|
|
17804
|
+
match: (ge) => Ne.isElement(ge) && O.isBlock(p, ge)
|
|
17804
17805
|
});
|
|
17805
17806
|
vt && _e.string(vt[0]).includes(" ") && (ie = !1);
|
|
17806
17807
|
}
|
|
@@ -22314,7 +22315,7 @@ function iH(e) {
|
|
|
22314
22315
|
htmlFlowData: D,
|
|
22315
22316
|
htmlText: a(se, o),
|
|
22316
22317
|
htmlTextData: D,
|
|
22317
|
-
image: a(
|
|
22318
|
+
image: a(ve),
|
|
22318
22319
|
label: o,
|
|
22319
22320
|
link: a(De),
|
|
22320
22321
|
listItem: a(vt),
|
|
@@ -22385,12 +22386,12 @@ function iH(e) {
|
|
|
22385
22386
|
const n = {};
|
|
22386
22387
|
return r;
|
|
22387
22388
|
function r(re) {
|
|
22388
|
-
let
|
|
22389
|
+
let ge = {
|
|
22389
22390
|
type: "root",
|
|
22390
22391
|
children: []
|
|
22391
22392
|
};
|
|
22392
22393
|
const Ie = {
|
|
22393
|
-
stack: [
|
|
22394
|
+
stack: [ge],
|
|
22394
22395
|
tokenStack: [],
|
|
22395
22396
|
config: t,
|
|
22396
22397
|
enter: s,
|
|
@@ -22424,7 +22425,7 @@ function iH(e) {
|
|
|
22424
22425
|
const he = Ie.tokenStack[Ie.tokenStack.length - 1];
|
|
22425
22426
|
(he[1] || B2).call(Ie, void 0, he[0]);
|
|
22426
22427
|
}
|
|
22427
|
-
for (
|
|
22428
|
+
for (ge.position = {
|
|
22428
22429
|
start: Wa(
|
|
22429
22430
|
re.length > 0 ? re[0][1].start : {
|
|
22430
22431
|
line: 1,
|
|
@@ -22440,11 +22441,11 @@ function iH(e) {
|
|
|
22440
22441
|
}
|
|
22441
22442
|
)
|
|
22442
22443
|
}, X = -1; ++X < t.transforms.length; )
|
|
22443
|
-
|
|
22444
|
-
return
|
|
22444
|
+
ge = t.transforms[X](ge) || ge;
|
|
22445
|
+
return ge;
|
|
22445
22446
|
}
|
|
22446
|
-
function i(re,
|
|
22447
|
-
let be =
|
|
22447
|
+
function i(re, ge, Ie) {
|
|
22448
|
+
let be = ge - 1, X = -1, he = !1, Ae, Ve, It, _t;
|
|
22448
22449
|
for (; ++be <= Ie; ) {
|
|
22449
22450
|
const Pt = re[be];
|
|
22450
22451
|
switch (Pt[1].type) {
|
|
@@ -22496,12 +22497,12 @@ function iH(e) {
|
|
|
22496
22497
|
}
|
|
22497
22498
|
}
|
|
22498
22499
|
}
|
|
22499
|
-
return re[
|
|
22500
|
+
return re[ge][1]._spread = he, Ie;
|
|
22500
22501
|
}
|
|
22501
|
-
function a(re,
|
|
22502
|
+
function a(re, ge) {
|
|
22502
22503
|
return Ie;
|
|
22503
22504
|
function Ie(be) {
|
|
22504
|
-
s.call(this, re(be), be),
|
|
22505
|
+
s.call(this, re(be), be), ge && ge.call(this, be);
|
|
22505
22506
|
}
|
|
22506
22507
|
}
|
|
22507
22508
|
function o() {
|
|
@@ -22510,23 +22511,23 @@ function iH(e) {
|
|
|
22510
22511
|
children: []
|
|
22511
22512
|
});
|
|
22512
22513
|
}
|
|
22513
|
-
function s(re,
|
|
22514
|
-
this.stack[this.stack.length - 1].children.push(re), this.stack.push(re), this.tokenStack.push([
|
|
22515
|
-
start: Wa(
|
|
22514
|
+
function s(re, ge, Ie) {
|
|
22515
|
+
this.stack[this.stack.length - 1].children.push(re), this.stack.push(re), this.tokenStack.push([ge, Ie]), re.position = {
|
|
22516
|
+
start: Wa(ge.start),
|
|
22516
22517
|
// @ts-expect-error: `end` will be patched later.
|
|
22517
22518
|
end: void 0
|
|
22518
22519
|
};
|
|
22519
22520
|
}
|
|
22520
22521
|
function l(re) {
|
|
22521
|
-
return
|
|
22522
|
-
function
|
|
22522
|
+
return ge;
|
|
22523
|
+
function ge(Ie) {
|
|
22523
22524
|
re && re.call(this, Ie), u.call(this, Ie);
|
|
22524
22525
|
}
|
|
22525
22526
|
}
|
|
22526
|
-
function u(re,
|
|
22527
|
+
function u(re, ge) {
|
|
22527
22528
|
const Ie = this.stack.pop(), be = this.tokenStack.pop();
|
|
22528
22529
|
if (be)
|
|
22529
|
-
be[0].type !== re.type && (
|
|
22530
|
+
be[0].type !== re.type && (ge ? ge.call(this, re, be[0]) : (be[1] || B2).call(this, re, be[0]));
|
|
22530
22531
|
else
|
|
22531
22532
|
throw new Error(
|
|
22532
22533
|
"Cannot close `" + re.type + "` (" + nc({
|
|
@@ -22544,56 +22545,56 @@ function iH(e) {
|
|
|
22544
22545
|
}
|
|
22545
22546
|
function f(re) {
|
|
22546
22547
|
if (this.data.expectingFirstListItemValue) {
|
|
22547
|
-
const
|
|
22548
|
-
|
|
22548
|
+
const ge = this.stack[this.stack.length - 2];
|
|
22549
|
+
ge.start = Number.parseInt(this.sliceSerialize(re), 10), this.data.expectingFirstListItemValue = void 0;
|
|
22549
22550
|
}
|
|
22550
22551
|
}
|
|
22551
22552
|
function h() {
|
|
22552
|
-
const re = this.resume(),
|
|
22553
|
-
|
|
22553
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22554
|
+
ge.lang = re;
|
|
22554
22555
|
}
|
|
22555
22556
|
function m() {
|
|
22556
|
-
const re = this.resume(),
|
|
22557
|
-
|
|
22557
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22558
|
+
ge.meta = re;
|
|
22558
22559
|
}
|
|
22559
22560
|
function p() {
|
|
22560
22561
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
22561
22562
|
}
|
|
22562
22563
|
function y() {
|
|
22563
|
-
const re = this.resume(),
|
|
22564
|
-
|
|
22564
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22565
|
+
ge.value = re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
22565
22566
|
}
|
|
22566
22567
|
function v() {
|
|
22567
|
-
const re = this.resume(),
|
|
22568
|
-
|
|
22568
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22569
|
+
ge.value = re.replace(/(\r?\n|\r)$/g, "");
|
|
22569
22570
|
}
|
|
22570
22571
|
function b(re) {
|
|
22571
|
-
const
|
|
22572
|
-
Ie.label =
|
|
22572
|
+
const ge = this.resume(), Ie = this.stack[this.stack.length - 1];
|
|
22573
|
+
Ie.label = ge, Ie.identifier = ul(
|
|
22573
22574
|
this.sliceSerialize(re)
|
|
22574
22575
|
).toLowerCase();
|
|
22575
22576
|
}
|
|
22576
22577
|
function E() {
|
|
22577
|
-
const re = this.resume(),
|
|
22578
|
-
|
|
22578
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22579
|
+
ge.title = re;
|
|
22579
22580
|
}
|
|
22580
22581
|
function _() {
|
|
22581
|
-
const re = this.resume(),
|
|
22582
|
-
|
|
22582
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22583
|
+
ge.url = re;
|
|
22583
22584
|
}
|
|
22584
22585
|
function T(re) {
|
|
22585
|
-
const
|
|
22586
|
-
if (!
|
|
22586
|
+
const ge = this.stack[this.stack.length - 1];
|
|
22587
|
+
if (!ge.depth) {
|
|
22587
22588
|
const Ie = this.sliceSerialize(re).length;
|
|
22588
|
-
|
|
22589
|
+
ge.depth = Ie;
|
|
22589
22590
|
}
|
|
22590
22591
|
}
|
|
22591
22592
|
function C() {
|
|
22592
22593
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
22593
22594
|
}
|
|
22594
22595
|
function x(re) {
|
|
22595
|
-
const
|
|
22596
|
-
|
|
22596
|
+
const ge = this.stack[this.stack.length - 1];
|
|
22597
|
+
ge.depth = this.sliceSerialize(re).codePointAt(0) === 61 ? 1 : 2;
|
|
22597
22598
|
}
|
|
22598
22599
|
function P() {
|
|
22599
22600
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
@@ -22608,38 +22609,38 @@ function iH(e) {
|
|
|
22608
22609
|
}, Ie.push(be)), this.stack.push(be);
|
|
22609
22610
|
}
|
|
22610
22611
|
function F(re) {
|
|
22611
|
-
const
|
|
22612
|
-
|
|
22612
|
+
const ge = this.stack.pop();
|
|
22613
|
+
ge.value += this.sliceSerialize(re), ge.position.end = Wa(re.end);
|
|
22613
22614
|
}
|
|
22614
22615
|
function I(re) {
|
|
22615
|
-
const
|
|
22616
|
+
const ge = this.stack[this.stack.length - 1];
|
|
22616
22617
|
if (this.data.atHardBreak) {
|
|
22617
|
-
const Ie =
|
|
22618
|
+
const Ie = ge.children[ge.children.length - 1];
|
|
22618
22619
|
Ie.position.end = Wa(re.end), this.data.atHardBreak = void 0;
|
|
22619
22620
|
return;
|
|
22620
22621
|
}
|
|
22621
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(
|
|
22622
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ge.type) && (D.call(this, re), F.call(this, re));
|
|
22622
22623
|
}
|
|
22623
22624
|
function S() {
|
|
22624
22625
|
this.data.atHardBreak = !0;
|
|
22625
22626
|
}
|
|
22626
22627
|
function k() {
|
|
22627
|
-
const re = this.resume(),
|
|
22628
|
-
|
|
22628
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22629
|
+
ge.value = re;
|
|
22629
22630
|
}
|
|
22630
22631
|
function B() {
|
|
22631
|
-
const re = this.resume(),
|
|
22632
|
-
|
|
22632
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22633
|
+
ge.value = re;
|
|
22633
22634
|
}
|
|
22634
22635
|
function H() {
|
|
22635
|
-
const re = this.resume(),
|
|
22636
|
-
|
|
22636
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22637
|
+
ge.value = re;
|
|
22637
22638
|
}
|
|
22638
22639
|
function $() {
|
|
22639
22640
|
const re = this.stack[this.stack.length - 1];
|
|
22640
22641
|
if (this.data.inReference) {
|
|
22641
|
-
const
|
|
22642
|
-
re.type += "Reference", re.referenceType =
|
|
22642
|
+
const ge = this.data.referenceType || "shortcut";
|
|
22643
|
+
re.type += "Reference", re.referenceType = ge, delete re.url, delete re.title;
|
|
22643
22644
|
} else
|
|
22644
22645
|
delete re.identifier, delete re.label;
|
|
22645
22646
|
this.data.referenceType = void 0;
|
|
@@ -22647,31 +22648,31 @@ function iH(e) {
|
|
|
22647
22648
|
function R() {
|
|
22648
22649
|
const re = this.stack[this.stack.length - 1];
|
|
22649
22650
|
if (this.data.inReference) {
|
|
22650
|
-
const
|
|
22651
|
-
re.type += "Reference", re.referenceType =
|
|
22651
|
+
const ge = this.data.referenceType || "shortcut";
|
|
22652
|
+
re.type += "Reference", re.referenceType = ge, delete re.url, delete re.title;
|
|
22652
22653
|
} else
|
|
22653
22654
|
delete re.identifier, delete re.label;
|
|
22654
22655
|
this.data.referenceType = void 0;
|
|
22655
22656
|
}
|
|
22656
22657
|
function ne(re) {
|
|
22657
|
-
const
|
|
22658
|
-
Ie.label = tH(
|
|
22658
|
+
const ge = this.sliceSerialize(re), Ie = this.stack[this.stack.length - 2];
|
|
22659
|
+
Ie.label = tH(ge), Ie.identifier = ul(ge).toLowerCase();
|
|
22659
22660
|
}
|
|
22660
22661
|
function J() {
|
|
22661
|
-
const re = this.stack[this.stack.length - 1],
|
|
22662
|
+
const re = this.stack[this.stack.length - 1], ge = this.resume(), Ie = this.stack[this.stack.length - 1];
|
|
22662
22663
|
if (this.data.inReference = !0, Ie.type === "link") {
|
|
22663
22664
|
const be = re.children;
|
|
22664
22665
|
Ie.children = be;
|
|
22665
22666
|
} else
|
|
22666
|
-
Ie.alt =
|
|
22667
|
+
Ie.alt = ge;
|
|
22667
22668
|
}
|
|
22668
22669
|
function N() {
|
|
22669
|
-
const re = this.resume(),
|
|
22670
|
-
|
|
22670
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22671
|
+
ge.url = re;
|
|
22671
22672
|
}
|
|
22672
22673
|
function w() {
|
|
22673
|
-
const re = this.resume(),
|
|
22674
|
-
|
|
22674
|
+
const re = this.resume(), ge = this.stack[this.stack.length - 1];
|
|
22675
|
+
ge.title = re;
|
|
22675
22676
|
}
|
|
22676
22677
|
function Y() {
|
|
22677
22678
|
this.data.inReference = void 0;
|
|
@@ -22680,8 +22681,8 @@ function iH(e) {
|
|
|
22680
22681
|
this.data.referenceType = "collapsed";
|
|
22681
22682
|
}
|
|
22682
22683
|
function U(re) {
|
|
22683
|
-
const
|
|
22684
|
-
Ie.label =
|
|
22684
|
+
const ge = this.resume(), Ie = this.stack[this.stack.length - 1];
|
|
22685
|
+
Ie.label = ge, Ie.identifier = ul(
|
|
22685
22686
|
this.sliceSerialize(re)
|
|
22686
22687
|
).toLowerCase(), this.data.referenceType = "full";
|
|
22687
22688
|
}
|
|
@@ -22689,24 +22690,24 @@ function iH(e) {
|
|
|
22689
22690
|
this.data.characterReferenceType = re.type;
|
|
22690
22691
|
}
|
|
22691
22692
|
function z(re) {
|
|
22692
|
-
const
|
|
22693
|
+
const ge = this.sliceSerialize(re), Ie = this.data.characterReferenceType;
|
|
22693
22694
|
let be;
|
|
22694
22695
|
Ie ? (be = wx(
|
|
22695
|
-
|
|
22696
|
+
ge,
|
|
22696
22697
|
Ie === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
22697
|
-
), this.data.characterReferenceType = void 0) : be = l9(
|
|
22698
|
+
), this.data.characterReferenceType = void 0) : be = l9(ge);
|
|
22698
22699
|
const X = this.stack.pop();
|
|
22699
22700
|
X.value += be, X.position.end = Wa(re.end);
|
|
22700
22701
|
}
|
|
22701
22702
|
function j(re) {
|
|
22702
22703
|
F.call(this, re);
|
|
22703
|
-
const
|
|
22704
|
-
|
|
22704
|
+
const ge = this.stack[this.stack.length - 1];
|
|
22705
|
+
ge.url = this.sliceSerialize(re);
|
|
22705
22706
|
}
|
|
22706
22707
|
function ue(re) {
|
|
22707
22708
|
F.call(this, re);
|
|
22708
|
-
const
|
|
22709
|
-
|
|
22709
|
+
const ge = this.stack[this.stack.length - 1];
|
|
22710
|
+
ge.url = "mailto:" + this.sliceSerialize(re);
|
|
22710
22711
|
}
|
|
22711
22712
|
function Q() {
|
|
22712
22713
|
return {
|
|
@@ -22762,7 +22763,7 @@ function iH(e) {
|
|
|
22762
22763
|
value: ""
|
|
22763
22764
|
};
|
|
22764
22765
|
}
|
|
22765
|
-
function
|
|
22766
|
+
function ve() {
|
|
22766
22767
|
return {
|
|
22767
22768
|
type: "image",
|
|
22768
22769
|
title: null,
|
|
@@ -24908,7 +24909,7 @@ const Jx = ({
|
|
|
24908
24909
|
);
|
|
24909
24910
|
return;
|
|
24910
24911
|
} else {
|
|
24911
|
-
const [
|
|
24912
|
+
const [ve, De] = uH(Y, ae.li), Me = {
|
|
24912
24913
|
type: ae.li,
|
|
24913
24914
|
children: [{ text: "" }]
|
|
24914
24915
|
};
|
|
@@ -42339,7 +42340,7 @@ function HQ(e) {
|
|
|
42339
42340
|
C[_] = se, S[_] = se - R;
|
|
42340
42341
|
}
|
|
42341
42342
|
if (s) {
|
|
42342
|
-
var
|
|
42343
|
+
var ve, De = _ === "x" ? cr : dr, Me = _ === "x" ? Xr : Jr, vt = C[T], Et = T === "y" ? "height" : "width", ot = vt + y[De], ut = vt - y[Me], Ue = [cr, dr].indexOf(v) !== -1, re = (ve = I == null ? void 0 : I[T]) != null ? ve : 0, ge = Ue ? ot : vt - x[Et] - P[Et] - re + F.altAxis, Ie = Ue ? vt + x[Et] + P[Et] - re - F.altAxis : ut, be = h && Ue ? dQ(ge, vt, Ie) : lc(h ? ge : ot, vt, h ? Ie : ut);
|
|
42343
42344
|
C[T] = be, S[T] = be - vt;
|
|
42344
42345
|
}
|
|
42345
42346
|
t.modifiersData[r] = S;
|
|
@@ -46251,7 +46252,7 @@ function Rae(e) {
|
|
|
46251
46252
|
definitionDestinationString: c,
|
|
46252
46253
|
definitionLabelString: c,
|
|
46253
46254
|
definitionTitleString: c,
|
|
46254
|
-
emphasis: u(
|
|
46255
|
+
emphasis: u(ve),
|
|
46255
46256
|
hardBreakEscape: u(Me),
|
|
46256
46257
|
hardBreakTrailing: u(Me),
|
|
46257
46258
|
htmlFlow: u(vt, c),
|
|
@@ -46271,7 +46272,7 @@ function Rae(e) {
|
|
|
46271
46272
|
resourceDestinationString: c,
|
|
46272
46273
|
resourceTitleString: c,
|
|
46273
46274
|
setextHeading: u(De),
|
|
46274
|
-
strong: u(
|
|
46275
|
+
strong: u(ge),
|
|
46275
46276
|
thematicBreak: u(be)
|
|
46276
46277
|
},
|
|
46277
46278
|
exit: {
|
|
@@ -46593,7 +46594,7 @@ function Rae(e) {
|
|
|
46593
46594
|
url: ""
|
|
46594
46595
|
};
|
|
46595
46596
|
}
|
|
46596
|
-
function
|
|
46597
|
+
function ve() {
|
|
46597
46598
|
return { type: "emphasis", children: [] };
|
|
46598
46599
|
}
|
|
46599
46600
|
function De() {
|
|
@@ -46631,7 +46632,7 @@ function Rae(e) {
|
|
|
46631
46632
|
function re() {
|
|
46632
46633
|
return { type: "paragraph", children: [] };
|
|
46633
46634
|
}
|
|
46634
|
-
function
|
|
46635
|
+
function ge() {
|
|
46635
46636
|
return { type: "strong", children: [] };
|
|
46636
46637
|
}
|
|
46637
46638
|
function Ie() {
|
|
@@ -56349,8 +56350,8 @@ function Jme(e) {
|
|
|
56349
56350
|
var t, n, r, i, a, o, s, l, u, c, d, f, h, m, p, y, v, b, E, _, T = e.notificationData, C = e.handleActionClick, x = pe(!1), P = x[0], D = x[1], F = pe(!1), I = F[0], S = F[1], k = pe(!1), B = k[0], H = k[1], $ = T.message, R = T.seen_on, ne = T.created_on, J = Do(), N = J.notificationComponent, w = J.hideAvatar, Y = J.inbox, M = J.themeType, U = J.primaryActionClickHandler, V = J.secondaryActionClickHandler, z = Cs(), j = z.notification, ue = (j == null || (t = j.bodyText) === null || t === void 0 ? void 0 : t.tableBorderColor) || "rgba(100, 116, 139, 0.3)", Q = (j == null || (n = j.bodyText) === null || n === void 0 ? void 0 : n.blockquoteColor) || "rgba(100, 116, 139, 0.3)", ie = (j == null || (r = j.bodyText) === null || r === void 0 ? void 0 : r.linkColor) || st.primary, le = $ == null || (i = $.actions) === null || i === void 0 ? void 0 : i[0], te = $ == null || (a = $.actions) === null || a === void 0 ? void 0 : a[1], Se = le || te;
|
|
56350
56351
|
if (ye(function() {
|
|
56351
56352
|
var xe, se = wS($ == null || (xe = $.avatar) === null || xe === void 0 ? void 0 : xe.avatar_url);
|
|
56352
|
-
se.then(function(
|
|
56353
|
-
return D(
|
|
56353
|
+
se.then(function(ve) {
|
|
56354
|
+
return D(ve);
|
|
56354
56355
|
});
|
|
56355
56356
|
}, [T]), N) {
|
|
56356
56357
|
var Pe = N;
|
|
@@ -56390,11 +56391,11 @@ function Jme(e) {
|
|
|
56390
56391
|
show: !R
|
|
56391
56392
|
}), !w && /* @__PURE__ */ L.createElement(g0e, {
|
|
56392
56393
|
onClick: function(se) {
|
|
56393
|
-
var
|
|
56394
|
+
var ve = $ == null ? void 0 : $.avatar;
|
|
56394
56395
|
C(se, {
|
|
56395
56396
|
type: "avatar",
|
|
56396
|
-
url:
|
|
56397
|
-
target:
|
|
56397
|
+
url: ve == null ? void 0 : ve.action_url,
|
|
56398
|
+
target: ve == null ? void 0 : ve.open_in_new_tab
|
|
56398
56399
|
});
|
|
56399
56400
|
}
|
|
56400
56401
|
}, $ != null && (o = $.avatar) !== null && o !== void 0 && o.avatar_url && P ? /* @__PURE__ */ L.createElement(b0e, {
|
|
@@ -56412,7 +56413,7 @@ function Jme(e) {
|
|
|
56412
56413
|
rehypePlugins: [gS],
|
|
56413
56414
|
components: {
|
|
56414
56415
|
a: function(se) {
|
|
56415
|
-
var
|
|
56416
|
+
var ve = se.children, De = se.href, Me = se.style;
|
|
56416
56417
|
return /* @__PURE__ */ L.createElement("span", {
|
|
56417
56418
|
onClick: function(Et) {
|
|
56418
56419
|
Et.preventDefault(), C(Et, {
|
|
@@ -56424,19 +56425,19 @@ function Jme(e) {
|
|
|
56424
56425
|
color: ie,
|
|
56425
56426
|
textDecoration: "none"
|
|
56426
56427
|
}, Me || {})
|
|
56427
|
-
},
|
|
56428
|
+
}, ve);
|
|
56428
56429
|
},
|
|
56429
56430
|
p: function(se) {
|
|
56430
|
-
var
|
|
56431
|
+
var ve = se.children, De = se.style;
|
|
56431
56432
|
return /* @__PURE__ */ L.createElement("p", {
|
|
56432
56433
|
style: ht({
|
|
56433
56434
|
margin: 0,
|
|
56434
56435
|
overflowWrap: "anywhere"
|
|
56435
56436
|
}, De || {})
|
|
56436
|
-
},
|
|
56437
|
+
}, ve);
|
|
56437
56438
|
},
|
|
56438
56439
|
blockquote: function(se) {
|
|
56439
|
-
var
|
|
56440
|
+
var ve = se.children, De = se.style;
|
|
56440
56441
|
return /* @__PURE__ */ L.createElement("blockquote", {
|
|
56441
56442
|
style: ht({
|
|
56442
56443
|
margin: 0,
|
|
@@ -56445,27 +56446,27 @@ function Jme(e) {
|
|
|
56445
56446
|
marginBottom: 5,
|
|
56446
56447
|
marginTop: 5
|
|
56447
56448
|
}, De || {})
|
|
56448
|
-
},
|
|
56449
|
+
}, ve);
|
|
56449
56450
|
},
|
|
56450
56451
|
ul: function(se) {
|
|
56451
|
-
var
|
|
56452
|
+
var ve = se.children, De = se.style;
|
|
56452
56453
|
return /* @__PURE__ */ L.createElement("ul", {
|
|
56453
56454
|
style: ht({
|
|
56454
56455
|
whiteSpace: "normal",
|
|
56455
56456
|
margin: 0,
|
|
56456
56457
|
paddingLeft: 10
|
|
56457
56458
|
}, De || {})
|
|
56458
|
-
},
|
|
56459
|
+
}, ve);
|
|
56459
56460
|
},
|
|
56460
56461
|
ol: function(se) {
|
|
56461
|
-
var
|
|
56462
|
+
var ve = se.children, De = se.style;
|
|
56462
56463
|
return /* @__PURE__ */ L.createElement("ol", {
|
|
56463
56464
|
style: ht({
|
|
56464
56465
|
whiteSpace: "normal",
|
|
56465
56466
|
margin: 0,
|
|
56466
56467
|
paddingLeft: 10
|
|
56467
56468
|
}, De || {})
|
|
56468
|
-
},
|
|
56469
|
+
}, ve);
|
|
56469
56470
|
},
|
|
56470
56471
|
img: function(se) {
|
|
56471
56472
|
return /* @__PURE__ */ L.createElement("img", ht({
|
|
@@ -56476,16 +56477,16 @@ function Jme(e) {
|
|
|
56476
56477
|
}, se));
|
|
56477
56478
|
},
|
|
56478
56479
|
table: function(se) {
|
|
56479
|
-
var
|
|
56480
|
+
var ve = se.children, De = se.style;
|
|
56480
56481
|
return /* @__PURE__ */ L.createElement("table", {
|
|
56481
56482
|
style: ht({
|
|
56482
56483
|
overflowWrap: "break-word",
|
|
56483
56484
|
borderCollapse: "collapse"
|
|
56484
56485
|
}, De || {})
|
|
56485
|
-
},
|
|
56486
|
+
}, ve);
|
|
56486
56487
|
},
|
|
56487
56488
|
th: function(se) {
|
|
56488
|
-
var
|
|
56489
|
+
var ve = se.children, De = se.style;
|
|
56489
56490
|
return /* @__PURE__ */ L.createElement("th", {
|
|
56490
56491
|
style: ht({
|
|
56491
56492
|
textAlign: "left",
|
|
@@ -56493,64 +56494,64 @@ function Jme(e) {
|
|
|
56493
56494
|
border: "1px solid " + ue,
|
|
56494
56495
|
padding: 5
|
|
56495
56496
|
}, De || {})
|
|
56496
|
-
},
|
|
56497
|
+
}, ve);
|
|
56497
56498
|
},
|
|
56498
56499
|
td: function(se) {
|
|
56499
|
-
var
|
|
56500
|
+
var ve = se.children, De = se.style;
|
|
56500
56501
|
return /* @__PURE__ */ L.createElement("td", {
|
|
56501
56502
|
style: ht({
|
|
56502
56503
|
border: "1px solid " + ue,
|
|
56503
56504
|
padding: 5
|
|
56504
56505
|
}, De || {})
|
|
56505
|
-
},
|
|
56506
|
+
}, ve);
|
|
56506
56507
|
},
|
|
56507
56508
|
h1: function(se) {
|
|
56508
|
-
var
|
|
56509
|
+
var ve = se.children, De = se.style;
|
|
56509
56510
|
return /* @__PURE__ */ L.createElement("h1", {
|
|
56510
56511
|
style: ht({
|
|
56511
56512
|
margin: 0
|
|
56512
56513
|
}, De || {})
|
|
56513
|
-
},
|
|
56514
|
+
}, ve);
|
|
56514
56515
|
},
|
|
56515
56516
|
h2: function(se) {
|
|
56516
|
-
var
|
|
56517
|
+
var ve = se.children, De = se.style;
|
|
56517
56518
|
return /* @__PURE__ */ L.createElement("h2", {
|
|
56518
56519
|
style: ht({
|
|
56519
56520
|
margin: 0
|
|
56520
56521
|
}, De || {})
|
|
56521
|
-
},
|
|
56522
|
+
}, ve);
|
|
56522
56523
|
},
|
|
56523
56524
|
h3: function(se) {
|
|
56524
|
-
var
|
|
56525
|
+
var ve = se.children, De = se.style;
|
|
56525
56526
|
return /* @__PURE__ */ L.createElement("h3", {
|
|
56526
56527
|
style: ht({
|
|
56527
56528
|
margin: 0
|
|
56528
56529
|
}, De || {})
|
|
56529
|
-
},
|
|
56530
|
+
}, ve);
|
|
56530
56531
|
},
|
|
56531
56532
|
h4: function(se) {
|
|
56532
|
-
var
|
|
56533
|
+
var ve = se.children, De = se.style;
|
|
56533
56534
|
return /* @__PURE__ */ L.createElement("h4", {
|
|
56534
56535
|
style: ht({
|
|
56535
56536
|
margin: 0
|
|
56536
56537
|
}, De || {})
|
|
56537
|
-
},
|
|
56538
|
+
}, ve);
|
|
56538
56539
|
},
|
|
56539
56540
|
h5: function(se) {
|
|
56540
|
-
var
|
|
56541
|
+
var ve = se.children, De = se.style;
|
|
56541
56542
|
return /* @__PURE__ */ L.createElement("h5", {
|
|
56542
56543
|
style: ht({
|
|
56543
56544
|
margin: 0
|
|
56544
56545
|
}, De || {})
|
|
56545
|
-
},
|
|
56546
|
+
}, ve);
|
|
56546
56547
|
},
|
|
56547
56548
|
h6: function(se) {
|
|
56548
|
-
var
|
|
56549
|
+
var ve = se.children, De = se.style;
|
|
56549
56550
|
return /* @__PURE__ */ L.createElement("h6", {
|
|
56550
56551
|
style: ht({
|
|
56551
56552
|
margin: 0
|
|
56552
56553
|
}, De || {})
|
|
56553
|
-
},
|
|
56554
|
+
}, ve);
|
|
56554
56555
|
},
|
|
56555
56556
|
script: function() {
|
|
56556
56557
|
return null;
|
|
@@ -56566,11 +56567,11 @@ function Jme(e) {
|
|
|
56566
56567
|
`))), !!($ != null && (c = $.subtext) !== null && c !== void 0 && c.text) && /* @__PURE__ */ L.createElement(i0e, {
|
|
56567
56568
|
link: $ == null || (d = $.subtext) === null || d === void 0 ? void 0 : d.action_url,
|
|
56568
56569
|
onClick: function(se) {
|
|
56569
|
-
var
|
|
56570
|
+
var ve = $ == null ? void 0 : $.subtext;
|
|
56570
56571
|
C(se, {
|
|
56571
56572
|
type: "subtext",
|
|
56572
|
-
url:
|
|
56573
|
-
target:
|
|
56573
|
+
url: ve == null ? void 0 : ve.action_url,
|
|
56574
|
+
target: ve == null ? void 0 : ve.open_in_new_tab
|
|
56574
56575
|
});
|
|
56575
56576
|
}
|
|
56576
56577
|
}, /* @__PURE__ */ L.createElement(r0e, {
|
|
@@ -56615,8 +56616,8 @@ function Jme(e) {
|
|
|
56615
56616
|
}, /* @__PURE__ */ L.createElement(T0e, {
|
|
56616
56617
|
hoverBGColor: j == null || (_ = j.actionsMenuIcon) === null || _ === void 0 ? void 0 : _.hoverBackgroundColor,
|
|
56617
56618
|
onClick: function(se) {
|
|
56618
|
-
se.stopPropagation(), H(function(
|
|
56619
|
-
return !
|
|
56619
|
+
se.stopPropagation(), H(function(ve) {
|
|
56620
|
+
return !ve;
|
|
56620
56621
|
});
|
|
56621
56622
|
}
|
|
56622
56623
|
}, /* @__PURE__ */ L.createElement(Kme, {
|
|
@@ -57528,9 +57529,9 @@ function lge(e) {
|
|
|
57528
57529
|
z.resetUser();
|
|
57529
57530
|
};
|
|
57530
57531
|
}, [l, z]);
|
|
57531
|
-
var
|
|
57532
|
+
var ve = k === "dark" ? AS(jme, I) : I || {};
|
|
57532
57533
|
return /* @__PURE__ */ L.createElement(xS.Provider, {
|
|
57533
|
-
value:
|
|
57534
|
+
value: ve
|
|
57534
57535
|
}, /* @__PURE__ */ L.createElement(CS.Provider, {
|
|
57535
57536
|
value: {
|
|
57536
57537
|
workspaceKey: n,
|
|
@@ -58635,7 +58636,7 @@ const sn = "discussion_form_", Cp = ({
|
|
|
58635
58636
|
data: c = {},
|
|
58636
58637
|
gtmContext: d = "DiscussionForm"
|
|
58637
58638
|
}) => {
|
|
58638
|
-
var re,
|
|
58639
|
+
var re, ge, Ie;
|
|
58639
58640
|
const f = Te(), h = it(_n), [m, p] = pe(
|
|
58640
58641
|
n.type
|
|
58641
58642
|
), [y, v] = pe(""), {
|
|
@@ -58707,7 +58708,7 @@ const sn = "discussion_form_", Cp = ({
|
|
|
58707
58708
|
);
|
|
58708
58709
|
let xe = `${m}-form`;
|
|
58709
58710
|
if (m === dt.Response || m === dt.Reply) {
|
|
58710
|
-
const be = ((re = n.slugs) == null ? void 0 : re.reply) || ((
|
|
58711
|
+
const be = ((re = n.slugs) == null ? void 0 : re.reply) || ((ge = n.slugs) == null ? void 0 : ge.answer) || ((Ie = n.slugs) == null ? void 0 : Ie.question) || "";
|
|
58711
58712
|
be && (xe = `${xe}-${be.slice(-15)}`);
|
|
58712
58713
|
}
|
|
58713
58714
|
e && (xe = `${e}-${xe}`);
|
|
@@ -58771,7 +58772,7 @@ const sn = "discussion_form_", Cp = ({
|
|
|
58771
58772
|
pi(f.formatMessage, `${sn}success`, m, "action")
|
|
58772
58773
|
);
|
|
58773
58774
|
const Ae = new Event(Sn.DISCUSSION_FORM_SUBMITTED);
|
|
58774
|
-
document.dispatchEvent(Ae),
|
|
58775
|
+
document.dispatchEvent(Ae), ve();
|
|
58775
58776
|
}, 850), he;
|
|
58776
58777
|
} catch (he) {
|
|
58777
58778
|
const Ae = he;
|
|
@@ -58786,9 +58787,9 @@ const sn = "discussion_form_", Cp = ({
|
|
|
58786
58787
|
`${sn}error_tooMany`,
|
|
58787
58788
|
m,
|
|
58788
58789
|
"action"
|
|
58789
|
-
) : Ae != null && Ae.message.includes("400") && (Ve = `${sn}error`), ie(Ve),
|
|
58790
|
+
) : Ae != null && Ae.message.includes("400") && (Ve = `${sn}error`), ie(Ve), ve();
|
|
58790
58791
|
}
|
|
58791
|
-
},
|
|
58792
|
+
}, ve = () => {
|
|
58792
58793
|
zs = setTimeout(() => {
|
|
58793
58794
|
ie(!1), Se(le), v("");
|
|
58794
58795
|
}, 5e3);
|
|
@@ -59360,7 +59361,7 @@ const xp = ({
|
|
|
59360
59361
|
locale: b = "en",
|
|
59361
59362
|
disableMentions: E
|
|
59362
59363
|
}) => {
|
|
59363
|
-
var Ue, re,
|
|
59364
|
+
var Ue, re, ge, Ie, be, X;
|
|
59364
59365
|
const _ = Te(), T = it(Zy), C = it(_n), {
|
|
59365
59366
|
createContent: x = async () => {
|
|
59366
59367
|
},
|
|
@@ -59393,7 +59394,7 @@ const xp = ({
|
|
|
59393
59394
|
}), [te, Se] = pe(!1), [Pe, xe] = pe(
|
|
59394
59395
|
ue ? "highlighted" : "default"
|
|
59395
59396
|
/* Default */
|
|
59396
|
-
), [se,
|
|
59397
|
+
), [se, ve] = pe("");
|
|
59397
59398
|
ye(() => {
|
|
59398
59399
|
const he = Q.current;
|
|
59399
59400
|
if (!(!he || Pe === "default"))
|
|
@@ -59442,7 +59443,7 @@ const xp = ({
|
|
|
59442
59443
|
body: Ae,
|
|
59443
59444
|
data: Ve
|
|
59444
59445
|
}) => {
|
|
59445
|
-
he || (he = ""), Ae || (Ae = ""),
|
|
59446
|
+
he || (he = ""), Ae || (Ae = ""), ve("");
|
|
59446
59447
|
try {
|
|
59447
59448
|
if (!gf(he, ie.title) || !gf(Ae, ie.body)) {
|
|
59448
59449
|
const It = t.type === dt.Question ? { title: Ae } : { title: he, body: Ae, data: Ve };
|
|
@@ -59457,7 +59458,7 @@ const xp = ({
|
|
|
59457
59458
|
didEdit: !0
|
|
59458
59459
|
}));
|
|
59459
59460
|
} catch {
|
|
59460
|
-
|
|
59461
|
+
ve(`${ui}form_error`);
|
|
59461
59462
|
}
|
|
59462
59463
|
}, Et = () => {
|
|
59463
59464
|
if (T && T.updateConversation) {
|
|
@@ -59474,7 +59475,7 @@ const xp = ({
|
|
|
59474
59475
|
try {
|
|
59475
59476
|
t.type === dt.Poll ? (await ne(), window.location.href = `${y}/${v}`) : await P(V5(t.slugs));
|
|
59476
59477
|
} catch {
|
|
59477
|
-
|
|
59478
|
+
ve("delete-error");
|
|
59478
59479
|
}
|
|
59479
59480
|
}, ut = [];
|
|
59480
59481
|
return n && j && (t.type !== dt.Poll && ut.push({
|
|
@@ -59578,7 +59579,7 @@ const xp = ({
|
|
|
59578
59579
|
create: x,
|
|
59579
59580
|
handleSaveEdit: vt,
|
|
59580
59581
|
handleCancel: () => {
|
|
59581
|
-
|
|
59582
|
+
ve(""), le((he) => ({ ...he, isEditing: !1 }));
|
|
59582
59583
|
},
|
|
59583
59584
|
listMembers: B,
|
|
59584
59585
|
clickMentionFallback: H
|
|
@@ -59647,7 +59648,7 @@ const xp = ({
|
|
|
59647
59648
|
functions: { onClick: Et }
|
|
59648
59649
|
} : !1,
|
|
59649
59650
|
shareLink: !(o != null && o.shareLink) && {
|
|
59650
|
-
url: `${window.location.origin}${(
|
|
59651
|
+
url: `${window.location.origin}${(ge = t.slugs) == null ? void 0 : ge.question}/${(Ie = t.slugs) == null ? void 0 : Ie.answer}${(be = t.slugs) != null && be.reply ? `#${(X = t.slugs) == null ? void 0 : X.reply}` : ""}`
|
|
59651
59652
|
},
|
|
59652
59653
|
moreMenu: !(o != null && o.moreMenu) && {
|
|
59653
59654
|
options: ut,
|
|
@@ -60224,12 +60225,12 @@ const N9e = ({
|
|
|
60224
60225
|
mentioned_users: R,
|
|
60225
60226
|
additional_data: ne
|
|
60226
60227
|
} = _, J = (((U = $ == null ? void 0 : $.like) == null ? void 0 : U.length) || 0) > 0, N = !!((V = B == null ? void 0 : B.like) != null && V.find((se) => {
|
|
60227
|
-
var
|
|
60228
|
-
return ((
|
|
60228
|
+
var ve;
|
|
60229
|
+
return ((ve = se.user) == null ? void 0 : ve.id) === (b == null ? void 0 : b.id);
|
|
60229
60230
|
})), w = N ? B == null ? void 0 : B.like[0].id : "", Y = J ? (z = $ == null ? void 0 : $.like) == null ? void 0 : z.map((se) => {
|
|
60230
|
-
var
|
|
60231
|
+
var ve, De, Me;
|
|
60231
60232
|
return {
|
|
60232
|
-
id: (
|
|
60233
|
+
id: (ve = se == null ? void 0 : se.user) == null ? void 0 : ve.id,
|
|
60233
60234
|
name: (Me = (De = se == null ? void 0 : se.user) == null ? void 0 : De.data) == null ? void 0 : Me.name
|
|
60234
60235
|
};
|
|
60235
60236
|
}) : !1, M = _ == null ? void 0 : _.actor;
|
|
@@ -60284,7 +60285,7 @@ const N9e = ({
|
|
|
60284
60285
|
createContent: () => null,
|
|
60285
60286
|
deleteContent: a,
|
|
60286
60287
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
60287
|
-
updateContent: (se, { title:
|
|
60288
|
+
updateContent: (se, { title: ve, body: De }) => x({ title: ve, content: De })
|
|
60288
60289
|
},
|
|
60289
60290
|
likes: {
|
|
60290
60291
|
createLike: () => P({ activityId: n }),
|
|
@@ -61058,6 +61059,12 @@ const H9e = ({
|
|
|
61058
61059
|
gtmEvent: "microcourse-overview"
|
|
61059
61060
|
// 'overview' is needed for legacy reasons
|
|
61060
61061
|
},
|
|
61062
|
+
courseJourney: {
|
|
61063
|
+
basePath: "/courses/",
|
|
61064
|
+
className: "course",
|
|
61065
|
+
gtmEvent: "microcourse-overview"
|
|
61066
|
+
// 'overview' is needed for legacy reasons
|
|
61067
|
+
},
|
|
61061
61068
|
solutionArticle: {
|
|
61062
61069
|
basePath: "/solution-articles/en/",
|
|
61063
61070
|
className: "article",
|