rk-designsystem 1.1.53 → 1.1.54

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.
@@ -1,6 +1,6 @@
1
- import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as ve, useCallback as ae, useRef as Ke, createContext as qt, useContext as Yt } from "react";
2
- import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as on, Button as qe, Card as rn, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as mn, Divider as gn, Dropdown as pn, ErrorSummary as fn, Field as hn, FieldDescription as kn, FieldCounter as bn, Heading as vn, Input as yn, Label as xn, Link as Tn, List as Sn, Pagination as wn, usePagination as Cn, Paragraph as jn, Popover as Dn, Radio as In, useRadioGroup as Ln, Search as An, SearchInput as Fn, SearchClear as _n, SearchButton as En, Select as Bn, Skeleton as Nn, SkipLink as Pn, EXPERIMENTAL_Suggestion as Mn, Switch as Rn, Table as zn, Tabs as On, Tag as $n, Textarea as Hn, Textfield as Wn, ToggleGroup as Vn, Tooltip as Gn, ValidationMessage as Un } from "@digdir/designsystemet-react";
3
- import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as Lt, format as Te, addDays as At, subMonths as Kn, addMonths as qn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
1
+ import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as ve, useCallback as ae, useRef as Ue, createContext as Kt, useContext as Yt } from "react";
2
+ import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as on, Button as Ke, Card as rn, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as mn, Divider as gn, Dropdown as pn, ErrorSummary as fn, Field as hn, FieldDescription as kn, FieldCounter as bn, Heading as vn, Input as yn, Label as xn, Link as Tn, List as Sn, Pagination as wn, usePagination as Cn, Paragraph as jn, Popover as Dn, Radio as In, useRadioGroup as Ln, Search as An, SearchInput as Fn, SearchClear as _n, SearchButton as En, Select as Bn, Skeleton as Nn, SkipLink as Pn, EXPERIMENTAL_Suggestion as Mn, Switch as Rn, Table as zn, Tabs as On, Tag as $n, Textarea as Hn, Textfield as Wn, ToggleGroup as Vn, Tooltip as Gn, ValidationMessage as qn } from "@digdir/designsystemet-react";
3
+ import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as Lt, format as Te, addDays as At, subMonths as Un, addMonths as Kn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
4
4
  import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as gt, XMarkIcon as pt, MagnifyingGlassIcon as ft, MenuHamburgerIcon as eo, HeartIcon as to } from "@navikt/aksel-icons";
5
5
  var Be = { exports: {} }, Se = {};
6
6
  /**
@@ -137,7 +137,7 @@ function oo() {
137
137
  }
138
138
  function d(c, A) {
139
139
  function P() {
140
- U || (U = !0, console.error(
140
+ q || (q = !0, console.error(
141
141
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
142
142
  A
143
143
  ));
@@ -248,10 +248,10 @@ React keys must be passed directly to JSX without using spread:
248
248
  return c();
249
249
  }
250
250
  };
251
- var U, ne = {}, Y = g.react_stack_bottom_frame.bind(
251
+ var q, ne = {}, Y = g.react_stack_bottom_frame.bind(
252
252
  g,
253
253
  a
254
- )(), q = I(s(a)), re = {};
254
+ )(), K = I(s(a)), re = {};
255
255
  we.Fragment = v, we.jsx = function(c, A, P) {
256
256
  var z = 1e4 > W.recentlyCreatedOwnerStacks++;
257
257
  return y(
@@ -260,7 +260,7 @@ React keys must be passed directly to JSX without using spread:
260
260
  P,
261
261
  !1,
262
262
  z ? Error("react-stack-top-frame") : Y,
263
- z ? I(s(c)) : q
263
+ z ? I(s(c)) : K
264
264
  );
265
265
  }, we.jsxs = function(c, A, P) {
266
266
  var z = 1e4 > W.recentlyCreatedOwnerStacks++;
@@ -270,7 +270,7 @@ React keys must be passed directly to JSX without using spread:
270
270
  P,
271
271
  !0,
272
272
  z ? Error("react-stack-top-frame") : Y,
273
- z ? I(s(c)) : q
273
+ z ? I(s(c)) : K
274
274
  );
275
275
  };
276
276
  })()), we;
@@ -286,7 +286,7 @@ const Ft = ue((t, e) => /* @__PURE__ */ r.jsx(Zt, { ref: e, ...t }));
286
286
  Ft.displayName = "Avatar";
287
287
  const ao = ue((t, e) => /* @__PURE__ */ r.jsx(Qt, { ref: e, ...t }));
288
288
  ao.displayName = "Badge";
289
- const ka = Xt, ba = en, va = tn, ya = nn, xa = on, ye = qe;
289
+ const ka = Xt, ba = en, va = tn, ya = nn, xa = on, ye = Ke;
290
290
  ye.displayName = "Button";
291
291
  const io = rn, Ta = sn;
292
292
  io.displayName = "Card";
@@ -727,14 +727,14 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
727
727
  }
728
728
  );
729
729
  Et.displayName = "ChevronRightIcon";
730
- const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Uo = "_grid_10l5p_41", Ko = "_dayNameCell_10l5p_48", qo = "_dateCell_10l5p_65", Yo = "_dateNumberContainer_10l5p_90", Jo = "_otherMonth_10l5p_103", Zo = "_selectedDate_10l5p_129", se = {
730
+ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", qo = "_grid_10l5p_41", Uo = "_dayNameCell_10l5p_48", Ko = "_dateCell_10l5p_65", Yo = "_dateNumberContainer_10l5p_90", Jo = "_otherMonth_10l5p_103", Zo = "_selectedDate_10l5p_129", se = {
731
731
  calendarContainer: Ho,
732
732
  calendarHeader: Wo,
733
733
  monthYear: Vo,
734
734
  navigationButtons: Go,
735
- grid: Uo,
736
- dayNameCell: Ko,
737
- dateCell: qo,
735
+ grid: qo,
736
+ dayNameCell: Uo,
737
+ dateCell: Ko,
738
738
  dateNumberContainer: Yo,
739
739
  otherMonth: Jo,
740
740
  selectedDate: Zo
@@ -770,9 +770,9 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
770
770
  return vt(F);
771
771
  });
772
772
  }, []), f = ae(() => {
773
- l || o((m) => ke(Kn(m, 1)));
773
+ l || o((m) => ke(Un(m, 1)));
774
774
  }, [l]), k = ae(() => {
775
- o((m) => ke(qn(m, 1)));
775
+ o((m) => ke(Kn(m, 1)));
776
776
  }, []), g = ae(
777
777
  (m) => {
778
778
  n && n(m);
@@ -795,7 +795,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
795
795
  /* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: p }),
796
796
  /* @__PURE__ */ r.jsxs("div", { className: se.navigationButtons, children: [
797
797
  /* @__PURE__ */ r.jsx(
798
- qe,
798
+ Ke,
799
799
  {
800
800
  variant: "tertiary",
801
801
  icon: !0,
@@ -806,7 +806,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
806
806
  }
807
807
  ),
808
808
  /* @__PURE__ */ r.jsx(
809
- qe,
809
+ Ke,
810
810
  {
811
811
  variant: "tertiary",
812
812
  icon: !0,
@@ -905,7 +905,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
905
905
  "data-size": $,
906
906
  // <-- Destrukturering
907
907
  ...N
908
- } = t, W = l !== void 0, M = Ke(null);
908
+ } = t, W = l !== void 0, M = Ue(null);
909
909
  Dt.useImperativeHandle(
910
910
  e,
911
911
  () => M.current
@@ -916,13 +916,13 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
916
916
  return yt(H);
917
917
  },
918
918
  []
919
- ), [I, U] = oe(
919
+ ), [I, q] = oe(
920
920
  () => R(l ?? u)
921
921
  );
922
922
  te(() => {
923
923
  if (W) {
924
924
  const D = R(l);
925
- D !== I && (U(D), M.current && M.current.value !== D && (M.current.value = D));
925
+ D !== I && (q(D), M.current && M.current.value !== D && (M.current.value = D));
926
926
  }
927
927
  }, [l, W, I, R]);
928
928
  const ne = ae(
@@ -931,7 +931,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
931
931
  let O = 0;
932
932
  const G = V.length;
933
933
  G <= 2 ? O = G : G <= 4 ? O = G + 1 : O = G + 2, O = Math.min(O, w.length), requestAnimationFrame(() => {
934
- if (M.current && (U(w), M.current.value = w, M.current.setSelectionRange(O, O), (w !== J || W) && y)) {
934
+ if (M.current && (q(w), M.current.value = w, M.current.setSelectionRange(O, O), (w !== J || W) && y)) {
935
935
  const Z = {
936
936
  ...D,
937
937
  target: { ...C, value: w }
@@ -941,7 +941,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
941
941
  });
942
942
  },
943
943
  [I, W, y, R]
944
- ), Y = [pe.fieldset, a].filter(Boolean).join(" "), q = [
944
+ ), Y = [pe.fieldset, a].filter(Boolean).join(" "), K = [
945
945
  pe.inputWrapper,
946
946
  o,
947
947
  L ? pe.inputWrapperError : ""
@@ -964,7 +964,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
964
964
  children: [
965
965
  n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: A, htmlFor: g, children: n }) : n,
966
966
  j && /* @__PURE__ */ r.jsx("p", { id: P, className: pe.description, children: j }),
967
- /* @__PURE__ */ r.jsxs("div", { className: q, children: [
967
+ /* @__PURE__ */ r.jsxs("div", { className: K, children: [
968
968
  /* @__PURE__ */ r.jsx(
969
969
  "input",
970
970
  {
@@ -1056,19 +1056,19 @@ function Re(t) {
1056
1056
  function Ct(t) {
1057
1057
  return Object.prototype.toString.call(t) === "[object Object]";
1058
1058
  }
1059
- function K(t) {
1059
+ function U(t) {
1060
1060
  return Math.abs(t);
1061
1061
  }
1062
1062
  function et(t) {
1063
1063
  return Math.sign(t);
1064
1064
  }
1065
1065
  function Ie(t, e) {
1066
- return K(t - e);
1066
+ return U(t - e);
1067
1067
  }
1068
1068
  function ur(t, e) {
1069
- if (t === 0 || e === 0 || K(t) <= K(e)) return 0;
1070
- const n = Ie(K(t), K(e));
1071
- return K(n / t);
1069
+ if (t === 0 || e === 0 || U(t) <= U(e)) return 0;
1070
+ const n = Ie(U(t), U(e));
1071
+ return U(n / t);
1072
1072
  }
1073
1073
  function mr(t) {
1074
1074
  return Math.round(t * 100) / 100;
@@ -1211,7 +1211,7 @@ function fr(t, e) {
1211
1211
  };
1212
1212
  }
1213
1213
  function fe(t = 0, e = 0) {
1214
- const n = K(t - e);
1214
+ const n = U(t - e);
1215
1215
  function s(u) {
1216
1216
  return u < t;
1217
1217
  }
@@ -1244,7 +1244,7 @@ function Nt(t, e, n) {
1244
1244
  } = fe(0, t), i = t + 1;
1245
1245
  let a = o(e);
1246
1246
  function o(k) {
1247
- return n ? K((i + k) % i) : s(k);
1247
+ return n ? U((i + k) % i) : s(k);
1248
1248
  }
1249
1249
  function d() {
1250
1250
  return a;
@@ -1279,7 +1279,7 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
1279
1279
  mouse: 500,
1280
1280
  touch: 600
1281
1281
  }, W = h ? 43 : 25;
1282
- let M = !1, R = 0, I = 0, U = !1, ne = !1, Y = !1, q = !1;
1282
+ let M = !1, R = 0, I = 0, q = !1, ne = !1, Y = !1, K = !1;
1283
1283
  function re(w) {
1284
1284
  if (!m) return;
1285
1285
  function O(Z) {
@@ -1294,7 +1294,7 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
1294
1294
  j.clear(), L.clear();
1295
1295
  }
1296
1296
  function A() {
1297
- const w = q ? n : e;
1297
+ const w = K ? n : e;
1298
1298
  L.add(w, "touchmove", C, E).add(w, "touchend", H).add(w, "mousemove", C, E).add(w, "mouseup", H);
1299
1299
  }
1300
1300
  function P(w) {
@@ -1302,33 +1302,33 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
1302
1302
  return F.includes(O);
1303
1303
  }
1304
1304
  function z() {
1305
- return (h ? N : $)[q ? "mouse" : "touch"];
1305
+ return (h ? N : $)[K ? "mouse" : "touch"];
1306
1306
  }
1307
1307
  function x(w, O) {
1308
1308
  const G = f.add(et(w) * -1), Z = y.byDistance(w, !h).distance;
1309
- return h || K(w) < B ? Z : v && O ? Z * 0.5 : y.byIndex(G.get(), 0).distance;
1309
+ return h || U(w) < B ? Z : v && O ? Z * 0.5 : y.byIndex(G.get(), 0).distance;
1310
1310
  }
1311
1311
  function D(w) {
1312
1312
  const O = Je(w, s);
1313
- q = O, Y = h && O && !w.buttons && M, M = Ie(i.get(), o.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (U = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(o), A(), R = a.readPoint(w), I = a.readPoint(w, T), k.emit("pointerDown")));
1313
+ K = O, Y = h && O && !w.buttons && M, M = Ie(i.get(), o.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (q = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(o), A(), R = a.readPoint(w), I = a.readPoint(w, T), k.emit("pointerDown")));
1314
1314
  }
1315
1315
  function C(w) {
1316
1316
  if (!Je(w, s) && w.touches.length >= 2) return H(w);
1317
1317
  const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G, R), de = Ie(Z, I);
1318
- if (!ne && !q && (!w.cancelable || (ne = le > de, !ne)))
1318
+ if (!ne && !K && (!w.cancelable || (ne = le > de, !ne)))
1319
1319
  return H(w);
1320
1320
  const me = a.pointerMove(w);
1321
1321
  le > b && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(_(me)), w.preventDefault();
1322
1322
  }
1323
1323
  function H(w) {
1324
1324
  const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le = x(_(Z), G), de = ur(Z, le), me = W - 10 * de, ce = p + de / 50;
1325
- ne = !1, U = !1, L.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), q = !1, k.emit("pointerUp");
1325
+ ne = !1, q = !1, L.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), K = !1, k.emit("pointerUp");
1326
1326
  }
1327
1327
  function J(w) {
1328
1328
  Y && (w.stopPropagation(), w.preventDefault(), Y = !1);
1329
1329
  }
1330
1330
  function X() {
1331
- return U;
1331
+ return q;
1332
1332
  }
1333
1333
  return {
1334
1334
  init: re,
@@ -1355,7 +1355,7 @@ function kr(t, e) {
1355
1355
  function u(f) {
1356
1356
  if (!s || !i) return 0;
1357
1357
  const k = o(i) - o(s), g = a(f) - a(s), h = a(f) - a(i) > 170, b = k / g;
1358
- return g && !h && K(b) > 0.1 ? b : 0;
1358
+ return g && !h && U(b) > 0.1 ? b : 0;
1359
1359
  }
1360
1360
  return {
1361
1361
  pointerDown: d,
@@ -1406,7 +1406,7 @@ function yr(t, e, n, s, i, a, o) {
1406
1406
  for (const T of m) {
1407
1407
  if (f) return;
1408
1408
  const _ = T.target === t, F = s.indexOf(T.target), E = _ ? u : y[F], j = k(_ ? t : s[F]);
1409
- if (K(j - E) >= 0.5) {
1409
+ if (U(j - E) >= 0.5) {
1410
1410
  v.reInit(), e.emit("resize");
1411
1411
  break;
1412
1412
  }
@@ -1435,7 +1435,7 @@ function xr(t, e, n, s, i, a) {
1435
1435
  }
1436
1436
  function g() {
1437
1437
  const E = s.get() - e.get();
1438
- return K(E) < 1e-3;
1438
+ return U(E) < 1e-3;
1439
1439
  }
1440
1440
  function h() {
1441
1441
  return l;
@@ -1479,8 +1479,8 @@ function Tr(t, e, n, s, i) {
1479
1479
  }
1480
1480
  function y(g) {
1481
1481
  if (!u()) return;
1482
- const h = t.reachedMin(e.get()) ? "min" : "max", b = K(t[h] - e.get()), v = n.get() - e.get(), p = d.constrain(b / o);
1483
- n.subtract(v * p), !g && K(v) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
1482
+ const h = t.reachedMin(e.get()) ? "min" : "max", b = U(t[h] - e.get()), v = n.get() - e.get(), p = d.constrain(b / o);
1483
+ n.subtract(v * p), !g && U(v) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
1484
1484
  }
1485
1485
  function f(g) {
1486
1486
  l = !g;
@@ -1567,10 +1567,10 @@ function Dr(t, e, n, s, i) {
1567
1567
  groupSlides: d
1568
1568
  } = i, l = f().map(e.measure), u = k(), y = g();
1569
1569
  function f() {
1570
- return d(s).map((b) => ie(b)[o] - b[0][a]).map(K);
1570
+ return d(s).map((b) => ie(b)[o] - b[0][a]).map(U);
1571
1571
  }
1572
1572
  function k() {
1573
- return s.map((b) => n[a] - b[a]).map((b) => -K(b));
1573
+ return s.map((b) => n[a] - b[a]).map((b) => -U(b));
1574
1574
  }
1575
1575
  function g() {
1576
1576
  return d(u).map((b) => b[0]).map((b, v) => b + l[v]);
@@ -1613,13 +1613,13 @@ function Lr(t, e, n, s, i) {
1613
1613
  constrain: d
1614
1614
  } = s;
1615
1615
  function l(h) {
1616
- return h.concat().sort((b, v) => K(b) - K(v))[0];
1616
+ return h.concat().sort((b, v) => U(b) - U(v))[0];
1617
1617
  }
1618
1618
  function u(h) {
1619
1619
  const b = t ? o(h) : d(h), v = e.map((m, T) => ({
1620
1620
  diff: y(m - b, 0),
1621
1621
  index: T
1622
- })).sort((m, T) => K(m.diff) - K(T.diff)), {
1622
+ })).sort((m, T) => U(m.diff) - U(T.diff)), {
1623
1623
  index: p
1624
1624
  } = v[0];
1625
1625
  return {
@@ -1891,7 +1891,7 @@ function Nr(t, e, n, s, i, a) {
1891
1891
  function h() {
1892
1892
  if (!u) return 0;
1893
1893
  const m = n[0];
1894
- return K(e[d] - m[d]);
1894
+ return U(e[d] - m[d]);
1895
1895
  }
1896
1896
  function b() {
1897
1897
  if (!u) return 0;
@@ -1902,7 +1902,7 @@ function Nr(t, e, n, s, i, a) {
1902
1902
  return n.map((m, T, _) => {
1903
1903
  const F = !T, E = tt(_, T);
1904
1904
  return F ? k[T] + y : E ? k[T] + f : _[T + 1][d] - m[d];
1905
- }).map(K);
1905
+ }).map(U);
1906
1906
  }
1907
1907
  return {
1908
1908
  slideSizes: k,
@@ -1922,7 +1922,7 @@ function Pr(t, e, n, s, i, a, o, d, l) {
1922
1922
  }
1923
1923
  function h(p) {
1924
1924
  return p.length ? Le(p).reduce((m, T, _) => {
1925
- const F = ie(m) || 0, E = F === 0, j = T === _e(p), L = i[u] - a[F][u], B = i[u] - a[T][y], $ = !s && E ? f(o) : 0, N = !s && j ? f(d) : 0, W = K(B - N - (L + $));
1925
+ const F = ie(m) || 0, E = F === 0, j = T === _e(p), L = i[u] - a[F][u], B = i[u] - a[T][y], $ = !s && E ? f(o) : 0, N = !s && j ? f(d) : 0, W = U(B - N - (L + $));
1926
1926
  return _ && W > e + l && m.push(T), j && m.push(p.length), m;
1927
1927
  }, []).map((m, T, _) => {
1928
1928
  const F = Math.max(_[T - 1] || 0);
@@ -1954,12 +1954,12 @@ function Mr(t, e, n, s, i, a, o) {
1954
1954
  watchSlides: _,
1955
1955
  watchDrag: F,
1956
1956
  watchFocus: E
1957
- } = a, j = 2, L = br(), B = L.measure(e), $ = n.map(L.measure), N = fr(l, u), W = N.measureSize(B), M = vr(W), R = gr(d, W), I = !f && !!m, U = f || !!m, {
1957
+ } = a, j = 2, L = br(), B = L.measure(e), $ = n.map(L.measure), N = fr(l, u), W = N.measureSize(B), M = vr(W), R = gr(d, W), I = !f && !!m, q = f || !!m, {
1958
1958
  slideSizes: ne,
1959
1959
  slideSizesWithGaps: Y,
1960
- startGap: q,
1960
+ startGap: K,
1961
1961
  endGap: re
1962
- } = Nr(N, B, $, n, U, i), c = Pr(N, W, v, f, B, $, q, re, j), {
1962
+ } = Nr(N, B, $, n, q, i), c = Pr(N, W, v, f, B, $, K, re, j), {
1963
1963
  snaps: A,
1964
1964
  snapsAligned: P
1965
1965
  } = Dr(N, R, B, $, c), z = -ie(A) + ie(Y), {
@@ -1992,10 +1992,10 @@ function Mr(t, e, n, s, i, a, o) {
1992
1992
  loop: it
1993
1993
  }
1994
1994
  }, lt) => {
1995
- const dt = he.settled(), Ut = !Gt.shouldConstrain(), ct = it ? dt : dt && Ut, ut = ct && !Wt.pointerDown();
1995
+ const dt = he.settled(), qt = !Gt.shouldConstrain(), ct = it ? dt : dt && qt, ut = ct && !Wt.pointerDown();
1996
1996
  ut && Vt.stop();
1997
- const Kt = We.get() * lt + Ot.get() * (1 - lt);
1998
- Ee.set(Kt), it && ($t.loop(he.direction()), Ht.loop()), He.to(Ee.get()), ut && at.emit("settle"), ct || at.emit("scroll");
1997
+ const Ut = We.get() * lt + Ot.get() * (1 - lt);
1998
+ Ee.set(Ut), it && ($t.loop(he.direction()), Ht.loop()), He.to(Ee.get()), ut && at.emit("settle"), ct || at.emit("scroll");
1999
1999
  }, G = pr(s, i, () => w($e), (he) => O($e, he)), Z = 0.68, le = C[J.get()], de = De(le), me = De(le), ce = De(le), ge = De(le), xe = xr(de, ce, me, ge, k, Z), ze = Lr(f, C, z, H, ge), Oe = Ar(G, J, X, xe, ze, ge, o), ot = jr(H), rt = Fe(), Rt = Br(e, n, o, b), {
2000
2000
  slideRegistry: st
2001
2001
  } = Ir(I, m, C, D, c, V), zt = Fr(t, n, st, Oe, xe, rt, o, E), $e = {
@@ -2176,7 +2176,7 @@ function Me(t, e, n) {
2176
2176
  const w = p.index.add(1).get();
2177
2177
  R(w, V, -1);
2178
2178
  }
2179
- function U(V) {
2179
+ function q(V) {
2180
2180
  const w = p.index.add(-1).get();
2181
2181
  R(w, V, 1);
2182
2182
  }
@@ -2186,7 +2186,7 @@ function Me(t, e, n) {
2186
2186
  function Y() {
2187
2187
  return p.index.add(-1).get() !== c();
2188
2188
  }
2189
- function q() {
2189
+ function K() {
2190
2190
  return p.scrollSnapList;
2191
2191
  }
2192
2192
  function re() {
@@ -2233,9 +2233,9 @@ function Me(t, e, n) {
2233
2233
  reInit: b,
2234
2234
  rootNode: C,
2235
2235
  scrollNext: I,
2236
- scrollPrev: U,
2236
+ scrollPrev: q,
2237
2237
  scrollProgress: re,
2238
- scrollSnapList: q,
2238
+ scrollSnapList: K,
2239
2239
  scrollTo: R,
2240
2240
  selectedScrollSnap: c,
2241
2241
  slideNodes: J,
@@ -2246,7 +2246,7 @@ function Me(t, e, n) {
2246
2246
  }
2247
2247
  Me.globalOptions = void 0;
2248
2248
  function nt(t = {}, e = []) {
2249
- const n = Ke(t), s = Ke(e), [i, a] = oe(), [o, d] = oe(), l = ae(() => {
2249
+ const n = Ue(t), s = Ue(e), [i, a] = oe(), [o, d] = oe(), l = ae(() => {
2250
2250
  i && i.reInit(n.current, s.current);
2251
2251
  }, [i]);
2252
2252
  return te(() => {
@@ -2263,14 +2263,14 @@ function nt(t = {}, e = []) {
2263
2263
  }, [o, a]), [d, i];
2264
2264
  }
2265
2265
  nt.globalOptions = void 0;
2266
- const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Ur = "_slideInner_1bu1s_37", Kr = "_loaderOverlay_1bu1s_45", qr = "_image_1bu1s_55", Yr = "_loaded_1bu1s_66", Jr = "_empty_1bu1s_78", Zr = "_controls_1bu1s_84", Xr = "_arrows_1bu1s_94", Qr = "_dots_1bu1s_104", es = "_dot_1bu1s_104", ts = "_dotActive_1bu1s_130", Q = {
2266
+ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", qr = "_slideInner_1bu1s_37", Ur = "_loaderOverlay_1bu1s_45", Kr = "_image_1bu1s_55", Yr = "_loaded_1bu1s_66", Jr = "_empty_1bu1s_78", Zr = "_controls_1bu1s_84", Xr = "_arrows_1bu1s_94", Qr = "_dots_1bu1s_104", es = "_dot_1bu1s_104", ts = "_dotActive_1bu1s_130", Q = {
2267
2267
  carouselContainer: Hr,
2268
2268
  viewport: Wr,
2269
2269
  slides: Vr,
2270
2270
  slide: Gr,
2271
- slideInner: Ur,
2272
- loaderOverlay: Kr,
2273
- image: qr,
2271
+ slideInner: qr,
2272
+ loaderOverlay: Ur,
2273
+ image: Kr,
2274
2274
  loaded: Yr,
2275
2275
  empty: Jr,
2276
2276
  controls: Zr,
@@ -2438,7 +2438,7 @@ const Na = Dn, Pa = In, Ma = Ln, Pe = Object.assign(An, {
2438
2438
  Input: Fn
2439
2439
  }), Ra = Bn, za = Nn, Oa = Pn, ls = Mn;
2440
2440
  ls.displayName = "Suggestion";
2441
- const Ue = Rn, $a = zn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, Ua = Vn, Ka = Gn, ds = ue((t, e) => /* @__PURE__ */ r.jsx(Un, { ref: e, ...t }));
2441
+ const qe = Rn, $a = zn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, qa = Vn, Ua = Gn, ds = ue((t, e) => /* @__PURE__ */ r.jsx(qn, { ref: e, ...t }));
2442
2442
  ds.displayName = "ValidationMessage";
2443
2443
  const cs = {
2444
2444
  NO: {
@@ -3968,7 +3968,7 @@ const cs = {
3968
3968
  // Footer
3969
3969
  footer: {}
3970
3970
  }
3971
- }, Mt = qt(void 0), qa = ({ children: t }) => {
3971
+ }, Mt = Kt(void 0), Ka = ({ children: t }) => {
3972
3972
  const [e, n] = oe("NO"), s = (i) => {
3973
3973
  const a = i.split(".");
3974
3974
  let o = cs[e];
@@ -3985,7 +3985,7 @@ const cs = {
3985
3985
  if (t === void 0)
3986
3986
  throw new Error("useLanguage must be used within a LanguageProvider");
3987
3987
  return t;
3988
- }, ms = "_header_125p6_1", gs = "_languageSwitch_125p6_36", ps = "_searchOverlay_125p6_40", fs = "_headerExtension_125p6_45", hs = "_extensionContentWrapper_125p6_61", ks = "_extensionContent_125p6_61", bs = "_extensionDivider_125p6_84", vs = "_languageLabel_125p6_98", ys = "_languageLink_125p6_104", xs = "_headerInner_125p6_129", Ts = "_logoWrapper_125p6_146", Ss = "_logo_125p6_146", ws = "_secondaryLogoWrapper_125p6_169", Cs = "_slotComponent_125p6_178", js = "_slotContainer_125p6_188", Ds = "_slotText_125p6_196", Is = "_secondaryLogo_125p6_169", Ls = "_redCrossLogo_125p6_223", As = "_primaryLogo_125p6_229", Fs = "_navItems_125p6_233", _s = "_navLink_125p6_242", Es = "_actions_125p6_255", Bs = "_ctaButton_125p6_263", Ns = "_themeToggle_125p6_268", Ps = "_userInfo_125p6_273", Ms = "_userName_125p6_279", Rs = "_loginLink_125p6_286", zs = "_loginText_125p6_295", Os = "_underline_125p6_302", $s = "_searchButtonWrapper_125p6_308", Hs = "_buttonText_125p6_312", Ws = "_menuButton_125p6_317", Vs = "_menuOverlay_125p6_322", Gs = "_searchContent_125p6_356", Us = "_menuContent_125p6_366", Ks = "_menuLeftColumn_125p6_375", qs = "_menuRightColumn_125p6_381", Ys = "_slotContent_125p6_395", Js = "_navList_125p6_408", Zs = "_menuUtilities_125p6_415", Xs = "_menuBrand_125p6_422", Qs = "_suggestionsSection_125p6_426", ea = "_suggestionsTitle_125p6_432", ta = "_searchResults_125p6_441", na = "_resultList_125p6_447", oa = "_resultItem_125p6_453", ra = "_resultLink_125p6_461", sa = "_suggestionIcon_125p6_475", aa = "_suggestionText_125p6_488", ia = "_highlightedText_125p6_495", la = "_remainingText_125p6_500", da = "_viewAllLink_125p6_513", ca = "_noResults_125p6_548", S = {
3988
+ }, ms = "_header_q5a4u_1", gs = "_languageSwitch_q5a4u_36", ps = "_searchOverlay_q5a4u_40", fs = "_headerExtension_q5a4u_45", hs = "_extensionContentWrapper_q5a4u_61", ks = "_extensionContent_q5a4u_61", bs = "_extensionDivider_q5a4u_84", vs = "_languageLabel_q5a4u_98", ys = "_languageLink_q5a4u_104", xs = "_headerInner_q5a4u_129", Ts = "_logoWrapper_q5a4u_146", Ss = "_logo_q5a4u_146", ws = "_secondaryLogoWrapper_q5a4u_169", Cs = "_slotComponent_q5a4u_178", js = "_slotContainer_q5a4u_188", Ds = "_slotText_q5a4u_196", Is = "_secondaryLogo_q5a4u_169", Ls = "_redCrossLogo_q5a4u_223", As = "_primaryLogo_q5a4u_229", Fs = "_navItems_q5a4u_233", _s = "_navLink_q5a4u_242", Es = "_actions_q5a4u_255", Bs = "_ctaButton_q5a4u_263", Ns = "_themeToggle_q5a4u_268", Ps = "_userInfo_q5a4u_273", Ms = "_userName_q5a4u_279", Rs = "_loginLink_q5a4u_286", zs = "_loginText_q5a4u_295", Os = "_underline_q5a4u_302", $s = "_searchButtonWrapper_q5a4u_308", Hs = "_buttonText_q5a4u_312", Ws = "_menuButton_q5a4u_317", Vs = "_menuOverlay_q5a4u_322", Gs = "_searchContent_q5a4u_356", qs = "_menuContent_q5a4u_366", Us = "_menuLeftColumn_q5a4u_375", Ks = "_menuRightColumn_q5a4u_381", Ys = "_slotContent_q5a4u_395", Js = "_navList_q5a4u_408", Zs = "_menuUtilities_q5a4u_415", Xs = "_menuBrand_q5a4u_422", Qs = "_suggestionsSection_q5a4u_426", ea = "_suggestionsTitle_q5a4u_432", ta = "_searchResults_q5a4u_441", na = "_resultList_q5a4u_447", oa = "_resultItem_q5a4u_453", ra = "_resultLink_q5a4u_461", sa = "_suggestionIcon_q5a4u_475", aa = "_suggestionText_q5a4u_488", ia = "_highlightedText_q5a4u_495", la = "_remainingText_q5a4u_500", da = "_viewAllLink_q5a4u_513", ca = "_noResults_q5a4u_548", S = {
3989
3989
  header: ms,
3990
3990
  languageSwitch: gs,
3991
3991
  searchOverlay: ps,
@@ -4020,9 +4020,9 @@ const cs = {
4020
4020
  menuButton: Ws,
4021
4021
  menuOverlay: Vs,
4022
4022
  searchContent: Gs,
4023
- menuContent: Us,
4024
- menuLeftColumn: Ks,
4025
- menuRightColumn: qs,
4023
+ menuContent: qs,
4024
+ menuLeftColumn: Us,
4025
+ menuRightColumn: Ks,
4026
4026
  slotContent: Ys,
4027
4027
  navList: Js,
4028
4028
  menuUtilities: Zs,
@@ -4125,7 +4125,7 @@ const cs = {
4125
4125
  showModeToggle: T = !1,
4126
4126
  showLanguageSwitch: _ = !1
4127
4127
  }) => {
4128
- const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N, W] = oe("light"), { language: M, setLanguage: R, t: I } = us(), [U, ne] = oe(!1);
4128
+ const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N, W] = oe("light"), { language: M, setLanguage: R, t: I } = us(), [q, ne] = oe(!1);
4129
4129
  te(() => {
4130
4130
  const x = "rk-header-inline-styles";
4131
4131
  if (typeof document > "u" || document.getElementById(x)) return;
@@ -4160,13 +4160,13 @@ const cs = {
4160
4160
  te(() => {
4161
4161
  E(!1), L(!1), $("");
4162
4162
  }, [t]), te(() => {
4163
- if (!(typeof document > "u") && F && U) {
4163
+ if (!(typeof document > "u") && F && q) {
4164
4164
  const x = document.body.style.overflow;
4165
4165
  return document.body.style.overflow = "hidden", () => {
4166
4166
  document.body.style.overflow = x;
4167
4167
  };
4168
4168
  }
4169
- }, [F, U]), te(() => {
4169
+ }, [F, q]), te(() => {
4170
4170
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
4171
4171
  const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
4172
4172
  return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
@@ -4187,7 +4187,7 @@ const cs = {
4187
4187
  return C.observe(x), () => {
4188
4188
  window.removeEventListener("resize", D), C.disconnect();
4189
4189
  };
4190
- }, [U]), te(() => {
4190
+ }, [q]), te(() => {
4191
4191
  if (typeof document > "u") return;
4192
4192
  const x = document.querySelector(`.${S.logoWrapper}`);
4193
4193
  if (!x) return;
@@ -4196,7 +4196,7 @@ const cs = {
4196
4196
  document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
4197
4197
  };
4198
4198
  return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
4199
- }, [U]), te(() => {
4199
+ }, [q]), te(() => {
4200
4200
  if (typeof document > "u" || !j) {
4201
4201
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
4202
4202
  return;
@@ -4213,7 +4213,7 @@ const cs = {
4213
4213
  window.removeEventListener("resize", D), C.disconnect();
4214
4214
  };
4215
4215
  }, [j]);
4216
- const q = () => {
4216
+ const K = () => {
4217
4217
  const x = N === "light" ? "dark" : "light";
4218
4218
  W(x), document.documentElement.setAttribute("data-color-scheme", x);
4219
4219
  }, re = (x) => {
@@ -4240,11 +4240,11 @@ const cs = {
4240
4240
  return /* @__PURE__ */ r.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
4241
4241
  m && /* @__PURE__ */ r.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: S.extensionContentWrapper, children: [
4242
4242
  T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
4243
- Ue,
4243
+ qe,
4244
4244
  {
4245
4245
  "data-size": "sm",
4246
4246
  checked: N === "dark",
4247
- onChange: q,
4247
+ onChange: K,
4248
4248
  label: I("header.darkMode"),
4249
4249
  color: "neutral",
4250
4250
  "data-color-scheme": "light"
@@ -4302,7 +4302,7 @@ const cs = {
4302
4302
  }
4303
4303
  ) : f ? /* @__PURE__ */ r.jsx("div", { className: S.slotComponent, children: /* @__PURE__ */ r.jsx("div", { className: S.slotContainer, children: /* @__PURE__ */ r.jsx("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
4304
4304
  ] }),
4305
- v && b && b.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
4305
+ v && b && b.length > 0 && !q && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
4306
4306
  Ne,
4307
4307
  {
4308
4308
  href: x.href,
@@ -4330,10 +4330,10 @@ const cs = {
4330
4330
  }
4331
4331
  ),
4332
4332
  !m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
4333
- Ue,
4333
+ qe,
4334
4334
  {
4335
4335
  checked: N === "dark",
4336
- onChange: q,
4336
+ onChange: K,
4337
4337
  "aria-label": I("header.toggleTheme")
4338
4338
  }
4339
4339
  ) }),
@@ -4360,7 +4360,7 @@ const cs = {
4360
4360
  ]
4361
4361
  }
4362
4362
  ) }),
4363
- (p || U) && /* @__PURE__ */ r.jsxs(
4363
+ (p || q) && /* @__PURE__ */ r.jsxs(
4364
4364
  ye,
4365
4365
  {
4366
4366
  variant: "primary",
@@ -4381,7 +4381,7 @@ const cs = {
4381
4381
  F && /* @__PURE__ */ r.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.menuContent, children: [
4382
4382
  /* @__PURE__ */ r.jsx("div", { className: S.menuLeftColumn }),
4383
4383
  /* @__PURE__ */ r.jsxs("div", { className: S.menuRightColumn, children: [
4384
- U && (_ || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
4384
+ q && (_ || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
4385
4385
  _ && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4386
4386
  /* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4387
4387
  /* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
@@ -4412,11 +4412,11 @@ const cs = {
4412
4412
  ] })
4413
4413
  ] }),
4414
4414
  T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
4415
- Ue,
4415
+ qe,
4416
4416
  {
4417
4417
  "data-size": "sm",
4418
4418
  checked: N === "dark",
4419
- onChange: q,
4419
+ onChange: K,
4420
4420
  label: I("header.darkMode"),
4421
4421
  color: "neutral",
4422
4422
  "data-color-scheme": "light"
@@ -4425,7 +4425,7 @@ const cs = {
4425
4425
  ] }),
4426
4426
  /* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
4427
4427
  n,
4428
- U && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
4428
+ q && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
4429
4429
  Ne,
4430
4430
  {
4431
4431
  href: x.href,
@@ -4438,7 +4438,7 @@ const cs = {
4438
4438
  D
4439
4439
  )) })
4440
4440
  ] }),
4441
- U && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
4441
+ q && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
4442
4442
  ] })
4443
4443
  ] }) }),
4444
4444
  j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
@@ -4619,6 +4619,7 @@ function ma(t) {
4619
4619
  .${e.searchContent} { padding: var(--ds-size-6); }
4620
4620
  .${e.menuContent} { flex-direction: column; padding: 0; min-height: 100%; }
4621
4621
  .${e.menuRightColumn} { padding: var(--ds-size-6); gap: var(--ds-size-4); flex: 1; display: flex; flex-direction: column; min-height: 0; }
4622
+ .${e.slotContent} { padding: 0; }
4622
4623
  .${e.menuLeftColumn} { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: var(--ds-size-6); }
4623
4624
  .${e.menuBrand} { display: flex; justify-content: flex-start; margin-top: auto; padding: var(--ds-size-6); margin-left: calc(-1 * var(--ds-size-6)); margin-right: calc(-1 * var(--ds-size-6)); margin-bottom: calc(-1 * var(--ds-size-6)); background-color: white; }
4624
4625
  .${e.menuUtilities} .${e.languageSwitch} :global([popover]) { background-color: var(--ds-color-neutral-background-default) !important; margin-top: 0 !important; position: fixed !important; overflow: visible; z-index: 20000 !important; }
@@ -4662,7 +4663,7 @@ export {
4662
4663
  as as Heading,
4663
4664
  Fa as Input,
4664
4665
  is as Label,
4665
- qa as LanguageProvider,
4666
+ Ka as LanguageProvider,
4666
4667
  Ne as Link,
4667
4668
  _a as List,
4668
4669
  Ea as Pagination,
@@ -4675,14 +4676,14 @@ export {
4675
4676
  Oa as SkipLink,
4676
4677
  ns as Spinner,
4677
4678
  ls as Suggestion,
4678
- Ue as Switch,
4679
+ qe as Switch,
4679
4680
  $a as Table,
4680
4681
  Ha as Tabs,
4681
4682
  Wa as Tag,
4682
4683
  Va as Textarea,
4683
4684
  Ga as Textfield,
4684
- Ua as ToggleGroup,
4685
- Ka as Tooltip,
4685
+ qa as ToggleGroup,
4686
+ Ua as Tooltip,
4686
4687
  ds as ValidationMessage,
4687
4688
  Sa as useCheckboxGroup,
4688
4689
  us as useLanguage,