rk-designsystem 1.1.57 → 1.1.59

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,361 +1,84 @@
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 = {};
6
- /**
7
- * @license React
8
- * react-jsx-runtime.production.js
9
- *
10
- * Copyright (c) Meta Platforms, Inc. and affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- var ht;
16
- function nr() {
17
- if (ht) return Se;
18
- ht = 1;
19
- var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
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) {
23
- a = {};
24
- for (var d in i)
25
- d !== "key" && (a[d] = i[d]);
26
- } else a = i;
27
- return i = a.ref, {
28
- $$typeof: t,
29
- type: s,
30
- key: r,
31
- ref: i !== void 0 ? i : null,
32
- props: a
33
- };
34
- }
35
- return Se.Fragment = e, Se.jsx = n, Se.jsxs = n, Se;
36
- }
37
- var we = {};
38
- /**
39
- * @license React
40
- * react-jsx-runtime.development.js
41
- *
42
- * Copyright (c) Meta Platforms, Inc. and affiliates.
43
- *
44
- * This source code is licensed under the MIT license found in the
45
- * LICENSE file in the root directory of this source tree.
46
- */
47
- var kt;
48
- function rr() {
49
- return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
50
- function t(c) {
51
- if (c == null) return null;
52
- if (typeof c == "function")
53
- return c.$$typeof === N ? null : c.displayName || c.name || null;
54
- if (typeof c == "string") return c;
55
- switch (c) {
56
- case v:
57
- return "Fragment";
58
- case m:
59
- return "Profiler";
60
- case p:
61
- return "StrictMode";
62
- case E:
63
- return "Suspense";
64
- case j:
65
- return "SuspenseList";
66
- case $:
67
- return "Activity";
68
- }
69
- if (typeof c == "object")
70
- switch (typeof c.tag == "number" && console.error(
71
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
72
- ), c.$$typeof) {
73
- case b:
74
- return "Portal";
75
- case _:
76
- return c.displayName || "Context";
77
- case T:
78
- return (c._context.displayName || "Context") + ".Consumer";
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;
86
- try {
87
- return t(c(A));
88
- } catch {
89
- }
90
- }
91
- return null;
92
- }
93
- function e(c) {
94
- return "" + c;
95
- }
96
- function n(c) {
97
- try {
98
- e(c);
99
- var A = !1;
100
- } catch {
101
- A = !0;
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";
106
- return P.call(
107
- A,
108
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- M
110
- ), e(c);
111
- }
112
- }
113
- function s(c) {
114
- if (c === v) return "<>";
115
- if (typeof c == "object" && c !== null && c.$$typeof === B)
116
- return "<...>";
117
- try {
118
- var A = t(c);
119
- return A ? "<" + A + ">" : "<...>";
120
- } catch {
121
- return "<...>";
122
- }
123
- }
124
- function i() {
125
- var c = W.A;
126
- return c === null ? null : c.getOwner();
127
- }
128
- function a() {
129
- return Error("react-stack-top-frame");
130
- }
131
- function r(c) {
132
- if (R.call(c, "key")) {
133
- var A = Object.getOwnPropertyDescriptor(c, "key").get;
134
- if (A && A.isReactWarning) return !1;
135
- }
136
- return c.key !== void 0;
137
- }
138
- function d(c, A) {
139
- function P() {
140
- q || (q = !0, console.error(
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
143
- ));
144
- }
145
- P.isReactWarning = !0, Object.defineProperty(c, "key", {
146
- get: P,
147
- configurable: !0
148
- });
149
- }
150
- function l() {
151
- var c = t(this.type);
152
- return ne[c] || (ne[c] = !0, console.error(
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
- )), c = this.props.ref, c !== void 0 ? c : null;
155
- }
156
- function u(c, A, P, M, x, D) {
157
- var C = P.ref;
158
- return c = {
159
- $$typeof: h,
160
- type: c,
161
- key: A,
162
- props: P,
163
- _owner: M
164
- }, (C !== void 0 ? C : null) !== null ? Object.defineProperty(c, "ref", {
165
- enumerable: !1,
166
- get: l
167
- }) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
168
- configurable: !1,
169
- enumerable: !1,
170
- writable: !0,
171
- value: 0
172
- }), Object.defineProperty(c, "_debugInfo", {
173
- configurable: !1,
174
- enumerable: !1,
175
- writable: !0,
176
- value: null
177
- }), Object.defineProperty(c, "_debugStack", {
178
- configurable: !1,
179
- enumerable: !1,
180
- writable: !0,
181
- value: x
182
- }), Object.defineProperty(c, "_debugTask", {
183
- configurable: !1,
184
- enumerable: !1,
185
- writable: !0,
186
- value: D
187
- }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
188
- }
189
- function y(c, A, P, M, x, D) {
190
- var C = A.children;
191
- if (C !== void 0)
192
- if (M)
193
- if (z(C)) {
194
- for (M = 0; M < C.length; M++)
195
- f(C[M]);
196
- Object.freeze && Object.freeze(C);
197
- } else
198
- console.error(
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
- );
201
- else f(C);
202
- if (R.call(A, "key")) {
203
- C = t(c);
204
- var H = Object.keys(A).filter(function(X) {
205
- return X !== "key";
206
- });
207
- M = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", oe[C + M] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
208
- `A props object containing a "key" prop is being spread into JSX:
209
- let props = %s;
210
- <%s {...props} />
211
- React keys must be passed directly to JSX without using spread:
212
- let props = %s;
213
- <%s key={someKey} {...props} />`,
214
- M,
215
- C,
216
- H,
217
- C
218
- ), oe[C + M] = !0);
219
- }
220
- if (C = null, P !== void 0 && (n(P), C = "" + P), r(A) && (n(A.key), C = "" + A.key), "key" in A) {
221
- P = {};
222
- for (var J in A)
223
- J !== "key" && (P[J] = A[J]);
224
- } else P = A;
225
- return C && d(
226
- P,
227
- typeof c == "function" ? c.displayName || c.name || "Unknown" : c
228
- ), u(
229
- c,
230
- C,
231
- P,
232
- i(),
233
- x,
234
- D
235
- );
236
- }
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));
239
- }
240
- function k(c) {
241
- return typeof c == "object" && c !== null && c.$$typeof === h;
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() {
244
- return null;
245
- };
246
- g = {
247
- react_stack_bottom_frame: function(c) {
248
- return c();
249
- }
250
- };
251
- var q, ne = {}, Y = g.react_stack_bottom_frame.bind(
252
- g,
253
- a
254
- )(), K = I(s(a)), oe = {};
255
- we.Fragment = v, we.jsx = function(c, A, P) {
256
- var M = 1e4 > W.recentlyCreatedOwnerStacks++;
257
- return y(
258
- c,
259
- A,
260
- P,
261
- !1,
262
- M ? Error("react-stack-top-frame") : Y,
263
- M ? I(s(c)) : K
264
- );
265
- }, we.jsxs = function(c, A, P) {
266
- var M = 1e4 > W.recentlyCreatedOwnerStacks++;
267
- return y(
268
- c,
269
- A,
270
- P,
271
- !0,
272
- M ? Error("react-stack-top-frame") : Y,
273
- M ? I(s(c)) : K
274
- );
275
- };
276
- })()), we;
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;
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 }));
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;
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";
296
- const wa = dn;
297
- function Ge(t) {
1
+ import { jsx as d, jsxs as B, Fragment as Ot } from "react/jsx-runtime";
2
+ import Wt, { forwardRef as me, useState as ne, useEffect as K, useMemo as ye, useCallback as se, useRef as Ge, createContext as Vt, useContext as Gt } from "react";
3
+ import { Alert as Ut, Avatar as qt, BadgePosition as Kt, Badge as Yt, Breadcrumbs as Zt, BreadcrumbsList as Jt, BreadcrumbsItem as Qt, BreadcrumbsLink as Xt, Button as Ue, Card as en, CardBlock as tn, Checkbox as nn, useCheckboxGroup as on, Fieldset as xt, Chip as rn, Spinner as sn, Details as an, Dialog as ln, Divider as dn, Dropdown as cn, ErrorSummary as un, Field as mn, FieldDescription as gn, FieldCounter as pn, Heading as fn, Input as hn, Label as kn, Link as vn, List as bn, Pagination as yn, usePagination as Tn, Paragraph as xn, Popover as Sn, Radio as wn, useRadioGroup as Cn, Search as Dn, SearchInput as In, SearchClear as An, SearchButton as jn, Select as Ln, Skeleton as Fn, SkipLink as Bn, EXPERIMENTAL_Suggestion as Nn, Switch as Pn, Table as Mn, Tabs as En, Tag as _n, Textarea as zn, Textfield as Rn, ToggleGroup as $n, Tooltip as Hn, ValidationMessage as On } from "@digdir/designsystemet-react";
4
+ import { startOfMonth as ve, isValid as Oe, isSameMonth as ct, startOfWeek as St, format as Se, addDays as wt, subMonths as Wn, addMonths as Vn, isSameDay as Gn, isToday as Un, eachDayOfInterval as qn } from "date-fns";
5
+ import { ChevronLeftIcon as Kn, ChevronRightIcon as Yn, ChevronDownIcon as ut, XMarkIcon as mt, MagnifyingGlassIcon as gt, MenuHamburgerIcon as Zn, HeartIcon as Jn } from "@navikt/aksel-icons";
6
+ const Qn = me((t, e) => /* @__PURE__ */ d(Ut, { ref: e, ...t }));
7
+ Qn.displayName = "Alert";
8
+ const Ct = me((t, e) => /* @__PURE__ */ d(qt, { ref: e, ...t }));
9
+ Ct.displayName = "Avatar";
10
+ const Xn = me((t, e) => /* @__PURE__ */ d(Yt, { ref: e, ...t }));
11
+ Xn.displayName = "Badge";
12
+ const ui = Kt, mi = Zt, gi = Jt, pi = Qt, fi = Xt, Te = Ue;
13
+ Te.displayName = "Button";
14
+ const eo = en, hi = tn;
15
+ eo.displayName = "Card";
16
+ const to = nn, no = xt, ki = on;
17
+ to.displayName = "Checkbox";
18
+ no.displayName = "Fieldset";
19
+ const vi = rn;
20
+ function We(t) {
298
21
  return (e = {}) => {
299
22
  const n = e.width ? String(e.width) : t.defaultWidth;
300
23
  return t.formats[n] || t.formats[t.defaultWidth];
301
24
  };
302
25
  }
303
- function Ce(t) {
26
+ function we(t) {
304
27
  return (e, n) => {
305
- const s = n != null && n.context ? String(n.context) : "standalone";
28
+ const r = n != null && n.context ? String(n.context) : "standalone";
306
29
  let i;
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];
30
+ if (r === "formatting" && t.formattingValues) {
31
+ const o = t.defaultFormattingWidth || t.defaultWidth, l = n != null && n.width ? String(n.width) : o;
32
+ i = t.formattingValues[l] || t.formattingValues[o];
310
33
  } else {
311
- const r = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
312
- i = t.values[d] || t.values[r];
34
+ const o = t.defaultWidth, l = n != null && n.width ? String(n.width) : t.defaultWidth;
35
+ i = t.values[l] || t.values[o];
313
36
  }
314
- const a = t.argumentCallback ? t.argumentCallback(e) : e;
315
- return i[a];
37
+ const s = t.argumentCallback ? t.argumentCallback(e) : e;
38
+ return i[s];
316
39
  };
317
40
  }
318
- function je(t) {
41
+ function Ce(t) {
319
42
  return (e, n = {}) => {
320
- const s = n.width, i = s && t.matchPatterns[s] || t.matchPatterns[t.defaultMatchWidth], a = e.match(i);
321
- if (!a)
43
+ const r = n.width, i = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], s = e.match(i);
44
+ if (!s)
322
45
  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)) : (
46
+ const o = s[0], l = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], a = Array.isArray(l) ? ro(l, (p) => p.test(o)) : (
324
47
  // [TODO] -- I challenge you to fix the type
325
- cr(d, (f) => f.test(r))
48
+ oo(l, (p) => p.test(o))
326
49
  );
327
- let u;
328
- u = t.valueCallback ? t.valueCallback(l) : l, u = n.valueCallback ? (
50
+ let c;
51
+ c = t.valueCallback ? t.valueCallback(a) : a, c = n.valueCallback ? (
329
52
  // [TODO] -- I challenge you to fix the type
330
- n.valueCallback(u)
331
- ) : u;
332
- const y = e.slice(r.length);
333
- return { value: u, rest: y };
53
+ n.valueCallback(c)
54
+ ) : c;
55
+ const b = e.slice(o.length);
56
+ return { value: c, rest: b };
334
57
  };
335
58
  }
336
- function cr(t, e) {
59
+ function oo(t, e) {
337
60
  for (const n in t)
338
61
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
339
62
  return n;
340
63
  }
341
- function ur(t, e) {
64
+ function ro(t, e) {
342
65
  for (let n = 0; n < t.length; n++)
343
66
  if (e(t[n]))
344
67
  return n;
345
68
  }
346
- function mr(t) {
69
+ function so(t) {
347
70
  return (e, n = {}) => {
348
- const s = e.match(t.matchPattern);
71
+ const r = e.match(t.matchPattern);
72
+ if (!r) return null;
73
+ const i = r[0], s = e.match(t.parsePattern);
349
74
  if (!s) return null;
350
- const i = s[0], a = e.match(t.parsePattern);
351
- if (!a) return null;
352
- let r = t.valueCallback ? t.valueCallback(a[0]) : a[0];
353
- r = n.valueCallback ? n.valueCallback(r) : r;
354
- const d = e.slice(i.length);
355
- return { value: r, rest: d };
75
+ let o = t.valueCallback ? t.valueCallback(s[0]) : s[0];
76
+ o = n.valueCallback ? n.valueCallback(o) : o;
77
+ const l = e.slice(i.length);
78
+ return { value: o, rest: l };
356
79
  };
357
80
  }
358
- const gr = {
81
+ const io = {
359
82
  lessThanXSeconds: {
360
83
  one: "mindre enn ett sekund",
361
84
  other: "mindre enn {{count}} sekunder"
@@ -417,54 +140,54 @@ const gr = {
417
140
  one: "nesten ett år",
418
141
  other: "nesten {{count}} år"
419
142
  }
420
- }, pr = (t, e, n) => {
421
- let s;
422
- const i = gr[t];
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 = {
143
+ }, ao = (t, e, n) => {
144
+ let r;
145
+ const i = io[t];
146
+ return typeof i == "string" ? r = i : e === 1 ? r = i.one : r = i.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + r : r + " siden" : r;
147
+ }, lo = {
425
148
  full: "EEEE d. MMMM y",
426
149
  long: "d. MMMM y",
427
150
  medium: "d. MMM y",
428
151
  short: "dd.MM.y"
429
- }, hr = {
152
+ }, co = {
430
153
  full: "'kl'. HH:mm:ss zzzz",
431
154
  long: "HH:mm:ss z",
432
155
  medium: "HH:mm:ss",
433
156
  short: "HH:mm"
434
- }, kr = {
157
+ }, uo = {
435
158
  full: "{{date}} 'kl.' {{time}}",
436
159
  long: "{{date}} 'kl.' {{time}}",
437
160
  medium: "{{date}} {{time}}",
438
161
  short: "{{date}} {{time}}"
439
- }, br = {
440
- date: Ge({
441
- formats: fr,
162
+ }, mo = {
163
+ date: We({
164
+ formats: lo,
442
165
  defaultWidth: "full"
443
166
  }),
444
- time: Ge({
445
- formats: hr,
167
+ time: We({
168
+ formats: co,
446
169
  defaultWidth: "full"
447
170
  }),
448
- dateTime: Ge({
449
- formats: kr,
171
+ dateTime: We({
172
+ formats: uo,
450
173
  defaultWidth: "full"
451
174
  })
452
- }, vr = {
175
+ }, go = {
453
176
  lastWeek: "'forrige' eeee 'kl.' p",
454
177
  yesterday: "'i går kl.' p",
455
178
  today: "'i dag kl.' p",
456
179
  tomorrow: "'i morgen kl.' p",
457
180
  nextWeek: "EEEE 'kl.' p",
458
181
  other: "P"
459
- }, yr = (t, e, n, s) => vr[t], xr = {
182
+ }, po = (t, e, n, r) => go[t], fo = {
460
183
  narrow: ["f.Kr.", "e.Kr."],
461
184
  abbreviated: ["f.Kr.", "e.Kr."],
462
185
  wide: ["før Kristus", "etter Kristus"]
463
- }, Tr = {
186
+ }, ho = {
464
187
  narrow: ["1", "2", "3", "4"],
465
188
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
466
189
  wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
467
- }, Sr = {
190
+ }, ko = {
468
191
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
469
192
  abbreviated: [
470
193
  "jan.",
@@ -494,7 +217,7 @@ const gr = {
494
217
  "november",
495
218
  "desember"
496
219
  ]
497
- }, wr = {
220
+ }, vo = {
498
221
  narrow: ["S", "M", "T", "O", "T", "F", "L"],
499
222
  short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
500
223
  abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
@@ -507,7 +230,7 @@ const gr = {
507
230
  "fredag",
508
231
  "lørdag"
509
232
  ]
510
- }, Cr = {
233
+ }, bo = {
511
234
  narrow: {
512
235
  am: "a",
513
236
  pm: "p",
@@ -538,46 +261,46 @@ const gr = {
538
261
  evening: "på kvelden",
539
262
  night: "på natten"
540
263
  }
541
- }, jr = (t, e) => Number(t) + ".", Dr = {
542
- ordinalNumber: jr,
543
- era: Ce({
544
- values: xr,
264
+ }, yo = (t, e) => Number(t) + ".", To = {
265
+ ordinalNumber: yo,
266
+ era: we({
267
+ values: fo,
545
268
  defaultWidth: "wide"
546
269
  }),
547
- quarter: Ce({
548
- values: Tr,
270
+ quarter: we({
271
+ values: ho,
549
272
  defaultWidth: "wide",
550
273
  argumentCallback: (t) => t - 1
551
274
  }),
552
- month: Ce({
553
- values: Sr,
275
+ month: we({
276
+ values: ko,
554
277
  defaultWidth: "wide"
555
278
  }),
556
- day: Ce({
557
- values: wr,
279
+ day: we({
280
+ values: vo,
558
281
  defaultWidth: "wide"
559
282
  }),
560
- dayPeriod: Ce({
561
- values: Cr,
283
+ dayPeriod: we({
284
+ values: bo,
562
285
  defaultWidth: "wide"
563
286
  })
564
- }, Ir = /^(\d+)\.?/i, Lr = /\d+/i, Ar = {
287
+ }, xo = /^(\d+)\.?/i, So = /\d+/i, wo = {
565
288
  narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
566
289
  abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
567
290
  wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
568
- }, Fr = {
291
+ }, Co = {
569
292
  any: [/^f/i, /^e/i]
570
- }, _r = {
293
+ }, Do = {
571
294
  narrow: /^[1234]/i,
572
295
  abbreviated: /^q[1234]/i,
573
296
  wide: /^[1234](\.)? kvartal/i
574
- }, Er = {
297
+ }, Io = {
575
298
  any: [/1/i, /2/i, /3/i, /4/i]
576
- }, Br = {
299
+ }, Ao = {
577
300
  narrow: /^[jfmasond]/i,
578
301
  abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
579
302
  wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
580
- }, Nr = {
303
+ }, jo = {
581
304
  narrow: [
582
305
  /^j/i,
583
306
  /^f/i,
@@ -606,17 +329,17 @@ const gr = {
606
329
  /^n/i,
607
330
  /^d/i
608
331
  ]
609
- }, Pr = {
332
+ }, Lo = {
610
333
  narrow: /^[smtofl]/i,
611
334
  short: /^(sø|ma|ti|on|to|fr|lø)/i,
612
335
  abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
613
336
  wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
614
- }, Rr = {
337
+ }, Fo = {
615
338
  any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
616
- }, zr = {
339
+ }, Bo = {
617
340
  narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
618
341
  any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
619
- }, Mr = {
342
+ }, No = {
620
343
  any: {
621
344
  am: /^a(\.?\s?m\.?)?$/i,
622
345
  pm: /^p(\.?\s?m\.?)?$/i,
@@ -627,55 +350,55 @@ const gr = {
627
350
  evening: /kveld/i,
628
351
  night: /natt/i
629
352
  }
630
- }, Or = {
631
- ordinalNumber: mr({
632
- matchPattern: Ir,
633
- parsePattern: Lr,
353
+ }, Po = {
354
+ ordinalNumber: so({
355
+ matchPattern: xo,
356
+ parsePattern: So,
634
357
  valueCallback: (t) => parseInt(t, 10)
635
358
  }),
636
- era: je({
637
- matchPatterns: Ar,
359
+ era: Ce({
360
+ matchPatterns: wo,
638
361
  defaultMatchWidth: "wide",
639
- parsePatterns: Fr,
362
+ parsePatterns: Co,
640
363
  defaultParseWidth: "any"
641
364
  }),
642
- quarter: je({
643
- matchPatterns: _r,
365
+ quarter: Ce({
366
+ matchPatterns: Do,
644
367
  defaultMatchWidth: "wide",
645
- parsePatterns: Er,
368
+ parsePatterns: Io,
646
369
  defaultParseWidth: "any",
647
370
  valueCallback: (t) => t + 1
648
371
  }),
649
- month: je({
650
- matchPatterns: Br,
372
+ month: Ce({
373
+ matchPatterns: Ao,
651
374
  defaultMatchWidth: "wide",
652
- parsePatterns: Nr,
375
+ parsePatterns: jo,
653
376
  defaultParseWidth: "any"
654
377
  }),
655
- day: je({
656
- matchPatterns: Pr,
378
+ day: Ce({
379
+ matchPatterns: Lo,
657
380
  defaultMatchWidth: "wide",
658
- parsePatterns: Rr,
381
+ parsePatterns: Fo,
659
382
  defaultParseWidth: "any"
660
383
  }),
661
- dayPeriod: je({
662
- matchPatterns: zr,
384
+ dayPeriod: Ce({
385
+ matchPatterns: Bo,
663
386
  defaultMatchWidth: "any",
664
- parsePatterns: Mr,
387
+ parsePatterns: No,
665
388
  defaultParseWidth: "any"
666
389
  })
667
390
  }, be = {
668
391
  code: "nb",
669
- formatDistance: pr,
670
- formatLong: br,
671
- formatRelative: yr,
672
- localize: Dr,
673
- match: Or,
392
+ formatDistance: ao,
393
+ formatLong: mo,
394
+ formatRelative: po,
395
+ localize: To,
396
+ match: Po,
674
397
  options: {
675
398
  weekStartsOn: 1,
676
399
  firstWeekContainsDate: 4
677
400
  }
678
- }, _t = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
401
+ }, Dt = ({ title: t, ...e }) => /* @__PURE__ */ B(
679
402
  "svg",
680
403
  {
681
404
  xmlns: "http://www.w3.org/2000/svg",
@@ -687,8 +410,8 @@ const gr = {
687
410
  focusable: "false",
688
411
  ...e,
689
412
  children: [
690
- t && /* @__PURE__ */ o.jsx("title", { children: t }),
691
- /* @__PURE__ */ o.jsx(
413
+ t && /* @__PURE__ */ d("title", { children: t }),
414
+ /* @__PURE__ */ d(
692
415
  "path",
693
416
  {
694
417
  fillRule: "evenodd",
@@ -700,8 +423,8 @@ const gr = {
700
423
  ]
701
424
  }
702
425
  );
703
- _t.displayName = "ChevronLeftIcon";
704
- const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
426
+ Dt.displayName = "ChevronLeftIcon";
427
+ const It = ({ title: t, ...e }) => /* @__PURE__ */ B(
705
428
  "svg",
706
429
  {
707
430
  xmlns: "http://www.w3.org/2000/svg",
@@ -713,8 +436,8 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
713
436
  focusable: "false",
714
437
  ...e,
715
438
  children: [
716
- t && /* @__PURE__ */ o.jsx("title", { children: t }),
717
- /* @__PURE__ */ o.jsx(
439
+ t && /* @__PURE__ */ d("title", { children: t }),
440
+ /* @__PURE__ */ d(
718
441
  "path",
719
442
  {
720
443
  fillRule: "evenodd",
@@ -726,138 +449,138 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
726
449
  ]
727
450
  }
728
451
  );
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);
743
- return Zn({ start: n, end: s });
744
- }, vt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Xr = ({
452
+ It.displayName = "ChevronRightIcon";
453
+ const Mo = "_calendarContainer_10l5p_1", Eo = "_calendarHeader_10l5p_14", _o = "_monthYear_10l5p_21", zo = "_navigationButtons_10l5p_32", Ro = "_grid_10l5p_41", $o = "_dayNameCell_10l5p_48", Ho = "_dateCell_10l5p_65", Oo = "_dateNumberContainer_10l5p_90", Wo = "_otherMonth_10l5p_103", Vo = "_selectedDate_10l5p_129", re = {
454
+ calendarContainer: Mo,
455
+ calendarHeader: Eo,
456
+ monthYear: _o,
457
+ navigationButtons: zo,
458
+ grid: Ro,
459
+ dayNameCell: $o,
460
+ dateCell: Ho,
461
+ dateNumberContainer: Oo,
462
+ otherMonth: Wo,
463
+ selectedDate: Vo
464
+ }, Go = (t) => {
465
+ const e = ve(t), n = St(e, { locale: be }), r = wt(n, 41);
466
+ return qn({ start: n, end: r });
467
+ }, pt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Uo = ({
745
468
  initialDate: t = /* @__PURE__ */ new Date(),
746
469
  selectedDate: e = null,
747
470
  // Prop for valgt dato
748
471
  onDateSelect: n,
749
- "data-color": s,
472
+ "data-color": r,
750
473
  // <-- Destrukturert
751
474
  "data-size": i
752
475
  // <-- Destrukturert
753
476
  }) => {
754
- const [a, r] = re(
755
- ke(e && Ve(e) ? e : t)
477
+ const [s, o] = ne(
478
+ ve(e && Oe(e) ? e : t)
756
479
  );
757
- te(() => {
758
- if (e && Ve(e)) {
759
- const m = ke(e);
760
- mt(m, a) || r(m);
480
+ K(() => {
481
+ if (e && Oe(e)) {
482
+ const u = ve(e);
483
+ ct(u, s) || o(u);
761
484
  }
762
485
  }, [e]);
763
- const d = ve(() => ke(/* @__PURE__ */ new Date()), []), l = ve(() => !1, [a, d]), u = ve(
764
- () => Zr(a),
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);
486
+ const l = ye(() => ve(/* @__PURE__ */ new Date()), []), a = ye(() => !1, [s, l]), c = ye(
487
+ () => Go(s),
488
+ [s]
489
+ ), b = ye(() => {
490
+ const u = St(/* @__PURE__ */ new Date(), { locale: be });
491
+ return Array.from({ length: 7 }).map((T, j) => {
492
+ const A = Se(wt(u, j), "EEEEEE", { locale: be });
493
+ return pt(A);
771
494
  });
772
- }, []), f = ae(() => {
773
- l || r((m) => ke(Un(m, 1)));
774
- }, [l]), k = ae(() => {
775
- r((m) => ke(Kn(m, 1)));
776
- }, []), g = ae(
777
- (m) => {
778
- n && n(m);
495
+ }, []), p = se(() => {
496
+ a || o((u) => ve(Wn(u, 1)));
497
+ }, [a]), k = se(() => {
498
+ o((u) => ve(Vn(u, 1)));
499
+ }, []), g = se(
500
+ (u) => {
501
+ n && n(u);
779
502
  },
780
503
  [n]
781
- ), h = ae(
782
- (m, T) => {
783
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(T));
504
+ ), f = se(
505
+ (u, T) => {
506
+ (u.key === "Enter" || u.key === " ") && (u.preventDefault(), g(T));
784
507
  },
785
508
  [g]
786
- ), b = Te(a, "MMMM", { locale: be }), v = Te(a, "yyyy", { locale: be }), p = `${vt(b)} ${v}`;
787
- return /* @__PURE__ */ o.jsxs(
509
+ ), h = Se(s, "MMMM", { locale: be }), v = Se(s, "yyyy", { locale: be }), m = `${pt(h)} ${v}`;
510
+ return /* @__PURE__ */ B(
788
511
  "div",
789
512
  {
790
- className: se.calendarContainer,
791
- "data-color": s,
513
+ className: re.calendarContainer,
514
+ "data-color": r,
792
515
  "data-size": i,
793
516
  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(
798
- Ke,
517
+ /* @__PURE__ */ B("div", { className: re.calendarHeader, children: [
518
+ /* @__PURE__ */ d("span", { className: re.monthYear, children: m }),
519
+ /* @__PURE__ */ B("div", { className: re.navigationButtons, children: [
520
+ /* @__PURE__ */ d(
521
+ Ue,
799
522
  {
800
523
  variant: "tertiary",
801
524
  icon: !0,
802
- onClick: f,
525
+ onClick: p,
803
526
  "aria-label": "Forrige måned",
804
- disabled: l,
805
- children: /* @__PURE__ */ o.jsx(_t, {})
527
+ disabled: a,
528
+ children: /* @__PURE__ */ d(Dt, {})
806
529
  }
807
530
  ),
808
- /* @__PURE__ */ o.jsx(
809
- Ke,
531
+ /* @__PURE__ */ d(
532
+ Ue,
810
533
  {
811
534
  variant: "tertiary",
812
535
  icon: !0,
813
536
  onClick: k,
814
537
  "aria-label": "Neste måned",
815
- children: /* @__PURE__ */ o.jsx(Et, {})
538
+ children: /* @__PURE__ */ d(It, {})
816
539
  }
817
540
  )
818
541
  ] })
819
542
  ] }),
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 = [
823
- se.dateCell,
824
- T ? "" : se.otherMonth,
825
- _ ? se.selectedDate : "",
543
+ /* @__PURE__ */ d("div", { className: re.grid, children: b.map((u) => /* @__PURE__ */ d("div", { className: re.dayNameCell, children: u }, u)) }),
544
+ /* @__PURE__ */ d("div", { className: re.grid, children: c.map((u) => {
545
+ const T = ct(u, s), j = e && Oe(e) && Gn(u, e), A = Un(u), L = [
546
+ re.dateCell,
547
+ T ? "" : re.otherMonth,
548
+ j ? re.selectedDate : "",
826
549
  // Utheving basert på prop
827
- F && !_ ? se.todayDate : ""
550
+ A && !j ? re.todayDate : ""
828
551
  ].filter(Boolean).join(" ");
829
- return /* @__PURE__ */ o.jsx(
552
+ return /* @__PURE__ */ d(
830
553
  "div",
831
554
  {
832
- className: E,
833
- onClick: () => g(m),
834
- onKeyDown: (j) => h(j, m),
555
+ className: L,
556
+ onClick: () => g(u),
557
+ onKeyDown: (w) => f(w, u),
835
558
  role: "button",
836
559
  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") })
560
+ "aria-pressed": j ?? !1,
561
+ "aria-label": Se(u, "PPP", { locale: be }),
562
+ children: /* @__PURE__ */ d("span", { className: re.dateNumberContainer, children: Se(u, "d") })
840
563
  },
841
- m.toISOString()
564
+ u.toISOString()
842
565
  );
843
566
  }) })
844
567
  ]
845
568
  }
846
569
  );
847
570
  };
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
857
- }, yt = (t) => {
858
- const e = t.slice(0, 2), n = t.slice(2, 4), s = t.slice(4, 8);
859
- return t.length > 4 ? `${e}.${n}.${s}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
860
- }, xt = (t) => (t || "").replace(/\D/g, ""), Tt = (t) => {
571
+ Uo.displayName = "DatePicker";
572
+ const qo = "_fieldset_16fx7_2", Ko = "_description_16fx7_14", Yo = "_error_16fx7_21", Zo = "_inputWrapper_16fx7_30", Jo = "_inputWrapperError_16fx7_42", Qo = "_suffixButton_16fx7_80", Xo = "_suffixButtonInteractive_16fx7_100", fe = {
573
+ fieldset: qo,
574
+ description: Ko,
575
+ error: Yo,
576
+ inputWrapper: Zo,
577
+ inputWrapperError: Jo,
578
+ suffixButton: Qo,
579
+ suffixButtonInteractive: Xo
580
+ }, ft = (t) => {
581
+ const e = t.slice(0, 2), n = t.slice(2, 4), r = t.slice(4, 8);
582
+ return t.length > 4 ? `${e}.${n}.${r}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
583
+ }, ht = (t) => (t || "").replace(/\D/g, ""), kt = (t) => {
861
584
  let e = t;
862
585
  if (e.length >= 2) {
863
586
  const n = parseInt(e.substring(0, 2), 10);
@@ -868,843 +591,843 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7
868
591
  !isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
869
592
  }
870
593
  return e.slice(0, 8);
871
- }, ao = ue(
594
+ }, er = me(
872
595
  (t, e) => {
873
596
  const {
874
597
  label: n,
875
- suffixIcon: s,
598
+ suffixIcon: r,
876
599
  onSuffixClick: i,
877
- className: a,
600
+ className: s,
878
601
  // For ytre fieldset
879
- inputWrapperClassName: r,
602
+ inputWrapperClassName: o,
880
603
  // For input wrapper div
881
- inputClassName: d,
604
+ inputClassName: l,
882
605
  // For selve input-elementet
883
- value: l,
884
- defaultValue: u,
885
- onChange: y,
886
- readOnly: f,
606
+ value: a,
607
+ defaultValue: c,
608
+ onChange: b,
609
+ readOnly: p,
887
610
  placeholder: k = "dd.mm.åååå",
888
611
  id: g,
889
- name: h,
890
- required: b,
612
+ name: f,
613
+ required: h,
891
614
  disabled: v,
892
- onClick: p,
893
- onFocus: m,
615
+ onClick: m,
616
+ onFocus: u,
894
617
  // Send ekstern onFocus videre
895
618
  onBlur: T,
896
619
  // Send ekstern onBlur videre
897
- autoComplete: _ = "off",
898
- "aria-label": F,
899
- "aria-labelledby": E,
900
- description: j,
901
- error: L,
620
+ autoComplete: j = "off",
621
+ "aria-label": A,
622
+ "aria-labelledby": L,
623
+ description: w,
624
+ error: I,
902
625
  // Bruk error-prop for styling
903
- "data-color": B,
626
+ "data-color": F,
904
627
  // <-- Destrukturering
905
- "data-size": $,
628
+ "data-size": z,
906
629
  // <-- Destrukturering
907
- ...N
908
- } = t, W = l !== void 0, R = Ue(null);
909
- Dt.useImperativeHandle(
630
+ ...P
631
+ } = t, R = a !== void 0, _ = Ge(null);
632
+ Wt.useImperativeHandle(
910
633
  e,
911
- () => R.current
634
+ () => _.current
912
635
  );
913
- const z = ae(
914
- (D) => {
915
- const C = xt(D), H = Tt(C);
916
- return yt(H);
636
+ const M = se(
637
+ (C) => {
638
+ const N = ht(C), O = kt(N);
639
+ return ft(O);
917
640
  },
918
641
  []
919
- ), [I, q] = re(
920
- () => z(l ?? u)
642
+ ), [D, V] = ne(
643
+ () => M(a ?? c)
921
644
  );
922
- te(() => {
923
- if (W) {
924
- const D = z(l);
925
- D !== I && (q(D), R.current && R.current.value !== D && (R.current.value = D));
645
+ K(() => {
646
+ if (R) {
647
+ const C = M(a);
648
+ C !== D && (V(C), _.current && _.current.value !== C && (_.current.value = C));
926
649
  }
927
- }, [l, W, I, z]);
928
- const ne = ae(
929
- (D) => {
930
- const C = D.target, H = C.value, J = I, X = xt(H).slice(0, 8), V = Tt(X), w = yt(V);
931
- let O = 0;
932
- const G = V.length;
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)) {
935
- const Z = {
936
- ...D,
937
- target: { ...C, value: w }
650
+ }, [a, R, D, M]);
651
+ const oe = se(
652
+ (C) => {
653
+ const N = C.target, O = N.value, te = D, ee = ht(O).slice(0, 8), $ = kt(ee), S = ft($);
654
+ let E = 0;
655
+ const H = $.length;
656
+ H <= 2 ? E = H : H <= 4 ? E = H + 1 : E = H + 2, E = Math.min(E, S.length), requestAnimationFrame(() => {
657
+ if (_.current && (V(S), _.current.value = S, _.current.setSelectionRange(E, E), (S !== te || R) && b)) {
658
+ const G = {
659
+ ...C,
660
+ target: { ...N, value: S }
938
661
  };
939
- y(Z, w);
662
+ b(G, S);
940
663
  }
941
664
  });
942
665
  },
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 = [
949
- d
950
- ].filter(Boolean).join(" "), c = [
951
- pe.suffixButton,
952
- i ? pe.suffixButtonInteractive : ""
666
+ [D, R, b, M]
667
+ ), Z = [fe.fieldset, s].filter(Boolean).join(" "), Y = [
668
+ fe.inputWrapper,
669
+ o,
670
+ I ? fe.inputWrapperError : ""
671
+ ].filter(Boolean).join(" "), de = [
672
+ l
673
+ ].filter(Boolean).join(" "), J = [
674
+ fe.suffixButton,
675
+ i ? fe.suffixButtonInteractive : ""
953
676
  ].filter(Boolean).join(" ");
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;
677
+ !n && !A && !L && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
678
+ const ie = n && typeof n == "string" ? L || `${g}-label` : void 0, Q = w ? `${g}-desc` : void 0, X = I ? `${g}-err` : void 0, x = [Q, X].filter(Boolean).join(" ") || void 0;
956
679
  return (
957
680
  // --- Bruk data-color og data-size på den ytre wrapperen ---
958
- /* @__PURE__ */ o.jsxs(
681
+ /* @__PURE__ */ B(
959
682
  "div",
960
683
  {
961
- className: Y,
962
- "data-color": B,
963
- "data-size": $,
684
+ className: Z,
685
+ "data-color": F,
686
+ "data-size": z,
964
687
  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(
688
+ n && typeof n == "string" ? /* @__PURE__ */ d("label", { id: ie, htmlFor: g, children: n }) : n,
689
+ w && /* @__PURE__ */ d("p", { id: Q, className: fe.description, children: w }),
690
+ /* @__PURE__ */ B("div", { className: Y, children: [
691
+ /* @__PURE__ */ d(
969
692
  "input",
970
693
  {
971
- ref: R,
694
+ ref: _,
972
695
  type: "text",
973
696
  inputMode: "numeric",
974
697
  pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
975
698
  maxLength: 10,
976
- value: I,
977
- readOnly: f,
699
+ value: D,
700
+ readOnly: p,
978
701
  placeholder: k,
979
702
  id: g,
980
- name: h,
981
- required: b,
703
+ name: f,
704
+ required: h,
982
705
  disabled: v,
983
- onClick: p,
984
- onChange: ne,
985
- onFocus: m,
706
+ onClick: m,
707
+ onChange: oe,
708
+ onFocus: u,
986
709
  onBlur: T,
987
- autoComplete: _,
988
- "aria-label": F,
989
- "aria-labelledby": A,
710
+ autoComplete: j,
711
+ "aria-label": A,
712
+ "aria-labelledby": ie,
990
713
  "aria-describedby": x,
991
- "aria-invalid": !!L,
992
- className: oe,
993
- ...N
714
+ "aria-invalid": !!I,
715
+ className: de,
716
+ ...P
994
717
  }
995
718
  ),
996
- s && /* @__PURE__ */ o.jsx(
719
+ r && /* @__PURE__ */ d(
997
720
  "button",
998
721
  {
999
722
  type: "button",
1000
- className: c,
723
+ className: J,
1001
724
  onClick: v ? void 0 : i,
1002
725
  tabIndex: i && !v ? 0 : -1,
1003
726
  "aria-hidden": !i,
1004
727
  disabled: v,
1005
728
  "aria-label": i ? "Åpne datovelger" : void 0,
1006
- children: s
729
+ children: r
1007
730
  }
1008
731
  )
1009
732
  ] }),
1010
- L && /* @__PURE__ */ o.jsx("p", { id: M, className: pe.error, role: "alert", children: L })
733
+ I && /* @__PURE__ */ d("p", { id: X, className: fe.error, role: "alert", children: I })
1011
734
  ]
1012
735
  }
1013
736
  )
1014
737
  );
1015
738
  }
1016
739
  );
1017
- ao.displayName = "DateInput";
1018
- function io(t) {
740
+ er.displayName = "DateInput";
741
+ function tr(t) {
1019
742
  return Object.prototype.toString.call(t) === "[object Object]";
1020
743
  }
1021
- function St(t) {
1022
- return io(t) || Array.isArray(t);
744
+ function vt(t) {
745
+ return tr(t) || Array.isArray(t);
1023
746
  }
1024
- function lo() {
747
+ function nr() {
1025
748
  return !!(typeof window < "u" && window.document && window.document.createElement);
1026
749
  }
1027
- function Xe(t, e) {
1028
- const n = Object.keys(t), s = Object.keys(e);
1029
- if (n.length !== s.length) return !1;
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];
1033
- return typeof d == "function" ? `${d}` == `${l}` : !St(d) || !St(l) ? d === l : Xe(d, l);
750
+ function Ze(t, e) {
751
+ const n = Object.keys(t), r = Object.keys(e);
752
+ if (n.length !== r.length) return !1;
753
+ const i = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(e.breakpoints || {}));
754
+ return i !== s ? !1 : n.every((o) => {
755
+ const l = t[o], a = e[o];
756
+ return typeof l == "function" ? `${l}` == `${a}` : !vt(l) || !vt(a) ? l === a : Ze(l, a);
1034
757
  });
1035
758
  }
1036
- function wt(t) {
759
+ function bt(t) {
1037
760
  return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
1038
761
  }
1039
- function co(t, e) {
762
+ function or(t, e) {
1040
763
  if (t.length !== e.length) return !1;
1041
- const n = wt(t), s = wt(e);
1042
- return n.every((i, a) => {
1043
- const r = s[a];
1044
- return Xe(i, r);
764
+ const n = bt(t), r = bt(e);
765
+ return n.every((i, s) => {
766
+ const o = r[s];
767
+ return Ze(i, o);
1045
768
  });
1046
769
  }
1047
- function Qe(t) {
770
+ function Je(t) {
1048
771
  return typeof t == "number";
1049
772
  }
1050
- function Ye(t) {
773
+ function qe(t) {
1051
774
  return typeof t == "string";
1052
775
  }
1053
- function ze(t) {
776
+ function Ee(t) {
1054
777
  return typeof t == "boolean";
1055
778
  }
1056
- function Ct(t) {
779
+ function yt(t) {
1057
780
  return Object.prototype.toString.call(t) === "[object Object]";
1058
781
  }
1059
- function U(t) {
782
+ function W(t) {
1060
783
  return Math.abs(t);
1061
784
  }
1062
- function et(t) {
785
+ function Qe(t) {
1063
786
  return Math.sign(t);
1064
787
  }
1065
788
  function Ie(t, e) {
1066
- return U(t - e);
789
+ return W(t - e);
1067
790
  }
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);
791
+ function rr(t, e) {
792
+ if (t === 0 || e === 0 || W(t) <= W(e)) return 0;
793
+ const n = Ie(W(t), W(e));
794
+ return W(n / t);
1072
795
  }
1073
- function mo(t) {
796
+ function sr(t) {
1074
797
  return Math.round(t * 100) / 100;
1075
798
  }
1076
- function Le(t) {
1077
- return Ae(t).map(Number);
799
+ function Ae(t) {
800
+ return je(t).map(Number);
1078
801
  }
1079
- function ie(t) {
1080
- return t[_e(t)];
802
+ function ae(t) {
803
+ return t[Fe(t)];
1081
804
  }
1082
- function _e(t) {
805
+ function Fe(t) {
1083
806
  return Math.max(0, t.length - 1);
1084
807
  }
1085
- function tt(t, e) {
1086
- return e === _e(t);
808
+ function Xe(t, e) {
809
+ return e === Fe(t);
1087
810
  }
1088
- function jt(t, e = 0) {
1089
- return Array.from(Array(t), (n, s) => e + s);
811
+ function Tt(t, e = 0) {
812
+ return Array.from(Array(t), (n, r) => e + r);
1090
813
  }
1091
- function Ae(t) {
814
+ function je(t) {
1092
815
  return Object.keys(t);
1093
816
  }
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;
817
+ function At(t, e) {
818
+ return [t, e].reduce((n, r) => (je(r).forEach((i) => {
819
+ const s = n[i], o = r[i], l = yt(s) && yt(o);
820
+ n[i] = l ? At(s, o) : o;
1098
821
  }), n), {});
1099
822
  }
1100
- function Je(t, e) {
823
+ function Ke(t, e) {
1101
824
  return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
1102
825
  }
1103
- function go(t, e) {
826
+ function ir(t, e) {
1104
827
  const n = {
1105
- start: s,
828
+ start: r,
1106
829
  center: i,
1107
- end: a
830
+ end: s
1108
831
  };
1109
- function s() {
832
+ function r() {
1110
833
  return 0;
1111
834
  }
1112
- function i(l) {
1113
- return a(l) / 2;
835
+ function i(a) {
836
+ return s(a) / 2;
1114
837
  }
1115
- function a(l) {
1116
- return e - l;
838
+ function s(a) {
839
+ return e - a;
1117
840
  }
1118
- function r(l, u) {
1119
- return Ye(t) ? n[t](l) : t(e, l, u);
841
+ function o(a, c) {
842
+ return qe(t) ? n[t](a) : t(e, a, c);
1120
843
  }
1121
844
  return {
1122
- measure: r
845
+ measure: o
1123
846
  };
1124
847
  }
1125
- function Fe() {
848
+ function Le() {
1126
849
  let t = [];
1127
- function e(i, a, r, d = {
850
+ function e(i, s, o, l = {
1128
851
  passive: !0
1129
852
  }) {
1130
- let l;
853
+ let a;
1131
854
  if ("addEventListener" in i)
1132
- i.addEventListener(a, r, d), l = () => i.removeEventListener(a, r, d);
855
+ i.addEventListener(s, o, l), a = () => i.removeEventListener(s, o, l);
1133
856
  else {
1134
- const u = i;
1135
- u.addListener(r), l = () => u.removeListener(r);
857
+ const c = i;
858
+ c.addListener(o), a = () => c.removeListener(o);
1136
859
  }
1137
- return t.push(l), s;
860
+ return t.push(a), r;
1138
861
  }
1139
862
  function n() {
1140
863
  t = t.filter((i) => i());
1141
864
  }
1142
- const s = {
865
+ const r = {
1143
866
  add: e,
1144
867
  clear: n
1145
868
  };
1146
- return s;
869
+ return r;
1147
870
  }
1148
- function po(t, e, n, s) {
1149
- const i = Fe(), a = 1e3 / 60;
1150
- let r = null, d = 0, l = 0;
1151
- function u() {
871
+ function ar(t, e, n, r) {
872
+ const i = Le(), s = 1e3 / 60;
873
+ let o = null, l = 0, a = 0;
874
+ function c() {
1152
875
  i.add(t, "visibilitychange", () => {
1153
- t.hidden && h();
876
+ t.hidden && f();
1154
877
  });
1155
878
  }
1156
- function y() {
879
+ function b() {
1157
880
  g(), i.clear();
1158
881
  }
1159
- function f(v) {
1160
- if (!l) return;
1161
- r || (r = v, n(), n());
1162
- const p = v - r;
1163
- for (r = v, d += p; d >= a; )
1164
- n(), d -= a;
1165
- const m = d / a;
1166
- s(m), l && (l = e.requestAnimationFrame(f));
882
+ function p(v) {
883
+ if (!a) return;
884
+ o || (o = v, n(), n());
885
+ const m = v - o;
886
+ for (o = v, l += m; l >= s; )
887
+ n(), l -= s;
888
+ const u = l / s;
889
+ r(u), a && (a = e.requestAnimationFrame(p));
1167
890
  }
1168
891
  function k() {
1169
- l || (l = e.requestAnimationFrame(f));
892
+ a || (a = e.requestAnimationFrame(p));
1170
893
  }
1171
894
  function g() {
1172
- e.cancelAnimationFrame(l), r = null, d = 0, l = 0;
895
+ e.cancelAnimationFrame(a), o = null, l = 0, a = 0;
1173
896
  }
1174
- function h() {
1175
- r = null, d = 0;
897
+ function f() {
898
+ o = null, l = 0;
1176
899
  }
1177
900
  return {
1178
- init: u,
1179
- destroy: y,
901
+ init: c,
902
+ destroy: b,
1180
903
  start: k,
1181
904
  stop: g,
1182
905
  update: n,
1183
- render: s
906
+ render: r
1184
907
  };
1185
908
  }
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();
1188
- function u(h) {
909
+ function lr(t, e) {
910
+ const n = e === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", o = !r && n ? -1 : 1, l = b(), a = p();
911
+ function c(f) {
1189
912
  const {
1190
- height: b,
913
+ height: h,
1191
914
  width: v
1192
- } = h;
1193
- return s ? b : v;
915
+ } = f;
916
+ return r ? h : v;
1194
917
  }
1195
- function y() {
1196
- return s ? "top" : n ? "right" : "left";
918
+ function b() {
919
+ return r ? "top" : n ? "right" : "left";
1197
920
  }
1198
- function f() {
1199
- return s ? "bottom" : n ? "left" : "right";
921
+ function p() {
922
+ return r ? "bottom" : n ? "left" : "right";
1200
923
  }
1201
- function k(h) {
1202
- return h * r;
924
+ function k(f) {
925
+ return f * o;
1203
926
  }
1204
927
  return {
1205
928
  scroll: i,
1206
- cross: a,
1207
- startEdge: d,
1208
- endEdge: l,
1209
- measureSize: u,
929
+ cross: s,
930
+ startEdge: l,
931
+ endEdge: a,
932
+ measureSize: c,
1210
933
  direction: k
1211
934
  };
1212
935
  }
1213
- function fe(t = 0, e = 0) {
1214
- const n = U(t - e);
1215
- function s(u) {
1216
- return u < t;
936
+ function he(t = 0, e = 0) {
937
+ const n = W(t - e);
938
+ function r(c) {
939
+ return c < t;
1217
940
  }
1218
- function i(u) {
1219
- return u > e;
941
+ function i(c) {
942
+ return c > e;
1220
943
  }
1221
- function a(u) {
1222
- return s(u) || i(u);
944
+ function s(c) {
945
+ return r(c) || i(c);
1223
946
  }
1224
- function r(u) {
1225
- return a(u) ? s(u) ? t : e : u;
947
+ function o(c) {
948
+ return s(c) ? r(c) ? t : e : c;
1226
949
  }
1227
- function d(u) {
1228
- return n ? u - n * Math.ceil((u - e) / n) : u;
950
+ function l(c) {
951
+ return n ? c - n * Math.ceil((c - e) / n) : c;
1229
952
  }
1230
953
  return {
1231
954
  length: n,
1232
955
  max: e,
1233
956
  min: t,
1234
- constrain: r,
1235
- reachedAny: a,
957
+ constrain: o,
958
+ reachedAny: s,
1236
959
  reachedMax: i,
1237
- reachedMin: s,
1238
- removeOffset: d
960
+ reachedMin: r,
961
+ removeOffset: l
1239
962
  };
1240
963
  }
1241
- function Nt(t, e, n) {
964
+ function jt(t, e, n) {
1242
965
  const {
1243
- constrain: s
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);
966
+ constrain: r
967
+ } = he(0, t), i = t + 1;
968
+ let s = o(e);
969
+ function o(k) {
970
+ return n ? W((i + k) % i) : r(k);
1248
971
  }
1249
- function d() {
1250
- return a;
972
+ function l() {
973
+ return s;
1251
974
  }
1252
- function l(k) {
1253
- return a = r(k), f;
975
+ function a(k) {
976
+ return s = o(k), p;
1254
977
  }
1255
- function u(k) {
1256
- return y().set(d() + k);
978
+ function c(k) {
979
+ return b().set(l() + k);
1257
980
  }
1258
- function y() {
1259
- return Nt(t, d(), n);
981
+ function b() {
982
+ return jt(t, l(), n);
1260
983
  }
1261
- const f = {
1262
- get: d,
1263
- set: l,
1264
- add: u,
1265
- clone: y
984
+ const p = {
985
+ get: l,
986
+ set: a,
987
+ add: c,
988
+ clone: b
1266
989
  };
1267
- return f;
990
+ return p;
1268
991
  }
1269
- function ho(t, e, n, s, i, a, r, d, l, u, y, f, k, g, h, b, v, p, m) {
992
+ function dr(t, e, n, r, i, s, o, l, a, c, b, p, k, g, f, h, v, m, u) {
1270
993
  const {
1271
994
  cross: T,
1272
- direction: _
1273
- } = t, F = ["INPUT", "SELECT", "TEXTAREA"], E = {
995
+ direction: j
996
+ } = t, A = ["INPUT", "SELECT", "TEXTAREA"], L = {
1274
997
  passive: !1
1275
- }, j = Fe(), L = Fe(), B = fe(50, 225).constrain(g.measure(20)), $ = {
998
+ }, w = Le(), I = Le(), F = he(50, 225).constrain(g.measure(20)), z = {
1276
999
  mouse: 300,
1277
1000
  touch: 400
1278
- }, N = {
1001
+ }, P = {
1279
1002
  mouse: 500,
1280
1003
  touch: 600
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) {
1284
- if (!m) return;
1285
- function O(Z) {
1286
- (ze(m) || m(w, Z)) && D(Z);
1004
+ }, R = f ? 43 : 25;
1005
+ let _ = !1, M = 0, D = 0, V = !1, oe = !1, Z = !1, Y = !1;
1006
+ function de(S) {
1007
+ if (!u) return;
1008
+ function E(G) {
1009
+ (Ee(u) || u(S, G)) && C(G);
1287
1010
  }
1288
- const G = e;
1289
- j.add(G, "dragstart", (Z) => Z.preventDefault(), E).add(G, "touchmove", () => {
1290
- }, E).add(G, "touchend", () => {
1291
- }).add(G, "touchstart", O).add(G, "mousedown", O).add(G, "touchcancel", H).add(G, "contextmenu", H).add(G, "click", J, !0);
1011
+ const H = e;
1012
+ w.add(H, "dragstart", (G) => G.preventDefault(), L).add(H, "touchmove", () => {
1013
+ }, L).add(H, "touchend", () => {
1014
+ }).add(H, "touchstart", E).add(H, "mousedown", E).add(H, "touchcancel", O).add(H, "contextmenu", O).add(H, "click", te, !0);
1292
1015
  }
1293
- function c() {
1294
- j.clear(), L.clear();
1016
+ function J() {
1017
+ w.clear(), I.clear();
1295
1018
  }
1296
- function A() {
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);
1019
+ function ie() {
1020
+ const S = Y ? n : e;
1021
+ I.add(S, "touchmove", N, L).add(S, "touchend", O).add(S, "mousemove", N, L).add(S, "mouseup", O);
1299
1022
  }
1300
- function P(w) {
1301
- const O = w.nodeName || "";
1302
- return F.includes(O);
1023
+ function Q(S) {
1024
+ const E = S.nodeName || "";
1025
+ return A.includes(E);
1303
1026
  }
1304
- function M() {
1305
- return (h ? N : $)[K ? "mouse" : "touch"];
1027
+ function X() {
1028
+ return (f ? P : z)[Y ? "mouse" : "touch"];
1306
1029
  }
1307
- function x(w, O) {
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;
1030
+ function x(S, E) {
1031
+ const H = p.add(Qe(S) * -1), G = b.byDistance(S, !f).distance;
1032
+ return f || W(S) < F ? G : v && E ? G * 0.5 : b.byIndex(H.get(), 0).distance;
1310
1033
  }
1311
- function D(w) {
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")));
1034
+ function C(S) {
1035
+ const E = Ke(S, r);
1036
+ Y = E, Z = f && E && !S.buttons && _, _ = Ie(i.get(), o.get()) >= 2, !(E && S.button !== 0) && (Q(S.target) || (V = !0, s.pointerDown(S), c.useFriction(0).useDuration(0), i.set(o), ie(), M = s.readPoint(S), D = s.readPoint(S, T), k.emit("pointerDown")));
1314
1037
  }
1315
- function C(w) {
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);
1318
- if (!ne && !K && (!w.cancelable || (ne = le > de, !ne)))
1319
- return H(w);
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();
1038
+ function N(S) {
1039
+ if (!Ke(S, r) && S.touches.length >= 2) return O(S);
1040
+ const H = s.readPoint(S), G = s.readPoint(S, T), le = Ie(H, M), ce = Ie(G, D);
1041
+ if (!oe && !Y && (!S.cancelable || (oe = le > ce, !oe)))
1042
+ return O(S);
1043
+ const ge = s.pointerMove(S);
1044
+ le > h && (Z = !0), c.useFriction(0.3).useDuration(0.75), l.start(), i.add(j(ge)), S.preventDefault();
1322
1045
  }
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");
1046
+ function O(S) {
1047
+ const H = b.byDistance(0, !1).index !== p.get(), G = s.pointerUp(S) * X(), le = x(j(G), H), ce = rr(G, le), ge = R - 10 * ce, ue = m + ce / 50;
1048
+ oe = !1, V = !1, I.clear(), c.useDuration(ge).useFriction(ue), a.distance(le, !f), Y = !1, k.emit("pointerUp");
1326
1049
  }
1327
- function J(w) {
1328
- Y && (w.stopPropagation(), w.preventDefault(), Y = !1);
1050
+ function te(S) {
1051
+ Z && (S.stopPropagation(), S.preventDefault(), Z = !1);
1329
1052
  }
1330
- function X() {
1331
- return q;
1053
+ function ee() {
1054
+ return V;
1332
1055
  }
1333
1056
  return {
1334
- init: oe,
1335
- destroy: c,
1336
- pointerDown: X
1057
+ init: de,
1058
+ destroy: J,
1059
+ pointerDown: ee
1337
1060
  };
1338
1061
  }
1339
- function ko(t, e) {
1340
- let s, i;
1341
- function a(f) {
1342
- return f.timeStamp;
1062
+ function cr(t, e) {
1063
+ let r, i;
1064
+ function s(p) {
1065
+ return p.timeStamp;
1343
1066
  }
1344
- function r(f, k) {
1345
- const h = `client${(k || t.scroll) === "x" ? "X" : "Y"}`;
1346
- return (Je(f, e) ? f : f.touches[0])[h];
1067
+ function o(p, k) {
1068
+ const f = `client${(k || t.scroll) === "x" ? "X" : "Y"}`;
1069
+ return (Ke(p, e) ? p : p.touches[0])[f];
1347
1070
  }
1348
- function d(f) {
1349
- return s = f, i = f, r(f);
1071
+ function l(p) {
1072
+ return r = p, i = p, o(p);
1350
1073
  }
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;
1074
+ function a(p) {
1075
+ const k = o(p) - o(i), g = s(p) - s(r) > 170;
1076
+ return i = p, g && (r = p), k;
1354
1077
  }
1355
- function u(f) {
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;
1078
+ function c(p) {
1079
+ if (!r || !i) return 0;
1080
+ const k = o(i) - o(r), g = s(p) - s(r), f = s(p) - s(i) > 170, h = k / g;
1081
+ return g && !f && W(h) > 0.1 ? h : 0;
1359
1082
  }
1360
1083
  return {
1361
- pointerDown: d,
1362
- pointerMove: l,
1363
- pointerUp: u,
1364
- readPoint: r
1084
+ pointerDown: l,
1085
+ pointerMove: a,
1086
+ pointerUp: c,
1087
+ readPoint: o
1365
1088
  };
1366
1089
  }
1367
- function bo() {
1090
+ function ur() {
1368
1091
  function t(n) {
1369
1092
  const {
1370
- offsetTop: s,
1093
+ offsetTop: r,
1371
1094
  offsetLeft: i,
1372
- offsetWidth: a,
1373
- offsetHeight: r
1095
+ offsetWidth: s,
1096
+ offsetHeight: o
1374
1097
  } = n;
1375
1098
  return {
1376
- top: s,
1377
- right: i + a,
1378
- bottom: s + r,
1099
+ top: r,
1100
+ right: i + s,
1101
+ bottom: r + o,
1379
1102
  left: i,
1380
- width: a,
1381
- height: r
1103
+ width: s,
1104
+ height: o
1382
1105
  };
1383
1106
  }
1384
1107
  return {
1385
1108
  measure: t
1386
1109
  };
1387
1110
  }
1388
- function vo(t) {
1389
- function e(s) {
1390
- return t * (s / 100);
1111
+ function mr(t) {
1112
+ function e(r) {
1113
+ return t * (r / 100);
1391
1114
  }
1392
1115
  return {
1393
1116
  measure: e
1394
1117
  };
1395
1118
  }
1396
- function yo(t, e, n, s, i, a, r) {
1397
- const d = [t].concat(s);
1398
- let l, u, y = [], f = !1;
1119
+ function gr(t, e, n, r, i, s, o) {
1120
+ const l = [t].concat(r);
1121
+ let a, c, b = [], p = !1;
1399
1122
  function k(v) {
1400
- return i.measureSize(r.measure(v));
1123
+ return i.measureSize(o.measure(v));
1401
1124
  }
1402
1125
  function g(v) {
1403
- if (!a) return;
1404
- u = k(t), y = s.map(k);
1405
- function p(m) {
1406
- for (const T of m) {
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) {
1126
+ if (!s) return;
1127
+ c = k(t), b = r.map(k);
1128
+ function m(u) {
1129
+ for (const T of u) {
1130
+ if (p) return;
1131
+ const j = T.target === t, A = r.indexOf(T.target), L = j ? c : b[A], w = k(j ? t : r[A]);
1132
+ if (W(w - L) >= 0.5) {
1410
1133
  v.reInit(), e.emit("resize");
1411
1134
  break;
1412
1135
  }
1413
1136
  }
1414
1137
  }
1415
- l = new ResizeObserver((m) => {
1416
- (ze(a) || a(v, m)) && p(m);
1138
+ a = new ResizeObserver((u) => {
1139
+ (Ee(s) || s(v, u)) && m(u);
1417
1140
  }), n.requestAnimationFrame(() => {
1418
- d.forEach((m) => l.observe(m));
1141
+ l.forEach((u) => a.observe(u));
1419
1142
  });
1420
1143
  }
1421
- function h() {
1422
- f = !0, l && l.disconnect();
1144
+ function f() {
1145
+ p = !0, a && a.disconnect();
1423
1146
  }
1424
1147
  return {
1425
1148
  init: g,
1426
- destroy: h
1149
+ destroy: f
1427
1150
  };
1428
1151
  }
1429
- function xo(t, e, n, s, i, a) {
1430
- let r = 0, d = 0, l = i, u = a, y = t.get(), f = 0;
1152
+ function pr(t, e, n, r, i, s) {
1153
+ let o = 0, l = 0, a = i, c = s, b = t.get(), p = 0;
1431
1154
  function k() {
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;
1155
+ const L = r.get() - t.get(), w = !a;
1156
+ let I = 0;
1157
+ return w ? (o = 0, n.set(r), t.set(r), I = L) : (n.set(t), o += L / a, o *= c, b += o, t.add(o), I = b - p), l = Qe(I), p = b, A;
1435
1158
  }
1436
1159
  function g() {
1437
- const E = s.get() - e.get();
1438
- return U(E) < 1e-3;
1160
+ const L = r.get() - e.get();
1161
+ return W(L) < 1e-3;
1162
+ }
1163
+ function f() {
1164
+ return a;
1439
1165
  }
1440
1166
  function h() {
1441
1167
  return l;
1442
1168
  }
1443
- function b() {
1444
- return d;
1445
- }
1446
1169
  function v() {
1447
- return r;
1170
+ return o;
1448
1171
  }
1449
- function p() {
1172
+ function m() {
1450
1173
  return T(i);
1451
1174
  }
1452
- function m() {
1453
- return _(a);
1175
+ function u() {
1176
+ return j(s);
1454
1177
  }
1455
- function T(E) {
1456
- return l = E, F;
1178
+ function T(L) {
1179
+ return a = L, A;
1457
1180
  }
1458
- function _(E) {
1459
- return u = E, F;
1181
+ function j(L) {
1182
+ return c = L, A;
1460
1183
  }
1461
- const F = {
1462
- direction: b,
1463
- duration: h,
1184
+ const A = {
1185
+ direction: h,
1186
+ duration: f,
1464
1187
  velocity: v,
1465
1188
  seek: k,
1466
1189
  settled: g,
1467
- useBaseFriction: m,
1468
- useBaseDuration: p,
1469
- useFriction: _,
1190
+ useBaseFriction: u,
1191
+ useBaseDuration: m,
1192
+ useFriction: j,
1470
1193
  useDuration: T
1471
1194
  };
1472
- return F;
1195
+ return A;
1473
1196
  }
1474
- function To(t, e, n, s, i) {
1475
- const a = i.measure(10), r = i.measure(50), d = fe(0.1, 0.99);
1476
- let l = !1;
1477
- function u() {
1478
- return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
1197
+ function fr(t, e, n, r, i) {
1198
+ const s = i.measure(10), o = i.measure(50), l = he(0.1, 0.99);
1199
+ let a = !1;
1200
+ function c() {
1201
+ return !(a || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
1479
1202
  }
1480
- function y(g) {
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());
1203
+ function b(g) {
1204
+ if (!c()) return;
1205
+ const f = t.reachedMin(e.get()) ? "min" : "max", h = W(t[f] - e.get()), v = n.get() - e.get(), m = l.constrain(h / o);
1206
+ n.subtract(v * m), !g && W(v) < s && (n.set(t.constrain(n.get())), r.useDuration(25).useBaseFriction());
1484
1207
  }
1485
- function f(g) {
1486
- l = !g;
1208
+ function p(g) {
1209
+ a = !g;
1487
1210
  }
1488
1211
  return {
1489
- shouldConstrain: u,
1490
- constrain: y,
1491
- toggleActive: f
1212
+ shouldConstrain: c,
1213
+ constrain: b,
1214
+ toggleActive: p
1492
1215
  };
1493
1216
  }
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;
1217
+ function hr(t, e, n, r, i) {
1218
+ const s = he(-e + t, 0), o = p(), l = b(), a = k();
1219
+ function c(f, h) {
1220
+ return Ie(f, h) <= 1;
1498
1221
  }
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);
1222
+ function b() {
1223
+ const f = o[0], h = ae(o), v = o.lastIndexOf(f), m = o.indexOf(h) + 1;
1224
+ return he(v, m);
1502
1225
  }
1503
- function f() {
1504
- return n.map((h, b) => {
1226
+ function p() {
1227
+ return n.map((f, h) => {
1505
1228
  const {
1506
1229
  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;
1510
- }).map((h) => parseFloat(h.toFixed(3)));
1230
+ max: m
1231
+ } = s, u = s.constrain(f), T = !h, j = Xe(n, h);
1232
+ return T ? m : j || c(v, u) ? v : c(m, u) ? m : u;
1233
+ }).map((f) => parseFloat(f.toFixed(3)));
1511
1234
  }
1512
1235
  function k() {
1513
- if (e <= t + i) return [a.max];
1514
- if (s === "keepSnaps") return r;
1236
+ if (e <= t + i) return [s.max];
1237
+ if (r === "keepSnaps") return o;
1515
1238
  const {
1516
- min: h,
1517
- max: b
1518
- } = d;
1519
- return r.slice(h, b);
1239
+ min: f,
1240
+ max: h
1241
+ } = l;
1242
+ return o.slice(f, h);
1520
1243
  }
1521
1244
  return {
1522
- snapsContained: l,
1523
- scrollContainLimit: d
1245
+ snapsContained: a,
1246
+ scrollContainLimit: l
1524
1247
  };
1525
1248
  }
1526
- function wo(t, e, n) {
1527
- const s = e[0], i = n ? s - t : ie(e);
1249
+ function kr(t, e, n) {
1250
+ const r = e[0], i = n ? r - t : ae(e);
1528
1251
  return {
1529
- limit: fe(i, s)
1252
+ limit: he(i, r)
1530
1253
  };
1531
1254
  }
1532
- function Co(t, e, n, s) {
1533
- const a = e.min + 0.1, r = e.max + 0.1, {
1534
- reachedMin: d,
1535
- reachedMax: l
1536
- } = fe(a, r);
1537
- function u(k) {
1538
- return k === 1 ? l(n.get()) : k === -1 ? d(n.get()) : !1;
1539
- }
1540
- function y(k) {
1541
- if (!u(k)) return;
1255
+ function vr(t, e, n, r) {
1256
+ const s = e.min + 0.1, o = e.max + 0.1, {
1257
+ reachedMin: l,
1258
+ reachedMax: a
1259
+ } = he(s, o);
1260
+ function c(k) {
1261
+ return k === 1 ? a(n.get()) : k === -1 ? l(n.get()) : !1;
1262
+ }
1263
+ function b(k) {
1264
+ if (!c(k)) return;
1542
1265
  const g = t * (k * -1);
1543
- s.forEach((h) => h.add(g));
1266
+ r.forEach((f) => f.add(g));
1544
1267
  }
1545
1268
  return {
1546
- loop: y
1269
+ loop: b
1547
1270
  };
1548
1271
  }
1549
- function jo(t) {
1272
+ function br(t) {
1550
1273
  const {
1551
1274
  max: e,
1552
1275
  length: n
1553
1276
  } = t;
1554
- function s(a) {
1555
- const r = a - e;
1556
- return n ? r / -n : 0;
1277
+ function r(s) {
1278
+ const o = s - e;
1279
+ return n ? o / -n : 0;
1557
1280
  }
1558
1281
  return {
1559
- get: s
1282
+ get: r
1560
1283
  };
1561
1284
  }
1562
- function Do(t, e, n, s, i) {
1285
+ function yr(t, e, n, r, i) {
1563
1286
  const {
1564
- startEdge: a,
1565
- endEdge: r
1287
+ startEdge: s,
1288
+ endEdge: o
1566
1289
  } = t, {
1567
- groupSlides: d
1568
- } = i, l = f().map(e.measure), u = k(), y = g();
1569
- function f() {
1570
- return d(s).map((b) => ie(b)[r] - b[0][a]).map(U);
1290
+ groupSlides: l
1291
+ } = i, a = p().map(e.measure), c = k(), b = g();
1292
+ function p() {
1293
+ return l(r).map((h) => ae(h)[o] - h[0][s]).map(W);
1571
1294
  }
1572
1295
  function k() {
1573
- return s.map((b) => n[a] - b[a]).map((b) => -U(b));
1296
+ return r.map((h) => n[s] - h[s]).map((h) => -W(h));
1574
1297
  }
1575
1298
  function g() {
1576
- return d(u).map((b) => b[0]).map((b, v) => b + l[v]);
1299
+ return l(c).map((h) => h[0]).map((h, v) => h + a[v]);
1577
1300
  }
1578
1301
  return {
1579
- snaps: u,
1580
- snapsAligned: y
1302
+ snaps: c,
1303
+ snapsAligned: b
1581
1304
  };
1582
1305
  }
1583
- function Io(t, e, n, s, i, a) {
1306
+ function Tr(t, e, n, r, i, s) {
1584
1307
  const {
1585
- groupSlides: r
1308
+ groupSlides: o
1586
1309
  } = i, {
1587
- min: d,
1588
- max: l
1589
- } = s, u = y();
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;
1596
- return jt(T);
1597
- }
1310
+ min: l,
1311
+ max: a
1312
+ } = r, c = b();
1313
+ function b() {
1314
+ const k = o(s), g = !t || e === "keepSnaps";
1315
+ return n.length === 1 ? [s] : g ? k : k.slice(l, a).map((f, h, v) => {
1316
+ const m = !h, u = Xe(v, h);
1598
1317
  if (m) {
1599
- const T = _e(a) - ie(v)[0] + 1;
1600
- return jt(T, ie(v)[0]);
1318
+ const T = ae(v[0]) + 1;
1319
+ return Tt(T);
1320
+ }
1321
+ if (u) {
1322
+ const T = Fe(s) - ae(v)[0] + 1;
1323
+ return Tt(T, ae(v)[0]);
1601
1324
  }
1602
- return h;
1325
+ return f;
1603
1326
  });
1604
1327
  }
1605
1328
  return {
1606
- slideRegistry: u
1329
+ slideRegistry: c
1607
1330
  };
1608
1331
  }
1609
- function Lo(t, e, n, s, i) {
1332
+ function xr(t, e, n, r, i) {
1610
1333
  const {
1611
- reachedAny: a,
1612
- removeOffset: r,
1613
- constrain: d
1614
- } = s;
1615
- function l(h) {
1616
- return h.concat().sort((b, v) => U(b) - U(v))[0];
1617
- }
1618
- function u(h) {
1619
- const b = t ? r(h) : d(h), v = e.map((m, T) => ({
1620
- diff: y(m - b, 0),
1334
+ reachedAny: s,
1335
+ removeOffset: o,
1336
+ constrain: l
1337
+ } = r;
1338
+ function a(f) {
1339
+ return f.concat().sort((h, v) => W(h) - W(v))[0];
1340
+ }
1341
+ function c(f) {
1342
+ const h = t ? o(f) : l(f), v = e.map((u, T) => ({
1343
+ diff: b(u - h, 0),
1621
1344
  index: T
1622
- })).sort((m, T) => U(m.diff) - U(T.diff)), {
1623
- index: p
1345
+ })).sort((u, T) => W(u.diff) - W(T.diff)), {
1346
+ index: m
1624
1347
  } = v[0];
1625
1348
  return {
1626
- index: p,
1627
- distance: b
1349
+ index: m,
1350
+ distance: h
1628
1351
  };
1629
1352
  }
1630
- function y(h, b) {
1631
- const v = [h, h + n, h - n];
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;
1353
+ function b(f, h) {
1354
+ const v = [f, f + n, f - n];
1355
+ if (!t) return f;
1356
+ if (!h) return a(v);
1357
+ const m = v.filter((u) => Qe(u) === h);
1358
+ return m.length ? a(m) : ae(v) - n;
1636
1359
  }
1637
- function f(h, b) {
1638
- const v = e[h] - i.get(), p = y(v, b);
1360
+ function p(f, h) {
1361
+ const v = e[f] - i.get(), m = b(v, h);
1639
1362
  return {
1640
- index: h,
1641
- distance: p
1363
+ index: f,
1364
+ distance: m
1642
1365
  };
1643
1366
  }
1644
- function k(h, b) {
1645
- const v = i.get() + h, {
1646
- index: p,
1647
- distance: m
1648
- } = u(v), T = !t && a(v);
1649
- if (!b || T) return {
1650
- index: p,
1651
- distance: h
1367
+ function k(f, h) {
1368
+ const v = i.get() + f, {
1369
+ index: m,
1370
+ distance: u
1371
+ } = c(v), T = !t && s(v);
1372
+ if (!h || T) return {
1373
+ index: m,
1374
+ distance: f
1652
1375
  };
1653
- const _ = e[p] - m, F = h + y(_, 0);
1376
+ const j = e[m] - u, A = f + b(j, 0);
1654
1377
  return {
1655
- index: p,
1656
- distance: F
1378
+ index: m,
1379
+ distance: A
1657
1380
  };
1658
1381
  }
1659
1382
  return {
1660
1383
  byDistance: k,
1661
- byIndex: f,
1662
- shortcut: y
1384
+ byIndex: p,
1385
+ shortcut: b
1663
1386
  };
1664
1387
  }
1665
- function Ao(t, e, n, s, i, a, r) {
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"));
1388
+ function Sr(t, e, n, r, i, s, o) {
1389
+ function l(p) {
1390
+ const k = p.distance, g = p.index !== e.get();
1391
+ s.add(k), k && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(p.index), o.emit("select"));
1669
1392
  }
1670
- function l(f, k) {
1671
- const g = i.byDistance(f, k);
1672
- d(g);
1393
+ function a(p, k) {
1394
+ const g = i.byDistance(p, k);
1395
+ l(g);
1673
1396
  }
1674
- function u(f, k) {
1675
- const g = e.clone().set(f), h = i.byIndex(g.get(), k);
1676
- d(h);
1397
+ function c(p, k) {
1398
+ const g = e.clone().set(p), f = i.byIndex(g.get(), k);
1399
+ l(f);
1677
1400
  }
1678
1401
  return {
1679
- distance: l,
1680
- index: u
1402
+ distance: a,
1403
+ index: c
1681
1404
  };
1682
1405
  }
1683
- function Fo(t, e, n, s, i, a, r, d) {
1684
- const l = {
1406
+ function wr(t, e, n, r, i, s, o, l) {
1407
+ const a = {
1685
1408
  passive: !0,
1686
1409
  capture: !0
1687
1410
  };
1688
- let u = 0;
1689
- function y(g) {
1690
- if (!d) return;
1691
- function h(b) {
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"));
1411
+ let c = 0;
1412
+ function b(g) {
1413
+ if (!l) return;
1414
+ function f(h) {
1415
+ if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
1416
+ o.emit("slideFocusStart"), t.scrollLeft = 0;
1417
+ const u = n.findIndex((T) => T.includes(h));
1418
+ Je(u) && (i.useDuration(0), r.index(u, 0), o.emit("slideFocus"));
1696
1419
  }
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);
1700
- }, l);
1420
+ s.add(document, "keydown", p, !1), e.forEach((h, v) => {
1421
+ s.add(h, "focus", (m) => {
1422
+ (Ee(l) || l(g, m)) && f(v);
1423
+ }, a);
1701
1424
  });
1702
1425
  }
1703
- function f(g) {
1704
- g.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
1426
+ function p(g) {
1427
+ g.code === "Tab" && (c = (/* @__PURE__ */ new Date()).getTime());
1705
1428
  }
1706
1429
  return {
1707
- init: y
1430
+ init: b
1708
1431
  };
1709
1432
  }
1710
1433
  function De(t) {
@@ -1712,361 +1435,361 @@ function De(t) {
1712
1435
  function n() {
1713
1436
  return e;
1714
1437
  }
1715
- function s(l) {
1716
- e = r(l);
1438
+ function r(a) {
1439
+ e = o(a);
1717
1440
  }
1718
- function i(l) {
1719
- e += r(l);
1441
+ function i(a) {
1442
+ e += o(a);
1720
1443
  }
1721
- function a(l) {
1722
- e -= r(l);
1444
+ function s(a) {
1445
+ e -= o(a);
1723
1446
  }
1724
- function r(l) {
1725
- return Qe(l) ? l : l.get();
1447
+ function o(a) {
1448
+ return Je(a) ? a : a.get();
1726
1449
  }
1727
1450
  return {
1728
1451
  get: n,
1729
- set: s,
1452
+ set: r,
1730
1453
  add: i,
1731
- subtract: a
1454
+ subtract: s
1732
1455
  };
1733
1456
  }
1734
- function Pt(t, e) {
1735
- const n = t.scroll === "x" ? r : d, s = e.style;
1736
- let i = null, a = !1;
1737
- function r(k) {
1457
+ function Lt(t, e) {
1458
+ const n = t.scroll === "x" ? o : l, r = e.style;
1459
+ let i = null, s = !1;
1460
+ function o(k) {
1738
1461
  return `translate3d(${k}px,0px,0px)`;
1739
1462
  }
1740
- function d(k) {
1463
+ function l(k) {
1741
1464
  return `translate3d(0px,${k}px,0px)`;
1742
1465
  }
1743
- function l(k) {
1744
- if (a) return;
1745
- const g = mo(t.direction(k));
1746
- g !== i && (s.transform = n(g), i = g);
1466
+ function a(k) {
1467
+ if (s) return;
1468
+ const g = sr(t.direction(k));
1469
+ g !== i && (r.transform = n(g), i = g);
1747
1470
  }
1748
- function u(k) {
1749
- a = !k;
1471
+ function c(k) {
1472
+ s = !k;
1750
1473
  }
1751
- function y() {
1752
- a || (s.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
1474
+ function b() {
1475
+ s || (r.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
1753
1476
  }
1754
1477
  return {
1755
- clear: y,
1756
- to: l,
1757
- toggleActive: u
1478
+ clear: b,
1479
+ to: a,
1480
+ toggleActive: c
1758
1481
  };
1759
1482
  }
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
1483
+ function Cr(t, e, n, r, i, s, o, l, a) {
1484
+ const b = Ae(i), p = Ae(i).reverse(), k = m().concat(u());
1485
+ function g(w, I) {
1486
+ return w.reduce((F, z) => F - i[z], I);
1487
+ }
1488
+ function f(w, I) {
1489
+ return w.reduce((F, z) => g(F, I) > 0 ? F.concat([z]) : F, []);
1490
+ }
1491
+ function h(w) {
1492
+ return s.map((I, F) => ({
1493
+ start: I - r[F] + 0.5 + w,
1494
+ end: I + e - 0.5 + w
1772
1495
  }));
1773
1496
  }
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];
1497
+ function v(w, I, F) {
1498
+ const z = h(I);
1499
+ return w.map((P) => {
1500
+ const R = F ? 0 : -n, _ = F ? n : 0, M = F ? "end" : "start", D = z[P][M];
1778
1501
  return {
1779
- index: N,
1780
- loopPoint: I,
1502
+ index: P,
1503
+ loopPoint: D,
1781
1504
  slideLocation: De(-1),
1782
- translate: Pt(t, l[N]),
1783
- target: () => d.get() > I ? W : R
1505
+ translate: Lt(t, a[P]),
1506
+ target: () => l.get() > D ? R : _
1784
1507
  };
1785
1508
  });
1786
1509
  }
1787
- function p() {
1788
- const j = r[0], L = h(f, j);
1789
- return v(L, n, !1);
1790
- }
1791
1510
  function m() {
1792
- const j = e - r[0] - 1, L = h(y, j);
1793
- return v(L, -n, !0);
1511
+ const w = o[0], I = f(p, w);
1512
+ return v(I, n, !1);
1513
+ }
1514
+ function u() {
1515
+ const w = e - o[0] - 1, I = f(b, w);
1516
+ return v(I, -n, !0);
1794
1517
  }
1795
1518
  function T() {
1796
1519
  return k.every(({
1797
- index: j
1520
+ index: w
1798
1521
  }) => {
1799
- const L = y.filter((B) => B !== j);
1800
- return g(L, e) <= 0.1;
1522
+ const I = b.filter((F) => F !== w);
1523
+ return g(I, e) <= 0.1;
1801
1524
  });
1802
1525
  }
1803
- function _() {
1804
- k.forEach((j) => {
1526
+ function j() {
1527
+ k.forEach((w) => {
1805
1528
  const {
1806
- target: L,
1807
- translate: B,
1808
- slideLocation: $
1809
- } = j, N = L();
1810
- N !== $.get() && (B.to(N), $.set(N));
1529
+ target: I,
1530
+ translate: F,
1531
+ slideLocation: z
1532
+ } = w, P = I();
1533
+ P !== z.get() && (F.to(P), z.set(P));
1811
1534
  });
1812
1535
  }
1813
- function F() {
1814
- k.forEach((j) => j.translate.clear());
1536
+ function A() {
1537
+ k.forEach((w) => w.translate.clear());
1815
1538
  }
1816
1539
  return {
1817
1540
  canLoop: T,
1818
- clear: F,
1819
- loop: _,
1541
+ clear: A,
1542
+ loop: j,
1820
1543
  loopPoints: k
1821
1544
  };
1822
1545
  }
1823
- function Eo(t, e, n) {
1824
- let s, i = !1;
1825
- function a(l) {
1546
+ function Dr(t, e, n) {
1547
+ let r, i = !1;
1548
+ function s(a) {
1826
1549
  if (!n) return;
1827
- function u(y) {
1828
- for (const f of y)
1829
- if (f.type === "childList") {
1830
- l.reInit(), e.emit("slidesChanged");
1550
+ function c(b) {
1551
+ for (const p of b)
1552
+ if (p.type === "childList") {
1553
+ a.reInit(), e.emit("slidesChanged");
1831
1554
  break;
1832
1555
  }
1833
1556
  }
1834
- s = new MutationObserver((y) => {
1835
- i || (ze(n) || n(l, y)) && u(y);
1836
- }), s.observe(t, {
1557
+ r = new MutationObserver((b) => {
1558
+ i || (Ee(n) || n(a, b)) && c(b);
1559
+ }), r.observe(t, {
1837
1560
  childList: !0
1838
1561
  });
1839
1562
  }
1840
- function r() {
1841
- s && s.disconnect(), i = !0;
1563
+ function o() {
1564
+ r && r.disconnect(), i = !0;
1842
1565
  }
1843
1566
  return {
1844
- init: a,
1845
- destroy: r
1567
+ init: s,
1568
+ destroy: o
1846
1569
  };
1847
1570
  }
1848
- function Bo(t, e, n, s) {
1571
+ function Ir(t, e, n, r) {
1849
1572
  const i = {};
1850
- let a = null, r = null, d, l = !1;
1851
- function u() {
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"));
1573
+ let s = null, o = null, l, a = !1;
1574
+ function c() {
1575
+ l = new IntersectionObserver((f) => {
1576
+ a || (f.forEach((h) => {
1577
+ const v = e.indexOf(h.target);
1578
+ i[v] = h;
1579
+ }), s = null, o = null, n.emit("slidesInView"));
1857
1580
  }, {
1858
1581
  root: t.parentElement,
1859
- threshold: s
1860
- }), e.forEach((h) => d.observe(h));
1861
- }
1862
- function y() {
1863
- d && d.disconnect(), l = !0;
1864
- }
1865
- function f(h) {
1866
- return Ae(i).reduce((b, v) => {
1867
- const p = parseInt(v), {
1868
- isIntersecting: m
1869
- } = i[p];
1870
- return (h && m || !h && !m) && b.push(p), b;
1582
+ threshold: r
1583
+ }), e.forEach((f) => l.observe(f));
1584
+ }
1585
+ function b() {
1586
+ l && l.disconnect(), a = !0;
1587
+ }
1588
+ function p(f) {
1589
+ return je(i).reduce((h, v) => {
1590
+ const m = parseInt(v), {
1591
+ isIntersecting: u
1592
+ } = i[m];
1593
+ return (f && u || !f && !u) && h.push(m), h;
1871
1594
  }, []);
1872
1595
  }
1873
- function k(h = !0) {
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;
1596
+ function k(f = !0) {
1597
+ if (f && s) return s;
1598
+ if (!f && o) return o;
1599
+ const h = p(f);
1600
+ return f && (s = h), f || (o = h), h;
1878
1601
  }
1879
1602
  return {
1880
- init: u,
1881
- destroy: y,
1603
+ init: c,
1604
+ destroy: b,
1882
1605
  get: k
1883
1606
  };
1884
1607
  }
1885
- function No(t, e, n, s, i, a) {
1608
+ function Ar(t, e, n, r, i, s) {
1886
1609
  const {
1887
- measureSize: r,
1888
- startEdge: d,
1889
- endEdge: l
1890
- } = t, u = n[0] && i, y = h(), f = b(), k = n.map(r), g = v();
1891
- function h() {
1892
- if (!u) return 0;
1893
- const m = n[0];
1894
- return U(e[d] - m[d]);
1610
+ measureSize: o,
1611
+ startEdge: l,
1612
+ endEdge: a
1613
+ } = t, c = n[0] && i, b = f(), p = h(), k = n.map(o), g = v();
1614
+ function f() {
1615
+ if (!c) return 0;
1616
+ const u = n[0];
1617
+ return W(e[l] - u[l]);
1895
1618
  }
1896
- function b() {
1897
- if (!u) return 0;
1898
- const m = a.getComputedStyle(ie(s));
1899
- return parseFloat(m.getPropertyValue(`margin-${l}`));
1619
+ function h() {
1620
+ if (!c) return 0;
1621
+ const u = s.getComputedStyle(ae(r));
1622
+ return parseFloat(u.getPropertyValue(`margin-${a}`));
1900
1623
  }
1901
1624
  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);
1625
+ return n.map((u, T, j) => {
1626
+ const A = !T, L = Xe(j, T);
1627
+ return A ? k[T] + b : L ? k[T] + p : j[T + 1][l] - u[l];
1628
+ }).map(W);
1906
1629
  }
1907
1630
  return {
1908
1631
  slideSizes: k,
1909
1632
  slideSizesWithGaps: g,
1910
- startGap: y,
1911
- endGap: f
1633
+ startGap: b,
1634
+ endGap: p
1912
1635
  };
1913
1636
  }
1914
- function Po(t, e, n, s, i, a, r, d, l) {
1637
+ function jr(t, e, n, r, i, s, o, l, a) {
1915
1638
  const {
1916
- startEdge: u,
1917
- endEdge: y,
1918
- direction: f
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);
1639
+ startEdge: c,
1640
+ endEdge: b,
1641
+ direction: p
1642
+ } = t, k = Je(n);
1643
+ function g(m, u) {
1644
+ return Ae(m).filter((T) => T % u === 0).map((T) => m.slice(T, T + u));
1645
+ }
1646
+ function f(m) {
1647
+ return m.length ? Ae(m).reduce((u, T, j) => {
1648
+ const A = ae(u) || 0, L = A === 0, w = T === Fe(m), I = i[c] - s[A][c], F = i[c] - s[T][b], z = !r && L ? p(o) : 0, P = !r && w ? p(l) : 0, R = W(F - P - (I + z));
1649
+ return j && R > e + a && u.push(T), w && u.push(m.length), u;
1650
+ }, []).map((u, T, j) => {
1651
+ const A = Math.max(j[T - 1] || 0);
1652
+ return m.slice(A, u);
1930
1653
  }) : [];
1931
1654
  }
1932
- function b(p) {
1933
- return k ? g(p, n) : h(p);
1655
+ function h(m) {
1656
+ return k ? g(m, n) : f(m);
1934
1657
  }
1935
1658
  return {
1936
- groupSlides: b
1659
+ groupSlides: h
1937
1660
  };
1938
1661
  }
1939
- function Ro(t, e, n, s, i, a, r) {
1662
+ function Lr(t, e, n, r, i, s, o) {
1940
1663
  const {
1941
- align: d,
1942
- axis: l,
1943
- direction: u,
1944
- startIndex: y,
1945
- loop: f,
1664
+ align: l,
1665
+ axis: a,
1666
+ direction: c,
1667
+ startIndex: b,
1668
+ loop: p,
1946
1669
  duration: k,
1947
1670
  dragFree: g,
1948
- dragThreshold: h,
1949
- inViewThreshold: b,
1671
+ dragThreshold: f,
1672
+ inViewThreshold: h,
1950
1673
  slidesToScroll: v,
1951
- skipSnaps: p,
1952
- containScroll: m,
1674
+ skipSnaps: m,
1675
+ containScroll: u,
1953
1676
  watchResize: T,
1954
- watchSlides: _,
1955
- watchDrag: F,
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, {
1958
- slideSizes: ne,
1959
- slideSizesWithGaps: Y,
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,
1964
- snapsAligned: P
1965
- } = Do(N, z, B, $, c), M = -ie(A) + ie(Y), {
1677
+ watchSlides: j,
1678
+ watchDrag: A,
1679
+ watchFocus: L
1680
+ } = s, w = 2, I = ur(), F = I.measure(e), z = n.map(I.measure), P = lr(a, c), R = P.measureSize(F), _ = mr(R), M = ir(l, R), D = !p && !!u, V = p || !!u, {
1681
+ slideSizes: oe,
1682
+ slideSizesWithGaps: Z,
1683
+ startGap: Y,
1684
+ endGap: de
1685
+ } = Ar(P, F, z, n, V, i), J = jr(P, R, v, p, F, z, Y, de, w), {
1686
+ snaps: ie,
1687
+ snapsAligned: Q
1688
+ } = yr(P, M, F, z, J), X = -ae(ie) + ae(Z), {
1966
1689
  snapsContained: x,
1967
- scrollContainLimit: D
1968
- } = So(W, M, P, m, j), C = I ? x : P, {
1969
- limit: H
1970
- } = wo(M, C, f), J = Nt(_e(C), y, f), X = J.clone(), V = Le(n), w = ({
1971
- dragHandler: he,
1972
- scrollBody: He,
1973
- scrollBounds: We,
1690
+ scrollContainLimit: C
1691
+ } = hr(R, X, Q, u, w), N = D ? x : Q, {
1692
+ limit: O
1693
+ } = kr(X, N, p), te = jt(Fe(N), b, p), ee = te.clone(), $ = Ae(n), S = ({
1694
+ dragHandler: ke,
1695
+ scrollBody: $e,
1696
+ scrollBounds: He,
1974
1697
  options: {
1975
- loop: Ee
1698
+ loop: Be
1976
1699
  }
1977
1700
  }) => {
1978
- Ee || We.constrain(he.pointerDown()), He.seek();
1979
- }, O = ({
1980
- scrollBody: he,
1981
- translate: He,
1982
- location: We,
1983
- offsetLocation: Ee,
1984
- previousLocation: Ot,
1985
- scrollLooper: $t,
1986
- slideLooper: Ht,
1987
- dragHandler: Wt,
1988
- animation: Vt,
1989
- eventHandler: at,
1990
- scrollBounds: Gt,
1701
+ Be || He.constrain(ke.pointerDown()), $e.seek();
1702
+ }, E = ({
1703
+ scrollBody: ke,
1704
+ translate: $e,
1705
+ location: He,
1706
+ offsetLocation: Be,
1707
+ previousLocation: Pt,
1708
+ scrollLooper: Mt,
1709
+ slideLooper: Et,
1710
+ dragHandler: _t,
1711
+ animation: zt,
1712
+ eventHandler: rt,
1713
+ scrollBounds: Rt,
1991
1714
  options: {
1992
- loop: it
1715
+ loop: st
1993
1716
  }
1994
- }, lt) => {
1995
- const dt = he.settled(), qt = !Gt.shouldConstrain(), ct = it ? dt : dt && qt, ut = ct && !Wt.pointerDown();
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), {
2000
- slideRegistry: st
2001
- } = Io(I, m, C, D, c, V), Mt = Fo(t, n, st, Oe, xe, ot, r, E), $e = {
2002
- ownerDocument: s,
1717
+ }, it) => {
1718
+ const at = ke.settled(), $t = !Rt.shouldConstrain(), lt = st ? at : at && $t, dt = lt && !_t.pointerDown();
1719
+ dt && zt.stop();
1720
+ const Ht = He.get() * it + Pt.get() * (1 - it);
1721
+ Be.set(Ht), st && (Mt.loop(ke.direction()), Et.loop()), $e.to(Be.get()), dt && rt.emit("settle"), lt || rt.emit("scroll");
1722
+ }, H = ar(r, i, () => S(Re), (ke) => E(Re, ke)), G = 0.68, le = N[te.get()], ce = De(le), ge = De(le), ue = De(le), pe = De(le), xe = pr(ce, ue, ge, pe, k, G), _e = xr(p, N, X, O, pe), ze = Sr(H, te, ee, xe, _e, pe, o), tt = br(O), nt = Le(), Bt = Ir(e, n, o, h), {
1723
+ slideRegistry: ot
1724
+ } = Tr(D, u, N, C, J, $), Nt = wr(t, n, ot, ze, xe, nt, o, L), Re = {
1725
+ ownerDocument: r,
2003
1726
  ownerWindow: i,
2004
- eventHandler: r,
2005
- containerRect: B,
2006
- slideRects: $,
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,
2011
- percentOfView: R,
2012
- index: J,
2013
- indexPrevious: X,
2014
- limit: H,
2015
- location: de,
2016
- offsetLocation: ce,
2017
- previousLocation: me,
2018
- options: a,
2019
- resizeHandler: yo(e, r, i, n, N, T, L),
1727
+ eventHandler: o,
1728
+ containerRect: F,
1729
+ slideRects: z,
1730
+ animation: H,
1731
+ axis: P,
1732
+ dragHandler: dr(P, t, r, i, pe, cr(P, i), ce, H, ze, xe, _e, te, o, _, g, f, m, G, A),
1733
+ eventStore: nt,
1734
+ percentOfView: _,
1735
+ index: te,
1736
+ indexPrevious: ee,
1737
+ limit: O,
1738
+ location: ce,
1739
+ offsetLocation: ue,
1740
+ previousLocation: ge,
1741
+ options: s,
1742
+ resizeHandler: gr(e, o, i, n, P, T, I),
2020
1743
  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),
2025
- scrollSnaps: C,
2026
- scrollTarget: Me,
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,
2032
- slideIndexes: V,
2033
- slideRegistry: st,
2034
- slidesToScroll: c,
2035
- target: ge,
2036
- translate: Pt(N, e)
1744
+ scrollBounds: fr(O, ue, pe, xe, _),
1745
+ scrollLooper: vr(X, O, ue, [ce, ue, ge, pe]),
1746
+ scrollProgress: tt,
1747
+ scrollSnapList: N.map(tt.get),
1748
+ scrollSnaps: N,
1749
+ scrollTarget: _e,
1750
+ scrollTo: ze,
1751
+ slideLooper: Cr(P, R, X, oe, Z, ie, N, ue, n),
1752
+ slideFocus: Nt,
1753
+ slidesHandler: Dr(e, o, j),
1754
+ slidesInView: Bt,
1755
+ slideIndexes: $,
1756
+ slideRegistry: ot,
1757
+ slidesToScroll: J,
1758
+ target: pe,
1759
+ translate: Lt(P, e)
2037
1760
  };
2038
- return $e;
1761
+ return Re;
2039
1762
  }
2040
- function zo() {
1763
+ function Fr() {
2041
1764
  let t = {}, e;
2042
- function n(u) {
2043
- e = u;
1765
+ function n(c) {
1766
+ e = c;
2044
1767
  }
2045
- function s(u) {
2046
- return t[u] || [];
1768
+ function r(c) {
1769
+ return t[c] || [];
2047
1770
  }
2048
- function i(u) {
2049
- return s(u).forEach((y) => y(e, u)), l;
1771
+ function i(c) {
1772
+ return r(c).forEach((b) => b(e, c)), a;
2050
1773
  }
2051
- function a(u, y) {
2052
- return t[u] = s(u).concat([y]), l;
1774
+ function s(c, b) {
1775
+ return t[c] = r(c).concat([b]), a;
2053
1776
  }
2054
- function r(u, y) {
2055
- return t[u] = s(u).filter((f) => f !== y), l;
1777
+ function o(c, b) {
1778
+ return t[c] = r(c).filter((p) => p !== b), a;
2056
1779
  }
2057
- function d() {
1780
+ function l() {
2058
1781
  t = {};
2059
1782
  }
2060
- const l = {
1783
+ const a = {
2061
1784
  init: n,
2062
1785
  emit: i,
2063
- off: r,
2064
- on: a,
2065
- clear: d
1786
+ off: o,
1787
+ on: s,
1788
+ clear: l
2066
1789
  };
2067
- return l;
1790
+ return a;
2068
1791
  }
2069
- const Mo = {
1792
+ const Br = {
2070
1793
  align: "center",
2071
1794
  axis: "x",
2072
1795
  container: null,
@@ -2088,331 +1811,331 @@ const Mo = {
2088
1811
  watchSlides: !0,
2089
1812
  watchFocus: !0
2090
1813
  };
2091
- function Oo(t) {
2092
- function e(a, r) {
2093
- return Bt(a, r || {});
1814
+ function Nr(t) {
1815
+ function e(s, o) {
1816
+ return At(s, o || {});
2094
1817
  }
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), {});
2097
- return e(a, d);
1818
+ function n(s) {
1819
+ const o = s.breakpoints || {}, l = je(o).filter((a) => t.matchMedia(a).matches).map((a) => o[a]).reduce((a, c) => e(a, c), {});
1820
+ return e(s, l);
2098
1821
  }
2099
- function s(a) {
2100
- return a.map((r) => Ae(r.breakpoints || {})).reduce((r, d) => r.concat(d), []).map(t.matchMedia);
1822
+ function r(s) {
1823
+ return s.map((o) => je(o.breakpoints || {})).reduce((o, l) => o.concat(l), []).map(t.matchMedia);
2101
1824
  }
2102
1825
  return {
2103
1826
  mergeOptions: e,
2104
1827
  optionsAtMedia: n,
2105
- optionsMediaQueries: s
1828
+ optionsMediaQueries: r
2106
1829
  };
2107
1830
  }
2108
- function $o(t) {
1831
+ function Pr(t) {
2109
1832
  let e = [];
2110
- function n(a, r) {
2111
- return e = r.filter(({
2112
- options: d
2113
- }) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)), r.reduce((d, l) => Object.assign(d, {
2114
- [l.name]: l
1833
+ function n(s, o) {
1834
+ return e = o.filter(({
1835
+ options: l
1836
+ }) => t.optionsAtMedia(l).active !== !1), e.forEach((l) => l.init(s, t)), o.reduce((l, a) => Object.assign(l, {
1837
+ [a.name]: a
2115
1838
  }), {});
2116
1839
  }
2117
- function s() {
2118
- e = e.filter((a) => a.destroy());
1840
+ function r() {
1841
+ e = e.filter((s) => s.destroy());
2119
1842
  }
2120
1843
  return {
2121
1844
  init: n,
2122
- destroy: s
1845
+ destroy: r
2123
1846
  };
2124
1847
  }
2125
- function Re(t, e, n) {
2126
- const s = t.ownerDocument, i = s.defaultView, a = Oo(i), r = $o(a), d = Fe(), l = zo(), {
2127
- mergeOptions: u,
2128
- optionsAtMedia: y,
2129
- optionsMediaQueries: f
2130
- } = a, {
1848
+ function Me(t, e, n) {
1849
+ const r = t.ownerDocument, i = r.defaultView, s = Nr(i), o = Pr(s), l = Le(), a = Fr(), {
1850
+ mergeOptions: c,
1851
+ optionsAtMedia: b,
1852
+ optionsMediaQueries: p
1853
+ } = s, {
2131
1854
  on: k,
2132
1855
  off: g,
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() {
1856
+ emit: f
1857
+ } = a, h = P;
1858
+ let v = !1, m, u = c(Br, Me.globalOptions), T = c(u), j = [], A, L, w;
1859
+ function I() {
2137
1860
  const {
2138
- container: V,
2139
- slides: w
1861
+ container: $,
1862
+ slides: S
2140
1863
  } = T;
2141
- E = (Ye(V) ? t.querySelector(V) : V) || t.children[0];
2142
- const G = Ye(w) ? E.querySelectorAll(w) : w;
2143
- j = [].slice.call(G || E.children);
2144
- }
2145
- function B(V) {
2146
- const w = Ro(t, E, j, s, i, V, l);
2147
- if (V.loop && !w.slideLooper.canLoop()) {
2148
- const O = Object.assign({}, V, {
1864
+ L = (qe($) ? t.querySelector($) : $) || t.children[0];
1865
+ const H = qe(S) ? L.querySelectorAll(S) : S;
1866
+ w = [].slice.call(H || L.children);
1867
+ }
1868
+ function F($) {
1869
+ const S = Lr(t, L, w, r, i, $, a);
1870
+ if ($.loop && !S.slideLooper.canLoop()) {
1871
+ const E = Object.assign({}, $, {
2149
1872
  loop: !1
2150
1873
  });
2151
- return B(O);
1874
+ return F(E);
2152
1875
  }
2153
- return w;
2154
- }
2155
- function $(V, w) {
2156
- v || (m = u(m, V), T = y(m), _ = w || _, L(), p = B(T), f([m, ..._.map(({
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, _)));
1876
+ return S;
2159
1877
  }
2160
- function N(V, w) {
2161
- const O = c();
2162
- W(), $(u({
2163
- startIndex: O
2164
- }, V), w), l.emit("reInit");
1878
+ function z($, S) {
1879
+ v || (u = c(u, $), T = b(u), j = S || j, I(), m = F(T), p([u, ...j.map(({
1880
+ options: E
1881
+ }) => E)]).forEach((E) => l.add(E, "change", P)), T.active && (m.translate.to(m.location.get()), m.animation.init(), m.slidesInView.init(), m.slideFocus.init(ee), m.eventHandler.init(ee), m.resizeHandler.init(ee), m.slidesHandler.init(ee), m.options.loop && m.slideLooper.loop(), L.offsetParent && w.length && m.dragHandler.init(ee), A = o.init(ee, j)));
2165
1882
  }
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();
1883
+ function P($, S) {
1884
+ const E = J();
1885
+ R(), z(c({
1886
+ startIndex: E
1887
+ }, $), S), a.emit("reInit");
2168
1888
  }
2169
1889
  function R() {
2170
- v || (v = !0, d.clear(), W(), l.emit("destroy"), l.clear());
1890
+ m.dragHandler.destroy(), m.eventStore.clear(), m.translate.clear(), m.slideLooper.clear(), m.resizeHandler.destroy(), m.slidesHandler.destroy(), m.slidesInView.destroy(), m.animation.destroy(), o.destroy(), l.clear();
2171
1891
  }
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));
1892
+ function _() {
1893
+ v || (v = !0, l.clear(), R(), a.emit("destroy"), a.clear());
2174
1894
  }
2175
- function I(V) {
2176
- const w = p.index.add(1).get();
2177
- z(w, V, -1);
1895
+ function M($, S, E) {
1896
+ !T.active || v || (m.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : T.duration), m.scrollTo.index($, E || 0));
2178
1897
  }
2179
- function q(V) {
2180
- const w = p.index.add(-1).get();
2181
- z(w, V, 1);
1898
+ function D($) {
1899
+ const S = m.index.add(1).get();
1900
+ M(S, $, -1);
2182
1901
  }
2183
- function ne() {
2184
- return p.index.add(1).get() !== c();
1902
+ function V($) {
1903
+ const S = m.index.add(-1).get();
1904
+ M(S, $, 1);
2185
1905
  }
2186
- function Y() {
2187
- return p.index.add(-1).get() !== c();
1906
+ function oe() {
1907
+ return m.index.add(1).get() !== J();
2188
1908
  }
2189
- function K() {
2190
- return p.scrollSnapList;
1909
+ function Z() {
1910
+ return m.index.add(-1).get() !== J();
2191
1911
  }
2192
- function oe() {
2193
- return p.scrollProgress.get(p.offsetLocation.get());
1912
+ function Y() {
1913
+ return m.scrollSnapList;
2194
1914
  }
2195
- function c() {
2196
- return p.index.get();
1915
+ function de() {
1916
+ return m.scrollProgress.get(m.offsetLocation.get());
2197
1917
  }
2198
- function A() {
2199
- return p.indexPrevious.get();
1918
+ function J() {
1919
+ return m.index.get();
2200
1920
  }
2201
- function P() {
2202
- return p.slidesInView.get();
1921
+ function ie() {
1922
+ return m.indexPrevious.get();
2203
1923
  }
2204
- function M() {
2205
- return p.slidesInView.get(!1);
1924
+ function Q() {
1925
+ return m.slidesInView.get();
2206
1926
  }
2207
- function x() {
2208
- return F;
1927
+ function X() {
1928
+ return m.slidesInView.get(!1);
2209
1929
  }
2210
- function D() {
2211
- return p;
1930
+ function x() {
1931
+ return A;
2212
1932
  }
2213
1933
  function C() {
1934
+ return m;
1935
+ }
1936
+ function N() {
2214
1937
  return t;
2215
1938
  }
2216
- function H() {
2217
- return E;
1939
+ function O() {
1940
+ return L;
2218
1941
  }
2219
- function J() {
2220
- return j;
2221
- }
2222
- const X = {
2223
- canScrollNext: ne,
2224
- canScrollPrev: Y,
2225
- containerNode: H,
2226
- internalEngine: D,
2227
- destroy: R,
1942
+ function te() {
1943
+ return w;
1944
+ }
1945
+ const ee = {
1946
+ canScrollNext: oe,
1947
+ canScrollPrev: Z,
1948
+ containerNode: O,
1949
+ internalEngine: C,
1950
+ destroy: _,
2228
1951
  off: g,
2229
1952
  on: k,
2230
- emit: h,
1953
+ emit: f,
2231
1954
  plugins: x,
2232
- previousScrollSnap: A,
2233
- reInit: b,
2234
- rootNode: C,
2235
- scrollNext: I,
2236
- scrollPrev: q,
2237
- scrollProgress: oe,
2238
- scrollSnapList: K,
2239
- scrollTo: z,
2240
- selectedScrollSnap: c,
2241
- slideNodes: J,
2242
- slidesInView: P,
2243
- slidesNotInView: M
1955
+ previousScrollSnap: ie,
1956
+ reInit: h,
1957
+ rootNode: N,
1958
+ scrollNext: D,
1959
+ scrollPrev: V,
1960
+ scrollProgress: de,
1961
+ scrollSnapList: Y,
1962
+ scrollTo: M,
1963
+ selectedScrollSnap: J,
1964
+ slideNodes: te,
1965
+ slidesInView: Q,
1966
+ slidesNotInView: X
2244
1967
  };
2245
- return $(e, n), setTimeout(() => l.emit("init"), 0), X;
1968
+ return z(e, n), setTimeout(() => a.emit("init"), 0), ee;
2246
1969
  }
2247
- Re.globalOptions = void 0;
2248
- function nt(t = {}, e = []) {
2249
- const n = Ue(t), s = Ue(e), [i, a] = re(), [r, d] = re(), l = ae(() => {
2250
- i && i.reInit(n.current, s.current);
1970
+ Me.globalOptions = void 0;
1971
+ function et(t = {}, e = []) {
1972
+ const n = Ge(t), r = Ge(e), [i, s] = ne(), [o, l] = ne(), a = se(() => {
1973
+ i && i.reInit(n.current, r.current);
2251
1974
  }, [i]);
2252
- return te(() => {
2253
- Xe(n.current, t) || (n.current = t, l());
2254
- }, [t, l]), te(() => {
2255
- co(s.current, e) || (s.current = e, l());
2256
- }, [e, l]), te(() => {
2257
- if (lo() && r) {
2258
- Re.globalOptions = nt.globalOptions;
2259
- const u = Re(r, n.current, s.current);
2260
- return a(u), () => u.destroy();
1975
+ return K(() => {
1976
+ Ze(n.current, t) || (n.current = t, a());
1977
+ }, [t, a]), K(() => {
1978
+ or(r.current, e) || (r.current = e, a());
1979
+ }, [e, a]), K(() => {
1980
+ if (nr() && o) {
1981
+ Me.globalOptions = et.globalOptions;
1982
+ const c = Me(o, n.current, r.current);
1983
+ return s(c), () => c.destroy();
2261
1984
  } else
2262
- a(void 0);
2263
- }, [r, a]), [d, i];
1985
+ s(void 0);
1986
+ }, [o, s]), [l, i];
2264
1987
  }
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,
2279
- dot: es,
2280
- dotActive: ts
2281
- }, ns = cn, rs = ({
1988
+ et.globalOptions = void 0;
1989
+ const Mr = "_carouselContainer_1bu1s_1", Er = "_viewport_1bu1s_11", _r = "_slides_1bu1s_17", zr = "_slide_1bu1s_17", Rr = "_slideInner_1bu1s_37", $r = "_loaderOverlay_1bu1s_45", Hr = "_image_1bu1s_55", Or = "_loaded_1bu1s_66", Wr = "_empty_1bu1s_78", Vr = "_controls_1bu1s_84", Gr = "_arrows_1bu1s_94", Ur = "_dots_1bu1s_104", qr = "_dot_1bu1s_104", Kr = "_dotActive_1bu1s_130", U = {
1990
+ carouselContainer: Mr,
1991
+ viewport: Er,
1992
+ slides: _r,
1993
+ slide: zr,
1994
+ slideInner: Rr,
1995
+ loaderOverlay: $r,
1996
+ image: Hr,
1997
+ loaded: Or,
1998
+ empty: Wr,
1999
+ controls: Vr,
2000
+ arrows: Gr,
2001
+ dots: Ur,
2002
+ dot: qr,
2003
+ dotActive: Kr
2004
+ }, Yr = sn, Zr = ({
2282
2005
  images: t,
2283
2006
  autoPlay: e = !1,
2284
2007
  autoDelay: n = 5,
2285
- showArrows: s = !0,
2008
+ showArrows: r = !0,
2286
2009
  showDots: i = !0,
2287
- variant: a,
2288
- slidesPerView: r = 1,
2289
- slideSpacing: d = 16,
2290
- cornerRadius: l = 0,
2291
- "data-color": u,
2292
- "data-size": y
2010
+ variant: s,
2011
+ slidesPerView: o = 1,
2012
+ slideSpacing: l = 16,
2013
+ cornerRadius: a = 0,
2014
+ "data-color": c,
2015
+ "data-size": b
2293
2016
  }) => {
2294
- const f = {
2017
+ const p = {
2295
2018
  loop: !0,
2296
2019
  align: "start",
2297
2020
  containScroll: "trimSnaps",
2298
2021
  slidesToScroll: 1
2299
- }, [k, g] = nt(f), [h, b] = re(0), [v, p] = re([]), [m, T] = re([]);
2300
- te(() => {
2022
+ }, [k, g] = et(p), [f, h] = ne(0), [v, m] = ne([]), [u, T] = ne([]);
2023
+ K(() => {
2301
2024
  T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
2302
2025
  }, [t]);
2303
- const _ = ae((R) => {
2304
- T((z) => {
2305
- const I = [...z];
2306
- return I[R] = !0, I;
2026
+ const j = se((_) => {
2027
+ T((M) => {
2028
+ const D = [...M];
2029
+ return D[_] = !0, D;
2307
2030
  });
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]);
2311
- te(() => {
2031
+ }, []), A = ye(() => n * 1e3, [n]), L = se(() => {
2032
+ g && h(g.selectedScrollSnap());
2033
+ }, [g]), w = se((_) => g && g.scrollTo(_), [g]), I = se(() => g && g.scrollPrev(), [g]), F = se(() => g && g.scrollNext(), [g]);
2034
+ K(() => {
2312
2035
  if (g)
2313
- return g.on("select", E), g.on("reInit", E), p(g.scrollSnapList()), () => {
2314
- g.off("select", E), g.off("reInit", E);
2036
+ return g.on("select", L), g.on("reInit", L), m(g.scrollSnapList()), () => {
2037
+ g.off("select", L), g.off("reInit", L);
2315
2038
  };
2316
- }, [g, E]), te(() => {
2317
- g && (g.reInit(), p(g.scrollSnapList()));
2318
- }, [g, t, r, d]), te(() => {
2039
+ }, [g, L]), K(() => {
2040
+ g && (g.reInit(), m(g.scrollSnapList()));
2041
+ }, [g, t, o, l]), K(() => {
2319
2042
  if (!e || !g || !t || t.length <= 1) return;
2320
- const R = window.setInterval(() => {
2043
+ const _ = window.setInterval(() => {
2321
2044
  g.canScrollNext() && g.scrollNext();
2322
- }, F);
2045
+ }, A);
2323
2046
  return () => {
2324
- window.clearInterval(R);
2047
+ window.clearInterval(_);
2325
2048
  };
2326
- }, [e, F, g, t]);
2327
- const $ = Math.max(1, r), N = `${100 / $}%`, W = d / 2;
2328
- return /* @__PURE__ */ o.jsxs(
2049
+ }, [e, A, g, t]);
2050
+ const z = Math.max(1, o), P = `${100 / z}%`, R = l / 2;
2051
+ return /* @__PURE__ */ B(
2329
2052
  "div",
2330
2053
  {
2331
- className: Q.carouselContainer,
2332
- "data-color": u,
2333
- "data-size": y,
2334
- "data-variant": a,
2054
+ className: U.carouselContainer,
2055
+ "data-color": c,
2056
+ "data-size": b,
2057
+ "data-variant": s,
2335
2058
  children: [
2336
- /* @__PURE__ */ o.jsx("div", { className: Q.viewport, ref: k, children: /* @__PURE__ */ o.jsx(
2059
+ /* @__PURE__ */ d("div", { className: U.viewport, ref: k, children: /* @__PURE__ */ d(
2337
2060
  "div",
2338
2061
  {
2339
- className: Q.slides,
2062
+ className: U.slides,
2340
2063
  style: {
2341
- marginLeft: `-${W}px`,
2342
- marginRight: `-${W}px`
2064
+ marginLeft: `-${R}px`,
2065
+ marginRight: `-${R}px`
2343
2066
  },
2344
- children: t && t.length > 0 ? t.map((R, z) => /* @__PURE__ */ o.jsx(
2067
+ children: t && t.length > 0 ? t.map((_, M) => /* @__PURE__ */ d(
2345
2068
  "div",
2346
2069
  {
2347
- className: Q.slide,
2070
+ className: U.slide,
2348
2071
  style: {
2349
- flex: `0 0 ${N}`,
2350
- paddingLeft: `${W}px`,
2351
- paddingRight: `${W}px`,
2352
- borderRadius: l > 0 ? `${l}px` : void 0,
2072
+ flex: `0 0 ${P}`,
2073
+ paddingLeft: `${R}px`,
2074
+ paddingRight: `${R}px`,
2075
+ borderRadius: a > 0 ? `${a}px` : void 0,
2353
2076
  overflow: "hidden"
2354
2077
  // Ensure radius clips content
2355
2078
  },
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(
2079
+ children: /* @__PURE__ */ B("div", { className: U.slideInner, style: { borderRadius: `${a}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
2080
+ !u[M] && /* @__PURE__ */ d("div", { className: U.loaderOverlay, children: /* @__PURE__ */ d(Yr, { "aria-label": "Laster bilde" }) }),
2081
+ /* @__PURE__ */ d(
2359
2082
  "img",
2360
2083
  {
2361
- className: `${Q.image} ${m[z] ? Q.loaded : Q.loadingImage}`,
2362
- src: R.src,
2363
- alt: R.alt,
2364
- loading: z < $ ? "eager" : "lazy",
2084
+ className: `${U.image} ${u[M] ? U.loaded : U.loadingImage}`,
2085
+ src: _.src,
2086
+ alt: _.alt,
2087
+ loading: M < z ? "eager" : "lazy",
2365
2088
  crossOrigin: "anonymous",
2366
- onLoad: () => _(z),
2367
- onError: (I) => {
2368
- I.target.style.display = "none", _(z);
2089
+ onLoad: () => j(M),
2090
+ onError: (D) => {
2091
+ D.target.style.display = "none", j(M);
2369
2092
  }
2370
2093
  }
2371
2094
  )
2372
2095
  ] })
2373
2096
  },
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" }) })
2097
+ `image-${M}-${_.src}`
2098
+ )) : /* @__PURE__ */ d("div", { className: U.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ d("div", { className: U.empty, children: "Ingen bilder" }) })
2376
2099
  }
2377
2100
  ) }),
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(
2381
- ye,
2101
+ (r || i && t && t.length > 1) && /* @__PURE__ */ B("div", { className: U.controls, "aria-hidden": "false", children: [
2102
+ r && /* @__PURE__ */ B("div", { className: U.arrows, children: [
2103
+ /* @__PURE__ */ d(
2104
+ Te,
2382
2105
  {
2383
2106
  variant: "primary",
2384
2107
  icon: !0,
2385
2108
  "aria-label": "Forrige bilde",
2386
- onClick: L,
2109
+ onClick: I,
2387
2110
  disabled: !t || t.length <= 1,
2388
- children: /* @__PURE__ */ o.jsx(Xn, { "aria-hidden": !0 })
2111
+ children: /* @__PURE__ */ d(Kn, { "aria-hidden": !0 })
2389
2112
  }
2390
2113
  ),
2391
- /* @__PURE__ */ o.jsx(
2392
- ye,
2114
+ /* @__PURE__ */ d(
2115
+ Te,
2393
2116
  {
2394
2117
  variant: "primary",
2395
2118
  icon: !0,
2396
2119
  "aria-label": "Neste bilde",
2397
- onClick: B,
2120
+ onClick: F,
2398
2121
  disabled: !t || t.length <= 1,
2399
- children: /* @__PURE__ */ o.jsx(Qn, { "aria-hidden": !0 })
2122
+ children: /* @__PURE__ */ d(Yn, { "aria-hidden": !0 })
2400
2123
  }
2401
2124
  )
2402
2125
  ] }),
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(
2126
+ i && t && t.length > 1 && /* @__PURE__ */ d("div", { className: U.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((_, M) => {
2127
+ const D = M === f;
2128
+ return /* @__PURE__ */ d(
2406
2129
  "button",
2407
2130
  {
2408
2131
  type: "button",
2409
- className: `${Q.dot} ${I ? Q.dotActive : ""}`,
2410
- onClick: () => j(z),
2411
- "aria-label": `Gå til bilde ${z + 1}`,
2412
- "aria-selected": I,
2132
+ className: `${U.dot} ${D ? U.dotActive : ""}`,
2133
+ onClick: () => w(M),
2134
+ "aria-label": `Gå til bilde ${M + 1}`,
2135
+ "aria-selected": D,
2413
2136
  role: "tab"
2414
2137
  },
2415
- `dot-${z}`
2138
+ `dot-${M}`
2416
2139
  );
2417
2140
  }) })
2418
2141
  ] })
@@ -2420,27 +2143,27 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
2420
2143
  }
2421
2144
  );
2422
2145
  };
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";
2426
- ss.displayName = "Field.Counter";
2427
- const Aa = It, as = ue((t, e) => /* @__PURE__ */ o.jsx(vn, { ref: e, ...t }));
2428
- as.displayName = "Heading";
2429
- const Fa = yn, is = ue((t, e) => /* @__PURE__ */ o.jsx(xn, { ref: e, ...t }));
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 })
2146
+ Zr.displayName = "Carousel";
2147
+ const bi = an, yi = ln, Ti = dn, q = cn, xi = un, Si = mn, Jr = gn, Qr = pn;
2148
+ Jr.displayName = "Field.Description";
2149
+ Qr.displayName = "Field.Counter";
2150
+ const wi = xt, Xr = me((t, e) => /* @__PURE__ */ d(fn, { ref: e, ...t }));
2151
+ Xr.displayName = "Heading";
2152
+ const Ci = hn, es = me((t, e) => /* @__PURE__ */ d(kn, { ref: e, ...t }));
2153
+ es.displayName = "Label";
2154
+ const Ne = vn, Di = bn, Ii = yn, Ai = Tn, Ye = me(
2155
+ (t, e) => /* @__PURE__ */ d(xn, { ref: e, ...t })
2433
2156
  );
2434
- Ze.displayName = "Paragraph";
2435
- const Na = Dn, Pa = In, Ra = Ln, Pe = Object.assign(An, {
2436
- Button: En,
2437
- ClearButton: _n,
2438
- Input: Fn
2439
- }), za = Bn, Ma = Nn, Oa = Pn, ls = Rn;
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 }));
2442
- ds.displayName = "ValidationMessage";
2443
- const cs = {
2157
+ Ye.displayName = "Paragraph";
2158
+ const ji = Sn, Li = wn, Fi = Cn, Pe = Object.assign(Dn, {
2159
+ Button: jn,
2160
+ ClearButton: An,
2161
+ Input: In
2162
+ }), Bi = Ln, Ni = Fn, Pi = Bn, ts = Nn;
2163
+ ts.displayName = "Suggestion";
2164
+ const Ve = Pn, Mi = Mn, Ei = En, _i = _n, zi = zn, Ri = Rn, $i = $n, Hi = Hn, ns = me((t, e) => /* @__PURE__ */ d(On, { ref: e, ...t }));
2165
+ ns.displayName = "ValidationMessage";
2166
+ const os = {
2444
2167
  NO: {
2445
2168
  // Header
2446
2169
  header: {
@@ -2467,6 +2190,7 @@ const cs = {
2467
2190
  design: "Design",
2468
2191
  components: "Komponenter",
2469
2192
  code: "Kode",
2193
+ tokens: "Tokens",
2470
2194
  work: "Vårt arbeid",
2471
2195
  volunteer: "Bli frivillig",
2472
2196
  courses: "Kurs og opplæring"
@@ -2690,20 +2414,89 @@ const cs = {
2690
2414
  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
2415
  },
2692
2416
  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."
2417
+ title: "Arbeidsflyt: Fra Figma til Kode med MCP",
2418
+ 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.",
2419
+ part1Title: "Del 1: Oppsett av Figma MCP Server",
2420
+ part1Intro: "Dette gjøres kun én gang for å aktivere integrasjonen i Cursor/Windsurf.",
2421
+ part1Description: 'For at AI-en skal kunne "lese" Figma-filene, vi sette opp en lokal kobling.',
2422
+ setupStep1Title: "1. Hent Figma Access Token",
2423
+ setupStep1Item1: " til Figma -> Settings -> Personal Access Tokens.",
2424
+ setupStep1Item2: "Klikk Generate new token.",
2425
+ setupStep1Item3: 'Navn: F.eks. "Cursor MCP".',
2426
+ setupStep1Item4: "Scopes: Velg File content: Read og File metadata: Read.",
2427
+ setupStep1Item5: "Kopier tokenet (du får ikke se det igjen).",
2428
+ setupStep2Title: "2. Konfigurer i Cursor",
2429
+ setupStep2Item1: "Åpne innstillinger i Cursor (Ctrl/Cmd + ,).",
2430
+ setupStep2Item2: " til Features -> MCP.",
2431
+ setupStep2Item3: "Klikk + Add New MCP Server.",
2432
+ setupStep2Item4: "Fyll inn følgende:",
2433
+ setupStep2Item5: "Type: command",
2434
+ setupStep2Item6: "Name: figma",
2435
+ setupStep2Item7: "Command: npx -y @modelcontextprotocol/server-figma",
2436
+ setupStep2Item8: "Legg til Environment Variable (viktig!):",
2437
+ setupStep2Item9: "Key: FIGMA_ACCESS_TOKEN",
2438
+ setupStep2Item10: "Value: [Lim inn tokenet du kopierte i steg 1]",
2439
+ setupStep2Item11: 'Når lyset ved siden av "figma" blir grønt, er verktøyet klart til bruk.',
2440
+ part2Title: "Del 2: Daglig Arbeidsflyt",
2441
+ step0Title: "Steg 0: Indeksering av Dokumentasjon",
2442
+ step0Description: "Gjør dette én gang per prosjekt for å gi AI-en full oversikt over designsystemet.",
2443
+ step0Intro: "For at Cursor skal forstå våre spesifikke tokens, komponentnavn og retningslinjer, må vi la den lese gjennom dokumentasjonen på forhånd.",
2444
+ step0Item1: "Åpne Chat i Cursor (Cmd + L / Ctrl + L).",
2445
+ step0Item2: 'Skriv @Docs i tekstfeltet og velg "Add new doc" fra menyen som dukker opp.',
2446
+ step0Item3: "Lim inn URL-en til hovedsiden for dokumentasjonen: https://norwegianredcross.github.io/DesignSystem/",
2447
+ step0Item4: "Gi den et navn som er lett å huske, f.eks. RødeKors.",
2448
+ step0Item5: "Trykk Confirm.",
2449
+ step0WhatHappensTitle: "Hva skjer nå?",
2450
+ 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.',
2451
+ step1Title: "Steg 1: Hent presis lenke i Figma",
2452
+ step1Description: "For best resultat bør du isolere seksjonen du jobber med.",
2453
+ step1Item1: "Marker rammen (Frame), komponenten eller gruppen du vil implementere.",
2454
+ step1Item2: "Høyreklikk og velg Copy link to selection (Snarvei: Ctrl + L).",
2455
+ step1Item3: "NB: Bruk denne funksjonen fremfor å kopiere URL-en fra nettleseren.",
2456
+ step1ImageCaption: "",
2457
+ step2Title: "Steg 2: Gi kontekst (To metoder)",
2458
+ 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.",
2459
+ step2AltATitle: "Alternativ A: Manuell kontekst (Raskt og enkelt)",
2460
+ step2AltADescription: "Bruk dette for engangstilfeller eller hvis du tester nye dokumentasjonskilder. Dette må gjøres manuelt med hver eneste prompt.",
2461
+ step2AltAItem1: "I Composer (Chat): Skriv @ og lim inn URL-ene til dokumentasjonen. Du må inkludere:",
2462
+ step2AltAItem1Sub1: "@https://norwegianredcross.github.io/design-tokens/theme.css",
2463
+ step2AltAItem1Sub2: "@https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json",
2464
+ step2AltAItem2: "Lim inn Figma-lenken: Lim inn lenken fra steg 1.",
2465
+ step2AltAImageCaption: "",
2466
+ step2AltBTitle: "Alternativ B: Automatisert med .cursorrules (Anbefalt)",
2467
+ 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.",
2468
+ step2AltBSetupTitle: "1. Oppsett (Gjøres én gang per prosjekt):",
2469
+ step2AltBSetupText: "Opprett en fil som heter .cursorrules i prosjektets rotmappe og gi kontekst ved å lime inn dette:",
2470
+ step2AltBCodeBlock: `You are an expert Frontend Developer implementing designs from Figma.
2471
+
2472
+ ALWAYS follow these rules:
2473
+ 1. **Documentation:** Refer to the indexed design system documentation (@RødeKors) for component usage, patterns, and guidelines.
2474
+ 2. **Metadata:** Use component metadata from: https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json
2475
+ 3. **Tokens:** Always use CSS variables/tokens defined in: https://norwegianredcross.github.io/design-tokens/theme.css (e.g., var(--spacing-md)).
2476
+ 4. **Figma MCP:** When a Figma link is provided, use the \`figma\` tool to inspect node properties.
2477
+
2478
+ 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.`,
2479
+ step2AltBUsageTitle: "2. I daglig bruk:",
2480
+ 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.",
2481
+ step3Title: "Steg 3: Prompt",
2482
+ step3Description: "Gi en instruks som kobler designet mot kodebasen. Bruk gjerne denne malen:",
2483
+ step3Prompt: `"Using the design at this Figma link and the context from the provided documentation/rules:
2484
+
2485
+ Create a React component for this section.
2486
+
2487
+ Strictly use tokens found in the documentation (colors, spacing) - no magic numbers.
2488
+
2489
+ Map design elements to our existing components where possible (e.g. Buttons, Headings)."`,
2490
+ step4Title: "Steg 4: Generering og Review",
2491
+ step4Item1: "AI-en bruker nå MCP til å lese nodedataene og genererer et kodeforslag.",
2492
+ step4ReviewTitle: "Review:",
2493
+ step4ReviewItem1: 'Sjekk "Diff View" i Cursor.',
2494
+ step4ReviewItem2: "Er tokens brukt riktig? (f.eks. var(--spacing-md)).",
2495
+ step4ReviewItem3: "Er semantikken god?",
2496
+ step4Apply: 'Apply: Trykk "Apply" for å legge koden inn i filen din.',
2497
+ proTipsTitle: "Tips for suksess",
2498
+ 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.',
2499
+ 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
2500
  },
2708
2501
  metadataFiles: {
2709
2502
  title: "Metadata-filer",
@@ -3251,6 +3044,7 @@ const cs = {
3251
3044
  design: "Design",
3252
3045
  components: "Components",
3253
3046
  code: "Code",
3047
+ tokens: "Tokens",
3254
3048
  work: "Our Work",
3255
3049
  volunteer: "Volunteer",
3256
3050
  courses: "Courses & Training"
@@ -3477,20 +3271,88 @@ const cs = {
3477
3271
  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
3272
  },
3479
3273
  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."
3274
+ title: "Workflow: From Figma to Code with MCP",
3275
+ 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.",
3276
+ part1Title: "Part 1: Figma MCP Server Setup",
3277
+ part1Intro: "This is done only once to activate the integration in Cursor/Windsurf.",
3278
+ part1Description: 'For the AI to be able to "read" Figma files, we need to set up a local connection.',
3279
+ setupStep1Title: "1. Get Figma Access Token",
3280
+ setupStep1Item1: "Go to Figma -> Settings -> Personal Access Tokens.",
3281
+ setupStep1Item2: "Click Generate new token.",
3282
+ setupStep1Item3: 'Name: E.g. "Cursor MCP".',
3283
+ setupStep1Item4: "Scopes: Select File content: Read and File metadata: Read.",
3284
+ setupStep1Item5: "Copy the token (you won't see it again).",
3285
+ setupStep2Title: "2. Configure in Cursor",
3286
+ setupStep2Item1: "Open settings in Cursor (Ctrl/Cmd + ,).",
3287
+ setupStep2Item2: "Go to Features -> MCP.",
3288
+ setupStep2Item3: "Click + Add New MCP Server.",
3289
+ setupStep2Item4: "Fill in the following:",
3290
+ setupStep2Item5: "Type: command",
3291
+ setupStep2Item6: "Name: figma",
3292
+ setupStep2Item7: "Command: npx -y @modelcontextprotocol/server-figma",
3293
+ setupStep2Item8: "Add Environment Variable (important!):",
3294
+ setupStep2Item9: "Key: FIGMA_ACCESS_TOKEN",
3295
+ setupStep2Item10: "Value: [Paste the token you copied in step 1]",
3296
+ setupStep2Item11: 'When the light next to "figma" turns green, the tool is ready to use.',
3297
+ part2Title: "Part 2: Daily Workflow",
3298
+ step0Title: "Step 0: Indexing Documentation",
3299
+ step0Description: "Do this once per project to give the AI a complete overview of the design system.",
3300
+ step0Intro: "For Cursor to understand our specific tokens, component names, and guidelines, we need to let it read through the documentation in advance.",
3301
+ step0Item1: "Open Chat in Cursor (Cmd + L / Ctrl + L).",
3302
+ step0Item2: 'Type @Docs in the text field and select "Add new doc" from the menu that appears.',
3303
+ step0Item3: "Paste the URL to the main page of the documentation: https://norwegianredcross.github.io/DesignSystem/",
3304
+ step0Item4: "Give it a name that's easy to remember, e.g. RedCross.",
3305
+ step0Item5: "Click Confirm.",
3306
+ step0WhatHappensTitle: "What happens now?",
3307
+ 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.',
3308
+ step1Description: "For best results, you should isolate the section you're working with.",
3309
+ step1Item1: "Select the frame (Frame), component, or group you want to implement.",
3310
+ step1Item2: "Right-click and select Copy link to selection (Shortcut: Ctrl + L).",
3311
+ step1Item3: "NB: Use this function instead of copying the URL from the browser.",
3312
+ step1ImageCaption: "",
3313
+ step2Title: "Step 2: Provide context (Two methods)",
3314
+ 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.",
3315
+ step2AltATitle: "Alternative A: Manual context (Quick and easy)",
3316
+ step2AltADescription: "Use this for one-time cases or if you're testing new documentation sources. This must be done manually with every single prompt.",
3317
+ step2AltAItem1: "In Composer (Chat): Type @ and paste the URLs to the documentation. You must include:",
3318
+ step2AltAItem1Sub1: "@https://norwegianredcross.github.io/design-tokens/theme.css",
3319
+ step2AltAItem1Sub2: "@https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json",
3320
+ step2AltAItem2: "Paste Figma link: Paste the link from step 1.",
3321
+ step2AltAImageCaption: "",
3322
+ step2AltBTitle: "Alternative B: Automated with .cursorrules (Recommended)",
3323
+ step2AltBDescription: "Use this to avoid attaching documentation every time. With a .cursorrules file in the project root, the AI always knows which rules apply.",
3324
+ step2AltBSetupTitle: "1. Setup (Done once per project):",
3325
+ step2AltBSetupText: "Create a file named .cursorrules in the project root folder and give context by pasting this:",
3326
+ step2AltBCodeBlock: `You are an expert Frontend Developer implementing designs from Figma.
3327
+
3328
+ ALWAYS follow these rules:
3329
+ 1. **Documentation:** Refer to the indexed design system documentation (@RedCross) for component usage, patterns, and guidelines.
3330
+ 2. **Metadata:** Use component metadata from: https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json
3331
+ 3. **Tokens:** Always use CSS variables/tokens defined in: https://norwegianredcross.github.io/design-tokens/theme.css (e.g., var(--spacing-md)).
3332
+ 4. **Figma MCP:** When a Figma link is provided, use the \`figma\` tool to inspect node properties.
3333
+
3334
+ Note: Make sure you have indexed the documentation (Step 0) before using these rules. Reference @RedCross in chat when you need design system context.`,
3335
+ step2AltBUsageTitle: "2. In daily use:",
3336
+ 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.",
3337
+ step3Title: "Step 3: Prompt",
3338
+ step3Description: "Give an instruction that connects the design to the codebase. You can use this template:",
3339
+ step3Prompt: `"Using the design at this Figma link and the context from the provided documentation/rules:
3340
+
3341
+ Create a React component for this section.
3342
+
3343
+ Strictly use tokens found in the documentation (colors, spacing) - no magic numbers.
3344
+
3345
+ Map design elements to our existing components where possible (e.g. Buttons, Headings)."`,
3346
+ step4Title: "Step 4: Generation and Review",
3347
+ step4Item1: "The AI now uses MCP to read the node data and generates a code proposal.",
3348
+ step4ReviewTitle: "Review:",
3349
+ step4ReviewItem1: 'Check "Diff View" in Cursor.',
3350
+ step4ReviewItem2: "Are tokens used correctly? (e.g. var(--spacing-md)).",
3351
+ step4ReviewItem3: "Is the semantics good?",
3352
+ step4Apply: 'Apply: Click "Apply" to insert the code into your file.',
3353
+ proTipsTitle: "Tips for success",
3354
+ 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.`,
3355
+ 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
3356
  },
3495
3357
  metadataFiles: {
3496
3358
  title: "Metadata Files",
@@ -4012,78 +3874,78 @@ const cs = {
4012
3874
  }
4013
3875
  }
4014
3876
  }
4015
- }, Rt = Kt(void 0), Ka = ({ children: t }) => {
4016
- const [e, n] = re("NO"), s = (i) => {
4017
- const a = i.split(".");
4018
- let r = cs[e];
4019
- for (const d of a) {
4020
- if (r[d] === void 0)
3877
+ }, Ft = Vt(void 0), Oi = ({ children: t }) => {
3878
+ const [e, n] = ne("NO"), r = (i) => {
3879
+ const s = i.split(".");
3880
+ let o = os[e];
3881
+ for (const l of s) {
3882
+ if (o[l] === void 0)
4021
3883
  return console.warn(`Translation missing for key: ${i} in language: ${e}`), i;
4022
- r = r[d];
3884
+ o = o[l];
4023
3885
  }
4024
- return r;
3886
+ return o;
4025
3887
  };
4026
- return /* @__PURE__ */ o.jsx(Rt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
4027
- }, us = () => {
4028
- const t = Yt(Rt);
3888
+ return /* @__PURE__ */ d(Ft.Provider, { value: { language: e, setLanguage: n, t: r }, children: t });
3889
+ }, rs = () => {
3890
+ const t = Gt(Ft);
4029
3891
  if (t === void 0)
4030
3892
  throw new Error("useLanguage must be used within a LanguageProvider");
4031
3893
  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 = {
4033
- header: ms,
4034
- languageSwitch: gs,
4035
- searchOverlay: ps,
4036
- headerExtension: fs,
4037
- extensionContentWrapper: hs,
4038
- extensionContent: ks,
4039
- extensionDivider: bs,
4040
- languageLabel: vs,
4041
- languageLink: ys,
4042
- headerInner: xs,
4043
- logoWrapper: Ts,
4044
- logo: Ss,
4045
- secondaryLogoWrapper: ws,
4046
- slotComponent: Cs,
4047
- slotContainer: js,
4048
- slotText: Ds,
4049
- secondaryLogo: Is,
4050
- redCrossLogo: Ls,
4051
- primaryLogo: As,
4052
- navItems: Fs,
4053
- navLink: _s,
4054
- actions: Es,
4055
- ctaButton: Bs,
4056
- themeToggle: Ns,
4057
- userInfo: Ps,
4058
- userName: Rs,
4059
- loginLink: zs,
4060
- loginText: Ms,
4061
- underline: Os,
4062
- searchButtonWrapper: $s,
4063
- buttonText: Hs,
4064
- menuButton: Ws,
4065
- menuOverlay: Vs,
4066
- searchContent: Gs,
4067
- menuContent: qs,
4068
- menuLeftColumn: Us,
4069
- menuRightColumn: Ks,
4070
- slotContent: Ys,
4071
- navList: Js,
4072
- menuUtilities: Zs,
4073
- menuBrand: Xs,
4074
- suggestionsSection: Qs,
4075
- suggestionsTitle: ea,
4076
- searchResults: ta,
4077
- resultList: na,
4078
- resultItem: ra,
4079
- resultLink: oa,
4080
- suggestionIcon: sa,
4081
- suggestionText: aa,
4082
- highlightedText: ia,
4083
- remainingText: la,
4084
- viewAllLink: da,
4085
- noResults: ca
4086
- }, ua = [
3894
+ }, ss = "_header_3zql2_1", is = "_languageSwitch_3zql2_36", as = "_searchOverlay_3zql2_40", ls = "_headerExtension_3zql2_45", ds = "_extensionContentWrapper_3zql2_61", cs = "_extensionContent_3zql2_61", us = "_extensionDivider_3zql2_84", ms = "_languageLabel_3zql2_98", gs = "_languageLink_3zql2_104", ps = "_headerInner_3zql2_129", fs = "_logoWrapper_3zql2_146", hs = "_logo_3zql2_146", ks = "_secondaryLogoWrapper_3zql2_169", vs = "_slotComponent_3zql2_178", bs = "_slotContainer_3zql2_188", ys = "_slotText_3zql2_196", Ts = "_secondaryLogo_3zql2_169", xs = "_redCrossLogo_3zql2_223", Ss = "_primaryLogo_3zql2_229", ws = "_navItems_3zql2_233", Cs = "_navLink_3zql2_242", Ds = "_actions_3zql2_255", Is = "_ctaButton_3zql2_263", As = "_themeToggle_3zql2_268", js = "_userInfo_3zql2_273", Ls = "_userName_3zql2_279", Fs = "_loginLink_3zql2_286", Bs = "_loginText_3zql2_295", Ns = "_underline_3zql2_302", Ps = "_searchButtonWrapper_3zql2_308", Ms = "_buttonText_3zql2_312", Es = "_menuButton_3zql2_317", _s = "_menuOverlay_3zql2_322", zs = "_searchContent_3zql2_356", Rs = "_menuContent_3zql2_366", $s = "_menuLeftColumn_3zql2_375", Hs = "_menuRightColumn_3zql2_381", Os = "_slotContent_3zql2_395", Ws = "_navList_3zql2_408", Vs = "_menuUtilities_3zql2_415", Gs = "_menuBrand_3zql2_422", Us = "_suggestionsSection_3zql2_426", qs = "_suggestionsTitle_3zql2_432", Ks = "_searchResults_3zql2_441", Ys = "_resultList_3zql2_447", Zs = "_resultItem_3zql2_453", Js = "_resultLink_3zql2_461", Qs = "_suggestionIcon_3zql2_475", Xs = "_suggestionText_3zql2_488", ei = "_highlightedText_3zql2_495", ti = "_remainingText_3zql2_500", ni = "_viewAllLink_3zql2_513", oi = "_noResults_3zql2_548", y = {
3895
+ header: ss,
3896
+ languageSwitch: is,
3897
+ searchOverlay: as,
3898
+ headerExtension: ls,
3899
+ extensionContentWrapper: ds,
3900
+ extensionContent: cs,
3901
+ extensionDivider: us,
3902
+ languageLabel: ms,
3903
+ languageLink: gs,
3904
+ headerInner: ps,
3905
+ logoWrapper: fs,
3906
+ logo: hs,
3907
+ secondaryLogoWrapper: ks,
3908
+ slotComponent: vs,
3909
+ slotContainer: bs,
3910
+ slotText: ys,
3911
+ secondaryLogo: Ts,
3912
+ redCrossLogo: xs,
3913
+ primaryLogo: Ss,
3914
+ navItems: ws,
3915
+ navLink: Cs,
3916
+ actions: Ds,
3917
+ ctaButton: Is,
3918
+ themeToggle: As,
3919
+ userInfo: js,
3920
+ userName: Ls,
3921
+ loginLink: Fs,
3922
+ loginText: Bs,
3923
+ underline: Ns,
3924
+ searchButtonWrapper: Ps,
3925
+ buttonText: Ms,
3926
+ menuButton: Es,
3927
+ menuOverlay: _s,
3928
+ searchContent: zs,
3929
+ menuContent: Rs,
3930
+ menuLeftColumn: $s,
3931
+ menuRightColumn: Hs,
3932
+ slotContent: Os,
3933
+ navList: Ws,
3934
+ menuUtilities: Vs,
3935
+ menuBrand: Gs,
3936
+ suggestionsSection: Us,
3937
+ suggestionsTitle: qs,
3938
+ searchResults: Ks,
3939
+ resultList: Ys,
3940
+ resultItem: Zs,
3941
+ resultLink: Js,
3942
+ suggestionIcon: Qs,
3943
+ suggestionText: Xs,
3944
+ highlightedText: ei,
3945
+ remainingText: ti,
3946
+ viewAllLink: ni,
3947
+ noResults: oi
3948
+ }, ri = [
4087
3949
  // Pages
4088
3950
  { id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
4089
3951
  { id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
@@ -4146,37 +4008,37 @@ const cs = {
4146
4008
  { id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
4147
4009
  { id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
4148
4010
  { id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
4149
- ], Ya = ({
4011
+ ], Wi = ({
4150
4012
  activePage: t,
4151
4013
  setPage: e,
4152
4014
  children: n,
4153
- showUser: s = !0,
4015
+ showUser: r = !0,
4154
4016
  showSearch: i = !0,
4155
- showLogin: a = !0,
4156
- showCta: r = !1,
4157
- ctaLabel: d,
4158
- ctaIcon: l = /* @__PURE__ */ o.jsx(tr, { "aria-hidden": !0 }),
4159
- onCtaClick: u,
4160
- showThemeToggle: y = !1,
4161
- secondaryLogo: f = !1,
4017
+ showLogin: s = !0,
4018
+ showCta: o = !1,
4019
+ ctaLabel: l,
4020
+ ctaIcon: a = /* @__PURE__ */ d(Jn, { "aria-hidden": !0 }),
4021
+ onCtaClick: c,
4022
+ showThemeToggle: b = !1,
4023
+ secondaryLogo: p = !1,
4162
4024
  secondaryLogoSrc: k,
4163
4025
  secondaryLogoSrcDark: g,
4164
- secondaryLogoAlt: h = "Secondary Logo",
4165
- navItems: b,
4026
+ secondaryLogoAlt: f = "Secondary Logo",
4027
+ navItems: h,
4166
4028
  showNavItems: v = !0,
4167
- showMenuButton: p = !0,
4168
- showHeaderExtension: m = !1,
4029
+ showMenuButton: m = !0,
4030
+ showHeaderExtension: u = !1,
4169
4031
  showModeToggle: T = !1,
4170
- showLanguageSwitch: _ = !1
4032
+ showLanguageSwitch: j = !1
4171
4033
  }) => {
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);
4173
- te(() => {
4034
+ const [A, L] = ne(!1), [w, I] = ne(!1), [F, z] = ne(""), [P, R] = ne("light"), { language: _, setLanguage: M, t: D } = rs(), [V, oe] = ne(!1);
4035
+ K(() => {
4174
4036
  const x = "rk-header-inline-styles";
4175
4037
  if (typeof document > "u" || document.getElementById(x)) return;
4176
- const D = ma(S), C = document.createElement("style");
4177
- C.id = x, C.textContent = D, document.head.appendChild(C);
4038
+ const C = si(y), N = document.createElement("style");
4039
+ N.id = x, N.textContent = C, document.head.appendChild(N);
4178
4040
  }, []);
4179
- const Y = () => /* @__PURE__ */ o.jsxs(
4041
+ const Z = () => /* @__PURE__ */ B(
4180
4042
  "svg",
4181
4043
  {
4182
4044
  width: "170",
@@ -4186,368 +4048,368 @@ const cs = {
4186
4048
  xmlns: "http://www.w3.org/2000/svg",
4187
4049
  "aria-hidden": !0,
4188
4050
  focusable: "false",
4189
- className: S.redCrossLogo,
4051
+ className: y.redCrossLogo,
4190
4052
  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" })
4053
+ /* @__PURE__ */ d("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" }),
4054
+ /* @__PURE__ */ d("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" }),
4055
+ /* @__PURE__ */ d("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" }),
4056
+ /* @__PURE__ */ d("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" }),
4057
+ /* @__PURE__ */ d("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" }),
4058
+ /* @__PURE__ */ d("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" }),
4059
+ /* @__PURE__ */ d("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" }),
4060
+ /* @__PURE__ */ d("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" }),
4061
+ /* @__PURE__ */ d("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
4062
+ /* @__PURE__ */ d("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
4201
4063
  ]
4202
4064
  }
4203
4065
  );
4204
- te(() => {
4205
- E(!1), L(!1), $("");
4206
- }, [t]), te(() => {
4207
- if (!(typeof document > "u") && F && q) {
4066
+ K(() => {
4067
+ L(!1), I(!1), z("");
4068
+ }, [t]), K(() => {
4069
+ if (!(typeof document > "u") && A && V) {
4208
4070
  const x = document.body.style.overflow;
4209
4071
  return document.body.style.overflow = "hidden", () => {
4210
4072
  document.body.style.overflow = x;
4211
4073
  };
4212
4074
  }
4213
- }, [F, q]), te(() => {
4075
+ }, [A, V]), K(() => {
4214
4076
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
4215
- const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
4216
- return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
4217
- x.removeEventListener ? x.removeEventListener("change", D) : x.removeListener(D);
4077
+ const x = window.matchMedia("(max-width: 850px)"), C = (N) => oe("matches" in N ? N.matches : x.matches);
4078
+ return C(x), x.addEventListener ? x.addEventListener("change", C) : x.addListener(C), () => {
4079
+ x.removeEventListener ? x.removeEventListener("change", C) : x.removeListener(C);
4218
4080
  };
4219
- }, []), te(() => {
4081
+ }, []), K(() => {
4220
4082
  if (typeof document > "u") return;
4221
- const x = document.querySelector(`.${S.header}`);
4083
+ const x = document.querySelector(`.${y.header}`);
4222
4084
  if (!x) return;
4223
- const D = () => {
4224
- const H = x.offsetHeight;
4225
- document.documentElement.style.setProperty("--header-height-mobile", `${H}px`);
4085
+ const C = () => {
4086
+ const O = x.offsetHeight;
4087
+ document.documentElement.style.setProperty("--header-height-mobile", `${O}px`);
4226
4088
  };
4227
- D(), window.addEventListener("resize", D);
4228
- const C = new ResizeObserver(() => {
4229
- D();
4089
+ C(), window.addEventListener("resize", C);
4090
+ const N = new ResizeObserver(() => {
4091
+ C();
4230
4092
  });
4231
- return C.observe(x), () => {
4232
- window.removeEventListener("resize", D), C.disconnect();
4093
+ return N.observe(x), () => {
4094
+ window.removeEventListener("resize", C), N.disconnect();
4233
4095
  };
4234
- }, [q]), te(() => {
4096
+ }, [V]), K(() => {
4235
4097
  if (typeof document > "u") return;
4236
- const x = document.querySelector(`.${S.logoWrapper}`);
4098
+ const x = document.querySelector(`.${y.logoWrapper}`);
4237
4099
  if (!x) return;
4238
- const D = () => {
4239
- const C = x.offsetWidth;
4240
- document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
4100
+ const C = () => {
4101
+ const N = x.offsetWidth;
4102
+ document.documentElement.style.setProperty("--rk-logo-width", `${N}px`);
4241
4103
  };
4242
- return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
4243
- }, [q]), te(() => {
4244
- if (typeof document > "u" || !j) {
4104
+ return C(), window.addEventListener("resize", C), () => window.removeEventListener("resize", C);
4105
+ }, [V]), K(() => {
4106
+ if (typeof document > "u" || !w) {
4245
4107
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
4246
4108
  return;
4247
4109
  }
4248
- const x = document.querySelector(`.${S.searchOverlay}`);
4110
+ const x = document.querySelector(`.${y.searchOverlay}`);
4249
4111
  if (!x) return;
4250
- const D = () => {
4251
- const H = x.offsetHeight;
4252
- document.documentElement.style.setProperty("--rk-search-overlay-height", `${H}px`);
4112
+ const C = () => {
4113
+ const O = x.offsetHeight;
4114
+ document.documentElement.style.setProperty("--rk-search-overlay-height", `${O}px`);
4253
4115
  };
4254
- requestAnimationFrame(D), window.addEventListener("resize", D);
4255
- const C = new ResizeObserver(D);
4256
- return C.observe(x), () => {
4257
- window.removeEventListener("resize", D), C.disconnect();
4116
+ requestAnimationFrame(C), window.addEventListener("resize", C);
4117
+ const N = new ResizeObserver(C);
4118
+ return N.observe(x), () => {
4119
+ window.removeEventListener("resize", C), N.disconnect();
4258
4120
  };
4259
- }, [j]);
4260
- const K = () => {
4261
- const x = N === "light" ? "dark" : "light";
4262
- W(x), document.documentElement.setAttribute("data-color-scheme", x);
4263
- }, oe = (x) => {
4264
- e && (x.preventDefault(), e("home")), E(!1), L(!1);
4265
- }, c = () => {
4266
- E(!F), j && L(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
4267
- const x = document.querySelector(`.${S.header}`);
4121
+ }, [w]);
4122
+ const Y = () => {
4123
+ const x = P === "light" ? "dark" : "light";
4124
+ R(x), document.documentElement.setAttribute("data-color-scheme", x);
4125
+ }, de = (x) => {
4126
+ e && (x.preventDefault(), e("home")), L(!1), I(!1);
4127
+ }, J = () => {
4128
+ L(!A), w && I(!1), !A && typeof document < "u" && requestAnimationFrame(() => {
4129
+ const x = document.querySelector(`.${y.header}`);
4268
4130
  if (x) {
4269
- const D = x.offsetHeight;
4270
- document.documentElement.style.setProperty("--header-height-mobile", `${D}px`);
4131
+ const C = x.offsetHeight;
4132
+ document.documentElement.style.setProperty("--header-height-mobile", `${C}px`);
4271
4133
  }
4272
4134
  });
4273
- }, A = () => {
4274
- L(!j), F && E(!1);
4275
- }, P = ve(() => {
4276
- if (!B.trim()) return [];
4277
- const x = B.toLowerCase();
4278
- return ua.filter(
4279
- (D) => D.title.toLowerCase().startsWith(x)
4135
+ }, ie = () => {
4136
+ I(!w), A && L(!1);
4137
+ }, Q = ye(() => {
4138
+ if (!F.trim()) return [];
4139
+ const x = F.toLowerCase();
4140
+ return ri.filter(
4141
+ (C) => C.title.toLowerCase().startsWith(x)
4280
4142
  );
4281
- }, [B]), M = (x) => {
4282
- e && e(x), L(!1), $("");
4143
+ }, [F]), X = (x) => {
4144
+ e && e(x), I(!1), z("");
4283
4145
  };
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,
4146
+ return /* @__PURE__ */ B("header", { className: y.header, "data-open": A ? "true" : "false", children: [
4147
+ u && /* @__PURE__ */ d("div", { className: y.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ B("div", { className: y.extensionContentWrapper, children: [
4148
+ T && /* @__PURE__ */ d("div", { className: y.extensionContent, children: /* @__PURE__ */ d(
4149
+ Ve,
4288
4150
  {
4289
4151
  "data-size": "sm",
4290
- checked: N === "dark",
4291
- onChange: K,
4292
- label: I("header.darkMode"),
4152
+ checked: P === "dark",
4153
+ onChange: Y,
4154
+ label: D("header.darkMode"),
4293
4155
  color: "neutral",
4294
4156
  "data-color-scheme": "light"
4295
4157
  }
4296
4158
  ) }),
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(
4302
- ee.Trigger,
4159
+ T && j && /* @__PURE__ */ d("div", { className: y.extensionDivider }),
4160
+ j && /* @__PURE__ */ B("div", { className: y.languageSwitch, children: [
4161
+ /* @__PURE__ */ d("span", { className: y.languageLabel, children: D("header.language") }),
4162
+ /* @__PURE__ */ B(q.TriggerContext, { children: [
4163
+ /* @__PURE__ */ B(
4164
+ q.Trigger,
4303
4165
  {
4304
- className: S.languageLink,
4305
- "aria-label": I("header.selectLanguage"),
4166
+ className: y.languageLink,
4167
+ "aria-label": D("header.selectLanguage"),
4306
4168
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4307
4169
  children: [
4308
- R,
4170
+ _,
4309
4171
  " ",
4310
- /* @__PURE__ */ o.jsx(gt, { "aria-hidden": !0 })
4172
+ /* @__PURE__ */ d(ut, { "aria-hidden": !0 })
4311
4173
  ]
4312
4174
  }
4313
4175
  ),
4314
- /* @__PURE__ */ o.jsx(
4315
- ee,
4176
+ /* @__PURE__ */ d(
4177
+ q,
4316
4178
  {
4317
- "data-color-scheme": N,
4179
+ "data-color-scheme": P,
4318
4180
  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)" }) })
4181
+ children: /* @__PURE__ */ B(q.List, { children: [
4182
+ /* @__PURE__ */ d(q.Item, { children: /* @__PURE__ */ d(q.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
4183
+ /* @__PURE__ */ d(q.Item, { children: /* @__PURE__ */ d(q.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
4322
4184
  ] })
4323
4185
  }
4324
4186
  )
4325
4187
  ] })
4326
4188
  ] })
4327
4189
  ] }) }),
4328
- /* @__PURE__ */ o.jsxs("div", { className: S.headerInner, children: [
4329
- /* @__PURE__ */ o.jsxs("div", { className: S.logoWrapper, children: [
4330
- /* @__PURE__ */ o.jsx(
4190
+ /* @__PURE__ */ B("div", { className: y.headerInner, children: [
4191
+ /* @__PURE__ */ B("div", { className: y.logoWrapper, children: [
4192
+ /* @__PURE__ */ d(
4331
4193
  Ne,
4332
4194
  {
4333
4195
  href: "/",
4334
- className: `${S.logo} ${S.primaryLogo}`,
4335
- "aria-label": I("header.homeAriaLabel"),
4336
- onClick: oe,
4337
- children: /* @__PURE__ */ o.jsx(Y, {})
4196
+ className: `${y.logo} ${y.primaryLogo}`,
4197
+ "aria-label": D("header.homeAriaLabel"),
4198
+ onClick: de,
4199
+ children: /* @__PURE__ */ d(Z, {})
4338
4200
  }
4339
4201
  ),
4340
- /* @__PURE__ */ o.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ o.jsx(
4202
+ /* @__PURE__ */ d("div", { className: y.secondaryLogoWrapper, children: p && k ? /* @__PURE__ */ d(
4341
4203
  "img",
4342
4204
  {
4343
- src: N === "dark" && g ? g : k,
4344
- alt: h,
4345
- className: S.secondaryLogo
4205
+ src: P === "dark" && g ? g : k,
4206
+ alt: f,
4207
+ className: y.secondaryLogo
4346
4208
  }
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 })
4209
+ ) : p ? /* @__PURE__ */ d("div", { className: y.slotComponent, children: /* @__PURE__ */ d("div", { className: y.slotContainer, children: /* @__PURE__ */ d("p", { className: y.slotText, children: "SLOT" }) }) }) : null })
4348
4210
  ] }),
4349
- v && b && b.length > 0 && !q && /* @__PURE__ */ o.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ o.jsx(
4211
+ v && h && h.length > 0 && !V && /* @__PURE__ */ d("nav", { className: y.navItems, children: h.map((x, C) => /* @__PURE__ */ d(
4350
4212
  Ne,
4351
4213
  {
4352
4214
  href: x.href,
4353
- className: S.navLink,
4354
- onClick: (C) => {
4355
- e && (C.preventDefault(), e(x.href));
4215
+ className: y.navLink,
4216
+ onClick: (N) => {
4217
+ e && (N.preventDefault(), e(x.href));
4356
4218
  },
4357
4219
  children: x.label
4358
4220
  },
4359
- D
4221
+ C
4360
4222
  )) }),
4361
- /* @__PURE__ */ o.jsxs("div", { className: S.actions, children: [
4362
- r && /* @__PURE__ */ o.jsxs(
4363
- ye,
4223
+ /* @__PURE__ */ B("div", { className: y.actions, children: [
4224
+ o && /* @__PURE__ */ B(
4225
+ Te,
4364
4226
  {
4365
4227
  variant: "primary",
4366
4228
  "data-color": "main",
4367
4229
  "data-size": "md",
4368
- className: S.ctaButton,
4369
- onClick: u,
4230
+ className: y.ctaButton,
4231
+ onClick: c,
4370
4232
  children: [
4371
- l,
4372
- /* @__PURE__ */ o.jsx("span", { className: S.buttonText, children: d || I("header.supportUs") })
4233
+ a,
4234
+ /* @__PURE__ */ d("span", { className: y.buttonText, children: l || D("header.supportUs") })
4373
4235
  ]
4374
4236
  }
4375
4237
  ),
4376
- !m && y && /* @__PURE__ */ o.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ o.jsx(
4377
- qe,
4238
+ !u && b && /* @__PURE__ */ d("div", { className: y.themeToggle, children: /* @__PURE__ */ d(
4239
+ Ve,
4378
4240
  {
4379
- checked: N === "dark",
4380
- onChange: K,
4381
- "aria-label": I("header.toggleTheme")
4241
+ checked: P === "dark",
4242
+ onChange: Y,
4243
+ "aria-label": D("header.toggleTheme")
4382
4244
  }
4383
4245
  ) }),
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" })
4246
+ r && /* @__PURE__ */ B("div", { className: y.userInfo, children: [
4247
+ /* @__PURE__ */ d(Ye, { "data-size": "md", className: y.userName, children: "Frodo Baggins" }),
4248
+ /* @__PURE__ */ d(Ct, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
4387
4249
  ] }),
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 })
4250
+ s && /* @__PURE__ */ B("a", { href: "#", className: y.loginLink, children: [
4251
+ /* @__PURE__ */ d("span", { className: y.loginText, children: D("header.login") }),
4252
+ /* @__PURE__ */ d("div", { className: y.underline })
4391
4253
  ] }),
4392
- i && /* @__PURE__ */ o.jsx("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ o.jsxs(
4393
- ye,
4254
+ i && /* @__PURE__ */ d("div", { className: y.searchButtonWrapper, children: /* @__PURE__ */ B(
4255
+ Te,
4394
4256
  {
4395
4257
  variant: "secondary",
4396
4258
  "data-color": "main",
4397
4259
  "data-size": "md",
4398
- onClick: A,
4399
- "aria-expanded": j,
4400
- "aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
4260
+ onClick: ie,
4261
+ "aria-expanded": w,
4262
+ "aria-label": D(w ? "header.closeSearch" : "header.openSearch"),
4401
4263
  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") })
4264
+ w ? /* @__PURE__ */ d(mt, { "aria-hidden": !0 }) : /* @__PURE__ */ d(gt, { "aria-hidden": !0 }),
4265
+ /* @__PURE__ */ d("span", { className: y.buttonText, children: D(w ? "header.close" : "header.search") })
4404
4266
  ]
4405
4267
  }
4406
4268
  ) }),
4407
- (p || q) && /* @__PURE__ */ o.jsxs(
4408
- ye,
4269
+ (m || V) && /* @__PURE__ */ B(
4270
+ Te,
4409
4271
  {
4410
4272
  variant: "primary",
4411
4273
  "data-color": "main",
4412
4274
  "data-size": "md",
4413
- onClick: c,
4414
- "aria-expanded": F,
4415
- "aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
4416
- className: S.menuButton,
4275
+ onClick: J,
4276
+ "aria-expanded": A,
4277
+ "aria-label": D(A ? "header.closeMenu" : "header.openMenu"),
4278
+ className: y.menuButton,
4417
4279
  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") })
4280
+ A ? /* @__PURE__ */ d(mt, { "aria-hidden": !0 }) : /* @__PURE__ */ d(Zn, { "aria-hidden": !0 }),
4281
+ /* @__PURE__ */ d("span", { className: y.buttonText, children: D(A ? "header.close" : "header.menu") })
4420
4282
  ]
4421
4283
  }
4422
4284
  )
4423
4285
  ] })
4424
4286
  ] }),
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(
4433
- ee.Trigger,
4287
+ A && /* @__PURE__ */ d("div", { className: y.menuOverlay, children: /* @__PURE__ */ B("div", { className: y.menuContent, children: [
4288
+ /* @__PURE__ */ d("div", { className: y.menuLeftColumn }),
4289
+ /* @__PURE__ */ B("div", { className: y.menuRightColumn, children: [
4290
+ V && (j || T) && /* @__PURE__ */ B("div", { className: y.menuUtilities, children: [
4291
+ j && /* @__PURE__ */ B("div", { className: y.languageSwitch, children: [
4292
+ /* @__PURE__ */ d("span", { className: y.languageLabel, children: D("header.language") }),
4293
+ /* @__PURE__ */ B(q.TriggerContext, { children: [
4294
+ /* @__PURE__ */ B(
4295
+ q.Trigger,
4434
4296
  {
4435
- className: S.languageLink,
4436
- "aria-label": I("header.selectLanguage"),
4297
+ className: y.languageLink,
4298
+ "aria-label": D("header.selectLanguage"),
4437
4299
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4438
4300
  children: [
4439
- R,
4301
+ _,
4440
4302
  " ",
4441
- /* @__PURE__ */ o.jsx(gt, { "aria-hidden": !0 })
4303
+ /* @__PURE__ */ d(ut, { "aria-hidden": !0 })
4442
4304
  ]
4443
4305
  }
4444
4306
  ),
4445
- /* @__PURE__ */ o.jsx(
4446
- ee,
4307
+ /* @__PURE__ */ d(
4308
+ q,
4447
4309
  {
4448
- "data-color-scheme": N,
4310
+ "data-color-scheme": P,
4449
4311
  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)" }) })
4312
+ children: /* @__PURE__ */ B(q.List, { children: [
4313
+ /* @__PURE__ */ d(q.Item, { children: /* @__PURE__ */ d(q.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
4314
+ /* @__PURE__ */ d(q.Item, { children: /* @__PURE__ */ d(q.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
4453
4315
  ] })
4454
4316
  }
4455
4317
  )
4456
4318
  ] })
4457
4319
  ] }),
4458
- T && /* @__PURE__ */ o.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ o.jsx(
4459
- qe,
4320
+ T && /* @__PURE__ */ d("div", { className: y.extensionContent, children: /* @__PURE__ */ d(
4321
+ Ve,
4460
4322
  {
4461
4323
  "data-size": "sm",
4462
- checked: N === "dark",
4463
- onChange: K,
4464
- label: I("header.darkMode"),
4324
+ checked: P === "dark",
4325
+ onChange: Y,
4326
+ label: D("header.darkMode"),
4465
4327
  color: "neutral",
4466
4328
  "data-color-scheme": "light"
4467
4329
  }
4468
4330
  ) })
4469
4331
  ] }),
4470
- /* @__PURE__ */ o.jsxs("div", { className: S.slotContent, children: [
4332
+ /* @__PURE__ */ B("div", { className: y.slotContent, children: [
4471
4333
  n,
4472
- q && v && b && b.length > 0 && /* @__PURE__ */ o.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ o.jsx(
4334
+ V && v && h && h.length > 0 && /* @__PURE__ */ d("nav", { className: y.navList, children: h.map((x, C) => /* @__PURE__ */ d(
4473
4335
  Ne,
4474
4336
  {
4475
4337
  href: x.href,
4476
- className: S.navLink,
4477
- onClick: (C) => {
4478
- e && (C.preventDefault(), e(x.href));
4338
+ className: y.navLink,
4339
+ onClick: (N) => {
4340
+ e && (N.preventDefault(), e(x.href));
4479
4341
  },
4480
4342
  children: x.label
4481
4343
  },
4482
- D
4344
+ C
4483
4345
  )) })
4484
4346
  ] }),
4485
- q && /* @__PURE__ */ o.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ o.jsx(Y, {}) })
4347
+ V && /* @__PURE__ */ d("div", { className: y.menuBrand, children: /* @__PURE__ */ d(Z, {}) })
4486
4348
  ] })
4487
4349
  ] }) }),
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(
4350
+ w && /* @__PURE__ */ d("div", { className: y.searchOverlay, children: /* @__PURE__ */ B("div", { className: y.searchContent, children: [
4351
+ /* @__PURE__ */ B(Pe, { children: [
4352
+ /* @__PURE__ */ d(
4491
4353
  Pe.Input,
4492
4354
  {
4493
- "aria-label": I("header.search"),
4494
- placeholder: I("header.searchPlaceholder"),
4495
- value: B,
4496
- onChange: (x) => $(x.target.value)
4355
+ "aria-label": D("header.search"),
4356
+ placeholder: D("header.searchPlaceholder"),
4357
+ value: F,
4358
+ onChange: (x) => z(x.target.value)
4497
4359
  }
4498
4360
  ),
4499
- /* @__PURE__ */ o.jsx(Pe.Button, { "aria-label": I("header.search") }),
4500
- /* @__PURE__ */ o.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": I("header.clearSearch") })
4361
+ /* @__PURE__ */ d(Pe.Button, { "aria-label": D("header.search") }),
4362
+ /* @__PURE__ */ d(Pe.ClearButton, { onClick: () => z(""), "aria-label": D("header.clearSearch") })
4501
4363
  ] }),
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(
4364
+ F && /* @__PURE__ */ d("div", { className: y.searchResults, children: Q.length > 0 ? /* @__PURE__ */ B("div", { className: y.suggestionsSection, children: [
4365
+ /* @__PURE__ */ d("h3", { className: y.suggestionsTitle, children: D("header.suggestions") }),
4366
+ /* @__PURE__ */ d("ul", { className: y.resultList, children: Q.slice(0, 5).map((x) => /* @__PURE__ */ d("li", { className: y.resultItem, children: /* @__PURE__ */ B(
4505
4367
  "button",
4506
4368
  {
4507
- className: S.resultLink,
4508
- onClick: () => M(x.path),
4369
+ className: y.resultLink,
4370
+ onClick: () => X(x.path),
4509
4371
  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 })
4372
+ /* @__PURE__ */ d("span", { className: y.suggestionIcon, children: /* @__PURE__ */ d(gt, { "aria-hidden": !0 }) }),
4373
+ /* @__PURE__ */ d("span", { className: y.suggestionText, children: (() => {
4374
+ const C = x.title.toLowerCase().indexOf(F.toLowerCase());
4375
+ if (C === -1) return /* @__PURE__ */ d("span", { className: y.remainingText, children: x.title });
4376
+ const N = x.title.slice(0, C), O = x.title.slice(C, C + F.length), te = x.title.slice(C + F.length);
4377
+ return /* @__PURE__ */ B(Ot, { children: [
4378
+ /* @__PURE__ */ d("span", { className: y.remainingText, children: N }),
4379
+ /* @__PURE__ */ d("span", { className: y.highlightedText, children: O }),
4380
+ /* @__PURE__ */ d("span", { className: y.remainingText, children: te })
4519
4381
  ] });
4520
4382
  })() })
4521
4383
  ]
4522
4384
  }
4523
4385
  ) }, x.id)) }),
4524
- P.length > 5 && /* @__PURE__ */ o.jsxs(
4386
+ Q.length > 5 && /* @__PURE__ */ B(
4525
4387
  Ne,
4526
4388
  {
4527
4389
  href: "#",
4528
4390
  "data-color": "neutral",
4529
- className: S.viewAllLink,
4391
+ className: y.viewAllLink,
4530
4392
  onClick: (x) => {
4531
- x.preventDefault(), e && e(`search/${B}`), L(!1), $("");
4393
+ x.preventDefault(), e && e(`search/${F}`), I(!1), z("");
4532
4394
  },
4533
4395
  children: [
4534
- I("header.viewAll"),
4396
+ D("header.viewAll"),
4535
4397
  " (",
4536
- P.length,
4398
+ Q.length,
4537
4399
  ")"
4538
4400
  ]
4539
4401
  }
4540
4402
  )
4541
- ] }) : /* @__PURE__ */ o.jsx("div", { className: S.noResults, children: /* @__PURE__ */ o.jsxs(Ze, { children: [
4542
- I("header.noResults"),
4403
+ ] }) : /* @__PURE__ */ d("div", { className: y.noResults, children: /* @__PURE__ */ B(Ye, { children: [
4404
+ D("header.noResults"),
4543
4405
  ' "',
4544
- B,
4406
+ F,
4545
4407
  '"'
4546
4408
  ] }) }) })
4547
4409
  ] }) })
4548
4410
  ] });
4549
4411
  };
4550
- function ma(t) {
4412
+ function si(t) {
4551
4413
  const e = t;
4552
4414
  return `
4553
4415
  .${e.header} {
@@ -4678,59 +4540,59 @@ function ma(t) {
4678
4540
  `;
4679
4541
  }
4680
4542
  export {
4681
- sr as Alert,
4682
- Ft as Avatar,
4683
- ar as Badge,
4684
- ka as BadgePosition,
4685
- ba as Breadcrumbs,
4686
- ya as BreadcrumbsItem,
4687
- xa as BreadcrumbsLink,
4688
- va as BreadcrumbsList,
4689
- ye as Button,
4690
- ir as Card,
4691
- Ta as CardBlock,
4692
- rs as Carousel,
4693
- lr as Checkbox,
4694
- wa as Chip,
4695
- ao as DateInput,
4696
- Xr as DatePicker,
4697
- Ca as Details,
4698
- ja as Dialog,
4699
- Da as Divider,
4700
- ee as Dropdown,
4701
- Ia as ErrorSummary,
4702
- La as Field,
4703
- ss as FieldCounter,
4704
- os as FieldDescription,
4705
- Aa as Fieldset,
4706
- Ya as Header,
4707
- as as Heading,
4708
- Fa as Input,
4709
- is as Label,
4710
- Ka as LanguageProvider,
4543
+ Qn as Alert,
4544
+ Ct as Avatar,
4545
+ Xn as Badge,
4546
+ ui as BadgePosition,
4547
+ mi as Breadcrumbs,
4548
+ pi as BreadcrumbsItem,
4549
+ fi as BreadcrumbsLink,
4550
+ gi as BreadcrumbsList,
4551
+ Te as Button,
4552
+ eo as Card,
4553
+ hi as CardBlock,
4554
+ Zr as Carousel,
4555
+ to as Checkbox,
4556
+ vi as Chip,
4557
+ er as DateInput,
4558
+ Uo as DatePicker,
4559
+ bi as Details,
4560
+ yi as Dialog,
4561
+ Ti as Divider,
4562
+ q as Dropdown,
4563
+ xi as ErrorSummary,
4564
+ Si as Field,
4565
+ Qr as FieldCounter,
4566
+ Jr as FieldDescription,
4567
+ wi as Fieldset,
4568
+ Wi as Header,
4569
+ Xr as Heading,
4570
+ Ci as Input,
4571
+ es as Label,
4572
+ Oi as LanguageProvider,
4711
4573
  Ne as Link,
4712
- _a as List,
4713
- Ea as Pagination,
4714
- Ze as Paragraph,
4715
- Na as Popover,
4716
- Pa as Radio,
4574
+ Di as List,
4575
+ Ii as Pagination,
4576
+ Ye as Paragraph,
4577
+ ji as Popover,
4578
+ Li as Radio,
4717
4579
  Pe as Search,
4718
- za as Select,
4719
- Ma as SkeletonLoader,
4720
- Oa as SkipLink,
4721
- ns as Spinner,
4722
- ls as Suggestion,
4723
- qe as Switch,
4724
- $a as Table,
4725
- Ha as Tabs,
4726
- Wa as Tag,
4727
- Va as Textarea,
4728
- Ga as Textfield,
4729
- qa as ToggleGroup,
4730
- Ua as Tooltip,
4731
- ds as ValidationMessage,
4732
- Sa as useCheckboxGroup,
4733
- us as useLanguage,
4734
- Ba as usePagination,
4735
- Ra as useRadioGroup
4580
+ Bi as Select,
4581
+ Ni as SkeletonLoader,
4582
+ Pi as SkipLink,
4583
+ Yr as Spinner,
4584
+ ts as Suggestion,
4585
+ Ve as Switch,
4586
+ Mi as Table,
4587
+ Ei as Tabs,
4588
+ _i as Tag,
4589
+ zi as Textarea,
4590
+ Ri as Textfield,
4591
+ $i as ToggleGroup,
4592
+ Hi as Tooltip,
4593
+ ns as ValidationMessage,
4594
+ ki as useCheckboxGroup,
4595
+ rs as useLanguage,
4596
+ Ai as usePagination,
4597
+ Fi as useRadioGroup
4736
4598
  };