@apolitical/component-library 3.5.10-ac.9 → 3.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -131,13 +131,13 @@ var wr;
131
131
  function Is() {
132
132
  return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
133
133
  var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
134
- function _(h) {
134
+ function b(h) {
135
135
  if (h === null || typeof h != "object")
136
136
  return null;
137
137
  var M = g && h[g] || h[v];
138
138
  return typeof M == "function" ? M : null;
139
139
  }
140
- var y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
140
+ var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
141
141
  function x(h) {
142
142
  {
143
143
  for (var M = arguments.length, I = new Array(M > 1 ? M - 1 : 0), ne = 1; ne < M; ne++)
@@ -147,7 +147,7 @@ function Is() {
147
147
  }
148
148
  function E(h, M, I) {
149
149
  {
150
- var ne = y.ReactDebugCurrentFrame, le = ne.getStackAddendum();
150
+ var ne = _.ReactDebugCurrentFrame, le = ne.getStackAddendum();
151
151
  le !== "" && (M += "%s", I = I.concat([le]));
152
152
  var me = I.map(function(ce) {
153
153
  return String(ce);
@@ -155,10 +155,10 @@ function Is() {
155
155
  me.unshift("Warning: " + M), Function.prototype.apply.call(console[h], console, me);
156
156
  }
157
157
  }
158
- var w = !1, b = !1, F = !1, R = !1, Q = !1, B;
158
+ var w = !1, y = !1, F = !1, R = !1, Q = !1, B;
159
159
  B = Symbol.for("react.module.reference");
160
160
  function $(h) {
161
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || w || b || F || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === o || h.$$typeof === c || h.$$typeof === d || // This needs to include all possible module reference object
161
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || w || y || F || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === o || h.$$typeof === c || h.$$typeof === d || // This needs to include all possible module reference object
162
162
  // types supported by any Flight configuration anywhere since
163
163
  // we don't know which Flight build this will end up being used
164
164
  // with.
@@ -281,7 +281,7 @@ function Is() {
281
281
  A < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
282
282
  }
283
283
  }
284
- var G = y.ReactCurrentDispatcher, V;
284
+ var G = _.ReactCurrentDispatcher, V;
285
285
  function ee(h, M, I) {
286
286
  {
287
287
  if (V === void 0)
@@ -407,7 +407,7 @@ function Is() {
407
407
  }
408
408
  return "";
409
409
  }
410
- var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = y.ReactDebugCurrentFrame;
410
+ var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = _.ReactDebugCurrentFrame;
411
411
  function Et(h) {
412
412
  if (h) {
413
413
  var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
@@ -458,7 +458,7 @@ function Is() {
458
458
  if (as(h))
459
459
  return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rs(h)), ur(h);
460
460
  }
461
- var st = y.ReactCurrentOwner, ss = {
461
+ var st = _.ReactCurrentOwner, ss = {
462
462
  key: !0,
463
463
  ref: !0,
464
464
  __self: !0,
@@ -556,7 +556,7 @@ function Is() {
556
556
  return ds(h, ie, xe, le, ne, st.current, ce);
557
557
  }
558
558
  }
559
- var dn = y.ReactCurrentOwner, pr = y.ReactDebugCurrentFrame;
559
+ var dn = _.ReactCurrentOwner, pr = _.ReactDebugCurrentFrame;
560
560
  function Ke(h) {
561
561
  if (h) {
562
562
  var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
@@ -630,7 +630,7 @@ Check the top-level render call using <` + I + ">.");
630
630
  else if (mn(h))
631
631
  h._store && (h._store.validated = !0);
632
632
  else if (h) {
633
- var le = _(h);
633
+ var le = b(h);
634
634
  if (typeof le == "function" && le !== h.entries)
635
635
  for (var me = le.call(h), ce; !(ce = me.next()).done; )
636
636
  mn(ce.value) && vr(ce.value, M);
@@ -737,7 +737,7 @@ function Bs(t, e, n) {
737
737
  if (typeof t != "function")
738
738
  throw new TypeError("Expected a function");
739
739
  e = +e || 0;
740
- var g = !!(n = n || {}).leading, v = !("trailing" in n) || !!n.trailing, _ = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, x = _ ? Math.max(+n.maxWait || 0, e) : null;
740
+ var g = !!(n = n || {}).leading, v = !("trailing" in n) || !!n.trailing, b = "maxWait" in n, _ = "debounceOnServer" in n && !!n.debounceOnServer, x = b ? Math.max(+n.maxWait || 0, e) : null;
741
741
  ae(function() {
742
742
  return f.current = !0, function() {
743
743
  f.current = !1;
@@ -747,13 +747,13 @@ function Bs(t, e, n) {
747
747
  var w = function($) {
748
748
  var C = c.current, k = d.current;
749
749
  return c.current = d.current = null, i.current = $, l.current = u.current.apply(k, C);
750
- }, b = function($, C) {
750
+ }, y = function($, C) {
751
751
  p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame($) : setTimeout($, C);
752
752
  }, F = function($) {
753
753
  if (!f.current)
754
754
  return !1;
755
755
  var C = $ - s.current;
756
- return !s.current || C >= e || C < 0 || _ && $ - i.current >= x;
756
+ return !s.current || C >= e || C < 0 || b && $ - i.current >= x;
757
757
  }, R = function($) {
758
758
  return o.current = null, v && c.current ? w($) : (c.current = d.current = null, l.current);
759
759
  }, Q = function $() {
@@ -761,19 +761,19 @@ function Bs(t, e, n) {
761
761
  if (F(C))
762
762
  return R(C);
763
763
  if (f.current) {
764
- var k = e - (C - s.current), j = _ ? Math.min(k, x - (C - i.current)) : k;
765
- b($, j);
764
+ var k = e - (C - s.current), j = b ? Math.min(k, x - (C - i.current)) : k;
765
+ y($, j);
766
766
  }
767
767
  }, B = function() {
768
- if (m || y) {
768
+ if (m || _) {
769
769
  var $ = Date.now(), C = F($);
770
770
  if (c.current = [].slice.call(arguments), d.current = r, s.current = $, C) {
771
771
  if (!o.current && f.current)
772
- return i.current = s.current, b(Q, e), g ? w(s.current) : l.current;
773
- if (_)
774
- return b(Q, e), w(s.current);
772
+ return i.current = s.current, y(Q, e), g ? w(s.current) : l.current;
773
+ if (b)
774
+ return y(Q, e), w(s.current);
775
775
  }
776
- return o.current || b(Q, e), l.current;
776
+ return o.current || y(Q, e), l.current;
777
777
  }
778
778
  };
779
779
  return B.cancel = function() {
@@ -783,7 +783,7 @@ function Bs(t, e, n) {
783
783
  }, B.flush = function() {
784
784
  return o.current ? R(Date.now()) : l.current;
785
785
  }, B;
786
- }, [g, _, e, x, v, p, m, y]);
786
+ }, [g, b, e, x, v, p, m, _]);
787
787
  return E;
788
788
  }
789
789
  function fa(t, e, n) {
@@ -983,13 +983,10 @@ const ze = {
983
983
  card_member_type_member: "Member",
984
984
  card_member_count: "{count} members",
985
985
  card_cta_people: "View profile",
986
- card_cta_communityPage: "Join now",
987
986
  card_cta_event: "Register now",
988
987
  card_cta_microcourse: "Enrol now",
989
- card_cta_communityPage_loading: "Joining...",
990
988
  card_cta_event_loading: "Registering...",
991
989
  card_cta_microcourse_loading: "Enrolling...",
992
- card_cta_communityPage_done: "Joined",
993
990
  card_cta_event_done: "Registered",
994
991
  card_cta_microcourse_done: "Enrolled",
995
992
  carousel_pagination_previous: "Previous",
@@ -1454,8 +1451,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1454
1451
  }) => {
1455
1452
  const p = jt(typeof e == "object");
1456
1453
  if (typeof e == "object" && typeof p == "number") {
1457
- const _ = Object.assign({}, e), y = pa(Object.keys(_));
1458
- e = ha(p, y, _);
1454
+ const b = Object.assign({}, e), _ = pa(Object.keys(b));
1455
+ e = ha(p, _, b);
1459
1456
  }
1460
1457
  const g = [];
1461
1458
  typeof e == "string" && g.push(e), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
@@ -1466,8 +1463,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1466
1463
  disabled: d,
1467
1464
  button: s
1468
1465
  }),
1469
- onClick: (_) => {
1470
- (!s || s[0] === "#") && o && (_.preventDefault(), _.stopPropagation()), o && o(_);
1466
+ onClick: (b) => {
1467
+ (!s || s[0] === "#") && o && (b.preventDefault(), b.stopPropagation()), o && o(b);
1471
1468
  },
1472
1469
  disabled: typeof d == "object" && "isClickable" in d ? !d.isClickable : d
1473
1470
  };
@@ -1617,7 +1614,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
1617
1614
  loading: l,
1618
1615
  decoding: u,
1619
1616
  fetchPriority: f
1620
- } = t, { range: m, sizes: p } = ri(t), g = hn({ format: "avif", query: o, range: m, url: c }), v = hn({ format: "webp", query: o, range: m, url: c }), _ = hn({ format: "", query: o, range: m, url: c });
1617
+ } = t, { range: m, sizes: p } = ri(t), g = hn({ format: "avif", query: o, range: m, url: c }), v = hn({ format: "webp", query: o, range: m, url: c }), b = hn({ format: "", query: o, range: m, url: c });
1621
1618
  return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
1622
1619
  i !== "image/gif" && /* @__PURE__ */ a.jsx(
1623
1620
  "source",
@@ -1632,7 +1629,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
1632
1629
  /* @__PURE__ */ a.jsx(
1633
1630
  "img",
1634
1631
  {
1635
- srcSet: _,
1632
+ srcSet: b,
1636
1633
  sizes: p,
1637
1634
  src: c,
1638
1635
  alt: r,
@@ -2969,27 +2966,27 @@ const Pr = {
2969
2966
  /* @__PURE__ */ a.jsx("ul", { children: n.map((m, p) => {
2970
2967
  let g, v = "";
2971
2968
  if (p < c) {
2972
- const { name: _ = "", image: y = "" } = ka(m);
2969
+ const { name: b = "", image: _ = "" } = ka(m);
2973
2970
  if (o)
2974
2971
  return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" }, p);
2975
2972
  g = /* @__PURE__ */ a.jsx(
2976
2973
  Ye,
2977
2974
  {
2978
- name: _,
2979
- src: y,
2975
+ name: b,
2976
+ src: _,
2980
2977
  width: Pr[s || "medium"],
2981
2978
  height: Pr[s || "medium"]
2982
2979
  }
2983
2980
  );
2984
2981
  } else if (p === c) {
2985
- const _ = (e || n.length) - c;
2982
+ const b = (e || n.length) - c;
2986
2983
  g = /* @__PURE__ */ a.jsxs(
2987
2984
  "small",
2988
2985
  {
2989
- className: S({ "large-number": _ > 99 }),
2986
+ className: S({ "large-number": b > 99 }),
2990
2987
  children: [
2991
2988
  "+",
2992
- ei(_, 0)
2989
+ ei(b, 0)
2993
2990
  ]
2994
2991
  }
2995
2992
  ), v = "number-left";
@@ -3023,7 +3020,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3023
3020
  "data-gtm-event-context": "VerifyEmailBox",
3024
3021
  "data-gtm-event-type": "SendEmailClick",
3025
3022
  className: "gtm-trackable",
3026
- onClick: (_) => l(_),
3023
+ onClick: (b) => l(b),
3027
3024
  href: "#",
3028
3025
  "data-testid": "send-verify-email-click"
3029
3026
  },
@@ -3053,7 +3050,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3053
3050
  );
3054
3051
  ae(
3055
3052
  () => {
3056
- let p = $t, g = "default", v = {}, _ = {};
3053
+ let p = $t, g = "default", v = {}, b = {};
3057
3054
  switch (t) {
3058
3055
  case "gov":
3059
3056
  p += "autoApproved", g = "success";
@@ -3066,7 +3063,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3066
3063
  };
3067
3064
  break;
3068
3065
  case "pending":
3069
- p += "pendingApproval", g = "error", _ = {
3066
+ p += "pendingApproval", g = "error", b = {
3070
3067
  href: "mailto:concierge@apolitical.co",
3071
3068
  className: "gtm-trackable",
3072
3069
  "data-gtm-event-context": "EmailExistsBox",
@@ -3079,7 +3076,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3079
3076
  "data-gtm-event-context": "VerifyEmailBox",
3080
3077
  "data-gtm-event-type": "SendEmailClick",
3081
3078
  className: "gtm-trackable",
3082
- onClick: (y) => l(y),
3079
+ onClick: (_) => l(_),
3083
3080
  "data-testid": "send-verify-email-click"
3084
3081
  };
3085
3082
  break;
@@ -3088,7 +3085,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3088
3085
  href: "/user-onboarding/login",
3089
3086
  "data-gtm-event-context": "EmailExistsBox",
3090
3087
  "data-gtm-event-type": "login-click"
3091
- }, _ = {
3088
+ }, b = {
3092
3089
  href: "mailto:concierge@apolitical.co",
3093
3090
  className: "gtm-trackable",
3094
3091
  "data-gtm-event-context": "EmailExistsBox",
@@ -3103,7 +3100,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3103
3100
  };
3104
3101
  break;
3105
3102
  }
3106
- o({ ...i, path: p, type: g, link: v, mail: _ });
3103
+ o({ ...i, path: p, type: g, link: v, mail: b });
3107
3104
  },
3108
3105
  /* eslint-disable react-hooks/exhaustive-deps */
3109
3106
  [t]
@@ -3201,10 +3198,10 @@ const Qe = {
3201
3198
  predictions: [],
3202
3199
  activePredictionIndex: -1,
3203
3200
  isPredictionSelected: !!n
3204
- }), { formatMessage: _ } = H();
3205
- r || (r = _({ id: "inputAutocomplete_placeholder" })), ae(() => {
3201
+ }), { formatMessage: b } = H();
3202
+ r || (r = b({ id: "inputAutocomplete_placeholder" })), ae(() => {
3206
3203
  const w = setTimeout(() => {
3207
- g || f((b) => ({ ...b, debouncedInput: d }));
3204
+ g || f((y) => ({ ...y, debouncedInput: d }));
3208
3205
  }, Ai);
3209
3206
  return () => {
3210
3207
  clearTimeout(w);
@@ -3212,13 +3209,13 @@ const Qe = {
3212
3209
  }, [d, g]), ae(() => {
3213
3210
  u && !g ? (async () => {
3214
3211
  try {
3215
- const b = await c(u) || [];
3212
+ const y = await c(u) || [];
3216
3213
  v((F) => ({
3217
3214
  ...F,
3218
- predictions: b
3215
+ predictions: y
3219
3216
  }));
3220
- } catch (b) {
3221
- console.error("Error fetching predictions:", b), v((F) => ({ ...F, predictions: [] }));
3217
+ } catch (y) {
3218
+ console.error("Error fetching predictions:", y), v((F) => ({ ...F, predictions: [] }));
3222
3219
  }
3223
3220
  })() : v((w) => ({ ...w, predictions: [] }));
3224
3221
  }, [u, g]), ae(() => {
@@ -3227,38 +3224,38 @@ const Qe = {
3227
3224
  displayInput: m[p].description
3228
3225
  }));
3229
3226
  }, [p, m]);
3230
- const y = (w) => {
3231
- [Qe.DOWN, Qe.UP, Qe.ENTER].includes(w.key) && (w.preventDefault(), w.key === Qe.DOWN && p < m.length - 1 ? v((b) => ({
3232
- ...b,
3227
+ const _ = (w) => {
3228
+ [Qe.DOWN, Qe.UP, Qe.ENTER].includes(w.key) && (w.preventDefault(), w.key === Qe.DOWN && p < m.length - 1 ? v((y) => ({
3229
+ ...y,
3233
3230
  activePredictionIndex: p + 1
3234
- })) : w.key === Qe.UP && p > 0 ? v((b) => ({
3235
- ...b,
3231
+ })) : w.key === Qe.UP && p > 0 ? v((y) => ({
3232
+ ...y,
3236
3233
  activePredictionIndex: p - 1
3237
- })) : w.key === Qe.ENTER && p > -1 && (o(m[p].description), f((b) => ({
3238
- ...b,
3234
+ })) : w.key === Qe.ENTER && p > -1 && (o(m[p].description), f((y) => ({
3235
+ ...y,
3239
3236
  input: m[p].description
3240
- })), v((b) => ({
3241
- ...b,
3237
+ })), v((y) => ({
3238
+ ...y,
3242
3239
  predictions: [],
3243
3240
  isPredictionSelected: !0
3244
3241
  }))));
3245
3242
  }, x = (w) => {
3246
- o(w.target.value), f((b) => ({
3247
- ...b,
3243
+ o(w.target.value), f((y) => ({
3244
+ ...y,
3248
3245
  input: w.target.value,
3249
3246
  displayInput: w.target.value
3250
- })), v((b) => ({
3251
- ...b,
3247
+ })), v((y) => ({
3248
+ ...y,
3252
3249
  activePredictionIndex: -1,
3253
3250
  isPredictionSelected: !1
3254
3251
  }));
3255
3252
  }, E = (w) => {
3256
- o(w.description), f((b) => ({
3257
- ...b,
3253
+ o(w.description), f((y) => ({
3254
+ ...y,
3258
3255
  input: w.description,
3259
3256
  displayInput: w.description
3260
- })), v((b) => ({
3261
- ...b,
3257
+ })), v((y) => ({
3258
+ ...y,
3262
3259
  isPredictionSelected: !0,
3263
3260
  predictions: []
3264
3261
  }));
@@ -3270,27 +3267,27 @@ const Qe = {
3270
3267
  type: "text",
3271
3268
  value: l,
3272
3269
  onChange: x,
3273
- onKeyDown: y,
3270
+ onKeyDown: _,
3274
3271
  placeholder: r,
3275
3272
  name: e,
3276
3273
  id: t,
3277
3274
  ...i
3278
3275
  }
3279
3276
  ),
3280
- /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: m.map((w, b) => /* @__PURE__ */ a.jsx(
3277
+ /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: m.map((w, y) => /* @__PURE__ */ a.jsx(
3281
3278
  "li",
3282
3279
  {
3283
3280
  onClick: () => E(w),
3284
3281
  onMouseEnter: () => v((F) => ({
3285
3282
  ...F,
3286
- activePredictionIndex: b
3283
+ activePredictionIndex: y
3287
3284
  })),
3288
3285
  className: S("predictions-list-item", {
3289
- active: b === p
3286
+ active: y === p
3290
3287
  }),
3291
3288
  children: w.description
3292
3289
  },
3293
- b
3290
+ y
3294
3291
  )) })
3295
3292
  ] });
3296
3293
  };
@@ -3311,7 +3308,7 @@ const Ea = ({
3311
3308
  }) => {
3312
3309
  const m = H(), { onChange: p, ...g } = r, v = () => {
3313
3310
  e || p(u ? null : d);
3314
- }, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3311
+ }, b = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3315
3312
  /* @__PURE__ */ a.jsx(
3316
3313
  "input",
3317
3314
  {
@@ -3321,8 +3318,8 @@ const Ea = ({
3321
3318
  type: l,
3322
3319
  value: d,
3323
3320
  checked: u,
3324
- onKeyDown: (y) => {
3325
- (y.key === "Enter" || y.code === "Space") && (y.preventDefault(), y.stopPropagation(), v());
3321
+ onKeyDown: (_) => {
3322
+ (_.key === "Enter" || _.code === "Space") && (_.preventDefault(), _.stopPropagation(), v());
3326
3323
  },
3327
3324
  readOnly: !0,
3328
3325
  disabled: e
@@ -3336,15 +3333,15 @@ const Ea = ({
3336
3333
  return Y.createElement(
3337
3334
  n,
3338
3335
  {
3339
- onClick: (y) => {
3340
- const x = y.target;
3341
- x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (y.preventDefault(), y.stopPropagation(), v());
3336
+ onClick: (_) => {
3337
+ const x = _.target;
3338
+ x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (_.preventDefault(), _.stopPropagation(), v());
3342
3339
  },
3343
3340
  className: S("checkbox-wrapper", t),
3344
3341
  ...f,
3345
3342
  ...g
3346
3343
  },
3347
- _
3344
+ b
3348
3345
  );
3349
3346
  };
3350
3347
  const Ii = Ae(function({
@@ -3371,23 +3368,23 @@ const Li = ({
3371
3368
  multiSelectOptions: d,
3372
3369
  id: l
3373
3370
  }) => {
3374
- const u = H(), [f, m] = X(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [v, _] = X(g);
3375
- let y;
3376
- Array.isArray(v) && v.length === 1 && typeof v[0] == "string" ? y = e && v ? e.find((R) => R.id === v[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(v) && v.length === 1 && typeof v[0] != "string" ? y = v[0] : y = { id: "", label: "" }, ae(() => {
3377
- _(g);
3371
+ const u = H(), [f, m] = X(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [v, b] = X(g);
3372
+ let _;
3373
+ Array.isArray(v) && v.length === 1 && typeof v[0] == "string" ? _ = e && v ? e.find((R) => R.id === v[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(v) && v.length === 1 && typeof v[0] != "string" ? _ = v[0] : _ = { id: "", label: "" }, ae(() => {
3374
+ b(g);
3378
3375
  }, [r, n]);
3379
- const { onChange: x, onMultiSelectSubmit: E, ...w } = s, b = (R) => {
3376
+ const { onChange: x, onMultiSelectSubmit: E, ...w } = s, y = (R) => {
3380
3377
  if (c) {
3381
3378
  let Q = [];
3382
- v != null && v.includes(R.id) ? Q = v.filter((B) => B !== R.id) : Q = [...v, R.id], _([...Q]), x && x([...Q]);
3379
+ v != null && v.includes(R.id) ? Q = v.filter((B) => B !== R.id) : Q = [...v, R.id], b([...Q]), x && x([...Q]);
3383
3380
  } else
3384
- _([R]), x && x(R.id), m(!1);
3381
+ b([R]), x && x(R.id), m(!1);
3385
3382
  }, F = (R) => {
3386
3383
  if (R === "all") {
3387
3384
  const Q = (e == null ? void 0 : e.map((B) => B.id)) || [];
3388
- _(Q), x && x(Q);
3385
+ b(Q), x && x(Q);
3389
3386
  } else
3390
- _([]), x && x([]);
3387
+ b([]), x && x([]);
3391
3388
  };
3392
3389
  return /* @__PURE__ */ a.jsxs("div", { className: S("dropdown-wrapper", t), children: [
3393
3390
  /* @__PURE__ */ a.jsxs(
@@ -3403,7 +3400,7 @@ const Li = ({
3403
3400
  "data-testid": "dropdown-selector",
3404
3401
  ...w,
3405
3402
  children: [
3406
- c ? `${o} · ${v.length}` : y.label,
3403
+ c ? `${o} · ${v.length}` : _.label,
3407
3404
  /* @__PURE__ */ a.jsx(Ii, { direction: f ? "up" : "down" })
3408
3405
  ]
3409
3406
  }
@@ -3411,11 +3408,11 @@ const Li = ({
3411
3408
  /* @__PURE__ */ a.jsx(
3412
3409
  "select",
3413
3410
  {
3414
- defaultValue: y.id,
3411
+ defaultValue: _.id,
3415
3412
  onChange: (R) => {
3416
3413
  R.preventDefault(), R.stopPropagation();
3417
3414
  const Q = e && e.find((B) => B.id === R.target.value);
3418
- b(Q);
3415
+ y(Q);
3419
3416
  },
3420
3417
  hidden: !f,
3421
3418
  ...w,
@@ -3456,7 +3453,7 @@ const Li = ({
3456
3453
  ] })
3457
3454
  ] }),
3458
3455
  /* @__PURE__ */ a.jsx("ul", { children: e == null ? void 0 : e.map((R) => {
3459
- const Q = R.id === y.id || (v == null ? void 0 : v.includes(R)) || (v == null ? void 0 : v.includes(R.id));
3456
+ const Q = R.id === _.id || (v == null ? void 0 : v.includes(R)) || (v == null ? void 0 : v.includes(R.id));
3460
3457
  return /* @__PURE__ */ a.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ a.jsxs(
3461
3458
  "button",
3462
3459
  {
@@ -3467,7 +3464,7 @@ const Li = ({
3467
3464
  "data-gtm-event-type": `${R}-click`,
3468
3465
  "data-gtm-event-context": i,
3469
3466
  onClick: (B) => {
3470
- B.preventDefault(), B.stopPropagation(), b(R);
3467
+ B.preventDefault(), B.stopPropagation(), y(R);
3471
3468
  },
3472
3469
  role: "menuitem",
3473
3470
  "aria-current": Q,
@@ -3527,20 +3524,20 @@ const Bi = ({
3527
3524
  children: c == null ? void 0 : c.map(
3528
3525
  ({
3529
3526
  id: v,
3530
- label: _ = !1,
3531
- value: y = v,
3527
+ label: b = !1,
3528
+ value: _ = v,
3532
3529
  disabled: x = !1
3533
3530
  }) => {
3534
3531
  const E = `${r}_${v}`, w = () => {
3535
3532
  if (x)
3536
3533
  return;
3537
- let b;
3534
+ let y;
3538
3535
  if (i) {
3539
- const F = p == null ? void 0 : p.indexOf(y);
3540
- Array.isArray(p) && F >= 0 ? (b = p, b.splice(F, 1)) : (!p || p.length === 0 ? b = [] : b = p, b.push(y));
3536
+ const F = p == null ? void 0 : p.indexOf(_);
3537
+ Array.isArray(p) && F >= 0 ? (y = p, y.splice(F, 1)) : (!p || p.length === 0 ? y = [] : y = p, y.push(_));
3541
3538
  } else
3542
- b = g === y ? void 0 : y;
3543
- e.onChange(b);
3539
+ y = g === _ ? void 0 : _;
3540
+ e.onChange(y);
3544
3541
  };
3545
3542
  return /* @__PURE__ */ a.jsx(
3546
3543
  Ea,
@@ -3548,14 +3545,14 @@ const Bi = ({
3548
3545
  element: "li",
3549
3546
  id: E,
3550
3547
  type: l === "checkboxes" ? "checkbox" : "radio",
3551
- shownValue: y,
3552
- value: i ? p == null ? void 0 : p.includes(y) : g === y,
3548
+ shownValue: _,
3549
+ value: i ? p == null ? void 0 : p.includes(_) : g === _,
3553
3550
  functions: {
3554
3551
  ...e,
3555
3552
  onChange: w
3556
3553
  },
3557
3554
  intlPath: n,
3558
- label: _ || m.formatMessage({
3555
+ label: b || m.formatMessage({
3559
3556
  id: n ? `${n}_${v}` : v
3560
3557
  }),
3561
3558
  disabled: x
@@ -3624,7 +3621,7 @@ const Je = {
3624
3621
  }) => {
3625
3622
  const f = H(), m = d && d.some(({ condition: w }) => w === "required"), p = (l == null ? void 0 : l.toString().length) || 0, g = c && Je[c] && Je[c].component ? Je[c].component : gt, v = {};
3626
3623
  c && ["checkboxes"].includes(c) ? v.element = "span" : v.htmlFor = t;
3627
- let _ = {
3624
+ let b = {
3628
3625
  ...u,
3629
3626
  id: t,
3630
3627
  name: t,
@@ -3635,10 +3632,10 @@ const Je = {
3635
3632
  functions: pt(s),
3636
3633
  value: l
3637
3634
  };
3638
- i > 0 && (_["data-character-limit"] = i, _.functions && (_.functions.onChange = (w) => {
3635
+ i > 0 && (b["data-character-limit"] = i, b.functions && (b.functions.onChange = (w) => {
3639
3636
  ((w == null ? void 0 : w.toString().length) || 0) > i && (w = w == null ? void 0 : w.toString().slice(0, i)), s.onChange(w);
3640
- })), c && Je[c] && Je[c].props && (_ = { ..._, ...Je[c].props }), c && ["checkboxes"].includes(c) && (_.intlPath = `${e}_${t}`), r && (_["aria-invalid"] = !0, _["aria-describedby"] = `error-${t}`);
3641
- const y = u.label || f.formatMessage({ id: e ? `${e}_${t}` : t }), x = ({ ...w }) => r ? Y.createElement(
3637
+ })), c && Je[c] && Je[c].props && (b = { ...b, ...Je[c].props }), c && ["checkboxes"].includes(c) && (b.intlPath = `${e}_${t}`), r && (b["aria-invalid"] = !0, b["aria-describedby"] = `error-${t}`);
3638
+ const _ = u.label || f.formatMessage({ id: e ? `${e}_${t}` : t }), x = ({ ...w }) => r ? Y.createElement(
3642
3639
  w.as || "dd",
3643
3640
  {
3644
3641
  id: `error-${t}`,
@@ -3654,8 +3651,8 @@ const Je = {
3654
3651
  /* @__PURE__ */ a.jsx(
3655
3652
  g,
3656
3653
  {
3657
- ..._,
3658
- label: y,
3654
+ ...b,
3655
+ label: _,
3659
3656
  className: S("field-wrapper", n)
3660
3657
  }
3661
3658
  ),
@@ -3668,7 +3665,7 @@ const Je = {
3668
3665
  });
3669
3666
  return /* @__PURE__ */ a.jsxs("dl", { className: S("field-wrapper text-medium", n), children: [
3670
3667
  /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(E, { ...v, children: [
3671
- y,
3668
+ _,
3672
3669
  m && o && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3673
3670
  " ",
3674
3671
  /* @__PURE__ */ a.jsxs("small", { children: [
@@ -3679,7 +3676,7 @@ const Je = {
3679
3676
  ] })
3680
3677
  ] }) }),
3681
3678
  /* @__PURE__ */ a.jsxs("dd", { children: [
3682
- /* @__PURE__ */ a.jsx(g, { ..._ }),
3679
+ /* @__PURE__ */ a.jsx(g, { ...b }),
3683
3680
  i > 0 ? /* @__PURE__ */ a.jsxs(
3684
3681
  "small",
3685
3682
  {
@@ -3740,36 +3737,36 @@ const Je = {
3740
3737
  if (m.validation)
3741
3738
  for (let p = 0; p < m.validation.length; p++) {
3742
3739
  const { condition: g = "required", error: v = !1 } = m.validation[p];
3743
- let _ = !1;
3740
+ let b = !1;
3744
3741
  if (typeof g == "function") {
3745
- const y = g(i);
3746
- y && (_ = v || y);
3742
+ const _ = g(i);
3743
+ _ && (b = v || _);
3747
3744
  } else {
3748
- const y = i[m.id];
3745
+ const _ = i[m.id];
3749
3746
  switch (g) {
3750
3747
  case "required":
3751
- (!y || typeof y == "string" && y.trim().length === 0) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_required" })));
3748
+ (!_ || typeof _ == "string" && _.trim().length === 0) && (b = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_required" })));
3752
3749
  break;
3753
3750
  case "no-numbers": {
3754
- y && !/^([^0-9]*)$/.test(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_numbers" })));
3751
+ _ && !/^([^0-9]*)$/.test(_) && (b = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_numbers" })));
3755
3752
  break;
3756
3753
  }
3757
3754
  case "valid-email": {
3758
- y && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_email" })));
3755
+ _ && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(_) && (b = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_email" })));
3759
3756
  break;
3760
3757
  }
3761
3758
  case "valid-url": {
3762
- y && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_url" })));
3759
+ _ && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(_) && (b = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_url" })));
3763
3760
  break;
3764
3761
  }
3765
3762
  default:
3766
3763
  console.warn("WARNING! No field validation condition has been set");
3767
3764
  }
3768
3765
  }
3769
- if (_) {
3766
+ if (b) {
3770
3767
  c({
3771
3768
  type: "addError",
3772
- payload: { key: m.id, value: _ }
3769
+ payload: { key: m.id, value: b }
3773
3770
  }), f.push(m.id);
3774
3771
  break;
3775
3772
  }
@@ -3835,11 +3832,11 @@ const rn = ({
3835
3832
  },
3836
3833
  ...p
3837
3834
  }) => {
3838
- const { customOnSubmit: g, hideButton: v, ..._ } = i, y = 40, {
3835
+ const { customOnSubmit: g, hideButton: v, ...b } = i, _ = 40, {
3839
3836
  shouldShowCancelButton: x = !1,
3840
3837
  shouldReset: E = !0,
3841
3838
  showRequiredLabels: w = !0,
3842
- showSuccessMessage: b = !1
3839
+ showSuccessMessage: y = !1
3843
3840
  } = c || {}, F = H(), R = {};
3844
3841
  t.length && t.forEach((z) => {
3845
3842
  const K = z.id || z.name;
@@ -3883,7 +3880,7 @@ const rn = ({
3883
3880
  i.text || (i.text = F.formatMessage({ id: "form_submit" }));
3884
3881
  const Z = [
3885
3882
  {
3886
- ..._,
3883
+ ...b,
3887
3884
  icon: k ? { icon: "tick", position: "left" } : !1,
3888
3885
  className: "gtm-trackable",
3889
3886
  onClick: (z) => {
@@ -3896,7 +3893,7 @@ const rn = ({
3896
3893
  q && (K = q.getBoundingClientRect().top + window.scrollY);
3897
3894
  }
3898
3895
  const T = document.getElementById("header");
3899
- if (T && (K = K - T.offsetHeight - y), K < 0 && (K = 0), window.scrollTo({ top: K, behavior: "smooth" }), B({ type: "toggleSubmitting" }), i.disabled) {
3896
+ if (T && (K = K - T.offsetHeight - _), K < 0 && (K = 0), window.scrollTo({ top: K, behavior: "smooth" }), B({ type: "toggleSubmitting" }), i.disabled) {
3900
3897
  typeof i.disabled == "object" && i.disabled.isClickable && B({
3901
3898
  type: "submitForm",
3902
3899
  payload: {
@@ -4005,7 +4002,7 @@ const rn = ({
4005
4002
  ]
4006
4003
  }
4007
4004
  ),
4008
- b && k && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof b == "string" ? b : F.formatMessage({ id: "form_success" }) })
4005
+ y && k && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof y == "string" ? y : F.formatMessage({ id: "form_success" }) })
4009
4006
  ] });
4010
4007
  };
4011
4008
  const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
@@ -4065,15 +4062,15 @@ const Vl = ({
4065
4062
  disabled: !0
4066
4063
  }), u = async () => {
4067
4064
  try {
4068
- const y = await n();
4065
+ const _ = await n();
4069
4066
  l((x) => ({
4070
4067
  ...x,
4071
4068
  setUp: !0,
4072
- id: y && y.id,
4069
+ id: _ && _.id,
4073
4070
  disabled: !1
4074
4071
  }));
4075
- } catch (y) {
4076
- l((x) => ({ ...x, setUp: !0, disabled: !0 })), s(y);
4072
+ } catch (_) {
4073
+ l((x) => ({ ...x, setUp: !0, disabled: !0 })), s(_);
4077
4074
  }
4078
4075
  };
4079
4076
  if (ae(() => {
@@ -4086,10 +4083,10 @@ const Vl = ({
4086
4083
  high: c.formatMessage({ id: `${g}high` }),
4087
4084
  success: c.formatMessage({ id: `${g}success` }),
4088
4085
  ...t
4089
- }, _ = async (y) => {
4086
+ }, b = async (_) => {
4090
4087
  if (!(!f || p))
4091
4088
  try {
4092
- l((x) => ({ ...x, rating: y, disabled: !0 })), await r({ id: f, value: y });
4089
+ l((x) => ({ ...x, rating: _, disabled: !0 })), await r({ id: f, value: _ });
4093
4090
  } catch (x) {
4094
4091
  l((E) => ({ ...E, rating: null })), s(x);
4095
4092
  } finally {
@@ -4098,8 +4095,8 @@ const Vl = ({
4098
4095
  };
4099
4096
  return /* @__PURE__ */ a.jsxs("div", { className: S("rating", i), children: [
4100
4097
  /* @__PURE__ */ a.jsx("span", { className: "label", children: v[m ? "success" : "text"] }),
4101
- /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(e).keys()).map((y) => {
4102
- const x = y + 1;
4098
+ /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(e).keys()).map((_) => {
4099
+ const x = _ + 1;
4103
4100
  return /* @__PURE__ */ a.jsx(
4104
4101
  "li",
4105
4102
  {
@@ -4119,7 +4116,7 @@ const Vl = ({
4119
4116
  { number: x, total: e }
4120
4117
  )}${x === 1 || x === e ? ` - ${v[x === 1 ? "low" : "high"]}` : ""}`,
4121
4118
  onClick: (E) => {
4122
- E.preventDefault(), E.stopPropagation(), _(x);
4119
+ E.preventDefault(), E.stopPropagation(), b(x);
4123
4120
  },
4124
4121
  disabled: p
4125
4122
  }
@@ -4301,18 +4298,18 @@ const Yi = ({
4301
4298
  initialFormStatus: l = "NOT_SUBMITTED"
4302
4299
  /* NOT_SUBMITTED */
4303
4300
  }) => {
4304
- const [u, f] = X([]), [m, p] = X(!0), [g, v] = X(l), { formatMessage: _ } = H(), y = async (w) => {
4301
+ const [u, f] = X([]), [m, p] = X(!0), [g, v] = X(l), { formatMessage: b } = H(), _ = async (w) => {
4305
4302
  w.preventDefault();
4306
4303
  try {
4307
4304
  await d(u), f([]), v(
4308
4305
  "SUCCESS"
4309
4306
  /* SUCCESS */
4310
4307
  );
4311
- } catch (b) {
4308
+ } catch (y) {
4312
4309
  v(
4313
4310
  "ERROR"
4314
4311
  /* ERROR */
4315
- ), c(b);
4312
+ ), c(y);
4316
4313
  }
4317
4314
  }, x = (w) => {
4318
4315
  w.preventDefault(), v(
@@ -4326,20 +4323,20 @@ const Yi = ({
4326
4323
  );
4327
4324
  };
4328
4325
  return g === "CLOSED" ? null : g === "ERROR" || g === "SUCCESS" ? /* @__PURE__ */ a.jsxs("div", { className: "invite-form-wrapper", children: [
4329
- /* @__PURE__ */ a.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsx("h2", { className: "success-title", children: _({ id: "inviteForm_success" }) }) : /* @__PURE__ */ a.jsxs("h2", { className: "error-title", children: [
4326
+ /* @__PURE__ */ a.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsx("h2", { className: "success-title", children: b({ id: "inviteForm_success" }) }) : /* @__PURE__ */ a.jsxs("h2", { className: "error-title", children: [
4330
4327
  " ",
4331
- _({ id: "inviteForm_error" })
4328
+ b({ id: "inviteForm_error" })
4332
4329
  ] }) }),
4333
4330
  /* @__PURE__ */ a.jsx(Oe, {}),
4334
4331
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4335
- /* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: x, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
4336
- /* @__PURE__ */ a.jsx(se, { onClick: E, children: _({ id: "inviteForm_ctaDone" }) })
4337
- ] }) : /* @__PURE__ */ a.jsx(se, { onClick: x, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
4332
+ /* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: x, children: b({ id: "inviteForm_ctaSendMoreInvites" }) }),
4333
+ /* @__PURE__ */ a.jsx(se, { onClick: E, children: b({ id: "inviteForm_ctaDone" }) })
4334
+ ] }) : /* @__PURE__ */ a.jsx(se, { onClick: x, children: b({ id: "inviteForm_ctaTryAgain" }) }) })
4338
4335
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
4339
4336
  "form",
4340
4337
  {
4341
4338
  style: { backgroundColor: i },
4342
- onSubmit: y,
4339
+ onSubmit: _,
4343
4340
  className: S("invite-form gtm-trackable"),
4344
4341
  children: [
4345
4342
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
@@ -4350,13 +4347,13 @@ const Yi = ({
4350
4347
  {
4351
4348
  id: "email-input",
4352
4349
  inputClassName: "email-input input",
4353
- placeholder: _({ id: "inviteForm_email_placeholder" }),
4350
+ placeholder: b({ id: "inviteForm_email_placeholder" }),
4354
4351
  emails: u,
4355
4352
  onChange: (w) => {
4356
4353
  f(w), p(!w.length);
4357
4354
  },
4358
4355
  autoFocus: !1,
4359
- getLabel: (w, b, F) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
4356
+ getLabel: (w, y, F) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
4360
4357
  /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: w }),
4361
4358
  /* @__PURE__ */ a.jsx(
4362
4359
  se,
@@ -4365,13 +4362,13 @@ const Yi = ({
4365
4362
  size: "small",
4366
4363
  icon: { icon: "close" },
4367
4364
  onClick: () => {
4368
- F(b), p(!u.length);
4365
+ F(y), p(!u.length);
4369
4366
  },
4370
4367
  className: "remove-email-button",
4371
- screenreaderText: _({ id: "overlay_close" })
4368
+ screenreaderText: b({ id: "overlay_close" })
4372
4369
  }
4373
4370
  )
4374
- ] }, b)
4371
+ ] }, y)
4375
4372
  }
4376
4373
  )
4377
4374
  ] }),
@@ -4814,12 +4811,12 @@ const eo = {
4814
4811
  url: f,
4815
4812
  logInButton: m,
4816
4813
  successMessage: p
4817
- }, [v, _] = Yn(ma, eo), {
4818
- validFields: y,
4814
+ }, [v, b] = Yn(ma, eo), {
4815
+ validFields: _,
4819
4816
  emailDetails: x,
4820
4817
  shouldManuallyApprove: E,
4821
4818
  shouldDisableButton: w,
4822
- showSuccessMessage: b,
4819
+ showSuccessMessage: y,
4823
4820
  showError: F
4824
4821
  } = v, [R, Q] = oa([
4825
4822
  "signup-this-session",
@@ -4836,13 +4833,13 @@ const eo = {
4836
4833
  ae(() => {
4837
4834
  E === !0 && B.jobTitle.current && B.jobTitle.current.focus();
4838
4835
  }, [E]), ae(() => {
4839
- R["signup-this-session"] && _([{ type: "showSuccessMessage", value: !0 }]);
4836
+ R["signup-this-session"] && b([{ type: "showSuccessMessage", value: !0 }]);
4840
4837
  }, [R]), ae(() => {
4841
- b && R["functional-cookie-consent"] && Q("signup-this-session", "true", {
4838
+ y && R["functional-cookie-consent"] && Q("signup-this-session", "true", {
4842
4839
  path: "/",
4843
4840
  maxAge: 3600
4844
4841
  });
4845
- }, [b]);
4842
+ }, [y]);
4846
4843
  const $ = wt(() => Ji({
4847
4844
  placeholders: n,
4848
4845
  labels: e,
@@ -4850,11 +4847,11 @@ const eo = {
4850
4847
  functions: r,
4851
4848
  refs: B,
4852
4849
  state: v,
4853
- dispatch: _,
4850
+ dispatch: b,
4854
4851
  dataToSubmit: o,
4855
4852
  intl: d
4856
- }), [o, r, d, B, g, v]), C = w ? !0 : E ? !Object.values(y).every((k) => k === !0) : !y.name || !y.email || ["exists", "pending", "verify"].includes(x.boxType);
4857
- return g.successMessage && b ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
4853
+ }), [o, r, d, B, g, v]), C = w ? !0 : E ? !Object.values(_).every((k) => k === !0) : !_.name || !_.email || ["exists", "pending", "verify"].includes(x.boxType);
4854
+ return g.successMessage && y ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
4858
4855
  "fieldset",
4859
4856
  {
4860
4857
  className: S("signup-form-fieldset", t),
@@ -4910,12 +4907,12 @@ const eo = {
4910
4907
  dataToSubmit: o,
4911
4908
  createAccount: r.createAccount,
4912
4909
  onSuccess: r.onSuccess,
4913
- dispatch: _,
4910
+ dispatch: b,
4914
4911
  state: v
4915
4912
  });
4916
4913
  },
4917
4914
  onCatch: (k) => {
4918
- r.handleError(k), _([
4915
+ r.handleError(k), b([
4919
4916
  { type: "showSuccessMessage", value: !1 },
4920
4917
  { type: "showError", value: !0 }
4921
4918
  ]);
@@ -4942,28 +4939,28 @@ function to() {
4942
4939
  if (Rr)
4943
4940
  return ue;
4944
4941
  Rr = 1;
4945
- 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, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = 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, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
4946
- function E(b) {
4947
- if (typeof b == "object" && b !== null) {
4948
- var F = b.$$typeof;
4942
+ 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, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = 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, v = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
4943
+ function E(y) {
4944
+ if (typeof y == "object" && y !== null) {
4945
+ var F = y.$$typeof;
4949
4946
  switch (F) {
4950
4947
  case e:
4951
- switch (b = b.type, b) {
4948
+ switch (y = y.type, y) {
4952
4949
  case d:
4953
4950
  case l:
4954
4951
  case r:
4955
4952
  case i:
4956
4953
  case s:
4957
4954
  case f:
4958
- return b;
4955
+ return y;
4959
4956
  default:
4960
- switch (b = b && b.$$typeof, b) {
4957
+ switch (y = y && y.$$typeof, y) {
4961
4958
  case c:
4962
4959
  case u:
4963
4960
  case g:
4964
4961
  case p:
4965
4962
  case o:
4966
- return b;
4963
+ return y;
4967
4964
  default:
4968
4965
  return F;
4969
4966
  }
@@ -4973,35 +4970,35 @@ function to() {
4973
4970
  }
4974
4971
  }
4975
4972
  }
4976
- function w(b) {
4977
- return E(b) === l;
4973
+ function w(y) {
4974
+ return E(y) === l;
4978
4975
  }
4979
- return ue.AsyncMode = d, 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 = i, ue.StrictMode = s, ue.Suspense = f, ue.isAsyncMode = function(b) {
4980
- return w(b) || E(b) === d;
4981
- }, ue.isConcurrentMode = w, ue.isContextConsumer = function(b) {
4982
- return E(b) === c;
4983
- }, ue.isContextProvider = function(b) {
4984
- return E(b) === o;
4985
- }, ue.isElement = function(b) {
4986
- return typeof b == "object" && b !== null && b.$$typeof === e;
4987
- }, ue.isForwardRef = function(b) {
4988
- return E(b) === u;
4989
- }, ue.isFragment = function(b) {
4990
- return E(b) === r;
4991
- }, ue.isLazy = function(b) {
4992
- return E(b) === g;
4993
- }, ue.isMemo = function(b) {
4994
- return E(b) === p;
4995
- }, ue.isPortal = function(b) {
4996
- return E(b) === n;
4997
- }, ue.isProfiler = function(b) {
4998
- return E(b) === i;
4999
- }, ue.isStrictMode = function(b) {
5000
- return E(b) === s;
5001
- }, ue.isSuspense = function(b) {
5002
- return E(b) === f;
5003
- }, ue.isValidElementType = function(b) {
5004
- return typeof b == "string" || typeof b == "function" || b === r || b === l || b === i || b === s || b === f || b === m || typeof b == "object" && b !== null && (b.$$typeof === g || b.$$typeof === p || b.$$typeof === o || b.$$typeof === c || b.$$typeof === u || b.$$typeof === _ || b.$$typeof === y || b.$$typeof === x || b.$$typeof === v);
4976
+ return ue.AsyncMode = d, 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 = i, ue.StrictMode = s, ue.Suspense = f, ue.isAsyncMode = function(y) {
4977
+ return w(y) || E(y) === d;
4978
+ }, ue.isConcurrentMode = w, ue.isContextConsumer = function(y) {
4979
+ return E(y) === c;
4980
+ }, ue.isContextProvider = function(y) {
4981
+ return E(y) === o;
4982
+ }, ue.isElement = function(y) {
4983
+ return typeof y == "object" && y !== null && y.$$typeof === e;
4984
+ }, ue.isForwardRef = function(y) {
4985
+ return E(y) === u;
4986
+ }, ue.isFragment = function(y) {
4987
+ return E(y) === r;
4988
+ }, ue.isLazy = function(y) {
4989
+ return E(y) === g;
4990
+ }, ue.isMemo = function(y) {
4991
+ return E(y) === p;
4992
+ }, ue.isPortal = function(y) {
4993
+ return E(y) === n;
4994
+ }, ue.isProfiler = function(y) {
4995
+ return E(y) === i;
4996
+ }, ue.isStrictMode = function(y) {
4997
+ return E(y) === s;
4998
+ }, ue.isSuspense = function(y) {
4999
+ return E(y) === f;
5000
+ }, ue.isValidElementType = function(y) {
5001
+ return typeof y == "string" || typeof y == "function" || y === r || y === l || y === i || y === s || y === f || y === m || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === p || y.$$typeof === o || y.$$typeof === c || y.$$typeof === u || y.$$typeof === b || y.$$typeof === _ || y.$$typeof === x || y.$$typeof === v);
5005
5002
  }, ue.typeOf = E, ue;
5006
5003
  }
5007
5004
  var de = {};
@@ -5016,10 +5013,10 @@ var de = {};
5016
5013
  var Fr;
5017
5014
  function no() {
5018
5015
  return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
5019
- 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, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = 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, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
5016
+ 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, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = 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, v = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
5020
5017
  function E(D) {
5021
5018
  return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
5022
- D === r || D === l || D === i || D === s || D === f || D === m || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === u || D.$$typeof === _ || D.$$typeof === y || D.$$typeof === x || D.$$typeof === v);
5019
+ D === r || D === l || D === i || D === s || D === f || D === m || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === u || D.$$typeof === b || D.$$typeof === _ || D.$$typeof === x || D.$$typeof === v);
5023
5020
  }
5024
5021
  function w(D) {
5025
5022
  if (typeof D == "object" && D !== null) {
@@ -5053,7 +5050,7 @@ function no() {
5053
5050
  }
5054
5051
  }
5055
5052
  }
5056
- var b = d, F = l, R = c, Q = o, B = e, $ = u, C = r, k = g, j = p, N = n, A = i, W = s, Z = f, z = !1;
5053
+ var y = d, F = l, R = c, Q = o, B = e, $ = u, C = r, k = g, j = p, N = n, A = i, W = s, Z = f, z = !1;
5057
5054
  function K(D) {
5058
5055
  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.")), T(D) || w(D) === d;
5059
5056
  }
@@ -5093,7 +5090,7 @@ function no() {
5093
5090
  function oe(D) {
5094
5091
  return w(D) === f;
5095
5092
  }
5096
- de.AsyncMode = b, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = N, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = E, de.typeOf = w;
5093
+ de.AsyncMode = y, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = N, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = E, de.typeOf = w;
5097
5094
  }()), de;
5098
5095
  }
5099
5096
  var Or;
@@ -5240,18 +5237,18 @@ function so() {
5240
5237
  return P;
5241
5238
  }
5242
5239
  var m = "<<anonymous>>", p = {
5243
- array: y("array"),
5244
- bigint: y("bigint"),
5245
- bool: y("boolean"),
5246
- func: y("function"),
5247
- number: y("number"),
5248
- object: y("object"),
5249
- string: y("string"),
5250
- symbol: y("symbol"),
5240
+ array: _("array"),
5241
+ bigint: _("bigint"),
5242
+ bool: _("boolean"),
5243
+ func: _("function"),
5244
+ number: _("number"),
5245
+ object: _("object"),
5246
+ string: _("string"),
5247
+ symbol: _("symbol"),
5251
5248
  any: x(),
5252
5249
  arrayOf: E,
5253
5250
  element: w(),
5254
- elementType: b(),
5251
+ elementType: y(),
5255
5252
  instanceOf: F,
5256
5253
  node: $(),
5257
5254
  objectOf: Q,
@@ -5267,7 +5264,7 @@ function so() {
5267
5264
  this.message = T, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
5268
5265
  }
5269
5266
  v.prototype = Error.prototype;
5270
- function _(T) {
5267
+ function b(T) {
5271
5268
  if (process.env.NODE_ENV !== "production")
5272
5269
  var P = {}, q = 0;
5273
5270
  function L(te, G, V, ee, re, O, oe) {
@@ -5290,7 +5287,7 @@ function so() {
5290
5287
  var U = L.bind(null, !1);
5291
5288
  return U.isRequired = L.bind(null, !0), U;
5292
5289
  }
5293
- function y(T) {
5290
+ function _(T) {
5294
5291
  function P(q, L, U, te, G, V) {
5295
5292
  var ee = q[L], re = W(ee);
5296
5293
  if (re !== T) {
@@ -5302,10 +5299,10 @@ function so() {
5302
5299
  }
5303
5300
  return null;
5304
5301
  }
5305
- return _(P);
5302
+ return b(P);
5306
5303
  }
5307
5304
  function x() {
5308
- return _(o);
5305
+ return b(o);
5309
5306
  }
5310
5307
  function E(T) {
5311
5308
  function P(q, L, U, te, G) {
@@ -5323,7 +5320,7 @@ function so() {
5323
5320
  }
5324
5321
  return null;
5325
5322
  }
5326
- return _(P);
5323
+ return b(P);
5327
5324
  }
5328
5325
  function w() {
5329
5326
  function T(P, q, L, U, te) {
@@ -5334,9 +5331,9 @@ function so() {
5334
5331
  }
5335
5332
  return null;
5336
5333
  }
5337
- return _(T);
5334
+ return b(T);
5338
5335
  }
5339
- function b() {
5336
+ function y() {
5340
5337
  function T(P, q, L, U, te) {
5341
5338
  var G = P[q];
5342
5339
  if (!t.isValidElementType(G)) {
@@ -5345,7 +5342,7 @@ function so() {
5345
5342
  }
5346
5343
  return null;
5347
5344
  }
5348
- return _(T);
5345
+ return b(T);
5349
5346
  }
5350
5347
  function F(T) {
5351
5348
  function P(q, L, U, te, G) {
@@ -5355,7 +5352,7 @@ function so() {
5355
5352
  }
5356
5353
  return null;
5357
5354
  }
5358
- return _(P);
5355
+ return b(P);
5359
5356
  }
5360
5357
  function R(T) {
5361
5358
  if (!Array.isArray(T))
@@ -5372,7 +5369,7 @@ function so() {
5372
5369
  });
5373
5370
  return new v("Invalid " + te + " `" + G + "` of value `" + String(V) + "` " + ("supplied to `" + U + "`, expected one of " + re + "."));
5374
5371
  }
5375
- return _(P);
5372
+ return b(P);
5376
5373
  }
5377
5374
  function Q(T) {
5378
5375
  function P(q, L, U, te, G) {
@@ -5389,7 +5386,7 @@ function so() {
5389
5386
  }
5390
5387
  return null;
5391
5388
  }
5392
- return _(P);
5389
+ return b(P);
5393
5390
  }
5394
5391
  function B(T) {
5395
5392
  if (!Array.isArray(T))
@@ -5411,13 +5408,13 @@ function so() {
5411
5408
  var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
5412
5409
  return new v("Invalid " + V + " `" + ee + "` supplied to " + ("`" + G + "`" + ve + "."));
5413
5410
  }
5414
- return _(L);
5411
+ return b(L);
5415
5412
  }
5416
5413
  function $() {
5417
5414
  function T(P, q, L, U, te) {
5418
5415
  return N(P[q]) ? null : new v("Invalid " + U + " `" + te + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
5419
5416
  }
5420
- return _(T);
5417
+ return b(T);
5421
5418
  }
5422
5419
  function C(T, P, q, L, U) {
5423
5420
  return new v(
@@ -5439,7 +5436,7 @@ function so() {
5439
5436
  }
5440
5437
  return null;
5441
5438
  }
5442
- return _(P);
5439
+ return b(P);
5443
5440
  }
5444
5441
  function j(T) {
5445
5442
  function P(q, L, U, te, G) {
@@ -5462,7 +5459,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
5462
5459
  }
5463
5460
  return null;
5464
5461
  }
5465
- return _(P);
5462
+ return b(P);
5466
5463
  }
5467
5464
  function N(T) {
5468
5465
  switch (typeof T) {
@@ -6038,7 +6035,7 @@ var Zr = {
6038
6035
  }, v = function(k) {
6039
6036
  var j = u("setReturnFocus", k);
6040
6037
  return j || (j === !1 ? !1 : k);
6041
- }, _ = function(k) {
6038
+ }, b = function(k) {
6042
6039
  var j = k.target, N = k.event, A = k.isBackward, W = A === void 0 ? !1 : A;
6043
6040
  j = j || Mt(N), m();
6044
6041
  var Z = null;
@@ -6070,7 +6067,7 @@ var Zr = {
6070
6067
  } else
6071
6068
  Z = u("fallbackFocus");
6072
6069
  return Z;
6073
- }, y = function(k) {
6070
+ }, _ = function(k) {
6074
6071
  var j = Mt(k);
6075
6072
  if (!(l(j, k) >= 0)) {
6076
6073
  if (lt(i.clickOutsideDeactivates, k)) {
@@ -6111,7 +6108,7 @@ var Zr = {
6111
6108
  }) || (W = !1);
6112
6109
  else
6113
6110
  W = !1;
6114
- W && (A = _({
6111
+ W && (A = b({
6115
6112
  // move FROM the MRU node, not event-related node (which will be the node that is
6116
6113
  // outside the trap causing the focus escape we're trying to fix)
6117
6114
  target: o.mostRecentlyFocusedNode,
@@ -6122,7 +6119,7 @@ var Zr = {
6122
6119
  }, E = function(k) {
6123
6120
  var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6124
6121
  o.recentNavEvent = k;
6125
- var N = _({
6122
+ var N = b({
6126
6123
  event: k,
6127
6124
  isBackward: j
6128
6125
  });
@@ -6133,20 +6130,20 @@ var Zr = {
6133
6130
  return;
6134
6131
  }
6135
6132
  (i.isKeyForward(k) || i.isKeyBackward(k)) && E(k, i.isKeyBackward(k));
6136
- }, b = function(k) {
6133
+ }, y = function(k) {
6137
6134
  var j = Mt(k);
6138
6135
  l(j, k) >= 0 || lt(i.clickOutsideDeactivates, k) || lt(i.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
6139
6136
  }, F = function() {
6140
6137
  if (o.active)
6141
6138
  return Zr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Hr(function() {
6142
6139
  g(f());
6143
- }) : g(f()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", y, {
6140
+ }) : g(f()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", _, {
6144
6141
  capture: !0,
6145
6142
  passive: !1
6146
- }), r.addEventListener("touchstart", y, {
6143
+ }), r.addEventListener("touchstart", _, {
6147
6144
  capture: !0,
6148
6145
  passive: !1
6149
- }), r.addEventListener("click", b, {
6146
+ }), r.addEventListener("click", y, {
6150
6147
  capture: !0,
6151
6148
  passive: !1
6152
6149
  }), r.addEventListener("keydown", w, {
@@ -6155,7 +6152,7 @@ var Zr = {
6155
6152
  }), c;
6156
6153
  }, R = function() {
6157
6154
  if (o.active)
6158
- return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", y, !0), r.removeEventListener("touchstart", y, !0), r.removeEventListener("click", b, !0), r.removeEventListener("keydown", w, !0), c;
6155
+ return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", _, !0), r.removeEventListener("touchstart", _, !0), r.removeEventListener("click", y, !0), r.removeEventListener("keydown", w, !0), c;
6159
6156
  }, Q = function(k) {
6160
6157
  var j = k.some(function(N) {
6161
6158
  var A = Array.from(N.removedNodes);
@@ -6587,18 +6584,18 @@ const an = ({
6587
6584
  gtmContext: f = "Modal"
6588
6585
  }) => {
6589
6586
  const m = H(), [p, g] = X(e), v = (x) => {
6590
- x.key === "Escape" && _(!1);
6587
+ x.key === "Escape" && b(!1);
6591
6588
  };
6592
6589
  ae(() => (window.addEventListener("keyup", v), () => {
6593
6590
  window.removeEventListener("keyup", v);
6594
6591
  }));
6595
- const _ = (x) => {
6592
+ const b = (x) => {
6596
6593
  g(x), x ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
6597
6594
  };
6598
6595
  ae(() => {
6599
- _(e);
6596
+ b(e);
6600
6597
  }, [e]);
6601
- const y = r ? { "--max-width": `${r / 16}rem` } : {};
6598
+ const _ = r ? { "--max-width": `${r / 16}rem` } : {};
6602
6599
  return /* @__PURE__ */ a.jsx("div", { className: S("overlay", { open: p }), role: "dialog", children: /* @__PURE__ */ a.jsx(
6603
6600
  qa,
6604
6601
  {
@@ -6607,7 +6604,7 @@ const an = ({
6607
6604
  "has-max-width": r
6608
6605
  }),
6609
6606
  hidden: !p,
6610
- style: y,
6607
+ style: _,
6611
6608
  children: e && /* @__PURE__ */ a.jsx(Jo, { children: /* @__PURE__ */ a.jsxs("div", { className: "overlay-content", children: [
6612
6609
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
6613
6610
  c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
@@ -6617,7 +6614,7 @@ const an = ({
6617
6614
  variant: "tertiary",
6618
6615
  size: "medium",
6619
6616
  icon: { icon: "close" },
6620
- onClick: () => _(!1),
6617
+ onClick: () => b(!1),
6621
6618
  className: "gtm-trackable",
6622
6619
  "data-gtm-event-type": "close-modal-click",
6623
6620
  "data-gtm-event-context": f,
@@ -6838,13 +6835,13 @@ const Xl = ({ members: t }) => {
6838
6835
  gtmEvent: "learning-hub"
6839
6836
  }
6840
6837
  }, tc = ({ data: t, cta: e, link: n, gtmContext: r }) => {
6841
- var v, _;
6838
+ var v;
6842
6839
  const s = H(), [i, o] = X({
6843
6840
  loading: !1,
6844
6841
  registered: t.registered || !1
6845
6842
  });
6846
6843
  ae(() => {
6847
- t.registered && o((y) => ({ ...y, registered: !0 }));
6844
+ t.registered && o((b) => ({ ...b, registered: !0 }));
6848
6845
  }, [t.registered]);
6849
6846
  const { customLinkText: c, startDate: d, dateHasPassed: l, pill: u, slug: f } = t, m = t.contentType;
6850
6847
  let p = "";
@@ -6872,32 +6869,32 @@ const Xl = ({ members: t }) => {
6872
6869
  children: c || s.formatMessage({ id: "card_cta_people" })
6873
6870
  }
6874
6871
  ) : null;
6875
- const g = ["communityPage", "microcourse", "event"];
6872
+ const g = ["microcourse", "event"];
6876
6873
  if (e && e.onClick && g.includes(m) && u !== "premium") {
6877
- const y = i.loading || i.registered || ((_ = t == null ? void 0 : t.members) == null ? void 0 : _.isMember), x = async (E) => {
6878
- if (E.preventDefault(), E.stopPropagation(), !(y || !e || !e.onClick)) {
6879
- o((w) => ({ ...w, loading: !0 }));
6874
+ const b = i.loading || i.registered, _ = async (x) => {
6875
+ if (x.preventDefault(), x.stopPropagation(), !(b || !e || !e.onClick)) {
6876
+ o((E) => ({ ...E, loading: !0 }));
6880
6877
  try {
6881
- const w = await e.onClick(t);
6882
- o(w === "success" ? () => ({ registered: !0, loading: !1 }) : (b) => ({ ...b, loading: !1 }));
6878
+ const E = await e.onClick(t);
6879
+ o(E === "success" ? () => ({ registered: !0, loading: !1 }) : (w) => ({ ...w, loading: !1 }));
6883
6880
  } catch {
6884
- o((b) => ({ ...b, loading: !1 }));
6881
+ o((w) => ({ ...w, loading: !1 }));
6885
6882
  }
6886
6883
  }
6887
6884
  };
6888
6885
  return /* @__PURE__ */ a.jsx("p", { className: "cta-wrapper", children: /* @__PURE__ */ a.jsx(
6889
6886
  se,
6890
6887
  {
6891
- onClick: x,
6888
+ onClick: _,
6892
6889
  className: "gtm-trackable",
6893
6890
  size: "small",
6894
6891
  styling: { fullWidth: !0 },
6895
- disabled: y,
6892
+ disabled: b,
6896
6893
  "data-gtm-event-context": `${r}Page-${m}: ${f}`,
6897
6894
  "data-gtm-event-type": `${r}-${m}-register-click`,
6898
6895
  "data-testid": "in-card-button",
6899
6896
  children: c || s.formatMessage({
6900
- id: `card_cta_${m}${y ? `_${i.loading ? "loading" : "done"}` : ""}`
6897
+ id: `card_cta_${m}${b ? `_${i.loading ? "loading" : "done"}` : ""}`
6901
6898
  })
6902
6899
  }
6903
6900
  ) });
@@ -6946,14 +6943,14 @@ const nc = {
6946
6943
  if (!v || !Kt[v])
6947
6944
  return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "card-wrapper" });
6948
6945
  const {
6949
- basePath: _ = "",
6950
- className: y,
6946
+ basePath: b = "",
6947
+ className: _,
6951
6948
  length: x,
6952
6949
  gtmEvent: E
6953
6950
  } = Kt[v];
6954
- let w = m.slug ? `${_}${m.slug}` : !1;
6951
+ let w = m.slug ? `${b}${m.slug}` : !1;
6955
6952
  m.slug && (m.slug.slice(0, 4) === "http" || m.slug.slice(0, 2) === "//" || m.slug.slice(0, 6) === "mailto" || m.slug.slice(0, 3) === "tel") && (w = m.slug);
6956
- const b = { ...nc, ...x };
6953
+ const y = { ...nc, ...x };
6957
6954
  let F = { className: "card" };
6958
6955
  return w && (F = {
6959
6956
  href: w,
@@ -6964,7 +6961,7 @@ const nc = {
6964
6961
  }, m.openInNewTab && (F.target = "_blank")), /* @__PURE__ */ a.jsx(
6965
6962
  "li",
6966
6963
  {
6967
- className: S("card-wrapper text-medium", y, i, {
6964
+ className: S("card-wrapper text-medium", _, i, {
6968
6965
  "has-link": w,
6969
6966
  "no-link": !w,
6970
6967
  "has-image": m.banner
@@ -6995,7 +6992,7 @@ const nc = {
6995
6992
  m.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
6996
6993
  m.registered && /* @__PURE__ */ a.jsx(ht, { size: "small", variant: "registered", children: c.formatMessage({ id: "card_registered" }) }),
6997
6994
  /* @__PURE__ */ a.jsx(Tt, { image: m.banner })
6998
- ] }) : y === "people" ? /* @__PURE__ */ a.jsx(
6995
+ ] }) : _ === "people" ? /* @__PURE__ */ a.jsx(
6999
6996
  Ye,
7000
6997
  {
7001
6998
  name: m.title || "",
@@ -7009,7 +7006,7 @@ const nc = {
7009
7006
  contributors: { data: m.contributors },
7010
7007
  styling: {
7011
7008
  size: "small",
7012
- showGap: y !== "question",
7009
+ showGap: _ !== "question",
7013
7010
  showText: !0
7014
7011
  },
7015
7012
  multipleText: ["event", "solutionArticle"].includes(v) ? c.formatMessage({ id: `card_contributors_${v}` }) : void 0,
@@ -7019,14 +7016,14 @@ const nc = {
7019
7016
  m.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: m.partner.length > 1 ? c.formatMessage(
7020
7017
  { id: "card_partner" },
7021
7018
  { partner: m.partner[0], number: m.partner.length - 1 }
7022
- ) : et(m.partner[0], b.partner) }),
7019
+ ) : et(m.partner[0], y.partner) }),
7023
7020
  /* Text */
7024
7021
  ["title", "text", "secondaryText"].map(($) => {
7025
7022
  const C = m[$];
7026
7023
  if (!C)
7027
7024
  return null;
7028
7025
  const k = Ws($);
7029
- return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, b[$]) }, $);
7026
+ return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, y[$]) }, $);
7030
7027
  }),
7031
7028
  (m == null ? void 0 : m.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
7032
7029
  ((R = m == null ? void 0 : m.members) == null ? void 0 : R.isMember) && /* @__PURE__ */ a.jsx(
@@ -7046,7 +7043,7 @@ const nc = {
7046
7043
  { count: m == null ? void 0 : m.members.count }
7047
7044
  ) })
7048
7045
  ] }),
7049
- /* @__PURE__ */ a.jsx(ec, { type: y || "", data: m }),
7046
+ /* @__PURE__ */ a.jsx(ec, { type: _ || "", data: m }),
7050
7047
  /* @__PURE__ */ a.jsx(tc, { data: m, cta: r, link: w || "", gtmContext: s })
7051
7048
  ] })
7052
7049
  )
@@ -7113,16 +7110,16 @@ const ic = ({
7113
7110
  }), { cardsPerPage: f, isLoading: m } = l, [p, g] = X({
7114
7111
  currentPage: 0,
7115
7112
  loadedPages: [0]
7116
- }), { currentPage: v, loadedPages: _ } = p, y = e.length, x = Math.ceil(y / f), E = pe(null), w = jt(!0, !0, E == null ? void 0 : E.current);
7113
+ }), { currentPage: v, loadedPages: b } = p, _ = e.length, x = Math.ceil(_ / f), E = pe(null), w = jt(!0, !0, E == null ? void 0 : E.current);
7117
7114
  ae(() => {
7118
7115
  let $ = 1;
7119
- w && (w >= En.fourCards ? $ = 4 : w >= En.threeCards ? $ = 3 : w >= En.twoCards && ($ = 2), $ > y && ($ = y)), u((C) => ({
7116
+ w && (w >= En.fourCards ? $ = 4 : w >= En.threeCards ? $ = 3 : w >= En.twoCards && ($ = 2), $ > _ && ($ = _)), u((C) => ({
7120
7117
  ...C,
7121
7118
  cardsPerPage: $,
7122
7119
  isLoading: !1
7123
7120
  }));
7124
- }, [w, y]);
7125
- const b = ($ = "next") => {
7121
+ }, [w, _]);
7122
+ const y = ($ = "next") => {
7126
7123
  let C = v;
7127
7124
  if (typeof $ == "string")
7128
7125
  if ($ === "next")
@@ -7139,7 +7136,7 @@ const ic = ({
7139
7136
  g((k) => ({
7140
7137
  ...k,
7141
7138
  currentPage: C,
7142
- loadedPages: [.../* @__PURE__ */ new Set([..._, C])]
7139
+ loadedPages: [.../* @__PURE__ */ new Set([...b, C])]
7143
7140
  }));
7144
7141
  }, F = ($) => {
7145
7142
  Ft = $.touches[0].clientX;
@@ -7147,10 +7144,10 @@ const ic = ({
7147
7144
  if (Ft === null)
7148
7145
  return;
7149
7146
  const C = $.touches[0].clientX, k = Ft - C;
7150
- k > 5 ? b("next") : k < -5 && b("previous"), Ft = null;
7147
+ k > 5 ? y("next") : k < -5 && y("previous"), Ft = null;
7151
7148
  }, Q = {
7152
7149
  "--width": `${w || 0}px`,
7153
- "--total-cards": y,
7150
+ "--total-cards": _,
7154
7151
  "--cards-per-page": f,
7155
7152
  "--page": v
7156
7153
  };
@@ -7179,7 +7176,7 @@ const ic = ({
7179
7176
  "data-testid": "carousel-list",
7180
7177
  children: e.map(($, C) => {
7181
7178
  let k = B($, C);
7182
- return k && ac(C, f, v, _) ? /* @__PURE__ */ a.jsx(
7179
+ return k && ac(C, f, v, b) ? /* @__PURE__ */ a.jsx(
7183
7180
  Ua,
7184
7181
  {
7185
7182
  id: k,
@@ -7209,7 +7206,7 @@ const ic = ({
7209
7206
  size: "large",
7210
7207
  icon: { icon: "chevron_left" },
7211
7208
  onClick: ($) => {
7212
- $.preventDefault(), $.stopPropagation(), b("previous");
7209
+ $.preventDefault(), $.stopPropagation(), y("previous");
7213
7210
  },
7214
7211
  screenreaderText: d.formatMessage({
7215
7212
  id: "carousel_pagination_previous"
@@ -7224,7 +7221,7 @@ const ic = ({
7224
7221
  selected: C === v
7225
7222
  }),
7226
7223
  onClick: (k) => {
7227
- k.preventDefault(), k.stopPropagation(), b(C);
7224
+ k.preventDefault(), k.stopPropagation(), y(C);
7228
7225
  },
7229
7226
  children: /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: d.formatMessage(
7230
7227
  { id: "carousel_pagination_page" },
@@ -7239,7 +7236,7 @@ const ic = ({
7239
7236
  size: "large",
7240
7237
  icon: { icon: "chevron_right" },
7241
7238
  onClick: ($) => {
7242
- $.preventDefault(), $.stopPropagation(), b("next");
7239
+ $.preventDefault(), $.stopPropagation(), y("next");
7243
7240
  },
7244
7241
  screenreaderText: d.formatMessage({ id: "carousel_pagination_next" }),
7245
7242
  disabled: v >= x - 1
@@ -7449,38 +7446,38 @@ const Ot = "languageSwitcher_", au = ({
7449
7446
  if (ae(() => {
7450
7447
  t !== f && m(t);
7451
7448
  }, [t]), !r || !Object.values(r).some(
7452
- (_) => _ && _.post_name
7449
+ (b) => b && b.post_name
7453
7450
  ))
7454
7451
  return null;
7455
7452
  const g = Object.keys(r), v = f !== t;
7456
7453
  return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, d), children: [
7457
7454
  /* @__PURE__ */ a.jsxs("nav", { children: [
7458
7455
  o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ot}label` }) }),
7459
- /* @__PURE__ */ a.jsx("ul", { children: g.map((_) => {
7456
+ /* @__PURE__ */ a.jsx("ul", { children: g.map((b) => {
7460
7457
  var E;
7461
- if (!gn[_])
7458
+ if (!gn[b])
7462
7459
  return null;
7463
- const y = (E = r[_]) == null ? void 0 : E.post_name;
7464
- let x = { className: _ };
7465
- if (f === _)
7460
+ const _ = (E = r[b]) == null ? void 0 : E.post_name;
7461
+ let x = { className: b };
7462
+ if (f === b)
7466
7463
  x["aria-label"] = l.formatMessage(
7467
7464
  { id: `${Ot}selected` },
7468
- { language: gn[_] }
7465
+ { language: gn[b] }
7469
7466
  );
7470
7467
  else {
7471
- const w = oc(_, y, i);
7468
+ const w = oc(b, _, i);
7472
7469
  x = {
7473
7470
  ...x,
7474
7471
  href: typeof w == "string" ? w : w.url,
7475
- onClick: (b) => {
7476
- m(_), u(_), typeof s < "u" && (b.preventDefault(), b.stopPropagation(), s(
7477
- _,
7472
+ onClick: (y) => {
7473
+ m(b), u(b), typeof s < "u" && (y.preventDefault(), y.stopPropagation(), s(
7474
+ b,
7478
7475
  typeof w == "string" ? w : w.urlForRouter
7479
7476
  ));
7480
7477
  }
7481
7478
  };
7482
7479
  }
7483
- return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...x, fallbackElement: "span", children: gn[_] }) }, _);
7480
+ return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...x, fallbackElement: "span", children: gn[b] }) }, b);
7484
7481
  }) }),
7485
7482
  o !== "short" && !v && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
7486
7483
  id: `${Ot}translation_${e ? "original" : n ? "human" : "machine"}`
@@ -7494,9 +7491,9 @@ const Ot = "languageSwitcher_", au = ({
7494
7491
  { id: `${Ot}disclaimer` },
7495
7492
  {
7496
7493
  email: ft.support,
7497
- link: (_) => {
7498
- const y = `mailto:${_}`;
7499
- return /* @__PURE__ */ a.jsx("a", { href: y, children: _ });
7494
+ link: (b) => {
7495
+ const _ = `mailto:${b}`;
7496
+ return /* @__PURE__ */ a.jsx("a", { href: _, children: b });
7500
7497
  }
7501
7498
  }
7502
7499
  )
@@ -7593,8 +7590,8 @@ const cc = ({
7593
7590
  /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: l, onClick: u, text: f, icon: m, ...p }, g) => {
7594
7591
  const v = {
7595
7592
  ...p,
7596
- onClick: (_) => {
7597
- c(!1), typeof u == "function" && u(_);
7593
+ onClick: (b) => {
7594
+ c(!1), typeof u == "function" && u(b);
7598
7595
  },
7599
7596
  onFocus: () => {
7600
7597
  At && (clearTimeout(At), At = !1);
@@ -7787,18 +7784,18 @@ const iu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7787
7784
  const c = [], d = [];
7788
7785
  return t.forEach(({ id: u, text: f, content: m, href: p, hasCarousel: g }, v) => {
7789
7786
  u = r(u, f, v);
7790
- const _ = i === u, y = {};
7791
- p || (y["aria-controls"] = u, y.onClick = (x) => {
7787
+ const b = i === u, _ = {};
7788
+ p || (_["aria-controls"] = u, _.onClick = (x) => {
7792
7789
  x.preventDefault(), x.stopPropagation(), o(u), !n && (window.location.hash = `#${u}`);
7793
7790
  }, d.push(
7794
7791
  /* @__PURE__ */ a.jsx(
7795
7792
  "section",
7796
7793
  {
7797
7794
  id: u,
7798
- hidden: !_,
7795
+ hidden: !b,
7799
7796
  role: "tabpanel",
7800
7797
  "aria-labelledby": `tab-${u}`,
7801
- "aria-live": _ ? "assertive" : "off",
7798
+ "aria-live": b ? "assertive" : "off",
7802
7799
  children: typeof m == "string" ? /* @__PURE__ */ a.jsx("p", { children: m }) : m
7803
7800
  },
7804
7801
  `section-${u}`
@@ -7809,10 +7806,10 @@ const iu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7809
7806
  {
7810
7807
  href: p || `#${u}`,
7811
7808
  id: `tab-${u}`,
7812
- className: S({ selected: _ }),
7809
+ className: S({ selected: b }),
7813
7810
  role: "tab",
7814
- "aria-selected": _,
7815
- ...y,
7811
+ "aria-selected": b,
7812
+ ..._,
7816
7813
  children: f
7817
7814
  }
7818
7815
  ) }, `tab-${u}`)
@@ -7829,12 +7826,21 @@ const pc = {
7829
7826
  }, hc = ({
7830
7827
  layout: t = "2-1",
7831
7828
  hideOnMobile: e = !1,
7832
- className: n = "",
7833
- children: r
7829
+ hasCSSContainers: n = !1,
7830
+ className: r = "",
7831
+ children: s
7834
7832
  }) => {
7835
- const s = jt(!0);
7836
- let i = r;
7837
- return Y.Children.count(r) === 1 && (i = Y.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: S("columns", `layout-${t}`, n), children: Y.Children.map(i, (o, c) => e !== !1 && c === e && s && s < pc[t] ? null : o) });
7833
+ const i = jt(!0);
7834
+ let o = s;
7835
+ return Y.Children.count(s) === 1 && (o = Y.Children.toArray(s)[0], o.props && (o = o.props.children)), /* @__PURE__ */ a.jsx(
7836
+ "section",
7837
+ {
7838
+ className: S("columns", `layout-${t}`, r, {
7839
+ "has-containers": n
7840
+ }),
7841
+ children: Y.Children.map(o, (c, d) => e !== !1 && d === e && i && i < pc[t] ? null : c)
7842
+ }
7843
+ );
7838
7844
  };
7839
7845
  let Nn;
7840
7846
  const Pn = "contactFooter_", ou = ({ onSuccess: t = async () => {
@@ -8331,7 +8337,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8331
8337
  });
8332
8338
  }
8333
8339
  const p = c.order && c.order[0] && c[c.order[0]], g = p && c[c.order[0]].order, v = m && window.location.pathname === c.href;
8334
- let _ = {}, y = {};
8340
+ let b = {}, _ = {};
8335
8341
  if (p) {
8336
8342
  const x = c.menuId || t, E = {
8337
8343
  onClick: (w) => fe.events.onClick(w, { id: x, callback: s, isOpen: r[x] }),
@@ -8340,7 +8346,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8340
8346
  onMouseLeave: () => fe.events.onBlur({ id: x, callback: s }),
8341
8347
  onMouseEnter: () => fe.events.onMouseEnter({ id: x, callback: s })
8342
8348
  };
8343
- n && (g && (_ = {
8349
+ n && (g && (b = {
8344
8350
  ...E,
8345
8351
  onKeyPress: (w) => {
8346
8352
  w.key === "Enter" && fe.events.onClick(w, { id: x, callback: s, isOpen: r[x] });
@@ -8350,8 +8356,8 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8350
8356
  "aria-haspopup": !0,
8351
8357
  "aria-expanded": r[x],
8352
8358
  "aria-controls": x
8353
- }), y = { hidden: x in r ? !r[x] : !0 }), g || (y = {
8354
- ...y,
8359
+ }), _ = { hidden: x in r ? !r[x] : !0 }), g || (_ = {
8360
+ ..._,
8355
8361
  ...E
8356
8362
  });
8357
8363
  }
@@ -8365,14 +8371,14 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8365
8371
  active: v
8366
8372
  }),
8367
8373
  role: "none",
8368
- ..._,
8374
+ ...b,
8369
8375
  children: [
8370
8376
  m ? Y.createElement(
8371
8377
  u ? se : "a",
8372
8378
  m,
8373
8379
  o.formatMessage({ id: f })
8374
8380
  ) : o.formatMessage({ id: f }),
8375
- c.order && /* @__PURE__ */ a.jsx("ul", { ...y, children: c.order.map((x) => {
8381
+ c.order && /* @__PURE__ */ a.jsx("ul", { ..._, children: c.order.map((x) => {
8376
8382
  if (!c[x])
8377
8383
  return null;
8378
8384
  const E = {
@@ -8622,9 +8628,9 @@ const bc = () => {
8622
8628
  ae(() => {
8623
8629
  window.scrollTo(0, 0);
8624
8630
  }, [g]);
8625
- const v = Bt(t, { locale: c }), _ = Bt(e, {
8631
+ const v = Bt(t, { locale: c }), b = Bt(e, {
8626
8632
  locale: c
8627
- }), y = Bt(n, {
8633
+ }), _ = Bt(n, {
8628
8634
  locale: c
8629
8635
  }), x = {};
8630
8636
  return u !== "default" && (x[u] = !0), f !== "default" && (x[f] = !0), m !== "default" && (x[m] = !0), /* @__PURE__ */ a.jsx(Ps, { onError: r, fallback: /* @__PURE__ */ a.jsx(bc, {}), children: /* @__PURE__ */ a.jsx(xs, { fallback: null, children: /* @__PURE__ */ a.jsxs(
@@ -8635,13 +8641,13 @@ const bc = () => {
8635
8641
  children: [
8636
8642
  /* @__PURE__ */ a.jsx(Ha, { showNavigation: d }),
8637
8643
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
8638
- _ && /* @__PURE__ */ a.jsx(
8644
+ b && /* @__PURE__ */ a.jsx(
8639
8645
  "div",
8640
8646
  {
8641
8647
  className: S("additional-content prepended", {
8642
8648
  "large-modal": p === "large"
8643
8649
  }),
8644
- children: _
8650
+ children: b
8645
8651
  }
8646
8652
  ),
8647
8653
  Y.createElement(u === "bold" ? qa : "div", {
@@ -8650,7 +8656,7 @@ const bc = () => {
8650
8656
  className: S({ "large-modal": p === "large" })
8651
8657
  })
8652
8658
  ] }),
8653
- y && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: y }),
8659
+ _ && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: _ }),
8654
8660
  l && /* @__PURE__ */ a.jsx(Za, {}),
8655
8661
  /* @__PURE__ */ a.jsx(gc, {})
8656
8662
  ]
@@ -8877,12 +8883,12 @@ const fu = ({
8877
8883
  ({
8878
8884
  completed: g,
8879
8885
  completionTime: v,
8880
- contentType: _,
8881
- icon: y,
8886
+ contentType: b,
8887
+ icon: _,
8882
8888
  image: x,
8883
8889
  isIntroduction: E,
8884
8890
  optional: w,
8885
- slug: b,
8891
+ slug: y,
8886
8892
  subsectionId: F,
8887
8893
  title: R,
8888
8894
  type: Q
@@ -8892,17 +8898,17 @@ const fu = ({
8892
8898
  "li",
8893
8899
  {
8894
8900
  className: S({
8895
- article: _ === St.ARTICLE,
8896
- discussion: _ === St.DISCUSSION,
8897
- quiz: _ === St.QUIZ,
8898
- completed: g && _ === St.ARTICLE,
8901
+ article: b === St.ARTICLE,
8902
+ discussion: b === St.DISCUSSION,
8903
+ quiz: b === St.QUIZ,
8904
+ completed: g && b === St.ARTICLE,
8899
8905
  locked: !B
8900
8906
  }),
8901
8907
  ...$,
8902
8908
  children: /* @__PURE__ */ a.jsx(
8903
8909
  at,
8904
8910
  {
8905
- href: B ? `/microcourses/en/${c}/${b}` : void 0,
8911
+ href: B ? `/microcourses/en/${c}/${y}` : void 0,
8906
8912
  fallbackElement: "span",
8907
8913
  className: "inner",
8908
8914
  gtmContext: `MicrocourseOutline${zs(R)}`,
@@ -8922,17 +8928,17 @@ const fu = ({
8922
8928
  wc,
8923
8929
  {
8924
8930
  completionTime: v,
8925
- icon: y,
8931
+ icon: _,
8926
8932
  optional: w,
8927
8933
  type: Q,
8928
- children: u && u[b] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${u[b]}%` })
8934
+ children: u && u[y] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${u[y]}%` })
8929
8935
  }
8930
8936
  )
8931
8937
  ] })
8932
8938
  }
8933
8939
  )
8934
8940
  },
8935
- b
8941
+ y
8936
8942
  );
8937
8943
  }
8938
8944
  ) })
@@ -9002,7 +9008,7 @@ const we = "discussion_form_", ar = ({
9002
9008
  var $, C, k;
9003
9009
  const u = H(), f = Ee(De), [m, p] = X(
9004
9010
  n.isEditing && n.isEditing.text || ""
9005
- ), [g, v] = X(c.error || !1), [_, y] = X(!1), x = pe(null);
9011
+ ), [g, v] = X(c.error || !1), [b, _] = X(!1), x = pe(null);
9006
9012
  if (r || (r = x), n.isLoading)
9007
9013
  return /* @__PURE__ */ a.jsx(
9008
9014
  Se,
@@ -9032,11 +9038,11 @@ const we = "discussion_form_", ar = ({
9032
9038
  const j = (($ = t.slugs) == null ? void 0 : $.reply) || ((C = t.slugs) == null ? void 0 : C.answer) || ((k = t.slugs) == null ? void 0 : k.question) || "";
9033
9039
  j && (w = `${w}-${j.slice(-15)}`);
9034
9040
  }
9035
- const b = async (j) => {
9041
+ const y = async (j) => {
9036
9042
  var A;
9037
9043
  if (j.preventDefault(), j.stopPropagation(), !f || !f.id || !e || R)
9038
9044
  return;
9039
- Dt && clearTimeout(Dt), y("submitting");
9045
+ Dt && clearTimeout(Dt), _("submitting");
9040
9046
  const N = window.location.pathname;
9041
9047
  try {
9042
9048
  let W;
@@ -9067,7 +9073,7 @@ const we = "discussion_form_", ar = ({
9067
9073
  break;
9068
9074
  }
9069
9075
  await Ks(1e3), d.callback && await d.callback(W), Dt = setTimeout(() => {
9070
- p(""), y("submitted");
9076
+ p(""), _("submitted");
9071
9077
  const Z = new Event("discussionFormSubmitted");
9072
9078
  document.dispatchEvent(Z), F();
9073
9079
  }, 500);
@@ -9088,9 +9094,9 @@ const we = "discussion_form_", ar = ({
9088
9094
  }
9089
9095
  }, F = () => {
9090
9096
  Dt = setTimeout(() => {
9091
- v(!1), y(!1);
9097
+ v(!1), _(!1);
9092
9098
  }, 5e3);
9093
- }, R = !m || !ni(m), Q = _ === "submitting", B = [];
9099
+ }, R = !m || !ni(m), Q = b === "submitting", B = [];
9094
9100
  return (n.isEditing && !Q || c.cancel) && B.push({
9095
9101
  variant: "secondary",
9096
9102
  size: { mobile: "small", 600: "medium" },
@@ -9105,12 +9111,12 @@ const we = "discussion_form_", ar = ({
9105
9111
  size: { mobile: "small", 600: "medium" },
9106
9112
  onClick: (j) => {
9107
9113
  if (n.isEditing) {
9108
- y("submitting"), d.handleSaveEdit && d.handleSaveEdit(
9114
+ _("submitting"), d.handleSaveEdit && d.handleSaveEdit(
9109
9115
  x.current && "value" in x.current ? x.current.value : ""
9110
9116
  );
9111
9117
  return;
9112
9118
  }
9113
- b(j);
9119
+ y(j);
9114
9120
  },
9115
9121
  className: "gtm-trackable",
9116
9122
  "data-gtm-event-context": l,
@@ -9152,7 +9158,7 @@ const we = "discussion_form_", ar = ({
9152
9158
  "action"
9153
9159
  ),
9154
9160
  onChange: E,
9155
- value: _ === "submitting" && !g ? "" : m,
9161
+ value: b === "submitting" && !g ? "" : m,
9156
9162
  maxLength: i,
9157
9163
  "aria-invalid": !!g,
9158
9164
  "aria-errormessage": "error-message",
@@ -9175,7 +9181,7 @@ const we = "discussion_form_", ar = ({
9175
9181
  )
9176
9182
  }) }),
9177
9183
  /* @__PURE__ */ a.jsx(kt, { buttons: B }),
9178
- _ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(u.formatMessage, `${we}success`, t.type, "action") }),
9184
+ b === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(u.formatMessage, `${we}success`, t.type, "action") }),
9179
9185
  g && /* @__PURE__ */ a.jsx(Wt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
9180
9186
  { id: g },
9181
9187
  {
@@ -9249,11 +9255,11 @@ const An = () => {
9249
9255
  ae(() => {
9250
9256
  p(s);
9251
9257
  }, [s]);
9252
- const [u, f] = X(e), [m, p] = X(s), [g, v] = X(!1), [_, y] = X(!1), x = wt(
9258
+ const [u, f] = X(e), [m, p] = X(s), [g, v] = X(!1), [b, _] = X(!1), x = wt(
9253
9259
  () => Ec(n, Dn),
9254
9260
  [n]
9255
- ), E = (b) => {
9256
- if (b.preventDefault(), b.stopPropagation(), y(!1), bt)
9261
+ ), E = (y) => {
9262
+ if (y.preventDefault(), y.stopPropagation(), _(!1), bt)
9257
9263
  return An(), !1;
9258
9264
  if (An(), g || !o)
9259
9265
  return !1;
@@ -9261,8 +9267,8 @@ const An = () => {
9261
9267
  }, w = async () => {
9262
9268
  if (An(), g || !o)
9263
9269
  return !1;
9264
- let b = m ? u - 1 : u + 1;
9265
- b < 0 && (b = 0), v(!0), f(b), p(!m);
9270
+ let y = m ? u - 1 : u + 1;
9271
+ y < 0 && (y = 0), v(!0), f(y), p(!m);
9266
9272
  try {
9267
9273
  if (i && i.slugs) {
9268
9274
  const F = Tc(i.slugs);
@@ -9285,16 +9291,16 @@ const An = () => {
9285
9291
  }),
9286
9292
  onClick: E,
9287
9293
  onMouseEnter: () => {
9288
- y(!0);
9294
+ _(!0);
9289
9295
  },
9290
9296
  onMouseLeave: () => {
9291
- y(!1);
9297
+ _(!1);
9292
9298
  },
9293
9299
  onFocus: () => {
9294
- y(!0);
9300
+ _(!0);
9295
9301
  },
9296
9302
  onBlur: () => {
9297
- y(!1);
9303
+ _(!1);
9298
9304
  },
9299
9305
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
9300
9306
  /* @__PURE__ */ a.jsx(
@@ -9333,17 +9339,17 @@ const An = () => {
9333
9339
  )
9334
9340
  }
9335
9341
  ),
9336
- n && /* @__PURE__ */ a.jsx(_i, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
9337
- x.map((b) => typeof b == "string" || !b.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
9342
+ n && /* @__PURE__ */ a.jsx(_i, { isOpen: b, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
9343
+ x.map((y) => typeof y == "string" || !y.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
9338
9344
  at,
9339
9345
  {
9340
- href: b.id ? `/profiles/${b.id}` : void 0,
9346
+ href: y.id ? `/profiles/${y.id}` : void 0,
9341
9347
  gtmContext: "Likes",
9342
9348
  gtmType: "liked-name-click",
9343
9349
  onClick: (F) => F == null ? void 0 : F.stopPropagation(),
9344
- children: b.name
9350
+ children: y.name
9345
9351
  }
9346
- ) }, b.id || window.btoa(b.name))),
9352
+ ) }, y.id || window.btoa(y.name))),
9347
9353
  e > Dn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
9348
9354
  { id: "discussion_likes_more" },
9349
9355
  { number: e - Dn }
@@ -9385,9 +9391,9 @@ const Me = "discussion_", Cc = 280, cn = ({
9385
9391
  className: p,
9386
9392
  gtmContext: g = "DiscussionAnswer",
9387
9393
  children: v,
9388
- isTruncated: _ = !1
9394
+ isTruncated: b = !1
9389
9395
  }) => {
9390
- const y = H(), x = Ee(De), E = Ee(sr), { author: w, canLike: b, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof b == "boolean" ? b : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = X({
9396
+ const _ = H(), x = Ee(De), E = Ee(sr), { author: w, canLike: y, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof y == "boolean" ? y : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = X({
9391
9397
  body: e && e.body || "",
9392
9398
  isEditing: !1,
9393
9399
  didEdit: e && e.isEdited || !1
@@ -9420,7 +9426,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9420
9426
  };
9421
9427
  if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
9422
9428
  return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
9423
- const te = _ ? et(A.body, Cc) : A.body, G = async (O) => {
9429
+ const te = b ? et(A.body, Cc) : A.body, G = async (O) => {
9424
9430
  O || (O = ""), q("");
9425
9431
  try {
9426
9432
  if (!Rs(O, A.body)) {
@@ -9446,14 +9452,14 @@ const Me = "discussion_", Cc = 280, cn = ({
9446
9452
  }
9447
9453
  }, re = [
9448
9454
  {
9449
- text: y.formatMessage({ id: `${Me}moreMenu_report` }),
9455
+ text: _.formatMessage({ id: `${Me}moreMenu_report` }),
9450
9456
  onClick: (O) => {
9451
9457
  O.stopPropagation();
9452
9458
  },
9453
9459
  href: `mailto:community@apolitical.co?subject=${encodeURI(
9454
- y.formatMessage({ id: `${Me}report_subject` })
9460
+ _.formatMessage({ id: `${Me}report_subject` })
9455
9461
  )}&body=${encodeURI(
9456
- y.formatMessage(
9462
+ _.formatMessage(
9457
9463
  { id: `${Me}report_body` },
9458
9464
  {
9459
9465
  contentType: e.type || "",
@@ -9467,7 +9473,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9467
9473
  ];
9468
9474
  return n && C && re.push(
9469
9475
  {
9470
- text: y.formatMessage({ id: `${Me}moreMenu_edit` }),
9476
+ text: _.formatMessage({ id: `${Me}moreMenu_edit` }),
9471
9477
  onClick: () => W({ ...A, isEditing: !0 }),
9472
9478
  icon: "pencil-paper",
9473
9479
  className: "gtm-trackable",
@@ -9475,7 +9481,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9475
9481
  "data-gtm-event-type": `edit-${e.type}-click`
9476
9482
  },
9477
9483
  {
9478
- text: y.formatMessage({ id: `${Me}moreMenu_delete` }),
9484
+ text: _.formatMessage({ id: `${Me}moreMenu_delete` }),
9479
9485
  onClick: (O) => {
9480
9486
  O.preventDefault(), O.stopPropagation(), z(!0);
9481
9487
  },
@@ -9526,10 +9532,10 @@ const Me = "discussion_", Cc = 280, cn = ({
9526
9532
  },
9527
9533
  maxLength: e.type === "question" ? 250 : 5e4,
9528
9534
  forceShow: {
9529
- error: P !== "" && P !== "delete-error" ? y.formatMessage(
9535
+ error: P !== "" && P !== "delete-error" ? _.formatMessage(
9530
9536
  { id: P },
9531
9537
  {
9532
- action: y.formatMessage({
9538
+ action: _.formatMessage({
9533
9539
  id: `discussion_action_${e.type}`
9534
9540
  })
9535
9541
  }
@@ -9607,13 +9613,13 @@ const Me = "discussion_", Cc = 280, cn = ({
9607
9613
  className: "gtm-trackable",
9608
9614
  "data-gtm-event-context": g,
9609
9615
  "data-gtm-event-type": `answer-${e.type}-click`,
9610
- screenreaderText: y.formatMessage(
9616
+ screenreaderText: _.formatMessage(
9611
9617
  { id: `${Me}comments_screenReader` },
9612
9618
  { count: $ }
9613
9619
  )
9614
9620
  }
9615
9621
  ),
9616
- /* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
9622
+ /* @__PURE__ */ a.jsx("span", { children: _.formatMessage(
9617
9623
  { id: `${Me}comments` },
9618
9624
  { count: $ }
9619
9625
  ) })
@@ -9627,7 +9633,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9627
9633
  size: "medium",
9628
9634
  styling: { muted: !0 },
9629
9635
  onClick: V,
9630
- children: y.formatMessage({ id: `${Me}reply` })
9636
+ children: _.formatMessage({ id: `${Me}reply` })
9631
9637
  }
9632
9638
  ) }),
9633
9639
  /* @__PURE__ */ a.jsx(
@@ -9653,30 +9659,30 @@ const Me = "discussion_", Cc = 280, cn = ({
9653
9659
  functions: { onOpen: () => {
9654
9660
  }, onClose: () => z(!1) },
9655
9661
  forceShow: {
9656
- error: P === "delete-error" ? y.formatMessage(
9662
+ error: P === "delete-error" ? _.formatMessage(
9657
9663
  { id: "discussion_delete_error" },
9658
9664
  {
9659
- action: y.formatMessage({
9665
+ action: _.formatMessage({
9660
9666
  id: `discussion_action_${e.type}`
9661
9667
  })
9662
9668
  }
9663
9669
  ) : !1
9664
9670
  },
9665
- title: y.formatMessage(
9671
+ title: _.formatMessage(
9666
9672
  { id: "discussion_delete_title" },
9667
- { action: y.formatMessage({ id: `discussion_action_${e.type}` }) }
9673
+ { action: _.formatMessage({ id: `discussion_action_${e.type}` }) }
9668
9674
  ),
9669
9675
  buttons: [
9670
9676
  {
9671
9677
  variant: "secondary",
9672
9678
  onClick: () => z(!1),
9673
- children: y.formatMessage({ id: "discussion_delete_cancel" })
9679
+ children: _.formatMessage({ id: "discussion_delete_cancel" })
9674
9680
  },
9675
9681
  {
9676
9682
  variant: "primary",
9677
9683
  className: "destructive",
9678
9684
  onClick: ee,
9679
- children: y.formatMessage({ id: "discussion_delete_delete" })
9685
+ children: _.formatMessage({ id: "discussion_delete_delete" })
9680
9686
  }
9681
9687
  ],
9682
9688
  gtmContext: `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}:${e.slug}`,
@@ -9686,7 +9692,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9686
9692
  id: "discussion_delete_text",
9687
9693
  values: {
9688
9694
  p: (O) => /* @__PURE__ */ a.jsx("p", { children: O }),
9689
- action: y.formatMessage({
9695
+ action: _.formatMessage({
9690
9696
  id: `discussion_action_${e.type}`
9691
9697
  })
9692
9698
  }
@@ -10129,9 +10135,9 @@ function Wc({
10129
10135
  },
10130
10136
  user: d,
10131
10137
  ...l
10132
- }, f = qc({ ...u, mutationFn: t }), m = Uc({ ...u, mutationFn: e }), p = zc({ ...u, mutationFn: n }), g = Hc({ ...u, mutationFn: s }), v = Vc({ ...u, mutationFn: i }), { activities: _, ...y } = Zc({ queryKey: o, queryFn: r });
10138
+ }, f = qc({ ...u, mutationFn: t }), m = Uc({ ...u, mutationFn: e }), p = zc({ ...u, mutationFn: n }), g = Hc({ ...u, mutationFn: s }), v = Vc({ ...u, mutationFn: i }), { activities: b, ..._ } = Zc({ queryKey: o, queryFn: r });
10133
10139
  return {
10134
- activities: _,
10140
+ activities: b,
10135
10141
  mutations: {
10136
10142
  create: f,
10137
10143
  edit: m,
@@ -10140,7 +10146,7 @@ function Wc({
10140
10146
  unlike: v
10141
10147
  },
10142
10148
  user: d,
10143
- ...y
10149
+ ..._
10144
10150
  };
10145
10151
  }
10146
10152
  function zc({
@@ -10262,8 +10268,8 @@ const pu = ({
10262
10268
  fetchNextPage: l,
10263
10269
  hasNextPage: u,
10264
10270
  isLoading: f,
10265
- mutations: { create: m, edit: p, remove: g, like: v, unlike: _ },
10266
- user: y
10271
+ mutations: { create: m, edit: p, remove: g, like: v, unlike: b },
10272
+ user: _
10267
10273
  } = Wc({
10268
10274
  queryKey: [t, e, "activities"],
10269
10275
  queryFns: r
@@ -10292,7 +10298,7 @@ const pu = ({
10292
10298
  c == null ? void 0 : c.map((E, w) => {
10293
10299
  var A, W, Z, z, K, T, P, q;
10294
10300
  const {
10295
- id: b,
10301
+ id: y,
10296
10302
  own_reactions: F,
10297
10303
  latest_reactions: R,
10298
10304
  reaction_counts: Q
@@ -10302,7 +10308,7 @@ const pu = ({
10302
10308
  id: (U = L == null ? void 0 : L.user) == null ? void 0 : U.id,
10303
10309
  name: (G = (te = L == null ? void 0 : L.user) == null ? void 0 : te.data) == null ? void 0 : G.name
10304
10310
  };
10305
- }) : !1, j = E == null ? void 0 : E.actor, N = (j == null ? void 0 : j.id) === (y == null ? void 0 : y.id);
10311
+ }) : !1, j = E == null ? void 0 : E.actor, N = (j == null ? void 0 : j.id) === (_ == null ? void 0 : _.id);
10306
10312
  return /* @__PURE__ */ a.jsxs(yt, { children: [
10307
10313
  /* @__PURE__ */ a.jsx(
10308
10314
  cn,
@@ -10314,9 +10320,9 @@ const pu = ({
10314
10320
  createdAt: (E == null ? void 0 : E.time) || "",
10315
10321
  slugs: {
10316
10322
  question: `${t}/${e}`,
10317
- answer: b
10323
+ answer: y
10318
10324
  },
10319
- slug: b,
10325
+ slug: y,
10320
10326
  author: {
10321
10327
  id: j == null ? void 0 : j.id,
10322
10328
  name: (z = j == null ? void 0 : j.data) == null ? void 0 : z.name,
@@ -10333,19 +10339,19 @@ const pu = ({
10333
10339
  peopleWhoLiked: k
10334
10340
  },
10335
10341
  links: {
10336
- post: `${t}/${e}/${b}`,
10337
- comments: `${t}/${e}/${b}`
10342
+ post: `${t}/${e}/${y}`,
10343
+ comments: `${t}/${e}/${y}`
10338
10344
  },
10339
10345
  functions: {
10340
10346
  content: {
10341
10347
  createContent: () => null,
10342
- deleteContent: () => g({ activityId: b }),
10348
+ deleteContent: () => g({ activityId: y }),
10343
10349
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10344
- updateContent: (L, { body: U }) => p({ activityId: b, content: U })
10350
+ updateContent: (L, { body: U }) => p({ activityId: y, content: U })
10345
10351
  },
10346
10352
  likes: {
10347
- createLike: () => v({ activityId: b }),
10348
- deleteLike: () => _({ activityId: b, reactionId: C })
10353
+ createLike: () => v({ activityId: y }),
10354
+ deleteLike: () => b({ activityId: y, reactionId: C })
10349
10355
  },
10350
10356
  comments: {
10351
10357
  openComments: () => null
@@ -10355,7 +10361,7 @@ const pu = ({
10355
10361
  }
10356
10362
  ),
10357
10363
  x > w + 1 && /* @__PURE__ */ a.jsx(Oe, {})
10358
- ] }, b);
10364
+ ] }, y);
10359
10365
  }),
10360
10366
  !f && /* @__PURE__ */ a.jsx(
10361
10367
  sn,
@@ -10986,9 +10992,9 @@ function es({
10986
10992
  },
10987
10993
  user: d,
10988
10994
  ...l
10989
- }, f = Gc({ ...u, mutationFn: t }), m = Qc({ ...u, mutationFn: e }), p = Jc({ ...u, mutationFn: n }), g = el({ ...u, mutationFn: s }), v = tl({ ...u, mutationFn: i }), { replies: _, ...y } = Xc({ queryKey: o, queryFn: r });
10995
+ }, f = Gc({ ...u, mutationFn: t }), m = Qc({ ...u, mutationFn: e }), p = Jc({ ...u, mutationFn: n }), g = el({ ...u, mutationFn: s }), v = tl({ ...u, mutationFn: i }), { replies: b, ..._ } = Xc({ queryKey: o, queryFn: r });
10990
10996
  return {
10991
- replies: _,
10997
+ replies: b,
10992
10998
  mutations: {
10993
10999
  create: f,
10994
11000
  edit: m,
@@ -10997,7 +11003,7 @@ function es({
10997
11003
  unlike: v
10998
11004
  },
10999
11005
  user: d,
11000
- ...y
11006
+ ..._
11001
11007
  };
11002
11008
  }
11003
11009
  function Jc({
@@ -11138,7 +11144,7 @@ const ol = ({
11138
11144
  queryFns: {
11139
11145
  ...i,
11140
11146
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11141
- list: (_) => i.list({ ..._, reactionId: r })
11147
+ list: (b) => i.list({ ...b, reactionId: r })
11142
11148
  }
11143
11149
  });
11144
11150
  return /* @__PURE__ */ a.jsx(
@@ -11156,18 +11162,18 @@ const ol = ({
11156
11162
  },
11157
11163
  functions: {
11158
11164
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11159
- create: (_, { body: y }) => u({ activityId: n, replyId: r, content: y })
11165
+ create: (b, { body: _ }) => u({ activityId: n, replyId: r, content: _ })
11160
11166
  },
11161
11167
  meta: { isEditing: !1, showSuccessMessage: !1 }
11162
11168
  },
11163
- children: o && o.length > 0 ? o == null ? void 0 : o.map((_) => {
11169
+ children: o && o.length > 0 ? o == null ? void 0 : o.map((b) => {
11164
11170
  var A, W, Z, z, K, T, P, q, L, U, te, G;
11165
11171
  const {
11166
- id: y,
11172
+ id: _,
11167
11173
  own_children: x,
11168
11174
  latest_children: E,
11169
11175
  children_counts: w
11170
- } = _, F = (((A = x == null ? void 0 : x.like) == null ? void 0 : A.length) || 0) > 0 ? (W = x == null ? void 0 : x.like) == null ? void 0 : W.find((V) => {
11176
+ } = b, F = (((A = x == null ? void 0 : x.like) == null ? void 0 : A.length) || 0) > 0 ? (W = x == null ? void 0 : x.like) == null ? void 0 : W.find((V) => {
11171
11177
  var ee;
11172
11178
  return ((ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id) === (v == null ? void 0 : v.id);
11173
11179
  }) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F, $ = (((Z = E == null ? void 0 : E.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = E == null ? void 0 : E.like) == null ? void 0 : z.map((V) => {
@@ -11176,25 +11182,25 @@ const ol = ({
11176
11182
  id: (ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id,
11177
11183
  name: (O = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : O.name
11178
11184
  };
11179
- }) : !1, C = _ == null ? void 0 : _.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k), N = typeof _.data.content == "string" ? (K = _ == null ? void 0 : _.data) == null ? void 0 : K.content : (
11185
+ }) : !1, C = b == null ? void 0 : b.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k), N = typeof b.data.content == "string" ? (K = b == null ? void 0 : b.data) == null ? void 0 : K.content : (
11180
11186
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11181
- ((P = (T = _ == null ? void 0 : _.data) == null ? void 0 : T.content) == null ? void 0 : P.text) || ""
11187
+ ((P = (T = b == null ? void 0 : b.data) == null ? void 0 : T.content) == null ? void 0 : P.text) || ""
11182
11188
  );
11183
11189
  return /* @__PURE__ */ a.jsx(
11184
11190
  cn,
11185
11191
  {
11186
11192
  content: {
11187
- id: y,
11193
+ id: _,
11188
11194
  type: "reply",
11189
11195
  body: N,
11190
11196
  canLike: j,
11191
- createdAt: _ == null ? void 0 : _.created_at,
11197
+ createdAt: b == null ? void 0 : b.created_at,
11192
11198
  slugs: {
11193
11199
  question: `${t}/${e}`,
11194
11200
  answer: n,
11195
11201
  // Stop-gap solution to avoid having to change the DiscussionPost component
11196
11202
  // The `reply` is currently used to define the form ID which handles the focus
11197
- reply: _ == null ? void 0 : _.parent
11203
+ reply: b == null ? void 0 : b.parent
11198
11204
  },
11199
11205
  slug: "",
11200
11206
  author: {
@@ -11214,18 +11220,18 @@ const ol = ({
11214
11220
  functions: {
11215
11221
  content: {
11216
11222
  createContent: () => null,
11217
- deleteContent: () => p({ replyId: y }),
11223
+ deleteContent: () => p({ replyId: _ }),
11218
11224
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11219
- updateContent: (V, { body: ee }) => f({ replyId: y, content: ee })
11225
+ updateContent: (V, { body: ee }) => f({ replyId: _, content: ee })
11220
11226
  },
11221
11227
  likes: {
11222
- createLike: () => m({ replyId: y }),
11223
- deleteLike: () => g({ replyId: y, reactionId: R })
11228
+ createLike: () => m({ replyId: _ }),
11229
+ deleteLike: () => g({ replyId: _, reactionId: R })
11224
11230
  },
11225
11231
  comments: {}
11226
11232
  }
11227
11233
  },
11228
- y
11234
+ _
11229
11235
  );
11230
11236
  }) : null
11231
11237
  }
@@ -11243,7 +11249,7 @@ const ol = ({
11243
11249
  fetchNextPage: u,
11244
11250
  hasNextPage: f,
11245
11251
  isLoading: m,
11246
- mutations: { create: p, edit: g, like: v, remove: _, unlike: y },
11252
+ mutations: { create: p, edit: g, like: v, remove: b, unlike: _ },
11247
11253
  user: x
11248
11254
  } = es({
11249
11255
  queryKey: [t, e, n, "replies"],
@@ -11274,7 +11280,7 @@ const ol = ({
11274
11280
  ),
11275
11281
  d == null ? void 0 : d.map((E) => {
11276
11282
  var z, K, T, P, q, L, U, te, G, V, ee, re;
11277
- const { id: w, own_children: b, latest_children: F, children_counts: R } = E, B = (((z = b == null ? void 0 : b.like) == null ? void 0 : z.length) || 0) > 0 ? (K = b == null ? void 0 : b.like) == null ? void 0 : K.find((O) => {
11283
+ const { id: w, own_children: y, latest_children: F, children_counts: R } = E, B = (((z = y == null ? void 0 : y.like) == null ? void 0 : z.length) || 0) > 0 ? (K = y == null ? void 0 : y.like) == null ? void 0 : K.find((O) => {
11278
11284
  var oe;
11279
11285
  return ((oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id) === (x == null ? void 0 : x.id);
11280
11286
  }) : !1, $ = B ? B == null ? void 0 : B.id : "", C = !!B, j = (((T = F == null ? void 0 : F.like) == null ? void 0 : T.length) || 0) > 0 ? (P = F == null ? void 0 : F.like) == null ? void 0 : P.map((O) => {
@@ -11319,13 +11325,13 @@ const ol = ({
11319
11325
  functions: {
11320
11326
  content: {
11321
11327
  createContent: () => null,
11322
- deleteContent: () => _({ replyId: w }),
11328
+ deleteContent: () => b({ replyId: w }),
11323
11329
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11324
11330
  updateContent: (O, { body: oe }) => g({ replyId: w, content: oe })
11325
11331
  },
11326
11332
  likes: {
11327
11333
  createLike: () => v({ replyId: w }),
11328
- deleteLike: () => y({ replyId: w, reactionId: $ })
11334
+ deleteLike: () => _({ replyId: w, reactionId: $ })
11329
11335
  },
11330
11336
  comments: {}
11331
11337
  },
@@ -11470,7 +11476,7 @@ const gu = ({
11470
11476
  activity: f,
11471
11477
  error: m,
11472
11478
  isLoading: p,
11473
- mutations: { edit: g, like: v, unlike: _ }
11479
+ mutations: { edit: g, like: v, unlike: b }
11474
11480
  } = dl({
11475
11481
  queryFns: i,
11476
11482
  queryKey: [t, e, n]
@@ -11485,7 +11491,7 @@ const gu = ({
11485
11491
  text: l.formatMessage({ id: "activitySection_notFoundError" })
11486
11492
  }
11487
11493
  );
11488
- const { own_reactions: y, latest_reactions: x } = f, E = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = ((($ = y == null ? void 0 : y.like) == null ? void 0 : $.length) || 0) > 0, b = w ? y == null ? void 0 : y.like[0].id : "", F = E ? (C = x == null ? void 0 : x.like) == null ? void 0 : C.map((K) => {
11494
+ const { own_reactions: _, latest_reactions: x } = f, E = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = ((($ = _ == null ? void 0 : _.like) == null ? void 0 : $.length) || 0) > 0, y = w ? _ == null ? void 0 : _.like[0].id : "", F = E ? (C = x == null ? void 0 : x.like) == null ? void 0 : C.map((K) => {
11489
11495
  var T, P, q;
11490
11496
  return {
11491
11497
  id: (T = K == null ? void 0 : K.user) == null ? void 0 : T.id,
@@ -11534,7 +11540,7 @@ const gu = ({
11534
11540
  },
11535
11541
  likes: {
11536
11542
  createLike: () => v({ activityId: n }),
11537
- deleteLike: () => _({ activityId: n, reactionId: b })
11543
+ deleteLike: () => b({ activityId: n, reactionId: y })
11538
11544
  },
11539
11545
  comments: {
11540
11546
  openComments: () => {