@apolitical/component-library 3.1.0-beta.1 → 3.1.0-beta.3
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 +1 -1
- package/index.mjs +273 -271
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_text.scss +1 -1
- package/text/markdown-text/components/div/div.d.ts +1 -1
package/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import bi from "lodash.set";
|
|
|
4
4
|
import { useIntl as K, IntlProvider as yi, FormattedMessage as _e, createIntl as _i } from "react-intl";
|
|
5
5
|
import Re from "markdown-to-jsx";
|
|
6
6
|
import Je from "truncate";
|
|
7
|
-
import { QueryClient as xi, QueryClientProvider as wi, useMutation as
|
|
8
|
-
import { ReactQueryDevtools as
|
|
7
|
+
import { QueryClient as xi, QueryClientProvider as wi, useMutation as je, useQueryClient as Wn, useInfiniteQuery as ra, useQuery as ji } from "@tanstack/react-query";
|
|
8
|
+
import { ReactQueryDevtools as ki } from "@tanstack/react-query-devtools";
|
|
9
9
|
import Ot from "posthog-js";
|
|
10
10
|
import { CookiesProvider as Ti, useCookies as aa } from "react-cookie";
|
|
11
11
|
import { ReactMultiEmail as Ei } from "react-multi-email";
|
|
@@ -142,10 +142,10 @@ function Fi() {
|
|
|
142
142
|
{
|
|
143
143
|
for (var P = arguments.length, B = new Array(P > 1 ? P - 1 : 0), ne = 1; ne < P; ne++)
|
|
144
144
|
B[ne - 1] = arguments[ne];
|
|
145
|
-
|
|
145
|
+
j("error", h, B);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function j(h, P, B) {
|
|
149
149
|
{
|
|
150
150
|
var ne = v.ReactDebugCurrentFrame, le = ne.getStackAddendum();
|
|
151
151
|
le !== "" && (P += "%s", B = B.concat([le]));
|
|
@@ -219,14 +219,14 @@ function Fi() {
|
|
|
219
219
|
}
|
|
220
220
|
return null;
|
|
221
221
|
}
|
|
222
|
-
var $ = Object.assign, L = 0, U, I, Z, J,
|
|
222
|
+
var $ = Object.assign, L = 0, U, I, Z, J, k, N, z;
|
|
223
223
|
function q() {
|
|
224
224
|
}
|
|
225
225
|
q.__reactDisabledLog = !0;
|
|
226
226
|
function H() {
|
|
227
227
|
{
|
|
228
228
|
if (L === 0) {
|
|
229
|
-
U = console.log, I = console.info, Z = console.warn, J = console.error,
|
|
229
|
+
U = console.log, I = console.info, Z = console.warn, J = console.error, k = console.group, N = console.groupCollapsed, z = console.groupEnd;
|
|
230
230
|
var h = {
|
|
231
231
|
configurable: !0,
|
|
232
232
|
enumerable: !0,
|
|
@@ -268,7 +268,7 @@ function Fi() {
|
|
|
268
268
|
value: J
|
|
269
269
|
}),
|
|
270
270
|
group: $({}, h, {
|
|
271
|
-
value:
|
|
271
|
+
value: k
|
|
272
272
|
}),
|
|
273
273
|
groupCollapsed: $({}, h, {
|
|
274
274
|
value: N
|
|
@@ -357,9 +357,9 @@ function Fi() {
|
|
|
357
357
|
if (he !== 1 || ge !== 1)
|
|
358
358
|
do
|
|
359
359
|
if (he--, ge--, ge < 0 || se[he] !== xe[ge]) {
|
|
360
|
-
var
|
|
360
|
+
var ke = `
|
|
361
361
|
` + se[he].replace(" at new ", " at ");
|
|
362
|
-
return h.displayName &&
|
|
362
|
+
return h.displayName && ke.includes("<anonymous>") && (ke = ke.replace("<anonymous>", h.displayName)), typeof h == "function" && F.set(h, ke), ke;
|
|
363
363
|
}
|
|
364
364
|
while (he >= 1 && ge >= 0);
|
|
365
365
|
break;
|
|
@@ -689,17 +689,17 @@ Check the top-level render call using <` + B + ">.");
|
|
|
689
689
|
if (ge == null)
|
|
690
690
|
return ge;
|
|
691
691
|
if (ce) {
|
|
692
|
-
var
|
|
693
|
-
if (
|
|
692
|
+
var ke = P.children;
|
|
693
|
+
if (ke !== void 0)
|
|
694
694
|
if (ne)
|
|
695
|
-
if (an(
|
|
696
|
-
for (var Ye = 0; Ye <
|
|
697
|
-
gr(
|
|
698
|
-
Object.freeze && Object.freeze(
|
|
695
|
+
if (an(ke)) {
|
|
696
|
+
for (var Ye = 0; Ye < ke.length; Ye++)
|
|
697
|
+
gr(ke[Ye], h);
|
|
698
|
+
Object.freeze && Object.freeze(ke);
|
|
699
699
|
} else
|
|
700
700
|
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
701
701
|
else
|
|
702
|
-
gr(
|
|
702
|
+
gr(ke, h);
|
|
703
703
|
}
|
|
704
704
|
return h === r ? fi(ge) : di(ge), ge;
|
|
705
705
|
}
|
|
@@ -743,7 +743,7 @@ function Ai(t, e, n) {
|
|
|
743
743
|
d.current = !1;
|
|
744
744
|
};
|
|
745
745
|
}, []);
|
|
746
|
-
var
|
|
746
|
+
var j = bt(function() {
|
|
747
747
|
var T = function(O) {
|
|
748
748
|
var C = c.current, E = f.current;
|
|
749
749
|
return c.current = f.current = null, s.current = O, l.current = u.current.apply(E, C);
|
|
@@ -784,7 +784,7 @@ function Ai(t, e, n) {
|
|
|
784
784
|
return o.current ? R(Date.now()) : l.current;
|
|
785
785
|
}, M;
|
|
786
786
|
}, [g, _, e, b, y, p, m, v]);
|
|
787
|
-
return
|
|
787
|
+
return j;
|
|
788
788
|
}
|
|
789
789
|
function la(t, e, n) {
|
|
790
790
|
var r = n === void 0 ? {} : n, i = r.leading, s = r.trailing;
|
|
@@ -891,11 +891,11 @@ const yt = (t = !0, e = !1, n = "window") => {
|
|
|
891
891
|
default: "dpo@apolitical.co",
|
|
892
892
|
eu: "dpo.agl@apolitical.foundation"
|
|
893
893
|
}
|
|
894
|
-
},
|
|
894
|
+
}, jt = {
|
|
895
895
|
ARTICLE: "microcourseArticle",
|
|
896
896
|
DISCUSSION: "microcourseDiscussion",
|
|
897
897
|
QUIZ: "assessmentQuiz"
|
|
898
|
-
},
|
|
898
|
+
}, jl = "200,000+";
|
|
899
899
|
function Ui(t) {
|
|
900
900
|
return t ? {
|
|
901
901
|
"--icon": `url(${ze}icons/${t}.svg)`
|
|
@@ -1400,7 +1400,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1400
1400
|
const e = document.querySelector(".splash-screen");
|
|
1401
1401
|
e && e.remove(), window.prerenderReady = !0;
|
|
1402
1402
|
}, t);
|
|
1403
|
-
}, Ji = (t) => t.replace(/\s+/g, "").length > 0,
|
|
1403
|
+
}, Ji = (t) => t.replace(/\s+/g, "").length > 0, kl = (t) => {
|
|
1404
1404
|
const e = t.length > 8, n = /[0-9]/.test(t) && /[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(t), r = new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(t);
|
|
1405
1405
|
return {
|
|
1406
1406
|
isValid: e && n && r,
|
|
@@ -1662,7 +1662,7 @@ const El = ({ elementId: t, offset: e = 20 }) => {
|
|
|
1662
1662
|
screenreaderText: n.formatMessage({ id: "return_to_nav_button" })
|
|
1663
1663
|
}
|
|
1664
1664
|
);
|
|
1665
|
-
}, wr = 300,
|
|
1665
|
+
}, wr = 300, jr = "ease-in-out";
|
|
1666
1666
|
class ts {
|
|
1667
1667
|
constructor(e) {
|
|
1668
1668
|
this.el = e, this.summary = e.querySelector("summary"), this.content = e.querySelector(".content"), this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.summary.addEventListener("click", (n) => this.onClick(n));
|
|
@@ -1679,7 +1679,7 @@ class ts {
|
|
|
1679
1679
|
},
|
|
1680
1680
|
{
|
|
1681
1681
|
duration: wr,
|
|
1682
|
-
easing:
|
|
1682
|
+
easing: jr
|
|
1683
1683
|
}
|
|
1684
1684
|
), this.animation.onfinish = () => this.onAnimationFinish(!1), this.animation.oncancel = () => this.isClosing = !1;
|
|
1685
1685
|
}
|
|
@@ -1695,7 +1695,7 @@ class ts {
|
|
|
1695
1695
|
},
|
|
1696
1696
|
{
|
|
1697
1697
|
duration: wr,
|
|
1698
|
-
easing:
|
|
1698
|
+
easing: jr
|
|
1699
1699
|
}
|
|
1700
1700
|
), this.animation.onfinish = () => this.onAnimationFinish(!0), this.animation.oncancel = () => this.isExpanding = !1;
|
|
1701
1701
|
}
|
|
@@ -1725,7 +1725,7 @@ const Kn = ({
|
|
|
1725
1725
|
]
|
|
1726
1726
|
}
|
|
1727
1727
|
);
|
|
1728
|
-
},
|
|
1728
|
+
}, kr = {
|
|
1729
1729
|
cube: "box",
|
|
1730
1730
|
graduationCap: "graduation-cap",
|
|
1731
1731
|
person: "user",
|
|
@@ -1733,7 +1733,7 @@ const Kn = ({
|
|
|
1733
1733
|
star: "star_empty_thin"
|
|
1734
1734
|
}, ns = (t) => {
|
|
1735
1735
|
let e = t;
|
|
1736
|
-
return Object.keys(
|
|
1736
|
+
return Object.keys(kr).includes(t) && (e = kr[t]), `url(${ze}icons/${e}.svg)`;
|
|
1737
1737
|
};
|
|
1738
1738
|
const Tr = {
|
|
1739
1739
|
customCard: "custom",
|
|
@@ -1978,6 +1978,8 @@ const Cl = ({
|
|
|
1978
1978
|
return /* @__PURE__ */ a.jsx(Fe, { variant: "primary", children: t });
|
|
1979
1979
|
case "pink-textbox":
|
|
1980
1980
|
return /* @__PURE__ */ a.jsx(Fe, { variant: "tertiary", children: t });
|
|
1981
|
+
case "content":
|
|
1982
|
+
return typeof t == "object" && Object.keys(t || {}).length === 1 ? /* @__PURE__ */ a.jsx("p", { children: t }) : t;
|
|
1981
1983
|
default:
|
|
1982
1984
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
1983
1985
|
}
|
|
@@ -2566,7 +2568,7 @@ const Il = ({
|
|
|
2566
2568
|
});
|
|
2567
2569
|
return /* @__PURE__ */ a.jsxs(wi, { client: n, children: [
|
|
2568
2570
|
e,
|
|
2569
|
-
t && /* @__PURE__ */ a.jsx(
|
|
2571
|
+
t && /* @__PURE__ */ a.jsx(ki, { initialIsOpen: !1 })
|
|
2570
2572
|
] });
|
|
2571
2573
|
};
|
|
2572
2574
|
var xs = zn({ client: Ot });
|
|
@@ -2576,7 +2578,7 @@ function ws(t) {
|
|
|
2576
2578
|
}, [n, r]);
|
|
2577
2579
|
return Y.createElement(xs.Provider, { value: { client: s } }, e);
|
|
2578
2580
|
}
|
|
2579
|
-
const
|
|
2581
|
+
const js = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
|
|
2580
2582
|
ws,
|
|
2581
2583
|
{
|
|
2582
2584
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
@@ -2595,7 +2597,7 @@ const ks = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2595
2597
|
},
|
|
2596
2598
|
children: t
|
|
2597
2599
|
}
|
|
2598
|
-
) : t,
|
|
2600
|
+
) : t, ks = ({ children: t, locale: e, messages: n }) => {
|
|
2599
2601
|
const r = e || "en", i = {
|
|
2600
2602
|
...Ki[r],
|
|
2601
2603
|
...n || {}
|
|
@@ -2611,7 +2613,7 @@ const Ts = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { va
|
|
|
2611
2613
|
t().then((o) => {
|
|
2612
2614
|
s({ ...o, isLoading: !1 }), Qi(5e3);
|
|
2613
2615
|
}).catch(() => s({ isLoading: !1 }));
|
|
2614
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
2616
|
+
}, []), /* @__PURE__ */ a.jsx(ks, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ a.jsx(Ti, { children: /* @__PURE__ */ a.jsx(Ts, { user: i, children: /* @__PURE__ */ a.jsx(_s, { showDevTools: r, children: /* @__PURE__ */ a.jsx(js, { user: i, children: e }) }) }) }) });
|
|
2615
2617
|
};
|
|
2616
2618
|
const Es = ({
|
|
2617
2619
|
styling: t = {},
|
|
@@ -2729,14 +2731,14 @@ const Ln = {
|
|
|
2729
2731
|
}, va = (t, e) => t in Ln ? /* @__PURE__ */ a.jsx("div", { className: t, children: Ln[t].map((n, r) => va(n, r)) }, e) : /* @__PURE__ */ a.jsx(Te, { className: t }, e), ba = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: S("loading-state", t), ...e, children: Ln[t].map((n, r) => va(n, r)) }), ya = (t) => {
|
|
2730
2732
|
const e = t && t.toUpperCase().split(" ");
|
|
2731
2733
|
return Array.isArray(e) && e.length > 1 && e[0] !== "" ? e[1] === "" ? e[0][0] : e[0][0] + e[e.length - 1][0] : t ? t.substr(0, 1) : "";
|
|
2732
|
-
},
|
|
2733
|
-
const e = Math.ceil(26 /
|
|
2734
|
+
}, kt = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Cs = (t) => {
|
|
2735
|
+
const e = Math.ceil(26 / kt.length), n = ya(t).toLowerCase();
|
|
2734
2736
|
if (n === "")
|
|
2735
|
-
return
|
|
2737
|
+
return kt[0];
|
|
2736
2738
|
const r = n.charCodeAt(0) - 96;
|
|
2737
|
-
for (let i = 0; i <
|
|
2739
|
+
for (let i = 0; i < kt.length; i++)
|
|
2738
2740
|
if (r <= e * (i + 1))
|
|
2739
|
-
return
|
|
2741
|
+
return kt[i];
|
|
2740
2742
|
};
|
|
2741
2743
|
const Sr = 256, He = ({
|
|
2742
2744
|
className: t = "",
|
|
@@ -3106,9 +3108,9 @@ const Ke = {
|
|
|
3106
3108
|
c && !d ? (async () => {
|
|
3107
3109
|
try {
|
|
3108
3110
|
const b = await i(c) || [];
|
|
3109
|
-
m((
|
|
3111
|
+
m((j) => ({ ...j, predictions: b }));
|
|
3110
3112
|
} catch (b) {
|
|
3111
|
-
console.error("Error fetching predictions:", b), m((
|
|
3113
|
+
console.error("Error fetching predictions:", b), m((j) => ({ ...j, predictions: [] }));
|
|
3112
3114
|
}
|
|
3113
3115
|
})() : m((v) => ({ ...v, predictions: [] }));
|
|
3114
3116
|
}, [c, d]), ae(() => {
|
|
@@ -3136,7 +3138,7 @@ const Ke = {
|
|
|
3136
3138
|
"li",
|
|
3137
3139
|
{
|
|
3138
3140
|
onClick: () => _(v),
|
|
3139
|
-
onMouseEnter: () => m((
|
|
3141
|
+
onMouseEnter: () => m((j) => ({ ...j, activePredictionIndex: b })),
|
|
3140
3142
|
className: S("predictions-list-item", { active: b === u }),
|
|
3141
3143
|
children: v.description
|
|
3142
3144
|
},
|
|
@@ -3226,7 +3228,7 @@ const Fs = ({
|
|
|
3226
3228
|
Array.isArray(y) && y.length === 1 && typeof y[0] == "string" ? v = e && y ? e.find((R) => R.id === y[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(y) && y.length === 1 && typeof y[0] != "string" ? v = y[0] : v = { id: "", label: "" }, ae(() => {
|
|
3227
3229
|
_(g);
|
|
3228
3230
|
}, [r, n]);
|
|
3229
|
-
const { onChange: b, onMultiSelectSubmit:
|
|
3231
|
+
const { onChange: b, onMultiSelectSubmit: j, ...T } = i, w = (R) => {
|
|
3230
3232
|
if (c) {
|
|
3231
3233
|
let W = [];
|
|
3232
3234
|
y != null && y.includes(R.id) ? W = y.filter((M) => M !== R.id) : W = [...y, R.id], _([...W]), b && b([...W]);
|
|
@@ -3335,7 +3337,7 @@ const Fs = ({
|
|
|
3335
3337
|
{
|
|
3336
3338
|
variant: "secondary",
|
|
3337
3339
|
onClick: () => {
|
|
3338
|
-
|
|
3340
|
+
j && j(y), document.dispatchEvent(
|
|
3339
3341
|
new CustomEvent("dropdownMultiSelectSubmit", {
|
|
3340
3342
|
detail: {
|
|
3341
3343
|
id: l || "dropdown-multi-select",
|
|
@@ -3381,7 +3383,7 @@ const Os = ({
|
|
|
3381
3383
|
value: v = y,
|
|
3382
3384
|
disabled: b = !1
|
|
3383
3385
|
}) => {
|
|
3384
|
-
const
|
|
3386
|
+
const j = `${r}_${y}`, T = () => {
|
|
3385
3387
|
if (b)
|
|
3386
3388
|
return;
|
|
3387
3389
|
let w;
|
|
@@ -3396,7 +3398,7 @@ const Os = ({
|
|
|
3396
3398
|
wa,
|
|
3397
3399
|
{
|
|
3398
3400
|
element: "li",
|
|
3399
|
-
id:
|
|
3401
|
+
id: j,
|
|
3400
3402
|
type: l === "checkboxes" ? "checkbox" : "radio",
|
|
3401
3403
|
shownValue: v,
|
|
3402
3404
|
value: s ? p == null ? void 0 : p.includes(v) : g === v,
|
|
@@ -3410,7 +3412,7 @@ const Os = ({
|
|
|
3410
3412
|
}),
|
|
3411
3413
|
disabled: b
|
|
3412
3414
|
},
|
|
3413
|
-
|
|
3415
|
+
j
|
|
3414
3416
|
);
|
|
3415
3417
|
}
|
|
3416
3418
|
)
|
|
@@ -3511,13 +3513,13 @@ const Ge = {
|
|
|
3511
3513
|
),
|
|
3512
3514
|
/* @__PURE__ */ a.jsx(b, { as: "p" })
|
|
3513
3515
|
] });
|
|
3514
|
-
const
|
|
3516
|
+
const j = (T) => Y.createElement(T.element || "label", {
|
|
3515
3517
|
...T,
|
|
3516
3518
|
className: "checkboxes-label text-small",
|
|
3517
3519
|
"data-testid": `label-${t}`
|
|
3518
3520
|
});
|
|
3519
3521
|
return /* @__PURE__ */ a.jsxs("dl", { className: S("field-wrapper text-medium", n), children: [
|
|
3520
|
-
/* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(
|
|
3522
|
+
/* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(j, { ...y, children: [
|
|
3521
3523
|
v,
|
|
3522
3524
|
m && o && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3523
3525
|
" ",
|
|
@@ -3695,7 +3697,7 @@ const Xn = ({
|
|
|
3695
3697
|
},
|
|
3696
3698
|
..._
|
|
3697
3699
|
}) => {
|
|
3698
|
-
const { customOnSubmit: v, hideButton: b, ...
|
|
3700
|
+
const { customOnSubmit: v, hideButton: b, ...j } = s, T = 40, w = K(), D = {};
|
|
3699
3701
|
t.length && t.forEach((I) => {
|
|
3700
3702
|
const Z = I.id || I.name;
|
|
3701
3703
|
Z && (D[Z] = I.value || "");
|
|
@@ -3738,15 +3740,15 @@ const Xn = ({
|
|
|
3738
3740
|
s.text || (s.text = w.formatMessage({ id: "form_submit" }));
|
|
3739
3741
|
const U = [
|
|
3740
3742
|
{
|
|
3741
|
-
...
|
|
3743
|
+
...j,
|
|
3742
3744
|
icon: C ? { icon: "tick", position: "left" } : !1,
|
|
3743
3745
|
className: "gtm-trackable",
|
|
3744
3746
|
onClick: (I) => {
|
|
3745
|
-
var
|
|
3747
|
+
var k;
|
|
3746
3748
|
if (I.preventDefault(), I.stopPropagation(), O)
|
|
3747
3749
|
return;
|
|
3748
3750
|
let Z = 0;
|
|
3749
|
-
if ((
|
|
3751
|
+
if ((k = $ == null ? void 0 : $.current) != null && k.id) {
|
|
3750
3752
|
const N = document.getElementById($.current.id);
|
|
3751
3753
|
N && (Z = N.getBoundingClientRect().top + window.scrollY);
|
|
3752
3754
|
}
|
|
@@ -3822,12 +3824,12 @@ const Xn = ({
|
|
|
3822
3824
|
(!O && !C || v) && t.map((I, Z) => {
|
|
3823
3825
|
const {
|
|
3824
3826
|
id: J = I.name || Z,
|
|
3825
|
-
component:
|
|
3827
|
+
component: k,
|
|
3826
3828
|
functions: N = { onChange: () => {
|
|
3827
3829
|
} }
|
|
3828
3830
|
} = I;
|
|
3829
|
-
if (
|
|
3830
|
-
return /* @__PURE__ */ a.jsx(
|
|
3831
|
+
if (k)
|
|
3832
|
+
return /* @__PURE__ */ a.jsx(k, { ...I.props || {} }, `component-${J}-${Z}`);
|
|
3831
3833
|
const z = E ? E[J] : "";
|
|
3832
3834
|
return /* @__PURE__ */ a.jsx(
|
|
3833
3835
|
Ds,
|
|
@@ -3863,9 +3865,9 @@ const Xn = ({
|
|
|
3863
3865
|
u && C && /* @__PURE__ */ a.jsx(qt, { className: "success", children: typeof u == "string" ? u : w.formatMessage({ id: "form_success" }) })
|
|
3864
3866
|
] });
|
|
3865
3867
|
};
|
|
3866
|
-
const Et = "passwordRules_",
|
|
3867
|
-
[
|
|
3868
|
-
[
|
|
3868
|
+
const Et = "passwordRules_", ja = "isMoreThanEightCharacters", ka = "includesNumberAndSymbol", Ta = "includesLowerAndUppercase", Ls = {
|
|
3869
|
+
[ja]: "8Characters",
|
|
3870
|
+
[ka]: "numberSymbol",
|
|
3869
3871
|
[Ta]: "lowercaseUppercase"
|
|
3870
3872
|
}, Bs = ({
|
|
3871
3873
|
matchingRules: t = {
|
|
@@ -3878,7 +3880,7 @@ const Et = "passwordRules_", ka = "isMoreThanEightCharacters", ja = "includesNum
|
|
|
3878
3880
|
const n = K();
|
|
3879
3881
|
return /* @__PURE__ */ a.jsxs("aside", { className: S("password-rules", e), children: [
|
|
3880
3882
|
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Et}intro` }) }),
|
|
3881
|
-
/* @__PURE__ */ a.jsx("ul", { children: [
|
|
3883
|
+
/* @__PURE__ */ a.jsx("ul", { children: [ja, ka, Ta].map(
|
|
3882
3884
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
3883
3885
|
"li",
|
|
3884
3886
|
{
|
|
@@ -3946,7 +3948,7 @@ const Ul = ({
|
|
|
3946
3948
|
try {
|
|
3947
3949
|
l((b) => ({ ...b, rating: v, disabled: !0 })), await r({ id: d, value: v });
|
|
3948
3950
|
} catch (b) {
|
|
3949
|
-
l((
|
|
3951
|
+
l((j) => ({ ...j, rating: null })), i(b);
|
|
3950
3952
|
} finally {
|
|
3951
3953
|
l((b) => ({ ...b, disabled: !1 }));
|
|
3952
3954
|
}
|
|
@@ -3973,8 +3975,8 @@ const Ul = ({
|
|
|
3973
3975
|
{ id: `${g}stars` },
|
|
3974
3976
|
{ number: b, total: e }
|
|
3975
3977
|
)}${b === 1 || b === e ? ` - ${y[b === 1 ? "low" : "high"]}` : ""}`,
|
|
3976
|
-
onClick: (
|
|
3977
|
-
|
|
3978
|
+
onClick: (j) => {
|
|
3979
|
+
j.preventDefault(), j.stopPropagation(), _(b);
|
|
3978
3980
|
},
|
|
3979
3981
|
disabled: p
|
|
3980
3982
|
}
|
|
@@ -4174,7 +4176,7 @@ const Us = ({
|
|
|
4174
4176
|
"NOT_SUBMITTED"
|
|
4175
4177
|
/* NOT_SUBMITTED */
|
|
4176
4178
|
), p(!0), d([]);
|
|
4177
|
-
},
|
|
4179
|
+
}, j = (T) => {
|
|
4178
4180
|
T.preventDefault(), o(), y(
|
|
4179
4181
|
"CLOSED"
|
|
4180
4182
|
/* CLOSED */
|
|
@@ -4188,7 +4190,7 @@ const Us = ({
|
|
|
4188
4190
|
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
4189
4191
|
/* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4190
4192
|
/* @__PURE__ */ a.jsx(ie, { variant: "secondary", onClick: b, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
4191
|
-
/* @__PURE__ */ a.jsx(ie, { onClick:
|
|
4193
|
+
/* @__PURE__ */ a.jsx(ie, { onClick: j, children: _({ id: "inviteForm_ctaDone" }) })
|
|
4192
4194
|
] }) : /* @__PURE__ */ a.jsx(ie, { onClick: b, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
|
|
4193
4195
|
] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
|
|
4194
4196
|
"form",
|
|
@@ -4613,11 +4615,11 @@ const Ys = {
|
|
|
4613
4615
|
(s.showSuccessMessage || g["signup-this-session"]) && f([{ type: "showSuccessMessage", value: !0 }]);
|
|
4614
4616
|
}, [g]), ae(() => {
|
|
4615
4617
|
if (m && g["functional-cookie-consent"]) {
|
|
4616
|
-
const
|
|
4618
|
+
const j = {
|
|
4617
4619
|
path: "/",
|
|
4618
4620
|
maxAge: 3600
|
|
4619
4621
|
};
|
|
4620
|
-
s.showSuccessMessage || y("signup-this-session", "true",
|
|
4622
|
+
s.showSuccessMessage || y("signup-this-session", "true", j);
|
|
4621
4623
|
}
|
|
4622
4624
|
}, [m]);
|
|
4623
4625
|
const v = bt(() => Hs({
|
|
@@ -4628,7 +4630,7 @@ const Ys = {
|
|
|
4628
4630
|
dispatch: f,
|
|
4629
4631
|
dataToSubmit: i,
|
|
4630
4632
|
intl: o
|
|
4631
|
-
}), [i, e, o, _, n, c]), b = d ? !Object.values(l).every((
|
|
4633
|
+
}), [i, e, o, _, n, c]), b = d ? !Object.values(l).every((j) => j === !0) : !l.name || !l.email || ["exists", "pending", "verify"].includes(u.boxType);
|
|
4632
4634
|
return n.successMessage && m ? /* @__PURE__ */ a.jsx(Vs, { className: t }) : /* @__PURE__ */ a.jsxs(
|
|
4633
4635
|
"fieldset",
|
|
4634
4636
|
{
|
|
@@ -4678,8 +4680,8 @@ const Ys = {
|
|
|
4678
4680
|
state: c
|
|
4679
4681
|
});
|
|
4680
4682
|
},
|
|
4681
|
-
onCatch: (
|
|
4682
|
-
e.handleError(
|
|
4683
|
+
onCatch: (j) => {
|
|
4684
|
+
e.handleError(j), f([
|
|
4683
4685
|
{ type: "showSuccessMessage", value: !1 },
|
|
4684
4686
|
{ type: "showError", value: !0 }
|
|
4685
4687
|
]);
|
|
@@ -4720,7 +4722,7 @@ function Ks() {
|
|
|
4720
4722
|
return ue;
|
|
4721
4723
|
Nr = 1;
|
|
4722
4724
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
|
|
4723
|
-
function
|
|
4725
|
+
function j(w) {
|
|
4724
4726
|
if (typeof w == "object" && w !== null) {
|
|
4725
4727
|
var D = w.$$typeof;
|
|
4726
4728
|
switch (D) {
|
|
@@ -4751,35 +4753,35 @@ function Ks() {
|
|
|
4751
4753
|
}
|
|
4752
4754
|
}
|
|
4753
4755
|
function T(w) {
|
|
4754
|
-
return
|
|
4756
|
+
return j(w) === l;
|
|
4755
4757
|
}
|
|
4756
4758
|
return ue.AsyncMode = f, ue.ConcurrentMode = l, ue.ContextConsumer = c, ue.ContextProvider = o, ue.Element = e, ue.ForwardRef = u, ue.Fragment = r, ue.Lazy = g, ue.Memo = p, ue.Portal = n, ue.Profiler = s, ue.StrictMode = i, ue.Suspense = d, ue.isAsyncMode = function(w) {
|
|
4757
|
-
return T(w) ||
|
|
4759
|
+
return T(w) || j(w) === f;
|
|
4758
4760
|
}, ue.isConcurrentMode = T, ue.isContextConsumer = function(w) {
|
|
4759
|
-
return
|
|
4761
|
+
return j(w) === c;
|
|
4760
4762
|
}, ue.isContextProvider = function(w) {
|
|
4761
|
-
return
|
|
4763
|
+
return j(w) === o;
|
|
4762
4764
|
}, ue.isElement = function(w) {
|
|
4763
4765
|
return typeof w == "object" && w !== null && w.$$typeof === e;
|
|
4764
4766
|
}, ue.isForwardRef = function(w) {
|
|
4765
|
-
return
|
|
4767
|
+
return j(w) === u;
|
|
4766
4768
|
}, ue.isFragment = function(w) {
|
|
4767
|
-
return
|
|
4769
|
+
return j(w) === r;
|
|
4768
4770
|
}, ue.isLazy = function(w) {
|
|
4769
|
-
return
|
|
4771
|
+
return j(w) === g;
|
|
4770
4772
|
}, ue.isMemo = function(w) {
|
|
4771
|
-
return
|
|
4773
|
+
return j(w) === p;
|
|
4772
4774
|
}, ue.isPortal = function(w) {
|
|
4773
|
-
return
|
|
4775
|
+
return j(w) === n;
|
|
4774
4776
|
}, ue.isProfiler = function(w) {
|
|
4775
|
-
return
|
|
4777
|
+
return j(w) === s;
|
|
4776
4778
|
}, ue.isStrictMode = function(w) {
|
|
4777
|
-
return
|
|
4779
|
+
return j(w) === i;
|
|
4778
4780
|
}, ue.isSuspense = function(w) {
|
|
4779
|
-
return
|
|
4781
|
+
return j(w) === d;
|
|
4780
4782
|
}, ue.isValidElementType = function(w) {
|
|
4781
4783
|
return typeof w == "string" || typeof w == "function" || w === r || w === l || w === s || w === i || w === d || w === m || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === u || w.$$typeof === _ || w.$$typeof === v || w.$$typeof === b || w.$$typeof === y);
|
|
4782
|
-
}, ue.typeOf =
|
|
4784
|
+
}, ue.typeOf = j, ue;
|
|
4783
4785
|
}
|
|
4784
4786
|
var de = {};
|
|
4785
4787
|
/** @license React v16.13.1
|
|
@@ -4794,7 +4796,7 @@ var Pr;
|
|
|
4794
4796
|
function Gs() {
|
|
4795
4797
|
return Pr || (Pr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4796
4798
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
|
|
4797
|
-
function
|
|
4799
|
+
function j(A) {
|
|
4798
4800
|
return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
4799
4801
|
A === r || A === l || A === s || A === i || A === d || A === m || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === o || A.$$typeof === c || A.$$typeof === u || A.$$typeof === _ || A.$$typeof === v || A.$$typeof === b || A.$$typeof === y);
|
|
4800
4802
|
}
|
|
@@ -4832,9 +4834,9 @@ function Gs() {
|
|
|
4832
4834
|
}
|
|
4833
4835
|
var w = f, D = l, R = c, W = o, M = e, O = u, C = r, E = g, x = p, $ = n, L = s, U = i, I = d, Z = !1;
|
|
4834
4836
|
function J(A) {
|
|
4835
|
-
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
4837
|
+
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(A) || T(A) === f;
|
|
4836
4838
|
}
|
|
4837
|
-
function
|
|
4839
|
+
function k(A) {
|
|
4838
4840
|
return T(A) === l;
|
|
4839
4841
|
}
|
|
4840
4842
|
function N(A) {
|
|
@@ -4870,7 +4872,7 @@ function Gs() {
|
|
|
4870
4872
|
function oe(A) {
|
|
4871
4873
|
return T(A) === d;
|
|
4872
4874
|
}
|
|
4873
|
-
de.AsyncMode = w, de.ConcurrentMode = D, de.ContextConsumer = R, de.ContextProvider = W, de.Element = M, de.ForwardRef = O, de.Fragment = C, de.Lazy = E, de.Memo = x, de.Portal = $, de.Profiler = L, de.StrictMode = U, de.Suspense = I, de.isAsyncMode = J, de.isConcurrentMode =
|
|
4875
|
+
de.AsyncMode = w, de.ConcurrentMode = D, de.ContextConsumer = R, de.ContextProvider = W, de.Element = M, de.ForwardRef = O, de.Fragment = C, de.Lazy = E, de.Memo = x, de.Portal = $, de.Profiler = L, de.StrictMode = U, de.Suspense = I, de.isAsyncMode = J, de.isConcurrentMode = k, de.isContextConsumer = N, de.isContextProvider = z, de.isElement = q, de.isForwardRef = H, de.isFragment = ee, de.isLazy = G, de.isMemo = V, de.isPortal = X, de.isProfiler = re, de.isStrictMode = F, de.isSuspense = oe, de.isValidElementType = j, de.typeOf = T;
|
|
4874
4876
|
}()), de;
|
|
4875
4877
|
}
|
|
4876
4878
|
var Mr;
|
|
@@ -5011,8 +5013,8 @@ function Xs() {
|
|
|
5011
5013
|
}
|
|
5012
5014
|
return bn = function(c, f) {
|
|
5013
5015
|
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
5014
|
-
function d(
|
|
5015
|
-
var N =
|
|
5016
|
+
function d(k) {
|
|
5017
|
+
var N = k && (l && k[l] || k[u]);
|
|
5016
5018
|
if (typeof N == "function")
|
|
5017
5019
|
return N;
|
|
5018
5020
|
}
|
|
@@ -5026,7 +5028,7 @@ function Xs() {
|
|
|
5026
5028
|
string: v("string"),
|
|
5027
5029
|
symbol: v("symbol"),
|
|
5028
5030
|
any: b(),
|
|
5029
|
-
arrayOf:
|
|
5031
|
+
arrayOf: j,
|
|
5030
5032
|
element: T(),
|
|
5031
5033
|
elementType: w(),
|
|
5032
5034
|
instanceOf: D,
|
|
@@ -5037,14 +5039,14 @@ function Xs() {
|
|
|
5037
5039
|
shape: E,
|
|
5038
5040
|
exact: x
|
|
5039
5041
|
};
|
|
5040
|
-
function g(
|
|
5041
|
-
return
|
|
5042
|
+
function g(k, N) {
|
|
5043
|
+
return k === N ? k !== 0 || 1 / k === 1 / N : k !== k && N !== N;
|
|
5042
5044
|
}
|
|
5043
|
-
function y(
|
|
5044
|
-
this.message =
|
|
5045
|
+
function y(k, N) {
|
|
5046
|
+
this.message = k, this.data = N && typeof N == "object" ? N : {}, this.stack = "";
|
|
5045
5047
|
}
|
|
5046
5048
|
y.prototype = Error.prototype;
|
|
5047
|
-
function _(
|
|
5049
|
+
function _(k) {
|
|
5048
5050
|
if (process.env.NODE_ENV !== "production")
|
|
5049
5051
|
var N = {}, z = 0;
|
|
5050
5052
|
function q(ee, G, V, X, re, F, oe) {
|
|
@@ -5062,19 +5064,19 @@ function Xs() {
|
|
|
5062
5064
|
), N[ve] = !0, z++);
|
|
5063
5065
|
}
|
|
5064
5066
|
}
|
|
5065
|
-
return G[V] == null ? ee ? G[V] === null ? new y("The " + re + " `" + F + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new y("The " + re + " `" + F + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null :
|
|
5067
|
+
return G[V] == null ? ee ? G[V] === null ? new y("The " + re + " `" + F + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new y("The " + re + " `" + F + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : k(G, V, X, re, F);
|
|
5066
5068
|
}
|
|
5067
5069
|
var H = q.bind(null, !1);
|
|
5068
5070
|
return H.isRequired = q.bind(null, !0), H;
|
|
5069
5071
|
}
|
|
5070
|
-
function v(
|
|
5072
|
+
function v(k) {
|
|
5071
5073
|
function N(z, q, H, ee, G, V) {
|
|
5072
5074
|
var X = z[q], re = U(X);
|
|
5073
|
-
if (re !==
|
|
5075
|
+
if (re !== k) {
|
|
5074
5076
|
var F = I(X);
|
|
5075
5077
|
return new y(
|
|
5076
|
-
"Invalid " + ee + " `" + G + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected ") + ("`" +
|
|
5077
|
-
{ expectedType:
|
|
5078
|
+
"Invalid " + ee + " `" + G + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected ") + ("`" + k + "`."),
|
|
5079
|
+
{ expectedType: k }
|
|
5078
5080
|
);
|
|
5079
5081
|
}
|
|
5080
5082
|
return null;
|
|
@@ -5084,9 +5086,9 @@ function Xs() {
|
|
|
5084
5086
|
function b() {
|
|
5085
5087
|
return _(o);
|
|
5086
5088
|
}
|
|
5087
|
-
function k
|
|
5089
|
+
function j(k) {
|
|
5088
5090
|
function N(z, q, H, ee, G) {
|
|
5089
|
-
if (typeof
|
|
5091
|
+
if (typeof k != "function")
|
|
5090
5092
|
return new y("Property `" + G + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
|
|
5091
5093
|
var V = z[q];
|
|
5092
5094
|
if (!Array.isArray(V)) {
|
|
@@ -5094,7 +5096,7 @@ function Xs() {
|
|
|
5094
5096
|
return new y("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an array."));
|
|
5095
5097
|
}
|
|
5096
5098
|
for (var re = 0; re < V.length; re++) {
|
|
5097
|
-
var F =
|
|
5099
|
+
var F = k(V, re, H, ee, G + "[" + re + "]", n);
|
|
5098
5100
|
if (F instanceof Error)
|
|
5099
5101
|
return F;
|
|
5100
5102
|
}
|
|
@@ -5103,7 +5105,7 @@ function Xs() {
|
|
|
5103
5105
|
return _(N);
|
|
5104
5106
|
}
|
|
5105
5107
|
function T() {
|
|
5106
|
-
function
|
|
5108
|
+
function k(N, z, q, H, ee) {
|
|
5107
5109
|
var G = N[z];
|
|
5108
5110
|
if (!c(G)) {
|
|
5109
5111
|
var V = U(G);
|
|
@@ -5111,10 +5113,10 @@ function Xs() {
|
|
|
5111
5113
|
}
|
|
5112
5114
|
return null;
|
|
5113
5115
|
}
|
|
5114
|
-
return _(
|
|
5116
|
+
return _(k);
|
|
5115
5117
|
}
|
|
5116
5118
|
function w() {
|
|
5117
|
-
function
|
|
5119
|
+
function k(N, z, q, H, ee) {
|
|
5118
5120
|
var G = N[z];
|
|
5119
5121
|
if (!t.isValidElementType(G)) {
|
|
5120
5122
|
var V = U(G);
|
|
@@ -5122,28 +5124,28 @@ function Xs() {
|
|
|
5122
5124
|
}
|
|
5123
5125
|
return null;
|
|
5124
5126
|
}
|
|
5125
|
-
return _(
|
|
5127
|
+
return _(k);
|
|
5126
5128
|
}
|
|
5127
|
-
function D(
|
|
5129
|
+
function D(k) {
|
|
5128
5130
|
function N(z, q, H, ee, G) {
|
|
5129
|
-
if (!(z[q] instanceof
|
|
5130
|
-
var V =
|
|
5131
|
+
if (!(z[q] instanceof k)) {
|
|
5132
|
+
var V = k.name || m, X = J(z[q]);
|
|
5131
5133
|
return new y("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected ") + ("instance of `" + V + "`."));
|
|
5132
5134
|
}
|
|
5133
5135
|
return null;
|
|
5134
5136
|
}
|
|
5135
5137
|
return _(N);
|
|
5136
5138
|
}
|
|
5137
|
-
function R(
|
|
5138
|
-
if (!Array.isArray(
|
|
5139
|
+
function R(k) {
|
|
5140
|
+
if (!Array.isArray(k))
|
|
5139
5141
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
5140
5142
|
"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])."
|
|
5141
5143
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
5142
5144
|
function N(z, q, H, ee, G) {
|
|
5143
|
-
for (var V = z[q], X = 0; X <
|
|
5144
|
-
if (g(V,
|
|
5145
|
+
for (var V = z[q], X = 0; X < k.length; X++)
|
|
5146
|
+
if (g(V, k[X]))
|
|
5145
5147
|
return null;
|
|
5146
|
-
var re = JSON.stringify(
|
|
5148
|
+
var re = JSON.stringify(k, function(oe, A) {
|
|
5147
5149
|
var ve = I(A);
|
|
5148
5150
|
return ve === "symbol" ? String(A) : A;
|
|
5149
5151
|
});
|
|
@@ -5151,16 +5153,16 @@ function Xs() {
|
|
|
5151
5153
|
}
|
|
5152
5154
|
return _(N);
|
|
5153
5155
|
}
|
|
5154
|
-
function W(
|
|
5156
|
+
function W(k) {
|
|
5155
5157
|
function N(z, q, H, ee, G) {
|
|
5156
|
-
if (typeof
|
|
5158
|
+
if (typeof k != "function")
|
|
5157
5159
|
return new y("Property `" + G + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
|
|
5158
5160
|
var V = z[q], X = U(V);
|
|
5159
5161
|
if (X !== "object")
|
|
5160
5162
|
return new y("Invalid " + ee + " `" + G + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected an object."));
|
|
5161
5163
|
for (var re in V)
|
|
5162
5164
|
if (r(V, re)) {
|
|
5163
|
-
var F =
|
|
5165
|
+
var F = k(V, re, H, ee, G + "." + re, n);
|
|
5164
5166
|
if (F instanceof Error)
|
|
5165
5167
|
return F;
|
|
5166
5168
|
}
|
|
@@ -5168,19 +5170,19 @@ function Xs() {
|
|
|
5168
5170
|
}
|
|
5169
5171
|
return _(N);
|
|
5170
5172
|
}
|
|
5171
|
-
function M(
|
|
5172
|
-
if (!Array.isArray(
|
|
5173
|
+
function M(k) {
|
|
5174
|
+
if (!Array.isArray(k))
|
|
5173
5175
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
5174
|
-
for (var N = 0; N <
|
|
5175
|
-
var z =
|
|
5176
|
+
for (var N = 0; N < k.length; N++) {
|
|
5177
|
+
var z = k[N];
|
|
5176
5178
|
if (typeof z != "function")
|
|
5177
5179
|
return s(
|
|
5178
5180
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(z) + " at index " + N + "."
|
|
5179
5181
|
), o;
|
|
5180
5182
|
}
|
|
5181
5183
|
function q(H, ee, G, V, X) {
|
|
5182
|
-
for (var re = [], F = 0; F <
|
|
5183
|
-
var oe =
|
|
5184
|
+
for (var re = [], F = 0; F < k.length; F++) {
|
|
5185
|
+
var oe = k[F], A = oe(H, ee, G, V, X, n);
|
|
5184
5186
|
if (A == null)
|
|
5185
5187
|
return null;
|
|
5186
5188
|
A.data && r(A.data, "expectedType") && re.push(A.data.expectedType);
|
|
@@ -5191,23 +5193,23 @@ function Xs() {
|
|
|
5191
5193
|
return _(q);
|
|
5192
5194
|
}
|
|
5193
5195
|
function O() {
|
|
5194
|
-
function
|
|
5196
|
+
function k(N, z, q, H, ee) {
|
|
5195
5197
|
return $(N[z]) ? null : new y("Invalid " + H + " `" + ee + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
|
|
5196
5198
|
}
|
|
5197
|
-
return _(
|
|
5199
|
+
return _(k);
|
|
5198
5200
|
}
|
|
5199
|
-
function C(
|
|
5201
|
+
function C(k, N, z, q, H) {
|
|
5200
5202
|
return new y(
|
|
5201
|
-
(
|
|
5203
|
+
(k || "React class") + ": " + N + " type `" + z + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`."
|
|
5202
5204
|
);
|
|
5203
5205
|
}
|
|
5204
|
-
function E(
|
|
5206
|
+
function E(k) {
|
|
5205
5207
|
function N(z, q, H, ee, G) {
|
|
5206
5208
|
var V = z[q], X = U(V);
|
|
5207
5209
|
if (X !== "object")
|
|
5208
5210
|
return new y("Invalid " + ee + " `" + G + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
|
|
5209
|
-
for (var re in
|
|
5210
|
-
var F =
|
|
5211
|
+
for (var re in k) {
|
|
5212
|
+
var F = k[re];
|
|
5211
5213
|
if (typeof F != "function")
|
|
5212
5214
|
return C(H, ee, G, re, I(F));
|
|
5213
5215
|
var oe = F(V, re, H, ee, G + "." + re, n);
|
|
@@ -5218,20 +5220,20 @@ function Xs() {
|
|
|
5218
5220
|
}
|
|
5219
5221
|
return _(N);
|
|
5220
5222
|
}
|
|
5221
|
-
function x(
|
|
5223
|
+
function x(k) {
|
|
5222
5224
|
function N(z, q, H, ee, G) {
|
|
5223
5225
|
var V = z[q], X = U(V);
|
|
5224
5226
|
if (X !== "object")
|
|
5225
5227
|
return new y("Invalid " + ee + " `" + G + "` of type `" + X + "` " + ("supplied to `" + H + "`, expected `object`."));
|
|
5226
|
-
var re = e({}, z[q],
|
|
5228
|
+
var re = e({}, z[q], k);
|
|
5227
5229
|
for (var F in re) {
|
|
5228
|
-
var oe =
|
|
5229
|
-
if (r(
|
|
5230
|
+
var oe = k[F];
|
|
5231
|
+
if (r(k, F) && typeof oe != "function")
|
|
5230
5232
|
return C(H, ee, G, F, I(oe));
|
|
5231
5233
|
if (!oe)
|
|
5232
5234
|
return new y(
|
|
5233
5235
|
"Invalid " + ee + " `" + G + "` key `" + F + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(z[q], null, " ") + `
|
|
5234
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
5236
|
+
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
5235
5237
|
);
|
|
5236
5238
|
var A = oe(V, F, H, ee, G + "." + F, n);
|
|
5237
5239
|
if (A)
|
|
@@ -5241,23 +5243,23 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
5241
5243
|
}
|
|
5242
5244
|
return _(N);
|
|
5243
5245
|
}
|
|
5244
|
-
function $(
|
|
5245
|
-
switch (typeof
|
|
5246
|
+
function $(k) {
|
|
5247
|
+
switch (typeof k) {
|
|
5246
5248
|
case "number":
|
|
5247
5249
|
case "string":
|
|
5248
5250
|
case "undefined":
|
|
5249
5251
|
return !0;
|
|
5250
5252
|
case "boolean":
|
|
5251
|
-
return !
|
|
5253
|
+
return !k;
|
|
5252
5254
|
case "object":
|
|
5253
|
-
if (Array.isArray(
|
|
5254
|
-
return
|
|
5255
|
-
if (
|
|
5255
|
+
if (Array.isArray(k))
|
|
5256
|
+
return k.every($);
|
|
5257
|
+
if (k === null || c(k))
|
|
5256
5258
|
return !0;
|
|
5257
|
-
var N = d(
|
|
5259
|
+
var N = d(k);
|
|
5258
5260
|
if (N) {
|
|
5259
|
-
var z = N.call(
|
|
5260
|
-
if (N !==
|
|
5261
|
+
var z = N.call(k), q;
|
|
5262
|
+
if (N !== k.entries) {
|
|
5261
5263
|
for (; !(q = z.next()).done; )
|
|
5262
5264
|
if (!$(q.value))
|
|
5263
5265
|
return !1;
|
|
@@ -5274,27 +5276,27 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
5274
5276
|
return !1;
|
|
5275
5277
|
}
|
|
5276
5278
|
}
|
|
5277
|
-
function L(
|
|
5278
|
-
return
|
|
5279
|
+
function L(k, N) {
|
|
5280
|
+
return k === "symbol" ? !0 : N ? N["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && N instanceof Symbol : !1;
|
|
5279
5281
|
}
|
|
5280
|
-
function U(
|
|
5281
|
-
var N = typeof
|
|
5282
|
-
return Array.isArray(
|
|
5282
|
+
function U(k) {
|
|
5283
|
+
var N = typeof k;
|
|
5284
|
+
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : L(N, k) ? "symbol" : N;
|
|
5283
5285
|
}
|
|
5284
|
-
function I(
|
|
5285
|
-
if (typeof
|
|
5286
|
-
return "" +
|
|
5287
|
-
var N = U(
|
|
5286
|
+
function I(k) {
|
|
5287
|
+
if (typeof k > "u" || k === null)
|
|
5288
|
+
return "" + k;
|
|
5289
|
+
var N = U(k);
|
|
5288
5290
|
if (N === "object") {
|
|
5289
|
-
if (
|
|
5291
|
+
if (k instanceof Date)
|
|
5290
5292
|
return "date";
|
|
5291
|
-
if (
|
|
5293
|
+
if (k instanceof RegExp)
|
|
5292
5294
|
return "regexp";
|
|
5293
5295
|
}
|
|
5294
5296
|
return N;
|
|
5295
5297
|
}
|
|
5296
|
-
function Z(
|
|
5297
|
-
var N = I(
|
|
5298
|
+
function Z(k) {
|
|
5299
|
+
var N = I(k);
|
|
5298
5300
|
switch (N) {
|
|
5299
5301
|
case "array":
|
|
5300
5302
|
case "object":
|
|
@@ -5307,8 +5309,8 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
5307
5309
|
return N;
|
|
5308
5310
|
}
|
|
5309
5311
|
}
|
|
5310
|
-
function J(
|
|
5311
|
-
return !
|
|
5312
|
+
function J(k) {
|
|
5313
|
+
return !k.constructor || !k.constructor.name ? m : k.constructor.name;
|
|
5312
5314
|
}
|
|
5313
5315
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
5314
5316
|
}, bn;
|
|
@@ -5597,7 +5599,7 @@ function qr(t) {
|
|
|
5597
5599
|
return t;
|
|
5598
5600
|
}
|
|
5599
5601
|
function xo(t, e, n) {
|
|
5600
|
-
return e =
|
|
5602
|
+
return e = jo(e), e in t ? Object.defineProperty(t, e, {
|
|
5601
5603
|
value: n,
|
|
5602
5604
|
enumerable: !0,
|
|
5603
5605
|
configurable: !0,
|
|
@@ -5616,7 +5618,7 @@ function wo(t, e) {
|
|
|
5616
5618
|
}
|
|
5617
5619
|
return (e === "string" ? String : Number)(t);
|
|
5618
5620
|
}
|
|
5619
|
-
function
|
|
5621
|
+
function jo(t) {
|
|
5620
5622
|
var e = wo(t, "string");
|
|
5621
5623
|
return typeof e == "symbol" ? e : String(e);
|
|
5622
5624
|
}
|
|
@@ -5633,7 +5635,7 @@ var Ur = {
|
|
|
5633
5635
|
var r = e.indexOf(n);
|
|
5634
5636
|
r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
5635
5637
|
}
|
|
5636
|
-
},
|
|
5638
|
+
}, ko = function(e) {
|
|
5637
5639
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
5638
5640
|
}, To = function(e) {
|
|
5639
5641
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
@@ -5745,12 +5747,12 @@ var Ur = {
|
|
|
5745
5747
|
return E;
|
|
5746
5748
|
}, m = function() {
|
|
5747
5749
|
if (o.containerGroups = o.containers.map(function(E) {
|
|
5748
|
-
var x = Fa(E, s.tabbableOptions), $ = Oa(E, s.tabbableOptions), L = x.length > 0 ? x[0] : void 0, U = x.length > 0 ? x[x.length - 1] : void 0, I = $.find(function(
|
|
5749
|
-
return qe(
|
|
5750
|
-
}), Z = $.slice().reverse().find(function(
|
|
5751
|
-
return qe(
|
|
5752
|
-
}), J = !!x.find(function(
|
|
5753
|
-
return Ie(
|
|
5750
|
+
var x = Fa(E, s.tabbableOptions), $ = Oa(E, s.tabbableOptions), L = x.length > 0 ? x[0] : void 0, U = x.length > 0 ? x[x.length - 1] : void 0, I = $.find(function(k) {
|
|
5751
|
+
return qe(k);
|
|
5752
|
+
}), Z = $.slice().reverse().find(function(k) {
|
|
5753
|
+
return qe(k);
|
|
5754
|
+
}), J = !!x.find(function(k) {
|
|
5755
|
+
return Ie(k) > 0;
|
|
5754
5756
|
});
|
|
5755
5757
|
return {
|
|
5756
5758
|
container: E,
|
|
@@ -5810,7 +5812,7 @@ var Ur = {
|
|
|
5810
5812
|
}
|
|
5811
5813
|
E.focus({
|
|
5812
5814
|
preventScroll: !!s.preventScroll
|
|
5813
|
-
}), o.mostRecentlyFocusedNode = E,
|
|
5815
|
+
}), o.mostRecentlyFocusedNode = E, ko(E) && E.select();
|
|
5814
5816
|
}
|
|
5815
5817
|
}, y = function(E) {
|
|
5816
5818
|
var x = u("setReturnFocus", E);
|
|
@@ -5824,12 +5826,12 @@ var Ur = {
|
|
|
5824
5826
|
if (Z < 0)
|
|
5825
5827
|
U ? I = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : I = o.tabbableGroups[0].firstTabbableNode;
|
|
5826
5828
|
else if (U) {
|
|
5827
|
-
var
|
|
5829
|
+
var k = Zr(o.tabbableGroups, function(G) {
|
|
5828
5830
|
var V = G.firstTabbableNode;
|
|
5829
5831
|
return x === V;
|
|
5830
5832
|
});
|
|
5831
|
-
if (
|
|
5832
|
-
var N =
|
|
5833
|
+
if (k < 0 && (J.container === x || Dt(x, s.tabbableOptions) && !qe(x, s.tabbableOptions) && !J.nextTabbableNode(x, !1)) && (k = Z), k >= 0) {
|
|
5834
|
+
var N = k === 0 ? o.tabbableGroups.length - 1 : k - 1, z = o.tabbableGroups[N];
|
|
5833
5835
|
I = Ie(x) >= 0 ? z.lastTabbableNode : z.lastDomTabbableNode;
|
|
5834
5836
|
} else
|
|
5835
5837
|
pt($) || (I = J.nextTabbableNode(x, !1));
|
|
@@ -5875,14 +5877,14 @@ var Ur = {
|
|
|
5875
5877
|
if (Ie(o.mostRecentlyFocusedNode) > 0) {
|
|
5876
5878
|
var I = l(o.mostRecentlyFocusedNode), Z = o.containerGroups[I].tabbableNodes;
|
|
5877
5879
|
if (Z.length > 0) {
|
|
5878
|
-
var J = Z.findIndex(function(
|
|
5879
|
-
return
|
|
5880
|
+
var J = Z.findIndex(function(k) {
|
|
5881
|
+
return k === o.mostRecentlyFocusedNode;
|
|
5880
5882
|
});
|
|
5881
5883
|
J >= 0 && (s.isKeyForward(o.recentNavEvent) ? J + 1 < Z.length && (L = Z[J + 1], U = !1) : J - 1 >= 0 && (L = Z[J - 1], U = !1));
|
|
5882
5884
|
}
|
|
5883
5885
|
} else
|
|
5884
|
-
o.containerGroups.some(function(
|
|
5885
|
-
return
|
|
5886
|
+
o.containerGroups.some(function(k) {
|
|
5887
|
+
return k.tabbableNodes.some(function(N) {
|
|
5886
5888
|
return Ie(N) > 0;
|
|
5887
5889
|
});
|
|
5888
5890
|
}) || (U = !1);
|
|
@@ -5896,7 +5898,7 @@ var Ur = {
|
|
|
5896
5898
|
})), g(L || o.mostRecentlyFocusedNode || d());
|
|
5897
5899
|
}
|
|
5898
5900
|
o.recentNavEvent = void 0;
|
|
5899
|
-
},
|
|
5901
|
+
}, j = function(E) {
|
|
5900
5902
|
var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
5901
5903
|
o.recentNavEvent = E;
|
|
5902
5904
|
var $ = _({
|
|
@@ -5909,7 +5911,7 @@ var Ur = {
|
|
|
5909
5911
|
E.preventDefault(), c.deactivate();
|
|
5910
5912
|
return;
|
|
5911
5913
|
}
|
|
5912
|
-
(s.isKeyForward(E) || s.isKeyBackward(E)) &&
|
|
5914
|
+
(s.isKeyForward(E) || s.isKeyBackward(E)) && j(E, s.isKeyBackward(E));
|
|
5913
5915
|
}, w = function(E) {
|
|
5914
5916
|
var x = Ct(E);
|
|
5915
5917
|
l(x, E) >= 0 || ot(s.clickOutsideDeactivates, E) || ot(s.allowOutsideClick, E) || (E.preventDefault(), E.stopImmediatePropagation());
|
|
@@ -6648,10 +6650,10 @@ const Vl = ({ members: t }) => {
|
|
|
6648
6650
|
if (e && e.onClick && g.includes(m) && u !== "premium") {
|
|
6649
6651
|
const _ = s.loading || s.registered, v = async (b) => {
|
|
6650
6652
|
if (b.preventDefault(), b.stopPropagation(), !(_ || !e || !e.onClick)) {
|
|
6651
|
-
o((
|
|
6653
|
+
o((j) => ({ ...j, loading: !0 }));
|
|
6652
6654
|
try {
|
|
6653
|
-
const
|
|
6654
|
-
o(
|
|
6655
|
+
const j = await e.onClick(t);
|
|
6656
|
+
o(j === "success" ? () => ({ registered: !0, loading: !1 }) : (T) => ({ ...T, loading: !1 }));
|
|
6655
6657
|
} catch {
|
|
6656
6658
|
o((T) => ({ ...T, loading: !1 }));
|
|
6657
6659
|
}
|
|
@@ -6717,12 +6719,12 @@ const Go = {
|
|
|
6717
6719
|
length: v,
|
|
6718
6720
|
gtmEvent: b
|
|
6719
6721
|
} = Vt[g];
|
|
6720
|
-
let
|
|
6721
|
-
d.slug && (d.slug.slice(0, 4) === "http" || d.slug.slice(0, 2) === "//" || d.slug.slice(0, 6) === "mailto" || d.slug.slice(0, 3) === "tel") && (
|
|
6722
|
+
let j = d.slug ? `${y}${d.slug}` : !1;
|
|
6723
|
+
d.slug && (d.slug.slice(0, 4) === "http" || d.slug.slice(0, 2) === "//" || d.slug.slice(0, 6) === "mailto" || d.slug.slice(0, 3) === "tel") && (j = d.slug);
|
|
6722
6724
|
const T = { ...Go, ...v };
|
|
6723
6725
|
let w = { className: "card" };
|
|
6724
|
-
return
|
|
6725
|
-
href:
|
|
6726
|
+
return j && (w = {
|
|
6727
|
+
href: j,
|
|
6726
6728
|
className: "card gtm-trackable",
|
|
6727
6729
|
"data-gtm-event-context": `${i}-CarouselCard`,
|
|
6728
6730
|
"data-gtm-event-type": `${b}-click`,
|
|
@@ -6731,13 +6733,13 @@ const Go = {
|
|
|
6731
6733
|
"li",
|
|
6732
6734
|
{
|
|
6733
6735
|
className: S("card-wrapper text-medium", _, s, {
|
|
6734
|
-
"has-link":
|
|
6735
|
-
"no-link": !
|
|
6736
|
+
"has-link": j,
|
|
6737
|
+
"no-link": !j,
|
|
6736
6738
|
"has-image": d.banner
|
|
6737
6739
|
}),
|
|
6738
6740
|
"data-testid": `${g}-card`,
|
|
6739
6741
|
children: Y.createElement(
|
|
6740
|
-
|
|
6742
|
+
j ? "a" : "div",
|
|
6741
6743
|
w,
|
|
6742
6744
|
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6743
6745
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6791,7 +6793,7 @@ const Go = {
|
|
|
6791
6793
|
return /* @__PURE__ */ a.jsx("p", { className: W, "data-testid": W, children: Je(R, T[D]) }, D);
|
|
6792
6794
|
}),
|
|
6793
6795
|
/* @__PURE__ */ a.jsx(Yo, { type: _ || "", data: d }),
|
|
6794
|
-
/* @__PURE__ */ a.jsx(Ko, { data: d, cta: r, link:
|
|
6796
|
+
/* @__PURE__ */ a.jsx(Ko, { data: d, cta: r, link: j || "", gtmContext: i })
|
|
6795
6797
|
] })
|
|
6796
6798
|
)
|
|
6797
6799
|
}
|
|
@@ -6856,15 +6858,15 @@ const ec = ({
|
|
|
6856
6858
|
}), { cardsPerPage: u, isLoading: d } = f, [m, p] = te({
|
|
6857
6859
|
currentPage: 0,
|
|
6858
6860
|
loadedPages: [0]
|
|
6859
|
-
}), { currentPage: g, loadedPages: y } = m, _ = e.length, v = Math.ceil(_ / u), b = pe(null),
|
|
6861
|
+
}), { currentPage: g, loadedPages: y } = m, _ = e.length, v = Math.ceil(_ / u), b = pe(null), j = yt(!0, !0, b == null ? void 0 : b.current);
|
|
6860
6862
|
ae(() => {
|
|
6861
6863
|
let M = 1;
|
|
6862
|
-
|
|
6864
|
+
j && (j >= _n.fourCards ? M = 4 : j >= _n.threeCards ? M = 3 : j >= _n.twoCards && (M = 2), M > _ && (M = _)), l((O) => ({
|
|
6863
6865
|
...O,
|
|
6864
6866
|
cardsPerPage: M,
|
|
6865
6867
|
isLoading: !1
|
|
6866
6868
|
}));
|
|
6867
|
-
}, [
|
|
6869
|
+
}, [j, _]);
|
|
6868
6870
|
const T = (M = "next") => {
|
|
6869
6871
|
let O = g;
|
|
6870
6872
|
if (typeof M == "string")
|
|
@@ -6892,7 +6894,7 @@ const ec = ({
|
|
|
6892
6894
|
const O = M.touches[0].clientX, C = Nt - O;
|
|
6893
6895
|
C > 5 ? T("next") : C < -5 && T("previous"), Nt = null;
|
|
6894
6896
|
}, R = {
|
|
6895
|
-
"--width": `${
|
|
6897
|
+
"--width": `${j || 0}px`,
|
|
6896
6898
|
"--total-cards": _,
|
|
6897
6899
|
"--cards-per-page": u,
|
|
6898
6900
|
"--page": g
|
|
@@ -7172,7 +7174,7 @@ const Ql = ({
|
|
|
7172
7174
|
s === "before-lang" ? r += `/${i}` : (r.includes(`/${n}/`) || (r += `/${n}`), r += `/${i}`);
|
|
7173
7175
|
}), r.includes(`/${n}/`) || (r += `/${n}`), r;
|
|
7174
7176
|
};
|
|
7175
|
-
const
|
|
7177
|
+
const jn = {
|
|
7176
7178
|
en: "English",
|
|
7177
7179
|
es: "Español",
|
|
7178
7180
|
fr: "Français",
|
|
@@ -7201,19 +7203,19 @@ const kn = {
|
|
|
7201
7203
|
/* @__PURE__ */ a.jsxs("nav", { children: [
|
|
7202
7204
|
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Pt}label` }) }),
|
|
7203
7205
|
/* @__PURE__ */ a.jsx("ul", { children: p.map((y) => {
|
|
7204
|
-
if (!
|
|
7206
|
+
if (!jn[y])
|
|
7205
7207
|
return null;
|
|
7206
7208
|
let _ = { className: y };
|
|
7207
7209
|
return u === y ? _["aria-label"] = l.formatMessage(
|
|
7208
7210
|
{ id: `${Pt}selected` },
|
|
7209
|
-
{ language:
|
|
7211
|
+
{ language: jn[y] }
|
|
7210
7212
|
) : _ = {
|
|
7211
7213
|
..._,
|
|
7212
7214
|
href: tc(y, s),
|
|
7213
7215
|
onClick: (v) => {
|
|
7214
7216
|
v.preventDefault(), v.stopPropagation(), d(y), i(y);
|
|
7215
7217
|
}
|
|
7216
|
-
}, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(tt, { ..._, fallbackElement: "span", children:
|
|
7218
|
+
}, /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(tt, { ..._, fallbackElement: "span", children: jn[y] }) }, y);
|
|
7217
7219
|
}) }),
|
|
7218
7220
|
o !== "short" && !g && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
|
|
7219
7221
|
id: `${Pt}translation_${e ? "original" : n ? "human" : "machine"}`
|
|
@@ -7236,7 +7238,7 @@ const kn = {
|
|
|
7236
7238
|
})
|
|
7237
7239
|
] });
|
|
7238
7240
|
};
|
|
7239
|
-
const
|
|
7241
|
+
const kn = _i({ locale: "en", messages: Vn }), tn = ({
|
|
7240
7242
|
hasNextPage: t = !0,
|
|
7241
7243
|
loadNextPage: e = () => {
|
|
7242
7244
|
},
|
|
@@ -7246,9 +7248,9 @@ const jn = _i({ locale: "en", messages: Vn }), tn = ({
|
|
|
7246
7248
|
styling: s = { muted: !1, fullWidth: !1 },
|
|
7247
7249
|
icon: o = !1,
|
|
7248
7250
|
messages: c = {
|
|
7249
|
-
button:
|
|
7250
|
-
endOfFeed:
|
|
7251
|
-
error:
|
|
7251
|
+
button: kn.formatMessage({ id: "loadMore_button" }),
|
|
7252
|
+
endOfFeed: kn.formatMessage({ id: "loadMore_endOfFeed" }),
|
|
7253
|
+
error: kn.formatMessage({ id: "loadMore_error" })
|
|
7252
7254
|
},
|
|
7253
7255
|
className: f = "",
|
|
7254
7256
|
gtmContext: l = "LoadMore"
|
|
@@ -8035,8 +8037,8 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
|
|
|
8035
8037
|
if (c.href) {
|
|
8036
8038
|
let b = c.gtmType || `${t}-click`;
|
|
8037
8039
|
if (b.includes(".")) {
|
|
8038
|
-
const
|
|
8039
|
-
b = `${T === "topics" ? `${T}-` : ""}${
|
|
8040
|
+
const j = b.split("."), T = j[j.length - 2];
|
|
8041
|
+
b = `${T === "topics" ? `${T}-` : ""}${j[j.length - 1]}`;
|
|
8040
8042
|
}
|
|
8041
8043
|
m = {
|
|
8042
8044
|
href: c.href,
|
|
@@ -8056,7 +8058,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
|
|
|
8056
8058
|
const p = c.order && c.order[0] && c[c.order[0]], g = p && c[c.order[0]].order, y = m && window.location.pathname === c.href;
|
|
8057
8059
|
let _ = {}, v = {};
|
|
8058
8060
|
if (p) {
|
|
8059
|
-
const b = c.menuId || t,
|
|
8061
|
+
const b = c.menuId || t, j = {
|
|
8060
8062
|
onClick: (T) => fe.events.onClick(T, { id: b, callback: i, isOpen: r[b] }),
|
|
8061
8063
|
onFocus: () => fe.events.onFocus({ id: b }),
|
|
8062
8064
|
onBlur: () => fe.events.onBlur({ id: b, callback: i }),
|
|
@@ -8064,7 +8066,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
|
|
|
8064
8066
|
onMouseEnter: () => fe.events.onMouseEnter({ id: b, callback: i })
|
|
8065
8067
|
};
|
|
8066
8068
|
n && (g && (_ = {
|
|
8067
|
-
...
|
|
8069
|
+
...j,
|
|
8068
8070
|
onKeyPress: (T) => {
|
|
8069
8071
|
T.key === "Enter" && fe.events.onClick(T, { id: b, callback: i, isOpen: r[b] });
|
|
8070
8072
|
},
|
|
@@ -8075,7 +8077,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
|
|
|
8075
8077
|
"aria-controls": b
|
|
8076
8078
|
}), v = { hidden: b in r ? !r[b] : !0 }), g || (v = {
|
|
8077
8079
|
...v,
|
|
8078
|
-
...
|
|
8080
|
+
...j
|
|
8079
8081
|
});
|
|
8080
8082
|
}
|
|
8081
8083
|
return /* @__PURE__ */ a.jsxs(
|
|
@@ -8098,7 +8100,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
|
|
|
8098
8100
|
c.order && /* @__PURE__ */ a.jsx("ul", { ...v, children: c.order.map((b) => {
|
|
8099
8101
|
if (!c[b])
|
|
8100
8102
|
return null;
|
|
8101
|
-
const
|
|
8103
|
+
const j = {
|
|
8102
8104
|
isLoggedIn: e,
|
|
8103
8105
|
isDesktopVersion: n,
|
|
8104
8106
|
menus: r,
|
|
@@ -8117,7 +8119,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
|
|
|
8117
8119
|
Gt,
|
|
8118
8120
|
{
|
|
8119
8121
|
id: `${t}.${b}.${T}`,
|
|
8120
|
-
...
|
|
8122
|
+
...j
|
|
8121
8123
|
},
|
|
8122
8124
|
T
|
|
8123
8125
|
)) })
|
|
@@ -8128,7 +8130,7 @@ const Qe = "footer_", Yt = "SiteFooter", Hr = ({ group: t }) => {
|
|
|
8128
8130
|
Gt,
|
|
8129
8131
|
{
|
|
8130
8132
|
id: `${t}.${b}`,
|
|
8131
|
-
...
|
|
8133
|
+
...j
|
|
8132
8134
|
},
|
|
8133
8135
|
b
|
|
8134
8136
|
);
|
|
@@ -8589,22 +8591,22 @@ const su = ({
|
|
|
8589
8591
|
contentType: _,
|
|
8590
8592
|
icon: v,
|
|
8591
8593
|
image: b,
|
|
8592
|
-
isIntroduction:
|
|
8594
|
+
isIntroduction: j,
|
|
8593
8595
|
optional: T,
|
|
8594
8596
|
slug: w,
|
|
8595
8597
|
subsectionId: D,
|
|
8596
8598
|
title: R,
|
|
8597
8599
|
type: W
|
|
8598
8600
|
}) => {
|
|
8599
|
-
const M = i && e ||
|
|
8601
|
+
const M = i && e || j, O = {};
|
|
8600
8602
|
return b && (O.style = { "--image": `url(${b})` }), /* @__PURE__ */ a.jsx(
|
|
8601
8603
|
"li",
|
|
8602
8604
|
{
|
|
8603
8605
|
className: S({
|
|
8604
|
-
article: _ ===
|
|
8605
|
-
discussion: _ ===
|
|
8606
|
-
quiz: _ ===
|
|
8607
|
-
completed: g && _ ===
|
|
8606
|
+
article: _ === jt.ARTICLE,
|
|
8607
|
+
discussion: _ === jt.DISCUSSION,
|
|
8608
|
+
quiz: _ === jt.QUIZ,
|
|
8609
|
+
completed: g && _ === jt.ARTICLE,
|
|
8608
8610
|
locked: !M
|
|
8609
8611
|
}),
|
|
8610
8612
|
...O,
|
|
@@ -8720,7 +8722,7 @@ const we = "discussion_form_", nr = ({
|
|
|
8720
8722
|
"data-testid": "loading-placeholder"
|
|
8721
8723
|
}
|
|
8722
8724
|
);
|
|
8723
|
-
const
|
|
8725
|
+
const j = (x) => {
|
|
8724
8726
|
const $ = x.target.value;
|
|
8725
8727
|
p($);
|
|
8726
8728
|
let L;
|
|
@@ -8860,7 +8862,7 @@ const we = "discussion_form_", nr = ({
|
|
|
8860
8862
|
t.type,
|
|
8861
8863
|
"action"
|
|
8862
8864
|
),
|
|
8863
|
-
onChange:
|
|
8865
|
+
onChange: j,
|
|
8864
8866
|
value: _ === "submitting" && !g ? "" : m,
|
|
8865
8867
|
maxLength: s,
|
|
8866
8868
|
"aria-invalid": !!g,
|
|
@@ -8961,7 +8963,7 @@ const Pn = () => {
|
|
|
8961
8963
|
const [u, d] = te(e), [m, p] = te(i), [g, y] = te(!1), [_, v] = te(!1), b = bt(
|
|
8962
8964
|
() => _c(n, Mn),
|
|
8963
8965
|
[n]
|
|
8964
|
-
),
|
|
8966
|
+
), j = (w) => {
|
|
8965
8967
|
if (w.preventDefault(), w.stopPropagation(), v(!1), ht)
|
|
8966
8968
|
return Pn(), !1;
|
|
8967
8969
|
if (Pn(), g || !o)
|
|
@@ -8992,7 +8994,7 @@ const Pn = () => {
|
|
|
8992
8994
|
"is-liked": m,
|
|
8993
8995
|
disabled: !o
|
|
8994
8996
|
}),
|
|
8995
|
-
onClick:
|
|
8997
|
+
onClick: j,
|
|
8996
8998
|
onMouseEnter: () => {
|
|
8997
8999
|
v(!0);
|
|
8998
9000
|
},
|
|
@@ -9023,7 +9025,7 @@ const Pn = () => {
|
|
|
9023
9025
|
})
|
|
9024
9026
|
}
|
|
9025
9027
|
) : !1,
|
|
9026
|
-
onClick:
|
|
9028
|
+
onClick: j,
|
|
9027
9029
|
disabled: !o,
|
|
9028
9030
|
"aria-hidden": !o,
|
|
9029
9031
|
"data-testid": "like-button",
|
|
@@ -9096,11 +9098,11 @@ const Pe = "discussion_", wc = 280, rn = ({
|
|
|
9096
9098
|
children: y,
|
|
9097
9099
|
isTruncated: _ = !1
|
|
9098
9100
|
}) => {
|
|
9099
|
-
const v = K(), b = Ce(De),
|
|
9101
|
+
const v = K(), b = Ce(De), j = Ce(rr), { author: T, canLike: w, createdAt: D, id: R, likes: W = 0, userLiked: M, comments: O = 0 } = e, C = b && b.id && typeof T != "string" && T.id && T.id === b.id || !1, E = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt || Zi(e.createdAt, 10, "seconds")), $ = pe(null), [L, U] = te({
|
|
9100
9102
|
body: e && e.body || "",
|
|
9101
9103
|
isEditing: !1,
|
|
9102
9104
|
didEdit: e && e.isEdited || !1
|
|
9103
|
-
}), [I, Z] = te(!1), [J,
|
|
9105
|
+
}), [I, Z] = te(!1), [J, k] = te(
|
|
9104
9106
|
x ? "highlighted" : "default"
|
|
9105
9107
|
/* Default */
|
|
9106
9108
|
), [N, z] = te("");
|
|
@@ -9119,13 +9121,13 @@ const Pe = "discussion_", wc = 280, rn = ({
|
|
|
9119
9121
|
}, [e.isEdited]);
|
|
9120
9122
|
const q = () => {
|
|
9121
9123
|
setTimeout(() => {
|
|
9122
|
-
|
|
9124
|
+
k(
|
|
9123
9125
|
"fading"
|
|
9124
9126
|
/* Fading */
|
|
9125
9127
|
);
|
|
9126
9128
|
}, 1e3);
|
|
9127
9129
|
}, H = ({ propertyName: F }) => {
|
|
9128
|
-
F === "background-color" &&
|
|
9130
|
+
F === "background-color" && k((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", q), $.current && $.current.removeEventListener("transitionend", H)), oe === "fading" ? "default" : oe));
|
|
9129
9131
|
};
|
|
9130
9132
|
if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
|
|
9131
9133
|
return /* @__PURE__ */ a.jsx(Te, { className: "discussion-card discussion-post" });
|
|
@@ -9141,7 +9143,7 @@ const Pe = "discussion_", wc = 280, rn = ({
|
|
|
9141
9143
|
z(`${Pe}form_error`);
|
|
9142
9144
|
}
|
|
9143
9145
|
}, V = () => {
|
|
9144
|
-
|
|
9146
|
+
j && j.updateConversation && j.updateConversation({ showForm: !0 }), setTimeout(() => {
|
|
9145
9147
|
var $e, Ee, Be;
|
|
9146
9148
|
const oe = `reply-form-${(e.type === "answer" ? e.slug : (($e = e.slugs) == null ? void 0 : $e.reply) || ((Ee = e.slugs) == null ? void 0 : Ee.answer) || ((Be = e.slugs) == null ? void 0 : Be.question) || "").toLowerCase().slice(-15)}`, A = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
|
|
9147
9149
|
ve && ve.focus(), A && A.scrollIntoView({ behavior: "smooth" });
|
|
@@ -9406,7 +9408,7 @@ const Pe = "discussion_", wc = 280, rn = ({
|
|
|
9406
9408
|
] })
|
|
9407
9409
|
});
|
|
9408
9410
|
};
|
|
9409
|
-
const Rn = "discussion_responses_",
|
|
9411
|
+
const Rn = "discussion_responses_", jc = ({ type: t = "answer", responses: e = 0 }) => {
|
|
9410
9412
|
const n = K();
|
|
9411
9413
|
return e = parseInt(e), /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
|
|
9412
9414
|
/* @__PURE__ */ a.jsx("h4", { children: n.formatMessage(
|
|
@@ -9416,7 +9418,7 @@ const Rn = "discussion_responses_", kc = ({ type: t = "answer", responses: e = 0
|
|
|
9416
9418
|
e === 0 && /* @__PURE__ */ a.jsx("p", { children: Se(n.formatMessage, `${Rn}empty`, t, t) })
|
|
9417
9419
|
] });
|
|
9418
9420
|
};
|
|
9419
|
-
const
|
|
9421
|
+
const kc = ({
|
|
9420
9422
|
loadMore: { isLoading: t, hasNextPage: e, loadNextPage: n } = {
|
|
9421
9423
|
isLoading: !1,
|
|
9422
9424
|
hasNextPage: !1,
|
|
@@ -9787,7 +9789,7 @@ function Oc({
|
|
|
9787
9789
|
queryKey: i,
|
|
9788
9790
|
user: s
|
|
9789
9791
|
}) {
|
|
9790
|
-
const { mutate: o } =
|
|
9792
|
+
const { mutate: o } = je({
|
|
9791
9793
|
mutationFn: t,
|
|
9792
9794
|
onMutate: (c) => e((f) => {
|
|
9793
9795
|
const l = Kr({ activity: $c(c), user: s });
|
|
@@ -9810,7 +9812,7 @@ function Ac({
|
|
|
9810
9812
|
error: n
|
|
9811
9813
|
}
|
|
9812
9814
|
}) {
|
|
9813
|
-
const { mutate: r } =
|
|
9815
|
+
const { mutate: r } = je({
|
|
9814
9816
|
mutationFn: t,
|
|
9815
9817
|
onMutate: ({ activityId: i, content: s }) => e((o) => {
|
|
9816
9818
|
const c = Jt(i, o);
|
|
@@ -9861,7 +9863,7 @@ function Ic({
|
|
|
9861
9863
|
queryClient: r,
|
|
9862
9864
|
queryKey: i
|
|
9863
9865
|
}) {
|
|
9864
|
-
const { mutate: s } =
|
|
9866
|
+
const { mutate: s } = je({
|
|
9865
9867
|
mutationFn: t,
|
|
9866
9868
|
onMutate: ({ activityId: o }) => e((c) => {
|
|
9867
9869
|
const f = Jt(o, c);
|
|
@@ -9903,7 +9905,7 @@ function Bc({
|
|
|
9903
9905
|
error: n
|
|
9904
9906
|
}
|
|
9905
9907
|
}) {
|
|
9906
|
-
const { mutate: r } =
|
|
9908
|
+
const { mutate: r } = je({
|
|
9907
9909
|
mutationFn: t,
|
|
9908
9910
|
onMutate: ({ activityId: i }) => e((s) => Uc(i, s)),
|
|
9909
9911
|
onError: n
|
|
@@ -9918,7 +9920,7 @@ function qc({
|
|
|
9918
9920
|
},
|
|
9919
9921
|
user: r
|
|
9920
9922
|
}) {
|
|
9921
|
-
const { mutate: i } =
|
|
9923
|
+
const { mutate: i } = je({
|
|
9922
9924
|
mutationFn: t,
|
|
9923
9925
|
onMutate: ({ activityId: s }) => e((o) => {
|
|
9924
9926
|
const c = Jt(s, o);
|
|
@@ -9998,29 +10000,29 @@ const cu = ({
|
|
|
9998
10000
|
}
|
|
9999
10001
|
}
|
|
10000
10002
|
),
|
|
10001
|
-
c == null ? void 0 : c.map((
|
|
10002
|
-
var L, U, I, Z, J,
|
|
10003
|
+
c == null ? void 0 : c.map((j, T) => {
|
|
10004
|
+
var L, U, I, Z, J, k, N, z;
|
|
10003
10005
|
const {
|
|
10004
10006
|
id: w,
|
|
10005
10007
|
own_reactions: D,
|
|
10006
10008
|
latest_reactions: R,
|
|
10007
10009
|
reaction_counts: W
|
|
10008
|
-
} =
|
|
10010
|
+
} = j, M = (((L = R == null ? void 0 : R.like) == null ? void 0 : L.length) || 0) > 0, O = (((U = D == null ? void 0 : D.like) == null ? void 0 : U.length) || 0) > 0, C = O ? D == null ? void 0 : D.like[0].id : "", E = M ? (I = R == null ? void 0 : R.like) == null ? void 0 : I.map((q) => {
|
|
10009
10011
|
var H, ee, G;
|
|
10010
10012
|
return {
|
|
10011
10013
|
id: (H = q == null ? void 0 : q.user) == null ? void 0 : H.id,
|
|
10012
10014
|
name: (G = (ee = q == null ? void 0 : q.user) == null ? void 0 : ee.data) == null ? void 0 : G.name
|
|
10013
10015
|
};
|
|
10014
|
-
}) : !1, x =
|
|
10016
|
+
}) : !1, x = j == null ? void 0 : j.actor, $ = (x == null ? void 0 : x.id) === (v == null ? void 0 : v.id);
|
|
10015
10017
|
return /* @__PURE__ */ a.jsxs(gt, { children: [
|
|
10016
10018
|
/* @__PURE__ */ a.jsx(
|
|
10017
10019
|
rn,
|
|
10018
10020
|
{
|
|
10019
10021
|
content: {
|
|
10020
10022
|
type: "post",
|
|
10021
|
-
body:
|
|
10023
|
+
body: j == null ? void 0 : j.content,
|
|
10022
10024
|
canLike: nn(n, $),
|
|
10023
|
-
createdAt: (
|
|
10025
|
+
createdAt: (j == null ? void 0 : j.time) || "",
|
|
10024
10026
|
slugs: {
|
|
10025
10027
|
question: `${t}/${e}`,
|
|
10026
10028
|
answer: w
|
|
@@ -10030,7 +10032,7 @@ const cu = ({
|
|
|
10030
10032
|
id: x == null ? void 0 : x.id,
|
|
10031
10033
|
name: (Z = x == null ? void 0 : x.data) == null ? void 0 : Z.name,
|
|
10032
10034
|
organization: (J = x == null ? void 0 : x.data) == null ? void 0 : J.organization,
|
|
10033
|
-
jobTitle: (
|
|
10035
|
+
jobTitle: (k = x == null ? void 0 : x.data) == null ? void 0 : k.jobTitle,
|
|
10034
10036
|
location: (N = x == null ? void 0 : x.data) == null ? void 0 : N.location,
|
|
10035
10037
|
image: {
|
|
10036
10038
|
thumbnail: ((z = x == null ? void 0 : x.data) == null ? void 0 : z.thumbnail) || void 0
|
|
@@ -10638,7 +10640,7 @@ function Zc({
|
|
|
10638
10640
|
queryKey: i,
|
|
10639
10641
|
user: s
|
|
10640
10642
|
}) {
|
|
10641
|
-
const { mutate: o } =
|
|
10643
|
+
const { mutate: o } = je({
|
|
10642
10644
|
mutationFn: t,
|
|
10643
10645
|
onMutate: (c) => e((f) => {
|
|
10644
10646
|
const l = Gr({ reply: Nc(c), user: s });
|
|
@@ -10667,7 +10669,7 @@ function Wc({
|
|
|
10667
10669
|
error: n
|
|
10668
10670
|
}
|
|
10669
10671
|
}) {
|
|
10670
|
-
const { mutate: r } =
|
|
10672
|
+
const { mutate: r } = je({
|
|
10671
10673
|
mutationFn: t,
|
|
10672
10674
|
onMutate: ({ replyId: i, content: s }) => e((o) => {
|
|
10673
10675
|
const c = Xt(i, o);
|
|
@@ -10718,7 +10720,7 @@ function Hc({
|
|
|
10718
10720
|
queryClient: r,
|
|
10719
10721
|
queryKey: i
|
|
10720
10722
|
}) {
|
|
10721
|
-
const { mutate: s } =
|
|
10723
|
+
const { mutate: s } = je({
|
|
10722
10724
|
mutationFn: t,
|
|
10723
10725
|
onMutate: ({ replyId: o }) => e((c) => {
|
|
10724
10726
|
const f = Xt(o, c);
|
|
@@ -10761,7 +10763,7 @@ function Yc({
|
|
|
10761
10763
|
error: n
|
|
10762
10764
|
}
|
|
10763
10765
|
}) {
|
|
10764
|
-
const { mutate: r } =
|
|
10766
|
+
const { mutate: r } = je({
|
|
10765
10767
|
mutationFn: t,
|
|
10766
10768
|
onMutate: ({ replyId: i }) => e((s) => Xc(i, s)),
|
|
10767
10769
|
onError: n
|
|
@@ -10776,7 +10778,7 @@ function Kc({
|
|
|
10776
10778
|
},
|
|
10777
10779
|
user: r
|
|
10778
10780
|
}) {
|
|
10779
|
-
const { mutate: i } =
|
|
10781
|
+
const { mutate: i } = je({
|
|
10780
10782
|
mutationFn: t,
|
|
10781
10783
|
onMutate: ({ replyId: s }) => e((o) => {
|
|
10782
10784
|
const c = Xt(s, o);
|
|
@@ -10851,7 +10853,7 @@ const tl = ({
|
|
|
10851
10853
|
}
|
|
10852
10854
|
});
|
|
10853
10855
|
return /* @__PURE__ */ a.jsx(
|
|
10854
|
-
|
|
10856
|
+
kc,
|
|
10855
10857
|
{
|
|
10856
10858
|
loadMore: { isLoading: l, hasNextPage: f, loadNextPage: () => c() },
|
|
10857
10859
|
form: {
|
|
@@ -10870,16 +10872,16 @@ const tl = ({
|
|
|
10870
10872
|
meta: { isEditing: !1, showSuccessMessage: !1 }
|
|
10871
10873
|
},
|
|
10872
10874
|
children: o && o.length > 0 ? o == null ? void 0 : o.map((_) => {
|
|
10873
|
-
var L, U, I, Z, J,
|
|
10875
|
+
var L, U, I, Z, J, k, N, z, q, H, ee, G;
|
|
10874
10876
|
const {
|
|
10875
10877
|
id: v,
|
|
10876
10878
|
own_children: b,
|
|
10877
|
-
latest_children:
|
|
10879
|
+
latest_children: j,
|
|
10878
10880
|
children_counts: T
|
|
10879
10881
|
} = _, D = (((L = b == null ? void 0 : b.like) == null ? void 0 : L.length) || 0) > 0 ? (U = b == null ? void 0 : b.like) == null ? void 0 : U.find((V) => {
|
|
10880
10882
|
var X;
|
|
10881
10883
|
return ((X = V == null ? void 0 : V.user) == null ? void 0 : X.id) === (y == null ? void 0 : y.id);
|
|
10882
|
-
}) : !1, R = D ? D == null ? void 0 : D.id : "", W = !!D, O = (((I =
|
|
10884
|
+
}) : !1, R = D ? D == null ? void 0 : D.id : "", W = !!D, O = (((I = j == null ? void 0 : j.like) == null ? void 0 : I.length) || 0) > 0 ? (Z = j == null ? void 0 : j.like) == null ? void 0 : Z.map((V) => {
|
|
10883
10885
|
var X, re, F;
|
|
10884
10886
|
return {
|
|
10885
10887
|
id: (X = V == null ? void 0 : V.user) == null ? void 0 : X.id,
|
|
@@ -10887,7 +10889,7 @@ const tl = ({
|
|
|
10887
10889
|
};
|
|
10888
10890
|
}) : !1, C = _ == null ? void 0 : _.user, E = (C == null ? void 0 : C.id) === (y == null ? void 0 : y.id), x = nn(i, E), $ = typeof _.data.content == "string" ? (J = _ == null ? void 0 : _.data) == null ? void 0 : J.content : (
|
|
10889
10891
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10890
|
-
((N = (
|
|
10892
|
+
((N = (k = _ == null ? void 0 : _.data) == null ? void 0 : k.content) == null ? void 0 : N.text) || ""
|
|
10891
10893
|
);
|
|
10892
10894
|
return /* @__PURE__ */ a.jsx(
|
|
10893
10895
|
rn,
|
|
@@ -10959,7 +10961,7 @@ const tl = ({
|
|
|
10959
10961
|
queryFns: i
|
|
10960
10962
|
});
|
|
10961
10963
|
return Ii(), Ya(), /* @__PURE__ */ a.jsxs("section", { children: [
|
|
10962
|
-
/* @__PURE__ */ a.jsx(
|
|
10964
|
+
/* @__PURE__ */ a.jsx(jc, { type: "comment", responses: l }),
|
|
10963
10965
|
/* @__PURE__ */ a.jsx(
|
|
10964
10966
|
za,
|
|
10965
10967
|
{
|
|
@@ -10967,7 +10969,7 @@ const tl = ({
|
|
|
10967
10969
|
content: { type: "reply", slugs: {} },
|
|
10968
10970
|
functions: {
|
|
10969
10971
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10970
|
-
create: (
|
|
10972
|
+
create: (j, { body: T }) => p({ activityId: n, content: T })
|
|
10971
10973
|
},
|
|
10972
10974
|
meta: { isEditing: !1, showSuccessMessage: !1 },
|
|
10973
10975
|
placeholder: c.formatMessage({ id: "discussion_responses_placeholder" })
|
|
@@ -10981,20 +10983,20 @@ const tl = ({
|
|
|
10981
10983
|
}
|
|
10982
10984
|
}
|
|
10983
10985
|
),
|
|
10984
|
-
f == null ? void 0 : f.map((
|
|
10985
|
-
var Z, J,
|
|
10986
|
-
const { id: T, own_children: w, latest_children: D, children_counts: R } =
|
|
10986
|
+
f == null ? void 0 : f.map((j) => {
|
|
10987
|
+
var Z, J, k, N, z, q, H, ee, G, V, X, re;
|
|
10988
|
+
const { id: T, own_children: w, latest_children: D, children_counts: R } = j, M = (((Z = w == null ? void 0 : w.like) == null ? void 0 : Z.length) || 0) > 0 ? (J = w == null ? void 0 : w.like) == null ? void 0 : J.find((F) => {
|
|
10987
10989
|
var oe;
|
|
10988
10990
|
return ((oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id) === (b == null ? void 0 : b.id);
|
|
10989
|
-
}) : !1, O = M ? M == null ? void 0 : M.id : "", C = !!M, x = (((
|
|
10991
|
+
}) : !1, O = M ? M == null ? void 0 : M.id : "", C = !!M, x = (((k = D == null ? void 0 : D.like) == null ? void 0 : k.length) || 0) > 0 ? (N = D == null ? void 0 : D.like) == null ? void 0 : N.map((F) => {
|
|
10990
10992
|
var oe, A, ve;
|
|
10991
10993
|
return {
|
|
10992
10994
|
id: (oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id,
|
|
10993
10995
|
name: (ve = (A = F == null ? void 0 : F.user) == null ? void 0 : A.data) == null ? void 0 : ve.name
|
|
10994
10996
|
};
|
|
10995
|
-
}) : !1, $ =
|
|
10997
|
+
}) : !1, $ = j == null ? void 0 : j.user, L = ($ == null ? void 0 : $.id) === (b == null ? void 0 : b.id), U = nn(r, L), I = typeof j.data.content == "string" ? (z = j == null ? void 0 : j.data) == null ? void 0 : z.content : (
|
|
10996
10998
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10997
|
-
((H = (q =
|
|
10999
|
+
((H = (q = j == null ? void 0 : j.data) == null ? void 0 : q.content) == null ? void 0 : H.text) || ""
|
|
10998
11000
|
);
|
|
10999
11001
|
return /* @__PURE__ */ a.jsx(bc, { children: /* @__PURE__ */ a.jsx(
|
|
11000
11002
|
rn,
|
|
@@ -11004,7 +11006,7 @@ const tl = ({
|
|
|
11004
11006
|
type: "reply",
|
|
11005
11007
|
body: I,
|
|
11006
11008
|
canLike: U,
|
|
11007
|
-
createdAt:
|
|
11009
|
+
createdAt: j == null ? void 0 : j.created_at,
|
|
11008
11010
|
slugs: {
|
|
11009
11011
|
question: `${t}/${e}`,
|
|
11010
11012
|
answer: n,
|
|
@@ -11076,7 +11078,7 @@ function rl({
|
|
|
11076
11078
|
error: n
|
|
11077
11079
|
}
|
|
11078
11080
|
}) {
|
|
11079
|
-
const { mutate: r } =
|
|
11081
|
+
const { mutate: r } = je({
|
|
11080
11082
|
mutationFn: t,
|
|
11081
11083
|
onMutate: ({ content: i }) => e((s) => (s && (s.content = i), s)),
|
|
11082
11084
|
onError: n
|
|
@@ -11089,7 +11091,7 @@ function al({ queryFn: t, queryKey: e }) {
|
|
|
11089
11091
|
error: r,
|
|
11090
11092
|
isLoading: i,
|
|
11091
11093
|
isFetching: s
|
|
11092
|
-
} =
|
|
11094
|
+
} = ji({
|
|
11093
11095
|
queryFn: t,
|
|
11094
11096
|
queryKey: e
|
|
11095
11097
|
});
|
|
@@ -11137,7 +11139,7 @@ function sl({
|
|
|
11137
11139
|
queryClient: r,
|
|
11138
11140
|
queryKey: i
|
|
11139
11141
|
}) {
|
|
11140
|
-
const { mutate: s } =
|
|
11142
|
+
const { mutate: s } = je({
|
|
11141
11143
|
mutationFn: t,
|
|
11142
11144
|
onMutate: (o) => e((c) => (c && Qt({ activity: c }), c)),
|
|
11143
11145
|
onError: n,
|
|
@@ -11155,7 +11157,7 @@ function ol({
|
|
|
11155
11157
|
},
|
|
11156
11158
|
user: r
|
|
11157
11159
|
}) {
|
|
11158
|
-
const { mutate: i } =
|
|
11160
|
+
const { mutate: i } = je({
|
|
11159
11161
|
mutationFn: t,
|
|
11160
11162
|
onMutate: (s) => e((o) => (o && Ha({ activity: o, user: r }), o)),
|
|
11161
11163
|
onError: n
|
|
@@ -11194,10 +11196,10 @@ const uu = ({
|
|
|
11194
11196
|
text: l.formatMessage({ id: "activitySection_notFoundError" })
|
|
11195
11197
|
}
|
|
11196
11198
|
);
|
|
11197
|
-
const { own_reactions: v, latest_reactions: b } = d,
|
|
11198
|
-
var
|
|
11199
|
+
const { own_reactions: v, latest_reactions: b } = d, j = (((M = b == null ? void 0 : b.like) == null ? void 0 : M.length) || 0) > 0, T = (((O = v == null ? void 0 : v.like) == null ? void 0 : O.length) || 0) > 0, w = T ? v == null ? void 0 : v.like[0].id : "", D = j ? (C = b == null ? void 0 : b.like) == null ? void 0 : C.map((J) => {
|
|
11200
|
+
var k, N, z;
|
|
11199
11201
|
return {
|
|
11200
|
-
id: (
|
|
11202
|
+
id: (k = J == null ? void 0 : J.user) == null ? void 0 : k.id,
|
|
11201
11203
|
name: (z = (N = J == null ? void 0 : J.user) == null ? void 0 : N.data) == null ? void 0 : z.name
|
|
11202
11204
|
};
|
|
11203
11205
|
}) : !1, R = d == null ? void 0 : d.actor, W = (R == null ? void 0 : R.id) === (u == null ? void 0 : u.id);
|
|
@@ -11239,7 +11241,7 @@ const uu = ({
|
|
|
11239
11241
|
createContent: () => null,
|
|
11240
11242
|
deleteContent: i,
|
|
11241
11243
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11242
|
-
updateContent: (J, { body:
|
|
11244
|
+
updateContent: (J, { body: k }) => g({ content: k })
|
|
11243
11245
|
},
|
|
11244
11246
|
likes: {
|
|
11245
11247
|
createLike: () => y({ activityId: n }),
|
|
@@ -11364,7 +11366,7 @@ export {
|
|
|
11364
11366
|
Gl as Breadcrumbs,
|
|
11365
11367
|
ie as Button,
|
|
11366
11368
|
_t as ButtonWrapper,
|
|
11367
|
-
|
|
11369
|
+
jt as COURSE_CONTENT_TYPES,
|
|
11368
11370
|
_s as CacheProvider,
|
|
11369
11371
|
Ia as Card,
|
|
11370
11372
|
Qo as CardBlock,
|
|
@@ -11386,7 +11388,7 @@ export {
|
|
|
11386
11388
|
nr as DiscussionForm,
|
|
11387
11389
|
xc as DiscussionLikes,
|
|
11388
11390
|
rn as DiscussionPost,
|
|
11389
|
-
|
|
11391
|
+
kc as DiscussionThread,
|
|
11390
11392
|
Oe as Divider,
|
|
11391
11393
|
Ml as DownloadSection,
|
|
11392
11394
|
ut as EMAILS,
|
|
@@ -11394,7 +11396,7 @@ export {
|
|
|
11394
11396
|
Ns as EmailHelperTextBox,
|
|
11395
11397
|
nt as EmptyStateBox,
|
|
11396
11398
|
Ql as Filters,
|
|
11397
|
-
|
|
11399
|
+
js as FlagsProvider,
|
|
11398
11400
|
qa as Footer,
|
|
11399
11401
|
Xn as Form,
|
|
11400
11402
|
We as FullWidthSection,
|
|
@@ -11407,7 +11409,7 @@ export {
|
|
|
11407
11409
|
Fe as HighlightedTextBox,
|
|
11408
11410
|
Cl as IconBulletedList,
|
|
11409
11411
|
Tl as ImageContainer,
|
|
11410
|
-
|
|
11412
|
+
ks as IntlProvider,
|
|
11411
11413
|
Us as InviteForm,
|
|
11412
11414
|
Hl as InviteModal,
|
|
11413
11415
|
La as JoinButton,
|
|
@@ -11428,7 +11430,7 @@ export {
|
|
|
11428
11430
|
au as MembersList,
|
|
11429
11431
|
Da as Modal,
|
|
11430
11432
|
nc as MoreMenu,
|
|
11431
|
-
|
|
11433
|
+
jl as NUMBER_OF_USERS,
|
|
11432
11434
|
ic as NavigationMenu,
|
|
11433
11435
|
fu as NotFoundError,
|
|
11434
11436
|
en as Overlay,
|
|
@@ -11441,7 +11443,7 @@ export {
|
|
|
11441
11443
|
ga as ProgressBar,
|
|
11442
11444
|
Ul as Rating,
|
|
11443
11445
|
nl as RepliesFeed,
|
|
11444
|
-
|
|
11446
|
+
jc as ResponsesHeading,
|
|
11445
11447
|
xt as ResponsiveImage,
|
|
11446
11448
|
El as ReturnToNavButton,
|
|
11447
11449
|
zs as SearchForm,
|
|
@@ -11471,7 +11473,7 @@ export {
|
|
|
11471
11473
|
Kt as headerData,
|
|
11472
11474
|
du as mapGetStreamData,
|
|
11473
11475
|
Qi as pageReady,
|
|
11474
|
-
|
|
11476
|
+
kl as passwordValidator,
|
|
11475
11477
|
lu as repliesFeedMock,
|
|
11476
11478
|
Bi as toCamelCase,
|
|
11477
11479
|
qi as toSentenceCase,
|