rk-designsystem 1.1.56 → 1.1.58

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,8 +1,8 @@
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 zn, Switch as Mn, Table as Rn, 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
- 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
- var Be = { exports: {} }, Se = {};
1
+ import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as be, useCallback as ae, useRef as qe, 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 pn, Dropdown as gn, ErrorSummary as fn, Field as hn, FieldDescription as kn, FieldCounter as vn, Heading as bn, 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 An, Search as Ln, SearchInput as Fn, SearchClear as Bn, SearchButton as En, Select as Nn, Skeleton as _n, SkipLink as Pn, EXPERIMENTAL_Suggestion as Rn, Switch as Mn, 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 At, format as Te, addDays as Lt, subMonths as qn, addMonths as Kn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
4
+ import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as pt, XMarkIcon as gt, MagnifyingGlassIcon as ft, MenuHamburgerIcon as eo, HeartIcon as to } from "@navikt/aksel-icons";
5
+ var Ne = { exports: {} }, Se = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.js
@@ -50,14 +50,14 @@ function oo() {
50
50
  function t(c) {
51
51
  if (c == null) return null;
52
52
  if (typeof c == "function")
53
- return c.$$typeof === N ? null : c.displayName || c.name || null;
53
+ return c.$$typeof === _ ? null : c.displayName || c.name || null;
54
54
  if (typeof c == "string") return c;
55
55
  switch (c) {
56
- case v:
56
+ case b:
57
57
  return "Fragment";
58
58
  case m:
59
59
  return "Profiler";
60
- case p:
60
+ case g:
61
61
  return "StrictMode";
62
62
  case E:
63
63
  return "Suspense";
@@ -70,21 +70,21 @@ function oo() {
70
70
  switch (typeof c.tag == "number" && console.error(
71
71
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
72
72
  ), c.$$typeof) {
73
- case b:
73
+ case v:
74
74
  return "Portal";
75
- case _:
75
+ case B:
76
76
  return c.displayName || "Context";
77
77
  case T:
78
78
  return (c._context.displayName || "Context") + ".Consumer";
79
79
  case F:
80
- var A = c.render;
81
- return c = c.displayName, c || (c = A.displayName || A.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
82
- case L:
83
- return A = c.displayName || null, A !== null ? A : t(c.type) || "Memo";
84
- case B:
85
- A = c._payload, c = c._init;
80
+ var L = c.render;
81
+ return c = c.displayName, c || (c = L.displayName || L.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
82
+ case A:
83
+ return L = c.displayName || null, L !== null ? L : t(c.type) || "Memo";
84
+ case N:
85
+ L = c._payload, c = c._init;
86
86
  try {
87
- return t(c(A));
87
+ return t(c(L));
88
88
  } catch {
89
89
  }
90
90
  }
@@ -96,27 +96,27 @@ function oo() {
96
96
  function n(c) {
97
97
  try {
98
98
  e(c);
99
- var A = !1;
99
+ var L = !1;
100
100
  } catch {
101
- A = !0;
101
+ L = !0;
102
102
  }
103
- if (A) {
104
- A = console;
105
- var P = A.error, R = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
103
+ if (L) {
104
+ L = console;
105
+ var P = L.error, z = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
106
106
  return P.call(
107
- A,
107
+ L,
108
108
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- R
109
+ z
110
110
  ), e(c);
111
111
  }
112
112
  }
113
113
  function s(c) {
114
- if (c === v) return "<>";
115
- if (typeof c == "object" && c !== null && c.$$typeof === B)
114
+ if (c === b) return "<>";
115
+ if (typeof c == "object" && c !== null && c.$$typeof === N)
116
116
  return "<...>";
117
117
  try {
118
- var A = t(c);
119
- return A ? "<" + A + ">" : "<...>";
118
+ var L = t(c);
119
+ return L ? "<" + L + ">" : "<...>";
120
120
  } catch {
121
121
  return "<...>";
122
122
  }
@@ -129,17 +129,17 @@ function oo() {
129
129
  return Error("react-stack-top-frame");
130
130
  }
131
131
  function o(c) {
132
- if (z.call(c, "key")) {
133
- var A = Object.getOwnPropertyDescriptor(c, "key").get;
134
- if (A && A.isReactWarning) return !1;
132
+ if (R.call(c, "key")) {
133
+ var L = Object.getOwnPropertyDescriptor(c, "key").get;
134
+ if (L && L.isReactWarning) return !1;
135
135
  }
136
136
  return c.key !== void 0;
137
137
  }
138
- function d(c, A) {
138
+ function d(c, L) {
139
139
  function P() {
140
- q || (q = !0, console.error(
140
+ U || (U = !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
- A
142
+ L
143
143
  ));
144
144
  }
145
145
  P.isReactWarning = !0, Object.defineProperty(c, "key", {
@@ -153,14 +153,14 @@ function oo() {
153
153
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
154
154
  )), c = this.props.ref, c !== void 0 ? c : null;
155
155
  }
156
- function u(c, A, P, R, x, D) {
156
+ function u(c, L, P, z, x, D) {
157
157
  var C = P.ref;
158
158
  return c = {
159
159
  $$typeof: h,
160
160
  type: c,
161
- key: A,
161
+ key: L,
162
162
  props: P,
163
- _owner: R
163
+ _owner: z
164
164
  }, (C !== void 0 ? C : null) !== null ? Object.defineProperty(c, "ref", {
165
165
  enumerable: !1,
166
166
  get: l
@@ -186,42 +186,42 @@ function oo() {
186
186
  value: D
187
187
  }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
188
188
  }
189
- function y(c, A, P, R, x, D) {
190
- var C = A.children;
189
+ function y(c, L, P, z, x, D) {
190
+ var C = L.children;
191
191
  if (C !== void 0)
192
- if (R)
192
+ if (z)
193
193
  if (M(C)) {
194
- for (R = 0; R < C.length; R++)
195
- f(C[R]);
194
+ for (z = 0; z < C.length; z++)
195
+ f(C[z]);
196
196
  Object.freeze && Object.freeze(C);
197
197
  } else
198
198
  console.error(
199
199
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
200
200
  );
201
201
  else f(C);
202
- if (z.call(A, "key")) {
202
+ if (R.call(L, "key")) {
203
203
  C = t(c);
204
- var H = Object.keys(A).filter(function(X) {
204
+ var H = Object.keys(L).filter(function(X) {
205
205
  return X !== "key";
206
206
  });
207
- R = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", re[C + R] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
207
+ z = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", re[C + z] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
208
208
  `A props object containing a "key" prop is being spread into JSX:
209
209
  let props = %s;
210
210
  <%s {...props} />
211
211
  React keys must be passed directly to JSX without using spread:
212
212
  let props = %s;
213
213
  <%s key={someKey} {...props} />`,
214
- R,
214
+ z,
215
215
  C,
216
216
  H,
217
217
  C
218
- ), re[C + R] = !0);
218
+ ), re[C + z] = !0);
219
219
  }
220
- if (C = null, P !== void 0 && (n(P), C = "" + P), o(A) && (n(A.key), C = "" + A.key), "key" in A) {
220
+ if (C = null, P !== void 0 && (n(P), C = "" + P), o(L) && (n(L.key), C = "" + L.key), "key" in L) {
221
221
  P = {};
222
- for (var J in A)
223
- J !== "key" && (P[J] = A[J]);
224
- } else P = A;
222
+ for (var J in L)
223
+ J !== "key" && (P[J] = L[J]);
224
+ } else P = L;
225
225
  return C && d(
226
226
  P,
227
227
  typeof c == "function" ? c.displayName || c.name || "Unknown" : c
@@ -235,49 +235,49 @@ React keys must be passed directly to JSX without using spread:
235
235
  );
236
236
  }
237
237
  function f(c) {
238
- k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === B && (c._payload.status === "fulfilled" ? k(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
238
+ k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === N && (c._payload.status === "fulfilled" ? k(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
239
239
  }
240
240
  function k(c) {
241
241
  return typeof c == "object" && c !== null && c.$$typeof === h;
242
242
  }
243
- var g = Dt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), W = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = Object.prototype.hasOwnProperty, M = Array.isArray, I = console.createTask ? console.createTask : function() {
243
+ var p = Dt, h = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), B = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), _ = Symbol.for("react.client.reference"), W = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, R = Object.prototype.hasOwnProperty, M = Array.isArray, I = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
- g = {
246
+ p = {
247
247
  react_stack_bottom_frame: function(c) {
248
248
  return c();
249
249
  }
250
250
  };
251
- var q, ne = {}, Y = g.react_stack_bottom_frame.bind(
252
- g,
251
+ var U, ne = {}, Y = p.react_stack_bottom_frame.bind(
252
+ p,
253
253
  a
254
254
  )(), K = I(s(a)), re = {};
255
- we.Fragment = v, we.jsx = function(c, A, P) {
256
- var R = 1e4 > W.recentlyCreatedOwnerStacks++;
255
+ we.Fragment = b, we.jsx = function(c, L, P) {
256
+ var z = 1e4 > W.recentlyCreatedOwnerStacks++;
257
257
  return y(
258
258
  c,
259
- A,
259
+ L,
260
260
  P,
261
261
  !1,
262
- R ? Error("react-stack-top-frame") : Y,
263
- R ? I(s(c)) : K
262
+ z ? Error("react-stack-top-frame") : Y,
263
+ z ? I(s(c)) : K
264
264
  );
265
- }, we.jsxs = function(c, A, P) {
266
- var R = 1e4 > W.recentlyCreatedOwnerStacks++;
265
+ }, we.jsxs = function(c, L, P) {
266
+ var z = 1e4 > W.recentlyCreatedOwnerStacks++;
267
267
  return y(
268
268
  c,
269
- A,
269
+ L,
270
270
  P,
271
271
  !0,
272
- R ? Error("react-stack-top-frame") : Y,
273
- R ? I(s(c)) : K
272
+ z ? Error("react-stack-top-frame") : Y,
273
+ z ? I(s(c)) : K
274
274
  );
275
275
  };
276
276
  })()), we;
277
277
  }
278
- var bt;
278
+ var vt;
279
279
  function ro() {
280
- return bt || (bt = 1, process.env.NODE_ENV === "production" ? Be.exports = no() : Be.exports = oo()), Be.exports;
280
+ return vt || (vt = 1, process.env.NODE_ENV === "production" ? Ne.exports = no() : Ne.exports = oo()), Ne.exports;
281
281
  }
282
282
  var r = ro();
283
283
  const so = ue((t, e) => /* @__PURE__ */ r.jsx(Jt, { ref: e, ...t }));
@@ -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 = Ke;
289
+ const ka = Xt, va = en, ba = tn, ya = nn, xa = on, ye = Ke;
290
290
  ye.displayName = "Button";
291
291
  const io = rn, Ta = sn;
292
292
  io.displayName = "Card";
@@ -343,7 +343,7 @@ function mo(t, e) {
343
343
  if (e(t[n]))
344
344
  return n;
345
345
  }
346
- function go(t) {
346
+ function po(t) {
347
347
  return (e, n = {}) => {
348
348
  const s = e.match(t.matchPattern);
349
349
  if (!s) return null;
@@ -355,7 +355,7 @@ function go(t) {
355
355
  return { value: o, rest: d };
356
356
  };
357
357
  }
358
- const po = {
358
+ const go = {
359
359
  lessThanXSeconds: {
360
360
  one: "mindre enn ett sekund",
361
361
  other: "mindre enn {{count}} sekunder"
@@ -419,7 +419,7 @@ const po = {
419
419
  }
420
420
  }, fo = (t, e, n) => {
421
421
  let s;
422
- const i = po[t];
422
+ const i = go[t];
423
423
  return typeof i == "string" ? s = i : e === 1 ? s = i.one : s = i.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + s : s + " siden" : s;
424
424
  }, ho = {
425
425
  full: "EEEE d. MMMM y",
@@ -431,12 +431,12 @@ const po = {
431
431
  long: "HH:mm:ss z",
432
432
  medium: "HH:mm:ss",
433
433
  short: "HH:mm"
434
- }, bo = {
434
+ }, vo = {
435
435
  full: "{{date}} 'kl.' {{time}}",
436
436
  long: "{{date}} 'kl.' {{time}}",
437
437
  medium: "{{date}} {{time}}",
438
438
  short: "{{date}} {{time}}"
439
- }, vo = {
439
+ }, bo = {
440
440
  date: Ge({
441
441
  formats: ho,
442
442
  defaultWidth: "full"
@@ -446,7 +446,7 @@ const po = {
446
446
  defaultWidth: "full"
447
447
  }),
448
448
  dateTime: Ge({
449
- formats: bo,
449
+ formats: vo,
450
450
  defaultWidth: "full"
451
451
  })
452
452
  }, yo = {
@@ -561,19 +561,19 @@ const po = {
561
561
  values: jo,
562
562
  defaultWidth: "wide"
563
563
  })
564
- }, Lo = /^(\d+)\.?/i, Ao = /\d+/i, Fo = {
564
+ }, Ao = /^(\d+)\.?/i, Lo = /\d+/i, Fo = {
565
565
  narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
566
566
  abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
567
567
  wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
568
- }, _o = {
568
+ }, Bo = {
569
569
  any: [/^f/i, /^e/i]
570
570
  }, Eo = {
571
571
  narrow: /^[1234]/i,
572
572
  abbreviated: /^q[1234]/i,
573
573
  wide: /^[1234](\.)? kvartal/i
574
- }, Bo = {
575
- any: [/1/i, /2/i, /3/i, /4/i]
576
574
  }, No = {
575
+ any: [/1/i, /2/i, /3/i, /4/i]
576
+ }, _o = {
577
577
  narrow: /^[jfmasond]/i,
578
578
  abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
579
579
  wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
@@ -606,14 +606,14 @@ const po = {
606
606
  /^n/i,
607
607
  /^d/i
608
608
  ]
609
- }, zo = {
609
+ }, Ro = {
610
610
  narrow: /^[smtofl]/i,
611
611
  short: /^(sø|ma|ti|on|to|fr|lø)/i,
612
612
  abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
613
613
  wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
614
614
  }, Mo = {
615
615
  any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
616
- }, Ro = {
616
+ }, zo = {
617
617
  narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
618
618
  any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
619
619
  }, Oo = {
@@ -628,46 +628,46 @@ const po = {
628
628
  night: /natt/i
629
629
  }
630
630
  }, $o = {
631
- ordinalNumber: go({
632
- matchPattern: Lo,
633
- parsePattern: Ao,
631
+ ordinalNumber: po({
632
+ matchPattern: Ao,
633
+ parsePattern: Lo,
634
634
  valueCallback: (t) => parseInt(t, 10)
635
635
  }),
636
636
  era: je({
637
637
  matchPatterns: Fo,
638
638
  defaultMatchWidth: "wide",
639
- parsePatterns: _o,
639
+ parsePatterns: Bo,
640
640
  defaultParseWidth: "any"
641
641
  }),
642
642
  quarter: je({
643
643
  matchPatterns: Eo,
644
644
  defaultMatchWidth: "wide",
645
- parsePatterns: Bo,
645
+ parsePatterns: No,
646
646
  defaultParseWidth: "any",
647
647
  valueCallback: (t) => t + 1
648
648
  }),
649
649
  month: je({
650
- matchPatterns: No,
650
+ matchPatterns: _o,
651
651
  defaultMatchWidth: "wide",
652
652
  parsePatterns: Po,
653
653
  defaultParseWidth: "any"
654
654
  }),
655
655
  day: je({
656
- matchPatterns: zo,
656
+ matchPatterns: Ro,
657
657
  defaultMatchWidth: "wide",
658
658
  parsePatterns: Mo,
659
659
  defaultParseWidth: "any"
660
660
  }),
661
661
  dayPeriod: je({
662
- matchPatterns: Ro,
662
+ matchPatterns: zo,
663
663
  defaultMatchWidth: "any",
664
664
  parsePatterns: Oo,
665
665
  defaultParseWidth: "any"
666
666
  })
667
- }, be = {
667
+ }, ve = {
668
668
  code: "nb",
669
669
  formatDistance: fo,
670
- formatLong: vo,
670
+ formatLong: bo,
671
671
  formatRelative: xo,
672
672
  localize: Io,
673
673
  match: $o,
@@ -675,7 +675,7 @@ const po = {
675
675
  weekStartsOn: 1,
676
676
  firstWeekContainsDate: 4
677
677
  }
678
- }, _t = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
678
+ }, Bt = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
679
679
  "svg",
680
680
  {
681
681
  xmlns: "http://www.w3.org/2000/svg",
@@ -700,7 +700,7 @@ const po = {
700
700
  ]
701
701
  }
702
702
  );
703
- _t.displayName = "ChevronLeftIcon";
703
+ Bt.displayName = "ChevronLeftIcon";
704
704
  const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
705
705
  "svg",
706
706
  {
@@ -727,21 +727,21 @@ 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", 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 = {
730
+ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Uo = "_grid_10l5p_41", qo = "_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: qo,
736
- dayNameCell: Uo,
735
+ grid: Uo,
736
+ dayNameCell: qo,
737
737
  dateCell: Ko,
738
738
  dateNumberContainer: Yo,
739
739
  otherMonth: Jo,
740
740
  selectedDate: Zo
741
741
  }, Xo = (t) => {
742
- const e = ke(t), n = Lt(e, { locale: be }), s = At(n, 41);
742
+ const e = ke(t), n = At(e, { locale: ve }), s = Lt(n, 41);
743
743
  return Zn({ start: n, end: s });
744
- }, vt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Qo = ({
744
+ }, bt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Qo = ({
745
745
  initialDate: t = /* @__PURE__ */ new Date(),
746
746
  selectedDate: e = null,
747
747
  // Prop for valgt dato
@@ -760,30 +760,30 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
760
760
  mt(m, a) || o(m);
761
761
  }
762
762
  }, [e]);
763
- const d = ve(() => ke(/* @__PURE__ */ new Date()), []), l = ve(() => !1, [a, d]), u = ve(
763
+ const d = be(() => ke(/* @__PURE__ */ new Date()), []), l = be(() => !1, [a, d]), u = be(
764
764
  () => Xo(a),
765
765
  [a]
766
- ), y = ve(() => {
767
- const m = Lt(/* @__PURE__ */ new Date(), { locale: be });
768
- return Array.from({ length: 7 }).map((T, _) => {
769
- const F = Te(At(m, _), "EEEEEE", { locale: be });
770
- return vt(F);
766
+ ), y = be(() => {
767
+ const m = At(/* @__PURE__ */ new Date(), { locale: ve });
768
+ return Array.from({ length: 7 }).map((T, B) => {
769
+ const F = Te(Lt(m, B), "EEEEEE", { locale: ve });
770
+ return bt(F);
771
771
  });
772
772
  }, []), f = ae(() => {
773
- l || o((m) => ke(Un(m, 1)));
773
+ l || o((m) => ke(qn(m, 1)));
774
774
  }, [l]), k = ae(() => {
775
775
  o((m) => ke(Kn(m, 1)));
776
- }, []), g = ae(
776
+ }, []), p = ae(
777
777
  (m) => {
778
778
  n && n(m);
779
779
  },
780
780
  [n]
781
781
  ), h = ae(
782
782
  (m, T) => {
783
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(T));
783
+ (m.key === "Enter" || m.key === " ") && (m.preventDefault(), p(T));
784
784
  },
785
- [g]
786
- ), b = Te(a, "MMMM", { locale: be }), v = Te(a, "yyyy", { locale: be }), p = `${vt(b)} ${v}`;
785
+ [p]
786
+ ), v = Te(a, "MMMM", { locale: ve }), b = Te(a, "yyyy", { locale: ve }), g = `${bt(v)} ${b}`;
787
787
  return /* @__PURE__ */ r.jsxs(
788
788
  "div",
789
789
  {
@@ -792,7 +792,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
792
792
  "data-size": i,
793
793
  children: [
794
794
  /* @__PURE__ */ r.jsxs("div", { className: se.calendarHeader, children: [
795
- /* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: p }),
795
+ /* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: g }),
796
796
  /* @__PURE__ */ r.jsxs("div", { className: se.navigationButtons, children: [
797
797
  /* @__PURE__ */ r.jsx(
798
798
  Ke,
@@ -802,7 +802,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
802
802
  onClick: f,
803
803
  "aria-label": "Forrige måned",
804
804
  disabled: l,
805
- children: /* @__PURE__ */ r.jsx(_t, {})
805
+ children: /* @__PURE__ */ r.jsx(Bt, {})
806
806
  }
807
807
  ),
808
808
  /* @__PURE__ */ r.jsx(
@@ -819,23 +819,23 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
819
819
  ] }),
820
820
  /* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
821
821
  /* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((m) => {
822
- const T = mt(m, a), _ = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
822
+ const T = mt(m, a), B = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
823
823
  se.dateCell,
824
824
  T ? "" : se.otherMonth,
825
- _ ? se.selectedDate : "",
825
+ B ? se.selectedDate : "",
826
826
  // Utheving basert på prop
827
- F && !_ ? se.todayDate : ""
827
+ F && !B ? se.todayDate : ""
828
828
  ].filter(Boolean).join(" ");
829
829
  return /* @__PURE__ */ r.jsx(
830
830
  "div",
831
831
  {
832
832
  className: E,
833
- onClick: () => g(m),
833
+ onClick: () => p(m),
834
834
  onKeyDown: (j) => h(j, m),
835
835
  role: "button",
836
836
  tabIndex: 0,
837
- "aria-pressed": _ ?? !1,
838
- "aria-label": Te(m, "PPP", { locale: be }),
837
+ "aria-pressed": B ?? !1,
838
+ "aria-label": Te(m, "PPP", { locale: ve }),
839
839
  children: /* @__PURE__ */ r.jsx("span", { className: se.dateNumberContainer, children: Te(m, "d") })
840
840
  },
841
841
  m.toISOString()
@@ -846,7 +846,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
846
846
  );
847
847
  };
848
848
  Qo.displayName = "DatePicker";
849
- const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7_21", or = "_inputWrapper_16fx7_30", rr = "_inputWrapperError_16fx7_42", sr = "_suffixButton_16fx7_80", ar = "_suffixButtonInteractive_16fx7_100", pe = {
849
+ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7_21", or = "_inputWrapper_16fx7_30", rr = "_inputWrapperError_16fx7_42", sr = "_suffixButton_16fx7_80", ar = "_suffixButtonInteractive_16fx7_100", ge = {
850
850
  fieldset: er,
851
851
  description: tr,
852
852
  error: nr,
@@ -885,30 +885,30 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
885
885
  onChange: y,
886
886
  readOnly: f,
887
887
  placeholder: k = "dd.mm.åååå",
888
- id: g,
888
+ id: p,
889
889
  name: h,
890
- required: b,
891
- disabled: v,
892
- onClick: p,
890
+ required: v,
891
+ disabled: b,
892
+ onClick: g,
893
893
  onFocus: m,
894
894
  // Send ekstern onFocus videre
895
895
  onBlur: T,
896
896
  // Send ekstern onBlur videre
897
- autoComplete: _ = "off",
897
+ autoComplete: B = "off",
898
898
  "aria-label": F,
899
899
  "aria-labelledby": E,
900
900
  description: j,
901
- error: L,
901
+ error: A,
902
902
  // Bruk error-prop for styling
903
- "data-color": B,
903
+ "data-color": N,
904
904
  // <-- Destrukturering
905
905
  "data-size": $,
906
906
  // <-- Destrukturering
907
- ...N
908
- } = t, W = l !== void 0, z = Ue(null);
907
+ ..._
908
+ } = t, W = l !== void 0, R = qe(null);
909
909
  Dt.useImperativeHandle(
910
910
  e,
911
- () => z.current
911
+ () => R.current
912
912
  );
913
913
  const M = ae(
914
914
  (D) => {
@@ -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, q] = oe(
919
+ ), [I, U] = oe(
920
920
  () => M(l ?? u)
921
921
  );
922
922
  te(() => {
923
923
  if (W) {
924
924
  const D = M(l);
925
- D !== I && (q(D), z.current && z.current.value !== D && (z.current.value = D));
925
+ D !== I && (U(D), R.current && R.current.value !== D && (R.current.value = D));
926
926
  }
927
927
  }, [l, W, I, M]);
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 (z.current && (q(w), z.current.value = w, z.current.setSelectionRange(O, O), (w !== J || W) && y)) {
934
+ if (R.current && (U(w), R.current.value = w, R.current.setSelectionRange(O, O), (w !== J || W) && y)) {
935
935
  const Z = {
936
936
  ...D,
937
937
  target: { ...C, value: w }
@@ -941,34 +941,34 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
941
941
  });
942
942
  },
943
943
  [I, W, y, M]
944
- ), Y = [pe.fieldset, a].filter(Boolean).join(" "), K = [
945
- pe.inputWrapper,
944
+ ), Y = [ge.fieldset, a].filter(Boolean).join(" "), K = [
945
+ ge.inputWrapper,
946
946
  o,
947
- L ? pe.inputWrapperError : ""
947
+ A ? ge.inputWrapperError : ""
948
948
  ].filter(Boolean).join(" "), re = [
949
949
  d
950
950
  ].filter(Boolean).join(" "), c = [
951
- pe.suffixButton,
952
- i ? pe.suffixButtonInteractive : ""
951
+ ge.suffixButton,
952
+ i ? ge.suffixButtonInteractive : ""
953
953
  ].filter(Boolean).join(" ");
954
954
  !n && !F && !E && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
955
- const A = n && typeof n == "string" ? E || `${g}-label` : void 0, P = j ? `${g}-desc` : void 0, R = L ? `${g}-err` : void 0, x = [P, R].filter(Boolean).join(" ") || void 0;
955
+ const L = n && typeof n == "string" ? E || `${p}-label` : void 0, P = j ? `${p}-desc` : void 0, z = A ? `${p}-err` : void 0, x = [P, z].filter(Boolean).join(" ") || void 0;
956
956
  return (
957
957
  // --- Bruk data-color og data-size på den ytre wrapperen ---
958
958
  /* @__PURE__ */ r.jsxs(
959
959
  "div",
960
960
  {
961
961
  className: Y,
962
- "data-color": B,
962
+ "data-color": N,
963
963
  "data-size": $,
964
964
  children: [
965
- n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: A, htmlFor: g, children: n }) : n,
966
- j && /* @__PURE__ */ r.jsx("p", { id: P, className: pe.description, children: j }),
965
+ n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: L, htmlFor: p, children: n }) : n,
966
+ j && /* @__PURE__ */ r.jsx("p", { id: P, className: ge.description, children: j }),
967
967
  /* @__PURE__ */ r.jsxs("div", { className: K, children: [
968
968
  /* @__PURE__ */ r.jsx(
969
969
  "input",
970
970
  {
971
- ref: z,
971
+ ref: R,
972
972
  type: "text",
973
973
  inputMode: "numeric",
974
974
  pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
@@ -976,21 +976,21 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
976
976
  value: I,
977
977
  readOnly: f,
978
978
  placeholder: k,
979
- id: g,
979
+ id: p,
980
980
  name: h,
981
- required: b,
982
- disabled: v,
983
- onClick: p,
981
+ required: v,
982
+ disabled: b,
983
+ onClick: g,
984
984
  onChange: ne,
985
985
  onFocus: m,
986
986
  onBlur: T,
987
- autoComplete: _,
987
+ autoComplete: B,
988
988
  "aria-label": F,
989
- "aria-labelledby": A,
989
+ "aria-labelledby": L,
990
990
  "aria-describedby": x,
991
- "aria-invalid": !!L,
991
+ "aria-invalid": !!A,
992
992
  className: re,
993
- ...N
993
+ ..._
994
994
  }
995
995
  ),
996
996
  s && /* @__PURE__ */ r.jsx(
@@ -998,16 +998,16 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
998
998
  {
999
999
  type: "button",
1000
1000
  className: c,
1001
- onClick: v ? void 0 : i,
1002
- tabIndex: i && !v ? 0 : -1,
1001
+ onClick: b ? void 0 : i,
1002
+ tabIndex: i && !b ? 0 : -1,
1003
1003
  "aria-hidden": !i,
1004
- disabled: v,
1004
+ disabled: b,
1005
1005
  "aria-label": i ? "Åpne datovelger" : void 0,
1006
1006
  children: s
1007
1007
  }
1008
1008
  )
1009
1009
  ] }),
1010
- L && /* @__PURE__ */ r.jsx("p", { id: R, className: pe.error, role: "alert", children: L })
1010
+ A && /* @__PURE__ */ r.jsx("p", { id: z, className: ge.error, role: "alert", children: A })
1011
1011
  ]
1012
1012
  }
1013
1013
  )
@@ -1056,51 +1056,51 @@ function Me(t) {
1056
1056
  function Ct(t) {
1057
1057
  return Object.prototype.toString.call(t) === "[object Object]";
1058
1058
  }
1059
- function U(t) {
1059
+ function q(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 U(t - e);
1066
+ return q(t - e);
1067
1067
  }
1068
1068
  function ur(t, e) {
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);
1069
+ if (t === 0 || e === 0 || q(t) <= q(e)) return 0;
1070
+ const n = Ie(q(t), q(e));
1071
+ return q(n / t);
1072
1072
  }
1073
1073
  function mr(t) {
1074
1074
  return Math.round(t * 100) / 100;
1075
1075
  }
1076
- function Le(t) {
1077
- return Ae(t).map(Number);
1076
+ function Ae(t) {
1077
+ return Le(t).map(Number);
1078
1078
  }
1079
1079
  function ie(t) {
1080
- return t[_e(t)];
1080
+ return t[Be(t)];
1081
1081
  }
1082
- function _e(t) {
1082
+ function Be(t) {
1083
1083
  return Math.max(0, t.length - 1);
1084
1084
  }
1085
1085
  function tt(t, e) {
1086
- return e === _e(t);
1086
+ return e === Be(t);
1087
1087
  }
1088
1088
  function jt(t, e = 0) {
1089
1089
  return Array.from(Array(t), (n, s) => e + s);
1090
1090
  }
1091
- function Ae(t) {
1091
+ function Le(t) {
1092
1092
  return Object.keys(t);
1093
1093
  }
1094
- function Bt(t, e) {
1095
- return [t, e].reduce((n, s) => (Ae(s).forEach((i) => {
1094
+ function Nt(t, e) {
1095
+ return [t, e].reduce((n, s) => (Le(s).forEach((i) => {
1096
1096
  const a = n[i], o = s[i], d = Ct(a) && Ct(o);
1097
- n[i] = d ? Bt(a, o) : o;
1097
+ n[i] = d ? Nt(a, o) : o;
1098
1098
  }), n), {});
1099
1099
  }
1100
1100
  function Je(t, e) {
1101
1101
  return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
1102
1102
  }
1103
- function gr(t, e) {
1103
+ function pr(t, e) {
1104
1104
  const n = {
1105
1105
  start: s,
1106
1106
  center: i,
@@ -1145,7 +1145,7 @@ function Fe() {
1145
1145
  };
1146
1146
  return s;
1147
1147
  }
1148
- function pr(t, e, n, s) {
1148
+ function gr(t, e, n, s) {
1149
1149
  const i = Fe(), a = 1e3 / 60;
1150
1150
  let o = null, d = 0, l = 0;
1151
1151
  function u() {
@@ -1154,13 +1154,13 @@ function pr(t, e, n, s) {
1154
1154
  });
1155
1155
  }
1156
1156
  function y() {
1157
- g(), i.clear();
1157
+ p(), i.clear();
1158
1158
  }
1159
- function f(v) {
1159
+ function f(b) {
1160
1160
  if (!l) return;
1161
- o || (o = v, n(), n());
1162
- const p = v - o;
1163
- for (o = v, d += p; d >= a; )
1161
+ o || (o = b, n(), n());
1162
+ const g = b - o;
1163
+ for (o = b, d += g; d >= a; )
1164
1164
  n(), d -= a;
1165
1165
  const m = d / a;
1166
1166
  s(m), l && (l = e.requestAnimationFrame(f));
@@ -1168,7 +1168,7 @@ function pr(t, e, n, s) {
1168
1168
  function k() {
1169
1169
  l || (l = e.requestAnimationFrame(f));
1170
1170
  }
1171
- function g() {
1171
+ function p() {
1172
1172
  e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
1173
1173
  }
1174
1174
  function h() {
@@ -1178,7 +1178,7 @@ function pr(t, e, n, s) {
1178
1178
  init: u,
1179
1179
  destroy: y,
1180
1180
  start: k,
1181
- stop: g,
1181
+ stop: p,
1182
1182
  update: n,
1183
1183
  render: s
1184
1184
  };
@@ -1187,10 +1187,10 @@ function fr(t, e) {
1187
1187
  const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y", o = !s && n ? -1 : 1, d = y(), l = f();
1188
1188
  function u(h) {
1189
1189
  const {
1190
- height: b,
1191
- width: v
1190
+ height: v,
1191
+ width: b
1192
1192
  } = h;
1193
- return s ? b : v;
1193
+ return s ? v : b;
1194
1194
  }
1195
1195
  function y() {
1196
1196
  return s ? "top" : n ? "right" : "left";
@@ -1211,7 +1211,7 @@ function fr(t, e) {
1211
1211
  };
1212
1212
  }
1213
1213
  function fe(t = 0, e = 0) {
1214
- const n = U(t - e);
1214
+ const n = q(t - e);
1215
1215
  function s(u) {
1216
1216
  return u < t;
1217
1217
  }
@@ -1238,13 +1238,13 @@ function fe(t = 0, e = 0) {
1238
1238
  removeOffset: d
1239
1239
  };
1240
1240
  }
1241
- function Nt(t, e, n) {
1241
+ function _t(t, e, n) {
1242
1242
  const {
1243
1243
  constrain: s
1244
1244
  } = fe(0, t), i = t + 1;
1245
1245
  let a = o(e);
1246
1246
  function o(k) {
1247
- return n ? U((i + k) % i) : s(k);
1247
+ return n ? q((i + k) % i) : s(k);
1248
1248
  }
1249
1249
  function d() {
1250
1250
  return a;
@@ -1256,7 +1256,7 @@ function Nt(t, e, n) {
1256
1256
  return y().set(d() + k);
1257
1257
  }
1258
1258
  function y() {
1259
- return Nt(t, d(), n);
1259
+ return _t(t, d(), n);
1260
1260
  }
1261
1261
  const f = {
1262
1262
  get: d,
@@ -1266,20 +1266,20 @@ function Nt(t, e, n) {
1266
1266
  };
1267
1267
  return f;
1268
1268
  }
1269
- function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
1269
+ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, p, h, v, b, g, m) {
1270
1270
  const {
1271
1271
  cross: T,
1272
- direction: _
1272
+ direction: B
1273
1273
  } = t, F = ["INPUT", "SELECT", "TEXTAREA"], E = {
1274
1274
  passive: !1
1275
- }, j = Fe(), L = Fe(), B = fe(50, 225).constrain(g.measure(20)), $ = {
1275
+ }, j = Fe(), A = Fe(), N = fe(50, 225).constrain(p.measure(20)), $ = {
1276
1276
  mouse: 300,
1277
1277
  touch: 400
1278
- }, N = {
1278
+ }, _ = {
1279
1279
  mouse: 500,
1280
1280
  touch: 600
1281
1281
  }, W = h ? 43 : 25;
1282
- let z = !1, M = 0, I = 0, q = !1, ne = !1, Y = !1, K = !1;
1282
+ let R = !1, M = 0, I = 0, U = !1, ne = !1, Y = !1, K = !1;
1283
1283
  function re(w) {
1284
1284
  if (!m) return;
1285
1285
  function O(Z) {
@@ -1291,26 +1291,26 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
1291
1291
  }).add(G, "touchstart", O).add(G, "mousedown", O).add(G, "touchcancel", H).add(G, "contextmenu", H).add(G, "click", J, !0);
1292
1292
  }
1293
1293
  function c() {
1294
- j.clear(), L.clear();
1294
+ j.clear(), A.clear();
1295
1295
  }
1296
- function A() {
1296
+ function L() {
1297
1297
  const w = K ? n : e;
1298
- L.add(w, "touchmove", C, E).add(w, "touchend", H).add(w, "mousemove", C, E).add(w, "mouseup", H);
1298
+ A.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) {
1301
1301
  const O = w.nodeName || "";
1302
1302
  return F.includes(O);
1303
1303
  }
1304
- function R() {
1305
- return (h ? N : $)[K ? "mouse" : "touch"];
1304
+ function z() {
1305
+ return (h ? _ : $)[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 || U(w) < B ? Z : v && O ? Z * 0.5 : y.byIndex(G.get(), 0).distance;
1309
+ return h || q(w) < N ? Z : b && 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
- K = O, Y = h && O && !w.buttons && z, z = 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(), M = a.readPoint(w), I = a.readPoint(w, T), k.emit("pointerDown")));
1313
+ K = O, Y = h && O && !w.buttons && R, R = 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), L(), M = 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);
@@ -1318,17 +1318,17 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
1318
1318
  if (!ne && !K && (!w.cancelable || (ne = le > de, !ne)))
1319
1319
  return H(w);
1320
1320
  const me = a.pointerMove(w);
1321
- le > b && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(_(me)), w.preventDefault();
1321
+ le > v && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(B(me)), w.preventDefault();
1322
1322
  }
1323
1323
  function H(w) {
1324
- const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * R(), le = x(_(Z), G), de = ur(Z, le), me = W - 10 * de, ce = p + de / 50;
1325
- ne = !1, q = !1, L.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), K = !1, k.emit("pointerUp");
1324
+ const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le = x(B(Z), G), de = ur(Z, le), me = W - 10 * de, ce = g + de / 50;
1325
+ ne = !1, U = !1, A.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 q;
1331
+ return U;
1332
1332
  }
1333
1333
  return {
1334
1334
  init: re,
@@ -1349,13 +1349,13 @@ function kr(t, e) {
1349
1349
  return s = f, i = f, o(f);
1350
1350
  }
1351
1351
  function l(f) {
1352
- const k = o(f) - o(i), g = a(f) - a(s) > 170;
1353
- return i = f, g && (s = f), k;
1352
+ const k = o(f) - o(i), p = a(f) - a(s) > 170;
1353
+ return i = f, p && (s = f), k;
1354
1354
  }
1355
1355
  function u(f) {
1356
1356
  if (!s || !i) return 0;
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 && U(b) > 0.1 ? b : 0;
1357
+ const k = o(i) - o(s), p = a(f) - a(s), h = a(f) - a(i) > 170, v = k / p;
1358
+ return p && !h && q(v) > 0.1 ? v : 0;
1359
1359
  }
1360
1360
  return {
1361
1361
  pointerDown: d,
@@ -1364,7 +1364,7 @@ function kr(t, e) {
1364
1364
  readPoint: o
1365
1365
  };
1366
1366
  }
1367
- function br() {
1367
+ function vr() {
1368
1368
  function t(n) {
1369
1369
  const {
1370
1370
  offsetTop: s,
@@ -1385,7 +1385,7 @@ function br() {
1385
1385
  measure: t
1386
1386
  };
1387
1387
  }
1388
- function vr(t) {
1388
+ function br(t) {
1389
1389
  function e(s) {
1390
1390
  return t * (s / 100);
1391
1391
  }
@@ -1396,24 +1396,24 @@ function vr(t) {
1396
1396
  function yr(t, e, n, s, i, a, o) {
1397
1397
  const d = [t].concat(s);
1398
1398
  let l, u, y = [], f = !1;
1399
- function k(v) {
1400
- return i.measureSize(o.measure(v));
1399
+ function k(b) {
1400
+ return i.measureSize(o.measure(b));
1401
1401
  }
1402
- function g(v) {
1402
+ function p(b) {
1403
1403
  if (!a) return;
1404
1404
  u = k(t), y = s.map(k);
1405
- function p(m) {
1405
+ function g(m) {
1406
1406
  for (const T of m) {
1407
1407
  if (f) return;
1408
- const _ = T.target === t, F = s.indexOf(T.target), E = _ ? u : y[F], j = k(_ ? t : s[F]);
1409
- if (U(j - E) >= 0.5) {
1410
- v.reInit(), e.emit("resize");
1408
+ const B = T.target === t, F = s.indexOf(T.target), E = B ? u : y[F], j = k(B ? t : s[F]);
1409
+ if (q(j - E) >= 0.5) {
1410
+ b.reInit(), e.emit("resize");
1411
1411
  break;
1412
1412
  }
1413
1413
  }
1414
1414
  }
1415
1415
  l = new ResizeObserver((m) => {
1416
- (Me(a) || a(v, m)) && p(m);
1416
+ (Me(a) || a(b, m)) && g(m);
1417
1417
  }), n.requestAnimationFrame(() => {
1418
1418
  d.forEach((m) => l.observe(m));
1419
1419
  });
@@ -1422,7 +1422,7 @@ function yr(t, e, n, s, i, a, o) {
1422
1422
  f = !0, l && l.disconnect();
1423
1423
  }
1424
1424
  return {
1425
- init: g,
1425
+ init: p,
1426
1426
  destroy: h
1427
1427
  };
1428
1428
  }
@@ -1430,43 +1430,43 @@ function xr(t, e, n, s, i, a) {
1430
1430
  let o = 0, d = 0, l = i, u = a, y = t.get(), f = 0;
1431
1431
  function k() {
1432
1432
  const E = s.get() - t.get(), j = !l;
1433
- let L = 0;
1434
- return j ? (o = 0, n.set(s), t.set(s), L = E) : (n.set(t), o += E / l, o *= u, y += o, t.add(o), L = y - f), d = et(L), f = y, F;
1433
+ let A = 0;
1434
+ return j ? (o = 0, n.set(s), t.set(s), A = E) : (n.set(t), o += E / l, o *= u, y += o, t.add(o), A = y - f), d = et(A), f = y, F;
1435
1435
  }
1436
- function g() {
1436
+ function p() {
1437
1437
  const E = s.get() - e.get();
1438
- return U(E) < 1e-3;
1438
+ return q(E) < 1e-3;
1439
1439
  }
1440
1440
  function h() {
1441
1441
  return l;
1442
1442
  }
1443
- function b() {
1443
+ function v() {
1444
1444
  return d;
1445
1445
  }
1446
- function v() {
1446
+ function b() {
1447
1447
  return o;
1448
1448
  }
1449
- function p() {
1449
+ function g() {
1450
1450
  return T(i);
1451
1451
  }
1452
1452
  function m() {
1453
- return _(a);
1453
+ return B(a);
1454
1454
  }
1455
1455
  function T(E) {
1456
1456
  return l = E, F;
1457
1457
  }
1458
- function _(E) {
1458
+ function B(E) {
1459
1459
  return u = E, F;
1460
1460
  }
1461
1461
  const F = {
1462
- direction: b,
1462
+ direction: v,
1463
1463
  duration: h,
1464
- velocity: v,
1464
+ velocity: b,
1465
1465
  seek: k,
1466
- settled: g,
1466
+ settled: p,
1467
1467
  useBaseFriction: m,
1468
- useBaseDuration: p,
1469
- useFriction: _,
1468
+ useBaseDuration: g,
1469
+ useFriction: B,
1470
1470
  useDuration: T
1471
1471
  };
1472
1472
  return F;
@@ -1477,13 +1477,13 @@ function Tr(t, e, n, s, i) {
1477
1477
  function u() {
1478
1478
  return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
1479
1479
  }
1480
- function y(g) {
1480
+ function y(p) {
1481
1481
  if (!u()) return;
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());
1482
+ const h = t.reachedMin(e.get()) ? "min" : "max", v = q(t[h] - e.get()), b = n.get() - e.get(), g = d.constrain(v / o);
1483
+ n.subtract(b * g), !p && q(b) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
1484
1484
  }
1485
- function f(g) {
1486
- l = !g;
1485
+ function f(p) {
1486
+ l = !p;
1487
1487
  }
1488
1488
  return {
1489
1489
  shouldConstrain: u,
@@ -1493,20 +1493,20 @@ function Tr(t, e, n, s, i) {
1493
1493
  }
1494
1494
  function Sr(t, e, n, s, i) {
1495
1495
  const a = fe(-e + t, 0), o = f(), d = y(), l = k();
1496
- function u(h, b) {
1497
- return Ie(h, b) <= 1;
1496
+ function u(h, v) {
1497
+ return Ie(h, v) <= 1;
1498
1498
  }
1499
1499
  function y() {
1500
- const h = o[0], b = ie(o), v = o.lastIndexOf(h), p = o.indexOf(b) + 1;
1501
- return fe(v, p);
1500
+ const h = o[0], v = ie(o), b = o.lastIndexOf(h), g = o.indexOf(v) + 1;
1501
+ return fe(b, g);
1502
1502
  }
1503
1503
  function f() {
1504
- return n.map((h, b) => {
1504
+ return n.map((h, v) => {
1505
1505
  const {
1506
- min: v,
1507
- max: p
1508
- } = a, m = a.constrain(h), T = !b, _ = tt(n, b);
1509
- return T ? p : _ || u(v, m) ? v : u(p, m) ? p : m;
1506
+ min: b,
1507
+ max: g
1508
+ } = a, m = a.constrain(h), T = !v, B = tt(n, v);
1509
+ return T ? g : B || u(b, m) ? b : u(g, m) ? g : m;
1510
1510
  }).map((h) => parseFloat(h.toFixed(3)));
1511
1511
  }
1512
1512
  function k() {
@@ -1514,9 +1514,9 @@ function Sr(t, e, n, s, i) {
1514
1514
  if (s === "keepSnaps") return o;
1515
1515
  const {
1516
1516
  min: h,
1517
- max: b
1517
+ max: v
1518
1518
  } = d;
1519
- return o.slice(h, b);
1519
+ return o.slice(h, v);
1520
1520
  }
1521
1521
  return {
1522
1522
  snapsContained: l,
@@ -1539,8 +1539,8 @@ function Cr(t, e, n, s) {
1539
1539
  }
1540
1540
  function y(k) {
1541
1541
  if (!u(k)) return;
1542
- const g = t * (k * -1);
1543
- s.forEach((h) => h.add(g));
1542
+ const p = t * (k * -1);
1543
+ s.forEach((h) => h.add(p));
1544
1544
  }
1545
1545
  return {
1546
1546
  loop: y
@@ -1565,15 +1565,15 @@ function Dr(t, e, n, s, i) {
1565
1565
  endEdge: o
1566
1566
  } = t, {
1567
1567
  groupSlides: d
1568
- } = i, l = f().map(e.measure), u = k(), y = g();
1568
+ } = i, l = f().map(e.measure), u = k(), y = p();
1569
1569
  function f() {
1570
- return d(s).map((b) => ie(b)[o] - b[0][a]).map(U);
1570
+ return d(s).map((v) => ie(v)[o] - v[0][a]).map(q);
1571
1571
  }
1572
1572
  function k() {
1573
- return s.map((b) => n[a] - b[a]).map((b) => -U(b));
1573
+ return s.map((v) => n[a] - v[a]).map((v) => -q(v));
1574
1574
  }
1575
- function g() {
1576
- return d(u).map((b) => b[0]).map((b, v) => b + l[v]);
1575
+ function p() {
1576
+ return d(u).map((v) => v[0]).map((v, b) => v + l[b]);
1577
1577
  }
1578
1578
  return {
1579
1579
  snaps: u,
@@ -1588,16 +1588,16 @@ function Ir(t, e, n, s, i, a) {
1588
1588
  max: l
1589
1589
  } = s, u = y();
1590
1590
  function y() {
1591
- const k = o(a), g = !t || e === "keepSnaps";
1592
- return n.length === 1 ? [a] : g ? k : k.slice(d, l).map((h, b, v) => {
1593
- const p = !b, m = tt(v, b);
1594
- if (p) {
1595
- const T = ie(v[0]) + 1;
1591
+ const k = o(a), p = !t || e === "keepSnaps";
1592
+ return n.length === 1 ? [a] : p ? k : k.slice(d, l).map((h, v, b) => {
1593
+ const g = !v, m = tt(b, v);
1594
+ if (g) {
1595
+ const T = ie(b[0]) + 1;
1596
1596
  return jt(T);
1597
1597
  }
1598
1598
  if (m) {
1599
- const T = _e(a) - ie(v)[0] + 1;
1600
- return jt(T, ie(v)[0]);
1599
+ const T = Be(a) - ie(b)[0] + 1;
1600
+ return jt(T, ie(b)[0]);
1601
1601
  }
1602
1602
  return h;
1603
1603
  });
@@ -1606,53 +1606,53 @@ function Ir(t, e, n, s, i, a) {
1606
1606
  slideRegistry: u
1607
1607
  };
1608
1608
  }
1609
- function Lr(t, e, n, s, i) {
1609
+ function Ar(t, e, n, s, i) {
1610
1610
  const {
1611
1611
  reachedAny: a,
1612
1612
  removeOffset: o,
1613
1613
  constrain: d
1614
1614
  } = s;
1615
1615
  function l(h) {
1616
- return h.concat().sort((b, v) => U(b) - U(v))[0];
1616
+ return h.concat().sort((v, b) => q(v) - q(b))[0];
1617
1617
  }
1618
1618
  function u(h) {
1619
- const b = t ? o(h) : d(h), v = e.map((m, T) => ({
1620
- diff: y(m - b, 0),
1619
+ const v = t ? o(h) : d(h), b = e.map((m, T) => ({
1620
+ diff: y(m - v, 0),
1621
1621
  index: T
1622
- })).sort((m, T) => U(m.diff) - U(T.diff)), {
1623
- index: p
1624
- } = v[0];
1622
+ })).sort((m, T) => q(m.diff) - q(T.diff)), {
1623
+ index: g
1624
+ } = b[0];
1625
1625
  return {
1626
- index: p,
1627
- distance: b
1626
+ index: g,
1627
+ distance: v
1628
1628
  };
1629
1629
  }
1630
- function y(h, b) {
1631
- const v = [h, h + n, h - n];
1630
+ function y(h, v) {
1631
+ const b = [h, h + n, h - n];
1632
1632
  if (!t) return h;
1633
- if (!b) return l(v);
1634
- const p = v.filter((m) => et(m) === b);
1635
- return p.length ? l(p) : ie(v) - n;
1633
+ if (!v) return l(b);
1634
+ const g = b.filter((m) => et(m) === v);
1635
+ return g.length ? l(g) : ie(b) - n;
1636
1636
  }
1637
- function f(h, b) {
1638
- const v = e[h] - i.get(), p = y(v, b);
1637
+ function f(h, v) {
1638
+ const b = e[h] - i.get(), g = y(b, v);
1639
1639
  return {
1640
1640
  index: h,
1641
- distance: p
1641
+ distance: g
1642
1642
  };
1643
1643
  }
1644
- function k(h, b) {
1645
- const v = i.get() + h, {
1646
- index: p,
1644
+ function k(h, v) {
1645
+ const b = i.get() + h, {
1646
+ index: g,
1647
1647
  distance: m
1648
- } = u(v), T = !t && a(v);
1649
- if (!b || T) return {
1650
- index: p,
1648
+ } = u(b), T = !t && a(b);
1649
+ if (!v || T) return {
1650
+ index: g,
1651
1651
  distance: h
1652
1652
  };
1653
- const _ = e[p] - m, F = h + y(_, 0);
1653
+ const B = e[g] - m, F = h + y(B, 0);
1654
1654
  return {
1655
- index: p,
1655
+ index: g,
1656
1656
  distance: F
1657
1657
  };
1658
1658
  }
@@ -1662,17 +1662,17 @@ function Lr(t, e, n, s, i) {
1662
1662
  shortcut: y
1663
1663
  };
1664
1664
  }
1665
- function Ar(t, e, n, s, i, a, o) {
1665
+ function Lr(t, e, n, s, i, a, o) {
1666
1666
  function d(f) {
1667
- const k = f.distance, g = f.index !== e.get();
1668
- a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(f.index), o.emit("select"));
1667
+ const k = f.distance, p = f.index !== e.get();
1668
+ a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), p && (n.set(e.get()), e.set(f.index), o.emit("select"));
1669
1669
  }
1670
1670
  function l(f, k) {
1671
- const g = i.byDistance(f, k);
1672
- d(g);
1671
+ const p = i.byDistance(f, k);
1672
+ d(p);
1673
1673
  }
1674
1674
  function u(f, k) {
1675
- const g = e.clone().set(f), h = i.byIndex(g.get(), k);
1675
+ const p = e.clone().set(f), h = i.byIndex(p.get(), k);
1676
1676
  d(h);
1677
1677
  }
1678
1678
  return {
@@ -1686,22 +1686,22 @@ function Fr(t, e, n, s, i, a, o, d) {
1686
1686
  capture: !0
1687
1687
  };
1688
1688
  let u = 0;
1689
- function y(g) {
1689
+ function y(p) {
1690
1690
  if (!d) return;
1691
- function h(b) {
1691
+ function h(v) {
1692
1692
  if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
1693
1693
  o.emit("slideFocusStart"), t.scrollLeft = 0;
1694
- const m = n.findIndex((T) => T.includes(b));
1694
+ const m = n.findIndex((T) => T.includes(v));
1695
1695
  Qe(m) && (i.useDuration(0), s.index(m, 0), o.emit("slideFocus"));
1696
1696
  }
1697
- a.add(document, "keydown", f, !1), e.forEach((b, v) => {
1698
- a.add(b, "focus", (p) => {
1699
- (Me(d) || d(g, p)) && h(v);
1697
+ a.add(document, "keydown", f, !1), e.forEach((v, b) => {
1698
+ a.add(v, "focus", (g) => {
1699
+ (Me(d) || d(p, g)) && h(b);
1700
1700
  }, l);
1701
1701
  });
1702
1702
  }
1703
- function f(g) {
1704
- g.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
1703
+ function f(p) {
1704
+ p.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
1705
1705
  }
1706
1706
  return {
1707
1707
  init: y
@@ -1742,8 +1742,8 @@ function Pt(t, e) {
1742
1742
  }
1743
1743
  function l(k) {
1744
1744
  if (a) return;
1745
- const g = mr(t.direction(k));
1746
- g !== i && (s.transform = n(g), i = g);
1745
+ const p = mr(t.direction(k));
1746
+ p !== i && (s.transform = n(p), i = p);
1747
1747
  }
1748
1748
  function u(k) {
1749
1749
  a = !k;
@@ -1757,57 +1757,57 @@ function Pt(t, e) {
1757
1757
  toggleActive: u
1758
1758
  };
1759
1759
  }
1760
- function _r(t, e, n, s, i, a, o, d, l) {
1761
- const y = Le(i), f = Le(i).reverse(), k = p().concat(m());
1762
- function g(j, L) {
1763
- return j.reduce((B, $) => B - i[$], L);
1764
- }
1765
- function h(j, L) {
1766
- return j.reduce((B, $) => g(B, L) > 0 ? B.concat([$]) : B, []);
1767
- }
1768
- function b(j) {
1769
- return a.map((L, B) => ({
1770
- start: L - s[B] + 0.5 + j,
1771
- end: L + e - 0.5 + j
1760
+ function Br(t, e, n, s, i, a, o, d, l) {
1761
+ const y = Ae(i), f = Ae(i).reverse(), k = g().concat(m());
1762
+ function p(j, A) {
1763
+ return j.reduce((N, $) => N - i[$], A);
1764
+ }
1765
+ function h(j, A) {
1766
+ return j.reduce((N, $) => p(N, A) > 0 ? N.concat([$]) : N, []);
1767
+ }
1768
+ function v(j) {
1769
+ return a.map((A, N) => ({
1770
+ start: A - s[N] + 0.5 + j,
1771
+ end: A + e - 0.5 + j
1772
1772
  }));
1773
1773
  }
1774
- function v(j, L, B) {
1775
- const $ = b(L);
1776
- return j.map((N) => {
1777
- const W = B ? 0 : -n, z = B ? n : 0, M = B ? "end" : "start", I = $[N][M];
1774
+ function b(j, A, N) {
1775
+ const $ = v(A);
1776
+ return j.map((_) => {
1777
+ const W = N ? 0 : -n, R = N ? n : 0, M = N ? "end" : "start", I = $[_][M];
1778
1778
  return {
1779
- index: N,
1779
+ index: _,
1780
1780
  loopPoint: I,
1781
1781
  slideLocation: De(-1),
1782
- translate: Pt(t, l[N]),
1783
- target: () => d.get() > I ? W : z
1782
+ translate: Pt(t, l[_]),
1783
+ target: () => d.get() > I ? W : R
1784
1784
  };
1785
1785
  });
1786
1786
  }
1787
- function p() {
1788
- const j = o[0], L = h(f, j);
1789
- return v(L, n, !1);
1787
+ function g() {
1788
+ const j = o[0], A = h(f, j);
1789
+ return b(A, n, !1);
1790
1790
  }
1791
1791
  function m() {
1792
- const j = e - o[0] - 1, L = h(y, j);
1793
- return v(L, -n, !0);
1792
+ const j = e - o[0] - 1, A = h(y, j);
1793
+ return b(A, -n, !0);
1794
1794
  }
1795
1795
  function T() {
1796
1796
  return k.every(({
1797
1797
  index: j
1798
1798
  }) => {
1799
- const L = y.filter((B) => B !== j);
1800
- return g(L, e) <= 0.1;
1799
+ const A = y.filter((N) => N !== j);
1800
+ return p(A, e) <= 0.1;
1801
1801
  });
1802
1802
  }
1803
- function _() {
1803
+ function B() {
1804
1804
  k.forEach((j) => {
1805
1805
  const {
1806
- target: L,
1807
- translate: B,
1806
+ target: A,
1807
+ translate: N,
1808
1808
  slideLocation: $
1809
- } = j, N = L();
1810
- N !== $.get() && (B.to(N), $.set(N));
1809
+ } = j, _ = A();
1810
+ _ !== $.get() && (N.to(_), $.set(_));
1811
1811
  });
1812
1812
  }
1813
1813
  function F() {
@@ -1816,7 +1816,7 @@ function _r(t, e, n, s, i, a, o, d, l) {
1816
1816
  return {
1817
1817
  canLoop: T,
1818
1818
  clear: F,
1819
- loop: _,
1819
+ loop: B,
1820
1820
  loopPoints: k
1821
1821
  };
1822
1822
  }
@@ -1845,14 +1845,14 @@ function Er(t, e, n) {
1845
1845
  destroy: o
1846
1846
  };
1847
1847
  }
1848
- function Br(t, e, n, s) {
1848
+ function Nr(t, e, n, s) {
1849
1849
  const i = {};
1850
1850
  let a = null, o = null, d, l = !1;
1851
1851
  function u() {
1852
1852
  d = new IntersectionObserver((h) => {
1853
- l || (h.forEach((b) => {
1854
- const v = e.indexOf(b.target);
1855
- i[v] = b;
1853
+ l || (h.forEach((v) => {
1854
+ const b = e.indexOf(v.target);
1855
+ i[b] = v;
1856
1856
  }), a = null, o = null, n.emit("slidesInView"));
1857
1857
  }, {
1858
1858
  root: t.parentElement,
@@ -1863,18 +1863,18 @@ function Br(t, e, n, s) {
1863
1863
  d && d.disconnect(), l = !0;
1864
1864
  }
1865
1865
  function f(h) {
1866
- return Ae(i).reduce((b, v) => {
1867
- const p = parseInt(v), {
1866
+ return Le(i).reduce((v, b) => {
1867
+ const g = parseInt(b), {
1868
1868
  isIntersecting: m
1869
- } = i[p];
1870
- return (h && m || !h && !m) && b.push(p), b;
1869
+ } = i[g];
1870
+ return (h && m || !h && !m) && v.push(g), v;
1871
1871
  }, []);
1872
1872
  }
1873
1873
  function k(h = !0) {
1874
1874
  if (h && a) return a;
1875
1875
  if (!h && o) return o;
1876
- const b = f(h);
1877
- return h && (a = b), h || (o = b), b;
1876
+ const v = f(h);
1877
+ return h && (a = v), h || (o = v), v;
1878
1878
  }
1879
1879
  return {
1880
1880
  init: u,
@@ -1882,31 +1882,31 @@ function Br(t, e, n, s) {
1882
1882
  get: k
1883
1883
  };
1884
1884
  }
1885
- function Nr(t, e, n, s, i, a) {
1885
+ function _r(t, e, n, s, i, a) {
1886
1886
  const {
1887
1887
  measureSize: o,
1888
1888
  startEdge: d,
1889
1889
  endEdge: l
1890
- } = t, u = n[0] && i, y = h(), f = b(), k = n.map(o), g = v();
1890
+ } = t, u = n[0] && i, y = h(), f = v(), k = n.map(o), p = b();
1891
1891
  function h() {
1892
1892
  if (!u) return 0;
1893
1893
  const m = n[0];
1894
- return U(e[d] - m[d]);
1894
+ return q(e[d] - m[d]);
1895
1895
  }
1896
- function b() {
1896
+ function v() {
1897
1897
  if (!u) return 0;
1898
1898
  const m = a.getComputedStyle(ie(s));
1899
1899
  return parseFloat(m.getPropertyValue(`margin-${l}`));
1900
1900
  }
1901
- function v() {
1902
- return n.map((m, T, _) => {
1903
- const F = !T, E = tt(_, T);
1904
- return F ? k[T] + y : E ? k[T] + f : _[T + 1][d] - m[d];
1905
- }).map(U);
1901
+ function b() {
1902
+ return n.map((m, T, B) => {
1903
+ const F = !T, E = tt(B, T);
1904
+ return F ? k[T] + y : E ? k[T] + f : B[T + 1][d] - m[d];
1905
+ }).map(q);
1906
1906
  }
1907
1907
  return {
1908
1908
  slideSizes: k,
1909
- slideSizesWithGaps: g,
1909
+ slideSizesWithGaps: p,
1910
1910
  startGap: y,
1911
1911
  endGap: f
1912
1912
  };
@@ -1917,26 +1917,26 @@ function Pr(t, e, n, s, i, a, o, d, l) {
1917
1917
  endEdge: y,
1918
1918
  direction: f
1919
1919
  } = t, k = Qe(n);
1920
- function g(p, m) {
1921
- return Le(p).filter((T) => T % m === 0).map((T) => p.slice(T, T + m));
1922
- }
1923
- function h(p) {
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 = U(B - N - (L + $));
1926
- return _ && W > e + l && m.push(T), j && m.push(p.length), m;
1927
- }, []).map((m, T, _) => {
1928
- const F = Math.max(_[T - 1] || 0);
1929
- return p.slice(F, m);
1920
+ function p(g, m) {
1921
+ return Ae(g).filter((T) => T % m === 0).map((T) => g.slice(T, T + m));
1922
+ }
1923
+ function h(g) {
1924
+ return g.length ? Ae(g).reduce((m, T, B) => {
1925
+ const F = ie(m) || 0, E = F === 0, j = T === Be(g), A = i[u] - a[F][u], N = i[u] - a[T][y], $ = !s && E ? f(o) : 0, _ = !s && j ? f(d) : 0, W = q(N - _ - (A + $));
1926
+ return B && W > e + l && m.push(T), j && m.push(g.length), m;
1927
+ }, []).map((m, T, B) => {
1928
+ const F = Math.max(B[T - 1] || 0);
1929
+ return g.slice(F, m);
1930
1930
  }) : [];
1931
1931
  }
1932
- function b(p) {
1933
- return k ? g(p, n) : h(p);
1932
+ function v(g) {
1933
+ return k ? p(g, n) : h(g);
1934
1934
  }
1935
1935
  return {
1936
- groupSlides: b
1936
+ groupSlides: v
1937
1937
  };
1938
1938
  }
1939
- function zr(t, e, n, s, i, a, o) {
1939
+ function Rr(t, e, n, s, i, a, o) {
1940
1940
  const {
1941
1941
  align: d,
1942
1942
  axis: l,
@@ -1944,30 +1944,30 @@ function zr(t, e, n, s, i, a, o) {
1944
1944
  startIndex: y,
1945
1945
  loop: f,
1946
1946
  duration: k,
1947
- dragFree: g,
1947
+ dragFree: p,
1948
1948
  dragThreshold: h,
1949
- inViewThreshold: b,
1950
- slidesToScroll: v,
1951
- skipSnaps: p,
1949
+ inViewThreshold: v,
1950
+ slidesToScroll: b,
1951
+ skipSnaps: g,
1952
1952
  containScroll: m,
1953
1953
  watchResize: T,
1954
- watchSlides: _,
1954
+ watchSlides: B,
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), z = vr(W), M = gr(d, W), I = !f && !!m, q = f || !!m, {
1957
+ } = a, j = 2, A = vr(), N = A.measure(e), $ = n.map(A.measure), _ = fr(l, u), W = _.measureSize(N), R = br(W), M = pr(d, W), I = !f && !!m, U = f || !!m, {
1958
1958
  slideSizes: ne,
1959
1959
  slideSizesWithGaps: Y,
1960
1960
  startGap: K,
1961
1961
  endGap: re
1962
- } = Nr(N, B, $, n, q, i), c = Pr(N, W, v, f, B, $, K, re, j), {
1963
- snaps: A,
1962
+ } = _r(_, N, $, n, U, i), c = Pr(_, W, b, f, N, $, K, re, j), {
1963
+ snaps: L,
1964
1964
  snapsAligned: P
1965
- } = Dr(N, M, B, $, c), R = -ie(A) + ie(Y), {
1965
+ } = Dr(_, M, N, $, c), z = -ie(L) + ie(Y), {
1966
1966
  snapsContained: x,
1967
1967
  scrollContainLimit: D
1968
- } = Sr(W, R, P, m, j), C = I ? x : P, {
1968
+ } = Sr(W, z, P, m, j), C = I ? x : P, {
1969
1969
  limit: H
1970
- } = wr(R, C, f), J = Nt(_e(C), y, f), X = J.clone(), V = Le(n), w = ({
1970
+ } = wr(z, C, f), J = _t(Be(C), y, f), X = J.clone(), V = Ae(n), w = ({
1971
1971
  dragHandler: he,
1972
1972
  scrollBody: He,
1973
1973
  scrollBounds: We,
@@ -1992,23 +1992,23 @@ function zr(t, e, n, s, i, a, o) {
1992
1992
  loop: it
1993
1993
  }
1994
1994
  }, lt) => {
1995
- const dt = he.settled(), qt = !Gt.shouldConstrain(), ct = it ? dt : dt && qt, ut = ct && !Wt.pointerDown();
1995
+ const dt = he.settled(), Ut = !Gt.shouldConstrain(), ct = it ? dt : dt && Ut, ut = ct && !Wt.pointerDown();
1996
1996
  ut && Vt.stop();
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
- }, 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), Re = Lr(f, C, R, H, ge), Oe = Ar(G, J, X, xe, Re, ge, o), ot = jr(H), rt = Fe(), Mt = Br(e, n, o, b), {
1997
+ const qt = We.get() * lt + Ot.get() * (1 - lt);
1998
+ Ee.set(qt), it && ($t.loop(he.direction()), Ht.loop()), He.to(Ee.get()), ut && at.emit("settle"), ct || at.emit("scroll");
1999
+ }, G = gr(s, i, () => w($e), (he) => O($e, he)), Z = 0.68, le = C[J.get()], de = De(le), me = De(le), ce = De(le), pe = De(le), xe = xr(de, ce, me, pe, k, Z), ze = Ar(f, C, z, H, pe), Oe = Lr(G, J, X, xe, ze, pe, o), ot = jr(H), rt = Fe(), Mt = Nr(e, n, o, v), {
2000
2000
  slideRegistry: st
2001
- } = Ir(I, m, C, D, c, V), Rt = Fr(t, n, st, Oe, xe, rt, o, E), $e = {
2001
+ } = Ir(I, m, C, D, c, V), zt = Fr(t, n, st, Oe, xe, rt, o, E), $e = {
2002
2002
  ownerDocument: s,
2003
2003
  ownerWindow: i,
2004
2004
  eventHandler: o,
2005
- containerRect: B,
2005
+ containerRect: N,
2006
2006
  slideRects: $,
2007
2007
  animation: G,
2008
- axis: N,
2009
- dragHandler: hr(N, t, s, i, ge, kr(N, i), de, G, Oe, xe, Re, J, o, z, g, h, p, Z, F),
2008
+ axis: _,
2009
+ dragHandler: hr(_, t, s, i, pe, kr(_, i), de, G, Oe, xe, ze, J, o, R, p, h, g, Z, F),
2010
2010
  eventStore: rt,
2011
- percentOfView: z,
2011
+ percentOfView: R,
2012
2012
  index: J,
2013
2013
  indexPrevious: X,
2014
2014
  limit: H,
@@ -2016,24 +2016,24 @@ function zr(t, e, n, s, i, a, o) {
2016
2016
  offsetLocation: ce,
2017
2017
  previousLocation: me,
2018
2018
  options: a,
2019
- resizeHandler: yr(e, o, i, n, N, T, L),
2019
+ resizeHandler: yr(e, o, i, n, _, T, A),
2020
2020
  scrollBody: xe,
2021
- scrollBounds: Tr(H, ce, ge, xe, z),
2022
- scrollLooper: Cr(R, H, ce, [de, ce, me, ge]),
2021
+ scrollBounds: Tr(H, ce, pe, xe, R),
2022
+ scrollLooper: Cr(z, H, ce, [de, ce, me, pe]),
2023
2023
  scrollProgress: ot,
2024
2024
  scrollSnapList: C.map(ot.get),
2025
2025
  scrollSnaps: C,
2026
- scrollTarget: Re,
2026
+ scrollTarget: ze,
2027
2027
  scrollTo: Oe,
2028
- slideLooper: _r(N, W, R, ne, Y, A, C, ce, n),
2029
- slideFocus: Rt,
2030
- slidesHandler: Er(e, o, _),
2028
+ slideLooper: Br(_, W, z, ne, Y, L, C, ce, n),
2029
+ slideFocus: zt,
2030
+ slidesHandler: Er(e, o, B),
2031
2031
  slidesInView: Mt,
2032
2032
  slideIndexes: V,
2033
2033
  slideRegistry: st,
2034
2034
  slidesToScroll: c,
2035
- target: ge,
2036
- translate: Pt(N, e)
2035
+ target: pe,
2036
+ translate: Pt(_, e)
2037
2037
  };
2038
2038
  return $e;
2039
2039
  }
@@ -2066,7 +2066,7 @@ function Mr() {
2066
2066
  };
2067
2067
  return l;
2068
2068
  }
2069
- const Rr = {
2069
+ const zr = {
2070
2070
  align: "center",
2071
2071
  axis: "x",
2072
2072
  container: null,
@@ -2090,14 +2090,14 @@ const Rr = {
2090
2090
  };
2091
2091
  function Or(t) {
2092
2092
  function e(a, o) {
2093
- return Bt(a, o || {});
2093
+ return Nt(a, o || {});
2094
2094
  }
2095
2095
  function n(a) {
2096
- const o = a.breakpoints || {}, d = Ae(o).filter((l) => t.matchMedia(l).matches).map((l) => o[l]).reduce((l, u) => e(l, u), {});
2096
+ const o = a.breakpoints || {}, d = Le(o).filter((l) => t.matchMedia(l).matches).map((l) => o[l]).reduce((l, u) => e(l, u), {});
2097
2097
  return e(a, d);
2098
2098
  }
2099
2099
  function s(a) {
2100
- return a.map((o) => Ae(o.breakpoints || {})).reduce((o, d) => o.concat(d), []).map(t.matchMedia);
2100
+ return a.map((o) => Le(o.breakpoints || {})).reduce((o, d) => o.concat(d), []).map(t.matchMedia);
2101
2101
  }
2102
2102
  return {
2103
2103
  mergeOptions: e,
@@ -2122,18 +2122,18 @@ function $r(t) {
2122
2122
  destroy: s
2123
2123
  };
2124
2124
  }
2125
- function ze(t, e, n) {
2125
+ function Re(t, e, n) {
2126
2126
  const s = t.ownerDocument, i = s.defaultView, a = Or(i), o = $r(a), d = Fe(), l = Mr(), {
2127
2127
  mergeOptions: u,
2128
2128
  optionsAtMedia: y,
2129
2129
  optionsMediaQueries: f
2130
2130
  } = a, {
2131
2131
  on: k,
2132
- off: g,
2132
+ off: p,
2133
2133
  emit: h
2134
- } = l, b = N;
2135
- let v = !1, p, m = u(Rr, ze.globalOptions), T = u(m), _ = [], F, E, j;
2136
- function L() {
2134
+ } = l, v = _;
2135
+ let b = !1, g, m = u(zr, Re.globalOptions), T = u(m), B = [], F, E, j;
2136
+ function A() {
2137
2137
  const {
2138
2138
  container: V,
2139
2139
  slides: w
@@ -2142,73 +2142,73 @@ function ze(t, e, n) {
2142
2142
  const G = Ye(w) ? E.querySelectorAll(w) : w;
2143
2143
  j = [].slice.call(G || E.children);
2144
2144
  }
2145
- function B(V) {
2146
- const w = zr(t, E, j, s, i, V, l);
2145
+ function N(V) {
2146
+ const w = Rr(t, E, j, s, i, V, l);
2147
2147
  if (V.loop && !w.slideLooper.canLoop()) {
2148
2148
  const O = Object.assign({}, V, {
2149
2149
  loop: !1
2150
2150
  });
2151
- return B(O);
2151
+ return N(O);
2152
2152
  }
2153
2153
  return w;
2154
2154
  }
2155
2155
  function $(V, w) {
2156
- v || (m = u(m, V), T = y(m), _ = w || _, L(), p = B(T), f([m, ..._.map(({
2156
+ b || (m = u(m, V), T = y(m), B = w || B, A(), g = N(T), f([m, ...B.map(({
2157
2157
  options: O
2158
- }) => O)]).forEach((O) => d.add(O, "change", N)), T.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(X), p.eventHandler.init(X), p.resizeHandler.init(X), p.slidesHandler.init(X), p.options.loop && p.slideLooper.loop(), E.offsetParent && j.length && p.dragHandler.init(X), F = o.init(X, _)));
2158
+ }) => O)]).forEach((O) => d.add(O, "change", _)), T.active && (g.translate.to(g.location.get()), g.animation.init(), g.slidesInView.init(), g.slideFocus.init(X), g.eventHandler.init(X), g.resizeHandler.init(X), g.slidesHandler.init(X), g.options.loop && g.slideLooper.loop(), E.offsetParent && j.length && g.dragHandler.init(X), F = o.init(X, B)));
2159
2159
  }
2160
- function N(V, w) {
2160
+ function _(V, w) {
2161
2161
  const O = c();
2162
2162
  W(), $(u({
2163
2163
  startIndex: O
2164
2164
  }, V), w), l.emit("reInit");
2165
2165
  }
2166
2166
  function W() {
2167
- p.dragHandler.destroy(), p.eventStore.clear(), p.translate.clear(), p.slideLooper.clear(), p.resizeHandler.destroy(), p.slidesHandler.destroy(), p.slidesInView.destroy(), p.animation.destroy(), o.destroy(), d.clear();
2167
+ g.dragHandler.destroy(), g.eventStore.clear(), g.translate.clear(), g.slideLooper.clear(), g.resizeHandler.destroy(), g.slidesHandler.destroy(), g.slidesInView.destroy(), g.animation.destroy(), o.destroy(), d.clear();
2168
2168
  }
2169
- function z() {
2170
- v || (v = !0, d.clear(), W(), l.emit("destroy"), l.clear());
2169
+ function R() {
2170
+ b || (b = !0, d.clear(), W(), l.emit("destroy"), l.clear());
2171
2171
  }
2172
2172
  function M(V, w, O) {
2173
- !T.active || v || (p.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : T.duration), p.scrollTo.index(V, O || 0));
2173
+ !T.active || b || (g.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : T.duration), g.scrollTo.index(V, O || 0));
2174
2174
  }
2175
2175
  function I(V) {
2176
- const w = p.index.add(1).get();
2176
+ const w = g.index.add(1).get();
2177
2177
  M(w, V, -1);
2178
2178
  }
2179
- function q(V) {
2180
- const w = p.index.add(-1).get();
2179
+ function U(V) {
2180
+ const w = g.index.add(-1).get();
2181
2181
  M(w, V, 1);
2182
2182
  }
2183
2183
  function ne() {
2184
- return p.index.add(1).get() !== c();
2184
+ return g.index.add(1).get() !== c();
2185
2185
  }
2186
2186
  function Y() {
2187
- return p.index.add(-1).get() !== c();
2187
+ return g.index.add(-1).get() !== c();
2188
2188
  }
2189
2189
  function K() {
2190
- return p.scrollSnapList;
2190
+ return g.scrollSnapList;
2191
2191
  }
2192
2192
  function re() {
2193
- return p.scrollProgress.get(p.offsetLocation.get());
2193
+ return g.scrollProgress.get(g.offsetLocation.get());
2194
2194
  }
2195
2195
  function c() {
2196
- return p.index.get();
2196
+ return g.index.get();
2197
2197
  }
2198
- function A() {
2199
- return p.indexPrevious.get();
2198
+ function L() {
2199
+ return g.indexPrevious.get();
2200
2200
  }
2201
2201
  function P() {
2202
- return p.slidesInView.get();
2202
+ return g.slidesInView.get();
2203
2203
  }
2204
- function R() {
2205
- return p.slidesInView.get(!1);
2204
+ function z() {
2205
+ return g.slidesInView.get(!1);
2206
2206
  }
2207
2207
  function x() {
2208
2208
  return F;
2209
2209
  }
2210
2210
  function D() {
2211
- return p;
2211
+ return g;
2212
2212
  }
2213
2213
  function C() {
2214
2214
  return t;
@@ -2224,29 +2224,29 @@ function ze(t, e, n) {
2224
2224
  canScrollPrev: Y,
2225
2225
  containerNode: H,
2226
2226
  internalEngine: D,
2227
- destroy: z,
2228
- off: g,
2227
+ destroy: R,
2228
+ off: p,
2229
2229
  on: k,
2230
2230
  emit: h,
2231
2231
  plugins: x,
2232
- previousScrollSnap: A,
2233
- reInit: b,
2232
+ previousScrollSnap: L,
2233
+ reInit: v,
2234
2234
  rootNode: C,
2235
2235
  scrollNext: I,
2236
- scrollPrev: q,
2236
+ scrollPrev: U,
2237
2237
  scrollProgress: re,
2238
2238
  scrollSnapList: K,
2239
2239
  scrollTo: M,
2240
2240
  selectedScrollSnap: c,
2241
2241
  slideNodes: J,
2242
2242
  slidesInView: P,
2243
- slidesNotInView: R
2243
+ slidesNotInView: z
2244
2244
  };
2245
2245
  return $(e, n), setTimeout(() => l.emit("init"), 0), X;
2246
2246
  }
2247
- ze.globalOptions = void 0;
2247
+ Re.globalOptions = void 0;
2248
2248
  function nt(t = {}, e = []) {
2249
- const n = Ue(t), s = Ue(e), [i, a] = oe(), [o, d] = oe(), l = ae(() => {
2249
+ const n = qe(t), s = qe(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(() => {
@@ -2255,21 +2255,21 @@ function nt(t = {}, e = []) {
2255
2255
  cr(s.current, e) || (s.current = e, l());
2256
2256
  }, [e, l]), te(() => {
2257
2257
  if (dr() && o) {
2258
- ze.globalOptions = nt.globalOptions;
2259
- const u = ze(o, n.current, s.current);
2258
+ Re.globalOptions = nt.globalOptions;
2259
+ const u = Re(o, n.current, s.current);
2260
2260
  return a(u), () => u.destroy();
2261
2261
  } else
2262
2262
  a(void 0);
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", 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 = {
2266
+ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Ur = "_slideInner_1bu1s_37", qr = "_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: qr,
2272
- loaderOverlay: Ur,
2271
+ slideInner: Ur,
2272
+ loaderOverlay: qr,
2273
2273
  image: Kr,
2274
2274
  loaded: Yr,
2275
2275
  empty: Jr,
@@ -2296,35 +2296,35 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
2296
2296
  align: "start",
2297
2297
  containScroll: "trimSnaps",
2298
2298
  slidesToScroll: 1
2299
- }, [k, g] = nt(f), [h, b] = oe(0), [v, p] = oe([]), [m, T] = oe([]);
2299
+ }, [k, p] = nt(f), [h, v] = oe(0), [b, g] = oe([]), [m, T] = oe([]);
2300
2300
  te(() => {
2301
2301
  T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
2302
2302
  }, [t]);
2303
- const _ = ae((z) => {
2303
+ const B = ae((R) => {
2304
2304
  T((M) => {
2305
2305
  const I = [...M];
2306
- return I[z] = !0, I;
2306
+ return I[R] = !0, I;
2307
2307
  });
2308
- }, []), F = ve(() => n * 1e3, [n]), E = ae(() => {
2309
- g && b(g.selectedScrollSnap());
2310
- }, [g]), j = ae((z) => g && g.scrollTo(z), [g]), L = ae(() => g && g.scrollPrev(), [g]), B = ae(() => g && g.scrollNext(), [g]);
2308
+ }, []), F = be(() => n * 1e3, [n]), E = ae(() => {
2309
+ p && v(p.selectedScrollSnap());
2310
+ }, [p]), j = ae((R) => p && p.scrollTo(R), [p]), A = ae(() => p && p.scrollPrev(), [p]), N = ae(() => p && p.scrollNext(), [p]);
2311
2311
  te(() => {
2312
- if (g)
2313
- return g.on("select", E), g.on("reInit", E), p(g.scrollSnapList()), () => {
2314
- g.off("select", E), g.off("reInit", E);
2312
+ if (p)
2313
+ return p.on("select", E), p.on("reInit", E), g(p.scrollSnapList()), () => {
2314
+ p.off("select", E), p.off("reInit", E);
2315
2315
  };
2316
- }, [g, E]), te(() => {
2317
- g && (g.reInit(), p(g.scrollSnapList()));
2318
- }, [g, t, o, d]), te(() => {
2319
- if (!e || !g || !t || t.length <= 1) return;
2320
- const z = window.setInterval(() => {
2321
- g.canScrollNext() && g.scrollNext();
2316
+ }, [p, E]), te(() => {
2317
+ p && (p.reInit(), g(p.scrollSnapList()));
2318
+ }, [p, t, o, d]), te(() => {
2319
+ if (!e || !p || !t || t.length <= 1) return;
2320
+ const R = window.setInterval(() => {
2321
+ p.canScrollNext() && p.scrollNext();
2322
2322
  }, F);
2323
2323
  return () => {
2324
- window.clearInterval(z);
2324
+ window.clearInterval(R);
2325
2325
  };
2326
- }, [e, F, g, t]);
2327
- const $ = Math.max(1, o), N = `${100 / $}%`, W = d / 2;
2326
+ }, [e, F, p, t]);
2327
+ const $ = Math.max(1, o), _ = `${100 / $}%`, W = d / 2;
2328
2328
  return /* @__PURE__ */ r.jsxs(
2329
2329
  "div",
2330
2330
  {
@@ -2341,12 +2341,12 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
2341
2341
  marginLeft: `-${W}px`,
2342
2342
  marginRight: `-${W}px`
2343
2343
  },
2344
- children: t && t.length > 0 ? t.map((z, M) => /* @__PURE__ */ r.jsx(
2344
+ children: t && t.length > 0 ? t.map((R, M) => /* @__PURE__ */ r.jsx(
2345
2345
  "div",
2346
2346
  {
2347
2347
  className: Q.slide,
2348
2348
  style: {
2349
- flex: `0 0 ${N}`,
2349
+ flex: `0 0 ${_}`,
2350
2350
  paddingLeft: `${W}px`,
2351
2351
  paddingRight: `${W}px`,
2352
2352
  borderRadius: l > 0 ? `${l}px` : void 0,
@@ -2359,19 +2359,19 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
2359
2359
  "img",
2360
2360
  {
2361
2361
  className: `${Q.image} ${m[M] ? Q.loaded : Q.loadingImage}`,
2362
- src: z.src,
2363
- alt: z.alt,
2362
+ src: R.src,
2363
+ alt: R.alt,
2364
2364
  loading: M < $ ? "eager" : "lazy",
2365
2365
  crossOrigin: "anonymous",
2366
- onLoad: () => _(M),
2366
+ onLoad: () => B(M),
2367
2367
  onError: (I) => {
2368
- I.target.style.display = "none", _(M);
2368
+ I.target.style.display = "none", B(M);
2369
2369
  }
2370
2370
  }
2371
2371
  )
2372
2372
  ] })
2373
2373
  },
2374
- `image-${M}-${z.src}`
2374
+ `image-${M}-${R.src}`
2375
2375
  )) : /* @__PURE__ */ r.jsx("div", { className: Q.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ r.jsx("div", { className: Q.empty, children: "Ingen bilder" }) })
2376
2376
  }
2377
2377
  ) }),
@@ -2383,7 +2383,7 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
2383
2383
  variant: "primary",
2384
2384
  icon: !0,
2385
2385
  "aria-label": "Forrige bilde",
2386
- onClick: L,
2386
+ onClick: A,
2387
2387
  disabled: !t || t.length <= 1,
2388
2388
  children: /* @__PURE__ */ r.jsx(Xn, { "aria-hidden": !0 })
2389
2389
  }
@@ -2394,13 +2394,13 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
2394
2394
  variant: "primary",
2395
2395
  icon: !0,
2396
2396
  "aria-label": "Neste bilde",
2397
- onClick: B,
2397
+ onClick: N,
2398
2398
  disabled: !t || t.length <= 1,
2399
2399
  children: /* @__PURE__ */ r.jsx(Qn, { "aria-hidden": !0 })
2400
2400
  }
2401
2401
  )
2402
2402
  ] }),
2403
- i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((z, M) => {
2403
+ i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: b.map((R, M) => {
2404
2404
  const I = M === h;
2405
2405
  return /* @__PURE__ */ r.jsx(
2406
2406
  "button",
@@ -2421,24 +2421,24 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
2421
2421
  );
2422
2422
  };
2423
2423
  os.displayName = "Carousel";
2424
- const Ca = un, ja = mn, Da = gn, ee = pn, Ia = fn, La = hn, rs = kn, ss = bn;
2424
+ const Ca = un, ja = mn, Da = pn, ee = gn, Ia = fn, Aa = hn, rs = kn, ss = vn;
2425
2425
  rs.displayName = "Field.Description";
2426
2426
  ss.displayName = "Field.Counter";
2427
- const Aa = It, as = ue((t, e) => /* @__PURE__ */ r.jsx(vn, { ref: e, ...t }));
2427
+ const La = It, as = ue((t, e) => /* @__PURE__ */ r.jsx(bn, { ref: e, ...t }));
2428
2428
  as.displayName = "Heading";
2429
2429
  const Fa = yn, is = ue((t, e) => /* @__PURE__ */ r.jsx(xn, { ref: e, ...t }));
2430
2430
  is.displayName = "Label";
2431
- const Ne = Tn, _a = Sn, Ea = wn, Ba = Cn, Ze = ue(
2431
+ const _e = Tn, Ba = Sn, Ea = wn, Na = Cn, Ze = ue(
2432
2432
  (t, e) => /* @__PURE__ */ r.jsx(jn, { ref: e, ...t })
2433
2433
  );
2434
2434
  Ze.displayName = "Paragraph";
2435
- const Na = Dn, Pa = In, za = Ln, Pe = Object.assign(An, {
2435
+ const _a = Dn, Pa = In, Ra = An, Pe = Object.assign(Ln, {
2436
2436
  Button: En,
2437
- ClearButton: _n,
2437
+ ClearButton: Bn,
2438
2438
  Input: Fn
2439
- }), Ma = Bn, Ra = Nn, Oa = Pn, ls = zn;
2439
+ }), Ma = Nn, za = _n, Oa = Pn, ls = Rn;
2440
2440
  ls.displayName = "Suggestion";
2441
- const qe = Mn, $a = Rn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, qa = Vn, Ua = Gn, ds = ue((t, e) => /* @__PURE__ */ r.jsx(qn, { ref: e, ...t }));
2441
+ const Ue = Mn, $a = zn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, Ua = Vn, qa = Gn, ds = ue((t, e) => /* @__PURE__ */ r.jsx(Un, { ref: e, ...t }));
2442
2442
  ds.displayName = "ValidationMessage";
2443
2443
  const cs = {
2444
2444
  NO: {
@@ -2467,6 +2467,7 @@ const cs = {
2467
2467
  design: "Design",
2468
2468
  components: "Komponenter",
2469
2469
  code: "Kode",
2470
+ tokens: "Tokens",
2470
2471
  work: "Vårt arbeid",
2471
2472
  volunteer: "Bli frivillig",
2472
2473
  courses: "Kurs og opplæring"
@@ -2690,20 +2691,89 @@ const cs = {
2690
2691
  processReview: 'Klar for gjennomgang: Når utviklingen er ferdig og alle automatiserte sjekker passerer, merk PR-en som "Ready for review" og be om en gjennomgang fra designsystem-forvalterne.'
2691
2692
  },
2692
2693
  figmaMcp: {
2693
- title: "Fra Figma til Kode med MCP",
2694
- intro: "Vi bruker Model Context Protocol (MCP) for å koble Figma direkte til utviklingsmiljøet. Dette gjør det mulig å hente ut designspesifikasjoner, tokens og kodestrukturer automatisk.",
2695
- processTitle: "Prosess",
2696
- processItem1: "Identifiser komponenten i Figma: Finn `node-id` til komponenten eller seksjonen du vil implementere.",
2697
- processItem2: 'Kopier lenke: Høyreklikk noden i Figma, velg "Copy link" for å få en URL som inneholder både fil-nøkkel og node-ID.',
2698
- processItem2Caption: "Høyreklikk en node i Figma og velg 'Copy link' for å få en direkte lenke.",
2699
- processItem3: "Gi kontekst og lenke: Det anbefales å legge ved theme.css (for tokens) og metadata.json (for komponenter) som kontekst i chatten. Lim deretter inn Figma-lenken.",
2700
- processItem3Caption: "Legg ved theme.css og metadata.json for bedre resultat.",
2701
- processItem4: "Motta kodeforslag: Verktøyet genererer React-kode basert på designet, inkludert bruk av våre eksisterende komponenter (som Heading, Button, Paragraph).",
2702
- processItem5: "Tilpass og implementer: Juster koden til å passe inn i prosjektstrukturen, og verifiser mot design-tokens.",
2703
- benefitsTitle: "Fordeler",
2704
- benefit1: "Raskere implementasjon av nye komponenter.",
2705
- benefit2: "Sikrer at riktige tokens blir brukt automatisk.",
2706
- benefit3: "Reduserer avstand mellom design og kode."
2694
+ title: "Arbeidsflyt: Fra Figma til Kode med MCP",
2695
+ intro: "Denne guiden beskriver hvordan vi bruker Model Context Protocol (MCP) for å koble Figma direkte til utviklingsmiljøet. Dette gjør det mulig å hente designspesifikasjoner, tokens og strukturer automatisk, validert mot vårt designsystem.",
2696
+ part1Title: "Del 1: Oppsett av Figma MCP Server",
2697
+ part1Intro: "Dette gjøres kun én gang for å aktivere integrasjonen i Cursor/Windsurf.",
2698
+ part1Description: 'For at AI-en skal kunne "lese" Figma-filene, vi sette opp en lokal kobling.',
2699
+ setupStep1Title: "1. Hent Figma Access Token",
2700
+ setupStep1Item1: " til Figma -> Settings -> Personal Access Tokens.",
2701
+ setupStep1Item2: "Klikk Generate new token.",
2702
+ setupStep1Item3: 'Navn: F.eks. "Cursor MCP".',
2703
+ setupStep1Item4: "Scopes: Velg File content: Read og File metadata: Read.",
2704
+ setupStep1Item5: "Kopier tokenet (du får ikke se det igjen).",
2705
+ setupStep2Title: "2. Konfigurer i Cursor",
2706
+ setupStep2Item1: "Åpne innstillinger i Cursor (Ctrl/Cmd + ,).",
2707
+ setupStep2Item2: " til Features -> MCP.",
2708
+ setupStep2Item3: "Klikk + Add New MCP Server.",
2709
+ setupStep2Item4: "Fyll inn følgende:",
2710
+ setupStep2Item5: "Type: command",
2711
+ setupStep2Item6: "Name: figma",
2712
+ setupStep2Item7: "Command: npx -y @modelcontextprotocol/server-figma",
2713
+ setupStep2Item8: "Legg til Environment Variable (viktig!):",
2714
+ setupStep2Item9: "Key: FIGMA_ACCESS_TOKEN",
2715
+ setupStep2Item10: "Value: [Lim inn tokenet du kopierte i steg 1]",
2716
+ setupStep2Item11: 'Når lyset ved siden av "figma" blir grønt, er verktøyet klart til bruk.',
2717
+ part2Title: "Del 2: Daglig Arbeidsflyt",
2718
+ step0Title: "Steg 0: Indeksering av Dokumentasjon",
2719
+ step0Description: "Gjør dette én gang per prosjekt for å gi AI-en full oversikt over designsystemet.",
2720
+ step0Intro: "For at Cursor skal forstå våre spesifikke tokens, komponentnavn og retningslinjer, må vi la den lese gjennom dokumentasjonen på forhånd.",
2721
+ step0Item1: "Åpne Chat i Cursor (Cmd + L / Ctrl + L).",
2722
+ step0Item2: 'Skriv @Docs i tekstfeltet og velg "Add new doc" fra menyen som dukker opp.',
2723
+ step0Item3: "Lim inn URL-en til hovedsiden for dokumentasjonen: https://norwegianredcross.github.io/DesignSystem/",
2724
+ step0Item4: "Gi den et navn som er lett å huske, f.eks. RødeKors.",
2725
+ step0Item5: "Trykk Confirm.",
2726
+ step0WhatHappensTitle: "Hva skjer nå?",
2727
+ step0WhatHappensText: 'Cursor vil automatisk "crawle" (lese) gjennom hovedsiden og alle undersider. Den lagrer informasjonen i en lokal database. Dette gjør at du senere kan referere til @RødeKors i chatten, og AI-en vil umiddelbart vite alle fargekoder, spacing-variabler og komponent-regler uten at du trenger å lime inn tekst manuelt. NB: Dette gjelder når du refererer til @RødeKors i chatten. Hvis du bruker .cursorrules, trenger du ikke å legge ved @RødeKors manuelt.',
2728
+ step1Title: "Steg 1: Hent presis lenke i Figma",
2729
+ step1Description: "For best resultat bør du isolere seksjonen du jobber med.",
2730
+ step1Item1: "Marker rammen (Frame), komponenten eller gruppen du vil implementere.",
2731
+ step1Item2: "Høyreklikk og velg Copy link to selection (Snarvei: Ctrl + L).",
2732
+ step1Item3: "NB: Bruk denne funksjonen fremfor å kopiere URL-en fra nettleseren.",
2733
+ step1ImageCaption: "",
2734
+ step2Title: "Steg 2: Gi kontekst (To metoder)",
2735
+ step2Description: "For at AI-en skal følge designsystemet vårt, må den vite hvor reglene finnes. Du kan velge mellom manuell eller automatisert metode.",
2736
+ step2AltATitle: "Alternativ A: Manuell kontekst (Raskt og enkelt)",
2737
+ step2AltADescription: "Bruk dette for engangstilfeller eller hvis du tester nye dokumentasjonskilder. Dette må gjøres manuelt med hver eneste prompt.",
2738
+ step2AltAItem1: "I Composer (Chat): Skriv @ og lim inn URL-ene til dokumentasjonen. Du må inkludere:",
2739
+ step2AltAItem1Sub1: "@https://norwegianredcross.github.io/design-tokens/theme.css",
2740
+ step2AltAItem1Sub2: "@https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json",
2741
+ step2AltAItem2: "Lim inn Figma-lenken: Lim inn lenken fra steg 1.",
2742
+ step2AltAImageCaption: "",
2743
+ step2AltBTitle: "Alternativ B: Automatisert med .cursorrules (Anbefalt)",
2744
+ step2AltBDescription: "Bruk dette for å slippe å legge ved dokumentasjon hver gang. Med en .cursorrules-fil i roten av prosjektet, vet AI-en alltid hvilke regler som gjelder.",
2745
+ step2AltBSetupTitle: "1. Oppsett (Gjøres én gang per prosjekt):",
2746
+ step2AltBSetupText: "Opprett en fil som heter .cursorrules i prosjektets rotmappe og gi kontekst ved å lime inn dette:",
2747
+ step2AltBCodeBlock: `You are an expert Frontend Developer implementing designs from Figma.
2748
+
2749
+ ALWAYS follow these rules:
2750
+ 1. **Documentation:** Refer to the indexed design system documentation (@RødeKors) for component usage, patterns, and guidelines.
2751
+ 2. **Metadata:** Use component metadata from: https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json
2752
+ 3. **Tokens:** Always use CSS variables/tokens defined in: https://norwegianredcross.github.io/design-tokens/theme.css (e.g., var(--spacing-md)).
2753
+ 4. **Figma MCP:** When a Figma link is provided, use the \`figma\` tool to inspect node properties.
2754
+
2755
+ Note: Make sure you have indexed the documentation (Step 0) before using these rules. Reference @RødeKors in chat when you need design system context.`,
2756
+ step2AltBUsageTitle: "2. I daglig bruk:",
2757
+ step2AltBUsageText: "Nå trenger du kun å lime inn Figma-lenken i chatten. AI-en vil automatisk sjekke .cursorrules og forstå at den skal hente designreglene fra dokumentasjonen du definerte.",
2758
+ step3Title: "Steg 3: Prompt",
2759
+ step3Description: "Gi en instruks som kobler designet mot kodebasen. Bruk gjerne denne malen:",
2760
+ step3Prompt: `"Using the design at this Figma link and the context from the provided documentation/rules:
2761
+
2762
+ Create a React component for this section.
2763
+
2764
+ Strictly use tokens found in the documentation (colors, spacing) - no magic numbers.
2765
+
2766
+ Map design elements to our existing components where possible (e.g. Buttons, Headings)."`,
2767
+ step4Title: "Steg 4: Generering og Review",
2768
+ step4Item1: "AI-en bruker nå MCP til å lese nodedataene og genererer et kodeforslag.",
2769
+ step4ReviewTitle: "Review:",
2770
+ step4ReviewItem1: 'Sjekk "Diff View" i Cursor.',
2771
+ step4ReviewItem2: "Er tokens brukt riktig? (f.eks. var(--spacing-md)).",
2772
+ step4ReviewItem3: "Er semantikken god?",
2773
+ step4Apply: 'Apply: Trykk "Apply" for å legge koden inn i filen din.',
2774
+ proTipsTitle: "Tips for suksess",
2775
+ proTip1: 'Lagre Docs som favoritter: I Cursor under "Docs"-fanen kan du indekserere norwegianredcross.github.io/.... Da kan du bruke @RødeKors som en snarvei i chatten hvis du ikke bruker .cursorrules.',
2776
+ proTip2: 'Missing Auto Layout? Hvis Figma-noden mangler Auto Layout, kan AI-en slite med posisjonering. Nevn gjerne i prompten: "Infer layout logic based on visual proximity if Auto Layout is missing."'
2707
2777
  },
2708
2778
  metadataFiles: {
2709
2779
  title: "Metadata-filer",
@@ -3200,8 +3270,30 @@ const cs = {
3200
3270
  githubIssuesLink: "https://github.com/norwegianredcross/DesignSystem/issues"
3201
3271
  }
3202
3272
  },
3203
- // Footer (if needed later)
3204
- footer: {}
3273
+ // Footer
3274
+ footer: {
3275
+ shortcuts: "Snarveier",
3276
+ shortcutsLinks: {
3277
+ services: "Tilbudene",
3278
+ volunteer: "Bli frivillig",
3279
+ ourWork: "Vårt arbeid",
3280
+ about: "Om Røde Kors",
3281
+ support: "Støtt arbeidet",
3282
+ contact: "Kontakt oss"
3283
+ },
3284
+ contact: {
3285
+ visitingAddress: "Besøks adresse",
3286
+ organizationNumber: "Organisasjonsnummer",
3287
+ email: "E-post"
3288
+ },
3289
+ copyright: "Rødekors",
3290
+ legal: {
3291
+ privacy: "Personvern",
3292
+ press: "For presse",
3293
+ procurement: "Regler for innkjøp",
3294
+ whistleblowing: "Varsling/Misconduct"
3295
+ }
3296
+ }
3205
3297
  },
3206
3298
  EN: {
3207
3299
  // Header
@@ -3229,6 +3321,7 @@ const cs = {
3229
3321
  design: "Design",
3230
3322
  components: "Components",
3231
3323
  code: "Code",
3324
+ tokens: "Tokens",
3232
3325
  work: "Our Work",
3233
3326
  volunteer: "Volunteer",
3234
3327
  courses: "Courses & Training"
@@ -3455,20 +3548,88 @@ const cs = {
3455
3548
  processReview: 'Ready for review: When development is complete and all automated checks pass, mark the PR as "Ready for review" and request a review from the design system maintainers.'
3456
3549
  },
3457
3550
  figmaMcp: {
3458
- title: "From Figma to Code with MCP",
3459
- intro: "We use Model Context Protocol (MCP) to connect Figma directly to the development environment. This makes it possible to automatically fetch design specifications, tokens, and code structures.",
3460
- processTitle: "Process",
3461
- processItem1: "Identify the component in Figma: Find the `node-id` of the component or section you want to implement.",
3462
- processItem2: 'Copy link: Right-click on the node in Figma, select "Copy link" to get a URL containing both file key and node ID.',
3463
- processItem2Caption: "Right-click on a node in Figma and select 'Copy link' to get a direct link.",
3464
- processItem3: "Provide context and link: It is recommended to include theme.css (for tokens) and metadata.json (for components) as context in the chat. Then paste the Figma link.",
3465
- processItem3Caption: "Include theme.css and metadata.json for better results.",
3466
- processItem4: "Receive code suggestions: The tool generates React code based on the design, including use of our existing components (such as Heading, Button, Paragraph).",
3467
- processItem5: "Adapt and implement: Adjust the code to fit into the project structure, and verify against design tokens.",
3468
- benefitsTitle: "Benefits",
3469
- benefit1: "Faster implementation of new components.",
3470
- benefit2: "Ensures correct tokens are used automatically.",
3471
- benefit3: "Reduces the gap between design and code."
3551
+ title: "Workflow: From Figma to Code with MCP",
3552
+ intro: "This guide describes how we use Model Context Protocol (MCP) to connect Figma directly to the development environment. This makes it possible to fetch design specifications, tokens, and structures automatically, validated against our design system.",
3553
+ part1Title: "Part 1: Figma MCP Server Setup",
3554
+ part1Intro: "This is done only once to activate the integration in Cursor/Windsurf.",
3555
+ part1Description: 'For the AI to be able to "read" Figma files, we need to set up a local connection.',
3556
+ setupStep1Title: "1. Get Figma Access Token",
3557
+ setupStep1Item1: "Go to Figma -> Settings -> Personal Access Tokens.",
3558
+ setupStep1Item2: "Click Generate new token.",
3559
+ setupStep1Item3: 'Name: E.g. "Cursor MCP".',
3560
+ setupStep1Item4: "Scopes: Select File content: Read and File metadata: Read.",
3561
+ setupStep1Item5: "Copy the token (you won't see it again).",
3562
+ setupStep2Title: "2. Configure in Cursor",
3563
+ setupStep2Item1: "Open settings in Cursor (Ctrl/Cmd + ,).",
3564
+ setupStep2Item2: "Go to Features -> MCP.",
3565
+ setupStep2Item3: "Click + Add New MCP Server.",
3566
+ setupStep2Item4: "Fill in the following:",
3567
+ setupStep2Item5: "Type: command",
3568
+ setupStep2Item6: "Name: figma",
3569
+ setupStep2Item7: "Command: npx -y @modelcontextprotocol/server-figma",
3570
+ setupStep2Item8: "Add Environment Variable (important!):",
3571
+ setupStep2Item9: "Key: FIGMA_ACCESS_TOKEN",
3572
+ setupStep2Item10: "Value: [Paste the token you copied in step 1]",
3573
+ setupStep2Item11: 'When the light next to "figma" turns green, the tool is ready to use.',
3574
+ part2Title: "Part 2: Daily Workflow",
3575
+ step0Title: "Step 0: Indexing Documentation",
3576
+ step0Description: "Do this once per project to give the AI a complete overview of the design system.",
3577
+ step0Intro: "For Cursor to understand our specific tokens, component names, and guidelines, we need to let it read through the documentation in advance.",
3578
+ step0Item1: "Open Chat in Cursor (Cmd + L / Ctrl + L).",
3579
+ step0Item2: 'Type @Docs in the text field and select "Add new doc" from the menu that appears.',
3580
+ step0Item3: "Paste the URL to the main page of the documentation: https://norwegianredcross.github.io/DesignSystem/",
3581
+ step0Item4: "Give it a name that's easy to remember, e.g. RedCross.",
3582
+ step0Item5: "Click Confirm.",
3583
+ step0WhatHappensTitle: "What happens now?",
3584
+ step0WhatHappensText: 'Cursor will automatically "crawl" (read) through the main page and all subpages. It stores the information in a local database. This means you can later refer to @RedCross in the chat, and the AI will immediately know all color codes, spacing variables, and component rules without you needing to paste text manually. Note: This applies when you reference @RedCross in chat. If you use .cursorrules, you don’t need to attach @RedCross manually.',
3585
+ step1Description: "For best results, you should isolate the section you're working with.",
3586
+ step1Item1: "Select the frame (Frame), component, or group you want to implement.",
3587
+ step1Item2: "Right-click and select Copy link to selection (Shortcut: Ctrl + L).",
3588
+ step1Item3: "NB: Use this function instead of copying the URL from the browser.",
3589
+ step1ImageCaption: "",
3590
+ step2Title: "Step 2: Provide context (Two methods)",
3591
+ step2Description: "For the AI to follow our design system, it needs to know where the rules are. You can choose between manual or automated method.",
3592
+ step2AltATitle: "Alternative A: Manual context (Quick and easy)",
3593
+ step2AltADescription: "Use this for one-time cases or if you're testing new documentation sources. This must be done manually with every single prompt.",
3594
+ step2AltAItem1: "In Composer (Chat): Type @ and paste the URLs to the documentation. You must include:",
3595
+ step2AltAItem1Sub1: "@https://norwegianredcross.github.io/design-tokens/theme.css",
3596
+ step2AltAItem1Sub2: "@https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json",
3597
+ step2AltAItem2: "Paste Figma link: Paste the link from step 1.",
3598
+ step2AltAImageCaption: "",
3599
+ step2AltBTitle: "Alternative B: Automated with .cursorrules (Recommended)",
3600
+ step2AltBDescription: "Use this to avoid attaching documentation every time. With a .cursorrules file in the project root, the AI always knows which rules apply.",
3601
+ step2AltBSetupTitle: "1. Setup (Done once per project):",
3602
+ step2AltBSetupText: "Create a file named .cursorrules in the project root folder and give context by pasting this:",
3603
+ step2AltBCodeBlock: `You are an expert Frontend Developer implementing designs from Figma.
3604
+
3605
+ ALWAYS follow these rules:
3606
+ 1. **Documentation:** Refer to the indexed design system documentation (@RedCross) for component usage, patterns, and guidelines.
3607
+ 2. **Metadata:** Use component metadata from: https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json
3608
+ 3. **Tokens:** Always use CSS variables/tokens defined in: https://norwegianredcross.github.io/design-tokens/theme.css (e.g., var(--spacing-md)).
3609
+ 4. **Figma MCP:** When a Figma link is provided, use the \`figma\` tool to inspect node properties.
3610
+
3611
+ Note: Make sure you have indexed the documentation (Step 0) before using these rules. Reference @RedCross in chat when you need design system context.`,
3612
+ step2AltBUsageTitle: "2. In daily use:",
3613
+ step2AltBUsageText: "Now you only need to paste the Figma link in the chat. The AI will automatically check .cursorrules and understand that it should fetch design rules from the documentation you defined.",
3614
+ step3Title: "Step 3: Prompt",
3615
+ step3Description: "Give an instruction that connects the design to the codebase. You can use this template:",
3616
+ step3Prompt: `"Using the design at this Figma link and the context from the provided documentation/rules:
3617
+
3618
+ Create a React component for this section.
3619
+
3620
+ Strictly use tokens found in the documentation (colors, spacing) - no magic numbers.
3621
+
3622
+ Map design elements to our existing components where possible (e.g. Buttons, Headings)."`,
3623
+ step4Title: "Step 4: Generation and Review",
3624
+ step4Item1: "The AI now uses MCP to read the node data and generates a code proposal.",
3625
+ step4ReviewTitle: "Review:",
3626
+ step4ReviewItem1: 'Check "Diff View" in Cursor.',
3627
+ step4ReviewItem2: "Are tokens used correctly? (e.g. var(--spacing-md)).",
3628
+ step4ReviewItem3: "Is the semantics good?",
3629
+ step4Apply: 'Apply: Click "Apply" to insert the code into your file.',
3630
+ proTipsTitle: "Tips for success",
3631
+ proTip1: `Save Docs as favorites: In Cursor under the "Docs" tab, you can index norwegianredcross.github.io/.... Then you can use @RedCross as a shortcut in the chat if you don't use .cursorrules.`,
3632
+ proTip2: 'Missing Auto Layout? If the Figma node is missing Auto Layout, the AI may struggle with positioning. Mention in the prompt: "Infer layout logic based on visual proximity if Auto Layout is missing."'
3472
3633
  },
3473
3634
  metadataFiles: {
3474
3635
  title: "Metadata Files",
@@ -3966,9 +4127,31 @@ const cs = {
3966
4127
  }
3967
4128
  },
3968
4129
  // Footer
3969
- footer: {}
4130
+ footer: {
4131
+ shortcuts: "Shortcuts",
4132
+ shortcutsLinks: {
4133
+ services: "Services",
4134
+ volunteer: "Become a volunteer",
4135
+ ourWork: "Our Work",
4136
+ about: "About Red Cross",
4137
+ support: "Support the work",
4138
+ contact: "Contact us"
4139
+ },
4140
+ contact: {
4141
+ visitingAddress: "Visiting address",
4142
+ organizationNumber: "Organization number",
4143
+ email: "Email"
4144
+ },
4145
+ copyright: "Red Cross",
4146
+ legal: {
4147
+ privacy: "Privacy",
4148
+ press: "For press",
4149
+ procurement: "Procurement rules",
4150
+ whistleblowing: "Whistleblowing/Misconduct"
4151
+ }
4152
+ }
3970
4153
  }
3971
- }, zt = Kt(void 0), Ka = ({ children: t }) => {
4154
+ }, Rt = Kt(void 0), Ka = ({ children: t }) => {
3972
4155
  const [e, n] = oe("NO"), s = (i) => {
3973
4156
  const a = i.split(".");
3974
4157
  let o = cs[e];
@@ -3979,21 +4162,21 @@ const cs = {
3979
4162
  }
3980
4163
  return o;
3981
4164
  };
3982
- return /* @__PURE__ */ r.jsx(zt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
4165
+ return /* @__PURE__ */ r.jsx(Rt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
3983
4166
  }, us = () => {
3984
- const t = Yt(zt);
4167
+ const t = Yt(Rt);
3985
4168
  if (t === void 0)
3986
4169
  throw new Error("useLanguage must be used within a LanguageProvider");
3987
4170
  return t;
3988
- }, ms = "_header_3zql2_1", gs = "_languageSwitch_3zql2_36", ps = "_searchOverlay_3zql2_40", fs = "_headerExtension_3zql2_45", hs = "_extensionContentWrapper_3zql2_61", ks = "_extensionContent_3zql2_61", bs = "_extensionDivider_3zql2_84", vs = "_languageLabel_3zql2_98", ys = "_languageLink_3zql2_104", xs = "_headerInner_3zql2_129", Ts = "_logoWrapper_3zql2_146", Ss = "_logo_3zql2_146", ws = "_secondaryLogoWrapper_3zql2_169", Cs = "_slotComponent_3zql2_178", js = "_slotContainer_3zql2_188", Ds = "_slotText_3zql2_196", Is = "_secondaryLogo_3zql2_169", Ls = "_redCrossLogo_3zql2_223", As = "_primaryLogo_3zql2_229", Fs = "_navItems_3zql2_233", _s = "_navLink_3zql2_242", Es = "_actions_3zql2_255", Bs = "_ctaButton_3zql2_263", Ns = "_themeToggle_3zql2_268", Ps = "_userInfo_3zql2_273", zs = "_userName_3zql2_279", Ms = "_loginLink_3zql2_286", Rs = "_loginText_3zql2_295", Os = "_underline_3zql2_302", $s = "_searchButtonWrapper_3zql2_308", Hs = "_buttonText_3zql2_312", Ws = "_menuButton_3zql2_317", Vs = "_menuOverlay_3zql2_322", Gs = "_searchContent_3zql2_356", qs = "_menuContent_3zql2_366", Us = "_menuLeftColumn_3zql2_375", Ks = "_menuRightColumn_3zql2_381", Ys = "_slotContent_3zql2_395", Js = "_navList_3zql2_408", Zs = "_menuUtilities_3zql2_415", Xs = "_menuBrand_3zql2_422", Qs = "_suggestionsSection_3zql2_426", ea = "_suggestionsTitle_3zql2_432", ta = "_searchResults_3zql2_441", na = "_resultList_3zql2_447", oa = "_resultItem_3zql2_453", ra = "_resultLink_3zql2_461", sa = "_suggestionIcon_3zql2_475", aa = "_suggestionText_3zql2_488", ia = "_highlightedText_3zql2_495", la = "_remainingText_3zql2_500", da = "_viewAllLink_3zql2_513", ca = "_noResults_3zql2_548", S = {
4171
+ }, ms = "_header_3zql2_1", ps = "_languageSwitch_3zql2_36", gs = "_searchOverlay_3zql2_40", fs = "_headerExtension_3zql2_45", hs = "_extensionContentWrapper_3zql2_61", ks = "_extensionContent_3zql2_61", vs = "_extensionDivider_3zql2_84", bs = "_languageLabel_3zql2_98", ys = "_languageLink_3zql2_104", xs = "_headerInner_3zql2_129", Ts = "_logoWrapper_3zql2_146", Ss = "_logo_3zql2_146", ws = "_secondaryLogoWrapper_3zql2_169", Cs = "_slotComponent_3zql2_178", js = "_slotContainer_3zql2_188", Ds = "_slotText_3zql2_196", Is = "_secondaryLogo_3zql2_169", As = "_redCrossLogo_3zql2_223", Ls = "_primaryLogo_3zql2_229", Fs = "_navItems_3zql2_233", Bs = "_navLink_3zql2_242", Es = "_actions_3zql2_255", Ns = "_ctaButton_3zql2_263", _s = "_themeToggle_3zql2_268", Ps = "_userInfo_3zql2_273", Rs = "_userName_3zql2_279", Ms = "_loginLink_3zql2_286", zs = "_loginText_3zql2_295", Os = "_underline_3zql2_302", $s = "_searchButtonWrapper_3zql2_308", Hs = "_buttonText_3zql2_312", Ws = "_menuButton_3zql2_317", Vs = "_menuOverlay_3zql2_322", Gs = "_searchContent_3zql2_356", Us = "_menuContent_3zql2_366", qs = "_menuLeftColumn_3zql2_375", Ks = "_menuRightColumn_3zql2_381", Ys = "_slotContent_3zql2_395", Js = "_navList_3zql2_408", Zs = "_menuUtilities_3zql2_415", Xs = "_menuBrand_3zql2_422", Qs = "_suggestionsSection_3zql2_426", ea = "_suggestionsTitle_3zql2_432", ta = "_searchResults_3zql2_441", na = "_resultList_3zql2_447", oa = "_resultItem_3zql2_453", ra = "_resultLink_3zql2_461", sa = "_suggestionIcon_3zql2_475", aa = "_suggestionText_3zql2_488", ia = "_highlightedText_3zql2_495", la = "_remainingText_3zql2_500", da = "_viewAllLink_3zql2_513", ca = "_noResults_3zql2_548", S = {
3989
4172
  header: ms,
3990
- languageSwitch: gs,
3991
- searchOverlay: ps,
4173
+ languageSwitch: ps,
4174
+ searchOverlay: gs,
3992
4175
  headerExtension: fs,
3993
4176
  extensionContentWrapper: hs,
3994
4177
  extensionContent: ks,
3995
- extensionDivider: bs,
3996
- languageLabel: vs,
4178
+ extensionDivider: vs,
4179
+ languageLabel: bs,
3997
4180
  languageLink: ys,
3998
4181
  headerInner: xs,
3999
4182
  logoWrapper: Ts,
@@ -4003,25 +4186,25 @@ const cs = {
4003
4186
  slotContainer: js,
4004
4187
  slotText: Ds,
4005
4188
  secondaryLogo: Is,
4006
- redCrossLogo: Ls,
4007
- primaryLogo: As,
4189
+ redCrossLogo: As,
4190
+ primaryLogo: Ls,
4008
4191
  navItems: Fs,
4009
- navLink: _s,
4192
+ navLink: Bs,
4010
4193
  actions: Es,
4011
- ctaButton: Bs,
4012
- themeToggle: Ns,
4194
+ ctaButton: Ns,
4195
+ themeToggle: _s,
4013
4196
  userInfo: Ps,
4014
- userName: zs,
4197
+ userName: Rs,
4015
4198
  loginLink: Ms,
4016
- loginText: Rs,
4199
+ loginText: zs,
4017
4200
  underline: Os,
4018
4201
  searchButtonWrapper: $s,
4019
4202
  buttonText: Hs,
4020
4203
  menuButton: Ws,
4021
4204
  menuOverlay: Vs,
4022
4205
  searchContent: Gs,
4023
- menuContent: qs,
4024
- menuLeftColumn: Us,
4206
+ menuContent: Us,
4207
+ menuLeftColumn: qs,
4025
4208
  menuRightColumn: Ks,
4026
4209
  slotContent: Ys,
4027
4210
  navList: Js,
@@ -4116,16 +4299,16 @@ const cs = {
4116
4299
  showThemeToggle: y = !1,
4117
4300
  secondaryLogo: f = !1,
4118
4301
  secondaryLogoSrc: k,
4119
- secondaryLogoSrcDark: g,
4302
+ secondaryLogoSrcDark: p,
4120
4303
  secondaryLogoAlt: h = "Secondary Logo",
4121
- navItems: b,
4122
- showNavItems: v = !0,
4123
- showMenuButton: p = !0,
4304
+ navItems: v,
4305
+ showNavItems: b = !0,
4306
+ showMenuButton: g = !0,
4124
4307
  showHeaderExtension: m = !1,
4125
4308
  showModeToggle: T = !1,
4126
- showLanguageSwitch: _ = !1
4309
+ showLanguageSwitch: B = !1
4127
4310
  }) => {
4128
- const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N, W] = oe("light"), { language: z, setLanguage: M, t: I } = us(), [q, ne] = oe(!1);
4311
+ const [F, E] = oe(!1), [j, A] = oe(!1), [N, $] = oe(""), [_, W] = oe("light"), { language: R, setLanguage: M, t: I } = us(), [U, ne] = oe(!1);
4129
4312
  te(() => {
4130
4313
  const x = "rk-header-inline-styles";
4131
4314
  if (typeof document > "u" || document.getElementById(x)) return;
@@ -4158,15 +4341,15 @@ const cs = {
4158
4341
  }
4159
4342
  );
4160
4343
  te(() => {
4161
- E(!1), L(!1), $("");
4344
+ E(!1), A(!1), $("");
4162
4345
  }, [t]), te(() => {
4163
- if (!(typeof document > "u") && F && q) {
4346
+ if (!(typeof document > "u") && F && U) {
4164
4347
  const x = document.body.style.overflow;
4165
4348
  return document.body.style.overflow = "hidden", () => {
4166
4349
  document.body.style.overflow = x;
4167
4350
  };
4168
4351
  }
4169
- }, [F, q]), te(() => {
4352
+ }, [F, U]), te(() => {
4170
4353
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
4171
4354
  const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
4172
4355
  return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
@@ -4187,7 +4370,7 @@ const cs = {
4187
4370
  return C.observe(x), () => {
4188
4371
  window.removeEventListener("resize", D), C.disconnect();
4189
4372
  };
4190
- }, [q]), te(() => {
4373
+ }, [U]), te(() => {
4191
4374
  if (typeof document > "u") return;
4192
4375
  const x = document.querySelector(`.${S.logoWrapper}`);
4193
4376
  if (!x) return;
@@ -4196,7 +4379,7 @@ const cs = {
4196
4379
  document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
4197
4380
  };
4198
4381
  return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
4199
- }, [q]), te(() => {
4382
+ }, [U]), te(() => {
4200
4383
  if (typeof document > "u" || !j) {
4201
4384
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
4202
4385
  return;
@@ -4214,44 +4397,44 @@ const cs = {
4214
4397
  };
4215
4398
  }, [j]);
4216
4399
  const K = () => {
4217
- const x = N === "light" ? "dark" : "light";
4400
+ const x = _ === "light" ? "dark" : "light";
4218
4401
  W(x), document.documentElement.setAttribute("data-color-scheme", x);
4219
4402
  }, re = (x) => {
4220
- e && (x.preventDefault(), e("home")), E(!1), L(!1);
4403
+ e && (x.preventDefault(), e("home")), E(!1), A(!1);
4221
4404
  }, c = () => {
4222
- E(!F), j && L(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
4405
+ E(!F), j && A(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
4223
4406
  const x = document.querySelector(`.${S.header}`);
4224
4407
  if (x) {
4225
4408
  const D = x.offsetHeight;
4226
4409
  document.documentElement.style.setProperty("--header-height-mobile", `${D}px`);
4227
4410
  }
4228
4411
  });
4229
- }, A = () => {
4230
- L(!j), F && E(!1);
4231
- }, P = ve(() => {
4232
- if (!B.trim()) return [];
4233
- const x = B.toLowerCase();
4412
+ }, L = () => {
4413
+ A(!j), F && E(!1);
4414
+ }, P = be(() => {
4415
+ if (!N.trim()) return [];
4416
+ const x = N.toLowerCase();
4234
4417
  return ua.filter(
4235
4418
  (D) => D.title.toLowerCase().startsWith(x)
4236
4419
  );
4237
- }, [B]), R = (x) => {
4238
- e && e(x), L(!1), $("");
4420
+ }, [N]), z = (x) => {
4421
+ e && e(x), A(!1), $("");
4239
4422
  };
4240
4423
  return /* @__PURE__ */ r.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
4241
4424
  m && /* @__PURE__ */ r.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: S.extensionContentWrapper, children: [
4242
4425
  T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
4243
- qe,
4426
+ Ue,
4244
4427
  {
4245
4428
  "data-size": "sm",
4246
- checked: N === "dark",
4429
+ checked: _ === "dark",
4247
4430
  onChange: K,
4248
4431
  label: I("header.darkMode"),
4249
4432
  color: "neutral",
4250
4433
  "data-color-scheme": "light"
4251
4434
  }
4252
4435
  ) }),
4253
- T && _ && /* @__PURE__ */ r.jsx("div", { className: S.extensionDivider }),
4254
- _ && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4436
+ T && B && /* @__PURE__ */ r.jsx("div", { className: S.extensionDivider }),
4437
+ B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4255
4438
  /* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4256
4439
  /* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
4257
4440
  /* @__PURE__ */ r.jsxs(
@@ -4261,16 +4444,16 @@ const cs = {
4261
4444
  "aria-label": I("header.selectLanguage"),
4262
4445
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4263
4446
  children: [
4264
- z,
4447
+ R,
4265
4448
  " ",
4266
- /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
4449
+ /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
4267
4450
  ]
4268
4451
  }
4269
4452
  ),
4270
4453
  /* @__PURE__ */ r.jsx(
4271
4454
  ee,
4272
4455
  {
4273
- "data-color-scheme": N,
4456
+ "data-color-scheme": _,
4274
4457
  placement: "bottom-end",
4275
4458
  children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
4276
4459
  /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
@@ -4284,7 +4467,7 @@ const cs = {
4284
4467
  /* @__PURE__ */ r.jsxs("div", { className: S.headerInner, children: [
4285
4468
  /* @__PURE__ */ r.jsxs("div", { className: S.logoWrapper, children: [
4286
4469
  /* @__PURE__ */ r.jsx(
4287
- Ne,
4470
+ _e,
4288
4471
  {
4289
4472
  href: "/",
4290
4473
  className: `${S.logo} ${S.primaryLogo}`,
@@ -4296,14 +4479,14 @@ const cs = {
4296
4479
  /* @__PURE__ */ r.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
4297
4480
  "img",
4298
4481
  {
4299
- src: N === "dark" && g ? g : k,
4482
+ src: _ === "dark" && p ? p : k,
4300
4483
  alt: h,
4301
4484
  className: S.secondaryLogo
4302
4485
  }
4303
4486
  ) : 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
4487
  ] }),
4305
- v && b && b.length > 0 && !q && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
4306
- Ne,
4488
+ b && v && v.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: v.map((x, D) => /* @__PURE__ */ r.jsx(
4489
+ _e,
4307
4490
  {
4308
4491
  href: x.href,
4309
4492
  className: S.navLink,
@@ -4330,9 +4513,9 @@ const cs = {
4330
4513
  }
4331
4514
  ),
4332
4515
  !m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
4333
- qe,
4516
+ Ue,
4334
4517
  {
4335
- checked: N === "dark",
4518
+ checked: _ === "dark",
4336
4519
  onChange: K,
4337
4520
  "aria-label": I("header.toggleTheme")
4338
4521
  }
@@ -4351,16 +4534,16 @@ const cs = {
4351
4534
  variant: "secondary",
4352
4535
  "data-color": "main",
4353
4536
  "data-size": "md",
4354
- onClick: A,
4537
+ onClick: L,
4355
4538
  "aria-expanded": j,
4356
4539
  "aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
4357
4540
  children: [
4358
- j ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
4541
+ j ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
4359
4542
  /* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
4360
4543
  ]
4361
4544
  }
4362
4545
  ) }),
4363
- (p || q) && /* @__PURE__ */ r.jsxs(
4546
+ (g || U) && /* @__PURE__ */ r.jsxs(
4364
4547
  ye,
4365
4548
  {
4366
4549
  variant: "primary",
@@ -4371,7 +4554,7 @@ const cs = {
4371
4554
  "aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
4372
4555
  className: S.menuButton,
4373
4556
  children: [
4374
- F ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
4557
+ F ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
4375
4558
  /* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
4376
4559
  ]
4377
4560
  }
@@ -4381,8 +4564,8 @@ const cs = {
4381
4564
  F && /* @__PURE__ */ r.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.menuContent, children: [
4382
4565
  /* @__PURE__ */ r.jsx("div", { className: S.menuLeftColumn }),
4383
4566
  /* @__PURE__ */ r.jsxs("div", { className: S.menuRightColumn, children: [
4384
- q && (_ || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
4385
- _ && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4567
+ U && (B || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
4568
+ B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4386
4569
  /* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4387
4570
  /* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
4388
4571
  /* @__PURE__ */ r.jsxs(
@@ -4392,16 +4575,16 @@ const cs = {
4392
4575
  "aria-label": I("header.selectLanguage"),
4393
4576
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4394
4577
  children: [
4395
- z,
4578
+ R,
4396
4579
  " ",
4397
- /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
4580
+ /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
4398
4581
  ]
4399
4582
  }
4400
4583
  ),
4401
4584
  /* @__PURE__ */ r.jsx(
4402
4585
  ee,
4403
4586
  {
4404
- "data-color-scheme": N,
4587
+ "data-color-scheme": _,
4405
4588
  placement: "bottom-start",
4406
4589
  children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
4407
4590
  /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
@@ -4412,10 +4595,10 @@ const cs = {
4412
4595
  ] })
4413
4596
  ] }),
4414
4597
  T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
4415
- qe,
4598
+ Ue,
4416
4599
  {
4417
4600
  "data-size": "sm",
4418
- checked: N === "dark",
4601
+ checked: _ === "dark",
4419
4602
  onChange: K,
4420
4603
  label: I("header.darkMode"),
4421
4604
  color: "neutral",
@@ -4425,8 +4608,8 @@ const cs = {
4425
4608
  ] }),
4426
4609
  /* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
4427
4610
  n,
4428
- q && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
4429
- Ne,
4611
+ U && b && v && v.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: v.map((x, D) => /* @__PURE__ */ r.jsx(
4612
+ _e,
4430
4613
  {
4431
4614
  href: x.href,
4432
4615
  className: S.navLink,
@@ -4438,7 +4621,7 @@ const cs = {
4438
4621
  D
4439
4622
  )) })
4440
4623
  ] }),
4441
- q && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
4624
+ U && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
4442
4625
  ] })
4443
4626
  ] }) }),
4444
4627
  j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
@@ -4448,26 +4631,26 @@ const cs = {
4448
4631
  {
4449
4632
  "aria-label": I("header.search"),
4450
4633
  placeholder: I("header.searchPlaceholder"),
4451
- value: B,
4634
+ value: N,
4452
4635
  onChange: (x) => $(x.target.value)
4453
4636
  }
4454
4637
  ),
4455
4638
  /* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": I("header.search") }),
4456
4639
  /* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": I("header.clearSearch") })
4457
4640
  ] }),
4458
- B && /* @__PURE__ */ r.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: S.suggestionsSection, children: [
4641
+ N && /* @__PURE__ */ r.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: S.suggestionsSection, children: [
4459
4642
  /* @__PURE__ */ r.jsx("h3", { className: S.suggestionsTitle, children: I("header.suggestions") }),
4460
4643
  /* @__PURE__ */ r.jsx("ul", { className: S.resultList, children: P.slice(0, 5).map((x) => /* @__PURE__ */ r.jsx("li", { className: S.resultItem, children: /* @__PURE__ */ r.jsxs(
4461
4644
  "button",
4462
4645
  {
4463
4646
  className: S.resultLink,
4464
- onClick: () => R(x.path),
4647
+ onClick: () => z(x.path),
4465
4648
  children: [
4466
4649
  /* @__PURE__ */ r.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
4467
4650
  /* @__PURE__ */ r.jsx("span", { className: S.suggestionText, children: (() => {
4468
- const D = x.title.toLowerCase().indexOf(B.toLowerCase());
4651
+ const D = x.title.toLowerCase().indexOf(N.toLowerCase());
4469
4652
  if (D === -1) return /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: x.title });
4470
- const C = x.title.slice(0, D), H = x.title.slice(D, D + B.length), J = x.title.slice(D + B.length);
4653
+ const C = x.title.slice(0, D), H = x.title.slice(D, D + N.length), J = x.title.slice(D + N.length);
4471
4654
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4472
4655
  /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: C }),
4473
4656
  /* @__PURE__ */ r.jsx("span", { className: S.highlightedText, children: H }),
@@ -4478,13 +4661,13 @@ const cs = {
4478
4661
  }
4479
4662
  ) }, x.id)) }),
4480
4663
  P.length > 5 && /* @__PURE__ */ r.jsxs(
4481
- Ne,
4664
+ _e,
4482
4665
  {
4483
4666
  href: "#",
4484
4667
  "data-color": "neutral",
4485
4668
  className: S.viewAllLink,
4486
4669
  onClick: (x) => {
4487
- x.preventDefault(), e && e(`search/${B}`), L(!1), $("");
4670
+ x.preventDefault(), e && e(`search/${N}`), A(!1), $("");
4488
4671
  },
4489
4672
  children: [
4490
4673
  I("header.viewAll"),
@@ -4497,7 +4680,7 @@ const cs = {
4497
4680
  ] }) : /* @__PURE__ */ r.jsx("div", { className: S.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
4498
4681
  I("header.noResults"),
4499
4682
  ' "',
4500
- B,
4683
+ N,
4501
4684
  '"'
4502
4685
  ] }) }) })
4503
4686
  ] }) })
@@ -4638,10 +4821,10 @@ export {
4638
4821
  Ft as Avatar,
4639
4822
  ao as Badge,
4640
4823
  ka as BadgePosition,
4641
- ba as Breadcrumbs,
4824
+ va as Breadcrumbs,
4642
4825
  ya as BreadcrumbsItem,
4643
4826
  xa as BreadcrumbsLink,
4644
- va as BreadcrumbsList,
4827
+ ba as BreadcrumbsList,
4645
4828
  ye as Button,
4646
4829
  io as Card,
4647
4830
  Ta as CardBlock,
@@ -4655,38 +4838,38 @@ export {
4655
4838
  Da as Divider,
4656
4839
  ee as Dropdown,
4657
4840
  Ia as ErrorSummary,
4658
- La as Field,
4841
+ Aa as Field,
4659
4842
  ss as FieldCounter,
4660
4843
  rs as FieldDescription,
4661
- Aa as Fieldset,
4844
+ La as Fieldset,
4662
4845
  Ya as Header,
4663
4846
  as as Heading,
4664
4847
  Fa as Input,
4665
4848
  is as Label,
4666
4849
  Ka as LanguageProvider,
4667
- Ne as Link,
4668
- _a as List,
4850
+ _e as Link,
4851
+ Ba as List,
4669
4852
  Ea as Pagination,
4670
4853
  Ze as Paragraph,
4671
- Na as Popover,
4854
+ _a as Popover,
4672
4855
  Pa as Radio,
4673
4856
  Pe as Search,
4674
4857
  Ma as Select,
4675
- Ra as SkeletonLoader,
4858
+ za as SkeletonLoader,
4676
4859
  Oa as SkipLink,
4677
4860
  ns as Spinner,
4678
4861
  ls as Suggestion,
4679
- qe as Switch,
4862
+ Ue as Switch,
4680
4863
  $a as Table,
4681
4864
  Ha as Tabs,
4682
4865
  Wa as Tag,
4683
4866
  Va as Textarea,
4684
4867
  Ga as Textfield,
4685
- qa as ToggleGroup,
4686
- Ua as Tooltip,
4868
+ Ua as ToggleGroup,
4869
+ qa as Tooltip,
4687
4870
  ds as ValidationMessage,
4688
4871
  Sa as useCheckboxGroup,
4689
4872
  us as useLanguage,
4690
- Ba as usePagination,
4691
- za as useRadioGroup
4873
+ Na as usePagination,
4874
+ Ra as useRadioGroup
4692
4875
  };