rk-designsystem 1.1.85 → 1.1.87
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 +639 -450
- package/dist/componentlibrary.umd.js +189 -11
- package/dist/rk-designsystem.css +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as r, jsxs as _, Fragment as Vt } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Alert as Yt, Avatar as qt, BadgePosition as Zt, Badge as Xt, Breadcrumbs as Jt, BreadcrumbsList as Qt, BreadcrumbsItem as en, BreadcrumbsLink as tn, Button as qe, Card as nn, CardBlock as on, Checkbox as rn, useCheckboxGroup as sn, Fieldset as Dt, Chip as an, Spinner as ln, Details as dn, Dialog as cn, Divider as un, Dropdown as pn, DropdownTrigger as mn, DropdownTriggerContext as gn, DropdownHeading as
|
|
2
|
+
import ze, { forwardRef as he, useState as oe, createContext as Kt, useContext as It, useEffect as Y, useMemo as Te, useCallback as se, useRef as Ye } from "react";
|
|
3
|
+
import { Alert as Yt, Avatar as qt, BadgePosition as Zt, Badge as Xt, Breadcrumbs as Jt, BreadcrumbsList as Qt, BreadcrumbsItem as en, BreadcrumbsLink as tn, Button as qe, Card as nn, CardBlock as on, Checkbox as rn, useCheckboxGroup as sn, Fieldset as Dt, Chip as an, Spinner as ln, Details as dn, Dialog as cn, Divider as un, Dropdown as pn, DropdownTrigger as mn, DropdownTriggerContext as gn, DropdownHeading as hn, DropdownList as fn, DropdownItem as kn, DropdownButton as vn, ErrorSummary as yn, Field as bn, FieldDescription as xn, FieldCounter as Tn, Heading as Sn, Input as Cn, Label as wn, Link as In, List as Dn, Pagination as _n, PaginationList as An, PaginationItem as Mn, PaginationButton as Ln, usePagination as jn, Paragraph as En, Popover as Fn, Radio as Nn, useRadioGroup as Bn, Search as zn, SearchInput as Pn, SearchClear as $n, SearchButton as Rn, Select as Gn, Skeleton as Wn, SkipLink as Hn, EXPERIMENTAL_Suggestion as Un, Switch as On, Table as Vn, Tabs as Kn, Tag as Yn, Textarea as qn, Textfield as Zn, ToggleGroup as Xn, Tooltip as Jn, ValidationMessage as Qn } from "@digdir/designsystemet-react";
|
|
4
4
|
import { startOfMonth as be, isValid as Oe, isSameMonth as gt, startOfWeek as _t, format as we, addDays as At, subMonths as eo, addMonths as to, isSameDay as no, isToday as oo, eachDayOfInterval as ro } from "date-fns";
|
|
5
|
-
import { ChevronLeftIcon as so, ChevronRightIcon as io, ChevronDownIcon as
|
|
6
|
-
const co =
|
|
5
|
+
import { ChevronLeftIcon as so, ChevronRightIcon as io, ChevronDownIcon as ht, XMarkIcon as ft, MagnifyingGlassIcon as kt, MenuHamburgerIcon as ao, HeartIcon as lo } from "@navikt/aksel-icons";
|
|
6
|
+
const co = he((t, e) => /* @__PURE__ */ r(Yt, { ref: e, ...t }));
|
|
7
7
|
co.displayName = "Alert";
|
|
8
|
-
const Mt =
|
|
8
|
+
const Mt = he((t, e) => /* @__PURE__ */ r(qt, { ref: e, ...t }));
|
|
9
9
|
Mt.displayName = "Avatar";
|
|
10
|
-
const uo =
|
|
10
|
+
const uo = he((t, e) => /* @__PURE__ */ r(Xt, { ref: e, ...t }));
|
|
11
11
|
uo.displayName = "Badge";
|
|
12
|
-
const
|
|
12
|
+
const na = Zt, oa = Jt, ra = Qt, sa = en, ia = tn, Se = qe;
|
|
13
13
|
Se.displayName = "Button";
|
|
14
|
-
const po = nn,
|
|
14
|
+
const po = nn, aa = on;
|
|
15
15
|
po.displayName = "Card";
|
|
16
|
-
const mo = rn, go = Dt,
|
|
16
|
+
const mo = rn, go = Dt, la = sn;
|
|
17
17
|
mo.displayName = "Checkbox";
|
|
18
18
|
go.displayName = "Fieldset";
|
|
19
|
-
const
|
|
19
|
+
const da = an;
|
|
20
20
|
function Ve(t) {
|
|
21
21
|
return (e = {}) => {
|
|
22
22
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
@@ -43,9 +43,9 @@ function De(t) {
|
|
|
43
43
|
const s = n.width, l = s && t.matchPatterns[s] || t.matchPatterns[t.defaultMatchWidth], i = e.match(l);
|
|
44
44
|
if (!i)
|
|
45
45
|
return null;
|
|
46
|
-
const o = i[0], c = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ?
|
|
46
|
+
const o = i[0], c = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? fo(c, (m) => m.test(o)) : (
|
|
47
47
|
// [TODO] -- I challenge you to fix the type
|
|
48
|
-
|
|
48
|
+
ho(c, (m) => m.test(o))
|
|
49
49
|
);
|
|
50
50
|
let u;
|
|
51
51
|
u = t.valueCallback ? t.valueCallback(d) : d, u = n.valueCallback ? (
|
|
@@ -56,12 +56,12 @@ function De(t) {
|
|
|
56
56
|
return { value: u, rest: v };
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ho(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 fo(t, e) {
|
|
65
65
|
for (let n = 0; n < t.length; n++)
|
|
66
66
|
if (e(t[n]))
|
|
67
67
|
return n;
|
|
@@ -290,11 +290,11 @@ const vo = {
|
|
|
290
290
|
wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
|
|
291
291
|
}, Bo = {
|
|
292
292
|
any: [/^f/i, /^e/i]
|
|
293
|
-
},
|
|
293
|
+
}, zo = {
|
|
294
294
|
narrow: /^[1234]/i,
|
|
295
295
|
abbreviated: /^q[1234]/i,
|
|
296
296
|
wide: /^[1234](\.)? kvartal/i
|
|
297
|
-
},
|
|
297
|
+
}, Po = {
|
|
298
298
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
299
299
|
}, $o = {
|
|
300
300
|
narrow: /^[jfmasond]/i,
|
|
@@ -363,9 +363,9 @@ const vo = {
|
|
|
363
363
|
defaultParseWidth: "any"
|
|
364
364
|
}),
|
|
365
365
|
quarter: De({
|
|
366
|
-
matchPatterns:
|
|
366
|
+
matchPatterns: zo,
|
|
367
367
|
defaultMatchWidth: "wide",
|
|
368
|
-
parsePatterns:
|
|
368
|
+
parsePatterns: Po,
|
|
369
369
|
defaultParseWidth: "any",
|
|
370
370
|
valueCallback: (t) => t + 1
|
|
371
371
|
}),
|
|
@@ -450,7 +450,7 @@ const jt = ({ title: t, ...e }) => /* @__PURE__ */ _(
|
|
|
450
450
|
}
|
|
451
451
|
);
|
|
452
452
|
jt.displayName = "ChevronRightIcon";
|
|
453
|
-
const Vo = "
|
|
453
|
+
const Vo = "_calendarContainer_htlea_1", Ko = "_calendarHeader_htlea_16", Yo = "_monthYear_htlea_23", qo = "_navigationButtons_htlea_34", Zo = "_grid_htlea_43", Xo = "_dayNameCell_htlea_51", Jo = "_dateCell_htlea_69", Qo = "_dateNumberContainer_htlea_95", er = "_otherMonth_htlea_108", tr = "_disabled_htlea_108", nr = "_selectedDate_htlea_134", ne = {
|
|
454
454
|
calendarContainer: Vo,
|
|
455
455
|
calendarHeader: Ko,
|
|
456
456
|
monthYear: Yo,
|
|
@@ -2453,7 +2453,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2453
2453
|
openDatePicker: "Open date picker"
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
|
-
}, Qe = Kt(void 0),
|
|
2456
|
+
}, Qe = Kt(void 0), ca = ({ children: t }) => {
|
|
2457
2457
|
const [e, n] = oe("NO"), s = (l) => {
|
|
2458
2458
|
const i = l.split(".");
|
|
2459
2459
|
let o = or[e];
|
|
@@ -2465,7 +2465,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2465
2465
|
return o;
|
|
2466
2466
|
};
|
|
2467
2467
|
return /* @__PURE__ */ r(Qe.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
|
|
2468
|
-
},
|
|
2468
|
+
}, ua = () => {
|
|
2469
2469
|
const t = It(Qe);
|
|
2470
2470
|
if (t === void 0)
|
|
2471
2471
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
@@ -2544,8 +2544,8 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2544
2544
|
Y(() => {
|
|
2545
2545
|
const g = "rk-datepicker-inline-styles";
|
|
2546
2546
|
if (typeof document > "u" || document.getElementById(g)) return;
|
|
2547
|
-
const
|
|
2548
|
-
D.id = g, D.textContent =
|
|
2547
|
+
const L = ir(ne), D = document.createElement("style");
|
|
2548
|
+
D.id = g, D.textContent = L, document.head.appendChild(D);
|
|
2549
2549
|
}, []);
|
|
2550
2550
|
const [o, c] = oe(
|
|
2551
2551
|
be(e && Oe(e) ? e : t)
|
|
@@ -2561,11 +2561,11 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2561
2561
|
[o]
|
|
2562
2562
|
), m = Te(() => {
|
|
2563
2563
|
const g = _t(/* @__PURE__ */ new Date(), { locale: xe });
|
|
2564
|
-
return Array.from({ length: 7 }).map((
|
|
2564
|
+
return Array.from({ length: 7 }).map((L, D) => {
|
|
2565
2565
|
const w = we(At(g, D), "EEEEEE", { locale: xe });
|
|
2566
2566
|
return vt(w);
|
|
2567
2567
|
});
|
|
2568
|
-
}, []),
|
|
2568
|
+
}, []), h = se(() => {
|
|
2569
2569
|
u || c((g) => be(eo(g, 1)));
|
|
2570
2570
|
}, [u]), x = se(() => {
|
|
2571
2571
|
c((g) => be(to(g, 1)));
|
|
@@ -2574,9 +2574,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2574
2574
|
n && n(g);
|
|
2575
2575
|
},
|
|
2576
2576
|
[n]
|
|
2577
|
-
),
|
|
2578
|
-
(g,
|
|
2579
|
-
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), a(
|
|
2577
|
+
), f = se(
|
|
2578
|
+
(g, L) => {
|
|
2579
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), a(L));
|
|
2580
2580
|
},
|
|
2581
2581
|
[a]
|
|
2582
2582
|
), k = we(o, "MMMM", { locale: xe }), p = we(o, "yyyy", { locale: xe }), y = `${vt(k)} ${p}`;
|
|
@@ -2595,7 +2595,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2595
2595
|
{
|
|
2596
2596
|
variant: "tertiary",
|
|
2597
2597
|
icon: !0,
|
|
2598
|
-
onClick:
|
|
2598
|
+
onClick: h,
|
|
2599
2599
|
"aria-label": i("datePicker.previousMonth"),
|
|
2600
2600
|
disabled: u,
|
|
2601
2601
|
children: /* @__PURE__ */ r(Lt, {})
|
|
@@ -2615,9 +2615,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2615
2615
|
] }),
|
|
2616
2616
|
/* @__PURE__ */ r("div", { className: ne.grid, children: m.map((g) => /* @__PURE__ */ r("div", { className: ne.dayNameCell, children: g }, g)) }),
|
|
2617
2617
|
/* @__PURE__ */ r("div", { className: ne.grid, children: v.map((g) => {
|
|
2618
|
-
const
|
|
2618
|
+
const L = gt(g, o), D = e && Oe(e) && no(g, e), w = oo(g), C = [
|
|
2619
2619
|
ne.dateCell,
|
|
2620
|
-
|
|
2620
|
+
L ? "" : ne.otherMonth,
|
|
2621
2621
|
D ? ne.selectedDate : "",
|
|
2622
2622
|
// Utheving basert på prop
|
|
2623
2623
|
w && !D ? ne.todayDate : ""
|
|
@@ -2627,7 +2627,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2627
2627
|
{
|
|
2628
2628
|
className: C,
|
|
2629
2629
|
onClick: () => a(g),
|
|
2630
|
-
onKeyDown: (A) =>
|
|
2630
|
+
onKeyDown: (A) => f(A, g),
|
|
2631
2631
|
role: "button",
|
|
2632
2632
|
tabIndex: 0,
|
|
2633
2633
|
"aria-pressed": D ?? !1,
|
|
@@ -2684,6 +2684,7 @@ function ir(t) {
|
|
|
2684
2684
|
grid-template-columns: repeat(7, 1fr);
|
|
2685
2685
|
width: 100%;
|
|
2686
2686
|
text-align: center;
|
|
2687
|
+
overflow: hidden;
|
|
2687
2688
|
}
|
|
2688
2689
|
.${t.dayNameCell} {
|
|
2689
2690
|
display: flex;
|
|
@@ -2698,6 +2699,7 @@ function ir(t) {
|
|
|
2698
2699
|
font-weight: var(--ds-font-weight-semibold, 600);
|
|
2699
2700
|
line-height: var(--ds-body-short-xs-line-height, 1.3);
|
|
2700
2701
|
box-sizing: border-box;
|
|
2702
|
+
min-width: 0;
|
|
2701
2703
|
}
|
|
2702
2704
|
.${t.dateCell} {
|
|
2703
2705
|
display: flex;
|
|
@@ -2717,6 +2719,7 @@ function ir(t) {
|
|
|
2717
2719
|
cursor: pointer;
|
|
2718
2720
|
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
2719
2721
|
user-select: none;
|
|
2722
|
+
min-width: 0;
|
|
2720
2723
|
}
|
|
2721
2724
|
.${t.dateNumberContainer} {
|
|
2722
2725
|
display: flex;
|
|
@@ -2762,6 +2765,7 @@ function ir(t) {
|
|
|
2762
2765
|
.${t.calendarContainer} {
|
|
2763
2766
|
padding: var(--ds-size-4, 16px);
|
|
2764
2767
|
gap: var(--ds-size-2, 8px);
|
|
2768
|
+
width: 100%;
|
|
2765
2769
|
}
|
|
2766
2770
|
.${t.monthYear} {
|
|
2767
2771
|
font-size: var(--ds-heading-xs-font-size, 1.125rem);
|
|
@@ -2771,7 +2775,7 @@ function ir(t) {
|
|
|
2771
2775
|
font-size: var(--ds-body-2xs-font-size, 12px);
|
|
2772
2776
|
}
|
|
2773
2777
|
.${t.dateCell} {
|
|
2774
|
-
padding: var(--ds-size-
|
|
2778
|
+
padding: var(--ds-size-2, 8px);
|
|
2775
2779
|
font-size: var(--ds-body-2xs-font-size, 12px);
|
|
2776
2780
|
}
|
|
2777
2781
|
.${t.dateNumberContainer} {
|
|
@@ -2781,14 +2785,19 @@ function ir(t) {
|
|
|
2781
2785
|
}
|
|
2782
2786
|
@media (max-width: 360px) {
|
|
2783
2787
|
.${t.calendarContainer} {
|
|
2784
|
-
padding: var(--ds-size-
|
|
2788
|
+
padding: var(--ds-size-2, 8px);
|
|
2789
|
+
}
|
|
2790
|
+
.${t.dayNameCell} {
|
|
2791
|
+
padding: 2px;
|
|
2792
|
+
font-size: 10px;
|
|
2785
2793
|
}
|
|
2786
2794
|
.${t.dateCell} {
|
|
2787
|
-
padding: var(--ds-size-
|
|
2795
|
+
padding: var(--ds-size-1, 4px);
|
|
2796
|
+
font-size: 11px;
|
|
2788
2797
|
}
|
|
2789
2798
|
.${t.dateNumberContainer} {
|
|
2790
|
-
width:
|
|
2791
|
-
height:
|
|
2799
|
+
width: 16px;
|
|
2800
|
+
height: 16px;
|
|
2792
2801
|
}
|
|
2793
2802
|
}
|
|
2794
2803
|
`;
|
|
@@ -2815,13 +2824,13 @@ const ar = "_fieldset_16fx7_2", lr = "_description_16fx7_14", dr = "_error_16fx7
|
|
|
2815
2824
|
!isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
|
|
2816
2825
|
}
|
|
2817
2826
|
return e.slice(0, 8);
|
|
2818
|
-
}, gr =
|
|
2827
|
+
}, gr = he(
|
|
2819
2828
|
(t, e) => {
|
|
2820
2829
|
const { t: n } = Ee();
|
|
2821
2830
|
Y(() => {
|
|
2822
2831
|
const S = "rk-dateinput-inline-styles";
|
|
2823
2832
|
if (typeof document > "u" || document.getElementById(S)) return;
|
|
2824
|
-
const E =
|
|
2833
|
+
const E = hr(ge), H = document.createElement("style");
|
|
2825
2834
|
H.id = S, H.textContent = E, document.head.appendChild(H);
|
|
2826
2835
|
}, []);
|
|
2827
2836
|
const {
|
|
@@ -2837,16 +2846,16 @@ const ar = "_fieldset_16fx7_2", lr = "_description_16fx7_14", dr = "_error_16fx7
|
|
|
2837
2846
|
value: u,
|
|
2838
2847
|
defaultValue: v,
|
|
2839
2848
|
onChange: m,
|
|
2840
|
-
readOnly:
|
|
2849
|
+
readOnly: h,
|
|
2841
2850
|
placeholder: x = "dd.mm.åååå",
|
|
2842
2851
|
id: a,
|
|
2843
|
-
name:
|
|
2852
|
+
name: f,
|
|
2844
2853
|
required: k,
|
|
2845
2854
|
disabled: p,
|
|
2846
2855
|
onClick: y,
|
|
2847
2856
|
onFocus: g,
|
|
2848
2857
|
// Send ekstern onFocus videre
|
|
2849
|
-
onBlur:
|
|
2858
|
+
onBlur: L,
|
|
2850
2859
|
// Send ekstern onBlur videre
|
|
2851
2860
|
autoComplete: D = "off",
|
|
2852
2861
|
"aria-label": w,
|
|
@@ -2860,7 +2869,7 @@ const ar = "_fieldset_16fx7_2", lr = "_description_16fx7_14", dr = "_error_16fx7
|
|
|
2860
2869
|
// <-- Destrukturering
|
|
2861
2870
|
...G
|
|
2862
2871
|
} = t, O = u !== void 0, z = Ye(null);
|
|
2863
|
-
|
|
2872
|
+
ze.useImperativeHandle(
|
|
2864
2873
|
e,
|
|
2865
2874
|
() => z.current
|
|
2866
2875
|
);
|
|
@@ -2870,22 +2879,22 @@ const ar = "_fieldset_16fx7_2", lr = "_description_16fx7_14", dr = "_error_16fx7
|
|
|
2870
2879
|
return yt(H);
|
|
2871
2880
|
},
|
|
2872
2881
|
[]
|
|
2873
|
-
), [
|
|
2882
|
+
), [M, V] = oe(
|
|
2874
2883
|
() => P(u ?? v)
|
|
2875
2884
|
);
|
|
2876
2885
|
Y(() => {
|
|
2877
2886
|
if (O) {
|
|
2878
2887
|
const S = P(u);
|
|
2879
|
-
S !==
|
|
2888
|
+
S !== M && (V(S), z.current && z.current.value !== S && (z.current.value = S));
|
|
2880
2889
|
}
|
|
2881
|
-
}, [u, O,
|
|
2890
|
+
}, [u, O, M, P]);
|
|
2882
2891
|
const te = se(
|
|
2883
2892
|
(S) => {
|
|
2884
|
-
const E = S.target, H = E.value,
|
|
2893
|
+
const E = S.target, H = E.value, X = M, W = bt(H).slice(0, 8), I = xt(W), $ = yt(I);
|
|
2885
2894
|
let R = 0;
|
|
2886
2895
|
const K = I.length;
|
|
2887
2896
|
K <= 2 ? R = K : K <= 4 ? R = K + 1 : R = K + 2, R = Math.min(R, $.length), requestAnimationFrame(() => {
|
|
2888
|
-
if (z.current && (V($), z.current.value = $, z.current.setSelectionRange(R, R), ($ !==
|
|
2897
|
+
if (z.current && (V($), z.current.value = $, z.current.setSelectionRange(R, R), ($ !== X || O) && m)) {
|
|
2889
2898
|
const re = {
|
|
2890
2899
|
...S,
|
|
2891
2900
|
target: { ...E, value: $ }
|
|
@@ -2894,7 +2903,7 @@ const ar = "_fieldset_16fx7_2", lr = "_description_16fx7_14", dr = "_error_16fx7
|
|
|
2894
2903
|
}
|
|
2895
2904
|
});
|
|
2896
2905
|
},
|
|
2897
|
-
[
|
|
2906
|
+
[M, O, m, P]
|
|
2898
2907
|
), Q = [ge.fieldset, o].filter(Boolean).join(" "), ie = [
|
|
2899
2908
|
ge.inputWrapper,
|
|
2900
2909
|
c,
|
|
@@ -2927,17 +2936,17 @@ const ar = "_fieldset_16fx7_2", lr = "_description_16fx7_14", dr = "_error_16fx7
|
|
|
2927
2936
|
inputMode: "numeric",
|
|
2928
2937
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
2929
2938
|
maxLength: 10,
|
|
2930
|
-
value:
|
|
2931
|
-
readOnly:
|
|
2939
|
+
value: M,
|
|
2940
|
+
readOnly: h,
|
|
2932
2941
|
placeholder: x,
|
|
2933
2942
|
id: a,
|
|
2934
|
-
name:
|
|
2943
|
+
name: f,
|
|
2935
2944
|
required: k,
|
|
2936
2945
|
disabled: p,
|
|
2937
2946
|
onClick: y,
|
|
2938
2947
|
onChange: te,
|
|
2939
2948
|
onFocus: g,
|
|
2940
|
-
onBlur:
|
|
2949
|
+
onBlur: L,
|
|
2941
2950
|
autoComplete: D,
|
|
2942
2951
|
"aria-label": w,
|
|
2943
2952
|
"aria-labelledby": ae,
|
|
@@ -2969,7 +2978,7 @@ const ar = "_fieldset_16fx7_2", lr = "_description_16fx7_14", dr = "_error_16fx7
|
|
|
2969
2978
|
}
|
|
2970
2979
|
);
|
|
2971
2980
|
gr.displayName = "DateInput";
|
|
2972
|
-
function
|
|
2981
|
+
function hr(t) {
|
|
2973
2982
|
return `
|
|
2974
2983
|
.${t.fieldset} {
|
|
2975
2984
|
margin-bottom: var(--ds-spacing-4, 16px);
|
|
@@ -3062,11 +3071,11 @@ function fr(t) {
|
|
|
3062
3071
|
}
|
|
3063
3072
|
`;
|
|
3064
3073
|
}
|
|
3065
|
-
function
|
|
3074
|
+
function fr(t) {
|
|
3066
3075
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
3067
3076
|
}
|
|
3068
3077
|
function Tt(t) {
|
|
3069
|
-
return
|
|
3078
|
+
return fr(t) || Array.isArray(t);
|
|
3070
3079
|
}
|
|
3071
3080
|
function kr() {
|
|
3072
3081
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
@@ -3212,7 +3221,7 @@ function Tr(t, e, n, s) {
|
|
|
3212
3221
|
const y = c / i;
|
|
3213
3222
|
s(y), d && (d = e.requestAnimationFrame(m));
|
|
3214
3223
|
}
|
|
3215
|
-
function
|
|
3224
|
+
function h() {
|
|
3216
3225
|
d || (d = e.requestAnimationFrame(m));
|
|
3217
3226
|
}
|
|
3218
3227
|
function x() {
|
|
@@ -3224,7 +3233,7 @@ function Tr(t, e, n, s) {
|
|
|
3224
3233
|
return {
|
|
3225
3234
|
init: u,
|
|
3226
3235
|
destroy: v,
|
|
3227
|
-
start:
|
|
3236
|
+
start: h,
|
|
3228
3237
|
stop: x,
|
|
3229
3238
|
update: n,
|
|
3230
3239
|
render: s
|
|
@@ -3234,10 +3243,10 @@ function Sr(t, e) {
|
|
|
3234
3243
|
const n = e === "rtl", s = t === "y", l = s ? "y" : "x", i = s ? "x" : "y", o = !s && n ? -1 : 1, c = v(), d = m();
|
|
3235
3244
|
function u(a) {
|
|
3236
3245
|
const {
|
|
3237
|
-
height:
|
|
3246
|
+
height: f,
|
|
3238
3247
|
width: k
|
|
3239
3248
|
} = a;
|
|
3240
|
-
return s ?
|
|
3249
|
+
return s ? f : k;
|
|
3241
3250
|
}
|
|
3242
3251
|
function v() {
|
|
3243
3252
|
return s ? "top" : n ? "right" : "left";
|
|
@@ -3245,7 +3254,7 @@ function Sr(t, e) {
|
|
|
3245
3254
|
function m() {
|
|
3246
3255
|
return s ? "bottom" : n ? "left" : "right";
|
|
3247
3256
|
}
|
|
3248
|
-
function
|
|
3257
|
+
function h(a) {
|
|
3249
3258
|
return a * o;
|
|
3250
3259
|
}
|
|
3251
3260
|
return {
|
|
@@ -3254,7 +3263,7 @@ function Sr(t, e) {
|
|
|
3254
3263
|
startEdge: c,
|
|
3255
3264
|
endEdge: d,
|
|
3256
3265
|
measureSize: u,
|
|
3257
|
-
direction:
|
|
3266
|
+
direction: h
|
|
3258
3267
|
};
|
|
3259
3268
|
}
|
|
3260
3269
|
function ve(t = 0, e = 0) {
|
|
@@ -3290,17 +3299,17 @@ function Ft(t, e, n) {
|
|
|
3290
3299
|
constrain: s
|
|
3291
3300
|
} = ve(0, t), l = t + 1;
|
|
3292
3301
|
let i = o(e);
|
|
3293
|
-
function o(
|
|
3294
|
-
return n ? U((l +
|
|
3302
|
+
function o(h) {
|
|
3303
|
+
return n ? U((l + h) % l) : s(h);
|
|
3295
3304
|
}
|
|
3296
3305
|
function c() {
|
|
3297
3306
|
return i;
|
|
3298
3307
|
}
|
|
3299
|
-
function d(
|
|
3300
|
-
return i = o(
|
|
3308
|
+
function d(h) {
|
|
3309
|
+
return i = o(h), m;
|
|
3301
3310
|
}
|
|
3302
|
-
function u(
|
|
3303
|
-
return v().set(c() +
|
|
3311
|
+
function u(h) {
|
|
3312
|
+
return v().set(c() + h);
|
|
3304
3313
|
}
|
|
3305
3314
|
function v() {
|
|
3306
3315
|
return Ft(t, c(), n);
|
|
@@ -3313,10 +3322,10 @@ function Ft(t, e, n) {
|
|
|
3313
3322
|
};
|
|
3314
3323
|
return m;
|
|
3315
3324
|
}
|
|
3316
|
-
function Cr(t, e, n, s, l, i, o, c, d, u, v, m,
|
|
3325
|
+
function Cr(t, e, n, s, l, i, o, c, d, u, v, m, h, x, a, f, k, p, y) {
|
|
3317
3326
|
const {
|
|
3318
3327
|
cross: g,
|
|
3319
|
-
direction:
|
|
3328
|
+
direction: L
|
|
3320
3329
|
} = t, D = ["INPUT", "SELECT", "TEXTAREA"], w = {
|
|
3321
3330
|
passive: !1
|
|
3322
3331
|
}, C = je(), A = je(), j = ve(50, 225).constrain(x.measure(20)), N = {
|
|
@@ -3326,7 +3335,7 @@ function Cr(t, e, n, s, l, i, o, c, d, u, v, m, f, x, a, h, k, p, y) {
|
|
|
3326
3335
|
mouse: 500,
|
|
3327
3336
|
touch: 600
|
|
3328
3337
|
}, G = a ? 43 : 25;
|
|
3329
|
-
let O = !1, z = 0, P = 0,
|
|
3338
|
+
let O = !1, z = 0, P = 0, M = !1, V = !1, te = !1, Q = !1;
|
|
3330
3339
|
function ie(I) {
|
|
3331
3340
|
if (!y) return;
|
|
3332
3341
|
function $(K) {
|
|
@@ -3357,30 +3366,30 @@ function Cr(t, e, n, s, l, i, o, c, d, u, v, m, f, x, a, h, k, p, y) {
|
|
|
3357
3366
|
}
|
|
3358
3367
|
function T(I) {
|
|
3359
3368
|
const $ = Xe(I, s);
|
|
3360
|
-
Q = $, te = a && $ && !I.buttons && O, O = Ae(l.get(), o.get()) >= 2, !($ && I.button !== 0) && (ae(I.target) || (
|
|
3369
|
+
Q = $, te = a && $ && !I.buttons && O, O = Ae(l.get(), o.get()) >= 2, !($ && I.button !== 0) && (ae(I.target) || (M = !0, i.pointerDown(I), u.useFriction(0).useDuration(0), l.set(o), de(), z = i.readPoint(I), P = i.readPoint(I, g), h.emit("pointerDown")));
|
|
3361
3370
|
}
|
|
3362
3371
|
function S(I) {
|
|
3363
3372
|
if (!Xe(I, s) && I.touches.length >= 2) return E(I);
|
|
3364
3373
|
const R = i.readPoint(I), K = i.readPoint(I, g), re = Ae(R, z), pe = Ae(K, P);
|
|
3365
3374
|
if (!V && !Q && (!I.cancelable || (V = re > pe, !V)))
|
|
3366
3375
|
return E(I);
|
|
3367
|
-
const
|
|
3368
|
-
re >
|
|
3376
|
+
const fe = i.pointerMove(I);
|
|
3377
|
+
re > f && (te = !0), u.useFriction(0.3).useDuration(0.75), c.start(), l.add(L(fe)), I.preventDefault();
|
|
3369
3378
|
}
|
|
3370
3379
|
function E(I) {
|
|
3371
|
-
const R = v.byDistance(0, !1).index !== m.get(), K = i.pointerUp(I) * q(), re = ce(
|
|
3372
|
-
V = !1,
|
|
3380
|
+
const R = v.byDistance(0, !1).index !== m.get(), K = i.pointerUp(I) * q(), re = ce(L(K), R), pe = yr(K, re), fe = G - 10 * pe, me = p + pe / 50;
|
|
3381
|
+
V = !1, M = !1, A.clear(), u.useDuration(fe).useFriction(me), d.distance(re, !a), Q = !1, h.emit("pointerUp");
|
|
3373
3382
|
}
|
|
3374
3383
|
function H(I) {
|
|
3375
3384
|
te && (I.stopPropagation(), I.preventDefault(), te = !1);
|
|
3376
3385
|
}
|
|
3377
|
-
function
|
|
3378
|
-
return
|
|
3386
|
+
function X() {
|
|
3387
|
+
return M;
|
|
3379
3388
|
}
|
|
3380
3389
|
return {
|
|
3381
3390
|
init: ie,
|
|
3382
3391
|
destroy: ee,
|
|
3383
|
-
pointerDown:
|
|
3392
|
+
pointerDown: X
|
|
3384
3393
|
};
|
|
3385
3394
|
}
|
|
3386
3395
|
function wr(t, e) {
|
|
@@ -3388,21 +3397,21 @@ function wr(t, e) {
|
|
|
3388
3397
|
function i(m) {
|
|
3389
3398
|
return m.timeStamp;
|
|
3390
3399
|
}
|
|
3391
|
-
function o(m,
|
|
3392
|
-
const a = `client${(
|
|
3400
|
+
function o(m, h) {
|
|
3401
|
+
const a = `client${(h || t.scroll) === "x" ? "X" : "Y"}`;
|
|
3393
3402
|
return (Xe(m, e) ? m : m.touches[0])[a];
|
|
3394
3403
|
}
|
|
3395
3404
|
function c(m) {
|
|
3396
3405
|
return s = m, l = m, o(m);
|
|
3397
3406
|
}
|
|
3398
3407
|
function d(m) {
|
|
3399
|
-
const
|
|
3400
|
-
return l = m, x && (s = m),
|
|
3408
|
+
const h = o(m) - o(l), x = i(m) - i(s) > 170;
|
|
3409
|
+
return l = m, x && (s = m), h;
|
|
3401
3410
|
}
|
|
3402
3411
|
function u(m) {
|
|
3403
3412
|
if (!s || !l) return 0;
|
|
3404
|
-
const
|
|
3405
|
-
return x && !a && U(
|
|
3413
|
+
const h = o(l) - o(s), x = i(m) - i(s), a = i(m) - i(l) > 170, f = h / x;
|
|
3414
|
+
return x && !a && U(f) > 0.1 ? f : 0;
|
|
3406
3415
|
}
|
|
3407
3416
|
return {
|
|
3408
3417
|
pointerDown: c,
|
|
@@ -3443,16 +3452,16 @@ function Dr(t) {
|
|
|
3443
3452
|
function _r(t, e, n, s, l, i, o) {
|
|
3444
3453
|
const c = [t].concat(s);
|
|
3445
3454
|
let d, u, v = [], m = !1;
|
|
3446
|
-
function
|
|
3455
|
+
function h(k) {
|
|
3447
3456
|
return l.measureSize(o.measure(k));
|
|
3448
3457
|
}
|
|
3449
3458
|
function x(k) {
|
|
3450
3459
|
if (!i) return;
|
|
3451
|
-
u =
|
|
3460
|
+
u = h(t), v = s.map(h);
|
|
3452
3461
|
function p(y) {
|
|
3453
3462
|
for (const g of y) {
|
|
3454
3463
|
if (m) return;
|
|
3455
|
-
const
|
|
3464
|
+
const L = g.target === t, D = s.indexOf(g.target), w = L ? u : v[D], C = h(L ? t : s[D]);
|
|
3456
3465
|
if (U(C - w) >= 0.5) {
|
|
3457
3466
|
k.reInit(), e.emit("resize");
|
|
3458
3467
|
break;
|
|
@@ -3475,7 +3484,7 @@ function _r(t, e, n, s, l, i, o) {
|
|
|
3475
3484
|
}
|
|
3476
3485
|
function Ar(t, e, n, s, l, i) {
|
|
3477
3486
|
let o = 0, c = 0, d = l, u = i, v = t.get(), m = 0;
|
|
3478
|
-
function
|
|
3487
|
+
function h() {
|
|
3479
3488
|
const w = s.get() - t.get(), C = !d;
|
|
3480
3489
|
let A = 0;
|
|
3481
3490
|
return C ? (o = 0, n.set(s), t.set(s), A = w) : (n.set(t), o += w / d, o *= u, v += o, t.add(o), A = v - m), c = nt(A), m = v, D;
|
|
@@ -3487,7 +3496,7 @@ function Ar(t, e, n, s, l, i) {
|
|
|
3487
3496
|
function a() {
|
|
3488
3497
|
return d;
|
|
3489
3498
|
}
|
|
3490
|
-
function
|
|
3499
|
+
function f() {
|
|
3491
3500
|
return c;
|
|
3492
3501
|
}
|
|
3493
3502
|
function k() {
|
|
@@ -3497,23 +3506,23 @@ function Ar(t, e, n, s, l, i) {
|
|
|
3497
3506
|
return g(l);
|
|
3498
3507
|
}
|
|
3499
3508
|
function y() {
|
|
3500
|
-
return
|
|
3509
|
+
return L(i);
|
|
3501
3510
|
}
|
|
3502
3511
|
function g(w) {
|
|
3503
3512
|
return d = w, D;
|
|
3504
3513
|
}
|
|
3505
|
-
function
|
|
3514
|
+
function L(w) {
|
|
3506
3515
|
return u = w, D;
|
|
3507
3516
|
}
|
|
3508
3517
|
const D = {
|
|
3509
|
-
direction:
|
|
3518
|
+
direction: f,
|
|
3510
3519
|
duration: a,
|
|
3511
3520
|
velocity: k,
|
|
3512
|
-
seek:
|
|
3521
|
+
seek: h,
|
|
3513
3522
|
settled: x,
|
|
3514
3523
|
useBaseFriction: y,
|
|
3515
3524
|
useBaseDuration: p,
|
|
3516
|
-
useFriction:
|
|
3525
|
+
useFriction: L,
|
|
3517
3526
|
useDuration: g
|
|
3518
3527
|
};
|
|
3519
3528
|
return D;
|
|
@@ -3526,7 +3535,7 @@ function Mr(t, e, n, s, l) {
|
|
|
3526
3535
|
}
|
|
3527
3536
|
function v(x) {
|
|
3528
3537
|
if (!u()) return;
|
|
3529
|
-
const a = t.reachedMin(e.get()) ? "min" : "max",
|
|
3538
|
+
const a = t.reachedMin(e.get()) ? "min" : "max", f = U(t[a] - e.get()), k = n.get() - e.get(), p = c.constrain(f / o);
|
|
3530
3539
|
n.subtract(k * p), !x && U(k) < i && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
|
|
3531
3540
|
}
|
|
3532
3541
|
function m(x) {
|
|
@@ -3539,31 +3548,31 @@ function Mr(t, e, n, s, l) {
|
|
|
3539
3548
|
};
|
|
3540
3549
|
}
|
|
3541
3550
|
function Lr(t, e, n, s, l) {
|
|
3542
|
-
const i = ve(-e + t, 0), o = m(), c = v(), d =
|
|
3543
|
-
function u(a,
|
|
3544
|
-
return Ae(a,
|
|
3551
|
+
const i = ve(-e + t, 0), o = m(), c = v(), d = h();
|
|
3552
|
+
function u(a, f) {
|
|
3553
|
+
return Ae(a, f) <= 1;
|
|
3545
3554
|
}
|
|
3546
3555
|
function v() {
|
|
3547
|
-
const a = o[0],
|
|
3556
|
+
const a = o[0], f = le(o), k = o.lastIndexOf(a), p = o.indexOf(f) + 1;
|
|
3548
3557
|
return ve(k, p);
|
|
3549
3558
|
}
|
|
3550
3559
|
function m() {
|
|
3551
|
-
return n.map((a,
|
|
3560
|
+
return n.map((a, f) => {
|
|
3552
3561
|
const {
|
|
3553
3562
|
min: k,
|
|
3554
3563
|
max: p
|
|
3555
|
-
} = i, y = i.constrain(a), g = !
|
|
3556
|
-
return g ? p :
|
|
3564
|
+
} = i, y = i.constrain(a), g = !f, L = ot(n, f);
|
|
3565
|
+
return g ? p : L || u(k, y) ? k : u(p, y) ? p : y;
|
|
3557
3566
|
}).map((a) => parseFloat(a.toFixed(3)));
|
|
3558
3567
|
}
|
|
3559
|
-
function
|
|
3568
|
+
function h() {
|
|
3560
3569
|
if (e <= t + l) return [i.max];
|
|
3561
3570
|
if (s === "keepSnaps") return o;
|
|
3562
3571
|
const {
|
|
3563
3572
|
min: a,
|
|
3564
|
-
max:
|
|
3573
|
+
max: f
|
|
3565
3574
|
} = c;
|
|
3566
|
-
return o.slice(a,
|
|
3575
|
+
return o.slice(a, f);
|
|
3567
3576
|
}
|
|
3568
3577
|
return {
|
|
3569
3578
|
snapsContained: d,
|
|
@@ -3581,12 +3590,12 @@ function Er(t, e, n, s) {
|
|
|
3581
3590
|
reachedMin: c,
|
|
3582
3591
|
reachedMax: d
|
|
3583
3592
|
} = ve(i, o);
|
|
3584
|
-
function u(
|
|
3585
|
-
return
|
|
3593
|
+
function u(h) {
|
|
3594
|
+
return h === 1 ? d(n.get()) : h === -1 ? c(n.get()) : !1;
|
|
3586
3595
|
}
|
|
3587
|
-
function v(
|
|
3588
|
-
if (!u(
|
|
3589
|
-
const x = t * (
|
|
3596
|
+
function v(h) {
|
|
3597
|
+
if (!u(h)) return;
|
|
3598
|
+
const x = t * (h * -1);
|
|
3590
3599
|
s.forEach((a) => a.add(x));
|
|
3591
3600
|
}
|
|
3592
3601
|
return {
|
|
@@ -3612,15 +3621,15 @@ function Nr(t, e, n, s, l) {
|
|
|
3612
3621
|
endEdge: o
|
|
3613
3622
|
} = t, {
|
|
3614
3623
|
groupSlides: c
|
|
3615
|
-
} = l, d = m().map(e.measure), u =
|
|
3624
|
+
} = l, d = m().map(e.measure), u = h(), v = x();
|
|
3616
3625
|
function m() {
|
|
3617
|
-
return c(s).map((
|
|
3626
|
+
return c(s).map((f) => le(f)[o] - f[0][i]).map(U);
|
|
3618
3627
|
}
|
|
3619
|
-
function
|
|
3620
|
-
return s.map((
|
|
3628
|
+
function h() {
|
|
3629
|
+
return s.map((f) => n[i] - f[i]).map((f) => -U(f));
|
|
3621
3630
|
}
|
|
3622
3631
|
function x() {
|
|
3623
|
-
return c(u).map((
|
|
3632
|
+
return c(u).map((f) => f[0]).map((f, k) => f + d[k]);
|
|
3624
3633
|
}
|
|
3625
3634
|
return {
|
|
3626
3635
|
snaps: u,
|
|
@@ -3635,9 +3644,9 @@ function Br(t, e, n, s, l, i) {
|
|
|
3635
3644
|
max: d
|
|
3636
3645
|
} = s, u = v();
|
|
3637
3646
|
function v() {
|
|
3638
|
-
const
|
|
3639
|
-
return n.length === 1 ? [i] : x ?
|
|
3640
|
-
const p = !
|
|
3647
|
+
const h = o(i), x = !t || e === "keepSnaps";
|
|
3648
|
+
return n.length === 1 ? [i] : x ? h : h.slice(c, d).map((a, f, k) => {
|
|
3649
|
+
const p = !f, y = ot(k, f);
|
|
3641
3650
|
if (p) {
|
|
3642
3651
|
const g = le(k[0]) + 1;
|
|
3643
3652
|
return wt(g);
|
|
@@ -3653,73 +3662,73 @@ function Br(t, e, n, s, l, i) {
|
|
|
3653
3662
|
slideRegistry: u
|
|
3654
3663
|
};
|
|
3655
3664
|
}
|
|
3656
|
-
function
|
|
3665
|
+
function zr(t, e, n, s, l) {
|
|
3657
3666
|
const {
|
|
3658
3667
|
reachedAny: i,
|
|
3659
3668
|
removeOffset: o,
|
|
3660
3669
|
constrain: c
|
|
3661
3670
|
} = s;
|
|
3662
3671
|
function d(a) {
|
|
3663
|
-
return a.concat().sort((
|
|
3672
|
+
return a.concat().sort((f, k) => U(f) - U(k))[0];
|
|
3664
3673
|
}
|
|
3665
3674
|
function u(a) {
|
|
3666
|
-
const
|
|
3667
|
-
diff: v(y -
|
|
3675
|
+
const f = t ? o(a) : c(a), k = e.map((y, g) => ({
|
|
3676
|
+
diff: v(y - f, 0),
|
|
3668
3677
|
index: g
|
|
3669
3678
|
})).sort((y, g) => U(y.diff) - U(g.diff)), {
|
|
3670
3679
|
index: p
|
|
3671
3680
|
} = k[0];
|
|
3672
3681
|
return {
|
|
3673
3682
|
index: p,
|
|
3674
|
-
distance:
|
|
3683
|
+
distance: f
|
|
3675
3684
|
};
|
|
3676
3685
|
}
|
|
3677
|
-
function v(a,
|
|
3686
|
+
function v(a, f) {
|
|
3678
3687
|
const k = [a, a + n, a - n];
|
|
3679
3688
|
if (!t) return a;
|
|
3680
|
-
if (!
|
|
3681
|
-
const p = k.filter((y) => nt(y) ===
|
|
3689
|
+
if (!f) return d(k);
|
|
3690
|
+
const p = k.filter((y) => nt(y) === f);
|
|
3682
3691
|
return p.length ? d(p) : le(k) - n;
|
|
3683
3692
|
}
|
|
3684
|
-
function m(a,
|
|
3685
|
-
const k = e[a] - l.get(), p = v(k,
|
|
3693
|
+
function m(a, f) {
|
|
3694
|
+
const k = e[a] - l.get(), p = v(k, f);
|
|
3686
3695
|
return {
|
|
3687
3696
|
index: a,
|
|
3688
3697
|
distance: p
|
|
3689
3698
|
};
|
|
3690
3699
|
}
|
|
3691
|
-
function
|
|
3700
|
+
function h(a, f) {
|
|
3692
3701
|
const k = l.get() + a, {
|
|
3693
3702
|
index: p,
|
|
3694
3703
|
distance: y
|
|
3695
3704
|
} = u(k), g = !t && i(k);
|
|
3696
|
-
if (!
|
|
3705
|
+
if (!f || g) return {
|
|
3697
3706
|
index: p,
|
|
3698
3707
|
distance: a
|
|
3699
3708
|
};
|
|
3700
|
-
const
|
|
3709
|
+
const L = e[p] - y, D = a + v(L, 0);
|
|
3701
3710
|
return {
|
|
3702
3711
|
index: p,
|
|
3703
3712
|
distance: D
|
|
3704
3713
|
};
|
|
3705
3714
|
}
|
|
3706
3715
|
return {
|
|
3707
|
-
byDistance:
|
|
3716
|
+
byDistance: h,
|
|
3708
3717
|
byIndex: m,
|
|
3709
3718
|
shortcut: v
|
|
3710
3719
|
};
|
|
3711
3720
|
}
|
|
3712
|
-
function
|
|
3721
|
+
function Pr(t, e, n, s, l, i, o) {
|
|
3713
3722
|
function c(m) {
|
|
3714
|
-
const
|
|
3715
|
-
i.add(
|
|
3723
|
+
const h = m.distance, x = m.index !== e.get();
|
|
3724
|
+
i.add(h), h && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), x && (n.set(e.get()), e.set(m.index), o.emit("select"));
|
|
3716
3725
|
}
|
|
3717
|
-
function d(m,
|
|
3718
|
-
const x = l.byDistance(m,
|
|
3726
|
+
function d(m, h) {
|
|
3727
|
+
const x = l.byDistance(m, h);
|
|
3719
3728
|
c(x);
|
|
3720
3729
|
}
|
|
3721
|
-
function u(m,
|
|
3722
|
-
const x = e.clone().set(m), a = l.byIndex(x.get(),
|
|
3730
|
+
function u(m, h) {
|
|
3731
|
+
const x = e.clone().set(m), a = l.byIndex(x.get(), h);
|
|
3723
3732
|
c(a);
|
|
3724
3733
|
}
|
|
3725
3734
|
return {
|
|
@@ -3735,14 +3744,14 @@ function $r(t, e, n, s, l, i, o, c) {
|
|
|
3735
3744
|
let u = 0;
|
|
3736
3745
|
function v(x) {
|
|
3737
3746
|
if (!c) return;
|
|
3738
|
-
function a(
|
|
3747
|
+
function a(f) {
|
|
3739
3748
|
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
3740
3749
|
o.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
3741
|
-
const y = n.findIndex((g) => g.includes(
|
|
3750
|
+
const y = n.findIndex((g) => g.includes(f));
|
|
3742
3751
|
tt(y) && (l.useDuration(0), s.index(y, 0), o.emit("slideFocus"));
|
|
3743
3752
|
}
|
|
3744
|
-
i.add(document, "keydown", m, !1), e.forEach((
|
|
3745
|
-
i.add(
|
|
3753
|
+
i.add(document, "keydown", m, !1), e.forEach((f, k) => {
|
|
3754
|
+
i.add(f, "focus", (p) => {
|
|
3746
3755
|
($e(c) || c(x, p)) && a(k);
|
|
3747
3756
|
}, d);
|
|
3748
3757
|
});
|
|
@@ -3781,19 +3790,19 @@ function _e(t) {
|
|
|
3781
3790
|
function Nt(t, e) {
|
|
3782
3791
|
const n = t.scroll === "x" ? o : c, s = e.style;
|
|
3783
3792
|
let l = null, i = !1;
|
|
3784
|
-
function o(
|
|
3785
|
-
return `translate3d(${
|
|
3793
|
+
function o(h) {
|
|
3794
|
+
return `translate3d(${h}px,0px,0px)`;
|
|
3786
3795
|
}
|
|
3787
|
-
function c(
|
|
3788
|
-
return `translate3d(0px,${
|
|
3796
|
+
function c(h) {
|
|
3797
|
+
return `translate3d(0px,${h}px,0px)`;
|
|
3789
3798
|
}
|
|
3790
|
-
function d(
|
|
3799
|
+
function d(h) {
|
|
3791
3800
|
if (i) return;
|
|
3792
|
-
const x = br(t.direction(
|
|
3801
|
+
const x = br(t.direction(h));
|
|
3793
3802
|
x !== l && (s.transform = n(x), l = x);
|
|
3794
3803
|
}
|
|
3795
|
-
function u(
|
|
3796
|
-
i = !
|
|
3804
|
+
function u(h) {
|
|
3805
|
+
i = !h;
|
|
3797
3806
|
}
|
|
3798
3807
|
function v() {
|
|
3799
3808
|
i || (s.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
|
|
@@ -3805,21 +3814,21 @@ function Nt(t, e) {
|
|
|
3805
3814
|
};
|
|
3806
3815
|
}
|
|
3807
3816
|
function Rr(t, e, n, s, l, i, o, c, d) {
|
|
3808
|
-
const v = Me(l), m = Me(l).reverse(),
|
|
3817
|
+
const v = Me(l), m = Me(l).reverse(), h = p().concat(y());
|
|
3809
3818
|
function x(C, A) {
|
|
3810
3819
|
return C.reduce((j, N) => j - l[N], A);
|
|
3811
3820
|
}
|
|
3812
3821
|
function a(C, A) {
|
|
3813
3822
|
return C.reduce((j, N) => x(j, A) > 0 ? j.concat([N]) : j, []);
|
|
3814
3823
|
}
|
|
3815
|
-
function
|
|
3824
|
+
function f(C) {
|
|
3816
3825
|
return i.map((A, j) => ({
|
|
3817
3826
|
start: A - s[j] + 0.5 + C,
|
|
3818
3827
|
end: A + e - 0.5 + C
|
|
3819
3828
|
}));
|
|
3820
3829
|
}
|
|
3821
3830
|
function k(C, A, j) {
|
|
3822
|
-
const N =
|
|
3831
|
+
const N = f(A);
|
|
3823
3832
|
return C.map((B) => {
|
|
3824
3833
|
const G = j ? 0 : -n, O = j ? n : 0, z = j ? "end" : "start", P = N[B][z];
|
|
3825
3834
|
return {
|
|
@@ -3840,15 +3849,15 @@ function Rr(t, e, n, s, l, i, o, c, d) {
|
|
|
3840
3849
|
return k(A, -n, !0);
|
|
3841
3850
|
}
|
|
3842
3851
|
function g() {
|
|
3843
|
-
return
|
|
3852
|
+
return h.every(({
|
|
3844
3853
|
index: C
|
|
3845
3854
|
}) => {
|
|
3846
3855
|
const A = v.filter((j) => j !== C);
|
|
3847
3856
|
return x(A, e) <= 0.1;
|
|
3848
3857
|
});
|
|
3849
3858
|
}
|
|
3850
|
-
function
|
|
3851
|
-
|
|
3859
|
+
function L() {
|
|
3860
|
+
h.forEach((C) => {
|
|
3852
3861
|
const {
|
|
3853
3862
|
target: A,
|
|
3854
3863
|
translate: j,
|
|
@@ -3858,13 +3867,13 @@ function Rr(t, e, n, s, l, i, o, c, d) {
|
|
|
3858
3867
|
});
|
|
3859
3868
|
}
|
|
3860
3869
|
function D() {
|
|
3861
|
-
|
|
3870
|
+
h.forEach((C) => C.translate.clear());
|
|
3862
3871
|
}
|
|
3863
3872
|
return {
|
|
3864
3873
|
canLoop: g,
|
|
3865
3874
|
clear: D,
|
|
3866
|
-
loop:
|
|
3867
|
-
loopPoints:
|
|
3875
|
+
loop: L,
|
|
3876
|
+
loopPoints: h
|
|
3868
3877
|
};
|
|
3869
3878
|
}
|
|
3870
3879
|
function Gr(t, e, n) {
|
|
@@ -3897,9 +3906,9 @@ function Wr(t, e, n, s) {
|
|
|
3897
3906
|
let i = null, o = null, c, d = !1;
|
|
3898
3907
|
function u() {
|
|
3899
3908
|
c = new IntersectionObserver((a) => {
|
|
3900
|
-
d || (a.forEach((
|
|
3901
|
-
const k = e.indexOf(
|
|
3902
|
-
l[k] =
|
|
3909
|
+
d || (a.forEach((f) => {
|
|
3910
|
+
const k = e.indexOf(f.target);
|
|
3911
|
+
l[k] = f;
|
|
3903
3912
|
}), i = null, o = null, n.emit("slidesInView"));
|
|
3904
3913
|
}, {
|
|
3905
3914
|
root: t.parentElement,
|
|
@@ -3910,23 +3919,23 @@ function Wr(t, e, n, s) {
|
|
|
3910
3919
|
c && c.disconnect(), d = !0;
|
|
3911
3920
|
}
|
|
3912
3921
|
function m(a) {
|
|
3913
|
-
return Le(l).reduce((
|
|
3922
|
+
return Le(l).reduce((f, k) => {
|
|
3914
3923
|
const p = parseInt(k), {
|
|
3915
3924
|
isIntersecting: y
|
|
3916
3925
|
} = l[p];
|
|
3917
|
-
return (a && y || !a && !y) &&
|
|
3926
|
+
return (a && y || !a && !y) && f.push(p), f;
|
|
3918
3927
|
}, []);
|
|
3919
3928
|
}
|
|
3920
|
-
function
|
|
3929
|
+
function h(a = !0) {
|
|
3921
3930
|
if (a && i) return i;
|
|
3922
3931
|
if (!a && o) return o;
|
|
3923
|
-
const
|
|
3924
|
-
return a && (i =
|
|
3932
|
+
const f = m(a);
|
|
3933
|
+
return a && (i = f), a || (o = f), f;
|
|
3925
3934
|
}
|
|
3926
3935
|
return {
|
|
3927
3936
|
init: u,
|
|
3928
3937
|
destroy: v,
|
|
3929
|
-
get:
|
|
3938
|
+
get: h
|
|
3930
3939
|
};
|
|
3931
3940
|
}
|
|
3932
3941
|
function Hr(t, e, n, s, l, i) {
|
|
@@ -3934,25 +3943,25 @@ function Hr(t, e, n, s, l, i) {
|
|
|
3934
3943
|
measureSize: o,
|
|
3935
3944
|
startEdge: c,
|
|
3936
3945
|
endEdge: d
|
|
3937
|
-
} = t, u = n[0] && l, v = a(), m =
|
|
3946
|
+
} = t, u = n[0] && l, v = a(), m = f(), h = n.map(o), x = k();
|
|
3938
3947
|
function a() {
|
|
3939
3948
|
if (!u) return 0;
|
|
3940
3949
|
const y = n[0];
|
|
3941
3950
|
return U(e[c] - y[c]);
|
|
3942
3951
|
}
|
|
3943
|
-
function
|
|
3952
|
+
function f() {
|
|
3944
3953
|
if (!u) return 0;
|
|
3945
3954
|
const y = i.getComputedStyle(le(s));
|
|
3946
3955
|
return parseFloat(y.getPropertyValue(`margin-${d}`));
|
|
3947
3956
|
}
|
|
3948
3957
|
function k() {
|
|
3949
|
-
return n.map((y, g,
|
|
3950
|
-
const D = !g, w = ot(
|
|
3951
|
-
return D ?
|
|
3958
|
+
return n.map((y, g, L) => {
|
|
3959
|
+
const D = !g, w = ot(L, g);
|
|
3960
|
+
return D ? h[g] + v : w ? h[g] + m : L[g + 1][c] - y[c];
|
|
3952
3961
|
}).map(U);
|
|
3953
3962
|
}
|
|
3954
3963
|
return {
|
|
3955
|
-
slideSizes:
|
|
3964
|
+
slideSizes: h,
|
|
3956
3965
|
slideSizesWithGaps: x,
|
|
3957
3966
|
startGap: v,
|
|
3958
3967
|
endGap: m
|
|
@@ -3963,24 +3972,24 @@ function Ur(t, e, n, s, l, i, o, c, d) {
|
|
|
3963
3972
|
startEdge: u,
|
|
3964
3973
|
endEdge: v,
|
|
3965
3974
|
direction: m
|
|
3966
|
-
} = t,
|
|
3975
|
+
} = t, h = tt(n);
|
|
3967
3976
|
function x(p, y) {
|
|
3968
3977
|
return Me(p).filter((g) => g % y === 0).map((g) => p.slice(g, g + y));
|
|
3969
3978
|
}
|
|
3970
3979
|
function a(p) {
|
|
3971
|
-
return p.length ? Me(p).reduce((y, g,
|
|
3980
|
+
return p.length ? Me(p).reduce((y, g, L) => {
|
|
3972
3981
|
const D = le(y) || 0, w = D === 0, C = g === Fe(p), A = l[u] - i[D][u], j = l[u] - i[g][v], N = !s && w ? m(o) : 0, B = !s && C ? m(c) : 0, G = U(j - B - (A + N));
|
|
3973
|
-
return
|
|
3974
|
-
}, []).map((y, g,
|
|
3975
|
-
const D = Math.max(
|
|
3982
|
+
return L && G > e + d && y.push(g), C && y.push(p.length), y;
|
|
3983
|
+
}, []).map((y, g, L) => {
|
|
3984
|
+
const D = Math.max(L[g - 1] || 0);
|
|
3976
3985
|
return p.slice(D, y);
|
|
3977
3986
|
}) : [];
|
|
3978
3987
|
}
|
|
3979
|
-
function
|
|
3980
|
-
return
|
|
3988
|
+
function f(p) {
|
|
3989
|
+
return h ? x(p, n) : a(p);
|
|
3981
3990
|
}
|
|
3982
3991
|
return {
|
|
3983
|
-
groupSlides:
|
|
3992
|
+
groupSlides: f
|
|
3984
3993
|
};
|
|
3985
3994
|
}
|
|
3986
3995
|
function Or(t, e, n, s, l, i, o) {
|
|
@@ -3990,23 +3999,23 @@ function Or(t, e, n, s, l, i, o) {
|
|
|
3990
3999
|
direction: u,
|
|
3991
4000
|
startIndex: v,
|
|
3992
4001
|
loop: m,
|
|
3993
|
-
duration:
|
|
4002
|
+
duration: h,
|
|
3994
4003
|
dragFree: x,
|
|
3995
4004
|
dragThreshold: a,
|
|
3996
|
-
inViewThreshold:
|
|
4005
|
+
inViewThreshold: f,
|
|
3997
4006
|
slidesToScroll: k,
|
|
3998
4007
|
skipSnaps: p,
|
|
3999
4008
|
containScroll: y,
|
|
4000
4009
|
watchResize: g,
|
|
4001
|
-
watchSlides:
|
|
4010
|
+
watchSlides: L,
|
|
4002
4011
|
watchDrag: D,
|
|
4003
4012
|
watchFocus: w
|
|
4004
|
-
} = i, C = 2, A = Ir(), j = A.measure(e), N = n.map(A.measure), B = Sr(d, u), G = B.measureSize(j), O = Dr(G), z = xr(c, G), P = !m && !!y,
|
|
4013
|
+
} = i, C = 2, A = Ir(), j = A.measure(e), N = n.map(A.measure), B = Sr(d, u), G = B.measureSize(j), O = Dr(G), z = xr(c, G), P = !m && !!y, M = m || !!y, {
|
|
4005
4014
|
slideSizes: V,
|
|
4006
4015
|
slideSizesWithGaps: te,
|
|
4007
4016
|
startGap: Q,
|
|
4008
4017
|
endGap: ie
|
|
4009
|
-
} = Hr(B, j, N, n,
|
|
4018
|
+
} = Hr(B, j, N, n, M, l), ee = Ur(B, G, k, m, j, N, Q, ie, C), {
|
|
4010
4019
|
snaps: de,
|
|
4011
4020
|
snapsAligned: ae
|
|
4012
4021
|
} = Nr(B, z, j, N, ee), q = -le(de) + le(te), {
|
|
@@ -4014,7 +4023,7 @@ function Or(t, e, n, s, l, i, o) {
|
|
|
4014
4023
|
scrollContainLimit: T
|
|
4015
4024
|
} = Lr(G, q, ae, y, C), S = P ? ce : ae, {
|
|
4016
4025
|
limit: E
|
|
4017
|
-
} = jr(q, S, m), H = Ft(Fe(S), v, m),
|
|
4026
|
+
} = jr(q, S, m), H = Ft(Fe(S), v, m), X = H.clone(), W = Me(n), I = ({
|
|
4018
4027
|
dragHandler: ye,
|
|
4019
4028
|
scrollBody: He,
|
|
4020
4029
|
scrollBounds: Ue,
|
|
@@ -4028,7 +4037,7 @@ function Or(t, e, n, s, l, i, o) {
|
|
|
4028
4037
|
translate: He,
|
|
4029
4038
|
location: Ue,
|
|
4030
4039
|
offsetLocation: Ne,
|
|
4031
|
-
previousLocation:
|
|
4040
|
+
previousLocation: Pt,
|
|
4032
4041
|
scrollLooper: $t,
|
|
4033
4042
|
slideLooper: Rt,
|
|
4034
4043
|
dragHandler: Gt,
|
|
@@ -4041,11 +4050,11 @@ function Or(t, e, n, s, l, i, o) {
|
|
|
4041
4050
|
}, ct) => {
|
|
4042
4051
|
const ut = ye.settled(), Ut = !Ht.shouldConstrain(), pt = dt ? ut : ut && Ut, mt = pt && !Gt.pointerDown();
|
|
4043
4052
|
mt && Wt.stop();
|
|
4044
|
-
const Ot = Ue.get() * ct +
|
|
4053
|
+
const Ot = Ue.get() * ct + Pt.get() * (1 - ct);
|
|
4045
4054
|
Ne.set(Ot), dt && ($t.loop(ye.direction()), Rt.loop()), He.to(Ne.get()), mt && lt.emit("settle"), pt || lt.emit("scroll");
|
|
4046
|
-
}, R = Tr(s, l, () => I(We), (ye) => $(We, ye)), K = 0.68, re = S[H.get()], pe = _e(re),
|
|
4055
|
+
}, R = Tr(s, l, () => I(We), (ye) => $(We, ye)), K = 0.68, re = S[H.get()], pe = _e(re), fe = _e(re), me = _e(re), ke = _e(re), Ce = Ar(pe, me, fe, ke, h, K), Re = zr(m, S, q, E, ke), Ge = Pr(R, H, X, Ce, Re, ke, o), st = Fr(E), it = je(), Bt = Wr(e, n, o, f), {
|
|
4047
4056
|
slideRegistry: at
|
|
4048
|
-
} = Br(P, y, S, T, ee, W),
|
|
4057
|
+
} = Br(P, y, S, T, ee, W), zt = $r(t, n, at, Ge, Ce, it, o, w), We = {
|
|
4049
4058
|
ownerDocument: s,
|
|
4050
4059
|
ownerWindow: l,
|
|
4051
4060
|
eventHandler: o,
|
|
@@ -4057,24 +4066,24 @@ function Or(t, e, n, s, l, i, o) {
|
|
|
4057
4066
|
eventStore: it,
|
|
4058
4067
|
percentOfView: O,
|
|
4059
4068
|
index: H,
|
|
4060
|
-
indexPrevious:
|
|
4069
|
+
indexPrevious: X,
|
|
4061
4070
|
limit: E,
|
|
4062
4071
|
location: pe,
|
|
4063
4072
|
offsetLocation: me,
|
|
4064
|
-
previousLocation:
|
|
4073
|
+
previousLocation: fe,
|
|
4065
4074
|
options: i,
|
|
4066
4075
|
resizeHandler: _r(e, o, l, n, B, g, A),
|
|
4067
4076
|
scrollBody: Ce,
|
|
4068
4077
|
scrollBounds: Mr(E, me, ke, Ce, O),
|
|
4069
|
-
scrollLooper: Er(q, E, me, [pe, me,
|
|
4078
|
+
scrollLooper: Er(q, E, me, [pe, me, fe, ke]),
|
|
4070
4079
|
scrollProgress: st,
|
|
4071
4080
|
scrollSnapList: S.map(st.get),
|
|
4072
4081
|
scrollSnaps: S,
|
|
4073
4082
|
scrollTarget: Re,
|
|
4074
4083
|
scrollTo: Ge,
|
|
4075
4084
|
slideLooper: Rr(B, G, q, V, te, de, S, me, n),
|
|
4076
|
-
slideFocus:
|
|
4077
|
-
slidesHandler: Gr(e, o,
|
|
4085
|
+
slideFocus: zt,
|
|
4086
|
+
slidesHandler: Gr(e, o, L),
|
|
4078
4087
|
slidesInView: Bt,
|
|
4079
4088
|
slideIndexes: W,
|
|
4080
4089
|
slideRegistry: at,
|
|
@@ -4169,17 +4178,17 @@ function qr(t) {
|
|
|
4169
4178
|
destroy: s
|
|
4170
4179
|
};
|
|
4171
4180
|
}
|
|
4172
|
-
function
|
|
4181
|
+
function Pe(t, e, n) {
|
|
4173
4182
|
const s = t.ownerDocument, l = s.defaultView, i = Yr(l), o = qr(i), c = je(), d = Vr(), {
|
|
4174
4183
|
mergeOptions: u,
|
|
4175
4184
|
optionsAtMedia: v,
|
|
4176
4185
|
optionsMediaQueries: m
|
|
4177
4186
|
} = i, {
|
|
4178
|
-
on:
|
|
4187
|
+
on: h,
|
|
4179
4188
|
off: x,
|
|
4180
4189
|
emit: a
|
|
4181
|
-
} = d,
|
|
4182
|
-
let k = !1, p, y = u(Kr,
|
|
4190
|
+
} = d, f = B;
|
|
4191
|
+
let k = !1, p, y = u(Kr, Pe.globalOptions), g = u(y), L = [], D, w, C;
|
|
4183
4192
|
function A() {
|
|
4184
4193
|
const {
|
|
4185
4194
|
container: W,
|
|
@@ -4200,9 +4209,9 @@ function ze(t, e, n) {
|
|
|
4200
4209
|
return I;
|
|
4201
4210
|
}
|
|
4202
4211
|
function N(W, I) {
|
|
4203
|
-
k || (y = u(y, W), g = v(y),
|
|
4212
|
+
k || (y = u(y, W), g = v(y), L = I || L, A(), p = j(g), m([y, ...L.map(({
|
|
4204
4213
|
options: $
|
|
4205
|
-
}) => $)]).forEach(($) => c.add($, "change", B)), g.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(
|
|
4214
|
+
}) => $)]).forEach(($) => c.add($, "change", B)), g.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(X), p.eventHandler.init(X), p.resizeHandler.init(X), p.slidesHandler.init(X), p.options.loop && p.slideLooper.loop(), w.offsetParent && C.length && p.dragHandler.init(X), D = o.init(X, L)));
|
|
4206
4215
|
}
|
|
4207
4216
|
function B(W, I) {
|
|
4208
4217
|
const $ = ee();
|
|
@@ -4223,7 +4232,7 @@ function ze(t, e, n) {
|
|
|
4223
4232
|
const I = p.index.add(1).get();
|
|
4224
4233
|
z(I, W, -1);
|
|
4225
4234
|
}
|
|
4226
|
-
function
|
|
4235
|
+
function M(W) {
|
|
4227
4236
|
const I = p.index.add(-1).get();
|
|
4228
4237
|
z(I, W, 1);
|
|
4229
4238
|
}
|
|
@@ -4266,21 +4275,21 @@ function ze(t, e, n) {
|
|
|
4266
4275
|
function H() {
|
|
4267
4276
|
return C;
|
|
4268
4277
|
}
|
|
4269
|
-
const
|
|
4278
|
+
const X = {
|
|
4270
4279
|
canScrollNext: V,
|
|
4271
4280
|
canScrollPrev: te,
|
|
4272
4281
|
containerNode: E,
|
|
4273
4282
|
internalEngine: T,
|
|
4274
4283
|
destroy: O,
|
|
4275
4284
|
off: x,
|
|
4276
|
-
on:
|
|
4285
|
+
on: h,
|
|
4277
4286
|
emit: a,
|
|
4278
4287
|
plugins: ce,
|
|
4279
4288
|
previousScrollSnap: de,
|
|
4280
|
-
reInit:
|
|
4289
|
+
reInit: f,
|
|
4281
4290
|
rootNode: S,
|
|
4282
4291
|
scrollNext: P,
|
|
4283
|
-
scrollPrev:
|
|
4292
|
+
scrollPrev: M,
|
|
4284
4293
|
scrollProgress: ie,
|
|
4285
4294
|
scrollSnapList: Q,
|
|
4286
4295
|
scrollTo: z,
|
|
@@ -4289,9 +4298,9 @@ function ze(t, e, n) {
|
|
|
4289
4298
|
slidesInView: ae,
|
|
4290
4299
|
slidesNotInView: q
|
|
4291
4300
|
};
|
|
4292
|
-
return N(e, n), setTimeout(() => d.emit("init"), 0),
|
|
4301
|
+
return N(e, n), setTimeout(() => d.emit("init"), 0), X;
|
|
4293
4302
|
}
|
|
4294
|
-
|
|
4303
|
+
Pe.globalOptions = void 0;
|
|
4295
4304
|
function rt(t = {}, e = []) {
|
|
4296
4305
|
const n = Ye(t), s = Ye(e), [l, i] = oe(), [o, c] = oe(), d = se(() => {
|
|
4297
4306
|
l && l.reInit(n.current, s.current);
|
|
@@ -4302,15 +4311,15 @@ function rt(t = {}, e = []) {
|
|
|
4302
4311
|
vr(s.current, e) || (s.current = e, d());
|
|
4303
4312
|
}, [e, d]), Y(() => {
|
|
4304
4313
|
if (kr() && o) {
|
|
4305
|
-
|
|
4306
|
-
const u =
|
|
4314
|
+
Pe.globalOptions = rt.globalOptions;
|
|
4315
|
+
const u = Pe(o, n.current, s.current);
|
|
4307
4316
|
return i(u), () => u.destroy();
|
|
4308
4317
|
} else
|
|
4309
4318
|
i(void 0);
|
|
4310
4319
|
}, [o, i]), [c, l];
|
|
4311
4320
|
}
|
|
4312
4321
|
rt.globalOptions = void 0;
|
|
4313
|
-
const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slides_gu7c2_20", Qr = "_slide_gu7c2_20", es = "_slideInner_gu7c2_40", ts = "_loaderOverlay_gu7c2_48", ns = "_image_gu7c2_58", os = "_loaded_gu7c2_69", rs = "
|
|
4322
|
+
const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slides_gu7c2_20", Qr = "_slide_gu7c2_20", es = "_slideInner_gu7c2_40", ts = "_loaderOverlay_gu7c2_48", ns = "_image_gu7c2_58", os = "_loaded_gu7c2_69", rs = "_loading_gu7c2_73", ss = "_empty_gu7c2_81", is = "_controls_gu7c2_87", as = "_arrows_gu7c2_97", ls = "_dots_gu7c2_107", ds = "_dot_gu7c2_107", cs = "_dotActive_gu7c2_133", Z = {
|
|
4314
4323
|
carouselContainer: Zr,
|
|
4315
4324
|
viewport: Xr,
|
|
4316
4325
|
slides: Jr,
|
|
@@ -4319,13 +4328,14 @@ const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slide
|
|
|
4319
4328
|
loaderOverlay: ts,
|
|
4320
4329
|
image: ns,
|
|
4321
4330
|
loaded: os,
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4331
|
+
loading: rs,
|
|
4332
|
+
empty: ss,
|
|
4333
|
+
controls: is,
|
|
4334
|
+
arrows: as,
|
|
4335
|
+
dots: ls,
|
|
4336
|
+
dot: ds,
|
|
4337
|
+
dotActive: cs
|
|
4338
|
+
}, us = ln, ps = ({
|
|
4329
4339
|
images: t,
|
|
4330
4340
|
autoPlay: e = !1,
|
|
4331
4341
|
autoDelay: n = 5,
|
|
@@ -4338,19 +4348,26 @@ const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slide
|
|
|
4338
4348
|
"data-color": u,
|
|
4339
4349
|
"data-size": v
|
|
4340
4350
|
}) => {
|
|
4341
|
-
const { t: m } = Ee()
|
|
4351
|
+
const { t: m } = Ee();
|
|
4352
|
+
Y(() => {
|
|
4353
|
+
const z = "rk-carousel-inline-styles";
|
|
4354
|
+
if (typeof document > "u" || document.getElementById(z)) return;
|
|
4355
|
+
const P = ms(Z), M = document.createElement("style");
|
|
4356
|
+
M.id = z, M.textContent = P, document.head.appendChild(M);
|
|
4357
|
+
}, []);
|
|
4358
|
+
const h = {
|
|
4342
4359
|
loop: !0,
|
|
4343
4360
|
align: "start",
|
|
4344
4361
|
containScroll: "trimSnaps",
|
|
4345
4362
|
slidesToScroll: 1
|
|
4346
|
-
}, [x, a] = rt(
|
|
4363
|
+
}, [x, a] = rt(h), [f, k] = oe(0), [p, y] = oe([]), [g, L] = oe([]);
|
|
4347
4364
|
Y(() => {
|
|
4348
|
-
|
|
4365
|
+
L(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
4349
4366
|
}, [t]);
|
|
4350
4367
|
const D = se((z) => {
|
|
4351
|
-
|
|
4352
|
-
const
|
|
4353
|
-
return
|
|
4368
|
+
L((P) => {
|
|
4369
|
+
const M = [...P];
|
|
4370
|
+
return M[z] = !0, M;
|
|
4354
4371
|
});
|
|
4355
4372
|
}, []), w = Te(() => n * 1e3, [n]), C = se(() => {
|
|
4356
4373
|
a && k(a.selectedScrollSnap());
|
|
@@ -4375,15 +4392,15 @@ const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slide
|
|
|
4375
4392
|
return /* @__PURE__ */ _(
|
|
4376
4393
|
"div",
|
|
4377
4394
|
{
|
|
4378
|
-
className:
|
|
4395
|
+
className: Z.carouselContainer,
|
|
4379
4396
|
"data-color": u,
|
|
4380
4397
|
"data-size": v,
|
|
4381
4398
|
"data-variant": i,
|
|
4382
4399
|
children: [
|
|
4383
|
-
/* @__PURE__ */ r("div", { className:
|
|
4400
|
+
/* @__PURE__ */ r("div", { className: Z.viewport, ref: x, children: /* @__PURE__ */ r(
|
|
4384
4401
|
"div",
|
|
4385
4402
|
{
|
|
4386
|
-
className:
|
|
4403
|
+
className: Z.slides,
|
|
4387
4404
|
style: {
|
|
4388
4405
|
marginLeft: `-${O}px`,
|
|
4389
4406
|
marginRight: `-${O}px`
|
|
@@ -4391,7 +4408,7 @@ const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slide
|
|
|
4391
4408
|
children: t && t.length > 0 ? t.map((z, P) => /* @__PURE__ */ r(
|
|
4392
4409
|
"div",
|
|
4393
4410
|
{
|
|
4394
|
-
className:
|
|
4411
|
+
className: Z.slide,
|
|
4395
4412
|
style: {
|
|
4396
4413
|
flex: `0 0 ${G}`,
|
|
4397
4414
|
paddingLeft: `${O}px`,
|
|
@@ -4400,30 +4417,30 @@ const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slide
|
|
|
4400
4417
|
overflow: "hidden"
|
|
4401
4418
|
// Ensure radius clips content
|
|
4402
4419
|
},
|
|
4403
|
-
children: /* @__PURE__ */ _("div", { className:
|
|
4404
|
-
!g[P] && /* @__PURE__ */ r("div", { className:
|
|
4420
|
+
children: /* @__PURE__ */ _("div", { className: Z.slideInner, style: { borderRadius: `${d}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
4421
|
+
!g[P] && /* @__PURE__ */ r("div", { className: Z.loaderOverlay, children: /* @__PURE__ */ r(us, { "aria-label": m("carousel.loading") }) }),
|
|
4405
4422
|
/* @__PURE__ */ r(
|
|
4406
4423
|
"img",
|
|
4407
4424
|
{
|
|
4408
|
-
className: `${
|
|
4425
|
+
className: `${Z.image} ${g[P] ? Z.loaded : Z.loadingImage}`,
|
|
4409
4426
|
src: z.src,
|
|
4410
4427
|
alt: z.alt,
|
|
4411
4428
|
loading: P < B ? "eager" : "lazy",
|
|
4412
4429
|
crossOrigin: "anonymous",
|
|
4413
4430
|
onLoad: () => D(P),
|
|
4414
|
-
onError: (
|
|
4415
|
-
|
|
4431
|
+
onError: (M) => {
|
|
4432
|
+
M.target.style.display = "none", D(P);
|
|
4416
4433
|
}
|
|
4417
4434
|
}
|
|
4418
4435
|
)
|
|
4419
4436
|
] })
|
|
4420
4437
|
},
|
|
4421
4438
|
`image-${P}-${z.src}`
|
|
4422
|
-
)) : /* @__PURE__ */ r("div", { className:
|
|
4439
|
+
)) : /* @__PURE__ */ r("div", { className: Z.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ r("div", { className: Z.empty, children: "Ingen bilder" }) })
|
|
4423
4440
|
}
|
|
4424
4441
|
) }),
|
|
4425
|
-
(s || l && t && t.length > 1) && /* @__PURE__ */ _("div", { className:
|
|
4426
|
-
s && /* @__PURE__ */ _("div", { className:
|
|
4442
|
+
(s || l && t && t.length > 1) && /* @__PURE__ */ _("div", { className: Z.controls, "aria-hidden": "false", children: [
|
|
4443
|
+
s && /* @__PURE__ */ _("div", { className: Z.arrows, children: [
|
|
4427
4444
|
/* @__PURE__ */ r(
|
|
4428
4445
|
Se,
|
|
4429
4446
|
{
|
|
@@ -4447,16 +4464,16 @@ const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slide
|
|
|
4447
4464
|
}
|
|
4448
4465
|
)
|
|
4449
4466
|
] }),
|
|
4450
|
-
l && t && t.length > 1 && /* @__PURE__ */ r("div", { className:
|
|
4451
|
-
const
|
|
4467
|
+
l && t && t.length > 1 && /* @__PURE__ */ r("div", { className: Z.dots, role: "tablist", "aria-label": m("carousel.imagePosition"), children: p.map((z, P) => {
|
|
4468
|
+
const M = P === f;
|
|
4452
4469
|
return /* @__PURE__ */ r(
|
|
4453
4470
|
"button",
|
|
4454
4471
|
{
|
|
4455
4472
|
type: "button",
|
|
4456
|
-
className: `${
|
|
4473
|
+
className: `${Z.dot} ${M ? Z.dotActive : ""}`,
|
|
4457
4474
|
onClick: () => A(P),
|
|
4458
4475
|
"aria-label": `${m("carousel.goToImage")} ${P + 1}`,
|
|
4459
|
-
"aria-selected":
|
|
4476
|
+
"aria-selected": M,
|
|
4460
4477
|
role: "tab"
|
|
4461
4478
|
},
|
|
4462
4479
|
`dot-${P}`
|
|
@@ -4467,85 +4484,257 @@ const Zr = "_carouselContainer_gu7c2_1", Xr = "_viewport_gu7c2_14", Jr = "_slide
|
|
|
4467
4484
|
}
|
|
4468
4485
|
);
|
|
4469
4486
|
};
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4487
|
+
ps.displayName = "Carousel";
|
|
4488
|
+
function ms(t) {
|
|
4489
|
+
return `
|
|
4490
|
+
.${t.carouselContainer} {
|
|
4491
|
+
position: relative;
|
|
4492
|
+
display: block;
|
|
4493
|
+
width: 100%;
|
|
4494
|
+
height: 100%;
|
|
4495
|
+
min-height: 200px;
|
|
4496
|
+
background-color: var(--ds-color-background-default, #fff);
|
|
4497
|
+
color: var(--ds-color-text-default, #2b2b2b);
|
|
4498
|
+
border-radius: var(--ds-border-radius-md, 4px);
|
|
4499
|
+
box-sizing: border-box;
|
|
4500
|
+
max-width: 100%;
|
|
4501
|
+
}
|
|
4502
|
+
.${t.viewport} {
|
|
4503
|
+
overflow: hidden;
|
|
4504
|
+
width: 100%;
|
|
4505
|
+
height: 100%;
|
|
4506
|
+
}
|
|
4507
|
+
.${t.slides} {
|
|
4508
|
+
display: flex;
|
|
4509
|
+
height: 100%;
|
|
4510
|
+
user-select: none;
|
|
4511
|
+
-webkit-touch-callout: none;
|
|
4512
|
+
-khtml-user-select: none;
|
|
4513
|
+
-moz-user-select: none;
|
|
4514
|
+
-ms-user-select: none;
|
|
4515
|
+
}
|
|
4516
|
+
.${t.slide} {
|
|
4517
|
+
position: relative;
|
|
4518
|
+
min-width: 0;
|
|
4519
|
+
height: 100%;
|
|
4520
|
+
display: flex;
|
|
4521
|
+
align-items: center;
|
|
4522
|
+
justify-content: center;
|
|
4523
|
+
box-sizing: border-box;
|
|
4524
|
+
}
|
|
4525
|
+
.${t.slideInner} {
|
|
4526
|
+
position: relative;
|
|
4527
|
+
width: 100%;
|
|
4528
|
+
height: 100%;
|
|
4529
|
+
background-color: var(--ds-color-neutral-surface-subtle, #f5f5f5);
|
|
4530
|
+
overflow: hidden;
|
|
4531
|
+
}
|
|
4532
|
+
.${t.loaderOverlay} {
|
|
4533
|
+
position: absolute;
|
|
4534
|
+
inset: 0;
|
|
4535
|
+
display: flex;
|
|
4536
|
+
align-items: center;
|
|
4537
|
+
justify-content: center;
|
|
4538
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
4539
|
+
z-index: 2;
|
|
4540
|
+
}
|
|
4541
|
+
.${t.image} {
|
|
4542
|
+
position: absolute;
|
|
4543
|
+
inset: 0;
|
|
4544
|
+
width: 100%;
|
|
4545
|
+
height: 100%;
|
|
4546
|
+
object-fit: cover;
|
|
4547
|
+
opacity: 0;
|
|
4548
|
+
transition: opacity 0.3s ease-in-out;
|
|
4549
|
+
z-index: 1;
|
|
4550
|
+
}
|
|
4551
|
+
.${t.image}.${t.loaded} {
|
|
4552
|
+
opacity: 1;
|
|
4553
|
+
}
|
|
4554
|
+
.${t.loading} {
|
|
4555
|
+
display: inline-flex;
|
|
4556
|
+
align-items: center;
|
|
4557
|
+
gap: var(--ds-size-2, 8px);
|
|
4558
|
+
color: var(--ds-color-text-subtle, #5d5d5d);
|
|
4559
|
+
font-size: var(--ds-font-size-sm, 14px);
|
|
4560
|
+
}
|
|
4561
|
+
.${t.empty} {
|
|
4562
|
+
color: var(--ds-color-text-subtle, #5d5d5d);
|
|
4563
|
+
font-size: var(--ds-font-size-sm, 14px);
|
|
4564
|
+
text-align: center;
|
|
4565
|
+
}
|
|
4566
|
+
.${t.controls} {
|
|
4567
|
+
position: absolute;
|
|
4568
|
+
inset: 0;
|
|
4569
|
+
display: flex;
|
|
4570
|
+
align-items: center;
|
|
4571
|
+
justify-content: center;
|
|
4572
|
+
pointer-events: none;
|
|
4573
|
+
z-index: 10;
|
|
4574
|
+
}
|
|
4575
|
+
.${t.arrows} {
|
|
4576
|
+
display: flex;
|
|
4577
|
+
align-items: center;
|
|
4578
|
+
justify-content: space-between;
|
|
4579
|
+
width: 100%;
|
|
4580
|
+
padding: 0 var(--ds-size-4, 16px);
|
|
4581
|
+
box-sizing: border-box;
|
|
4582
|
+
pointer-events: auto;
|
|
4583
|
+
}
|
|
4584
|
+
.${t.dots} {
|
|
4585
|
+
position: absolute;
|
|
4586
|
+
left: 50%;
|
|
4587
|
+
transform: translateX(-50%);
|
|
4588
|
+
bottom: var(--ds-size-3, 12px);
|
|
4589
|
+
display: inline-flex;
|
|
4590
|
+
gap: var(--ds-size-2, 8px);
|
|
4591
|
+
pointer-events: auto;
|
|
4592
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
4593
|
+
backdrop-filter: blur(4px);
|
|
4594
|
+
padding: var(--ds-size-1, 4px) var(--ds-size-2, 8px);
|
|
4595
|
+
border-radius: 999px;
|
|
4596
|
+
}
|
|
4597
|
+
.${t.dot} {
|
|
4598
|
+
width: 12px;
|
|
4599
|
+
height: 12px;
|
|
4600
|
+
border-radius: 999px;
|
|
4601
|
+
border: var(--ds-border-width-default, 1px) solid var(--ds-color-border-subtle, #d6d6d6);
|
|
4602
|
+
background-color: rgba(255, 255, 255, 0.6);
|
|
4603
|
+
padding: 0;
|
|
4604
|
+
margin: 0;
|
|
4605
|
+
cursor: pointer;
|
|
4606
|
+
transition: all 0.2s ease;
|
|
4607
|
+
}
|
|
4608
|
+
.${t.dotActive} {
|
|
4609
|
+
background-color: var(--primary-color-red-10);
|
|
4610
|
+
border-color: var(--primary-color-red-10);
|
|
4611
|
+
transform: scale(1.1);
|
|
4612
|
+
}
|
|
4613
|
+
@media (max-width: 640px) {
|
|
4614
|
+
.${t.carouselContainer} {
|
|
4615
|
+
height: auto;
|
|
4616
|
+
min-height: 150px;
|
|
4617
|
+
aspect-ratio: 16 / 9;
|
|
4618
|
+
}
|
|
4619
|
+
.${t.viewport} {
|
|
4620
|
+
aspect-ratio: 16 / 9;
|
|
4621
|
+
height: auto;
|
|
4622
|
+
}
|
|
4623
|
+
.${t.slides} {
|
|
4624
|
+
height: auto;
|
|
4625
|
+
min-height: 150px;
|
|
4626
|
+
}
|
|
4627
|
+
.${t.slide} {
|
|
4628
|
+
height: auto;
|
|
4629
|
+
min-height: 150px;
|
|
4630
|
+
}
|
|
4631
|
+
.${t.slideInner} {
|
|
4632
|
+
aspect-ratio: 16 / 9;
|
|
4633
|
+
height: auto;
|
|
4634
|
+
}
|
|
4635
|
+
.${t.arrows} {
|
|
4636
|
+
padding: 0 var(--ds-size-2, 8px);
|
|
4637
|
+
}
|
|
4638
|
+
.${t.dots} {
|
|
4639
|
+
bottom: var(--ds-size-2, 8px);
|
|
4640
|
+
gap: var(--ds-size-1, 4px);
|
|
4641
|
+
}
|
|
4642
|
+
.${t.dot} {
|
|
4643
|
+
width: 10px;
|
|
4644
|
+
height: 10px;
|
|
4645
|
+
}
|
|
4646
|
+
}
|
|
4647
|
+
@media (max-width: 400px) {
|
|
4648
|
+
.${t.carouselContainer} {
|
|
4649
|
+
min-height: 120px;
|
|
4650
|
+
}
|
|
4651
|
+
.${t.arrows} {
|
|
4652
|
+
padding: 0 var(--ds-size-1, 4px);
|
|
4653
|
+
}
|
|
4654
|
+
.${t.arrows} button {
|
|
4655
|
+
transform: scale(0.85);
|
|
4656
|
+
}
|
|
4657
|
+
}
|
|
4658
|
+
`;
|
|
4659
|
+
}
|
|
4660
|
+
const pa = dn, ma = cn, ga = un, J = pn, ha = mn, fa = gn, ka = hn, va = fn, ya = kn, ba = vn, xa = yn, Ta = bn, gs = xn, hs = Tn;
|
|
4661
|
+
gs.displayName = "Field.Description";
|
|
4662
|
+
hs.displayName = "Field.Counter";
|
|
4663
|
+
const Sa = Dt, fs = he((t, e) => /* @__PURE__ */ r(Sn, { ref: e, ...t }));
|
|
4664
|
+
fs.displayName = "Heading";
|
|
4665
|
+
const ks = Cn;
|
|
4666
|
+
ks.displayName = "Input";
|
|
4667
|
+
const vs = he((t, e) => /* @__PURE__ */ r(wn, { ref: e, ...t }));
|
|
4668
|
+
vs.displayName = "Label";
|
|
4669
|
+
const ue = In, Ca = Dn, ys = _n, wa = An, Ia = Mn, Da = Ln, _a = jn;
|
|
4670
|
+
ys.displayName = "Pagination";
|
|
4671
|
+
const Je = he(
|
|
4483
4672
|
(t, e) => /* @__PURE__ */ r(En, { ref: e, ...t })
|
|
4484
4673
|
);
|
|
4485
4674
|
Je.displayName = "Paragraph";
|
|
4486
|
-
const
|
|
4675
|
+
const Aa = Fn, Ma = Nn, La = Bn, Be = Object.assign(zn, {
|
|
4487
4676
|
Button: Rn,
|
|
4488
4677
|
ClearButton: $n,
|
|
4489
|
-
Input:
|
|
4490
|
-
}),
|
|
4491
|
-
|
|
4492
|
-
const Ke = On,
|
|
4493
|
-
|
|
4494
|
-
const
|
|
4495
|
-
header:
|
|
4496
|
-
languageSwitch:
|
|
4497
|
-
searchOverlay:
|
|
4498
|
-
headerExtension:
|
|
4499
|
-
extensionContentWrapper:
|
|
4500
|
-
extensionContent:
|
|
4501
|
-
extensionDivider:
|
|
4502
|
-
languageLabel:
|
|
4503
|
-
languageLink:
|
|
4504
|
-
headerInner:
|
|
4505
|
-
logoWrapper:
|
|
4506
|
-
logo:
|
|
4507
|
-
secondaryLogoWrapper:
|
|
4508
|
-
slotComponent:
|
|
4509
|
-
slotContainer:
|
|
4510
|
-
slotText:
|
|
4511
|
-
secondaryLogo:
|
|
4512
|
-
redCrossLogo:
|
|
4513
|
-
primaryLogo:
|
|
4514
|
-
navItems:
|
|
4515
|
-
navLink:
|
|
4516
|
-
actions:
|
|
4517
|
-
ctaButton:
|
|
4518
|
-
themeToggle:
|
|
4519
|
-
userInfo:
|
|
4520
|
-
userName:
|
|
4521
|
-
loginLink:
|
|
4522
|
-
loginText:
|
|
4523
|
-
underline:
|
|
4524
|
-
searchButtonWrapper:
|
|
4525
|
-
buttonText:
|
|
4526
|
-
menuButton:
|
|
4527
|
-
menuOverlay:
|
|
4528
|
-
searchContent:
|
|
4529
|
-
menuContent:
|
|
4530
|
-
menuLeftColumn:
|
|
4531
|
-
menuRightColumn:
|
|
4532
|
-
slotContent:
|
|
4533
|
-
navList:
|
|
4534
|
-
menuUtilities:
|
|
4535
|
-
menuBrand:
|
|
4536
|
-
suggestionsSection:
|
|
4537
|
-
suggestionsTitle:
|
|
4538
|
-
searchResults:
|
|
4539
|
-
resultList:
|
|
4540
|
-
resultItem:
|
|
4541
|
-
resultLink:
|
|
4542
|
-
suggestionIcon:
|
|
4543
|
-
suggestionText:
|
|
4544
|
-
highlightedText:
|
|
4545
|
-
remainingText:
|
|
4546
|
-
viewAllLink:
|
|
4547
|
-
noResults:
|
|
4548
|
-
},
|
|
4678
|
+
Input: Pn
|
|
4679
|
+
}), ja = Gn, Ea = Wn, Fa = Hn, bs = Un;
|
|
4680
|
+
bs.displayName = "Suggestion";
|
|
4681
|
+
const Ke = On, Na = Vn, Ba = Kn, za = Yn, Pa = qn, $a = Zn, Ra = Xn, Ga = Jn, xs = he((t, e) => /* @__PURE__ */ r(Qn, { ref: e, ...t }));
|
|
4682
|
+
xs.displayName = "ValidationMessage";
|
|
4683
|
+
const Ts = "_header_ymzss_1", Ss = "_languageSwitch_ymzss_36", Cs = "_searchOverlay_ymzss_40", ws = "_headerExtension_ymzss_45", Is = "_extensionContentWrapper_ymzss_73", Ds = "_extensionContent_ymzss_73", _s = "_extensionDivider_ymzss_100", As = "_languageLabel_ymzss_124", Ms = "_languageLink_ymzss_140", Ls = "_headerInner_ymzss_175", js = "_logoWrapper_ymzss_192", Es = "_logo_ymzss_192", Fs = "_secondaryLogoWrapper_ymzss_215", Ns = "_slotComponent_ymzss_224", Bs = "_slotContainer_ymzss_234", zs = "_slotText_ymzss_242", Ps = "_secondaryLogo_ymzss_215", $s = "_redCrossLogo_ymzss_269", Rs = "_primaryLogo_ymzss_275", Gs = "_navItems_ymzss_279", Ws = "_navLink_ymzss_288", Hs = "_actions_ymzss_301", Us = "_ctaButton_ymzss_309", Os = "_themeToggle_ymzss_314", Vs = "_userInfo_ymzss_319", Ks = "_userName_ymzss_325", Ys = "_loginLink_ymzss_332", qs = "_loginText_ymzss_341", Zs = "_underline_ymzss_348", Xs = "_searchButtonWrapper_ymzss_354", Js = "_buttonText_ymzss_358", Qs = "_menuButton_ymzss_363", ei = "_menuOverlay_ymzss_368", ti = "_searchContent_ymzss_402", ni = "_menuContent_ymzss_412", oi = "_menuLeftColumn_ymzss_421", ri = "_menuRightColumn_ymzss_427", si = "_slotContent_ymzss_441", ii = "_navList_ymzss_454", ai = "_menuUtilities_ymzss_461", li = "_menuBrand_ymzss_468", di = "_suggestionsSection_ymzss_472", ci = "_suggestionsTitle_ymzss_478", ui = "_searchResults_ymzss_487", pi = "_resultList_ymzss_493", mi = "_resultItem_ymzss_499", gi = "_resultLink_ymzss_507", hi = "_suggestionIcon_ymzss_521", fi = "_suggestionText_ymzss_534", ki = "_highlightedText_ymzss_541", vi = "_remainingText_ymzss_546", yi = "_viewAllLink_ymzss_559", bi = "_noResults_ymzss_594", b = {
|
|
4684
|
+
header: Ts,
|
|
4685
|
+
languageSwitch: Ss,
|
|
4686
|
+
searchOverlay: Cs,
|
|
4687
|
+
headerExtension: ws,
|
|
4688
|
+
extensionContentWrapper: Is,
|
|
4689
|
+
extensionContent: Ds,
|
|
4690
|
+
extensionDivider: _s,
|
|
4691
|
+
languageLabel: As,
|
|
4692
|
+
languageLink: Ms,
|
|
4693
|
+
headerInner: Ls,
|
|
4694
|
+
logoWrapper: js,
|
|
4695
|
+
logo: Es,
|
|
4696
|
+
secondaryLogoWrapper: Fs,
|
|
4697
|
+
slotComponent: Ns,
|
|
4698
|
+
slotContainer: Bs,
|
|
4699
|
+
slotText: zs,
|
|
4700
|
+
secondaryLogo: Ps,
|
|
4701
|
+
redCrossLogo: $s,
|
|
4702
|
+
primaryLogo: Rs,
|
|
4703
|
+
navItems: Gs,
|
|
4704
|
+
navLink: Ws,
|
|
4705
|
+
actions: Hs,
|
|
4706
|
+
ctaButton: Us,
|
|
4707
|
+
themeToggle: Os,
|
|
4708
|
+
userInfo: Vs,
|
|
4709
|
+
userName: Ks,
|
|
4710
|
+
loginLink: Ys,
|
|
4711
|
+
loginText: qs,
|
|
4712
|
+
underline: Zs,
|
|
4713
|
+
searchButtonWrapper: Xs,
|
|
4714
|
+
buttonText: Js,
|
|
4715
|
+
menuButton: Qs,
|
|
4716
|
+
menuOverlay: ei,
|
|
4717
|
+
searchContent: ti,
|
|
4718
|
+
menuContent: ni,
|
|
4719
|
+
menuLeftColumn: oi,
|
|
4720
|
+
menuRightColumn: ri,
|
|
4721
|
+
slotContent: si,
|
|
4722
|
+
navList: ii,
|
|
4723
|
+
menuUtilities: ai,
|
|
4724
|
+
menuBrand: li,
|
|
4725
|
+
suggestionsSection: di,
|
|
4726
|
+
suggestionsTitle: ci,
|
|
4727
|
+
searchResults: ui,
|
|
4728
|
+
resultList: pi,
|
|
4729
|
+
resultItem: mi,
|
|
4730
|
+
resultLink: gi,
|
|
4731
|
+
suggestionIcon: hi,
|
|
4732
|
+
suggestionText: fi,
|
|
4733
|
+
highlightedText: ki,
|
|
4734
|
+
remainingText: vi,
|
|
4735
|
+
viewAllLink: yi,
|
|
4736
|
+
noResults: bi
|
|
4737
|
+
}, xi = [
|
|
4549
4738
|
// Pages
|
|
4550
4739
|
{ id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
|
|
4551
4740
|
{ id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
|
|
@@ -4608,7 +4797,7 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4608
4797
|
{ id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
|
|
4609
4798
|
{ id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
|
|
4610
4799
|
{ id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
|
|
4611
|
-
],
|
|
4800
|
+
], Wa = ({
|
|
4612
4801
|
"data-color": t = "primary",
|
|
4613
4802
|
activePage: e,
|
|
4614
4803
|
setPage: n,
|
|
@@ -4621,22 +4810,22 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4621
4810
|
ctaIcon: u = /* @__PURE__ */ r(lo, { "aria-hidden": !0 }),
|
|
4622
4811
|
onCtaClick: v,
|
|
4623
4812
|
showThemeToggle: m = !1,
|
|
4624
|
-
secondaryLogo:
|
|
4813
|
+
secondaryLogo: h = !1,
|
|
4625
4814
|
secondaryLogoSrc: x,
|
|
4626
4815
|
secondaryLogoSrcDark: a,
|
|
4627
|
-
secondaryLogoAlt:
|
|
4816
|
+
secondaryLogoAlt: f = "Secondary Logo",
|
|
4628
4817
|
navItems: k,
|
|
4629
4818
|
showNavItems: p = !0,
|
|
4630
4819
|
showMenuButton: y = !0,
|
|
4631
4820
|
showHeaderExtension: g = !1,
|
|
4632
|
-
showModeToggle:
|
|
4821
|
+
showModeToggle: L = !1,
|
|
4633
4822
|
showLanguageSwitch: D = !1
|
|
4634
4823
|
}) => {
|
|
4635
|
-
const [w, C] = oe(!1), [A, j] = oe(!1), [N, B] = oe(""), [G, O] = oe("light"), { language: z, setLanguage: P, t:
|
|
4824
|
+
const [w, C] = oe(!1), [A, j] = oe(!1), [N, B] = oe(""), [G, O] = oe("light"), { language: z, setLanguage: P, t: M } = Ee(), [V, te] = oe(!1);
|
|
4636
4825
|
Y(() => {
|
|
4637
4826
|
const T = "rk-header-inline-styles";
|
|
4638
4827
|
if (typeof document > "u" || document.getElementById(T)) return;
|
|
4639
|
-
const S =
|
|
4828
|
+
const S = Ti(b), E = document.createElement("style");
|
|
4640
4829
|
E.id = T, E.textContent = S, document.head.appendChild(E);
|
|
4641
4830
|
}, []);
|
|
4642
4831
|
const Q = () => /* @__PURE__ */ _(
|
|
@@ -4738,7 +4927,7 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4738
4927
|
}, q = Te(() => {
|
|
4739
4928
|
if (!N.trim()) return [];
|
|
4740
4929
|
const T = N.toLowerCase();
|
|
4741
|
-
return
|
|
4930
|
+
return xi.filter(
|
|
4742
4931
|
(S) => S.title.toLowerCase().startsWith(T)
|
|
4743
4932
|
);
|
|
4744
4933
|
}, [N]), ce = (T) => {
|
|
@@ -4746,31 +4935,31 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4746
4935
|
};
|
|
4747
4936
|
return /* @__PURE__ */ _("header", { className: b.header, "data-open": w ? "true" : "false", "data-color": t, children: [
|
|
4748
4937
|
g && /* @__PURE__ */ r("div", { className: b.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ _("div", { className: b.extensionContentWrapper, children: [
|
|
4749
|
-
|
|
4938
|
+
L && /* @__PURE__ */ r("div", { className: b.extensionContent, children: /* @__PURE__ */ r(
|
|
4750
4939
|
Ke,
|
|
4751
4940
|
{
|
|
4752
4941
|
"data-size": "sm",
|
|
4753
4942
|
checked: G === "dark",
|
|
4754
4943
|
onChange: ie,
|
|
4755
|
-
label:
|
|
4944
|
+
label: M("header.darkMode"),
|
|
4756
4945
|
color: "neutral",
|
|
4757
4946
|
"data-color-scheme": "light"
|
|
4758
4947
|
}
|
|
4759
4948
|
) }),
|
|
4760
|
-
|
|
4949
|
+
L && D && /* @__PURE__ */ r("div", { className: b.extensionDivider }),
|
|
4761
4950
|
D && /* @__PURE__ */ _("div", { className: b.languageSwitch, children: [
|
|
4762
|
-
/* @__PURE__ */ r("span", { className: b.languageLabel, children:
|
|
4951
|
+
/* @__PURE__ */ r("span", { className: b.languageLabel, children: M("header.language") }),
|
|
4763
4952
|
/* @__PURE__ */ _(J.TriggerContext, { children: [
|
|
4764
4953
|
/* @__PURE__ */ _(
|
|
4765
4954
|
J.Trigger,
|
|
4766
4955
|
{
|
|
4767
4956
|
className: b.languageLink,
|
|
4768
|
-
"aria-label":
|
|
4957
|
+
"aria-label": M("header.selectLanguage"),
|
|
4769
4958
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4770
4959
|
children: [
|
|
4771
4960
|
z,
|
|
4772
4961
|
" ",
|
|
4773
|
-
/* @__PURE__ */ r(
|
|
4962
|
+
/* @__PURE__ */ r(ht, { "aria-hidden": !0 })
|
|
4774
4963
|
]
|
|
4775
4964
|
}
|
|
4776
4965
|
),
|
|
@@ -4795,19 +4984,19 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4795
4984
|
{
|
|
4796
4985
|
href: "/",
|
|
4797
4986
|
className: `${b.logo} ${b.primaryLogo}`,
|
|
4798
|
-
"aria-label":
|
|
4987
|
+
"aria-label": M("header.homeAriaLabel"),
|
|
4799
4988
|
onClick: ee,
|
|
4800
4989
|
children: /* @__PURE__ */ r(Q, {})
|
|
4801
4990
|
}
|
|
4802
4991
|
),
|
|
4803
|
-
/* @__PURE__ */ r("div", { className: b.secondaryLogoWrapper, children:
|
|
4992
|
+
/* @__PURE__ */ r("div", { className: b.secondaryLogoWrapper, children: h && x ? /* @__PURE__ */ r(
|
|
4804
4993
|
"img",
|
|
4805
4994
|
{
|
|
4806
4995
|
src: G === "dark" && a ? a : x,
|
|
4807
|
-
alt:
|
|
4996
|
+
alt: f,
|
|
4808
4997
|
className: b.secondaryLogo
|
|
4809
4998
|
}
|
|
4810
|
-
) :
|
|
4999
|
+
) : h ? /* @__PURE__ */ r("div", { className: b.slotComponent, children: /* @__PURE__ */ r("div", { className: b.slotContainer, children: /* @__PURE__ */ r("p", { className: b.slotText, children: "SLOT" }) }) }) : null })
|
|
4811
5000
|
] }),
|
|
4812
5001
|
p && k && k.length > 0 && !V && /* @__PURE__ */ r("nav", { className: b.navItems, children: k.map((T, S) => /* @__PURE__ */ r(
|
|
4813
5002
|
ue,
|
|
@@ -4832,7 +5021,7 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4832
5021
|
onClick: v,
|
|
4833
5022
|
children: [
|
|
4834
5023
|
u,
|
|
4835
|
-
/* @__PURE__ */ r("span", { className: b.buttonText, children: d ||
|
|
5024
|
+
/* @__PURE__ */ r("span", { className: b.buttonText, children: d || M("header.supportUs") })
|
|
4836
5025
|
]
|
|
4837
5026
|
}
|
|
4838
5027
|
),
|
|
@@ -4841,7 +5030,7 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4841
5030
|
{
|
|
4842
5031
|
checked: G === "dark",
|
|
4843
5032
|
onChange: ie,
|
|
4844
|
-
"aria-label":
|
|
5033
|
+
"aria-label": M("header.toggleTheme")
|
|
4845
5034
|
}
|
|
4846
5035
|
) }),
|
|
4847
5036
|
l && /* @__PURE__ */ _("div", { className: b.userInfo, children: [
|
|
@@ -4849,7 +5038,7 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4849
5038
|
/* @__PURE__ */ r(Mt, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4850
5039
|
] }),
|
|
4851
5040
|
o && /* @__PURE__ */ _("a", { href: "#", className: b.loginLink, children: [
|
|
4852
|
-
/* @__PURE__ */ r("span", { className: b.loginText, children:
|
|
5041
|
+
/* @__PURE__ */ r("span", { className: b.loginText, children: M("header.login") }),
|
|
4853
5042
|
/* @__PURE__ */ r("div", { className: b.underline })
|
|
4854
5043
|
] }),
|
|
4855
5044
|
i && /* @__PURE__ */ r("div", { className: b.searchButtonWrapper, children: /* @__PURE__ */ _(
|
|
@@ -4860,10 +5049,10 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4860
5049
|
"data-size": "md",
|
|
4861
5050
|
onClick: ae,
|
|
4862
5051
|
"aria-expanded": A,
|
|
4863
|
-
"aria-label":
|
|
5052
|
+
"aria-label": M(A ? "header.closeSearch" : "header.openSearch"),
|
|
4864
5053
|
children: [
|
|
4865
|
-
A ? /* @__PURE__ */ r(
|
|
4866
|
-
/* @__PURE__ */ r("span", { className: b.buttonText, children:
|
|
5054
|
+
A ? /* @__PURE__ */ r(ft, { "aria-hidden": !0 }) : /* @__PURE__ */ r(kt, { "aria-hidden": !0 }),
|
|
5055
|
+
/* @__PURE__ */ r("span", { className: b.buttonText, children: M(A ? "header.close" : "header.search") })
|
|
4867
5056
|
]
|
|
4868
5057
|
}
|
|
4869
5058
|
) }),
|
|
@@ -4875,11 +5064,11 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4875
5064
|
"data-size": "md",
|
|
4876
5065
|
onClick: de,
|
|
4877
5066
|
"aria-expanded": w,
|
|
4878
|
-
"aria-label":
|
|
5067
|
+
"aria-label": M(w ? "header.closeMenu" : "header.openMenu"),
|
|
4879
5068
|
className: b.menuButton,
|
|
4880
5069
|
children: [
|
|
4881
|
-
w ? /* @__PURE__ */ r(
|
|
4882
|
-
/* @__PURE__ */ r("span", { className: b.buttonText, children:
|
|
5070
|
+
w ? /* @__PURE__ */ r(ft, { "aria-hidden": !0 }) : /* @__PURE__ */ r(ao, { "aria-hidden": !0 }),
|
|
5071
|
+
/* @__PURE__ */ r("span", { className: b.buttonText, children: M(w ? "header.close" : "header.menu") })
|
|
4883
5072
|
]
|
|
4884
5073
|
}
|
|
4885
5074
|
)
|
|
@@ -4888,20 +5077,20 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4888
5077
|
w && /* @__PURE__ */ r("div", { className: b.menuOverlay, children: /* @__PURE__ */ _("div", { className: b.menuContent, children: [
|
|
4889
5078
|
/* @__PURE__ */ r("div", { className: b.menuLeftColumn }),
|
|
4890
5079
|
/* @__PURE__ */ _("div", { className: b.menuRightColumn, children: [
|
|
4891
|
-
V && (D ||
|
|
5080
|
+
V && (D || L) && /* @__PURE__ */ _("div", { className: b.menuUtilities, children: [
|
|
4892
5081
|
D && /* @__PURE__ */ _("div", { className: b.languageSwitch, children: [
|
|
4893
|
-
/* @__PURE__ */ r("span", { className: b.languageLabel, children:
|
|
5082
|
+
/* @__PURE__ */ r("span", { className: b.languageLabel, children: M("header.language") }),
|
|
4894
5083
|
/* @__PURE__ */ _(J.TriggerContext, { children: [
|
|
4895
5084
|
/* @__PURE__ */ _(
|
|
4896
5085
|
J.Trigger,
|
|
4897
5086
|
{
|
|
4898
5087
|
className: b.languageLink,
|
|
4899
|
-
"aria-label":
|
|
5088
|
+
"aria-label": M("header.selectLanguage"),
|
|
4900
5089
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4901
5090
|
children: [
|
|
4902
5091
|
z,
|
|
4903
5092
|
" ",
|
|
4904
|
-
/* @__PURE__ */ r(
|
|
5093
|
+
/* @__PURE__ */ r(ht, { "aria-hidden": !0 })
|
|
4905
5094
|
]
|
|
4906
5095
|
}
|
|
4907
5096
|
),
|
|
@@ -4918,13 +5107,13 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4918
5107
|
)
|
|
4919
5108
|
] })
|
|
4920
5109
|
] }),
|
|
4921
|
-
|
|
5110
|
+
L && /* @__PURE__ */ r("div", { className: b.extensionContent, children: /* @__PURE__ */ r(
|
|
4922
5111
|
Ke,
|
|
4923
5112
|
{
|
|
4924
5113
|
"data-size": "sm",
|
|
4925
5114
|
checked: G === "dark",
|
|
4926
5115
|
onChange: ie,
|
|
4927
|
-
label:
|
|
5116
|
+
label: M("header.darkMode"),
|
|
4928
5117
|
color: "neutral",
|
|
4929
5118
|
"data-color-scheme": "light"
|
|
4930
5119
|
}
|
|
@@ -4953,17 +5142,17 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4953
5142
|
/* @__PURE__ */ r(
|
|
4954
5143
|
Be.Input,
|
|
4955
5144
|
{
|
|
4956
|
-
"aria-label":
|
|
4957
|
-
placeholder:
|
|
5145
|
+
"aria-label": M("header.search"),
|
|
5146
|
+
placeholder: M("header.searchPlaceholder"),
|
|
4958
5147
|
value: N,
|
|
4959
5148
|
onChange: (T) => B(T.target.value)
|
|
4960
5149
|
}
|
|
4961
5150
|
),
|
|
4962
|
-
/* @__PURE__ */ r(Be.Button, { "aria-label":
|
|
4963
|
-
/* @__PURE__ */ r(Be.ClearButton, { onClick: () => B(""), "aria-label":
|
|
5151
|
+
/* @__PURE__ */ r(Be.Button, { "aria-label": M("header.search") }),
|
|
5152
|
+
/* @__PURE__ */ r(Be.ClearButton, { onClick: () => B(""), "aria-label": M("header.clearSearch") })
|
|
4964
5153
|
] }),
|
|
4965
5154
|
N && /* @__PURE__ */ r("div", { className: b.searchResults, children: q.length > 0 ? /* @__PURE__ */ _("div", { className: b.suggestionsSection, children: [
|
|
4966
|
-
/* @__PURE__ */ r("h3", { className: b.suggestionsTitle, children:
|
|
5155
|
+
/* @__PURE__ */ r("h3", { className: b.suggestionsTitle, children: M("header.suggestions") }),
|
|
4967
5156
|
/* @__PURE__ */ r("ul", { className: b.resultList, children: q.slice(0, 5).map((T) => /* @__PURE__ */ r("li", { className: b.resultItem, children: /* @__PURE__ */ _(
|
|
4968
5157
|
"button",
|
|
4969
5158
|
{
|
|
@@ -4974,11 +5163,11 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4974
5163
|
/* @__PURE__ */ r("span", { className: b.suggestionText, children: (() => {
|
|
4975
5164
|
const S = T.title.toLowerCase().indexOf(N.toLowerCase());
|
|
4976
5165
|
if (S === -1) return /* @__PURE__ */ r("span", { className: b.remainingText, children: T.title });
|
|
4977
|
-
const E = T.title.slice(0, S), H = T.title.slice(S, S + N.length),
|
|
5166
|
+
const E = T.title.slice(0, S), H = T.title.slice(S, S + N.length), X = T.title.slice(S + N.length);
|
|
4978
5167
|
return /* @__PURE__ */ _(Vt, { children: [
|
|
4979
5168
|
/* @__PURE__ */ r("span", { className: b.remainingText, children: E }),
|
|
4980
5169
|
/* @__PURE__ */ r("span", { className: b.highlightedText, children: H }),
|
|
4981
|
-
/* @__PURE__ */ r("span", { className: b.remainingText, children:
|
|
5170
|
+
/* @__PURE__ */ r("span", { className: b.remainingText, children: X })
|
|
4982
5171
|
] });
|
|
4983
5172
|
})() })
|
|
4984
5173
|
]
|
|
@@ -4994,7 +5183,7 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
4994
5183
|
T.preventDefault(), n && n(`search/${N}`), j(!1), B("");
|
|
4995
5184
|
},
|
|
4996
5185
|
children: [
|
|
4997
|
-
|
|
5186
|
+
M("header.viewAll"),
|
|
4998
5187
|
" (",
|
|
4999
5188
|
q.length,
|
|
5000
5189
|
")"
|
|
@@ -5002,7 +5191,7 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
5002
5191
|
}
|
|
5003
5192
|
)
|
|
5004
5193
|
] }) : /* @__PURE__ */ r("div", { className: b.noResults, children: /* @__PURE__ */ _(Je, { children: [
|
|
5005
|
-
|
|
5194
|
+
M("header.noResults"),
|
|
5006
5195
|
' "',
|
|
5007
5196
|
N,
|
|
5008
5197
|
'"'
|
|
@@ -5010,7 +5199,7 @@ const bs = "_header_ymzss_1", xs = "_languageSwitch_ymzss_36", Ts = "_searchOver
|
|
|
5010
5199
|
] }) })
|
|
5011
5200
|
] });
|
|
5012
5201
|
};
|
|
5013
|
-
function
|
|
5202
|
+
function Ti(t) {
|
|
5014
5203
|
const e = t;
|
|
5015
5204
|
return `
|
|
5016
5205
|
.${e.header} {
|
|
@@ -5152,35 +5341,35 @@ function bi(t) {
|
|
|
5152
5341
|
}
|
|
5153
5342
|
`;
|
|
5154
5343
|
}
|
|
5155
|
-
const
|
|
5156
|
-
footer:
|
|
5157
|
-
redSection:
|
|
5158
|
-
redContainer:
|
|
5159
|
-
shortcutsSection:
|
|
5160
|
-
shortcutsColumn:
|
|
5161
|
-
shortcutsTitle:
|
|
5162
|
-
shortcutsList:
|
|
5163
|
-
shortcutLink:
|
|
5164
|
-
slotComponent:
|
|
5165
|
-
divider:
|
|
5166
|
-
contactSection:
|
|
5167
|
-
contactColumn:
|
|
5168
|
-
contactTitle:
|
|
5169
|
-
contactContent:
|
|
5170
|
-
legalSection:
|
|
5171
|
-
copyrightText:
|
|
5172
|
-
legalLinks:
|
|
5173
|
-
legalLink:
|
|
5174
|
-
whiteSection:
|
|
5175
|
-
whiteContainer:
|
|
5176
|
-
whiteContent:
|
|
5177
|
-
logo:
|
|
5178
|
-
redCrossLogo:
|
|
5179
|
-
secondaryLogoWrapper:
|
|
5180
|
-
designSystemLogo:
|
|
5181
|
-
slotSmall:
|
|
5182
|
-
slotLarge:
|
|
5183
|
-
},
|
|
5344
|
+
const Si = "_footer_6xhfo_1", Ci = "_redSection_6xhfo_7", wi = "_redContainer_6xhfo_26", Ii = "_shortcutsSection_6xhfo_35", Di = "_shortcutsColumn_6xhfo_43", _i = "_shortcutsTitle_6xhfo_51", Ai = "_shortcutsList_6xhfo_60", Mi = "_shortcutLink_6xhfo_69", Li = "_slotComponent_6xhfo_92", ji = "_divider_6xhfo_131", Ei = "_contactSection_6xhfo_139", Fi = "_contactColumn_6xhfo_146", Ni = "_contactTitle_6xhfo_154", Bi = "_contactContent_6xhfo_163", zi = "_legalSection_6xhfo_177", Pi = "_copyrightText_6xhfo_184", $i = "_legalLinks_6xhfo_193", Ri = "_legalLink_6xhfo_193", Gi = "_whiteSection_6xhfo_223", Wi = "_whiteContainer_6xhfo_228", Hi = "_whiteContent_6xhfo_241", Ui = "_logo_6xhfo_248", Oi = "_redCrossLogo_6xhfo_265", Vi = "_secondaryLogoWrapper_6xhfo_271", Ki = "_designSystemLogo_6xhfo_278", Yi = "_slotSmall_6xhfo_285", qi = "_slotLarge_6xhfo_296", F = {
|
|
5345
|
+
footer: Si,
|
|
5346
|
+
redSection: Ci,
|
|
5347
|
+
redContainer: wi,
|
|
5348
|
+
shortcutsSection: Ii,
|
|
5349
|
+
shortcutsColumn: Di,
|
|
5350
|
+
shortcutsTitle: _i,
|
|
5351
|
+
shortcutsList: Ai,
|
|
5352
|
+
shortcutLink: Mi,
|
|
5353
|
+
slotComponent: Li,
|
|
5354
|
+
divider: ji,
|
|
5355
|
+
contactSection: Ei,
|
|
5356
|
+
contactColumn: Fi,
|
|
5357
|
+
contactTitle: Ni,
|
|
5358
|
+
contactContent: Bi,
|
|
5359
|
+
legalSection: zi,
|
|
5360
|
+
copyrightText: Pi,
|
|
5361
|
+
legalLinks: $i,
|
|
5362
|
+
legalLink: Ri,
|
|
5363
|
+
whiteSection: Gi,
|
|
5364
|
+
whiteContainer: Wi,
|
|
5365
|
+
whiteContent: Hi,
|
|
5366
|
+
logo: Ui,
|
|
5367
|
+
redCrossLogo: Oi,
|
|
5368
|
+
secondaryLogoWrapper: Vi,
|
|
5369
|
+
designSystemLogo: Ki,
|
|
5370
|
+
slotSmall: Yi,
|
|
5371
|
+
slotLarge: qi
|
|
5372
|
+
}, Ha = ({
|
|
5184
5373
|
"data-color": t = "additional",
|
|
5185
5374
|
redSectionSlot: e,
|
|
5186
5375
|
whiteSectionSlotSmall: n,
|
|
@@ -5193,17 +5382,17 @@ const xi = "_footer_6xhfo_1", Ti = "_redSection_6xhfo_7", Si = "_redContainer_6x
|
|
|
5193
5382
|
secondaryLogoSrcDark: u,
|
|
5194
5383
|
secondaryLogoAlt: v = "Designsystem Logo",
|
|
5195
5384
|
shortcutsLinksLeft: m,
|
|
5196
|
-
shortcutsLinksRight:
|
|
5385
|
+
shortcutsLinksRight: h
|
|
5197
5386
|
} = {}) => {
|
|
5198
5387
|
const x = (/* @__PURE__ */ new Date()).getFullYear(), { t: a } = Ee();
|
|
5199
|
-
|
|
5388
|
+
ze.useEffect(() => {
|
|
5200
5389
|
const D = "rk-footer-inline-styles";
|
|
5201
5390
|
if (typeof document > "u" || document.getElementById(D)) return;
|
|
5202
|
-
const w =
|
|
5391
|
+
const w = Zi(F), C = document.createElement("style");
|
|
5203
5392
|
C.id = D, C.textContent = w, document.head.appendChild(C);
|
|
5204
5393
|
}, []);
|
|
5205
|
-
const [
|
|
5206
|
-
|
|
5394
|
+
const [f, k] = ze.useState("light");
|
|
5395
|
+
ze.useEffect(() => {
|
|
5207
5396
|
if (typeof document > "u") return;
|
|
5208
5397
|
const D = document.documentElement, w = D.getAttribute("data-color-scheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
5209
5398
|
k(w);
|
|
@@ -5246,7 +5435,7 @@ const xi = "_footer_6xhfo_1", Ti = "_redSection_6xhfo_7", Si = "_redContainer_6x
|
|
|
5246
5435
|
{ label: a("footer.shortcutsLinks.about"), href: "#" },
|
|
5247
5436
|
{ label: a("footer.shortcutsLinks.support"), href: "#" },
|
|
5248
5437
|
{ label: a("footer.shortcutsLinks.contact"), href: "#" }
|
|
5249
|
-
], g = m || y,
|
|
5438
|
+
], g = m || y, L = h || y;
|
|
5250
5439
|
return /* @__PURE__ */ _("footer", { className: F.footer, "data-color": t, children: [
|
|
5251
5440
|
/* @__PURE__ */ r("div", { className: F.redSection, children: /* @__PURE__ */ _("div", { className: F.redContainer, children: [
|
|
5252
5441
|
/* @__PURE__ */ _("div", { className: F.shortcutsSection, children: [
|
|
@@ -5256,7 +5445,7 @@ const xi = "_footer_6xhfo_1", Ti = "_redSection_6xhfo_7", Si = "_redContainer_6x
|
|
|
5256
5445
|
] }),
|
|
5257
5446
|
/* @__PURE__ */ _("nav", { className: F.shortcutsColumn, "aria-label": a("footer.shortcuts"), children: [
|
|
5258
5447
|
/* @__PURE__ */ r("h3", { className: F.shortcutsTitle, children: a("footer.shortcuts") }),
|
|
5259
|
-
/* @__PURE__ */ r("ul", { className: F.shortcutsList, children:
|
|
5448
|
+
/* @__PURE__ */ r("ul", { className: F.shortcutsList, children: L.map((D, w) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(ue, { href: D.href, className: F.shortcutLink, children: D.label }) }, w)) })
|
|
5260
5449
|
] }),
|
|
5261
5450
|
e && /* @__PURE__ */ r("div", { className: F.slotComponent, children: e })
|
|
5262
5451
|
] }),
|
|
@@ -5307,7 +5496,7 @@ const xi = "_footer_6xhfo_1", Ti = "_redSection_6xhfo_7", Si = "_redContainer_6x
|
|
|
5307
5496
|
c && d && /* @__PURE__ */ r("div", { className: F.secondaryLogoWrapper, children: /* @__PURE__ */ r(
|
|
5308
5497
|
"img",
|
|
5309
5498
|
{
|
|
5310
|
-
src:
|
|
5499
|
+
src: f === "dark" && u ? u : d,
|
|
5311
5500
|
alt: v,
|
|
5312
5501
|
className: F.designSystemLogo,
|
|
5313
5502
|
loading: "lazy"
|
|
@@ -5318,7 +5507,7 @@ const xi = "_footer_6xhfo_1", Ti = "_redSection_6xhfo_7", Si = "_redContainer_6x
|
|
|
5318
5507
|
] }) }) })
|
|
5319
5508
|
] });
|
|
5320
5509
|
};
|
|
5321
|
-
function
|
|
5510
|
+
function Zi(t) {
|
|
5322
5511
|
const e = t;
|
|
5323
5512
|
return `
|
|
5324
5513
|
.${e.footer} {
|
|
@@ -5584,67 +5773,67 @@ export {
|
|
|
5584
5773
|
co as Alert,
|
|
5585
5774
|
Mt as Avatar,
|
|
5586
5775
|
uo as Badge,
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5776
|
+
na as BadgePosition,
|
|
5777
|
+
oa as Breadcrumbs,
|
|
5778
|
+
sa as BreadcrumbsItem,
|
|
5779
|
+
ia as BreadcrumbsLink,
|
|
5780
|
+
ra as BreadcrumbsList,
|
|
5592
5781
|
Se as Button,
|
|
5593
5782
|
po as Card,
|
|
5594
|
-
|
|
5595
|
-
|
|
5783
|
+
aa as CardBlock,
|
|
5784
|
+
ps as Carousel,
|
|
5596
5785
|
mo as Checkbox,
|
|
5597
|
-
|
|
5786
|
+
da as Chip,
|
|
5598
5787
|
gr as DateInput,
|
|
5599
5788
|
sr as DatePicker,
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5789
|
+
pa as Details,
|
|
5790
|
+
ma as Dialog,
|
|
5791
|
+
ga as Divider,
|
|
5603
5792
|
J as Dropdown,
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5793
|
+
ba as DropdownButton,
|
|
5794
|
+
ka as DropdownHeading,
|
|
5795
|
+
ya as DropdownItem,
|
|
5796
|
+
va as DropdownList,
|
|
5797
|
+
ha as DropdownTrigger,
|
|
5798
|
+
fa as DropdownTriggerContext,
|
|
5799
|
+
xa as ErrorSummary,
|
|
5800
|
+
Ta as Field,
|
|
5801
|
+
hs as FieldCounter,
|
|
5802
|
+
gs as FieldDescription,
|
|
5803
|
+
Sa as Fieldset,
|
|
5804
|
+
Ha as Footer,
|
|
5805
|
+
Wa as Header,
|
|
5806
|
+
fs as Heading,
|
|
5807
|
+
ks as Input,
|
|
5808
|
+
vs as Label,
|
|
5809
|
+
ca as LanguageProvider,
|
|
5621
5810
|
ue as Link,
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5811
|
+
Ca as List,
|
|
5812
|
+
ys as Pagination,
|
|
5813
|
+
Da as PaginationButton,
|
|
5814
|
+
Ia as PaginationItem,
|
|
5815
|
+
wa as PaginationList,
|
|
5627
5816
|
Je as Paragraph,
|
|
5628
|
-
|
|
5629
|
-
|
|
5817
|
+
Aa as Popover,
|
|
5818
|
+
Ma as Radio,
|
|
5630
5819
|
Be as Search,
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5820
|
+
ja as Select,
|
|
5821
|
+
Ea as SkeletonLoader,
|
|
5822
|
+
Fa as SkipLink,
|
|
5823
|
+
us as Spinner,
|
|
5824
|
+
bs as Suggestion,
|
|
5636
5825
|
Ke as Switch,
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5826
|
+
Na as Table,
|
|
5827
|
+
Ba as Tabs,
|
|
5828
|
+
za as Tag,
|
|
5829
|
+
Pa as Textarea,
|
|
5830
|
+
$a as Textfield,
|
|
5831
|
+
Ra as ToggleGroup,
|
|
5832
|
+
Ga as Tooltip,
|
|
5833
|
+
xs as ValidationMessage,
|
|
5834
|
+
la as useCheckboxGroup,
|
|
5835
|
+
ua as useLanguage,
|
|
5647
5836
|
Ee as useLanguageOptional,
|
|
5648
|
-
|
|
5649
|
-
|
|
5837
|
+
_a as usePagination,
|
|
5838
|
+
La as useRadioGroup
|
|
5650
5839
|
};
|