rk-designsystem 1.1.58 → 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 oe, useEffect as te, useMemo as be, useCallback as ae, useRef as qe, createContext as Kt, useContext as Yt } from "react";
2
- import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as on, Button as Ke, Card as rn, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as mn, Divider as pn, Dropdown as gn, ErrorSummary as fn, Field as hn, FieldDescription as kn, FieldCounter as vn, Heading as bn, Input as yn, Label as xn, Link as Tn, List as Sn, Pagination as wn, usePagination as Cn, Paragraph as jn, Popover as Dn, Radio as In, useRadioGroup as An, Search as Ln, SearchInput as Fn, SearchClear as Bn, SearchButton as En, Select as Nn, Skeleton as _n, SkipLink as Pn, EXPERIMENTAL_Suggestion as Rn, Switch as Mn, Table as zn, Tabs as On, Tag as $n, Textarea as Hn, Textfield as Wn, ToggleGroup as Vn, Tooltip as Gn, ValidationMessage as Un } from "@digdir/designsystemet-react";
3
- import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as At, format as Te, addDays as Lt, subMonths as qn, addMonths as Kn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
4
- import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as pt, XMarkIcon as gt, MagnifyingGlassIcon as ft, MenuHamburgerIcon as eo, HeartIcon as to } from "@navikt/aksel-icons";
5
- var Ne = { exports: {} }, Se = {};
6
- /**
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 no() {
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 o = null;
22
- if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + 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: o,
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 oo() {
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 === _ ? null : c.displayName || c.name || null;
54
- if (typeof c == "string") return c;
55
- switch (c) {
56
- case b:
57
- return "Fragment";
58
- case m:
59
- return "Profiler";
60
- case g:
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 v:
74
- return "Portal";
75
- case B:
76
- return c.displayName || "Context";
77
- case T:
78
- return (c._context.displayName || "Context") + ".Consumer";
79
- case F:
80
- var L = c.render;
81
- return c = c.displayName, c || (c = L.displayName || L.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
82
- case A:
83
- return L = c.displayName || null, L !== null ? L : t(c.type) || "Memo";
84
- case N:
85
- L = c._payload, c = c._init;
86
- try {
87
- return t(c(L));
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 L = !1;
100
- } catch {
101
- L = !0;
102
- }
103
- if (L) {
104
- L = console;
105
- var P = L.error, z = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
106
- return P.call(
107
- L,
108
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- z
110
- ), e(c);
111
- }
112
- }
113
- function s(c) {
114
- if (c === b) return "<>";
115
- if (typeof c == "object" && c !== null && c.$$typeof === N)
116
- return "<...>";
117
- try {
118
- var L = t(c);
119
- return L ? "<" + L + ">" : "<...>";
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 o(c) {
132
- if (R.call(c, "key")) {
133
- var L = Object.getOwnPropertyDescriptor(c, "key").get;
134
- if (L && L.isReactWarning) return !1;
135
- }
136
- return c.key !== void 0;
137
- }
138
- function d(c, L) {
139
- function P() {
140
- U || (U = !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
- L
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, L, P, z, x, D) {
157
- var C = P.ref;
158
- return c = {
159
- $$typeof: h,
160
- type: c,
161
- key: L,
162
- props: P,
163
- _owner: z
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, L, P, z, x, D) {
190
- var C = L.children;
191
- if (C !== void 0)
192
- if (z)
193
- if (M(C)) {
194
- for (z = 0; z < C.length; z++)
195
- f(C[z]);
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(L, "key")) {
203
- C = t(c);
204
- var H = Object.keys(L).filter(function(X) {
205
- return X !== "key";
206
- });
207
- z = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", re[C + z] || (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
- z,
215
- C,
216
- H,
217
- C
218
- ), re[C + z] = !0);
219
- }
220
- if (C = null, P !== void 0 && (n(P), C = "" + P), o(L) && (n(L.key), C = "" + L.key), "key" in L) {
221
- P = {};
222
- for (var J in L)
223
- J !== "key" && (P[J] = L[J]);
224
- } else P = L;
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 === N && (c._payload.status === "fulfilled" ? k(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
239
- }
240
- function k(c) {
241
- return typeof c == "object" && c !== null && c.$$typeof === h;
242
- }
243
- var p = Dt, h = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), B = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), _ = Symbol.for("react.client.reference"), W = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, R = Object.prototype.hasOwnProperty, M = Array.isArray, I = console.createTask ? console.createTask : function() {
244
- return null;
245
- };
246
- p = {
247
- react_stack_bottom_frame: function(c) {
248
- return c();
249
- }
250
- };
251
- var U, ne = {}, Y = p.react_stack_bottom_frame.bind(
252
- p,
253
- a
254
- )(), K = I(s(a)), re = {};
255
- we.Fragment = b, we.jsx = function(c, L, P) {
256
- var z = 1e4 > W.recentlyCreatedOwnerStacks++;
257
- return y(
258
- c,
259
- L,
260
- P,
261
- !1,
262
- z ? Error("react-stack-top-frame") : Y,
263
- z ? I(s(c)) : K
264
- );
265
- }, we.jsxs = function(c, L, P) {
266
- var z = 1e4 > W.recentlyCreatedOwnerStacks++;
267
- return y(
268
- c,
269
- L,
270
- P,
271
- !0,
272
- z ? Error("react-stack-top-frame") : Y,
273
- z ? I(s(c)) : K
274
- );
275
- };
276
- })()), we;
277
- }
278
- var vt;
279
- function ro() {
280
- return vt || (vt = 1, process.env.NODE_ENV === "production" ? Ne.exports = no() : Ne.exports = oo()), Ne.exports;
281
- }
282
- var r = ro();
283
- const so = ue((t, e) => /* @__PURE__ */ r.jsx(Jt, { ref: e, ...t }));
284
- so.displayName = "Alert";
285
- const Ft = ue((t, e) => /* @__PURE__ */ r.jsx(Zt, { ref: e, ...t }));
286
- Ft.displayName = "Avatar";
287
- const ao = ue((t, e) => /* @__PURE__ */ r.jsx(Qt, { ref: e, ...t }));
288
- ao.displayName = "Badge";
289
- const ka = Xt, va = en, ba = tn, ya = nn, xa = on, ye = Ke;
290
- ye.displayName = "Button";
291
- const io = rn, Ta = sn;
292
- io.displayName = "Card";
293
- const lo = an, co = It, Sa = ln;
294
- lo.displayName = "Checkbox";
295
- co.displayName = "Fieldset";
296
- 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 o = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : o;
309
- i = t.formattingValues[d] || t.formattingValues[o];
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 o = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
312
- i = t.values[d] || t.values[o];
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 o = a[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? mo(d, (f) => f.test(o)) : (
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
- uo(d, (f) => f.test(o))
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(o.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 uo(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 mo(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 po(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 o = t.valueCallback ? t.valueCallback(a[0]) : a[0];
75
+ let o = t.valueCallback ? t.valueCallback(s[0]) : s[0];
353
76
  o = n.valueCallback ? n.valueCallback(o) : o;
354
- const d = e.slice(i.length);
355
- return { value: o, rest: d };
77
+ const l = e.slice(i.length);
78
+ return { value: o, rest: l };
356
79
  };
357
80
  }
358
- const go = {
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 go = {
417
140
  one: "nesten ett år",
418
141
  other: "nesten {{count}} år"
419
142
  }
420
- }, fo = (t, e, n) => {
421
- let s;
422
- const i = go[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
- }, ho = {
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
- }, ko = {
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
- }, vo = {
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
- }, bo = {
440
- date: Ge({
441
- formats: ho,
162
+ }, mo = {
163
+ date: We({
164
+ formats: lo,
442
165
  defaultWidth: "full"
443
166
  }),
444
- time: Ge({
445
- formats: ko,
167
+ time: We({
168
+ formats: co,
446
169
  defaultWidth: "full"
447
170
  }),
448
- dateTime: Ge({
449
- formats: vo,
171
+ dateTime: We({
172
+ formats: uo,
450
173
  defaultWidth: "full"
451
174
  })
452
- }, yo = {
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
- }, xo = (t, e, n, s) => yo[t], To = {
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
- }, So = {
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
- }, wo = {
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 go = {
494
217
  "november",
495
218
  "desember"
496
219
  ]
497
- }, Co = {
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 go = {
507
230
  "fredag",
508
231
  "lørdag"
509
232
  ]
510
- }, jo = {
233
+ }, bo = {
511
234
  narrow: {
512
235
  am: "a",
513
236
  pm: "p",
@@ -538,46 +261,46 @@ const go = {
538
261
  evening: "på kvelden",
539
262
  night: "på natten"
540
263
  }
541
- }, Do = (t, e) => Number(t) + ".", Io = {
542
- ordinalNumber: Do,
543
- era: Ce({
544
- values: To,
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: So,
270
+ quarter: we({
271
+ values: ho,
549
272
  defaultWidth: "wide",
550
273
  argumentCallback: (t) => t - 1
551
274
  }),
552
- month: Ce({
553
- values: wo,
275
+ month: we({
276
+ values: ko,
554
277
  defaultWidth: "wide"
555
278
  }),
556
- day: Ce({
557
- values: Co,
279
+ day: we({
280
+ values: vo,
558
281
  defaultWidth: "wide"
559
282
  }),
560
- dayPeriod: Ce({
561
- values: jo,
283
+ dayPeriod: we({
284
+ values: bo,
562
285
  defaultWidth: "wide"
563
286
  })
564
- }, Ao = /^(\d+)\.?/i, Lo = /\d+/i, Fo = {
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
- }, Bo = {
291
+ }, Co = {
569
292
  any: [/^f/i, /^e/i]
570
- }, Eo = {
293
+ }, Do = {
571
294
  narrow: /^[1234]/i,
572
295
  abbreviated: /^q[1234]/i,
573
296
  wide: /^[1234](\.)? kvartal/i
574
- }, No = {
297
+ }, Io = {
575
298
  any: [/1/i, /2/i, /3/i, /4/i]
576
- }, _o = {
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
- }, Po = {
303
+ }, jo = {
581
304
  narrow: [
582
305
  /^j/i,
583
306
  /^f/i,
@@ -606,17 +329,17 @@ const go = {
606
329
  /^n/i,
607
330
  /^d/i
608
331
  ]
609
- }, Ro = {
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
- }, Mo = {
337
+ }, Fo = {
615
338
  any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
616
- }, zo = {
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
- }, Oo = {
342
+ }, No = {
620
343
  any: {
621
344
  am: /^a(\.?\s?m\.?)?$/i,
622
345
  pm: /^p(\.?\s?m\.?)?$/i,
@@ -627,55 +350,55 @@ const go = {
627
350
  evening: /kveld/i,
628
351
  night: /natt/i
629
352
  }
630
- }, $o = {
631
- ordinalNumber: po({
632
- matchPattern: Ao,
633
- parsePattern: Lo,
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: Fo,
359
+ era: Ce({
360
+ matchPatterns: wo,
638
361
  defaultMatchWidth: "wide",
639
- parsePatterns: Bo,
362
+ parsePatterns: Co,
640
363
  defaultParseWidth: "any"
641
364
  }),
642
- quarter: je({
643
- matchPatterns: Eo,
365
+ quarter: Ce({
366
+ matchPatterns: Do,
644
367
  defaultMatchWidth: "wide",
645
- parsePatterns: No,
368
+ parsePatterns: Io,
646
369
  defaultParseWidth: "any",
647
370
  valueCallback: (t) => t + 1
648
371
  }),
649
- month: je({
650
- matchPatterns: _o,
372
+ month: Ce({
373
+ matchPatterns: Ao,
651
374
  defaultMatchWidth: "wide",
652
- parsePatterns: Po,
375
+ parsePatterns: jo,
653
376
  defaultParseWidth: "any"
654
377
  }),
655
- day: je({
656
- matchPatterns: Ro,
378
+ day: Ce({
379
+ matchPatterns: Lo,
657
380
  defaultMatchWidth: "wide",
658
- parsePatterns: Mo,
381
+ parsePatterns: Fo,
659
382
  defaultParseWidth: "any"
660
383
  }),
661
- dayPeriod: je({
662
- matchPatterns: zo,
384
+ dayPeriod: Ce({
385
+ matchPatterns: Bo,
663
386
  defaultMatchWidth: "any",
664
- parsePatterns: Oo,
387
+ parsePatterns: No,
665
388
  defaultParseWidth: "any"
666
389
  })
667
- }, ve = {
390
+ }, be = {
668
391
  code: "nb",
669
- formatDistance: fo,
670
- formatLong: bo,
671
- formatRelative: xo,
672
- localize: Io,
673
- match: $o,
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
- }, Bt = ({ title: t, ...e }) => /* @__PURE__ */ r.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 go = {
687
410
  focusable: "false",
688
411
  ...e,
689
412
  children: [
690
- t && /* @__PURE__ */ r.jsx("title", { children: t }),
691
- /* @__PURE__ */ r.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 go = {
700
423
  ]
701
424
  }
702
425
  );
703
- Bt.displayName = "ChevronLeftIcon";
704
- const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.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__ */ r.jsxs(
713
436
  focusable: "false",
714
437
  ...e,
715
438
  children: [
716
- t && /* @__PURE__ */ r.jsx("title", { children: t }),
717
- /* @__PURE__ */ r.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__ */ r.jsxs(
726
449
  ]
727
450
  }
728
451
  );
729
- Et.displayName = "ChevronRightIcon";
730
- const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Uo = "_grid_10l5p_41", qo = "_dayNameCell_10l5p_48", Ko = "_dateCell_10l5p_65", Yo = "_dateNumberContainer_10l5p_90", Jo = "_otherMonth_10l5p_103", Zo = "_selectedDate_10l5p_129", se = {
731
- calendarContainer: Ho,
732
- calendarHeader: Wo,
733
- monthYear: Vo,
734
- navigationButtons: Go,
735
- grid: Uo,
736
- dayNameCell: qo,
737
- dateCell: Ko,
738
- dateNumberContainer: Yo,
739
- otherMonth: Jo,
740
- selectedDate: Zo
741
- }, Xo = (t) => {
742
- const e = ke(t), n = At(e, { locale: ve }), s = Lt(n, 41);
743
- return Zn({ start: n, end: s });
744
- }, bt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Qo = ({
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, o] = oe(
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) || o(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 = be(() => ke(/* @__PURE__ */ new Date()), []), l = be(() => !1, [a, d]), u = be(
764
- () => Xo(a),
765
- [a]
766
- ), y = be(() => {
767
- const m = At(/* @__PURE__ */ new Date(), { locale: ve });
768
- return Array.from({ length: 7 }).map((T, B) => {
769
- const F = Te(Lt(m, B), "EEEEEE", { locale: ve });
770
- return bt(F);
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 || o((m) => ke(qn(m, 1)));
774
- }, [l]), k = ae(() => {
775
- o((m) => ke(Kn(m, 1)));
776
- }, []), p = 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(), p(T));
504
+ ), f = se(
505
+ (u, T) => {
506
+ (u.key === "Enter" || u.key === " ") && (u.preventDefault(), g(T));
784
507
  },
785
- [p]
786
- ), v = Te(a, "MMMM", { locale: ve }), b = Te(a, "yyyy", { locale: ve }), g = `${bt(v)} ${b}`;
787
- return /* @__PURE__ */ r.jsxs(
508
+ [g]
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__ */ r.jsxs("div", { className: se.calendarHeader, children: [
795
- /* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: g }),
796
- /* @__PURE__ */ r.jsxs("div", { className: se.navigationButtons, children: [
797
- /* @__PURE__ */ r.jsx(
798
- 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__ */ r.jsx(Bt, {})
527
+ disabled: a,
528
+ children: /* @__PURE__ */ d(Dt, {})
806
529
  }
807
530
  ),
808
- /* @__PURE__ */ r.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__ */ r.jsx(Et, {})
538
+ children: /* @__PURE__ */ d(It, {})
816
539
  }
817
540
  )
818
541
  ] })
819
542
  ] }),
820
- /* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
821
- /* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((m) => {
822
- const T = mt(m, a), B = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
823
- se.dateCell,
824
- T ? "" : se.otherMonth,
825
- B ? 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 && !B ? se.todayDate : ""
550
+ A && !j ? re.todayDate : ""
828
551
  ].filter(Boolean).join(" ");
829
- return /* @__PURE__ */ r.jsx(
552
+ return /* @__PURE__ */ d(
830
553
  "div",
831
554
  {
832
- className: E,
833
- onClick: () => p(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": B ?? !1,
838
- "aria-label": Te(m, "PPP", { locale: ve }),
839
- children: /* @__PURE__ */ r.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
- Qo.displayName = "DatePicker";
849
- const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7_21", or = "_inputWrapper_16fx7_30", rr = "_inputWrapperError_16fx7_42", sr = "_suffixButton_16fx7_80", ar = "_suffixButtonInteractive_16fx7_100", ge = {
850
- fieldset: er,
851
- description: tr,
852
- error: nr,
853
- inputWrapper: or,
854
- inputWrapperError: rr,
855
- suffixButton: sr,
856
- suffixButtonInteractive: ar
857
- }, 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,516 +591,516 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_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
- }, ir = 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
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
- id: p,
889
- name: h,
890
- required: v,
891
- disabled: b,
892
- onClick: g,
893
- onFocus: m,
611
+ id: g,
612
+ name: f,
613
+ required: h,
614
+ disabled: v,
615
+ onClick: m,
616
+ onFocus: u,
894
617
  // Send ekstern onFocus videre
895
618
  onBlur: T,
896
619
  // Send ekstern onBlur videre
897
- autoComplete: B = "off",
898
- "aria-label": F,
899
- "aria-labelledby": E,
900
- description: j,
901
- error: A,
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": N,
626
+ "data-color": F,
904
627
  // <-- Destrukturering
905
- "data-size": $,
628
+ "data-size": z,
906
629
  // <-- Destrukturering
907
- ..._
908
- } = t, W = l !== void 0, R = qe(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 M = 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, U] = oe(
920
- () => M(l ?? u)
642
+ ), [D, V] = ne(
643
+ () => M(a ?? c)
921
644
  );
922
- te(() => {
923
- if (W) {
924
- const D = M(l);
925
- D !== I && (U(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, M]);
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 && (U(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, M]
944
- ), Y = [ge.fieldset, a].filter(Boolean).join(" "), K = [
945
- ge.inputWrapper,
666
+ [D, R, b, M]
667
+ ), Z = [fe.fieldset, s].filter(Boolean).join(" "), Y = [
668
+ fe.inputWrapper,
946
669
  o,
947
- A ? ge.inputWrapperError : ""
948
- ].filter(Boolean).join(" "), re = [
949
- d
950
- ].filter(Boolean).join(" "), c = [
951
- ge.suffixButton,
952
- i ? ge.suffixButtonInteractive : ""
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 L = n && typeof n == "string" ? E || `${p}-label` : void 0, P = j ? `${p}-desc` : void 0, z = A ? `${p}-err` : void 0, x = [P, z].filter(Boolean).join(" ") || void 0;
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__ */ r.jsxs(
681
+ /* @__PURE__ */ B(
959
682
  "div",
960
683
  {
961
- className: Y,
962
- "data-color": N,
963
- "data-size": $,
684
+ className: Z,
685
+ "data-color": F,
686
+ "data-size": z,
964
687
  children: [
965
- n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: L, htmlFor: p, children: n }) : n,
966
- j && /* @__PURE__ */ r.jsx("p", { id: P, className: ge.description, children: j }),
967
- /* @__PURE__ */ r.jsxs("div", { className: K, children: [
968
- /* @__PURE__ */ r.jsx(
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
- id: p,
980
- name: h,
981
- required: v,
982
- disabled: b,
983
- onClick: g,
984
- onChange: ne,
985
- onFocus: m,
702
+ id: g,
703
+ name: f,
704
+ required: h,
705
+ disabled: v,
706
+ onClick: m,
707
+ onChange: oe,
708
+ onFocus: u,
986
709
  onBlur: T,
987
- autoComplete: B,
988
- "aria-label": F,
989
- "aria-labelledby": L,
710
+ autoComplete: j,
711
+ "aria-label": A,
712
+ "aria-labelledby": ie,
990
713
  "aria-describedby": x,
991
- "aria-invalid": !!A,
992
- className: re,
993
- ..._
714
+ "aria-invalid": !!I,
715
+ className: de,
716
+ ...P
994
717
  }
995
718
  ),
996
- s && /* @__PURE__ */ r.jsx(
719
+ r && /* @__PURE__ */ d(
997
720
  "button",
998
721
  {
999
722
  type: "button",
1000
- className: c,
1001
- onClick: b ? void 0 : i,
1002
- tabIndex: i && !b ? 0 : -1,
723
+ className: J,
724
+ onClick: v ? void 0 : i,
725
+ tabIndex: i && !v ? 0 : -1,
1003
726
  "aria-hidden": !i,
1004
- disabled: b,
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
- A && /* @__PURE__ */ r.jsx("p", { id: z, className: ge.error, role: "alert", children: A })
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
- ir.displayName = "DateInput";
1018
- function lr(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 lr(t) || Array.isArray(t);
744
+ function vt(t) {
745
+ return tr(t) || Array.isArray(t);
1023
746
  }
1024
- function dr() {
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((o) => {
1032
- const d = t[o], l = e[o];
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 cr(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 o = s[a];
1044
- return Xe(i, o);
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 Me(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 q(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 q(t - e);
789
+ return W(t - e);
1067
790
  }
1068
- function ur(t, e) {
1069
- if (t === 0 || e === 0 || q(t) <= q(e)) return 0;
1070
- const n = Ie(q(t), q(e));
1071
- return q(n / t);
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 mr(t) {
796
+ function sr(t) {
1074
797
  return Math.round(t * 100) / 100;
1075
798
  }
1076
799
  function Ae(t) {
1077
- return Le(t).map(Number);
800
+ return je(t).map(Number);
1078
801
  }
1079
- function ie(t) {
1080
- return t[Be(t)];
802
+ function ae(t) {
803
+ return t[Fe(t)];
1081
804
  }
1082
- function Be(t) {
805
+ function Fe(t) {
1083
806
  return Math.max(0, t.length - 1);
1084
807
  }
1085
- function tt(t, e) {
1086
- return e === Be(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 Le(t) {
814
+ function je(t) {
1092
815
  return Object.keys(t);
1093
816
  }
1094
- function Nt(t, e) {
1095
- return [t, e].reduce((n, s) => (Le(s).forEach((i) => {
1096
- const a = n[i], o = s[i], d = Ct(a) && Ct(o);
1097
- n[i] = d ? Nt(a, o) : o;
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 pr(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 o(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
845
  measure: o
1123
846
  };
1124
847
  }
1125
- function Fe() {
848
+ function Le() {
1126
849
  let t = [];
1127
- function e(i, a, o, 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, o, d), l = () => i.removeEventListener(a, o, d);
855
+ i.addEventListener(s, o, l), a = () => i.removeEventListener(s, o, l);
1133
856
  else {
1134
- const u = i;
1135
- u.addListener(o), l = () => u.removeListener(o);
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 gr(t, e, n, s) {
1149
- const i = Fe(), a = 1e3 / 60;
1150
- let o = 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() {
1157
- p(), i.clear();
879
+ function b() {
880
+ g(), i.clear();
1158
881
  }
1159
- function f(b) {
1160
- if (!l) return;
1161
- o || (o = b, n(), n());
1162
- const g = b - o;
1163
- for (o = b, d += g; 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
- function p() {
1172
- e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
894
+ function g() {
895
+ e.cancelAnimationFrame(a), o = null, l = 0, a = 0;
1173
896
  }
1174
- function h() {
1175
- o = 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
- stop: p,
904
+ stop: g,
1182
905
  update: n,
1183
- render: s
906
+ render: r
1184
907
  };
1185
908
  }
1186
- function fr(t, e) {
1187
- const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y", o = !s && n ? -1 : 1, d = y(), l = f();
1188
- 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: v,
1191
- width: b
1192
- } = h;
1193
- return s ? v : b;
913
+ height: h,
914
+ width: 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 * o;
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 = q(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 o(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
957
  constrain: o,
1235
- reachedAny: a,
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 _t(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 = o(e);
966
+ constrain: r
967
+ } = he(0, t), i = t + 1;
968
+ let s = o(e);
1246
969
  function o(k) {
1247
- return n ? q((i + k) % i) : s(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 = o(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 _t(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 hr(t, e, n, s, i, a, o, d, l, u, y, f, k, p, h, v, b, g, 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: B
1273
- } = t, F = ["INPUT", "SELECT", "TEXTAREA"], E = {
995
+ direction: j
996
+ } = t, A = ["INPUT", "SELECT", "TEXTAREA"], L = {
1274
997
  passive: !1
1275
- }, j = Fe(), A = Fe(), N = fe(50, 225).constrain(p.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
- }, _ = {
1001
+ }, P = {
1279
1002
  mouse: 500,
1280
1003
  touch: 600
1281
- }, W = h ? 43 : 25;
1282
- let R = !1, M = 0, I = 0, U = !1, ne = !1, Y = !1, K = !1;
1283
- function re(w) {
1284
- if (!m) return;
1285
- function O(Z) {
1286
- (Me(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(), A.clear();
1016
+ function J() {
1017
+ w.clear(), I.clear();
1295
1018
  }
1296
- function L() {
1297
- const w = K ? n : e;
1298
- A.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 z() {
1305
- return (h ? _ : $)[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 || q(w) < N ? Z : b && 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(), o.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (U = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(o), L(), M = a.readPoint(w), I = a.readPoint(w, T), k.emit("pointerDown")));
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, M), 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 > v && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(B(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) * z(), le = x(B(Z), G), de = ur(Z, le), me = W - 10 * de, ce = g + de / 50;
1325
- ne = !1, U = !1, A.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), K = !1, k.emit("pointerUp");
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 U;
1053
+ function ee() {
1054
+ return V;
1332
1055
  }
1333
1056
  return {
1334
- init: re,
1335
- destroy: c,
1336
- pointerDown: X
1057
+ init: de,
1058
+ destroy: J,
1059
+ pointerDown: ee
1337
1060
  };
1338
1061
  }
1339
- function kr(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 o(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, o(f);
1071
+ function l(p) {
1072
+ return r = p, i = p, o(p);
1350
1073
  }
1351
- function l(f) {
1352
- const k = o(f) - o(i), p = a(f) - a(s) > 170;
1353
- return i = f, p && (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 = o(i) - o(s), p = a(f) - a(s), h = a(f) - a(i) > 170, v = k / p;
1358
- return p && !h && q(v) > 0.1 ? v : 0;
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,
1084
+ pointerDown: l,
1085
+ pointerMove: a,
1086
+ pointerUp: c,
1364
1087
  readPoint: o
1365
1088
  };
1366
1089
  }
1367
- function vr() {
1090
+ function ur() {
1368
1091
  function t(n) {
1369
1092
  const {
1370
- offsetTop: s,
1093
+ offsetTop: r,
1371
1094
  offsetLeft: i,
1372
- offsetWidth: a,
1095
+ offsetWidth: s,
1373
1096
  offsetHeight: o
1374
1097
  } = n;
1375
1098
  return {
1376
- top: s,
1377
- right: i + a,
1378
- bottom: s + o,
1099
+ top: r,
1100
+ right: i + s,
1101
+ bottom: r + o,
1379
1102
  left: i,
1380
- width: a,
1103
+ width: s,
1381
1104
  height: o
1382
1105
  };
1383
1106
  }
@@ -1385,326 +1108,326 @@ function vr() {
1385
1108
  measure: t
1386
1109
  };
1387
1110
  }
1388
- function br(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 yr(t, e, n, s, i, a, o) {
1397
- const d = [t].concat(s);
1398
- let l, u, y = [], f = !1;
1399
- function k(b) {
1400
- return i.measureSize(o.measure(b));
1401
- }
1402
- function p(b) {
1403
- if (!a) return;
1404
- u = k(t), y = s.map(k);
1405
- function g(m) {
1406
- for (const T of m) {
1407
- if (f) return;
1408
- const B = T.target === t, F = s.indexOf(T.target), E = B ? u : y[F], j = k(B ? t : s[F]);
1409
- if (q(j - E) >= 0.5) {
1410
- b.reInit(), e.emit("resize");
1119
+ function gr(t, e, n, r, i, s, o) {
1120
+ const l = [t].concat(r);
1121
+ let a, c, b = [], p = !1;
1122
+ function k(v) {
1123
+ return i.measureSize(o.measure(v));
1124
+ }
1125
+ function g(v) {
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) {
1133
+ v.reInit(), e.emit("resize");
1411
1134
  break;
1412
1135
  }
1413
1136
  }
1414
1137
  }
1415
- l = new ResizeObserver((m) => {
1416
- (Me(a) || a(b, m)) && g(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
- init: p,
1426
- destroy: h
1148
+ init: g,
1149
+ destroy: f
1427
1150
  };
1428
1151
  }
1429
- function xr(t, e, n, s, i, a) {
1430
- let o = 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 A = 0;
1434
- return j ? (o = 0, n.set(s), t.set(s), A = E) : (n.set(t), o += E / l, o *= u, y += o, t.add(o), A = y - f), d = et(A), f = y, F;
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
- function p() {
1437
- const E = s.get() - e.get();
1438
- return q(E) < 1e-3;
1159
+ function g() {
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
1169
  function v() {
1444
- return d;
1445
- }
1446
- function b() {
1447
1170
  return o;
1448
1171
  }
1449
- function g() {
1172
+ function m() {
1450
1173
  return T(i);
1451
1174
  }
1452
- function m() {
1453
- return B(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 B(E) {
1459
- return u = E, F;
1181
+ function j(L) {
1182
+ return c = L, A;
1460
1183
  }
1461
- const F = {
1462
- direction: v,
1463
- duration: h,
1464
- velocity: b,
1184
+ const A = {
1185
+ direction: h,
1186
+ duration: f,
1187
+ velocity: v,
1465
1188
  seek: k,
1466
- settled: p,
1467
- useBaseFriction: m,
1468
- useBaseDuration: g,
1469
- useFriction: B,
1189
+ settled: g,
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 Tr(t, e, n, s, i) {
1475
- const a = i.measure(10), o = 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(p) {
1481
- if (!u()) return;
1482
- const h = t.reachedMin(e.get()) ? "min" : "max", v = q(t[h] - e.get()), b = n.get() - e.get(), g = d.constrain(v / o);
1483
- n.subtract(b * g), !p && q(b) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
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(p) {
1486
- l = !p;
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 Sr(t, e, n, s, i) {
1495
- const a = fe(-e + t, 0), o = f(), d = y(), l = k();
1496
- function u(h, v) {
1497
- return Ie(h, v) <= 1;
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 = o[0], v = ie(o), b = o.lastIndexOf(h), g = o.indexOf(v) + 1;
1501
- return fe(b, g);
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, v) => {
1226
+ function p() {
1227
+ return n.map((f, h) => {
1505
1228
  const {
1506
- min: b,
1507
- max: g
1508
- } = a, m = a.constrain(h), T = !v, B = tt(n, v);
1509
- return T ? g : B || u(b, m) ? b : u(g, m) ? g : m;
1510
- }).map((h) => parseFloat(h.toFixed(3)));
1229
+ min: v,
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 o;
1236
+ if (e <= t + i) return [s.max];
1237
+ if (r === "keepSnaps") return o;
1515
1238
  const {
1516
- min: h,
1517
- max: v
1518
- } = d;
1519
- return o.slice(h, v);
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 wr(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 Cr(t, e, n, s) {
1533
- const a = e.min + 0.1, o = e.max + 0.1, {
1534
- reachedMin: d,
1535
- reachedMax: l
1536
- } = fe(a, o);
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;
1542
- const p = t * (k * -1);
1543
- s.forEach((h) => h.add(p));
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;
1265
+ const g = t * (k * -1);
1266
+ r.forEach((f) => f.add(g));
1544
1267
  }
1545
1268
  return {
1546
- loop: y
1269
+ loop: b
1547
1270
  };
1548
1271
  }
1549
- function jr(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 o = a - e;
1277
+ function r(s) {
1278
+ const o = s - e;
1556
1279
  return n ? o / -n : 0;
1557
1280
  }
1558
1281
  return {
1559
- get: s
1282
+ get: r
1560
1283
  };
1561
1284
  }
1562
- function Dr(t, e, n, s, i) {
1285
+ function yr(t, e, n, r, i) {
1563
1286
  const {
1564
- startEdge: a,
1287
+ startEdge: s,
1565
1288
  endEdge: o
1566
1289
  } = t, {
1567
- groupSlides: d
1568
- } = i, l = f().map(e.measure), u = k(), y = p();
1569
- function f() {
1570
- return d(s).map((v) => ie(v)[o] - v[0][a]).map(q);
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((v) => n[a] - v[a]).map((v) => -q(v));
1296
+ return r.map((h) => n[s] - h[s]).map((h) => -W(h));
1574
1297
  }
1575
- function p() {
1576
- return d(u).map((v) => v[0]).map((v, b) => v + l[b]);
1298
+ function g() {
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 Ir(t, e, n, s, i, a) {
1306
+ function Tr(t, e, n, r, i, s) {
1584
1307
  const {
1585
1308
  groupSlides: o
1586
1309
  } = i, {
1587
- min: d,
1588
- max: l
1589
- } = s, u = y();
1590
- function y() {
1591
- const k = o(a), p = !t || e === "keepSnaps";
1592
- return n.length === 1 ? [a] : p ? k : k.slice(d, l).map((h, v, b) => {
1593
- const g = !v, m = tt(b, v);
1594
- if (g) {
1595
- const T = ie(b[0]) + 1;
1596
- 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 = Be(a) - ie(b)[0] + 1;
1600
- return jt(T, ie(b)[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 Ar(t, e, n, s, i) {
1332
+ function xr(t, e, n, r, i) {
1610
1333
  const {
1611
- reachedAny: a,
1334
+ reachedAny: s,
1612
1335
  removeOffset: o,
1613
- constrain: d
1614
- } = s;
1615
- function l(h) {
1616
- return h.concat().sort((v, b) => q(v) - q(b))[0];
1617
- }
1618
- function u(h) {
1619
- const v = t ? o(h) : d(h), b = e.map((m, T) => ({
1620
- diff: y(m - v, 0),
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) => q(m.diff) - q(T.diff)), {
1623
- index: g
1624
- } = b[0];
1345
+ })).sort((u, T) => W(u.diff) - W(T.diff)), {
1346
+ index: m
1347
+ } = v[0];
1625
1348
  return {
1626
- index: g,
1627
- distance: v
1349
+ index: m,
1350
+ distance: h
1628
1351
  };
1629
1352
  }
1630
- function y(h, v) {
1631
- const b = [h, h + n, h - n];
1632
- if (!t) return h;
1633
- if (!v) return l(b);
1634
- const g = b.filter((m) => et(m) === v);
1635
- return g.length ? l(g) : ie(b) - 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, v) {
1638
- const b = e[h] - i.get(), g = y(b, v);
1360
+ function p(f, h) {
1361
+ const v = e[f] - i.get(), m = b(v, h);
1639
1362
  return {
1640
- index: h,
1641
- distance: g
1363
+ index: f,
1364
+ distance: m
1642
1365
  };
1643
1366
  }
1644
- function k(h, v) {
1645
- const b = i.get() + h, {
1646
- index: g,
1647
- distance: m
1648
- } = u(b), T = !t && a(b);
1649
- if (!v || T) return {
1650
- index: g,
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 B = e[g] - m, F = h + y(B, 0);
1376
+ const j = e[m] - u, A = f + b(j, 0);
1654
1377
  return {
1655
- index: g,
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 Lr(t, e, n, s, i, a, o) {
1666
- function d(f) {
1667
- const k = f.distance, p = f.index !== e.get();
1668
- a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), p && (n.set(e.get()), e.set(f.index), o.emit("select"));
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 p = i.byDistance(f, k);
1672
- d(p);
1393
+ function a(p, k) {
1394
+ const g = i.byDistance(p, k);
1395
+ l(g);
1673
1396
  }
1674
- function u(f, k) {
1675
- const p = e.clone().set(f), h = i.byIndex(p.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 Fr(t, e, n, s, i, a, o, 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(p) {
1690
- if (!d) return;
1691
- function h(v) {
1692
- if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
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;
1693
1416
  o.emit("slideFocusStart"), t.scrollLeft = 0;
1694
- const m = n.findIndex((T) => T.includes(v));
1695
- Qe(m) && (i.useDuration(0), s.index(m, 0), o.emit("slideFocus"));
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((v, b) => {
1698
- a.add(v, "focus", (g) => {
1699
- (Me(d) || d(p, g)) && h(b);
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(p) {
1704
- p.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 = o(l);
1438
+ function r(a) {
1439
+ e = o(a);
1717
1440
  }
1718
- function i(l) {
1719
- e += o(l);
1441
+ function i(a) {
1442
+ e += o(a);
1720
1443
  }
1721
- function a(l) {
1722
- e -= o(l);
1444
+ function s(a) {
1445
+ e -= o(a);
1723
1446
  }
1724
- function o(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" ? o : d, s = e.style;
1736
- let i = null, a = !1;
1457
+ function Lt(t, e) {
1458
+ const n = t.scroll === "x" ? o : l, r = e.style;
1459
+ let i = null, s = !1;
1737
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 p = mr(t.direction(k));
1746
- p !== i && (s.transform = n(p), i = p);
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 Br(t, e, n, s, i, a, o, d, l) {
1761
- const y = Ae(i), f = Ae(i).reverse(), k = g().concat(m());
1762
- function p(j, A) {
1763
- return j.reduce((N, $) => N - i[$], A);
1764
- }
1765
- function h(j, A) {
1766
- return j.reduce((N, $) => p(N, A) > 0 ? N.concat([$]) : N, []);
1767
- }
1768
- function v(j) {
1769
- return a.map((A, N) => ({
1770
- start: A - s[N] + 0.5 + j,
1771
- end: A + e - 0.5 + j
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 b(j, A, N) {
1775
- const $ = v(A);
1776
- return j.map((_) => {
1777
- const W = N ? 0 : -n, R = N ? n : 0, M = N ? "end" : "start", I = $[_][M];
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: _,
1780
- loopPoint: I,
1502
+ index: P,
1503
+ loopPoint: D,
1781
1504
  slideLocation: De(-1),
1782
- translate: Pt(t, l[_]),
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 g() {
1788
- const j = o[0], A = h(f, j);
1789
- return b(A, n, !1);
1790
- }
1791
1510
  function m() {
1792
- const j = e - o[0] - 1, A = h(y, j);
1793
- return b(A, -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 A = y.filter((N) => N !== j);
1800
- return p(A, e) <= 0.1;
1522
+ const I = b.filter((F) => F !== w);
1523
+ return g(I, e) <= 0.1;
1801
1524
  });
1802
1525
  }
1803
- function B() {
1804
- k.forEach((j) => {
1526
+ function j() {
1527
+ k.forEach((w) => {
1805
1528
  const {
1806
- target: A,
1807
- translate: N,
1808
- slideLocation: $
1809
- } = j, _ = A();
1810
- _ !== $.get() && (N.to(_), $.set(_));
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: B,
1541
+ clear: A,
1542
+ loop: j,
1820
1543
  loopPoints: k
1821
1544
  };
1822
1545
  }
1823
- function Er(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 || (Me(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
1563
  function o() {
1841
- s && s.disconnect(), i = !0;
1564
+ r && r.disconnect(), i = !0;
1842
1565
  }
1843
1566
  return {
1844
- init: a,
1567
+ init: s,
1845
1568
  destroy: o
1846
1569
  };
1847
1570
  }
1848
- function Nr(t, e, n, s) {
1571
+ function Ir(t, e, n, r) {
1849
1572
  const i = {};
1850
- let a = null, o = null, d, l = !1;
1851
- function u() {
1852
- d = new IntersectionObserver((h) => {
1853
- l || (h.forEach((v) => {
1854
- const b = e.indexOf(v.target);
1855
- i[b] = v;
1856
- }), a = null, o = 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 Le(i).reduce((v, b) => {
1867
- const g = parseInt(b), {
1868
- isIntersecting: m
1869
- } = i[g];
1870
- return (h && m || !h && !m) && v.push(g), v;
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 && o) return o;
1876
- const v = f(h);
1877
- return h && (a = v), h || (o = v), v;
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 _r(t, e, n, s, i, a) {
1608
+ function Ar(t, e, n, r, i, s) {
1886
1609
  const {
1887
1610
  measureSize: o,
1888
- startEdge: d,
1889
- endEdge: l
1890
- } = t, u = n[0] && i, y = h(), f = v(), k = n.map(o), p = b();
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]);
1618
+ }
1891
1619
  function h() {
1892
- if (!u) return 0;
1893
- const m = n[0];
1894
- return q(e[d] - m[d]);
1620
+ if (!c) return 0;
1621
+ const u = s.getComputedStyle(ae(r));
1622
+ return parseFloat(u.getPropertyValue(`margin-${a}`));
1895
1623
  }
1896
1624
  function v() {
1897
- if (!u) return 0;
1898
- const m = a.getComputedStyle(ie(s));
1899
- return parseFloat(m.getPropertyValue(`margin-${l}`));
1900
- }
1901
- function b() {
1902
- return n.map((m, T, B) => {
1903
- const F = !T, E = tt(B, T);
1904
- return F ? k[T] + y : E ? k[T] + f : B[T + 1][d] - m[d];
1905
- }).map(q);
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
- slideSizesWithGaps: p,
1910
- startGap: y,
1911
- endGap: f
1632
+ slideSizesWithGaps: g,
1633
+ startGap: b,
1634
+ endGap: p
1912
1635
  };
1913
1636
  }
1914
- function Pr(t, e, n, s, i, a, o, 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 p(g, m) {
1921
- return Ae(g).filter((T) => T % m === 0).map((T) => g.slice(T, T + m));
1922
- }
1923
- function h(g) {
1924
- return g.length ? Ae(g).reduce((m, T, B) => {
1925
- const F = ie(m) || 0, E = F === 0, j = T === Be(g), A = i[u] - a[F][u], N = i[u] - a[T][y], $ = !s && E ? f(o) : 0, _ = !s && j ? f(d) : 0, W = q(N - _ - (A + $));
1926
- return B && W > e + l && m.push(T), j && m.push(g.length), m;
1927
- }, []).map((m, T, B) => {
1928
- const F = Math.max(B[T - 1] || 0);
1929
- return g.slice(F, m);
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 v(g) {
1933
- return k ? p(g, n) : h(g);
1655
+ function h(m) {
1656
+ return k ? g(m, n) : f(m);
1934
1657
  }
1935
1658
  return {
1936
- groupSlides: v
1659
+ groupSlides: h
1937
1660
  };
1938
1661
  }
1939
- function Rr(t, e, n, s, i, a, o) {
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
- dragFree: p,
1948
- dragThreshold: h,
1949
- inViewThreshold: v,
1950
- slidesToScroll: b,
1951
- skipSnaps: g,
1952
- containScroll: m,
1670
+ dragFree: g,
1671
+ dragThreshold: f,
1672
+ inViewThreshold: h,
1673
+ slidesToScroll: v,
1674
+ skipSnaps: m,
1675
+ containScroll: u,
1953
1676
  watchResize: T,
1954
- watchSlides: B,
1955
- watchDrag: F,
1956
- watchFocus: E
1957
- } = a, j = 2, A = vr(), N = A.measure(e), $ = n.map(A.measure), _ = fr(l, u), W = _.measureSize(N), R = br(W), M = pr(d, W), I = !f && !!m, U = f || !!m, {
1958
- slideSizes: ne,
1959
- slideSizesWithGaps: Y,
1960
- startGap: K,
1961
- endGap: re
1962
- } = _r(_, N, $, n, U, i), c = Pr(_, W, b, f, N, $, K, re, j), {
1963
- snaps: L,
1964
- snapsAligned: P
1965
- } = Dr(_, M, N, $, c), z = -ie(L) + 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
- } = Sr(W, z, P, m, j), C = I ? x : P, {
1969
- limit: H
1970
- } = wr(z, C, f), J = _t(Be(C), y, f), X = J.clone(), V = Ae(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(), Ut = !Gt.shouldConstrain(), ct = it ? dt : dt && Ut, ut = ct && !Wt.pointerDown();
1996
- ut && Vt.stop();
1997
- const qt = We.get() * lt + Ot.get() * (1 - lt);
1998
- Ee.set(qt), it && ($t.loop(he.direction()), Ht.loop()), He.to(Ee.get()), ut && at.emit("settle"), ct || at.emit("scroll");
1999
- }, G = gr(s, i, () => w($e), (he) => O($e, he)), Z = 0.68, le = C[J.get()], de = De(le), me = De(le), ce = De(le), pe = De(le), xe = xr(de, ce, me, pe, k, Z), ze = Ar(f, C, z, H, pe), Oe = Lr(G, J, X, xe, ze, pe, o), ot = jr(H), rt = Fe(), Mt = Nr(e, n, o, v), {
2000
- slideRegistry: st
2001
- } = Ir(I, m, C, D, c, V), zt = Fr(t, n, st, Oe, xe, rt, o, 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
1727
  eventHandler: o,
2005
- containerRect: N,
2006
- slideRects: $,
2007
- animation: G,
2008
- axis: _,
2009
- dragHandler: hr(_, t, s, i, pe, kr(_, i), de, G, Oe, xe, ze, J, o, R, p, h, g, Z, F),
2010
- eventStore: rt,
2011
- 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: yr(e, o, i, n, _, T, A),
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: Tr(H, ce, pe, xe, R),
2022
- scrollLooper: Cr(z, H, ce, [de, ce, me, pe]),
2023
- scrollProgress: ot,
2024
- scrollSnapList: C.map(ot.get),
2025
- scrollSnaps: C,
2026
- scrollTarget: ze,
2027
- scrollTo: Oe,
2028
- slideLooper: Br(_, W, z, ne, Y, L, C, ce, n),
2029
- slideFocus: zt,
2030
- slidesHandler: Er(e, o, B),
2031
- slidesInView: Mt,
2032
- slideIndexes: V,
2033
- slideRegistry: st,
2034
- slidesToScroll: c,
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,
2035
1758
  target: pe,
2036
- translate: Pt(_, e)
1759
+ translate: Lt(P, e)
2037
1760
  };
2038
- return $e;
1761
+ return Re;
2039
1762
  }
2040
- function Mr() {
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 o(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
1786
  off: o,
2064
- on: a,
2065
- clear: d
1787
+ on: s,
1788
+ clear: l
2066
1789
  };
2067
- return l;
1790
+ return a;
2068
1791
  }
2069
- const zr = {
1792
+ const Br = {
2070
1793
  align: "center",
2071
1794
  axis: "x",
2072
1795
  container: null,
@@ -2088,328 +1811,328 @@ const zr = {
2088
1811
  watchSlides: !0,
2089
1812
  watchFocus: !0
2090
1813
  };
2091
- function Or(t) {
2092
- function e(a, o) {
2093
- return Nt(a, o || {});
1814
+ function Nr(t) {
1815
+ function e(s, o) {
1816
+ return At(s, o || {});
2094
1817
  }
2095
- function n(a) {
2096
- const o = a.breakpoints || {}, d = Le(o).filter((l) => t.matchMedia(l).matches).map((l) => o[l]).reduce((l, u) => e(l, u), {});
2097
- 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((o) => Le(o.breakpoints || {})).reduce((o, d) => o.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 $r(t) {
1831
+ function Pr(t) {
2109
1832
  let e = [];
2110
- function n(a, o) {
1833
+ function n(s, o) {
2111
1834
  return e = o.filter(({
2112
- options: d
2113
- }) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)), o.reduce((d, l) => Object.assign(d, {
2114
- [l.name]: l
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 = Or(i), o = $r(a), d = Fe(), l = Mr(), {
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
- off: p,
2133
- emit: h
2134
- } = l, v = _;
2135
- let b = !1, g, m = u(zr, Re.globalOptions), T = u(m), B = [], F, E, j;
2136
- function A() {
1855
+ off: g,
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 N(V) {
2146
- const w = Rr(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 N(O);
1874
+ return F(E);
2152
1875
  }
2153
- return w;
2154
- }
2155
- function $(V, w) {
2156
- b || (m = u(m, V), T = y(m), B = w || B, A(), g = N(T), f([m, ...B.map(({
2157
- options: O
2158
- }) => O)]).forEach((O) => d.add(O, "change", _)), T.active && (g.translate.to(g.location.get()), g.animation.init(), g.slidesInView.init(), g.slideFocus.init(X), g.eventHandler.init(X), g.resizeHandler.init(X), g.slidesHandler.init(X), g.options.loop && g.slideLooper.loop(), E.offsetParent && j.length && g.dragHandler.init(X), F = o.init(X, B)));
1876
+ return S;
2159
1877
  }
2160
- function _(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
- g.dragHandler.destroy(), g.eventStore.clear(), g.translate.clear(), g.slideLooper.clear(), g.resizeHandler.destroy(), g.slidesHandler.destroy(), g.slidesInView.destroy(), g.animation.destroy(), o.destroy(), d.clear();
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
- b || (b = !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 M(V, w, O) {
2173
- !T.active || b || (g.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : T.duration), g.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 = g.index.add(1).get();
2177
- M(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 U(V) {
2180
- const w = g.index.add(-1).get();
2181
- M(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 g.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 g.index.add(-1).get() !== c();
1906
+ function oe() {
1907
+ return m.index.add(1).get() !== J();
2188
1908
  }
2189
- function K() {
2190
- return g.scrollSnapList;
1909
+ function Z() {
1910
+ return m.index.add(-1).get() !== J();
2191
1911
  }
2192
- function re() {
2193
- return g.scrollProgress.get(g.offsetLocation.get());
1912
+ function Y() {
1913
+ return m.scrollSnapList;
2194
1914
  }
2195
- function c() {
2196
- return g.index.get();
1915
+ function de() {
1916
+ return m.scrollProgress.get(m.offsetLocation.get());
2197
1917
  }
2198
- function L() {
2199
- return g.indexPrevious.get();
1918
+ function J() {
1919
+ return m.index.get();
2200
1920
  }
2201
- function P() {
2202
- return g.slidesInView.get();
1921
+ function ie() {
1922
+ return m.indexPrevious.get();
2203
1923
  }
2204
- function z() {
2205
- return g.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 g;
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,
2228
- off: p,
1942
+ function te() {
1943
+ return w;
1944
+ }
1945
+ const ee = {
1946
+ canScrollNext: oe,
1947
+ canScrollPrev: Z,
1948
+ containerNode: O,
1949
+ internalEngine: C,
1950
+ destroy: _,
1951
+ off: g,
2229
1952
  on: k,
2230
- emit: h,
1953
+ emit: f,
2231
1954
  plugins: x,
2232
- previousScrollSnap: L,
2233
- reInit: v,
2234
- rootNode: C,
2235
- scrollNext: I,
2236
- scrollPrev: U,
2237
- scrollProgress: re,
2238
- scrollSnapList: K,
1955
+ previousScrollSnap: ie,
1956
+ reInit: h,
1957
+ rootNode: N,
1958
+ scrollNext: D,
1959
+ scrollPrev: V,
1960
+ scrollProgress: de,
1961
+ scrollSnapList: Y,
2239
1962
  scrollTo: M,
2240
- selectedScrollSnap: c,
2241
- slideNodes: J,
2242
- slidesInView: P,
2243
- slidesNotInView: z
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 = qe(t), s = qe(e), [i, a] = oe(), [o, d] = oe(), 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
- cr(s.current, e) || (s.current = e, l());
2256
- }, [e, l]), te(() => {
2257
- if (dr() && o) {
2258
- Re.globalOptions = nt.globalOptions;
2259
- const u = Re(o, 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
- }, [o, a]), [d, i];
1985
+ s(void 0);
1986
+ }, [o, s]), [l, i];
2264
1987
  }
2265
- nt.globalOptions = void 0;
2266
- const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Ur = "_slideInner_1bu1s_37", qr = "_loaderOverlay_1bu1s_45", Kr = "_image_1bu1s_55", Yr = "_loaded_1bu1s_66", Jr = "_empty_1bu1s_78", Zr = "_controls_1bu1s_84", Xr = "_arrows_1bu1s_94", Qr = "_dots_1bu1s_104", es = "_dot_1bu1s_104", ts = "_dotActive_1bu1s_130", Q = {
2267
- carouselContainer: Hr,
2268
- viewport: Wr,
2269
- slides: Vr,
2270
- slide: Gr,
2271
- slideInner: Ur,
2272
- loaderOverlay: qr,
2273
- image: Kr,
2274
- loaded: Yr,
2275
- empty: Jr,
2276
- controls: Zr,
2277
- arrows: Xr,
2278
- dots: Qr,
2279
- dot: es,
2280
- dotActive: ts
2281
- }, ns = cn, os = ({
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,
2010
+ variant: s,
2288
2011
  slidesPerView: o = 1,
2289
- slideSpacing: d = 16,
2290
- cornerRadius: l = 0,
2291
- "data-color": u,
2292
- "data-size": y
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, p] = nt(f), [h, v] = oe(0), [b, g] = oe([]), [m, T] = oe([]);
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 B = ae((R) => {
2026
+ const j = se((_) => {
2304
2027
  T((M) => {
2305
- const I = [...M];
2306
- return I[R] = !0, I;
2028
+ const D = [...M];
2029
+ return D[_] = !0, D;
2307
2030
  });
2308
- }, []), F = be(() => n * 1e3, [n]), E = ae(() => {
2309
- p && v(p.selectedScrollSnap());
2310
- }, [p]), j = ae((R) => p && p.scrollTo(R), [p]), A = ae(() => p && p.scrollPrev(), [p]), N = ae(() => p && p.scrollNext(), [p]);
2311
- te(() => {
2312
- if (p)
2313
- return p.on("select", E), p.on("reInit", E), g(p.scrollSnapList()), () => {
2314
- p.off("select", E), p.off("reInit", E);
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(() => {
2035
+ if (g)
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
- }, [p, E]), te(() => {
2317
- p && (p.reInit(), g(p.scrollSnapList()));
2318
- }, [p, t, o, d]), te(() => {
2319
- if (!e || !p || !t || t.length <= 1) return;
2320
- const R = window.setInterval(() => {
2321
- p.canScrollNext() && p.scrollNext();
2322
- }, F);
2039
+ }, [g, L]), K(() => {
2040
+ g && (g.reInit(), m(g.scrollSnapList()));
2041
+ }, [g, t, o, l]), K(() => {
2042
+ if (!e || !g || !t || t.length <= 1) return;
2043
+ const _ = window.setInterval(() => {
2044
+ g.canScrollNext() && g.scrollNext();
2045
+ }, A);
2323
2046
  return () => {
2324
- window.clearInterval(R);
2047
+ window.clearInterval(_);
2325
2048
  };
2326
- }, [e, F, p, t]);
2327
- const $ = Math.max(1, o), _ = `${100 / $}%`, W = d / 2;
2328
- return /* @__PURE__ */ r.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__ */ r.jsx("div", { className: Q.viewport, ref: k, children: /* @__PURE__ */ r.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, M) => /* @__PURE__ */ r.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 ${_}`,
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__ */ r.jsxs("div", { className: Q.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
2357
- !m[M] && /* @__PURE__ */ r.jsx("div", { className: Q.loaderOverlay, children: /* @__PURE__ */ r.jsx(ns, { "aria-label": "Laster bilde" }) }),
2358
- /* @__PURE__ */ r.jsx(
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[M] ? Q.loaded : Q.loadingImage}`,
2362
- src: R.src,
2363
- alt: R.alt,
2364
- loading: M < $ ? "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: () => B(M),
2367
- onError: (I) => {
2368
- I.target.style.display = "none", B(M);
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-${M}-${R.src}`
2375
- )) : /* @__PURE__ */ r.jsx("div", { className: Q.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ r.jsx("div", { className: Q.empty, children: "Ingen bilder" }) })
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__ */ r.jsxs("div", { className: Q.controls, "aria-hidden": "false", children: [
2379
- s && /* @__PURE__ */ r.jsxs("div", { className: Q.arrows, children: [
2380
- /* @__PURE__ */ r.jsx(
2381
- 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: A,
2109
+ onClick: I,
2387
2110
  disabled: !t || t.length <= 1,
2388
- children: /* @__PURE__ */ r.jsx(Xn, { "aria-hidden": !0 })
2111
+ children: /* @__PURE__ */ d(Kn, { "aria-hidden": !0 })
2389
2112
  }
2390
2113
  ),
2391
- /* @__PURE__ */ r.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: N,
2120
+ onClick: F,
2398
2121
  disabled: !t || t.length <= 1,
2399
- children: /* @__PURE__ */ r.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__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: b.map((R, M) => {
2404
- const I = M === h;
2405
- return /* @__PURE__ */ r.jsx(
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(M),
2132
+ className: `${U.dot} ${D ? U.dotActive : ""}`,
2133
+ onClick: () => w(M),
2411
2134
  "aria-label": `Gå til bilde ${M + 1}`,
2412
- "aria-selected": I,
2135
+ "aria-selected": D,
2413
2136
  role: "tab"
2414
2137
  },
2415
2138
  `dot-${M}`
@@ -2420,27 +2143,27 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
2420
2143
  }
2421
2144
  );
2422
2145
  };
2423
- os.displayName = "Carousel";
2424
- const Ca = un, ja = mn, Da = pn, ee = gn, Ia = fn, Aa = hn, rs = kn, ss = vn;
2425
- rs.displayName = "Field.Description";
2426
- ss.displayName = "Field.Counter";
2427
- const La = It, as = ue((t, e) => /* @__PURE__ */ r.jsx(bn, { ref: e, ...t }));
2428
- as.displayName = "Heading";
2429
- const Fa = yn, is = ue((t, e) => /* @__PURE__ */ r.jsx(xn, { ref: e, ...t }));
2430
- is.displayName = "Label";
2431
- const _e = Tn, Ba = Sn, Ea = wn, Na = Cn, Ze = ue(
2432
- (t, e) => /* @__PURE__ */ r.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 _a = Dn, Pa = In, Ra = An, Pe = Object.assign(Ln, {
2436
- Button: En,
2437
- ClearButton: Bn,
2438
- Input: Fn
2439
- }), Ma = Nn, za = _n, Oa = Pn, ls = Rn;
2440
- ls.displayName = "Suggestion";
2441
- const Ue = Mn, $a = zn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, Ua = Vn, qa = Gn, ds = ue((t, e) => /* @__PURE__ */ r.jsx(Un, { ref: e, ...t }));
2442
- 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: {
@@ -4151,78 +3874,78 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4151
3874
  }
4152
3875
  }
4153
3876
  }
4154
- }, Rt = Kt(void 0), Ka = ({ children: t }) => {
4155
- const [e, n] = oe("NO"), s = (i) => {
4156
- const a = i.split(".");
4157
- let o = cs[e];
4158
- for (const d of a) {
4159
- if (o[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)
4160
3883
  return console.warn(`Translation missing for key: ${i} in language: ${e}`), i;
4161
- o = o[d];
3884
+ o = o[l];
4162
3885
  }
4163
3886
  return o;
4164
3887
  };
4165
- return /* @__PURE__ */ r.jsx(Rt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
4166
- }, us = () => {
4167
- 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);
4168
3891
  if (t === void 0)
4169
3892
  throw new Error("useLanguage must be used within a LanguageProvider");
4170
3893
  return t;
4171
- }, ms = "_header_3zql2_1", ps = "_languageSwitch_3zql2_36", gs = "_searchOverlay_3zql2_40", fs = "_headerExtension_3zql2_45", hs = "_extensionContentWrapper_3zql2_61", ks = "_extensionContent_3zql2_61", vs = "_extensionDivider_3zql2_84", bs = "_languageLabel_3zql2_98", ys = "_languageLink_3zql2_104", xs = "_headerInner_3zql2_129", Ts = "_logoWrapper_3zql2_146", Ss = "_logo_3zql2_146", ws = "_secondaryLogoWrapper_3zql2_169", Cs = "_slotComponent_3zql2_178", js = "_slotContainer_3zql2_188", Ds = "_slotText_3zql2_196", Is = "_secondaryLogo_3zql2_169", As = "_redCrossLogo_3zql2_223", Ls = "_primaryLogo_3zql2_229", Fs = "_navItems_3zql2_233", Bs = "_navLink_3zql2_242", Es = "_actions_3zql2_255", Ns = "_ctaButton_3zql2_263", _s = "_themeToggle_3zql2_268", Ps = "_userInfo_3zql2_273", Rs = "_userName_3zql2_279", Ms = "_loginLink_3zql2_286", zs = "_loginText_3zql2_295", Os = "_underline_3zql2_302", $s = "_searchButtonWrapper_3zql2_308", Hs = "_buttonText_3zql2_312", Ws = "_menuButton_3zql2_317", Vs = "_menuOverlay_3zql2_322", Gs = "_searchContent_3zql2_356", Us = "_menuContent_3zql2_366", qs = "_menuLeftColumn_3zql2_375", Ks = "_menuRightColumn_3zql2_381", Ys = "_slotContent_3zql2_395", Js = "_navList_3zql2_408", Zs = "_menuUtilities_3zql2_415", Xs = "_menuBrand_3zql2_422", Qs = "_suggestionsSection_3zql2_426", ea = "_suggestionsTitle_3zql2_432", ta = "_searchResults_3zql2_441", na = "_resultList_3zql2_447", oa = "_resultItem_3zql2_453", ra = "_resultLink_3zql2_461", sa = "_suggestionIcon_3zql2_475", aa = "_suggestionText_3zql2_488", ia = "_highlightedText_3zql2_495", la = "_remainingText_3zql2_500", da = "_viewAllLink_3zql2_513", ca = "_noResults_3zql2_548", S = {
4172
- header: ms,
4173
- languageSwitch: ps,
4174
- searchOverlay: gs,
4175
- headerExtension: fs,
4176
- extensionContentWrapper: hs,
4177
- extensionContent: ks,
4178
- extensionDivider: vs,
4179
- languageLabel: bs,
4180
- languageLink: ys,
4181
- headerInner: xs,
4182
- logoWrapper: Ts,
4183
- logo: Ss,
4184
- secondaryLogoWrapper: ws,
4185
- slotComponent: Cs,
4186
- slotContainer: js,
4187
- slotText: Ds,
4188
- secondaryLogo: Is,
4189
- redCrossLogo: As,
4190
- primaryLogo: Ls,
4191
- navItems: Fs,
4192
- navLink: Bs,
4193
- actions: Es,
4194
- ctaButton: Ns,
4195
- themeToggle: _s,
4196
- userInfo: Ps,
4197
- userName: Rs,
4198
- loginLink: Ms,
4199
- loginText: zs,
4200
- underline: Os,
4201
- searchButtonWrapper: $s,
4202
- buttonText: Hs,
4203
- menuButton: Ws,
4204
- menuOverlay: Vs,
4205
- searchContent: Gs,
4206
- menuContent: Us,
4207
- menuLeftColumn: qs,
4208
- menuRightColumn: Ks,
4209
- slotContent: Ys,
4210
- navList: Js,
4211
- menuUtilities: Zs,
4212
- menuBrand: Xs,
4213
- suggestionsSection: Qs,
4214
- suggestionsTitle: ea,
4215
- searchResults: ta,
4216
- resultList: na,
4217
- resultItem: oa,
4218
- resultLink: ra,
4219
- suggestionIcon: sa,
4220
- suggestionText: aa,
4221
- highlightedText: ia,
4222
- remainingText: la,
4223
- viewAllLink: da,
4224
- noResults: ca
4225
- }, 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 = [
4226
3949
  // Pages
4227
3950
  { id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
4228
3951
  { id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
@@ -4285,37 +4008,37 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4285
4008
  { id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
4286
4009
  { id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
4287
4010
  { id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
4288
- ], Ya = ({
4011
+ ], Wi = ({
4289
4012
  activePage: t,
4290
4013
  setPage: e,
4291
4014
  children: n,
4292
- showUser: s = !0,
4015
+ showUser: r = !0,
4293
4016
  showSearch: i = !0,
4294
- showLogin: a = !0,
4017
+ showLogin: s = !0,
4295
4018
  showCta: o = !1,
4296
- ctaLabel: d,
4297
- ctaIcon: l = /* @__PURE__ */ r.jsx(to, { "aria-hidden": !0 }),
4298
- onCtaClick: u,
4299
- showThemeToggle: y = !1,
4300
- secondaryLogo: f = !1,
4019
+ ctaLabel: l,
4020
+ ctaIcon: a = /* @__PURE__ */ d(Jn, { "aria-hidden": !0 }),
4021
+ onCtaClick: c,
4022
+ showThemeToggle: b = !1,
4023
+ secondaryLogo: p = !1,
4301
4024
  secondaryLogoSrc: k,
4302
- secondaryLogoSrcDark: p,
4303
- secondaryLogoAlt: h = "Secondary Logo",
4304
- navItems: v,
4305
- showNavItems: b = !0,
4306
- showMenuButton: g = !0,
4307
- showHeaderExtension: m = !1,
4025
+ secondaryLogoSrcDark: g,
4026
+ secondaryLogoAlt: f = "Secondary Logo",
4027
+ navItems: h,
4028
+ showNavItems: v = !0,
4029
+ showMenuButton: m = !0,
4030
+ showHeaderExtension: u = !1,
4308
4031
  showModeToggle: T = !1,
4309
- showLanguageSwitch: B = !1
4032
+ showLanguageSwitch: j = !1
4310
4033
  }) => {
4311
- const [F, E] = oe(!1), [j, A] = oe(!1), [N, $] = oe(""), [_, W] = oe("light"), { language: R, setLanguage: M, t: I } = us(), [U, ne] = oe(!1);
4312
- 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(() => {
4313
4036
  const x = "rk-header-inline-styles";
4314
4037
  if (typeof document > "u" || document.getElementById(x)) return;
4315
- const D = ma(S), C = document.createElement("style");
4316
- 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);
4317
4040
  }, []);
4318
- const Y = () => /* @__PURE__ */ r.jsxs(
4041
+ const Z = () => /* @__PURE__ */ B(
4319
4042
  "svg",
4320
4043
  {
4321
4044
  width: "170",
@@ -4325,368 +4048,368 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4325
4048
  xmlns: "http://www.w3.org/2000/svg",
4326
4049
  "aria-hidden": !0,
4327
4050
  focusable: "false",
4328
- className: S.redCrossLogo,
4051
+ className: y.redCrossLogo,
4329
4052
  children: [
4330
- /* @__PURE__ */ r.jsx("path", { d: "M76.1036 48.1397C77.8925 47.8781 79.6984 47.7525 81.5061 47.7639C84.1713 47.7639 86.0396 48.1669 87.3182 49.1857C87.8735 49.639 88.3149 50.2176 88.6067 50.8744C88.8984 51.5312 89.0323 52.2479 88.9974 52.9665C88.9839 53.9451 88.6724 54.896 88.1049 55.691C87.5373 56.4861 86.7411 57.087 85.8235 57.4129V57.4944C87.0796 58.006 87.7684 59.2104 88.2231 60.8722C88.7813 62.9097 89.3441 65.2688 89.6907 65.9661H85.5309C85.2382 65.4544 84.7835 63.9829 84.2793 61.7597C83.7751 59.5365 83.0097 58.8527 81.344 58.8527H80.1284V65.9661H76.1036V48.1397ZM80.1284 55.9141H81.7312C83.7526 55.9141 84.9546 54.8954 84.9546 53.3151C84.9546 51.6534 83.8336 50.8202 81.9698 50.7931C81.3532 50.7814 80.7368 50.8268 80.1284 50.9289V55.9141Z", fill: "#1E1E1E" }),
4331
- /* @__PURE__ */ r.jsx("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
4332
- /* @__PURE__ */ r.jsx("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
4333
- /* @__PURE__ */ r.jsx("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
4334
- /* @__PURE__ */ r.jsx("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
4335
- /* @__PURE__ */ r.jsx("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
4336
- /* @__PURE__ */ r.jsx("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
4337
- /* @__PURE__ */ r.jsx("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
4338
- /* @__PURE__ */ r.jsx("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
4339
- /* @__PURE__ */ r.jsx("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
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" })
4340
4063
  ]
4341
4064
  }
4342
4065
  );
4343
- te(() => {
4344
- E(!1), A(!1), $("");
4345
- }, [t]), te(() => {
4346
- if (!(typeof document > "u") && F && U) {
4066
+ K(() => {
4067
+ L(!1), I(!1), z("");
4068
+ }, [t]), K(() => {
4069
+ if (!(typeof document > "u") && A && V) {
4347
4070
  const x = document.body.style.overflow;
4348
4071
  return document.body.style.overflow = "hidden", () => {
4349
4072
  document.body.style.overflow = x;
4350
4073
  };
4351
4074
  }
4352
- }, [F, U]), te(() => {
4075
+ }, [A, V]), K(() => {
4353
4076
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
4354
- const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
4355
- return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
4356
- 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);
4357
4080
  };
4358
- }, []), te(() => {
4081
+ }, []), K(() => {
4359
4082
  if (typeof document > "u") return;
4360
- const x = document.querySelector(`.${S.header}`);
4083
+ const x = document.querySelector(`.${y.header}`);
4361
4084
  if (!x) return;
4362
- const D = () => {
4363
- const H = x.offsetHeight;
4364
- 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`);
4365
4088
  };
4366
- D(), window.addEventListener("resize", D);
4367
- const C = new ResizeObserver(() => {
4368
- D();
4089
+ C(), window.addEventListener("resize", C);
4090
+ const N = new ResizeObserver(() => {
4091
+ C();
4369
4092
  });
4370
- return C.observe(x), () => {
4371
- window.removeEventListener("resize", D), C.disconnect();
4093
+ return N.observe(x), () => {
4094
+ window.removeEventListener("resize", C), N.disconnect();
4372
4095
  };
4373
- }, [U]), te(() => {
4096
+ }, [V]), K(() => {
4374
4097
  if (typeof document > "u") return;
4375
- const x = document.querySelector(`.${S.logoWrapper}`);
4098
+ const x = document.querySelector(`.${y.logoWrapper}`);
4376
4099
  if (!x) return;
4377
- const D = () => {
4378
- const C = x.offsetWidth;
4379
- 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`);
4380
4103
  };
4381
- return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
4382
- }, [U]), te(() => {
4383
- 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) {
4384
4107
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
4385
4108
  return;
4386
4109
  }
4387
- const x = document.querySelector(`.${S.searchOverlay}`);
4110
+ const x = document.querySelector(`.${y.searchOverlay}`);
4388
4111
  if (!x) return;
4389
- const D = () => {
4390
- const H = x.offsetHeight;
4391
- 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`);
4392
4115
  };
4393
- requestAnimationFrame(D), window.addEventListener("resize", D);
4394
- const C = new ResizeObserver(D);
4395
- return C.observe(x), () => {
4396
- 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();
4397
4120
  };
4398
- }, [j]);
4399
- const K = () => {
4400
- const x = _ === "light" ? "dark" : "light";
4401
- W(x), document.documentElement.setAttribute("data-color-scheme", x);
4402
- }, re = (x) => {
4403
- e && (x.preventDefault(), e("home")), E(!1), A(!1);
4404
- }, c = () => {
4405
- E(!F), j && A(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
4406
- 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}`);
4407
4130
  if (x) {
4408
- const D = x.offsetHeight;
4409
- document.documentElement.style.setProperty("--header-height-mobile", `${D}px`);
4131
+ const C = x.offsetHeight;
4132
+ document.documentElement.style.setProperty("--header-height-mobile", `${C}px`);
4410
4133
  }
4411
4134
  });
4412
- }, L = () => {
4413
- A(!j), F && E(!1);
4414
- }, P = be(() => {
4415
- if (!N.trim()) return [];
4416
- const x = N.toLowerCase();
4417
- return ua.filter(
4418
- (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)
4419
4142
  );
4420
- }, [N]), z = (x) => {
4421
- e && e(x), A(!1), $("");
4143
+ }, [F]), X = (x) => {
4144
+ e && e(x), I(!1), z("");
4422
4145
  };
4423
- return /* @__PURE__ */ r.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
4424
- m && /* @__PURE__ */ r.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: S.extensionContentWrapper, children: [
4425
- T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
4426
- Ue,
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,
4427
4150
  {
4428
4151
  "data-size": "sm",
4429
- checked: _ === "dark",
4430
- onChange: K,
4431
- label: I("header.darkMode"),
4152
+ checked: P === "dark",
4153
+ onChange: Y,
4154
+ label: D("header.darkMode"),
4432
4155
  color: "neutral",
4433
4156
  "data-color-scheme": "light"
4434
4157
  }
4435
4158
  ) }),
4436
- T && B && /* @__PURE__ */ r.jsx("div", { className: S.extensionDivider }),
4437
- B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4438
- /* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4439
- /* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
4440
- /* @__PURE__ */ r.jsxs(
4441
- 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,
4442
4165
  {
4443
- className: S.languageLink,
4444
- "aria-label": I("header.selectLanguage"),
4166
+ className: y.languageLink,
4167
+ "aria-label": D("header.selectLanguage"),
4445
4168
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4446
4169
  children: [
4447
- R,
4170
+ _,
4448
4171
  " ",
4449
- /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
4172
+ /* @__PURE__ */ d(ut, { "aria-hidden": !0 })
4450
4173
  ]
4451
4174
  }
4452
4175
  ),
4453
- /* @__PURE__ */ r.jsx(
4454
- ee,
4176
+ /* @__PURE__ */ d(
4177
+ q,
4455
4178
  {
4456
- "data-color-scheme": _,
4179
+ "data-color-scheme": P,
4457
4180
  placement: "bottom-end",
4458
- children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
4459
- /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
4460
- /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
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)" }) })
4461
4184
  ] })
4462
4185
  }
4463
4186
  )
4464
4187
  ] })
4465
4188
  ] })
4466
4189
  ] }) }),
4467
- /* @__PURE__ */ r.jsxs("div", { className: S.headerInner, children: [
4468
- /* @__PURE__ */ r.jsxs("div", { className: S.logoWrapper, children: [
4469
- /* @__PURE__ */ r.jsx(
4470
- _e,
4190
+ /* @__PURE__ */ B("div", { className: y.headerInner, children: [
4191
+ /* @__PURE__ */ B("div", { className: y.logoWrapper, children: [
4192
+ /* @__PURE__ */ d(
4193
+ Ne,
4471
4194
  {
4472
4195
  href: "/",
4473
- className: `${S.logo} ${S.primaryLogo}`,
4474
- "aria-label": I("header.homeAriaLabel"),
4475
- onClick: re,
4476
- children: /* @__PURE__ */ r.jsx(Y, {})
4196
+ className: `${y.logo} ${y.primaryLogo}`,
4197
+ "aria-label": D("header.homeAriaLabel"),
4198
+ onClick: de,
4199
+ children: /* @__PURE__ */ d(Z, {})
4477
4200
  }
4478
4201
  ),
4479
- /* @__PURE__ */ r.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
4202
+ /* @__PURE__ */ d("div", { className: y.secondaryLogoWrapper, children: p && k ? /* @__PURE__ */ d(
4480
4203
  "img",
4481
4204
  {
4482
- src: _ === "dark" && p ? p : k,
4483
- alt: h,
4484
- className: S.secondaryLogo
4205
+ src: P === "dark" && g ? g : k,
4206
+ alt: f,
4207
+ className: y.secondaryLogo
4485
4208
  }
4486
- ) : f ? /* @__PURE__ */ r.jsx("div", { className: S.slotComponent, children: /* @__PURE__ */ r.jsx("div", { className: S.slotContainer, children: /* @__PURE__ */ r.jsx("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
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 })
4487
4210
  ] }),
4488
- b && v && v.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: v.map((x, D) => /* @__PURE__ */ r.jsx(
4489
- _e,
4211
+ v && h && h.length > 0 && !V && /* @__PURE__ */ d("nav", { className: y.navItems, children: h.map((x, C) => /* @__PURE__ */ d(
4212
+ Ne,
4490
4213
  {
4491
4214
  href: x.href,
4492
- className: S.navLink,
4493
- onClick: (C) => {
4494
- e && (C.preventDefault(), e(x.href));
4215
+ className: y.navLink,
4216
+ onClick: (N) => {
4217
+ e && (N.preventDefault(), e(x.href));
4495
4218
  },
4496
4219
  children: x.label
4497
4220
  },
4498
- D
4221
+ C
4499
4222
  )) }),
4500
- /* @__PURE__ */ r.jsxs("div", { className: S.actions, children: [
4501
- o && /* @__PURE__ */ r.jsxs(
4502
- ye,
4223
+ /* @__PURE__ */ B("div", { className: y.actions, children: [
4224
+ o && /* @__PURE__ */ B(
4225
+ Te,
4503
4226
  {
4504
4227
  variant: "primary",
4505
4228
  "data-color": "main",
4506
4229
  "data-size": "md",
4507
- className: S.ctaButton,
4508
- onClick: u,
4230
+ className: y.ctaButton,
4231
+ onClick: c,
4509
4232
  children: [
4510
- l,
4511
- /* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: d || I("header.supportUs") })
4233
+ a,
4234
+ /* @__PURE__ */ d("span", { className: y.buttonText, children: l || D("header.supportUs") })
4512
4235
  ]
4513
4236
  }
4514
4237
  ),
4515
- !m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
4516
- Ue,
4238
+ !u && b && /* @__PURE__ */ d("div", { className: y.themeToggle, children: /* @__PURE__ */ d(
4239
+ Ve,
4517
4240
  {
4518
- checked: _ === "dark",
4519
- onChange: K,
4520
- "aria-label": I("header.toggleTheme")
4241
+ checked: P === "dark",
4242
+ onChange: Y,
4243
+ "aria-label": D("header.toggleTheme")
4521
4244
  }
4522
4245
  ) }),
4523
- s && /* @__PURE__ */ r.jsxs("div", { className: S.userInfo, children: [
4524
- /* @__PURE__ */ r.jsx(Ze, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
4525
- /* @__PURE__ */ r.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
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" })
4526
4249
  ] }),
4527
- a && /* @__PURE__ */ r.jsxs("a", { href: "#", className: S.loginLink, children: [
4528
- /* @__PURE__ */ r.jsx("span", { className: S.loginText, children: I("header.login") }),
4529
- /* @__PURE__ */ r.jsx("div", { className: S.underline })
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 })
4530
4253
  ] }),
4531
- i && /* @__PURE__ */ r.jsx("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ r.jsxs(
4532
- ye,
4254
+ i && /* @__PURE__ */ d("div", { className: y.searchButtonWrapper, children: /* @__PURE__ */ B(
4255
+ Te,
4533
4256
  {
4534
4257
  variant: "secondary",
4535
4258
  "data-color": "main",
4536
4259
  "data-size": "md",
4537
- onClick: L,
4538
- "aria-expanded": j,
4539
- "aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
4260
+ onClick: ie,
4261
+ "aria-expanded": w,
4262
+ "aria-label": D(w ? "header.closeSearch" : "header.openSearch"),
4540
4263
  children: [
4541
- j ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
4542
- /* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
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") })
4543
4266
  ]
4544
4267
  }
4545
4268
  ) }),
4546
- (g || U) && /* @__PURE__ */ r.jsxs(
4547
- ye,
4269
+ (m || V) && /* @__PURE__ */ B(
4270
+ Te,
4548
4271
  {
4549
4272
  variant: "primary",
4550
4273
  "data-color": "main",
4551
4274
  "data-size": "md",
4552
- onClick: c,
4553
- "aria-expanded": F,
4554
- "aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
4555
- className: S.menuButton,
4275
+ onClick: J,
4276
+ "aria-expanded": A,
4277
+ "aria-label": D(A ? "header.closeMenu" : "header.openMenu"),
4278
+ className: y.menuButton,
4556
4279
  children: [
4557
- F ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
4558
- /* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
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") })
4559
4282
  ]
4560
4283
  }
4561
4284
  )
4562
4285
  ] })
4563
4286
  ] }),
4564
- F && /* @__PURE__ */ r.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.menuContent, children: [
4565
- /* @__PURE__ */ r.jsx("div", { className: S.menuLeftColumn }),
4566
- /* @__PURE__ */ r.jsxs("div", { className: S.menuRightColumn, children: [
4567
- U && (B || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
4568
- B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
4569
- /* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
4570
- /* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
4571
- /* @__PURE__ */ r.jsxs(
4572
- 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,
4573
4296
  {
4574
- className: S.languageLink,
4575
- "aria-label": I("header.selectLanguage"),
4297
+ className: y.languageLink,
4298
+ "aria-label": D("header.selectLanguage"),
4576
4299
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4577
4300
  children: [
4578
- R,
4301
+ _,
4579
4302
  " ",
4580
- /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
4303
+ /* @__PURE__ */ d(ut, { "aria-hidden": !0 })
4581
4304
  ]
4582
4305
  }
4583
4306
  ),
4584
- /* @__PURE__ */ r.jsx(
4585
- ee,
4307
+ /* @__PURE__ */ d(
4308
+ q,
4586
4309
  {
4587
- "data-color-scheme": _,
4310
+ "data-color-scheme": P,
4588
4311
  placement: "bottom-start",
4589
- children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
4590
- /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
4591
- /* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
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)" }) })
4592
4315
  ] })
4593
4316
  }
4594
4317
  )
4595
4318
  ] })
4596
4319
  ] }),
4597
- T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
4598
- Ue,
4320
+ T && /* @__PURE__ */ d("div", { className: y.extensionContent, children: /* @__PURE__ */ d(
4321
+ Ve,
4599
4322
  {
4600
4323
  "data-size": "sm",
4601
- checked: _ === "dark",
4602
- onChange: K,
4603
- label: I("header.darkMode"),
4324
+ checked: P === "dark",
4325
+ onChange: Y,
4326
+ label: D("header.darkMode"),
4604
4327
  color: "neutral",
4605
4328
  "data-color-scheme": "light"
4606
4329
  }
4607
4330
  ) })
4608
4331
  ] }),
4609
- /* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
4332
+ /* @__PURE__ */ B("div", { className: y.slotContent, children: [
4610
4333
  n,
4611
- U && b && v && v.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: v.map((x, D) => /* @__PURE__ */ r.jsx(
4612
- _e,
4334
+ V && v && h && h.length > 0 && /* @__PURE__ */ d("nav", { className: y.navList, children: h.map((x, C) => /* @__PURE__ */ d(
4335
+ Ne,
4613
4336
  {
4614
4337
  href: x.href,
4615
- className: S.navLink,
4616
- onClick: (C) => {
4617
- e && (C.preventDefault(), e(x.href));
4338
+ className: y.navLink,
4339
+ onClick: (N) => {
4340
+ e && (N.preventDefault(), e(x.href));
4618
4341
  },
4619
4342
  children: x.label
4620
4343
  },
4621
- D
4344
+ C
4622
4345
  )) })
4623
4346
  ] }),
4624
- U && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
4347
+ V && /* @__PURE__ */ d("div", { className: y.menuBrand, children: /* @__PURE__ */ d(Z, {}) })
4625
4348
  ] })
4626
4349
  ] }) }),
4627
- j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
4628
- /* @__PURE__ */ r.jsxs(Pe, { children: [
4629
- /* @__PURE__ */ r.jsx(
4350
+ w && /* @__PURE__ */ d("div", { className: y.searchOverlay, children: /* @__PURE__ */ B("div", { className: y.searchContent, children: [
4351
+ /* @__PURE__ */ B(Pe, { children: [
4352
+ /* @__PURE__ */ d(
4630
4353
  Pe.Input,
4631
4354
  {
4632
- "aria-label": I("header.search"),
4633
- placeholder: I("header.searchPlaceholder"),
4634
- value: N,
4635
- 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)
4636
4359
  }
4637
4360
  ),
4638
- /* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": I("header.search") }),
4639
- /* @__PURE__ */ r.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") })
4640
4363
  ] }),
4641
- N && /* @__PURE__ */ r.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: S.suggestionsSection, children: [
4642
- /* @__PURE__ */ r.jsx("h3", { className: S.suggestionsTitle, children: I("header.suggestions") }),
4643
- /* @__PURE__ */ r.jsx("ul", { className: S.resultList, children: P.slice(0, 5).map((x) => /* @__PURE__ */ r.jsx("li", { className: S.resultItem, children: /* @__PURE__ */ r.jsxs(
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(
4644
4367
  "button",
4645
4368
  {
4646
- className: S.resultLink,
4647
- onClick: () => z(x.path),
4369
+ className: y.resultLink,
4370
+ onClick: () => X(x.path),
4648
4371
  children: [
4649
- /* @__PURE__ */ r.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
4650
- /* @__PURE__ */ r.jsx("span", { className: S.suggestionText, children: (() => {
4651
- const D = x.title.toLowerCase().indexOf(N.toLowerCase());
4652
- if (D === -1) return /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: x.title });
4653
- const C = x.title.slice(0, D), H = x.title.slice(D, D + N.length), J = x.title.slice(D + N.length);
4654
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4655
- /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: C }),
4656
- /* @__PURE__ */ r.jsx("span", { className: S.highlightedText, children: H }),
4657
- /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: J })
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 })
4658
4381
  ] });
4659
4382
  })() })
4660
4383
  ]
4661
4384
  }
4662
4385
  ) }, x.id)) }),
4663
- P.length > 5 && /* @__PURE__ */ r.jsxs(
4664
- _e,
4386
+ Q.length > 5 && /* @__PURE__ */ B(
4387
+ Ne,
4665
4388
  {
4666
4389
  href: "#",
4667
4390
  "data-color": "neutral",
4668
- className: S.viewAllLink,
4391
+ className: y.viewAllLink,
4669
4392
  onClick: (x) => {
4670
- x.preventDefault(), e && e(`search/${N}`), A(!1), $("");
4393
+ x.preventDefault(), e && e(`search/${F}`), I(!1), z("");
4671
4394
  },
4672
4395
  children: [
4673
- I("header.viewAll"),
4396
+ D("header.viewAll"),
4674
4397
  " (",
4675
- P.length,
4398
+ Q.length,
4676
4399
  ")"
4677
4400
  ]
4678
4401
  }
4679
4402
  )
4680
- ] }) : /* @__PURE__ */ r.jsx("div", { className: S.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
4681
- I("header.noResults"),
4403
+ ] }) : /* @__PURE__ */ d("div", { className: y.noResults, children: /* @__PURE__ */ B(Ye, { children: [
4404
+ D("header.noResults"),
4682
4405
  ' "',
4683
- N,
4406
+ F,
4684
4407
  '"'
4685
4408
  ] }) }) })
4686
4409
  ] }) })
4687
4410
  ] });
4688
4411
  };
4689
- function ma(t) {
4412
+ function si(t) {
4690
4413
  const e = t;
4691
4414
  return `
4692
4415
  .${e.header} {
@@ -4817,59 +4540,59 @@ function ma(t) {
4817
4540
  `;
4818
4541
  }
4819
4542
  export {
4820
- so as Alert,
4821
- Ft as Avatar,
4822
- ao as Badge,
4823
- ka as BadgePosition,
4824
- va as Breadcrumbs,
4825
- ya as BreadcrumbsItem,
4826
- xa as BreadcrumbsLink,
4827
- ba as BreadcrumbsList,
4828
- ye as Button,
4829
- io as Card,
4830
- Ta as CardBlock,
4831
- os as Carousel,
4832
- lo as Checkbox,
4833
- wa as Chip,
4834
- ir as DateInput,
4835
- Qo as DatePicker,
4836
- Ca as Details,
4837
- ja as Dialog,
4838
- Da as Divider,
4839
- ee as Dropdown,
4840
- Ia as ErrorSummary,
4841
- Aa as Field,
4842
- ss as FieldCounter,
4843
- rs as FieldDescription,
4844
- La as Fieldset,
4845
- Ya as Header,
4846
- as as Heading,
4847
- Fa as Input,
4848
- is as Label,
4849
- Ka as LanguageProvider,
4850
- _e as Link,
4851
- Ba as List,
4852
- Ea as Pagination,
4853
- Ze as Paragraph,
4854
- _a as Popover,
4855
- Pa as Radio,
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,
4573
+ Ne as Link,
4574
+ Di as List,
4575
+ Ii as Pagination,
4576
+ Ye as Paragraph,
4577
+ ji as Popover,
4578
+ Li as Radio,
4856
4579
  Pe as Search,
4857
- Ma as Select,
4858
- za as SkeletonLoader,
4859
- Oa as SkipLink,
4860
- ns as Spinner,
4861
- ls as Suggestion,
4862
- Ue as Switch,
4863
- $a as Table,
4864
- Ha as Tabs,
4865
- Wa as Tag,
4866
- Va as Textarea,
4867
- Ga as Textfield,
4868
- Ua as ToggleGroup,
4869
- qa as Tooltip,
4870
- ds as ValidationMessage,
4871
- Sa as useCheckboxGroup,
4872
- us as useLanguage,
4873
- Na as usePagination,
4874
- 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
4875
4598
  };