@apolitical/component-library 5.2.2-ac.10 → 5.2.2-ac.12
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 +20 -20
- package/index.mjs +486 -486
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_text.scss +1 -1
package/index.mjs
CHANGED
|
@@ -175,7 +175,7 @@ function Sh() {
|
|
|
175
175
|
function A(O) {
|
|
176
176
|
return O.displayName || "Context";
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function _(O) {
|
|
179
179
|
if (O == null)
|
|
180
180
|
return null;
|
|
181
181
|
if (typeof O.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof O == "function")
|
|
@@ -208,11 +208,11 @@ function Sh() {
|
|
|
208
208
|
return M(O, O.render, "ForwardRef");
|
|
209
209
|
case h:
|
|
210
210
|
var Ce = O.displayName || null;
|
|
211
|
-
return Ce !== null ? Ce :
|
|
211
|
+
return Ce !== null ? Ce : _(O.type) || "Memo";
|
|
212
212
|
case m: {
|
|
213
213
|
var $e = O, Ve = $e._payload, Me = $e._init;
|
|
214
214
|
try {
|
|
215
|
-
return
|
|
215
|
+
return _(Me(Ve));
|
|
216
216
|
} catch {
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
@@ -221,9 +221,9 @@ function Sh() {
|
|
|
221
221
|
return null;
|
|
222
222
|
}
|
|
223
223
|
var T = Object.assign, N = 0, q, U, Y, ie, D, $, X;
|
|
224
|
-
function
|
|
224
|
+
function k() {
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
k.__reactDisabledLog = !0;
|
|
227
227
|
function B() {
|
|
228
228
|
{
|
|
229
229
|
if (N === 0) {
|
|
@@ -231,7 +231,7 @@ function Sh() {
|
|
|
231
231
|
var O = {
|
|
232
232
|
configurable: !0,
|
|
233
233
|
enumerable: !0,
|
|
234
|
-
value:
|
|
234
|
+
value: k,
|
|
235
235
|
writable: !0
|
|
236
236
|
};
|
|
237
237
|
Object.defineProperties(console, {
|
|
@@ -439,7 +439,7 @@ function Sh() {
|
|
|
439
439
|
function ve(O) {
|
|
440
440
|
return rt(O);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Ae(O) {
|
|
443
443
|
{
|
|
444
444
|
var ae = typeof Symbol == "function" && Symbol.toStringTag, fe = ae && O[Symbol.toStringTag] || O.constructor.name || "Object";
|
|
445
445
|
return fe;
|
|
@@ -457,7 +457,7 @@ function Sh() {
|
|
|
457
457
|
}
|
|
458
458
|
function se(O) {
|
|
459
459
|
if (Se(O))
|
|
460
|
-
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
460
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ae(O)), V(O);
|
|
461
461
|
}
|
|
462
462
|
var pe = v.ReactCurrentOwner, be = {
|
|
463
463
|
key: !0,
|
|
@@ -484,8 +484,8 @@ function Sh() {
|
|
|
484
484
|
}
|
|
485
485
|
function st(O, ae) {
|
|
486
486
|
if (typeof O.ref == "string" && pe.current && ae && pe.current.stateNode !== ae) {
|
|
487
|
-
var fe =
|
|
488
|
-
et[fe] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
487
|
+
var fe = _(pe.current.type);
|
|
488
|
+
et[fe] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', _(pe.current.type), O.ref), et[fe] = !0);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
function it(O, ae) {
|
|
@@ -573,7 +573,7 @@ function Sh() {
|
|
|
573
573
|
function zo() {
|
|
574
574
|
{
|
|
575
575
|
if (br.current) {
|
|
576
|
-
var O =
|
|
576
|
+
var O = _(br.current.type);
|
|
577
577
|
if (O)
|
|
578
578
|
return `
|
|
579
579
|
|
|
@@ -616,7 +616,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
616
616
|
return;
|
|
617
617
|
qo[fe] = !0;
|
|
618
618
|
var Ce = "";
|
|
619
|
-
O && O._owner && O._owner !== br.current && (Ce = " It was passed a child from " +
|
|
619
|
+
O && O._owner && O._owner !== br.current && (Ce = " It was passed a child from " + _(O._owner.type) + "."), Un(O), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', fe, Ce), Un(null);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
function Uo(O, ae) {
|
|
@@ -653,11 +653,11 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
653
653
|
else
|
|
654
654
|
return;
|
|
655
655
|
if (fe) {
|
|
656
|
-
var Ce =
|
|
656
|
+
var Ce = _(ae);
|
|
657
657
|
Qe(fe, O.props, "prop", Ce, O);
|
|
658
658
|
} else if (ae.PropTypes !== void 0 && !ga) {
|
|
659
659
|
ga = !0;
|
|
660
|
-
var $e =
|
|
660
|
+
var $e = _(ae);
|
|
661
661
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $e || "Unknown");
|
|
662
662
|
}
|
|
663
663
|
typeof ae.getDefaultProps == "function" && !ae.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -684,7 +684,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
684
684
|
var pt = oh($e);
|
|
685
685
|
pt ? Oe += pt : Oe += zo();
|
|
686
686
|
var tt;
|
|
687
|
-
O === null ? tt = "null" : ve(O) ? tt = "array" : O !== void 0 && O.$$typeof === t ? (tt = "<" + (
|
|
687
|
+
O === null ? tt = "null" : ve(O) ? tt = "array" : O !== void 0 && O.$$typeof === t ? (tt = "<" + (_(O.type) || "Unknown") + " />", Oe = " Did you accidentally export a JSX literal instead of a component?") : tt = typeof O, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", tt, Oe);
|
|
688
688
|
}
|
|
689
689
|
var at = Wn(O, ae, fe, $e, Ve);
|
|
690
690
|
if (at == null)
|
|
@@ -762,8 +762,8 @@ function Rc(e, t, n) {
|
|
|
762
762
|
if (C(M))
|
|
763
763
|
return S(M);
|
|
764
764
|
if (h.current) {
|
|
765
|
-
var A = t - (M - i.current),
|
|
766
|
-
w(z,
|
|
765
|
+
var A = t - (M - i.current), _ = b ? Math.min(A, x - (M - a.current)) : A;
|
|
766
|
+
w(z, _);
|
|
767
767
|
}
|
|
768
768
|
}, j = function() {
|
|
769
769
|
if (m || v) {
|
|
@@ -903,15 +903,15 @@ const Yo = {}, pr = Ys(
|
|
|
903
903
|
}, []), de(() => {
|
|
904
904
|
if (f !== "open")
|
|
905
905
|
return;
|
|
906
|
-
const A = (
|
|
907
|
-
|
|
906
|
+
const A = (_) => {
|
|
907
|
+
_.key === "Escape" && (_.stopPropagation(), _.preventDefault(), b("closed"));
|
|
908
908
|
};
|
|
909
909
|
return document.addEventListener("keyup", A), () => {
|
|
910
910
|
document.removeEventListener("keyup", A);
|
|
911
911
|
};
|
|
912
912
|
}, [f]);
|
|
913
913
|
const j = ({ propertyName: A }) => {
|
|
914
|
-
A === "opacity" && (L !== !1 && clearTimeout(L), b((
|
|
914
|
+
A === "opacity" && (L !== !1 && clearTimeout(L), b((_) => (_ === "open" ? F() : _ === "closed" && w(), _ === "opening" ? "open" : _ === "closing" ? "closed" : _ === "closed" ? "hidden" : _)));
|
|
915
915
|
};
|
|
916
916
|
Lr(() => {
|
|
917
917
|
L !== !1 && clearTimeout(L);
|
|
@@ -1661,7 +1661,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1661
1661
|
}
|
|
1662
1662
|
};
|
|
1663
1663
|
};
|
|
1664
|
-
const
|
|
1664
|
+
const Te = ({
|
|
1665
1665
|
variant: e = "primary",
|
|
1666
1666
|
size: t = "medium",
|
|
1667
1667
|
styling: n = { muted: !1, fullWidth: !1 },
|
|
@@ -1716,7 +1716,7 @@ const Be = ({
|
|
|
1716
1716
|
}, Yr = ({ buttons: e, wrappers: t = [], className: n = "", ...r }) => {
|
|
1717
1717
|
const i = e.length > 1 ? "ul" : "p", a = e.map((s, o) => {
|
|
1718
1718
|
var l;
|
|
1719
|
-
return i === "p" ? /* @__PURE__ */ c.jsx(
|
|
1719
|
+
return i === "p" ? /* @__PURE__ */ c.jsx(Te, { ...s }, o) : /* @__PURE__ */ c.jsx("li", { className: ((l = t[o]) == null ? void 0 : l.className) || "", children: /* @__PURE__ */ c.jsx(Te, { ...s }) }, o);
|
|
1720
1720
|
});
|
|
1721
1721
|
return re.createElement(i, {
|
|
1722
1722
|
className: K("button-wrapper", n),
|
|
@@ -2005,7 +2005,7 @@ const M_ = ({ elementId: e, offset: t = 20 }) => {
|
|
|
2005
2005
|
});
|
|
2006
2006
|
};
|
|
2007
2007
|
return /* @__PURE__ */ c.jsx(
|
|
2008
|
-
|
|
2008
|
+
Te,
|
|
2009
2009
|
{
|
|
2010
2010
|
variant: "secondary",
|
|
2011
2011
|
className: "return-to-nav",
|
|
@@ -2179,7 +2179,7 @@ const In = ({
|
|
|
2179
2179
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2180
2180
|
t && typeof t == "string" ? /* @__PURE__ */ c.jsx(Yt, { options: { forceBlock: !0 }, children: t }) : t,
|
|
2181
2181
|
i && typeof n == "object" && (u || /* @__PURE__ */ c.jsx(
|
|
2182
|
-
|
|
2182
|
+
Te,
|
|
2183
2183
|
{
|
|
2184
2184
|
...d,
|
|
2185
2185
|
variant: n.variant ? n.variant : "secondary",
|
|
@@ -2266,7 +2266,7 @@ const sm = ({
|
|
|
2266
2266
|
}
|
|
2267
2267
|
),
|
|
2268
2268
|
/* @__PURE__ */ c.jsx("p", { className: "cta", children: /* @__PURE__ */ c.jsx(
|
|
2269
|
-
|
|
2269
|
+
Te,
|
|
2270
2270
|
{
|
|
2271
2271
|
variant: "tertiary",
|
|
2272
2272
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
@@ -2419,7 +2419,7 @@ const I_ = ({
|
|
|
2419
2419
|
return i === s || Array.isArray(i) && i[0] === s ? (delete r.href, delete r.target, /* @__PURE__ */ c.jsxs("span", { ...r, className: "mention deleted-user", children: [
|
|
2420
2420
|
"@",
|
|
2421
2421
|
n.formatMessage({ id: "member_deleted" })
|
|
2422
|
-
] })) : a ? (r = { ...r, className: "button primary medium" }, /* @__PURE__ */ c.jsx("p", { className: "center", children: /* @__PURE__ */ c.jsx(
|
|
2422
|
+
] })) : a ? (r = { ...r, className: "button primary medium" }, /* @__PURE__ */ c.jsx("p", { className: "center", children: /* @__PURE__ */ c.jsx(Te, { variant: "primary", size: "medium", ...r, children: i }) })) : /* @__PURE__ */ c.jsx("a", { ...r, children: i });
|
|
2423
2423
|
}, au = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className: K({ url: t == null ? void 0 : t.href }), children: e });
|
|
2424
2424
|
const mm = {
|
|
2425
2425
|
default: {
|
|
@@ -2930,8 +2930,8 @@ const yn = ({
|
|
|
2930
2930
|
href: j,
|
|
2931
2931
|
gtmType: o,
|
|
2932
2932
|
gtmContext: s,
|
|
2933
|
-
onClick: (
|
|
2934
|
-
if (
|
|
2933
|
+
onClick: (_) => {
|
|
2934
|
+
if (_ == null || _.preventDefault(), _ == null || _.stopPropagation(), !j)
|
|
2935
2935
|
return;
|
|
2936
2936
|
ii && clearTimeout(ii), ii = setTimeout(() => {
|
|
2937
2937
|
window.location.href = j;
|
|
@@ -2998,12 +2998,12 @@ const yn = ({
|
|
|
2998
2998
|
),
|
|
2999
2999
|
z && m && E ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3000
3000
|
/* @__PURE__ */ c.jsx(
|
|
3001
|
-
|
|
3001
|
+
Te,
|
|
3002
3002
|
{
|
|
3003
3003
|
variant: "tertiary",
|
|
3004
3004
|
size: "small",
|
|
3005
|
-
onClick: (
|
|
3006
|
-
|
|
3005
|
+
onClick: (_) => {
|
|
3006
|
+
_.preventDefault(), _.stopPropagation(), w(!0);
|
|
3007
3007
|
},
|
|
3008
3008
|
"data-testid": "profile-button",
|
|
3009
3009
|
children: h.formatMessage({ id: "member_profile" })
|
|
@@ -3218,7 +3218,7 @@ function Im() {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
}
|
|
3220
3220
|
}
|
|
3221
|
-
var w = l, C = u, S = o, L = s, j = t, z = d, M = r, A = g,
|
|
3221
|
+
var w = l, C = u, S = o, L = s, j = t, z = d, M = r, A = g, _ = p, T = n, N = a, q = i, U = h, Y = !1;
|
|
3222
3222
|
function ie(Q) {
|
|
3223
3223
|
return Y || (Y = !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.")), D(Q) || F(Q) === l;
|
|
3224
3224
|
}
|
|
@@ -3231,7 +3231,7 @@ function Im() {
|
|
|
3231
3231
|
function X(Q) {
|
|
3232
3232
|
return F(Q) === s;
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function k(Q) {
|
|
3235
3235
|
return typeof Q == "object" && Q !== null && Q.$$typeof === t;
|
|
3236
3236
|
}
|
|
3237
3237
|
function B(Q) {
|
|
@@ -3258,7 +3258,7 @@ function Im() {
|
|
|
3258
3258
|
function ce(Q) {
|
|
3259
3259
|
return F(Q) === h;
|
|
3260
3260
|
}
|
|
3261
|
-
qe.AsyncMode = w, qe.ConcurrentMode = C, qe.ContextConsumer = S, qe.ContextProvider = L, qe.Element = j, qe.ForwardRef = z, qe.Fragment = M, qe.Lazy = A, qe.Memo =
|
|
3261
|
+
qe.AsyncMode = w, qe.ConcurrentMode = C, qe.ContextConsumer = S, qe.ContextProvider = L, qe.Element = j, qe.ForwardRef = z, qe.Fragment = M, qe.Lazy = A, qe.Memo = _, qe.Portal = T, qe.Profiler = N, qe.StrictMode = q, qe.Suspense = U, qe.isAsyncMode = ie, qe.isConcurrentMode = D, qe.isContextConsumer = $, qe.isContextProvider = X, qe.isElement = k, qe.isForwardRef = B, qe.isFragment = I, qe.isLazy = R, qe.isMemo = W, qe.isPortal = ee, qe.isProfiler = H, qe.isStrictMode = ne, qe.isSuspense = ce, qe.isValidElementType = E, qe.typeOf = F;
|
|
3262
3262
|
}()), qe;
|
|
3263
3263
|
}
|
|
3264
3264
|
var cu;
|
|
@@ -3423,7 +3423,7 @@ function zm() {
|
|
|
3423
3423
|
oneOf: S,
|
|
3424
3424
|
oneOfType: j,
|
|
3425
3425
|
shape: A,
|
|
3426
|
-
exact:
|
|
3426
|
+
exact: _
|
|
3427
3427
|
};
|
|
3428
3428
|
function g(D, $) {
|
|
3429
3429
|
return D === $ ? D !== 0 || 1 / D === 1 / $ : D !== D && $ !== $;
|
|
@@ -3435,7 +3435,7 @@ function zm() {
|
|
|
3435
3435
|
function b(D) {
|
|
3436
3436
|
if (process.env.NODE_ENV !== "production")
|
|
3437
3437
|
var $ = {}, X = 0;
|
|
3438
|
-
function
|
|
3438
|
+
function k(I, R, W, ee, H, ne, ce) {
|
|
3439
3439
|
if (ee = ee || m, ne = ne || W, ce !== n) {
|
|
3440
3440
|
if (l) {
|
|
3441
3441
|
var Q = new Error(
|
|
@@ -3452,12 +3452,12 @@ function zm() {
|
|
|
3452
3452
|
}
|
|
3453
3453
|
return R[W] == null ? I ? R[W] === null ? new f("The " + H + " `" + ne + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new f("The " + H + " `" + ne + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : D(R, W, ee, H, ne);
|
|
3454
3454
|
}
|
|
3455
|
-
var B =
|
|
3456
|
-
return B.isRequired =
|
|
3455
|
+
var B = k.bind(null, !1);
|
|
3456
|
+
return B.isRequired = k.bind(null, !0), B;
|
|
3457
3457
|
}
|
|
3458
3458
|
function v(D) {
|
|
3459
|
-
function $(X,
|
|
3460
|
-
var ee = X[
|
|
3459
|
+
function $(X, k, B, I, R, W) {
|
|
3460
|
+
var ee = X[k], H = q(ee);
|
|
3461
3461
|
if (H !== D) {
|
|
3462
3462
|
var ne = U(ee);
|
|
3463
3463
|
return new f(
|
|
@@ -3473,10 +3473,10 @@ function zm() {
|
|
|
3473
3473
|
return b(s);
|
|
3474
3474
|
}
|
|
3475
3475
|
function E(D) {
|
|
3476
|
-
function $(X,
|
|
3476
|
+
function $(X, k, B, I, R) {
|
|
3477
3477
|
if (typeof D != "function")
|
|
3478
3478
|
return new f("Property `" + R + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
|
|
3479
|
-
var W = X[
|
|
3479
|
+
var W = X[k];
|
|
3480
3480
|
if (!Array.isArray(W)) {
|
|
3481
3481
|
var ee = q(W);
|
|
3482
3482
|
return new f("Invalid " + I + " `" + R + "` of type " + ("`" + ee + "` supplied to `" + B + "`, expected an array."));
|
|
@@ -3491,31 +3491,31 @@ function zm() {
|
|
|
3491
3491
|
return b($);
|
|
3492
3492
|
}
|
|
3493
3493
|
function F() {
|
|
3494
|
-
function D($, X,
|
|
3494
|
+
function D($, X, k, B, I) {
|
|
3495
3495
|
var R = $[X];
|
|
3496
3496
|
if (!o(R)) {
|
|
3497
3497
|
var W = q(R);
|
|
3498
|
-
return new f("Invalid " + B + " `" + I + "` of type " + ("`" + W + "` supplied to `" +
|
|
3498
|
+
return new f("Invalid " + B + " `" + I + "` of type " + ("`" + W + "` supplied to `" + k + "`, expected a single ReactElement."));
|
|
3499
3499
|
}
|
|
3500
3500
|
return null;
|
|
3501
3501
|
}
|
|
3502
3502
|
return b(D);
|
|
3503
3503
|
}
|
|
3504
3504
|
function w() {
|
|
3505
|
-
function D($, X,
|
|
3505
|
+
function D($, X, k, B, I) {
|
|
3506
3506
|
var R = $[X];
|
|
3507
3507
|
if (!e.isValidElementType(R)) {
|
|
3508
3508
|
var W = q(R);
|
|
3509
|
-
return new f("Invalid " + B + " `" + I + "` of type " + ("`" + W + "` supplied to `" +
|
|
3509
|
+
return new f("Invalid " + B + " `" + I + "` of type " + ("`" + W + "` supplied to `" + k + "`, expected a single ReactElement type."));
|
|
3510
3510
|
}
|
|
3511
3511
|
return null;
|
|
3512
3512
|
}
|
|
3513
3513
|
return b(D);
|
|
3514
3514
|
}
|
|
3515
3515
|
function C(D) {
|
|
3516
|
-
function $(X,
|
|
3517
|
-
if (!(X[
|
|
3518
|
-
var W = D.name || m, ee = ie(X[
|
|
3516
|
+
function $(X, k, B, I, R) {
|
|
3517
|
+
if (!(X[k] instanceof D)) {
|
|
3518
|
+
var W = D.name || m, ee = ie(X[k]);
|
|
3519
3519
|
return new f("Invalid " + I + " `" + R + "` of type " + ("`" + ee + "` supplied to `" + B + "`, expected ") + ("instance of `" + W + "`."));
|
|
3520
3520
|
}
|
|
3521
3521
|
return null;
|
|
@@ -3527,8 +3527,8 @@ function zm() {
|
|
|
3527
3527
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
3528
3528
|
"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])."
|
|
3529
3529
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
3530
|
-
function $(X,
|
|
3531
|
-
for (var W = X[
|
|
3530
|
+
function $(X, k, B, I, R) {
|
|
3531
|
+
for (var W = X[k], ee = 0; ee < D.length; ee++)
|
|
3532
3532
|
if (g(W, D[ee]))
|
|
3533
3533
|
return null;
|
|
3534
3534
|
var H = JSON.stringify(D, function(ce, Q) {
|
|
@@ -3540,10 +3540,10 @@ function zm() {
|
|
|
3540
3540
|
return b($);
|
|
3541
3541
|
}
|
|
3542
3542
|
function L(D) {
|
|
3543
|
-
function $(X,
|
|
3543
|
+
function $(X, k, B, I, R) {
|
|
3544
3544
|
if (typeof D != "function")
|
|
3545
3545
|
return new f("Property `" + R + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
|
|
3546
|
-
var W = X[
|
|
3546
|
+
var W = X[k], ee = q(W);
|
|
3547
3547
|
if (ee !== "object")
|
|
3548
3548
|
return new f("Invalid " + I + " `" + R + "` of type " + ("`" + ee + "` supplied to `" + B + "`, expected an object."));
|
|
3549
3549
|
for (var H in W)
|
|
@@ -3566,7 +3566,7 @@ function zm() {
|
|
|
3566
3566
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Y(X) + " at index " + $ + "."
|
|
3567
3567
|
), s;
|
|
3568
3568
|
}
|
|
3569
|
-
function
|
|
3569
|
+
function k(B, I, R, W, ee) {
|
|
3570
3570
|
for (var H = [], ne = 0; ne < D.length; ne++) {
|
|
3571
3571
|
var ce = D[ne], Q = ce(B, I, R, W, ee, n);
|
|
3572
3572
|
if (Q == null)
|
|
@@ -3576,22 +3576,22 @@ function zm() {
|
|
|
3576
3576
|
var De = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
3577
3577
|
return new f("Invalid " + W + " `" + ee + "` supplied to " + ("`" + R + "`" + De + "."));
|
|
3578
3578
|
}
|
|
3579
|
-
return b(
|
|
3579
|
+
return b(k);
|
|
3580
3580
|
}
|
|
3581
3581
|
function z() {
|
|
3582
|
-
function D($, X,
|
|
3583
|
-
return T($[X]) ? null : new f("Invalid " + B + " `" + I + "` supplied to " + ("`" +
|
|
3582
|
+
function D($, X, k, B, I) {
|
|
3583
|
+
return T($[X]) ? null : new f("Invalid " + B + " `" + I + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
|
|
3584
3584
|
}
|
|
3585
3585
|
return b(D);
|
|
3586
3586
|
}
|
|
3587
|
-
function M(D, $, X,
|
|
3587
|
+
function M(D, $, X, k, B) {
|
|
3588
3588
|
return new f(
|
|
3589
|
-
(D || "React class") + ": " + $ + " type `" + X + "." +
|
|
3589
|
+
(D || "React class") + ": " + $ + " type `" + X + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
|
|
3590
3590
|
);
|
|
3591
3591
|
}
|
|
3592
3592
|
function A(D) {
|
|
3593
|
-
function $(X,
|
|
3594
|
-
var W = X[
|
|
3593
|
+
function $(X, k, B, I, R) {
|
|
3594
|
+
var W = X[k], ee = q(W);
|
|
3595
3595
|
if (ee !== "object")
|
|
3596
3596
|
return new f("Invalid " + I + " `" + R + "` of type `" + ee + "` " + ("supplied to `" + B + "`, expected `object`."));
|
|
3597
3597
|
for (var H in D) {
|
|
@@ -3606,19 +3606,19 @@ function zm() {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
return b($);
|
|
3608
3608
|
}
|
|
3609
|
-
function
|
|
3610
|
-
function $(X,
|
|
3611
|
-
var W = X[
|
|
3609
|
+
function _(D) {
|
|
3610
|
+
function $(X, k, B, I, R) {
|
|
3611
|
+
var W = X[k], ee = q(W);
|
|
3612
3612
|
if (ee !== "object")
|
|
3613
3613
|
return new f("Invalid " + I + " `" + R + "` of type `" + ee + "` " + ("supplied to `" + B + "`, expected `object`."));
|
|
3614
|
-
var H = t({}, X[
|
|
3614
|
+
var H = t({}, X[k], D);
|
|
3615
3615
|
for (var ne in H) {
|
|
3616
3616
|
var ce = D[ne];
|
|
3617
3617
|
if (r(D, ne) && typeof ce != "function")
|
|
3618
3618
|
return M(B, I, R, ne, U(ce));
|
|
3619
3619
|
if (!ce)
|
|
3620
3620
|
return new f(
|
|
3621
|
-
"Invalid " + I + " `" + R + "` key `" + ne + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(X[
|
|
3621
|
+
"Invalid " + I + " `" + R + "` key `" + ne + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(X[k], null, " ") + `
|
|
3622
3622
|
Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
3623
3623
|
);
|
|
3624
3624
|
var Q = ce(W, ne, B, I, R + "." + ne, n);
|
|
@@ -3644,14 +3644,14 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
|
3644
3644
|
return !0;
|
|
3645
3645
|
var $ = h(D);
|
|
3646
3646
|
if ($) {
|
|
3647
|
-
var X = $.call(D),
|
|
3647
|
+
var X = $.call(D), k;
|
|
3648
3648
|
if ($ !== D.entries) {
|
|
3649
|
-
for (; !(
|
|
3650
|
-
if (!T(
|
|
3649
|
+
for (; !(k = X.next()).done; )
|
|
3650
|
+
if (!T(k.value))
|
|
3651
3651
|
return !1;
|
|
3652
3652
|
} else
|
|
3653
|
-
for (; !(
|
|
3654
|
-
var B =
|
|
3653
|
+
for (; !(k = X.next()).done; ) {
|
|
3654
|
+
var B = k.value;
|
|
3655
3655
|
if (B && !T(B[1]))
|
|
3656
3656
|
return !1;
|
|
3657
3657
|
}
|
|
@@ -4087,10 +4087,10 @@ var Du = {
|
|
|
4087
4087
|
delayInitialFocusTimer: void 0,
|
|
4088
4088
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
4089
4089
|
recentNavEvent: void 0
|
|
4090
|
-
}, o, l = function(A,
|
|
4091
|
-
return A && A[
|
|
4092
|
-
}, u = function(A,
|
|
4093
|
-
var T = typeof (
|
|
4090
|
+
}, o, l = function(A, _, T) {
|
|
4091
|
+
return A && A[_] !== void 0 ? A[_] : a[T || _];
|
|
4092
|
+
}, u = function(A, _) {
|
|
4093
|
+
var T = typeof (_ == null ? void 0 : _.composedPath) == "function" ? _.composedPath() : void 0;
|
|
4094
4094
|
return s.containerGroups.findIndex(function(N) {
|
|
4095
4095
|
var q = N.container, U = N.tabbableNodes;
|
|
4096
4096
|
return q.contains(A) || // fall back to explicit tabbable search which will take into consideration any
|
|
@@ -4102,19 +4102,19 @@ var Du = {
|
|
|
4102
4102
|
});
|
|
4103
4103
|
});
|
|
4104
4104
|
}, d = function(A) {
|
|
4105
|
-
var
|
|
4106
|
-
if (typeof
|
|
4105
|
+
var _ = a[A];
|
|
4106
|
+
if (typeof _ == "function") {
|
|
4107
4107
|
for (var T = arguments.length, N = new Array(T > 1 ? T - 1 : 0), q = 1; q < T; q++)
|
|
4108
4108
|
N[q - 1] = arguments[q];
|
|
4109
|
-
|
|
4109
|
+
_ = _.apply(void 0, N);
|
|
4110
4110
|
}
|
|
4111
|
-
if (
|
|
4112
|
-
if (
|
|
4113
|
-
return
|
|
4111
|
+
if (_ === !0 && (_ = void 0), !_) {
|
|
4112
|
+
if (_ === void 0 || _ === !1)
|
|
4113
|
+
return _;
|
|
4114
4114
|
throw new Error("`".concat(A, "` was specified but was not a node, or did not return a node"));
|
|
4115
4115
|
}
|
|
4116
|
-
var U =
|
|
4117
|
-
if (typeof
|
|
4116
|
+
var U = _;
|
|
4117
|
+
if (typeof _ == "string" && (U = r.querySelector(_), !U))
|
|
4118
4118
|
throw new Error("`".concat(A, "` as selector refers to no known node"));
|
|
4119
4119
|
return U;
|
|
4120
4120
|
}, h = function() {
|
|
@@ -4125,7 +4125,7 @@ var Du = {
|
|
|
4125
4125
|
if (u(r.activeElement) >= 0)
|
|
4126
4126
|
A = r.activeElement;
|
|
4127
4127
|
else {
|
|
4128
|
-
var
|
|
4128
|
+
var _ = s.tabbableGroups[0], T = _ && _.firstTabbableNode;
|
|
4129
4129
|
A = T || d("fallbackFocus");
|
|
4130
4130
|
}
|
|
4131
4131
|
if (!A)
|
|
@@ -4133,16 +4133,16 @@ var Du = {
|
|
|
4133
4133
|
return A;
|
|
4134
4134
|
}, m = function() {
|
|
4135
4135
|
if (s.containerGroups = s.containers.map(function(A) {
|
|
4136
|
-
var
|
|
4136
|
+
var _ = fd(A, a.tabbableOptions), T = hd(A, a.tabbableOptions), N = _.length > 0 ? _[0] : void 0, q = _.length > 0 ? _[_.length - 1] : void 0, U = T.find(function(D) {
|
|
4137
4137
|
return En(D);
|
|
4138
4138
|
}), Y = T.slice().reverse().find(function(D) {
|
|
4139
4139
|
return En(D);
|
|
4140
|
-
}), ie = !!
|
|
4140
|
+
}), ie = !!_.find(function(D) {
|
|
4141
4141
|
return gn(D) > 0;
|
|
4142
4142
|
});
|
|
4143
4143
|
return {
|
|
4144
4144
|
container: A,
|
|
4145
|
-
tabbableNodes:
|
|
4145
|
+
tabbableNodes: _,
|
|
4146
4146
|
focusableNodes: T,
|
|
4147
4147
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
4148
4148
|
posTabIndexesFound: ie,
|
|
@@ -4170,12 +4170,12 @@ var Du = {
|
|
|
4170
4170
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
4171
4171
|
*/
|
|
4172
4172
|
nextTabbableNode: function($) {
|
|
4173
|
-
var X = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0,
|
|
4174
|
-
return
|
|
4173
|
+
var X = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, k = _.indexOf($);
|
|
4174
|
+
return k < 0 ? X ? T.slice(T.indexOf($) + 1).find(function(B) {
|
|
4175
4175
|
return En(B);
|
|
4176
4176
|
}) : T.slice(0, T.indexOf($)).reverse().find(function(B) {
|
|
4177
4177
|
return En(B);
|
|
4178
|
-
}) : k
|
|
4178
|
+
}) : _[k + (X ? 1 : -1)];
|
|
4179
4179
|
}
|
|
4180
4180
|
};
|
|
4181
4181
|
}), s.tabbableGroups = s.containerGroups.filter(function(A) {
|
|
@@ -4187,9 +4187,9 @@ var Du = {
|
|
|
4187
4187
|
}) && s.containerGroups.length > 1)
|
|
4188
4188
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
4189
4189
|
}, p = function M(A) {
|
|
4190
|
-
var
|
|
4191
|
-
if (
|
|
4192
|
-
return
|
|
4190
|
+
var _ = A.activeElement;
|
|
4191
|
+
if (_)
|
|
4192
|
+
return _.shadowRoot && _.shadowRoot.activeElement !== null ? M(_.shadowRoot) : _;
|
|
4193
4193
|
}, g = function M(A) {
|
|
4194
4194
|
if (A !== !1 && A !== p(document)) {
|
|
4195
4195
|
if (!A || !A.focus) {
|
|
@@ -4201,43 +4201,43 @@ var Du = {
|
|
|
4201
4201
|
}), s.mostRecentlyFocusedNode = A, dp(A) && A.select();
|
|
4202
4202
|
}
|
|
4203
4203
|
}, f = function(A) {
|
|
4204
|
-
var
|
|
4205
|
-
return
|
|
4204
|
+
var _ = d("setReturnFocus", A);
|
|
4205
|
+
return _ || (_ === !1 ? !1 : A);
|
|
4206
4206
|
}, b = function(A) {
|
|
4207
|
-
var
|
|
4208
|
-
|
|
4207
|
+
var _ = A.target, T = A.event, N = A.isBackward, q = N === void 0 ? !1 : N;
|
|
4208
|
+
_ = _ || si(T), m();
|
|
4209
4209
|
var U = null;
|
|
4210
4210
|
if (s.tabbableGroups.length > 0) {
|
|
4211
|
-
var Y = u(
|
|
4211
|
+
var Y = u(_, T), ie = Y >= 0 ? s.containerGroups[Y] : void 0;
|
|
4212
4212
|
if (Y < 0)
|
|
4213
4213
|
q ? U = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : U = s.tabbableGroups[0].firstTabbableNode;
|
|
4214
4214
|
else if (q) {
|
|
4215
4215
|
var D = wu(s.tabbableGroups, function(R) {
|
|
4216
4216
|
var W = R.firstTabbableNode;
|
|
4217
|
-
return
|
|
4217
|
+
return _ === W;
|
|
4218
4218
|
});
|
|
4219
|
-
if (D < 0 && (ie.container ===
|
|
4219
|
+
if (D < 0 && (ie.container === _ || Fi(_, a.tabbableOptions) && !En(_, a.tabbableOptions) && !ie.nextTabbableNode(_, !1)) && (D = Y), D >= 0) {
|
|
4220
4220
|
var $ = D === 0 ? s.tabbableGroups.length - 1 : D - 1, X = s.tabbableGroups[$];
|
|
4221
|
-
U = gn(
|
|
4221
|
+
U = gn(_) >= 0 ? X.lastTabbableNode : X.lastDomTabbableNode;
|
|
4222
4222
|
} else
|
|
4223
|
-
Sr(T) || (U = ie.nextTabbableNode(
|
|
4223
|
+
Sr(T) || (U = ie.nextTabbableNode(_, !1));
|
|
4224
4224
|
} else {
|
|
4225
|
-
var
|
|
4225
|
+
var k = wu(s.tabbableGroups, function(R) {
|
|
4226
4226
|
var W = R.lastTabbableNode;
|
|
4227
|
-
return
|
|
4227
|
+
return _ === W;
|
|
4228
4228
|
});
|
|
4229
|
-
if (
|
|
4230
|
-
var B =
|
|
4231
|
-
U = gn(
|
|
4229
|
+
if (k < 0 && (ie.container === _ || Fi(_, a.tabbableOptions) && !En(_, a.tabbableOptions) && !ie.nextTabbableNode(_)) && (k = Y), k >= 0) {
|
|
4230
|
+
var B = k === s.tabbableGroups.length - 1 ? 0 : k + 1, I = s.tabbableGroups[B];
|
|
4231
|
+
U = gn(_) >= 0 ? I.firstTabbableNode : I.firstDomTabbableNode;
|
|
4232
4232
|
} else
|
|
4233
|
-
Sr(T) || (U = ie.nextTabbableNode(
|
|
4233
|
+
Sr(T) || (U = ie.nextTabbableNode(_));
|
|
4234
4234
|
}
|
|
4235
4235
|
} else
|
|
4236
4236
|
U = d("fallbackFocus");
|
|
4237
4237
|
return U;
|
|
4238
4238
|
}, v = function(A) {
|
|
4239
|
-
var
|
|
4240
|
-
if (!(u(
|
|
4239
|
+
var _ = si(A);
|
|
4240
|
+
if (!(u(_, A) >= 0)) {
|
|
4241
4241
|
if (xr(a.clickOutsideDeactivates, A)) {
|
|
4242
4242
|
o.deactivate({
|
|
4243
4243
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -4253,9 +4253,9 @@ var Du = {
|
|
|
4253
4253
|
xr(a.allowOutsideClick, A) || A.preventDefault();
|
|
4254
4254
|
}
|
|
4255
4255
|
}, x = function(A) {
|
|
4256
|
-
var
|
|
4257
|
-
if (T ||
|
|
4258
|
-
T && (s.mostRecentlyFocusedNode =
|
|
4256
|
+
var _ = si(A), T = u(_, A) >= 0;
|
|
4257
|
+
if (T || _ instanceof Document)
|
|
4258
|
+
T && (s.mostRecentlyFocusedNode = _);
|
|
4259
4259
|
else {
|
|
4260
4260
|
A.stopImmediatePropagation();
|
|
4261
4261
|
var N, q = !0;
|
|
@@ -4285,11 +4285,11 @@ var Du = {
|
|
|
4285
4285
|
}
|
|
4286
4286
|
s.recentNavEvent = void 0;
|
|
4287
4287
|
}, E = function(A) {
|
|
4288
|
-
var
|
|
4288
|
+
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
4289
4289
|
s.recentNavEvent = A;
|
|
4290
4290
|
var T = b({
|
|
4291
4291
|
event: A,
|
|
4292
|
-
isBackward:
|
|
4292
|
+
isBackward: _
|
|
4293
4293
|
});
|
|
4294
4294
|
T && (Sr(A) && A.preventDefault(), g(T));
|
|
4295
4295
|
}, F = function(A) {
|
|
@@ -4299,8 +4299,8 @@ var Du = {
|
|
|
4299
4299
|
}
|
|
4300
4300
|
(a.isKeyForward(A) || a.isKeyBackward(A)) && E(A, a.isKeyBackward(A));
|
|
4301
4301
|
}, w = function(A) {
|
|
4302
|
-
var
|
|
4303
|
-
u(
|
|
4302
|
+
var _ = si(A);
|
|
4303
|
+
u(_, A) >= 0 || xr(a.clickOutsideDeactivates, A) || xr(a.allowOutsideClick, A) || (A.preventDefault(), A.stopImmediatePropagation());
|
|
4304
4304
|
}, C = function() {
|
|
4305
4305
|
if (s.active)
|
|
4306
4306
|
return Du.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? xu(function() {
|
|
@@ -4322,13 +4322,13 @@ var Du = {
|
|
|
4322
4322
|
if (s.active)
|
|
4323
4323
|
return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", F, !0), o;
|
|
4324
4324
|
}, L = function(A) {
|
|
4325
|
-
var
|
|
4325
|
+
var _ = A.some(function(T) {
|
|
4326
4326
|
var N = Array.from(T.removedNodes);
|
|
4327
4327
|
return N.some(function(q) {
|
|
4328
4328
|
return q === s.mostRecentlyFocusedNode;
|
|
4329
4329
|
});
|
|
4330
4330
|
});
|
|
4331
|
-
|
|
4331
|
+
_ && g(h());
|
|
4332
4332
|
}, j = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(L) : void 0, z = function() {
|
|
4333
4333
|
j && (j.disconnect(), s.active && !s.paused && s.containers.map(function(A) {
|
|
4334
4334
|
j.observe(A, {
|
|
@@ -4347,8 +4347,8 @@ var Du = {
|
|
|
4347
4347
|
activate: function(A) {
|
|
4348
4348
|
if (s.active)
|
|
4349
4349
|
return this;
|
|
4350
|
-
var
|
|
4351
|
-
N || m(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement,
|
|
4350
|
+
var _ = l(A, "onActivate"), T = l(A, "onPostActivate"), N = l(A, "checkCanFocusTrap");
|
|
4351
|
+
N || m(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, _ == null || _();
|
|
4352
4352
|
var q = function() {
|
|
4353
4353
|
N && m(), C(), z(), T == null || T();
|
|
4354
4354
|
};
|
|
@@ -4357,13 +4357,13 @@ var Du = {
|
|
|
4357
4357
|
deactivate: function(A) {
|
|
4358
4358
|
if (!s.active)
|
|
4359
4359
|
return this;
|
|
4360
|
-
var
|
|
4360
|
+
var _ = yu({
|
|
4361
4361
|
onDeactivate: a.onDeactivate,
|
|
4362
4362
|
onPostDeactivate: a.onPostDeactivate,
|
|
4363
4363
|
checkCanReturnFocus: a.checkCanReturnFocus
|
|
4364
4364
|
}, A);
|
|
4365
4365
|
clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, S(), s.active = !1, s.paused = !1, z(), Du.deactivateTrap(i, o);
|
|
4366
|
-
var T = l(
|
|
4366
|
+
var T = l(_, "onDeactivate"), N = l(_, "onPostDeactivate"), q = l(_, "checkCanReturnFocus"), U = l(_, "returnFocus", "returnFocusOnDeactivate");
|
|
4367
4367
|
T == null || T();
|
|
4368
4368
|
var Y = function() {
|
|
4369
4369
|
xu(function() {
|
|
@@ -4375,18 +4375,18 @@ var Du = {
|
|
|
4375
4375
|
pause: function(A) {
|
|
4376
4376
|
if (s.paused || !s.active)
|
|
4377
4377
|
return this;
|
|
4378
|
-
var
|
|
4379
|
-
return s.paused = !0,
|
|
4378
|
+
var _ = l(A, "onPause"), T = l(A, "onPostPause");
|
|
4379
|
+
return s.paused = !0, _ == null || _(), S(), z(), T == null || T(), this;
|
|
4380
4380
|
},
|
|
4381
4381
|
unpause: function(A) {
|
|
4382
4382
|
if (!s.paused || !s.active)
|
|
4383
4383
|
return this;
|
|
4384
|
-
var
|
|
4385
|
-
return s.paused = !1,
|
|
4384
|
+
var _ = l(A, "onUnpause"), T = l(A, "onPostUnpause");
|
|
4385
|
+
return s.paused = !1, _ == null || _(), m(), C(), z(), T == null || T(), this;
|
|
4386
4386
|
},
|
|
4387
4387
|
updateContainerElements: function(A) {
|
|
4388
|
-
var
|
|
4389
|
-
return s.containers =
|
|
4388
|
+
var _ = [].concat(A).filter(Boolean);
|
|
4389
|
+
return s.containers = _.map(function(T) {
|
|
4390
4390
|
return typeof T == "string" ? r.querySelector(T) : T;
|
|
4391
4391
|
}), s.active && m(), z(), this;
|
|
4392
4392
|
}
|
|
@@ -4800,7 +4800,7 @@ const xn = ({
|
|
|
4800
4800
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
4801
4801
|
o && /* @__PURE__ */ c.jsx("h2", { className: "modal-title", children: o }),
|
|
4802
4802
|
/* @__PURE__ */ c.jsx(
|
|
4803
|
-
|
|
4803
|
+
Te,
|
|
4804
4804
|
{
|
|
4805
4805
|
variant: "tertiary",
|
|
4806
4806
|
size: "medium",
|
|
@@ -4845,7 +4845,7 @@ const Cr = "joinCommunityButton", pd = ({
|
|
|
4845
4845
|
}, [d]);
|
|
4846
4846
|
const g = {}, f = {};
|
|
4847
4847
|
return d && m !== "leaving" && (g["data-hover-text"] = s.formatMessage({ id: `${Cr}_leave` }), g["aria-label"] = s.formatMessage({ id: `${Cr}_member_aria` }), f["aria-hidden"] = "true"), /* @__PURE__ */ c.jsx(
|
|
4848
|
-
|
|
4848
|
+
Te,
|
|
4849
4849
|
{
|
|
4850
4850
|
variant: d ? "secondary" : "primary",
|
|
4851
4851
|
size: "medium",
|
|
@@ -4927,7 +4927,7 @@ const Aa = "communityDetails_", z_ = ({
|
|
|
4927
4927
|
}
|
|
4928
4928
|
),
|
|
4929
4929
|
t && /* @__PURE__ */ c.jsx(
|
|
4930
|
-
|
|
4930
|
+
Te,
|
|
4931
4931
|
{
|
|
4932
4932
|
variant: "primary",
|
|
4933
4933
|
onClick: s,
|
|
@@ -5154,7 +5154,7 @@ const Ba = bh({ locale: "en", messages: gr }), sa = ({
|
|
|
5154
5154
|
}
|
|
5155
5155
|
};
|
|
5156
5156
|
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: K("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
|
|
5157
|
-
|
|
5157
|
+
Te,
|
|
5158
5158
|
{
|
|
5159
5159
|
variant: r,
|
|
5160
5160
|
size: i,
|
|
@@ -5203,7 +5203,7 @@ const Rp = ({
|
|
|
5203
5203
|
className: K("more-menu text-medium", r),
|
|
5204
5204
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
5205
5205
|
/* @__PURE__ */ c.jsx(
|
|
5206
|
-
|
|
5206
|
+
Te,
|
|
5207
5207
|
{
|
|
5208
5208
|
variant: "tertiary",
|
|
5209
5209
|
size: "medium",
|
|
@@ -5232,7 +5232,7 @@ const Rp = ({
|
|
|
5232
5232
|
}
|
|
5233
5233
|
};
|
|
5234
5234
|
return u && (f.href = u), /* @__PURE__ */ c.jsx("li", { className: "more-menu-list-item", children: /* @__PURE__ */ c.jsx(
|
|
5235
|
-
|
|
5235
|
+
Te,
|
|
5236
5236
|
{
|
|
5237
5237
|
variant: "tertiary",
|
|
5238
5238
|
size: "medium",
|
|
@@ -5358,7 +5358,7 @@ const Wp = "shareLinks_", H_ = ({
|
|
|
5358
5358
|
return null;
|
|
5359
5359
|
const g = {};
|
|
5360
5360
|
return p && (g.onClick = (f) => p(f, h)), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
5361
|
-
|
|
5361
|
+
Te,
|
|
5362
5362
|
{
|
|
5363
5363
|
size: i,
|
|
5364
5364
|
variant: "tertiary",
|
|
@@ -6018,7 +6018,7 @@ const Qp = ({
|
|
|
6018
6018
|
/* @__PURE__ */ c.jsx("p", { children: `${f == null ? void 0 : f.length} selected` }),
|
|
6019
6019
|
/* @__PURE__ */ c.jsxs("ul", { children: [
|
|
6020
6020
|
/* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
6021
|
-
|
|
6021
|
+
Te,
|
|
6022
6022
|
{
|
|
6023
6023
|
variant: "tertiary",
|
|
6024
6024
|
size: "small",
|
|
@@ -6030,7 +6030,7 @@ const Qp = ({
|
|
|
6030
6030
|
}
|
|
6031
6031
|
) }),
|
|
6032
6032
|
/* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
6033
|
-
|
|
6033
|
+
Te,
|
|
6034
6034
|
{
|
|
6035
6035
|
variant: "tertiary",
|
|
6036
6036
|
size: "small",
|
|
@@ -6069,7 +6069,7 @@ const Qp = ({
|
|
|
6069
6069
|
}) })
|
|
6070
6070
|
] }),
|
|
6071
6071
|
(l == null ? void 0 : l.submitSection) && /* @__PURE__ */ c.jsx("p", { className: "submit", children: /* @__PURE__ */ c.jsx(
|
|
6072
|
-
|
|
6072
|
+
Te,
|
|
6073
6073
|
{
|
|
6074
6074
|
variant: "secondary",
|
|
6075
6075
|
onClick: () => {
|
|
@@ -6451,7 +6451,7 @@ const Ln = ({
|
|
|
6451
6451
|
const I = B.id || B.name;
|
|
6452
6452
|
I && (M[I] = B.value || "");
|
|
6453
6453
|
});
|
|
6454
|
-
const [A,
|
|
6454
|
+
const [A, _] = hr(eg, {
|
|
6455
6455
|
isSubmitting: !1,
|
|
6456
6456
|
formSubmitted: !1,
|
|
6457
6457
|
errors: {},
|
|
@@ -6459,7 +6459,7 @@ const Ln = ({
|
|
|
6459
6459
|
}), { errors: T, isSubmitting: N, formSubmitted: q, values: U } = A;
|
|
6460
6460
|
de(() => {
|
|
6461
6461
|
x && q && (Ta = setTimeout(() => {
|
|
6462
|
-
|
|
6462
|
+
_({
|
|
6463
6463
|
type: "updateValue",
|
|
6464
6464
|
payload: { key: "formSubmitted", value: !1 }
|
|
6465
6465
|
});
|
|
@@ -6468,7 +6468,7 @@ const Ln = ({
|
|
|
6468
6468
|
Ta && clearTimeout(Ta);
|
|
6469
6469
|
}, []), de(() => {
|
|
6470
6470
|
const B = (I) => {
|
|
6471
|
-
|
|
6471
|
+
_({
|
|
6472
6472
|
type: "updateValue",
|
|
6473
6473
|
payload: { key: I.detail.id, value: I.detail.value }
|
|
6474
6474
|
});
|
|
@@ -6494,37 +6494,37 @@ const Ln = ({
|
|
|
6494
6494
|
}), delete f.text;
|
|
6495
6495
|
const $ = () => {
|
|
6496
6496
|
if (!N) {
|
|
6497
|
-
if (
|
|
6497
|
+
if (_({
|
|
6498
6498
|
type: "updateValue",
|
|
6499
6499
|
payload: { key: "isSubmitting", value: !0 }
|
|
6500
6500
|
}), s.disabled) {
|
|
6501
|
-
typeof s.disabled == "object" && s.disabled.isClickable &&
|
|
6501
|
+
typeof s.disabled == "object" && s.disabled.isClickable && _({
|
|
6502
6502
|
type: "submitForm",
|
|
6503
6503
|
payload: {
|
|
6504
6504
|
fields: t,
|
|
6505
|
-
dispatch:
|
|
6505
|
+
dispatch: _,
|
|
6506
6506
|
intl: z
|
|
6507
6507
|
}
|
|
6508
6508
|
});
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
|
-
|
|
6511
|
+
_({
|
|
6512
6512
|
type: "submitForm",
|
|
6513
6513
|
payload: {
|
|
6514
6514
|
fields: t,
|
|
6515
|
-
dispatch:
|
|
6515
|
+
dispatch: _,
|
|
6516
6516
|
onSuccess: async (B) => {
|
|
6517
6517
|
try {
|
|
6518
|
-
await C(B),
|
|
6518
|
+
await C(B), _({ type: x ? "formSubmittedAndReset" : "formSubmitted" });
|
|
6519
6519
|
} catch (I) {
|
|
6520
|
-
L(I),
|
|
6520
|
+
L(I), _({
|
|
6521
6521
|
type: "updateValue",
|
|
6522
6522
|
payload: { key: "isSubmitting", value: !1 }
|
|
6523
6523
|
});
|
|
6524
6524
|
}
|
|
6525
6525
|
},
|
|
6526
6526
|
onFailure: (B, I) => {
|
|
6527
|
-
j(B, I),
|
|
6527
|
+
j(B, I), _({
|
|
6528
6528
|
type: "updateValue",
|
|
6529
6529
|
payload: { key: "isSubmitting", value: !1 }
|
|
6530
6530
|
});
|
|
@@ -6533,7 +6533,7 @@ const Ln = ({
|
|
|
6533
6533
|
}
|
|
6534
6534
|
});
|
|
6535
6535
|
}
|
|
6536
|
-
},
|
|
6536
|
+
}, k = [
|
|
6537
6537
|
{
|
|
6538
6538
|
...f,
|
|
6539
6539
|
icon: q ? { icon: "tick", position: "left" } : !1,
|
|
@@ -6556,7 +6556,7 @@ const Ln = ({
|
|
|
6556
6556
|
children: D[N ? "submitting" : q ? "submitted" : "default"]
|
|
6557
6557
|
}
|
|
6558
6558
|
];
|
|
6559
|
-
return v &&
|
|
6559
|
+
return v && k.unshift({
|
|
6560
6560
|
...o,
|
|
6561
6561
|
className: "gtm-trackable",
|
|
6562
6562
|
"data-gtm-event-context": d.context,
|
|
@@ -6595,7 +6595,7 @@ const Ln = ({
|
|
|
6595
6595
|
const ne = (U == null ? void 0 : U[R]) || "", ce = {
|
|
6596
6596
|
...ee,
|
|
6597
6597
|
onChange: (Q) => {
|
|
6598
|
-
|
|
6598
|
+
_({ type: "updateValue", payload: { key: R, value: Q } }), ee.onChange(Q && Q.toString(), _);
|
|
6599
6599
|
}
|
|
6600
6600
|
};
|
|
6601
6601
|
return H && (ce.onKeyDown = (Q) => {
|
|
@@ -6620,7 +6620,7 @@ const Ln = ({
|
|
|
6620
6620
|
center: N || q,
|
|
6621
6621
|
submitted: q
|
|
6622
6622
|
}),
|
|
6623
|
-
buttons:
|
|
6623
|
+
buttons: k
|
|
6624
6624
|
}
|
|
6625
6625
|
)
|
|
6626
6626
|
] })
|
|
@@ -6725,7 +6725,7 @@ const K_ = ({
|
|
|
6725
6725
|
{
|
|
6726
6726
|
className: K({ selected: m && x <= m }),
|
|
6727
6727
|
children: /* @__PURE__ */ c.jsx(
|
|
6728
|
-
|
|
6728
|
+
Te,
|
|
6729
6729
|
{
|
|
6730
6730
|
variant: "tertiary",
|
|
6731
6731
|
size: "small",
|
|
@@ -7898,7 +7898,7 @@ var Ou = St.createDraft.bind(St), Pu = St.finishDraft.bind(St), Lg = {
|
|
|
7898
7898
|
affinity: r
|
|
7899
7899
|
} = e;
|
|
7900
7900
|
if (n != null) {
|
|
7901
|
-
var i =
|
|
7901
|
+
var i = Be.transform(n, t, {
|
|
7902
7902
|
affinity: r
|
|
7903
7903
|
});
|
|
7904
7904
|
e.current = i, i == null && e.unref();
|
|
@@ -8163,7 +8163,7 @@ var Hg = (e, t, n) => {
|
|
|
8163
8163
|
throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r, "] because the destination is past the end of the node."));
|
|
8164
8164
|
if (a.children.splice(s, 0, i), t)
|
|
8165
8165
|
for (var [o, l] of Z.points(t))
|
|
8166
|
-
t[l] =
|
|
8166
|
+
t[l] = Be.transform(o, n);
|
|
8167
8167
|
break;
|
|
8168
8168
|
}
|
|
8169
8169
|
case "insert_text": {
|
|
@@ -8177,7 +8177,7 @@ var Hg = (e, t, n) => {
|
|
|
8177
8177
|
var m = oe.leaf(e, u), p = m.text.slice(0, d), g = m.text.slice(d);
|
|
8178
8178
|
if (m.text = p + h + g, t)
|
|
8179
8179
|
for (var [f, b] of Z.points(t))
|
|
8180
|
-
t[b] =
|
|
8180
|
+
t[b] = Be.transform(f, n);
|
|
8181
8181
|
break;
|
|
8182
8182
|
}
|
|
8183
8183
|
case "merge_node": {
|
|
@@ -8192,7 +8192,7 @@ var Hg = (e, t, n) => {
|
|
|
8192
8192
|
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v, "] to nodes of different interfaces: ").concat(ot.stringify(x), " ").concat(ot.stringify(F)));
|
|
8193
8193
|
if (w.children.splice(C, 1), t)
|
|
8194
8194
|
for (var [S, L] of Z.points(t))
|
|
8195
|
-
t[L] =
|
|
8195
|
+
t[L] = Be.transform(S, n);
|
|
8196
8196
|
break;
|
|
8197
8197
|
}
|
|
8198
8198
|
case "move_node": {
|
|
@@ -8202,12 +8202,12 @@ var Hg = (e, t, n) => {
|
|
|
8202
8202
|
} = n;
|
|
8203
8203
|
if (P.isAncestor(j, z))
|
|
8204
8204
|
throw new Error("Cannot move a path [".concat(j, "] to new path [").concat(z, "] because the destination is inside itself."));
|
|
8205
|
-
var M = oe.get(e, j), A = oe.parent(e, j),
|
|
8206
|
-
A.children.splice(
|
|
8205
|
+
var M = oe.get(e, j), A = oe.parent(e, j), _ = j[j.length - 1];
|
|
8206
|
+
A.children.splice(_, 1);
|
|
8207
8207
|
var T = P.transform(j, n), N = oe.get(e, P.parent(T)), q = T[T.length - 1];
|
|
8208
8208
|
if (N.children.splice(q, 0, M), t)
|
|
8209
8209
|
for (var [U, Y] of Z.points(t))
|
|
8210
|
-
t[Y] =
|
|
8210
|
+
t[Y] = Be.transform(U, n);
|
|
8211
8211
|
break;
|
|
8212
8212
|
}
|
|
8213
8213
|
case "remove_node": {
|
|
@@ -8215,10 +8215,10 @@ var Hg = (e, t, n) => {
|
|
|
8215
8215
|
path: ie
|
|
8216
8216
|
} = n, D = ie[ie.length - 1], $ = oe.parent(e, ie);
|
|
8217
8217
|
if ($.children.splice(D, 1), t)
|
|
8218
|
-
for (var [X,
|
|
8219
|
-
var B =
|
|
8218
|
+
for (var [X, k] of Z.points(t)) {
|
|
8219
|
+
var B = Be.transform(X, n);
|
|
8220
8220
|
if (t != null && B != null)
|
|
8221
|
-
t[
|
|
8221
|
+
t[k] = B;
|
|
8222
8222
|
else {
|
|
8223
8223
|
var I = void 0, R = void 0;
|
|
8224
8224
|
for (var [W, ee] of oe.texts(e))
|
|
@@ -8245,7 +8245,7 @@ var Hg = (e, t, n) => {
|
|
|
8245
8245
|
var De = oe.leaf(e, ne), ge = De.text.slice(0, ce), Fe = De.text.slice(ce + Q.length);
|
|
8246
8246
|
if (De.text = ge + Fe, t)
|
|
8247
8247
|
for (var [Ne, Pe] of Z.points(t))
|
|
8248
|
-
t[Pe] =
|
|
8248
|
+
t[Pe] = Be.transform(Ne, n);
|
|
8249
8249
|
break;
|
|
8250
8250
|
}
|
|
8251
8251
|
case "set_node": {
|
|
@@ -8260,8 +8260,8 @@ var Hg = (e, t, n) => {
|
|
|
8260
8260
|
for (var ve in Qe) {
|
|
8261
8261
|
if (ve === "children" || ve === "text")
|
|
8262
8262
|
throw new Error('Cannot set the "'.concat(ve, '" property of nodes!'));
|
|
8263
|
-
var
|
|
8264
|
-
|
|
8263
|
+
var Ae = Qe[ve];
|
|
8264
|
+
Ae == null ? delete rt[ve] : rt[ve] = Ae;
|
|
8265
8265
|
}
|
|
8266
8266
|
for (var Se in Ge)
|
|
8267
8267
|
Qe.hasOwnProperty(Se) || delete rt[Se];
|
|
@@ -8313,7 +8313,7 @@ var Hg = (e, t, n) => {
|
|
|
8313
8313
|
}
|
|
8314
8314
|
if (xe.children.splice(je + 1, 0, st), t)
|
|
8315
8315
|
for (var [br, ei] of Z.points(t))
|
|
8316
|
-
t[ei] =
|
|
8316
|
+
t[ei] = Be.transform(br, n);
|
|
8317
8317
|
break;
|
|
8318
8318
|
}
|
|
8319
8319
|
}
|
|
@@ -8454,21 +8454,21 @@ var Z = {
|
|
|
8454
8454
|
return t;
|
|
8455
8455
|
},
|
|
8456
8456
|
equals(e, t) {
|
|
8457
|
-
return
|
|
8457
|
+
return Be.equals(e.anchor, t.anchor) && Be.equals(e.focus, t.focus);
|
|
8458
8458
|
},
|
|
8459
8459
|
includes(e, t) {
|
|
8460
8460
|
if (Z.isRange(t)) {
|
|
8461
8461
|
if (Z.includes(e, t.anchor) || Z.includes(e, t.focus))
|
|
8462
8462
|
return !0;
|
|
8463
8463
|
var [n, r] = Z.edges(e), [i, a] = Z.edges(t);
|
|
8464
|
-
return
|
|
8464
|
+
return Be.isBefore(n, i) && Be.isAfter(r, a);
|
|
8465
8465
|
}
|
|
8466
8466
|
var [s, o] = Z.edges(e), l = !1, u = !1;
|
|
8467
|
-
return
|
|
8467
|
+
return Be.isPoint(t) ? (l = Be.compare(t, s) >= 0, u = Be.compare(t, o) <= 0) : (l = P.compare(t, s.path) >= 0, u = P.compare(t, o.path) <= 0), l && u;
|
|
8468
8468
|
},
|
|
8469
8469
|
intersection(e, t) {
|
|
8470
|
-
var n = un(e, Gg), [r, i] = Z.edges(e), [a, s] = Z.edges(t), o =
|
|
8471
|
-
return
|
|
8470
|
+
var n = un(e, Gg), [r, i] = Z.edges(e), [a, s] = Z.edges(t), o = Be.isBefore(r, a) ? a : r, l = Be.isBefore(i, s) ? i : s;
|
|
8471
|
+
return Be.isBefore(l, o) ? null : Qg({
|
|
8472
8472
|
anchor: o,
|
|
8473
8473
|
focus: l
|
|
8474
8474
|
}, n);
|
|
@@ -8478,14 +8478,14 @@ var Z = {
|
|
|
8478
8478
|
anchor: t,
|
|
8479
8479
|
focus: n
|
|
8480
8480
|
} = e;
|
|
8481
|
-
return
|
|
8481
|
+
return Be.isAfter(t, n);
|
|
8482
8482
|
},
|
|
8483
8483
|
isCollapsed(e) {
|
|
8484
8484
|
var {
|
|
8485
8485
|
anchor: t,
|
|
8486
8486
|
focus: n
|
|
8487
8487
|
} = e;
|
|
8488
|
-
return
|
|
8488
|
+
return Be.equals(t, n);
|
|
8489
8489
|
},
|
|
8490
8490
|
isExpanded(e) {
|
|
8491
8491
|
return !Z.isCollapsed(e);
|
|
@@ -8494,7 +8494,7 @@ var Z = {
|
|
|
8494
8494
|
return !Z.isBackward(e);
|
|
8495
8495
|
},
|
|
8496
8496
|
isRange(e) {
|
|
8497
|
-
return lt(e) &&
|
|
8497
|
+
return lt(e) && Be.isPoint(e.anchor) && Be.isPoint(e.focus);
|
|
8498
8498
|
},
|
|
8499
8499
|
*points(e) {
|
|
8500
8500
|
yield [e.anchor, "anchor"], yield [e.focus, "focus"];
|
|
@@ -8516,9 +8516,9 @@ var Z = {
|
|
|
8516
8516
|
Z.isForward(r) ? (a = "forward", s = o ? a : "backward") : (a = "backward", s = o ? a : "forward");
|
|
8517
8517
|
} else
|
|
8518
8518
|
i === "outward" ? Z.isForward(r) ? (a = "backward", s = "forward") : (a = "forward", s = "backward") : (a = i, s = i);
|
|
8519
|
-
var l =
|
|
8519
|
+
var l = Be.transform(r.anchor, t, {
|
|
8520
8520
|
affinity: a
|
|
8521
|
-
}), u =
|
|
8521
|
+
}), u = Be.transform(r.focus, t, {
|
|
8522
8522
|
affinity: s
|
|
8523
8523
|
});
|
|
8524
8524
|
if (!l || !u)
|
|
@@ -9112,16 +9112,16 @@ function Hu(e) {
|
|
|
9112
9112
|
}
|
|
9113
9113
|
return e;
|
|
9114
9114
|
}
|
|
9115
|
-
var
|
|
9115
|
+
var Be = {
|
|
9116
9116
|
compare(e, t) {
|
|
9117
9117
|
var n = P.compare(e.path, t.path);
|
|
9118
9118
|
return n === 0 ? e.offset < t.offset ? -1 : e.offset > t.offset ? 1 : 0 : n;
|
|
9119
9119
|
},
|
|
9120
9120
|
isAfter(e, t) {
|
|
9121
|
-
return
|
|
9121
|
+
return Be.compare(e, t) === 1;
|
|
9122
9122
|
},
|
|
9123
9123
|
isBefore(e, t) {
|
|
9124
|
-
return
|
|
9124
|
+
return Be.compare(e, t) === -1;
|
|
9125
9125
|
},
|
|
9126
9126
|
equals(e, t) {
|
|
9127
9127
|
return e.offset === t.offset && P.equals(e.path, t.path);
|
|
@@ -9919,7 +9919,7 @@ var n0 = function(t, n) {
|
|
|
9919
9919
|
return n.length === 0 || n.length === 1 && me.isText(r) && r.text === "" && !e.isVoid(t);
|
|
9920
9920
|
}, s0 = (e, t, n) => {
|
|
9921
9921
|
var r = y.end(e, n);
|
|
9922
|
-
return
|
|
9922
|
+
return Be.equals(t, r);
|
|
9923
9923
|
}, o0 = (e) => {
|
|
9924
9924
|
var t = Nd.get(e);
|
|
9925
9925
|
return t === void 0 ? !0 : t;
|
|
@@ -9927,7 +9927,7 @@ var n0 = function(t, n) {
|
|
|
9927
9927
|
if (t.offset !== 0)
|
|
9928
9928
|
return !1;
|
|
9929
9929
|
var r = y.start(e, n);
|
|
9930
|
-
return
|
|
9930
|
+
return Be.equals(t, r);
|
|
9931
9931
|
}, l0 = (e, t) => {
|
|
9932
9932
|
var n = y.path(e, t, {
|
|
9933
9933
|
edge: "end"
|
|
@@ -10177,7 +10177,7 @@ var b0 = function(t) {
|
|
|
10177
10177
|
n = o;
|
|
10178
10178
|
}
|
|
10179
10179
|
}
|
|
10180
|
-
return Z.isRange(n) && (a === "start" ? n = Z.start(n) : a === "end" ? n = Z.end(n) : n = P.common(n.anchor.path, n.focus.path)),
|
|
10180
|
+
return Z.isRange(n) && (a === "start" ? n = Z.start(n) : a === "end" ? n = Z.end(n) : n = P.common(n.anchor.path, n.focus.path)), Be.isPoint(n) && (n = n.path), i != null && (n = n.slice(0, i)), n;
|
|
10181
10181
|
}, C0 = function(t, n) {
|
|
10182
10182
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
|
|
10183
10183
|
affinity: i = "forward"
|
|
@@ -10469,7 +10469,7 @@ var j0 = (e, t) => {
|
|
|
10469
10469
|
} = n;
|
|
10470
10470
|
if (u) {
|
|
10471
10471
|
var h = !1;
|
|
10472
|
-
if (Z.isRange(u) && Z.isCollapsed(u) && (h = !0, u = u.anchor),
|
|
10472
|
+
if (Z.isRange(u) && Z.isCollapsed(u) && (h = !0, u = u.anchor), Be.isPoint(u)) {
|
|
10473
10473
|
var m = y.void(t, {
|
|
10474
10474
|
at: u,
|
|
10475
10475
|
mode: "highest"
|
|
@@ -10498,7 +10498,7 @@ var j0 = (e, t) => {
|
|
|
10498
10498
|
if (!Z.isCollapsed(u)) {
|
|
10499
10499
|
if (!d) {
|
|
10500
10500
|
var [, b] = Z.edges(u), v = y.end(t, []);
|
|
10501
|
-
|
|
10501
|
+
Be.equals(b, v) || (u = y.unhangRange(t, u, {
|
|
10502
10502
|
voids: l
|
|
10503
10503
|
}));
|
|
10504
10504
|
}
|
|
@@ -10531,13 +10531,13 @@ var j0 = (e, t) => {
|
|
|
10531
10531
|
var M = y.after(t, E);
|
|
10532
10532
|
M && w && P.isAncestor(w[1], M.path) && (E = M);
|
|
10533
10533
|
}
|
|
10534
|
-
var A = [],
|
|
10534
|
+
var A = [], _;
|
|
10535
10535
|
for (var T of y.nodes(t, {
|
|
10536
10536
|
at: u,
|
|
10537
10537
|
voids: l
|
|
10538
10538
|
})) {
|
|
10539
10539
|
var [N, q] = T;
|
|
10540
|
-
|
|
10540
|
+
_ && P.compare(q, _) === 0 || (!l && he.isElement(N) && (y.isVoid(t, N) || y.isElementReadOnly(t, N)) || !P.isCommon(q, x.path) && !P.isCommon(q, E.path)) && (A.push(T), _ = q);
|
|
10541
10541
|
}
|
|
10542
10542
|
var U = Array.from(A, (ge) => {
|
|
10543
10543
|
var [, Fe] = ge;
|
|
@@ -10545,13 +10545,13 @@ var j0 = (e, t) => {
|
|
|
10545
10545
|
}), Y = y.pointRef(t, x), ie = y.pointRef(t, E), D = "";
|
|
10546
10546
|
if (!S && !L) {
|
|
10547
10547
|
var $ = Y.current, [X] = y.leaf(t, $), {
|
|
10548
|
-
path:
|
|
10548
|
+
path: k
|
|
10549
10549
|
} = $, {
|
|
10550
10550
|
offset: B
|
|
10551
10551
|
} = x, I = X.text.slice(B);
|
|
10552
10552
|
I.length > 0 && (t.apply({
|
|
10553
10553
|
type: "remove_text",
|
|
10554
|
-
path:
|
|
10554
|
+
path: k,
|
|
10555
10555
|
offset: B,
|
|
10556
10556
|
text: I
|
|
10557
10557
|
}), D = I);
|
|
@@ -10646,9 +10646,9 @@ var j0 = (e, t) => {
|
|
|
10646
10646
|
pass: L
|
|
10647
10647
|
}))
|
|
10648
10648
|
L(j) && S.push(j);
|
|
10649
|
-
var z = [], M = [], A = [],
|
|
10649
|
+
var z = [], M = [], A = [], _ = !0, T = !1;
|
|
10650
10650
|
for (var [N] of S)
|
|
10651
|
-
he.isElement(N) && !t.isInline(N) ? (
|
|
10651
|
+
he.isElement(N) && !t.isInline(N) ? (_ = !1, T = !0, M.push(N)) : _ ? z.push(N) : A.push(N);
|
|
10652
10652
|
var [q] = y.nodes(t, {
|
|
10653
10653
|
at: s,
|
|
10654
10654
|
match: (I) => me.isText(I) || y.isInline(t, I),
|
|
@@ -10685,9 +10685,9 @@ var j0 = (e, t) => {
|
|
|
10685
10685
|
voids: a,
|
|
10686
10686
|
batchDirty: o
|
|
10687
10687
|
}), !r.at) {
|
|
10688
|
-
var
|
|
10689
|
-
if (A.length > 0 && $.current ?
|
|
10690
|
-
var B = y.end(t,
|
|
10688
|
+
var k;
|
|
10689
|
+
if (A.length > 0 && $.current ? k = P.previous($.current) : M.length > 0 && D.current ? k = P.previous(D.current) : X.current && (k = P.previous(X.current)), k) {
|
|
10690
|
+
var B = y.end(t, k);
|
|
10691
10691
|
J.select(t, B);
|
|
10692
10692
|
}
|
|
10693
10693
|
}
|
|
@@ -10813,7 +10813,7 @@ var U0 = function(t, n) {
|
|
|
10813
10813
|
} = e, r = {}, i = {};
|
|
10814
10814
|
if (n) {
|
|
10815
10815
|
for (var a in t)
|
|
10816
|
-
(a === "anchor" && t.anchor != null && !
|
|
10816
|
+
(a === "anchor" && t.anchor != null && !Be.equals(t.anchor, n.anchor) || a === "focus" && t.focus != null && !Be.equals(t.focus, n.focus) || a !== "anchor" && a !== "focus" && t[a] !== n[a]) && (r[a] = n[a], i[a] = t[a]);
|
|
10817
10817
|
Object.keys(r).length > 0 && e.apply({
|
|
10818
10818
|
type: "set_selection",
|
|
10819
10819
|
properties: r,
|
|
@@ -10846,7 +10846,7 @@ var U0 = function(t, n) {
|
|
|
10846
10846
|
at: l
|
|
10847
10847
|
}), l = p.unref();
|
|
10848
10848
|
}
|
|
10849
|
-
if (
|
|
10849
|
+
if (Be.isPoint(l)) {
|
|
10850
10850
|
u == null && (me.isText(h) ? u = (z) => me.isText(z) : t.isInline(h) ? u = (z) => me.isText(z) || y.isInline(t, z) : u = (z) => he.isElement(z) && y.isBlock(t, z));
|
|
10851
10851
|
var [g] = y.nodes(t, {
|
|
10852
10852
|
at: l.path,
|
|
@@ -10875,17 +10875,17 @@ var U0 = function(t, n) {
|
|
|
10875
10875
|
var w = [], C = P.levels(E);
|
|
10876
10876
|
Bv(t, () => {
|
|
10877
10877
|
var z = function() {
|
|
10878
|
-
var
|
|
10878
|
+
var _ = E.concat(F);
|
|
10879
10879
|
F++;
|
|
10880
10880
|
var T = {
|
|
10881
10881
|
type: "insert_node",
|
|
10882
|
-
path:
|
|
10882
|
+
path: _,
|
|
10883
10883
|
node: M
|
|
10884
10884
|
};
|
|
10885
10885
|
t.apply(T), l = P.next(l), w.push(T), me.isText ? C.push(...Array.from(oe.nodes(M), (N) => {
|
|
10886
10886
|
var [, q] = N;
|
|
10887
|
-
return
|
|
10888
|
-
})) : C.push(
|
|
10887
|
+
return _.concat(q);
|
|
10888
|
+
})) : C.push(_);
|
|
10889
10889
|
};
|
|
10890
10890
|
for (var M of n)
|
|
10891
10891
|
z();
|
|
@@ -11260,12 +11260,12 @@ var U0 = function(t, n) {
|
|
|
11260
11260
|
reverse: !0,
|
|
11261
11261
|
voids: i
|
|
11262
11262
|
})) {
|
|
11263
|
-
var
|
|
11263
|
+
var _ = !1;
|
|
11264
11264
|
if (A.length < L.length || A.length === 0 || !i && he.isElement(M) && y.isVoid(t, M))
|
|
11265
11265
|
break;
|
|
11266
11266
|
var T = m.current, N = y.isEnd(t, T, A);
|
|
11267
11267
|
if (l || !m || !y.isEdge(t, T, A)) {
|
|
11268
|
-
|
|
11268
|
+
_ = !0;
|
|
11269
11269
|
var q = oe.extractProps(M);
|
|
11270
11270
|
t.apply({
|
|
11271
11271
|
type: "split_node",
|
|
@@ -11274,7 +11274,7 @@ var U0 = function(t, n) {
|
|
|
11274
11274
|
properties: q
|
|
11275
11275
|
});
|
|
11276
11276
|
}
|
|
11277
|
-
z = A[A.length - 1] + (
|
|
11277
|
+
z = A[A.length - 1] + (_ || N ? 1 : 0);
|
|
11278
11278
|
}
|
|
11279
11279
|
if (n.at == null) {
|
|
11280
11280
|
var U = p.current || y.end(t, []);
|
|
@@ -11400,10 +11400,10 @@ var ib = function(t, n) {
|
|
|
11400
11400
|
var [E] = x, F = x[x.length - 1], [, w] = E, [, C] = F;
|
|
11401
11401
|
if (w.length === 0 && C.length === 0)
|
|
11402
11402
|
return 0;
|
|
11403
|
-
var S = P.equals(w, C) ? P.parent(w) : P.common(w, C), L = y.range(t, w, C), j = y.node(t, S), [z] = j, M = S.length + 1, A = P.next(C.slice(0, M)),
|
|
11403
|
+
var S = P.equals(w, C) ? P.parent(w) : P.common(w, C), L = y.range(t, w, C), j = y.node(t, S), [z] = j, M = S.length + 1, A = P.next(C.slice(0, M)), _ = dl(dl({}, n), {}, {
|
|
11404
11404
|
children: []
|
|
11405
11405
|
});
|
|
11406
|
-
J.insertNodes(t,
|
|
11406
|
+
J.insertNodes(t, _, {
|
|
11407
11407
|
at: A,
|
|
11408
11408
|
voids: s
|
|
11409
11409
|
}), J.moveNodes(t, {
|
|
@@ -12100,21 +12100,21 @@ const by = /* @__PURE__ */ Mn(vy), bl = (e) => typeof e == "object" && e != null
|
|
|
12100
12100
|
const U = window.getComputedStyle(q);
|
|
12101
12101
|
return { top: parseFloat(U.scrollMarginTop) || 0, right: parseFloat(U.scrollMarginRight) || 0, bottom: parseFloat(U.scrollMarginBottom) || 0, left: parseFloat(U.scrollMarginLeft) || 0 };
|
|
12102
12102
|
})(e);
|
|
12103
|
-
let
|
|
12103
|
+
let _ = o === "start" || o === "nearest" ? w - j : o === "end" ? S + M : w + E / 2 - j + M, T = l === "center" ? L + F / 2 - A + z : l === "end" ? C + z : L - A;
|
|
12104
12104
|
const N = [];
|
|
12105
12105
|
for (let q = 0; q < p.length; q++) {
|
|
12106
|
-
const U = p[q], { height: Y, width: ie, top: D, right: $, bottom: X, left:
|
|
12107
|
-
if (s === "if-needed" && w >= 0 && L >= 0 && S <= b && C <= f && w >= D && S <= X && L >=
|
|
12106
|
+
const U = p[q], { height: Y, width: ie, top: D, right: $, bottom: X, left: k } = U.getBoundingClientRect();
|
|
12107
|
+
if (s === "if-needed" && w >= 0 && L >= 0 && S <= b && C <= f && w >= D && S <= X && L >= k && C <= $)
|
|
12108
12108
|
return N;
|
|
12109
12109
|
const B = getComputedStyle(U), I = parseInt(B.borderLeftWidth, 10), R = parseInt(B.borderTopWidth, 10), W = parseInt(B.borderRightWidth, 10), ee = parseInt(B.borderBottomWidth, 10);
|
|
12110
12110
|
let H = 0, ne = 0;
|
|
12111
12111
|
const ce = "offsetWidth" in U ? U.offsetWidth - U.clientWidth - I - W : 0, Q = "offsetHeight" in U ? U.offsetHeight - U.clientHeight - R - ee : 0, De = "offsetWidth" in U ? U.offsetWidth === 0 ? 0 : ie / U.offsetWidth : 0, ge = "offsetHeight" in U ? U.offsetHeight === 0 ? 0 : Y / U.offsetHeight : 0;
|
|
12112
12112
|
if (m === U)
|
|
12113
|
-
H = o === "start" ?
|
|
12113
|
+
H = o === "start" ? _ : o === "end" ? _ - b : o === "nearest" ? hi(x, x + b, b, R, ee, x + _, x + _ + E, E) : _ - b / 2, ne = l === "start" ? T : l === "center" ? T - f / 2 : l === "end" ? T - f : hi(v, v + f, f, I, W, v + T, v + T + F, F), H = Math.max(0, H + x), ne = Math.max(0, ne + v);
|
|
12114
12114
|
else {
|
|
12115
|
-
H = o === "start" ?
|
|
12115
|
+
H = o === "start" ? _ - D - R : o === "end" ? _ - X + ee + Q : o === "nearest" ? hi(D, X, Y, R, ee + Q, _, _ + E, E) : _ - (D + Y / 2) + Q / 2, ne = l === "start" ? T - k - I : l === "center" ? T - (k + ie / 2) + ce / 2 : l === "end" ? T - $ + W + ce : hi(k, $, ie, I, W + ce, T, T + F, F);
|
|
12116
12116
|
const { scrollLeft: Fe, scrollTop: Ne } = U;
|
|
12117
|
-
H = ge === 0 ? 0 : Math.max(0, Math.min(Ne + H / ge, U.scrollHeight - Y / ge + Q)), ne = De === 0 ? 0 : Math.max(0, Math.min(Fe + ne / De, U.scrollWidth - ie / De + ce)),
|
|
12117
|
+
H = ge === 0 ? 0 : Math.max(0, Math.min(Ne + H / ge, U.scrollHeight - Y / ge + Q)), ne = De === 0 ? 0 : Math.max(0, Math.min(Fe + ne / De, U.scrollWidth - ie / De + ce)), _ += Ne - H, T += Fe - ne;
|
|
12118
12118
|
}
|
|
12119
12119
|
N.push({ el: U, top: H, left: ne });
|
|
12120
12120
|
}
|
|
@@ -12984,9 +12984,9 @@ var te = {
|
|
|
12984
12984
|
return null;
|
|
12985
12985
|
throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t));
|
|
12986
12986
|
}
|
|
12987
|
-
var A = te.toSlateNode(e, l),
|
|
12987
|
+
var A = te.toSlateNode(e, l), _ = te.findPath(e, A);
|
|
12988
12988
|
return {
|
|
12989
|
-
path:
|
|
12989
|
+
path: _,
|
|
12990
12990
|
offset: u
|
|
12991
12991
|
};
|
|
12992
12992
|
},
|
|
@@ -13169,7 +13169,7 @@ function $s(e, t, n) {
|
|
|
13169
13169
|
return P.equals(h, t.path);
|
|
13170
13170
|
});
|
|
13171
13171
|
if (!i || t.offset <= i.diff.start)
|
|
13172
|
-
return
|
|
13172
|
+
return Be.transform(t, n, {
|
|
13173
13173
|
affinity: "backward"
|
|
13174
13174
|
});
|
|
13175
13175
|
var {
|
|
@@ -13179,7 +13179,7 @@ function $s(e, t, n) {
|
|
|
13179
13179
|
var s = {
|
|
13180
13180
|
path: t.path,
|
|
13181
13181
|
offset: a.start
|
|
13182
|
-
}, o =
|
|
13182
|
+
}, o = Be.transform(s, n, {
|
|
13183
13183
|
affinity: "backward"
|
|
13184
13184
|
});
|
|
13185
13185
|
return o ? {
|
|
@@ -13190,7 +13190,7 @@ function $s(e, t, n) {
|
|
|
13190
13190
|
var l = {
|
|
13191
13191
|
path: t.path,
|
|
13192
13192
|
offset: t.offset - a.text.length + a.end - a.start
|
|
13193
|
-
}, u =
|
|
13193
|
+
}, u = Be.transform(l, n, {
|
|
13194
13194
|
affinity: "backward"
|
|
13195
13195
|
});
|
|
13196
13196
|
return u ? n.type === "split_node" && P.equals(n.path, t.path) && l.offset < n.position && a.start < n.position ? u : {
|
|
@@ -13336,19 +13336,19 @@ function C1(e) {
|
|
|
13336
13336
|
var A = pn.get(t);
|
|
13337
13337
|
if (pn.delete(t), A) {
|
|
13338
13338
|
var {
|
|
13339
|
-
selection:
|
|
13339
|
+
selection: _
|
|
13340
13340
|
} = t, T = Sl(t, A);
|
|
13341
|
-
T && (!
|
|
13341
|
+
T && (!_ || !Z.equals(T, _)) && J.select(t, T);
|
|
13342
13342
|
}
|
|
13343
13343
|
}, h = () => {
|
|
13344
13344
|
var A = mn.get(t);
|
|
13345
13345
|
if (mn.delete(t), !!A) {
|
|
13346
13346
|
if (A.at) {
|
|
13347
|
-
var
|
|
13348
|
-
if (!
|
|
13347
|
+
var _ = Be.isPoint(A.at) ? Is(t, A.at) : Sl(t, A.at);
|
|
13348
|
+
if (!_)
|
|
13349
13349
|
return;
|
|
13350
|
-
var T = y.range(t,
|
|
13351
|
-
(!t.selection || !Z.equals(t.selection, T)) && J.select(t,
|
|
13350
|
+
var T = y.range(t, _);
|
|
13351
|
+
(!t.selection || !Z.equals(t.selection, T)) && J.select(t, _);
|
|
13352
13352
|
}
|
|
13353
13353
|
A.run();
|
|
13354
13354
|
}
|
|
@@ -13362,7 +13362,7 @@ function C1(e) {
|
|
|
13362
13362
|
affinity: "forward"
|
|
13363
13363
|
});
|
|
13364
13364
|
nn.set(t, t.marks), x1("flush", mn.get(t), Ct.get(t));
|
|
13365
|
-
for (var
|
|
13365
|
+
for (var _ = F(), T; T = (N = Ct.get(t)) === null || N === void 0 ? void 0 : N[0]; ) {
|
|
13366
13366
|
var N, q, U = $t.get(t);
|
|
13367
13367
|
U !== void 0 && ($t.delete(t), t.marks = U), U && u === !1 && (u = null);
|
|
13368
13368
|
var Y = v1(T);
|
|
@@ -13371,14 +13371,14 @@ function C1(e) {
|
|
|
13371
13371
|
id: X
|
|
13372
13372
|
} = $;
|
|
13373
13373
|
return X !== T.id;
|
|
13374
|
-
})), h1(t, T) || (
|
|
13374
|
+
})), h1(t, T) || (_ = !1, mn.delete(t), nn.delete(t), i = "action", pn.delete(t), n.cancel(), r.cancel(), A == null || A.unref());
|
|
13375
13375
|
}
|
|
13376
13376
|
var ie = A == null ? void 0 : A.unref();
|
|
13377
13377
|
if (ie && !pn.get(t) && (!t.selection || !Z.equals(ie, t.selection)) && J.select(t, ie), E()) {
|
|
13378
13378
|
h();
|
|
13379
13379
|
return;
|
|
13380
13380
|
}
|
|
13381
|
-
|
|
13381
|
+
_ && n(), n.flush(), r.flush(), d();
|
|
13382
13382
|
var D = nn.get(t);
|
|
13383
13383
|
nn.delete(t), D !== void 0 && (t.marks = D, t.onChange());
|
|
13384
13384
|
}, p = (A) => {
|
|
@@ -13388,28 +13388,28 @@ function C1(e) {
|
|
|
13388
13388
|
}, g = (A) => {
|
|
13389
13389
|
Fn.set(t, !0), a && (clearTimeout(a), a = null);
|
|
13390
13390
|
}, f = function() {
|
|
13391
|
-
var
|
|
13391
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, T = Ps.get(t);
|
|
13392
13392
|
if (T) {
|
|
13393
|
-
if (F() ||
|
|
13393
|
+
if (F() || _) {
|
|
13394
13394
|
T.style.display = "none";
|
|
13395
13395
|
return;
|
|
13396
13396
|
}
|
|
13397
13397
|
T.style.removeProperty("display");
|
|
13398
13398
|
}
|
|
13399
|
-
}, b = (A,
|
|
13399
|
+
}, b = (A, _) => {
|
|
13400
13400
|
var T, N = (T = Ct.get(t)) !== null && T !== void 0 ? T : [];
|
|
13401
13401
|
Ct.set(t, N);
|
|
13402
13402
|
var q = oe.leaf(t, A), U = N.findIndex((D) => P.equals(D.path, A));
|
|
13403
13403
|
if (U < 0) {
|
|
13404
|
-
var Y = ff(q.text,
|
|
13404
|
+
var Y = ff(q.text, _);
|
|
13405
13405
|
Y && N.push({
|
|
13406
13406
|
path: A,
|
|
13407
|
-
diff:
|
|
13407
|
+
diff: _,
|
|
13408
13408
|
id: l++
|
|
13409
13409
|
}), f();
|
|
13410
13410
|
return;
|
|
13411
13411
|
}
|
|
13412
|
-
var ie = g1(q.text, N[U].diff,
|
|
13412
|
+
var ie = g1(q.text, N[U].diff, _);
|
|
13413
13413
|
if (!ie) {
|
|
13414
13414
|
N.splice(U, 1), f();
|
|
13415
13415
|
return;
|
|
@@ -13417,16 +13417,16 @@ function C1(e) {
|
|
|
13417
13417
|
N[U] = bi(bi({}, N[U]), {}, {
|
|
13418
13418
|
diff: ie
|
|
13419
13419
|
});
|
|
13420
|
-
}, v = function(
|
|
13420
|
+
}, v = function(_) {
|
|
13421
13421
|
var {
|
|
13422
13422
|
at: T
|
|
13423
13423
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
13424
13424
|
u = !1, pn.delete(t), n.cancel(), r.cancel(), E() && m(), mn.set(t, {
|
|
13425
13425
|
at: T,
|
|
13426
|
-
run:
|
|
13426
|
+
run: _
|
|
13427
13427
|
}), o = setTimeout(m);
|
|
13428
13428
|
}, x = (A) => {
|
|
13429
|
-
var
|
|
13429
|
+
var _;
|
|
13430
13430
|
s && (clearTimeout(s), s = null);
|
|
13431
13431
|
var {
|
|
13432
13432
|
inputType: T
|
|
@@ -13441,12 +13441,12 @@ function C1(e) {
|
|
|
13441
13441
|
if (!N && ie && (U = ie, N = te.toSlateRange(t, ie, {
|
|
13442
13442
|
exactMatch: !1,
|
|
13443
13443
|
suppressThrow: !0
|
|
13444
|
-
})), N = (
|
|
13444
|
+
})), N = (_ = N) !== null && _ !== void 0 ? _ : t.selection, !!N) {
|
|
13445
13445
|
var D = !0;
|
|
13446
13446
|
if (T.startsWith("delete")) {
|
|
13447
13447
|
if (Z.isExpanded(N)) {
|
|
13448
|
-
var [$, X] = Z.edges(N),
|
|
13449
|
-
if (
|
|
13448
|
+
var [$, X] = Z.edges(N), k = oe.leaf(t, $.path);
|
|
13449
|
+
if (k.text.length === $.offset && X.offset === 0) {
|
|
13450
13450
|
var B = y.next(t, {
|
|
13451
13451
|
at: $.path,
|
|
13452
13452
|
match: me.isText
|
|
@@ -13597,8 +13597,8 @@ function C1(e) {
|
|
|
13597
13597
|
at: N
|
|
13598
13598
|
});
|
|
13599
13599
|
if (P.equals(N.anchor.path, N.focus.path)) {
|
|
13600
|
-
var [
|
|
13601
|
-
start:
|
|
13600
|
+
var [Ae, Se] = Z.edges(N), V = {
|
|
13601
|
+
start: Ae.offset,
|
|
13602
13602
|
end: Se.offset,
|
|
13603
13603
|
text: ve
|
|
13604
13604
|
};
|
|
@@ -13606,11 +13606,11 @@ function C1(e) {
|
|
|
13606
13606
|
var se = u.start + u.text.search(/\S|$/), pe = V.start + V.text.search(/\S|$/);
|
|
13607
13607
|
pe === se + 1 && V.end === u.start + u.text.length ? (V.start -= 1, u = null, z()) : u = !1;
|
|
13608
13608
|
} else
|
|
13609
|
-
T === "insertText" ? u === null ? u = V : u && Z.isCollapsed(N) && u.end + u.text.length ===
|
|
13609
|
+
T === "insertText" ? u === null ? u = V : u && Z.isCollapsed(N) && u.end + u.text.length === Ae.offset ? u = bi(bi({}, u), {}, {
|
|
13610
13610
|
text: u.text + ve
|
|
13611
13611
|
}) : u = !1 : u = !1;
|
|
13612
13612
|
if (D) {
|
|
13613
|
-
b(
|
|
13613
|
+
b(Ae.path, V);
|
|
13614
13614
|
return;
|
|
13615
13615
|
}
|
|
13616
13616
|
}
|
|
@@ -13626,10 +13626,10 @@ function C1(e) {
|
|
|
13626
13626
|
}, w = () => E() || F(), C = () => i, S = (A) => {
|
|
13627
13627
|
pn.set(t, A), s && (clearTimeout(s), s = null);
|
|
13628
13628
|
var {
|
|
13629
|
-
selection:
|
|
13629
|
+
selection: _
|
|
13630
13630
|
} = t;
|
|
13631
13631
|
if (A) {
|
|
13632
|
-
var T = !
|
|
13632
|
+
var T = !_ || !P.equals(_.anchor.path, A.anchor.path), N = !_ || !P.equals(_.anchor.path.slice(0, -1), A.anchor.path.slice(0, -1));
|
|
13633
13633
|
(T && u || N) && (u = !1), (T || F()) && (s = setTimeout(m, D1));
|
|
13634
13634
|
}
|
|
13635
13635
|
}, L = () => {
|
|
@@ -13640,8 +13640,8 @@ function C1(e) {
|
|
|
13640
13640
|
E() || (o = setTimeout(m));
|
|
13641
13641
|
}, M = (A) => {
|
|
13642
13642
|
if (!(F() || E()) && A.some((T) => ko(t, T, A))) {
|
|
13643
|
-
var
|
|
13644
|
-
(
|
|
13643
|
+
var _;
|
|
13644
|
+
(_ = sf.get(t)) === null || _ === void 0 || _();
|
|
13645
13645
|
}
|
|
13646
13646
|
};
|
|
13647
13647
|
return {
|
|
@@ -14307,8 +14307,8 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
|
|
|
14307
14307
|
suppressThrow: !0
|
|
14308
14308
|
});
|
|
14309
14309
|
if (ve && Z.equals(ve, W)) {
|
|
14310
|
-
var
|
|
14311
|
-
if (!j.hasMarkPlaceholder || (
|
|
14310
|
+
var Ae;
|
|
14311
|
+
if (!j.hasMarkPlaceholder || (Ae = Pe) !== null && Ae !== void 0 && (Ae = Ae.parentElement) !== null && Ae !== void 0 && Ae.hasAttribute("data-slate-mark-placeholder"))
|
|
14312
14312
|
return;
|
|
14313
14313
|
}
|
|
14314
14314
|
}
|
|
@@ -14351,7 +14351,7 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
|
|
|
14351
14351
|
};
|
|
14352
14352
|
}
|
|
14353
14353
|
});
|
|
14354
|
-
var
|
|
14354
|
+
var _ = Re((B) => {
|
|
14355
14355
|
if (C(), !s && te.hasEditableTarget(f, B.target) && !dD(B, i)) {
|
|
14356
14356
|
var I;
|
|
14357
14357
|
if (z.current)
|
|
@@ -14398,8 +14398,8 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
|
|
|
14398
14398
|
});
|
|
14399
14399
|
if (!R || !Z.equals(R, ve)) {
|
|
14400
14400
|
ne = !1;
|
|
14401
|
-
var
|
|
14402
|
-
J.select(f, ve),
|
|
14401
|
+
var Ae = !H && f.selection && y.rangeRef(f, f.selection);
|
|
14402
|
+
J.select(f, ve), Ae && Pr.set(f, Ae);
|
|
14403
14403
|
}
|
|
14404
14404
|
}
|
|
14405
14405
|
}
|
|
@@ -14493,8 +14493,8 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
|
|
|
14493
14493
|
Pr.delete(f), V && (!f.selection || !Z.equals(f.selection, V)) && J.select(f, V);
|
|
14494
14494
|
}
|
|
14495
14495
|
}, [f, M, C, i, s, A]), T = Re((B) => {
|
|
14496
|
-
B == null ? (M.cancel(), A.cancel(), Si.delete(f), Sn.delete(f), x.current && fn && x.current.removeEventListener("beforeinput",
|
|
14497
|
-
}, [M, A, f,
|
|
14496
|
+
B == null ? (M.cancel(), A.cancel(), Si.delete(f), Sn.delete(f), x.current && fn && x.current.removeEventListener("beforeinput", _)) : fn && B.addEventListener("beforeinput", _), x.current = B;
|
|
14497
|
+
}, [M, A, f, _]);
|
|
14498
14498
|
Zr(() => {
|
|
14499
14499
|
var B = te.getWindow(f);
|
|
14500
14500
|
return B.document.addEventListener("selectionchange", A), () => {
|
|
@@ -14529,10 +14529,10 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
|
|
|
14529
14529
|
loose: !0
|
|
14530
14530
|
})) {
|
|
14531
14531
|
j.hasMarkPlaceholder = !0;
|
|
14532
|
-
var
|
|
14532
|
+
var k = Object.fromEntries(Object.keys(X).map((B) => [B, null]));
|
|
14533
14533
|
N.push(Ht(Ht(Ht({
|
|
14534
14534
|
[of]: !0
|
|
14535
|
-
},
|
|
14535
|
+
}, k), ie), {}, {
|
|
14536
14536
|
anchor: D,
|
|
14537
14537
|
focus: D
|
|
14538
14538
|
}));
|
|
@@ -15107,7 +15107,7 @@ var bD = function(t) {
|
|
|
15107
15107
|
g && pn.set(r, jl(r, g, u));
|
|
15108
15108
|
var f = mn.get(r);
|
|
15109
15109
|
if (f != null && f.at) {
|
|
15110
|
-
var b =
|
|
15110
|
+
var b = Be.isPoint(f == null ? void 0 : f.at) ? $s(r, f.at, u) : jl(r, f.at, u);
|
|
15111
15111
|
mn.set(r, b ? Hl(Hl({}, f), {}, {
|
|
15112
15112
|
at: b
|
|
15113
15113
|
}) : null);
|
|
@@ -15152,8 +15152,8 @@ var bD = function(t) {
|
|
|
15152
15152
|
}
|
|
15153
15153
|
for (var [M, A] of h)
|
|
15154
15154
|
if (M.current) {
|
|
15155
|
-
var [
|
|
15156
|
-
Yi.set(
|
|
15155
|
+
var [_] = y.node(r, M.current);
|
|
15156
|
+
Yi.set(_, A);
|
|
15157
15157
|
}
|
|
15158
15158
|
}, r.setFragmentData = (u) => {
|
|
15159
15159
|
var {
|
|
@@ -17255,10 +17255,10 @@ function gx(e, t, n) {
|
|
|
17255
17255
|
return C.enter("codeFencedFence"), Le(N) ? Ke(C, A, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : A(N);
|
|
17256
17256
|
}
|
|
17257
17257
|
function A(N) {
|
|
17258
|
-
return N === o ? (C.enter("codeFencedFenceSequence"),
|
|
17258
|
+
return N === o ? (C.enter("codeFencedFenceSequence"), _(N)) : L(N);
|
|
17259
17259
|
}
|
|
17260
|
-
function
|
|
17261
|
-
return N === o ? (j++, C.consume(N),
|
|
17260
|
+
function _(N) {
|
|
17261
|
+
return N === o ? (j++, C.consume(N), _) : j >= s ? (C.exit("codeFencedFenceSequence"), Le(N) ? Ke(C, T, "whitespace")(N) : T(N)) : L(N);
|
|
17262
17262
|
}
|
|
17263
17263
|
function T(N) {
|
|
17264
17264
|
return N === null || we(N) ? (C.exit("codeFencedFence"), S(N)) : L(N);
|
|
@@ -17903,104 +17903,104 @@ function Vx(e, t, n) {
|
|
|
17903
17903
|
const r = this;
|
|
17904
17904
|
let i, a, s, o, l;
|
|
17905
17905
|
return u;
|
|
17906
|
-
function u(
|
|
17907
|
-
return d(
|
|
17906
|
+
function u(k) {
|
|
17907
|
+
return d(k);
|
|
17908
17908
|
}
|
|
17909
|
-
function d(
|
|
17910
|
-
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(
|
|
17909
|
+
function d(k) {
|
|
17910
|
+
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(k), h;
|
|
17911
17911
|
}
|
|
17912
|
-
function h(
|
|
17913
|
-
return
|
|
17912
|
+
function h(k) {
|
|
17913
|
+
return k === 33 ? (e.consume(k), m) : k === 47 ? (e.consume(k), a = !0, f) : k === 63 ? (e.consume(k), i = 3, r.interrupt ? t : D) : Kt(k) ? (e.consume(k), s = String.fromCharCode(k), b) : n(k);
|
|
17914
17914
|
}
|
|
17915
|
-
function m(
|
|
17916
|
-
return
|
|
17915
|
+
function m(k) {
|
|
17916
|
+
return k === 45 ? (e.consume(k), i = 2, p) : k === 91 ? (e.consume(k), i = 5, o = 0, g) : Kt(k) ? (e.consume(k), i = 4, r.interrupt ? t : D) : n(k);
|
|
17917
17917
|
}
|
|
17918
|
-
function p(
|
|
17919
|
-
return
|
|
17918
|
+
function p(k) {
|
|
17919
|
+
return k === 45 ? (e.consume(k), r.interrupt ? t : D) : n(k);
|
|
17920
17920
|
}
|
|
17921
|
-
function g(
|
|
17921
|
+
function g(k) {
|
|
17922
17922
|
const B = "CDATA[";
|
|
17923
|
-
return
|
|
17923
|
+
return k === B.charCodeAt(o++) ? (e.consume(k), o === B.length ? r.interrupt ? t : A : g) : n(k);
|
|
17924
17924
|
}
|
|
17925
|
-
function f(
|
|
17926
|
-
return Kt(
|
|
17925
|
+
function f(k) {
|
|
17926
|
+
return Kt(k) ? (e.consume(k), s = String.fromCharCode(k), b) : n(k);
|
|
17927
17927
|
}
|
|
17928
|
-
function b(
|
|
17929
|
-
if (
|
|
17930
|
-
const B =
|
|
17931
|
-
return !B && !a && hc.includes(I) ? (i = 1, r.interrupt ? t(
|
|
17928
|
+
function b(k) {
|
|
17929
|
+
if (k === null || k === 47 || k === 62 || _t(k)) {
|
|
17930
|
+
const B = k === 47, I = s.toLowerCase();
|
|
17931
|
+
return !B && !a && hc.includes(I) ? (i = 1, r.interrupt ? t(k) : A(k)) : zx.includes(s.toLowerCase()) ? (i = 6, B ? (e.consume(k), v) : r.interrupt ? t(k) : A(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? x(k) : E(k));
|
|
17932
17932
|
}
|
|
17933
|
-
return
|
|
17933
|
+
return k === 45 || Lt(k) ? (e.consume(k), s += String.fromCharCode(k), b) : n(k);
|
|
17934
17934
|
}
|
|
17935
|
-
function v(
|
|
17936
|
-
return
|
|
17935
|
+
function v(k) {
|
|
17936
|
+
return k === 62 ? (e.consume(k), r.interrupt ? t : A) : n(k);
|
|
17937
17937
|
}
|
|
17938
|
-
function x(
|
|
17939
|
-
return Le(
|
|
17938
|
+
function x(k) {
|
|
17939
|
+
return Le(k) ? (e.consume(k), x) : z(k);
|
|
17940
17940
|
}
|
|
17941
|
-
function E(
|
|
17942
|
-
return
|
|
17941
|
+
function E(k) {
|
|
17942
|
+
return k === 47 ? (e.consume(k), z) : k === 58 || k === 95 || Kt(k) ? (e.consume(k), F) : Le(k) ? (e.consume(k), E) : z(k);
|
|
17943
17943
|
}
|
|
17944
|
-
function F(
|
|
17945
|
-
return
|
|
17944
|
+
function F(k) {
|
|
17945
|
+
return k === 45 || k === 46 || k === 58 || k === 95 || Lt(k) ? (e.consume(k), F) : w(k);
|
|
17946
17946
|
}
|
|
17947
|
-
function w(
|
|
17948
|
-
return
|
|
17947
|
+
function w(k) {
|
|
17948
|
+
return k === 61 ? (e.consume(k), C) : Le(k) ? (e.consume(k), w) : E(k);
|
|
17949
17949
|
}
|
|
17950
|
-
function C(
|
|
17951
|
-
return
|
|
17950
|
+
function C(k) {
|
|
17951
|
+
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, S) : Le(k) ? (e.consume(k), C) : L(k);
|
|
17952
17952
|
}
|
|
17953
|
-
function S(
|
|
17954
|
-
return
|
|
17953
|
+
function S(k) {
|
|
17954
|
+
return k === l ? (e.consume(k), l = null, j) : k === null || we(k) ? n(k) : (e.consume(k), S);
|
|
17955
17955
|
}
|
|
17956
|
-
function L(
|
|
17957
|
-
return
|
|
17956
|
+
function L(k) {
|
|
17957
|
+
return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || _t(k) ? w(k) : (e.consume(k), L);
|
|
17958
17958
|
}
|
|
17959
|
-
function j(
|
|
17960
|
-
return
|
|
17959
|
+
function j(k) {
|
|
17960
|
+
return k === 47 || k === 62 || Le(k) ? E(k) : n(k);
|
|
17961
17961
|
}
|
|
17962
|
-
function z(
|
|
17963
|
-
return
|
|
17962
|
+
function z(k) {
|
|
17963
|
+
return k === 62 ? (e.consume(k), M) : n(k);
|
|
17964
17964
|
}
|
|
17965
|
-
function M(
|
|
17966
|
-
return
|
|
17965
|
+
function M(k) {
|
|
17966
|
+
return k === null || we(k) ? A(k) : Le(k) ? (e.consume(k), M) : n(k);
|
|
17967
17967
|
}
|
|
17968
|
-
function A(
|
|
17969
|
-
return
|
|
17968
|
+
function A(k) {
|
|
17969
|
+
return k === 45 && i === 2 ? (e.consume(k), q) : k === 60 && i === 1 ? (e.consume(k), U) : k === 62 && i === 4 ? (e.consume(k), $) : k === 63 && i === 3 ? (e.consume(k), D) : k === 93 && i === 5 ? (e.consume(k), ie) : we(k) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Wx, X, _)(k)) : k === null || we(k) ? (e.exit("htmlFlowData"), _(k)) : (e.consume(k), A);
|
|
17970
17970
|
}
|
|
17971
|
-
function k
|
|
17972
|
-
return e.check(Ux, T, X)(
|
|
17971
|
+
function _(k) {
|
|
17972
|
+
return e.check(Ux, T, X)(k);
|
|
17973
17973
|
}
|
|
17974
|
-
function T(
|
|
17975
|
-
return e.enter("lineEnding"), e.consume(
|
|
17974
|
+
function T(k) {
|
|
17975
|
+
return e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), N;
|
|
17976
17976
|
}
|
|
17977
|
-
function N(
|
|
17978
|
-
return
|
|
17977
|
+
function N(k) {
|
|
17978
|
+
return k === null || we(k) ? _(k) : (e.enter("htmlFlowData"), A(k));
|
|
17979
17979
|
}
|
|
17980
|
-
function q(
|
|
17981
|
-
return
|
|
17980
|
+
function q(k) {
|
|
17981
|
+
return k === 45 ? (e.consume(k), D) : A(k);
|
|
17982
17982
|
}
|
|
17983
|
-
function U(
|
|
17984
|
-
return
|
|
17983
|
+
function U(k) {
|
|
17984
|
+
return k === 47 ? (e.consume(k), s = "", Y) : A(k);
|
|
17985
17985
|
}
|
|
17986
|
-
function Y(
|
|
17987
|
-
if (
|
|
17986
|
+
function Y(k) {
|
|
17987
|
+
if (k === 62) {
|
|
17988
17988
|
const B = s.toLowerCase();
|
|
17989
|
-
return hc.includes(B) ? (e.consume(
|
|
17989
|
+
return hc.includes(B) ? (e.consume(k), $) : A(k);
|
|
17990
17990
|
}
|
|
17991
|
-
return Kt(
|
|
17991
|
+
return Kt(k) && s.length < 8 ? (e.consume(k), s += String.fromCharCode(k), Y) : A(k);
|
|
17992
17992
|
}
|
|
17993
|
-
function ie(
|
|
17994
|
-
return
|
|
17993
|
+
function ie(k) {
|
|
17994
|
+
return k === 93 ? (e.consume(k), D) : A(k);
|
|
17995
17995
|
}
|
|
17996
|
-
function D(
|
|
17997
|
-
return
|
|
17996
|
+
function D(k) {
|
|
17997
|
+
return k === 62 ? (e.consume(k), $) : k === 45 && i === 2 ? (e.consume(k), D) : A(k);
|
|
17998
17998
|
}
|
|
17999
|
-
function $(
|
|
18000
|
-
return
|
|
17999
|
+
function $(k) {
|
|
18000
|
+
return k === null || we(k) ? (e.exit("htmlFlowData"), X(k)) : (e.consume(k), $);
|
|
18001
18001
|
}
|
|
18002
|
-
function X(
|
|
18003
|
-
return e.exit("htmlFlow"), t(
|
|
18002
|
+
function X(k) {
|
|
18003
|
+
return e.exit("htmlFlow"), t(k);
|
|
18004
18004
|
}
|
|
18005
18005
|
}
|
|
18006
18006
|
function Kx(e, t, n) {
|
|
@@ -18092,10 +18092,10 @@ function Gx(e, t, n) {
|
|
|
18092
18092
|
return D === 61 ? (e.consume(D), A) : we(D) ? (s = M, U(D)) : Le(D) ? (e.consume(D), M) : j(D);
|
|
18093
18093
|
}
|
|
18094
18094
|
function A(D) {
|
|
18095
|
-
return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), i = D,
|
|
18095
|
+
return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), i = D, _) : we(D) ? (s = A, U(D)) : Le(D) ? (e.consume(D), A) : (e.consume(D), T);
|
|
18096
18096
|
}
|
|
18097
|
-
function
|
|
18098
|
-
return D === i ? (e.consume(D), i = void 0, N) : D === null ? n(D) : we(D) ? (s =
|
|
18097
|
+
function _(D) {
|
|
18098
|
+
return D === i ? (e.consume(D), i = void 0, N) : D === null ? n(D) : we(D) ? (s = _, U(D)) : (e.consume(D), _);
|
|
18099
18099
|
}
|
|
18100
18100
|
function T(D) {
|
|
18101
18101
|
return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 || _t(D) ? j(D) : (e.consume(D), T);
|
|
@@ -18614,11 +18614,11 @@ function Fw(e, t, n) {
|
|
|
18614
18614
|
return Aw(s, M);
|
|
18615
18615
|
}
|
|
18616
18616
|
function g() {
|
|
18617
|
-
const { line: M, column: A, offset:
|
|
18617
|
+
const { line: M, column: A, offset: _, _index: T, _bufferIndex: N } = r;
|
|
18618
18618
|
return {
|
|
18619
18619
|
line: M,
|
|
18620
18620
|
column: A,
|
|
18621
|
-
offset:
|
|
18621
|
+
offset: _,
|
|
18622
18622
|
_index: T,
|
|
18623
18623
|
_bufferIndex: N
|
|
18624
18624
|
};
|
|
@@ -18644,8 +18644,8 @@ function Fw(e, t, n) {
|
|
|
18644
18644
|
we(M) ? (r.line++, r.column = 1, r.offset += M === -3 ? 2 : 1, z()) : M !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = M;
|
|
18645
18645
|
}
|
|
18646
18646
|
function E(M, A) {
|
|
18647
|
-
const
|
|
18648
|
-
return
|
|
18647
|
+
const _ = A || {};
|
|
18648
|
+
return _.type = M, _.start = g(), u.events.push(["enter", _, u]), o.push(_), _;
|
|
18649
18649
|
}
|
|
18650
18650
|
function F(M) {
|
|
18651
18651
|
const A = o.pop();
|
|
@@ -18658,8 +18658,8 @@ function Fw(e, t, n) {
|
|
|
18658
18658
|
A.restore();
|
|
18659
18659
|
}
|
|
18660
18660
|
function S(M, A) {
|
|
18661
|
-
return
|
|
18662
|
-
function
|
|
18661
|
+
return _;
|
|
18662
|
+
function _(T, N, q) {
|
|
18663
18663
|
let U, Y, ie, D;
|
|
18664
18664
|
return Array.isArray(T) ? X(T) : "tokenize" in T ? (
|
|
18665
18665
|
// @ts-expect-error Looks like a construct.
|
|
@@ -18678,9 +18678,9 @@ function Fw(e, t, n) {
|
|
|
18678
18678
|
}
|
|
18679
18679
|
}
|
|
18680
18680
|
function X(R) {
|
|
18681
|
-
return U = R, Y = 0, R.length === 0 ? q :
|
|
18681
|
+
return U = R, Y = 0, R.length === 0 ? q : k(R[Y]);
|
|
18682
18682
|
}
|
|
18683
|
-
function
|
|
18683
|
+
function k(R) {
|
|
18684
18684
|
return W;
|
|
18685
18685
|
function W(ee) {
|
|
18686
18686
|
return D = j(), ie = R, R.partial || (u.currentConstruct = R), R.name && u.parser.constructs.disable.null.includes(R.name) ? I() : R.tokenize.call(
|
|
@@ -18698,7 +18698,7 @@ function Fw(e, t, n) {
|
|
|
18698
18698
|
return M(ie, D), N;
|
|
18699
18699
|
}
|
|
18700
18700
|
function I(R) {
|
|
18701
|
-
return D.restore(), ++Y < U.length ?
|
|
18701
|
+
return D.restore(), ++Y < U.length ? k(U[Y]) : q;
|
|
18702
18702
|
}
|
|
18703
18703
|
}
|
|
18704
18704
|
}
|
|
@@ -18711,13 +18711,13 @@ function Fw(e, t, n) {
|
|
|
18711
18711
|
), M.resolveTo && (u.events = M.resolveTo(u.events, u));
|
|
18712
18712
|
}
|
|
18713
18713
|
function j() {
|
|
18714
|
-
const M = g(), A = u.previous,
|
|
18714
|
+
const M = g(), A = u.previous, _ = u.currentConstruct, T = u.events.length, N = Array.from(o);
|
|
18715
18715
|
return {
|
|
18716
18716
|
restore: q,
|
|
18717
18717
|
from: T
|
|
18718
18718
|
};
|
|
18719
18719
|
function q() {
|
|
18720
|
-
r = M, u.previous = A, u.currentConstruct =
|
|
18720
|
+
r = M, u.previous = A, u.currentConstruct = _, u.events.length = T, o = N, z();
|
|
18721
18721
|
}
|
|
18722
18722
|
}
|
|
18723
18723
|
function z() {
|
|
@@ -18968,7 +18968,7 @@ function Kw(e) {
|
|
|
18968
18968
|
listOrdered: a(Ge, h),
|
|
18969
18969
|
listUnordered: a(Ge),
|
|
18970
18970
|
paragraph: a(rt),
|
|
18971
|
-
reference:
|
|
18971
|
+
reference: k,
|
|
18972
18972
|
referenceString: s,
|
|
18973
18973
|
resourceDestinationString: s,
|
|
18974
18974
|
resourceTitleString: s,
|
|
@@ -19003,7 +19003,7 @@ function Kw(e) {
|
|
|
19003
19003
|
emphasis: l(),
|
|
19004
19004
|
hardBreakEscape: l(A),
|
|
19005
19005
|
hardBreakTrailing: l(A),
|
|
19006
|
-
htmlFlow: l(
|
|
19006
|
+
htmlFlow: l(_),
|
|
19007
19007
|
htmlFlowData: z,
|
|
19008
19008
|
htmlText: l(T),
|
|
19009
19009
|
htmlTextData: z,
|
|
@@ -19247,7 +19247,7 @@ function Kw(e) {
|
|
|
19247
19247
|
function j(V) {
|
|
19248
19248
|
const pe = this.stack[this.stack.length - 1].children;
|
|
19249
19249
|
let be = pe[pe.length - 1];
|
|
19250
|
-
(!be || be.type !== "text") && (be =
|
|
19250
|
+
(!be || be.type !== "text") && (be = Ae(), be.position = {
|
|
19251
19251
|
start: hn(V.start),
|
|
19252
19252
|
// @ts-expect-error: we’ll add `end` later.
|
|
19253
19253
|
end: void 0
|
|
@@ -19269,7 +19269,7 @@ function Kw(e) {
|
|
|
19269
19269
|
function A() {
|
|
19270
19270
|
this.data.atHardBreak = !0;
|
|
19271
19271
|
}
|
|
19272
|
-
function
|
|
19272
|
+
function _() {
|
|
19273
19273
|
const V = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19274
19274
|
se.value = V;
|
|
19275
19275
|
}
|
|
@@ -19322,7 +19322,7 @@ function Kw(e) {
|
|
|
19322
19322
|
function X() {
|
|
19323
19323
|
this.data.inReference = void 0;
|
|
19324
19324
|
}
|
|
19325
|
-
function
|
|
19325
|
+
function k() {
|
|
19326
19326
|
this.data.referenceType = "collapsed";
|
|
19327
19327
|
}
|
|
19328
19328
|
function B(V) {
|
|
@@ -19453,7 +19453,7 @@ function Kw(e) {
|
|
|
19453
19453
|
children: []
|
|
19454
19454
|
};
|
|
19455
19455
|
}
|
|
19456
|
-
function
|
|
19456
|
+
function Ae() {
|
|
19457
19457
|
return {
|
|
19458
19458
|
type: "text",
|
|
19459
19459
|
value: ""
|
|
@@ -20512,7 +20512,7 @@ const EC = ({
|
|
|
20512
20512
|
lastKey: z,
|
|
20513
20513
|
hasInteracted: M,
|
|
20514
20514
|
hasLoaded: A,
|
|
20515
|
-
mentionPopover:
|
|
20515
|
+
mentionPopover: _
|
|
20516
20516
|
} = E, T = ($) => {
|
|
20517
20517
|
const X = $ || Gi[0];
|
|
20518
20518
|
$ && F([{ type: "tabbableOption", value: X }]);
|
|
@@ -20546,7 +20546,7 @@ const EC = ({
|
|
|
20546
20546
|
de(() => {
|
|
20547
20547
|
const $ = (X) => {
|
|
20548
20548
|
var I;
|
|
20549
|
-
const
|
|
20549
|
+
const k = X, B = ((I = k == null ? void 0 : k.detail) == null ? void 0 : I.id) || null;
|
|
20550
20550
|
B && ie(B);
|
|
20551
20551
|
};
|
|
20552
20552
|
return window.addEventListener("focusEditor", $), () => {
|
|
@@ -20563,22 +20563,22 @@ const EC = ({
|
|
|
20563
20563
|
let X = An(C);
|
|
20564
20564
|
if (X.includes("<")) {
|
|
20565
20565
|
zr.prototype.escape = (B) => B;
|
|
20566
|
-
const
|
|
20567
|
-
|
|
20566
|
+
const k = new zr();
|
|
20567
|
+
k.addRule("br", {
|
|
20568
20568
|
filter: ["br"],
|
|
20569
20569
|
replacement: (B) => B + `
|
|
20570
20570
|
|
|
20571
20571
|
`
|
|
20572
|
-
}), X =
|
|
20572
|
+
}), X = k.turndown(X);
|
|
20573
20573
|
}
|
|
20574
20574
|
o && o.mentions && (X = await Uc({
|
|
20575
20575
|
text: X,
|
|
20576
20576
|
template: `[${zs}{{name}}]({{id}})`,
|
|
20577
20577
|
mentions: o.mentions,
|
|
20578
20578
|
listMembers: m || (() => Promise.resolve([]))
|
|
20579
|
-
})), Qw(X, (
|
|
20579
|
+
})), Qw(X, (k) => {
|
|
20580
20580
|
F([
|
|
20581
|
-
{ type: "initialValue", value:
|
|
20581
|
+
{ type: "initialValue", value: k },
|
|
20582
20582
|
{ type: "editorKey", value: C.toString() }
|
|
20583
20583
|
]), setTimeout(() => {
|
|
20584
20584
|
F([{ type: "stringValue", value: vc(Y) }]);
|
|
@@ -20601,8 +20601,8 @@ const EC = ({
|
|
|
20601
20601
|
const D = Rc(() => {
|
|
20602
20602
|
tC({
|
|
20603
20603
|
editor: Y,
|
|
20604
|
-
isShowing:
|
|
20605
|
-
numberOfUsers:
|
|
20604
|
+
isShowing: _.show,
|
|
20605
|
+
numberOfUsers: _.numberOfUsers,
|
|
20606
20606
|
listMembers: m,
|
|
20607
20607
|
dispatch: F
|
|
20608
20608
|
});
|
|
@@ -20626,9 +20626,9 @@ const EC = ({
|
|
|
20626
20626
|
editor: Y,
|
|
20627
20627
|
initialValue: S,
|
|
20628
20628
|
onChange: ($) => {
|
|
20629
|
-
if (Y.operations.some((
|
|
20630
|
-
const
|
|
20631
|
-
g(
|
|
20629
|
+
if (Y.operations.some((k) => k.type !== "set_selection")) {
|
|
20630
|
+
const k = rC($);
|
|
20631
|
+
g(k), F([{ type: "stringValue", value: vc(Y) }]), M || F([{ type: "hasInteracted", value: !0 }]), D(), d && console.log({ serialized: k, json: $ });
|
|
20632
20632
|
}
|
|
20633
20633
|
},
|
|
20634
20634
|
...l,
|
|
@@ -20644,10 +20644,10 @@ const EC = ({
|
|
|
20644
20644
|
tabIndex: 0,
|
|
20645
20645
|
onKeyDown: ($) => {
|
|
20646
20646
|
if ($.key === "Enter") {
|
|
20647
|
-
|
|
20647
|
+
_.show && ($.preventDefault(), $.stopPropagation(), If(Y, _, F, N));
|
|
20648
20648
|
const { selection: X } = Y;
|
|
20649
20649
|
if (X) {
|
|
20650
|
-
const
|
|
20650
|
+
const k = Z.isCollapsed(X), [B, I] = y.node(Y, X, { depth: 1 });
|
|
20651
20651
|
let R = B, W = R.type;
|
|
20652
20652
|
const ee = R.children[0];
|
|
20653
20653
|
if (ee && [G.ol, G.ul].includes(ee.type) && (R = ee, W = ee.type), R && he.isElement(R) && W !== G.paragraph) {
|
|
@@ -20655,7 +20655,7 @@ const EC = ({
|
|
|
20655
20655
|
$.stopPropagation(), $.preventDefault(), J.insertNodes(Y, v);
|
|
20656
20656
|
return;
|
|
20657
20657
|
}
|
|
20658
|
-
if (
|
|
20658
|
+
if (k) {
|
|
20659
20659
|
const [H, ne] = y.parent(Y, X, {
|
|
20660
20660
|
edge: "end"
|
|
20661
20661
|
}), Q = H.type;
|
|
@@ -20684,20 +20684,20 @@ const EC = ({
|
|
|
20684
20684
|
}
|
|
20685
20685
|
}
|
|
20686
20686
|
} else if ($.key === "Escape") {
|
|
20687
|
-
if (
|
|
20687
|
+
if (_.show) {
|
|
20688
20688
|
$.preventDefault(), $.stopPropagation(), F([
|
|
20689
|
-
{ type: "mentionPopover", value: { ...
|
|
20689
|
+
{ type: "mentionPopover", value: { ..._, show: !1 } }
|
|
20690
20690
|
]);
|
|
20691
20691
|
return;
|
|
20692
20692
|
}
|
|
20693
|
-
} else if (["ArrowUp", "ArrowDown"].includes($.key) &&
|
|
20693
|
+
} else if (["ArrowUp", "ArrowDown"].includes($.key) && _.show) {
|
|
20694
20694
|
$.preventDefault(), $.stopPropagation();
|
|
20695
|
-
const { selectedUser: X, possibleUsers:
|
|
20695
|
+
const { selectedUser: X, possibleUsers: k } = _;
|
|
20696
20696
|
let B = $.key === "ArrowUp" ? X - 1 : X + 1;
|
|
20697
|
-
B < 0 && (B =
|
|
20697
|
+
B < 0 && (B = k.length - 1), B >= k.length + 1 && (B = 0), F([
|
|
20698
20698
|
{
|
|
20699
20699
|
type: "mentionPopover",
|
|
20700
|
-
value: { ...
|
|
20700
|
+
value: { ..._, selectedUser: B }
|
|
20701
20701
|
}
|
|
20702
20702
|
]);
|
|
20703
20703
|
}
|
|
@@ -20719,8 +20719,8 @@ const EC = ({
|
|
|
20719
20719
|
anchor: j,
|
|
20720
20720
|
focus: j
|
|
20721
20721
|
});
|
|
20722
|
-
} catch (
|
|
20723
|
-
const B =
|
|
20722
|
+
} catch (k) {
|
|
20723
|
+
const B = k.message;
|
|
20724
20724
|
b(`Error focusing editor: ${B}`);
|
|
20725
20725
|
}
|
|
20726
20726
|
}
|
|
@@ -20861,7 +20861,7 @@ function _C({
|
|
|
20861
20861
|
}
|
|
20862
20862
|
),
|
|
20863
20863
|
/* @__PURE__ */ c.jsx(
|
|
20864
|
-
|
|
20864
|
+
Te,
|
|
20865
20865
|
{
|
|
20866
20866
|
onClick: () => f.current && f.current.click(),
|
|
20867
20867
|
variant: "secondary",
|
|
@@ -20967,9 +20967,9 @@ const FC = ({
|
|
|
20967
20967
|
] }) }),
|
|
20968
20968
|
/* @__PURE__ */ c.jsx(on, {}),
|
|
20969
20969
|
/* @__PURE__ */ c.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
20970
|
-
/* @__PURE__ */ c.jsx(
|
|
20971
|
-
/* @__PURE__ */ c.jsx(
|
|
20972
|
-
] }) : /* @__PURE__ */ c.jsx(
|
|
20970
|
+
/* @__PURE__ */ c.jsx(Te, { variant: "secondary", onClick: x, children: b({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
20971
|
+
/* @__PURE__ */ c.jsx(Te, { onClick: E, children: b({ id: "inviteForm_ctaDone" }) })
|
|
20972
|
+
] }) : /* @__PURE__ */ c.jsx(Te, { onClick: x, children: b({ id: "inviteForm_ctaTryAgain" }) }) })
|
|
20973
20973
|
] }) : /* @__PURE__ */ c.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ c.jsxs(
|
|
20974
20974
|
"form",
|
|
20975
20975
|
{
|
|
@@ -20994,7 +20994,7 @@ const FC = ({
|
|
|
20994
20994
|
getLabel: (F, w, C) => /* @__PURE__ */ c.jsxs("div", { className: "email text-medium", children: [
|
|
20995
20995
|
/* @__PURE__ */ c.jsx("div", { "data-tag-item": !0, children: F }),
|
|
20996
20996
|
/* @__PURE__ */ c.jsx(
|
|
20997
|
-
|
|
20997
|
+
Te,
|
|
20998
20998
|
{
|
|
20999
20999
|
variant: "tertiary",
|
|
21000
21000
|
size: "small",
|
|
@@ -21011,7 +21011,7 @@ const FC = ({
|
|
|
21011
21011
|
)
|
|
21012
21012
|
] }),
|
|
21013
21013
|
/* @__PURE__ */ c.jsx(on, {}),
|
|
21014
|
-
/* @__PURE__ */ c.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ c.jsx(
|
|
21014
|
+
/* @__PURE__ */ c.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ c.jsx(Te, { className: "sendEmailsButton", disabled: m, children: n }) })
|
|
21015
21015
|
]
|
|
21016
21016
|
}
|
|
21017
21017
|
) });
|
|
@@ -21742,7 +21742,7 @@ const NC = ({
|
|
|
21742
21742
|
return /* @__PURE__ */ c.jsxs(Gt, { variant: "muted", icon: e, children: [
|
|
21743
21743
|
/* @__PURE__ */ c.jsx("p", { children: t || s({ id: `${Zs}placeholder_description` }) }),
|
|
21744
21744
|
i && /* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(
|
|
21745
|
-
|
|
21745
|
+
Te,
|
|
21746
21746
|
{
|
|
21747
21747
|
href: r,
|
|
21748
21748
|
variant: "secondary",
|
|
@@ -21817,7 +21817,7 @@ const NC = ({
|
|
|
21817
21817
|
/* @__PURE__ */ c.jsxs("div", { className: K("edit-section-header", { "no-title": !s }), children: [
|
|
21818
21818
|
s && /* @__PURE__ */ c.jsx("h2", { className: "edit-section-header-title", children: a }),
|
|
21819
21819
|
f && /* @__PURE__ */ c.jsx(
|
|
21820
|
-
|
|
21820
|
+
Te,
|
|
21821
21821
|
{
|
|
21822
21822
|
href: i,
|
|
21823
21823
|
variant: "tertiary",
|
|
@@ -22464,7 +22464,7 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
|
|
|
22464
22464
|
...b,
|
|
22465
22465
|
children: [
|
|
22466
22466
|
m ? re.createElement(
|
|
22467
|
-
d ?
|
|
22467
|
+
d ? Te : "a",
|
|
22468
22468
|
m,
|
|
22469
22469
|
s.formatMessage({ id: h })
|
|
22470
22470
|
) : n && o.order && g ? /* @__PURE__ */ c.jsxs("button", { ...x, children: [
|
|
@@ -23073,7 +23073,7 @@ const ea = ({
|
|
|
23073
23073
|
className: t = "",
|
|
23074
23074
|
...n
|
|
23075
23075
|
}) => /* @__PURE__ */ c.jsx(
|
|
23076
|
-
|
|
23076
|
+
Te,
|
|
23077
23077
|
{
|
|
23078
23078
|
className: K("discussion-button", t),
|
|
23079
23079
|
variant: "tertiary",
|
|
@@ -23154,7 +23154,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23154
23154
|
showDivider: z = !1,
|
|
23155
23155
|
showSuccessMessage: M = !0,
|
|
23156
23156
|
showPostType: A = !1,
|
|
23157
|
-
postCategories:
|
|
23157
|
+
postCategories: _ = []
|
|
23158
23158
|
} = i || {}, {
|
|
23159
23159
|
onChange: T = () => {
|
|
23160
23160
|
},
|
|
@@ -23174,13 +23174,13 @@ const nt = "discussion_form_", ma = ({
|
|
|
23174
23174
|
props: X = {
|
|
23175
23175
|
create: { projectNames: ["questions-answers"] }
|
|
23176
23176
|
}
|
|
23177
|
-
} = d, [
|
|
23177
|
+
} = d, [k, B] = ue({
|
|
23178
23178
|
title: C && C.text || "",
|
|
23179
23179
|
body: w && w.text || S && S.text || "",
|
|
23180
23180
|
categories: ""
|
|
23181
23181
|
}), [I, R] = ue(l.error || !1), [W, ee] = ue(!1);
|
|
23182
23182
|
if (de(() => {
|
|
23183
|
-
u && !w && S && S !==
|
|
23183
|
+
u && !w && S && S !== k.body && B({ ...k, body: S.text || "" });
|
|
23184
23184
|
}, [S]), v)
|
|
23185
23185
|
return /* @__PURE__ */ c.jsx(
|
|
23186
23186
|
zt,
|
|
@@ -23190,19 +23190,19 @@ const nt = "discussion_form_", ma = ({
|
|
|
23190
23190
|
}
|
|
23191
23191
|
);
|
|
23192
23192
|
const H = (ve) => {
|
|
23193
|
-
B({ ...
|
|
23194
|
-
let
|
|
23195
|
-
!g || !g.id ?
|
|
23193
|
+
B({ ...k, body: ve }), T({ body: ve });
|
|
23194
|
+
let Ae;
|
|
23195
|
+
!g || !g.id ? Ae = It(
|
|
23196
23196
|
p.formatMessage,
|
|
23197
23197
|
`${nt}error_loggedOut`,
|
|
23198
23198
|
n.type,
|
|
23199
23199
|
"action"
|
|
23200
|
-
) : r ? s > 0 && ve.length >= s && (
|
|
23200
|
+
) : r ? s > 0 && ve.length >= s && (Ae = `${nt}error_tooLong`) : Ae = It(
|
|
23201
23201
|
p.formatMessage,
|
|
23202
23202
|
`${nt}error_noPermission`,
|
|
23203
23203
|
n.type,
|
|
23204
23204
|
"action"
|
|
23205
|
-
),
|
|
23205
|
+
), Ae ? R(Ae) : I && R(!1);
|
|
23206
23206
|
};
|
|
23207
23207
|
let ne = `${n.type}-form`;
|
|
23208
23208
|
if (n.type === "response" || n.type === "reply") {
|
|
@@ -23216,46 +23216,46 @@ const nt = "discussion_form_", ma = ({
|
|
|
23216
23216
|
xi && clearTimeout(xi), ee("submitting");
|
|
23217
23217
|
const ve = window.location.pathname;
|
|
23218
23218
|
try {
|
|
23219
|
-
let
|
|
23219
|
+
let Ae;
|
|
23220
23220
|
switch (n.type) {
|
|
23221
23221
|
case "post":
|
|
23222
|
-
|
|
23223
|
-
title:
|
|
23224
|
-
content:
|
|
23225
|
-
categories:
|
|
23222
|
+
Ae = await N({
|
|
23223
|
+
title: k.title,
|
|
23224
|
+
content: k.body,
|
|
23225
|
+
categories: k.categories
|
|
23226
23226
|
});
|
|
23227
23227
|
break;
|
|
23228
23228
|
case "question":
|
|
23229
|
-
|
|
23230
|
-
title:
|
|
23229
|
+
Ae = await N({
|
|
23230
|
+
title: k.body,
|
|
23231
23231
|
authorId: g && g.id,
|
|
23232
23232
|
...X == null ? void 0 : X.create
|
|
23233
23233
|
});
|
|
23234
23234
|
break;
|
|
23235
23235
|
case "response":
|
|
23236
|
-
|
|
23236
|
+
Ae = await N(
|
|
23237
23237
|
{ questionSlug: n.slugs.question },
|
|
23238
|
-
{ body:
|
|
23238
|
+
{ body: k.body, authorId: g && g.id, contentPath: ve }
|
|
23239
23239
|
);
|
|
23240
23240
|
break;
|
|
23241
23241
|
case "reply":
|
|
23242
|
-
|
|
23242
|
+
Ae = await N(
|
|
23243
23243
|
{ questionSlug: n.slugs.question, answerSlug: n.slugs.answer },
|
|
23244
|
-
{ body:
|
|
23244
|
+
{ body: k.body, authorId: g && g.id, contentPath: ve }
|
|
23245
23245
|
);
|
|
23246
23246
|
break;
|
|
23247
23247
|
default:
|
|
23248
23248
|
break;
|
|
23249
23249
|
}
|
|
23250
|
-
await qh(1e3), Y && await Y(
|
|
23250
|
+
await qh(1e3), Y && await Y(Ae), xi = setTimeout(() => {
|
|
23251
23251
|
B({ title: "", body: "", categories: "" }), ee("submitted"), b(
|
|
23252
23252
|
It(p.formatMessage, `${nt}success`, n.type, "action")
|
|
23253
23253
|
);
|
|
23254
23254
|
const Se = new Event(ut.DISCUSSION_FORM_SUBMITTED);
|
|
23255
23255
|
document.dispatchEvent(Se), Q();
|
|
23256
23256
|
}, 500);
|
|
23257
|
-
} catch (
|
|
23258
|
-
const Se =
|
|
23257
|
+
} catch (Ae) {
|
|
23258
|
+
const Se = Ae;
|
|
23259
23259
|
let V = `${nt}error`;
|
|
23260
23260
|
Se != null && Se.message.includes("entry already exists") && (V = It(
|
|
23261
23261
|
p.formatMessage,
|
|
@@ -23273,7 +23273,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23273
23273
|
xi = setTimeout(() => {
|
|
23274
23274
|
R(!1), ee(!1), b("");
|
|
23275
23275
|
}, 5e3);
|
|
23276
|
-
}, De = !
|
|
23276
|
+
}, De = !k.title || !Qo(k.title), ge = !k.body || !Qo(k.body);
|
|
23277
23277
|
let Fe = ge;
|
|
23278
23278
|
C && (Fe = De && ge);
|
|
23279
23279
|
const Ne = W === "submitting", Pe = [
|
|
@@ -23290,7 +23290,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23290
23290
|
component: EC,
|
|
23291
23291
|
props: {
|
|
23292
23292
|
id: `${ne}-input`,
|
|
23293
|
-
value: W === "submitting" && !I ? "" :
|
|
23293
|
+
value: W === "submitting" && !I ? "" : k.body,
|
|
23294
23294
|
placeholder: a || It(
|
|
23295
23295
|
p.formatMessage,
|
|
23296
23296
|
`${nt}placeholder`,
|
|
@@ -23327,7 +23327,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23327
23327
|
},
|
|
23328
23328
|
className: "post-type filters",
|
|
23329
23329
|
label: p.formatMessage({ id: `${nt}postType_label` }),
|
|
23330
|
-
options:
|
|
23330
|
+
options: _.map((ve) => ({
|
|
23331
23331
|
id: ve.slug,
|
|
23332
23332
|
label: ve.name
|
|
23333
23333
|
})),
|
|
@@ -23338,7 +23338,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23338
23338
|
],
|
|
23339
23339
|
functions: {
|
|
23340
23340
|
onChange: (ve) => {
|
|
23341
|
-
B({ ...
|
|
23341
|
+
B((Ae) => ({ ...Ae, categories: ve })), T({ postType: ve });
|
|
23342
23342
|
}
|
|
23343
23343
|
}
|
|
23344
23344
|
}), C && Pe.unshift({
|
|
@@ -23351,7 +23351,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23351
23351
|
placeholder: p.formatMessage({ id: `${nt}titleField_placeholder` }),
|
|
23352
23352
|
functions: {
|
|
23353
23353
|
onChange: (ve) => {
|
|
23354
|
-
B({ ...
|
|
23354
|
+
B({ ...k, title: ve }), T({ title: ve });
|
|
23355
23355
|
}
|
|
23356
23356
|
},
|
|
23357
23357
|
validation: [
|
|
@@ -23362,7 +23362,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23362
23362
|
]
|
|
23363
23363
|
});
|
|
23364
23364
|
let He = !g || !g.id || !r || Fe || Ne;
|
|
23365
|
-
return w && (C ? He = He ||
|
|
23365
|
+
return w && (C ? He = He || k.body === w.text && k.title === C.text : He = He || k.body === w.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
23366
23366
|
/* @__PURE__ */ c.jsxs(
|
|
23367
23367
|
Ln,
|
|
23368
23368
|
{
|
|
@@ -23379,7 +23379,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23379
23379
|
functions: {
|
|
23380
23380
|
onSuccess: async (ve) => {
|
|
23381
23381
|
if (w) {
|
|
23382
|
-
ee("submitting"), q(
|
|
23382
|
+
ee("submitting"), q(k);
|
|
23383
23383
|
return;
|
|
23384
23384
|
}
|
|
23385
23385
|
await ce();
|
|
@@ -23411,7 +23411,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23411
23411
|
className: "gtm-trackable",
|
|
23412
23412
|
"data-gtm-event-context": m,
|
|
23413
23413
|
"data-gtm-event-type": `cancel-${n.type}-click`,
|
|
23414
|
-
disabled: !l.cancel && (!g || !g.id || !
|
|
23414
|
+
disabled: !l.cancel && (!g || !g.id || !k.body),
|
|
23415
23415
|
text: o != null && o.cancel ? o == null ? void 0 : o.cancel : p.formatMessage({ id: `${nt}cancel` })
|
|
23416
23416
|
},
|
|
23417
23417
|
gtm: { context: m, event: `${n.type}-form` },
|
|
@@ -23570,7 +23570,7 @@ const XC = ({
|
|
|
23570
23570
|
ds = setTimeout(() => {
|
|
23571
23571
|
v([{ type: "showLikers", value: !1 }]);
|
|
23572
23572
|
}, 500);
|
|
23573
|
-
},
|
|
23573
|
+
}, _ = () => {
|
|
23574
23574
|
ds && clearTimeout(ds);
|
|
23575
23575
|
};
|
|
23576
23576
|
return re.createElement(
|
|
@@ -23581,7 +23581,7 @@ const XC = ({
|
|
|
23581
23581
|
T.key === "Escape" && v([{ type: "showLikers", value: !1 }]);
|
|
23582
23582
|
},
|
|
23583
23583
|
onMouseEnter: () => {
|
|
23584
|
-
|
|
23584
|
+
_(), v([{ type: "showLikers", value: !0 }]);
|
|
23585
23585
|
},
|
|
23586
23586
|
onMouseLeave: () => {
|
|
23587
23587
|
A();
|
|
@@ -23630,12 +23630,12 @@ const XC = ({
|
|
|
23630
23630
|
element: "button",
|
|
23631
23631
|
className: "tertiary small icon navigation_arrow",
|
|
23632
23632
|
onFocus: () => {
|
|
23633
|
-
|
|
23633
|
+
_();
|
|
23634
23634
|
},
|
|
23635
23635
|
onBlur: () => A,
|
|
23636
23636
|
onClick: (T) => {
|
|
23637
23637
|
var q;
|
|
23638
|
-
T.preventDefault(), T.stopPropagation(),
|
|
23638
|
+
T.preventDefault(), T.stopPropagation(), _(), v([{ type: "showLikers", value: !0 }]);
|
|
23639
23639
|
const N = (q = T.currentTarget.nextSibling) == null ? void 0 : q.childNodes[0];
|
|
23640
23640
|
if (N) {
|
|
23641
23641
|
const U = N.querySelector(
|
|
@@ -23674,7 +23674,7 @@ const XC = ({
|
|
|
23674
23674
|
href: T.id ? `/profiles/${T.id}` : void 0,
|
|
23675
23675
|
gtmContext: "Likes",
|
|
23676
23676
|
gtmType: "liked-name-click",
|
|
23677
|
-
onFocus: () =>
|
|
23677
|
+
onFocus: () => _(),
|
|
23678
23678
|
onKeyDown: L,
|
|
23679
23679
|
...q,
|
|
23680
23680
|
children: T.name ? T.name : /* @__PURE__ */ c.jsx("span", { className: "deleted-user", children: g.formatMessage({ id: "member_deleted" }) })
|
|
@@ -23682,11 +23682,11 @@ const XC = ({
|
|
|
23682
23682
|
) }, T.id || window.btoa(T.name || ""));
|
|
23683
23683
|
}),
|
|
23684
23684
|
/* @__PURE__ */ c.jsx("li", { "data-index": j.length, className: "show-all", children: /* @__PURE__ */ c.jsx(
|
|
23685
|
-
|
|
23685
|
+
Te,
|
|
23686
23686
|
{
|
|
23687
23687
|
variant: "tertiary",
|
|
23688
23688
|
onClick: () => {
|
|
23689
|
-
|
|
23689
|
+
_(), A(), v([{ type: "showLikesModal", value: !0 }]);
|
|
23690
23690
|
},
|
|
23691
23691
|
onKeyDown: L,
|
|
23692
23692
|
children: g.formatMessage({ id: "discussion_likes_showAll" })
|
|
@@ -24389,7 +24389,7 @@ const rk = ({
|
|
|
24389
24389
|
)
|
|
24390
24390
|
);
|
|
24391
24391
|
}, [h, i]);
|
|
24392
|
-
const [
|
|
24392
|
+
const [_, T] = ue(null), N = () => {
|
|
24393
24393
|
T(v.length), E();
|
|
24394
24394
|
};
|
|
24395
24395
|
return th(), x ? /* @__PURE__ */ c.jsx(In, { variant: "error", text: x.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
|
|
@@ -24475,7 +24475,7 @@ const rk = ({
|
|
|
24475
24475
|
latest_reactions: D,
|
|
24476
24476
|
reaction_counts: $,
|
|
24477
24477
|
mentioned_users: X,
|
|
24478
|
-
total_replies:
|
|
24478
|
+
total_replies: k
|
|
24479
24479
|
} = q, B = (((ee = D == null ? void 0 : D.like) == null ? void 0 : ee.length) || 0) > 0, I = (((H = ie == null ? void 0 : ie.like) == null ? void 0 : H.length) || 0) > 0, R = I ? ie == null ? void 0 : ie.like[0].id : "", W = B ? (ne = D == null ? void 0 : D.like) == null ? void 0 : ne.map((ce) => {
|
|
24480
24480
|
var Q, De, ge;
|
|
24481
24481
|
return {
|
|
@@ -24500,7 +24500,7 @@ const rk = ({
|
|
|
24500
24500
|
author: Xr(q == null ? void 0 : q.actor),
|
|
24501
24501
|
userLiked: I,
|
|
24502
24502
|
likes: ($ == null ? void 0 : $.like) || 0,
|
|
24503
|
-
comments:
|
|
24503
|
+
comments: k || 0,
|
|
24504
24504
|
peopleWhoLiked: W,
|
|
24505
24505
|
mentions: X,
|
|
24506
24506
|
pinned: ($ == null ? void 0 : $.pin) && ($ == null ? void 0 : $.pin) > 0 || !1,
|
|
@@ -24535,7 +24535,7 @@ const rk = ({
|
|
|
24535
24535
|
},
|
|
24536
24536
|
isTruncated: !0,
|
|
24537
24537
|
styling: { showShareLinkButton: !0 },
|
|
24538
|
-
setFocus: U ===
|
|
24538
|
+
setFocus: U === _,
|
|
24539
24539
|
userHasOwnerPermissions: r,
|
|
24540
24540
|
badges: {
|
|
24541
24541
|
showBadges: !0,
|
|
@@ -25283,7 +25283,7 @@ const AE = ({
|
|
|
25283
25283
|
const [F, w] = ue(!0);
|
|
25284
25284
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
25285
25285
|
(d == null ? void 0 : d.length) >= u && /* @__PURE__ */ c.jsx(
|
|
25286
|
-
|
|
25286
|
+
Te,
|
|
25287
25287
|
{
|
|
25288
25288
|
className: "nested-replies-show-toggle",
|
|
25289
25289
|
variant: "secondary",
|
|
@@ -25329,23 +25329,23 @@ const AE = ({
|
|
|
25329
25329
|
}
|
|
25330
25330
|
},
|
|
25331
25331
|
children: d && d.length > 0 ? d == null ? void 0 : d.map((C) => {
|
|
25332
|
-
var ie, D, $, X,
|
|
25332
|
+
var ie, D, $, X, k, B, I;
|
|
25333
25333
|
const {
|
|
25334
25334
|
id: S,
|
|
25335
25335
|
own_children: L,
|
|
25336
25336
|
latest_children: j,
|
|
25337
25337
|
children_counts: z,
|
|
25338
25338
|
data: { mentioned_users: M }
|
|
25339
|
-
} = C,
|
|
25339
|
+
} = C, _ = (((ie = L == null ? void 0 : L.like) == null ? void 0 : ie.length) || 0) > 0 ? (D = L == null ? void 0 : L.like) == null ? void 0 : D.find((R) => {
|
|
25340
25340
|
var W;
|
|
25341
25341
|
return ((W = R == null ? void 0 : R.user) == null ? void 0 : W.id) === (E == null ? void 0 : E.id);
|
|
25342
|
-
}) : !1, T =
|
|
25342
|
+
}) : !1, T = _ ? _ == null ? void 0 : _.id : "", N = !!_, U = ((($ = j == null ? void 0 : j.like) == null ? void 0 : $.length) || 0) > 0 ? (X = j == null ? void 0 : j.like) == null ? void 0 : X.map((R) => {
|
|
25343
25343
|
var W, ee, H;
|
|
25344
25344
|
return {
|
|
25345
25345
|
id: (W = R == null ? void 0 : R.user) == null ? void 0 : W.id,
|
|
25346
25346
|
name: (H = (ee = R == null ? void 0 : R.user) == null ? void 0 : ee.data) == null ? void 0 : H.name
|
|
25347
25347
|
};
|
|
25348
|
-
}) : !1, Y = typeof C.data.content == "string" ? (
|
|
25348
|
+
}) : !1, Y = typeof C.data.content == "string" ? (k = C == null ? void 0 : C.data) == null ? void 0 : k.content : (
|
|
25349
25349
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25350
25350
|
((I = (B = C == null ? void 0 : C.data) == null ? void 0 : B.content) == null ? void 0 : I.text) || ""
|
|
25351
25351
|
);
|
|
@@ -25468,17 +25468,17 @@ const BE = ({
|
|
|
25468
25468
|
}
|
|
25469
25469
|
),
|
|
25470
25470
|
m == null ? void 0 : m.map((j, z) => {
|
|
25471
|
-
var
|
|
25471
|
+
var k, B, I, R, W, ee, H;
|
|
25472
25472
|
const {
|
|
25473
25473
|
id: M,
|
|
25474
25474
|
own_children: A,
|
|
25475
|
-
latest_children:
|
|
25475
|
+
latest_children: _,
|
|
25476
25476
|
children_counts: T,
|
|
25477
25477
|
data: { mentioned_users: N }
|
|
25478
|
-
} = j, U = (((
|
|
25478
|
+
} = j, U = (((k = A == null ? void 0 : A.like) == null ? void 0 : k.length) || 0) > 0 ? (B = A == null ? void 0 : A.like) == null ? void 0 : B.find((ne) => {
|
|
25479
25479
|
var ce;
|
|
25480
25480
|
return ((ce = ne == null ? void 0 : ne.user) == null ? void 0 : ce.id) === (w == null ? void 0 : w.id);
|
|
25481
|
-
}) : !1, Y = U ? U == null ? void 0 : U.id : "", ie = !!U, $ = (((I =
|
|
25481
|
+
}) : !1, Y = U ? U == null ? void 0 : U.id : "", ie = !!U, $ = (((I = _ == null ? void 0 : _.like) == null ? void 0 : I.length) || 0) > 0 ? (R = _ == null ? void 0 : _.like) == null ? void 0 : R.map((ne) => {
|
|
25482
25482
|
var ce, Q, De;
|
|
25483
25483
|
return {
|
|
25484
25484
|
id: (ce = ne == null ? void 0 : ne.user) == null ? void 0 : ce.id,
|
|
@@ -25776,7 +25776,7 @@ const pa = ({
|
|
|
25776
25776
|
basePath: E,
|
|
25777
25777
|
parentId: F
|
|
25778
25778
|
}) => {
|
|
25779
|
-
var
|
|
25779
|
+
var Ae, Se, V, se, pe, be, _e, Xe, et;
|
|
25780
25780
|
const w = le(), C = Ie(Dt), S = Ie(Po), {
|
|
25781
25781
|
createContent: L = async () => {
|
|
25782
25782
|
},
|
|
@@ -25789,7 +25789,7 @@ const pa = ({
|
|
|
25789
25789
|
},
|
|
25790
25790
|
deleteLike: A = () => {
|
|
25791
25791
|
},
|
|
25792
|
-
listLikes:
|
|
25792
|
+
listLikes: _ = async () => ({})
|
|
25793
25793
|
} = o.likes || {}, { openComments: T = () => {
|
|
25794
25794
|
} } = o.comments || {}, { listMembers: N = () => Promise.resolve([]), clickMentionFallback: q = () => {
|
|
25795
25795
|
} } = o.mentions || {}, {
|
|
@@ -25799,7 +25799,7 @@ const pa = ({
|
|
|
25799
25799
|
id: D,
|
|
25800
25800
|
likes: $ = 0,
|
|
25801
25801
|
userLiked: X,
|
|
25802
|
-
comments:
|
|
25802
|
+
comments: k = 0,
|
|
25803
25803
|
mentions: B
|
|
25804
25804
|
} = t, I = C && C.id && typeof U != "string" && U.id && U.id === C.id || !1, R = typeof Y == "boolean" ? Y : !0, W = I && (!t.createdAt || Lh(t.createdAt, 10, "seconds")), ee = ke(null), [H, ne] = ue({
|
|
25805
25805
|
title: t && t.body !== t.title && t.title || "",
|
|
@@ -25935,7 +25935,7 @@ const pa = ({
|
|
|
25935
25935
|
className: "gtm-trackable",
|
|
25936
25936
|
"data-gtm-event-context": d,
|
|
25937
25937
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
25938
|
-
}), f && ((
|
|
25938
|
+
}), f && ((Ae = ee == null ? void 0 : ee.current) == null || Ae.focus(), (Se = ee == null ? void 0 : ee.current) == null || Se.scrollIntoView({ behavior: "smooth" })), re.createElement(e, {
|
|
25939
25939
|
className: K("discussion-post", u, {
|
|
25940
25940
|
[De]: !u || !u.includes("highlighted-text-box"),
|
|
25941
25941
|
"has-link": l.post && !H.isEditing,
|
|
@@ -26087,7 +26087,7 @@ const pa = ({
|
|
|
26087
26087
|
functions: {
|
|
26088
26088
|
createLike: M,
|
|
26089
26089
|
deleteLike: A,
|
|
26090
|
-
listLikes:
|
|
26090
|
+
listLikes: _
|
|
26091
26091
|
},
|
|
26092
26092
|
badges: v,
|
|
26093
26093
|
basePath: E,
|
|
@@ -26105,11 +26105,11 @@ const pa = ({
|
|
|
26105
26105
|
"data-gtm-event-type": `answer-${t.type}-click`,
|
|
26106
26106
|
screenreaderText: w.formatMessage(
|
|
26107
26107
|
{ id: `${Ut}comments_screenReader` },
|
|
26108
|
-
{ count:
|
|
26108
|
+
{ count: k }
|
|
26109
26109
|
),
|
|
26110
26110
|
children: w.formatMessage(
|
|
26111
26111
|
{ id: `${Ut}comments` },
|
|
26112
|
-
{ count:
|
|
26112
|
+
{ count: k }
|
|
26113
26113
|
)
|
|
26114
26114
|
}
|
|
26115
26115
|
) }),
|
|
@@ -26644,11 +26644,11 @@ const ak = ({
|
|
|
26644
26644
|
text: g.formatMessage({ id: "activitySection_notFoundError" })
|
|
26645
26645
|
}
|
|
26646
26646
|
);
|
|
26647
|
-
const { own_reactions: S, latest_reactions: L, mentioned_users: j } = f, z = (((N = L == null ? void 0 : L.like) == null ? void 0 : N.length) || 0) > 0, M = (((q = S == null ? void 0 : S.like) == null ? void 0 : q.length) || 0) > 0, A = M ? S == null ? void 0 : S.like[0].id : "",
|
|
26648
|
-
var X,
|
|
26647
|
+
const { own_reactions: S, latest_reactions: L, mentioned_users: j } = f, z = (((N = L == null ? void 0 : L.like) == null ? void 0 : N.length) || 0) > 0, M = (((q = S == null ? void 0 : S.like) == null ? void 0 : q.length) || 0) > 0, A = M ? S == null ? void 0 : S.like[0].id : "", _ = z ? (U = L == null ? void 0 : L.like) == null ? void 0 : U.map(($) => {
|
|
26648
|
+
var X, k, B;
|
|
26649
26649
|
return {
|
|
26650
26650
|
id: (X = $ == null ? void 0 : $.user) == null ? void 0 : X.id,
|
|
26651
|
-
name: (B = (
|
|
26651
|
+
name: (B = (k = $ == null ? void 0 : $.user) == null ? void 0 : k.data) == null ? void 0 : B.name
|
|
26652
26652
|
};
|
|
26653
26653
|
}) : !1, T = f == null ? void 0 : f.actor;
|
|
26654
26654
|
return /* @__PURE__ */ c.jsxs("section", { className: "activity-section", children: [
|
|
@@ -26674,7 +26674,7 @@ const ak = ({
|
|
|
26674
26674
|
userLiked: M,
|
|
26675
26675
|
likes: ((Y = f == null ? void 0 : f.reaction_counts) == null ? void 0 : Y.like) || 0,
|
|
26676
26676
|
comments: (f == null ? void 0 : f.total_replies) || 0,
|
|
26677
|
-
peopleWhoLiked:
|
|
26677
|
+
peopleWhoLiked: _,
|
|
26678
26678
|
mentions: j,
|
|
26679
26679
|
pinned: ((ie = f == null ? void 0 : f.reaction_counts) == null ? void 0 : ie.pin) && ((D = f == null ? void 0 : f.reaction_counts) == null ? void 0 : D.pin) > 0 || !1
|
|
26680
26680
|
},
|
|
@@ -26685,7 +26685,7 @@ const ak = ({
|
|
|
26685
26685
|
createContent: () => null,
|
|
26686
26686
|
deleteContent: a,
|
|
26687
26687
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26688
|
-
updateContent: ($, { title: X, body:
|
|
26688
|
+
updateContent: ($, { title: X, body: k }) => x({ title: X, content: k })
|
|
26689
26689
|
},
|
|
26690
26690
|
likes: {
|
|
26691
26691
|
createLike: () => E({ activityId: n }),
|
|
@@ -27159,7 +27159,7 @@ const n_ = [
|
|
|
27159
27159
|
}),
|
|
27160
27160
|
l,
|
|
27161
27161
|
p && /* @__PURE__ */ c.jsx(
|
|
27162
|
-
|
|
27162
|
+
Te,
|
|
27163
27163
|
{
|
|
27164
27164
|
variant: n || ["light", "subtle"].includes(r) ? "primary" : "secondary",
|
|
27165
27165
|
size: { mobile: "medium", 768: "large" },
|
|
@@ -27260,7 +27260,7 @@ const mk = ({
|
|
|
27260
27260
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
27261
27261
|
r && /* @__PURE__ */ c.jsx("p", { children: r }),
|
|
27262
27262
|
t && /* @__PURE__ */ c.jsx(
|
|
27263
|
-
|
|
27263
|
+
Te,
|
|
27264
27264
|
{
|
|
27265
27265
|
variant: "secondary",
|
|
27266
27266
|
size: "medium",
|
|
@@ -27421,7 +27421,7 @@ const mk = ({
|
|
|
27421
27421
|
) : null;
|
|
27422
27422
|
if (m === "people")
|
|
27423
27423
|
return n ? /* @__PURE__ */ c.jsx(
|
|
27424
|
-
|
|
27424
|
+
Te,
|
|
27425
27425
|
{
|
|
27426
27426
|
variant: "tertiary",
|
|
27427
27427
|
size: "small",
|
|
@@ -27452,7 +27452,7 @@ const mk = ({
|
|
|
27452
27452
|
"has-member-section": e == null ? void 0 : e.members
|
|
27453
27453
|
}),
|
|
27454
27454
|
children: /* @__PURE__ */ c.jsx(
|
|
27455
|
-
|
|
27455
|
+
Te,
|
|
27456
27456
|
{
|
|
27457
27457
|
onClick: x,
|
|
27458
27458
|
className: "gtm-trackable",
|
|
@@ -27520,9 +27520,9 @@ const sh = ({
|
|
|
27520
27520
|
isLoading: !0
|
|
27521
27521
|
});
|
|
27522
27522
|
de(() => {
|
|
27523
|
-
n(i, h).then((
|
|
27524
|
-
g({ data:
|
|
27525
|
-
}).catch(() => g((
|
|
27523
|
+
n(i, h).then((_) => {
|
|
27524
|
+
g({ data: _, isLoading: !1 });
|
|
27525
|
+
}).catch(() => g((_) => ({ ..._, isLoading: !1 })));
|
|
27526
27526
|
}, [i, h, n]);
|
|
27527
27527
|
const { data: f, isLoading: b } = p;
|
|
27528
27528
|
if (b || !f)
|
|
@@ -27549,8 +27549,8 @@ const sh = ({
|
|
|
27549
27549
|
} = ia[v];
|
|
27550
27550
|
let C = f.slug ? `${x}${f.slug}` : !1;
|
|
27551
27551
|
f.slug && (f.slug.slice(0, 4) === "http" || f.slug.slice(0, 2) === "//" || f.slug.slice(0, 6) === "mailto" || f.slug.slice(0, 3) === "tel") && (C = f.slug);
|
|
27552
|
-
const S = (
|
|
27553
|
-
C && (
|
|
27552
|
+
const S = (_) => {
|
|
27553
|
+
C && (_.preventDefault(), _.stopPropagation(), window.location.href = C);
|
|
27554
27554
|
}, L = { ...s_, ...F };
|
|
27555
27555
|
let j = { className: "card" }, z = {};
|
|
27556
27556
|
return C && (z = {
|
|
@@ -27625,12 +27625,12 @@ const sh = ({
|
|
|
27625
27625
|
{ partner: f.partner[0], number: f.partner.length - 1 }
|
|
27626
27626
|
) : ar(f.partner[0], L.partner) }),
|
|
27627
27627
|
/* Text */
|
|
27628
|
-
["title", "text", "secondaryText"].map((
|
|
27629
|
-
const T = f[
|
|
27628
|
+
["title", "text", "secondaryText"].map((_) => {
|
|
27629
|
+
const T = f[_];
|
|
27630
27630
|
if (!T)
|
|
27631
27631
|
return null;
|
|
27632
|
-
const N = Ph(
|
|
27633
|
-
key:
|
|
27632
|
+
const N = Ph(_), q = {
|
|
27633
|
+
key: _,
|
|
27634
27634
|
className: N,
|
|
27635
27635
|
"data-testid": N
|
|
27636
27636
|
}, U = {
|
|
@@ -27639,9 +27639,9 @@ const sh = ({
|
|
|
27639
27639
|
forceInline: !0
|
|
27640
27640
|
}, Y = ar(
|
|
27641
27641
|
T,
|
|
27642
|
-
L[
|
|
27642
|
+
L[_]
|
|
27643
27643
|
);
|
|
27644
|
-
return ["title", "text"].includes(
|
|
27644
|
+
return ["title", "text"].includes(_) && C ? (U.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...q, children: /* @__PURE__ */ c.jsx(Yt, { options: U, ...z, children: Y }) })) : /* @__PURE__ */ c.jsx(Yt, { options: U, ...q, children: Y });
|
|
27645
27645
|
}),
|
|
27646
27646
|
i.contentType === "communityPage" && (i.slug || f.slug) && r && /* @__PURE__ */ c.jsx(
|
|
27647
27647
|
u_,
|
|
@@ -27719,18 +27719,18 @@ const f_ = ({
|
|
|
27719
27719
|
loadedPages: [0]
|
|
27720
27720
|
}), { currentPage: b, loadedPages: v } = g, [x, E] = ue(""), F = t.length, w = Math.ceil(F / m), C = ke(null), S = mr(!0, !0, C == null ? void 0 : C.current);
|
|
27721
27721
|
de(() => {
|
|
27722
|
-
let
|
|
27723
|
-
S && (S >= ps.fourCards ?
|
|
27722
|
+
let _ = 1;
|
|
27723
|
+
S && (S >= ps.fourCards ? _ = 4 : S >= ps.threeCards ? _ = 3 : S >= ps.twoCards && (_ = 2), _ > F && (_ = F)), h((T) => ({
|
|
27724
27724
|
...T,
|
|
27725
|
-
cardsPerPage:
|
|
27725
|
+
cardsPerPage: _,
|
|
27726
27726
|
isLoading: !1
|
|
27727
27727
|
}));
|
|
27728
27728
|
}, [S, F]);
|
|
27729
|
-
const L = (
|
|
27729
|
+
const L = (_ = "next") => {
|
|
27730
27730
|
gs && clearTimeout(gs);
|
|
27731
27731
|
let T = b;
|
|
27732
|
-
if (typeof
|
|
27733
|
-
if (
|
|
27732
|
+
if (typeof _ == "string")
|
|
27733
|
+
if (_ === "next")
|
|
27734
27734
|
if (b < w - 1)
|
|
27735
27735
|
T = b + 1;
|
|
27736
27736
|
else
|
|
@@ -27740,7 +27740,7 @@ const f_ = ({
|
|
|
27740
27740
|
else
|
|
27741
27741
|
return;
|
|
27742
27742
|
else
|
|
27743
|
-
T =
|
|
27743
|
+
T = _;
|
|
27744
27744
|
E(""), f((q) => ({
|
|
27745
27745
|
...q,
|
|
27746
27746
|
currentPage: T,
|
|
@@ -27754,24 +27754,24 @@ const f_ = ({
|
|
|
27754
27754
|
E(
|
|
27755
27755
|
l.formatMessage(
|
|
27756
27756
|
{
|
|
27757
|
-
id: `${u}ariaLive${typeof
|
|
27757
|
+
id: `${u}ariaLive${typeof _ == "string" ? "" : "_slide"}`
|
|
27758
27758
|
},
|
|
27759
27759
|
{
|
|
27760
27760
|
direction: l.formatMessage({
|
|
27761
|
-
id: `${u}${typeof
|
|
27761
|
+
id: `${u}${typeof _ == "string" ? _ : "next"}`
|
|
27762
27762
|
}),
|
|
27763
|
-
slide: typeof
|
|
27763
|
+
slide: typeof _ == "string" ? 1 : _ + 1,
|
|
27764
27764
|
count: N()
|
|
27765
27765
|
}
|
|
27766
27766
|
)
|
|
27767
27767
|
);
|
|
27768
27768
|
}, 500);
|
|
27769
|
-
}, j = (
|
|
27770
|
-
Ci =
|
|
27771
|
-
}, z = (
|
|
27769
|
+
}, j = (_) => {
|
|
27770
|
+
Ci = _.touches[0].clientX;
|
|
27771
|
+
}, z = (_) => {
|
|
27772
27772
|
if (Ci === null)
|
|
27773
27773
|
return;
|
|
27774
|
-
const T =
|
|
27774
|
+
const T = _.touches[0].clientX, N = Ci - T;
|
|
27775
27775
|
N > 5 ? L("next") : N < -5 && L("previous"), Ci = null;
|
|
27776
27776
|
}, M = {
|
|
27777
27777
|
"--width": `${S || 0}px`,
|
|
@@ -27781,10 +27781,10 @@ const f_ = ({
|
|
|
27781
27781
|
};
|
|
27782
27782
|
if (p)
|
|
27783
27783
|
return /* @__PURE__ */ c.jsx(no, { layout: `carousel${i ? "-with-title" : ""}` });
|
|
27784
|
-
const A = (
|
|
27784
|
+
const A = (_, T) => {
|
|
27785
27785
|
var q;
|
|
27786
27786
|
let N = null;
|
|
27787
|
-
return (q =
|
|
27787
|
+
return (q = _ == null ? void 0 : _.sys) != null && q.id ? N = `card-${_.sys.id}` : _ != null && _.slug ? N = `card-${_.slug}` : [n[T], _.contentType].includes("customCard") && (N = `card-${window.btoa(`${_.title} ${_.createdAt}`)}-${T}`), N;
|
|
27788
27788
|
};
|
|
27789
27789
|
return /* @__PURE__ */ c.jsxs(
|
|
27790
27790
|
"section",
|
|
@@ -27802,13 +27802,13 @@ const f_ = ({
|
|
|
27802
27802
|
onTouchMove: z,
|
|
27803
27803
|
style: M,
|
|
27804
27804
|
"data-testid": "carousel-list",
|
|
27805
|
-
children: t.map((
|
|
27806
|
-
let N = A(
|
|
27805
|
+
children: t.map((_, T) => {
|
|
27806
|
+
let N = A(_, T);
|
|
27807
27807
|
return N && c_(T, m, b, v) ? /* @__PURE__ */ c.jsx(
|
|
27808
27808
|
sh,
|
|
27809
27809
|
{
|
|
27810
27810
|
id: N,
|
|
27811
|
-
card: { ...
|
|
27811
|
+
card: { ..._, contentType: n[T] },
|
|
27812
27812
|
buildCardData: r,
|
|
27813
27813
|
gtmContext: s,
|
|
27814
27814
|
...o
|
|
@@ -27829,13 +27829,13 @@ const f_ = ({
|
|
|
27829
27829
|
w <= 1 ? null : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27830
27830
|
/* @__PURE__ */ c.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
|
|
27831
27831
|
/* @__PURE__ */ c.jsx("li", { className: "arrow previous", children: /* @__PURE__ */ c.jsx(
|
|
27832
|
-
|
|
27832
|
+
Te,
|
|
27833
27833
|
{
|
|
27834
27834
|
variant: "secondary",
|
|
27835
27835
|
size: "large",
|
|
27836
27836
|
icon: { icon: "chevron_left" },
|
|
27837
|
-
onClick: (
|
|
27838
|
-
|
|
27837
|
+
onClick: (_) => {
|
|
27838
|
+
_.preventDefault(), _.stopPropagation(), L("previous");
|
|
27839
27839
|
},
|
|
27840
27840
|
screenreaderText: l.formatMessage({
|
|
27841
27841
|
id: `${u}previousSlide`
|
|
@@ -27843,7 +27843,7 @@ const f_ = ({
|
|
|
27843
27843
|
disabled: b <= 0
|
|
27844
27844
|
}
|
|
27845
27845
|
) }),
|
|
27846
|
-
[...Array(w)].map((
|
|
27846
|
+
[...Array(w)].map((_, T) => /* @__PURE__ */ c.jsx(
|
|
27847
27847
|
"li",
|
|
27848
27848
|
{
|
|
27849
27849
|
"data-testid": "carousel-controls-button",
|
|
@@ -27866,13 +27866,13 @@ const f_ = ({
|
|
|
27866
27866
|
`page-indicator-${T}`
|
|
27867
27867
|
)),
|
|
27868
27868
|
/* @__PURE__ */ c.jsx("li", { className: "arrow next", children: /* @__PURE__ */ c.jsx(
|
|
27869
|
-
|
|
27869
|
+
Te,
|
|
27870
27870
|
{
|
|
27871
27871
|
variant: "secondary",
|
|
27872
27872
|
size: "large",
|
|
27873
27873
|
icon: { icon: "chevron_right" },
|
|
27874
|
-
onClick: (
|
|
27875
|
-
|
|
27874
|
+
onClick: (_) => {
|
|
27875
|
+
_.preventDefault(), _.stopPropagation(), L("next");
|
|
27876
27876
|
},
|
|
27877
27877
|
screenreaderText: l.formatMessage({
|
|
27878
27878
|
id: `${u}nextSlide`
|
|
@@ -28115,7 +28115,7 @@ const bk = ({
|
|
|
28115
28115
|
}) => {
|
|
28116
28116
|
const r = le();
|
|
28117
28117
|
return n["data-gtm-event-context"] || (n["data-gtm-event-context"] = "LessonIntroduction"), /* @__PURE__ */ c.jsx(
|
|
28118
|
-
|
|
28118
|
+
Te,
|
|
28119
28119
|
{
|
|
28120
28120
|
...n,
|
|
28121
28121
|
variant: "tertiary",
|
|
@@ -28205,7 +28205,7 @@ const Ei = "notFoundError_", Dk = () => {
|
|
|
28205
28205
|
})
|
|
28206
28206
|
}
|
|
28207
28207
|
),
|
|
28208
|
-
/* @__PURE__ */ c.jsx(
|
|
28208
|
+
/* @__PURE__ */ c.jsx(Te, { href: "/solution-articles/", children: e.formatMessage({ id: `${Ei}cta` }) })
|
|
28209
28209
|
] })
|
|
28210
28210
|
},
|
|
28211
28211
|
reportError: () => {
|
|
@@ -28232,7 +28232,7 @@ export {
|
|
|
28232
28232
|
dk as BannerSection,
|
|
28233
28233
|
q_ as Breadcrumbs,
|
|
28234
28234
|
R_ as Buckets,
|
|
28235
|
-
|
|
28235
|
+
Te as Button,
|
|
28236
28236
|
Yr as ButtonWrapper,
|
|
28237
28237
|
ni as COURSE_CONTENT_TYPES,
|
|
28238
28238
|
bm as CacheProvider,
|