@apolitical/component-library 8.7.25-ac.0 → 8.7.25-ac.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.js +21 -21
- package/index.mjs +299 -290
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -223,14 +223,14 @@ function O3() {
|
|
|
223
223
|
}
|
|
224
224
|
return null;
|
|
225
225
|
}
|
|
226
|
-
var F = Object.assign, j = 0, q, N, Z,
|
|
226
|
+
var F = Object.assign, j = 0, q, N, Z, Q, k, x, X;
|
|
227
227
|
function M() {
|
|
228
228
|
}
|
|
229
229
|
M.__reactDisabledLog = !0;
|
|
230
230
|
function U() {
|
|
231
231
|
{
|
|
232
232
|
if (j === 0) {
|
|
233
|
-
q = console.log, N = console.info, Z = console.warn,
|
|
233
|
+
q = console.log, N = console.info, Z = console.warn, Q = console.error, k = console.group, x = console.groupCollapsed, X = console.groupEnd;
|
|
234
234
|
var V = {
|
|
235
235
|
configurable: !0,
|
|
236
236
|
enumerable: !0,
|
|
@@ -269,7 +269,7 @@ function O3() {
|
|
|
269
269
|
value: Z
|
|
270
270
|
}),
|
|
271
271
|
error: F({}, V, {
|
|
272
|
-
value:
|
|
272
|
+
value: Q
|
|
273
273
|
}),
|
|
274
274
|
group: F({}, V, {
|
|
275
275
|
value: k
|
|
@@ -278,7 +278,7 @@ function O3() {
|
|
|
278
278
|
value: x
|
|
279
279
|
}),
|
|
280
280
|
groupEnd: F({}, V, {
|
|
281
|
-
value:
|
|
281
|
+
value: X
|
|
282
282
|
})
|
|
283
283
|
});
|
|
284
284
|
}
|
|
@@ -3332,7 +3332,7 @@ const oa = ({
|
|
|
3332
3332
|
connection: c,
|
|
3333
3333
|
...d
|
|
3334
3334
|
}) => {
|
|
3335
|
-
var q, N, Z,
|
|
3335
|
+
var q, N, Z, Q, k, x;
|
|
3336
3336
|
const h = ge(), { profile: p, connections: g, ...m } = a, {
|
|
3337
3337
|
size: y = "medium",
|
|
3338
3338
|
variant: v = "inline",
|
|
@@ -3362,8 +3362,8 @@ const oa = ({
|
|
|
3362
3362
|
gtmType: o,
|
|
3363
3363
|
gtmContext: s,
|
|
3364
3364
|
meta: { forceOnClick: !0 },
|
|
3365
|
-
onClick: (
|
|
3366
|
-
if (
|
|
3365
|
+
onClick: (X) => {
|
|
3366
|
+
if (X == null || X.preventDefault(), X == null || X.stopPropagation(), !P) {
|
|
3367
3367
|
j && A(!0);
|
|
3368
3368
|
return;
|
|
3369
3369
|
}
|
|
@@ -3408,7 +3408,7 @@ const oa = ({
|
|
|
3408
3408
|
),
|
|
3409
3409
|
r.createdAt && S && ((N = r == null ? void 0 : r.customMessage) == null ? void 0 : N.text) && /* @__PURE__ */ f.jsx("span", { children: h.formatMessage(
|
|
3410
3410
|
{
|
|
3411
|
-
id: S.path === "now" ? (Z = r.customMessage) == null ? void 0 : Z.nowText : (
|
|
3411
|
+
id: S.path === "now" ? (Z = r.customMessage) == null ? void 0 : Z.nowText : (Q = r.customMessage) == null ? void 0 : Q.text
|
|
3412
3412
|
},
|
|
3413
3413
|
{
|
|
3414
3414
|
time: h.formatMessage(
|
|
@@ -3416,14 +3416,14 @@ const oa = ({
|
|
|
3416
3416
|
{ number: S.number }
|
|
3417
3417
|
),
|
|
3418
3418
|
community: (x = (k = r.customMessage) == null ? void 0 : k.link) == null ? void 0 : x.text,
|
|
3419
|
-
link: (
|
|
3419
|
+
link: (X) => {
|
|
3420
3420
|
var M, U;
|
|
3421
3421
|
return /* @__PURE__ */ f.jsx(
|
|
3422
3422
|
"a",
|
|
3423
3423
|
{
|
|
3424
3424
|
href: `${(U = (M = r.customMessage) == null ? void 0 : M.link) == null ? void 0 : U.url}`,
|
|
3425
3425
|
onClick: (z) => z.stopPropagation(),
|
|
3426
|
-
children:
|
|
3426
|
+
children: X
|
|
3427
3427
|
}
|
|
3428
3428
|
);
|
|
3429
3429
|
}
|
|
@@ -3459,8 +3459,8 @@ const oa = ({
|
|
|
3459
3459
|
{
|
|
3460
3460
|
variant: "tertiary",
|
|
3461
3461
|
size: "small",
|
|
3462
|
-
onClick: (
|
|
3463
|
-
|
|
3462
|
+
onClick: (X) => {
|
|
3463
|
+
X.preventDefault(), X.stopPropagation(), A(!0);
|
|
3464
3464
|
},
|
|
3465
3465
|
"data-testid": "profile-button",
|
|
3466
3466
|
children: h.formatMessage({ id: "member_profile" })
|
|
@@ -3691,7 +3691,7 @@ function rx() {
|
|
|
3691
3691
|
}
|
|
3692
3692
|
}
|
|
3693
3693
|
var C = l, _ = u, A = o, I = s, R = t, B = c, P = r, O = g, S = p, F = n, j = a, q = i, N = d, Z = !1;
|
|
3694
|
-
function
|
|
3694
|
+
function Q(oe) {
|
|
3695
3695
|
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(oe) || T(oe) === l;
|
|
3696
3696
|
}
|
|
3697
3697
|
function k(oe) {
|
|
@@ -3700,7 +3700,7 @@ function rx() {
|
|
|
3700
3700
|
function x(oe) {
|
|
3701
3701
|
return T(oe) === o;
|
|
3702
3702
|
}
|
|
3703
|
-
function
|
|
3703
|
+
function X(oe) {
|
|
3704
3704
|
return T(oe) === s;
|
|
3705
3705
|
}
|
|
3706
3706
|
function M(oe) {
|
|
@@ -3730,7 +3730,7 @@ function rx() {
|
|
|
3730
3730
|
function ie(oe) {
|
|
3731
3731
|
return T(oe) === d;
|
|
3732
3732
|
}
|
|
3733
|
-
At.AsyncMode = C, At.ConcurrentMode = _, At.ContextConsumer = A, At.ContextProvider = I, At.Element = R, At.ForwardRef = B, At.Fragment = P, At.Lazy = O, At.Memo = S, At.Portal = F, At.Profiler = j, At.StrictMode = q, At.Suspense = N, At.isAsyncMode =
|
|
3733
|
+
At.AsyncMode = C, At.ConcurrentMode = _, At.ContextConsumer = A, At.ContextProvider = I, At.Element = R, At.ForwardRef = B, At.Fragment = P, At.Lazy = O, At.Memo = S, At.Portal = F, At.Profiler = j, At.StrictMode = q, At.Suspense = N, At.isAsyncMode = Q, At.isConcurrentMode = k, At.isContextConsumer = x, At.isContextProvider = X, At.isElement = M, At.isForwardRef = U, At.isFragment = z, At.isLazy = H, At.isMemo = $, At.isPortal = re, At.isProfiler = J, At.isStrictMode = se, At.isSuspense = ie, At.isValidElementType = b, At.typeOf = T;
|
|
3734
3734
|
}()), At;
|
|
3735
3735
|
}
|
|
3736
3736
|
var Y0;
|
|
@@ -3906,7 +3906,7 @@ function sx() {
|
|
|
3906
3906
|
m.prototype = Error.prototype;
|
|
3907
3907
|
function y(k) {
|
|
3908
3908
|
if (process.env.NODE_ENV !== "production")
|
|
3909
|
-
var x = {},
|
|
3909
|
+
var x = {}, X = 0;
|
|
3910
3910
|
function M(z, H, $, re, J, se, ie) {
|
|
3911
3911
|
if (re = re || h, se = se || $, ie !== n) {
|
|
3912
3912
|
if (l) {
|
|
@@ -3917,9 +3917,9 @@ function sx() {
|
|
|
3917
3917
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
3918
3918
|
var Ce = re + ":" + $;
|
|
3919
3919
|
!x[Ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3920
|
-
|
|
3920
|
+
X < 3 && (a(
|
|
3921
3921
|
"You are manually calling a React.PropTypes validation function for the `" + se + "` prop on `" + re + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
3922
|
-
), x[Ce] = !0,
|
|
3922
|
+
), x[Ce] = !0, X++);
|
|
3923
3923
|
}
|
|
3924
3924
|
}
|
|
3925
3925
|
return H[$] == null ? z ? H[$] === null ? new m("The " + J + " `" + se + "` is marked as required " + ("in `" + re + "`, but its value is `null`.")) : new m("The " + J + " `" + se + "` is marked as required in " + ("`" + re + "`, but its value is `undefined`.")) : null : k(H, $, re, J, se);
|
|
@@ -3928,8 +3928,8 @@ function sx() {
|
|
|
3928
3928
|
return U.isRequired = M.bind(null, !0), U;
|
|
3929
3929
|
}
|
|
3930
3930
|
function v(k) {
|
|
3931
|
-
function x(
|
|
3932
|
-
var re =
|
|
3931
|
+
function x(X, M, U, z, H, $) {
|
|
3932
|
+
var re = X[M], J = q(re);
|
|
3933
3933
|
if (J !== k) {
|
|
3934
3934
|
var se = N(re);
|
|
3935
3935
|
return new m(
|
|
@@ -3945,10 +3945,10 @@ function sx() {
|
|
|
3945
3945
|
return y(s);
|
|
3946
3946
|
}
|
|
3947
3947
|
function b(k) {
|
|
3948
|
-
function x(
|
|
3948
|
+
function x(X, M, U, z, H) {
|
|
3949
3949
|
if (typeof k != "function")
|
|
3950
3950
|
return new m("Property `" + H + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
|
|
3951
|
-
var $ =
|
|
3951
|
+
var $ = X[M];
|
|
3952
3952
|
if (!Array.isArray($)) {
|
|
3953
3953
|
var re = q($);
|
|
3954
3954
|
return new m("Invalid " + z + " `" + H + "` of type " + ("`" + re + "` supplied to `" + U + "`, expected an array."));
|
|
@@ -3963,8 +3963,8 @@ function sx() {
|
|
|
3963
3963
|
return y(x);
|
|
3964
3964
|
}
|
|
3965
3965
|
function T() {
|
|
3966
|
-
function k(x,
|
|
3967
|
-
var H = x[
|
|
3966
|
+
function k(x, X, M, U, z) {
|
|
3967
|
+
var H = x[X];
|
|
3968
3968
|
if (!o(H)) {
|
|
3969
3969
|
var $ = q(H);
|
|
3970
3970
|
return new m("Invalid " + U + " `" + z + "` of type " + ("`" + $ + "` supplied to `" + M + "`, expected a single ReactElement."));
|
|
@@ -3974,8 +3974,8 @@ function sx() {
|
|
|
3974
3974
|
return y(k);
|
|
3975
3975
|
}
|
|
3976
3976
|
function C() {
|
|
3977
|
-
function k(x,
|
|
3978
|
-
var H = x[
|
|
3977
|
+
function k(x, X, M, U, z) {
|
|
3978
|
+
var H = x[X];
|
|
3979
3979
|
if (!e.isValidElementType(H)) {
|
|
3980
3980
|
var $ = q(H);
|
|
3981
3981
|
return new m("Invalid " + U + " `" + z + "` of type " + ("`" + $ + "` supplied to `" + M + "`, expected a single ReactElement type."));
|
|
@@ -3985,9 +3985,9 @@ function sx() {
|
|
|
3985
3985
|
return y(k);
|
|
3986
3986
|
}
|
|
3987
3987
|
function _(k) {
|
|
3988
|
-
function x(
|
|
3989
|
-
if (!(
|
|
3990
|
-
var $ = k.name || h, re = X
|
|
3988
|
+
function x(X, M, U, z, H) {
|
|
3989
|
+
if (!(X[M] instanceof k)) {
|
|
3990
|
+
var $ = k.name || h, re = Q(X[M]);
|
|
3991
3991
|
return new m("Invalid " + z + " `" + H + "` of type " + ("`" + re + "` supplied to `" + U + "`, expected ") + ("instance of `" + $ + "`."));
|
|
3992
3992
|
}
|
|
3993
3993
|
return null;
|
|
@@ -3999,8 +3999,8 @@ function sx() {
|
|
|
3999
3999
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
4000
4000
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
4001
4001
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
4002
|
-
function x(
|
|
4003
|
-
for (var $ =
|
|
4002
|
+
function x(X, M, U, z, H) {
|
|
4003
|
+
for (var $ = X[M], re = 0; re < k.length; re++)
|
|
4004
4004
|
if (g($, k[re]))
|
|
4005
4005
|
return null;
|
|
4006
4006
|
var J = JSON.stringify(k, function(ie, oe) {
|
|
@@ -4012,10 +4012,10 @@ function sx() {
|
|
|
4012
4012
|
return y(x);
|
|
4013
4013
|
}
|
|
4014
4014
|
function I(k) {
|
|
4015
|
-
function x(
|
|
4015
|
+
function x(X, M, U, z, H) {
|
|
4016
4016
|
if (typeof k != "function")
|
|
4017
4017
|
return new m("Property `" + H + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
|
|
4018
|
-
var $ =
|
|
4018
|
+
var $ = X[M], re = q($);
|
|
4019
4019
|
if (re !== "object")
|
|
4020
4020
|
return new m("Invalid " + z + " `" + H + "` of type " + ("`" + re + "` supplied to `" + U + "`, expected an object."));
|
|
4021
4021
|
for (var J in $)
|
|
@@ -4032,10 +4032,10 @@ function sx() {
|
|
|
4032
4032
|
if (!Array.isArray(k))
|
|
4033
4033
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
4034
4034
|
for (var x = 0; x < k.length; x++) {
|
|
4035
|
-
var
|
|
4036
|
-
if (typeof
|
|
4035
|
+
var X = k[x];
|
|
4036
|
+
if (typeof X != "function")
|
|
4037
4037
|
return a(
|
|
4038
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(
|
|
4038
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(X) + " at index " + x + "."
|
|
4039
4039
|
), s;
|
|
4040
4040
|
}
|
|
4041
4041
|
function M(U, z, H, $, re) {
|
|
@@ -4051,19 +4051,19 @@ function sx() {
|
|
|
4051
4051
|
return y(M);
|
|
4052
4052
|
}
|
|
4053
4053
|
function B() {
|
|
4054
|
-
function k(x,
|
|
4055
|
-
return F(x[
|
|
4054
|
+
function k(x, X, M, U, z) {
|
|
4055
|
+
return F(x[X]) ? null : new m("Invalid " + U + " `" + z + "` supplied to " + ("`" + M + "`, expected a ReactNode."));
|
|
4056
4056
|
}
|
|
4057
4057
|
return y(k);
|
|
4058
4058
|
}
|
|
4059
|
-
function P(k, x,
|
|
4059
|
+
function P(k, x, X, M, U) {
|
|
4060
4060
|
return new m(
|
|
4061
|
-
(k || "React class") + ": " + x + " type `" +
|
|
4061
|
+
(k || "React class") + ": " + x + " type `" + X + "." + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
|
|
4062
4062
|
);
|
|
4063
4063
|
}
|
|
4064
4064
|
function O(k) {
|
|
4065
|
-
function x(
|
|
4066
|
-
var $ =
|
|
4065
|
+
function x(X, M, U, z, H) {
|
|
4066
|
+
var $ = X[M], re = q($);
|
|
4067
4067
|
if (re !== "object")
|
|
4068
4068
|
return new m("Invalid " + z + " `" + H + "` of type `" + re + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
4069
4069
|
for (var J in k) {
|
|
@@ -4079,18 +4079,18 @@ function sx() {
|
|
|
4079
4079
|
return y(x);
|
|
4080
4080
|
}
|
|
4081
4081
|
function S(k) {
|
|
4082
|
-
function x(
|
|
4083
|
-
var $ =
|
|
4082
|
+
function x(X, M, U, z, H) {
|
|
4083
|
+
var $ = X[M], re = q($);
|
|
4084
4084
|
if (re !== "object")
|
|
4085
4085
|
return new m("Invalid " + z + " `" + H + "` of type `" + re + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
4086
|
-
var J = t({},
|
|
4086
|
+
var J = t({}, X[M], k);
|
|
4087
4087
|
for (var se in J) {
|
|
4088
4088
|
var ie = k[se];
|
|
4089
4089
|
if (r(k, se) && typeof ie != "function")
|
|
4090
4090
|
return P(U, z, H, se, N(ie));
|
|
4091
4091
|
if (!ie)
|
|
4092
4092
|
return new m(
|
|
4093
|
-
"Invalid " + z + " `" + H + "` key `" + se + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(
|
|
4093
|
+
"Invalid " + z + " `" + H + "` key `" + se + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(X[M], null, " ") + `
|
|
4094
4094
|
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
4095
4095
|
);
|
|
4096
4096
|
var oe = ie($, se, U, z, H + "." + se, n);
|
|
@@ -4116,13 +4116,13 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4116
4116
|
return !0;
|
|
4117
4117
|
var x = d(k);
|
|
4118
4118
|
if (x) {
|
|
4119
|
-
var
|
|
4119
|
+
var X = x.call(k), M;
|
|
4120
4120
|
if (x !== k.entries) {
|
|
4121
|
-
for (; !(M =
|
|
4121
|
+
for (; !(M = X.next()).done; )
|
|
4122
4122
|
if (!F(M.value))
|
|
4123
4123
|
return !1;
|
|
4124
4124
|
} else
|
|
4125
|
-
for (; !(M =
|
|
4125
|
+
for (; !(M = X.next()).done; ) {
|
|
4126
4126
|
var U = M.value;
|
|
4127
4127
|
if (U && !F(U[1]))
|
|
4128
4128
|
return !1;
|
|
@@ -4167,7 +4167,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4167
4167
|
return x;
|
|
4168
4168
|
}
|
|
4169
4169
|
}
|
|
4170
|
-
function
|
|
4170
|
+
function Q(k) {
|
|
4171
4171
|
return !k.constructor || !k.constructor.name ? h : k.constructor.name;
|
|
4172
4172
|
}
|
|
4173
4173
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
@@ -4609,7 +4609,7 @@ var ag = {
|
|
|
4609
4609
|
return Ia(k);
|
|
4610
4610
|
}), Z = F.slice().reverse().find(function(k) {
|
|
4611
4611
|
return Ia(k);
|
|
4612
|
-
}),
|
|
4612
|
+
}), Q = !!S.find(function(k) {
|
|
4613
4613
|
return na(k) > 0;
|
|
4614
4614
|
});
|
|
4615
4615
|
return {
|
|
@@ -4617,7 +4617,7 @@ var ag = {
|
|
|
4617
4617
|
tabbableNodes: S,
|
|
4618
4618
|
focusableNodes: F,
|
|
4619
4619
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
4620
|
-
posTabIndexesFound:
|
|
4620
|
+
posTabIndexesFound: Q,
|
|
4621
4621
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
4622
4622
|
firstTabbableNode: j,
|
|
4623
4623
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
@@ -4642,12 +4642,12 @@ var ag = {
|
|
|
4642
4642
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
4643
4643
|
*/
|
|
4644
4644
|
nextTabbableNode: function(x) {
|
|
4645
|
-
var
|
|
4646
|
-
return M < 0 ?
|
|
4645
|
+
var X = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, M = S.indexOf(x);
|
|
4646
|
+
return M < 0 ? X ? F.slice(F.indexOf(x) + 1).find(function(U) {
|
|
4647
4647
|
return Ia(U);
|
|
4648
4648
|
}) : F.slice(0, F.indexOf(x)).reverse().find(function(U) {
|
|
4649
4649
|
return Ia(U);
|
|
4650
|
-
}) : S[M + (
|
|
4650
|
+
}) : S[M + (X ? 1 : -1)];
|
|
4651
4651
|
}
|
|
4652
4652
|
};
|
|
4653
4653
|
}), s.tabbableGroups = s.containerGroups.filter(function(O) {
|
|
@@ -4680,7 +4680,7 @@ var ag = {
|
|
|
4680
4680
|
S = S || vu(F), h();
|
|
4681
4681
|
var N = null;
|
|
4682
4682
|
if (s.tabbableGroups.length > 0) {
|
|
4683
|
-
var Z = u(S, F),
|
|
4683
|
+
var Z = u(S, F), Q = Z >= 0 ? s.containerGroups[Z] : void 0;
|
|
4684
4684
|
if (Z < 0)
|
|
4685
4685
|
q ? N = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : N = s.tabbableGroups[0].firstTabbableNode;
|
|
4686
4686
|
else if (q) {
|
|
@@ -4688,21 +4688,21 @@ var ag = {
|
|
|
4688
4688
|
var $ = H.firstTabbableNode;
|
|
4689
4689
|
return S === $;
|
|
4690
4690
|
});
|
|
4691
|
-
if (k < 0 && (
|
|
4692
|
-
var x = k === 0 ? s.tabbableGroups.length - 1 : k - 1,
|
|
4693
|
-
N = na(S) >= 0 ?
|
|
4691
|
+
if (k < 0 && (Q.container === S || _c(S, a.tabbableOptions) && !Ia(S, a.tabbableOptions) && !Q.nextTabbableNode(S, !1)) && (k = Z), k >= 0) {
|
|
4692
|
+
var x = k === 0 ? s.tabbableGroups.length - 1 : k - 1, X = s.tabbableGroups[x];
|
|
4693
|
+
N = na(S) >= 0 ? X.lastTabbableNode : X.lastDomTabbableNode;
|
|
4694
4694
|
} else
|
|
4695
|
-
Jo(F) || (N =
|
|
4695
|
+
Jo(F) || (N = Q.nextTabbableNode(S, !1));
|
|
4696
4696
|
} else {
|
|
4697
4697
|
var M = og(s.tabbableGroups, function(H) {
|
|
4698
4698
|
var $ = H.lastTabbableNode;
|
|
4699
4699
|
return S === $;
|
|
4700
4700
|
});
|
|
4701
|
-
if (M < 0 && (
|
|
4701
|
+
if (M < 0 && (Q.container === S || _c(S, a.tabbableOptions) && !Ia(S, a.tabbableOptions) && !Q.nextTabbableNode(S)) && (M = Z), M >= 0) {
|
|
4702
4702
|
var U = M === s.tabbableGroups.length - 1 ? 0 : M + 1, z = s.tabbableGroups[U];
|
|
4703
4703
|
N = na(S) >= 0 ? z.firstTabbableNode : z.firstDomTabbableNode;
|
|
4704
4704
|
} else
|
|
4705
|
-
Jo(F) || (N =
|
|
4705
|
+
Jo(F) || (N = Q.nextTabbableNode(S));
|
|
4706
4706
|
}
|
|
4707
4707
|
} else
|
|
4708
4708
|
N = c("fallbackFocus");
|
|
@@ -4735,10 +4735,10 @@ var ag = {
|
|
|
4735
4735
|
if (na(s.mostRecentlyFocusedNode) > 0) {
|
|
4736
4736
|
var N = u(s.mostRecentlyFocusedNode), Z = s.containerGroups[N].tabbableNodes;
|
|
4737
4737
|
if (Z.length > 0) {
|
|
4738
|
-
var
|
|
4738
|
+
var Q = Z.findIndex(function(k) {
|
|
4739
4739
|
return k === s.mostRecentlyFocusedNode;
|
|
4740
4740
|
});
|
|
4741
|
-
|
|
4741
|
+
Q >= 0 && (a.isKeyForward(s.recentNavEvent) ? Q + 1 < Z.length && (j = Z[Q + 1], q = !1) : Q - 1 >= 0 && (j = Z[Q - 1], q = !1));
|
|
4742
4742
|
}
|
|
4743
4743
|
} else
|
|
4744
4744
|
s.containerGroups.some(function(k) {
|
|
@@ -5825,11 +5825,11 @@ const H4 = (e, t, n) => {
|
|
|
5825
5825
|
additional_data: h,
|
|
5826
5826
|
settings: p,
|
|
5827
5827
|
payload: g
|
|
5828
|
-
} = e, m = (((R = l == null ? void 0 : l.like) == null ? void 0 : R.length) || 0) > 0, y = (((B = o == null ? void 0 : o.like) == null ? void 0 : B.length) || 0) > 0, v = m ? (P = l == null ? void 0 : l.like) == null ? void 0 : P.map((
|
|
5829
|
-
var k, x,
|
|
5828
|
+
} = e, m = (((R = l == null ? void 0 : l.like) == null ? void 0 : R.length) || 0) > 0, y = (((B = o == null ? void 0 : o.like) == null ? void 0 : B.length) || 0) > 0, v = m ? (P = l == null ? void 0 : l.like) == null ? void 0 : P.map((Q) => {
|
|
5829
|
+
var k, x, X;
|
|
5830
5830
|
return {
|
|
5831
|
-
id: (k =
|
|
5832
|
-
name: (
|
|
5831
|
+
id: (k = Q == null ? void 0 : Q.user) == null ? void 0 : k.id,
|
|
5832
|
+
name: (X = (x = Q == null ? void 0 : Q.user) == null ? void 0 : x.data) == null ? void 0 : X.name
|
|
5833
5833
|
};
|
|
5834
5834
|
}) : !1, E = (F = (S = (O = g == null ? void 0 : g.data) == null ? void 0 : O.translations) == null ? void 0 : S[n]) == null ? void 0 : F.title, b = (N = (q = (j = g == null ? void 0 : g.data) == null ? void 0 : j.translations) == null ? void 0 : q[n]) == null ? void 0 : N.body, T = (Z = g == null ? void 0 : g.data) == null ? void 0 : Z.original, C = !!(E || b), _ = (T == null ? void 0 : T.locale) === n, A = E || (T == null ? void 0 : T.title), I = b || (T == null ? void 0 : T.body);
|
|
5835
5835
|
return {
|
|
@@ -6828,13 +6828,13 @@ const P6 = [
|
|
|
6828
6828
|
createPoll: q,
|
|
6829
6829
|
createVote: N,
|
|
6830
6830
|
removeVote: Z,
|
|
6831
|
-
removePoll:
|
|
6831
|
+
removePoll: Q
|
|
6832
6832
|
}
|
|
6833
6833
|
} = A6({
|
|
6834
6834
|
queryKey: [e, t, "activities", m],
|
|
6835
6835
|
queryFns: b,
|
|
6836
6836
|
filterOption: m[0]
|
|
6837
|
-
}), [k, x] = de(null),
|
|
6837
|
+
}), [k, x] = de(null), X = () => {
|
|
6838
6838
|
x(T.length), _();
|
|
6839
6839
|
};
|
|
6840
6840
|
return z4(), C ? /* @__PURE__ */ f.jsx(Oi, { variant: "error", text: C.message }) : /* @__PURE__ */ f.jsxs("section", { className: "activities-feed", children: [
|
|
@@ -6961,7 +6961,7 @@ const P6 = [
|
|
|
6961
6961
|
polls: {
|
|
6962
6962
|
createVote: ({ reactionId: ie }) => N({ activityId: z, reactionId: ie }),
|
|
6963
6963
|
removeVote: ({ reactionId: ie }) => Z({ activityId: z, reactionId: ie }),
|
|
6964
|
-
removePoll: () =>
|
|
6964
|
+
removePoll: () => Q({ activityId: z })
|
|
6965
6965
|
},
|
|
6966
6966
|
form: s
|
|
6967
6967
|
},
|
|
@@ -6994,7 +6994,7 @@ const P6 = [
|
|
|
6994
6994
|
k1,
|
|
6995
6995
|
{
|
|
6996
6996
|
hasNextPage: A,
|
|
6997
|
-
loadNextPage:
|
|
6997
|
+
loadNextPage: X,
|
|
6998
6998
|
icon: { icon: "arrow-down", position: "right" },
|
|
6999
6999
|
messages: {
|
|
7000
7000
|
button: p.formatMessage({ id: "loadMore_button" }),
|
|
@@ -8810,28 +8810,28 @@ const j6 = ({
|
|
|
8810
8810
|
e && (E || j.push({
|
|
8811
8811
|
condition: (q) => {
|
|
8812
8812
|
var k;
|
|
8813
|
-
const N = q[e].toLowerCase(), Z = ((k = q[`${e}-all`]) == null ? void 0 : k.length) ?? 0,
|
|
8813
|
+
const N = q[e].toLowerCase(), Z = ((k = q[`${e}-all`]) == null ? void 0 : k.length) ?? 0, Q = new Set(
|
|
8814
8814
|
q[`${e}-all`].map((x) => x.toLowerCase())
|
|
8815
8815
|
);
|
|
8816
|
-
return
|
|
8816
|
+
return Q.has(N) && Q.size < Z;
|
|
8817
8817
|
},
|
|
8818
8818
|
error: h == null ? void 0 : h.formatMessage({ id: "form_error_multipleInputs_same" })
|
|
8819
8819
|
}), j.forEach((q) => {
|
|
8820
8820
|
const { condition: N, error: Z } = q;
|
|
8821
8821
|
if (typeof N == "function")
|
|
8822
|
-
q.condition = (
|
|
8823
|
-
var
|
|
8824
|
-
let k = (
|
|
8825
|
-
k || (
|
|
8826
|
-
const x = mr(
|
|
8827
|
-
return x[e] = k, x[`${e}-all`] =
|
|
8822
|
+
q.condition = (Q) => {
|
|
8823
|
+
var X;
|
|
8824
|
+
let k = (X = Q == null ? void 0 : Q[e]) == null ? void 0 : X[F];
|
|
8825
|
+
k || (Q[e] && !Array.isArray(Q[e]) ? k = Q[e] : k = "");
|
|
8826
|
+
const x = mr(Q);
|
|
8827
|
+
return x[e] = k, x[`${e}-all`] = Q[e], typeof N == "function" && N(x) ? Z : !1;
|
|
8828
8828
|
};
|
|
8829
8829
|
else {
|
|
8830
|
-
const
|
|
8830
|
+
const Q = N;
|
|
8831
8831
|
q.condition = (k) => {
|
|
8832
|
-
var
|
|
8833
|
-
let x = (
|
|
8834
|
-
switch (x || (k[e] && !Array.isArray(k[e]) ? x = k[e] : x = ""),
|
|
8832
|
+
var X;
|
|
8833
|
+
let x = (X = k == null ? void 0 : k[e]) == null ? void 0 : X[F];
|
|
8834
|
+
switch (x || (k[e] && !Array.isArray(k[e]) ? x = k[e] : x = ""), Q) {
|
|
8835
8835
|
case "required":
|
|
8836
8836
|
Z || (q.error = h == null ? void 0 : h.formatMessage({ id: "form_error_required" }));
|
|
8837
8837
|
break;
|
|
@@ -8847,7 +8847,7 @@ const j6 = ({
|
|
|
8847
8847
|
default:
|
|
8848
8848
|
console.warn("WARNING! No field validation condition has been set");
|
|
8849
8849
|
}
|
|
8850
|
-
return Vo(
|
|
8850
|
+
return Vo(Q, x) ? q.error : !1;
|
|
8851
8851
|
};
|
|
8852
8852
|
}
|
|
8853
8853
|
}), P.push({
|
|
@@ -8928,10 +8928,10 @@ const j6 = ({
|
|
|
8928
8928
|
},
|
|
8929
8929
|
onChange: (j) => {
|
|
8930
8930
|
const q = b[P].toLowerCase(), N = mr(b);
|
|
8931
|
-
N[P] = j, T(N), u == null || u.dispatch({ type: "removeError", payload: { key: S } }), E || N.forEach((Z,
|
|
8932
|
-
Al(Z) &&
|
|
8931
|
+
N[P] = j, T(N), u == null || u.dispatch({ type: "removeError", payload: { key: S } }), E || N.forEach((Z, Q) => {
|
|
8932
|
+
Al(Z) && Q !== P && Z.toLowerCase() === q && (u == null || u.dispatch({
|
|
8933
8933
|
type: "removeError",
|
|
8934
|
-
payload: { key: `${e}-${
|
|
8934
|
+
payload: { key: `${e}-${Q}` }
|
|
8935
8935
|
}));
|
|
8936
8936
|
}), a == null || a.onChange(N);
|
|
8937
8937
|
}
|
|
@@ -9376,7 +9376,7 @@ const li = ({
|
|
|
9376
9376
|
formSubmitted: !1,
|
|
9377
9377
|
errors: {},
|
|
9378
9378
|
values: j
|
|
9379
|
-
}), { errors: Z, isSubmitting:
|
|
9379
|
+
}), { errors: Z, isSubmitting: Q, formSubmitted: k, values: x } = q;
|
|
9380
9380
|
he(() => {
|
|
9381
9381
|
C && k && (Td = setTimeout(() => {
|
|
9382
9382
|
N({
|
|
@@ -9403,8 +9403,8 @@ const li = ({
|
|
|
9403
9403
|
);
|
|
9404
9404
|
};
|
|
9405
9405
|
}, []);
|
|
9406
|
-
const
|
|
9407
|
-
if (!
|
|
9406
|
+
const X = ze(null), M = i || X, U = wl(() => {
|
|
9407
|
+
if (!Q) {
|
|
9408
9408
|
if (N({
|
|
9409
9409
|
type: "updateValue",
|
|
9410
9410
|
payload: { key: "isSubmitting", value: !0 }
|
|
@@ -9464,17 +9464,17 @@ const li = ({
|
|
|
9464
9464
|
const se = document.getElementById("header");
|
|
9465
9465
|
se && (J = J - se.offsetHeight - b), J < 0 && (J = 0), window.scrollTo({ top: J, behavior: "smooth" });
|
|
9466
9466
|
}, $ = (J) => {
|
|
9467
|
-
J.preventDefault(), J.stopPropagation(), !
|
|
9467
|
+
J.preventDefault(), J.stopPropagation(), !Q && U();
|
|
9468
9468
|
}, re = [
|
|
9469
9469
|
{
|
|
9470
9470
|
...E,
|
|
9471
9471
|
icon: k ? { icon: "tick", position: "left" } : !1,
|
|
9472
9472
|
className: te("gtm-trackable", E.className),
|
|
9473
9473
|
onClick: $,
|
|
9474
|
-
disabled:
|
|
9474
|
+
disabled: Q || k || s.disabled,
|
|
9475
9475
|
"data-gtm-event-context": c.context,
|
|
9476
9476
|
"data-gtm-event-type": c.event,
|
|
9477
|
-
children: z[
|
|
9477
|
+
children: z[Q ? "submitting" : k ? "submitted" : "default"]
|
|
9478
9478
|
}
|
|
9479
9479
|
];
|
|
9480
9480
|
return T && re.unshift({
|
|
@@ -9482,7 +9482,7 @@ const li = ({
|
|
|
9482
9482
|
className: te("gtm-trackable", o.className),
|
|
9483
9483
|
"data-gtm-event-context": c.context,
|
|
9484
9484
|
"data-gtm-event-type": c.event,
|
|
9485
|
-
disabled:
|
|
9485
|
+
disabled: Q || k,
|
|
9486
9486
|
onClick: P,
|
|
9487
9487
|
children: o.text || F.formatMessage({ id: "form_cancel" })
|
|
9488
9488
|
}), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
@@ -9503,7 +9503,7 @@ const li = ({
|
|
|
9503
9503
|
}
|
|
9504
9504
|
) : null,
|
|
9505
9505
|
u,
|
|
9506
|
-
(!_ || !
|
|
9506
|
+
(!_ || !Q && !k || y) && t.map((J, se) => {
|
|
9507
9507
|
const {
|
|
9508
9508
|
id: ie = J.name || se,
|
|
9509
9509
|
component: oe,
|
|
@@ -9540,11 +9540,11 @@ const li = ({
|
|
|
9540
9540
|
ie
|
|
9541
9541
|
);
|
|
9542
9542
|
}),
|
|
9543
|
-
v ? null : (
|
|
9543
|
+
v ? null : (Q || k) && y ? y : /* @__PURE__ */ f.jsx(
|
|
9544
9544
|
Wl,
|
|
9545
9545
|
{
|
|
9546
9546
|
className: te("cta", {
|
|
9547
|
-
center:
|
|
9547
|
+
center: Q || k,
|
|
9548
9548
|
submitted: k
|
|
9549
9549
|
}),
|
|
9550
9550
|
buttons: re
|
|
@@ -9916,18 +9916,18 @@ const iA = /* @__PURE__ */ Lr(rA), xg = (e) => typeof e == "object" && e != null
|
|
|
9916
9916
|
let S = o === "start" || o === "nearest" ? C - R : o === "end" ? A + P : C + b / 2 - R + P, F = l === "center" ? I + T / 2 - O + B : l === "end" ? _ + B : I - O;
|
|
9917
9917
|
const j = [];
|
|
9918
9918
|
for (let q = 0; q < p.length; q++) {
|
|
9919
|
-
const N = p[q], { height: Z, width:
|
|
9920
|
-
if (s === "if-needed" && C >= 0 && I >= 0 && A <= y && _ <= m && C >= k && A <=
|
|
9919
|
+
const N = p[q], { height: Z, width: Q, top: k, right: x, bottom: X, left: M } = N.getBoundingClientRect();
|
|
9920
|
+
if (s === "if-needed" && C >= 0 && I >= 0 && A <= y && _ <= m && C >= k && A <= X && I >= M && _ <= x)
|
|
9921
9921
|
return j;
|
|
9922
9922
|
const U = getComputedStyle(N), z = parseInt(U.borderLeftWidth, 10), H = parseInt(U.borderTopWidth, 10), $ = parseInt(U.borderRightWidth, 10), re = parseInt(U.borderBottomWidth, 10);
|
|
9923
9923
|
let J = 0, se = 0;
|
|
9924
|
-
const ie = "offsetWidth" in N ? N.offsetWidth - N.clientWidth - z - $ : 0, oe = "offsetHeight" in N ? N.offsetHeight - N.clientHeight - H - re : 0, Ce = "offsetWidth" in N ? N.offsetWidth === 0 ? 0 :
|
|
9924
|
+
const ie = "offsetWidth" in N ? N.offsetWidth - N.clientWidth - z - $ : 0, oe = "offsetHeight" in N ? N.offsetHeight - N.clientHeight - H - re : 0, Ce = "offsetWidth" in N ? N.offsetWidth === 0 ? 0 : Q / N.offsetWidth : 0, Se = "offsetHeight" in N ? N.offsetHeight === 0 ? 0 : Z / N.offsetHeight : 0;
|
|
9925
9925
|
if (h === N)
|
|
9926
9926
|
J = o === "start" ? S : o === "end" ? S - y : o === "nearest" ? Tu(E, E + y, y, H, re, E + S, E + S + b, b) : S - y / 2, se = l === "start" ? F : l === "center" ? F - m / 2 : l === "end" ? F - m : Tu(v, v + m, m, z, $, v + F, v + F + T, T), J = Math.max(0, J + E), se = Math.max(0, se + v);
|
|
9927
9927
|
else {
|
|
9928
|
-
J = o === "start" ? S - k - H : o === "end" ? S -
|
|
9928
|
+
J = o === "start" ? S - k - H : o === "end" ? S - X + re + oe : o === "nearest" ? Tu(k, X, Z, H, re + oe, S, S + b, b) : S - (k + Z / 2) + oe / 2, se = l === "start" ? F - M - z : l === "center" ? F - (M + Q / 2) + ie / 2 : l === "end" ? F - x + $ + ie : Tu(M, x, Q, z, $ + ie, F, F + T, T);
|
|
9929
9929
|
const { scrollLeft: xe, scrollTop: ue } = N;
|
|
9930
|
-
J = Se === 0 ? 0 : Math.max(0, Math.min(ue + J / Se, N.scrollHeight - Z / Se + oe)), se = Ce === 0 ? 0 : Math.max(0, Math.min(xe + se / Ce, N.scrollWidth -
|
|
9930
|
+
J = Se === 0 ? 0 : Math.max(0, Math.min(ue + J / Se, N.scrollHeight - Z / Se + oe)), se = Ce === 0 ? 0 : Math.max(0, Math.min(xe + se / Ce, N.scrollWidth - Q / Ce + ie)), S += ue - J, F += xe - se;
|
|
9931
9931
|
}
|
|
9932
9932
|
j.push({ el: N, top: J, left: se });
|
|
9933
9933
|
}
|
|
@@ -10764,24 +10764,24 @@ var xA = (e, t, n) => {
|
|
|
10764
10764
|
}
|
|
10765
10765
|
case "remove_node": {
|
|
10766
10766
|
var {
|
|
10767
|
-
path:
|
|
10768
|
-
} = n, k =
|
|
10767
|
+
path: Q
|
|
10768
|
+
} = n, k = Q[Q.length - 1], x = ve.parent(e, Q);
|
|
10769
10769
|
if (x.children.splice(k, 1), t)
|
|
10770
|
-
for (var [
|
|
10771
|
-
var U = Je.transform(
|
|
10770
|
+
for (var [X, M] of ae.points(t)) {
|
|
10771
|
+
var U = Je.transform(X, n);
|
|
10772
10772
|
if (t != null && U != null)
|
|
10773
10773
|
t[M] = U;
|
|
10774
10774
|
else {
|
|
10775
10775
|
var z = void 0, H = void 0;
|
|
10776
10776
|
for (var [$, re] of ve.texts(e))
|
|
10777
|
-
if (K.compare(re,
|
|
10777
|
+
if (K.compare(re, Q) === -1)
|
|
10778
10778
|
z = [$, re];
|
|
10779
10779
|
else {
|
|
10780
10780
|
H = [$, re];
|
|
10781
10781
|
break;
|
|
10782
10782
|
}
|
|
10783
10783
|
var J = !1;
|
|
10784
|
-
z && H && (K.equals(H[1],
|
|
10784
|
+
z && H && (K.equals(H[1], Q) ? J = !K.hasPrevious(H[1]) : J = K.common(z[1], Q).length < K.common(H[1], Q).length), z && !J ? (X.path = z[1], X.offset = z[0].text.length) : H ? (X.path = H[1], X.offset = 0) : t = null;
|
|
10785
10785
|
}
|
|
10786
10786
|
}
|
|
10787
10787
|
break;
|
|
@@ -13094,13 +13094,13 @@ var dk = (e, t) => {
|
|
|
13094
13094
|
var N = Array.from(O, (Se) => {
|
|
13095
13095
|
var [, xe] = Se;
|
|
13096
13096
|
return D.pathRef(t, xe);
|
|
13097
|
-
}), Z = D.pointRef(t, E),
|
|
13097
|
+
}), Z = D.pointRef(t, E), Q = D.pointRef(t, b), k = "";
|
|
13098
13098
|
if (!A && !I) {
|
|
13099
|
-
var x = Z.current, [
|
|
13099
|
+
var x = Z.current, [X] = D.leaf(t, x), {
|
|
13100
13100
|
path: M
|
|
13101
13101
|
} = x, {
|
|
13102
13102
|
offset: U
|
|
13103
|
-
} = E, z =
|
|
13103
|
+
} = E, z = X.text.slice(U);
|
|
13104
13104
|
z.length > 0 && (t.apply({
|
|
13105
13105
|
type: "remove_text",
|
|
13106
13106
|
path: M,
|
|
@@ -13112,7 +13112,7 @@ var dk = (e, t) => {
|
|
|
13112
13112
|
at: Se,
|
|
13113
13113
|
voids: l
|
|
13114
13114
|
})), !R) {
|
|
13115
|
-
var H =
|
|
13115
|
+
var H = Q.current, [$] = D.leaf(t, H), {
|
|
13116
13116
|
path: re
|
|
13117
13117
|
} = H, J = A ? E.offset : 0, se = $.text.slice(J, b.offset);
|
|
13118
13118
|
se.length > 0 && (t.apply({
|
|
@@ -13122,12 +13122,12 @@ var dk = (e, t) => {
|
|
|
13122
13122
|
text: se
|
|
13123
13123
|
}), k = se);
|
|
13124
13124
|
}
|
|
13125
|
-
!A && _ &&
|
|
13126
|
-
at:
|
|
13125
|
+
!A && _ && Q.current && Z.current && le.mergeNodes(t, {
|
|
13126
|
+
at: Q.current,
|
|
13127
13127
|
hanging: !0,
|
|
13128
13128
|
voids: l
|
|
13129
13129
|
}), d && a && s === "character" && k.length > 1 && k.match(/[\u0E00-\u0E7F]+/) && le.insertText(t, k.slice(0, k.length - o));
|
|
13130
|
-
var ie = Z.unref(), oe =
|
|
13130
|
+
var ie = Z.unref(), oe = Q.unref(), Ce = a ? ie || oe : oe || ie;
|
|
13131
13131
|
n.at == null && Ce && le.select(t, Ce);
|
|
13132
13132
|
}
|
|
13133
13133
|
}
|
|
@@ -13206,7 +13206,7 @@ var dk = (e, t) => {
|
|
|
13206
13206
|
match: (z) => Ne.isText(z) || D.isInline(t, z),
|
|
13207
13207
|
mode: "highest",
|
|
13208
13208
|
voids: a
|
|
13209
|
-
}), [, N] = q, Z = D.isStart(t, s, N),
|
|
13209
|
+
}), [, N] = q, Z = D.isStart(t, s, N), Q = D.isEnd(t, s, N), k = D.pathRef(t, v && !O.length ? K.next(m) : m), x = D.pathRef(t, Q ? K.next(N) : N);
|
|
13210
13210
|
le.splitNodes(t, {
|
|
13211
13211
|
at: s,
|
|
13212
13212
|
match: (z) => F ? ke.isElement(z) && D.isBlock(t, z) : Ne.isText(z) || D.isInline(t, z),
|
|
@@ -13214,9 +13214,9 @@ var dk = (e, t) => {
|
|
|
13214
13214
|
always: F && (!y || B.length > 0) && (!v || O.length > 0),
|
|
13215
13215
|
voids: a
|
|
13216
13216
|
});
|
|
13217
|
-
var
|
|
13217
|
+
var X = D.pathRef(t, !Z || Z && Q ? K.next(N) : N);
|
|
13218
13218
|
if (le.insertNodes(t, B, {
|
|
13219
|
-
at:
|
|
13219
|
+
at: X.current,
|
|
13220
13220
|
match: (z) => Ne.isText(z) || D.isInline(t, z),
|
|
13221
13221
|
mode: "highest",
|
|
13222
13222
|
voids: a,
|
|
@@ -13238,12 +13238,12 @@ var dk = (e, t) => {
|
|
|
13238
13238
|
batchDirty: o
|
|
13239
13239
|
}), !r.at) {
|
|
13240
13240
|
var M;
|
|
13241
|
-
if (O.length > 0 && x.current ? M = K.previous(x.current) : P.length > 0 && k.current ? M = K.previous(k.current) :
|
|
13241
|
+
if (O.length > 0 && x.current ? M = K.previous(x.current) : P.length > 0 && k.current ? M = K.previous(k.current) : X.current && (M = K.previous(X.current)), M) {
|
|
13242
13242
|
var U = D.end(t, M);
|
|
13243
13243
|
le.select(t, U);
|
|
13244
13244
|
}
|
|
13245
13245
|
}
|
|
13246
|
-
|
|
13246
|
+
X.unref(), k.unref(), x.unref();
|
|
13247
13247
|
}
|
|
13248
13248
|
}
|
|
13249
13249
|
});
|
|
@@ -13766,9 +13766,9 @@ var Ck = function(t, n) {
|
|
|
13766
13766
|
height: o = 0,
|
|
13767
13767
|
always: l = !1
|
|
13768
13768
|
} = n;
|
|
13769
|
-
if (a == null && (a = (
|
|
13769
|
+
if (a == null && (a = (Q) => ke.isElement(Q) && D.isBlock(t, Q)), ae.isRange(s) && (s = Pk(t, s)), K.isPath(s)) {
|
|
13770
13770
|
var u = s, c = D.point(t, u), [d] = D.parent(t, u);
|
|
13771
|
-
a = (
|
|
13771
|
+
a = (Q) => Q === d, o = c.path.length - u.length + 1, s = c, l = !0;
|
|
13772
13772
|
}
|
|
13773
13773
|
if (s) {
|
|
13774
13774
|
var h = D.pointRef(t, s, {
|
|
@@ -15593,13 +15593,13 @@ function jD(e) {
|
|
|
15593
15593
|
var Z = RD(F);
|
|
15594
15594
|
(!t.selection || !ae.equals(t.selection, Z)) && le.select(t, Z), F.diff.text ? D.insertText(t, F.diff.text) : D.deleteFragment(t), Mn.set(t, (q = Mn.get(t)) === null || q === void 0 ? void 0 : q.filter((x) => {
|
|
15595
15595
|
var {
|
|
15596
|
-
id:
|
|
15596
|
+
id: X
|
|
15597
15597
|
} = x;
|
|
15598
|
-
return
|
|
15598
|
+
return X !== F.id;
|
|
15599
15599
|
})), OD(t, F) || (S = !1, Ji.delete(t), Si.delete(t), i = "action", ea.delete(t), n.cancel(), r.cancel(), O == null || O.unref());
|
|
15600
15600
|
}
|
|
15601
|
-
var
|
|
15602
|
-
if (
|
|
15601
|
+
var Q = O == null ? void 0 : O.unref();
|
|
15602
|
+
if (Q && !ea.get(t) && (!t.selection || !ae.equals(Q, t.selection)) && le.select(t, Q), b()) {
|
|
15603
15603
|
d();
|
|
15604
15604
|
return;
|
|
15605
15605
|
}
|
|
@@ -15634,13 +15634,13 @@ function jD(e) {
|
|
|
15634
15634
|
}), m();
|
|
15635
15635
|
return;
|
|
15636
15636
|
}
|
|
15637
|
-
var
|
|
15638
|
-
if (!
|
|
15637
|
+
var Q = PD(q.text, j[N].diff, S);
|
|
15638
|
+
if (!Q) {
|
|
15639
15639
|
j.splice(N, 1), m();
|
|
15640
15640
|
return;
|
|
15641
15641
|
}
|
|
15642
15642
|
j[N] = Su(Su({}, j[N]), {}, {
|
|
15643
|
-
diff:
|
|
15643
|
+
diff: Q
|
|
15644
15644
|
});
|
|
15645
15645
|
}, v = function(S) {
|
|
15646
15646
|
var {
|
|
@@ -15662,23 +15662,23 @@ function jD(e) {
|
|
|
15662
15662
|
exactMatch: !1,
|
|
15663
15663
|
suppressThrow: !0
|
|
15664
15664
|
}));
|
|
15665
|
-
var Z = ce.getWindow(t),
|
|
15666
|
-
if (!j &&
|
|
15665
|
+
var Z = ce.getWindow(t), Q = Z.getSelection();
|
|
15666
|
+
if (!j && Q && (N = Q, j = ce.toSlateRange(t, Q, {
|
|
15667
15667
|
exactMatch: !1,
|
|
15668
15668
|
suppressThrow: !0
|
|
15669
15669
|
})), j = (S = j) !== null && S !== void 0 ? S : t.selection, !!j) {
|
|
15670
15670
|
var k = !0;
|
|
15671
15671
|
if (F.startsWith("delete")) {
|
|
15672
15672
|
if (ae.isExpanded(j)) {
|
|
15673
|
-
var [x,
|
|
15674
|
-
if (M.text.length === x.offset &&
|
|
15673
|
+
var [x, X] = ae.edges(j), M = ve.leaf(t, x.path);
|
|
15674
|
+
if (M.text.length === x.offset && X.offset === 0) {
|
|
15675
15675
|
var U = D.next(t, {
|
|
15676
15676
|
at: x.path,
|
|
15677
15677
|
match: Ne.isText
|
|
15678
15678
|
});
|
|
15679
|
-
U && K.equals(U[1],
|
|
15680
|
-
anchor:
|
|
15681
|
-
focus:
|
|
15679
|
+
U && K.equals(U[1], X.path) && (j = {
|
|
15680
|
+
anchor: X,
|
|
15681
|
+
focus: X
|
|
15682
15682
|
});
|
|
15683
15683
|
}
|
|
15684
15684
|
}
|
|
@@ -16744,20 +16744,20 @@ var CO = (e) => /* @__PURE__ */ L.createElement(L.Fragment, null, Mb(e)), xO = (
|
|
|
16744
16744
|
});
|
|
16745
16745
|
}
|
|
16746
16746
|
var {
|
|
16747
|
-
marks:
|
|
16747
|
+
marks: Q
|
|
16748
16748
|
} = m;
|
|
16749
|
-
if (R.hasMarkPlaceholder = !1, m.selection && ae.isCollapsed(m.selection) &&
|
|
16749
|
+
if (R.hasMarkPlaceholder = !1, m.selection && ae.isCollapsed(m.selection) && Q) {
|
|
16750
16750
|
var {
|
|
16751
16751
|
anchor: k
|
|
16752
|
-
} = m.selection, x = ve.leaf(m, k.path),
|
|
16753
|
-
if (!Ne.equals(x,
|
|
16752
|
+
} = m.selection, x = ve.leaf(m, k.path), X = Qs(x, _O);
|
|
16753
|
+
if (!Ne.equals(x, Q, {
|
|
16754
16754
|
loose: !0
|
|
16755
16755
|
})) {
|
|
16756
16756
|
R.hasMarkPlaceholder = !0;
|
|
16757
|
-
var M = Object.fromEntries(Object.keys(
|
|
16757
|
+
var M = Object.fromEntries(Object.keys(X).map((U) => [U, null]));
|
|
16758
16758
|
j.push(Vr(Vr(Vr({
|
|
16759
16759
|
[Sb]: !0
|
|
16760
|
-
}, M),
|
|
16760
|
+
}, M), Q), {}, {
|
|
16761
16761
|
anchor: k,
|
|
16762
16762
|
focus: k
|
|
16763
16763
|
}));
|
|
@@ -16772,10 +16772,10 @@ var CO = (e) => /* @__PURE__ */ L.createElement(L.Fragment, null, Mb(e)), xO = (
|
|
|
16772
16772
|
var {
|
|
16773
16773
|
anchor: z
|
|
16774
16774
|
} = U, H = ve.leaf(m, z.path);
|
|
16775
|
-
if (
|
|
16775
|
+
if (Q && !Ne.equals(H, Q, {
|
|
16776
16776
|
loose: !0
|
|
16777
16777
|
})) {
|
|
16778
|
-
Fr.set(m,
|
|
16778
|
+
Fr.set(m, Q);
|
|
16779
16779
|
return;
|
|
16780
16780
|
}
|
|
16781
16781
|
}
|
|
@@ -20129,10 +20129,10 @@ function aI(e, t, n) {
|
|
|
20129
20129
|
return M === null || We(M) ? O(M) : xt(M) ? (e.consume(M), P) : n(M);
|
|
20130
20130
|
}
|
|
20131
20131
|
function O(M) {
|
|
20132
|
-
return M === 45 && i === 2 ? (e.consume(M), q) : M === 60 && i === 1 ? (e.consume(M), N) : M === 62 && i === 4 ? (e.consume(M), x) : M === 63 && i === 3 ? (e.consume(M), k) : M === 93 && i === 5 ? (e.consume(M),
|
|
20132
|
+
return M === 45 && i === 2 ? (e.consume(M), q) : M === 60 && i === 1 ? (e.consume(M), N) : M === 62 && i === 4 ? (e.consume(M), x) : M === 63 && i === 3 ? (e.consume(M), k) : M === 93 && i === 5 ? (e.consume(M), Q) : We(M) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(nI, X, S)(M)) : M === null || We(M) ? (e.exit("htmlFlowData"), S(M)) : (e.consume(M), O);
|
|
20133
20133
|
}
|
|
20134
20134
|
function S(M) {
|
|
20135
|
-
return e.check(rI, F,
|
|
20135
|
+
return e.check(rI, F, X)(M);
|
|
20136
20136
|
}
|
|
20137
20137
|
function F(M) {
|
|
20138
20138
|
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), j;
|
|
@@ -20153,16 +20153,16 @@ function aI(e, t, n) {
|
|
|
20153
20153
|
}
|
|
20154
20154
|
return Zr(M) && s.length < 8 ? (e.consume(M), s += String.fromCharCode(M), Z) : O(M);
|
|
20155
20155
|
}
|
|
20156
|
-
function
|
|
20156
|
+
function Q(M) {
|
|
20157
20157
|
return M === 93 ? (e.consume(M), k) : O(M);
|
|
20158
20158
|
}
|
|
20159
20159
|
function k(M) {
|
|
20160
20160
|
return M === 62 ? (e.consume(M), x) : M === 45 && i === 2 ? (e.consume(M), k) : O(M);
|
|
20161
20161
|
}
|
|
20162
20162
|
function x(M) {
|
|
20163
|
-
return M === null || We(M) ? (e.exit("htmlFlowData"),
|
|
20163
|
+
return M === null || We(M) ? (e.exit("htmlFlowData"), X(M)) : (e.consume(M), x);
|
|
20164
20164
|
}
|
|
20165
|
-
function
|
|
20165
|
+
function X(M) {
|
|
20166
20166
|
return e.exit("htmlFlow"), t(M);
|
|
20167
20167
|
}
|
|
20168
20168
|
}
|
|
@@ -20273,9 +20273,9 @@ function uI(e, t, n) {
|
|
|
20273
20273
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), Z;
|
|
20274
20274
|
}
|
|
20275
20275
|
function Z(k) {
|
|
20276
|
-
return xt(k) ? Mt(e,
|
|
20276
|
+
return xt(k) ? Mt(e, Q, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : Q(k);
|
|
20277
20277
|
}
|
|
20278
|
-
function
|
|
20278
|
+
function Q(k) {
|
|
20279
20279
|
return e.enter("htmlTextData"), s(k);
|
|
20280
20280
|
}
|
|
20281
20281
|
}
|
|
@@ -20823,10 +20823,10 @@ function jI(e, t, n) {
|
|
|
20823
20823
|
function A(P, O) {
|
|
20824
20824
|
return S;
|
|
20825
20825
|
function S(F, j, q) {
|
|
20826
|
-
let N, Z,
|
|
20827
|
-
return Array.isArray(F) ?
|
|
20826
|
+
let N, Z, Q, k;
|
|
20827
|
+
return Array.isArray(F) ? X(F) : "tokenize" in F ? (
|
|
20828
20828
|
// @ts-expect-error Looks like a construct.
|
|
20829
|
-
|
|
20829
|
+
X([F])
|
|
20830
20830
|
) : x(F);
|
|
20831
20831
|
function x(H) {
|
|
20832
20832
|
return $;
|
|
@@ -20837,16 +20837,16 @@ function jI(e, t, n) {
|
|
|
20837
20837
|
...Array.isArray(J) ? J : J ? [J] : [],
|
|
20838
20838
|
...Array.isArray(se) ? se : se ? [se] : []
|
|
20839
20839
|
];
|
|
20840
|
-
return
|
|
20840
|
+
return X(ie)(re);
|
|
20841
20841
|
}
|
|
20842
20842
|
}
|
|
20843
|
-
function
|
|
20843
|
+
function X(H) {
|
|
20844
20844
|
return N = H, Z = 0, H.length === 0 ? q : M(H[Z]);
|
|
20845
20845
|
}
|
|
20846
20846
|
function M(H) {
|
|
20847
20847
|
return $;
|
|
20848
20848
|
function $(re) {
|
|
20849
|
-
return k = R(),
|
|
20849
|
+
return k = R(), Q = H, H.partial || (u.currentConstruct = H), H.name && u.parser.constructs.disable.null.includes(H.name) ? z() : H.tokenize.call(
|
|
20850
20850
|
// If we do have fields, create an object w/ `context` as its
|
|
20851
20851
|
// prototype.
|
|
20852
20852
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -20858,7 +20858,7 @@ function jI(e, t, n) {
|
|
|
20858
20858
|
}
|
|
20859
20859
|
}
|
|
20860
20860
|
function U(H) {
|
|
20861
|
-
return P(
|
|
20861
|
+
return P(Q, k), j;
|
|
20862
20862
|
}
|
|
20863
20863
|
function z(H) {
|
|
20864
20864
|
return k.restore(), ++Z < N.length ? M(N[Z]) : q;
|
|
@@ -21171,7 +21171,7 @@ function sP(e) {
|
|
|
21171
21171
|
htmlText: l(F),
|
|
21172
21172
|
htmlTextData: B,
|
|
21173
21173
|
image: l(N),
|
|
21174
|
-
label:
|
|
21174
|
+
label: Q,
|
|
21175
21175
|
labelText: Z,
|
|
21176
21176
|
lineEnding: P,
|
|
21177
21177
|
link: l(q),
|
|
@@ -21182,7 +21182,7 @@ function sP(e) {
|
|
|
21182
21182
|
referenceString: U,
|
|
21183
21183
|
resourceDestinationString: k,
|
|
21184
21184
|
resourceTitleString: x,
|
|
21185
|
-
resource:
|
|
21185
|
+
resource: X,
|
|
21186
21186
|
setextHeading: l(I),
|
|
21187
21187
|
setextHeadingLineSequence: A,
|
|
21188
21188
|
setextHeadingText: _,
|
|
@@ -21466,7 +21466,7 @@ function sP(e) {
|
|
|
21466
21466
|
const pe = this.sliceSerialize(ee), De = this.stack[this.stack.length - 2];
|
|
21467
21467
|
De.label = rP(pe), De.identifier = $s(pe).toLowerCase();
|
|
21468
21468
|
}
|
|
21469
|
-
function
|
|
21469
|
+
function Q() {
|
|
21470
21470
|
const ee = this.stack[this.stack.length - 1], pe = this.resume(), De = this.stack[this.stack.length - 1];
|
|
21471
21471
|
if (this.data.inReference = !0, De.type === "link") {
|
|
21472
21472
|
const Re = ee.children;
|
|
@@ -21482,7 +21482,7 @@ function sP(e) {
|
|
|
21482
21482
|
const ee = this.resume(), pe = this.stack[this.stack.length - 1];
|
|
21483
21483
|
pe.title = ee;
|
|
21484
21484
|
}
|
|
21485
|
-
function
|
|
21485
|
+
function X() {
|
|
21486
21486
|
this.data.inReference = void 0;
|
|
21487
21487
|
}
|
|
21488
21488
|
function M() {
|
|
@@ -23520,27 +23520,27 @@ const bT = ({
|
|
|
23520
23520
|
} = _, Z = async (z) => {
|
|
23521
23521
|
const H = await v(z);
|
|
23522
23522
|
H.url && A([{ type: "enrichedUrl", value: H }]);
|
|
23523
|
-
},
|
|
23523
|
+
}, Q = `rte-${e}`, k = pt(
|
|
23524
23524
|
(z) => /* @__PURE__ */ f.jsx(G6, { ...z }),
|
|
23525
23525
|
[]
|
|
23526
|
-
), x = pt((z) => /* @__PURE__ */ f.jsx(Y6, { ...z }), []),
|
|
23526
|
+
), x = pt((z) => /* @__PURE__ */ f.jsx(Y6, { ...z }), []), X = er(
|
|
23527
23527
|
() => iR(
|
|
23528
23528
|
dR(
|
|
23529
23529
|
fR(
|
|
23530
23530
|
hR(tR(FO(Lk())), b),
|
|
23531
23531
|
b
|
|
23532
23532
|
),
|
|
23533
|
-
|
|
23533
|
+
Q,
|
|
23534
23534
|
b
|
|
23535
23535
|
),
|
|
23536
23536
|
b
|
|
23537
23537
|
),
|
|
23538
23538
|
[]
|
|
23539
23539
|
), M = (z) => {
|
|
23540
|
-
if (!
|
|
23540
|
+
if (!X || z !== Q)
|
|
23541
23541
|
return;
|
|
23542
|
-
const H = D.end(
|
|
23543
|
-
le.select(
|
|
23542
|
+
const H = D.end(X, []);
|
|
23543
|
+
le.select(X, H), ce.focus(X);
|
|
23544
23544
|
};
|
|
23545
23545
|
he(() => {
|
|
23546
23546
|
const z = (H) => {
|
|
@@ -23552,12 +23552,12 @@ const bT = ({
|
|
|
23552
23552
|
window.removeEventListener("focusEditor", z);
|
|
23553
23553
|
};
|
|
23554
23554
|
}, []), he(() => {
|
|
23555
|
-
if (
|
|
23555
|
+
if (X.children.length > 0 && !j) {
|
|
23556
23556
|
if (A([{ type: "hasLoaded", value: !0 }]), !s)
|
|
23557
23557
|
return;
|
|
23558
|
-
M(
|
|
23558
|
+
M(Q);
|
|
23559
23559
|
}
|
|
23560
|
-
}, [
|
|
23560
|
+
}, [X.children.length, B]), he(() => {
|
|
23561
23561
|
R && (async () => {
|
|
23562
23562
|
let H = mr(R);
|
|
23563
23563
|
if (H.endsWith("<br/>") && (H = H.slice(0, -5)), H.includes("<")) {
|
|
@@ -23581,13 +23581,13 @@ const bT = ({
|
|
|
23581
23581
|
{ type: "editorKey", value: R.toString() }
|
|
23582
23582
|
];
|
|
23583
23583
|
o != null && o.link && (re.push({ type: "enrichedUrl", value: o.link }), o.link.url && Z(o.link.url)), A(re), setTimeout(() => {
|
|
23584
|
-
A([{ type: "stringValue", value: l9(
|
|
23584
|
+
A([{ type: "stringValue", value: l9(X) }]);
|
|
23585
23585
|
}, 150);
|
|
23586
23586
|
});
|
|
23587
23587
|
})();
|
|
23588
23588
|
}, [R]), he(() => {
|
|
23589
|
-
if (q === void 0 &&
|
|
23590
|
-
const H = hP(
|
|
23589
|
+
if (q === void 0 && X) {
|
|
23590
|
+
const H = hP(X);
|
|
23591
23591
|
H && Z(H);
|
|
23592
23592
|
}
|
|
23593
23593
|
const z = (H) => {
|
|
@@ -23604,13 +23604,13 @@ const bT = ({
|
|
|
23604
23604
|
const z = t.match(Ws);
|
|
23605
23605
|
z && z.length === 1 && z[0].length === t.length && !F && A([{ type: "originalValue", value: t }]);
|
|
23606
23606
|
}
|
|
23607
|
-
t !== "" || !
|
|
23608
|
-
le.delete(
|
|
23607
|
+
t !== "" || !X || qc(R, t) && !F || (D.withoutNormalizing(X, () => {
|
|
23608
|
+
le.delete(X, {
|
|
23609
23609
|
at: {
|
|
23610
|
-
anchor: D.start(
|
|
23611
|
-
focus: D.end(
|
|
23610
|
+
anchor: D.start(X, []),
|
|
23611
|
+
focus: D.end(X, [])
|
|
23612
23612
|
}
|
|
23613
|
-
}), le.deselect(
|
|
23613
|
+
}), le.deselect(X), X.children.length !== 0 && le.unwrapNodes(X, { at: [0] }), le.insertNodes(X, T, { at: [0] });
|
|
23614
23614
|
}), A([
|
|
23615
23615
|
{ type: "initialValue", value: T },
|
|
23616
23616
|
{ type: "lastAnchor", value: null },
|
|
@@ -23623,19 +23623,19 @@ const bT = ({
|
|
|
23623
23623
|
}, [P]);
|
|
23624
23624
|
const U = wl(() => {
|
|
23625
23625
|
mP({
|
|
23626
|
-
editor:
|
|
23626
|
+
editor: X,
|
|
23627
23627
|
isShowing: N.show,
|
|
23628
23628
|
numberOfUsers: N.numberOfUsers,
|
|
23629
23629
|
listMembers: p,
|
|
23630
23630
|
dispatch: A
|
|
23631
23631
|
});
|
|
23632
23632
|
}, 100);
|
|
23633
|
-
return B ? /* @__PURE__ */ f.jsx("div", { id:
|
|
23633
|
+
return B ? /* @__PURE__ */ f.jsx("div", { id: Q, className: "rich-text-editor input text-medium", children: /* @__PURE__ */ f.jsxs(
|
|
23634
23634
|
Bi.Provider,
|
|
23635
23635
|
{
|
|
23636
23636
|
value: {
|
|
23637
23637
|
..._,
|
|
23638
|
-
id:
|
|
23638
|
+
id: Q,
|
|
23639
23639
|
isInOverlay: h,
|
|
23640
23640
|
dispatch: A,
|
|
23641
23641
|
onMention: E,
|
|
@@ -23645,12 +23645,12 @@ const bT = ({
|
|
|
23645
23645
|
/* @__PURE__ */ f.jsxs(
|
|
23646
23646
|
PO,
|
|
23647
23647
|
{
|
|
23648
|
-
editor:
|
|
23648
|
+
editor: X,
|
|
23649
23649
|
initialValue: B,
|
|
23650
23650
|
onChange: (z) => {
|
|
23651
|
-
if (
|
|
23651
|
+
if (X.operations.some(($) => $.type !== "set_selection")) {
|
|
23652
23652
|
let $ = vP(z);
|
|
23653
|
-
$ === "<br>" && ($ = ""), m($, q), A([{ type: "stringValue", value: l9(
|
|
23653
|
+
$ === "<br>" && ($ = ""), m($, q), A([{ type: "stringValue", value: l9(X) }]), F || A([{ type: "hasInteracted", value: !0 }]), U(), d && console.log({ serialized: $, json: z });
|
|
23654
23654
|
}
|
|
23655
23655
|
},
|
|
23656
23656
|
...u,
|
|
@@ -23686,25 +23686,25 @@ const bT = ({
|
|
|
23686
23686
|
},
|
|
23687
23687
|
onKeyDown: (z) => {
|
|
23688
23688
|
if (z.key === "Enter") {
|
|
23689
|
-
N.show && (z.preventDefault(), z.stopPropagation(), aT(
|
|
23690
|
-
const { selection: H } =
|
|
23689
|
+
N.show && (z.preventDefault(), z.stopPropagation(), aT(X, N, A, Q));
|
|
23690
|
+
const { selection: H } = X;
|
|
23691
23691
|
if (H) {
|
|
23692
|
-
const $ = ae.isCollapsed(H), [re, J] = D.node(
|
|
23692
|
+
const $ = ae.isCollapsed(H), [re, J] = D.node(X, H, { depth: 1 });
|
|
23693
23693
|
let se = re, ie = se.type;
|
|
23694
23694
|
const oe = se.children[0];
|
|
23695
23695
|
if (ie === ne.h3) {
|
|
23696
23696
|
z.preventDefault(), z.stopPropagation();
|
|
23697
|
-
const Ce = D.start(
|
|
23697
|
+
const Ce = D.start(X, J), Se = D.end(X, J), xe = Je.equals(H.anchor, Ce), ue = Je.equals(H.anchor, Se);
|
|
23698
23698
|
if (xe)
|
|
23699
|
-
le.insertNodes(
|
|
23699
|
+
le.insertNodes(X, T, { at: J });
|
|
23700
23700
|
else if (ue)
|
|
23701
|
-
le.insertNodes(
|
|
23701
|
+
le.insertNodes(X, T, {
|
|
23702
23702
|
at: K.next(J)
|
|
23703
|
-
}), le.select(
|
|
23703
|
+
}), le.select(X, D.end(X, K.next(J)));
|
|
23704
23704
|
else {
|
|
23705
|
-
const ye = H.anchor, [, Oe] = D.parent(
|
|
23706
|
-
le.splitNodes(
|
|
23707
|
-
|
|
23705
|
+
const ye = H.anchor, [, Oe] = D.parent(X, H);
|
|
23706
|
+
le.splitNodes(X, { at: ye }), le.setNodes(
|
|
23707
|
+
X,
|
|
23708
23708
|
{ type: ne.paragraph },
|
|
23709
23709
|
{ at: K.next(Oe) }
|
|
23710
23710
|
);
|
|
@@ -23713,32 +23713,32 @@ const bT = ({
|
|
|
23713
23713
|
}
|
|
23714
23714
|
if (oe && [ne.ol, ne.ul].includes(oe.type) && (se = oe, ie = oe.type), se && ke.isElement(se) && ie !== ne.paragraph) {
|
|
23715
23715
|
if (ie === ne.blockquote && !z.shiftKey) {
|
|
23716
|
-
z.stopPropagation(), z.preventDefault(), le.insertNodes(
|
|
23716
|
+
z.stopPropagation(), z.preventDefault(), le.insertNodes(X, T);
|
|
23717
23717
|
return;
|
|
23718
23718
|
}
|
|
23719
23719
|
if ($) {
|
|
23720
|
-
const [Ce, Se] = D.parent(
|
|
23720
|
+
const [Ce, Se] = D.parent(X, H, {
|
|
23721
23721
|
edge: "end"
|
|
23722
23722
|
}), ue = Ce.type;
|
|
23723
23723
|
if ([ne.ul, ne.ol].includes(ie))
|
|
23724
23724
|
if (z.stopPropagation(), z.preventDefault(), ue === ne.li && S === "Enter") {
|
|
23725
|
-
Ce.children.length === 1 && "text" in Ce.children[0] && Ce.children[0].text === "" && le.removeNodes(
|
|
23725
|
+
Ce.children.length === 1 && "text" in Ce.children[0] && Ce.children[0].text === "" && le.removeNodes(X, { at: Se }), le.insertNodes(X, T, {
|
|
23726
23726
|
at: K.next(J)
|
|
23727
23727
|
}), le.select(
|
|
23728
|
-
|
|
23729
|
-
D.end(
|
|
23728
|
+
X,
|
|
23729
|
+
D.end(X, K.next(J))
|
|
23730
23730
|
);
|
|
23731
23731
|
return;
|
|
23732
23732
|
} else {
|
|
23733
|
-
const [ye, Oe] = dP(
|
|
23733
|
+
const [ye, Oe] = dP(X, ne.li), Fe = {
|
|
23734
23734
|
type: ne.li,
|
|
23735
23735
|
children: [{ text: "" }]
|
|
23736
23736
|
};
|
|
23737
|
-
le.insertNodes(
|
|
23737
|
+
le.insertNodes(X, Fe, {
|
|
23738
23738
|
at: K.next(Oe)
|
|
23739
23739
|
}), le.select(
|
|
23740
|
-
|
|
23741
|
-
D.end(
|
|
23740
|
+
X,
|
|
23741
|
+
D.end(X, K.next(Oe))
|
|
23742
23742
|
);
|
|
23743
23743
|
}
|
|
23744
23744
|
}
|
|
@@ -23762,21 +23762,21 @@ const bT = ({
|
|
|
23762
23762
|
}
|
|
23763
23763
|
]);
|
|
23764
23764
|
}
|
|
23765
|
-
A([{ type: "lastKey", value: z.key }]), pP(z,
|
|
23765
|
+
A([{ type: "lastKey", value: z.key }]), pP(z, X, A, b);
|
|
23766
23766
|
},
|
|
23767
23767
|
onBlur: () => {
|
|
23768
|
-
|
|
23768
|
+
X.selection && A([{ type: "lastAnchor", value: X.selection.anchor }]);
|
|
23769
23769
|
},
|
|
23770
23770
|
onFocus: () => {
|
|
23771
23771
|
if (O) {
|
|
23772
|
-
if (!K.isPath(O.path) || !ve.has(
|
|
23772
|
+
if (!K.isPath(O.path) || !ve.has(X, O.path))
|
|
23773
23773
|
return;
|
|
23774
|
-
const z = ve.get(
|
|
23774
|
+
const z = ve.get(X, O.path);
|
|
23775
23775
|
let H = 0;
|
|
23776
23776
|
if (Ne.isText(z) ? H = z.text.length : z.children && (H = z.children.length), O.offset > H)
|
|
23777
23777
|
return;
|
|
23778
23778
|
try {
|
|
23779
|
-
le.select(
|
|
23779
|
+
le.select(X, {
|
|
23780
23780
|
anchor: O,
|
|
23781
23781
|
focus: O
|
|
23782
23782
|
});
|
|
@@ -25300,15 +25300,15 @@ function RR({
|
|
|
25300
25300
|
parent: c,
|
|
25301
25301
|
...d
|
|
25302
25302
|
}) => {
|
|
25303
|
-
var _, A, I, R, B, P, O, S, F, j, q;
|
|
25304
|
-
const h = (((_ = a == null ? void 0 : a.like) == null ? void 0 : _.length) || 0) > 0, p = (((A = s == null ? void 0 : s.like) == null ? void 0 : A.length) || 0) > 0, g = h ? (I = a == null ? void 0 : a.like) == null ? void 0 : I.find((
|
|
25305
|
-
var
|
|
25306
|
-
return ((
|
|
25307
|
-
}) : !1, m = typeof g == "object" ? (g == null ? void 0 : g.id) ?? "" : "", y = p ? (R = s == null ? void 0 : s.like) == null ? void 0 : R.map((
|
|
25308
|
-
var
|
|
25303
|
+
var _, A, I, R, B, P, O, S, F, j, q, N, Z;
|
|
25304
|
+
const h = (((_ = a == null ? void 0 : a.like) == null ? void 0 : _.length) || 0) > 0, p = (((A = s == null ? void 0 : s.like) == null ? void 0 : A.length) || 0) > 0, g = h ? (I = a == null ? void 0 : a.like) == null ? void 0 : I.find((Q) => {
|
|
25305
|
+
var k;
|
|
25306
|
+
return ((k = Q == null ? void 0 : Q.user) == null ? void 0 : k.id) === (t == null ? void 0 : t.id);
|
|
25307
|
+
}) : !1, m = typeof g == "object" ? (g == null ? void 0 : g.id) ?? "" : "", y = p ? (R = s == null ? void 0 : s.like) == null ? void 0 : R.map((Q) => {
|
|
25308
|
+
var k, x, X;
|
|
25309
25309
|
return {
|
|
25310
|
-
id: (
|
|
25311
|
-
name: (
|
|
25310
|
+
id: (k = Q == null ? void 0 : Q.user) == null ? void 0 : k.id,
|
|
25311
|
+
name: (X = (x = Q == null ? void 0 : Q.user) == null ? void 0 : x.data) == null ? void 0 : X.name
|
|
25312
25312
|
};
|
|
25313
25313
|
}) : !1, v = (S = (O = (P = (B = l == null ? void 0 : l.payload) == null ? void 0 : B.data) == null ? void 0 : P.translations) == null ? void 0 : O[r]) == null ? void 0 : S.body, E = (j = (F = l == null ? void 0 : l.payload) == null ? void 0 : F.data) == null ? void 0 : j.original, b = !!v, T = (E == null ? void 0 : E.locale) === r, C = v || (E == null ? void 0 : E.body);
|
|
25314
25314
|
return {
|
|
@@ -25336,7 +25336,9 @@ function RR({
|
|
|
25336
25336
|
peopleWhoLiked: y,
|
|
25337
25337
|
replyId: i,
|
|
25338
25338
|
parent: c,
|
|
25339
|
-
userLiked: !!g
|
|
25339
|
+
userLiked: !!g,
|
|
25340
|
+
payloadId: (N = l == null ? void 0 : l.payload) == null ? void 0 : N.id,
|
|
25341
|
+
payloadCollection: (Z = l == null ? void 0 : l.payload) == null ? void 0 : Z.collection
|
|
25340
25342
|
};
|
|
25341
25343
|
}
|
|
25342
25344
|
);
|
|
@@ -25719,8 +25721,8 @@ const Nu = "ALL", UR = ({
|
|
|
25719
25721
|
c4([E]), z4();
|
|
25720
25722
|
const q = {
|
|
25721
25723
|
create: (N, Z) => {
|
|
25722
|
-
const { body:
|
|
25723
|
-
T({ activityId: e, content:
|
|
25724
|
+
const { body: Q } = Z;
|
|
25725
|
+
T({ activityId: e, content: Q });
|
|
25724
25726
|
},
|
|
25725
25727
|
...a
|
|
25726
25728
|
};
|
|
@@ -30809,14 +30811,14 @@ function zB(e) {
|
|
|
30809
30811
|
padding: u
|
|
30810
30812
|
}), N = F ? S ? _r : Un : S ? Tr : Hn;
|
|
30811
30813
|
C[j] > _[j] && (N = Pc(N));
|
|
30812
|
-
var Z = Pc(N),
|
|
30813
|
-
if (a &&
|
|
30814
|
+
var Z = Pc(N), Q = [];
|
|
30815
|
+
if (a && Q.push(q[O] <= 0), o && Q.push(q[N] <= 0, q[Z] <= 0), Q.every(function(U) {
|
|
30814
30816
|
return U;
|
|
30815
30817
|
})) {
|
|
30816
30818
|
R = P, I = !1;
|
|
30817
30819
|
break;
|
|
30818
30820
|
}
|
|
30819
|
-
A.set(P,
|
|
30821
|
+
A.set(P, Q);
|
|
30820
30822
|
}
|
|
30821
30823
|
if (I)
|
|
30822
30824
|
for (var k = g ? 3 : 1, x = function(z) {
|
|
@@ -30829,8 +30831,8 @@ function zB(e) {
|
|
|
30829
30831
|
});
|
|
30830
30832
|
if (H)
|
|
30831
30833
|
return R = H, "break";
|
|
30832
|
-
},
|
|
30833
|
-
var M = x(
|
|
30834
|
+
}, X = k; X > 0; X--) {
|
|
30835
|
+
var M = x(X);
|
|
30834
30836
|
if (M === "break")
|
|
30835
30837
|
break;
|
|
30836
30838
|
}
|
|
@@ -30950,10 +30952,10 @@ function JB(e) {
|
|
|
30950
30952
|
};
|
|
30951
30953
|
if (_) {
|
|
30952
30954
|
if (a) {
|
|
30953
|
-
var S, F = T === "y" ? Hn : Un, j = T === "y" ? Tr : _r, q = T === "y" ? "height" : "width", N = _[T], Z = N + y[F],
|
|
30955
|
+
var S, F = T === "y" ? Hn : Un, j = T === "y" ? Tr : _r, q = T === "y" ? "height" : "width", N = _[T], Z = N + y[F], Q = N - y[j], k = p ? -I[q] / 2 : 0, x = E === Js ? A[q] : I[q], X = E === Js ? -I[q] : -A[q], M = t.elements.arrow, U = p && M ? xm(M) : {
|
|
30954
30956
|
width: 0,
|
|
30955
30957
|
height: 0
|
|
30956
|
-
}, z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : WT(), H = z[F], $ = z[j], re = ll(0, A[q], U[q]), J = b ? A[q] / 2 - k - re - H - B.mainAxis : x - re - H - B.mainAxis, se = b ? -A[q] / 2 + k + re + $ + B.mainAxis :
|
|
30958
|
+
}, z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : WT(), H = z[F], $ = z[j], re = ll(0, A[q], U[q]), J = b ? A[q] / 2 - k - re - H - B.mainAxis : x - re - H - B.mainAxis, se = b ? -A[q] / 2 + k + re + $ + B.mainAxis : X + re + $ + B.mainAxis, ie = t.elements.arrow && Ql(t.elements.arrow), oe = ie ? T === "y" ? ie.clientTop || 0 : ie.clientLeft || 0 : 0, Ce = (S = P == null ? void 0 : P[T]) != null ? S : 0, Se = N + J - Ce - oe, xe = N + se - Ce, ue = ll(p ? u1(Z, Se) : Z, N, p ? za(Q, xe) : Q);
|
|
30957
30959
|
_[T] = ue, O[T] = ue - N;
|
|
30958
30960
|
}
|
|
30959
30961
|
if (o) {
|
|
@@ -33424,23 +33426,23 @@ function jj(e, t, n) {
|
|
|
33424
33426
|
function A(P, O) {
|
|
33425
33427
|
return S;
|
|
33426
33428
|
function S(F, j, q) {
|
|
33427
|
-
var N, Z,
|
|
33428
|
-
return F.tokenize || "length" in F ?
|
|
33429
|
+
var N, Z, Q, k;
|
|
33430
|
+
return F.tokenize || "length" in F ? X(pf(F)) : x;
|
|
33429
33431
|
function x(H) {
|
|
33430
|
-
return H in F || null in F ?
|
|
33432
|
+
return H in F || null in F ? X(
|
|
33431
33433
|
F.null ? (
|
|
33432
33434
|
/* c8 ignore next */
|
|
33433
33435
|
pf(F[H]).concat(pf(F.null))
|
|
33434
33436
|
) : F[H]
|
|
33435
33437
|
)(H) : q(H);
|
|
33436
33438
|
}
|
|
33437
|
-
function
|
|
33439
|
+
function X(H) {
|
|
33438
33440
|
return N = H, Z = 0, M(H[Z]);
|
|
33439
33441
|
}
|
|
33440
33442
|
function M(H) {
|
|
33441
33443
|
return $;
|
|
33442
33444
|
function $(re) {
|
|
33443
|
-
return k = R(),
|
|
33445
|
+
return k = R(), Q = H, H.partial || (u.currentConstruct = H), H.name && u.parser.constructs.disable.null.indexOf(H.name) > -1 ? z() : H.tokenize.call(
|
|
33444
33446
|
O ? Pj({}, u, O) : u,
|
|
33445
33447
|
l,
|
|
33446
33448
|
U,
|
|
@@ -33449,7 +33451,7 @@ function jj(e, t, n) {
|
|
|
33449
33451
|
}
|
|
33450
33452
|
}
|
|
33451
33453
|
function U(H) {
|
|
33452
|
-
return P(
|
|
33454
|
+
return P(Q, k), j;
|
|
33453
33455
|
}
|
|
33454
33456
|
function z(H) {
|
|
33455
33457
|
return k.restore(), ++Z < N.length ? M(N[Z]) : q;
|
|
@@ -34170,9 +34172,9 @@ function tz(e, t, n) {
|
|
|
34170
34172
|
return Es(x) ? (e.consume(x), B) : x === null || ys(x) ? P(x) : n(x);
|
|
34171
34173
|
}
|
|
34172
34174
|
function P(x) {
|
|
34173
|
-
return x === 45 && i === 2 ? (e.consume(x), F) : x === 60 && i === 1 ? (e.consume(x), j) : x === 62 && i === 4 ? (e.consume(x),
|
|
34175
|
+
return x === 45 && i === 2 ? (e.consume(x), F) : x === 60 && i === 1 ? (e.consume(x), j) : x === 62 && i === 4 ? (e.consume(x), Q) : x === 63 && i === 3 ? (e.consume(x), Z) : x === 93 && i === 5 ? (e.consume(x), N) : ys(x) && (i === 6 || i === 7) ? e.check(
|
|
34174
34176
|
JU,
|
|
34175
|
-
|
|
34177
|
+
Q,
|
|
34176
34178
|
O
|
|
34177
34179
|
)(x) : x === null || ys(x) ? O(x) : (e.consume(x), P);
|
|
34178
34180
|
}
|
|
@@ -34189,16 +34191,16 @@ function tz(e, t, n) {
|
|
|
34189
34191
|
return x === 47 ? (e.consume(x), s = "", q) : P(x);
|
|
34190
34192
|
}
|
|
34191
34193
|
function q(x) {
|
|
34192
|
-
return x === 62 && b5.indexOf(s.toLowerCase()) > -1 ? (e.consume(x),
|
|
34194
|
+
return x === 62 && b5.indexOf(s.toLowerCase()) > -1 ? (e.consume(x), Q) : Po(x) && s.length < 8 ? (e.consume(x), s += Hu(x), q) : P(x);
|
|
34193
34195
|
}
|
|
34194
34196
|
function N(x) {
|
|
34195
34197
|
return x === 93 ? (e.consume(x), Z) : P(x);
|
|
34196
34198
|
}
|
|
34197
34199
|
function Z(x) {
|
|
34198
|
-
return x === 62 ? (e.consume(x),
|
|
34200
|
+
return x === 62 ? (e.consume(x), Q) : P(x);
|
|
34199
34201
|
}
|
|
34200
|
-
function
|
|
34201
|
-
return x === null || ys(x) ? (e.exit("htmlFlowData"), k(x)) : (e.consume(x),
|
|
34202
|
+
function Q(x) {
|
|
34203
|
+
return x === null || ys(x) ? (e.exit("htmlFlowData"), k(x)) : (e.consume(x), Q);
|
|
34202
34204
|
}
|
|
34203
34205
|
function k(x) {
|
|
34204
34206
|
return e.exit("htmlFlow"), t(x);
|
|
@@ -34298,12 +34300,12 @@ function sz(e, t, n) {
|
|
|
34298
34300
|
function Z(x) {
|
|
34299
34301
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), iz(
|
|
34300
34302
|
e,
|
|
34301
|
-
|
|
34303
|
+
Q,
|
|
34302
34304
|
"linePrefix",
|
|
34303
34305
|
r.parser.constructs.disable.null.indexOf("codeIndented") > -1 ? void 0 : 4
|
|
34304
34306
|
);
|
|
34305
34307
|
}
|
|
34306
|
-
function
|
|
34308
|
+
function Q(x) {
|
|
34307
34309
|
return e.enter("htmlTextData"), o(x);
|
|
34308
34310
|
}
|
|
34309
34311
|
function k(x) {
|
|
@@ -34909,7 +34911,7 @@ function Vq(e) {
|
|
|
34909
34911
|
codeFencedFenceMeta: E,
|
|
34910
34912
|
codeFlowValue: F,
|
|
34911
34913
|
codeIndented: h(C),
|
|
34912
|
-
codeText: h(
|
|
34914
|
+
codeText: h(Q),
|
|
34913
34915
|
codeTextData: F,
|
|
34914
34916
|
data: F,
|
|
34915
34917
|
definition: h(),
|
|
@@ -34925,7 +34927,7 @@ function Vq(e) {
|
|
|
34925
34927
|
htmlTextData: F,
|
|
34926
34928
|
image: h(x),
|
|
34927
34929
|
label: M,
|
|
34928
|
-
labelText:
|
|
34930
|
+
labelText: X,
|
|
34929
34931
|
lineEnding: j,
|
|
34930
34932
|
link: h(k),
|
|
34931
34933
|
listItem: h(),
|
|
@@ -35136,7 +35138,7 @@ function Vq(e) {
|
|
|
35136
35138
|
var Y = this.resume();
|
|
35137
35139
|
this.stack[this.stack.length - 1].value = Y;
|
|
35138
35140
|
}
|
|
35139
|
-
function
|
|
35141
|
+
function Q() {
|
|
35140
35142
|
var Y = this.resume();
|
|
35141
35143
|
this.stack[this.stack.length - 1].value = Y;
|
|
35142
35144
|
}
|
|
@@ -35148,7 +35150,7 @@ function Vq(e) {
|
|
|
35148
35150
|
var Y = this.stack[this.stack.length - 1];
|
|
35149
35151
|
o("inReference") ? (Y.type += "Reference", Y.referenceType = o("referenceType") || "shortcut", delete Y.url, delete Y.title) : (delete Y.identifier, delete Y.label, delete Y.referenceType), s("referenceType");
|
|
35150
35152
|
}
|
|
35151
|
-
function
|
|
35153
|
+
function X(Y) {
|
|
35152
35154
|
this.stack[this.stack.length - 2].identifier = _f(
|
|
35153
35155
|
this.sliceSerialize(Y)
|
|
35154
35156
|
).toLowerCase();
|
|
@@ -36506,7 +36508,7 @@ function KK() {
|
|
|
36506
36508
|
function Z(ie) {
|
|
36507
36509
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
36508
36510
|
}
|
|
36509
|
-
function
|
|
36511
|
+
function Q(ie) {
|
|
36510
36512
|
return N || (N = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
36511
36513
|
}
|
|
36512
36514
|
function k(ie) {
|
|
@@ -36515,7 +36517,7 @@ function KK() {
|
|
|
36515
36517
|
function x(ie) {
|
|
36516
36518
|
return T(ie) === a;
|
|
36517
36519
|
}
|
|
36518
|
-
function
|
|
36520
|
+
function X(ie) {
|
|
36519
36521
|
return typeof ie == "object" && ie !== null && ie.$$typeof === e;
|
|
36520
36522
|
}
|
|
36521
36523
|
function M(ie) {
|
|
@@ -36542,7 +36544,7 @@ function KK() {
|
|
|
36542
36544
|
function se(ie) {
|
|
36543
36545
|
return T(ie) === l;
|
|
36544
36546
|
}
|
|
36545
|
-
Ot.ContextConsumer = C, Ot.ContextProvider = _, Ot.Element = A, Ot.ForwardRef = I, Ot.Fragment = R, Ot.Lazy = B, Ot.Memo = P, Ot.Portal = O, Ot.Profiler = S, Ot.StrictMode = F, Ot.Suspense = j, Ot.isAsyncMode = Z, Ot.isConcurrentMode =
|
|
36547
|
+
Ot.ContextConsumer = C, Ot.ContextProvider = _, Ot.Element = A, Ot.ForwardRef = I, Ot.Fragment = R, Ot.Lazy = B, Ot.Memo = P, Ot.Portal = O, Ot.Profiler = S, Ot.StrictMode = F, Ot.Suspense = j, Ot.isAsyncMode = Z, Ot.isConcurrentMode = Q, Ot.isContextConsumer = k, Ot.isContextProvider = x, Ot.isElement = X, Ot.isForwardRef = M, Ot.isFragment = U, Ot.isLazy = z, Ot.isMemo = H, Ot.isPortal = $, Ot.isProfiler = re, Ot.isStrictMode = J, Ot.isSuspense = se, Ot.isValidElementType = b, Ot.typeOf = T;
|
|
36546
36548
|
}()), Ot;
|
|
36547
36549
|
}
|
|
36548
36550
|
process.env.NODE_ENV === "production" ? pp.exports = VK() : pp.exports = KK();
|
|
@@ -44310,7 +44312,7 @@ function Kte(e) {
|
|
|
44310
44312
|
I.iconOut = function(O) {
|
|
44311
44313
|
let { theme: S, type: F, isLoading: j, icon: q } = O, N = null;
|
|
44312
44314
|
const Z = { theme: S, type: F };
|
|
44313
|
-
return q === !1 || ($n(q) ? N = q(Z) : _l(q) ? N = D0(q, Z) : Ya(q) || vl(q) ? N = q : j ? N = ih.spinner() : ((
|
|
44315
|
+
return q === !1 || ($n(q) ? N = q(Z) : _l(q) ? N = D0(q, Z) : Ya(q) || vl(q) ? N = q : j ? N = ih.spinner() : ((Q) => Q in ih)(F) && (N = ih[F](Z))), N;
|
|
44314
44316
|
}(I), $n(v.onOpen) && (I.onOpen = v.onOpen), $n(v.onClose) && (I.onClose = v.onClose), I.closeButton = C.closeButton, v.closeButton === !1 || rh(v.closeButton) ? I.closeButton = v.closeButton : v.closeButton === !0 && (I.closeButton = !rh(C.closeButton) || C.closeButton);
|
|
44315
44317
|
let P = p;
|
|
44316
44318
|
_l(p) && !Ya(p.type) ? P = D0(p, { closeToast: _, toastProps: I, data: T }) : $n(p) && (P = p({ closeToast: _, toastProps: I, data: T })), C.limit && C.limit > 0 && o.count > C.limit && A ? o.queue.push({ toastContent: P, toastProps: I, staleId: y }) : vl(m) ? setTimeout(() => {
|
|
@@ -44964,7 +44966,7 @@ function cne(e) {
|
|
|
44964
44966
|
}))) : null;
|
|
44965
44967
|
}
|
|
44966
44968
|
function dne(e) {
|
|
44967
|
-
var t, n, r, i, a, s, o, l, u, c, d, h, p, g, m, y, v, E, b, T, C = e.notificationData, _ = e.handleActionClick, A = de(!1), I = A[0], R = A[1], B = de(!1), P = B[0], O = B[1], S = de(!1), F = S[0], j = S[1], q = C.message, N = C.seen_on, Z = C.created_on,
|
|
44969
|
+
var t, n, r, i, a, s, o, l, u, c, d, h, p, g, m, y, v, E, b, T, C = e.notificationData, _ = e.handleActionClick, A = de(!1), I = A[0], R = A[1], B = de(!1), P = B[0], O = B[1], S = de(!1), F = S[0], j = S[1], q = C.message, N = C.seen_on, Z = C.created_on, Q = ba(), k = Q.notificationComponent, x = Q.hideAvatar, X = Q.inbox, M = Q.themeType, U = Q.primaryActionClickHandler, z = Q.secondaryActionClickHandler, H = os(), $ = H.notification, re = ($ == null || (t = $.bodyText) === null || t === void 0 ? void 0 : t.tableBorderColor) || "rgba(100, 116, 139, 0.3)", J = ($ == null || (n = $.bodyText) === null || n === void 0 ? void 0 : n.blockquoteColor) || "rgba(100, 116, 139, 0.3)", se = ($ == null || (r = $.bodyText) === null || r === void 0 ? void 0 : r.linkColor) || Ze.primary, ie = q == null || (i = q.actions) === null || i === void 0 ? void 0 : i[0], oe = q == null || (a = q.actions) === null || a === void 0 ? void 0 : a[1], Ce = ie || oe;
|
|
44968
44970
|
if (he(function() {
|
|
44969
44971
|
var xe, ue = JC(q == null || (xe = q.avatar) === null || xe === void 0 ? void 0 : xe.avatar_url);
|
|
44970
44972
|
ue.then(function(ye) {
|
|
@@ -44975,13 +44977,13 @@ function dne(e) {
|
|
|
44975
44977
|
return /* @__PURE__ */ L.createElement(Se, {
|
|
44976
44978
|
notificationData: C,
|
|
44977
44979
|
markRead: function(ue) {
|
|
44978
|
-
ue != null && ue.stopPropagation && ue.stopPropagation(),
|
|
44980
|
+
ue != null && ue.stopPropagation && ue.stopPropagation(), X.feed.markRead(C.n_id);
|
|
44979
44981
|
},
|
|
44980
44982
|
markUnRead: function(ue) {
|
|
44981
|
-
ue != null && ue.stopPropagation && ue.stopPropagation(),
|
|
44983
|
+
ue != null && ue.stopPropagation && ue.stopPropagation(), X.feed.markUnRead(C.n_id);
|
|
44982
44984
|
},
|
|
44983
44985
|
markArchived: function(ue) {
|
|
44984
|
-
ue != null && ue.stopPropagation && ue.stopPropagation(),
|
|
44986
|
+
ue != null && ue.stopPropagation && ue.stopPropagation(), X.feed.markArchived(C.n_id);
|
|
44985
44987
|
}
|
|
44986
44988
|
});
|
|
44987
44989
|
}
|
|
@@ -45245,7 +45247,7 @@ function dne(e) {
|
|
|
45245
45247
|
}, C.seen_on ? /* @__PURE__ */ L.createElement(lh, {
|
|
45246
45248
|
style: $ == null ? void 0 : $.actionsMenuItem,
|
|
45247
45249
|
onClick: function(ue) {
|
|
45248
|
-
ue.stopPropagation(),
|
|
45250
|
+
ue.stopPropagation(), X.feed.markUnRead(C.n_id), j(!1);
|
|
45249
45251
|
}
|
|
45250
45252
|
}, /* @__PURE__ */ L.createElement(one, {
|
|
45251
45253
|
style: $ == null ? void 0 : $.actionsMenuItemIcon
|
|
@@ -45254,7 +45256,7 @@ function dne(e) {
|
|
|
45254
45256
|
}, "Mark as unread")) : /* @__PURE__ */ L.createElement(lh, {
|
|
45255
45257
|
style: $ == null ? void 0 : $.actionsMenuItem,
|
|
45256
45258
|
onClick: function(ue) {
|
|
45257
|
-
ue.stopPropagation(),
|
|
45259
|
+
ue.stopPropagation(), X.feed.markRead(C.n_id), j(!1);
|
|
45258
45260
|
}
|
|
45259
45261
|
}, /* @__PURE__ */ L.createElement(lne, {
|
|
45260
45262
|
style: $ == null ? void 0 : $.actionsMenuItemIcon
|
|
@@ -45263,7 +45265,7 @@ function dne(e) {
|
|
|
45263
45265
|
}, "Mark as read")), !(C != null && C.archived) && /* @__PURE__ */ L.createElement(lh, {
|
|
45264
45266
|
style: $ == null ? void 0 : $.actionsMenuItem,
|
|
45265
45267
|
onClick: function(ue) {
|
|
45266
|
-
ue.stopPropagation(),
|
|
45268
|
+
ue.stopPropagation(), X.feed.markArchived(C.n_id);
|
|
45267
45269
|
}
|
|
45268
45270
|
}, /* @__PURE__ */ L.createElement(une, {
|
|
45269
45271
|
style: $ == null ? void 0 : $.actionsMenuItemIcon
|
|
@@ -46105,9 +46107,9 @@ cn({
|
|
|
46105
46107
|
notificationsData: Ere
|
|
46106
46108
|
});
|
|
46107
46109
|
function bre(e) {
|
|
46108
|
-
var t = e.workspaceKey, n = t === void 0 ? "" : t, r = e.tenantId, i = r === void 0 ? "" : r, a = e.distinctId, s = a === void 0 ? "" : a, o = e.subscriberId, l = o === void 0 ? "" : o, u = e.inboxId, c = u === void 0 ? "" : u, d = e.stores, h = e.toastProps, p = e.notificationClickHandler, g = e.primaryActionClickHandler, m = e.secondaryActionClickHandler, y = e.bellComponent, v = e.badgeComponent, E = e.notificationComponent, b = e.noNotificationsComponent, T = e.loaderComponent, C = e.tabBadgeComponent, _ = e.headerRightComponent, A = e.hideAvatar, I = A === void 0 ? !1 : A, R = e.hideInbox, B = e.hideToast, P = e.theme, O = e.themeType, S = O === void 0 ? "light" : O, F = e.pagination, j = F === void 0 ? !0 : F, q = e.pageSize, N = e.popperPosition, Z = N === void 0 ? "bottom" : N,
|
|
46110
|
+
var t = e.workspaceKey, n = t === void 0 ? "" : t, r = e.tenantId, i = r === void 0 ? "" : r, a = e.distinctId, s = a === void 0 ? "" : a, o = e.subscriberId, l = o === void 0 ? "" : o, u = e.inboxId, c = u === void 0 ? "" : u, d = e.stores, h = e.toastProps, p = e.notificationClickHandler, g = e.primaryActionClickHandler, m = e.secondaryActionClickHandler, y = e.bellComponent, v = e.badgeComponent, E = e.notificationComponent, b = e.noNotificationsComponent, T = e.loaderComponent, C = e.tabBadgeComponent, _ = e.headerRightComponent, A = e.hideAvatar, I = A === void 0 ? !1 : A, R = e.hideInbox, B = e.hideToast, P = e.theme, O = e.themeType, S = O === void 0 ? "light" : O, F = e.pagination, j = F === void 0 ? !0 : F, q = e.pageSize, N = e.popperPosition, Z = N === void 0 ? "bottom" : N, Q = e.showUnreadCountOnTabs, k = Q === void 0 ? !0 : Q, x = e.host;
|
|
46109
46111
|
c && (l = c);
|
|
46110
|
-
var
|
|
46112
|
+
var X = de(!1), M = X[0], U = X[1], z = de(), H = z[0], $ = z[1], re = de({
|
|
46111
46113
|
storeData: {},
|
|
46112
46114
|
count: 0
|
|
46113
46115
|
}), J = re[0], se = re[1], ie = de(""), oe = ie[0], Ce = ie[1], Se = de(!1), xe = Se[0], ue = Se[1];
|
|
@@ -46773,8 +46775,8 @@ const i3 = ({
|
|
|
46773
46775
|
}
|
|
46774
46776
|
}
|
|
46775
46777
|
});
|
|
46776
|
-
const A = (Z,
|
|
46777
|
-
St.handleMenus({ id: Z, value:
|
|
46778
|
+
const A = (Z, Q, k = !1) => {
|
|
46779
|
+
St.handleMenus({ id: Z, value: Q, menus: _.current.menus, dispatch: E, forceHandle: k });
|
|
46778
46780
|
}, I = ze(null), R = (Z) => {
|
|
46779
46781
|
Z.key === "Escape" && [
|
|
46780
46782
|
"site-navigation",
|
|
@@ -46782,16 +46784,16 @@ const i3 = ({
|
|
|
46782
46784
|
"account-navigation"
|
|
46783
46785
|
/* ACCOUNT */
|
|
46784
46786
|
].forEach(
|
|
46785
|
-
(
|
|
46786
|
-
_.current.menus[
|
|
46787
|
+
(Q) => {
|
|
46788
|
+
_.current.menus[Q] && A(Q, !1, !0);
|
|
46787
46789
|
}
|
|
46788
46790
|
);
|
|
46789
46791
|
};
|
|
46790
46792
|
he(() => {
|
|
46791
46793
|
var Z;
|
|
46792
46794
|
return (Z = document.getElementById("header")) == null || Z.addEventListener("keydown", R), () => {
|
|
46793
|
-
var
|
|
46794
|
-
(
|
|
46795
|
+
var Q;
|
|
46796
|
+
(Q = document.getElementById("header")) == null || Q.removeEventListener("keydown", R);
|
|
46795
46797
|
};
|
|
46796
46798
|
}, []), xl(() => {
|
|
46797
46799
|
T[
|
|
@@ -46958,7 +46960,7 @@ const i3 = ({
|
|
|
46958
46960
|
new RegExp("(courses/[^/]+/[^/]+|microcourses/[^/]+/[^/]+)")
|
|
46959
46961
|
), j = (Z) => {
|
|
46960
46962
|
var H;
|
|
46961
|
-
const [
|
|
46963
|
+
const [Q, k] = Z.split("?"), x = new URLSearchParams(k || ""), M = new URLSearchParams(window.location.search).get("ref");
|
|
46962
46964
|
if (x.set("ref", M || "course-overview"), window.location.pathname) {
|
|
46963
46965
|
const $ = window.location.pathname.match(
|
|
46964
46966
|
new RegExp("(courses/([^/]+)/([^/]+)|microcourses/[^/]+/([^/]+))")
|
|
@@ -46972,7 +46974,7 @@ const i3 = ({
|
|
|
46972
46974
|
}
|
|
46973
46975
|
}
|
|
46974
46976
|
const U = ((H = window.location.pathname.match(/^\/([^/]+)\/courses/)) == null ? void 0 : H[1]) || "";
|
|
46975
|
-
return `${U ? `/${U}` : ""}${
|
|
46977
|
+
return `${U ? `/${U}` : ""}${Q}?${x.toString()}`;
|
|
46976
46978
|
};
|
|
46977
46979
|
return s && s.isLoading ? null : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
46978
46980
|
/* @__PURE__ */ f.jsxs(
|
|
@@ -47444,12 +47446,12 @@ const zt = "discussion_form_", id = ({
|
|
|
47444
47446
|
},
|
|
47445
47447
|
create: Z = () => {
|
|
47446
47448
|
},
|
|
47447
|
-
createPoll:
|
|
47449
|
+
createPoll: Q = () => Promise,
|
|
47448
47450
|
handleSaveEdit: k = () => {
|
|
47449
47451
|
},
|
|
47450
47452
|
handleCancel: x = () => {
|
|
47451
47453
|
},
|
|
47452
|
-
callback:
|
|
47454
|
+
callback: X = () => {
|
|
47453
47455
|
},
|
|
47454
47456
|
onMention: M = () => {
|
|
47455
47457
|
},
|
|
@@ -47515,7 +47517,7 @@ const zt = "discussion_form_", id = ({
|
|
|
47515
47517
|
});
|
|
47516
47518
|
break;
|
|
47517
47519
|
case Xe.Poll:
|
|
47518
|
-
we = await
|
|
47520
|
+
we = await Q(Rre(Y, g));
|
|
47519
47521
|
break;
|
|
47520
47522
|
case Xe.Question:
|
|
47521
47523
|
we = await Z({
|
|
@@ -47550,7 +47552,7 @@ const zt = "discussion_form_", id = ({
|
|
|
47550
47552
|
default:
|
|
47551
47553
|
break;
|
|
47552
47554
|
}
|
|
47553
|
-
await P0(1e3),
|
|
47555
|
+
await P0(1e3), X && await X(we), J({
|
|
47554
47556
|
body: "",
|
|
47555
47557
|
data: {}
|
|
47556
47558
|
}), y(n.type), Se((vt) => ({ ...vt, status: "submitted" })), E(
|
|
@@ -48214,10 +48216,10 @@ const ad = ({
|
|
|
48214
48216
|
isTranslating: !1,
|
|
48215
48217
|
isTranslated: !1,
|
|
48216
48218
|
isTranslatedError: !1
|
|
48217
|
-
}), { isTranslating: F, isTranslated: j, isTranslatedError: q } = O, [N, Z] = de(!1), [
|
|
48219
|
+
}), { isTranslating: F, isTranslated: j, isTranslatedError: q } = O, [N, Z] = de(!1), [Q, k] = de(!1), {
|
|
48218
48220
|
createContent: x = async () => {
|
|
48219
48221
|
},
|
|
48220
|
-
deleteContent:
|
|
48222
|
+
deleteContent: X = async () => {
|
|
48221
48223
|
},
|
|
48222
48224
|
updateContent: M = async () => {
|
|
48223
48225
|
}
|
|
@@ -48325,7 +48327,7 @@ const ad = ({
|
|
|
48325
48327
|
}, Zt = async () => {
|
|
48326
48328
|
De(!1);
|
|
48327
48329
|
try {
|
|
48328
|
-
t.type === Xe.Poll ? (await oe(), b ? b(`${y}/${v}`) : window.location.href = `${y}/${v}`) : await
|
|
48330
|
+
t.type === Xe.Poll ? (await oe(), b ? b(`${y}/${v}`) : window.location.href = `${y}/${v}`) : await X(ug(t.slugs));
|
|
48329
48331
|
} catch {
|
|
48330
48332
|
we("delete-error");
|
|
48331
48333
|
}
|
|
@@ -48362,7 +48364,7 @@ const ad = ({
|
|
|
48362
48364
|
k(!1);
|
|
48363
48365
|
}
|
|
48364
48366
|
}, dn = (Ye) => {
|
|
48365
|
-
Ye.preventDefault(), Ye.stopPropagation(),
|
|
48367
|
+
Ye.preventDefault(), Ye.stopPropagation(), Q ? (k(!1), ee((rt) => {
|
|
48366
48368
|
var Pt, rn, Yn, Nn;
|
|
48367
48369
|
return {
|
|
48368
48370
|
...rt,
|
|
@@ -48557,7 +48559,7 @@ const ad = ({
|
|
|
48557
48559
|
})
|
|
48558
48560
|
}
|
|
48559
48561
|
}
|
|
48560
|
-
) }) }) : /* @__PURE__ */ f.jsx("div", { className: "translation-info", children: (me = (V = t.data) == null ? void 0 : V.translationInfo) != null && me.hasTranslation || j ? /* @__PURE__ */ f.jsx("p", { children:
|
|
48562
|
+
) }) }) : /* @__PURE__ */ f.jsx("div", { className: "translation-info", children: (me = (V = t.data) == null ? void 0 : V.translationInfo) != null && me.hasTranslation || j ? /* @__PURE__ */ f.jsx("p", { children: Q ? /* @__PURE__ */ f.jsx("a", { onClick: dn, children: /* @__PURE__ */ f.jsx(
|
|
48561
48563
|
Bt,
|
|
48562
48564
|
{
|
|
48563
48565
|
id: "discussion_translation_translate",
|
|
@@ -48597,17 +48599,24 @@ const ad = ({
|
|
|
48597
48599
|
}
|
|
48598
48600
|
}
|
|
48599
48601
|
) })
|
|
48600
|
-
] }) : /* @__PURE__ */ f.jsx(
|
|
48601
|
-
|
|
48602
|
+
] }) : /* @__PURE__ */ f.jsx(
|
|
48603
|
+
"a",
|
|
48602
48604
|
{
|
|
48603
|
-
|
|
48604
|
-
|
|
48605
|
-
|
|
48606
|
-
|
|
48607
|
-
|
|
48608
|
-
|
|
48605
|
+
onClick: kt,
|
|
48606
|
+
"data-gtm-event-context": `${c}-${t.type}-translate-click-${_}`,
|
|
48607
|
+
children: /* @__PURE__ */ f.jsx(
|
|
48608
|
+
Bt,
|
|
48609
|
+
{
|
|
48610
|
+
id: "discussion_translation_translate",
|
|
48611
|
+
values: {
|
|
48612
|
+
locale: C.formatMessage({
|
|
48613
|
+
id: `language_${_}`
|
|
48614
|
+
})
|
|
48615
|
+
}
|
|
48616
|
+
}
|
|
48617
|
+
)
|
|
48609
48618
|
}
|
|
48610
|
-
) }) })
|
|
48619
|
+
) }) }) : null;
|
|
48611
48620
|
})(),
|
|
48612
48621
|
/* @__PURE__ */ f.jsx(zre, { content: t })
|
|
48613
48622
|
] }),
|
|
@@ -49237,7 +49246,7 @@ const Mae = ({
|
|
|
49237
49246
|
const { own_reactions: q, verb: N, latest_reactions: Z } = _, k = !!((M = q == null ? void 0 : q.like) != null && M.find((z) => {
|
|
49238
49247
|
var H;
|
|
49239
49248
|
return ((H = z.user) == null ? void 0 : H.id) === (T == null ? void 0 : T.id);
|
|
49240
|
-
})) ? q == null ? void 0 : q.like[0].id : "", x = _ == null ? void 0 : _.actor,
|
|
49249
|
+
})) ? q == null ? void 0 : q.like[0].id : "", x = _ == null ? void 0 : _.actor, X = H4(_, g, b);
|
|
49241
49250
|
return /* @__PURE__ */ f.jsxs("section", { className: "activity-section", children: [
|
|
49242
49251
|
/* @__PURE__ */ f.jsx(
|
|
49243
49252
|
ad,
|
|
@@ -49245,11 +49254,11 @@ const Mae = ({
|
|
|
49245
49254
|
className: "highlighted-text-box subtle",
|
|
49246
49255
|
isCommunity: !0,
|
|
49247
49256
|
content: {
|
|
49248
|
-
...
|
|
49257
|
+
...X,
|
|
49249
49258
|
body: m === en.Courses ? d6({
|
|
49250
49259
|
payload: (U = _ == null ? void 0 : _.payload) == null ? void 0 : U.data,
|
|
49251
49260
|
locale: b
|
|
49252
|
-
}) :
|
|
49261
|
+
}) : X.body,
|
|
49253
49262
|
slugs: {
|
|
49254
49263
|
question: `${e}/${t}`,
|
|
49255
49264
|
answer: _ == null ? void 0 : _.id
|
|
@@ -50344,7 +50353,7 @@ const d3 = ({
|
|
|
50344
50353
|
key: j,
|
|
50345
50354
|
className: N,
|
|
50346
50355
|
"data-testid": N
|
|
50347
|
-
},
|
|
50356
|
+
}, Q = {
|
|
50348
50357
|
wrapper: "p",
|
|
50349
50358
|
forceWrapper: !0,
|
|
50350
50359
|
forceInline: !0
|
|
@@ -50352,7 +50361,7 @@ const d3 = ({
|
|
|
50352
50361
|
q,
|
|
50353
50362
|
B[j]
|
|
50354
50363
|
);
|
|
50355
|
-
return ["title", "text"].includes(j) && I ? (
|
|
50364
|
+
return ["title", "text"].includes(j) && I ? (Q.wrapper = "a", /* @__PURE__ */ f.jsx("p", { ...Z, children: /* @__PURE__ */ f.jsx(Xr, { options: Q, ...O, children: k }) })) : /* @__PURE__ */ f.jsx(Xr, { options: Q, ...Z, children: k });
|
|
50356
50365
|
}),
|
|
50357
50366
|
i.contentType === "communityPage" && (i.slug || v.slug) && r && /* @__PURE__ */ f.jsx(
|
|
50358
50367
|
xie,
|