@apolitical/component-library 2.1.2 → 2.1.4
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 +11 -11
- package/index.mjs +170 -158
- package/navigation/tabs/tabs.d.ts +2 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -74,8 +74,8 @@ var va = { exports: {} };
|
|
|
74
74
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
75
75
|
})();
|
|
76
76
|
})(va);
|
|
77
|
-
var
|
|
78
|
-
const C = /* @__PURE__ */ en(
|
|
77
|
+
var Wi = va.exports;
|
|
78
|
+
const C = /* @__PURE__ */ en(Wi), Hi = ({
|
|
79
79
|
element: t = "span",
|
|
80
80
|
showOnFocus: e = !0,
|
|
81
81
|
children: n,
|
|
@@ -84,7 +84,7 @@ const C = /* @__PURE__ */ en(Hi), Wi = ({
|
|
|
84
84
|
...r,
|
|
85
85
|
className: C("hidden", { "show-on-focus": e }),
|
|
86
86
|
children: n
|
|
87
|
-
}), be = Ae(
|
|
87
|
+
}), be = Ae(Hi), Vi = ({
|
|
88
88
|
element: t = "span",
|
|
89
89
|
children: e = null,
|
|
90
90
|
...n
|
|
@@ -223,7 +223,7 @@ function Ki() {
|
|
|
223
223
|
function z() {
|
|
224
224
|
}
|
|
225
225
|
z.__reactDisabledLog = !0;
|
|
226
|
-
function
|
|
226
|
+
function W() {
|
|
227
227
|
{
|
|
228
228
|
if (I === 0) {
|
|
229
229
|
O = console.log, D = console.info, V = console.warn, ee = console.error, j = console.group, $ = console.groupCollapsed, Z = console.groupEnd;
|
|
@@ -281,18 +281,18 @@ function Ki() {
|
|
|
281
281
|
I < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
var Y = y.ReactCurrentDispatcher,
|
|
284
|
+
var Y = y.ReactCurrentDispatcher, H;
|
|
285
285
|
function J(h, P, q) {
|
|
286
286
|
{
|
|
287
|
-
if (
|
|
287
|
+
if (H === void 0)
|
|
288
288
|
try {
|
|
289
289
|
throw Error();
|
|
290
290
|
} catch (le) {
|
|
291
291
|
var te = le.stack.trim().match(/\n( *(at )?)/);
|
|
292
|
-
|
|
292
|
+
H = te && te[1] || "";
|
|
293
293
|
}
|
|
294
294
|
return `
|
|
295
|
-
` +
|
|
295
|
+
` + H + h;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
var re = !1, F;
|
|
@@ -313,7 +313,7 @@ function Ki() {
|
|
|
313
313
|
var le = Error.prepareStackTrace;
|
|
314
314
|
Error.prepareStackTrace = void 0;
|
|
315
315
|
var me;
|
|
316
|
-
me = Y.current, Y.current = null,
|
|
316
|
+
me = Y.current, Y.current = null, W();
|
|
317
317
|
try {
|
|
318
318
|
if (P) {
|
|
319
319
|
var ce = function() {
|
|
@@ -368,7 +368,7 @@ function Ki() {
|
|
|
368
368
|
} finally {
|
|
369
369
|
re = !1, Y.current = me, X(), Error.prepareStackTrace = le;
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var He = h ? h.displayName || h.name : "", Er = He ? J(He) : "";
|
|
372
372
|
return typeof h == "function" && F.set(h, Er), Er;
|
|
373
373
|
}
|
|
374
374
|
function ve(h, P, q) {
|
|
@@ -557,7 +557,7 @@ function Ki() {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
var dn = y.ReactCurrentOwner, _r = y.ReactDebugCurrentFrame;
|
|
560
|
-
function
|
|
560
|
+
function We(h) {
|
|
561
561
|
if (h) {
|
|
562
562
|
var P = h._owner, q = Ce(h.type, h._source, P ? P.type : null);
|
|
563
563
|
_r.setExtraStackFrame(q);
|
|
@@ -615,7 +615,7 @@ Check the top-level render call using <` + q + ">.");
|
|
|
615
615
|
return;
|
|
616
616
|
wr[q] = !0;
|
|
617
617
|
var te = "";
|
|
618
|
-
h && h._owner && h._owner !== dn.current && (te = " It was passed a child from " + x(h._owner.type) + "."),
|
|
618
|
+
h && h._owner && h._owner !== dn.current && (te = " It was passed a child from " + x(h._owner.type) + "."), We(h), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', q, te), We(null);
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function kr(h, P) {
|
|
@@ -667,11 +667,11 @@ Check the top-level render call using <` + q + ">.");
|
|
|
667
667
|
for (var P = Object.keys(h.props), q = 0; q < P.length; q++) {
|
|
668
668
|
var te = P[q];
|
|
669
669
|
if (te !== "children" && te !== "key") {
|
|
670
|
-
|
|
670
|
+
We(h), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", te), We(null);
|
|
671
671
|
break;
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
h.ref !== null && (
|
|
674
|
+
h.ref !== null && (We(h), _("Invalid attribute `ref` supplied to `React.Fragment`."), We(null));
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
function Tr(h, P, q, te, le, me) {
|
|
@@ -693,8 +693,8 @@ Check the top-level render call using <` + q + ">.");
|
|
|
693
693
|
if (Te !== void 0)
|
|
694
694
|
if (te)
|
|
695
695
|
if (cn(Te)) {
|
|
696
|
-
for (var
|
|
697
|
-
kr(Te[
|
|
696
|
+
for (var He = 0; He < Te.length; He++)
|
|
697
|
+
kr(Te[He], h);
|
|
698
698
|
Object.freeze && Object.freeze(Te);
|
|
699
699
|
} else
|
|
700
700
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -796,15 +796,18 @@ const yt = (t = !0, e = !1, n = "window") => {
|
|
|
796
796
|
return;
|
|
797
797
|
const [r, a] = K.useState(0) || [!1, () => {
|
|
798
798
|
}];
|
|
799
|
-
se(() => (c(), window.addEventListener("resize", u), () => {
|
|
800
|
-
clearTimeout(mn),
|
|
799
|
+
se(() => (c(), window.addEventListener("resize", l), window.addEventListener("hiddenSectionVisible", u), () => {
|
|
800
|
+
clearTimeout(mn), l.flush(), window.removeEventListener("resize", l), window.removeEventListener("hiddenSectionVisible", u);
|
|
801
801
|
}), n === "window" ? [] : [n]);
|
|
802
802
|
const o = () => {
|
|
803
803
|
if (n)
|
|
804
804
|
return n === "window" ? window.innerWidth : n.offsetWidth;
|
|
805
805
|
}, c = () => {
|
|
806
806
|
a(o());
|
|
807
|
-
}, u =
|
|
807
|
+
}, u = ({ detail: f }) => {
|
|
808
|
+
const { id: d } = f;
|
|
809
|
+
n === "window" || !n.closest(`#${d}`) || o() === r || c();
|
|
810
|
+
}, l = ba(
|
|
808
811
|
() => {
|
|
809
812
|
o() !== r && (e && (clearTimeout(mn), document.body.classList.add("is-resizing"), mn = setTimeout(() => {
|
|
810
813
|
document.body.classList.remove("is-resizing");
|
|
@@ -2709,7 +2712,7 @@ function Us() {
|
|
|
2709
2712
|
function z(A) {
|
|
2710
2713
|
return typeof A == "object" && A !== null && A.$$typeof === e;
|
|
2711
2714
|
}
|
|
2712
|
-
function
|
|
2715
|
+
function W(A) {
|
|
2713
2716
|
return k(A) === f;
|
|
2714
2717
|
}
|
|
2715
2718
|
function X(A) {
|
|
@@ -2718,7 +2721,7 @@ function Us() {
|
|
|
2718
2721
|
function Y(A) {
|
|
2719
2722
|
return k(A) === g;
|
|
2720
2723
|
}
|
|
2721
|
-
function
|
|
2724
|
+
function H(A) {
|
|
2722
2725
|
return k(A) === p;
|
|
2723
2726
|
}
|
|
2724
2727
|
function J(A) {
|
|
@@ -2733,7 +2736,7 @@ function Us() {
|
|
|
2733
2736
|
function oe(A) {
|
|
2734
2737
|
return k(A) === d;
|
|
2735
2738
|
}
|
|
2736
|
-
ue.AsyncMode = w, ue.ConcurrentMode = U, ue.ContextConsumer = R, ue.ContextProvider = N, ue.Element = B, ue.ForwardRef = L, ue.Fragment = M, ue.Lazy = T, ue.Memo = x, ue.Portal = S, ue.Profiler = I, ue.StrictMode = O, ue.Suspense = D, ue.isAsyncMode = ee, ue.isConcurrentMode = j, ue.isContextConsumer = $, ue.isContextProvider = Z, ue.isElement = z, ue.isForwardRef =
|
|
2739
|
+
ue.AsyncMode = w, ue.ConcurrentMode = U, ue.ContextConsumer = R, ue.ContextProvider = N, ue.Element = B, ue.ForwardRef = L, ue.Fragment = M, ue.Lazy = T, ue.Memo = x, ue.Portal = S, ue.Profiler = I, ue.StrictMode = O, ue.Suspense = D, ue.isAsyncMode = ee, ue.isConcurrentMode = j, ue.isContextConsumer = $, ue.isContextProvider = Z, ue.isElement = z, ue.isForwardRef = W, ue.isFragment = X, ue.isLazy = Y, ue.isMemo = H, ue.isPortal = J, ue.isProfiler = re, ue.isStrictMode = F, ue.isSuspense = oe, ue.isValidElementType = E, ue.typeOf = k;
|
|
2737
2740
|
}()), ue;
|
|
2738
2741
|
}
|
|
2739
2742
|
var Dr;
|
|
@@ -2855,7 +2858,7 @@ function Zs() {
|
|
|
2855
2858
|
}, yn = a, yn;
|
|
2856
2859
|
}
|
|
2857
2860
|
var _n, Ur;
|
|
2858
|
-
function
|
|
2861
|
+
function Ws() {
|
|
2859
2862
|
if (Ur)
|
|
2860
2863
|
return _n;
|
|
2861
2864
|
Ur = 1;
|
|
@@ -2910,33 +2913,33 @@ function Hs() {
|
|
|
2910
2913
|
function b(j) {
|
|
2911
2914
|
if (process.env.NODE_ENV !== "production")
|
|
2912
2915
|
var $ = {}, Z = 0;
|
|
2913
|
-
function z(X, Y,
|
|
2914
|
-
if (J = J || m, F = F ||
|
|
2916
|
+
function z(X, Y, H, J, re, F, oe) {
|
|
2917
|
+
if (J = J || m, F = F || H, oe !== n) {
|
|
2915
2918
|
if (u) {
|
|
2916
2919
|
var A = new Error(
|
|
2917
2920
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2918
2921
|
);
|
|
2919
2922
|
throw A.name = "Invariant Violation", A;
|
|
2920
2923
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2921
|
-
var ve = J + ":" +
|
|
2924
|
+
var ve = J + ":" + H;
|
|
2922
2925
|
!$[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2923
2926
|
Z < 3 && (s(
|
|
2924
2927
|
"You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + J + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2925
2928
|
), $[ve] = !0, Z++);
|
|
2926
2929
|
}
|
|
2927
2930
|
}
|
|
2928
|
-
return Y[
|
|
2931
|
+
return Y[H] == null ? X ? Y[H] === null ? new v("The " + re + " `" + F + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new v("The " + re + " `" + F + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : j(Y, H, J, re, F);
|
|
2929
2932
|
}
|
|
2930
|
-
var
|
|
2931
|
-
return
|
|
2933
|
+
var W = z.bind(null, !1);
|
|
2934
|
+
return W.isRequired = z.bind(null, !0), W;
|
|
2932
2935
|
}
|
|
2933
2936
|
function y(j) {
|
|
2934
|
-
function $(Z, z,
|
|
2937
|
+
function $(Z, z, W, X, Y, H) {
|
|
2935
2938
|
var J = Z[z], re = O(J);
|
|
2936
2939
|
if (re !== j) {
|
|
2937
2940
|
var F = D(J);
|
|
2938
2941
|
return new v(
|
|
2939
|
-
"Invalid " + X + " `" + Y + "` of type " + ("`" + F + "` supplied to `" +
|
|
2942
|
+
"Invalid " + X + " `" + Y + "` of type " + ("`" + F + "` supplied to `" + W + "`, expected ") + ("`" + j + "`."),
|
|
2940
2943
|
{ expectedType: j }
|
|
2941
2944
|
);
|
|
2942
2945
|
}
|
|
@@ -2948,16 +2951,16 @@ function Hs() {
|
|
|
2948
2951
|
return b(o);
|
|
2949
2952
|
}
|
|
2950
2953
|
function E(j) {
|
|
2951
|
-
function $(Z, z,
|
|
2954
|
+
function $(Z, z, W, X, Y) {
|
|
2952
2955
|
if (typeof j != "function")
|
|
2953
|
-
return new v("Property `" + Y + "` of component `" +
|
|
2954
|
-
var
|
|
2955
|
-
if (!Array.isArray(
|
|
2956
|
-
var J = O(
|
|
2957
|
-
return new v("Invalid " + X + " `" + Y + "` of type " + ("`" + J + "` supplied to `" +
|
|
2956
|
+
return new v("Property `" + Y + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
|
|
2957
|
+
var H = Z[z];
|
|
2958
|
+
if (!Array.isArray(H)) {
|
|
2959
|
+
var J = O(H);
|
|
2960
|
+
return new v("Invalid " + X + " `" + Y + "` of type " + ("`" + J + "` supplied to `" + W + "`, expected an array."));
|
|
2958
2961
|
}
|
|
2959
|
-
for (var re = 0; re <
|
|
2960
|
-
var F = j(
|
|
2962
|
+
for (var re = 0; re < H.length; re++) {
|
|
2963
|
+
var F = j(H, re, W, X, Y + "[" + re + "]", n);
|
|
2961
2964
|
if (F instanceof Error)
|
|
2962
2965
|
return F;
|
|
2963
2966
|
}
|
|
@@ -2966,32 +2969,32 @@ function Hs() {
|
|
|
2966
2969
|
return b($);
|
|
2967
2970
|
}
|
|
2968
2971
|
function k() {
|
|
2969
|
-
function j($, Z, z,
|
|
2972
|
+
function j($, Z, z, W, X) {
|
|
2970
2973
|
var Y = $[Z];
|
|
2971
2974
|
if (!c(Y)) {
|
|
2972
|
-
var
|
|
2973
|
-
return new v("Invalid " +
|
|
2975
|
+
var H = O(Y);
|
|
2976
|
+
return new v("Invalid " + W + " `" + X + "` of type " + ("`" + H + "` supplied to `" + z + "`, expected a single ReactElement."));
|
|
2974
2977
|
}
|
|
2975
2978
|
return null;
|
|
2976
2979
|
}
|
|
2977
2980
|
return b(j);
|
|
2978
2981
|
}
|
|
2979
2982
|
function w() {
|
|
2980
|
-
function j($, Z, z,
|
|
2983
|
+
function j($, Z, z, W, X) {
|
|
2981
2984
|
var Y = $[Z];
|
|
2982
2985
|
if (!t.isValidElementType(Y)) {
|
|
2983
|
-
var
|
|
2984
|
-
return new v("Invalid " +
|
|
2986
|
+
var H = O(Y);
|
|
2987
|
+
return new v("Invalid " + W + " `" + X + "` of type " + ("`" + H + "` supplied to `" + z + "`, expected a single ReactElement type."));
|
|
2985
2988
|
}
|
|
2986
2989
|
return null;
|
|
2987
2990
|
}
|
|
2988
2991
|
return b(j);
|
|
2989
2992
|
}
|
|
2990
2993
|
function U(j) {
|
|
2991
|
-
function $(Z, z,
|
|
2994
|
+
function $(Z, z, W, X, Y) {
|
|
2992
2995
|
if (!(Z[z] instanceof j)) {
|
|
2993
|
-
var
|
|
2994
|
-
return new v("Invalid " + X + " `" + Y + "` of type " + ("`" + J + "` supplied to `" +
|
|
2996
|
+
var H = j.name || m, J = ee(Z[z]);
|
|
2997
|
+
return new v("Invalid " + X + " `" + Y + "` of type " + ("`" + J + "` supplied to `" + W + "`, expected ") + ("instance of `" + H + "`."));
|
|
2995
2998
|
}
|
|
2996
2999
|
return null;
|
|
2997
3000
|
}
|
|
@@ -3002,28 +3005,28 @@ function Hs() {
|
|
|
3002
3005
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
3003
3006
|
"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])."
|
|
3004
3007
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
3005
|
-
function $(Z, z,
|
|
3006
|
-
for (var
|
|
3007
|
-
if (g(
|
|
3008
|
+
function $(Z, z, W, X, Y) {
|
|
3009
|
+
for (var H = Z[z], J = 0; J < j.length; J++)
|
|
3010
|
+
if (g(H, j[J]))
|
|
3008
3011
|
return null;
|
|
3009
3012
|
var re = JSON.stringify(j, function(oe, A) {
|
|
3010
3013
|
var ve = D(A);
|
|
3011
3014
|
return ve === "symbol" ? String(A) : A;
|
|
3012
3015
|
});
|
|
3013
|
-
return new v("Invalid " + X + " `" + Y + "` of value `" + String(
|
|
3016
|
+
return new v("Invalid " + X + " `" + Y + "` of value `" + String(H) + "` " + ("supplied to `" + W + "`, expected one of " + re + "."));
|
|
3014
3017
|
}
|
|
3015
3018
|
return b($);
|
|
3016
3019
|
}
|
|
3017
3020
|
function N(j) {
|
|
3018
|
-
function $(Z, z,
|
|
3021
|
+
function $(Z, z, W, X, Y) {
|
|
3019
3022
|
if (typeof j != "function")
|
|
3020
|
-
return new v("Property `" + Y + "` of component `" +
|
|
3021
|
-
var
|
|
3023
|
+
return new v("Property `" + Y + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
|
|
3024
|
+
var H = Z[z], J = O(H);
|
|
3022
3025
|
if (J !== "object")
|
|
3023
|
-
return new v("Invalid " + X + " `" + Y + "` of type " + ("`" + J + "` supplied to `" +
|
|
3024
|
-
for (var re in
|
|
3025
|
-
if (r(
|
|
3026
|
-
var F = j(
|
|
3026
|
+
return new v("Invalid " + X + " `" + Y + "` of type " + ("`" + J + "` supplied to `" + W + "`, expected an object."));
|
|
3027
|
+
for (var re in H)
|
|
3028
|
+
if (r(H, re)) {
|
|
3029
|
+
var F = j(H, re, W, X, Y + "." + re, n);
|
|
3027
3030
|
if (F instanceof Error)
|
|
3028
3031
|
return F;
|
|
3029
3032
|
}
|
|
@@ -3041,39 +3044,39 @@ function Hs() {
|
|
|
3041
3044
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(Z) + " at index " + $ + "."
|
|
3042
3045
|
), o;
|
|
3043
3046
|
}
|
|
3044
|
-
function z(
|
|
3047
|
+
function z(W, X, Y, H, J) {
|
|
3045
3048
|
for (var re = [], F = 0; F < j.length; F++) {
|
|
3046
|
-
var oe = j[F], A = oe(
|
|
3049
|
+
var oe = j[F], A = oe(W, X, Y, H, J, n);
|
|
3047
3050
|
if (A == null)
|
|
3048
3051
|
return null;
|
|
3049
3052
|
A.data && r(A.data, "expectedType") && re.push(A.data.expectedType);
|
|
3050
3053
|
}
|
|
3051
3054
|
var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
|
|
3052
|
-
return new v("Invalid " +
|
|
3055
|
+
return new v("Invalid " + H + " `" + J + "` supplied to " + ("`" + Y + "`" + ve + "."));
|
|
3053
3056
|
}
|
|
3054
3057
|
return b(z);
|
|
3055
3058
|
}
|
|
3056
3059
|
function L() {
|
|
3057
|
-
function j($, Z, z,
|
|
3058
|
-
return S($[Z]) ? null : new v("Invalid " +
|
|
3060
|
+
function j($, Z, z, W, X) {
|
|
3061
|
+
return S($[Z]) ? null : new v("Invalid " + W + " `" + X + "` supplied to " + ("`" + z + "`, expected a ReactNode."));
|
|
3059
3062
|
}
|
|
3060
3063
|
return b(j);
|
|
3061
3064
|
}
|
|
3062
|
-
function M(j, $, Z, z,
|
|
3065
|
+
function M(j, $, Z, z, W) {
|
|
3063
3066
|
return new v(
|
|
3064
|
-
(j || "React class") + ": " + $ + " type `" + Z + "." + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
3067
|
+
(j || "React class") + ": " + $ + " type `" + Z + "." + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
|
|
3065
3068
|
);
|
|
3066
3069
|
}
|
|
3067
3070
|
function T(j) {
|
|
3068
|
-
function $(Z, z,
|
|
3069
|
-
var
|
|
3071
|
+
function $(Z, z, W, X, Y) {
|
|
3072
|
+
var H = Z[z], J = O(H);
|
|
3070
3073
|
if (J !== "object")
|
|
3071
|
-
return new v("Invalid " + X + " `" + Y + "` of type `" + J + "` " + ("supplied to `" +
|
|
3074
|
+
return new v("Invalid " + X + " `" + Y + "` of type `" + J + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
3072
3075
|
for (var re in j) {
|
|
3073
3076
|
var F = j[re];
|
|
3074
3077
|
if (typeof F != "function")
|
|
3075
|
-
return M(
|
|
3076
|
-
var oe = F(
|
|
3078
|
+
return M(W, X, Y, re, D(F));
|
|
3079
|
+
var oe = F(H, re, W, X, Y + "." + re, n);
|
|
3077
3080
|
if (oe)
|
|
3078
3081
|
return oe;
|
|
3079
3082
|
}
|
|
@@ -3082,21 +3085,21 @@ function Hs() {
|
|
|
3082
3085
|
return b($);
|
|
3083
3086
|
}
|
|
3084
3087
|
function x(j) {
|
|
3085
|
-
function $(Z, z,
|
|
3086
|
-
var
|
|
3088
|
+
function $(Z, z, W, X, Y) {
|
|
3089
|
+
var H = Z[z], J = O(H);
|
|
3087
3090
|
if (J !== "object")
|
|
3088
|
-
return new v("Invalid " + X + " `" + Y + "` of type `" + J + "` " + ("supplied to `" +
|
|
3091
|
+
return new v("Invalid " + X + " `" + Y + "` of type `" + J + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
3089
3092
|
var re = e({}, Z[z], j);
|
|
3090
3093
|
for (var F in re) {
|
|
3091
3094
|
var oe = j[F];
|
|
3092
3095
|
if (r(j, F) && typeof oe != "function")
|
|
3093
|
-
return M(
|
|
3096
|
+
return M(W, X, Y, F, D(oe));
|
|
3094
3097
|
if (!oe)
|
|
3095
3098
|
return new v(
|
|
3096
|
-
"Invalid " + X + " `" + Y + "` key `" + F + "` supplied to `" +
|
|
3099
|
+
"Invalid " + X + " `" + Y + "` key `" + F + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(Z[z], null, " ") + `
|
|
3097
3100
|
Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
3098
3101
|
);
|
|
3099
|
-
var A = oe(
|
|
3102
|
+
var A = oe(H, F, W, X, Y + "." + F, n);
|
|
3100
3103
|
if (A)
|
|
3101
3104
|
return A;
|
|
3102
3105
|
}
|
|
@@ -3126,8 +3129,8 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
3126
3129
|
return !1;
|
|
3127
3130
|
} else
|
|
3128
3131
|
for (; !(z = Z.next()).done; ) {
|
|
3129
|
-
var
|
|
3130
|
-
if (
|
|
3132
|
+
var W = z.value;
|
|
3133
|
+
if (W && !S(W[1]))
|
|
3131
3134
|
return !1;
|
|
3132
3135
|
}
|
|
3133
3136
|
} else
|
|
@@ -3177,7 +3180,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
3177
3180
|
}, _n;
|
|
3178
3181
|
}
|
|
3179
3182
|
var xn, zr;
|
|
3180
|
-
function
|
|
3183
|
+
function Hs() {
|
|
3181
3184
|
if (zr)
|
|
3182
3185
|
return xn;
|
|
3183
3186
|
zr = 1;
|
|
@@ -3227,9 +3230,9 @@ function Ws() {
|
|
|
3227
3230
|
}
|
|
3228
3231
|
if (process.env.NODE_ENV !== "production") {
|
|
3229
3232
|
var Vs = ar(), Ys = !0;
|
|
3230
|
-
zn.exports =
|
|
3233
|
+
zn.exports = Ws()(Vs.isElement, Ys);
|
|
3231
3234
|
} else
|
|
3232
|
-
zn.exports =
|
|
3235
|
+
zn.exports = Hs()();
|
|
3233
3236
|
var Ma = zn.exports;
|
|
3234
3237
|
const we = /* @__PURE__ */ en(Ma);
|
|
3235
3238
|
/*!
|
|
@@ -3376,14 +3379,14 @@ var Oa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3376
3379
|
n = n.parentElement;
|
|
3377
3380
|
}
|
|
3378
3381
|
return !1;
|
|
3379
|
-
},
|
|
3382
|
+
}, Wt = function(e, n) {
|
|
3380
3383
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
3381
3384
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
3382
3385
|
// note related to `candidateSelectors`)
|
|
3383
3386
|
Zt(n) || Js(n) || io(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
3384
3387
|
Xs(n) || so(n));
|
|
3385
3388
|
}, Zn = function(e, n) {
|
|
3386
|
-
return !(ro(n) || Le(n) < 0 || !
|
|
3389
|
+
return !(ro(n) || Le(n) < 0 || !Wt(e, n));
|
|
3387
3390
|
}, oo = function(e) {
|
|
3388
3391
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
3389
3392
|
return !!(isNaN(n) || n >= 0);
|
|
@@ -3414,10 +3417,10 @@ var Oa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3414
3417
|
n = n || {};
|
|
3415
3418
|
var r;
|
|
3416
3419
|
return n.getShadowRoot ? r = Da([e], n.includeContainer, {
|
|
3417
|
-
filter:
|
|
3420
|
+
filter: Wt.bind(null, n),
|
|
3418
3421
|
flatten: !0,
|
|
3419
3422
|
getShadowRoot: n.getShadowRoot
|
|
3420
|
-
}) : r = Aa(e, n.includeContainer,
|
|
3423
|
+
}) : r = Aa(e, n.includeContainer, Wt.bind(null, n)), r;
|
|
3421
3424
|
}, Ue = function(e, n) {
|
|
3422
3425
|
if (n = n || {}, !e)
|
|
3423
3426
|
throw new Error("No node provided");
|
|
@@ -3425,7 +3428,7 @@ var Oa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3425
3428
|
}, lo = /* @__PURE__ */ Oa.concat("iframe").join(","), Dt = function(e, n) {
|
|
3426
3429
|
if (n = n || {}, !e)
|
|
3427
3430
|
throw new Error("No node provided");
|
|
3428
|
-
return Ze.call(e, lo) === !1 ? !1 :
|
|
3431
|
+
return Ze.call(e, lo) === !1 ? !1 : Wt(n, e);
|
|
3429
3432
|
};
|
|
3430
3433
|
const uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3431
3434
|
__proto__: null,
|
|
@@ -3439,7 +3442,7 @@ const uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3439
3442
|
* focus-trap 7.5.4
|
|
3440
3443
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
3441
3444
|
*/
|
|
3442
|
-
function
|
|
3445
|
+
function Wr(t, e) {
|
|
3443
3446
|
var n = Object.keys(t);
|
|
3444
3447
|
if (Object.getOwnPropertySymbols) {
|
|
3445
3448
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -3449,12 +3452,12 @@ function Hr(t, e) {
|
|
|
3449
3452
|
}
|
|
3450
3453
|
return n;
|
|
3451
3454
|
}
|
|
3452
|
-
function
|
|
3455
|
+
function Hr(t) {
|
|
3453
3456
|
for (var e = 1; e < arguments.length; e++) {
|
|
3454
3457
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
3455
|
-
e % 2 ?
|
|
3458
|
+
e % 2 ? Wr(Object(n), !0).forEach(function(r) {
|
|
3456
3459
|
fo(t, r, n[r]);
|
|
3457
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
3460
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Wr(Object(n)).forEach(function(r) {
|
|
3458
3461
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
3459
3462
|
});
|
|
3460
3463
|
}
|
|
@@ -3521,7 +3524,7 @@ var Vr = {
|
|
|
3521
3524
|
}, Tt = function(e) {
|
|
3522
3525
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
3523
3526
|
}, yo = [], _o = function(e, n) {
|
|
3524
|
-
var r = (n == null ? void 0 : n.document) || document, a = (n == null ? void 0 : n.trapStack) || yo, s =
|
|
3527
|
+
var r = (n == null ? void 0 : n.document) || document, a = (n == null ? void 0 : n.trapStack) || yo, s = Hr({
|
|
3525
3528
|
returnFocusOnDeactivate: !0,
|
|
3526
3529
|
escapeDeactivates: !0,
|
|
3527
3530
|
delayInitialFocus: !0,
|
|
@@ -3647,10 +3650,10 @@ var Vr = {
|
|
|
3647
3650
|
*/
|
|
3648
3651
|
nextTabbableNode: function($) {
|
|
3649
3652
|
var Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, z = x.indexOf($);
|
|
3650
|
-
return z < 0 ? Z ? S.slice(S.indexOf($) + 1).find(function(
|
|
3651
|
-
return Ue(
|
|
3652
|
-
}) : S.slice(0, S.indexOf($)).reverse().find(function(
|
|
3653
|
-
return Ue(
|
|
3653
|
+
return z < 0 ? Z ? S.slice(S.indexOf($) + 1).find(function(W) {
|
|
3654
|
+
return Ue(W);
|
|
3655
|
+
}) : S.slice(0, S.indexOf($)).reverse().find(function(W) {
|
|
3656
|
+
return Ue(W);
|
|
3654
3657
|
}) : x[z + (Z ? 1 : -1)];
|
|
3655
3658
|
}
|
|
3656
3659
|
};
|
|
@@ -3689,8 +3692,8 @@ var Vr = {
|
|
|
3689
3692
|
O ? D = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : D = o.tabbableGroups[0].firstTabbableNode;
|
|
3690
3693
|
else if (O) {
|
|
3691
3694
|
var j = Kr(o.tabbableGroups, function(Y) {
|
|
3692
|
-
var
|
|
3693
|
-
return x ===
|
|
3695
|
+
var H = Y.firstTabbableNode;
|
|
3696
|
+
return x === H;
|
|
3694
3697
|
});
|
|
3695
3698
|
if (j < 0 && (ee.container === x || Dt(x, s.tabbableOptions) && !Ue(x, s.tabbableOptions) && !ee.nextTabbableNode(x, !1)) && (j = V), j >= 0) {
|
|
3696
3699
|
var $ = j === 0 ? o.tabbableGroups.length - 1 : j - 1, Z = o.tabbableGroups[$];
|
|
@@ -3699,11 +3702,11 @@ var Vr = {
|
|
|
3699
3702
|
mt(S) || (D = ee.nextTabbableNode(x, !1));
|
|
3700
3703
|
} else {
|
|
3701
3704
|
var z = Kr(o.tabbableGroups, function(Y) {
|
|
3702
|
-
var
|
|
3703
|
-
return x ===
|
|
3705
|
+
var H = Y.lastTabbableNode;
|
|
3706
|
+
return x === H;
|
|
3704
3707
|
});
|
|
3705
3708
|
if (z < 0 && (ee.container === x || Dt(x, s.tabbableOptions) && !Ue(x, s.tabbableOptions) && !ee.nextTabbableNode(x)) && (z = V), z >= 0) {
|
|
3706
|
-
var
|
|
3709
|
+
var W = z === o.tabbableGroups.length - 1 ? 0 : z + 1, X = o.tabbableGroups[W];
|
|
3707
3710
|
D = Le(x) >= 0 ? X.firstTabbableNode : X.firstDomTabbableNode;
|
|
3708
3711
|
} else
|
|
3709
3712
|
mt(S) || (D = ee.nextTabbableNode(x));
|
|
@@ -3833,7 +3836,7 @@ var Vr = {
|
|
|
3833
3836
|
deactivate: function(T) {
|
|
3834
3837
|
if (!o.active)
|
|
3835
3838
|
return this;
|
|
3836
|
-
var x =
|
|
3839
|
+
var x = Hr({
|
|
3837
3840
|
onDeactivate: s.onDeactivate,
|
|
3838
3841
|
onPostDeactivate: s.onPostDeactivate,
|
|
3839
3842
|
checkCanReturnFocus: s.checkCanReturnFocus
|
|
@@ -3896,19 +3899,19 @@ function To(t, e, n) {
|
|
|
3896
3899
|
function Eo(t, e) {
|
|
3897
3900
|
if (typeof e != "function" && e !== null)
|
|
3898
3901
|
throw new TypeError("Super expression must either be null or a function");
|
|
3899
|
-
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e &&
|
|
3902
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && Wn(t, e);
|
|
3900
3903
|
}
|
|
3901
|
-
function
|
|
3902
|
-
return
|
|
3904
|
+
function Wn(t, e) {
|
|
3905
|
+
return Wn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, a) {
|
|
3903
3906
|
return r.__proto__ = a, r;
|
|
3904
|
-
},
|
|
3907
|
+
}, Wn(t, e);
|
|
3905
3908
|
}
|
|
3906
3909
|
function So(t) {
|
|
3907
3910
|
var e = No();
|
|
3908
3911
|
return function() {
|
|
3909
|
-
var r =
|
|
3912
|
+
var r = Ht(t), a;
|
|
3910
3913
|
if (e) {
|
|
3911
|
-
var s =
|
|
3914
|
+
var s = Ht(this).constructor;
|
|
3912
3915
|
a = Reflect.construct(r, arguments, s);
|
|
3913
3916
|
} else
|
|
3914
3917
|
a = r.apply(this, arguments);
|
|
@@ -3939,10 +3942,10 @@ function No() {
|
|
|
3939
3942
|
return !1;
|
|
3940
3943
|
}
|
|
3941
3944
|
}
|
|
3942
|
-
function
|
|
3943
|
-
return
|
|
3945
|
+
function Ht(t) {
|
|
3946
|
+
return Ht = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
3944
3947
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
3945
|
-
},
|
|
3948
|
+
}, Ht(t);
|
|
3946
3949
|
}
|
|
3947
3950
|
function $o(t, e, n) {
|
|
3948
3951
|
return e = Ua(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
@@ -4855,7 +4858,7 @@ const Ve = {
|
|
|
4855
4858
|
] }),
|
|
4856
4859
|
/* @__PURE__ */ i.jsx(_, {})
|
|
4857
4860
|
] });
|
|
4858
|
-
},
|
|
4861
|
+
}, Wo = (t, e) => {
|
|
4859
4862
|
const { type: n, payload: r } = e, a = t.errors ? ft(t.errors) : {}, s = t.values ? ft(t.values) : {};
|
|
4860
4863
|
switch (n) {
|
|
4861
4864
|
case "toggleSubmitting":
|
|
@@ -4997,7 +5000,7 @@ const or = ({
|
|
|
4997
5000
|
const D = O.id || O.name;
|
|
4998
5001
|
D && (U[D] = O.value || "");
|
|
4999
5002
|
});
|
|
5000
|
-
const [R, N] = Jn(
|
|
5003
|
+
const [R, N] = Jn(Wo, {
|
|
5001
5004
|
isSubmitting: !1,
|
|
5002
5005
|
formSubmitted: !1,
|
|
5003
5006
|
errors: {},
|
|
@@ -5172,9 +5175,9 @@ const or = ({
|
|
|
5172
5175
|
f && M && /* @__PURE__ */ i.jsx(qt, { className: "success", children: typeof f == "string" ? f : w.formatMessage({ id: "form_success" }) })
|
|
5173
5176
|
] });
|
|
5174
5177
|
};
|
|
5175
|
-
const Ct = "passwordRules_",
|
|
5176
|
-
[
|
|
5177
|
-
[
|
|
5178
|
+
const Ct = "passwordRules_", Wa = "isMoreThanEightCharacters", Ha = "includesNumberAndSymbol", Va = "includesLowerAndUppercase", Ho = {
|
|
5179
|
+
[Wa]: "8Characters",
|
|
5180
|
+
[Ha]: "numberSymbol",
|
|
5178
5181
|
[Va]: "lowercaseUppercase"
|
|
5179
5182
|
}, Vo = ({
|
|
5180
5183
|
matchingRules: t = {
|
|
@@ -5187,7 +5190,7 @@ const Ct = "passwordRules_", Ha = "isMoreThanEightCharacters", Wa = "includesNum
|
|
|
5187
5190
|
const n = Q();
|
|
5188
5191
|
return /* @__PURE__ */ i.jsxs("aside", { className: C("password-rules", e), children: [
|
|
5189
5192
|
/* @__PURE__ */ i.jsx("small", { children: n.formatMessage({ id: `${Ct}intro` }) }),
|
|
5190
|
-
/* @__PURE__ */ i.jsx("ul", { children: [
|
|
5193
|
+
/* @__PURE__ */ i.jsx("ul", { children: [Wa, Ha, Va].map(
|
|
5191
5194
|
(r) => /* @__PURE__ */ i.jsxs(
|
|
5192
5195
|
"li",
|
|
5193
5196
|
{
|
|
@@ -5197,7 +5200,7 @@ const Ct = "passwordRules_", Ha = "isMoreThanEightCharacters", Wa = "includesNum
|
|
|
5197
5200
|
n.formatMessage({ id: `${Ct}rule_label` }),
|
|
5198
5201
|
" "
|
|
5199
5202
|
] }),
|
|
5200
|
-
/* @__PURE__ */ i.jsx("span", { children: n.formatMessage({ id: `${Ct}rule_${
|
|
5203
|
+
/* @__PURE__ */ i.jsx("span", { children: n.formatMessage({ id: `${Ct}rule_${Ho[r]}` }) }),
|
|
5201
5204
|
!t[r] && /* @__PURE__ */ i.jsxs(be, { element: "strong", children: [
|
|
5202
5205
|
" ",
|
|
5203
5206
|
n.formatMessage({ id: `${Ct}notMet` })
|
|
@@ -5643,15 +5646,15 @@ const Go = ({
|
|
|
5643
5646
|
await n(c), localStorage.setItem("email", o.email), r && r({ ...o, ...s.values }), a([{ type: "showSuccessMessage", value: !0 }]);
|
|
5644
5647
|
};
|
|
5645
5648
|
var Jo = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
|
|
5646
|
-
function
|
|
5647
|
-
return
|
|
5649
|
+
function Hn() {
|
|
5650
|
+
return Hn = Object.assign ? Object.assign.bind() : function(t) {
|
|
5648
5651
|
for (var e = 1; e < arguments.length; e++) {
|
|
5649
5652
|
var n = arguments[e];
|
|
5650
5653
|
for (var r in n)
|
|
5651
5654
|
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
5652
5655
|
}
|
|
5653
5656
|
return t;
|
|
5654
|
-
},
|
|
5657
|
+
}, Hn.apply(this, arguments);
|
|
5655
5658
|
}
|
|
5656
5659
|
function Xo(t, e) {
|
|
5657
5660
|
if (t == null)
|
|
@@ -5740,7 +5743,7 @@ var rn = /* @__PURE__ */ function(t) {
|
|
|
5740
5743
|
var a = this.props;
|
|
5741
5744
|
a.sitekey, a.onChange, a.theme, a.type, a.tabindex, a.onExpired, a.onErrored, a.size, a.stoken, a.grecaptcha, a.badge, a.hl, a.isolated;
|
|
5742
5745
|
var s = Xo(a, Jo);
|
|
5743
|
-
return /* @__PURE__ */ Sr.createElement("div",
|
|
5746
|
+
return /* @__PURE__ */ Sr.createElement("div", Hn({}, s, {
|
|
5744
5747
|
ref: this.handleRecaptchaRef
|
|
5745
5748
|
}));
|
|
5746
5749
|
}, e;
|
|
@@ -7393,21 +7396,30 @@ const xd = ({ tabs: t, className: e = "" }) => {
|
|
|
7393
7396
|
}
|
|
7394
7397
|
const [a, s] = ne(
|
|
7395
7398
|
(u = t[r]) != null && u.id ? t[r].id : n(t[r].id, t[r].text, r)
|
|
7396
|
-
)
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7399
|
+
);
|
|
7400
|
+
se(() => {
|
|
7401
|
+
if (t[r].hasCarousel) {
|
|
7402
|
+
const l = new CustomEvent("hiddenSectionVisible", {
|
|
7403
|
+
detail: { id: a }
|
|
7404
|
+
});
|
|
7405
|
+
window.dispatchEvent(l);
|
|
7406
|
+
}
|
|
7407
|
+
}, [a]);
|
|
7408
|
+
const o = [], c = [];
|
|
7409
|
+
return t.forEach(({ id: l, text: f, content: d, href: m, hasCarousel: p }, g) => {
|
|
7410
|
+
l = n(l, f, g);
|
|
7411
|
+
const v = a === l, b = {};
|
|
7412
|
+
m || (b["aria-controls"] = l, b.onClick = (y) => {
|
|
7413
|
+
y.preventDefault(), y.stopPropagation(), s(l), window.location.hash = `#${l}`;
|
|
7402
7414
|
}, c.push(
|
|
7403
7415
|
/* @__PURE__ */ i.jsx(
|
|
7404
7416
|
"section",
|
|
7405
7417
|
{
|
|
7406
7418
|
id: l,
|
|
7407
|
-
hidden: !
|
|
7419
|
+
hidden: !v,
|
|
7408
7420
|
role: "tabpanel",
|
|
7409
7421
|
"aria-labelledby": `tab-${l}`,
|
|
7410
|
-
"aria-live":
|
|
7422
|
+
"aria-live": v ? "assertive" : "off",
|
|
7411
7423
|
children: typeof d == "string" ? /* @__PURE__ */ i.jsx("p", { children: d }) : d
|
|
7412
7424
|
},
|
|
7413
7425
|
`section-${l}`
|
|
@@ -7418,10 +7430,10 @@ const xd = ({ tabs: t, className: e = "" }) => {
|
|
|
7418
7430
|
{
|
|
7419
7431
|
href: m || `#${l}`,
|
|
7420
7432
|
id: `tab-${l}`,
|
|
7421
|
-
className: C({ selected:
|
|
7433
|
+
className: C({ selected: v }),
|
|
7422
7434
|
role: "tab",
|
|
7423
|
-
"aria-selected":
|
|
7424
|
-
...
|
|
7435
|
+
"aria-selected": v,
|
|
7436
|
+
...b,
|
|
7425
7437
|
children: f
|
|
7426
7438
|
}
|
|
7427
7439
|
) }, `tab-${l}`)
|
|
@@ -8610,11 +8622,11 @@ const xe = "discussion_form_", dr = ({
|
|
|
8610
8622
|
...t && { questionSlug: t },
|
|
8611
8623
|
...e && { answerSlug: e },
|
|
8612
8624
|
...n && { replySlug: n }
|
|
8613
|
-
}),
|
|
8625
|
+
}), Wc = (t, e = 10) => !t || t.length === 0 ? [] : t.slice(0, e);
|
|
8614
8626
|
let ht = !1;
|
|
8615
8627
|
const On = () => {
|
|
8616
8628
|
ht !== !1 && (clearTimeout(ht), ht = !1);
|
|
8617
|
-
}, Fn = 5,
|
|
8629
|
+
}, Fn = 5, Hc = ({
|
|
8618
8630
|
element: t = "div",
|
|
8619
8631
|
likes: e = 0,
|
|
8620
8632
|
peopleWhoLiked: n = !1,
|
|
@@ -8631,7 +8643,7 @@ const On = () => {
|
|
|
8631
8643
|
p(a);
|
|
8632
8644
|
}, [a]);
|
|
8633
8645
|
const [f, d] = ne(e), [m, p] = ne(a), [g, v] = ne(!1), [b, y] = ne(!1), _ = bt(
|
|
8634
|
-
() =>
|
|
8646
|
+
() => Wc(n, Fn),
|
|
8635
8647
|
[n]
|
|
8636
8648
|
), E = (w) => {
|
|
8637
8649
|
if (w.preventDefault(), w.stopPropagation(), y(!1), ht)
|
|
@@ -8774,8 +8786,8 @@ const Me = "discussion_", Vc = 280, on = ({
|
|
|
8774
8786
|
se(() => {
|
|
8775
8787
|
const F = S.current;
|
|
8776
8788
|
if (!(!F || ee === "default"))
|
|
8777
|
-
return document.addEventListener("discussionFormSubmitted", z), F.addEventListener("transitionend",
|
|
8778
|
-
document.removeEventListener("discussionFormSubmitted", z), F.removeEventListener("transitionend",
|
|
8789
|
+
return document.addEventListener("discussionFormSubmitted", z), F.addEventListener("transitionend", W), () => {
|
|
8790
|
+
document.removeEventListener("discussionFormSubmitted", z), F.removeEventListener("transitionend", W);
|
|
8779
8791
|
};
|
|
8780
8792
|
}, []), se(() => {
|
|
8781
8793
|
O({
|
|
@@ -8791,8 +8803,8 @@ const Me = "discussion_", Vc = 280, on = ({
|
|
|
8791
8803
|
/* Fading */
|
|
8792
8804
|
);
|
|
8793
8805
|
}, 1e3);
|
|
8794
|
-
},
|
|
8795
|
-
F === "background-color" && j((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", z), S.current && S.current.removeEventListener("transitionend",
|
|
8806
|
+
}, W = ({ propertyName: F }) => {
|
|
8807
|
+
F === "background-color" && j((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", z), S.current && S.current.removeEventListener("transitionend", W)), oe === "fading" ? "default" : oe));
|
|
8796
8808
|
};
|
|
8797
8809
|
if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
|
|
8798
8810
|
return /* @__PURE__ */ i.jsx(Se, { className: "discussion-card discussion-post" });
|
|
@@ -8807,7 +8819,7 @@ const Me = "discussion_", Vc = 280, on = ({
|
|
|
8807
8819
|
} catch {
|
|
8808
8820
|
Z(`${Me}form_error`);
|
|
8809
8821
|
}
|
|
8810
|
-
},
|
|
8822
|
+
}, H = () => {
|
|
8811
8823
|
E && E.updateConversation && E.updateConversation({ showForm: !0 }), setTimeout(() => {
|
|
8812
8824
|
var Pe, Ce, qe;
|
|
8813
8825
|
const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Pe = e.slugs) == null ? void 0 : Pe.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((qe = e.slugs) == null ? void 0 : qe.question) || "").toLowerCase().slice(-15)}`, A = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
|
|
@@ -8948,7 +8960,7 @@ const Me = "discussion_", Vc = 280, on = ({
|
|
|
8948
8960
|
"data-testid": `${e.type}-actions`,
|
|
8949
8961
|
children: [
|
|
8950
8962
|
/* @__PURE__ */ i.jsx(
|
|
8951
|
-
|
|
8963
|
+
Hc,
|
|
8952
8964
|
{
|
|
8953
8965
|
element: "li",
|
|
8954
8966
|
likes: N,
|
|
@@ -9002,7 +9014,7 @@ const Me = "discussion_", Vc = 280, on = ({
|
|
|
9002
9014
|
variant: "tertiary",
|
|
9003
9015
|
size: "medium",
|
|
9004
9016
|
styling: { muted: !0 },
|
|
9005
|
-
onClick:
|
|
9017
|
+
onClick: H,
|
|
9006
9018
|
children: y.formatMessage({ id: `${Me}reply` })
|
|
9007
9019
|
}
|
|
9008
9020
|
) }),
|
|
@@ -9673,9 +9685,9 @@ const Ed = ({
|
|
|
9673
9685
|
latest_reactions: R,
|
|
9674
9686
|
reaction_counts: N
|
|
9675
9687
|
} = E, B = (((I = R == null ? void 0 : R.like) == null ? void 0 : I.length) || 0) > 0, L = (((O = U == null ? void 0 : U.like) == null ? void 0 : O.length) || 0) > 0, M = L ? U == null ? void 0 : U.like[0].id : "", T = B ? (D = R == null ? void 0 : R.like) == null ? void 0 : D.map((z) => {
|
|
9676
|
-
var
|
|
9688
|
+
var W, X, Y;
|
|
9677
9689
|
return {
|
|
9678
|
-
id: (
|
|
9690
|
+
id: (W = z == null ? void 0 : z.user) == null ? void 0 : W.id,
|
|
9679
9691
|
name: (Y = (X = z == null ? void 0 : z.user) == null ? void 0 : X.data) == null ? void 0 : Y.name
|
|
9680
9692
|
};
|
|
9681
9693
|
}) : !1, x = E == null ? void 0 : E.actor, S = (x == null ? void 0 : x.id) === (y == null ? void 0 : y.id);
|
|
@@ -9717,7 +9729,7 @@ const Ed = ({
|
|
|
9717
9729
|
createContent: () => null,
|
|
9718
9730
|
deleteContent: () => g({ activityId: w }),
|
|
9719
9731
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9720
|
-
updateContent: (z, { body:
|
|
9732
|
+
updateContent: (z, { body: W }) => p({ activityId: w, content: W })
|
|
9721
9733
|
},
|
|
9722
9734
|
likes: {
|
|
9723
9735
|
createLike: () => v({ activityId: w }),
|
|
@@ -10537,20 +10549,20 @@ const El = ({
|
|
|
10537
10549
|
meta: { isEditing: !1, showSuccessMessage: !1 }
|
|
10538
10550
|
},
|
|
10539
10551
|
children: o && o.length > 0 ? o == null ? void 0 : o.map((b) => {
|
|
10540
|
-
var I, O, D, V, ee, j, $, Z, z,
|
|
10552
|
+
var I, O, D, V, ee, j, $, Z, z, W, X, Y;
|
|
10541
10553
|
const {
|
|
10542
10554
|
id: y,
|
|
10543
10555
|
own_children: _,
|
|
10544
10556
|
latest_children: E,
|
|
10545
10557
|
children_counts: k
|
|
10546
|
-
} = b, U = (((I = _ == null ? void 0 : _.like) == null ? void 0 : I.length) || 0) > 0 ? (O = _ == null ? void 0 : _.like) == null ? void 0 : O.find((
|
|
10558
|
+
} = b, U = (((I = _ == null ? void 0 : _.like) == null ? void 0 : I.length) || 0) > 0 ? (O = _ == null ? void 0 : _.like) == null ? void 0 : O.find((H) => {
|
|
10547
10559
|
var J;
|
|
10548
|
-
return ((J =
|
|
10549
|
-
}) : !1, R = U ? U == null ? void 0 : U.id : "", N = !!U, L = (((D = E == null ? void 0 : E.like) == null ? void 0 : D.length) || 0) > 0 ? (V = E == null ? void 0 : E.like) == null ? void 0 : V.map((
|
|
10560
|
+
return ((J = H == null ? void 0 : H.user) == null ? void 0 : J.id) === (v == null ? void 0 : v.id);
|
|
10561
|
+
}) : !1, R = U ? U == null ? void 0 : U.id : "", N = !!U, L = (((D = E == null ? void 0 : E.like) == null ? void 0 : D.length) || 0) > 0 ? (V = E == null ? void 0 : E.like) == null ? void 0 : V.map((H) => {
|
|
10550
10562
|
var J, re, F;
|
|
10551
10563
|
return {
|
|
10552
|
-
id: (J =
|
|
10553
|
-
name: (F = (re =
|
|
10564
|
+
id: (J = H == null ? void 0 : H.user) == null ? void 0 : J.id,
|
|
10565
|
+
name: (F = (re = H == null ? void 0 : H.user) == null ? void 0 : re.data) == null ? void 0 : F.name
|
|
10554
10566
|
};
|
|
10555
10567
|
}) : !1, M = b == null ? void 0 : b.user, T = (M == null ? void 0 : M.id) === (v == null ? void 0 : v.id), x = sn(a, T), S = typeof b.data.content == "string" ? (ee = b == null ? void 0 : b.data) == null ? void 0 : ee.content : (
|
|
10556
10568
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -10577,7 +10589,7 @@ const El = ({
|
|
|
10577
10589
|
id: M == null ? void 0 : M.id,
|
|
10578
10590
|
name: (Z = M.data) == null ? void 0 : Z.name,
|
|
10579
10591
|
organization: (z = M.data) == null ? void 0 : z.organization,
|
|
10580
|
-
jobTitle: (
|
|
10592
|
+
jobTitle: (W = M.data) == null ? void 0 : W.jobTitle,
|
|
10581
10593
|
location: (X = M.data) == null ? void 0 : X.location,
|
|
10582
10594
|
image: {
|
|
10583
10595
|
thumbnail: ((Y = M.data) == null ? void 0 : Y.thumbnail) || void 0
|
|
@@ -10592,7 +10604,7 @@ const El = ({
|
|
|
10592
10604
|
createContent: () => null,
|
|
10593
10605
|
deleteContent: () => p({ replyId: y }),
|
|
10594
10606
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10595
|
-
updateContent: (
|
|
10607
|
+
updateContent: (H, { body: J }) => d({ replyId: y, content: J })
|
|
10596
10608
|
},
|
|
10597
10609
|
likes: {
|
|
10598
10610
|
createLike: () => m({ replyId: y }),
|
|
@@ -10649,7 +10661,7 @@ const El = ({
|
|
|
10649
10661
|
}
|
|
10650
10662
|
),
|
|
10651
10663
|
u == null ? void 0 : u.map((E) => {
|
|
10652
|
-
var V, ee, j, $, Z, z,
|
|
10664
|
+
var V, ee, j, $, Z, z, W, X, Y, H, J, re;
|
|
10653
10665
|
const { id: k, own_children: w, latest_children: U, children_counts: R } = E, B = (((V = w == null ? void 0 : w.like) == null ? void 0 : V.length) || 0) > 0 ? (ee = w == null ? void 0 : w.like) == null ? void 0 : ee.find((F) => {
|
|
10654
10666
|
var oe;
|
|
10655
10667
|
return ((oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id) === (_ == null ? void 0 : _.id);
|
|
@@ -10661,7 +10673,7 @@ const El = ({
|
|
|
10661
10673
|
};
|
|
10662
10674
|
}) : !1, S = E == null ? void 0 : E.user, I = (S == null ? void 0 : S.id) === (_ == null ? void 0 : _.id), O = sn(r, I), D = typeof E.data.content == "string" ? (Z = E == null ? void 0 : E.data) == null ? void 0 : Z.content : (
|
|
10663
10675
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10664
|
-
((
|
|
10676
|
+
((W = (z = E == null ? void 0 : E.data) == null ? void 0 : z.content) == null ? void 0 : W.text) || ""
|
|
10665
10677
|
);
|
|
10666
10678
|
return /* @__PURE__ */ i.jsx(zc, { children: /* @__PURE__ */ i.jsx(
|
|
10667
10679
|
on,
|
|
@@ -10682,7 +10694,7 @@ const El = ({
|
|
|
10682
10694
|
id: S == null ? void 0 : S.id,
|
|
10683
10695
|
name: (X = S.data) == null ? void 0 : X.name,
|
|
10684
10696
|
organization: (Y = S.data) == null ? void 0 : Y.organization,
|
|
10685
|
-
jobTitle: (
|
|
10697
|
+
jobTitle: (H = S.data) == null ? void 0 : H.jobTitle,
|
|
10686
10698
|
location: (J = S.data) == null ? void 0 : J.location,
|
|
10687
10699
|
image: {
|
|
10688
10700
|
thumbnail: ((re = S.data) == null ? void 0 : re.thumbnail) || void 0
|
|
@@ -11046,7 +11058,7 @@ export {
|
|
|
11046
11058
|
pd as Directory,
|
|
11047
11059
|
zc as DiscussionConversation,
|
|
11048
11060
|
dr as DiscussionForm,
|
|
11049
|
-
|
|
11061
|
+
Hc as DiscussionLikes,
|
|
11050
11062
|
on as DiscussionPost,
|
|
11051
11063
|
Kc as DiscussionThread,
|
|
11052
11064
|
Fe as Divider,
|