rk-designsystem 1.1.57 → 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 re, 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 rn, Button as Ke, Card as on, 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 Rn, Switch as zn, Table as Mn, 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 er, HeartIcon as tr } 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
@@ -13,13 +13,13 @@ var Be = { exports: {} }, Se = {};
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
15
  var ht;
16
- function nr() {
16
+ function no() {
17
17
  if (ht) return Se;
18
18
  ht = 1;
19
19
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
20
20
  function n(s, i, a) {
21
- var r = null;
22
- if (a !== void 0 && (r = "" + a), i.key !== void 0 && (r = "" + i.key), "key" in i) {
21
+ var o = null;
22
+ if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
23
23
  a = {};
24
24
  for (var d in i)
25
25
  d !== "key" && (a[d] = i[d]);
@@ -27,7 +27,7 @@ function nr() {
27
27
  return i = a.ref, {
28
28
  $$typeof: t,
29
29
  type: s,
30
- key: r,
30
+ key: o,
31
31
  ref: i !== void 0 ? i : null,
32
32
  props: a
33
33
  };
@@ -45,19 +45,19 @@ var we = {};
45
45
  * LICENSE file in the root directory of this source tree.
46
46
  */
47
47
  var kt;
48
- function rr() {
48
+ function oo() {
49
49
  return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
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 rr() {
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 rr() {
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, M = 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
- M
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
  }
@@ -128,18 +128,18 @@ function rr() {
128
128
  function a() {
129
129
  return Error("react-stack-top-frame");
130
130
  }
131
- function r(c) {
131
+ function o(c) {
132
132
  if (R.call(c, "key")) {
133
- var A = Object.getOwnPropertyDescriptor(c, "key").get;
134
- if (A && A.isReactWarning) return !1;
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 rr() {
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, M, 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: M
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 rr() {
186
186
  value: D
187
187
  }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
188
188
  }
189
- function y(c, A, P, M, 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 (M)
193
- if (z(C)) {
194
- for (M = 0; M < C.length; M++)
195
- f(C[M]);
192
+ if (z)
193
+ if (M(C)) {
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 (R.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
- M = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", oe[C + M] || (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
- M,
214
+ z,
215
215
  C,
216
216
  H,
217
217
  C
218
- ), oe[C + M] = !0);
218
+ ), re[C + z] = !0);
219
219
  }
220
- if (C = null, P !== void 0 && (n(P), C = "" + P), r(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,64 +235,64 @@ 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, R = Object.prototype.hasOwnProperty, z = 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
- )(), K = I(s(a)), oe = {};
255
- we.Fragment = v, we.jsx = function(c, A, P) {
256
- var M = 1e4 > W.recentlyCreatedOwnerStacks++;
254
+ )(), K = I(s(a)), re = {};
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
- M ? Error("react-stack-top-frame") : Y,
263
- M ? 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 M = 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
- M ? Error("react-stack-top-frame") : Y,
273
- M ? 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;
279
- function or() {
280
- return bt || (bt = 1, process.env.NODE_ENV === "production" ? Be.exports = nr() : Be.exports = rr()), Be.exports;
278
+ var vt;
279
+ function ro() {
280
+ return vt || (vt = 1, process.env.NODE_ENV === "production" ? Ne.exports = no() : Ne.exports = oo()), Ne.exports;
281
281
  }
282
- var o = or();
283
- const sr = ue((t, e) => /* @__PURE__ */ o.jsx(Jt, { ref: e, ...t }));
284
- sr.displayName = "Alert";
285
- const Ft = ue((t, e) => /* @__PURE__ */ o.jsx(Zt, { ref: e, ...t }));
282
+ var r = ro();
283
+ const so = ue((t, e) => /* @__PURE__ */ r.jsx(Jt, { ref: e, ...t }));
284
+ so.displayName = "Alert";
285
+ const Ft = ue((t, e) => /* @__PURE__ */ r.jsx(Zt, { ref: e, ...t }));
286
286
  Ft.displayName = "Avatar";
287
- const ar = ue((t, e) => /* @__PURE__ */ o.jsx(Qt, { ref: e, ...t }));
288
- ar.displayName = "Badge";
289
- const ka = Xt, ba = en, va = tn, ya = nn, xa = rn, ye = Ke;
287
+ const ao = ue((t, e) => /* @__PURE__ */ r.jsx(Qt, { ref: e, ...t }));
288
+ ao.displayName = "Badge";
289
+ const ka = Xt, va = en, ba = tn, ya = nn, xa = on, ye = Ke;
290
290
  ye.displayName = "Button";
291
- const ir = on, Ta = sn;
292
- ir.displayName = "Card";
293
- const lr = an, dr = It, Sa = ln;
294
- lr.displayName = "Checkbox";
295
- dr.displayName = "Fieldset";
291
+ const io = rn, Ta = sn;
292
+ io.displayName = "Card";
293
+ const lo = an, co = It, Sa = ln;
294
+ lo.displayName = "Checkbox";
295
+ co.displayName = "Fieldset";
296
296
  const wa = dn;
297
297
  function Ge(t) {
298
298
  return (e = {}) => {
@@ -305,11 +305,11 @@ function Ce(t) {
305
305
  const s = n != null && n.context ? String(n.context) : "standalone";
306
306
  let i;
307
307
  if (s === "formatting" && t.formattingValues) {
308
- const r = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : r;
309
- i = t.formattingValues[d] || t.formattingValues[r];
308
+ const o = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : o;
309
+ i = t.formattingValues[d] || t.formattingValues[o];
310
310
  } else {
311
- const r = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
312
- i = t.values[d] || t.values[r];
311
+ const o = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
312
+ i = t.values[d] || t.values[o];
313
313
  }
314
314
  const a = t.argumentCallback ? t.argumentCallback(e) : e;
315
315
  return i[a];
@@ -320,42 +320,42 @@ function je(t) {
320
320
  const s = n.width, i = s && t.matchPatterns[s] || t.matchPatterns[t.defaultMatchWidth], a = e.match(i);
321
321
  if (!a)
322
322
  return null;
323
- const r = a[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? ur(d, (f) => f.test(r)) : (
323
+ const o = a[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? mo(d, (f) => f.test(o)) : (
324
324
  // [TODO] -- I challenge you to fix the type
325
- cr(d, (f) => f.test(r))
325
+ uo(d, (f) => f.test(o))
326
326
  );
327
327
  let u;
328
328
  u = t.valueCallback ? t.valueCallback(l) : l, u = n.valueCallback ? (
329
329
  // [TODO] -- I challenge you to fix the type
330
330
  n.valueCallback(u)
331
331
  ) : u;
332
- const y = e.slice(r.length);
332
+ const y = e.slice(o.length);
333
333
  return { value: u, rest: y };
334
334
  };
335
335
  }
336
- function cr(t, e) {
336
+ function uo(t, e) {
337
337
  for (const n in t)
338
338
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
339
339
  return n;
340
340
  }
341
- function ur(t, e) {
341
+ function mo(t, e) {
342
342
  for (let n = 0; n < t.length; n++)
343
343
  if (e(t[n]))
344
344
  return n;
345
345
  }
346
- function mr(t) {
346
+ function po(t) {
347
347
  return (e, n = {}) => {
348
348
  const s = e.match(t.matchPattern);
349
349
  if (!s) return null;
350
350
  const i = s[0], a = e.match(t.parsePattern);
351
351
  if (!a) return null;
352
- let r = t.valueCallback ? t.valueCallback(a[0]) : a[0];
353
- r = n.valueCallback ? n.valueCallback(r) : r;
352
+ let o = t.valueCallback ? t.valueCallback(a[0]) : a[0];
353
+ o = n.valueCallback ? n.valueCallback(o) : o;
354
354
  const d = e.slice(i.length);
355
- return { value: r, rest: d };
355
+ return { value: o, rest: d };
356
356
  };
357
357
  }
358
- const gr = {
358
+ const go = {
359
359
  lessThanXSeconds: {
360
360
  one: "mindre enn ett sekund",
361
361
  other: "mindre enn {{count}} sekunder"
@@ -417,54 +417,54 @@ const gr = {
417
417
  one: "nesten ett år",
418
418
  other: "nesten {{count}} år"
419
419
  }
420
- }, pr = (t, e, n) => {
420
+ }, fo = (t, e, n) => {
421
421
  let s;
422
- const i = gr[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
- }, fr = {
424
+ }, ho = {
425
425
  full: "EEEE d. MMMM y",
426
426
  long: "d. MMMM y",
427
427
  medium: "d. MMM y",
428
428
  short: "dd.MM.y"
429
- }, hr = {
429
+ }, ko = {
430
430
  full: "'kl'. HH:mm:ss zzzz",
431
431
  long: "HH:mm:ss z",
432
432
  medium: "HH:mm:ss",
433
433
  short: "HH:mm"
434
- }, kr = {
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
- }, br = {
439
+ }, bo = {
440
440
  date: Ge({
441
- formats: fr,
441
+ formats: ho,
442
442
  defaultWidth: "full"
443
443
  }),
444
444
  time: Ge({
445
- formats: hr,
445
+ formats: ko,
446
446
  defaultWidth: "full"
447
447
  }),
448
448
  dateTime: Ge({
449
- formats: kr,
449
+ formats: vo,
450
450
  defaultWidth: "full"
451
451
  })
452
- }, vr = {
452
+ }, yo = {
453
453
  lastWeek: "'forrige' eeee 'kl.' p",
454
454
  yesterday: "'i går kl.' p",
455
455
  today: "'i dag kl.' p",
456
456
  tomorrow: "'i morgen kl.' p",
457
457
  nextWeek: "EEEE 'kl.' p",
458
458
  other: "P"
459
- }, yr = (t, e, n, s) => vr[t], xr = {
459
+ }, xo = (t, e, n, s) => yo[t], To = {
460
460
  narrow: ["f.Kr.", "e.Kr."],
461
461
  abbreviated: ["f.Kr.", "e.Kr."],
462
462
  wide: ["før Kristus", "etter Kristus"]
463
- }, Tr = {
463
+ }, So = {
464
464
  narrow: ["1", "2", "3", "4"],
465
465
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
466
466
  wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
467
- }, Sr = {
467
+ }, wo = {
468
468
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
469
469
  abbreviated: [
470
470
  "jan.",
@@ -494,7 +494,7 @@ const gr = {
494
494
  "november",
495
495
  "desember"
496
496
  ]
497
- }, wr = {
497
+ }, Co = {
498
498
  narrow: ["S", "M", "T", "O", "T", "F", "L"],
499
499
  short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
500
500
  abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
@@ -507,7 +507,7 @@ const gr = {
507
507
  "fredag",
508
508
  "lørdag"
509
509
  ]
510
- }, Cr = {
510
+ }, jo = {
511
511
  narrow: {
512
512
  am: "a",
513
513
  pm: "p",
@@ -538,46 +538,46 @@ const gr = {
538
538
  evening: "på kvelden",
539
539
  night: "på natten"
540
540
  }
541
- }, jr = (t, e) => Number(t) + ".", Dr = {
542
- ordinalNumber: jr,
541
+ }, Do = (t, e) => Number(t) + ".", Io = {
542
+ ordinalNumber: Do,
543
543
  era: Ce({
544
- values: xr,
544
+ values: To,
545
545
  defaultWidth: "wide"
546
546
  }),
547
547
  quarter: Ce({
548
- values: Tr,
548
+ values: So,
549
549
  defaultWidth: "wide",
550
550
  argumentCallback: (t) => t - 1
551
551
  }),
552
552
  month: Ce({
553
- values: Sr,
553
+ values: wo,
554
554
  defaultWidth: "wide"
555
555
  }),
556
556
  day: Ce({
557
- values: wr,
557
+ values: Co,
558
558
  defaultWidth: "wide"
559
559
  }),
560
560
  dayPeriod: Ce({
561
- values: Cr,
561
+ values: jo,
562
562
  defaultWidth: "wide"
563
563
  })
564
- }, Ir = /^(\d+)\.?/i, Lr = /\d+/i, Ar = {
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
- }, Fr = {
568
+ }, Bo = {
569
569
  any: [/^f/i, /^e/i]
570
- }, _r = {
570
+ }, Eo = {
571
571
  narrow: /^[1234]/i,
572
572
  abbreviated: /^q[1234]/i,
573
573
  wide: /^[1234](\.)? kvartal/i
574
- }, Er = {
574
+ }, No = {
575
575
  any: [/1/i, /2/i, /3/i, /4/i]
576
- }, Br = {
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
580
- }, Nr = {
580
+ }, Po = {
581
581
  narrow: [
582
582
  /^j/i,
583
583
  /^f/i,
@@ -606,17 +606,17 @@ const gr = {
606
606
  /^n/i,
607
607
  /^d/i
608
608
  ]
609
- }, Pr = {
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
- }, Rr = {
614
+ }, Mo = {
615
615
  any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
616
- }, zr = {
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
- }, Mr = {
619
+ }, Oo = {
620
620
  any: {
621
621
  am: /^a(\.?\s?m\.?)?$/i,
622
622
  pm: /^p(\.?\s?m\.?)?$/i,
@@ -627,55 +627,55 @@ const gr = {
627
627
  evening: /kveld/i,
628
628
  night: /natt/i
629
629
  }
630
- }, Or = {
631
- ordinalNumber: mr({
632
- matchPattern: Ir,
633
- parsePattern: Lr,
630
+ }, $o = {
631
+ ordinalNumber: po({
632
+ matchPattern: Ao,
633
+ parsePattern: Lo,
634
634
  valueCallback: (t) => parseInt(t, 10)
635
635
  }),
636
636
  era: je({
637
- matchPatterns: Ar,
637
+ matchPatterns: Fo,
638
638
  defaultMatchWidth: "wide",
639
- parsePatterns: Fr,
639
+ parsePatterns: Bo,
640
640
  defaultParseWidth: "any"
641
641
  }),
642
642
  quarter: je({
643
- matchPatterns: _r,
643
+ matchPatterns: Eo,
644
644
  defaultMatchWidth: "wide",
645
- parsePatterns: Er,
645
+ parsePatterns: No,
646
646
  defaultParseWidth: "any",
647
647
  valueCallback: (t) => t + 1
648
648
  }),
649
649
  month: je({
650
- matchPatterns: Br,
650
+ matchPatterns: _o,
651
651
  defaultMatchWidth: "wide",
652
- parsePatterns: Nr,
652
+ parsePatterns: Po,
653
653
  defaultParseWidth: "any"
654
654
  }),
655
655
  day: je({
656
- matchPatterns: Pr,
656
+ matchPatterns: Ro,
657
657
  defaultMatchWidth: "wide",
658
- parsePatterns: Rr,
658
+ parsePatterns: Mo,
659
659
  defaultParseWidth: "any"
660
660
  }),
661
661
  dayPeriod: je({
662
- matchPatterns: zr,
662
+ matchPatterns: zo,
663
663
  defaultMatchWidth: "any",
664
- parsePatterns: Mr,
664
+ parsePatterns: Oo,
665
665
  defaultParseWidth: "any"
666
666
  })
667
- }, be = {
667
+ }, ve = {
668
668
  code: "nb",
669
- formatDistance: pr,
670
- formatLong: br,
671
- formatRelative: yr,
672
- localize: Dr,
673
- match: Or,
669
+ formatDistance: fo,
670
+ formatLong: bo,
671
+ formatRelative: xo,
672
+ localize: Io,
673
+ match: $o,
674
674
  options: {
675
675
  weekStartsOn: 1,
676
676
  firstWeekContainsDate: 4
677
677
  }
678
- }, _t = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
678
+ }, Bt = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
679
679
  "svg",
680
680
  {
681
681
  xmlns: "http://www.w3.org/2000/svg",
@@ -687,8 +687,8 @@ const gr = {
687
687
  focusable: "false",
688
688
  ...e,
689
689
  children: [
690
- t && /* @__PURE__ */ o.jsx("title", { children: t }),
691
- /* @__PURE__ */ o.jsx(
690
+ t && /* @__PURE__ */ r.jsx("title", { children: t }),
691
+ /* @__PURE__ */ r.jsx(
692
692
  "path",
693
693
  {
694
694
  fillRule: "evenodd",
@@ -700,8 +700,8 @@ const gr = {
700
700
  ]
701
701
  }
702
702
  );
703
- _t.displayName = "ChevronLeftIcon";
704
- const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
703
+ Bt.displayName = "ChevronLeftIcon";
704
+ const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
705
705
  "svg",
706
706
  {
707
707
  xmlns: "http://www.w3.org/2000/svg",
@@ -713,8 +713,8 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
713
713
  focusable: "false",
714
714
  ...e,
715
715
  children: [
716
- t && /* @__PURE__ */ o.jsx("title", { children: t }),
717
- /* @__PURE__ */ o.jsx(
716
+ t && /* @__PURE__ */ r.jsx("title", { children: t }),
717
+ /* @__PURE__ */ r.jsx(
718
718
  "path",
719
719
  {
720
720
  fillRule: "evenodd",
@@ -727,21 +727,21 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
727
727
  }
728
728
  );
729
729
  Et.displayName = "ChevronRightIcon";
730
- const $r = "_calendarContainer_10l5p_1", Hr = "_calendarHeader_10l5p_14", Wr = "_monthYear_10l5p_21", Vr = "_navigationButtons_10l5p_32", Gr = "_grid_10l5p_41", qr = "_dayNameCell_10l5p_48", Ur = "_dateCell_10l5p_65", Kr = "_dateNumberContainer_10l5p_90", Yr = "_otherMonth_10l5p_103", Jr = "_selectedDate_10l5p_129", se = {
731
- calendarContainer: $r,
732
- calendarHeader: Hr,
733
- monthYear: Wr,
734
- navigationButtons: Vr,
735
- grid: Gr,
736
- dayNameCell: qr,
737
- dateCell: Ur,
738
- dateNumberContainer: Kr,
739
- otherMonth: Yr,
740
- selectedDate: Jr
741
- }, Zr = (t) => {
742
- const e = ke(t), n = Lt(e, { locale: be }), s = At(n, 41);
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
+ calendarContainer: Ho,
732
+ calendarHeader: Wo,
733
+ monthYear: Vo,
734
+ navigationButtons: Go,
735
+ grid: Uo,
736
+ dayNameCell: qo,
737
+ dateCell: Ko,
738
+ dateNumberContainer: Yo,
739
+ otherMonth: Jo,
740
+ selectedDate: Zo
741
+ }, Xo = (t) => {
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), Xr = ({
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
@@ -751,50 +751,50 @@ const $r = "_calendarContainer_10l5p_1", Hr = "_calendarHeader_10l5p_14", Wr = "
751
751
  "data-size": i
752
752
  // <-- Destrukturert
753
753
  }) => {
754
- const [a, r] = re(
754
+ const [a, o] = oe(
755
755
  ke(e && Ve(e) ? e : t)
756
756
  );
757
757
  te(() => {
758
758
  if (e && Ve(e)) {
759
759
  const m = ke(e);
760
- mt(m, a) || r(m);
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(
764
- () => Zr(a),
763
+ const d = be(() => ke(/* @__PURE__ */ new Date()), []), l = be(() => !1, [a, d]), u = be(
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 || r((m) => ke(Un(m, 1)));
773
+ l || o((m) => ke(qn(m, 1)));
774
774
  }, [l]), k = ae(() => {
775
- r((m) => ke(Kn(m, 1)));
776
- }, []), g = ae(
775
+ o((m) => ke(Kn(m, 1)));
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}`;
787
- return /* @__PURE__ */ o.jsxs(
785
+ [p]
786
+ ), v = Te(a, "MMMM", { locale: ve }), b = Te(a, "yyyy", { locale: ve }), g = `${bt(v)} ${b}`;
787
+ return /* @__PURE__ */ r.jsxs(
788
788
  "div",
789
789
  {
790
790
  className: se.calendarContainer,
791
791
  "data-color": s,
792
792
  "data-size": i,
793
793
  children: [
794
- /* @__PURE__ */ o.jsxs("div", { className: se.calendarHeader, children: [
795
- /* @__PURE__ */ o.jsx("span", { className: se.monthYear, children: p }),
796
- /* @__PURE__ */ o.jsxs("div", { className: se.navigationButtons, children: [
797
- /* @__PURE__ */ o.jsx(
794
+ /* @__PURE__ */ r.jsxs("div", { className: se.calendarHeader, children: [
795
+ /* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: g }),
796
+ /* @__PURE__ */ r.jsxs("div", { className: se.navigationButtons, children: [
797
+ /* @__PURE__ */ r.jsx(
798
798
  Ke,
799
799
  {
800
800
  variant: "tertiary",
@@ -802,41 +802,41 @@ const $r = "_calendarContainer_10l5p_1", Hr = "_calendarHeader_10l5p_14", Wr = "
802
802
  onClick: f,
803
803
  "aria-label": "Forrige måned",
804
804
  disabled: l,
805
- children: /* @__PURE__ */ o.jsx(_t, {})
805
+ children: /* @__PURE__ */ r.jsx(Bt, {})
806
806
  }
807
807
  ),
808
- /* @__PURE__ */ o.jsx(
808
+ /* @__PURE__ */ r.jsx(
809
809
  Ke,
810
810
  {
811
811
  variant: "tertiary",
812
812
  icon: !0,
813
813
  onClick: k,
814
814
  "aria-label": "Neste måned",
815
- children: /* @__PURE__ */ o.jsx(Et, {})
815
+ children: /* @__PURE__ */ r.jsx(Et, {})
816
816
  }
817
817
  )
818
818
  ] })
819
819
  ] }),
820
- /* @__PURE__ */ o.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ o.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
821
- /* @__PURE__ */ o.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 = [
820
+ /* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
821
+ /* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((m) => {
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
- return /* @__PURE__ */ o.jsx(
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 }),
839
- children: /* @__PURE__ */ o.jsx("span", { className: se.dateNumberContainer, children: Te(m, "d") })
837
+ "aria-pressed": B ?? !1,
838
+ "aria-label": Te(m, "PPP", { locale: ve }),
839
+ children: /* @__PURE__ */ r.jsx("span", { className: se.dateNumberContainer, children: Te(m, "d") })
840
840
  },
841
841
  m.toISOString()
842
842
  );
@@ -845,15 +845,15 @@ const $r = "_calendarContainer_10l5p_1", Hr = "_calendarHeader_10l5p_14", Wr = "
845
845
  }
846
846
  );
847
847
  };
848
- Xr.displayName = "DatePicker";
849
- const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7_21", no = "_inputWrapper_16fx7_30", ro = "_inputWrapperError_16fx7_42", oo = "_suffixButton_16fx7_80", so = "_suffixButtonInteractive_16fx7_100", pe = {
850
- fieldset: Qr,
851
- description: eo,
852
- error: to,
853
- inputWrapper: no,
854
- inputWrapperError: ro,
855
- suffixButton: oo,
856
- suffixButtonInteractive: so
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", ge = {
850
+ fieldset: er,
851
+ description: tr,
852
+ error: nr,
853
+ inputWrapper: or,
854
+ inputWrapperError: rr,
855
+ suffixButton: sr,
856
+ suffixButtonInteractive: ar
857
857
  }, yt = (t) => {
858
858
  const e = t.slice(0, 2), n = t.slice(2, 4), s = t.slice(4, 8);
859
859
  return t.length > 4 ? `${e}.${n}.${s}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
@@ -868,7 +868,7 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7
868
868
  !isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
869
869
  }
870
870
  return e.slice(0, 8);
871
- }, ao = ue(
871
+ }, ir = ue(
872
872
  (t, e) => {
873
873
  const {
874
874
  label: n,
@@ -876,7 +876,7 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7
876
876
  onSuffixClick: i,
877
877
  className: a,
878
878
  // For ytre fieldset
879
- inputWrapperClassName: r,
879
+ inputWrapperClassName: o,
880
880
  // For input wrapper div
881
881
  inputClassName: d,
882
882
  // For selve input-elementet
@@ -885,53 +885,53 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_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, R = Ue(null);
907
+ ..._
908
+ } = t, W = l !== void 0, R = qe(null);
909
909
  Dt.useImperativeHandle(
910
910
  e,
911
911
  () => R.current
912
912
  );
913
- const z = ae(
913
+ const M = ae(
914
914
  (D) => {
915
915
  const C = xt(D), H = Tt(C);
916
916
  return yt(H);
917
917
  },
918
918
  []
919
- ), [I, q] = re(
920
- () => z(l ?? u)
919
+ ), [I, U] = oe(
920
+ () => M(l ?? u)
921
921
  );
922
922
  te(() => {
923
923
  if (W) {
924
- const D = z(l);
925
- D !== I && (q(D), R.current && R.current.value !== D && (R.current.value = D));
924
+ const D = M(l);
925
+ D !== I && (U(D), R.current && R.current.value !== D && (R.current.value = D));
926
926
  }
927
- }, [l, W, I, z]);
927
+ }, [l, W, I, M]);
928
928
  const ne = ae(
929
929
  (D) => {
930
930
  const C = D.target, H = C.value, J = I, X = xt(H).slice(0, 8), V = Tt(X), w = yt(V);
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 (R.current && (q(w), R.current.value = w, R.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 }
@@ -940,32 +940,32 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7
940
940
  }
941
941
  });
942
942
  },
943
- [I, W, y, z]
944
- ), Y = [pe.fieldset, a].filter(Boolean).join(" "), K = [
945
- pe.inputWrapper,
946
- r,
947
- L ? pe.inputWrapperError : ""
948
- ].filter(Boolean).join(" "), oe = [
943
+ [I, W, y, M]
944
+ ), Y = [ge.fieldset, a].filter(Boolean).join(" "), K = [
945
+ ge.inputWrapper,
946
+ o,
947
+ A ? ge.inputWrapperError : ""
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, M = L ? `${g}-err` : void 0, x = [P, M].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
- /* @__PURE__ */ o.jsxs(
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__ */ o.jsx("label", { id: A, htmlFor: g, children: n }) : n,
966
- j && /* @__PURE__ */ o.jsx("p", { id: P, className: pe.description, children: j }),
967
- /* @__PURE__ */ o.jsxs("div", { className: K, children: [
968
- /* @__PURE__ */ o.jsx(
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
+ /* @__PURE__ */ r.jsxs("div", { className: K, children: [
968
+ /* @__PURE__ */ r.jsx(
969
969
  "input",
970
970
  {
971
971
  ref: R,
@@ -976,72 +976,72 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_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,
992
- className: oe,
993
- ...N
991
+ "aria-invalid": !!A,
992
+ className: re,
993
+ ..._
994
994
  }
995
995
  ),
996
- s && /* @__PURE__ */ o.jsx(
996
+ s && /* @__PURE__ */ r.jsx(
997
997
  "button",
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__ */ o.jsx("p", { id: M, 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
  )
1014
1014
  );
1015
1015
  }
1016
1016
  );
1017
- ao.displayName = "DateInput";
1018
- function io(t) {
1017
+ ir.displayName = "DateInput";
1018
+ function lr(t) {
1019
1019
  return Object.prototype.toString.call(t) === "[object Object]";
1020
1020
  }
1021
1021
  function St(t) {
1022
- return io(t) || Array.isArray(t);
1022
+ return lr(t) || Array.isArray(t);
1023
1023
  }
1024
- function lo() {
1024
+ function dr() {
1025
1025
  return !!(typeof window < "u" && window.document && window.document.createElement);
1026
1026
  }
1027
1027
  function Xe(t, e) {
1028
1028
  const n = Object.keys(t), s = Object.keys(e);
1029
1029
  if (n.length !== s.length) return !1;
1030
1030
  const i = JSON.stringify(Object.keys(t.breakpoints || {})), a = JSON.stringify(Object.keys(e.breakpoints || {}));
1031
- return i !== a ? !1 : n.every((r) => {
1032
- const d = t[r], l = e[r];
1031
+ return i !== a ? !1 : n.every((o) => {
1032
+ const d = t[o], l = e[o];
1033
1033
  return typeof d == "function" ? `${d}` == `${l}` : !St(d) || !St(l) ? d === l : Xe(d, l);
1034
1034
  });
1035
1035
  }
1036
1036
  function wt(t) {
1037
1037
  return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
1038
1038
  }
1039
- function co(t, e) {
1039
+ function cr(t, e) {
1040
1040
  if (t.length !== e.length) return !1;
1041
1041
  const n = wt(t), s = wt(e);
1042
1042
  return n.every((i, a) => {
1043
- const r = s[a];
1044
- return Xe(i, r);
1043
+ const o = s[a];
1044
+ return Xe(i, o);
1045
1045
  });
1046
1046
  }
1047
1047
  function Qe(t) {
@@ -1050,57 +1050,57 @@ function Qe(t) {
1050
1050
  function Ye(t) {
1051
1051
  return typeof t == "string";
1052
1052
  }
1053
- function ze(t) {
1053
+ function Me(t) {
1054
1054
  return typeof t == "boolean";
1055
1055
  }
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
- function uo(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);
1068
+ function ur(t, e) {
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
- function mo(t) {
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) => {
1096
- const a = n[i], r = s[i], d = Ct(a) && Ct(r);
1097
- n[i] = d ? Bt(a, r) : r;
1094
+ function Nt(t, e) {
1095
+ return [t, e].reduce((n, s) => (Le(s).forEach((i) => {
1096
+ const a = n[i], o = s[i], d = Ct(a) && Ct(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 go(t, e) {
1103
+ function pr(t, e) {
1104
1104
  const n = {
1105
1105
  start: s,
1106
1106
  center: i,
@@ -1115,24 +1115,24 @@ function go(t, e) {
1115
1115
  function a(l) {
1116
1116
  return e - l;
1117
1117
  }
1118
- function r(l, u) {
1118
+ function o(l, u) {
1119
1119
  return Ye(t) ? n[t](l) : t(e, l, u);
1120
1120
  }
1121
1121
  return {
1122
- measure: r
1122
+ measure: o
1123
1123
  };
1124
1124
  }
1125
1125
  function Fe() {
1126
1126
  let t = [];
1127
- function e(i, a, r, d = {
1127
+ function e(i, a, o, d = {
1128
1128
  passive: !0
1129
1129
  }) {
1130
1130
  let l;
1131
1131
  if ("addEventListener" in i)
1132
- i.addEventListener(a, r, d), l = () => i.removeEventListener(a, r, d);
1132
+ i.addEventListener(a, o, d), l = () => i.removeEventListener(a, o, d);
1133
1133
  else {
1134
1134
  const u = i;
1135
- u.addListener(r), l = () => u.removeListener(r);
1135
+ u.addListener(o), l = () => u.removeListener(o);
1136
1136
  }
1137
1137
  return t.push(l), s;
1138
1138
  }
@@ -1145,22 +1145,22 @@ function Fe() {
1145
1145
  };
1146
1146
  return s;
1147
1147
  }
1148
- function po(t, e, n, s) {
1148
+ function gr(t, e, n, s) {
1149
1149
  const i = Fe(), a = 1e3 / 60;
1150
- let r = null, d = 0, l = 0;
1150
+ let o = null, d = 0, l = 0;
1151
1151
  function u() {
1152
1152
  i.add(t, "visibilitychange", () => {
1153
1153
  t.hidden && h();
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
- r || (r = v, n(), n());
1162
- const p = v - r;
1163
- for (r = 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,29 +1168,29 @@ function po(t, e, n, s) {
1168
1168
  function k() {
1169
1169
  l || (l = e.requestAnimationFrame(f));
1170
1170
  }
1171
- function g() {
1172
- e.cancelAnimationFrame(l), r = null, d = 0, l = 0;
1171
+ function p() {
1172
+ e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
1173
1173
  }
1174
1174
  function h() {
1175
- r = null, d = 0;
1175
+ o = null, d = 0;
1176
1176
  }
1177
1177
  return {
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
  };
1185
1185
  }
1186
- function fo(t, e) {
1187
- const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y", r = !s && n ? -1 : 1, d = y(), l = f();
1186
+ function fr(t, e) {
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";
@@ -1199,7 +1199,7 @@ function fo(t, e) {
1199
1199
  return s ? "bottom" : n ? "left" : "right";
1200
1200
  }
1201
1201
  function k(h) {
1202
- return h * r;
1202
+ return h * o;
1203
1203
  }
1204
1204
  return {
1205
1205
  scroll: i,
@@ -1211,7 +1211,7 @@ function fo(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
  }
@@ -1221,7 +1221,7 @@ function fe(t = 0, e = 0) {
1221
1221
  function a(u) {
1222
1222
  return s(u) || i(u);
1223
1223
  }
1224
- function r(u) {
1224
+ function o(u) {
1225
1225
  return a(u) ? s(u) ? t : e : u;
1226
1226
  }
1227
1227
  function d(u) {
@@ -1231,32 +1231,32 @@ function fe(t = 0, e = 0) {
1231
1231
  length: n,
1232
1232
  max: e,
1233
1233
  min: t,
1234
- constrain: r,
1234
+ constrain: o,
1235
1235
  reachedAny: a,
1236
1236
  reachedMax: i,
1237
1237
  reachedMin: s,
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
- let a = r(e);
1246
- function r(k) {
1247
- return n ? U((i + k) % i) : s(k);
1245
+ let a = o(e);
1246
+ function o(k) {
1247
+ return n ? q((i + k) % i) : s(k);
1248
1248
  }
1249
1249
  function d() {
1250
1250
  return a;
1251
1251
  }
1252
1252
  function l(k) {
1253
- return a = r(k), f;
1253
+ return a = o(k), f;
1254
1254
  }
1255
1255
  function u(k) {
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,24 +1266,24 @@ function Nt(t, e, n) {
1266
1266
  };
1267
1267
  return f;
1268
1268
  }
1269
- function ho(t, e, n, s, i, a, r, 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 R = !1, z = 0, I = 0, q = !1, ne = !1, Y = !1, K = !1;
1283
- function oe(w) {
1282
+ let R = !1, M = 0, I = 0, U = !1, ne = !1, Y = !1, K = !1;
1283
+ function re(w) {
1284
1284
  if (!m) return;
1285
1285
  function O(Z) {
1286
- (ze(m) || m(w, Z)) && D(Z);
1286
+ (Me(m) || m(w, Z)) && D(Z);
1287
1287
  }
1288
1288
  const G = e;
1289
1289
  j.add(G, "dragstart", (Z) => Z.preventDefault(), E).add(G, "touchmove", () => {
@@ -1291,101 +1291,101 @@ function ho(t, e, n, s, i, a, r, 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 M() {
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 && R, R = Ie(i.get(), r.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (q = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(r), A(), z = 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);
1317
- const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G, z), de = Ie(Z, I);
1317
+ const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G, M), de = Ie(Z, I);
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) * M(), le = x(_(Z), G), de = uo(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
- init: oe,
1334
+ init: re,
1335
1335
  destroy: c,
1336
1336
  pointerDown: X
1337
1337
  };
1338
1338
  }
1339
- function ko(t, e) {
1339
+ function kr(t, e) {
1340
1340
  let s, i;
1341
1341
  function a(f) {
1342
1342
  return f.timeStamp;
1343
1343
  }
1344
- function r(f, k) {
1344
+ function o(f, k) {
1345
1345
  const h = `client${(k || t.scroll) === "x" ? "X" : "Y"}`;
1346
1346
  return (Je(f, e) ? f : f.touches[0])[h];
1347
1347
  }
1348
1348
  function d(f) {
1349
- return s = f, i = f, r(f);
1349
+ return s = f, i = f, o(f);
1350
1350
  }
1351
1351
  function l(f) {
1352
- const k = r(f) - r(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 = r(i) - r(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,
1362
1362
  pointerMove: l,
1363
1363
  pointerUp: u,
1364
- readPoint: r
1364
+ readPoint: o
1365
1365
  };
1366
1366
  }
1367
- function bo() {
1367
+ function vr() {
1368
1368
  function t(n) {
1369
1369
  const {
1370
1370
  offsetTop: s,
1371
1371
  offsetLeft: i,
1372
1372
  offsetWidth: a,
1373
- offsetHeight: r
1373
+ offsetHeight: o
1374
1374
  } = n;
1375
1375
  return {
1376
1376
  top: s,
1377
1377
  right: i + a,
1378
- bottom: s + r,
1378
+ bottom: s + o,
1379
1379
  left: i,
1380
1380
  width: a,
1381
- height: r
1381
+ height: o
1382
1382
  };
1383
1383
  }
1384
1384
  return {
1385
1385
  measure: t
1386
1386
  };
1387
1387
  }
1388
- function vo(t) {
1388
+ function br(t) {
1389
1389
  function e(s) {
1390
1390
  return t * (s / 100);
1391
1391
  }
@@ -1393,27 +1393,27 @@ function vo(t) {
1393
1393
  measure: e
1394
1394
  };
1395
1395
  }
1396
- function yo(t, e, n, s, i, a, r) {
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(r.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
- (ze(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,68 +1422,68 @@ function yo(t, e, n, s, i, a, r) {
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
  }
1429
- function xo(t, e, n, s, i, a) {
1430
- let r = 0, d = 0, l = i, u = a, y = t.get(), f = 0;
1429
+ function xr(t, e, n, s, i, a) {
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 ? (r = 0, n.set(s), t.set(s), L = E) : (n.set(t), r += E / l, r *= u, y += r, t.add(r), 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() {
1447
- return r;
1446
+ function b() {
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;
1473
1473
  }
1474
- function To(t, e, n, s, i) {
1475
- const a = i.measure(10), r = i.measure(50), d = fe(0.1, 0.99);
1474
+ function Tr(t, e, n, s, i) {
1475
+ const a = i.measure(10), o = i.measure(50), d = fe(0.1, 0.99);
1476
1476
  let l = !1;
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 / r);
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,
@@ -1491,113 +1491,113 @@ function To(t, e, n, s, i) {
1491
1491
  toggleActive: f
1492
1492
  };
1493
1493
  }
1494
- function So(t, e, n, s, i) {
1495
- const a = fe(-e + t, 0), r = f(), d = y(), l = k();
1496
- function u(h, b) {
1497
- return Ie(h, b) <= 1;
1494
+ function Sr(t, e, n, s, i) {
1495
+ const a = fe(-e + t, 0), o = f(), d = y(), l = k();
1496
+ function u(h, v) {
1497
+ return Ie(h, v) <= 1;
1498
1498
  }
1499
1499
  function y() {
1500
- const h = r[0], b = ie(r), v = r.lastIndexOf(h), p = r.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() {
1513
1513
  if (e <= t + i) return [a.max];
1514
- if (s === "keepSnaps") return r;
1514
+ if (s === "keepSnaps") return o;
1515
1515
  const {
1516
1516
  min: h,
1517
- max: b
1517
+ max: v
1518
1518
  } = d;
1519
- return r.slice(h, b);
1519
+ return o.slice(h, v);
1520
1520
  }
1521
1521
  return {
1522
1522
  snapsContained: l,
1523
1523
  scrollContainLimit: d
1524
1524
  };
1525
1525
  }
1526
- function wo(t, e, n) {
1526
+ function wr(t, e, n) {
1527
1527
  const s = e[0], i = n ? s - t : ie(e);
1528
1528
  return {
1529
1529
  limit: fe(i, s)
1530
1530
  };
1531
1531
  }
1532
- function Co(t, e, n, s) {
1533
- const a = e.min + 0.1, r = e.max + 0.1, {
1532
+ function Cr(t, e, n, s) {
1533
+ const a = e.min + 0.1, o = e.max + 0.1, {
1534
1534
  reachedMin: d,
1535
1535
  reachedMax: l
1536
- } = fe(a, r);
1536
+ } = fe(a, o);
1537
1537
  function u(k) {
1538
1538
  return k === 1 ? l(n.get()) : k === -1 ? d(n.get()) : !1;
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
1547
1547
  };
1548
1548
  }
1549
- function jo(t) {
1549
+ function jr(t) {
1550
1550
  const {
1551
1551
  max: e,
1552
1552
  length: n
1553
1553
  } = t;
1554
1554
  function s(a) {
1555
- const r = a - e;
1556
- return n ? r / -n : 0;
1555
+ const o = a - e;
1556
+ return n ? o / -n : 0;
1557
1557
  }
1558
1558
  return {
1559
1559
  get: s
1560
1560
  };
1561
1561
  }
1562
- function Do(t, e, n, s, i) {
1562
+ function Dr(t, e, n, s, i) {
1563
1563
  const {
1564
1564
  startEdge: a,
1565
- endEdge: r
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)[r] - 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,
1580
1580
  snapsAligned: y
1581
1581
  };
1582
1582
  }
1583
- function Io(t, e, n, s, i, a) {
1583
+ function Ir(t, e, n, s, i, a) {
1584
1584
  const {
1585
- groupSlides: r
1585
+ groupSlides: o
1586
1586
  } = i, {
1587
1587
  min: d,
1588
1588
  max: l
1589
1589
  } = s, u = y();
1590
1590
  function y() {
1591
- const k = r(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 Io(t, e, n, s, i, a) {
1606
1606
  slideRegistry: u
1607
1607
  };
1608
1608
  }
1609
- function Lo(t, e, n, s, i) {
1609
+ function Ar(t, e, n, s, i) {
1610
1610
  const {
1611
1611
  reachedAny: a,
1612
- removeOffset: r,
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 ? r(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 Lo(t, e, n, s, i) {
1662
1662
  shortcut: y
1663
1663
  };
1664
1664
  }
1665
- function Ao(t, e, n, s, i, a, r) {
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), r.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 {
@@ -1680,28 +1680,28 @@ function Ao(t, e, n, s, i, a, r) {
1680
1680
  index: u
1681
1681
  };
1682
1682
  }
1683
- function Fo(t, e, n, s, i, a, r, d) {
1683
+ function Fr(t, e, n, s, i, a, o, d) {
1684
1684
  const l = {
1685
1685
  passive: !0,
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
- r.emit("slideFocusStart"), t.scrollLeft = 0;
1694
- const m = n.findIndex((T) => T.includes(b));
1695
- Qe(m) && (i.useDuration(0), s.index(m, 0), r.emit("slideFocus"));
1693
+ o.emit("slideFocusStart"), t.scrollLeft = 0;
1694
+ const m = n.findIndex((T) => T.includes(v));
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
- (ze(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
@@ -1713,15 +1713,15 @@ function De(t) {
1713
1713
  return e;
1714
1714
  }
1715
1715
  function s(l) {
1716
- e = r(l);
1716
+ e = o(l);
1717
1717
  }
1718
1718
  function i(l) {
1719
- e += r(l);
1719
+ e += o(l);
1720
1720
  }
1721
1721
  function a(l) {
1722
- e -= r(l);
1722
+ e -= o(l);
1723
1723
  }
1724
- function r(l) {
1724
+ function o(l) {
1725
1725
  return Qe(l) ? l : l.get();
1726
1726
  }
1727
1727
  return {
@@ -1732,9 +1732,9 @@ function De(t) {
1732
1732
  };
1733
1733
  }
1734
1734
  function Pt(t, e) {
1735
- const n = t.scroll === "x" ? r : d, s = e.style;
1735
+ const n = t.scroll === "x" ? o : d, s = e.style;
1736
1736
  let i = null, a = !1;
1737
- function r(k) {
1737
+ function o(k) {
1738
1738
  return `translate3d(${k}px,0px,0px)`;
1739
1739
  }
1740
1740
  function d(k) {
@@ -1742,8 +1742,8 @@ function Pt(t, e) {
1742
1742
  }
1743
1743
  function l(k) {
1744
1744
  if (a) return;
1745
- const g = mo(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 _o(t, e, n, s, i, a, r, 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, R = B ? n : 0, z = B ? "end" : "start", I = $[N][z];
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]),
1782
+ translate: Pt(t, l[_]),
1783
1783
  target: () => d.get() > I ? W : R
1784
1784
  };
1785
1785
  });
1786
1786
  }
1787
- function p() {
1788
- const j = r[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 - r[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,11 +1816,11 @@ function _o(t, e, n, s, i, a, r, 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
  }
1823
- function Eo(t, e, n) {
1823
+ function Er(t, e, n) {
1824
1824
  let s, i = !1;
1825
1825
  function a(l) {
1826
1826
  if (!n) return;
@@ -1832,28 +1832,28 @@ function Eo(t, e, n) {
1832
1832
  }
1833
1833
  }
1834
1834
  s = new MutationObserver((y) => {
1835
- i || (ze(n) || n(l, y)) && u(y);
1835
+ i || (Me(n) || n(l, y)) && u(y);
1836
1836
  }), s.observe(t, {
1837
1837
  childList: !0
1838
1838
  });
1839
1839
  }
1840
- function r() {
1840
+ function o() {
1841
1841
  s && s.disconnect(), i = !0;
1842
1842
  }
1843
1843
  return {
1844
1844
  init: a,
1845
- destroy: r
1845
+ destroy: o
1846
1846
  };
1847
1847
  }
1848
- function Bo(t, e, n, s) {
1848
+ function Nr(t, e, n, s) {
1849
1849
  const i = {};
1850
- let a = null, r = null, d, l = !1;
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;
1856
- }), a = null, r = null, n.emit("slidesInView"));
1853
+ l || (h.forEach((v) => {
1854
+ const b = e.indexOf(v.target);
1855
+ i[b] = v;
1856
+ }), a = null, o = null, n.emit("slidesInView"));
1857
1857
  }, {
1858
1858
  root: t.parentElement,
1859
1859
  threshold: s
@@ -1863,18 +1863,18 @@ function Bo(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
- if (!h && r) return r;
1876
- const b = f(h);
1877
- return h && (a = b), h || (r = b), b;
1875
+ if (!h && o) return o;
1876
+ const v = f(h);
1877
+ return h && (a = v), h || (o = v), v;
1878
1878
  }
1879
1879
  return {
1880
1880
  init: u,
@@ -1882,61 +1882,61 @@ function Bo(t, e, n, s) {
1882
1882
  get: k
1883
1883
  };
1884
1884
  }
1885
- function No(t, e, n, s, i, a) {
1885
+ function _r(t, e, n, s, i, a) {
1886
1886
  const {
1887
- measureSize: r,
1887
+ measureSize: o,
1888
1888
  startEdge: d,
1889
1889
  endEdge: l
1890
- } = t, u = n[0] && i, y = h(), f = b(), k = n.map(r), 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
  };
1913
1913
  }
1914
- function Po(t, e, n, s, i, a, r, d, l) {
1914
+ function Pr(t, e, n, s, i, a, o, d, l) {
1915
1915
  const {
1916
1916
  startEdge: u,
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(r) : 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 Ro(t, e, n, s, i, a, r) {
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 Ro(t, e, n, s, i, a, r) {
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 = bo(), B = L.measure(e), $ = n.map(L.measure), N = fo(l, u), W = N.measureSize(B), R = vo(W), z = go(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
- endGap: oe
1962
- } = No(N, B, $, n, q, i), c = Po(N, W, v, f, B, $, K, oe, j), {
1963
- snaps: A,
1961
+ endGap: re
1962
+ } = _r(_, N, $, n, U, i), c = Pr(_, W, b, f, N, $, K, re, j), {
1963
+ snaps: L,
1964
1964
  snapsAligned: P
1965
- } = Do(N, z, B, $, c), M = -ie(A) + ie(Y), {
1965
+ } = Dr(_, M, N, $, c), z = -ie(L) + ie(Y), {
1966
1966
  snapsContained: x,
1967
1967
  scrollContainLimit: D
1968
- } = So(W, M, P, m, j), C = I ? x : P, {
1968
+ } = Sr(W, z, P, m, j), C = I ? x : P, {
1969
1969
  limit: H
1970
- } = wo(M, 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,22 +1992,22 @@ function Ro(t, e, n, s, i, a, r) {
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 = po(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 = xo(de, ce, me, ge, k, Z), Me = Lo(f, C, M, H, ge), Oe = Ao(G, J, X, xe, Me, ge, r), rt = jo(H), ot = Fe(), zt = Bo(e, n, r, 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
- } = Io(I, m, C, D, c, V), Mt = Fo(t, n, st, Oe, xe, ot, r, 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
- eventHandler: r,
2005
- containerRect: B,
2004
+ eventHandler: o,
2005
+ containerRect: N,
2006
2006
  slideRects: $,
2007
2007
  animation: G,
2008
- axis: N,
2009
- dragHandler: ho(N, t, s, i, ge, ko(N, i), de, G, Oe, xe, Me, J, r, R, g, h, p, Z, F),
2010
- eventStore: ot,
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
+ eventStore: rt,
2011
2011
  percentOfView: R,
2012
2012
  index: J,
2013
2013
  indexPrevious: X,
@@ -2016,28 +2016,28 @@ function Ro(t, e, n, s, i, a, r) {
2016
2016
  offsetLocation: ce,
2017
2017
  previousLocation: me,
2018
2018
  options: a,
2019
- resizeHandler: yo(e, r, i, n, N, T, L),
2019
+ resizeHandler: yr(e, o, i, n, _, T, A),
2020
2020
  scrollBody: xe,
2021
- scrollBounds: To(H, ce, ge, xe, R),
2022
- scrollLooper: Co(M, H, ce, [de, ce, me, ge]),
2023
- scrollProgress: rt,
2024
- scrollSnapList: C.map(rt.get),
2021
+ scrollBounds: Tr(H, ce, pe, xe, R),
2022
+ scrollLooper: Cr(z, H, ce, [de, ce, me, pe]),
2023
+ scrollProgress: ot,
2024
+ scrollSnapList: C.map(ot.get),
2025
2025
  scrollSnaps: C,
2026
- scrollTarget: Me,
2026
+ scrollTarget: ze,
2027
2027
  scrollTo: Oe,
2028
- slideLooper: _o(N, W, M, ne, Y, A, C, ce, n),
2029
- slideFocus: Mt,
2030
- slidesHandler: Eo(e, r, _),
2031
- slidesInView: zt,
2028
+ slideLooper: Br(_, W, z, ne, Y, L, C, ce, n),
2029
+ slideFocus: zt,
2030
+ slidesHandler: Er(e, o, B),
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
  }
2040
- function zo() {
2040
+ function Mr() {
2041
2041
  let t = {}, e;
2042
2042
  function n(u) {
2043
2043
  e = u;
@@ -2051,7 +2051,7 @@ function zo() {
2051
2051
  function a(u, y) {
2052
2052
  return t[u] = s(u).concat([y]), l;
2053
2053
  }
2054
- function r(u, y) {
2054
+ function o(u, y) {
2055
2055
  return t[u] = s(u).filter((f) => f !== y), l;
2056
2056
  }
2057
2057
  function d() {
@@ -2060,13 +2060,13 @@ function zo() {
2060
2060
  const l = {
2061
2061
  init: n,
2062
2062
  emit: i,
2063
- off: r,
2063
+ off: o,
2064
2064
  on: a,
2065
2065
  clear: d
2066
2066
  };
2067
2067
  return l;
2068
2068
  }
2069
- const Mo = {
2069
+ const zr = {
2070
2070
  align: "center",
2071
2071
  axis: "x",
2072
2072
  container: null,
@@ -2088,16 +2088,16 @@ const Mo = {
2088
2088
  watchSlides: !0,
2089
2089
  watchFocus: !0
2090
2090
  };
2091
- function Oo(t) {
2092
- function e(a, r) {
2093
- return Bt(a, r || {});
2091
+ function Or(t) {
2092
+ function e(a, o) {
2093
+ return Nt(a, o || {});
2094
2094
  }
2095
2095
  function n(a) {
2096
- const r = a.breakpoints || {}, d = Ae(r).filter((l) => t.matchMedia(l).matches).map((l) => r[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((r) => Ae(r.breakpoints || {})).reduce((r, d) => r.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,
@@ -2105,12 +2105,12 @@ function Oo(t) {
2105
2105
  optionsMediaQueries: s
2106
2106
  };
2107
2107
  }
2108
- function $o(t) {
2108
+ function $r(t) {
2109
2109
  let e = [];
2110
- function n(a, r) {
2111
- return e = r.filter(({
2110
+ function n(a, o) {
2111
+ return e = o.filter(({
2112
2112
  options: d
2113
- }) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)), r.reduce((d, l) => Object.assign(d, {
2113
+ }) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)), o.reduce((d, l) => Object.assign(d, {
2114
2114
  [l.name]: l
2115
2115
  }), {});
2116
2116
  }
@@ -2123,17 +2123,17 @@ function $o(t) {
2123
2123
  };
2124
2124
  }
2125
2125
  function Re(t, e, n) {
2126
- const s = t.ownerDocument, i = s.defaultView, a = Oo(i), r = $o(a), d = Fe(), l = zo(), {
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(Mo, Re.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 Re(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 = Ro(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 = r.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(), r.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
2169
  function R() {
2170
- v || (v = !0, d.clear(), W(), l.emit("destroy"), l.clear());
2170
+ b || (b = !0, d.clear(), W(), l.emit("destroy"), l.clear());
2171
2171
  }
2172
- function z(V, w, O) {
2173
- !T.active || v || (p.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : T.duration), p.scrollTo.index(V, O || 0));
2172
+ function M(V, w, O) {
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();
2177
- z(w, V, -1);
2176
+ const w = g.index.add(1).get();
2177
+ M(w, V, -1);
2178
2178
  }
2179
- function q(V) {
2180
- const w = p.index.add(-1).get();
2181
- z(w, V, 1);
2179
+ function U(V) {
2180
+ const w = g.index.add(-1).get();
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
- function oe() {
2193
- return p.scrollProgress.get(p.offsetLocation.get());
2192
+ function re() {
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 M() {
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;
@@ -2225,67 +2225,67 @@ function Re(t, e, n) {
2225
2225
  containerNode: H,
2226
2226
  internalEngine: D,
2227
2227
  destroy: R,
2228
- off: g,
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,
2237
- scrollProgress: oe,
2236
+ scrollPrev: U,
2237
+ scrollProgress: re,
2238
2238
  scrollSnapList: K,
2239
- scrollTo: z,
2239
+ scrollTo: M,
2240
2240
  selectedScrollSnap: c,
2241
2241
  slideNodes: J,
2242
2242
  slidesInView: P,
2243
- slidesNotInView: M
2243
+ slidesNotInView: z
2244
2244
  };
2245
2245
  return $(e, n), setTimeout(() => l.emit("init"), 0), X;
2246
2246
  }
2247
2247
  Re.globalOptions = void 0;
2248
2248
  function nt(t = {}, e = []) {
2249
- const n = Ue(t), s = Ue(e), [i, a] = re(), [r, d] = re(), 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(() => {
2253
2253
  Xe(n.current, t) || (n.current = t, l());
2254
2254
  }, [t, l]), te(() => {
2255
- co(s.current, e) || (s.current = e, l());
2255
+ cr(s.current, e) || (s.current = e, l());
2256
2256
  }, [e, l]), te(() => {
2257
- if (lo() && r) {
2257
+ if (dr() && o) {
2258
2258
  Re.globalOptions = nt.globalOptions;
2259
- const u = Re(r, n.current, s.current);
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
- }, [r, a]), [d, i];
2263
+ }, [o, a]), [d, i];
2264
2264
  }
2265
2265
  nt.globalOptions = void 0;
2266
- const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slides_1bu1s_17", Go = "_slide_1bu1s_17", qo = "_slideInner_1bu1s_37", Uo = "_loaderOverlay_1bu1s_45", Ko = "_image_1bu1s_55", Yo = "_loaded_1bu1s_66", Jo = "_empty_1bu1s_78", Zo = "_controls_1bu1s_84", Xo = "_arrows_1bu1s_94", Qo = "_dots_1bu1s_104", es = "_dot_1bu1s_104", ts = "_dotActive_1bu1s_130", Q = {
2267
- carouselContainer: Ho,
2268
- viewport: Wo,
2269
- slides: Vo,
2270
- slide: Go,
2271
- slideInner: qo,
2272
- loaderOverlay: Uo,
2273
- image: Ko,
2274
- loaded: Yo,
2275
- empty: Jo,
2276
- controls: Zo,
2277
- arrows: Xo,
2278
- dots: Qo,
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
+ carouselContainer: Hr,
2268
+ viewport: Wr,
2269
+ slides: Vr,
2270
+ slide: Gr,
2271
+ slideInner: Ur,
2272
+ loaderOverlay: qr,
2273
+ image: Kr,
2274
+ loaded: Yr,
2275
+ empty: Jr,
2276
+ controls: Zr,
2277
+ arrows: Xr,
2278
+ dots: Qr,
2279
2279
  dot: es,
2280
2280
  dotActive: ts
2281
- }, ns = cn, rs = ({
2281
+ }, ns = cn, os = ({
2282
2282
  images: t,
2283
2283
  autoPlay: e = !1,
2284
2284
  autoDelay: n = 5,
2285
2285
  showArrows: s = !0,
2286
2286
  showDots: i = !0,
2287
2287
  variant: a,
2288
- slidesPerView: r = 1,
2288
+ slidesPerView: o = 1,
2289
2289
  slideSpacing: d = 16,
2290
2290
  cornerRadius: l = 0,
2291
2291
  "data-color": u,
@@ -2296,36 +2296,36 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
2296
2296
  align: "start",
2297
2297
  containScroll: "trimSnaps",
2298
2298
  slidesToScroll: 1
2299
- }, [k, g] = nt(f), [h, b] = re(0), [v, p] = re([]), [m, T] = re([]);
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((R) => {
2304
- T((z) => {
2305
- const I = [...z];
2303
+ const B = ae((R) => {
2304
+ T((M) => {
2305
+ const I = [...M];
2306
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((R) => g && g.scrollTo(R), [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, r, d]), te(() => {
2319
- if (!e || !g || !t || t.length <= 1) return;
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
2320
  const R = window.setInterval(() => {
2321
- g.canScrollNext() && g.scrollNext();
2321
+ p.canScrollNext() && p.scrollNext();
2322
2322
  }, F);
2323
2323
  return () => {
2324
2324
  window.clearInterval(R);
2325
2325
  };
2326
- }, [e, F, g, t]);
2327
- const $ = Math.max(1, r), N = `${100 / $}%`, W = d / 2;
2328
- return /* @__PURE__ */ o.jsxs(
2326
+ }, [e, F, p, t]);
2327
+ const $ = Math.max(1, o), _ = `${100 / $}%`, W = d / 2;
2328
+ return /* @__PURE__ */ r.jsxs(
2329
2329
  "div",
2330
2330
  {
2331
2331
  className: Q.carouselContainer,
@@ -2333,7 +2333,7 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
2333
2333
  "data-size": y,
2334
2334
  "data-variant": a,
2335
2335
  children: [
2336
- /* @__PURE__ */ o.jsx("div", { className: Q.viewport, ref: k, children: /* @__PURE__ */ o.jsx(
2336
+ /* @__PURE__ */ r.jsx("div", { className: Q.viewport, ref: k, children: /* @__PURE__ */ r.jsx(
2337
2337
  "div",
2338
2338
  {
2339
2339
  className: Q.slides,
@@ -2341,78 +2341,78 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
2341
2341
  marginLeft: `-${W}px`,
2342
2342
  marginRight: `-${W}px`
2343
2343
  },
2344
- children: t && t.length > 0 ? t.map((R, z) => /* @__PURE__ */ o.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,
2353
2353
  overflow: "hidden"
2354
2354
  // Ensure radius clips content
2355
2355
  },
2356
- children: /* @__PURE__ */ o.jsxs("div", { className: Q.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
2357
- !m[z] && /* @__PURE__ */ o.jsx("div", { className: Q.loaderOverlay, children: /* @__PURE__ */ o.jsx(ns, { "aria-label": "Laster bilde" }) }),
2358
- /* @__PURE__ */ o.jsx(
2356
+ children: /* @__PURE__ */ r.jsxs("div", { className: Q.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
2357
+ !m[M] && /* @__PURE__ */ r.jsx("div", { className: Q.loaderOverlay, children: /* @__PURE__ */ r.jsx(ns, { "aria-label": "Laster bilde" }) }),
2358
+ /* @__PURE__ */ r.jsx(
2359
2359
  "img",
2360
2360
  {
2361
- className: `${Q.image} ${m[z] ? Q.loaded : Q.loadingImage}`,
2361
+ className: `${Q.image} ${m[M] ? Q.loaded : Q.loadingImage}`,
2362
2362
  src: R.src,
2363
2363
  alt: R.alt,
2364
- loading: z < $ ? "eager" : "lazy",
2364
+ loading: M < $ ? "eager" : "lazy",
2365
2365
  crossOrigin: "anonymous",
2366
- onLoad: () => _(z),
2366
+ onLoad: () => B(M),
2367
2367
  onError: (I) => {
2368
- I.target.style.display = "none", _(z);
2368
+ I.target.style.display = "none", B(M);
2369
2369
  }
2370
2370
  }
2371
2371
  )
2372
2372
  ] })
2373
2373
  },
2374
- `image-${z}-${R.src}`
2375
- )) : /* @__PURE__ */ o.jsx("div", { className: Q.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ o.jsx("div", { className: Q.empty, children: "Ingen bilder" }) })
2374
+ `image-${M}-${R.src}`
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
  ) }),
2378
- (s || i && t && t.length > 1) && /* @__PURE__ */ o.jsxs("div", { className: Q.controls, "aria-hidden": "false", children: [
2379
- s && /* @__PURE__ */ o.jsxs("div", { className: Q.arrows, children: [
2380
- /* @__PURE__ */ o.jsx(
2378
+ (s || i && t && t.length > 1) && /* @__PURE__ */ r.jsxs("div", { className: Q.controls, "aria-hidden": "false", children: [
2379
+ s && /* @__PURE__ */ r.jsxs("div", { className: Q.arrows, children: [
2380
+ /* @__PURE__ */ r.jsx(
2381
2381
  ye,
2382
2382
  {
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
- children: /* @__PURE__ */ o.jsx(Xn, { "aria-hidden": !0 })
2388
+ children: /* @__PURE__ */ r.jsx(Xn, { "aria-hidden": !0 })
2389
2389
  }
2390
2390
  ),
2391
- /* @__PURE__ */ o.jsx(
2391
+ /* @__PURE__ */ r.jsx(
2392
2392
  ye,
2393
2393
  {
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
- children: /* @__PURE__ */ o.jsx(Qn, { "aria-hidden": !0 })
2399
+ children: /* @__PURE__ */ r.jsx(Qn, { "aria-hidden": !0 })
2400
2400
  }
2401
2401
  )
2402
2402
  ] }),
2403
- i && t && t.length > 1 && /* @__PURE__ */ o.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((R, z) => {
2404
- const I = z === h;
2405
- return /* @__PURE__ */ o.jsx(
2403
+ i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: b.map((R, M) => {
2404
+ const I = M === h;
2405
+ return /* @__PURE__ */ r.jsx(
2406
2406
  "button",
2407
2407
  {
2408
2408
  type: "button",
2409
2409
  className: `${Q.dot} ${I ? Q.dotActive : ""}`,
2410
- onClick: () => j(z),
2411
- "aria-label": `Gå til bilde ${z + 1}`,
2410
+ onClick: () => j(M),
2411
+ "aria-label": `Gå til bilde ${M + 1}`,
2412
2412
  "aria-selected": I,
2413
2413
  role: "tab"
2414
2414
  },
2415
- `dot-${z}`
2415
+ `dot-${M}`
2416
2416
  );
2417
2417
  }) })
2418
2418
  ] })
@@ -2420,25 +2420,25 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
2420
2420
  }
2421
2421
  );
2422
2422
  };
2423
- rs.displayName = "Carousel";
2424
- const Ca = un, ja = mn, Da = gn, ee = pn, Ia = fn, La = hn, os = kn, ss = bn;
2425
- os.displayName = "Field.Description";
2423
+ os.displayName = "Carousel";
2424
+ const Ca = un, ja = mn, Da = pn, ee = gn, Ia = fn, Aa = hn, rs = kn, ss = vn;
2425
+ rs.displayName = "Field.Description";
2426
2426
  ss.displayName = "Field.Counter";
2427
- const Aa = It, as = ue((t, e) => /* @__PURE__ */ o.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
- const Fa = yn, is = ue((t, e) => /* @__PURE__ */ o.jsx(xn, { ref: e, ...t }));
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(
2432
- (t, e) => /* @__PURE__ */ o.jsx(jn, { ref: e, ...t })
2431
+ const _e = Tn, Ba = Sn, Ea = wn, Na = Cn, Ze = ue(
2432
+ (t, e) => /* @__PURE__ */ r.jsx(jn, { ref: e, ...t })
2433
2433
  );
2434
2434
  Ze.displayName = "Paragraph";
2435
- const Na = Dn, Pa = In, Ra = 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
- }), za = Bn, Ma = Nn, Oa = Pn, ls = Rn;
2439
+ }), Ma = Nn, za = _n, Oa = Pn, ls = Rn;
2440
2440
  ls.displayName = "Suggestion";
2441
- const qe = zn, $a = Mn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, qa = Vn, Ua = Gn, ds = ue((t, e) => /* @__PURE__ */ o.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",
@@ -3251,6 +3321,7 @@ const cs = {
3251
3321
  design: "Design",
3252
3322
  components: "Components",
3253
3323
  code: "Code",
3324
+ tokens: "Tokens",
3254
3325
  work: "Our Work",
3255
3326
  volunteer: "Volunteer",
3256
3327
  courses: "Courses & Training"
@@ -3477,20 +3548,88 @@ const cs = {
3477
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.'
3478
3549
  },
3479
3550
  figmaMcp: {
3480
- title: "From Figma to Code with MCP",
3481
- 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.",
3482
- processTitle: "Process",
3483
- processItem1: "Identify the component in Figma: Find the `node-id` of the component or section you want to implement.",
3484
- processItem2: 'Copy link: Right-click on the node in Figma, select "Copy link" to get a URL containing both file key and node ID.',
3485
- processItem2Caption: "Right-click on a node in Figma and select 'Copy link' to get a direct link.",
3486
- 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.",
3487
- processItem3Caption: "Include theme.css and metadata.json for better results.",
3488
- processItem4: "Receive code suggestions: The tool generates React code based on the design, including use of our existing components (such as Heading, Button, Paragraph).",
3489
- processItem5: "Adapt and implement: Adjust the code to fit into the project structure, and verify against design tokens.",
3490
- benefitsTitle: "Benefits",
3491
- benefit1: "Faster implementation of new components.",
3492
- benefit2: "Ensures correct tokens are used automatically.",
3493
- 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."'
3494
3633
  },
3495
3634
  metadataFiles: {
3496
3635
  title: "Metadata Files",
@@ -4013,31 +4152,31 @@ const cs = {
4013
4152
  }
4014
4153
  }
4015
4154
  }, Rt = Kt(void 0), Ka = ({ children: t }) => {
4016
- const [e, n] = re("NO"), s = (i) => {
4155
+ const [e, n] = oe("NO"), s = (i) => {
4017
4156
  const a = i.split(".");
4018
- let r = cs[e];
4157
+ let o = cs[e];
4019
4158
  for (const d of a) {
4020
- if (r[d] === void 0)
4159
+ if (o[d] === void 0)
4021
4160
  return console.warn(`Translation missing for key: ${i} in language: ${e}`), i;
4022
- r = r[d];
4161
+ o = o[d];
4023
4162
  }
4024
- return r;
4163
+ return o;
4025
4164
  };
4026
- return /* @__PURE__ */ o.jsx(Rt.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 });
4027
4166
  }, us = () => {
4028
4167
  const t = Yt(Rt);
4029
4168
  if (t === void 0)
4030
4169
  throw new Error("useLanguage must be used within a LanguageProvider");
4031
4170
  return t;
4032
- }, 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", Rs = "_userName_3zql2_279", zs = "_loginLink_3zql2_286", Ms = "_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", ra = "_resultItem_3zql2_453", oa = "_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 = {
4033
4172
  header: ms,
4034
- languageSwitch: gs,
4035
- searchOverlay: ps,
4173
+ languageSwitch: ps,
4174
+ searchOverlay: gs,
4036
4175
  headerExtension: fs,
4037
4176
  extensionContentWrapper: hs,
4038
4177
  extensionContent: ks,
4039
- extensionDivider: bs,
4040
- languageLabel: vs,
4178
+ extensionDivider: vs,
4179
+ languageLabel: bs,
4041
4180
  languageLink: ys,
4042
4181
  headerInner: xs,
4043
4182
  logoWrapper: Ts,
@@ -4047,25 +4186,25 @@ const cs = {
4047
4186
  slotContainer: js,
4048
4187
  slotText: Ds,
4049
4188
  secondaryLogo: Is,
4050
- redCrossLogo: Ls,
4051
- primaryLogo: As,
4189
+ redCrossLogo: As,
4190
+ primaryLogo: Ls,
4052
4191
  navItems: Fs,
4053
- navLink: _s,
4192
+ navLink: Bs,
4054
4193
  actions: Es,
4055
- ctaButton: Bs,
4056
- themeToggle: Ns,
4194
+ ctaButton: Ns,
4195
+ themeToggle: _s,
4057
4196
  userInfo: Ps,
4058
4197
  userName: Rs,
4059
- loginLink: zs,
4060
- loginText: Ms,
4198
+ loginLink: Ms,
4199
+ loginText: zs,
4061
4200
  underline: Os,
4062
4201
  searchButtonWrapper: $s,
4063
4202
  buttonText: Hs,
4064
4203
  menuButton: Ws,
4065
4204
  menuOverlay: Vs,
4066
4205
  searchContent: Gs,
4067
- menuContent: qs,
4068
- menuLeftColumn: Us,
4206
+ menuContent: Us,
4207
+ menuLeftColumn: qs,
4069
4208
  menuRightColumn: Ks,
4070
4209
  slotContent: Ys,
4071
4210
  navList: Js,
@@ -4075,8 +4214,8 @@ const cs = {
4075
4214
  suggestionsTitle: ea,
4076
4215
  searchResults: ta,
4077
4216
  resultList: na,
4078
- resultItem: ra,
4079
- resultLink: oa,
4217
+ resultItem: oa,
4218
+ resultLink: ra,
4080
4219
  suggestionIcon: sa,
4081
4220
  suggestionText: aa,
4082
4221
  highlightedText: ia,
@@ -4153,30 +4292,30 @@ const cs = {
4153
4292
  showUser: s = !0,
4154
4293
  showSearch: i = !0,
4155
4294
  showLogin: a = !0,
4156
- showCta: r = !1,
4295
+ showCta: o = !1,
4157
4296
  ctaLabel: d,
4158
- ctaIcon: l = /* @__PURE__ */ o.jsx(tr, { "aria-hidden": !0 }),
4297
+ ctaIcon: l = /* @__PURE__ */ r.jsx(to, { "aria-hidden": !0 }),
4159
4298
  onCtaClick: u,
4160
4299
  showThemeToggle: y = !1,
4161
4300
  secondaryLogo: f = !1,
4162
4301
  secondaryLogoSrc: k,
4163
- secondaryLogoSrcDark: g,
4302
+ secondaryLogoSrcDark: p,
4164
4303
  secondaryLogoAlt: h = "Secondary Logo",
4165
- navItems: b,
4166
- showNavItems: v = !0,
4167
- showMenuButton: p = !0,
4304
+ navItems: v,
4305
+ showNavItems: b = !0,
4306
+ showMenuButton: g = !0,
4168
4307
  showHeaderExtension: m = !1,
4169
4308
  showModeToggle: T = !1,
4170
- showLanguageSwitch: _ = !1
4309
+ showLanguageSwitch: B = !1
4171
4310
  }) => {
4172
- const [F, E] = re(!1), [j, L] = re(!1), [B, $] = re(""), [N, W] = re("light"), { language: R, setLanguage: z, t: I } = us(), [q, ne] = re(!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);
4173
4312
  te(() => {
4174
4313
  const x = "rk-header-inline-styles";
4175
4314
  if (typeof document > "u" || document.getElementById(x)) return;
4176
4315
  const D = ma(S), C = document.createElement("style");
4177
4316
  C.id = x, C.textContent = D, document.head.appendChild(C);
4178
4317
  }, []);
4179
- const Y = () => /* @__PURE__ */ o.jsxs(
4318
+ const Y = () => /* @__PURE__ */ r.jsxs(
4180
4319
  "svg",
4181
4320
  {
4182
4321
  width: "170",
@@ -4188,29 +4327,29 @@ const cs = {
4188
4327
  focusable: "false",
4189
4328
  className: S.redCrossLogo,
4190
4329
  children: [
4191
- /* @__PURE__ */ o.jsx("path", { d: "M76.1036 48.1397C77.8925 47.8781 79.6984 47.7525 81.5061 47.7639C84.1713 47.7639 86.0396 48.1669 87.3182 49.1857C87.8735 49.639 88.3149 50.2176 88.6067 50.8744C88.8984 51.5312 89.0323 52.2479 88.9974 52.9665C88.9839 53.9451 88.6724 54.896 88.1049 55.691C87.5373 56.4861 86.7411 57.087 85.8235 57.4129V57.4944C87.0796 58.006 87.7684 59.2104 88.2231 60.8722C88.7813 62.9097 89.3441 65.2688 89.6907 65.9661H85.5309C85.2382 65.4544 84.7835 63.9829 84.2793 61.7597C83.7751 59.5365 83.0097 58.8527 81.344 58.8527H80.1284V65.9661H76.1036V48.1397ZM80.1284 55.9141H81.7312C83.7526 55.9141 84.9546 54.8954 84.9546 53.3151C84.9546 51.6534 83.8336 50.8202 81.9698 50.7931C81.3532 50.7814 80.7368 50.8268 80.1284 50.9289V55.9141Z", fill: "#1E1E1E" }),
4192
- /* @__PURE__ */ o.jsx("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
4193
- /* @__PURE__ */ o.jsx("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
4194
- /* @__PURE__ */ o.jsx("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
4195
- /* @__PURE__ */ o.jsx("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
4196
- /* @__PURE__ */ o.jsx("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
4197
- /* @__PURE__ */ o.jsx("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
4198
- /* @__PURE__ */ o.jsx("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
4199
- /* @__PURE__ */ o.jsx("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
4200
- /* @__PURE__ */ o.jsx("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
4330
+ /* @__PURE__ */ r.jsx("path", { d: "M76.1036 48.1397C77.8925 47.8781 79.6984 47.7525 81.5061 47.7639C84.1713 47.7639 86.0396 48.1669 87.3182 49.1857C87.8735 49.639 88.3149 50.2176 88.6067 50.8744C88.8984 51.5312 89.0323 52.2479 88.9974 52.9665C88.9839 53.9451 88.6724 54.896 88.1049 55.691C87.5373 56.4861 86.7411 57.087 85.8235 57.4129V57.4944C87.0796 58.006 87.7684 59.2104 88.2231 60.8722C88.7813 62.9097 89.3441 65.2688 89.6907 65.9661H85.5309C85.2382 65.4544 84.7835 63.9829 84.2793 61.7597C83.7751 59.5365 83.0097 58.8527 81.344 58.8527H80.1284V65.9661H76.1036V48.1397ZM80.1284 55.9141H81.7312C83.7526 55.9141 84.9546 54.8954 84.9546 53.3151C84.9546 51.6534 83.8336 50.8202 81.9698 50.7931C81.3532 50.7814 80.7368 50.8268 80.1284 50.9289V55.9141Z", fill: "#1E1E1E" }),
4331
+ /* @__PURE__ */ r.jsx("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
4332
+ /* @__PURE__ */ r.jsx("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
4333
+ /* @__PURE__ */ r.jsx("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
4334
+ /* @__PURE__ */ r.jsx("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
4335
+ /* @__PURE__ */ r.jsx("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
4336
+ /* @__PURE__ */ r.jsx("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
4337
+ /* @__PURE__ */ r.jsx("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
4338
+ /* @__PURE__ */ r.jsx("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
4339
+ /* @__PURE__ */ r.jsx("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
4201
4340
  ]
4202
4341
  }
4203
4342
  );
4204
4343
  te(() => {
4205
- E(!1), L(!1), $("");
4344
+ E(!1), A(!1), $("");
4206
4345
  }, [t]), te(() => {
4207
- if (!(typeof document > "u") && F && q) {
4346
+ if (!(typeof document > "u") && F && U) {
4208
4347
  const x = document.body.style.overflow;
4209
4348
  return document.body.style.overflow = "hidden", () => {
4210
4349
  document.body.style.overflow = x;
4211
4350
  };
4212
4351
  }
4213
- }, [F, q]), te(() => {
4352
+ }, [F, U]), te(() => {
4214
4353
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
4215
4354
  const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
4216
4355
  return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
@@ -4231,7 +4370,7 @@ const cs = {
4231
4370
  return C.observe(x), () => {
4232
4371
  window.removeEventListener("resize", D), C.disconnect();
4233
4372
  };
4234
- }, [q]), te(() => {
4373
+ }, [U]), te(() => {
4235
4374
  if (typeof document > "u") return;
4236
4375
  const x = document.querySelector(`.${S.logoWrapper}`);
4237
4376
  if (!x) return;
@@ -4240,7 +4379,7 @@ const cs = {
4240
4379
  document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
4241
4380
  };
4242
4381
  return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
4243
- }, [q]), te(() => {
4382
+ }, [U]), te(() => {
4244
4383
  if (typeof document > "u" || !j) {
4245
4384
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
4246
4385
  return;
@@ -4258,47 +4397,47 @@ const cs = {
4258
4397
  };
4259
4398
  }, [j]);
4260
4399
  const K = () => {
4261
- const x = N === "light" ? "dark" : "light";
4400
+ const x = _ === "light" ? "dark" : "light";
4262
4401
  W(x), document.documentElement.setAttribute("data-color-scheme", x);
4263
- }, oe = (x) => {
4264
- e && (x.preventDefault(), e("home")), E(!1), L(!1);
4402
+ }, re = (x) => {
4403
+ e && (x.preventDefault(), e("home")), E(!1), A(!1);
4265
4404
  }, c = () => {
4266
- E(!F), j && L(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
4405
+ E(!F), j && A(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
4267
4406
  const x = document.querySelector(`.${S.header}`);
4268
4407
  if (x) {
4269
4408
  const D = x.offsetHeight;
4270
4409
  document.documentElement.style.setProperty("--header-height-mobile", `${D}px`);
4271
4410
  }
4272
4411
  });
4273
- }, A = () => {
4274
- L(!j), F && E(!1);
4275
- }, P = ve(() => {
4276
- if (!B.trim()) return [];
4277
- 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();
4278
4417
  return ua.filter(
4279
4418
  (D) => D.title.toLowerCase().startsWith(x)
4280
4419
  );
4281
- }, [B]), M = (x) => {
4282
- e && e(x), L(!1), $("");
4420
+ }, [N]), z = (x) => {
4421
+ e && e(x), A(!1), $("");
4283
4422
  };
4284
- return /* @__PURE__ */ o.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
4285
- m && /* @__PURE__ */ o.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ o.jsxs("div", { className: S.extensionContentWrapper, children: [
4286
- T && /* @__PURE__ */ o.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ o.jsx(
4287
- qe,
4423
+ return /* @__PURE__ */ r.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
4424
+ m && /* @__PURE__ */ r.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: S.extensionContentWrapper, children: [
4425
+ T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
4426
+ Ue,
4288
4427
  {
4289
4428
  "data-size": "sm",
4290
- checked: N === "dark",
4429
+ checked: _ === "dark",
4291
4430
  onChange: K,
4292
4431
  label: I("header.darkMode"),
4293
4432
  color: "neutral",
4294
4433
  "data-color-scheme": "light"
4295
4434
  }
4296
4435
  ) }),
4297
- T && _ && /* @__PURE__ */ o.jsx("div", { className: S.extensionDivider }),
4298
- _ && /* @__PURE__ */ o.jsxs("div", { className: S.languageSwitch, children: [
4299
- /* @__PURE__ */ o.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4300
- /* @__PURE__ */ o.jsxs(ee.TriggerContext, { children: [
4301
- /* @__PURE__ */ o.jsxs(
4436
+ T && B && /* @__PURE__ */ r.jsx("div", { className: S.extensionDivider }),
4437
+ B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4438
+ /* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4439
+ /* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
4440
+ /* @__PURE__ */ r.jsxs(
4302
4441
  ee.Trigger,
4303
4442
  {
4304
4443
  className: S.languageLink,
@@ -4307,47 +4446,47 @@ const cs = {
4307
4446
  children: [
4308
4447
  R,
4309
4448
  " ",
4310
- /* @__PURE__ */ o.jsx(gt, { "aria-hidden": !0 })
4449
+ /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
4311
4450
  ]
4312
4451
  }
4313
4452
  ),
4314
- /* @__PURE__ */ o.jsx(
4453
+ /* @__PURE__ */ r.jsx(
4315
4454
  ee,
4316
4455
  {
4317
- "data-color-scheme": N,
4456
+ "data-color-scheme": _,
4318
4457
  placement: "bottom-end",
4319
- children: /* @__PURE__ */ o.jsxs(ee.List, { children: [
4320
- /* @__PURE__ */ o.jsx(ee.Item, { children: /* @__PURE__ */ o.jsx(ee.Button, { onClick: () => z("NO"), children: "Norsk (NO)" }) }),
4321
- /* @__PURE__ */ o.jsx(ee.Item, { children: /* @__PURE__ */ o.jsx(ee.Button, { onClick: () => z("EN"), children: "English (EN)" }) })
4458
+ children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
4459
+ /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
4460
+ /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
4322
4461
  ] })
4323
4462
  }
4324
4463
  )
4325
4464
  ] })
4326
4465
  ] })
4327
4466
  ] }) }),
4328
- /* @__PURE__ */ o.jsxs("div", { className: S.headerInner, children: [
4329
- /* @__PURE__ */ o.jsxs("div", { className: S.logoWrapper, children: [
4330
- /* @__PURE__ */ o.jsx(
4331
- Ne,
4467
+ /* @__PURE__ */ r.jsxs("div", { className: S.headerInner, children: [
4468
+ /* @__PURE__ */ r.jsxs("div", { className: S.logoWrapper, children: [
4469
+ /* @__PURE__ */ r.jsx(
4470
+ _e,
4332
4471
  {
4333
4472
  href: "/",
4334
4473
  className: `${S.logo} ${S.primaryLogo}`,
4335
4474
  "aria-label": I("header.homeAriaLabel"),
4336
- onClick: oe,
4337
- children: /* @__PURE__ */ o.jsx(Y, {})
4475
+ onClick: re,
4476
+ children: /* @__PURE__ */ r.jsx(Y, {})
4338
4477
  }
4339
4478
  ),
4340
- /* @__PURE__ */ o.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ o.jsx(
4479
+ /* @__PURE__ */ r.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
4341
4480
  "img",
4342
4481
  {
4343
- src: N === "dark" && g ? g : k,
4482
+ src: _ === "dark" && p ? p : k,
4344
4483
  alt: h,
4345
4484
  className: S.secondaryLogo
4346
4485
  }
4347
- ) : f ? /* @__PURE__ */ o.jsx("div", { className: S.slotComponent, children: /* @__PURE__ */ o.jsx("div", { className: S.slotContainer, children: /* @__PURE__ */ o.jsx("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
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 })
4348
4487
  ] }),
4349
- v && b && b.length > 0 && !q && /* @__PURE__ */ o.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ o.jsx(
4350
- 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,
4351
4490
  {
4352
4491
  href: x.href,
4353
4492
  className: S.navLink,
@@ -4358,8 +4497,8 @@ const cs = {
4358
4497
  },
4359
4498
  D
4360
4499
  )) }),
4361
- /* @__PURE__ */ o.jsxs("div", { className: S.actions, children: [
4362
- r && /* @__PURE__ */ o.jsxs(
4500
+ /* @__PURE__ */ r.jsxs("div", { className: S.actions, children: [
4501
+ o && /* @__PURE__ */ r.jsxs(
4363
4502
  ye,
4364
4503
  {
4365
4504
  variant: "primary",
@@ -4369,42 +4508,42 @@ const cs = {
4369
4508
  onClick: u,
4370
4509
  children: [
4371
4510
  l,
4372
- /* @__PURE__ */ o.jsx("span", { className: S.buttonText, children: d || I("header.supportUs") })
4511
+ /* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: d || I("header.supportUs") })
4373
4512
  ]
4374
4513
  }
4375
4514
  ),
4376
- !m && y && /* @__PURE__ */ o.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ o.jsx(
4377
- qe,
4515
+ !m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
4516
+ Ue,
4378
4517
  {
4379
- checked: N === "dark",
4518
+ checked: _ === "dark",
4380
4519
  onChange: K,
4381
4520
  "aria-label": I("header.toggleTheme")
4382
4521
  }
4383
4522
  ) }),
4384
- s && /* @__PURE__ */ o.jsxs("div", { className: S.userInfo, children: [
4385
- /* @__PURE__ */ o.jsx(Ze, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
4386
- /* @__PURE__ */ o.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
4523
+ s && /* @__PURE__ */ r.jsxs("div", { className: S.userInfo, children: [
4524
+ /* @__PURE__ */ r.jsx(Ze, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
4525
+ /* @__PURE__ */ r.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
4387
4526
  ] }),
4388
- a && /* @__PURE__ */ o.jsxs("a", { href: "#", className: S.loginLink, children: [
4389
- /* @__PURE__ */ o.jsx("span", { className: S.loginText, children: I("header.login") }),
4390
- /* @__PURE__ */ o.jsx("div", { className: S.underline })
4527
+ a && /* @__PURE__ */ r.jsxs("a", { href: "#", className: S.loginLink, children: [
4528
+ /* @__PURE__ */ r.jsx("span", { className: S.loginText, children: I("header.login") }),
4529
+ /* @__PURE__ */ r.jsx("div", { className: S.underline })
4391
4530
  ] }),
4392
- i && /* @__PURE__ */ o.jsx("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ o.jsxs(
4531
+ i && /* @__PURE__ */ r.jsx("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ r.jsxs(
4393
4532
  ye,
4394
4533
  {
4395
4534
  variant: "secondary",
4396
4535
  "data-color": "main",
4397
4536
  "data-size": "md",
4398
- onClick: A,
4537
+ onClick: L,
4399
4538
  "aria-expanded": j,
4400
4539
  "aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
4401
4540
  children: [
4402
- j ? /* @__PURE__ */ o.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ o.jsx(ft, { "aria-hidden": !0 }),
4403
- /* @__PURE__ */ o.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
4541
+ j ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
4542
+ /* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
4404
4543
  ]
4405
4544
  }
4406
4545
  ) }),
4407
- (p || q) && /* @__PURE__ */ o.jsxs(
4546
+ (g || U) && /* @__PURE__ */ r.jsxs(
4408
4547
  ye,
4409
4548
  {
4410
4549
  variant: "primary",
@@ -4415,21 +4554,21 @@ const cs = {
4415
4554
  "aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
4416
4555
  className: S.menuButton,
4417
4556
  children: [
4418
- F ? /* @__PURE__ */ o.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ o.jsx(er, { "aria-hidden": !0 }),
4419
- /* @__PURE__ */ o.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
4557
+ F ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
4558
+ /* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
4420
4559
  ]
4421
4560
  }
4422
4561
  )
4423
4562
  ] })
4424
4563
  ] }),
4425
- F && /* @__PURE__ */ o.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ o.jsxs("div", { className: S.menuContent, children: [
4426
- /* @__PURE__ */ o.jsx("div", { className: S.menuLeftColumn }),
4427
- /* @__PURE__ */ o.jsxs("div", { className: S.menuRightColumn, children: [
4428
- q && (_ || T) && /* @__PURE__ */ o.jsxs("div", { className: S.menuUtilities, children: [
4429
- _ && /* @__PURE__ */ o.jsxs("div", { className: S.languageSwitch, children: [
4430
- /* @__PURE__ */ o.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4431
- /* @__PURE__ */ o.jsxs(ee.TriggerContext, { children: [
4432
- /* @__PURE__ */ o.jsxs(
4564
+ F && /* @__PURE__ */ r.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.menuContent, children: [
4565
+ /* @__PURE__ */ r.jsx("div", { className: S.menuLeftColumn }),
4566
+ /* @__PURE__ */ r.jsxs("div", { className: S.menuRightColumn, children: [
4567
+ U && (B || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
4568
+ B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4569
+ /* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4570
+ /* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
4571
+ /* @__PURE__ */ r.jsxs(
4433
4572
  ee.Trigger,
4434
4573
  {
4435
4574
  className: S.languageLink,
@@ -4438,28 +4577,28 @@ const cs = {
4438
4577
  children: [
4439
4578
  R,
4440
4579
  " ",
4441
- /* @__PURE__ */ o.jsx(gt, { "aria-hidden": !0 })
4580
+ /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
4442
4581
  ]
4443
4582
  }
4444
4583
  ),
4445
- /* @__PURE__ */ o.jsx(
4584
+ /* @__PURE__ */ r.jsx(
4446
4585
  ee,
4447
4586
  {
4448
- "data-color-scheme": N,
4587
+ "data-color-scheme": _,
4449
4588
  placement: "bottom-start",
4450
- children: /* @__PURE__ */ o.jsxs(ee.List, { children: [
4451
- /* @__PURE__ */ o.jsx(ee.Item, { children: /* @__PURE__ */ o.jsx(ee.Button, { onClick: () => z("NO"), children: "Norsk (NO)" }) }),
4452
- /* @__PURE__ */ o.jsx(ee.Item, { children: /* @__PURE__ */ o.jsx(ee.Button, { onClick: () => z("EN"), children: "English (EN)" }) })
4589
+ children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
4590
+ /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
4591
+ /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
4453
4592
  ] })
4454
4593
  }
4455
4594
  )
4456
4595
  ] })
4457
4596
  ] }),
4458
- T && /* @__PURE__ */ o.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ o.jsx(
4459
- qe,
4597
+ T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
4598
+ Ue,
4460
4599
  {
4461
4600
  "data-size": "sm",
4462
- checked: N === "dark",
4601
+ checked: _ === "dark",
4463
4602
  onChange: K,
4464
4603
  label: I("header.darkMode"),
4465
4604
  color: "neutral",
@@ -4467,10 +4606,10 @@ const cs = {
4467
4606
  }
4468
4607
  ) })
4469
4608
  ] }),
4470
- /* @__PURE__ */ o.jsxs("div", { className: S.slotContent, children: [
4609
+ /* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
4471
4610
  n,
4472
- q && v && b && b.length > 0 && /* @__PURE__ */ o.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ o.jsx(
4473
- 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,
4474
4613
  {
4475
4614
  href: x.href,
4476
4615
  className: S.navLink,
@@ -4482,53 +4621,53 @@ const cs = {
4482
4621
  D
4483
4622
  )) })
4484
4623
  ] }),
4485
- q && /* @__PURE__ */ o.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ o.jsx(Y, {}) })
4624
+ U && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
4486
4625
  ] })
4487
4626
  ] }) }),
4488
- j && /* @__PURE__ */ o.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ o.jsxs("div", { className: S.searchContent, children: [
4489
- /* @__PURE__ */ o.jsxs(Pe, { children: [
4490
- /* @__PURE__ */ o.jsx(
4627
+ j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
4628
+ /* @__PURE__ */ r.jsxs(Pe, { children: [
4629
+ /* @__PURE__ */ r.jsx(
4491
4630
  Pe.Input,
4492
4631
  {
4493
4632
  "aria-label": I("header.search"),
4494
4633
  placeholder: I("header.searchPlaceholder"),
4495
- value: B,
4634
+ value: N,
4496
4635
  onChange: (x) => $(x.target.value)
4497
4636
  }
4498
4637
  ),
4499
- /* @__PURE__ */ o.jsx(Pe.Button, { "aria-label": I("header.search") }),
4500
- /* @__PURE__ */ o.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": I("header.clearSearch") })
4638
+ /* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": I("header.search") }),
4639
+ /* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": I("header.clearSearch") })
4501
4640
  ] }),
4502
- B && /* @__PURE__ */ o.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ o.jsxs("div", { className: S.suggestionsSection, children: [
4503
- /* @__PURE__ */ o.jsx("h3", { className: S.suggestionsTitle, children: I("header.suggestions") }),
4504
- /* @__PURE__ */ o.jsx("ul", { className: S.resultList, children: P.slice(0, 5).map((x) => /* @__PURE__ */ o.jsx("li", { className: S.resultItem, children: /* @__PURE__ */ o.jsxs(
4641
+ N && /* @__PURE__ */ r.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: S.suggestionsSection, children: [
4642
+ /* @__PURE__ */ r.jsx("h3", { className: S.suggestionsTitle, children: I("header.suggestions") }),
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(
4505
4644
  "button",
4506
4645
  {
4507
4646
  className: S.resultLink,
4508
- onClick: () => M(x.path),
4647
+ onClick: () => z(x.path),
4509
4648
  children: [
4510
- /* @__PURE__ */ o.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ o.jsx(ft, { "aria-hidden": !0 }) }),
4511
- /* @__PURE__ */ o.jsx("span", { className: S.suggestionText, children: (() => {
4512
- const D = x.title.toLowerCase().indexOf(B.toLowerCase());
4513
- if (D === -1) return /* @__PURE__ */ o.jsx("span", { className: S.remainingText, children: x.title });
4514
- const C = x.title.slice(0, D), H = x.title.slice(D, D + B.length), J = x.title.slice(D + B.length);
4515
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
4516
- /* @__PURE__ */ o.jsx("span", { className: S.remainingText, children: C }),
4517
- /* @__PURE__ */ o.jsx("span", { className: S.highlightedText, children: H }),
4518
- /* @__PURE__ */ o.jsx("span", { className: S.remainingText, children: J })
4649
+ /* @__PURE__ */ r.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
4650
+ /* @__PURE__ */ r.jsx("span", { className: S.suggestionText, children: (() => {
4651
+ const D = x.title.toLowerCase().indexOf(N.toLowerCase());
4652
+ if (D === -1) return /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: x.title });
4653
+ const C = x.title.slice(0, D), H = x.title.slice(D, D + N.length), J = x.title.slice(D + N.length);
4654
+ return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4655
+ /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: C }),
4656
+ /* @__PURE__ */ r.jsx("span", { className: S.highlightedText, children: H }),
4657
+ /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: J })
4519
4658
  ] });
4520
4659
  })() })
4521
4660
  ]
4522
4661
  }
4523
4662
  ) }, x.id)) }),
4524
- P.length > 5 && /* @__PURE__ */ o.jsxs(
4525
- Ne,
4663
+ P.length > 5 && /* @__PURE__ */ r.jsxs(
4664
+ _e,
4526
4665
  {
4527
4666
  href: "#",
4528
4667
  "data-color": "neutral",
4529
4668
  className: S.viewAllLink,
4530
4669
  onClick: (x) => {
4531
- x.preventDefault(), e && e(`search/${B}`), L(!1), $("");
4670
+ x.preventDefault(), e && e(`search/${N}`), A(!1), $("");
4532
4671
  },
4533
4672
  children: [
4534
4673
  I("header.viewAll"),
@@ -4538,10 +4677,10 @@ const cs = {
4538
4677
  ]
4539
4678
  }
4540
4679
  )
4541
- ] }) : /* @__PURE__ */ o.jsx("div", { className: S.noResults, children: /* @__PURE__ */ o.jsxs(Ze, { children: [
4680
+ ] }) : /* @__PURE__ */ r.jsx("div", { className: S.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
4542
4681
  I("header.noResults"),
4543
4682
  ' "',
4544
- B,
4683
+ N,
4545
4684
  '"'
4546
4685
  ] }) }) })
4547
4686
  ] }) })
@@ -4678,59 +4817,59 @@ function ma(t) {
4678
4817
  `;
4679
4818
  }
4680
4819
  export {
4681
- sr as Alert,
4820
+ so as Alert,
4682
4821
  Ft as Avatar,
4683
- ar as Badge,
4822
+ ao as Badge,
4684
4823
  ka as BadgePosition,
4685
- ba as Breadcrumbs,
4824
+ va as Breadcrumbs,
4686
4825
  ya as BreadcrumbsItem,
4687
4826
  xa as BreadcrumbsLink,
4688
- va as BreadcrumbsList,
4827
+ ba as BreadcrumbsList,
4689
4828
  ye as Button,
4690
- ir as Card,
4829
+ io as Card,
4691
4830
  Ta as CardBlock,
4692
- rs as Carousel,
4693
- lr as Checkbox,
4831
+ os as Carousel,
4832
+ lo as Checkbox,
4694
4833
  wa as Chip,
4695
- ao as DateInput,
4696
- Xr as DatePicker,
4834
+ ir as DateInput,
4835
+ Qo as DatePicker,
4697
4836
  Ca as Details,
4698
4837
  ja as Dialog,
4699
4838
  Da as Divider,
4700
4839
  ee as Dropdown,
4701
4840
  Ia as ErrorSummary,
4702
- La as Field,
4841
+ Aa as Field,
4703
4842
  ss as FieldCounter,
4704
- os as FieldDescription,
4705
- Aa as Fieldset,
4843
+ rs as FieldDescription,
4844
+ La as Fieldset,
4706
4845
  Ya as Header,
4707
4846
  as as Heading,
4708
4847
  Fa as Input,
4709
4848
  is as Label,
4710
4849
  Ka as LanguageProvider,
4711
- Ne as Link,
4712
- _a as List,
4850
+ _e as Link,
4851
+ Ba as List,
4713
4852
  Ea as Pagination,
4714
4853
  Ze as Paragraph,
4715
- Na as Popover,
4854
+ _a as Popover,
4716
4855
  Pa as Radio,
4717
4856
  Pe as Search,
4718
- za as Select,
4719
- Ma as SkeletonLoader,
4857
+ Ma as Select,
4858
+ za as SkeletonLoader,
4720
4859
  Oa as SkipLink,
4721
4860
  ns as Spinner,
4722
4861
  ls as Suggestion,
4723
- qe as Switch,
4862
+ Ue as Switch,
4724
4863
  $a as Table,
4725
4864
  Ha as Tabs,
4726
4865
  Wa as Tag,
4727
4866
  Va as Textarea,
4728
4867
  Ga as Textfield,
4729
- qa as ToggleGroup,
4730
- Ua as Tooltip,
4868
+ Ua as ToggleGroup,
4869
+ qa as Tooltip,
4731
4870
  ds as ValidationMessage,
4732
4871
  Sa as useCheckboxGroup,
4733
4872
  us as useLanguage,
4734
- Ba as usePagination,
4873
+ Na as usePagination,
4735
4874
  Ra as useRadioGroup
4736
4875
  };