rk-designsystem 1.1.69 → 1.1.71
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.
- package/dist/componentlibrary.es.js +1573 -1429
- package/dist/componentlibrary.umd.js +15 -3
- package/dist/index.d.ts +33 -1
- package/dist/rk-designsystem.css +1 -1
- package/package.json +3 -3
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Alert as
|
|
4
|
-
import { startOfMonth as
|
|
5
|
-
import { ChevronLeftIcon as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
1
|
+
import { jsx as s, jsxs as w, Fragment as Ot } from "react/jsx-runtime";
|
|
2
|
+
import Ve, { forwardRef as ge, useState as ne, useEffect as Z, useMemo as Se, useCallback as re, useRef as Ke, createContext as Vt, useContext as Kt } from "react";
|
|
3
|
+
import { Alert as Yt, Avatar as qt, BadgePosition as Xt, Badge as Jt, Breadcrumbs as Zt, BreadcrumbsList as Qt, BreadcrumbsItem as en, BreadcrumbsLink as tn, Button as Ye, Card as nn, CardBlock as on, Checkbox as rn, useCheckboxGroup as sn, Fieldset as Ct, Chip as an, Spinner as ln, Details as dn, Dialog as cn, Divider as un, Dropdown as mn, ErrorSummary as pn, Field as gn, FieldDescription as hn, FieldCounter as fn, Heading as kn, Input as yn, Label as vn, Link as bn, List as Tn, Pagination as Sn, usePagination as xn, Paragraph as Cn, Popover as wn, Radio as In, useRadioGroup as Dn, Search as _n, SearchInput as An, SearchClear as Mn, SearchButton as jn, Select as Fn, Skeleton as Ln, SkipLink as En, EXPERIMENTAL_Suggestion as Nn, Switch as Bn, Table as Pn, Tabs as zn, Tag as Gn, Textarea as Rn, Textfield as Wn, ToggleGroup as Un, Tooltip as $n, ValidationMessage as Hn } from "@digdir/designsystemet-react";
|
|
4
|
+
import { startOfMonth as be, isValid as $e, isSameMonth as mt, startOfWeek as wt, format as we, addDays as It, subMonths as On, addMonths as Vn, isSameDay as Kn, isToday as Yn, eachDayOfInterval as qn } from "date-fns";
|
|
5
|
+
import { ChevronLeftIcon as Xn, ChevronRightIcon as Jn, ChevronDownIcon as pt, XMarkIcon as gt, MagnifyingGlassIcon as ht, MenuHamburgerIcon as Zn, HeartIcon as Qn } from "@navikt/aksel-icons";
|
|
6
|
+
const eo = ge((t, e) => /* @__PURE__ */ s(Yt, { ref: e, ...t }));
|
|
7
|
+
eo.displayName = "Alert";
|
|
8
|
+
const Dt = ge((t, e) => /* @__PURE__ */ s(qt, { ref: e, ...t }));
|
|
9
|
+
Dt.displayName = "Avatar";
|
|
10
|
+
const to = ge((t, e) => /* @__PURE__ */ s(Jt, { ref: e, ...t }));
|
|
11
|
+
to.displayName = "Badge";
|
|
12
|
+
const Pi = Xt, zi = Zt, Gi = Qt, Ri = en, Wi = tn, xe = Ye;
|
|
13
|
+
xe.displayName = "Button";
|
|
14
|
+
const no = nn, Ui = on;
|
|
15
|
+
no.displayName = "Card";
|
|
16
|
+
const oo = rn, ro = Ct, $i = sn;
|
|
17
|
+
oo.displayName = "Checkbox";
|
|
18
|
+
ro.displayName = "Fieldset";
|
|
19
|
+
const Hi = an;
|
|
20
20
|
function He(t) {
|
|
21
21
|
return (e = {}) => {
|
|
22
22
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
23
23
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ie(t) {
|
|
27
27
|
return (e, n) => {
|
|
28
28
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
29
|
-
let
|
|
29
|
+
let a;
|
|
30
30
|
if (r === "formatting" && t.formattingValues) {
|
|
31
|
-
const o = t.defaultFormattingWidth || t.defaultWidth,
|
|
32
|
-
|
|
31
|
+
const o = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : o;
|
|
32
|
+
a = t.formattingValues[d] || t.formattingValues[o];
|
|
33
33
|
} else {
|
|
34
|
-
const o = t.defaultWidth,
|
|
35
|
-
|
|
34
|
+
const o = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
35
|
+
a = t.values[d] || t.values[o];
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
return i
|
|
37
|
+
const i = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
38
|
+
return a[i];
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function De(t) {
|
|
42
42
|
return (e, n = {}) => {
|
|
43
|
-
const r = n.width,
|
|
44
|
-
if (!
|
|
43
|
+
const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
|
|
44
|
+
if (!i)
|
|
45
45
|
return null;
|
|
46
|
-
const o =
|
|
46
|
+
const o = i[0], d = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? io(d, (u) => u.test(o)) : (
|
|
47
47
|
// [TODO] -- I challenge you to fix the type
|
|
48
|
-
|
|
48
|
+
so(d, (u) => u.test(o))
|
|
49
49
|
);
|
|
50
50
|
let c;
|
|
51
|
-
c = t.valueCallback ? t.valueCallback(
|
|
51
|
+
c = t.valueCallback ? t.valueCallback(l) : l, c = n.valueCallback ? (
|
|
52
52
|
// [TODO] -- I challenge you to fix the type
|
|
53
53
|
n.valueCallback(c)
|
|
54
54
|
) : c;
|
|
@@ -56,29 +56,29 @@ function we(t) {
|
|
|
56
56
|
return { value: c, rest: v };
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function so(t, e) {
|
|
60
60
|
for (const n in t)
|
|
61
61
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
62
62
|
return n;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function io(t, e) {
|
|
65
65
|
for (let n = 0; n < t.length; n++)
|
|
66
66
|
if (e(t[n]))
|
|
67
67
|
return n;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ao(t) {
|
|
70
70
|
return (e, n = {}) => {
|
|
71
71
|
const r = e.match(t.matchPattern);
|
|
72
72
|
if (!r) return null;
|
|
73
|
-
const
|
|
74
|
-
if (!
|
|
75
|
-
let o = t.valueCallback ? t.valueCallback(
|
|
73
|
+
const a = r[0], i = e.match(t.parsePattern);
|
|
74
|
+
if (!i) return null;
|
|
75
|
+
let o = t.valueCallback ? t.valueCallback(i[0]) : i[0];
|
|
76
76
|
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
77
|
-
const
|
|
78
|
-
return { value: o, rest:
|
|
77
|
+
const d = e.slice(a.length);
|
|
78
|
+
return { value: o, rest: d };
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const lo = {
|
|
82
82
|
lessThanXSeconds: {
|
|
83
83
|
one: "mindre enn ett sekund",
|
|
84
84
|
other: "mindre enn {{count}} sekunder"
|
|
@@ -140,54 +140,54 @@ const io = {
|
|
|
140
140
|
one: "nesten ett år",
|
|
141
141
|
other: "nesten {{count}} år"
|
|
142
142
|
}
|
|
143
|
-
},
|
|
143
|
+
}, co = (t, e, n) => {
|
|
144
144
|
let r;
|
|
145
|
-
const
|
|
146
|
-
return typeof
|
|
147
|
-
},
|
|
145
|
+
const a = lo[t];
|
|
146
|
+
return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + r : r + " siden" : r;
|
|
147
|
+
}, uo = {
|
|
148
148
|
full: "EEEE d. MMMM y",
|
|
149
149
|
long: "d. MMMM y",
|
|
150
150
|
medium: "d. MMM y",
|
|
151
151
|
short: "dd.MM.y"
|
|
152
|
-
},
|
|
152
|
+
}, mo = {
|
|
153
153
|
full: "'kl'. HH:mm:ss zzzz",
|
|
154
154
|
long: "HH:mm:ss z",
|
|
155
155
|
medium: "HH:mm:ss",
|
|
156
156
|
short: "HH:mm"
|
|
157
|
-
},
|
|
157
|
+
}, po = {
|
|
158
158
|
full: "{{date}} 'kl.' {{time}}",
|
|
159
159
|
long: "{{date}} 'kl.' {{time}}",
|
|
160
160
|
medium: "{{date}} {{time}}",
|
|
161
161
|
short: "{{date}} {{time}}"
|
|
162
|
-
},
|
|
162
|
+
}, go = {
|
|
163
163
|
date: He({
|
|
164
|
-
formats:
|
|
164
|
+
formats: uo,
|
|
165
165
|
defaultWidth: "full"
|
|
166
166
|
}),
|
|
167
167
|
time: He({
|
|
168
|
-
formats:
|
|
168
|
+
formats: mo,
|
|
169
169
|
defaultWidth: "full"
|
|
170
170
|
}),
|
|
171
171
|
dateTime: He({
|
|
172
|
-
formats:
|
|
172
|
+
formats: po,
|
|
173
173
|
defaultWidth: "full"
|
|
174
174
|
})
|
|
175
|
-
},
|
|
175
|
+
}, ho = {
|
|
176
176
|
lastWeek: "'forrige' eeee 'kl.' p",
|
|
177
177
|
yesterday: "'i går kl.' p",
|
|
178
178
|
today: "'i dag kl.' p",
|
|
179
179
|
tomorrow: "'i morgen kl.' p",
|
|
180
180
|
nextWeek: "EEEE 'kl.' p",
|
|
181
181
|
other: "P"
|
|
182
|
-
},
|
|
182
|
+
}, fo = (t, e, n, r) => ho[t], ko = {
|
|
183
183
|
narrow: ["f.Kr.", "e.Kr."],
|
|
184
184
|
abbreviated: ["f.Kr.", "e.Kr."],
|
|
185
185
|
wide: ["før Kristus", "etter Kristus"]
|
|
186
|
-
},
|
|
186
|
+
}, yo = {
|
|
187
187
|
narrow: ["1", "2", "3", "4"],
|
|
188
188
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
189
189
|
wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
|
|
190
|
-
},
|
|
190
|
+
}, vo = {
|
|
191
191
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
192
192
|
abbreviated: [
|
|
193
193
|
"jan.",
|
|
@@ -217,7 +217,7 @@ const io = {
|
|
|
217
217
|
"november",
|
|
218
218
|
"desember"
|
|
219
219
|
]
|
|
220
|
-
},
|
|
220
|
+
}, bo = {
|
|
221
221
|
narrow: ["S", "M", "T", "O", "T", "F", "L"],
|
|
222
222
|
short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
|
|
223
223
|
abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
|
@@ -230,7 +230,7 @@ const io = {
|
|
|
230
230
|
"fredag",
|
|
231
231
|
"lørdag"
|
|
232
232
|
]
|
|
233
|
-
},
|
|
233
|
+
}, To = {
|
|
234
234
|
narrow: {
|
|
235
235
|
am: "a",
|
|
236
236
|
pm: "p",
|
|
@@ -261,46 +261,46 @@ const io = {
|
|
|
261
261
|
evening: "på kvelden",
|
|
262
262
|
night: "på natten"
|
|
263
263
|
}
|
|
264
|
-
},
|
|
265
|
-
ordinalNumber:
|
|
266
|
-
era:
|
|
267
|
-
values:
|
|
264
|
+
}, So = (t, e) => Number(t) + ".", xo = {
|
|
265
|
+
ordinalNumber: So,
|
|
266
|
+
era: Ie({
|
|
267
|
+
values: ko,
|
|
268
268
|
defaultWidth: "wide"
|
|
269
269
|
}),
|
|
270
|
-
quarter:
|
|
271
|
-
values:
|
|
270
|
+
quarter: Ie({
|
|
271
|
+
values: yo,
|
|
272
272
|
defaultWidth: "wide",
|
|
273
273
|
argumentCallback: (t) => t - 1
|
|
274
274
|
}),
|
|
275
|
-
month:
|
|
276
|
-
values:
|
|
275
|
+
month: Ie({
|
|
276
|
+
values: vo,
|
|
277
277
|
defaultWidth: "wide"
|
|
278
278
|
}),
|
|
279
|
-
day:
|
|
280
|
-
values:
|
|
279
|
+
day: Ie({
|
|
280
|
+
values: bo,
|
|
281
281
|
defaultWidth: "wide"
|
|
282
282
|
}),
|
|
283
|
-
dayPeriod:
|
|
284
|
-
values:
|
|
283
|
+
dayPeriod: Ie({
|
|
284
|
+
values: To,
|
|
285
285
|
defaultWidth: "wide"
|
|
286
286
|
})
|
|
287
|
-
},
|
|
287
|
+
}, Co = /^(\d+)\.?/i, wo = /\d+/i, Io = {
|
|
288
288
|
narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
289
289
|
abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
290
290
|
wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
|
|
291
|
-
},
|
|
291
|
+
}, Do = {
|
|
292
292
|
any: [/^f/i, /^e/i]
|
|
293
|
-
},
|
|
293
|
+
}, _o = {
|
|
294
294
|
narrow: /^[1234]/i,
|
|
295
295
|
abbreviated: /^q[1234]/i,
|
|
296
296
|
wide: /^[1234](\.)? kvartal/i
|
|
297
|
-
}, Do = {
|
|
298
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
299
297
|
}, Ao = {
|
|
298
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
299
|
+
}, Mo = {
|
|
300
300
|
narrow: /^[jfmasond]/i,
|
|
301
301
|
abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
|
|
302
302
|
wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
|
|
303
|
-
},
|
|
303
|
+
}, jo = {
|
|
304
304
|
narrow: [
|
|
305
305
|
/^j/i,
|
|
306
306
|
/^f/i,
|
|
@@ -329,17 +329,17 @@ const io = {
|
|
|
329
329
|
/^n/i,
|
|
330
330
|
/^d/i
|
|
331
331
|
]
|
|
332
|
-
},
|
|
332
|
+
}, Fo = {
|
|
333
333
|
narrow: /^[smtofl]/i,
|
|
334
334
|
short: /^(sø|ma|ti|on|to|fr|lø)/i,
|
|
335
335
|
abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
|
|
336
336
|
wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
|
|
337
|
-
},
|
|
337
|
+
}, Lo = {
|
|
338
338
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
339
|
-
},
|
|
339
|
+
}, Eo = {
|
|
340
340
|
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
341
341
|
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
|
|
342
|
-
},
|
|
342
|
+
}, No = {
|
|
343
343
|
any: {
|
|
344
344
|
am: /^a(\.?\s?m\.?)?$/i,
|
|
345
345
|
pm: /^p(\.?\s?m\.?)?$/i,
|
|
@@ -350,55 +350,55 @@ const io = {
|
|
|
350
350
|
evening: /kveld/i,
|
|
351
351
|
night: /natt/i
|
|
352
352
|
}
|
|
353
|
-
},
|
|
354
|
-
ordinalNumber:
|
|
355
|
-
matchPattern:
|
|
356
|
-
parsePattern:
|
|
353
|
+
}, Bo = {
|
|
354
|
+
ordinalNumber: ao({
|
|
355
|
+
matchPattern: Co,
|
|
356
|
+
parsePattern: wo,
|
|
357
357
|
valueCallback: (t) => parseInt(t, 10)
|
|
358
358
|
}),
|
|
359
|
-
era:
|
|
360
|
-
matchPatterns:
|
|
359
|
+
era: De({
|
|
360
|
+
matchPatterns: Io,
|
|
361
361
|
defaultMatchWidth: "wide",
|
|
362
|
-
parsePatterns:
|
|
362
|
+
parsePatterns: Do,
|
|
363
363
|
defaultParseWidth: "any"
|
|
364
364
|
}),
|
|
365
|
-
quarter:
|
|
366
|
-
matchPatterns:
|
|
365
|
+
quarter: De({
|
|
366
|
+
matchPatterns: _o,
|
|
367
367
|
defaultMatchWidth: "wide",
|
|
368
|
-
parsePatterns:
|
|
368
|
+
parsePatterns: Ao,
|
|
369
369
|
defaultParseWidth: "any",
|
|
370
370
|
valueCallback: (t) => t + 1
|
|
371
371
|
}),
|
|
372
|
-
month:
|
|
373
|
-
matchPatterns: Ao,
|
|
374
|
-
defaultMatchWidth: "wide",
|
|
375
|
-
parsePatterns: _o,
|
|
376
|
-
defaultParseWidth: "any"
|
|
377
|
-
}),
|
|
378
|
-
day: we({
|
|
372
|
+
month: De({
|
|
379
373
|
matchPatterns: Mo,
|
|
380
374
|
defaultMatchWidth: "wide",
|
|
381
375
|
parsePatterns: jo,
|
|
382
376
|
defaultParseWidth: "any"
|
|
383
377
|
}),
|
|
384
|
-
|
|
378
|
+
day: De({
|
|
385
379
|
matchPatterns: Fo,
|
|
380
|
+
defaultMatchWidth: "wide",
|
|
381
|
+
parsePatterns: Lo,
|
|
382
|
+
defaultParseWidth: "any"
|
|
383
|
+
}),
|
|
384
|
+
dayPeriod: De({
|
|
385
|
+
matchPatterns: Eo,
|
|
386
386
|
defaultMatchWidth: "any",
|
|
387
|
-
parsePatterns:
|
|
387
|
+
parsePatterns: No,
|
|
388
388
|
defaultParseWidth: "any"
|
|
389
389
|
})
|
|
390
|
-
},
|
|
390
|
+
}, Te = {
|
|
391
391
|
code: "nb",
|
|
392
|
-
formatDistance:
|
|
393
|
-
formatLong:
|
|
394
|
-
formatRelative:
|
|
395
|
-
localize:
|
|
396
|
-
match:
|
|
392
|
+
formatDistance: co,
|
|
393
|
+
formatLong: go,
|
|
394
|
+
formatRelative: fo,
|
|
395
|
+
localize: xo,
|
|
396
|
+
match: Bo,
|
|
397
397
|
options: {
|
|
398
398
|
weekStartsOn: 1,
|
|
399
399
|
firstWeekContainsDate: 4
|
|
400
400
|
}
|
|
401
|
-
},
|
|
401
|
+
}, _t = ({ title: t, ...e }) => /* @__PURE__ */ w(
|
|
402
402
|
"svg",
|
|
403
403
|
{
|
|
404
404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -410,8 +410,8 @@ const io = {
|
|
|
410
410
|
focusable: "false",
|
|
411
411
|
...e,
|
|
412
412
|
children: [
|
|
413
|
-
t && /* @__PURE__ */
|
|
414
|
-
/* @__PURE__ */
|
|
413
|
+
t && /* @__PURE__ */ s("title", { children: t }),
|
|
414
|
+
/* @__PURE__ */ s(
|
|
415
415
|
"path",
|
|
416
416
|
{
|
|
417
417
|
fillRule: "evenodd",
|
|
@@ -423,8 +423,8 @@ const io = {
|
|
|
423
423
|
]
|
|
424
424
|
}
|
|
425
425
|
);
|
|
426
|
-
|
|
427
|
-
const
|
|
426
|
+
_t.displayName = "ChevronLeftIcon";
|
|
427
|
+
const At = ({ title: t, ...e }) => /* @__PURE__ */ w(
|
|
428
428
|
"svg",
|
|
429
429
|
{
|
|
430
430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -436,8 +436,8 @@ const Dt = ({ title: t, ...e }) => /* @__PURE__ */ F(
|
|
|
436
436
|
focusable: "false",
|
|
437
437
|
...e,
|
|
438
438
|
children: [
|
|
439
|
-
t && /* @__PURE__ */
|
|
440
|
-
/* @__PURE__ */
|
|
439
|
+
t && /* @__PURE__ */ s("title", { children: t }),
|
|
440
|
+
/* @__PURE__ */ s(
|
|
441
441
|
"path",
|
|
442
442
|
{
|
|
443
443
|
fillRule: "evenodd",
|
|
@@ -449,138 +449,138 @@ const Dt = ({ title: t, ...e }) => /* @__PURE__ */ F(
|
|
|
449
449
|
]
|
|
450
450
|
}
|
|
451
451
|
);
|
|
452
|
-
|
|
453
|
-
const
|
|
454
|
-
calendarContainer:
|
|
455
|
-
calendarHeader:
|
|
456
|
-
monthYear:
|
|
457
|
-
navigationButtons:
|
|
458
|
-
grid:
|
|
459
|
-
dayNameCell:
|
|
460
|
-
dateCell:
|
|
461
|
-
dateNumberContainer:
|
|
462
|
-
otherMonth:
|
|
463
|
-
selectedDate:
|
|
464
|
-
},
|
|
465
|
-
const e =
|
|
466
|
-
return
|
|
467
|
-
},
|
|
452
|
+
At.displayName = "ChevronRightIcon";
|
|
453
|
+
const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Go = "_monthYear_10l5p_21", Ro = "_navigationButtons_10l5p_32", Wo = "_grid_10l5p_41", Uo = "_dayNameCell_10l5p_48", $o = "_dateCell_10l5p_65", Ho = "_dateNumberContainer_10l5p_90", Oo = "_otherMonth_10l5p_103", Vo = "_selectedDate_10l5p_129", oe = {
|
|
454
|
+
calendarContainer: Po,
|
|
455
|
+
calendarHeader: zo,
|
|
456
|
+
monthYear: Go,
|
|
457
|
+
navigationButtons: Ro,
|
|
458
|
+
grid: Wo,
|
|
459
|
+
dayNameCell: Uo,
|
|
460
|
+
dateCell: $o,
|
|
461
|
+
dateNumberContainer: Ho,
|
|
462
|
+
otherMonth: Oo,
|
|
463
|
+
selectedDate: Vo
|
|
464
|
+
}, Ko = (t) => {
|
|
465
|
+
const e = be(t), n = wt(e, { locale: Te }), r = It(n, 41);
|
|
466
|
+
return qn({ start: n, end: r });
|
|
467
|
+
}, ft = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Yo = ({
|
|
468
468
|
initialDate: t = /* @__PURE__ */ new Date(),
|
|
469
469
|
selectedDate: e = null,
|
|
470
470
|
// Prop for valgt dato
|
|
471
471
|
onDateSelect: n,
|
|
472
472
|
"data-color": r,
|
|
473
473
|
// <-- Destrukturert
|
|
474
|
-
"data-size":
|
|
474
|
+
"data-size": a
|
|
475
475
|
// <-- Destrukturert
|
|
476
476
|
}) => {
|
|
477
|
-
const [
|
|
478
|
-
|
|
477
|
+
const [i, o] = ne(
|
|
478
|
+
be(e && $e(e) ? e : t)
|
|
479
479
|
);
|
|
480
|
-
|
|
481
|
-
if (e &&
|
|
482
|
-
const
|
|
483
|
-
|
|
480
|
+
Z(() => {
|
|
481
|
+
if (e && $e(e)) {
|
|
482
|
+
const m = be(e);
|
|
483
|
+
mt(m, i) || o(m);
|
|
484
484
|
}
|
|
485
485
|
}, [e]);
|
|
486
|
-
const
|
|
487
|
-
() =>
|
|
488
|
-
[
|
|
489
|
-
), v =
|
|
490
|
-
const
|
|
491
|
-
return Array.from({ length: 7 }).map((T,
|
|
492
|
-
const
|
|
493
|
-
return
|
|
486
|
+
const d = Se(() => be(/* @__PURE__ */ new Date()), []), l = Se(() => !1, [i, d]), c = Se(
|
|
487
|
+
() => Ko(i),
|
|
488
|
+
[i]
|
|
489
|
+
), v = Se(() => {
|
|
490
|
+
const m = wt(/* @__PURE__ */ new Date(), { locale: Te });
|
|
491
|
+
return Array.from({ length: 7 }).map((T, A) => {
|
|
492
|
+
const M = we(It(m, A), "EEEEEE", { locale: Te });
|
|
493
|
+
return ft(M);
|
|
494
494
|
});
|
|
495
|
-
}, []),
|
|
496
|
-
|
|
497
|
-
}, [
|
|
498
|
-
o((
|
|
499
|
-
}, []),
|
|
500
|
-
(
|
|
501
|
-
n && n(
|
|
495
|
+
}, []), u = re(() => {
|
|
496
|
+
l || o((m) => be(On(m, 1)));
|
|
497
|
+
}, [l]), f = re(() => {
|
|
498
|
+
o((m) => be(Vn(m, 1)));
|
|
499
|
+
}, []), g = re(
|
|
500
|
+
(m) => {
|
|
501
|
+
n && n(m);
|
|
502
502
|
},
|
|
503
503
|
[n]
|
|
504
|
-
),
|
|
505
|
-
(
|
|
506
|
-
(
|
|
504
|
+
), h = re(
|
|
505
|
+
(m, T) => {
|
|
506
|
+
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(T));
|
|
507
507
|
},
|
|
508
|
-
[
|
|
509
|
-
),
|
|
510
|
-
return /* @__PURE__ */
|
|
508
|
+
[g]
|
|
509
|
+
), k = we(i, "MMMM", { locale: Te }), y = we(i, "yyyy", { locale: Te }), p = `${ft(k)} ${y}`;
|
|
510
|
+
return /* @__PURE__ */ w(
|
|
511
511
|
"div",
|
|
512
512
|
{
|
|
513
|
-
className:
|
|
513
|
+
className: oe.calendarContainer,
|
|
514
514
|
"data-color": r,
|
|
515
|
-
"data-size":
|
|
515
|
+
"data-size": a,
|
|
516
516
|
children: [
|
|
517
|
-
/* @__PURE__ */
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
-
/* @__PURE__ */
|
|
521
|
-
|
|
517
|
+
/* @__PURE__ */ w("div", { className: oe.calendarHeader, children: [
|
|
518
|
+
/* @__PURE__ */ s("span", { className: oe.monthYear, children: p }),
|
|
519
|
+
/* @__PURE__ */ w("div", { className: oe.navigationButtons, children: [
|
|
520
|
+
/* @__PURE__ */ s(
|
|
521
|
+
Ye,
|
|
522
522
|
{
|
|
523
523
|
variant: "tertiary",
|
|
524
524
|
icon: !0,
|
|
525
|
-
onClick:
|
|
525
|
+
onClick: u,
|
|
526
526
|
"aria-label": "Forrige måned",
|
|
527
|
-
disabled:
|
|
528
|
-
children: /* @__PURE__ */
|
|
527
|
+
disabled: l,
|
|
528
|
+
children: /* @__PURE__ */ s(_t, {})
|
|
529
529
|
}
|
|
530
530
|
),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
|
|
531
|
+
/* @__PURE__ */ s(
|
|
532
|
+
Ye,
|
|
533
533
|
{
|
|
534
534
|
variant: "tertiary",
|
|
535
535
|
icon: !0,
|
|
536
|
-
onClick:
|
|
536
|
+
onClick: f,
|
|
537
537
|
"aria-label": "Neste måned",
|
|
538
|
-
children: /* @__PURE__ */
|
|
538
|
+
children: /* @__PURE__ */ s(At, {})
|
|
539
539
|
}
|
|
540
540
|
)
|
|
541
541
|
] })
|
|
542
542
|
] }),
|
|
543
|
-
/* @__PURE__ */
|
|
544
|
-
/* @__PURE__ */
|
|
545
|
-
const T =
|
|
546
|
-
|
|
547
|
-
T ? "" :
|
|
548
|
-
|
|
543
|
+
/* @__PURE__ */ s("div", { className: oe.grid, children: v.map((m) => /* @__PURE__ */ s("div", { className: oe.dayNameCell, children: m }, m)) }),
|
|
544
|
+
/* @__PURE__ */ s("div", { className: oe.grid, children: c.map((m) => {
|
|
545
|
+
const T = mt(m, i), A = e && $e(e) && Kn(m, e), M = Yn(m), C = [
|
|
546
|
+
oe.dateCell,
|
|
547
|
+
T ? "" : oe.otherMonth,
|
|
548
|
+
A ? oe.selectedDate : "",
|
|
549
549
|
// Utheving basert på prop
|
|
550
|
-
|
|
550
|
+
M && !A ? oe.todayDate : ""
|
|
551
551
|
].filter(Boolean).join(" ");
|
|
552
|
-
return /* @__PURE__ */
|
|
552
|
+
return /* @__PURE__ */ s(
|
|
553
553
|
"div",
|
|
554
554
|
{
|
|
555
|
-
className:
|
|
556
|
-
onClick: () => m
|
|
557
|
-
onKeyDown: (
|
|
555
|
+
className: C,
|
|
556
|
+
onClick: () => g(m),
|
|
557
|
+
onKeyDown: (D) => h(D, m),
|
|
558
558
|
role: "button",
|
|
559
559
|
tabIndex: 0,
|
|
560
|
-
"aria-pressed":
|
|
561
|
-
"aria-label":
|
|
562
|
-
children: /* @__PURE__ */
|
|
560
|
+
"aria-pressed": A ?? !1,
|
|
561
|
+
"aria-label": we(m, "PPP", { locale: Te }),
|
|
562
|
+
children: /* @__PURE__ */ s("span", { className: oe.dateNumberContainer, children: we(m, "d") })
|
|
563
563
|
},
|
|
564
|
-
|
|
564
|
+
m.toISOString()
|
|
565
565
|
);
|
|
566
566
|
}) })
|
|
567
567
|
]
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
};
|
|
571
|
-
|
|
572
|
-
const
|
|
573
|
-
fieldset:
|
|
574
|
-
description:
|
|
575
|
-
error:
|
|
576
|
-
inputWrapper:
|
|
577
|
-
inputWrapperError:
|
|
578
|
-
suffixButton:
|
|
579
|
-
suffixButtonInteractive:
|
|
580
|
-
},
|
|
571
|
+
Yo.displayName = "DatePicker";
|
|
572
|
+
const qo = "_fieldset_16fx7_2", Xo = "_description_16fx7_14", Jo = "_error_16fx7_21", Zo = "_inputWrapper_16fx7_30", Qo = "_inputWrapperError_16fx7_42", er = "_suffixButton_16fx7_80", tr = "_suffixButtonInteractive_16fx7_100", ke = {
|
|
573
|
+
fieldset: qo,
|
|
574
|
+
description: Xo,
|
|
575
|
+
error: Jo,
|
|
576
|
+
inputWrapper: Zo,
|
|
577
|
+
inputWrapperError: Qo,
|
|
578
|
+
suffixButton: er,
|
|
579
|
+
suffixButtonInteractive: tr
|
|
580
|
+
}, kt = (t) => {
|
|
581
581
|
const e = t.slice(0, 2), n = t.slice(2, 4), r = t.slice(4, 8);
|
|
582
582
|
return t.length > 4 ? `${e}.${n}.${r}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
|
|
583
|
-
},
|
|
583
|
+
}, yt = (t) => (t || "").replace(/\D/g, ""), vt = (t) => {
|
|
584
584
|
let e = t;
|
|
585
585
|
if (e.length >= 2) {
|
|
586
586
|
const n = parseInt(e.substring(0, 2), 10);
|
|
@@ -591,276 +591,276 @@ const Ko = "_fieldset_16fx7_2", qo = "_description_16fx7_14", Yo = "_error_16fx7
|
|
|
591
591
|
!isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
|
|
592
592
|
}
|
|
593
593
|
return e.slice(0, 8);
|
|
594
|
-
},
|
|
594
|
+
}, nr = ge(
|
|
595
595
|
(t, e) => {
|
|
596
596
|
const {
|
|
597
597
|
label: n,
|
|
598
598
|
suffixIcon: r,
|
|
599
|
-
onSuffixClick:
|
|
600
|
-
className:
|
|
599
|
+
onSuffixClick: a,
|
|
600
|
+
className: i,
|
|
601
601
|
// For ytre fieldset
|
|
602
602
|
inputWrapperClassName: o,
|
|
603
603
|
// For input wrapper div
|
|
604
|
-
inputClassName:
|
|
604
|
+
inputClassName: d,
|
|
605
605
|
// For selve input-elementet
|
|
606
|
-
value:
|
|
606
|
+
value: l,
|
|
607
607
|
defaultValue: c,
|
|
608
608
|
onChange: v,
|
|
609
|
-
readOnly:
|
|
610
|
-
placeholder:
|
|
611
|
-
id:
|
|
612
|
-
name:
|
|
613
|
-
required:
|
|
609
|
+
readOnly: u,
|
|
610
|
+
placeholder: f = "dd.mm.åååå",
|
|
611
|
+
id: g,
|
|
612
|
+
name: h,
|
|
613
|
+
required: k,
|
|
614
614
|
disabled: y,
|
|
615
615
|
onClick: p,
|
|
616
|
-
onFocus:
|
|
616
|
+
onFocus: m,
|
|
617
617
|
// Send ekstern onFocus videre
|
|
618
618
|
onBlur: T,
|
|
619
619
|
// Send ekstern onBlur videre
|
|
620
|
-
autoComplete:
|
|
621
|
-
"aria-label":
|
|
622
|
-
"aria-labelledby":
|
|
623
|
-
description:
|
|
624
|
-
error:
|
|
620
|
+
autoComplete: A = "off",
|
|
621
|
+
"aria-label": M,
|
|
622
|
+
"aria-labelledby": C,
|
|
623
|
+
description: D,
|
|
624
|
+
error: _,
|
|
625
625
|
// Bruk error-prop for styling
|
|
626
|
-
"data-color":
|
|
626
|
+
"data-color": F,
|
|
627
627
|
// <-- Destrukturering
|
|
628
|
-
"data-size":
|
|
628
|
+
"data-size": E,
|
|
629
629
|
// <-- Destrukturering
|
|
630
|
-
...
|
|
631
|
-
} = t,
|
|
632
|
-
|
|
630
|
+
...N
|
|
631
|
+
} = t, z = l !== void 0, G = Ke(null);
|
|
632
|
+
Ve.useImperativeHandle(
|
|
633
633
|
e,
|
|
634
|
-
() =>
|
|
634
|
+
() => G.current
|
|
635
635
|
);
|
|
636
|
-
const
|
|
637
|
-
(
|
|
638
|
-
const
|
|
639
|
-
return
|
|
636
|
+
const R = re(
|
|
637
|
+
(b) => {
|
|
638
|
+
const I = yt(b), j = vt(I);
|
|
639
|
+
return kt(j);
|
|
640
640
|
},
|
|
641
641
|
[]
|
|
642
|
-
), [
|
|
643
|
-
() =>
|
|
642
|
+
), [W, B] = ne(
|
|
643
|
+
() => R(l ?? c)
|
|
644
644
|
);
|
|
645
|
-
|
|
646
|
-
if (
|
|
647
|
-
const
|
|
648
|
-
|
|
645
|
+
Z(() => {
|
|
646
|
+
if (z) {
|
|
647
|
+
const b = R(l);
|
|
648
|
+
b !== W && (B(b), G.current && G.current.value !== b && (G.current.value = b));
|
|
649
649
|
}
|
|
650
|
-
}, [
|
|
651
|
-
const
|
|
652
|
-
(
|
|
653
|
-
const
|
|
654
|
-
let
|
|
655
|
-
const
|
|
656
|
-
|
|
657
|
-
if (
|
|
658
|
-
const
|
|
659
|
-
...
|
|
660
|
-
target: { ...
|
|
650
|
+
}, [l, z, W, R]);
|
|
651
|
+
const O = re(
|
|
652
|
+
(b) => {
|
|
653
|
+
const I = b.target, j = I.value, K = W, q = yt(j).slice(0, 8), U = vt(q), x = kt(U);
|
|
654
|
+
let P = 0;
|
|
655
|
+
const $ = U.length;
|
|
656
|
+
$ <= 2 ? P = $ : $ <= 4 ? P = $ + 1 : P = $ + 2, P = Math.min(P, x.length), requestAnimationFrame(() => {
|
|
657
|
+
if (G.current && (B(x), G.current.value = x, G.current.setSelectionRange(P, P), (x !== K || z) && v)) {
|
|
658
|
+
const Y = {
|
|
659
|
+
...b,
|
|
660
|
+
target: { ...I, value: x }
|
|
661
661
|
};
|
|
662
|
-
v(
|
|
662
|
+
v(Y, x);
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
665
|
},
|
|
666
|
-
[
|
|
667
|
-
),
|
|
668
|
-
|
|
666
|
+
[W, z, v, R]
|
|
667
|
+
), te = [ke.fieldset, i].filter(Boolean).join(" "), Q = [
|
|
668
|
+
ke.inputWrapper,
|
|
669
669
|
o,
|
|
670
|
-
|
|
671
|
-
].filter(Boolean).join(" "),
|
|
672
|
-
|
|
673
|
-
].filter(Boolean).join(" "),
|
|
674
|
-
|
|
675
|
-
|
|
670
|
+
_ ? ke.inputWrapperError : ""
|
|
671
|
+
].filter(Boolean).join(" "), se = [
|
|
672
|
+
d
|
|
673
|
+
].filter(Boolean).join(" "), ee = [
|
|
674
|
+
ke.suffixButton,
|
|
675
|
+
a ? ke.suffixButtonInteractive : ""
|
|
676
676
|
].filter(Boolean).join(" ");
|
|
677
|
-
!n && !
|
|
678
|
-
const ie = n && typeof n == "string" ?
|
|
677
|
+
!n && !M && !C && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
678
|
+
const ie = n && typeof n == "string" ? C || `${g}-label` : void 0, ae = D ? `${g}-desc` : void 0, V = _ ? `${g}-err` : void 0, ue = [ae, V].filter(Boolean).join(" ") || void 0;
|
|
679
679
|
return (
|
|
680
680
|
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
681
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ w(
|
|
682
682
|
"div",
|
|
683
683
|
{
|
|
684
|
-
className:
|
|
685
|
-
"data-color":
|
|
686
|
-
"data-size":
|
|
684
|
+
className: te,
|
|
685
|
+
"data-color": F,
|
|
686
|
+
"data-size": E,
|
|
687
687
|
children: [
|
|
688
|
-
n && typeof n == "string" ? /* @__PURE__ */
|
|
689
|
-
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
/* @__PURE__ */
|
|
688
|
+
n && typeof n == "string" ? /* @__PURE__ */ s("label", { id: ie, htmlFor: g, children: n }) : n,
|
|
689
|
+
D && /* @__PURE__ */ s("p", { id: ae, className: ke.description, children: D }),
|
|
690
|
+
/* @__PURE__ */ w("div", { className: Q, children: [
|
|
691
|
+
/* @__PURE__ */ s(
|
|
692
692
|
"input",
|
|
693
693
|
{
|
|
694
|
-
ref:
|
|
694
|
+
ref: G,
|
|
695
695
|
type: "text",
|
|
696
696
|
inputMode: "numeric",
|
|
697
697
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
698
698
|
maxLength: 10,
|
|
699
|
-
value:
|
|
700
|
-
readOnly:
|
|
701
|
-
placeholder:
|
|
702
|
-
id:
|
|
703
|
-
name:
|
|
704
|
-
required:
|
|
699
|
+
value: W,
|
|
700
|
+
readOnly: u,
|
|
701
|
+
placeholder: f,
|
|
702
|
+
id: g,
|
|
703
|
+
name: h,
|
|
704
|
+
required: k,
|
|
705
705
|
disabled: y,
|
|
706
706
|
onClick: p,
|
|
707
|
-
onChange:
|
|
708
|
-
onFocus:
|
|
707
|
+
onChange: O,
|
|
708
|
+
onFocus: m,
|
|
709
709
|
onBlur: T,
|
|
710
|
-
autoComplete:
|
|
711
|
-
"aria-label":
|
|
710
|
+
autoComplete: A,
|
|
711
|
+
"aria-label": M,
|
|
712
712
|
"aria-labelledby": ie,
|
|
713
|
-
"aria-describedby":
|
|
714
|
-
"aria-invalid": !!
|
|
715
|
-
className:
|
|
716
|
-
...
|
|
713
|
+
"aria-describedby": ue,
|
|
714
|
+
"aria-invalid": !!_,
|
|
715
|
+
className: se,
|
|
716
|
+
...N
|
|
717
717
|
}
|
|
718
718
|
),
|
|
719
|
-
r && /* @__PURE__ */
|
|
719
|
+
r && /* @__PURE__ */ s(
|
|
720
720
|
"button",
|
|
721
721
|
{
|
|
722
722
|
type: "button",
|
|
723
|
-
className:
|
|
724
|
-
onClick: y ? void 0 :
|
|
725
|
-
tabIndex:
|
|
726
|
-
"aria-hidden": !
|
|
723
|
+
className: ee,
|
|
724
|
+
onClick: y ? void 0 : a,
|
|
725
|
+
tabIndex: a && !y ? 0 : -1,
|
|
726
|
+
"aria-hidden": !a,
|
|
727
727
|
disabled: y,
|
|
728
|
-
"aria-label":
|
|
728
|
+
"aria-label": a ? "Åpne datovelger" : void 0,
|
|
729
729
|
children: r
|
|
730
730
|
}
|
|
731
731
|
)
|
|
732
732
|
] }),
|
|
733
|
-
|
|
733
|
+
_ && /* @__PURE__ */ s("p", { id: V, className: ke.error, role: "alert", children: _ })
|
|
734
734
|
]
|
|
735
735
|
}
|
|
736
736
|
)
|
|
737
737
|
);
|
|
738
738
|
}
|
|
739
739
|
);
|
|
740
|
-
|
|
741
|
-
function
|
|
740
|
+
nr.displayName = "DateInput";
|
|
741
|
+
function or(t) {
|
|
742
742
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
return
|
|
744
|
+
function bt(t) {
|
|
745
|
+
return or(t) || Array.isArray(t);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function rr() {
|
|
748
748
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Ze(t, e) {
|
|
751
751
|
const n = Object.keys(t), r = Object.keys(e);
|
|
752
752
|
if (n.length !== r.length) return !1;
|
|
753
|
-
const
|
|
754
|
-
return
|
|
755
|
-
const
|
|
756
|
-
return typeof
|
|
753
|
+
const a = JSON.stringify(Object.keys(t.breakpoints || {})), i = JSON.stringify(Object.keys(e.breakpoints || {}));
|
|
754
|
+
return a !== i ? !1 : n.every((o) => {
|
|
755
|
+
const d = t[o], l = e[o];
|
|
756
|
+
return typeof d == "function" ? `${d}` == `${l}` : !bt(d) || !bt(l) ? d === l : Ze(d, l);
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Tt(t) {
|
|
760
760
|
return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function sr(t, e) {
|
|
763
763
|
if (t.length !== e.length) return !1;
|
|
764
|
-
const n =
|
|
765
|
-
return n.every((
|
|
766
|
-
const o = r[
|
|
767
|
-
return
|
|
764
|
+
const n = Tt(t), r = Tt(e);
|
|
765
|
+
return n.every((a, i) => {
|
|
766
|
+
const o = r[i];
|
|
767
|
+
return Ze(a, o);
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function Qe(t) {
|
|
771
771
|
return typeof t == "number";
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function qe(t) {
|
|
774
774
|
return typeof t == "string";
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Pe(t) {
|
|
777
777
|
return typeof t == "boolean";
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function St(t) {
|
|
780
780
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
781
781
|
}
|
|
782
782
|
function H(t) {
|
|
783
783
|
return Math.abs(t);
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function et(t) {
|
|
786
786
|
return Math.sign(t);
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Ae(t, e) {
|
|
789
789
|
return H(t - e);
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function ir(t, e) {
|
|
792
792
|
if (t === 0 || e === 0 || H(t) <= H(e)) return 0;
|
|
793
|
-
const n =
|
|
793
|
+
const n = Ae(H(t), H(e));
|
|
794
794
|
return H(n / t);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function ar(t) {
|
|
797
797
|
return Math.round(t * 100) / 100;
|
|
798
798
|
}
|
|
799
|
-
function
|
|
800
|
-
return
|
|
799
|
+
function Me(t) {
|
|
800
|
+
return je(t).map(Number);
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
return t[
|
|
802
|
+
function le(t) {
|
|
803
|
+
return t[Le(t)];
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Le(t) {
|
|
806
806
|
return Math.max(0, t.length - 1);
|
|
807
807
|
}
|
|
808
|
-
function
|
|
809
|
-
return e ===
|
|
808
|
+
function tt(t, e) {
|
|
809
|
+
return e === Le(t);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function xt(t, e = 0) {
|
|
812
812
|
return Array.from(Array(t), (n, r) => e + r);
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function je(t) {
|
|
815
815
|
return Object.keys(t);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
return [t, e].reduce((n, r) => (
|
|
819
|
-
const
|
|
820
|
-
n[
|
|
817
|
+
function Mt(t, e) {
|
|
818
|
+
return [t, e].reduce((n, r) => (je(r).forEach((a) => {
|
|
819
|
+
const i = n[a], o = r[a], d = St(i) && St(o);
|
|
820
|
+
n[a] = d ? Mt(i, o) : o;
|
|
821
821
|
}), n), {});
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Xe(t, e) {
|
|
824
824
|
return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function lr(t, e) {
|
|
827
827
|
const n = {
|
|
828
828
|
start: r,
|
|
829
|
-
center:
|
|
830
|
-
end:
|
|
829
|
+
center: a,
|
|
830
|
+
end: i
|
|
831
831
|
};
|
|
832
832
|
function r() {
|
|
833
833
|
return 0;
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
return
|
|
835
|
+
function a(l) {
|
|
836
|
+
return i(l) / 2;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
839
|
-
return e -
|
|
838
|
+
function i(l) {
|
|
839
|
+
return e - l;
|
|
840
840
|
}
|
|
841
|
-
function o(
|
|
842
|
-
return
|
|
841
|
+
function o(l, c) {
|
|
842
|
+
return qe(t) ? n[t](l) : t(e, l, c);
|
|
843
843
|
}
|
|
844
844
|
return {
|
|
845
845
|
measure: o
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Fe() {
|
|
849
849
|
let t = [];
|
|
850
|
-
function e(
|
|
850
|
+
function e(a, i, o, d = {
|
|
851
851
|
passive: !0
|
|
852
852
|
}) {
|
|
853
|
-
let
|
|
854
|
-
if ("addEventListener" in
|
|
855
|
-
|
|
853
|
+
let l;
|
|
854
|
+
if ("addEventListener" in a)
|
|
855
|
+
a.addEventListener(i, o, d), l = () => a.removeEventListener(i, o, d);
|
|
856
856
|
else {
|
|
857
|
-
const c =
|
|
858
|
-
c.addListener(o),
|
|
857
|
+
const c = a;
|
|
858
|
+
c.addListener(o), l = () => c.removeListener(o);
|
|
859
859
|
}
|
|
860
|
-
return t.push(
|
|
860
|
+
return t.push(l), r;
|
|
861
861
|
}
|
|
862
862
|
function n() {
|
|
863
|
-
t = t.filter((
|
|
863
|
+
t = t.filter((a) => a());
|
|
864
864
|
}
|
|
865
865
|
const r = {
|
|
866
866
|
add: e,
|
|
@@ -868,86 +868,86 @@ function Me() {
|
|
|
868
868
|
};
|
|
869
869
|
return r;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
872
|
-
const
|
|
873
|
-
let o = null,
|
|
871
|
+
function dr(t, e, n, r) {
|
|
872
|
+
const a = Fe(), i = 1e3 / 60;
|
|
873
|
+
let o = null, d = 0, l = 0;
|
|
874
874
|
function c() {
|
|
875
|
-
|
|
876
|
-
t.hidden &&
|
|
875
|
+
a.add(t, "visibilitychange", () => {
|
|
876
|
+
t.hidden && h();
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
function v() {
|
|
880
|
-
|
|
880
|
+
g(), a.clear();
|
|
881
881
|
}
|
|
882
|
-
function
|
|
883
|
-
if (!
|
|
882
|
+
function u(y) {
|
|
883
|
+
if (!l) return;
|
|
884
884
|
o || (o = y, n(), n());
|
|
885
885
|
const p = y - o;
|
|
886
|
-
for (o = y,
|
|
887
|
-
n(),
|
|
888
|
-
const
|
|
889
|
-
r(
|
|
886
|
+
for (o = y, d += p; d >= i; )
|
|
887
|
+
n(), d -= i;
|
|
888
|
+
const m = d / i;
|
|
889
|
+
r(m), l && (l = e.requestAnimationFrame(u));
|
|
890
890
|
}
|
|
891
|
-
function
|
|
892
|
-
|
|
891
|
+
function f() {
|
|
892
|
+
l || (l = e.requestAnimationFrame(u));
|
|
893
893
|
}
|
|
894
|
-
function
|
|
895
|
-
e.cancelAnimationFrame(
|
|
894
|
+
function g() {
|
|
895
|
+
e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
|
|
896
896
|
}
|
|
897
|
-
function
|
|
898
|
-
o = null,
|
|
897
|
+
function h() {
|
|
898
|
+
o = null, d = 0;
|
|
899
899
|
}
|
|
900
900
|
return {
|
|
901
901
|
init: c,
|
|
902
902
|
destroy: v,
|
|
903
|
-
start:
|
|
904
|
-
stop:
|
|
903
|
+
start: f,
|
|
904
|
+
stop: g,
|
|
905
905
|
update: n,
|
|
906
906
|
render: r
|
|
907
907
|
};
|
|
908
908
|
}
|
|
909
|
-
function
|
|
910
|
-
const n = e === "rtl", r = t === "y",
|
|
911
|
-
function c(
|
|
909
|
+
function cr(t, e) {
|
|
910
|
+
const n = e === "rtl", r = t === "y", a = r ? "y" : "x", i = r ? "x" : "y", o = !r && n ? -1 : 1, d = v(), l = u();
|
|
911
|
+
function c(h) {
|
|
912
912
|
const {
|
|
913
|
-
height:
|
|
913
|
+
height: k,
|
|
914
914
|
width: y
|
|
915
|
-
} =
|
|
916
|
-
return r ?
|
|
915
|
+
} = h;
|
|
916
|
+
return r ? k : y;
|
|
917
917
|
}
|
|
918
918
|
function v() {
|
|
919
919
|
return r ? "top" : n ? "right" : "left";
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function u() {
|
|
922
922
|
return r ? "bottom" : n ? "left" : "right";
|
|
923
923
|
}
|
|
924
|
-
function
|
|
925
|
-
return
|
|
924
|
+
function f(h) {
|
|
925
|
+
return h * o;
|
|
926
926
|
}
|
|
927
927
|
return {
|
|
928
|
-
scroll:
|
|
929
|
-
cross:
|
|
930
|
-
startEdge:
|
|
931
|
-
endEdge:
|
|
928
|
+
scroll: a,
|
|
929
|
+
cross: i,
|
|
930
|
+
startEdge: d,
|
|
931
|
+
endEdge: l,
|
|
932
932
|
measureSize: c,
|
|
933
|
-
direction:
|
|
933
|
+
direction: f
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function ye(t = 0, e = 0) {
|
|
937
937
|
const n = H(t - e);
|
|
938
938
|
function r(c) {
|
|
939
939
|
return c < t;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function a(c) {
|
|
942
942
|
return c > e;
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
return r(c) ||
|
|
944
|
+
function i(c) {
|
|
945
|
+
return r(c) || a(c);
|
|
946
946
|
}
|
|
947
947
|
function o(c) {
|
|
948
|
-
return
|
|
948
|
+
return i(c) ? r(c) ? t : e : c;
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function d(c) {
|
|
951
951
|
return n ? c - n * Math.ceil((c - e) / n) : c;
|
|
952
952
|
}
|
|
953
953
|
return {
|
|
@@ -955,152 +955,152 @@ function he(t = 0, e = 0) {
|
|
|
955
955
|
max: e,
|
|
956
956
|
min: t,
|
|
957
957
|
constrain: o,
|
|
958
|
-
reachedAny:
|
|
959
|
-
reachedMax:
|
|
958
|
+
reachedAny: i,
|
|
959
|
+
reachedMax: a,
|
|
960
960
|
reachedMin: r,
|
|
961
|
-
removeOffset:
|
|
961
|
+
removeOffset: d
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function jt(t, e, n) {
|
|
965
965
|
const {
|
|
966
966
|
constrain: r
|
|
967
|
-
} =
|
|
968
|
-
let
|
|
969
|
-
function o(
|
|
970
|
-
return n ? H((
|
|
967
|
+
} = ye(0, t), a = t + 1;
|
|
968
|
+
let i = o(e);
|
|
969
|
+
function o(f) {
|
|
970
|
+
return n ? H((a + f) % a) : r(f);
|
|
971
971
|
}
|
|
972
|
-
function
|
|
973
|
-
return
|
|
972
|
+
function d() {
|
|
973
|
+
return i;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
976
|
-
return
|
|
975
|
+
function l(f) {
|
|
976
|
+
return i = o(f), u;
|
|
977
977
|
}
|
|
978
|
-
function c(
|
|
979
|
-
return v().set(
|
|
978
|
+
function c(f) {
|
|
979
|
+
return v().set(d() + f);
|
|
980
980
|
}
|
|
981
981
|
function v() {
|
|
982
|
-
return
|
|
982
|
+
return jt(t, d(), n);
|
|
983
983
|
}
|
|
984
|
-
const
|
|
985
|
-
get:
|
|
986
|
-
set:
|
|
984
|
+
const u = {
|
|
985
|
+
get: d,
|
|
986
|
+
set: l,
|
|
987
987
|
add: c,
|
|
988
988
|
clone: v
|
|
989
989
|
};
|
|
990
|
-
return
|
|
990
|
+
return u;
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function ur(t, e, n, r, a, i, o, d, l, c, v, u, f, g, h, k, y, p, m) {
|
|
993
993
|
const {
|
|
994
994
|
cross: T,
|
|
995
|
-
direction:
|
|
996
|
-
} = t,
|
|
995
|
+
direction: A
|
|
996
|
+
} = t, M = ["INPUT", "SELECT", "TEXTAREA"], C = {
|
|
997
997
|
passive: !1
|
|
998
|
-
},
|
|
998
|
+
}, D = Fe(), _ = Fe(), F = ye(50, 225).constrain(g.measure(20)), E = {
|
|
999
999
|
mouse: 300,
|
|
1000
1000
|
touch: 400
|
|
1001
|
-
},
|
|
1001
|
+
}, N = {
|
|
1002
1002
|
mouse: 500,
|
|
1003
1003
|
touch: 600
|
|
1004
|
-
},
|
|
1005
|
-
let
|
|
1006
|
-
function
|
|
1007
|
-
if (!
|
|
1008
|
-
function
|
|
1009
|
-
(
|
|
1004
|
+
}, z = h ? 43 : 25;
|
|
1005
|
+
let G = !1, R = 0, W = 0, B = !1, O = !1, te = !1, Q = !1;
|
|
1006
|
+
function se(x) {
|
|
1007
|
+
if (!m) return;
|
|
1008
|
+
function P(Y) {
|
|
1009
|
+
(Pe(m) || m(x, Y)) && b(Y);
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
},
|
|
1014
|
-
}).add(
|
|
1011
|
+
const $ = e;
|
|
1012
|
+
D.add($, "dragstart", (Y) => Y.preventDefault(), C).add($, "touchmove", () => {
|
|
1013
|
+
}, C).add($, "touchend", () => {
|
|
1014
|
+
}).add($, "touchstart", P).add($, "mousedown", P).add($, "touchcancel", j).add($, "contextmenu", j).add($, "click", K, !0);
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
|
|
1016
|
+
function ee() {
|
|
1017
|
+
D.clear(), _.clear();
|
|
1018
1018
|
}
|
|
1019
1019
|
function ie() {
|
|
1020
|
-
const x =
|
|
1021
|
-
|
|
1020
|
+
const x = Q ? n : e;
|
|
1021
|
+
_.add(x, "touchmove", I, C).add(x, "touchend", j).add(x, "mousemove", I, C).add(x, "mouseup", j);
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1024
|
-
const
|
|
1025
|
-
return
|
|
1023
|
+
function ae(x) {
|
|
1024
|
+
const P = x.nodeName || "";
|
|
1025
|
+
return M.includes(P);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return (
|
|
1027
|
+
function V() {
|
|
1028
|
+
return (h ? N : E)[Q ? "mouse" : "touch"];
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
const
|
|
1032
|
-
return
|
|
1030
|
+
function ue(x, P) {
|
|
1031
|
+
const $ = u.add(et(x) * -1), Y = v.byDistance(x, !h).distance;
|
|
1032
|
+
return h || H(x) < F ? Y : y && P ? Y * 0.5 : v.byIndex($.get(), 0).distance;
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const
|
|
1036
|
-
|
|
1034
|
+
function b(x) {
|
|
1035
|
+
const P = Xe(x, r);
|
|
1036
|
+
Q = P, te = h && P && !x.buttons && G, G = Ae(a.get(), o.get()) >= 2, !(P && x.button !== 0) && (ae(x.target) || (B = !0, i.pointerDown(x), c.useFriction(0).useDuration(0), a.set(o), ie(), R = i.readPoint(x), W = i.readPoint(x, T), f.emit("pointerDown")));
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
if (!
|
|
1040
|
-
const
|
|
1041
|
-
if (!
|
|
1042
|
-
return
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1038
|
+
function I(x) {
|
|
1039
|
+
if (!Xe(x, r) && x.touches.length >= 2) return j(x);
|
|
1040
|
+
const $ = i.readPoint(x), Y = i.readPoint(x, T), de = Ae($, R), me = Ae(Y, W);
|
|
1041
|
+
if (!O && !Q && (!x.cancelable || (O = de > me, !O)))
|
|
1042
|
+
return j(x);
|
|
1043
|
+
const he = i.pointerMove(x);
|
|
1044
|
+
de > k && (te = !0), c.useFriction(0.3).useDuration(0.75), d.start(), a.add(A(he)), x.preventDefault();
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1046
|
+
function j(x) {
|
|
1047
|
+
const $ = v.byDistance(0, !1).index !== u.get(), Y = i.pointerUp(x) * V(), de = ue(A(Y), $), me = ir(Y, de), he = z - 10 * me, pe = p + me / 50;
|
|
1048
|
+
O = !1, B = !1, _.clear(), c.useDuration(he).useFriction(pe), l.distance(de, !h), Q = !1, f.emit("pointerUp");
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1051
|
-
|
|
1050
|
+
function K(x) {
|
|
1051
|
+
te && (x.stopPropagation(), x.preventDefault(), te = !1);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return
|
|
1053
|
+
function q() {
|
|
1054
|
+
return B;
|
|
1055
1055
|
}
|
|
1056
1056
|
return {
|
|
1057
|
-
init:
|
|
1058
|
-
destroy:
|
|
1059
|
-
pointerDown:
|
|
1057
|
+
init: se,
|
|
1058
|
+
destroy: ee,
|
|
1059
|
+
pointerDown: q
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1063
|
-
let r,
|
|
1064
|
-
function
|
|
1065
|
-
return
|
|
1062
|
+
function mr(t, e) {
|
|
1063
|
+
let r, a;
|
|
1064
|
+
function i(u) {
|
|
1065
|
+
return u.timeStamp;
|
|
1066
1066
|
}
|
|
1067
|
-
function o(
|
|
1068
|
-
const
|
|
1069
|
-
return (
|
|
1067
|
+
function o(u, f) {
|
|
1068
|
+
const h = `client${(f || t.scroll) === "x" ? "X" : "Y"}`;
|
|
1069
|
+
return (Xe(u, e) ? u : u.touches[0])[h];
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return r =
|
|
1071
|
+
function d(u) {
|
|
1072
|
+
return r = u, a = u, o(u);
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1075
|
-
const
|
|
1076
|
-
return
|
|
1074
|
+
function l(u) {
|
|
1075
|
+
const f = o(u) - o(a), g = i(u) - i(r) > 170;
|
|
1076
|
+
return a = u, g && (r = u), f;
|
|
1077
1077
|
}
|
|
1078
|
-
function c(
|
|
1079
|
-
if (!r || !
|
|
1080
|
-
const
|
|
1081
|
-
return
|
|
1078
|
+
function c(u) {
|
|
1079
|
+
if (!r || !a) return 0;
|
|
1080
|
+
const f = o(a) - o(r), g = i(u) - i(r), h = i(u) - i(a) > 170, k = f / g;
|
|
1081
|
+
return g && !h && H(k) > 0.1 ? k : 0;
|
|
1082
1082
|
}
|
|
1083
1083
|
return {
|
|
1084
|
-
pointerDown:
|
|
1085
|
-
pointerMove:
|
|
1084
|
+
pointerDown: d,
|
|
1085
|
+
pointerMove: l,
|
|
1086
1086
|
pointerUp: c,
|
|
1087
1087
|
readPoint: o
|
|
1088
1088
|
};
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function pr() {
|
|
1091
1091
|
function t(n) {
|
|
1092
1092
|
const {
|
|
1093
1093
|
offsetTop: r,
|
|
1094
|
-
offsetLeft:
|
|
1095
|
-
offsetWidth:
|
|
1094
|
+
offsetLeft: a,
|
|
1095
|
+
offsetWidth: i,
|
|
1096
1096
|
offsetHeight: o
|
|
1097
1097
|
} = n;
|
|
1098
1098
|
return {
|
|
1099
1099
|
top: r,
|
|
1100
|
-
right:
|
|
1100
|
+
right: a + i,
|
|
1101
1101
|
bottom: r + o,
|
|
1102
|
-
left:
|
|
1103
|
-
width:
|
|
1102
|
+
left: a,
|
|
1103
|
+
width: i,
|
|
1104
1104
|
height: o
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
@@ -1108,7 +1108,7 @@ function ur() {
|
|
|
1108
1108
|
measure: t
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function gr(t) {
|
|
1112
1112
|
function e(r) {
|
|
1113
1113
|
return t * (r / 100);
|
|
1114
1114
|
}
|
|
@@ -1116,651 +1116,651 @@ function pr(t) {
|
|
|
1116
1116
|
measure: e
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const
|
|
1121
|
-
let
|
|
1122
|
-
function
|
|
1123
|
-
return
|
|
1124
|
-
}
|
|
1125
|
-
function
|
|
1126
|
-
if (!
|
|
1127
|
-
c =
|
|
1128
|
-
function p(
|
|
1129
|
-
for (const T of
|
|
1130
|
-
if (
|
|
1131
|
-
const
|
|
1132
|
-
if (H(
|
|
1119
|
+
function hr(t, e, n, r, a, i, o) {
|
|
1120
|
+
const d = [t].concat(r);
|
|
1121
|
+
let l, c, v = [], u = !1;
|
|
1122
|
+
function f(y) {
|
|
1123
|
+
return a.measureSize(o.measure(y));
|
|
1124
|
+
}
|
|
1125
|
+
function g(y) {
|
|
1126
|
+
if (!i) return;
|
|
1127
|
+
c = f(t), v = r.map(f);
|
|
1128
|
+
function p(m) {
|
|
1129
|
+
for (const T of m) {
|
|
1130
|
+
if (u) return;
|
|
1131
|
+
const A = T.target === t, M = r.indexOf(T.target), C = A ? c : v[M], D = f(A ? t : r[M]);
|
|
1132
|
+
if (H(D - C) >= 0.5) {
|
|
1133
1133
|
y.reInit(), e.emit("resize");
|
|
1134
1134
|
break;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
|
|
1139
|
-
(
|
|
1138
|
+
l = new ResizeObserver((m) => {
|
|
1139
|
+
(Pe(i) || i(y, m)) && p(m);
|
|
1140
1140
|
}), n.requestAnimationFrame(() => {
|
|
1141
|
-
|
|
1141
|
+
d.forEach((m) => l.observe(m));
|
|
1142
1142
|
});
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1145
|
-
|
|
1144
|
+
function h() {
|
|
1145
|
+
u = !0, l && l.disconnect();
|
|
1146
1146
|
}
|
|
1147
1147
|
return {
|
|
1148
|
-
init:
|
|
1149
|
-
destroy:
|
|
1148
|
+
init: g,
|
|
1149
|
+
destroy: h
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1153
|
-
let o = 0,
|
|
1154
|
-
function k() {
|
|
1155
|
-
const M = r.get() - t.get(), C = !a;
|
|
1156
|
-
let D = 0;
|
|
1157
|
-
return C ? (o = 0, n.set(r), t.set(r), D = M) : (n.set(t), o += M / a, o *= c, v += o, t.add(o), D = v - g), l = Qe(D), g = v, A;
|
|
1158
|
-
}
|
|
1159
|
-
function m() {
|
|
1160
|
-
const M = r.get() - e.get();
|
|
1161
|
-
return H(M) < 1e-3;
|
|
1162
|
-
}
|
|
1152
|
+
function fr(t, e, n, r, a, i) {
|
|
1153
|
+
let o = 0, d = 0, l = a, c = i, v = t.get(), u = 0;
|
|
1163
1154
|
function f() {
|
|
1164
|
-
|
|
1155
|
+
const C = r.get() - t.get(), D = !l;
|
|
1156
|
+
let _ = 0;
|
|
1157
|
+
return D ? (o = 0, n.set(r), t.set(r), _ = C) : (n.set(t), o += C / l, o *= c, v += o, t.add(o), _ = v - u), d = et(_), u = v, M;
|
|
1158
|
+
}
|
|
1159
|
+
function g() {
|
|
1160
|
+
const C = r.get() - e.get();
|
|
1161
|
+
return H(C) < 1e-3;
|
|
1165
1162
|
}
|
|
1166
1163
|
function h() {
|
|
1167
1164
|
return l;
|
|
1168
1165
|
}
|
|
1166
|
+
function k() {
|
|
1167
|
+
return d;
|
|
1168
|
+
}
|
|
1169
1169
|
function y() {
|
|
1170
1170
|
return o;
|
|
1171
1171
|
}
|
|
1172
1172
|
function p() {
|
|
1173
|
-
return T(
|
|
1173
|
+
return T(a);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1175
|
+
function m() {
|
|
1176
|
+
return A(i);
|
|
1177
1177
|
}
|
|
1178
|
-
function T(
|
|
1179
|
-
return
|
|
1178
|
+
function T(C) {
|
|
1179
|
+
return l = C, M;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return c =
|
|
1181
|
+
function A(C) {
|
|
1182
|
+
return c = C, M;
|
|
1183
1183
|
}
|
|
1184
|
-
const
|
|
1185
|
-
direction:
|
|
1186
|
-
duration:
|
|
1184
|
+
const M = {
|
|
1185
|
+
direction: k,
|
|
1186
|
+
duration: h,
|
|
1187
1187
|
velocity: y,
|
|
1188
|
-
seek:
|
|
1189
|
-
settled:
|
|
1190
|
-
useBaseFriction:
|
|
1188
|
+
seek: f,
|
|
1189
|
+
settled: g,
|
|
1190
|
+
useBaseFriction: m,
|
|
1191
1191
|
useBaseDuration: p,
|
|
1192
|
-
useFriction:
|
|
1192
|
+
useFriction: A,
|
|
1193
1193
|
useDuration: T
|
|
1194
1194
|
};
|
|
1195
|
-
return
|
|
1195
|
+
return M;
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1198
|
-
const
|
|
1199
|
-
let
|
|
1197
|
+
function kr(t, e, n, r, a) {
|
|
1198
|
+
const i = a.measure(10), o = a.measure(50), d = ye(0.1, 0.99);
|
|
1199
|
+
let l = !1;
|
|
1200
1200
|
function c() {
|
|
1201
|
-
return !(
|
|
1201
|
+
return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
|
|
1202
1202
|
}
|
|
1203
|
-
function v(
|
|
1203
|
+
function v(g) {
|
|
1204
1204
|
if (!c()) return;
|
|
1205
|
-
const
|
|
1206
|
-
n.subtract(y * p), !
|
|
1205
|
+
const h = t.reachedMin(e.get()) ? "min" : "max", k = H(t[h] - e.get()), y = n.get() - e.get(), p = d.constrain(k / o);
|
|
1206
|
+
n.subtract(y * p), !g && H(y) < i && (n.set(t.constrain(n.get())), r.useDuration(25).useBaseFriction());
|
|
1207
1207
|
}
|
|
1208
|
-
function g
|
|
1209
|
-
|
|
1208
|
+
function u(g) {
|
|
1209
|
+
l = !g;
|
|
1210
1210
|
}
|
|
1211
1211
|
return {
|
|
1212
1212
|
shouldConstrain: c,
|
|
1213
1213
|
constrain: v,
|
|
1214
|
-
toggleActive:
|
|
1214
|
+
toggleActive: u
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1218
|
-
const
|
|
1219
|
-
function c(
|
|
1220
|
-
return
|
|
1217
|
+
function yr(t, e, n, r, a) {
|
|
1218
|
+
const i = ye(-e + t, 0), o = u(), d = v(), l = f();
|
|
1219
|
+
function c(h, k) {
|
|
1220
|
+
return Ae(h, k) <= 1;
|
|
1221
1221
|
}
|
|
1222
1222
|
function v() {
|
|
1223
|
-
const
|
|
1224
|
-
return
|
|
1223
|
+
const h = o[0], k = le(o), y = o.lastIndexOf(h), p = o.indexOf(k) + 1;
|
|
1224
|
+
return ye(y, p);
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return n.map((
|
|
1226
|
+
function u() {
|
|
1227
|
+
return n.map((h, k) => {
|
|
1228
1228
|
const {
|
|
1229
1229
|
min: y,
|
|
1230
1230
|
max: p
|
|
1231
|
-
} =
|
|
1232
|
-
return T ? p :
|
|
1233
|
-
}).map((
|
|
1231
|
+
} = i, m = i.constrain(h), T = !k, A = tt(n, k);
|
|
1232
|
+
return T ? p : A || c(y, m) ? y : c(p, m) ? p : m;
|
|
1233
|
+
}).map((h) => parseFloat(h.toFixed(3)));
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1236
|
-
if (e <= t +
|
|
1235
|
+
function f() {
|
|
1236
|
+
if (e <= t + a) return [i.max];
|
|
1237
1237
|
if (r === "keepSnaps") return o;
|
|
1238
1238
|
const {
|
|
1239
|
-
min:
|
|
1240
|
-
max:
|
|
1241
|
-
} =
|
|
1242
|
-
return o.slice(
|
|
1239
|
+
min: h,
|
|
1240
|
+
max: k
|
|
1241
|
+
} = d;
|
|
1242
|
+
return o.slice(h, k);
|
|
1243
1243
|
}
|
|
1244
1244
|
return {
|
|
1245
|
-
snapsContained:
|
|
1246
|
-
scrollContainLimit:
|
|
1245
|
+
snapsContained: l,
|
|
1246
|
+
scrollContainLimit: d
|
|
1247
1247
|
};
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1250
|
-
const r = e[0],
|
|
1249
|
+
function vr(t, e, n) {
|
|
1250
|
+
const r = e[0], a = n ? r - t : le(e);
|
|
1251
1251
|
return {
|
|
1252
|
-
limit:
|
|
1252
|
+
limit: ye(a, r)
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1256
|
-
const
|
|
1257
|
-
reachedMin:
|
|
1258
|
-
reachedMax:
|
|
1259
|
-
} =
|
|
1260
|
-
function c(
|
|
1261
|
-
return
|
|
1262
|
-
}
|
|
1263
|
-
function v(
|
|
1264
|
-
if (!c(
|
|
1265
|
-
const
|
|
1266
|
-
r.forEach((
|
|
1255
|
+
function br(t, e, n, r) {
|
|
1256
|
+
const i = e.min + 0.1, o = e.max + 0.1, {
|
|
1257
|
+
reachedMin: d,
|
|
1258
|
+
reachedMax: l
|
|
1259
|
+
} = ye(i, o);
|
|
1260
|
+
function c(f) {
|
|
1261
|
+
return f === 1 ? l(n.get()) : f === -1 ? d(n.get()) : !1;
|
|
1262
|
+
}
|
|
1263
|
+
function v(f) {
|
|
1264
|
+
if (!c(f)) return;
|
|
1265
|
+
const g = t * (f * -1);
|
|
1266
|
+
r.forEach((h) => h.add(g));
|
|
1267
1267
|
}
|
|
1268
1268
|
return {
|
|
1269
1269
|
loop: v
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Tr(t) {
|
|
1273
1273
|
const {
|
|
1274
1274
|
max: e,
|
|
1275
1275
|
length: n
|
|
1276
1276
|
} = t;
|
|
1277
|
-
function r(
|
|
1278
|
-
const o =
|
|
1277
|
+
function r(i) {
|
|
1278
|
+
const o = i - e;
|
|
1279
1279
|
return n ? o / -n : 0;
|
|
1280
1280
|
}
|
|
1281
1281
|
return {
|
|
1282
1282
|
get: r
|
|
1283
1283
|
};
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function Sr(t, e, n, r, a) {
|
|
1286
1286
|
const {
|
|
1287
|
-
startEdge:
|
|
1287
|
+
startEdge: i,
|
|
1288
1288
|
endEdge: o
|
|
1289
1289
|
} = t, {
|
|
1290
|
-
groupSlides:
|
|
1291
|
-
} =
|
|
1292
|
-
function
|
|
1293
|
-
return
|
|
1290
|
+
groupSlides: d
|
|
1291
|
+
} = a, l = u().map(e.measure), c = f(), v = g();
|
|
1292
|
+
function u() {
|
|
1293
|
+
return d(r).map((k) => le(k)[o] - k[0][i]).map(H);
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1296
|
-
return r.map((
|
|
1295
|
+
function f() {
|
|
1296
|
+
return r.map((k) => n[i] - k[i]).map((k) => -H(k));
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1299
|
-
return
|
|
1298
|
+
function g() {
|
|
1299
|
+
return d(c).map((k) => k[0]).map((k, y) => k + l[y]);
|
|
1300
1300
|
}
|
|
1301
1301
|
return {
|
|
1302
1302
|
snaps: c,
|
|
1303
1303
|
snapsAligned: v
|
|
1304
1304
|
};
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function xr(t, e, n, r, a, i) {
|
|
1307
1307
|
const {
|
|
1308
1308
|
groupSlides: o
|
|
1309
|
-
} =
|
|
1310
|
-
min:
|
|
1311
|
-
max:
|
|
1309
|
+
} = a, {
|
|
1310
|
+
min: d,
|
|
1311
|
+
max: l
|
|
1312
1312
|
} = r, c = v();
|
|
1313
1313
|
function v() {
|
|
1314
|
-
const
|
|
1315
|
-
return n.length === 1 ? [
|
|
1316
|
-
const p = !
|
|
1314
|
+
const f = o(i), g = !t || e === "keepSnaps";
|
|
1315
|
+
return n.length === 1 ? [i] : g ? f : f.slice(d, l).map((h, k, y) => {
|
|
1316
|
+
const p = !k, m = tt(y, k);
|
|
1317
1317
|
if (p) {
|
|
1318
|
-
const T =
|
|
1319
|
-
return
|
|
1318
|
+
const T = le(y[0]) + 1;
|
|
1319
|
+
return xt(T);
|
|
1320
1320
|
}
|
|
1321
|
-
if (
|
|
1322
|
-
const T =
|
|
1323
|
-
return
|
|
1321
|
+
if (m) {
|
|
1322
|
+
const T = Le(i) - le(y)[0] + 1;
|
|
1323
|
+
return xt(T, le(y)[0]);
|
|
1324
1324
|
}
|
|
1325
|
-
return
|
|
1325
|
+
return h;
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
return {
|
|
1329
1329
|
slideRegistry: c
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Cr(t, e, n, r, a) {
|
|
1333
1333
|
const {
|
|
1334
|
-
reachedAny:
|
|
1334
|
+
reachedAny: i,
|
|
1335
1335
|
removeOffset: o,
|
|
1336
|
-
constrain:
|
|
1336
|
+
constrain: d
|
|
1337
1337
|
} = r;
|
|
1338
|
-
function
|
|
1339
|
-
return
|
|
1338
|
+
function l(h) {
|
|
1339
|
+
return h.concat().sort((k, y) => H(k) - H(y))[0];
|
|
1340
1340
|
}
|
|
1341
|
-
function c(
|
|
1342
|
-
const
|
|
1343
|
-
diff: v(
|
|
1341
|
+
function c(h) {
|
|
1342
|
+
const k = t ? o(h) : d(h), y = e.map((m, T) => ({
|
|
1343
|
+
diff: v(m - k, 0),
|
|
1344
1344
|
index: T
|
|
1345
|
-
})).sort((
|
|
1345
|
+
})).sort((m, T) => H(m.diff) - H(T.diff)), {
|
|
1346
1346
|
index: p
|
|
1347
1347
|
} = y[0];
|
|
1348
1348
|
return {
|
|
1349
1349
|
index: p,
|
|
1350
|
-
distance:
|
|
1350
|
+
distance: k
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
|
-
function v(
|
|
1354
|
-
const y = [
|
|
1355
|
-
if (!t) return
|
|
1356
|
-
if (!
|
|
1357
|
-
const p = y.filter((
|
|
1358
|
-
return p.length ?
|
|
1353
|
+
function v(h, k) {
|
|
1354
|
+
const y = [h, h + n, h - n];
|
|
1355
|
+
if (!t) return h;
|
|
1356
|
+
if (!k) return l(y);
|
|
1357
|
+
const p = y.filter((m) => et(m) === k);
|
|
1358
|
+
return p.length ? l(p) : le(y) - n;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1361
|
-
const y = e[
|
|
1360
|
+
function u(h, k) {
|
|
1361
|
+
const y = e[h] - a.get(), p = v(y, k);
|
|
1362
1362
|
return {
|
|
1363
|
-
index:
|
|
1363
|
+
index: h,
|
|
1364
1364
|
distance: p
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const y =
|
|
1367
|
+
function f(h, k) {
|
|
1368
|
+
const y = a.get() + h, {
|
|
1369
1369
|
index: p,
|
|
1370
|
-
distance:
|
|
1371
|
-
} = c(y), T = !t &&
|
|
1372
|
-
if (!
|
|
1370
|
+
distance: m
|
|
1371
|
+
} = c(y), T = !t && i(y);
|
|
1372
|
+
if (!k || T) return {
|
|
1373
1373
|
index: p,
|
|
1374
|
-
distance:
|
|
1374
|
+
distance: h
|
|
1375
1375
|
};
|
|
1376
|
-
const
|
|
1376
|
+
const A = e[p] - m, M = h + v(A, 0);
|
|
1377
1377
|
return {
|
|
1378
1378
|
index: p,
|
|
1379
|
-
distance:
|
|
1379
|
+
distance: M
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
1382
|
return {
|
|
1383
|
-
byDistance:
|
|
1384
|
-
byIndex:
|
|
1383
|
+
byDistance: f,
|
|
1384
|
+
byIndex: u,
|
|
1385
1385
|
shortcut: v
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1389
|
-
function
|
|
1390
|
-
const
|
|
1391
|
-
|
|
1388
|
+
function wr(t, e, n, r, a, i, o) {
|
|
1389
|
+
function d(u) {
|
|
1390
|
+
const f = u.distance, g = u.index !== e.get();
|
|
1391
|
+
i.add(f), f && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(u.index), o.emit("select"));
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1394
|
-
const
|
|
1395
|
-
|
|
1393
|
+
function l(u, f) {
|
|
1394
|
+
const g = a.byDistance(u, f);
|
|
1395
|
+
d(g);
|
|
1396
1396
|
}
|
|
1397
|
-
function c(
|
|
1398
|
-
const
|
|
1399
|
-
|
|
1397
|
+
function c(u, f) {
|
|
1398
|
+
const g = e.clone().set(u), h = a.byIndex(g.get(), f);
|
|
1399
|
+
d(h);
|
|
1400
1400
|
}
|
|
1401
1401
|
return {
|
|
1402
|
-
distance:
|
|
1402
|
+
distance: l,
|
|
1403
1403
|
index: c
|
|
1404
1404
|
};
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
const
|
|
1406
|
+
function Ir(t, e, n, r, a, i, o, d) {
|
|
1407
|
+
const l = {
|
|
1408
1408
|
passive: !0,
|
|
1409
1409
|
capture: !0
|
|
1410
1410
|
};
|
|
1411
1411
|
let c = 0;
|
|
1412
|
-
function v(
|
|
1413
|
-
if (!
|
|
1414
|
-
function
|
|
1412
|
+
function v(g) {
|
|
1413
|
+
if (!d) return;
|
|
1414
|
+
function h(k) {
|
|
1415
1415
|
if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
|
|
1416
1416
|
o.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1417
|
+
const m = n.findIndex((T) => T.includes(k));
|
|
1418
|
+
Qe(m) && (a.useDuration(0), r.index(m, 0), o.emit("slideFocus"));
|
|
1419
1419
|
}
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
(
|
|
1423
|
-
},
|
|
1420
|
+
i.add(document, "keydown", u, !1), e.forEach((k, y) => {
|
|
1421
|
+
i.add(k, "focus", (p) => {
|
|
1422
|
+
(Pe(d) || d(g, p)) && h(y);
|
|
1423
|
+
}, l);
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
|
-
function g
|
|
1427
|
-
|
|
1426
|
+
function u(g) {
|
|
1427
|
+
g.code === "Tab" && (c = (/* @__PURE__ */ new Date()).getTime());
|
|
1428
1428
|
}
|
|
1429
1429
|
return {
|
|
1430
1430
|
init: v
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function _e(t) {
|
|
1434
1434
|
let e = t;
|
|
1435
1435
|
function n() {
|
|
1436
1436
|
return e;
|
|
1437
1437
|
}
|
|
1438
|
-
function r(
|
|
1439
|
-
e = o(
|
|
1438
|
+
function r(l) {
|
|
1439
|
+
e = o(l);
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1442
|
-
e += o(
|
|
1441
|
+
function a(l) {
|
|
1442
|
+
e += o(l);
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1445
|
-
e -= o(
|
|
1444
|
+
function i(l) {
|
|
1445
|
+
e -= o(l);
|
|
1446
1446
|
}
|
|
1447
|
-
function o(
|
|
1448
|
-
return
|
|
1447
|
+
function o(l) {
|
|
1448
|
+
return Qe(l) ? l : l.get();
|
|
1449
1449
|
}
|
|
1450
1450
|
return {
|
|
1451
1451
|
get: n,
|
|
1452
1452
|
set: r,
|
|
1453
|
-
add:
|
|
1454
|
-
subtract:
|
|
1453
|
+
add: a,
|
|
1454
|
+
subtract: i
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1458
|
-
const n = t.scroll === "x" ? o :
|
|
1459
|
-
let
|
|
1460
|
-
function o(
|
|
1461
|
-
return `translate3d(${
|
|
1457
|
+
function Ft(t, e) {
|
|
1458
|
+
const n = t.scroll === "x" ? o : d, r = e.style;
|
|
1459
|
+
let a = null, i = !1;
|
|
1460
|
+
function o(f) {
|
|
1461
|
+
return `translate3d(${f}px,0px,0px)`;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1464
|
-
return `translate3d(0px,${
|
|
1463
|
+
function d(f) {
|
|
1464
|
+
return `translate3d(0px,${f}px,0px)`;
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1467
|
-
if (
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1466
|
+
function l(f) {
|
|
1467
|
+
if (i) return;
|
|
1468
|
+
const g = ar(t.direction(f));
|
|
1469
|
+
g !== a && (r.transform = n(g), a = g);
|
|
1470
1470
|
}
|
|
1471
|
-
function c(
|
|
1472
|
-
|
|
1471
|
+
function c(f) {
|
|
1472
|
+
i = !f;
|
|
1473
1473
|
}
|
|
1474
1474
|
function v() {
|
|
1475
|
-
|
|
1475
|
+
i || (r.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
|
|
1476
1476
|
}
|
|
1477
1477
|
return {
|
|
1478
1478
|
clear: v,
|
|
1479
|
-
to:
|
|
1479
|
+
to: l,
|
|
1480
1480
|
toggleActive: c
|
|
1481
1481
|
};
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
const v =
|
|
1485
|
-
function
|
|
1486
|
-
return
|
|
1487
|
-
}
|
|
1488
|
-
function
|
|
1489
|
-
return
|
|
1490
|
-
}
|
|
1491
|
-
function
|
|
1492
|
-
return
|
|
1493
|
-
start:
|
|
1494
|
-
end:
|
|
1483
|
+
function Dr(t, e, n, r, a, i, o, d, l) {
|
|
1484
|
+
const v = Me(a), u = Me(a).reverse(), f = p().concat(m());
|
|
1485
|
+
function g(D, _) {
|
|
1486
|
+
return D.reduce((F, E) => F - a[E], _);
|
|
1487
|
+
}
|
|
1488
|
+
function h(D, _) {
|
|
1489
|
+
return D.reduce((F, E) => g(F, _) > 0 ? F.concat([E]) : F, []);
|
|
1490
|
+
}
|
|
1491
|
+
function k(D) {
|
|
1492
|
+
return i.map((_, F) => ({
|
|
1493
|
+
start: _ - r[F] + 0.5 + D,
|
|
1494
|
+
end: _ + e - 0.5 + D
|
|
1495
1495
|
}));
|
|
1496
1496
|
}
|
|
1497
|
-
function y(
|
|
1498
|
-
const
|
|
1499
|
-
return
|
|
1500
|
-
const
|
|
1497
|
+
function y(D, _, F) {
|
|
1498
|
+
const E = k(_);
|
|
1499
|
+
return D.map((N) => {
|
|
1500
|
+
const z = F ? 0 : -n, G = F ? n : 0, R = F ? "end" : "start", W = E[N][R];
|
|
1501
1501
|
return {
|
|
1502
|
-
index:
|
|
1503
|
-
loopPoint:
|
|
1504
|
-
slideLocation:
|
|
1505
|
-
translate:
|
|
1506
|
-
target: () =>
|
|
1502
|
+
index: N,
|
|
1503
|
+
loopPoint: W,
|
|
1504
|
+
slideLocation: _e(-1),
|
|
1505
|
+
translate: Ft(t, l[N]),
|
|
1506
|
+
target: () => d.get() > W ? z : G
|
|
1507
1507
|
};
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
1510
1510
|
function p() {
|
|
1511
|
-
const
|
|
1512
|
-
return y(
|
|
1511
|
+
const D = o[0], _ = h(u, D);
|
|
1512
|
+
return y(_, n, !1);
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1515
|
-
const
|
|
1516
|
-
return y(
|
|
1514
|
+
function m() {
|
|
1515
|
+
const D = e - o[0] - 1, _ = h(v, D);
|
|
1516
|
+
return y(_, -n, !0);
|
|
1517
1517
|
}
|
|
1518
1518
|
function T() {
|
|
1519
|
-
return
|
|
1520
|
-
index:
|
|
1519
|
+
return f.every(({
|
|
1520
|
+
index: D
|
|
1521
1521
|
}) => {
|
|
1522
|
-
const
|
|
1523
|
-
return
|
|
1522
|
+
const _ = v.filter((F) => F !== D);
|
|
1523
|
+
return g(_, e) <= 0.1;
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1527
|
-
|
|
1526
|
+
function A() {
|
|
1527
|
+
f.forEach((D) => {
|
|
1528
1528
|
const {
|
|
1529
|
-
target:
|
|
1530
|
-
translate:
|
|
1531
|
-
slideLocation:
|
|
1532
|
-
} =
|
|
1533
|
-
|
|
1529
|
+
target: _,
|
|
1530
|
+
translate: F,
|
|
1531
|
+
slideLocation: E
|
|
1532
|
+
} = D, N = _();
|
|
1533
|
+
N !== E.get() && (F.to(N), E.set(N));
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1537
|
-
|
|
1536
|
+
function M() {
|
|
1537
|
+
f.forEach((D) => D.translate.clear());
|
|
1538
1538
|
}
|
|
1539
1539
|
return {
|
|
1540
1540
|
canLoop: T,
|
|
1541
|
-
clear:
|
|
1542
|
-
loop:
|
|
1543
|
-
loopPoints:
|
|
1541
|
+
clear: M,
|
|
1542
|
+
loop: A,
|
|
1543
|
+
loopPoints: f
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1547
|
-
let r,
|
|
1548
|
-
function
|
|
1546
|
+
function _r(t, e, n) {
|
|
1547
|
+
let r, a = !1;
|
|
1548
|
+
function i(l) {
|
|
1549
1549
|
if (!n) return;
|
|
1550
1550
|
function c(v) {
|
|
1551
|
-
for (const
|
|
1552
|
-
if (
|
|
1553
|
-
|
|
1551
|
+
for (const u of v)
|
|
1552
|
+
if (u.type === "childList") {
|
|
1553
|
+
l.reInit(), e.emit("slidesChanged");
|
|
1554
1554
|
break;
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
1557
1557
|
r = new MutationObserver((v) => {
|
|
1558
|
-
|
|
1558
|
+
a || (Pe(n) || n(l, v)) && c(v);
|
|
1559
1559
|
}), r.observe(t, {
|
|
1560
1560
|
childList: !0
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
1563
1563
|
function o() {
|
|
1564
|
-
r && r.disconnect(),
|
|
1564
|
+
r && r.disconnect(), a = !0;
|
|
1565
1565
|
}
|
|
1566
1566
|
return {
|
|
1567
|
-
init:
|
|
1567
|
+
init: i,
|
|
1568
1568
|
destroy: o
|
|
1569
1569
|
};
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1572
|
-
const
|
|
1573
|
-
let
|
|
1571
|
+
function Ar(t, e, n, r) {
|
|
1572
|
+
const a = {};
|
|
1573
|
+
let i = null, o = null, d, l = !1;
|
|
1574
1574
|
function c() {
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
const y = e.indexOf(
|
|
1578
|
-
|
|
1579
|
-
}),
|
|
1575
|
+
d = new IntersectionObserver((h) => {
|
|
1576
|
+
l || (h.forEach((k) => {
|
|
1577
|
+
const y = e.indexOf(k.target);
|
|
1578
|
+
a[y] = k;
|
|
1579
|
+
}), i = null, o = null, n.emit("slidesInView"));
|
|
1580
1580
|
}, {
|
|
1581
1581
|
root: t.parentElement,
|
|
1582
1582
|
threshold: r
|
|
1583
|
-
}), e.forEach((
|
|
1583
|
+
}), e.forEach((h) => d.observe(h));
|
|
1584
1584
|
}
|
|
1585
1585
|
function v() {
|
|
1586
|
-
|
|
1586
|
+
d && d.disconnect(), l = !0;
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1589
|
-
return
|
|
1588
|
+
function u(h) {
|
|
1589
|
+
return je(a).reduce((k, y) => {
|
|
1590
1590
|
const p = parseInt(y), {
|
|
1591
|
-
isIntersecting:
|
|
1592
|
-
} =
|
|
1593
|
-
return (
|
|
1591
|
+
isIntersecting: m
|
|
1592
|
+
} = a[p];
|
|
1593
|
+
return (h && m || !h && !m) && k.push(p), k;
|
|
1594
1594
|
}, []);
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1597
|
-
if (
|
|
1598
|
-
if (!
|
|
1599
|
-
const
|
|
1600
|
-
return
|
|
1596
|
+
function f(h = !0) {
|
|
1597
|
+
if (h && i) return i;
|
|
1598
|
+
if (!h && o) return o;
|
|
1599
|
+
const k = u(h);
|
|
1600
|
+
return h && (i = k), h || (o = k), k;
|
|
1601
1601
|
}
|
|
1602
1602
|
return {
|
|
1603
1603
|
init: c,
|
|
1604
1604
|
destroy: v,
|
|
1605
|
-
get:
|
|
1605
|
+
get: f
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function Mr(t, e, n, r, a, i) {
|
|
1609
1609
|
const {
|
|
1610
1610
|
measureSize: o,
|
|
1611
|
-
startEdge:
|
|
1612
|
-
endEdge:
|
|
1613
|
-
} = t, c = n[0] &&
|
|
1614
|
-
function
|
|
1611
|
+
startEdge: d,
|
|
1612
|
+
endEdge: l
|
|
1613
|
+
} = t, c = n[0] && a, v = h(), u = k(), f = n.map(o), g = y();
|
|
1614
|
+
function h() {
|
|
1615
1615
|
if (!c) return 0;
|
|
1616
|
-
const
|
|
1617
|
-
return H(e[
|
|
1616
|
+
const m = n[0];
|
|
1617
|
+
return H(e[d] - m[d]);
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function k() {
|
|
1620
1620
|
if (!c) return 0;
|
|
1621
|
-
const
|
|
1622
|
-
return parseFloat(
|
|
1621
|
+
const m = i.getComputedStyle(le(r));
|
|
1622
|
+
return parseFloat(m.getPropertyValue(`margin-${l}`));
|
|
1623
1623
|
}
|
|
1624
1624
|
function y() {
|
|
1625
|
-
return n.map((
|
|
1626
|
-
const
|
|
1627
|
-
return
|
|
1625
|
+
return n.map((m, T, A) => {
|
|
1626
|
+
const M = !T, C = tt(A, T);
|
|
1627
|
+
return M ? f[T] + v : C ? f[T] + u : A[T + 1][d] - m[d];
|
|
1628
1628
|
}).map(H);
|
|
1629
1629
|
}
|
|
1630
1630
|
return {
|
|
1631
|
-
slideSizes:
|
|
1632
|
-
slideSizesWithGaps:
|
|
1631
|
+
slideSizes: f,
|
|
1632
|
+
slideSizesWithGaps: g,
|
|
1633
1633
|
startGap: v,
|
|
1634
|
-
endGap:
|
|
1634
|
+
endGap: u
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1637
|
+
function jr(t, e, n, r, a, i, o, d, l) {
|
|
1638
1638
|
const {
|
|
1639
1639
|
startEdge: c,
|
|
1640
1640
|
endEdge: v,
|
|
1641
|
-
direction:
|
|
1642
|
-
} = t,
|
|
1643
|
-
function
|
|
1644
|
-
return
|
|
1645
|
-
}
|
|
1646
|
-
function f(p) {
|
|
1647
|
-
return p.length ? Ae(p).reduce((u, T, _) => {
|
|
1648
|
-
const A = ae(u) || 0, M = A === 0, C = T === je(p), D = i[c] - s[A][c], j = i[c] - s[T][v], G = !r && M ? g(o) : 0, L = !r && C ? g(l) : 0, R = H(j - L - (D + G));
|
|
1649
|
-
return _ && R > e + a && u.push(T), C && u.push(p.length), u;
|
|
1650
|
-
}, []).map((u, T, _) => {
|
|
1651
|
-
const A = Math.max(_[T - 1] || 0);
|
|
1652
|
-
return p.slice(A, u);
|
|
1653
|
-
}) : [];
|
|
1641
|
+
direction: u
|
|
1642
|
+
} = t, f = Qe(n);
|
|
1643
|
+
function g(p, m) {
|
|
1644
|
+
return Me(p).filter((T) => T % m === 0).map((T) => p.slice(T, T + m));
|
|
1654
1645
|
}
|
|
1655
1646
|
function h(p) {
|
|
1656
|
-
return
|
|
1647
|
+
return p.length ? Me(p).reduce((m, T, A) => {
|
|
1648
|
+
const M = le(m) || 0, C = M === 0, D = T === Le(p), _ = a[c] - i[M][c], F = a[c] - i[T][v], E = !r && C ? u(o) : 0, N = !r && D ? u(d) : 0, z = H(F - N - (_ + E));
|
|
1649
|
+
return A && z > e + l && m.push(T), D && m.push(p.length), m;
|
|
1650
|
+
}, []).map((m, T, A) => {
|
|
1651
|
+
const M = Math.max(A[T - 1] || 0);
|
|
1652
|
+
return p.slice(M, m);
|
|
1653
|
+
}) : [];
|
|
1654
|
+
}
|
|
1655
|
+
function k(p) {
|
|
1656
|
+
return f ? g(p, n) : h(p);
|
|
1657
1657
|
}
|
|
1658
1658
|
return {
|
|
1659
|
-
groupSlides:
|
|
1659
|
+
groupSlides: k
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function Fr(t, e, n, r, a, i, o) {
|
|
1663
1663
|
const {
|
|
1664
|
-
align:
|
|
1665
|
-
axis:
|
|
1664
|
+
align: d,
|
|
1665
|
+
axis: l,
|
|
1666
1666
|
direction: c,
|
|
1667
1667
|
startIndex: v,
|
|
1668
|
-
loop:
|
|
1669
|
-
duration:
|
|
1670
|
-
dragFree:
|
|
1671
|
-
dragThreshold:
|
|
1672
|
-
inViewThreshold:
|
|
1668
|
+
loop: u,
|
|
1669
|
+
duration: f,
|
|
1670
|
+
dragFree: g,
|
|
1671
|
+
dragThreshold: h,
|
|
1672
|
+
inViewThreshold: k,
|
|
1673
1673
|
slidesToScroll: y,
|
|
1674
1674
|
skipSnaps: p,
|
|
1675
|
-
containScroll:
|
|
1675
|
+
containScroll: m,
|
|
1676
1676
|
watchResize: T,
|
|
1677
|
-
watchSlides:
|
|
1678
|
-
watchDrag:
|
|
1679
|
-
watchFocus:
|
|
1680
|
-
} =
|
|
1681
|
-
slideSizes:
|
|
1682
|
-
slideSizesWithGaps:
|
|
1683
|
-
startGap:
|
|
1684
|
-
endGap:
|
|
1685
|
-
} =
|
|
1677
|
+
watchSlides: A,
|
|
1678
|
+
watchDrag: M,
|
|
1679
|
+
watchFocus: C
|
|
1680
|
+
} = i, D = 2, _ = pr(), F = _.measure(e), E = n.map(_.measure), N = cr(l, c), z = N.measureSize(F), G = gr(z), R = lr(d, z), W = !u && !!m, B = u || !!m, {
|
|
1681
|
+
slideSizes: O,
|
|
1682
|
+
slideSizesWithGaps: te,
|
|
1683
|
+
startGap: Q,
|
|
1684
|
+
endGap: se
|
|
1685
|
+
} = Mr(N, F, E, n, B, a), ee = jr(N, z, y, u, F, E, Q, se, D), {
|
|
1686
1686
|
snaps: ie,
|
|
1687
|
-
snapsAligned:
|
|
1688
|
-
} =
|
|
1689
|
-
snapsContained:
|
|
1690
|
-
scrollContainLimit:
|
|
1691
|
-
} =
|
|
1692
|
-
limit:
|
|
1693
|
-
} =
|
|
1694
|
-
dragHandler:
|
|
1695
|
-
scrollBody:
|
|
1696
|
-
scrollBounds:
|
|
1687
|
+
snapsAligned: ae
|
|
1688
|
+
} = Sr(N, R, F, E, ee), V = -le(ie) + le(te), {
|
|
1689
|
+
snapsContained: ue,
|
|
1690
|
+
scrollContainLimit: b
|
|
1691
|
+
} = yr(z, V, ae, m, D), I = W ? ue : ae, {
|
|
1692
|
+
limit: j
|
|
1693
|
+
} = vr(V, I, u), K = jt(Le(I), v, u), q = K.clone(), U = Me(n), x = ({
|
|
1694
|
+
dragHandler: ve,
|
|
1695
|
+
scrollBody: We,
|
|
1696
|
+
scrollBounds: Ue,
|
|
1697
1697
|
options: {
|
|
1698
|
-
loop:
|
|
1698
|
+
loop: Ee
|
|
1699
1699
|
}
|
|
1700
1700
|
}) => {
|
|
1701
|
-
|
|
1702
|
-
},
|
|
1703
|
-
scrollBody:
|
|
1704
|
-
translate:
|
|
1705
|
-
location:
|
|
1706
|
-
offsetLocation:
|
|
1707
|
-
previousLocation:
|
|
1708
|
-
scrollLooper:
|
|
1709
|
-
slideLooper:
|
|
1710
|
-
dragHandler:
|
|
1711
|
-
animation:
|
|
1712
|
-
eventHandler:
|
|
1713
|
-
scrollBounds:
|
|
1701
|
+
Ee || Ue.constrain(ve.pointerDown()), We.seek();
|
|
1702
|
+
}, P = ({
|
|
1703
|
+
scrollBody: ve,
|
|
1704
|
+
translate: We,
|
|
1705
|
+
location: Ue,
|
|
1706
|
+
offsetLocation: Ee,
|
|
1707
|
+
previousLocation: Pt,
|
|
1708
|
+
scrollLooper: zt,
|
|
1709
|
+
slideLooper: Gt,
|
|
1710
|
+
dragHandler: Rt,
|
|
1711
|
+
animation: Wt,
|
|
1712
|
+
eventHandler: it,
|
|
1713
|
+
scrollBounds: Ut,
|
|
1714
1714
|
options: {
|
|
1715
|
-
loop:
|
|
1715
|
+
loop: at
|
|
1716
1716
|
}
|
|
1717
|
-
},
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1720
|
-
const
|
|
1721
|
-
|
|
1722
|
-
},
|
|
1723
|
-
slideRegistry:
|
|
1724
|
-
} =
|
|
1717
|
+
}, lt) => {
|
|
1718
|
+
const dt = ve.settled(), $t = !Ut.shouldConstrain(), ct = at ? dt : dt && $t, ut = ct && !Rt.pointerDown();
|
|
1719
|
+
ut && Wt.stop();
|
|
1720
|
+
const Ht = Ue.get() * lt + Pt.get() * (1 - lt);
|
|
1721
|
+
Ee.set(Ht), at && (zt.loop(ve.direction()), Gt.loop()), We.to(Ee.get()), ut && it.emit("settle"), ct || it.emit("scroll");
|
|
1722
|
+
}, $ = dr(r, a, () => x(Re), (ve) => P(Re, ve)), Y = 0.68, de = I[K.get()], me = _e(de), he = _e(de), pe = _e(de), fe = _e(de), Ce = fr(me, pe, he, fe, f, Y), ze = Cr(u, I, V, j, fe), Ge = wr($, K, q, Ce, ze, fe, o), ot = Tr(j), rt = Fe(), Nt = Ar(e, n, o, k), {
|
|
1723
|
+
slideRegistry: st
|
|
1724
|
+
} = xr(W, m, I, b, ee, U), Bt = Ir(t, n, st, Ge, Ce, rt, o, C), Re = {
|
|
1725
1725
|
ownerDocument: r,
|
|
1726
|
-
ownerWindow:
|
|
1726
|
+
ownerWindow: a,
|
|
1727
1727
|
eventHandler: o,
|
|
1728
|
-
containerRect:
|
|
1729
|
-
slideRects:
|
|
1730
|
-
animation:
|
|
1731
|
-
axis:
|
|
1732
|
-
dragHandler:
|
|
1733
|
-
eventStore:
|
|
1734
|
-
percentOfView:
|
|
1735
|
-
index:
|
|
1736
|
-
indexPrevious:
|
|
1737
|
-
limit:
|
|
1738
|
-
location:
|
|
1739
|
-
offsetLocation:
|
|
1740
|
-
previousLocation:
|
|
1741
|
-
options:
|
|
1742
|
-
resizeHandler:
|
|
1743
|
-
scrollBody:
|
|
1744
|
-
scrollBounds:
|
|
1745
|
-
scrollLooper:
|
|
1746
|
-
scrollProgress:
|
|
1747
|
-
scrollSnapList:
|
|
1748
|
-
scrollSnaps:
|
|
1749
|
-
scrollTarget:
|
|
1728
|
+
containerRect: F,
|
|
1729
|
+
slideRects: E,
|
|
1730
|
+
animation: $,
|
|
1731
|
+
axis: N,
|
|
1732
|
+
dragHandler: ur(N, t, r, a, fe, mr(N, a), me, $, Ge, Ce, ze, K, o, G, g, h, p, Y, M),
|
|
1733
|
+
eventStore: rt,
|
|
1734
|
+
percentOfView: G,
|
|
1735
|
+
index: K,
|
|
1736
|
+
indexPrevious: q,
|
|
1737
|
+
limit: j,
|
|
1738
|
+
location: me,
|
|
1739
|
+
offsetLocation: pe,
|
|
1740
|
+
previousLocation: he,
|
|
1741
|
+
options: i,
|
|
1742
|
+
resizeHandler: hr(e, o, a, n, N, T, _),
|
|
1743
|
+
scrollBody: Ce,
|
|
1744
|
+
scrollBounds: kr(j, pe, fe, Ce, G),
|
|
1745
|
+
scrollLooper: br(V, j, pe, [me, pe, he, fe]),
|
|
1746
|
+
scrollProgress: ot,
|
|
1747
|
+
scrollSnapList: I.map(ot.get),
|
|
1748
|
+
scrollSnaps: I,
|
|
1749
|
+
scrollTarget: ze,
|
|
1750
1750
|
scrollTo: Ge,
|
|
1751
|
-
slideLooper:
|
|
1752
|
-
slideFocus:
|
|
1753
|
-
slidesHandler:
|
|
1754
|
-
slidesInView:
|
|
1755
|
-
slideIndexes:
|
|
1756
|
-
slideRegistry:
|
|
1757
|
-
slidesToScroll:
|
|
1758
|
-
target:
|
|
1759
|
-
translate:
|
|
1751
|
+
slideLooper: Dr(N, z, V, O, te, ie, I, pe, n),
|
|
1752
|
+
slideFocus: Bt,
|
|
1753
|
+
slidesHandler: _r(e, o, A),
|
|
1754
|
+
slidesInView: Nt,
|
|
1755
|
+
slideIndexes: U,
|
|
1756
|
+
slideRegistry: st,
|
|
1757
|
+
slidesToScroll: ee,
|
|
1758
|
+
target: fe,
|
|
1759
|
+
translate: Ft(N, e)
|
|
1760
1760
|
};
|
|
1761
1761
|
return Re;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function Lr() {
|
|
1764
1764
|
let t = {}, e;
|
|
1765
1765
|
function n(c) {
|
|
1766
1766
|
e = c;
|
|
@@ -1768,28 +1768,28 @@ function jr() {
|
|
|
1768
1768
|
function r(c) {
|
|
1769
1769
|
return t[c] || [];
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1772
|
-
return r(c).forEach((v) => v(e, c)),
|
|
1771
|
+
function a(c) {
|
|
1772
|
+
return r(c).forEach((v) => v(e, c)), l;
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1775
|
-
return t[c] = r(c).concat([v]),
|
|
1774
|
+
function i(c, v) {
|
|
1775
|
+
return t[c] = r(c).concat([v]), l;
|
|
1776
1776
|
}
|
|
1777
1777
|
function o(c, v) {
|
|
1778
|
-
return t[c] = r(c).filter((
|
|
1778
|
+
return t[c] = r(c).filter((u) => u !== v), l;
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function d() {
|
|
1781
1781
|
t = {};
|
|
1782
1782
|
}
|
|
1783
|
-
const
|
|
1783
|
+
const l = {
|
|
1784
1784
|
init: n,
|
|
1785
|
-
emit:
|
|
1785
|
+
emit: a,
|
|
1786
1786
|
off: o,
|
|
1787
|
-
on:
|
|
1788
|
-
clear:
|
|
1787
|
+
on: i,
|
|
1788
|
+
clear: d
|
|
1789
1789
|
};
|
|
1790
|
-
return
|
|
1790
|
+
return l;
|
|
1791
1791
|
}
|
|
1792
|
-
const
|
|
1792
|
+
const Er = {
|
|
1793
1793
|
align: "center",
|
|
1794
1794
|
axis: "x",
|
|
1795
1795
|
container: null,
|
|
@@ -1811,16 +1811,16 @@ const Fr = {
|
|
|
1811
1811
|
watchSlides: !0,
|
|
1812
1812
|
watchFocus: !0
|
|
1813
1813
|
};
|
|
1814
|
-
function
|
|
1815
|
-
function e(
|
|
1816
|
-
return
|
|
1814
|
+
function Nr(t) {
|
|
1815
|
+
function e(i, o) {
|
|
1816
|
+
return Mt(i, o || {});
|
|
1817
1817
|
}
|
|
1818
|
-
function n(
|
|
1819
|
-
const o =
|
|
1820
|
-
return e(
|
|
1818
|
+
function n(i) {
|
|
1819
|
+
const o = i.breakpoints || {}, d = je(o).filter((l) => t.matchMedia(l).matches).map((l) => o[l]).reduce((l, c) => e(l, c), {});
|
|
1820
|
+
return e(i, d);
|
|
1821
1821
|
}
|
|
1822
|
-
function r(
|
|
1823
|
-
return
|
|
1822
|
+
function r(i) {
|
|
1823
|
+
return i.map((o) => je(o.breakpoints || {})).reduce((o, d) => o.concat(d), []).map(t.matchMedia);
|
|
1824
1824
|
}
|
|
1825
1825
|
return {
|
|
1826
1826
|
mergeOptions: e,
|
|
@@ -1828,17 +1828,17 @@ function Er(t) {
|
|
|
1828
1828
|
optionsMediaQueries: r
|
|
1829
1829
|
};
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function Br(t) {
|
|
1832
1832
|
let e = [];
|
|
1833
|
-
function n(
|
|
1833
|
+
function n(i, o) {
|
|
1834
1834
|
return e = o.filter(({
|
|
1835
|
-
options:
|
|
1836
|
-
}) => t.optionsAtMedia(
|
|
1837
|
-
[
|
|
1835
|
+
options: d
|
|
1836
|
+
}) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(i, t)), o.reduce((d, l) => Object.assign(d, {
|
|
1837
|
+
[l.name]: l
|
|
1838
1838
|
}), {});
|
|
1839
1839
|
}
|
|
1840
1840
|
function r() {
|
|
1841
|
-
e = e.filter((
|
|
1841
|
+
e = e.filter((i) => i.destroy());
|
|
1842
1842
|
}
|
|
1843
1843
|
return {
|
|
1844
1844
|
init: n,
|
|
@@ -1846,296 +1846,296 @@ function Lr(t) {
|
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
1848
|
function Be(t, e, n) {
|
|
1849
|
-
const r = t.ownerDocument,
|
|
1849
|
+
const r = t.ownerDocument, a = r.defaultView, i = Nr(a), o = Br(i), d = Fe(), l = Lr(), {
|
|
1850
1850
|
mergeOptions: c,
|
|
1851
1851
|
optionsAtMedia: v,
|
|
1852
|
-
optionsMediaQueries:
|
|
1853
|
-
} =
|
|
1854
|
-
on:
|
|
1855
|
-
off:
|
|
1856
|
-
emit:
|
|
1857
|
-
} =
|
|
1858
|
-
let y = !1, p,
|
|
1859
|
-
function
|
|
1852
|
+
optionsMediaQueries: u
|
|
1853
|
+
} = i, {
|
|
1854
|
+
on: f,
|
|
1855
|
+
off: g,
|
|
1856
|
+
emit: h
|
|
1857
|
+
} = l, k = N;
|
|
1858
|
+
let y = !1, p, m = c(Er, Be.globalOptions), T = c(m), A = [], M, C, D;
|
|
1859
|
+
function _() {
|
|
1860
1860
|
const {
|
|
1861
|
-
container:
|
|
1861
|
+
container: U,
|
|
1862
1862
|
slides: x
|
|
1863
1863
|
} = T;
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1867
|
-
}
|
|
1868
|
-
function
|
|
1869
|
-
const x =
|
|
1870
|
-
if (
|
|
1871
|
-
const
|
|
1864
|
+
C = (qe(U) ? t.querySelector(U) : U) || t.children[0];
|
|
1865
|
+
const $ = qe(x) ? C.querySelectorAll(x) : x;
|
|
1866
|
+
D = [].slice.call($ || C.children);
|
|
1867
|
+
}
|
|
1868
|
+
function F(U) {
|
|
1869
|
+
const x = Fr(t, C, D, r, a, U, l);
|
|
1870
|
+
if (U.loop && !x.slideLooper.canLoop()) {
|
|
1871
|
+
const P = Object.assign({}, U, {
|
|
1872
1872
|
loop: !1
|
|
1873
1873
|
});
|
|
1874
|
-
return
|
|
1874
|
+
return F(P);
|
|
1875
1875
|
}
|
|
1876
1876
|
return x;
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1879
|
-
y || (
|
|
1880
|
-
options:
|
|
1881
|
-
}) =>
|
|
1878
|
+
function E(U, x) {
|
|
1879
|
+
y || (m = c(m, U), T = v(m), A = x || A, _(), p = F(T), u([m, ...A.map(({
|
|
1880
|
+
options: P
|
|
1881
|
+
}) => P)]).forEach((P) => d.add(P, "change", N)), T.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(q), p.eventHandler.init(q), p.resizeHandler.init(q), p.slidesHandler.init(q), p.options.loop && p.slideLooper.loop(), C.offsetParent && D.length && p.dragHandler.init(q), M = o.init(q, A)));
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1886
|
-
startIndex:
|
|
1887
|
-
},
|
|
1883
|
+
function N(U, x) {
|
|
1884
|
+
const P = ee();
|
|
1885
|
+
z(), E(c({
|
|
1886
|
+
startIndex: P
|
|
1887
|
+
}, U), x), l.emit("reInit");
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1890
|
-
p.dragHandler.destroy(), p.eventStore.clear(), p.translate.clear(), p.slideLooper.clear(), p.resizeHandler.destroy(), p.slidesHandler.destroy(), p.slidesInView.destroy(), p.animation.destroy(), o.destroy(),
|
|
1889
|
+
function z() {
|
|
1890
|
+
p.dragHandler.destroy(), p.eventStore.clear(), p.translate.clear(), p.slideLooper.clear(), p.resizeHandler.destroy(), p.slidesHandler.destroy(), p.slidesInView.destroy(), p.animation.destroy(), o.destroy(), d.clear();
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1893
|
-
y || (y = !0,
|
|
1892
|
+
function G() {
|
|
1893
|
+
y || (y = !0, d.clear(), z(), l.emit("destroy"), l.clear());
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1896
|
-
!T.active || y || (p.scrollBody.useBaseFriction().useDuration(x === !0 ? 0 : T.duration), p.scrollTo.index(
|
|
1895
|
+
function R(U, x, P) {
|
|
1896
|
+
!T.active || y || (p.scrollBody.useBaseFriction().useDuration(x === !0 ? 0 : T.duration), p.scrollTo.index(U, P || 0));
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function W(U) {
|
|
1899
1899
|
const x = p.index.add(1).get();
|
|
1900
|
-
|
|
1900
|
+
R(x, U, -1);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function B(U) {
|
|
1903
1903
|
const x = p.index.add(-1).get();
|
|
1904
|
-
|
|
1904
|
+
R(x, U, 1);
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1907
|
-
return p.index.add(1).get() !==
|
|
1906
|
+
function O() {
|
|
1907
|
+
return p.index.add(1).get() !== ee();
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1910
|
-
return p.index.add(-1).get() !==
|
|
1909
|
+
function te() {
|
|
1910
|
+
return p.index.add(-1).get() !== ee();
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function Q() {
|
|
1913
1913
|
return p.scrollSnapList;
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function se() {
|
|
1916
1916
|
return p.scrollProgress.get(p.offsetLocation.get());
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function ee() {
|
|
1919
1919
|
return p.index.get();
|
|
1920
1920
|
}
|
|
1921
1921
|
function ie() {
|
|
1922
1922
|
return p.indexPrevious.get();
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function ae() {
|
|
1925
1925
|
return p.slidesInView.get();
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function V() {
|
|
1928
1928
|
return p.slidesInView.get(!1);
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1931
|
-
return
|
|
1930
|
+
function ue() {
|
|
1931
|
+
return M;
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1933
|
+
function b() {
|
|
1934
1934
|
return p;
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function I() {
|
|
1937
1937
|
return t;
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1940
|
-
return M;
|
|
1941
|
-
}
|
|
1942
|
-
function te() {
|
|
1939
|
+
function j() {
|
|
1943
1940
|
return C;
|
|
1944
1941
|
}
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1942
|
+
function K() {
|
|
1943
|
+
return D;
|
|
1944
|
+
}
|
|
1945
|
+
const q = {
|
|
1946
|
+
canScrollNext: O,
|
|
1947
|
+
canScrollPrev: te,
|
|
1948
|
+
containerNode: j,
|
|
1949
|
+
internalEngine: b,
|
|
1950
|
+
destroy: G,
|
|
1951
|
+
off: g,
|
|
1952
|
+
on: f,
|
|
1953
|
+
emit: h,
|
|
1954
|
+
plugins: ue,
|
|
1955
1955
|
previousScrollSnap: ie,
|
|
1956
|
-
reInit:
|
|
1957
|
-
rootNode:
|
|
1958
|
-
scrollNext:
|
|
1959
|
-
scrollPrev:
|
|
1960
|
-
scrollProgress:
|
|
1961
|
-
scrollSnapList:
|
|
1962
|
-
scrollTo:
|
|
1963
|
-
selectedScrollSnap:
|
|
1964
|
-
slideNodes:
|
|
1965
|
-
slidesInView:
|
|
1966
|
-
slidesNotInView:
|
|
1956
|
+
reInit: k,
|
|
1957
|
+
rootNode: I,
|
|
1958
|
+
scrollNext: W,
|
|
1959
|
+
scrollPrev: B,
|
|
1960
|
+
scrollProgress: se,
|
|
1961
|
+
scrollSnapList: Q,
|
|
1962
|
+
scrollTo: R,
|
|
1963
|
+
selectedScrollSnap: ee,
|
|
1964
|
+
slideNodes: K,
|
|
1965
|
+
slidesInView: ae,
|
|
1966
|
+
slidesNotInView: V
|
|
1967
1967
|
};
|
|
1968
|
-
return
|
|
1968
|
+
return E(e, n), setTimeout(() => l.emit("init"), 0), q;
|
|
1969
1969
|
}
|
|
1970
1970
|
Be.globalOptions = void 0;
|
|
1971
|
-
function
|
|
1972
|
-
const n =
|
|
1973
|
-
|
|
1974
|
-
}, [
|
|
1975
|
-
return
|
|
1976
|
-
|
|
1977
|
-
}, [t,
|
|
1978
|
-
|
|
1979
|
-
}, [e,
|
|
1980
|
-
if (
|
|
1981
|
-
Be.globalOptions =
|
|
1971
|
+
function nt(t = {}, e = []) {
|
|
1972
|
+
const n = Ke(t), r = Ke(e), [a, i] = ne(), [o, d] = ne(), l = re(() => {
|
|
1973
|
+
a && a.reInit(n.current, r.current);
|
|
1974
|
+
}, [a]);
|
|
1975
|
+
return Z(() => {
|
|
1976
|
+
Ze(n.current, t) || (n.current = t, l());
|
|
1977
|
+
}, [t, l]), Z(() => {
|
|
1978
|
+
sr(r.current, e) || (r.current = e, l());
|
|
1979
|
+
}, [e, l]), Z(() => {
|
|
1980
|
+
if (rr() && o) {
|
|
1981
|
+
Be.globalOptions = nt.globalOptions;
|
|
1982
1982
|
const c = Be(o, n.current, r.current);
|
|
1983
|
-
return
|
|
1983
|
+
return i(c), () => c.destroy();
|
|
1984
1984
|
} else
|
|
1985
|
-
|
|
1986
|
-
}, [o,
|
|
1985
|
+
i(void 0);
|
|
1986
|
+
}, [o, i]), [d, a];
|
|
1987
1987
|
}
|
|
1988
|
-
|
|
1989
|
-
const
|
|
1990
|
-
carouselContainer:
|
|
1991
|
-
viewport:
|
|
1992
|
-
slides:
|
|
1993
|
-
slide:
|
|
1994
|
-
slideInner:
|
|
1995
|
-
loaderOverlay:
|
|
1996
|
-
image:
|
|
1997
|
-
loaded:
|
|
1998
|
-
empty:
|
|
1999
|
-
controls:
|
|
2000
|
-
arrows:
|
|
2001
|
-
dots:
|
|
2002
|
-
dot:
|
|
2003
|
-
dotActive:
|
|
2004
|
-
},
|
|
1988
|
+
nt.globalOptions = void 0;
|
|
1989
|
+
const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Gr = "_slides_1bu1s_17", Rr = "_slide_1bu1s_17", Wr = "_slideInner_1bu1s_37", Ur = "_loaderOverlay_1bu1s_45", $r = "_image_1bu1s_55", Hr = "_loaded_1bu1s_66", Or = "_empty_1bu1s_78", Vr = "_controls_1bu1s_84", Kr = "_arrows_1bu1s_94", Yr = "_dots_1bu1s_104", qr = "_dot_1bu1s_104", Xr = "_dotActive_1bu1s_130", X = {
|
|
1990
|
+
carouselContainer: Pr,
|
|
1991
|
+
viewport: zr,
|
|
1992
|
+
slides: Gr,
|
|
1993
|
+
slide: Rr,
|
|
1994
|
+
slideInner: Wr,
|
|
1995
|
+
loaderOverlay: Ur,
|
|
1996
|
+
image: $r,
|
|
1997
|
+
loaded: Hr,
|
|
1998
|
+
empty: Or,
|
|
1999
|
+
controls: Vr,
|
|
2000
|
+
arrows: Kr,
|
|
2001
|
+
dots: Yr,
|
|
2002
|
+
dot: qr,
|
|
2003
|
+
dotActive: Xr
|
|
2004
|
+
}, Jr = ln, Zr = ({
|
|
2005
2005
|
images: t,
|
|
2006
2006
|
autoPlay: e = !1,
|
|
2007
2007
|
autoDelay: n = 5,
|
|
2008
2008
|
showArrows: r = !0,
|
|
2009
|
-
showDots:
|
|
2010
|
-
variant:
|
|
2009
|
+
showDots: a = !0,
|
|
2010
|
+
variant: i,
|
|
2011
2011
|
slidesPerView: o = 1,
|
|
2012
|
-
slideSpacing:
|
|
2013
|
-
cornerRadius:
|
|
2012
|
+
slideSpacing: d = 16,
|
|
2013
|
+
cornerRadius: l = 0,
|
|
2014
2014
|
"data-color": c,
|
|
2015
2015
|
"data-size": v
|
|
2016
2016
|
}) => {
|
|
2017
|
-
const
|
|
2017
|
+
const u = {
|
|
2018
2018
|
loop: !0,
|
|
2019
2019
|
align: "start",
|
|
2020
2020
|
containScroll: "trimSnaps",
|
|
2021
2021
|
slidesToScroll: 1
|
|
2022
|
-
}, [
|
|
2023
|
-
|
|
2022
|
+
}, [f, g] = nt(u), [h, k] = ne(0), [y, p] = ne([]), [m, T] = ne([]);
|
|
2023
|
+
Z(() => {
|
|
2024
2024
|
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2025
2025
|
}, [t]);
|
|
2026
|
-
const
|
|
2027
|
-
T((
|
|
2028
|
-
const
|
|
2029
|
-
return
|
|
2026
|
+
const A = re((G) => {
|
|
2027
|
+
T((R) => {
|
|
2028
|
+
const W = [...R];
|
|
2029
|
+
return W[G] = !0, W;
|
|
2030
2030
|
});
|
|
2031
|
-
}, []),
|
|
2032
|
-
|
|
2033
|
-
}, [
|
|
2034
|
-
|
|
2035
|
-
if (
|
|
2036
|
-
return
|
|
2037
|
-
|
|
2031
|
+
}, []), M = Se(() => n * 1e3, [n]), C = re(() => {
|
|
2032
|
+
g && k(g.selectedScrollSnap());
|
|
2033
|
+
}, [g]), D = re((G) => g && g.scrollTo(G), [g]), _ = re(() => g && g.scrollPrev(), [g]), F = re(() => g && g.scrollNext(), [g]);
|
|
2034
|
+
Z(() => {
|
|
2035
|
+
if (g)
|
|
2036
|
+
return g.on("select", C), g.on("reInit", C), p(g.scrollSnapList()), () => {
|
|
2037
|
+
g.off("select", C), g.off("reInit", C);
|
|
2038
2038
|
};
|
|
2039
|
-
}, [
|
|
2040
|
-
|
|
2041
|
-
}, [
|
|
2042
|
-
if (!e || !
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2045
|
-
},
|
|
2039
|
+
}, [g, C]), Z(() => {
|
|
2040
|
+
g && (g.reInit(), p(g.scrollSnapList()));
|
|
2041
|
+
}, [g, t, o, d]), Z(() => {
|
|
2042
|
+
if (!e || !g || !t || t.length <= 1) return;
|
|
2043
|
+
const G = window.setInterval(() => {
|
|
2044
|
+
g.canScrollNext() && g.scrollNext();
|
|
2045
|
+
}, M);
|
|
2046
2046
|
return () => {
|
|
2047
|
-
window.clearInterval(
|
|
2047
|
+
window.clearInterval(G);
|
|
2048
2048
|
};
|
|
2049
|
-
}, [e,
|
|
2050
|
-
const
|
|
2051
|
-
return /* @__PURE__ */
|
|
2049
|
+
}, [e, M, g, t]);
|
|
2050
|
+
const E = Math.max(1, o), N = `${100 / E}%`, z = d / 2;
|
|
2051
|
+
return /* @__PURE__ */ w(
|
|
2052
2052
|
"div",
|
|
2053
2053
|
{
|
|
2054
|
-
className:
|
|
2054
|
+
className: X.carouselContainer,
|
|
2055
2055
|
"data-color": c,
|
|
2056
2056
|
"data-size": v,
|
|
2057
|
-
"data-variant":
|
|
2057
|
+
"data-variant": i,
|
|
2058
2058
|
children: [
|
|
2059
|
-
/* @__PURE__ */
|
|
2059
|
+
/* @__PURE__ */ s("div", { className: X.viewport, ref: f, children: /* @__PURE__ */ s(
|
|
2060
2060
|
"div",
|
|
2061
2061
|
{
|
|
2062
|
-
className:
|
|
2062
|
+
className: X.slides,
|
|
2063
2063
|
style: {
|
|
2064
|
-
marginLeft: `-${
|
|
2065
|
-
marginRight: `-${
|
|
2064
|
+
marginLeft: `-${z}px`,
|
|
2065
|
+
marginRight: `-${z}px`
|
|
2066
2066
|
},
|
|
2067
|
-
children: t && t.length > 0 ? t.map((
|
|
2067
|
+
children: t && t.length > 0 ? t.map((G, R) => /* @__PURE__ */ s(
|
|
2068
2068
|
"div",
|
|
2069
2069
|
{
|
|
2070
|
-
className:
|
|
2070
|
+
className: X.slide,
|
|
2071
2071
|
style: {
|
|
2072
|
-
flex: `0 0 ${
|
|
2073
|
-
paddingLeft: `${
|
|
2074
|
-
paddingRight: `${
|
|
2075
|
-
borderRadius:
|
|
2072
|
+
flex: `0 0 ${N}`,
|
|
2073
|
+
paddingLeft: `${z}px`,
|
|
2074
|
+
paddingRight: `${z}px`,
|
|
2075
|
+
borderRadius: l > 0 ? `${l}px` : void 0,
|
|
2076
2076
|
overflow: "hidden"
|
|
2077
2077
|
// Ensure radius clips content
|
|
2078
2078
|
},
|
|
2079
|
-
children: /* @__PURE__ */
|
|
2080
|
-
!
|
|
2081
|
-
/* @__PURE__ */
|
|
2079
|
+
children: /* @__PURE__ */ w("div", { className: X.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2080
|
+
!m[R] && /* @__PURE__ */ s("div", { className: X.loaderOverlay, children: /* @__PURE__ */ s(Jr, { "aria-label": "Laster bilde" }) }),
|
|
2081
|
+
/* @__PURE__ */ s(
|
|
2082
2082
|
"img",
|
|
2083
2083
|
{
|
|
2084
|
-
className: `${
|
|
2085
|
-
src:
|
|
2086
|
-
alt:
|
|
2087
|
-
loading:
|
|
2084
|
+
className: `${X.image} ${m[R] ? X.loaded : X.loadingImage}`,
|
|
2085
|
+
src: G.src,
|
|
2086
|
+
alt: G.alt,
|
|
2087
|
+
loading: R < E ? "eager" : "lazy",
|
|
2088
2088
|
crossOrigin: "anonymous",
|
|
2089
|
-
onLoad: () =>
|
|
2090
|
-
onError: (
|
|
2091
|
-
|
|
2089
|
+
onLoad: () => A(R),
|
|
2090
|
+
onError: (W) => {
|
|
2091
|
+
W.target.style.display = "none", A(R);
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
)
|
|
2095
2095
|
] })
|
|
2096
2096
|
},
|
|
2097
|
-
`image-${
|
|
2098
|
-
)) : /* @__PURE__ */
|
|
2097
|
+
`image-${R}-${G.src}`
|
|
2098
|
+
)) : /* @__PURE__ */ s("div", { className: X.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ s("div", { className: X.empty, children: "Ingen bilder" }) })
|
|
2099
2099
|
}
|
|
2100
2100
|
) }),
|
|
2101
|
-
(r ||
|
|
2102
|
-
r && /* @__PURE__ */
|
|
2103
|
-
/* @__PURE__ */
|
|
2104
|
-
|
|
2101
|
+
(r || a && t && t.length > 1) && /* @__PURE__ */ w("div", { className: X.controls, "aria-hidden": "false", children: [
|
|
2102
|
+
r && /* @__PURE__ */ w("div", { className: X.arrows, children: [
|
|
2103
|
+
/* @__PURE__ */ s(
|
|
2104
|
+
xe,
|
|
2105
2105
|
{
|
|
2106
2106
|
variant: "primary",
|
|
2107
2107
|
icon: !0,
|
|
2108
2108
|
"aria-label": "Forrige bilde",
|
|
2109
|
-
onClick:
|
|
2109
|
+
onClick: _,
|
|
2110
2110
|
disabled: !t || t.length <= 1,
|
|
2111
|
-
children: /* @__PURE__ */
|
|
2111
|
+
children: /* @__PURE__ */ s(Xn, { "aria-hidden": !0 })
|
|
2112
2112
|
}
|
|
2113
2113
|
),
|
|
2114
|
-
/* @__PURE__ */
|
|
2115
|
-
|
|
2114
|
+
/* @__PURE__ */ s(
|
|
2115
|
+
xe,
|
|
2116
2116
|
{
|
|
2117
2117
|
variant: "primary",
|
|
2118
2118
|
icon: !0,
|
|
2119
2119
|
"aria-label": "Neste bilde",
|
|
2120
|
-
onClick:
|
|
2120
|
+
onClick: F,
|
|
2121
2121
|
disabled: !t || t.length <= 1,
|
|
2122
|
-
children: /* @__PURE__ */
|
|
2122
|
+
children: /* @__PURE__ */ s(Jn, { "aria-hidden": !0 })
|
|
2123
2123
|
}
|
|
2124
2124
|
)
|
|
2125
2125
|
] }),
|
|
2126
|
-
|
|
2127
|
-
const
|
|
2128
|
-
return /* @__PURE__ */
|
|
2126
|
+
a && t && t.length > 1 && /* @__PURE__ */ s("div", { className: X.dots, role: "tablist", "aria-label": "Bildeposisjon", children: y.map((G, R) => {
|
|
2127
|
+
const W = R === h;
|
|
2128
|
+
return /* @__PURE__ */ s(
|
|
2129
2129
|
"button",
|
|
2130
2130
|
{
|
|
2131
2131
|
type: "button",
|
|
2132
|
-
className: `${
|
|
2133
|
-
onClick: () =>
|
|
2134
|
-
"aria-label": `Gå til bilde ${
|
|
2135
|
-
"aria-selected":
|
|
2132
|
+
className: `${X.dot} ${W ? X.dotActive : ""}`,
|
|
2133
|
+
onClick: () => D(R),
|
|
2134
|
+
"aria-label": `Gå til bilde ${R + 1}`,
|
|
2135
|
+
"aria-selected": W,
|
|
2136
2136
|
role: "tab"
|
|
2137
2137
|
},
|
|
2138
|
-
`dot-${
|
|
2138
|
+
`dot-${R}`
|
|
2139
2139
|
);
|
|
2140
2140
|
}) })
|
|
2141
2141
|
] })
|
|
@@ -2143,27 +2143,27 @@ const Br = "_carouselContainer_1bu1s_1", Nr = "_viewport_1bu1s_11", Pr = "_slide
|
|
|
2143
2143
|
}
|
|
2144
2144
|
);
|
|
2145
2145
|
};
|
|
2146
|
-
|
|
2147
|
-
const
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
const
|
|
2151
|
-
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2154
|
-
const
|
|
2155
|
-
(t, e) => /* @__PURE__ */
|
|
2146
|
+
Zr.displayName = "Carousel";
|
|
2147
|
+
const Oi = dn, Vi = cn, Ki = un, J = mn, Yi = pn, qi = gn, Qr = hn, es = fn;
|
|
2148
|
+
Qr.displayName = "Field.Description";
|
|
2149
|
+
es.displayName = "Field.Counter";
|
|
2150
|
+
const Xi = Ct, ts = ge((t, e) => /* @__PURE__ */ s(kn, { ref: e, ...t }));
|
|
2151
|
+
ts.displayName = "Heading";
|
|
2152
|
+
const Ji = yn, ns = ge((t, e) => /* @__PURE__ */ s(vn, { ref: e, ...t }));
|
|
2153
|
+
ns.displayName = "Label";
|
|
2154
|
+
const ce = bn, Zi = Tn, Qi = Sn, ea = xn, Je = ge(
|
|
2155
|
+
(t, e) => /* @__PURE__ */ s(Cn, { ref: e, ...t })
|
|
2156
2156
|
);
|
|
2157
|
-
|
|
2158
|
-
const
|
|
2159
|
-
Button:
|
|
2160
|
-
ClearButton:
|
|
2161
|
-
Input:
|
|
2162
|
-
}),
|
|
2163
|
-
|
|
2164
|
-
const Oe =
|
|
2165
|
-
|
|
2166
|
-
const
|
|
2157
|
+
Je.displayName = "Paragraph";
|
|
2158
|
+
const ta = wn, na = In, oa = Dn, Ne = Object.assign(_n, {
|
|
2159
|
+
Button: jn,
|
|
2160
|
+
ClearButton: Mn,
|
|
2161
|
+
Input: An
|
|
2162
|
+
}), ra = Fn, sa = Ln, ia = En, os = Nn;
|
|
2163
|
+
os.displayName = "Suggestion";
|
|
2164
|
+
const Oe = Bn, aa = Pn, la = zn, da = Gn, ca = Rn, ua = Wn, ma = Un, pa = $n, rs = ge((t, e) => /* @__PURE__ */ s(Hn, { ref: e, ...t }));
|
|
2165
|
+
rs.displayName = "ValidationMessage";
|
|
2166
|
+
const ss = {
|
|
2167
2167
|
NO: {
|
|
2168
2168
|
// Header
|
|
2169
2169
|
header: {
|
|
@@ -4120,78 +4120,78 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4120
4120
|
}
|
|
4121
4121
|
}
|
|
4122
4122
|
}
|
|
4123
|
-
},
|
|
4124
|
-
const [e, n] = ne("NO"), r = (
|
|
4125
|
-
const
|
|
4126
|
-
let o =
|
|
4127
|
-
for (const
|
|
4128
|
-
if (o[
|
|
4129
|
-
return console.warn(`Translation missing for key: ${
|
|
4130
|
-
o = o[
|
|
4123
|
+
}, Lt = Vt(void 0), ga = ({ children: t }) => {
|
|
4124
|
+
const [e, n] = ne("NO"), r = (a) => {
|
|
4125
|
+
const i = a.split(".");
|
|
4126
|
+
let o = ss[e];
|
|
4127
|
+
for (const d of i) {
|
|
4128
|
+
if (o[d] === void 0)
|
|
4129
|
+
return console.warn(`Translation missing for key: ${a} in language: ${e}`), a;
|
|
4130
|
+
o = o[d];
|
|
4131
4131
|
}
|
|
4132
4132
|
return o;
|
|
4133
4133
|
};
|
|
4134
|
-
return /* @__PURE__ */
|
|
4135
|
-
},
|
|
4136
|
-
const t =
|
|
4134
|
+
return /* @__PURE__ */ s(Lt.Provider, { value: { language: e, setLanguage: n, t: r }, children: t });
|
|
4135
|
+
}, Et = () => {
|
|
4136
|
+
const t = Kt(Lt);
|
|
4137
4137
|
if (t === void 0)
|
|
4138
4138
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
4139
4139
|
return t;
|
|
4140
|
-
},
|
|
4141
|
-
header:
|
|
4142
|
-
languageSwitch:
|
|
4143
|
-
searchOverlay:
|
|
4144
|
-
headerExtension:
|
|
4145
|
-
extensionContentWrapper:
|
|
4146
|
-
extensionContent:
|
|
4147
|
-
extensionDivider:
|
|
4140
|
+
}, is = "_header_ymzss_1", as = "_languageSwitch_ymzss_36", ls = "_searchOverlay_ymzss_40", ds = "_headerExtension_ymzss_45", cs = "_extensionContentWrapper_ymzss_73", us = "_extensionContent_ymzss_73", ms = "_extensionDivider_ymzss_100", ps = "_languageLabel_ymzss_124", gs = "_languageLink_ymzss_140", hs = "_headerInner_ymzss_175", fs = "_logoWrapper_ymzss_192", ks = "_logo_ymzss_192", ys = "_secondaryLogoWrapper_ymzss_215", vs = "_slotComponent_ymzss_224", bs = "_slotContainer_ymzss_234", Ts = "_slotText_ymzss_242", Ss = "_secondaryLogo_ymzss_215", xs = "_redCrossLogo_ymzss_269", Cs = "_primaryLogo_ymzss_275", ws = "_navItems_ymzss_279", Is = "_navLink_ymzss_288", Ds = "_actions_ymzss_301", _s = "_ctaButton_ymzss_309", As = "_themeToggle_ymzss_314", Ms = "_userInfo_ymzss_319", js = "_userName_ymzss_325", Fs = "_loginLink_ymzss_332", Ls = "_loginText_ymzss_341", Es = "_underline_ymzss_348", Ns = "_searchButtonWrapper_ymzss_354", Bs = "_buttonText_ymzss_358", Ps = "_menuButton_ymzss_363", zs = "_menuOverlay_ymzss_368", Gs = "_searchContent_ymzss_402", Rs = "_menuContent_ymzss_412", Ws = "_menuLeftColumn_ymzss_421", Us = "_menuRightColumn_ymzss_427", $s = "_slotContent_ymzss_441", Hs = "_navList_ymzss_454", Os = "_menuUtilities_ymzss_461", Vs = "_menuBrand_ymzss_468", Ks = "_suggestionsSection_ymzss_472", Ys = "_suggestionsTitle_ymzss_478", qs = "_searchResults_ymzss_487", Xs = "_resultList_ymzss_493", Js = "_resultItem_ymzss_499", Zs = "_resultLink_ymzss_507", Qs = "_suggestionIcon_ymzss_521", ei = "_suggestionText_ymzss_534", ti = "_highlightedText_ymzss_541", ni = "_remainingText_ymzss_546", oi = "_viewAllLink_ymzss_559", ri = "_noResults_ymzss_594", S = {
|
|
4141
|
+
header: is,
|
|
4142
|
+
languageSwitch: as,
|
|
4143
|
+
searchOverlay: ls,
|
|
4144
|
+
headerExtension: ds,
|
|
4145
|
+
extensionContentWrapper: cs,
|
|
4146
|
+
extensionContent: us,
|
|
4147
|
+
extensionDivider: ms,
|
|
4148
4148
|
languageLabel: ps,
|
|
4149
|
-
languageLink:
|
|
4150
|
-
headerInner:
|
|
4149
|
+
languageLink: gs,
|
|
4150
|
+
headerInner: hs,
|
|
4151
4151
|
logoWrapper: fs,
|
|
4152
|
-
logo:
|
|
4153
|
-
secondaryLogoWrapper:
|
|
4154
|
-
slotComponent:
|
|
4155
|
-
slotContainer:
|
|
4156
|
-
slotText:
|
|
4157
|
-
secondaryLogo:
|
|
4158
|
-
redCrossLogo:
|
|
4159
|
-
primaryLogo:
|
|
4160
|
-
navItems:
|
|
4161
|
-
navLink:
|
|
4162
|
-
actions:
|
|
4163
|
-
ctaButton:
|
|
4152
|
+
logo: ks,
|
|
4153
|
+
secondaryLogoWrapper: ys,
|
|
4154
|
+
slotComponent: vs,
|
|
4155
|
+
slotContainer: bs,
|
|
4156
|
+
slotText: Ts,
|
|
4157
|
+
secondaryLogo: Ss,
|
|
4158
|
+
redCrossLogo: xs,
|
|
4159
|
+
primaryLogo: Cs,
|
|
4160
|
+
navItems: ws,
|
|
4161
|
+
navLink: Is,
|
|
4162
|
+
actions: Ds,
|
|
4163
|
+
ctaButton: _s,
|
|
4164
4164
|
themeToggle: As,
|
|
4165
|
-
userInfo:
|
|
4166
|
-
userName:
|
|
4167
|
-
loginLink:
|
|
4168
|
-
loginText:
|
|
4165
|
+
userInfo: Ms,
|
|
4166
|
+
userName: js,
|
|
4167
|
+
loginLink: Fs,
|
|
4168
|
+
loginText: Ls,
|
|
4169
4169
|
underline: Es,
|
|
4170
|
-
searchButtonWrapper:
|
|
4170
|
+
searchButtonWrapper: Ns,
|
|
4171
4171
|
buttonText: Bs,
|
|
4172
|
-
menuButton:
|
|
4173
|
-
menuOverlay:
|
|
4172
|
+
menuButton: Ps,
|
|
4173
|
+
menuOverlay: zs,
|
|
4174
4174
|
searchContent: Gs,
|
|
4175
4175
|
menuContent: Rs,
|
|
4176
|
-
menuLeftColumn:
|
|
4177
|
-
menuRightColumn:
|
|
4178
|
-
slotContent:
|
|
4176
|
+
menuLeftColumn: Ws,
|
|
4177
|
+
menuRightColumn: Us,
|
|
4178
|
+
slotContent: $s,
|
|
4179
4179
|
navList: Hs,
|
|
4180
4180
|
menuUtilities: Os,
|
|
4181
|
-
menuBrand:
|
|
4182
|
-
suggestionsSection:
|
|
4183
|
-
suggestionsTitle:
|
|
4181
|
+
menuBrand: Vs,
|
|
4182
|
+
suggestionsSection: Ks,
|
|
4183
|
+
suggestionsTitle: Ys,
|
|
4184
4184
|
searchResults: qs,
|
|
4185
|
-
resultList:
|
|
4185
|
+
resultList: Xs,
|
|
4186
4186
|
resultItem: Js,
|
|
4187
4187
|
resultLink: Zs,
|
|
4188
4188
|
suggestionIcon: Qs,
|
|
4189
|
-
suggestionText:
|
|
4190
|
-
highlightedText:
|
|
4191
|
-
remainingText:
|
|
4192
|
-
viewAllLink:
|
|
4193
|
-
noResults:
|
|
4194
|
-
},
|
|
4189
|
+
suggestionText: ei,
|
|
4190
|
+
highlightedText: ti,
|
|
4191
|
+
remainingText: ni,
|
|
4192
|
+
viewAllLink: oi,
|
|
4193
|
+
noResults: ri
|
|
4194
|
+
}, si = [
|
|
4195
4195
|
// Pages
|
|
4196
4196
|
{ id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
|
|
4197
4197
|
{ id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
|
|
@@ -4254,37 +4254,38 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4254
4254
|
{ id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
|
|
4255
4255
|
{ id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
|
|
4256
4256
|
{ id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
|
|
4257
|
-
],
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4257
|
+
], ha = ({
|
|
4258
|
+
"data-color": t = "primary",
|
|
4259
|
+
activePage: e,
|
|
4260
|
+
setPage: n,
|
|
4261
|
+
children: r,
|
|
4262
|
+
showUser: a = !0,
|
|
4262
4263
|
showSearch: i = !0,
|
|
4263
|
-
showLogin:
|
|
4264
|
-
showCta:
|
|
4264
|
+
showLogin: o = !0,
|
|
4265
|
+
showCta: d = !1,
|
|
4265
4266
|
ctaLabel: l,
|
|
4266
|
-
ctaIcon:
|
|
4267
|
-
onCtaClick:
|
|
4268
|
-
showThemeToggle:
|
|
4269
|
-
secondaryLogo:
|
|
4270
|
-
secondaryLogoSrc:
|
|
4271
|
-
secondaryLogoSrcDark:
|
|
4272
|
-
secondaryLogoAlt:
|
|
4273
|
-
navItems:
|
|
4274
|
-
showNavItems:
|
|
4275
|
-
showMenuButton:
|
|
4276
|
-
showHeaderExtension:
|
|
4277
|
-
showModeToggle:
|
|
4278
|
-
showLanguageSwitch:
|
|
4267
|
+
ctaIcon: c = /* @__PURE__ */ s(Qn, { "aria-hidden": !0 }),
|
|
4268
|
+
onCtaClick: v,
|
|
4269
|
+
showThemeToggle: u = !1,
|
|
4270
|
+
secondaryLogo: f = !1,
|
|
4271
|
+
secondaryLogoSrc: g,
|
|
4272
|
+
secondaryLogoSrcDark: h,
|
|
4273
|
+
secondaryLogoAlt: k = "Secondary Logo",
|
|
4274
|
+
navItems: y,
|
|
4275
|
+
showNavItems: p = !0,
|
|
4276
|
+
showMenuButton: m = !0,
|
|
4277
|
+
showHeaderExtension: T = !1,
|
|
4278
|
+
showModeToggle: A = !1,
|
|
4279
|
+
showLanguageSwitch: M = !1
|
|
4279
4280
|
}) => {
|
|
4280
|
-
const [
|
|
4281
|
-
|
|
4282
|
-
const
|
|
4283
|
-
if (typeof document > "u" || document.getElementById(
|
|
4284
|
-
const
|
|
4285
|
-
|
|
4281
|
+
const [C, D] = ne(!1), [_, F] = ne(!1), [E, N] = ne(""), [z, G] = ne("light"), { language: R, setLanguage: W, t: B } = Et(), [O, te] = ne(!1);
|
|
4282
|
+
Z(() => {
|
|
4283
|
+
const b = "rk-header-inline-styles";
|
|
4284
|
+
if (typeof document > "u" || document.getElementById(b)) return;
|
|
4285
|
+
const I = ii(S), j = document.createElement("style");
|
|
4286
|
+
j.id = b, j.textContent = I, document.head.appendChild(j);
|
|
4286
4287
|
}, []);
|
|
4287
|
-
const
|
|
4288
|
+
const Q = () => /* @__PURE__ */ w(
|
|
4288
4289
|
"svg",
|
|
4289
4290
|
{
|
|
4290
4291
|
width: "170",
|
|
@@ -4294,368 +4295,368 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4294
4295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4295
4296
|
"aria-hidden": !0,
|
|
4296
4297
|
focusable: "false",
|
|
4297
|
-
className:
|
|
4298
|
+
className: S.redCrossLogo,
|
|
4298
4299
|
children: [
|
|
4299
|
-
/* @__PURE__ */
|
|
4300
|
-
/* @__PURE__ */
|
|
4301
|
-
/* @__PURE__ */
|
|
4302
|
-
/* @__PURE__ */
|
|
4303
|
-
/* @__PURE__ */
|
|
4304
|
-
/* @__PURE__ */
|
|
4305
|
-
/* @__PURE__ */
|
|
4306
|
-
/* @__PURE__ */
|
|
4307
|
-
/* @__PURE__ */
|
|
4308
|
-
/* @__PURE__ */
|
|
4300
|
+
/* @__PURE__ */ s("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" }),
|
|
4301
|
+
/* @__PURE__ */ s("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" }),
|
|
4302
|
+
/* @__PURE__ */ s("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" }),
|
|
4303
|
+
/* @__PURE__ */ s("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" }),
|
|
4304
|
+
/* @__PURE__ */ s("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" }),
|
|
4305
|
+
/* @__PURE__ */ s("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" }),
|
|
4306
|
+
/* @__PURE__ */ s("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" }),
|
|
4307
|
+
/* @__PURE__ */ s("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" }),
|
|
4308
|
+
/* @__PURE__ */ s("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
4309
|
+
/* @__PURE__ */ s("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
4309
4310
|
]
|
|
4310
4311
|
}
|
|
4311
4312
|
);
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
}, [
|
|
4315
|
-
if (!(typeof document > "u") &&
|
|
4316
|
-
const
|
|
4313
|
+
Z(() => {
|
|
4314
|
+
D(!1), F(!1), N("");
|
|
4315
|
+
}, [e]), Z(() => {
|
|
4316
|
+
if (!(typeof document > "u") && C && O) {
|
|
4317
|
+
const b = document.body.style.overflow;
|
|
4317
4318
|
return document.body.style.overflow = "hidden", () => {
|
|
4318
|
-
document.body.style.overflow =
|
|
4319
|
+
document.body.style.overflow = b;
|
|
4319
4320
|
};
|
|
4320
4321
|
}
|
|
4321
|
-
}, [
|
|
4322
|
+
}, [C, O]), Z(() => {
|
|
4322
4323
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4323
|
-
const
|
|
4324
|
-
return
|
|
4325
|
-
|
|
4324
|
+
const b = window.matchMedia("(max-width: 850px)"), I = (j) => te("matches" in j ? j.matches : b.matches);
|
|
4325
|
+
return I(b), b.addEventListener ? b.addEventListener("change", I) : b.addListener(I), () => {
|
|
4326
|
+
b.removeEventListener ? b.removeEventListener("change", I) : b.removeListener(I);
|
|
4326
4327
|
};
|
|
4327
|
-
}, []),
|
|
4328
|
+
}, []), Z(() => {
|
|
4328
4329
|
if (typeof document > "u") return;
|
|
4329
|
-
const
|
|
4330
|
-
if (!
|
|
4331
|
-
const
|
|
4332
|
-
const
|
|
4333
|
-
document.documentElement.style.setProperty("--header-height-mobile", `${
|
|
4330
|
+
const b = document.querySelector(`.${S.header}`);
|
|
4331
|
+
if (!b) return;
|
|
4332
|
+
const I = () => {
|
|
4333
|
+
const K = b.offsetHeight;
|
|
4334
|
+
document.documentElement.style.setProperty("--header-height-mobile", `${K}px`);
|
|
4334
4335
|
};
|
|
4335
|
-
|
|
4336
|
-
const
|
|
4337
|
-
|
|
4336
|
+
I(), window.addEventListener("resize", I);
|
|
4337
|
+
const j = new ResizeObserver(() => {
|
|
4338
|
+
I();
|
|
4338
4339
|
});
|
|
4339
|
-
return
|
|
4340
|
-
window.removeEventListener("resize",
|
|
4340
|
+
return j.observe(b), () => {
|
|
4341
|
+
window.removeEventListener("resize", I), j.disconnect();
|
|
4341
4342
|
};
|
|
4342
|
-
}, [O]),
|
|
4343
|
+
}, [O]), Z(() => {
|
|
4343
4344
|
if (typeof document > "u") return;
|
|
4344
|
-
const
|
|
4345
|
-
if (!
|
|
4346
|
-
const
|
|
4347
|
-
const
|
|
4348
|
-
document.documentElement.style.setProperty("--rk-logo-width", `${
|
|
4345
|
+
const b = document.querySelector(`.${S.logoWrapper}`);
|
|
4346
|
+
if (!b) return;
|
|
4347
|
+
const I = () => {
|
|
4348
|
+
const j = b.offsetWidth;
|
|
4349
|
+
document.documentElement.style.setProperty("--rk-logo-width", `${j}px`);
|
|
4349
4350
|
};
|
|
4350
|
-
return
|
|
4351
|
-
}, [O]),
|
|
4352
|
-
if (typeof document > "u" || !
|
|
4351
|
+
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
4352
|
+
}, [O]), Z(() => {
|
|
4353
|
+
if (typeof document > "u" || !_) {
|
|
4353
4354
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4354
4355
|
return;
|
|
4355
4356
|
}
|
|
4356
|
-
const
|
|
4357
|
-
if (!
|
|
4358
|
-
const
|
|
4359
|
-
const
|
|
4360
|
-
document.documentElement.style.setProperty("--rk-search-overlay-height", `${
|
|
4357
|
+
const b = document.querySelector(`.${S.searchOverlay}`);
|
|
4358
|
+
if (!b) return;
|
|
4359
|
+
const I = () => {
|
|
4360
|
+
const K = b.offsetHeight;
|
|
4361
|
+
document.documentElement.style.setProperty("--rk-search-overlay-height", `${K}px`);
|
|
4361
4362
|
};
|
|
4362
|
-
requestAnimationFrame(
|
|
4363
|
-
const
|
|
4364
|
-
return
|
|
4365
|
-
window.removeEventListener("resize",
|
|
4363
|
+
requestAnimationFrame(I), window.addEventListener("resize", I);
|
|
4364
|
+
const j = new ResizeObserver(I);
|
|
4365
|
+
return j.observe(b), () => {
|
|
4366
|
+
window.removeEventListener("resize", I), j.disconnect();
|
|
4366
4367
|
};
|
|
4367
|
-
}, [
|
|
4368
|
-
const
|
|
4369
|
-
const
|
|
4370
|
-
|
|
4371
|
-
},
|
|
4372
|
-
|
|
4373
|
-
},
|
|
4374
|
-
|
|
4375
|
-
const
|
|
4376
|
-
if (
|
|
4377
|
-
const
|
|
4378
|
-
document.documentElement.style.setProperty("--header-height-mobile", `${
|
|
4368
|
+
}, [_]);
|
|
4369
|
+
const se = () => {
|
|
4370
|
+
const b = z === "light" ? "dark" : "light";
|
|
4371
|
+
G(b), document.documentElement.setAttribute("data-color-scheme", b);
|
|
4372
|
+
}, ee = (b) => {
|
|
4373
|
+
n && (b.preventDefault(), n("home")), D(!1), F(!1);
|
|
4374
|
+
}, ie = () => {
|
|
4375
|
+
D(!C), _ && F(!1), !C && typeof document < "u" && requestAnimationFrame(() => {
|
|
4376
|
+
const b = document.querySelector(`.${S.header}`);
|
|
4377
|
+
if (b) {
|
|
4378
|
+
const I = b.offsetHeight;
|
|
4379
|
+
document.documentElement.style.setProperty("--header-height-mobile", `${I}px`);
|
|
4379
4380
|
}
|
|
4380
4381
|
});
|
|
4381
|
-
},
|
|
4382
|
-
|
|
4383
|
-
},
|
|
4384
|
-
if (!
|
|
4385
|
-
const
|
|
4386
|
-
return
|
|
4387
|
-
(
|
|
4382
|
+
}, ae = () => {
|
|
4383
|
+
F(!_), C && D(!1);
|
|
4384
|
+
}, V = Se(() => {
|
|
4385
|
+
if (!E.trim()) return [];
|
|
4386
|
+
const b = E.toLowerCase();
|
|
4387
|
+
return si.filter(
|
|
4388
|
+
(I) => I.title.toLowerCase().startsWith(b)
|
|
4388
4389
|
);
|
|
4389
|
-
}, [
|
|
4390
|
-
|
|
4390
|
+
}, [E]), ue = (b) => {
|
|
4391
|
+
n && n(b), F(!1), N("");
|
|
4391
4392
|
};
|
|
4392
|
-
return /* @__PURE__ */
|
|
4393
|
-
|
|
4394
|
-
|
|
4393
|
+
return /* @__PURE__ */ w("header", { className: S.header, "data-open": C ? "true" : "false", "data-color": t, children: [
|
|
4394
|
+
T && /* @__PURE__ */ s("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ w("div", { className: S.extensionContentWrapper, children: [
|
|
4395
|
+
A && /* @__PURE__ */ s("div", { className: S.extensionContent, children: /* @__PURE__ */ s(
|
|
4395
4396
|
Oe,
|
|
4396
4397
|
{
|
|
4397
4398
|
"data-size": "sm",
|
|
4398
|
-
checked:
|
|
4399
|
-
onChange:
|
|
4400
|
-
label:
|
|
4399
|
+
checked: z === "dark",
|
|
4400
|
+
onChange: se,
|
|
4401
|
+
label: B("header.darkMode"),
|
|
4401
4402
|
color: "neutral",
|
|
4402
4403
|
"data-color-scheme": "light"
|
|
4403
4404
|
}
|
|
4404
4405
|
) }),
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
/* @__PURE__ */
|
|
4408
|
-
/* @__PURE__ */
|
|
4409
|
-
/* @__PURE__ */
|
|
4410
|
-
|
|
4406
|
+
A && M && /* @__PURE__ */ s("div", { className: S.extensionDivider }),
|
|
4407
|
+
M && /* @__PURE__ */ w("div", { className: S.languageSwitch, children: [
|
|
4408
|
+
/* @__PURE__ */ s("span", { className: S.languageLabel, children: B("header.language") }),
|
|
4409
|
+
/* @__PURE__ */ w(J.TriggerContext, { children: [
|
|
4410
|
+
/* @__PURE__ */ w(
|
|
4411
|
+
J.Trigger,
|
|
4411
4412
|
{
|
|
4412
|
-
className:
|
|
4413
|
-
"aria-label":
|
|
4413
|
+
className: S.languageLink,
|
|
4414
|
+
"aria-label": B("header.selectLanguage"),
|
|
4414
4415
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4415
4416
|
children: [
|
|
4416
|
-
|
|
4417
|
+
R,
|
|
4417
4418
|
" ",
|
|
4418
|
-
/* @__PURE__ */
|
|
4419
|
+
/* @__PURE__ */ s(pt, { "aria-hidden": !0 })
|
|
4419
4420
|
]
|
|
4420
4421
|
}
|
|
4421
4422
|
),
|
|
4422
|
-
/* @__PURE__ */
|
|
4423
|
-
|
|
4423
|
+
/* @__PURE__ */ s(
|
|
4424
|
+
J,
|
|
4424
4425
|
{
|
|
4425
|
-
"data-color-scheme":
|
|
4426
|
+
"data-color-scheme": z,
|
|
4426
4427
|
placement: "bottom-end",
|
|
4427
|
-
children: /* @__PURE__ */
|
|
4428
|
-
/* @__PURE__ */
|
|
4429
|
-
/* @__PURE__ */
|
|
4428
|
+
children: /* @__PURE__ */ w(J.List, { children: [
|
|
4429
|
+
/* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("NO"), children: "Norsk (NO)" }) }),
|
|
4430
|
+
/* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("EN"), children: "English (EN)" }) })
|
|
4430
4431
|
] })
|
|
4431
4432
|
}
|
|
4432
4433
|
)
|
|
4433
4434
|
] })
|
|
4434
4435
|
] })
|
|
4435
4436
|
] }) }),
|
|
4436
|
-
/* @__PURE__ */
|
|
4437
|
-
/* @__PURE__ */
|
|
4438
|
-
/* @__PURE__ */
|
|
4439
|
-
|
|
4437
|
+
/* @__PURE__ */ w("div", { className: S.headerInner, children: [
|
|
4438
|
+
/* @__PURE__ */ w("div", { className: S.logoWrapper, children: [
|
|
4439
|
+
/* @__PURE__ */ s(
|
|
4440
|
+
ce,
|
|
4440
4441
|
{
|
|
4441
4442
|
href: "/",
|
|
4442
|
-
className: `${
|
|
4443
|
-
"aria-label":
|
|
4444
|
-
onClick:
|
|
4445
|
-
children: /* @__PURE__ */
|
|
4443
|
+
className: `${S.logo} ${S.primaryLogo}`,
|
|
4444
|
+
"aria-label": B("header.homeAriaLabel"),
|
|
4445
|
+
onClick: ee,
|
|
4446
|
+
children: /* @__PURE__ */ s(Q, {})
|
|
4446
4447
|
}
|
|
4447
4448
|
),
|
|
4448
|
-
/* @__PURE__ */
|
|
4449
|
+
/* @__PURE__ */ s("div", { className: S.secondaryLogoWrapper, children: f && g ? /* @__PURE__ */ s(
|
|
4449
4450
|
"img",
|
|
4450
4451
|
{
|
|
4451
|
-
src:
|
|
4452
|
-
alt:
|
|
4453
|
-
className:
|
|
4452
|
+
src: z === "dark" && h ? h : g,
|
|
4453
|
+
alt: k,
|
|
4454
|
+
className: S.secondaryLogo
|
|
4454
4455
|
}
|
|
4455
|
-
) :
|
|
4456
|
+
) : f ? /* @__PURE__ */ s("div", { className: S.slotComponent, children: /* @__PURE__ */ s("div", { className: S.slotContainer, children: /* @__PURE__ */ s("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
|
|
4456
4457
|
] }),
|
|
4457
|
-
|
|
4458
|
-
|
|
4458
|
+
p && y && y.length > 0 && !O && /* @__PURE__ */ s("nav", { className: S.navItems, children: y.map((b, I) => /* @__PURE__ */ s(
|
|
4459
|
+
ce,
|
|
4459
4460
|
{
|
|
4460
|
-
href:
|
|
4461
|
-
className:
|
|
4462
|
-
onClick: (
|
|
4463
|
-
|
|
4461
|
+
href: b.href,
|
|
4462
|
+
className: S.navLink,
|
|
4463
|
+
onClick: (j) => {
|
|
4464
|
+
n && (j.preventDefault(), n(b.href));
|
|
4464
4465
|
},
|
|
4465
|
-
children:
|
|
4466
|
+
children: b.label
|
|
4466
4467
|
},
|
|
4467
|
-
|
|
4468
|
+
I
|
|
4468
4469
|
)) }),
|
|
4469
|
-
/* @__PURE__ */
|
|
4470
|
-
|
|
4471
|
-
|
|
4470
|
+
/* @__PURE__ */ w("div", { className: S.actions, children: [
|
|
4471
|
+
d && /* @__PURE__ */ w(
|
|
4472
|
+
xe,
|
|
4472
4473
|
{
|
|
4473
4474
|
variant: "primary",
|
|
4474
4475
|
"data-color": "main",
|
|
4475
4476
|
"data-size": "md",
|
|
4476
|
-
className:
|
|
4477
|
-
onClick:
|
|
4477
|
+
className: S.ctaButton,
|
|
4478
|
+
onClick: v,
|
|
4478
4479
|
children: [
|
|
4479
|
-
|
|
4480
|
-
/* @__PURE__ */
|
|
4480
|
+
c,
|
|
4481
|
+
/* @__PURE__ */ s("span", { className: S.buttonText, children: l || B("header.supportUs") })
|
|
4481
4482
|
]
|
|
4482
4483
|
}
|
|
4483
4484
|
),
|
|
4484
|
-
!
|
|
4485
|
+
!T && u && /* @__PURE__ */ s("div", { className: S.themeToggle, children: /* @__PURE__ */ s(
|
|
4485
4486
|
Oe,
|
|
4486
4487
|
{
|
|
4487
|
-
checked:
|
|
4488
|
-
onChange:
|
|
4489
|
-
"aria-label":
|
|
4488
|
+
checked: z === "dark",
|
|
4489
|
+
onChange: se,
|
|
4490
|
+
"aria-label": B("header.toggleTheme")
|
|
4490
4491
|
}
|
|
4491
4492
|
) }),
|
|
4492
|
-
|
|
4493
|
-
/* @__PURE__ */
|
|
4494
|
-
/* @__PURE__ */
|
|
4493
|
+
a && /* @__PURE__ */ w("div", { className: S.userInfo, children: [
|
|
4494
|
+
/* @__PURE__ */ s(Je, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
|
|
4495
|
+
/* @__PURE__ */ s(Dt, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4495
4496
|
] }),
|
|
4496
|
-
|
|
4497
|
-
/* @__PURE__ */
|
|
4498
|
-
/* @__PURE__ */
|
|
4497
|
+
o && /* @__PURE__ */ w("a", { href: "#", className: S.loginLink, children: [
|
|
4498
|
+
/* @__PURE__ */ s("span", { className: S.loginText, children: B("header.login") }),
|
|
4499
|
+
/* @__PURE__ */ s("div", { className: S.underline })
|
|
4499
4500
|
] }),
|
|
4500
|
-
i && /* @__PURE__ */
|
|
4501
|
-
|
|
4501
|
+
i && /* @__PURE__ */ s("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ w(
|
|
4502
|
+
xe,
|
|
4502
4503
|
{
|
|
4503
4504
|
variant: "secondary",
|
|
4504
4505
|
"data-color": "main",
|
|
4505
4506
|
"data-size": "md",
|
|
4506
|
-
onClick:
|
|
4507
|
-
"aria-expanded":
|
|
4508
|
-
"aria-label":
|
|
4507
|
+
onClick: ae,
|
|
4508
|
+
"aria-expanded": _,
|
|
4509
|
+
"aria-label": B(_ ? "header.closeSearch" : "header.openSearch"),
|
|
4509
4510
|
children: [
|
|
4510
|
-
|
|
4511
|
-
/* @__PURE__ */
|
|
4511
|
+
_ ? /* @__PURE__ */ s(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ s(ht, { "aria-hidden": !0 }),
|
|
4512
|
+
/* @__PURE__ */ s("span", { className: S.buttonText, children: B(_ ? "header.close" : "header.search") })
|
|
4512
4513
|
]
|
|
4513
4514
|
}
|
|
4514
4515
|
) }),
|
|
4515
|
-
(
|
|
4516
|
-
|
|
4516
|
+
(m || O) && /* @__PURE__ */ w(
|
|
4517
|
+
xe,
|
|
4517
4518
|
{
|
|
4518
4519
|
variant: "primary",
|
|
4519
4520
|
"data-color": "main",
|
|
4520
4521
|
"data-size": "md",
|
|
4521
|
-
onClick:
|
|
4522
|
-
"aria-expanded":
|
|
4523
|
-
"aria-label":
|
|
4524
|
-
className:
|
|
4522
|
+
onClick: ie,
|
|
4523
|
+
"aria-expanded": C,
|
|
4524
|
+
"aria-label": B(C ? "header.closeMenu" : "header.openMenu"),
|
|
4525
|
+
className: S.menuButton,
|
|
4525
4526
|
children: [
|
|
4526
|
-
|
|
4527
|
-
/* @__PURE__ */
|
|
4527
|
+
C ? /* @__PURE__ */ s(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ s(Zn, { "aria-hidden": !0 }),
|
|
4528
|
+
/* @__PURE__ */ s("span", { className: S.buttonText, children: B(C ? "header.close" : "header.menu") })
|
|
4528
4529
|
]
|
|
4529
4530
|
}
|
|
4530
4531
|
)
|
|
4531
4532
|
] })
|
|
4532
4533
|
] }),
|
|
4533
|
-
|
|
4534
|
-
/* @__PURE__ */
|
|
4535
|
-
/* @__PURE__ */
|
|
4536
|
-
O && (
|
|
4537
|
-
|
|
4538
|
-
/* @__PURE__ */
|
|
4539
|
-
/* @__PURE__ */
|
|
4540
|
-
/* @__PURE__ */
|
|
4541
|
-
|
|
4534
|
+
C && /* @__PURE__ */ s("div", { className: S.menuOverlay, children: /* @__PURE__ */ w("div", { className: S.menuContent, children: [
|
|
4535
|
+
/* @__PURE__ */ s("div", { className: S.menuLeftColumn }),
|
|
4536
|
+
/* @__PURE__ */ w("div", { className: S.menuRightColumn, children: [
|
|
4537
|
+
O && (M || A) && /* @__PURE__ */ w("div", { className: S.menuUtilities, children: [
|
|
4538
|
+
M && /* @__PURE__ */ w("div", { className: S.languageSwitch, children: [
|
|
4539
|
+
/* @__PURE__ */ s("span", { className: S.languageLabel, children: B("header.language") }),
|
|
4540
|
+
/* @__PURE__ */ w(J.TriggerContext, { children: [
|
|
4541
|
+
/* @__PURE__ */ w(
|
|
4542
|
+
J.Trigger,
|
|
4542
4543
|
{
|
|
4543
|
-
className:
|
|
4544
|
-
"aria-label":
|
|
4544
|
+
className: S.languageLink,
|
|
4545
|
+
"aria-label": B("header.selectLanguage"),
|
|
4545
4546
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4546
4547
|
children: [
|
|
4547
|
-
|
|
4548
|
+
R,
|
|
4548
4549
|
" ",
|
|
4549
|
-
/* @__PURE__ */
|
|
4550
|
+
/* @__PURE__ */ s(pt, { "aria-hidden": !0 })
|
|
4550
4551
|
]
|
|
4551
4552
|
}
|
|
4552
4553
|
),
|
|
4553
|
-
/* @__PURE__ */
|
|
4554
|
-
|
|
4554
|
+
/* @__PURE__ */ s(
|
|
4555
|
+
J,
|
|
4555
4556
|
{
|
|
4556
|
-
"data-color-scheme":
|
|
4557
|
+
"data-color-scheme": z,
|
|
4557
4558
|
placement: "bottom-start",
|
|
4558
|
-
children: /* @__PURE__ */
|
|
4559
|
-
/* @__PURE__ */
|
|
4560
|
-
/* @__PURE__ */
|
|
4559
|
+
children: /* @__PURE__ */ w(J.List, { children: [
|
|
4560
|
+
/* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("NO"), children: "Norsk (NO)" }) }),
|
|
4561
|
+
/* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("EN"), children: "English (EN)" }) })
|
|
4561
4562
|
] })
|
|
4562
4563
|
}
|
|
4563
4564
|
)
|
|
4564
4565
|
] })
|
|
4565
4566
|
] }),
|
|
4566
|
-
|
|
4567
|
+
A && /* @__PURE__ */ s("div", { className: S.extensionContent, children: /* @__PURE__ */ s(
|
|
4567
4568
|
Oe,
|
|
4568
4569
|
{
|
|
4569
4570
|
"data-size": "sm",
|
|
4570
|
-
checked:
|
|
4571
|
-
onChange:
|
|
4572
|
-
label:
|
|
4571
|
+
checked: z === "dark",
|
|
4572
|
+
onChange: se,
|
|
4573
|
+
label: B("header.darkMode"),
|
|
4573
4574
|
color: "neutral",
|
|
4574
4575
|
"data-color-scheme": "light"
|
|
4575
4576
|
}
|
|
4576
4577
|
) })
|
|
4577
4578
|
] }),
|
|
4578
|
-
/* @__PURE__ */
|
|
4579
|
-
|
|
4580
|
-
O &&
|
|
4581
|
-
|
|
4579
|
+
/* @__PURE__ */ w("div", { className: S.slotContent, children: [
|
|
4580
|
+
r,
|
|
4581
|
+
O && p && y && y.length > 0 && /* @__PURE__ */ s("nav", { className: S.navList, children: y.map((b, I) => /* @__PURE__ */ s(
|
|
4582
|
+
ce,
|
|
4582
4583
|
{
|
|
4583
|
-
href:
|
|
4584
|
-
className:
|
|
4585
|
-
onClick: (
|
|
4586
|
-
|
|
4584
|
+
href: b.href,
|
|
4585
|
+
className: S.navLink,
|
|
4586
|
+
onClick: (j) => {
|
|
4587
|
+
n && (j.preventDefault(), n(b.href));
|
|
4587
4588
|
},
|
|
4588
|
-
children:
|
|
4589
|
+
children: b.label
|
|
4589
4590
|
},
|
|
4590
|
-
|
|
4591
|
+
I
|
|
4591
4592
|
)) })
|
|
4592
4593
|
] }),
|
|
4593
|
-
O && /* @__PURE__ */
|
|
4594
|
+
O && /* @__PURE__ */ s("div", { className: S.menuBrand, children: /* @__PURE__ */ s(Q, {}) })
|
|
4594
4595
|
] })
|
|
4595
4596
|
] }) }),
|
|
4596
|
-
|
|
4597
|
-
/* @__PURE__ */
|
|
4598
|
-
/* @__PURE__ */
|
|
4599
|
-
|
|
4597
|
+
_ && /* @__PURE__ */ s("div", { className: S.searchOverlay, children: /* @__PURE__ */ w("div", { className: S.searchContent, children: [
|
|
4598
|
+
/* @__PURE__ */ w(Ne, { children: [
|
|
4599
|
+
/* @__PURE__ */ s(
|
|
4600
|
+
Ne.Input,
|
|
4600
4601
|
{
|
|
4601
|
-
"aria-label":
|
|
4602
|
-
placeholder:
|
|
4603
|
-
value:
|
|
4604
|
-
onChange: (
|
|
4602
|
+
"aria-label": B("header.search"),
|
|
4603
|
+
placeholder: B("header.searchPlaceholder"),
|
|
4604
|
+
value: E,
|
|
4605
|
+
onChange: (b) => N(b.target.value)
|
|
4605
4606
|
}
|
|
4606
4607
|
),
|
|
4607
|
-
/* @__PURE__ */
|
|
4608
|
-
/* @__PURE__ */
|
|
4608
|
+
/* @__PURE__ */ s(Ne.Button, { "aria-label": B("header.search") }),
|
|
4609
|
+
/* @__PURE__ */ s(Ne.ClearButton, { onClick: () => N(""), "aria-label": B("header.clearSearch") })
|
|
4609
4610
|
] }),
|
|
4610
|
-
|
|
4611
|
-
/* @__PURE__ */
|
|
4612
|
-
/* @__PURE__ */
|
|
4611
|
+
E && /* @__PURE__ */ s("div", { className: S.searchResults, children: V.length > 0 ? /* @__PURE__ */ w("div", { className: S.suggestionsSection, children: [
|
|
4612
|
+
/* @__PURE__ */ s("h3", { className: S.suggestionsTitle, children: B("header.suggestions") }),
|
|
4613
|
+
/* @__PURE__ */ s("ul", { className: S.resultList, children: V.slice(0, 5).map((b) => /* @__PURE__ */ s("li", { className: S.resultItem, children: /* @__PURE__ */ w(
|
|
4613
4614
|
"button",
|
|
4614
4615
|
{
|
|
4615
|
-
className:
|
|
4616
|
-
onClick: () =>
|
|
4616
|
+
className: S.resultLink,
|
|
4617
|
+
onClick: () => ue(b.path),
|
|
4617
4618
|
children: [
|
|
4618
|
-
/* @__PURE__ */
|
|
4619
|
-
/* @__PURE__ */
|
|
4620
|
-
const
|
|
4621
|
-
if (
|
|
4622
|
-
const
|
|
4623
|
-
return /* @__PURE__ */
|
|
4624
|
-
/* @__PURE__ */
|
|
4625
|
-
/* @__PURE__ */
|
|
4626
|
-
/* @__PURE__ */
|
|
4619
|
+
/* @__PURE__ */ s("span", { className: S.suggestionIcon, children: /* @__PURE__ */ s(ht, { "aria-hidden": !0 }) }),
|
|
4620
|
+
/* @__PURE__ */ s("span", { className: S.suggestionText, children: (() => {
|
|
4621
|
+
const I = b.title.toLowerCase().indexOf(E.toLowerCase());
|
|
4622
|
+
if (I === -1) return /* @__PURE__ */ s("span", { className: S.remainingText, children: b.title });
|
|
4623
|
+
const j = b.title.slice(0, I), K = b.title.slice(I, I + E.length), q = b.title.slice(I + E.length);
|
|
4624
|
+
return /* @__PURE__ */ w(Ot, { children: [
|
|
4625
|
+
/* @__PURE__ */ s("span", { className: S.remainingText, children: j }),
|
|
4626
|
+
/* @__PURE__ */ s("span", { className: S.highlightedText, children: K }),
|
|
4627
|
+
/* @__PURE__ */ s("span", { className: S.remainingText, children: q })
|
|
4627
4628
|
] });
|
|
4628
4629
|
})() })
|
|
4629
4630
|
]
|
|
4630
4631
|
}
|
|
4631
|
-
) },
|
|
4632
|
-
|
|
4633
|
-
|
|
4632
|
+
) }, b.id)) }),
|
|
4633
|
+
V.length > 5 && /* @__PURE__ */ w(
|
|
4634
|
+
ce,
|
|
4634
4635
|
{
|
|
4635
4636
|
href: "#",
|
|
4636
4637
|
"data-color": "neutral",
|
|
4637
|
-
className:
|
|
4638
|
-
onClick: (
|
|
4639
|
-
|
|
4638
|
+
className: S.viewAllLink,
|
|
4639
|
+
onClick: (b) => {
|
|
4640
|
+
b.preventDefault(), n && n(`search/${E}`), F(!1), N("");
|
|
4640
4641
|
},
|
|
4641
4642
|
children: [
|
|
4642
|
-
|
|
4643
|
+
B("header.viewAll"),
|
|
4643
4644
|
" (",
|
|
4644
|
-
|
|
4645
|
+
V.length,
|
|
4645
4646
|
")"
|
|
4646
4647
|
]
|
|
4647
4648
|
}
|
|
4648
4649
|
)
|
|
4649
|
-
] }) : /* @__PURE__ */
|
|
4650
|
-
|
|
4650
|
+
] }) : /* @__PURE__ */ s("div", { className: S.noResults, children: /* @__PURE__ */ w(Je, { children: [
|
|
4651
|
+
B("header.noResults"),
|
|
4651
4652
|
' "',
|
|
4652
|
-
|
|
4653
|
+
E,
|
|
4653
4654
|
'"'
|
|
4654
4655
|
] }) }) })
|
|
4655
4656
|
] }) })
|
|
4656
4657
|
] });
|
|
4657
4658
|
};
|
|
4658
|
-
function
|
|
4659
|
+
function ii(t) {
|
|
4659
4660
|
const e = t;
|
|
4660
4661
|
return `
|
|
4661
4662
|
.${e.header} {
|
|
@@ -4678,6 +4679,14 @@ function si(t) {
|
|
|
4678
4679
|
box-sizing: border-box;
|
|
4679
4680
|
color: white;
|
|
4680
4681
|
}
|
|
4682
|
+
.${e.header}[data-color="primary"] .${e.headerExtension} {
|
|
4683
|
+
background-color: var(--ds-color-primary-color-red-base-default);
|
|
4684
|
+
color: white;
|
|
4685
|
+
}
|
|
4686
|
+
.${e.header}[data-color="neutral"] .${e.headerExtension} {
|
|
4687
|
+
background-color: var(--ds-color-neutral-base-default);
|
|
4688
|
+
color: var(--ds-color-neutral-text-default);
|
|
4689
|
+
}
|
|
4681
4690
|
.${e.extensionContentWrapper} {
|
|
4682
4691
|
width: 100%;
|
|
4683
4692
|
max-width: 1364px;
|
|
@@ -4690,6 +4699,10 @@ function si(t) {
|
|
|
4690
4699
|
.${e.languageSwitch} { display: flex; align-items: center; gap: var(--ds-size-2); }
|
|
4691
4700
|
.${e.languageLabel} { font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); color: #ECECEC; }
|
|
4692
4701
|
.${e.languageLink} { color: white; text-decoration: none; display: flex; align-items: center; gap: 4px; }
|
|
4702
|
+
.${e.header}[data-color="primary"] .${e.languageLabel} { color: #ECECEC; }
|
|
4703
|
+
.${e.header}[data-color="neutral"] .${e.languageLabel} { color: var(--ds-color-neutral-text-default); }
|
|
4704
|
+
.${e.header}[data-color="primary"] .${e.languageLink} { color: white !important; }
|
|
4705
|
+
.${e.header}[data-color="neutral"] .${e.languageLink} { color: var(--ds-color-neutral-text-default) !important; }
|
|
4693
4706
|
.${e.languageSwitch} :global([popover]) { margin-top: 0 !important; background-color: var(--ds-color-neutral-background-default) !important; position: fixed !important; overflow: visible; z-index: 20000 !important; }
|
|
4694
4707
|
.${e.headerInner} {
|
|
4695
4708
|
display: flex; align-items: center; justify-content: space-between;
|
|
@@ -4785,60 +4798,191 @@ function si(t) {
|
|
|
4785
4798
|
}
|
|
4786
4799
|
`;
|
|
4787
4800
|
}
|
|
4801
|
+
const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf5vh_26", ci = "_shortcutsSection_cf5vh_35", ui = "_shortcutsColumn_cf5vh_43", mi = "_shortcutsTitle_cf5vh_51", pi = "_shortcutsList_cf5vh_60", gi = "_shortcutLink_cf5vh_69", hi = "_slotComponent_cf5vh_92", fi = "_divider_cf5vh_131", ki = "_contactSection_cf5vh_139", yi = "_contactColumn_cf5vh_146", vi = "_contactTitle_cf5vh_154", bi = "_contactContent_cf5vh_163", Ti = "_legalSection_cf5vh_177", Si = "_copyrightText_cf5vh_184", xi = "_legalLinks_cf5vh_193", Ci = "_legalLink_cf5vh_193", wi = "_whiteSection_cf5vh_223", Ii = "_whiteContainer_cf5vh_228", Di = "_whiteContent_cf5vh_241", _i = "_logo_cf5vh_253", Ai = "_designSystemLogo_cf5vh_260", Mi = "_slotSmall_cf5vh_267", ji = "_slotLarge_cf5vh_278", L = {
|
|
4802
|
+
footer: ai,
|
|
4803
|
+
redSection: li,
|
|
4804
|
+
redContainer: di,
|
|
4805
|
+
shortcutsSection: ci,
|
|
4806
|
+
shortcutsColumn: ui,
|
|
4807
|
+
shortcutsTitle: mi,
|
|
4808
|
+
shortcutsList: pi,
|
|
4809
|
+
shortcutLink: gi,
|
|
4810
|
+
slotComponent: hi,
|
|
4811
|
+
divider: fi,
|
|
4812
|
+
contactSection: ki,
|
|
4813
|
+
contactColumn: yi,
|
|
4814
|
+
contactTitle: vi,
|
|
4815
|
+
contactContent: bi,
|
|
4816
|
+
legalSection: Ti,
|
|
4817
|
+
copyrightText: Si,
|
|
4818
|
+
legalLinks: xi,
|
|
4819
|
+
legalLink: Ci,
|
|
4820
|
+
whiteSection: wi,
|
|
4821
|
+
whiteContainer: Ii,
|
|
4822
|
+
whiteContent: Di,
|
|
4823
|
+
logo: _i,
|
|
4824
|
+
designSystemLogo: Ai,
|
|
4825
|
+
slotSmall: Mi,
|
|
4826
|
+
slotLarge: ji
|
|
4827
|
+
}, fa = ({
|
|
4828
|
+
"data-color": t = "additional",
|
|
4829
|
+
redSectionSlot: e,
|
|
4830
|
+
whiteSectionSlotSmall: n,
|
|
4831
|
+
whiteSectionSlotLarge: r,
|
|
4832
|
+
showDesignSystemLogo: a = !0,
|
|
4833
|
+
designSystemLogoSrc: i = "/designsystemlogofinallight.svg",
|
|
4834
|
+
designSystemLogoSrcDark: o = "/designsystemlogofinaldark.svg",
|
|
4835
|
+
designSystemLogoAlt: d = "Designsystem Logo",
|
|
4836
|
+
shortcutsLinksLeft: l,
|
|
4837
|
+
shortcutsLinksRight: c
|
|
4838
|
+
} = {}) => {
|
|
4839
|
+
const v = (/* @__PURE__ */ new Date()).getFullYear(), { t: u } = Et(), [f, g] = Ve.useState("light");
|
|
4840
|
+
Ve.useEffect(() => {
|
|
4841
|
+
if (typeof document > "u") return;
|
|
4842
|
+
const m = document.documentElement, T = m.getAttribute("data-color-scheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
4843
|
+
g(T);
|
|
4844
|
+
const A = window.matchMedia("(prefers-color-scheme: dark)"), M = () => {
|
|
4845
|
+
const D = m.getAttribute("data-color-scheme") || (A.matches ? "dark" : "light");
|
|
4846
|
+
g(D);
|
|
4847
|
+
}, C = new MutationObserver(M);
|
|
4848
|
+
return C.observe(m, { attributes: !0, attributeFilter: ["data-color-scheme"] }), A.addEventListener("change", M), () => {
|
|
4849
|
+
C.disconnect(), A.removeEventListener("change", M);
|
|
4850
|
+
};
|
|
4851
|
+
}, []);
|
|
4852
|
+
const h = f === "dark" && o ? o : i, k = [
|
|
4853
|
+
{ label: u("footer.shortcutsLinks.services"), href: "#" },
|
|
4854
|
+
{ label: u("footer.shortcutsLinks.volunteer"), href: "#" },
|
|
4855
|
+
{ label: u("footer.shortcutsLinks.ourWork"), href: "#" },
|
|
4856
|
+
{ label: u("footer.shortcutsLinks.about"), href: "#" },
|
|
4857
|
+
{ label: u("footer.shortcutsLinks.support"), href: "#" },
|
|
4858
|
+
{ label: u("footer.shortcutsLinks.contact"), href: "#" }
|
|
4859
|
+
], y = l || k, p = c || k;
|
|
4860
|
+
return /* @__PURE__ */ w("footer", { className: L.footer, "data-color": t, children: [
|
|
4861
|
+
/* @__PURE__ */ s("div", { className: L.redSection, children: /* @__PURE__ */ w("div", { className: L.redContainer, children: [
|
|
4862
|
+
/* @__PURE__ */ w("div", { className: L.shortcutsSection, children: [
|
|
4863
|
+
/* @__PURE__ */ w("nav", { className: L.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
|
|
4864
|
+
/* @__PURE__ */ s("h3", { className: L.shortcutsTitle, children: u("footer.shortcuts") }),
|
|
4865
|
+
/* @__PURE__ */ s("ul", { className: L.shortcutsList, children: y.map((m, T) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(ce, { href: m.href, className: L.shortcutLink, children: m.label }) }, T)) })
|
|
4866
|
+
] }),
|
|
4867
|
+
/* @__PURE__ */ w("nav", { className: L.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
|
|
4868
|
+
/* @__PURE__ */ s("h3", { className: L.shortcutsTitle, children: u("footer.shortcuts") }),
|
|
4869
|
+
/* @__PURE__ */ s("ul", { className: L.shortcutsList, children: p.map((m, T) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(ce, { href: m.href, className: L.shortcutLink, children: m.label }) }, T)) })
|
|
4870
|
+
] }),
|
|
4871
|
+
e && /* @__PURE__ */ s("div", { className: L.slotComponent, children: e })
|
|
4872
|
+
] }),
|
|
4873
|
+
/* @__PURE__ */ s("div", { className: L.divider }),
|
|
4874
|
+
/* @__PURE__ */ w("div", { className: L.contactSection, children: [
|
|
4875
|
+
/* @__PURE__ */ w("div", { className: L.contactColumn, children: [
|
|
4876
|
+
/* @__PURE__ */ s("h4", { className: L.contactTitle, children: u("footer.contact.visitingAddress") }),
|
|
4877
|
+
/* @__PURE__ */ w("div", { className: L.contactContent, children: [
|
|
4878
|
+
/* @__PURE__ */ s("p", { children: "Hausmannsgate 7 (Korsegården)" }),
|
|
4879
|
+
/* @__PURE__ */ s("p", { children: "0186 Oslo" })
|
|
4880
|
+
] })
|
|
4881
|
+
] }),
|
|
4882
|
+
/* @__PURE__ */ w("div", { className: L.contactColumn, children: [
|
|
4883
|
+
/* @__PURE__ */ s("h4", { className: L.contactTitle, children: u("footer.contact.organizationNumber") }),
|
|
4884
|
+
/* @__PURE__ */ s("p", { className: L.contactContent, children: "XXX XXX XXX" })
|
|
4885
|
+
] }),
|
|
4886
|
+
/* @__PURE__ */ w("div", { className: L.contactColumn, children: [
|
|
4887
|
+
/* @__PURE__ */ s("h4", { className: L.contactTitle, children: u("footer.contact.email") }),
|
|
4888
|
+
/* @__PURE__ */ s("p", { className: L.contactContent, children: "post@redcross.no" })
|
|
4889
|
+
] })
|
|
4890
|
+
] }),
|
|
4891
|
+
/* @__PURE__ */ s("div", { className: L.divider }),
|
|
4892
|
+
/* @__PURE__ */ w("div", { className: L.legalSection, children: [
|
|
4893
|
+
/* @__PURE__ */ w("p", { className: L.copyrightText, children: [
|
|
4894
|
+
"© ",
|
|
4895
|
+
v,
|
|
4896
|
+
" ",
|
|
4897
|
+
u("footer.copyright")
|
|
4898
|
+
] }),
|
|
4899
|
+
/* @__PURE__ */ w("div", { className: L.legalLinks, children: [
|
|
4900
|
+
/* @__PURE__ */ s(ce, { href: "#", className: L.legalLink, children: u("footer.legal.privacy") }),
|
|
4901
|
+
/* @__PURE__ */ s(ce, { href: "#", className: L.legalLink, children: u("footer.legal.press") }),
|
|
4902
|
+
/* @__PURE__ */ s(ce, { href: "#", className: L.legalLink, children: u("footer.legal.procurement") }),
|
|
4903
|
+
/* @__PURE__ */ s(ce, { href: "#", className: L.legalLink, children: u("footer.legal.whistleblowing") })
|
|
4904
|
+
] })
|
|
4905
|
+
] })
|
|
4906
|
+
] }) }),
|
|
4907
|
+
/* @__PURE__ */ s("div", { className: L.whiteSection, children: /* @__PURE__ */ s("div", { className: L.whiteContainer, children: /* @__PURE__ */ w("div", { className: L.whiteContent, children: [
|
|
4908
|
+
/* @__PURE__ */ s(
|
|
4909
|
+
"img",
|
|
4910
|
+
{
|
|
4911
|
+
src: "/logo-red-cross.svg",
|
|
4912
|
+
alt: "Røde Kors Logo",
|
|
4913
|
+
className: L.logo,
|
|
4914
|
+
loading: "lazy"
|
|
4915
|
+
}
|
|
4916
|
+
),
|
|
4917
|
+
a && /* @__PURE__ */ s(
|
|
4918
|
+
"img",
|
|
4919
|
+
{
|
|
4920
|
+
src: h,
|
|
4921
|
+
alt: d,
|
|
4922
|
+
className: L.designSystemLogo,
|
|
4923
|
+
loading: "lazy"
|
|
4924
|
+
}
|
|
4925
|
+
),
|
|
4926
|
+
n && /* @__PURE__ */ s("div", { className: L.slotSmall, children: n }),
|
|
4927
|
+
r && /* @__PURE__ */ s("div", { className: L.slotLarge, children: r })
|
|
4928
|
+
] }) }) })
|
|
4929
|
+
] });
|
|
4930
|
+
};
|
|
4788
4931
|
export {
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4932
|
+
eo as Alert,
|
|
4933
|
+
Dt as Avatar,
|
|
4934
|
+
to as Badge,
|
|
4935
|
+
Pi as BadgePosition,
|
|
4936
|
+
zi as Breadcrumbs,
|
|
4937
|
+
Ri as BreadcrumbsItem,
|
|
4938
|
+
Wi as BreadcrumbsLink,
|
|
4939
|
+
Gi as BreadcrumbsList,
|
|
4940
|
+
xe as Button,
|
|
4941
|
+
no as Card,
|
|
4942
|
+
Ui as CardBlock,
|
|
4943
|
+
Zr as Carousel,
|
|
4944
|
+
oo as Checkbox,
|
|
4945
|
+
Hi as Chip,
|
|
4946
|
+
nr as DateInput,
|
|
4947
|
+
Yo as DatePicker,
|
|
4948
|
+
Oi as Details,
|
|
4949
|
+
Vi as Dialog,
|
|
4950
|
+
Ki as Divider,
|
|
4951
|
+
J as Dropdown,
|
|
4952
|
+
Yi as ErrorSummary,
|
|
4953
|
+
qi as Field,
|
|
4954
|
+
es as FieldCounter,
|
|
4955
|
+
Qr as FieldDescription,
|
|
4956
|
+
Xi as Fieldset,
|
|
4957
|
+
fa as Footer,
|
|
4958
|
+
ha as Header,
|
|
4959
|
+
ts as Heading,
|
|
4960
|
+
Ji as Input,
|
|
4961
|
+
ns as Label,
|
|
4962
|
+
ga as LanguageProvider,
|
|
4963
|
+
ce as Link,
|
|
4964
|
+
Zi as List,
|
|
4965
|
+
Qi as Pagination,
|
|
4966
|
+
Je as Paragraph,
|
|
4967
|
+
ta as Popover,
|
|
4968
|
+
na as Radio,
|
|
4969
|
+
Ne as Search,
|
|
4970
|
+
ra as Select,
|
|
4971
|
+
sa as SkeletonLoader,
|
|
4972
|
+
ia as SkipLink,
|
|
4973
|
+
Jr as Spinner,
|
|
4974
|
+
os as Suggestion,
|
|
4831
4975
|
Oe as Switch,
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4976
|
+
aa as Table,
|
|
4977
|
+
la as Tabs,
|
|
4978
|
+
da as Tag,
|
|
4979
|
+
ca as Textarea,
|
|
4980
|
+
ua as Textfield,
|
|
4981
|
+
ma as ToggleGroup,
|
|
4982
|
+
pa as Tooltip,
|
|
4983
|
+
rs as ValidationMessage,
|
|
4984
|
+
$i as useCheckboxGroup,
|
|
4985
|
+
Et as useLanguage,
|
|
4986
|
+
ea as usePagination,
|
|
4987
|
+
oa as useRadioGroup
|
|
4844
4988
|
};
|