rk-designsystem 1.1.41 → 1.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import vt, { forwardRef as ce, useState as fe, useEffect as ae, useMemo as ke, useCallback as te, useRef as Ve } from "react";
|
|
2
|
-
import { Alert as
|
|
3
|
-
import { startOfMonth as he, isValid as Fe, isSameMonth as at, startOfWeek as xt, format as ve, addDays as St, subMonths as
|
|
4
|
-
import { ChevronLeftIcon as
|
|
5
|
-
var
|
|
2
|
+
import { Alert as Rt, Avatar as $t, Badge as Ft, BadgePosition as Bt, Breadcrumbs as Vt, BreadcrumbsList as Wt, BreadcrumbsItem as zt, BreadcrumbsLink as Ht, Button as We, Card as Yt, CardBlock as Gt, Checkbox as qt, Fieldset as yt, useCheckboxGroup as Kt, Chip as Ut, Spinner as Xt, Details as Jt, Dialog as Qt, Divider as Zt, Dropdown as en, ErrorSummary as tn, FieldDescription as nn, FieldCounter as rn, Field as on, Heading as sn, Input as an, Label as cn, Link as ln, List as un, Pagination as dn, usePagination as fn, Paragraph as mn, Popover as pn, Radio as hn, useRadioGroup as gn, Search as bn, SearchInput as vn, SearchClear as yn, SearchButton as xn, Select as Sn, Skeleton as _n, SkipLink as kn, EXPERIMENTAL_Suggestion as En, Switch as Cn, Table as wn, Tabs as Pn, Tag as Tn, Textarea as Nn, Textfield as jn, ToggleGroup as In, Tooltip as Ln, ValidationMessage as Mn } from "@digdir/designsystemet-react";
|
|
3
|
+
import { startOfMonth as he, isValid as Fe, isSameMonth as at, startOfWeek as xt, format as ve, addDays as St, subMonths as An, addMonths as Dn, isSameDay as On, isToday as Rn, eachDayOfInterval as $n } from "date-fns";
|
|
4
|
+
import { ChevronLeftIcon as Fn, ChevronRightIcon as Bn } from "@navikt/aksel-icons";
|
|
5
|
+
var Ie = { exports: {} }, ye = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -13,7 +13,7 @@ var Le = { exports: {} }, ye = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var it;
|
|
16
|
-
function
|
|
16
|
+
function Vn() {
|
|
17
17
|
if (it) return ye;
|
|
18
18
|
it = 1;
|
|
19
19
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
@@ -45,7 +45,7 @@ var xe = {};
|
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
47
|
var ct;
|
|
48
|
-
function
|
|
48
|
+
function Wn() {
|
|
49
49
|
return ct || (ct = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
50
50
|
function e(l) {
|
|
51
51
|
if (l == null) return null;
|
|
@@ -122,14 +122,14 @@ function Fn() {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function a() {
|
|
125
|
-
var l =
|
|
125
|
+
var l = R.A;
|
|
126
126
|
return l === null ? null : l.getOwner();
|
|
127
127
|
}
|
|
128
128
|
function s() {
|
|
129
129
|
return Error("react-stack-top-frame");
|
|
130
130
|
}
|
|
131
131
|
function r(l) {
|
|
132
|
-
if (
|
|
132
|
+
if (L.call(l, "key")) {
|
|
133
133
|
var k = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
134
134
|
if (k && k.isReactWarning) return !1;
|
|
135
135
|
}
|
|
@@ -190,7 +190,7 @@ function Fn() {
|
|
|
190
190
|
var T = k.children;
|
|
191
191
|
if (T !== void 0)
|
|
192
192
|
if (D)
|
|
193
|
-
if (
|
|
193
|
+
if (O(T)) {
|
|
194
194
|
for (D = 0; D < T.length; D++)
|
|
195
195
|
p(T[D]);
|
|
196
196
|
Object.freeze && Object.freeze(T);
|
|
@@ -199,7 +199,7 @@ function Fn() {
|
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
201
|
else p(T);
|
|
202
|
-
if (
|
|
202
|
+
if (L.call(k, "key")) {
|
|
203
203
|
T = e(l);
|
|
204
204
|
var B = Object.keys(k).filter(function(G) {
|
|
205
205
|
return G !== "key";
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function g(l) {
|
|
241
241
|
return typeof l == "object" && l !== null && l.$$typeof === h;
|
|
242
242
|
}
|
|
243
|
-
var f = vt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), w = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"),
|
|
243
|
+
var f = vt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), w = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), R = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, O = Array.isArray, $ = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
f = {
|
|
@@ -251,49 +251,49 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
var J, Q = {}, U = f.react_stack_bottom_frame.bind(
|
|
252
252
|
f,
|
|
253
253
|
s
|
|
254
|
-
)(), X =
|
|
254
|
+
)(), X = $(o(s)), re = {};
|
|
255
255
|
xe.Fragment = v, xe.jsx = function(l, k, A) {
|
|
256
|
-
var D = 1e4 >
|
|
256
|
+
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return y(
|
|
258
258
|
l,
|
|
259
259
|
k,
|
|
260
260
|
A,
|
|
261
261
|
!1,
|
|
262
262
|
D ? Error("react-stack-top-frame") : U,
|
|
263
|
-
D ?
|
|
263
|
+
D ? $(o(l)) : X
|
|
264
264
|
);
|
|
265
265
|
}, xe.jsxs = function(l, k, A) {
|
|
266
|
-
var D = 1e4 >
|
|
266
|
+
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return y(
|
|
268
268
|
l,
|
|
269
269
|
k,
|
|
270
270
|
A,
|
|
271
271
|
!0,
|
|
272
272
|
D ? Error("react-stack-top-frame") : U,
|
|
273
|
-
D ?
|
|
273
|
+
D ? $(o(l)) : X
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
})()), xe;
|
|
277
277
|
}
|
|
278
278
|
var lt;
|
|
279
|
-
function
|
|
280
|
-
return lt || (lt = 1, process.env.NODE_ENV === "production" ?
|
|
281
|
-
}
|
|
282
|
-
var _ =
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
const
|
|
279
|
+
function zn() {
|
|
280
|
+
return lt || (lt = 1, process.env.NODE_ENV === "production" ? Ie.exports = Vn() : Ie.exports = Wn()), Ie.exports;
|
|
281
|
+
}
|
|
282
|
+
var _ = zn();
|
|
283
|
+
const Hn = ce((e, t) => /* @__PURE__ */ _.jsx(Rt, { ref: t, ...e }));
|
|
284
|
+
Hn.displayName = "Alert";
|
|
285
|
+
const Yn = ce((e, t) => /* @__PURE__ */ _.jsx($t, { ref: t, ...e }));
|
|
286
|
+
Yn.displayName = "Avatar";
|
|
287
|
+
const Gn = ce((e, t) => /* @__PURE__ */ _.jsx(Ft, { ref: t, ...e }));
|
|
288
|
+
Gn.displayName = "Badge";
|
|
289
|
+
const ts = Bt, ns = Vt, rs = Wt, os = zt, ss = Ht, ze = We;
|
|
290
290
|
ze.displayName = "Button";
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
const
|
|
291
|
+
const qn = Yt, as = Gt;
|
|
292
|
+
qn.displayName = "Card";
|
|
293
|
+
const Kn = qt, Un = yt, is = Kt;
|
|
294
|
+
Kn.displayName = "Checkbox";
|
|
295
|
+
Un.displayName = "Fieldset";
|
|
296
|
+
const cs = Ut;
|
|
297
297
|
function Be(e) {
|
|
298
298
|
return (t = {}) => {
|
|
299
299
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
@@ -320,9 +320,9 @@ function _e(e) {
|
|
|
320
320
|
const o = n.width, a = o && e.matchPatterns[o] || e.matchPatterns[e.defaultMatchWidth], s = t.match(a);
|
|
321
321
|
if (!s)
|
|
322
322
|
return null;
|
|
323
|
-
const r = s[0], c = o && e.parsePatterns[o] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(c) ?
|
|
323
|
+
const r = s[0], c = o && e.parsePatterns[o] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(c) ? Jn(c, (p) => p.test(r)) : (
|
|
324
324
|
// [TODO] -- I challenge you to fix the type
|
|
325
|
-
|
|
325
|
+
Xn(c, (p) => p.test(r))
|
|
326
326
|
);
|
|
327
327
|
let u;
|
|
328
328
|
u = e.valueCallback ? e.valueCallback(i) : i, u = n.valueCallback ? (
|
|
@@ -333,17 +333,17 @@ function _e(e) {
|
|
|
333
333
|
return { value: u, rest: y };
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Xn(e, t) {
|
|
337
337
|
for (const n in e)
|
|
338
338
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
339
339
|
return n;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Jn(e, t) {
|
|
342
342
|
for (let n = 0; n < e.length; n++)
|
|
343
343
|
if (t(e[n]))
|
|
344
344
|
return n;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Qn(e) {
|
|
347
347
|
return (t, n = {}) => {
|
|
348
348
|
const o = t.match(e.matchPattern);
|
|
349
349
|
if (!o) return null;
|
|
@@ -355,7 +355,7 @@ function Un(e) {
|
|
|
355
355
|
return { value: r, rest: c };
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const Zn = {
|
|
359
359
|
lessThanXSeconds: {
|
|
360
360
|
one: "mindre enn ett sekund",
|
|
361
361
|
other: "mindre enn {{count}} sekunder"
|
|
@@ -417,54 +417,54 @@ const Xn = {
|
|
|
417
417
|
one: "nesten ett år",
|
|
418
418
|
other: "nesten {{count}} år"
|
|
419
419
|
}
|
|
420
|
-
},
|
|
420
|
+
}, er = (e, t, n) => {
|
|
421
421
|
let o;
|
|
422
|
-
const a =
|
|
422
|
+
const a = Zn[e];
|
|
423
423
|
return typeof a == "string" ? o = a : t === 1 ? o = a.one : o = a.other.replace("{{count}}", String(t)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + o : o + " siden" : o;
|
|
424
|
-
},
|
|
424
|
+
}, tr = {
|
|
425
425
|
full: "EEEE d. MMMM y",
|
|
426
426
|
long: "d. MMMM y",
|
|
427
427
|
medium: "d. MMM y",
|
|
428
428
|
short: "dd.MM.y"
|
|
429
|
-
},
|
|
429
|
+
}, nr = {
|
|
430
430
|
full: "'kl'. HH:mm:ss zzzz",
|
|
431
431
|
long: "HH:mm:ss z",
|
|
432
432
|
medium: "HH:mm:ss",
|
|
433
433
|
short: "HH:mm"
|
|
434
|
-
},
|
|
434
|
+
}, rr = {
|
|
435
435
|
full: "{{date}} 'kl.' {{time}}",
|
|
436
436
|
long: "{{date}} 'kl.' {{time}}",
|
|
437
437
|
medium: "{{date}} {{time}}",
|
|
438
438
|
short: "{{date}} {{time}}"
|
|
439
|
-
},
|
|
439
|
+
}, or = {
|
|
440
440
|
date: Be({
|
|
441
|
-
formats:
|
|
441
|
+
formats: tr,
|
|
442
442
|
defaultWidth: "full"
|
|
443
443
|
}),
|
|
444
444
|
time: Be({
|
|
445
|
-
formats:
|
|
445
|
+
formats: nr,
|
|
446
446
|
defaultWidth: "full"
|
|
447
447
|
}),
|
|
448
448
|
dateTime: Be({
|
|
449
|
-
formats:
|
|
449
|
+
formats: rr,
|
|
450
450
|
defaultWidth: "full"
|
|
451
451
|
})
|
|
452
|
-
},
|
|
452
|
+
}, sr = {
|
|
453
453
|
lastWeek: "'forrige' eeee 'kl.' p",
|
|
454
454
|
yesterday: "'i går kl.' p",
|
|
455
455
|
today: "'i dag kl.' p",
|
|
456
456
|
tomorrow: "'i morgen kl.' p",
|
|
457
457
|
nextWeek: "EEEE 'kl.' p",
|
|
458
458
|
other: "P"
|
|
459
|
-
},
|
|
459
|
+
}, ar = (e, t, n, o) => sr[e], ir = {
|
|
460
460
|
narrow: ["f.Kr.", "e.Kr."],
|
|
461
461
|
abbreviated: ["f.Kr.", "e.Kr."],
|
|
462
462
|
wide: ["før Kristus", "etter Kristus"]
|
|
463
|
-
},
|
|
463
|
+
}, cr = {
|
|
464
464
|
narrow: ["1", "2", "3", "4"],
|
|
465
465
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
466
466
|
wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
|
|
467
|
-
},
|
|
467
|
+
}, lr = {
|
|
468
468
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
469
469
|
abbreviated: [
|
|
470
470
|
"jan.",
|
|
@@ -494,7 +494,7 @@ const Xn = {
|
|
|
494
494
|
"november",
|
|
495
495
|
"desember"
|
|
496
496
|
]
|
|
497
|
-
},
|
|
497
|
+
}, ur = {
|
|
498
498
|
narrow: ["S", "M", "T", "O", "T", "F", "L"],
|
|
499
499
|
short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
|
|
500
500
|
abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
|
@@ -507,7 +507,7 @@ const Xn = {
|
|
|
507
507
|
"fredag",
|
|
508
508
|
"lørdag"
|
|
509
509
|
]
|
|
510
|
-
},
|
|
510
|
+
}, dr = {
|
|
511
511
|
narrow: {
|
|
512
512
|
am: "a",
|
|
513
513
|
pm: "p",
|
|
@@ -538,46 +538,46 @@ const Xn = {
|
|
|
538
538
|
evening: "på kvelden",
|
|
539
539
|
night: "på natten"
|
|
540
540
|
}
|
|
541
|
-
},
|
|
542
|
-
ordinalNumber:
|
|
541
|
+
}, fr = (e, t) => Number(e) + ".", mr = {
|
|
542
|
+
ordinalNumber: fr,
|
|
543
543
|
era: Se({
|
|
544
|
-
values:
|
|
544
|
+
values: ir,
|
|
545
545
|
defaultWidth: "wide"
|
|
546
546
|
}),
|
|
547
547
|
quarter: Se({
|
|
548
|
-
values:
|
|
548
|
+
values: cr,
|
|
549
549
|
defaultWidth: "wide",
|
|
550
550
|
argumentCallback: (e) => e - 1
|
|
551
551
|
}),
|
|
552
552
|
month: Se({
|
|
553
|
-
values:
|
|
553
|
+
values: lr,
|
|
554
554
|
defaultWidth: "wide"
|
|
555
555
|
}),
|
|
556
556
|
day: Se({
|
|
557
|
-
values:
|
|
557
|
+
values: ur,
|
|
558
558
|
defaultWidth: "wide"
|
|
559
559
|
}),
|
|
560
560
|
dayPeriod: Se({
|
|
561
|
-
values:
|
|
561
|
+
values: dr,
|
|
562
562
|
defaultWidth: "wide"
|
|
563
563
|
})
|
|
564
|
-
},
|
|
564
|
+
}, pr = /^(\d+)\.?/i, hr = /\d+/i, gr = {
|
|
565
565
|
narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
566
566
|
abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
567
567
|
wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
|
|
568
|
-
},
|
|
568
|
+
}, br = {
|
|
569
569
|
any: [/^f/i, /^e/i]
|
|
570
|
-
},
|
|
570
|
+
}, vr = {
|
|
571
571
|
narrow: /^[1234]/i,
|
|
572
572
|
abbreviated: /^q[1234]/i,
|
|
573
573
|
wide: /^[1234](\.)? kvartal/i
|
|
574
|
-
},
|
|
574
|
+
}, yr = {
|
|
575
575
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
|
-
},
|
|
576
|
+
}, xr = {
|
|
577
577
|
narrow: /^[jfmasond]/i,
|
|
578
578
|
abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
|
|
579
579
|
wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
|
|
580
|
-
},
|
|
580
|
+
}, Sr = {
|
|
581
581
|
narrow: [
|
|
582
582
|
/^j/i,
|
|
583
583
|
/^f/i,
|
|
@@ -606,17 +606,17 @@ const Xn = {
|
|
|
606
606
|
/^n/i,
|
|
607
607
|
/^d/i
|
|
608
608
|
]
|
|
609
|
-
},
|
|
609
|
+
}, _r = {
|
|
610
610
|
narrow: /^[smtofl]/i,
|
|
611
611
|
short: /^(sø|ma|ti|on|to|fr|lø)/i,
|
|
612
612
|
abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
|
|
613
613
|
wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
|
|
614
|
-
},
|
|
614
|
+
}, kr = {
|
|
615
615
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
616
|
-
},
|
|
616
|
+
}, Er = {
|
|
617
617
|
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
618
618
|
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
|
|
619
|
-
},
|
|
619
|
+
}, Cr = {
|
|
620
620
|
any: {
|
|
621
621
|
am: /^a(\.?\s?m\.?)?$/i,
|
|
622
622
|
pm: /^p(\.?\s?m\.?)?$/i,
|
|
@@ -627,50 +627,50 @@ const Xn = {
|
|
|
627
627
|
evening: /kveld/i,
|
|
628
628
|
night: /natt/i
|
|
629
629
|
}
|
|
630
|
-
},
|
|
631
|
-
ordinalNumber:
|
|
632
|
-
matchPattern:
|
|
633
|
-
parsePattern:
|
|
630
|
+
}, wr = {
|
|
631
|
+
ordinalNumber: Qn({
|
|
632
|
+
matchPattern: pr,
|
|
633
|
+
parsePattern: hr,
|
|
634
634
|
valueCallback: (e) => parseInt(e, 10)
|
|
635
635
|
}),
|
|
636
636
|
era: _e({
|
|
637
|
-
matchPatterns:
|
|
637
|
+
matchPatterns: gr,
|
|
638
638
|
defaultMatchWidth: "wide",
|
|
639
|
-
parsePatterns:
|
|
639
|
+
parsePatterns: br,
|
|
640
640
|
defaultParseWidth: "any"
|
|
641
641
|
}),
|
|
642
642
|
quarter: _e({
|
|
643
|
-
matchPatterns:
|
|
643
|
+
matchPatterns: vr,
|
|
644
644
|
defaultMatchWidth: "wide",
|
|
645
|
-
parsePatterns:
|
|
645
|
+
parsePatterns: yr,
|
|
646
646
|
defaultParseWidth: "any",
|
|
647
647
|
valueCallback: (e) => e + 1
|
|
648
648
|
}),
|
|
649
649
|
month: _e({
|
|
650
|
-
matchPatterns:
|
|
650
|
+
matchPatterns: xr,
|
|
651
651
|
defaultMatchWidth: "wide",
|
|
652
|
-
parsePatterns:
|
|
652
|
+
parsePatterns: Sr,
|
|
653
653
|
defaultParseWidth: "any"
|
|
654
654
|
}),
|
|
655
655
|
day: _e({
|
|
656
|
-
matchPatterns:
|
|
656
|
+
matchPatterns: _r,
|
|
657
657
|
defaultMatchWidth: "wide",
|
|
658
|
-
parsePatterns:
|
|
658
|
+
parsePatterns: kr,
|
|
659
659
|
defaultParseWidth: "any"
|
|
660
660
|
}),
|
|
661
661
|
dayPeriod: _e({
|
|
662
|
-
matchPatterns:
|
|
662
|
+
matchPatterns: Er,
|
|
663
663
|
defaultMatchWidth: "any",
|
|
664
|
-
parsePatterns:
|
|
664
|
+
parsePatterns: Cr,
|
|
665
665
|
defaultParseWidth: "any"
|
|
666
666
|
})
|
|
667
667
|
}, ge = {
|
|
668
668
|
code: "nb",
|
|
669
|
-
formatDistance:
|
|
670
|
-
formatLong:
|
|
671
|
-
formatRelative:
|
|
672
|
-
localize:
|
|
673
|
-
match:
|
|
669
|
+
formatDistance: er,
|
|
670
|
+
formatLong: or,
|
|
671
|
+
formatRelative: ar,
|
|
672
|
+
localize: mr,
|
|
673
|
+
match: wr,
|
|
674
674
|
options: {
|
|
675
675
|
weekStartsOn: 1,
|
|
676
676
|
firstWeekContainsDate: 4
|
|
@@ -727,21 +727,21 @@ const kt = ({ title: e, ...t }) => /* @__PURE__ */ _.jsxs(
|
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
729
|
kt.displayName = "ChevronRightIcon";
|
|
730
|
-
const
|
|
731
|
-
calendarContainer:
|
|
732
|
-
calendarHeader:
|
|
733
|
-
monthYear:
|
|
734
|
-
navigationButtons:
|
|
735
|
-
grid:
|
|
736
|
-
dayNameCell:
|
|
737
|
-
dateCell:
|
|
738
|
-
dateNumberContainer:
|
|
739
|
-
otherMonth:
|
|
740
|
-
selectedDate:
|
|
741
|
-
},
|
|
730
|
+
const Pr = "_calendarContainer_10l5p_1", Tr = "_calendarHeader_10l5p_14", Nr = "_monthYear_10l5p_21", jr = "_navigationButtons_10l5p_32", Ir = "_grid_10l5p_41", Lr = "_dayNameCell_10l5p_48", Mr = "_dateCell_10l5p_65", Ar = "_dateNumberContainer_10l5p_90", Dr = "_otherMonth_10l5p_103", Or = "_selectedDate_10l5p_129", ee = {
|
|
731
|
+
calendarContainer: Pr,
|
|
732
|
+
calendarHeader: Tr,
|
|
733
|
+
monthYear: Nr,
|
|
734
|
+
navigationButtons: jr,
|
|
735
|
+
grid: Ir,
|
|
736
|
+
dayNameCell: Lr,
|
|
737
|
+
dateCell: Mr,
|
|
738
|
+
dateNumberContainer: Ar,
|
|
739
|
+
otherMonth: Dr,
|
|
740
|
+
selectedDate: Or
|
|
741
|
+
}, Rr = (e) => {
|
|
742
742
|
const t = he(e), n = xt(t, { locale: ge }), o = St(n, 41);
|
|
743
|
-
return
|
|
744
|
-
}, ut = (e) => e && e.charAt(0).toUpperCase() + e.slice(1),
|
|
743
|
+
return $n({ start: n, end: o });
|
|
744
|
+
}, ut = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), $r = ({
|
|
745
745
|
initialDate: e = /* @__PURE__ */ new Date(),
|
|
746
746
|
selectedDate: t = null,
|
|
747
747
|
// Prop for valgt dato
|
|
@@ -761,7 +761,7 @@ const Er = "_calendarContainer_10l5p_1", Cr = "_calendarHeader_10l5p_14", wr = "
|
|
|
761
761
|
}
|
|
762
762
|
}, [t]);
|
|
763
763
|
const c = ke(() => he(/* @__PURE__ */ new Date()), []), i = ke(() => !1, [s, c]), u = ke(
|
|
764
|
-
() =>
|
|
764
|
+
() => Rr(s),
|
|
765
765
|
[s]
|
|
766
766
|
), y = ke(() => {
|
|
767
767
|
const d = xt(/* @__PURE__ */ new Date(), { locale: ge });
|
|
@@ -770,9 +770,9 @@ const Er = "_calendarContainer_10l5p_1", Cr = "_calendarHeader_10l5p_14", wr = "
|
|
|
770
770
|
return ut(N);
|
|
771
771
|
});
|
|
772
772
|
}, []), p = te(() => {
|
|
773
|
-
i || r((d) => he(
|
|
773
|
+
i || r((d) => he(An(d, 1)));
|
|
774
774
|
}, [i]), g = te(() => {
|
|
775
|
-
r((d) => he(
|
|
775
|
+
r((d) => he(Dn(d, 1)));
|
|
776
776
|
}, []), f = te(
|
|
777
777
|
(d) => {
|
|
778
778
|
n && n(d);
|
|
@@ -819,7 +819,7 @@ const Er = "_calendarContainer_10l5p_1", Cr = "_calendarHeader_10l5p_14", wr = "
|
|
|
819
819
|
] }),
|
|
820
820
|
/* @__PURE__ */ _.jsx("div", { className: ee.grid, children: y.map((d) => /* @__PURE__ */ _.jsx("div", { className: ee.dayNameCell, children: d }, d)) }),
|
|
821
821
|
/* @__PURE__ */ _.jsx("div", { className: ee.grid, children: u.map((d) => {
|
|
822
|
-
const x = at(d, s), w = t && Fe(t) &&
|
|
822
|
+
const x = at(d, s), w = t && Fe(t) && On(d, t), N = Rn(d), P = [
|
|
823
823
|
ee.dateCell,
|
|
824
824
|
x ? "" : ee.otherMonth,
|
|
825
825
|
w ? ee.selectedDate : "",
|
|
@@ -845,15 +845,15 @@ const Er = "_calendarContainer_10l5p_1", Cr = "_calendarHeader_10l5p_14", wr = "
|
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
fieldset:
|
|
851
|
-
description:
|
|
852
|
-
error:
|
|
853
|
-
inputWrapper:
|
|
854
|
-
inputWrapperError:
|
|
855
|
-
suffixButton:
|
|
856
|
-
suffixButtonInteractive:
|
|
848
|
+
$r.displayName = "DatePicker";
|
|
849
|
+
const Fr = "_fieldset_16fx7_2", Br = "_description_16fx7_14", Vr = "_error_16fx7_21", Wr = "_inputWrapper_16fx7_30", zr = "_inputWrapperError_16fx7_42", Hr = "_suffixButton_16fx7_80", Yr = "_suffixButtonInteractive_16fx7_100", de = {
|
|
850
|
+
fieldset: Fr,
|
|
851
|
+
description: Br,
|
|
852
|
+
error: Vr,
|
|
853
|
+
inputWrapper: Wr,
|
|
854
|
+
inputWrapperError: zr,
|
|
855
|
+
suffixButton: Hr,
|
|
856
|
+
suffixButtonInteractive: Yr
|
|
857
857
|
}, dt = (e) => {
|
|
858
858
|
const t = e.slice(0, 2), n = e.slice(2, 4), o = e.slice(4, 8);
|
|
859
859
|
return e.length > 4 ? `${t}.${n}.${o}` : e.length > 2 ? `${t}.${n}` : e.length > 0 ? t : "";
|
|
@@ -868,7 +868,7 @@ const Rr = "_fieldset_16fx7_2", $r = "_description_16fx7_14", Or = "_error_16fx7
|
|
|
868
868
|
!isNaN(n) && n > 12 && (t = t.substring(0, 2) + "12" + t.substring(4));
|
|
869
869
|
}
|
|
870
870
|
return t.slice(0, 8);
|
|
871
|
-
},
|
|
871
|
+
}, Gr = ce(
|
|
872
872
|
(e, t) => {
|
|
873
873
|
const {
|
|
874
874
|
label: n,
|
|
@@ -905,33 +905,33 @@ const Rr = "_fieldset_16fx7_2", $r = "_description_16fx7_14", Or = "_error_16fx7
|
|
|
905
905
|
"data-size": F,
|
|
906
906
|
// <-- Destrukturering
|
|
907
907
|
...M
|
|
908
|
-
} = e,
|
|
908
|
+
} = e, R = i !== void 0, L = Ve(null);
|
|
909
909
|
vt.useImperativeHandle(
|
|
910
910
|
t,
|
|
911
|
-
() =>
|
|
911
|
+
() => L.current
|
|
912
912
|
);
|
|
913
|
-
const
|
|
913
|
+
const O = te(
|
|
914
914
|
(H) => {
|
|
915
915
|
const T = ft(H), B = mt(T);
|
|
916
916
|
return dt(B);
|
|
917
917
|
},
|
|
918
918
|
[]
|
|
919
|
-
), [
|
|
920
|
-
() =>
|
|
919
|
+
), [$, J] = fe(
|
|
920
|
+
() => O(i ?? u)
|
|
921
921
|
);
|
|
922
922
|
ae(() => {
|
|
923
|
-
if (
|
|
924
|
-
const H =
|
|
925
|
-
H !==
|
|
923
|
+
if (R) {
|
|
924
|
+
const H = O(i);
|
|
925
|
+
H !== $ && (J(H), L.current && L.current.value !== H && (L.current.value = H));
|
|
926
926
|
}
|
|
927
|
-
}, [i, $, O
|
|
927
|
+
}, [i, R, $, O]);
|
|
928
928
|
const Q = te(
|
|
929
929
|
(H) => {
|
|
930
|
-
const T = H.target, B = T.value, K =
|
|
931
|
-
let
|
|
930
|
+
const T = H.target, B = T.value, K = $, G = ft(B).slice(0, 8), V = mt(G), S = dt(V);
|
|
931
|
+
let I = 0;
|
|
932
932
|
const W = V.length;
|
|
933
|
-
W <= 2 ?
|
|
934
|
-
if (
|
|
933
|
+
W <= 2 ? I = W : W <= 4 ? I = W + 1 : I = W + 2, I = Math.min(I, S.length), requestAnimationFrame(() => {
|
|
934
|
+
if (L.current && (J(S), L.current.value = S, L.current.setSelectionRange(I, I), (S !== K || R) && y)) {
|
|
935
935
|
const Y = {
|
|
936
936
|
...H,
|
|
937
937
|
target: { ...T, value: S }
|
|
@@ -940,7 +940,7 @@ const Rr = "_fieldset_16fx7_2", $r = "_description_16fx7_14", Or = "_error_16fx7
|
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
},
|
|
943
|
-
[
|
|
943
|
+
[$, R, y, O]
|
|
944
944
|
), U = [de.fieldset, s].filter(Boolean).join(" "), X = [
|
|
945
945
|
de.inputWrapper,
|
|
946
946
|
r,
|
|
@@ -968,12 +968,12 @@ const Rr = "_fieldset_16fx7_2", $r = "_description_16fx7_14", Or = "_error_16fx7
|
|
|
968
968
|
/* @__PURE__ */ _.jsx(
|
|
969
969
|
"input",
|
|
970
970
|
{
|
|
971
|
-
ref:
|
|
971
|
+
ref: L,
|
|
972
972
|
type: "text",
|
|
973
973
|
inputMode: "numeric",
|
|
974
974
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
975
975
|
maxLength: 10,
|
|
976
|
-
value:
|
|
976
|
+
value: $,
|
|
977
977
|
readOnly: p,
|
|
978
978
|
placeholder: g,
|
|
979
979
|
id: f,
|
|
@@ -1014,14 +1014,14 @@ const Rr = "_fieldset_16fx7_2", $r = "_description_16fx7_14", Or = "_error_16fx7
|
|
|
1014
1014
|
);
|
|
1015
1015
|
}
|
|
1016
1016
|
);
|
|
1017
|
-
|
|
1018
|
-
function
|
|
1017
|
+
Gr.displayName = "DateInput";
|
|
1018
|
+
function qr(e) {
|
|
1019
1019
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
1020
1020
|
}
|
|
1021
1021
|
function pt(e) {
|
|
1022
|
-
return
|
|
1022
|
+
return qr(e) || Array.isArray(e);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function Kr() {
|
|
1025
1025
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1026
1026
|
}
|
|
1027
1027
|
function Ge(e, t) {
|
|
@@ -1036,7 +1036,7 @@ function Ge(e, t) {
|
|
|
1036
1036
|
function ht(e) {
|
|
1037
1037
|
return e.concat().sort((t, n) => t.name > n.name ? 1 : -1).map((t) => t.options);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Ur(e, t) {
|
|
1040
1040
|
if (e.length !== t.length) return !1;
|
|
1041
1041
|
const n = ht(e), o = ht(t);
|
|
1042
1042
|
return n.every((a, s) => {
|
|
@@ -1065,12 +1065,12 @@ function Ke(e) {
|
|
|
1065
1065
|
function Ce(e, t) {
|
|
1066
1066
|
return z(e - t);
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Xr(e, t) {
|
|
1069
1069
|
if (e === 0 || t === 0 || z(e) <= z(t)) return 0;
|
|
1070
1070
|
const n = Ce(z(e), z(t));
|
|
1071
1071
|
return z(n / e);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function Jr(e) {
|
|
1074
1074
|
return Math.round(e * 100) / 100;
|
|
1075
1075
|
}
|
|
1076
1076
|
function we(e) {
|
|
@@ -1100,7 +1100,7 @@ function Et(e, t) {
|
|
|
1100
1100
|
function Ye(e, t) {
|
|
1101
1101
|
return typeof t.MouseEvent < "u" && e instanceof t.MouseEvent;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function Qr(e, t) {
|
|
1104
1104
|
const n = {
|
|
1105
1105
|
start: o,
|
|
1106
1106
|
center: a,
|
|
@@ -1145,7 +1145,7 @@ function Te() {
|
|
|
1145
1145
|
};
|
|
1146
1146
|
return o;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function Zr(e, t, n, o) {
|
|
1149
1149
|
const a = Te(), s = 1e3 / 60;
|
|
1150
1150
|
let r = null, c = 0, i = 0;
|
|
1151
1151
|
function u() {
|
|
@@ -1183,7 +1183,7 @@ function Xr(e, t, n, o) {
|
|
|
1183
1183
|
render: o
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function eo(e, t) {
|
|
1187
1187
|
const n = t === "rtl", o = e === "y", a = o ? "y" : "x", s = o ? "x" : "y", r = !o && n ? -1 : 1, c = y(), i = p();
|
|
1188
1188
|
function u(h) {
|
|
1189
1189
|
const {
|
|
@@ -1266,7 +1266,7 @@ function Ct(e, t, n) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
return p;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function to(e, t, n, o, a, s, r, c, i, u, y, p, g, f, h, b, v, m, d) {
|
|
1270
1270
|
const {
|
|
1271
1271
|
cross: x,
|
|
1272
1272
|
direction: w
|
|
@@ -1278,17 +1278,17 @@ function Qr(e, t, n, o, a, s, r, c, i, u, y, p, g, f, h, b, v, m, d) {
|
|
|
1278
1278
|
}, M = {
|
|
1279
1279
|
mouse: 500,
|
|
1280
1280
|
touch: 600
|
|
1281
|
-
},
|
|
1282
|
-
let
|
|
1281
|
+
}, R = h ? 43 : 25;
|
|
1282
|
+
let L = !1, O = 0, $ = 0, J = !1, Q = !1, U = !1, X = !1;
|
|
1283
1283
|
function re(S) {
|
|
1284
1284
|
if (!d) return;
|
|
1285
|
-
function
|
|
1285
|
+
function I(Y) {
|
|
1286
1286
|
(Me(d) || d(S, Y)) && H(Y);
|
|
1287
1287
|
}
|
|
1288
1288
|
const W = t;
|
|
1289
1289
|
E.add(W, "dragstart", (Y) => Y.preventDefault(), P).add(W, "touchmove", () => {
|
|
1290
1290
|
}, P).add(W, "touchend", () => {
|
|
1291
|
-
}).add(W, "touchstart",
|
|
1291
|
+
}).add(W, "touchstart", I).add(W, "mousedown", I).add(W, "touchcancel", B).add(W, "contextmenu", B).add(W, "click", K, !0);
|
|
1292
1292
|
}
|
|
1293
1293
|
function l() {
|
|
1294
1294
|
E.clear(), C.clear();
|
|
@@ -1298,30 +1298,30 @@ function Qr(e, t, n, o, a, s, r, c, i, u, y, p, g, f, h, b, v, m, d) {
|
|
|
1298
1298
|
C.add(S, "touchmove", T, P).add(S, "touchend", B).add(S, "mousemove", T, P).add(S, "mouseup", B);
|
|
1299
1299
|
}
|
|
1300
1300
|
function A(S) {
|
|
1301
|
-
const
|
|
1302
|
-
return N.includes(
|
|
1301
|
+
const I = S.nodeName || "";
|
|
1302
|
+
return N.includes(I);
|
|
1303
1303
|
}
|
|
1304
1304
|
function D() {
|
|
1305
1305
|
return (h ? M : F)[X ? "mouse" : "touch"];
|
|
1306
1306
|
}
|
|
1307
|
-
function Z(S,
|
|
1307
|
+
function Z(S, I) {
|
|
1308
1308
|
const W = p.add(Ke(S) * -1), Y = y.byDistance(S, !h).distance;
|
|
1309
|
-
return h || z(S) < j ? Y : v &&
|
|
1309
|
+
return h || z(S) < j ? Y : v && I ? Y * 0.5 : y.byIndex(W.get(), 0).distance;
|
|
1310
1310
|
}
|
|
1311
1311
|
function H(S) {
|
|
1312
|
-
const
|
|
1313
|
-
X =
|
|
1312
|
+
const I = Ye(S, o);
|
|
1313
|
+
X = I, U = h && I && !S.buttons && L, L = Ce(a.get(), r.get()) >= 2, !(I && S.button !== 0) && (A(S.target) || (J = !0, s.pointerDown(S), u.useFriction(0).useDuration(0), a.set(r), k(), O = s.readPoint(S), $ = s.readPoint(S, x), g.emit("pointerDown")));
|
|
1314
1314
|
}
|
|
1315
1315
|
function T(S) {
|
|
1316
1316
|
if (!Ye(S, o) && S.touches.length >= 2) return B(S);
|
|
1317
|
-
const W = s.readPoint(S), Y = s.readPoint(S, x), oe = Ce(W,
|
|
1317
|
+
const W = s.readPoint(S), Y = s.readPoint(S, x), oe = Ce(W, O), se = Ce(Y, $);
|
|
1318
1318
|
if (!Q && !X && (!S.cancelable || (Q = oe > se, !Q)))
|
|
1319
1319
|
return B(S);
|
|
1320
1320
|
const le = s.pointerMove(S);
|
|
1321
1321
|
oe > b && (U = !0), u.useFriction(0.3).useDuration(0.75), c.start(), a.add(w(le)), S.preventDefault();
|
|
1322
1322
|
}
|
|
1323
1323
|
function B(S) {
|
|
1324
|
-
const W = y.byDistance(0, !1).index !== p.get(), Y = s.pointerUp(S) * D(), oe = Z(w(Y), W), se =
|
|
1324
|
+
const W = y.byDistance(0, !1).index !== p.get(), Y = s.pointerUp(S) * D(), oe = Z(w(Y), W), se = Xr(Y, oe), le = R - 10 * se, ie = m + se / 50;
|
|
1325
1325
|
Q = !1, J = !1, C.clear(), u.useDuration(le).useFriction(ie), i.distance(oe, !h), X = !1, g.emit("pointerUp");
|
|
1326
1326
|
}
|
|
1327
1327
|
function K(S) {
|
|
@@ -1336,7 +1336,7 @@ function Qr(e, t, n, o, a, s, r, c, i, u, y, p, g, f, h, b, v, m, d) {
|
|
|
1336
1336
|
pointerDown: G
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function no(e, t) {
|
|
1340
1340
|
let o, a;
|
|
1341
1341
|
function s(p) {
|
|
1342
1342
|
return p.timeStamp;
|
|
@@ -1364,7 +1364,7 @@ function Zr(e, t) {
|
|
|
1364
1364
|
readPoint: r
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function ro() {
|
|
1368
1368
|
function e(n) {
|
|
1369
1369
|
const {
|
|
1370
1370
|
offsetTop: o,
|
|
@@ -1385,7 +1385,7 @@ function eo() {
|
|
|
1385
1385
|
measure: e
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function oo(e) {
|
|
1389
1389
|
function t(o) {
|
|
1390
1390
|
return e * (o / 100);
|
|
1391
1391
|
}
|
|
@@ -1393,7 +1393,7 @@ function to(e) {
|
|
|
1393
1393
|
measure: t
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function so(e, t, n, o, a, s, r) {
|
|
1397
1397
|
const c = [e].concat(o);
|
|
1398
1398
|
let i, u, y = [], p = !1;
|
|
1399
1399
|
function g(v) {
|
|
@@ -1426,7 +1426,7 @@ function no(e, t, n, o, a, s, r) {
|
|
|
1426
1426
|
destroy: h
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function ao(e, t, n, o, a, s) {
|
|
1430
1430
|
let r = 0, c = 0, i = a, u = s, y = e.get(), p = 0;
|
|
1431
1431
|
function g() {
|
|
1432
1432
|
const P = o.get() - e.get(), E = !i;
|
|
@@ -1471,7 +1471,7 @@ function ro(e, t, n, o, a, s) {
|
|
|
1471
1471
|
};
|
|
1472
1472
|
return N;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function io(e, t, n, o, a) {
|
|
1475
1475
|
const s = a.measure(10), r = a.measure(50), c = me(0.1, 0.99);
|
|
1476
1476
|
let i = !1;
|
|
1477
1477
|
function u() {
|
|
@@ -1491,7 +1491,7 @@ function oo(e, t, n, o, a) {
|
|
|
1491
1491
|
toggleActive: p
|
|
1492
1492
|
};
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function co(e, t, n, o, a) {
|
|
1495
1495
|
const s = me(-t + e, 0), r = p(), c = y(), i = g();
|
|
1496
1496
|
function u(h, b) {
|
|
1497
1497
|
return Ce(h, b) <= 1;
|
|
@@ -1523,13 +1523,13 @@ function so(e, t, n, o, a) {
|
|
|
1523
1523
|
scrollContainLimit: c
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function lo(e, t, n) {
|
|
1527
1527
|
const o = t[0], a = n ? o - e : ne(t);
|
|
1528
1528
|
return {
|
|
1529
1529
|
limit: me(a, o)
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function uo(e, t, n, o) {
|
|
1533
1533
|
const s = t.min + 0.1, r = t.max + 0.1, {
|
|
1534
1534
|
reachedMin: c,
|
|
1535
1535
|
reachedMax: i
|
|
@@ -1546,7 +1546,7 @@ function io(e, t, n, o) {
|
|
|
1546
1546
|
loop: y
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function fo(e) {
|
|
1550
1550
|
const {
|
|
1551
1551
|
max: t,
|
|
1552
1552
|
length: n
|
|
@@ -1559,7 +1559,7 @@ function co(e) {
|
|
|
1559
1559
|
get: o
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function mo(e, t, n, o, a) {
|
|
1563
1563
|
const {
|
|
1564
1564
|
startEdge: s,
|
|
1565
1565
|
endEdge: r
|
|
@@ -1580,7 +1580,7 @@ function lo(e, t, n, o, a) {
|
|
|
1580
1580
|
snapsAligned: y
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function po(e, t, n, o, a, s) {
|
|
1584
1584
|
const {
|
|
1585
1585
|
groupSlides: r
|
|
1586
1586
|
} = a, {
|
|
@@ -1606,7 +1606,7 @@ function uo(e, t, n, o, a, s) {
|
|
|
1606
1606
|
slideRegistry: u
|
|
1607
1607
|
};
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function ho(e, t, n, o, a) {
|
|
1610
1610
|
const {
|
|
1611
1611
|
reachedAny: s,
|
|
1612
1612
|
removeOffset: r,
|
|
@@ -1662,7 +1662,7 @@ function fo(e, t, n, o, a) {
|
|
|
1662
1662
|
shortcut: y
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function go(e, t, n, o, a, s, r) {
|
|
1666
1666
|
function c(p) {
|
|
1667
1667
|
const g = p.distance, f = p.index !== t.get();
|
|
1668
1668
|
s.add(g), g && (o.duration() ? e.start() : (e.update(), e.render(1), e.update())), f && (n.set(t.get()), t.set(p.index), r.emit("select"));
|
|
@@ -1680,7 +1680,7 @@ function mo(e, t, n, o, a, s, r) {
|
|
|
1680
1680
|
index: u
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function bo(e, t, n, o, a, s, r, c) {
|
|
1684
1684
|
const i = {
|
|
1685
1685
|
passive: !0,
|
|
1686
1686
|
capture: !0
|
|
@@ -1742,7 +1742,7 @@ function wt(e, t) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
function i(g) {
|
|
1744
1744
|
if (s) return;
|
|
1745
|
-
const f =
|
|
1745
|
+
const f = Jr(e.direction(g));
|
|
1746
1746
|
f !== a && (o.transform = n(f), a = f);
|
|
1747
1747
|
}
|
|
1748
1748
|
function u(g) {
|
|
@@ -1757,7 +1757,7 @@ function wt(e, t) {
|
|
|
1757
1757
|
toggleActive: u
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function vo(e, t, n, o, a, s, r, c, i) {
|
|
1761
1761
|
const y = we(a), p = we(a).reverse(), g = m().concat(d());
|
|
1762
1762
|
function f(E, C) {
|
|
1763
1763
|
return E.reduce((j, F) => j - a[F], C);
|
|
@@ -1774,13 +1774,13 @@ function ho(e, t, n, o, a, s, r, c, i) {
|
|
|
1774
1774
|
function v(E, C, j) {
|
|
1775
1775
|
const F = b(C);
|
|
1776
1776
|
return E.map((M) => {
|
|
1777
|
-
const
|
|
1777
|
+
const R = j ? 0 : -n, L = j ? n : 0, O = j ? "end" : "start", $ = F[M][O];
|
|
1778
1778
|
return {
|
|
1779
1779
|
index: M,
|
|
1780
|
-
loopPoint:
|
|
1780
|
+
loopPoint: $,
|
|
1781
1781
|
slideLocation: Ee(-1),
|
|
1782
1782
|
translate: wt(e, i[M]),
|
|
1783
|
-
target: () => c.get() >
|
|
1783
|
+
target: () => c.get() > $ ? R : L
|
|
1784
1784
|
};
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
@@ -1820,7 +1820,7 @@ function ho(e, t, n, o, a, s, r, c, i) {
|
|
|
1820
1820
|
loopPoints: g
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function yo(e, t, n) {
|
|
1824
1824
|
let o, a = !1;
|
|
1825
1825
|
function s(i) {
|
|
1826
1826
|
if (!n) return;
|
|
@@ -1845,7 +1845,7 @@ function go(e, t, n) {
|
|
|
1845
1845
|
destroy: r
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function xo(e, t, n, o) {
|
|
1849
1849
|
const a = {};
|
|
1850
1850
|
let s = null, r = null, c, i = !1;
|
|
1851
1851
|
function u() {
|
|
@@ -1882,7 +1882,7 @@ function bo(e, t, n, o) {
|
|
|
1882
1882
|
get: g
|
|
1883
1883
|
};
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function So(e, t, n, o, a, s) {
|
|
1886
1886
|
const {
|
|
1887
1887
|
measureSize: r,
|
|
1888
1888
|
startEdge: c,
|
|
@@ -1911,7 +1911,7 @@ function vo(e, t, n, o, a, s) {
|
|
|
1911
1911
|
endGap: p
|
|
1912
1912
|
};
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function _o(e, t, n, o, a, s, r, c, i) {
|
|
1915
1915
|
const {
|
|
1916
1916
|
startEdge: u,
|
|
1917
1917
|
endEdge: y,
|
|
@@ -1922,8 +1922,8 @@ function yo(e, t, n, o, a, s, r, c, i) {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
function h(m) {
|
|
1924
1924
|
return m.length ? we(m).reduce((d, x, w) => {
|
|
1925
|
-
const N = ne(d) || 0, P = N === 0, E = x === Ne(m), C = a[u] - s[N][u], j = a[u] - s[x][y], F = !o && P ? p(r) : 0, M = !o && E ? p(c) : 0,
|
|
1926
|
-
return w &&
|
|
1925
|
+
const N = ne(d) || 0, P = N === 0, E = x === Ne(m), C = a[u] - s[N][u], j = a[u] - s[x][y], F = !o && P ? p(r) : 0, M = !o && E ? p(c) : 0, R = z(j - M - (C + F));
|
|
1926
|
+
return w && R > t + i && d.push(x), E && d.push(m.length), d;
|
|
1927
1927
|
}, []).map((d, x, w) => {
|
|
1928
1928
|
const N = Math.max(w[x - 1] || 0);
|
|
1929
1929
|
return m.slice(N, d);
|
|
@@ -1936,7 +1936,7 @@ function yo(e, t, n, o, a, s, r, c, i) {
|
|
|
1936
1936
|
groupSlides: b
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function ko(e, t, n, o, a, s, r) {
|
|
1940
1940
|
const {
|
|
1941
1941
|
align: c,
|
|
1942
1942
|
axis: i,
|
|
@@ -1954,37 +1954,37 @@ function xo(e, t, n, o, a, s, r) {
|
|
|
1954
1954
|
watchSlides: w,
|
|
1955
1955
|
watchDrag: N,
|
|
1956
1956
|
watchFocus: P
|
|
1957
|
-
} = s, E = 2, C =
|
|
1957
|
+
} = s, E = 2, C = ro(), j = C.measure(t), F = n.map(C.measure), M = eo(i, u), R = M.measureSize(j), L = oo(R), O = Qr(c, R), $ = !p && !!d, J = p || !!d, {
|
|
1958
1958
|
slideSizes: Q,
|
|
1959
1959
|
slideSizesWithGaps: U,
|
|
1960
1960
|
startGap: X,
|
|
1961
1961
|
endGap: re
|
|
1962
|
-
} =
|
|
1962
|
+
} = So(M, j, F, n, J, a), l = _o(M, R, v, p, j, F, X, re, E), {
|
|
1963
1963
|
snaps: k,
|
|
1964
1964
|
snapsAligned: A
|
|
1965
|
-
} =
|
|
1965
|
+
} = mo(M, O, j, F, l), D = -ne(k) + ne(U), {
|
|
1966
1966
|
snapsContained: Z,
|
|
1967
1967
|
scrollContainLimit: H
|
|
1968
|
-
} =
|
|
1968
|
+
} = co(R, D, A, d, E), T = $ ? Z : A, {
|
|
1969
1969
|
limit: B
|
|
1970
|
-
} =
|
|
1970
|
+
} = lo(D, T, p), K = Ct(Ne(T), y, p), G = K.clone(), V = we(n), S = ({
|
|
1971
1971
|
dragHandler: pe,
|
|
1972
|
-
scrollBody:
|
|
1973
|
-
scrollBounds:
|
|
1972
|
+
scrollBody: Re,
|
|
1973
|
+
scrollBounds: $e,
|
|
1974
1974
|
options: {
|
|
1975
1975
|
loop: je
|
|
1976
1976
|
}
|
|
1977
1977
|
}) => {
|
|
1978
|
-
je ||
|
|
1979
|
-
},
|
|
1978
|
+
je || $e.constrain(pe.pointerDown()), Re.seek();
|
|
1979
|
+
}, I = ({
|
|
1980
1980
|
scrollBody: pe,
|
|
1981
|
-
translate:
|
|
1982
|
-
location:
|
|
1981
|
+
translate: Re,
|
|
1982
|
+
location: $e,
|
|
1983
1983
|
offsetLocation: je,
|
|
1984
1984
|
previousLocation: Nt,
|
|
1985
1985
|
scrollLooper: jt,
|
|
1986
|
-
slideLooper:
|
|
1987
|
-
dragHandler:
|
|
1986
|
+
slideLooper: It,
|
|
1987
|
+
dragHandler: Lt,
|
|
1988
1988
|
animation: Mt,
|
|
1989
1989
|
eventHandler: et,
|
|
1990
1990
|
scrollBounds: At,
|
|
@@ -1992,13 +1992,13 @@ function xo(e, t, n, o, a, s, r) {
|
|
|
1992
1992
|
loop: tt
|
|
1993
1993
|
}
|
|
1994
1994
|
}, nt) => {
|
|
1995
|
-
const rt = pe.settled(), Dt = !At.shouldConstrain(), ot = tt ? rt : rt && Dt, st = ot && !
|
|
1995
|
+
const rt = pe.settled(), Dt = !At.shouldConstrain(), ot = tt ? rt : rt && Dt, st = ot && !Lt.pointerDown();
|
|
1996
1996
|
st && Mt.stop();
|
|
1997
|
-
const
|
|
1998
|
-
je.set(
|
|
1999
|
-
}, W =
|
|
1997
|
+
const Ot = $e.get() * nt + Nt.get() * (1 - nt);
|
|
1998
|
+
je.set(Ot), tt && (jt.loop(pe.direction()), It.loop()), Re.to(je.get()), st && et.emit("settle"), ot || et.emit("scroll");
|
|
1999
|
+
}, W = Zr(o, a, () => S(Oe), (pe) => I(Oe, pe)), Y = 0.68, oe = T[K.get()], se = Ee(oe), le = Ee(oe), ie = Ee(oe), ue = Ee(oe), be = ao(se, ie, le, ue, g, Y), Ae = ho(p, T, D, B, ue), De = go(W, K, G, be, Ae, ue, r), Je = fo(B), Qe = Te(), Pt = xo(t, n, r, b), {
|
|
2000
2000
|
slideRegistry: Ze
|
|
2001
|
-
} =
|
|
2001
|
+
} = po($, d, T, H, l, V), Tt = bo(e, n, Ze, De, be, Qe, r, P), Oe = {
|
|
2002
2002
|
ownerDocument: o,
|
|
2003
2003
|
ownerWindow: a,
|
|
2004
2004
|
eventHandler: r,
|
|
@@ -2006,9 +2006,9 @@ function xo(e, t, n, o, a, s, r) {
|
|
|
2006
2006
|
slideRects: F,
|
|
2007
2007
|
animation: W,
|
|
2008
2008
|
axis: M,
|
|
2009
|
-
dragHandler:
|
|
2009
|
+
dragHandler: to(M, e, o, a, ue, no(M, a), se, W, De, be, Ae, K, r, L, f, h, m, Y, N),
|
|
2010
2010
|
eventStore: Qe,
|
|
2011
|
-
percentOfView:
|
|
2011
|
+
percentOfView: L,
|
|
2012
2012
|
index: K,
|
|
2013
2013
|
indexPrevious: G,
|
|
2014
2014
|
limit: B,
|
|
@@ -2016,18 +2016,18 @@ function xo(e, t, n, o, a, s, r) {
|
|
|
2016
2016
|
offsetLocation: ie,
|
|
2017
2017
|
previousLocation: le,
|
|
2018
2018
|
options: s,
|
|
2019
|
-
resizeHandler:
|
|
2019
|
+
resizeHandler: so(t, r, a, n, M, x, C),
|
|
2020
2020
|
scrollBody: be,
|
|
2021
|
-
scrollBounds:
|
|
2022
|
-
scrollLooper:
|
|
2021
|
+
scrollBounds: io(B, ie, ue, be, L),
|
|
2022
|
+
scrollLooper: uo(D, B, ie, [se, ie, le, ue]),
|
|
2023
2023
|
scrollProgress: Je,
|
|
2024
2024
|
scrollSnapList: T.map(Je.get),
|
|
2025
2025
|
scrollSnaps: T,
|
|
2026
2026
|
scrollTarget: Ae,
|
|
2027
2027
|
scrollTo: De,
|
|
2028
|
-
slideLooper:
|
|
2028
|
+
slideLooper: vo(M, R, D, Q, U, k, T, ie, n),
|
|
2029
2029
|
slideFocus: Tt,
|
|
2030
|
-
slidesHandler:
|
|
2030
|
+
slidesHandler: yo(t, r, w),
|
|
2031
2031
|
slidesInView: Pt,
|
|
2032
2032
|
slideIndexes: V,
|
|
2033
2033
|
slideRegistry: Ze,
|
|
@@ -2035,9 +2035,9 @@ function xo(e, t, n, o, a, s, r) {
|
|
|
2035
2035
|
target: ue,
|
|
2036
2036
|
translate: wt(M, t)
|
|
2037
2037
|
};
|
|
2038
|
-
return
|
|
2038
|
+
return Oe;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function Eo() {
|
|
2041
2041
|
let e = {}, t;
|
|
2042
2042
|
function n(u) {
|
|
2043
2043
|
t = u;
|
|
@@ -2066,7 +2066,7 @@ function So() {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
return i;
|
|
2068
2068
|
}
|
|
2069
|
-
const
|
|
2069
|
+
const Co = {
|
|
2070
2070
|
align: "center",
|
|
2071
2071
|
axis: "x",
|
|
2072
2072
|
container: null,
|
|
@@ -2088,7 +2088,7 @@ const _o = {
|
|
|
2088
2088
|
watchSlides: !0,
|
|
2089
2089
|
watchFocus: !0
|
|
2090
2090
|
};
|
|
2091
|
-
function
|
|
2091
|
+
function wo(e) {
|
|
2092
2092
|
function t(s, r) {
|
|
2093
2093
|
return Et(s, r || {});
|
|
2094
2094
|
}
|
|
@@ -2105,7 +2105,7 @@ function ko(e) {
|
|
|
2105
2105
|
optionsMediaQueries: o
|
|
2106
2106
|
};
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2108
|
+
function Po(e) {
|
|
2109
2109
|
let t = [];
|
|
2110
2110
|
function n(s, r) {
|
|
2111
2111
|
return t = r.filter(({
|
|
@@ -2122,8 +2122,8 @@ function Eo(e) {
|
|
|
2122
2122
|
destroy: o
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
const o = e.ownerDocument, a = o.defaultView, s =
|
|
2125
|
+
function Le(e, t, n) {
|
|
2126
|
+
const o = e.ownerDocument, a = o.defaultView, s = wo(a), r = Po(s), c = Te(), i = Eo(), {
|
|
2127
2127
|
mergeOptions: u,
|
|
2128
2128
|
optionsAtMedia: y,
|
|
2129
2129
|
optionsMediaQueries: p
|
|
@@ -2132,7 +2132,7 @@ function Ie(e, t, n) {
|
|
|
2132
2132
|
off: f,
|
|
2133
2133
|
emit: h
|
|
2134
2134
|
} = i, b = M;
|
|
2135
|
-
let v = !1, m, d = u(
|
|
2135
|
+
let v = !1, m, d = u(Co, Le.globalOptions), x = u(d), w = [], N, P, E;
|
|
2136
2136
|
function C() {
|
|
2137
2137
|
const {
|
|
2138
2138
|
container: V,
|
|
@@ -2143,42 +2143,42 @@ function Ie(e, t, n) {
|
|
|
2143
2143
|
E = [].slice.call(W || P.children);
|
|
2144
2144
|
}
|
|
2145
2145
|
function j(V) {
|
|
2146
|
-
const S =
|
|
2146
|
+
const S = ko(e, P, E, o, a, V, i);
|
|
2147
2147
|
if (V.loop && !S.slideLooper.canLoop()) {
|
|
2148
|
-
const
|
|
2148
|
+
const I = Object.assign({}, V, {
|
|
2149
2149
|
loop: !1
|
|
2150
2150
|
});
|
|
2151
|
-
return j(
|
|
2151
|
+
return j(I);
|
|
2152
2152
|
}
|
|
2153
2153
|
return S;
|
|
2154
2154
|
}
|
|
2155
2155
|
function F(V, S) {
|
|
2156
2156
|
v || (d = u(d, V), x = y(d), w = S || w, C(), m = j(x), p([d, ...w.map(({
|
|
2157
|
-
options:
|
|
2158
|
-
}) =>
|
|
2157
|
+
options: I
|
|
2158
|
+
}) => I)]).forEach((I) => c.add(I, "change", M)), x.active && (m.translate.to(m.location.get()), m.animation.init(), m.slidesInView.init(), m.slideFocus.init(G), m.eventHandler.init(G), m.resizeHandler.init(G), m.slidesHandler.init(G), m.options.loop && m.slideLooper.loop(), P.offsetParent && E.length && m.dragHandler.init(G), N = r.init(G, w)));
|
|
2159
2159
|
}
|
|
2160
2160
|
function M(V, S) {
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2163
|
-
startIndex:
|
|
2161
|
+
const I = l();
|
|
2162
|
+
R(), F(u({
|
|
2163
|
+
startIndex: I
|
|
2164
2164
|
}, V), S), i.emit("reInit");
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function R() {
|
|
2167
2167
|
m.dragHandler.destroy(), m.eventStore.clear(), m.translate.clear(), m.slideLooper.clear(), m.resizeHandler.destroy(), m.slidesHandler.destroy(), m.slidesInView.destroy(), m.animation.destroy(), r.destroy(), c.clear();
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2170
|
-
v || (v = !0, c.clear(),
|
|
2169
|
+
function L() {
|
|
2170
|
+
v || (v = !0, c.clear(), R(), i.emit("destroy"), i.clear());
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2173
|
-
!x.active || v || (m.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : x.duration), m.scrollTo.index(V,
|
|
2172
|
+
function O(V, S, I) {
|
|
2173
|
+
!x.active || v || (m.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : x.duration), m.scrollTo.index(V, I || 0));
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function $(V) {
|
|
2176
2176
|
const S = m.index.add(1).get();
|
|
2177
|
-
|
|
2177
|
+
O(S, V, -1);
|
|
2178
2178
|
}
|
|
2179
2179
|
function J(V) {
|
|
2180
2180
|
const S = m.index.add(-1).get();
|
|
2181
|
-
|
|
2181
|
+
O(S, V, 1);
|
|
2182
2182
|
}
|
|
2183
2183
|
function Q() {
|
|
2184
2184
|
return m.index.add(1).get() !== l();
|
|
@@ -2224,7 +2224,7 @@ function Ie(e, t, n) {
|
|
|
2224
2224
|
canScrollPrev: U,
|
|
2225
2225
|
containerNode: B,
|
|
2226
2226
|
internalEngine: H,
|
|
2227
|
-
destroy:
|
|
2227
|
+
destroy: L,
|
|
2228
2228
|
off: f,
|
|
2229
2229
|
on: g,
|
|
2230
2230
|
emit: h,
|
|
@@ -2232,11 +2232,11 @@ function Ie(e, t, n) {
|
|
|
2232
2232
|
previousScrollSnap: k,
|
|
2233
2233
|
reInit: b,
|
|
2234
2234
|
rootNode: T,
|
|
2235
|
-
scrollNext:
|
|
2235
|
+
scrollNext: $,
|
|
2236
2236
|
scrollPrev: J,
|
|
2237
2237
|
scrollProgress: re,
|
|
2238
2238
|
scrollSnapList: X,
|
|
2239
|
-
scrollTo:
|
|
2239
|
+
scrollTo: O,
|
|
2240
2240
|
selectedScrollSnap: l,
|
|
2241
2241
|
slideNodes: K,
|
|
2242
2242
|
slidesInView: A,
|
|
@@ -2244,7 +2244,7 @@ function Ie(e, t, n) {
|
|
|
2244
2244
|
};
|
|
2245
2245
|
return F(t, n), setTimeout(() => i.emit("init"), 0), G;
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2247
|
+
Le.globalOptions = void 0;
|
|
2248
2248
|
function Xe(e = {}, t = []) {
|
|
2249
2249
|
const n = Ve(e), o = Ve(t), [a, s] = fe(), [r, c] = fe(), i = te(() => {
|
|
2250
2250
|
a && a.reInit(n.current, o.current);
|
|
@@ -2252,33 +2252,33 @@ function Xe(e = {}, t = []) {
|
|
|
2252
2252
|
return ae(() => {
|
|
2253
2253
|
Ge(n.current, e) || (n.current = e, i());
|
|
2254
2254
|
}, [e, i]), ae(() => {
|
|
2255
|
-
|
|
2255
|
+
Ur(o.current, t) || (o.current = t, i());
|
|
2256
2256
|
}, [t, i]), ae(() => {
|
|
2257
|
-
if (
|
|
2258
|
-
|
|
2259
|
-
const u =
|
|
2257
|
+
if (Kr() && r) {
|
|
2258
|
+
Le.globalOptions = Xe.globalOptions;
|
|
2259
|
+
const u = Le(r, n.current, o.current);
|
|
2260
2260
|
return s(u), () => u.destroy();
|
|
2261
2261
|
} else
|
|
2262
2262
|
s(void 0);
|
|
2263
2263
|
}, [r, s]), [c, a];
|
|
2264
2264
|
}
|
|
2265
2265
|
Xe.globalOptions = void 0;
|
|
2266
|
-
const
|
|
2267
|
-
carouselContainer:
|
|
2268
|
-
viewport:
|
|
2269
|
-
slides:
|
|
2270
|
-
slide:
|
|
2271
|
-
slideInner:
|
|
2272
|
-
loaderOverlay:
|
|
2273
|
-
image:
|
|
2274
|
-
loaded:
|
|
2275
|
-
empty:
|
|
2276
|
-
controls:
|
|
2277
|
-
arrows:
|
|
2278
|
-
dots:
|
|
2279
|
-
dot:
|
|
2280
|
-
dotActive:
|
|
2281
|
-
},
|
|
2266
|
+
const To = "_carouselContainer_1bu1s_1", No = "_viewport_1bu1s_11", jo = "_slides_1bu1s_17", Io = "_slide_1bu1s_17", Lo = "_slideInner_1bu1s_37", Mo = "_loaderOverlay_1bu1s_45", Ao = "_image_1bu1s_55", Do = "_loaded_1bu1s_66", Oo = "_empty_1bu1s_78", Ro = "_controls_1bu1s_84", $o = "_arrows_1bu1s_94", Fo = "_dots_1bu1s_104", Bo = "_dot_1bu1s_104", Vo = "_dotActive_1bu1s_130", q = {
|
|
2267
|
+
carouselContainer: To,
|
|
2268
|
+
viewport: No,
|
|
2269
|
+
slides: jo,
|
|
2270
|
+
slide: Io,
|
|
2271
|
+
slideInner: Lo,
|
|
2272
|
+
loaderOverlay: Mo,
|
|
2273
|
+
image: Ao,
|
|
2274
|
+
loaded: Do,
|
|
2275
|
+
empty: Oo,
|
|
2276
|
+
controls: Ro,
|
|
2277
|
+
arrows: $o,
|
|
2278
|
+
dots: Fo,
|
|
2279
|
+
dot: Bo,
|
|
2280
|
+
dotActive: Vo
|
|
2281
|
+
}, Wo = Xt, zo = ({
|
|
2282
2282
|
images: e,
|
|
2283
2283
|
autoPlay: t = !1,
|
|
2284
2284
|
autoDelay: n = 5,
|
|
@@ -2300,14 +2300,14 @@ const Co = "_carouselContainer_1bu1s_1", wo = "_viewport_1bu1s_11", Po = "_slide
|
|
|
2300
2300
|
ae(() => {
|
|
2301
2301
|
x(new Array((e == null ? void 0 : e.length) || 0).fill(!1));
|
|
2302
2302
|
}, [e]);
|
|
2303
|
-
const w = te((
|
|
2304
|
-
x((
|
|
2305
|
-
const
|
|
2306
|
-
return
|
|
2303
|
+
const w = te((L) => {
|
|
2304
|
+
x((O) => {
|
|
2305
|
+
const $ = [...O];
|
|
2306
|
+
return $[L] = !0, $;
|
|
2307
2307
|
});
|
|
2308
2308
|
}, []), N = ke(() => n * 1e3, [n]), P = te(() => {
|
|
2309
2309
|
f && b(f.selectedScrollSnap());
|
|
2310
|
-
}, [f]), E = te((
|
|
2310
|
+
}, [f]), E = te((L) => f && f.scrollTo(L), [f]), C = te(() => f && f.scrollPrev(), [f]), j = te(() => f && f.scrollNext(), [f]);
|
|
2311
2311
|
ae(() => {
|
|
2312
2312
|
if (f)
|
|
2313
2313
|
return f.on("select", P), f.on("reInit", P), m(f.scrollSnapList()), () => {
|
|
@@ -2317,14 +2317,14 @@ const Co = "_carouselContainer_1bu1s_1", wo = "_viewport_1bu1s_11", Po = "_slide
|
|
|
2317
2317
|
f && (f.reInit(), m(f.scrollSnapList()));
|
|
2318
2318
|
}, [f, e, r, c]), ae(() => {
|
|
2319
2319
|
if (!t || !f || !e || e.length <= 1) return;
|
|
2320
|
-
const
|
|
2320
|
+
const L = window.setInterval(() => {
|
|
2321
2321
|
f.canScrollNext() && f.scrollNext();
|
|
2322
2322
|
}, N);
|
|
2323
2323
|
return () => {
|
|
2324
|
-
window.clearInterval(
|
|
2324
|
+
window.clearInterval(L);
|
|
2325
2325
|
};
|
|
2326
2326
|
}, [t, N, f, e]);
|
|
2327
|
-
const F = Math.max(1, r), M = `${100 / F}%`,
|
|
2327
|
+
const F = Math.max(1, r), M = `${100 / F}%`, R = c / 2;
|
|
2328
2328
|
return /* @__PURE__ */ _.jsxs(
|
|
2329
2329
|
"div",
|
|
2330
2330
|
{
|
|
@@ -2338,40 +2338,40 @@ const Co = "_carouselContainer_1bu1s_1", wo = "_viewport_1bu1s_11", Po = "_slide
|
|
|
2338
2338
|
{
|
|
2339
2339
|
className: q.slides,
|
|
2340
2340
|
style: {
|
|
2341
|
-
marginLeft: `-${
|
|
2342
|
-
marginRight: `-${
|
|
2341
|
+
marginLeft: `-${R}px`,
|
|
2342
|
+
marginRight: `-${R}px`
|
|
2343
2343
|
},
|
|
2344
|
-
children: e && e.length > 0 ? e.map((
|
|
2344
|
+
children: e && e.length > 0 ? e.map((L, O) => /* @__PURE__ */ _.jsx(
|
|
2345
2345
|
"div",
|
|
2346
2346
|
{
|
|
2347
2347
|
className: q.slide,
|
|
2348
2348
|
style: {
|
|
2349
2349
|
flex: `0 0 ${M}`,
|
|
2350
|
-
paddingLeft: `${
|
|
2351
|
-
paddingRight: `${
|
|
2350
|
+
paddingLeft: `${R}px`,
|
|
2351
|
+
paddingRight: `${R}px`,
|
|
2352
2352
|
borderRadius: i > 0 ? `${i}px` : void 0,
|
|
2353
2353
|
overflow: "hidden"
|
|
2354
2354
|
// Ensure radius clips content
|
|
2355
2355
|
},
|
|
2356
2356
|
children: /* @__PURE__ */ _.jsxs("div", { className: q.slideInner, style: { borderRadius: `${i}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2357
|
-
!d[
|
|
2357
|
+
!d[O] && /* @__PURE__ */ _.jsx("div", { className: q.loaderOverlay, children: /* @__PURE__ */ _.jsx(Wo, { "aria-label": "Laster bilde" }) }),
|
|
2358
2358
|
/* @__PURE__ */ _.jsx(
|
|
2359
2359
|
"img",
|
|
2360
2360
|
{
|
|
2361
|
-
className: `${q.image} ${d[
|
|
2362
|
-
src:
|
|
2363
|
-
alt:
|
|
2364
|
-
loading:
|
|
2361
|
+
className: `${q.image} ${d[O] ? q.loaded : q.loadingImage}`,
|
|
2362
|
+
src: L.src,
|
|
2363
|
+
alt: L.alt,
|
|
2364
|
+
loading: O < F ? "eager" : "lazy",
|
|
2365
2365
|
crossOrigin: "anonymous",
|
|
2366
|
-
onLoad: () => w(
|
|
2367
|
-
onError: (
|
|
2368
|
-
|
|
2366
|
+
onLoad: () => w(O),
|
|
2367
|
+
onError: ($) => {
|
|
2368
|
+
$.target.style.display = "none", w(O);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
2372
2372
|
] })
|
|
2373
2373
|
},
|
|
2374
|
-
`image-${
|
|
2374
|
+
`image-${O}-${L.src}`
|
|
2375
2375
|
)) : /* @__PURE__ */ _.jsx("div", { className: q.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ _.jsx("div", { className: q.empty, children: "Ingen bilder" }) })
|
|
2376
2376
|
}
|
|
2377
2377
|
) }),
|
|
@@ -2385,7 +2385,7 @@ const Co = "_carouselContainer_1bu1s_1", wo = "_viewport_1bu1s_11", Po = "_slide
|
|
|
2385
2385
|
"aria-label": "Forrige bilde",
|
|
2386
2386
|
onClick: C,
|
|
2387
2387
|
disabled: !e || e.length <= 1,
|
|
2388
|
-
children: /* @__PURE__ */ _.jsx(
|
|
2388
|
+
children: /* @__PURE__ */ _.jsx(Fn, { "aria-hidden": !0 })
|
|
2389
2389
|
}
|
|
2390
2390
|
),
|
|
2391
2391
|
/* @__PURE__ */ _.jsx(
|
|
@@ -2396,23 +2396,23 @@ const Co = "_carouselContainer_1bu1s_1", wo = "_viewport_1bu1s_11", Po = "_slide
|
|
|
2396
2396
|
"aria-label": "Neste bilde",
|
|
2397
2397
|
onClick: j,
|
|
2398
2398
|
disabled: !e || e.length <= 1,
|
|
2399
|
-
children: /* @__PURE__ */ _.jsx(
|
|
2399
|
+
children: /* @__PURE__ */ _.jsx(Bn, { "aria-hidden": !0 })
|
|
2400
2400
|
}
|
|
2401
2401
|
)
|
|
2402
2402
|
] }),
|
|
2403
|
-
a && e && e.length > 1 && /* @__PURE__ */ _.jsx("div", { className: q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((
|
|
2404
|
-
const
|
|
2403
|
+
a && e && e.length > 1 && /* @__PURE__ */ _.jsx("div", { className: q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((L, O) => {
|
|
2404
|
+
const $ = O === h;
|
|
2405
2405
|
return /* @__PURE__ */ _.jsx(
|
|
2406
2406
|
"button",
|
|
2407
2407
|
{
|
|
2408
2408
|
type: "button",
|
|
2409
|
-
className: `${q.dot} ${
|
|
2410
|
-
onClick: () => E(
|
|
2411
|
-
"aria-label": `Gå til bilde ${
|
|
2412
|
-
"aria-selected":
|
|
2409
|
+
className: `${q.dot} ${$ ? q.dotActive : ""}`,
|
|
2410
|
+
onClick: () => E(O),
|
|
2411
|
+
"aria-label": `Gå til bilde ${O + 1}`,
|
|
2412
|
+
"aria-selected": $,
|
|
2413
2413
|
role: "tab"
|
|
2414
2414
|
},
|
|
2415
|
-
`dot-${
|
|
2415
|
+
`dot-${O}`
|
|
2416
2416
|
);
|
|
2417
2417
|
}) })
|
|
2418
2418
|
] })
|
|
@@ -2420,73 +2420,77 @@ const Co = "_carouselContainer_1bu1s_1", wo = "_viewport_1bu1s_11", Po = "_slide
|
|
|
2420
2420
|
}
|
|
2421
2421
|
);
|
|
2422
2422
|
};
|
|
2423
|
-
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2429
|
-
const
|
|
2430
|
-
|
|
2431
|
-
const
|
|
2423
|
+
zo.displayName = "Carousel";
|
|
2424
|
+
const ls = Jt, us = Qt, ds = Zt, fs = en, ms = tn, ps = on, Ho = nn, Yo = rn;
|
|
2425
|
+
Ho.displayName = "Field.Description";
|
|
2426
|
+
Yo.displayName = "Field.Counter";
|
|
2427
|
+
const hs = yt, Go = ce((e, t) => /* @__PURE__ */ _.jsx(sn, { ref: t, ...e }));
|
|
2428
|
+
Go.displayName = "Heading";
|
|
2429
|
+
const gs = an, qo = ce((e, t) => /* @__PURE__ */ _.jsx(cn, { ref: t, ...e }));
|
|
2430
|
+
qo.displayName = "Label";
|
|
2431
|
+
const bs = ln, vs = un, ys = dn, xs = fn, Ko = ce(
|
|
2432
2432
|
(e, t) => /* @__PURE__ */ _.jsx(mn, { ref: t, ...e })
|
|
2433
2433
|
);
|
|
2434
|
-
|
|
2435
|
-
const
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2434
|
+
Ko.displayName = "Paragraph";
|
|
2435
|
+
const Ss = pn, _s = hn, ks = gn, Es = Object.assign(bn, {
|
|
2436
|
+
Button: xn,
|
|
2437
|
+
ClearButton: yn,
|
|
2438
|
+
Input: vn
|
|
2439
|
+
}), Cs = Sn, ws = _n, Ps = kn, Uo = En;
|
|
2440
|
+
Uo.displayName = "Suggestion";
|
|
2441
|
+
const Ts = Cn, Ns = wn, js = Pn, Is = Tn, Ls = Nn, Ms = jn, As = In, Ds = Ln, Xo = ce((e, t) => /* @__PURE__ */ _.jsx(Mn, { ref: t, ...e }));
|
|
2442
|
+
Xo.displayName = "ValidationMessage";
|
|
2439
2443
|
export {
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2444
|
+
Hn as Alert,
|
|
2445
|
+
Yn as Avatar,
|
|
2446
|
+
Gn as Badge,
|
|
2447
|
+
ts as BadgePosition,
|
|
2448
|
+
ns as Breadcrumbs,
|
|
2449
|
+
os as BreadcrumbsItem,
|
|
2450
|
+
ss as BreadcrumbsLink,
|
|
2451
|
+
rs as BreadcrumbsList,
|
|
2448
2452
|
ze as Button,
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2453
|
+
qn as Card,
|
|
2454
|
+
as as CardBlock,
|
|
2455
|
+
zo as Carousel,
|
|
2456
|
+
Kn as Checkbox,
|
|
2457
|
+
cs as Chip,
|
|
2458
|
+
Gr as DateInput,
|
|
2459
|
+
$r as DatePicker,
|
|
2460
|
+
ls as Details,
|
|
2461
|
+
us as Dialog,
|
|
2462
|
+
ds as Divider,
|
|
2463
|
+
fs as Dropdown,
|
|
2464
|
+
ms as ErrorSummary,
|
|
2465
|
+
ps as Field,
|
|
2466
|
+
Yo as FieldCounter,
|
|
2467
|
+
Ho as FieldDescription,
|
|
2468
|
+
hs as Fieldset,
|
|
2469
|
+
Go as Heading,
|
|
2470
|
+
gs as Input,
|
|
2471
|
+
qo as Label,
|
|
2472
|
+
bs as Link,
|
|
2473
|
+
vs as List,
|
|
2474
|
+
ys as Pagination,
|
|
2475
|
+
Ko as Paragraph,
|
|
2476
|
+
Ss as Popover,
|
|
2477
|
+
_s as Radio,
|
|
2478
|
+
Es as Search,
|
|
2479
|
+
Cs as Select,
|
|
2480
|
+
ws as SkeletonLoader,
|
|
2481
|
+
Ps as SkipLink,
|
|
2482
|
+
Wo as Spinner,
|
|
2483
|
+
Uo as Suggestion,
|
|
2484
|
+
Ts as Switch,
|
|
2485
|
+
Ns as Table,
|
|
2486
|
+
js as Tabs,
|
|
2487
|
+
Is as Tag,
|
|
2488
|
+
Ls as Textarea,
|
|
2489
|
+
Ms as Textfield,
|
|
2490
|
+
As as ToggleGroup,
|
|
2491
|
+
Ds as Tooltip,
|
|
2492
|
+
Xo as ValidationMessage,
|
|
2493
|
+
is as useCheckboxGroup,
|
|
2494
|
+
xs as usePagination,
|
|
2495
|
+
ks as useRadioGroup
|
|
2492
2496
|
};
|