@apolitical/component-library 4.7.5-ac.2 → 4.7.5-ac.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -85,7 +85,7 @@ const G = /* @__PURE__ */ Nn(Dh), xh = ({
85
85
  ...i,
86
86
  className: G("hidden", r, { "show-on-focus": t }),
87
87
  children: n
88
- }), qe = Vt(xh), wh = ({
88
+ }), ze = Vt(xh), wh = ({
89
89
  element: e = "span",
90
90
  children: t = null,
91
91
  ...n
@@ -1661,7 +1661,7 @@ const Te = ({
1661
1661
  const k = ie.createElement(
1662
1662
  a,
1663
1663
  E,
1664
- h || (c ? /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: c }) : null)
1664
+ h || (c ? /* @__PURE__ */ d.jsx(ze, { showOnFocus: !1, children: c }) : null)
1665
1665
  );
1666
1666
  return l && u ? /* @__PURE__ */ d.jsxs("span", { className: "button-container", ...v, children: [
1667
1667
  /* @__PURE__ */ d.jsx(cr, { isOpen: f, children: u }),
@@ -1893,7 +1893,7 @@ const Kh = Hs(
1893
1893
  children: t
1894
1894
  }) => typeof document == "object" ? _c.createPortal(t, e) : null;
1895
1895
  const c_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
1896
- /* @__PURE__ */ d.jsx(qe, { children: /* @__PURE__ */ d.jsx(
1896
+ /* @__PURE__ */ d.jsx(ze, { children: /* @__PURE__ */ d.jsx(
1897
1897
  ht,
1898
1898
  {
1899
1899
  id: "progressTracker",
@@ -2291,7 +2291,7 @@ const h_ = ({
2291
2291
  const i = e.src;
2292
2292
  return i.includes("youtube") || i.includes("vimeo") ? r = "video" : i.includes("riddle") || i.includes("sli.do") ? r = "poll" : i.includes("padlet") && (r = "padlet"), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
2293
2293
  /* @__PURE__ */ d.jsx(
2294
- qe,
2294
+ ze,
2295
2295
  {
2296
2296
  element: "a",
2297
2297
  href: `#content-after-iframe-${n}`,
@@ -2476,7 +2476,7 @@ const um = ({
2476
2476
  [l !== "default" ? l : ""]: l !== "default"
2477
2477
  }),
2478
2478
  style: c,
2479
- children: ie.createElement(a ? "span" : qe, {
2479
+ children: ie.createElement(a ? "span" : ze, {
2480
2480
  className: a ? "text" : "",
2481
2481
  children: n || i.formatMessage({ id: "progressBar" }, { number: t })
2482
2482
  })
@@ -4712,7 +4712,7 @@ const v_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
4712
4712
  const r = ue();
4713
4713
  return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
4714
4714
  /* @__PURE__ */ d.jsx(
4715
- qe,
4715
+ ze,
4716
4716
  {
4717
4717
  element: "p",
4718
4718
  children: r.formatMessage({ id: "breadcrumbs_label" })
@@ -4723,7 +4723,7 @@ const v_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
4723
4723
  const l = {};
4724
4724
  return s && (l["aria-current"] = "location"), /* @__PURE__ */ d.jsxs("li", { children: [
4725
4725
  s && /* @__PURE__ */ d.jsx(
4726
- qe,
4726
+ ze,
4727
4727
  {
4728
4728
  element: "span",
4729
4729
  children: r.formatMessage({ id: "breadcrumbs_currentPage" })
@@ -4906,7 +4906,7 @@ const cd = ({
4906
4906
  href: "/home/",
4907
4907
  className: G("logo", e, t, n),
4908
4908
  ...r,
4909
- children: /* @__PURE__ */ d.jsx(qe, { children: /* @__PURE__ */ d.jsx(ht, { id: "apolitical" }) })
4909
+ children: /* @__PURE__ */ d.jsx(ze, { children: /* @__PURE__ */ d.jsx(ht, { id: "apolitical" }) })
4910
4910
  }
4911
4911
  ) });
4912
4912
  let ii = !1;
@@ -5246,7 +5246,7 @@ const dd = ({
5246
5246
  ] })
5247
5247
  }
5248
5248
  ),
5249
- /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, id: `${e}-info`, children: i.formatMessage({ id: `${a}_info` }, { limit: t }) })
5249
+ /* @__PURE__ */ d.jsx(ze, { showOnFocus: !1, id: `${e}-info`, children: i.formatMessage({ id: `${a}_info` }, { limit: t }) })
5250
5250
  ] });
5251
5251
  }, eo = (e) => (e == null ? void 0 : e.toString().length) || 0, Ap = (e, t = null) => {
5252
5252
  const n = {};
@@ -6341,12 +6341,12 @@ const si = "passwordRules_", hd = "isMoreThanEightCharacters", md = "includesNum
6341
6341
  {
6342
6342
  className: G({ matches: e[r] }),
6343
6343
  children: [
6344
- /* @__PURE__ */ d.jsxs(qe, { children: [
6344
+ /* @__PURE__ */ d.jsxs(ze, { children: [
6345
6345
  n.formatMessage({ id: `${si}rule_label` }),
6346
6346
  " "
6347
6347
  ] }),
6348
6348
  /* @__PURE__ */ d.jsx("span", { children: n.formatMessage({ id: `${si}rule_${$p[r]}` }) }),
6349
- !e[r] && /* @__PURE__ */ d.jsxs(qe, { element: "strong", children: [
6349
+ !e[r] && /* @__PURE__ */ d.jsxs(ze, { element: "strong", children: [
6350
6350
  " ",
6351
6351
  n.formatMessage({ id: `${si}notMet` })
6352
6352
  ] })
@@ -19749,7 +19749,7 @@ const zw = ({
19749
19749
  }
19750
19750
  },
19751
19751
  children: [
19752
- /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: o.formatMessage({ id: `richTextEditor_${e}` }) }),
19752
+ /* @__PURE__ */ d.jsx(ze, { showOnFocus: !1, children: o.formatMessage({ id: `richTextEditor_${e}` }) }),
19753
19753
  /* @__PURE__ */ d.jsx(
19754
19754
  cr,
19755
19755
  {
@@ -19918,7 +19918,7 @@ const Vw = () => {
19918
19918
  x.preventDefault(), x.stopPropagation(), window.open((l == null ? void 0 : l.full) || "", "_blank"), a([{ type: "showLinkEditor", value: !1 }]);
19919
19919
  }, k.children = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
19920
19920
  k.children,
19921
- /* @__PURE__ */ d.jsx(qe, { children: e.formatMessage({ id: `${t}${E}_text` }) })
19921
+ /* @__PURE__ */ d.jsx(ze, { children: e.formatMessage({ id: `${t}${E}_text` }) })
19922
19922
  ] });
19923
19923
  break;
19924
19924
  case "edit":
@@ -20068,7 +20068,7 @@ const Qw = ({ ...e }) => {
20068
20068
  const t = ue(), { id: n } = Ue(un);
20069
20069
  return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
20070
20070
  /* @__PURE__ */ d.jsxs("fieldset", { id: `toolbar-${n}`, className: "toolbar", ...e, children: [
20071
- /* @__PURE__ */ d.jsx(qe, { element: "legend", showOnFocus: !1, children: t.formatMessage({ id: "richTextEditor_toolbar" }) }),
20071
+ /* @__PURE__ */ d.jsx(ze, { element: "legend", showOnFocus: !1, children: t.formatMessage({ id: "richTextEditor_toolbar" }) }),
20072
20072
  /* @__PURE__ */ d.jsxs("ul", { children: [
20073
20073
  Hi.map((r, i) => /* @__PURE__ */ d.jsx(Yw, { format: r, hasDivider: i === Hi.length - 1 }, r)),
20074
20074
  /* @__PURE__ */ d.jsx(Kw, {}),
@@ -20904,7 +20904,7 @@ const fC = ({
20904
20904
  "data-gtm-event-type": a,
20905
20905
  children: /* @__PURE__ */ d.jsx("fieldset", { id: `${e}-form`, hidden: n ? !s : !1, children: /* @__PURE__ */ d.jsxs("p", { children: [
20906
20906
  /* @__PURE__ */ d.jsx(
20907
- qe,
20907
+ ze,
20908
20908
  {
20909
20909
  element: "label",
20910
20910
  htmlFor: e,
@@ -20932,10 +20932,10 @@ const fC = ({
20932
20932
  onClick: (h) => {
20933
20933
  h.preventDefault(), h.stopPropagation(), u.current && u.current.value && (u.current.value = "");
20934
20934
  },
20935
- children: /* @__PURE__ */ d.jsx(qe, { children: l.formatMessage({ id: "search_clear" }) })
20935
+ children: /* @__PURE__ */ d.jsx(ze, { children: l.formatMessage({ id: "search_clear" }) })
20936
20936
  }
20937
20937
  ),
20938
- /* @__PURE__ */ d.jsx("button", { className: "search", onClick: c, children: /* @__PURE__ */ d.jsx(qe, { children: l.formatMessage({ id: "search_cta" }) }) })
20938
+ /* @__PURE__ */ d.jsx("button", { className: "search", onClick: c, children: /* @__PURE__ */ d.jsx(ze, { children: l.formatMessage({ id: "search_cta" }) }) })
20939
20939
  ] }) })
20940
20940
  }
20941
20941
  );
@@ -21856,7 +21856,7 @@ const Jn = "footer_", Ui = "SiteFooter", mc = ({ group: e }) => {
21856
21856
  }
21857
21857
  ) })
21858
21858
  ] })
21859
- ] }) }), ze = {
21859
+ ] }) }), qe = {
21860
21860
  timeouts: {},
21861
21861
  handlerCalled: {},
21862
21862
  getIsDesktopVersion: (e, t) => {
@@ -21879,9 +21879,9 @@ const Jn = "footer_", Ui = "SiteFooter", mc = ({ group: e }) => {
21879
21879
  if (!i && n[e] === t || !i && e === wt.ACCOUNT && t === !1 && n[wt.SITE] === !0)
21880
21880
  return;
21881
21881
  const a = Date.now();
21882
- if (!i && !t && ze.handlerCalled[e] && a - ze.handlerCalled[e] < 500)
21882
+ if (!i && !t && qe.handlerCalled[e] && a - qe.handlerCalled[e] < 500)
21883
21883
  return;
21884
- ze.handlerCalled[e] = a;
21884
+ qe.handlerCalled[e] = a;
21885
21885
  let s = [{ type: `menus.${e}`, value: t }];
21886
21886
  if (t === !0)
21887
21887
  Object.keys(n).forEach((o) => {
@@ -21925,7 +21925,7 @@ const Jn = "footer_", Ui = "SiteFooter", mc = ({ group: e }) => {
21925
21925
  if (!(typeof i > "u") && (!n || i[t] && i[t].includes(n) || i.value && i.value.includes(n) || i.toString().includes(n)))
21926
21926
  return e[r];
21927
21927
  }
21928
- return e[0].children ? ze.findFirstChild(e[0].children, t, n) : !1;
21928
+ return e[0].children ? qe.findFirstChild(e[0].children, t, n) : !1;
21929
21929
  },
21930
21930
  autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: i }) => {
21931
21931
  var l;
@@ -21940,23 +21940,23 @@ const Jn = "footer_", Ui = "SiteFooter", mc = ({ group: e }) => {
21940
21940
  switch (e) {
21941
21941
  case wt.SITE:
21942
21942
  if (n) {
21943
- const u = ze.findFirstChild(
21943
+ const u = qe.findFirstChild(
21944
21944
  t.current.children,
21945
21945
  "attributes.aria-controls",
21946
21946
  wt.SITE
21947
21947
  );
21948
- s = ze.findFirstChild(u.children, "href");
21948
+ s = qe.findFirstChild(u.children, "href");
21949
21949
  } else
21950
- s = ze.findFirstChild(t.current.children, "href");
21950
+ s = qe.findFirstChild(t.current.children, "href");
21951
21951
  break;
21952
21952
  case wt.ACCOUNT:
21953
- if (o = ze.findFirstChild(
21953
+ if (o = qe.findFirstChild(
21954
21954
  t.current.children,
21955
21955
  "className",
21956
21956
  "account"
21957
21957
  ), !o || !o.children)
21958
21958
  return;
21959
- s = ze.findFirstChild(o.children, "href");
21959
+ s = qe.findFirstChild(o.children, "href");
21960
21960
  break;
21961
21961
  default:
21962
21962
  return;
@@ -21967,16 +21967,16 @@ const Jn = "footer_", Ui = "SiteFooter", mc = ({ group: e }) => {
21967
21967
  },
21968
21968
  events: {
21969
21969
  onClick: (e, { id: t, callback: n, isOpen: r }) => {
21970
- e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(ze.timeouts[t]), n(t, !r));
21970
+ e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(qe.timeouts[t]), n(t, !r));
21971
21971
  },
21972
21972
  onFocus: ({ id: e }) => {
21973
- clearTimeout(ze.timeouts[e]);
21973
+ clearTimeout(qe.timeouts[e]);
21974
21974
  },
21975
21975
  onMouseEnter: ({ id: e, callback: t }) => {
21976
- clearTimeout(ze.timeouts[e]), t(e, !0);
21976
+ clearTimeout(qe.timeouts[e]), t(e, !0);
21977
21977
  },
21978
21978
  onBlur: ({ id: e, callback: t }) => {
21979
- ze.timeouts[e] = setTimeout(() => {
21979
+ qe.timeouts[e] = setTimeout(() => {
21980
21980
  t(e, !1);
21981
21981
  }, 250);
21982
21982
  }
@@ -22102,11 +22102,11 @@ const Jn = "footer_", Ui = "SiteFooter", mc = ({ group: e }) => {
22102
22102
  let v = {}, b = {}, E = {};
22103
22103
  if (f && (v = { ...v, "aria-current": "page" }), m) {
22104
22104
  const k = o.menuId || e, x = {
22105
- onClick: (w) => ze.events.onClick(w, { id: k, callback: i, isOpen: r[k] }),
22106
- onFocus: () => ze.events.onFocus({ id: k }),
22107
- onBlur: () => ze.events.onBlur({ id: k, callback: i }),
22108
- onMouseLeave: () => ze.events.onBlur({ id: k, callback: i }),
22109
- onMouseEnter: () => ze.events.onMouseEnter({ id: k, callback: i })
22105
+ onClick: (w) => qe.events.onClick(w, { id: k, callback: i, isOpen: r[k] }),
22106
+ onFocus: () => qe.events.onFocus({ id: k }),
22107
+ onBlur: () => qe.events.onBlur({ id: k, callback: i }),
22108
+ onMouseLeave: () => qe.events.onBlur({ id: k, callback: i }),
22109
+ onMouseEnter: () => qe.events.onMouseEnter({ id: k, callback: i })
22110
22110
  };
22111
22111
  b = {
22112
22112
  ...x,
@@ -22115,7 +22115,7 @@ const Jn = "footer_", Ui = "SiteFooter", mc = ({ group: e }) => {
22115
22115
  ...x,
22116
22116
  className: "navigation-button",
22117
22117
  onKeyPress: (w) => {
22118
- w.key === "Enter" && ze.events.onClick(w, { id: k, callback: i, isOpen: r[k] });
22118
+ w.key === "Enter" && qe.events.onClick(w, { id: k, callback: i, isOpen: r[k] });
22119
22119
  },
22120
22120
  "aria-haspopup": !0,
22121
22121
  "aria-expanded": r[k],
@@ -22141,7 +22141,7 @@ const Jn = "footer_", Ui = "SiteFooter", mc = ({ group: e }) => {
22141
22141
  s.formatMessage({ id: h })
22142
22142
  ) : n && o.order && g ? /* @__PURE__ */ d.jsxs("button", { ...E, children: [
22143
22143
  s.formatMessage({ id: h }),
22144
- /* @__PURE__ */ d.jsx(qe, { children: s.formatMessage({
22144
+ /* @__PURE__ */ d.jsx(ze, { children: s.formatMessage({
22145
22145
  id: `header_menu_${r[wt.SITE] ? "hide" : "show"}`
22146
22146
  }) })
22147
22147
  ] }) : s.formatMessage({ id: h }),
@@ -22192,7 +22192,7 @@ const DC = { height: 67, height_desktop: 83 };
22192
22192
  var wt = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(wt || {});
22193
22193
  const qf = ({ showNavigation: e = !0 }) => {
22194
22194
  const t = ue(), n = Ue(Kt), r = Ur(!0, !0), i = n && typeof n.id == "string", a = Wt(
22195
- () => ze.getIsDesktopVersion(i, r),
22195
+ () => qe.getIsDesktopVersion(i, r),
22196
22196
  [i, r]
22197
22197
  ), [s, o] = lr(Xi, {
22198
22198
  headerIsVisible: !0,
@@ -22216,19 +22216,19 @@ const qf = ({ showNavigation: e = !0 }) => {
22216
22216
  !a && b[
22217
22217
  "site-navigation"
22218
22218
  /* SITE */
22219
- ] || ze.shouldChangeHeaderIsVisible(!0, b, o);
22219
+ ] || qe.shouldChangeHeaderIsVisible(!0, b, o);
22220
22220
  },
22221
22221
  scrollDown: () => {
22222
22222
  const b = h.current.menus;
22223
22223
  !a && b[
22224
22224
  "site-navigation"
22225
22225
  /* SITE */
22226
- ] || ze.shouldChangeHeaderIsVisible(!1, b, o);
22226
+ ] || qe.shouldChangeHeaderIsVisible(!1, b, o);
22227
22227
  }
22228
22228
  }
22229
22229
  });
22230
22230
  const p = (b, E, k = !1) => {
22231
- ze.handleMenus({ id: b, value: E, menus: h.current.menus, dispatch: o, forceHandle: k });
22231
+ qe.handleMenus({ id: b, value: E, menus: h.current.menus, dispatch: o, forceHandle: k });
22232
22232
  }, m = _e(null), g = (b) => {
22233
22233
  b.key === "Escape" && [
22234
22234
  "site-navigation",
@@ -22251,7 +22251,7 @@ const qf = ({ showNavigation: e = !0 }) => {
22251
22251
  u[
22252
22252
  "site-navigation"
22253
22253
  /* SITE */
22254
- ] && ze.autoFocus({
22254
+ ] && qe.autoFocus({
22255
22255
  menu: "site-navigation",
22256
22256
  navigationRef: m,
22257
22257
  isDesktopVersion: a.navigation,
@@ -22265,7 +22265,7 @@ const qf = ({ showNavigation: e = !0 }) => {
22265
22265
  u[
22266
22266
  "account-navigation"
22267
22267
  /* ACCOUNT */
22268
- ] && ze.autoFocus({
22268
+ ] && qe.autoFocus({
22269
22269
  menu: "account-navigation",
22270
22270
  navigationRef: m,
22271
22271
  isDesktopVersion: a.navigation,
@@ -22288,7 +22288,7 @@ const qf = ({ showNavigation: e = !0 }) => {
22288
22288
  "aria-expanded": u.search,
22289
22289
  "aria-controls": "search-form",
22290
22290
  children: /* @__PURE__ */ d.jsx(
22291
- qe,
22291
+ ze,
22292
22292
  {
22293
22293
  children: t.formatMessage({
22294
22294
  id: `header_search_${u.search ? "hide" : "show"}`
@@ -22328,7 +22328,7 @@ const qf = ({ showNavigation: e = !0 }) => {
22328
22328
  /* SITE */
22329
22329
  ],
22330
22330
  "aria-controls": "site-navigation",
22331
- children: /* @__PURE__ */ d.jsx(qe, { children: t.formatMessage({
22331
+ children: /* @__PURE__ */ d.jsx(ze, { children: t.formatMessage({
22332
22332
  id: `header_menu_${u[
22333
22333
  "site-navigation"
22334
22334
  /* SITE */
@@ -22387,7 +22387,7 @@ const qf = ({ showNavigation: e = !0 }) => {
22387
22387
  }),
22388
22388
  children: [
22389
22389
  /* @__PURE__ */ d.jsx(
22390
- qe,
22390
+ ze,
22391
22391
  {
22392
22392
  element: "a",
22393
22393
  href: "#content-of-page",
@@ -22407,7 +22407,7 @@ const qf = ({ showNavigation: e = !0 }) => {
22407
22407
  "button",
22408
22408
  {
22409
22409
  className: "account-button",
22410
- onClick: (b) => ze.events.onClick(b, {
22410
+ onClick: (b) => qe.events.onClick(b, {
22411
22411
  id: "account-navigation",
22412
22412
  callback: p,
22413
22413
  isOpen: u[
@@ -22415,11 +22415,11 @@ const qf = ({ showNavigation: e = !0 }) => {
22415
22415
  /* ACCOUNT */
22416
22416
  ]
22417
22417
  }),
22418
- onMouseEnter: () => ze.events.onMouseEnter({
22418
+ onMouseEnter: () => qe.events.onMouseEnter({
22419
22419
  id: "account-navigation",
22420
22420
  callback: p
22421
22421
  }),
22422
- onMouseLeave: () => ze.events.onBlur({
22422
+ onMouseLeave: () => qe.events.onBlur({
22423
22423
  id: "account-navigation",
22424
22424
  callback: p
22425
22425
  }),
@@ -22430,7 +22430,7 @@ const qf = ({ showNavigation: e = !0 }) => {
22430
22430
  ],
22431
22431
  "aria-controls": "account-navigation",
22432
22432
  children: [
22433
- /* @__PURE__ */ d.jsx(qe, { children: t.formatMessage({
22433
+ /* @__PURE__ */ d.jsx(ze, { children: t.formatMessage({
22434
22434
  id: `header_account_${u[
22435
22435
  "account-navigation"
22436
22436
  /* ACCOUNT */
@@ -22539,7 +22539,7 @@ const xC = () => {
22539
22539
  }
22540
22540
  ),
22541
22541
  f && /* @__PURE__ */ d.jsx(
22542
- qe,
22542
+ ze,
22543
22543
  {
22544
22544
  "aria-live": "polite",
22545
22545
  showOnFocus: !1,
@@ -22690,7 +22690,7 @@ const j_ = ({
22690
22690
  },
22691
22691
  children: i.formatMessage({ id: `${t}label` })
22692
22692
  }
22693
- ) : /* @__PURE__ */ d.jsx(qe, { element: "label", showOnFocus: !1, htmlFor: `${e}-input`, children: Ot(i.formatMessage, `${t}label_action`, r, "action") });
22693
+ ) : /* @__PURE__ */ d.jsx(ze, { element: "label", showOnFocus: !1, htmlFor: `${e}-input`, children: Ot(i.formatMessage, `${t}label_action`, r, "action") });
22694
22694
  };
22695
22695
  let gi = null;
22696
22696
  const nt = "discussion_form_", ua = ({
@@ -22973,7 +22973,7 @@ const nt = "discussion_form_", ua = ({
22973
22973
  maxLength: a
22974
22974
  }
22975
22975
  ) : Z }),
22976
- g && /* @__PURE__ */ d.jsx(qe, { "aria-live": "polite", showOnFocus: !1, children: g })
22976
+ g && /* @__PURE__ */ d.jsx(ze, { "aria-live": "polite", showOnFocus: !1, children: g })
22977
22977
  ] });
22978
22978
  }, AC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22979
22979
  __proto__: null,
@@ -23125,7 +23125,7 @@ const SC = ({
23125
23125
  ),
23126
23126
  n && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
23127
23127
  /* @__PURE__ */ d.jsx(
23128
- qe,
23128
+ ze,
23129
23129
  {
23130
23130
  "data-testid": "like-a11y-button",
23131
23131
  element: "button",
@@ -23152,7 +23152,7 @@ const SC = ({
23152
23152
  },
23153
23153
  "aria-expanded": v,
23154
23154
  "aria-controls": `likes-tooltip-${a.slug}`,
23155
- children: /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: u.formatMessage(
23155
+ children: /* @__PURE__ */ d.jsx(ze, { showOnFocus: !1, children: u.formatMessage(
23156
23156
  { id: "discussion_likes_show" },
23157
23157
  { action: a.type }
23158
23158
  ) })
@@ -23456,7 +23456,8 @@ const la = ({
23456
23456
  }), g && ((Se = Z == null ? void 0 : Z.current) == null || Se.focus(), (Ye = Z == null ? void 0 : Z.current) == null || Ye.scrollIntoView({ behavior: "smooth" })), ie.createElement(e, {
23457
23457
  className: G("discussion-post", u, {
23458
23458
  [W]: !u || !u.includes("highlighted-text-box"),
23459
- "has-link": l.post && !C.isEditing
23459
+ "has-link": l.post && !C.isEditing,
23460
+ "is-pinned": (t == null ? void 0 : t.pinned) || !1
23460
23461
  }),
23461
23462
  ref: Z,
23462
23463
  tabIndex: g ? 0 : null,
@@ -23494,7 +23495,7 @@ const la = ({
23494
23495
  gtmType: "profile-click"
23495
23496
  }
23496
23497
  ),
23497
- t.pinned && /* @__PURE__ */ d.jsx(kn, { variant: "naked", size: "xlarge", icon: "pin" })
23498
+ t.pinned && /* @__PURE__ */ d.jsx(kn, { variant: "naked", size: "xlarge", icon: "pin", children: /* @__PURE__ */ d.jsx(ze, { children: "Pinned Post" }) })
23498
23499
  ] }),
23499
23500
  C.isEditing ? /* @__PURE__ */ d.jsx(
23500
23501
  ua,
@@ -27111,7 +27112,7 @@ const qE = ({
27111
27112
  onClick: (S) => {
27112
27113
  S.preventDefault(), S.stopPropagation(), T(B);
27113
27114
  },
27114
- children: /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: l.formatMessage(
27115
+ children: /* @__PURE__ */ d.jsx(ze, { showOnFocus: !1, children: l.formatMessage(
27115
27116
  { id: "carousel_pagination_page" },
27116
27117
  { number: B + 1, total: x }
27117
27118
  ) })
@@ -27134,7 +27135,7 @@ const qE = ({
27134
27135
  }
27135
27136
  ) })
27136
27137
  ] }),
27137
- /* @__PURE__ */ d.jsx(qe, { "aria-live": "polite", showOnFocus: !1, children: b })
27138
+ /* @__PURE__ */ d.jsx(ze, { "aria-live": "polite", showOnFocus: !1, children: b })
27138
27139
  ] })
27139
27140
  ]
27140
27141
  }
@@ -27593,7 +27594,7 @@ export {
27593
27594
  Fi as UUID_V4_REGEX,
27594
27595
  Kt as UserContext,
27595
27596
  pp as UserProvider,
27596
- qe as VisuallyHidden,
27597
+ ze as VisuallyHidden,
27597
27598
  bp as addAriaProps,
27598
27599
  Xi as basicReducer,
27599
27600
  Bh as camelCaseToDashCase,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.7.5-ac.2",
3
+ "version": "4.7.5-ac.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {