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