rk-designsystem 1.1.56 → 1.1.58
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 +775 -592
- package/dist/componentlibrary.umd.js +33 -5
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as
|
|
2
|
-
import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as on, Button as Ke, Card as rn, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as mn, Divider as
|
|
3
|
-
import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as
|
|
4
|
-
import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as
|
|
5
|
-
var
|
|
1
|
+
import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as be, useCallback as ae, useRef as qe, createContext as Kt, useContext as Yt } from "react";
|
|
2
|
+
import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as on, Button as Ke, Card as rn, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as mn, Divider as pn, Dropdown as gn, ErrorSummary as fn, Field as hn, FieldDescription as kn, FieldCounter as vn, Heading as bn, Input as yn, Label as xn, Link as Tn, List as Sn, Pagination as wn, usePagination as Cn, Paragraph as jn, Popover as Dn, Radio as In, useRadioGroup as An, Search as Ln, SearchInput as Fn, SearchClear as Bn, SearchButton as En, Select as Nn, Skeleton as _n, SkipLink as Pn, EXPERIMENTAL_Suggestion as Rn, Switch as Mn, Table as zn, Tabs as On, Tag as $n, Textarea as Hn, Textfield as Wn, ToggleGroup as Vn, Tooltip as Gn, ValidationMessage as Un } from "@digdir/designsystemet-react";
|
|
3
|
+
import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as At, format as Te, addDays as Lt, subMonths as qn, addMonths as Kn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
|
|
4
|
+
import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as pt, XMarkIcon as gt, MagnifyingGlassIcon as ft, MenuHamburgerIcon as eo, HeartIcon as to } from "@navikt/aksel-icons";
|
|
5
|
+
var Ne = { exports: {} }, Se = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -50,14 +50,14 @@ function oo() {
|
|
|
50
50
|
function t(c) {
|
|
51
51
|
if (c == null) return null;
|
|
52
52
|
if (typeof c == "function")
|
|
53
|
-
return c.$$typeof ===
|
|
53
|
+
return c.$$typeof === _ ? null : c.displayName || c.name || null;
|
|
54
54
|
if (typeof c == "string") return c;
|
|
55
55
|
switch (c) {
|
|
56
|
-
case
|
|
56
|
+
case b:
|
|
57
57
|
return "Fragment";
|
|
58
58
|
case m:
|
|
59
59
|
return "Profiler";
|
|
60
|
-
case
|
|
60
|
+
case g:
|
|
61
61
|
return "StrictMode";
|
|
62
62
|
case E:
|
|
63
63
|
return "Suspense";
|
|
@@ -70,21 +70,21 @@ function oo() {
|
|
|
70
70
|
switch (typeof c.tag == "number" && console.error(
|
|
71
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
72
|
), c.$$typeof) {
|
|
73
|
-
case
|
|
73
|
+
case v:
|
|
74
74
|
return "Portal";
|
|
75
|
-
case
|
|
75
|
+
case B:
|
|
76
76
|
return c.displayName || "Context";
|
|
77
77
|
case T:
|
|
78
78
|
return (c._context.displayName || "Context") + ".Consumer";
|
|
79
79
|
case F:
|
|
80
|
-
var
|
|
81
|
-
return c = c.displayName, c || (c =
|
|
82
|
-
case
|
|
83
|
-
return
|
|
84
|
-
case
|
|
85
|
-
|
|
80
|
+
var L = c.render;
|
|
81
|
+
return c = c.displayName, c || (c = L.displayName || L.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
82
|
+
case A:
|
|
83
|
+
return L = c.displayName || null, L !== null ? L : t(c.type) || "Memo";
|
|
84
|
+
case N:
|
|
85
|
+
L = c._payload, c = c._init;
|
|
86
86
|
try {
|
|
87
|
-
return t(c(
|
|
87
|
+
return t(c(L));
|
|
88
88
|
} catch {
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -96,27 +96,27 @@ function oo() {
|
|
|
96
96
|
function n(c) {
|
|
97
97
|
try {
|
|
98
98
|
e(c);
|
|
99
|
-
var
|
|
99
|
+
var L = !1;
|
|
100
100
|
} catch {
|
|
101
|
-
|
|
101
|
+
L = !0;
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
var P =
|
|
103
|
+
if (L) {
|
|
104
|
+
L = console;
|
|
105
|
+
var P = L.error, z = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
106
106
|
return P.call(
|
|
107
|
-
|
|
107
|
+
L,
|
|
108
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
-
|
|
109
|
+
z
|
|
110
110
|
), e(c);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function s(c) {
|
|
114
|
-
if (c ===
|
|
115
|
-
if (typeof c == "object" && c !== null && c.$$typeof ===
|
|
114
|
+
if (c === b) return "<>";
|
|
115
|
+
if (typeof c == "object" && c !== null && c.$$typeof === N)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
118
|
-
var
|
|
119
|
-
return
|
|
118
|
+
var L = t(c);
|
|
119
|
+
return L ? "<" + L + ">" : "<...>";
|
|
120
120
|
} catch {
|
|
121
121
|
return "<...>";
|
|
122
122
|
}
|
|
@@ -129,17 +129,17 @@ function oo() {
|
|
|
129
129
|
return Error("react-stack-top-frame");
|
|
130
130
|
}
|
|
131
131
|
function o(c) {
|
|
132
|
-
if (
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
132
|
+
if (R.call(c, "key")) {
|
|
133
|
+
var L = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
134
|
+
if (L && L.isReactWarning) return !1;
|
|
135
135
|
}
|
|
136
136
|
return c.key !== void 0;
|
|
137
137
|
}
|
|
138
|
-
function d(c,
|
|
138
|
+
function d(c, L) {
|
|
139
139
|
function P() {
|
|
140
|
-
|
|
140
|
+
U || (U = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
|
-
|
|
142
|
+
L
|
|
143
143
|
));
|
|
144
144
|
}
|
|
145
145
|
P.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
@@ -153,14 +153,14 @@ function oo() {
|
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
155
155
|
}
|
|
156
|
-
function u(c,
|
|
156
|
+
function u(c, L, P, z, x, D) {
|
|
157
157
|
var C = P.ref;
|
|
158
158
|
return c = {
|
|
159
159
|
$$typeof: h,
|
|
160
160
|
type: c,
|
|
161
|
-
key:
|
|
161
|
+
key: L,
|
|
162
162
|
props: P,
|
|
163
|
-
_owner:
|
|
163
|
+
_owner: z
|
|
164
164
|
}, (C !== void 0 ? C : null) !== null ? Object.defineProperty(c, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
get: l
|
|
@@ -186,42 +186,42 @@ function oo() {
|
|
|
186
186
|
value: D
|
|
187
187
|
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
188
188
|
}
|
|
189
|
-
function y(c,
|
|
190
|
-
var C =
|
|
189
|
+
function y(c, L, P, z, x, D) {
|
|
190
|
+
var C = L.children;
|
|
191
191
|
if (C !== void 0)
|
|
192
|
-
if (
|
|
192
|
+
if (z)
|
|
193
193
|
if (M(C)) {
|
|
194
|
-
for (
|
|
195
|
-
f(C[
|
|
194
|
+
for (z = 0; z < C.length; z++)
|
|
195
|
+
f(C[z]);
|
|
196
196
|
Object.freeze && Object.freeze(C);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
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 f(C);
|
|
202
|
-
if (
|
|
202
|
+
if (R.call(L, "key")) {
|
|
203
203
|
C = t(c);
|
|
204
|
-
var H = Object.keys(
|
|
204
|
+
var H = Object.keys(L).filter(function(X) {
|
|
205
205
|
return X !== "key";
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
z = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", re[C + z] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
211
211
|
React keys must be passed directly to JSX without using spread:
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
|
-
|
|
214
|
+
z,
|
|
215
215
|
C,
|
|
216
216
|
H,
|
|
217
217
|
C
|
|
218
|
-
), re[C +
|
|
218
|
+
), re[C + z] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (C = null, P !== void 0 && (n(P), C = "" + P), o(
|
|
220
|
+
if (C = null, P !== void 0 && (n(P), C = "" + P), o(L) && (n(L.key), C = "" + L.key), "key" in L) {
|
|
221
221
|
P = {};
|
|
222
|
-
for (var J in
|
|
223
|
-
J !== "key" && (P[J] =
|
|
224
|
-
} else P =
|
|
222
|
+
for (var J in L)
|
|
223
|
+
J !== "key" && (P[J] = L[J]);
|
|
224
|
+
} else P = L;
|
|
225
225
|
return C && d(
|
|
226
226
|
P,
|
|
227
227
|
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
@@ -235,49 +235,49 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function f(c) {
|
|
238
|
-
k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof ===
|
|
238
|
+
k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === N && (c._payload.status === "fulfilled" ? k(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
239
239
|
}
|
|
240
240
|
function k(c) {
|
|
241
241
|
return typeof c == "object" && c !== null && c.$$typeof === h;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var p = Dt, h = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), B = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), _ = Symbol.for("react.client.reference"), W = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, R = Object.prototype.hasOwnProperty, M = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
p = {
|
|
247
247
|
react_stack_bottom_frame: function(c) {
|
|
248
248
|
return c();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
251
|
+
var U, ne = {}, Y = p.react_stack_bottom_frame.bind(
|
|
252
|
+
p,
|
|
253
253
|
a
|
|
254
254
|
)(), K = I(s(a)), re = {};
|
|
255
|
-
we.Fragment =
|
|
256
|
-
var
|
|
255
|
+
we.Fragment = b, we.jsx = function(c, L, P) {
|
|
256
|
+
var z = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return y(
|
|
258
258
|
c,
|
|
259
|
-
|
|
259
|
+
L,
|
|
260
260
|
P,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
z ? Error("react-stack-top-frame") : Y,
|
|
263
|
+
z ? I(s(c)) : K
|
|
264
264
|
);
|
|
265
|
-
}, we.jsxs = function(c,
|
|
266
|
-
var
|
|
265
|
+
}, we.jsxs = function(c, L, P) {
|
|
266
|
+
var z = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return y(
|
|
268
268
|
c,
|
|
269
|
-
|
|
269
|
+
L,
|
|
270
270
|
P,
|
|
271
271
|
!0,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
z ? Error("react-stack-top-frame") : Y,
|
|
273
|
+
z ? I(s(c)) : K
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
})()), we;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
278
|
+
var vt;
|
|
279
279
|
function ro() {
|
|
280
|
-
return
|
|
280
|
+
return vt || (vt = 1, process.env.NODE_ENV === "production" ? Ne.exports = no() : Ne.exports = oo()), Ne.exports;
|
|
281
281
|
}
|
|
282
282
|
var r = ro();
|
|
283
283
|
const so = ue((t, e) => /* @__PURE__ */ r.jsx(Jt, { ref: e, ...t }));
|
|
@@ -286,7 +286,7 @@ const Ft = ue((t, e) => /* @__PURE__ */ r.jsx(Zt, { ref: e, ...t }));
|
|
|
286
286
|
Ft.displayName = "Avatar";
|
|
287
287
|
const ao = ue((t, e) => /* @__PURE__ */ r.jsx(Qt, { ref: e, ...t }));
|
|
288
288
|
ao.displayName = "Badge";
|
|
289
|
-
const ka = Xt,
|
|
289
|
+
const ka = Xt, va = en, ba = tn, ya = nn, xa = on, ye = Ke;
|
|
290
290
|
ye.displayName = "Button";
|
|
291
291
|
const io = rn, Ta = sn;
|
|
292
292
|
io.displayName = "Card";
|
|
@@ -343,7 +343,7 @@ function mo(t, e) {
|
|
|
343
343
|
if (e(t[n]))
|
|
344
344
|
return n;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function po(t) {
|
|
347
347
|
return (e, n = {}) => {
|
|
348
348
|
const s = e.match(t.matchPattern);
|
|
349
349
|
if (!s) return null;
|
|
@@ -355,7 +355,7 @@ function go(t) {
|
|
|
355
355
|
return { value: o, rest: d };
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const go = {
|
|
359
359
|
lessThanXSeconds: {
|
|
360
360
|
one: "mindre enn ett sekund",
|
|
361
361
|
other: "mindre enn {{count}} sekunder"
|
|
@@ -419,7 +419,7 @@ const po = {
|
|
|
419
419
|
}
|
|
420
420
|
}, fo = (t, e, n) => {
|
|
421
421
|
let s;
|
|
422
|
-
const i =
|
|
422
|
+
const i = go[t];
|
|
423
423
|
return typeof i == "string" ? s = i : e === 1 ? s = i.one : s = i.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + s : s + " siden" : s;
|
|
424
424
|
}, ho = {
|
|
425
425
|
full: "EEEE d. MMMM y",
|
|
@@ -431,12 +431,12 @@ const po = {
|
|
|
431
431
|
long: "HH:mm:ss z",
|
|
432
432
|
medium: "HH:mm:ss",
|
|
433
433
|
short: "HH:mm"
|
|
434
|
-
},
|
|
434
|
+
}, vo = {
|
|
435
435
|
full: "{{date}} 'kl.' {{time}}",
|
|
436
436
|
long: "{{date}} 'kl.' {{time}}",
|
|
437
437
|
medium: "{{date}} {{time}}",
|
|
438
438
|
short: "{{date}} {{time}}"
|
|
439
|
-
},
|
|
439
|
+
}, bo = {
|
|
440
440
|
date: Ge({
|
|
441
441
|
formats: ho,
|
|
442
442
|
defaultWidth: "full"
|
|
@@ -446,7 +446,7 @@ const po = {
|
|
|
446
446
|
defaultWidth: "full"
|
|
447
447
|
}),
|
|
448
448
|
dateTime: Ge({
|
|
449
|
-
formats:
|
|
449
|
+
formats: vo,
|
|
450
450
|
defaultWidth: "full"
|
|
451
451
|
})
|
|
452
452
|
}, yo = {
|
|
@@ -561,19 +561,19 @@ const po = {
|
|
|
561
561
|
values: jo,
|
|
562
562
|
defaultWidth: "wide"
|
|
563
563
|
})
|
|
564
|
-
},
|
|
564
|
+
}, Ao = /^(\d+)\.?/i, Lo = /\d+/i, Fo = {
|
|
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
|
+
}, Bo = {
|
|
569
569
|
any: [/^f/i, /^e/i]
|
|
570
570
|
}, Eo = {
|
|
571
571
|
narrow: /^[1234]/i,
|
|
572
572
|
abbreviated: /^q[1234]/i,
|
|
573
573
|
wide: /^[1234](\.)? kvartal/i
|
|
574
|
-
}, Bo = {
|
|
575
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
574
|
}, No = {
|
|
575
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
|
+
}, _o = {
|
|
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
|
|
@@ -606,14 +606,14 @@ const po = {
|
|
|
606
606
|
/^n/i,
|
|
607
607
|
/^d/i
|
|
608
608
|
]
|
|
609
|
-
},
|
|
609
|
+
}, Ro = {
|
|
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
|
}, Mo = {
|
|
615
615
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
616
|
-
},
|
|
616
|
+
}, zo = {
|
|
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
|
}, Oo = {
|
|
@@ -628,46 +628,46 @@ const po = {
|
|
|
628
628
|
night: /natt/i
|
|
629
629
|
}
|
|
630
630
|
}, $o = {
|
|
631
|
-
ordinalNumber:
|
|
632
|
-
matchPattern:
|
|
633
|
-
parsePattern:
|
|
631
|
+
ordinalNumber: po({
|
|
632
|
+
matchPattern: Ao,
|
|
633
|
+
parsePattern: Lo,
|
|
634
634
|
valueCallback: (t) => parseInt(t, 10)
|
|
635
635
|
}),
|
|
636
636
|
era: je({
|
|
637
637
|
matchPatterns: Fo,
|
|
638
638
|
defaultMatchWidth: "wide",
|
|
639
|
-
parsePatterns:
|
|
639
|
+
parsePatterns: Bo,
|
|
640
640
|
defaultParseWidth: "any"
|
|
641
641
|
}),
|
|
642
642
|
quarter: je({
|
|
643
643
|
matchPatterns: Eo,
|
|
644
644
|
defaultMatchWidth: "wide",
|
|
645
|
-
parsePatterns:
|
|
645
|
+
parsePatterns: No,
|
|
646
646
|
defaultParseWidth: "any",
|
|
647
647
|
valueCallback: (t) => t + 1
|
|
648
648
|
}),
|
|
649
649
|
month: je({
|
|
650
|
-
matchPatterns:
|
|
650
|
+
matchPatterns: _o,
|
|
651
651
|
defaultMatchWidth: "wide",
|
|
652
652
|
parsePatterns: Po,
|
|
653
653
|
defaultParseWidth: "any"
|
|
654
654
|
}),
|
|
655
655
|
day: je({
|
|
656
|
-
matchPatterns:
|
|
656
|
+
matchPatterns: Ro,
|
|
657
657
|
defaultMatchWidth: "wide",
|
|
658
658
|
parsePatterns: Mo,
|
|
659
659
|
defaultParseWidth: "any"
|
|
660
660
|
}),
|
|
661
661
|
dayPeriod: je({
|
|
662
|
-
matchPatterns:
|
|
662
|
+
matchPatterns: zo,
|
|
663
663
|
defaultMatchWidth: "any",
|
|
664
664
|
parsePatterns: Oo,
|
|
665
665
|
defaultParseWidth: "any"
|
|
666
666
|
})
|
|
667
|
-
},
|
|
667
|
+
}, ve = {
|
|
668
668
|
code: "nb",
|
|
669
669
|
formatDistance: fo,
|
|
670
|
-
formatLong:
|
|
670
|
+
formatLong: bo,
|
|
671
671
|
formatRelative: xo,
|
|
672
672
|
localize: Io,
|
|
673
673
|
match: $o,
|
|
@@ -675,7 +675,7 @@ const po = {
|
|
|
675
675
|
weekStartsOn: 1,
|
|
676
676
|
firstWeekContainsDate: 4
|
|
677
677
|
}
|
|
678
|
-
},
|
|
678
|
+
}, Bt = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
679
679
|
"svg",
|
|
680
680
|
{
|
|
681
681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -700,7 +700,7 @@ const po = {
|
|
|
700
700
|
]
|
|
701
701
|
}
|
|
702
702
|
);
|
|
703
|
-
|
|
703
|
+
Bt.displayName = "ChevronLeftIcon";
|
|
704
704
|
const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
705
705
|
"svg",
|
|
706
706
|
{
|
|
@@ -727,21 +727,21 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
729
|
Et.displayName = "ChevronRightIcon";
|
|
730
|
-
const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32",
|
|
730
|
+
const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Uo = "_grid_10l5p_41", qo = "_dayNameCell_10l5p_48", Ko = "_dateCell_10l5p_65", Yo = "_dateNumberContainer_10l5p_90", Jo = "_otherMonth_10l5p_103", Zo = "_selectedDate_10l5p_129", se = {
|
|
731
731
|
calendarContainer: Ho,
|
|
732
732
|
calendarHeader: Wo,
|
|
733
733
|
monthYear: Vo,
|
|
734
734
|
navigationButtons: Go,
|
|
735
|
-
grid:
|
|
736
|
-
dayNameCell:
|
|
735
|
+
grid: Uo,
|
|
736
|
+
dayNameCell: qo,
|
|
737
737
|
dateCell: Ko,
|
|
738
738
|
dateNumberContainer: Yo,
|
|
739
739
|
otherMonth: Jo,
|
|
740
740
|
selectedDate: Zo
|
|
741
741
|
}, Xo = (t) => {
|
|
742
|
-
const e = ke(t), n =
|
|
742
|
+
const e = ke(t), n = At(e, { locale: ve }), s = Lt(n, 41);
|
|
743
743
|
return Zn({ start: n, end: s });
|
|
744
|
-
},
|
|
744
|
+
}, bt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Qo = ({
|
|
745
745
|
initialDate: t = /* @__PURE__ */ new Date(),
|
|
746
746
|
selectedDate: e = null,
|
|
747
747
|
// Prop for valgt dato
|
|
@@ -760,30 +760,30 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
760
760
|
mt(m, a) || o(m);
|
|
761
761
|
}
|
|
762
762
|
}, [e]);
|
|
763
|
-
const d =
|
|
763
|
+
const d = be(() => ke(/* @__PURE__ */ new Date()), []), l = be(() => !1, [a, d]), u = be(
|
|
764
764
|
() => Xo(a),
|
|
765
765
|
[a]
|
|
766
|
-
), y =
|
|
767
|
-
const m =
|
|
768
|
-
return Array.from({ length: 7 }).map((T,
|
|
769
|
-
const F = Te(
|
|
770
|
-
return
|
|
766
|
+
), y = be(() => {
|
|
767
|
+
const m = At(/* @__PURE__ */ new Date(), { locale: ve });
|
|
768
|
+
return Array.from({ length: 7 }).map((T, B) => {
|
|
769
|
+
const F = Te(Lt(m, B), "EEEEEE", { locale: ve });
|
|
770
|
+
return bt(F);
|
|
771
771
|
});
|
|
772
772
|
}, []), f = ae(() => {
|
|
773
|
-
l || o((m) => ke(
|
|
773
|
+
l || o((m) => ke(qn(m, 1)));
|
|
774
774
|
}, [l]), k = ae(() => {
|
|
775
775
|
o((m) => ke(Kn(m, 1)));
|
|
776
|
-
}, []),
|
|
776
|
+
}, []), p = ae(
|
|
777
777
|
(m) => {
|
|
778
778
|
n && n(m);
|
|
779
779
|
},
|
|
780
780
|
[n]
|
|
781
781
|
), h = ae(
|
|
782
782
|
(m, T) => {
|
|
783
|
-
(m.key === "Enter" || m.key === " ") && (m.preventDefault(),
|
|
783
|
+
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), p(T));
|
|
784
784
|
},
|
|
785
|
-
[
|
|
786
|
-
),
|
|
785
|
+
[p]
|
|
786
|
+
), v = Te(a, "MMMM", { locale: ve }), b = Te(a, "yyyy", { locale: ve }), g = `${bt(v)} ${b}`;
|
|
787
787
|
return /* @__PURE__ */ r.jsxs(
|
|
788
788
|
"div",
|
|
789
789
|
{
|
|
@@ -792,7 +792,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
792
792
|
"data-size": i,
|
|
793
793
|
children: [
|
|
794
794
|
/* @__PURE__ */ r.jsxs("div", { className: se.calendarHeader, children: [
|
|
795
|
-
/* @__PURE__ */ r.jsx("span", { className: se.monthYear, children:
|
|
795
|
+
/* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: g }),
|
|
796
796
|
/* @__PURE__ */ r.jsxs("div", { className: se.navigationButtons, children: [
|
|
797
797
|
/* @__PURE__ */ r.jsx(
|
|
798
798
|
Ke,
|
|
@@ -802,7 +802,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
802
802
|
onClick: f,
|
|
803
803
|
"aria-label": "Forrige måned",
|
|
804
804
|
disabled: l,
|
|
805
|
-
children: /* @__PURE__ */ r.jsx(
|
|
805
|
+
children: /* @__PURE__ */ r.jsx(Bt, {})
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
808
|
/* @__PURE__ */ r.jsx(
|
|
@@ -819,23 +819,23 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
819
819
|
] }),
|
|
820
820
|
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
|
|
821
821
|
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((m) => {
|
|
822
|
-
const T = mt(m, a),
|
|
822
|
+
const T = mt(m, a), B = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
|
|
823
823
|
se.dateCell,
|
|
824
824
|
T ? "" : se.otherMonth,
|
|
825
|
-
|
|
825
|
+
B ? se.selectedDate : "",
|
|
826
826
|
// Utheving basert på prop
|
|
827
|
-
F && !
|
|
827
|
+
F && !B ? se.todayDate : ""
|
|
828
828
|
].filter(Boolean).join(" ");
|
|
829
829
|
return /* @__PURE__ */ r.jsx(
|
|
830
830
|
"div",
|
|
831
831
|
{
|
|
832
832
|
className: E,
|
|
833
|
-
onClick: () =>
|
|
833
|
+
onClick: () => p(m),
|
|
834
834
|
onKeyDown: (j) => h(j, m),
|
|
835
835
|
role: "button",
|
|
836
836
|
tabIndex: 0,
|
|
837
|
-
"aria-pressed":
|
|
838
|
-
"aria-label": Te(m, "PPP", { locale:
|
|
837
|
+
"aria-pressed": B ?? !1,
|
|
838
|
+
"aria-label": Te(m, "PPP", { locale: ve }),
|
|
839
839
|
children: /* @__PURE__ */ r.jsx("span", { className: se.dateNumberContainer, children: Te(m, "d") })
|
|
840
840
|
},
|
|
841
841
|
m.toISOString()
|
|
@@ -846,7 +846,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
848
|
Qo.displayName = "DatePicker";
|
|
849
|
-
const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7_21", or = "_inputWrapper_16fx7_30", rr = "_inputWrapperError_16fx7_42", sr = "_suffixButton_16fx7_80", ar = "_suffixButtonInteractive_16fx7_100",
|
|
849
|
+
const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7_21", or = "_inputWrapper_16fx7_30", rr = "_inputWrapperError_16fx7_42", sr = "_suffixButton_16fx7_80", ar = "_suffixButtonInteractive_16fx7_100", ge = {
|
|
850
850
|
fieldset: er,
|
|
851
851
|
description: tr,
|
|
852
852
|
error: nr,
|
|
@@ -885,30 +885,30 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
885
885
|
onChange: y,
|
|
886
886
|
readOnly: f,
|
|
887
887
|
placeholder: k = "dd.mm.åååå",
|
|
888
|
-
id:
|
|
888
|
+
id: p,
|
|
889
889
|
name: h,
|
|
890
|
-
required:
|
|
891
|
-
disabled:
|
|
892
|
-
onClick:
|
|
890
|
+
required: v,
|
|
891
|
+
disabled: b,
|
|
892
|
+
onClick: g,
|
|
893
893
|
onFocus: m,
|
|
894
894
|
// Send ekstern onFocus videre
|
|
895
895
|
onBlur: T,
|
|
896
896
|
// Send ekstern onBlur videre
|
|
897
|
-
autoComplete:
|
|
897
|
+
autoComplete: B = "off",
|
|
898
898
|
"aria-label": F,
|
|
899
899
|
"aria-labelledby": E,
|
|
900
900
|
description: j,
|
|
901
|
-
error:
|
|
901
|
+
error: A,
|
|
902
902
|
// Bruk error-prop for styling
|
|
903
|
-
"data-color":
|
|
903
|
+
"data-color": N,
|
|
904
904
|
// <-- Destrukturering
|
|
905
905
|
"data-size": $,
|
|
906
906
|
// <-- Destrukturering
|
|
907
|
-
...
|
|
908
|
-
} = t, W = l !== void 0,
|
|
907
|
+
..._
|
|
908
|
+
} = t, W = l !== void 0, R = qe(null);
|
|
909
909
|
Dt.useImperativeHandle(
|
|
910
910
|
e,
|
|
911
|
-
() =>
|
|
911
|
+
() => R.current
|
|
912
912
|
);
|
|
913
913
|
const M = ae(
|
|
914
914
|
(D) => {
|
|
@@ -916,13 +916,13 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
916
916
|
return yt(H);
|
|
917
917
|
},
|
|
918
918
|
[]
|
|
919
|
-
), [I,
|
|
919
|
+
), [I, U] = oe(
|
|
920
920
|
() => M(l ?? u)
|
|
921
921
|
);
|
|
922
922
|
te(() => {
|
|
923
923
|
if (W) {
|
|
924
924
|
const D = M(l);
|
|
925
|
-
D !== I && (
|
|
925
|
+
D !== I && (U(D), R.current && R.current.value !== D && (R.current.value = D));
|
|
926
926
|
}
|
|
927
927
|
}, [l, W, I, M]);
|
|
928
928
|
const ne = ae(
|
|
@@ -931,7 +931,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
931
931
|
let O = 0;
|
|
932
932
|
const G = V.length;
|
|
933
933
|
G <= 2 ? O = G : G <= 4 ? O = G + 1 : O = G + 2, O = Math.min(O, w.length), requestAnimationFrame(() => {
|
|
934
|
-
if (
|
|
934
|
+
if (R.current && (U(w), R.current.value = w, R.current.setSelectionRange(O, O), (w !== J || W) && y)) {
|
|
935
935
|
const Z = {
|
|
936
936
|
...D,
|
|
937
937
|
target: { ...C, value: w }
|
|
@@ -941,34 +941,34 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
941
941
|
});
|
|
942
942
|
},
|
|
943
943
|
[I, W, y, M]
|
|
944
|
-
), Y = [
|
|
945
|
-
|
|
944
|
+
), Y = [ge.fieldset, a].filter(Boolean).join(" "), K = [
|
|
945
|
+
ge.inputWrapper,
|
|
946
946
|
o,
|
|
947
|
-
|
|
947
|
+
A ? ge.inputWrapperError : ""
|
|
948
948
|
].filter(Boolean).join(" "), re = [
|
|
949
949
|
d
|
|
950
950
|
].filter(Boolean).join(" "), c = [
|
|
951
|
-
|
|
952
|
-
i ?
|
|
951
|
+
ge.suffixButton,
|
|
952
|
+
i ? ge.suffixButtonInteractive : ""
|
|
953
953
|
].filter(Boolean).join(" ");
|
|
954
954
|
!n && !F && !E && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
955
|
-
const
|
|
955
|
+
const L = n && typeof n == "string" ? E || `${p}-label` : void 0, P = j ? `${p}-desc` : void 0, z = A ? `${p}-err` : void 0, x = [P, z].filter(Boolean).join(" ") || void 0;
|
|
956
956
|
return (
|
|
957
957
|
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
958
958
|
/* @__PURE__ */ r.jsxs(
|
|
959
959
|
"div",
|
|
960
960
|
{
|
|
961
961
|
className: Y,
|
|
962
|
-
"data-color":
|
|
962
|
+
"data-color": N,
|
|
963
963
|
"data-size": $,
|
|
964
964
|
children: [
|
|
965
|
-
n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id:
|
|
966
|
-
j && /* @__PURE__ */ r.jsx("p", { id: P, className:
|
|
965
|
+
n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: L, htmlFor: p, children: n }) : n,
|
|
966
|
+
j && /* @__PURE__ */ r.jsx("p", { id: P, className: ge.description, children: j }),
|
|
967
967
|
/* @__PURE__ */ r.jsxs("div", { className: K, children: [
|
|
968
968
|
/* @__PURE__ */ r.jsx(
|
|
969
969
|
"input",
|
|
970
970
|
{
|
|
971
|
-
ref:
|
|
971
|
+
ref: R,
|
|
972
972
|
type: "text",
|
|
973
973
|
inputMode: "numeric",
|
|
974
974
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
@@ -976,21 +976,21 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
976
976
|
value: I,
|
|
977
977
|
readOnly: f,
|
|
978
978
|
placeholder: k,
|
|
979
|
-
id:
|
|
979
|
+
id: p,
|
|
980
980
|
name: h,
|
|
981
|
-
required:
|
|
982
|
-
disabled:
|
|
983
|
-
onClick:
|
|
981
|
+
required: v,
|
|
982
|
+
disabled: b,
|
|
983
|
+
onClick: g,
|
|
984
984
|
onChange: ne,
|
|
985
985
|
onFocus: m,
|
|
986
986
|
onBlur: T,
|
|
987
|
-
autoComplete:
|
|
987
|
+
autoComplete: B,
|
|
988
988
|
"aria-label": F,
|
|
989
|
-
"aria-labelledby":
|
|
989
|
+
"aria-labelledby": L,
|
|
990
990
|
"aria-describedby": x,
|
|
991
|
-
"aria-invalid": !!
|
|
991
|
+
"aria-invalid": !!A,
|
|
992
992
|
className: re,
|
|
993
|
-
...
|
|
993
|
+
..._
|
|
994
994
|
}
|
|
995
995
|
),
|
|
996
996
|
s && /* @__PURE__ */ r.jsx(
|
|
@@ -998,16 +998,16 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
998
998
|
{
|
|
999
999
|
type: "button",
|
|
1000
1000
|
className: c,
|
|
1001
|
-
onClick:
|
|
1002
|
-
tabIndex: i && !
|
|
1001
|
+
onClick: b ? void 0 : i,
|
|
1002
|
+
tabIndex: i && !b ? 0 : -1,
|
|
1003
1003
|
"aria-hidden": !i,
|
|
1004
|
-
disabled:
|
|
1004
|
+
disabled: b,
|
|
1005
1005
|
"aria-label": i ? "Åpne datovelger" : void 0,
|
|
1006
1006
|
children: s
|
|
1007
1007
|
}
|
|
1008
1008
|
)
|
|
1009
1009
|
] }),
|
|
1010
|
-
|
|
1010
|
+
A && /* @__PURE__ */ r.jsx("p", { id: z, className: ge.error, role: "alert", children: A })
|
|
1011
1011
|
]
|
|
1012
1012
|
}
|
|
1013
1013
|
)
|
|
@@ -1056,51 +1056,51 @@ function Me(t) {
|
|
|
1056
1056
|
function Ct(t) {
|
|
1057
1057
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function q(t) {
|
|
1060
1060
|
return Math.abs(t);
|
|
1061
1061
|
}
|
|
1062
1062
|
function et(t) {
|
|
1063
1063
|
return Math.sign(t);
|
|
1064
1064
|
}
|
|
1065
1065
|
function Ie(t, e) {
|
|
1066
|
-
return
|
|
1066
|
+
return q(t - e);
|
|
1067
1067
|
}
|
|
1068
1068
|
function ur(t, e) {
|
|
1069
|
-
if (t === 0 || e === 0 ||
|
|
1070
|
-
const n = Ie(
|
|
1071
|
-
return
|
|
1069
|
+
if (t === 0 || e === 0 || q(t) <= q(e)) return 0;
|
|
1070
|
+
const n = Ie(q(t), q(e));
|
|
1071
|
+
return q(n / t);
|
|
1072
1072
|
}
|
|
1073
1073
|
function mr(t) {
|
|
1074
1074
|
return Math.round(t * 100) / 100;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return
|
|
1076
|
+
function Ae(t) {
|
|
1077
|
+
return Le(t).map(Number);
|
|
1078
1078
|
}
|
|
1079
1079
|
function ie(t) {
|
|
1080
|
-
return t[
|
|
1080
|
+
return t[Be(t)];
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Be(t) {
|
|
1083
1083
|
return Math.max(0, t.length - 1);
|
|
1084
1084
|
}
|
|
1085
1085
|
function tt(t, e) {
|
|
1086
|
-
return e ===
|
|
1086
|
+
return e === Be(t);
|
|
1087
1087
|
}
|
|
1088
1088
|
function jt(t, e = 0) {
|
|
1089
1089
|
return Array.from(Array(t), (n, s) => e + s);
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function Le(t) {
|
|
1092
1092
|
return Object.keys(t);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return [t, e].reduce((n, s) => (
|
|
1094
|
+
function Nt(t, e) {
|
|
1095
|
+
return [t, e].reduce((n, s) => (Le(s).forEach((i) => {
|
|
1096
1096
|
const a = n[i], o = s[i], d = Ct(a) && Ct(o);
|
|
1097
|
-
n[i] = d ?
|
|
1097
|
+
n[i] = d ? Nt(a, o) : o;
|
|
1098
1098
|
}), n), {});
|
|
1099
1099
|
}
|
|
1100
1100
|
function Je(t, e) {
|
|
1101
1101
|
return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function pr(t, e) {
|
|
1104
1104
|
const n = {
|
|
1105
1105
|
start: s,
|
|
1106
1106
|
center: i,
|
|
@@ -1145,7 +1145,7 @@ function Fe() {
|
|
|
1145
1145
|
};
|
|
1146
1146
|
return s;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function gr(t, e, n, s) {
|
|
1149
1149
|
const i = Fe(), a = 1e3 / 60;
|
|
1150
1150
|
let o = null, d = 0, l = 0;
|
|
1151
1151
|
function u() {
|
|
@@ -1154,13 +1154,13 @@ function pr(t, e, n, s) {
|
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
1156
|
function y() {
|
|
1157
|
-
|
|
1157
|
+
p(), i.clear();
|
|
1158
1158
|
}
|
|
1159
|
-
function f(
|
|
1159
|
+
function f(b) {
|
|
1160
1160
|
if (!l) return;
|
|
1161
|
-
o || (o =
|
|
1162
|
-
const
|
|
1163
|
-
for (o =
|
|
1161
|
+
o || (o = b, n(), n());
|
|
1162
|
+
const g = b - o;
|
|
1163
|
+
for (o = b, d += g; d >= a; )
|
|
1164
1164
|
n(), d -= a;
|
|
1165
1165
|
const m = d / a;
|
|
1166
1166
|
s(m), l && (l = e.requestAnimationFrame(f));
|
|
@@ -1168,7 +1168,7 @@ function pr(t, e, n, s) {
|
|
|
1168
1168
|
function k() {
|
|
1169
1169
|
l || (l = e.requestAnimationFrame(f));
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function p() {
|
|
1172
1172
|
e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
|
|
1173
1173
|
}
|
|
1174
1174
|
function h() {
|
|
@@ -1178,7 +1178,7 @@ function pr(t, e, n, s) {
|
|
|
1178
1178
|
init: u,
|
|
1179
1179
|
destroy: y,
|
|
1180
1180
|
start: k,
|
|
1181
|
-
stop:
|
|
1181
|
+
stop: p,
|
|
1182
1182
|
update: n,
|
|
1183
1183
|
render: s
|
|
1184
1184
|
};
|
|
@@ -1187,10 +1187,10 @@ function fr(t, e) {
|
|
|
1187
1187
|
const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y", o = !s && n ? -1 : 1, d = y(), l = f();
|
|
1188
1188
|
function u(h) {
|
|
1189
1189
|
const {
|
|
1190
|
-
height:
|
|
1191
|
-
width:
|
|
1190
|
+
height: v,
|
|
1191
|
+
width: b
|
|
1192
1192
|
} = h;
|
|
1193
|
-
return s ?
|
|
1193
|
+
return s ? v : b;
|
|
1194
1194
|
}
|
|
1195
1195
|
function y() {
|
|
1196
1196
|
return s ? "top" : n ? "right" : "left";
|
|
@@ -1211,7 +1211,7 @@ function fr(t, e) {
|
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
1213
|
function fe(t = 0, e = 0) {
|
|
1214
|
-
const n =
|
|
1214
|
+
const n = q(t - e);
|
|
1215
1215
|
function s(u) {
|
|
1216
1216
|
return u < t;
|
|
1217
1217
|
}
|
|
@@ -1238,13 +1238,13 @@ function fe(t = 0, e = 0) {
|
|
|
1238
1238
|
removeOffset: d
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function _t(t, e, n) {
|
|
1242
1242
|
const {
|
|
1243
1243
|
constrain: s
|
|
1244
1244
|
} = fe(0, t), i = t + 1;
|
|
1245
1245
|
let a = o(e);
|
|
1246
1246
|
function o(k) {
|
|
1247
|
-
return n ?
|
|
1247
|
+
return n ? q((i + k) % i) : s(k);
|
|
1248
1248
|
}
|
|
1249
1249
|
function d() {
|
|
1250
1250
|
return a;
|
|
@@ -1256,7 +1256,7 @@ function Nt(t, e, n) {
|
|
|
1256
1256
|
return y().set(d() + k);
|
|
1257
1257
|
}
|
|
1258
1258
|
function y() {
|
|
1259
|
-
return
|
|
1259
|
+
return _t(t, d(), n);
|
|
1260
1260
|
}
|
|
1261
1261
|
const f = {
|
|
1262
1262
|
get: d,
|
|
@@ -1266,20 +1266,20 @@ function Nt(t, e, n) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
return f;
|
|
1268
1268
|
}
|
|
1269
|
-
function hr(t, e, n, s, i, a, o, d, l, u, y, f, k,
|
|
1269
|
+
function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, p, h, v, b, g, m) {
|
|
1270
1270
|
const {
|
|
1271
1271
|
cross: T,
|
|
1272
|
-
direction:
|
|
1272
|
+
direction: B
|
|
1273
1273
|
} = t, F = ["INPUT", "SELECT", "TEXTAREA"], E = {
|
|
1274
1274
|
passive: !1
|
|
1275
|
-
}, j = Fe(),
|
|
1275
|
+
}, j = Fe(), A = Fe(), N = fe(50, 225).constrain(p.measure(20)), $ = {
|
|
1276
1276
|
mouse: 300,
|
|
1277
1277
|
touch: 400
|
|
1278
|
-
},
|
|
1278
|
+
}, _ = {
|
|
1279
1279
|
mouse: 500,
|
|
1280
1280
|
touch: 600
|
|
1281
1281
|
}, W = h ? 43 : 25;
|
|
1282
|
-
let
|
|
1282
|
+
let R = !1, M = 0, I = 0, U = !1, ne = !1, Y = !1, K = !1;
|
|
1283
1283
|
function re(w) {
|
|
1284
1284
|
if (!m) return;
|
|
1285
1285
|
function O(Z) {
|
|
@@ -1291,26 +1291,26 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
1291
1291
|
}).add(G, "touchstart", O).add(G, "mousedown", O).add(G, "touchcancel", H).add(G, "contextmenu", H).add(G, "click", J, !0);
|
|
1292
1292
|
}
|
|
1293
1293
|
function c() {
|
|
1294
|
-
j.clear(),
|
|
1294
|
+
j.clear(), A.clear();
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function L() {
|
|
1297
1297
|
const w = K ? n : e;
|
|
1298
|
-
|
|
1298
|
+
A.add(w, "touchmove", C, E).add(w, "touchend", H).add(w, "mousemove", C, E).add(w, "mouseup", H);
|
|
1299
1299
|
}
|
|
1300
1300
|
function P(w) {
|
|
1301
1301
|
const O = w.nodeName || "";
|
|
1302
1302
|
return F.includes(O);
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return (h ?
|
|
1304
|
+
function z() {
|
|
1305
|
+
return (h ? _ : $)[K ? "mouse" : "touch"];
|
|
1306
1306
|
}
|
|
1307
1307
|
function x(w, O) {
|
|
1308
1308
|
const G = f.add(et(w) * -1), Z = y.byDistance(w, !h).distance;
|
|
1309
|
-
return h ||
|
|
1309
|
+
return h || q(w) < N ? Z : b && O ? Z * 0.5 : y.byIndex(G.get(), 0).distance;
|
|
1310
1310
|
}
|
|
1311
1311
|
function D(w) {
|
|
1312
1312
|
const O = Je(w, s);
|
|
1313
|
-
K = O, Y = h && O && !w.buttons &&
|
|
1313
|
+
K = O, Y = h && O && !w.buttons && R, R = Ie(i.get(), o.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (U = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(o), L(), M = a.readPoint(w), I = a.readPoint(w, T), k.emit("pointerDown")));
|
|
1314
1314
|
}
|
|
1315
1315
|
function C(w) {
|
|
1316
1316
|
if (!Je(w, s) && w.touches.length >= 2) return H(w);
|
|
@@ -1318,17 +1318,17 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
1318
1318
|
if (!ne && !K && (!w.cancelable || (ne = le > de, !ne)))
|
|
1319
1319
|
return H(w);
|
|
1320
1320
|
const me = a.pointerMove(w);
|
|
1321
|
-
le >
|
|
1321
|
+
le > v && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(B(me)), w.preventDefault();
|
|
1322
1322
|
}
|
|
1323
1323
|
function H(w) {
|
|
1324
|
-
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) *
|
|
1325
|
-
ne = !1,
|
|
1324
|
+
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le = x(B(Z), G), de = ur(Z, le), me = W - 10 * de, ce = g + de / 50;
|
|
1325
|
+
ne = !1, U = !1, A.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), K = !1, k.emit("pointerUp");
|
|
1326
1326
|
}
|
|
1327
1327
|
function J(w) {
|
|
1328
1328
|
Y && (w.stopPropagation(), w.preventDefault(), Y = !1);
|
|
1329
1329
|
}
|
|
1330
1330
|
function X() {
|
|
1331
|
-
return
|
|
1331
|
+
return U;
|
|
1332
1332
|
}
|
|
1333
1333
|
return {
|
|
1334
1334
|
init: re,
|
|
@@ -1349,13 +1349,13 @@ function kr(t, e) {
|
|
|
1349
1349
|
return s = f, i = f, o(f);
|
|
1350
1350
|
}
|
|
1351
1351
|
function l(f) {
|
|
1352
|
-
const k = o(f) - o(i),
|
|
1353
|
-
return i = f,
|
|
1352
|
+
const k = o(f) - o(i), p = a(f) - a(s) > 170;
|
|
1353
|
+
return i = f, p && (s = f), k;
|
|
1354
1354
|
}
|
|
1355
1355
|
function u(f) {
|
|
1356
1356
|
if (!s || !i) return 0;
|
|
1357
|
-
const k = o(i) - o(s),
|
|
1358
|
-
return
|
|
1357
|
+
const k = o(i) - o(s), p = a(f) - a(s), h = a(f) - a(i) > 170, v = k / p;
|
|
1358
|
+
return p && !h && q(v) > 0.1 ? v : 0;
|
|
1359
1359
|
}
|
|
1360
1360
|
return {
|
|
1361
1361
|
pointerDown: d,
|
|
@@ -1364,7 +1364,7 @@ function kr(t, e) {
|
|
|
1364
1364
|
readPoint: o
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function vr() {
|
|
1368
1368
|
function t(n) {
|
|
1369
1369
|
const {
|
|
1370
1370
|
offsetTop: s,
|
|
@@ -1385,7 +1385,7 @@ function br() {
|
|
|
1385
1385
|
measure: t
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function br(t) {
|
|
1389
1389
|
function e(s) {
|
|
1390
1390
|
return t * (s / 100);
|
|
1391
1391
|
}
|
|
@@ -1396,24 +1396,24 @@ function vr(t) {
|
|
|
1396
1396
|
function yr(t, e, n, s, i, a, o) {
|
|
1397
1397
|
const d = [t].concat(s);
|
|
1398
1398
|
let l, u, y = [], f = !1;
|
|
1399
|
-
function k(
|
|
1400
|
-
return i.measureSize(o.measure(
|
|
1399
|
+
function k(b) {
|
|
1400
|
+
return i.measureSize(o.measure(b));
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function p(b) {
|
|
1403
1403
|
if (!a) return;
|
|
1404
1404
|
u = k(t), y = s.map(k);
|
|
1405
|
-
function
|
|
1405
|
+
function g(m) {
|
|
1406
1406
|
for (const T of m) {
|
|
1407
1407
|
if (f) return;
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1410
|
-
|
|
1408
|
+
const B = T.target === t, F = s.indexOf(T.target), E = B ? u : y[F], j = k(B ? t : s[F]);
|
|
1409
|
+
if (q(j - E) >= 0.5) {
|
|
1410
|
+
b.reInit(), e.emit("resize");
|
|
1411
1411
|
break;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
l = new ResizeObserver((m) => {
|
|
1416
|
-
(Me(a) || a(
|
|
1416
|
+
(Me(a) || a(b, m)) && g(m);
|
|
1417
1417
|
}), n.requestAnimationFrame(() => {
|
|
1418
1418
|
d.forEach((m) => l.observe(m));
|
|
1419
1419
|
});
|
|
@@ -1422,7 +1422,7 @@ function yr(t, e, n, s, i, a, o) {
|
|
|
1422
1422
|
f = !0, l && l.disconnect();
|
|
1423
1423
|
}
|
|
1424
1424
|
return {
|
|
1425
|
-
init:
|
|
1425
|
+
init: p,
|
|
1426
1426
|
destroy: h
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
@@ -1430,43 +1430,43 @@ function xr(t, e, n, s, i, a) {
|
|
|
1430
1430
|
let o = 0, d = 0, l = i, u = a, y = t.get(), f = 0;
|
|
1431
1431
|
function k() {
|
|
1432
1432
|
const E = s.get() - t.get(), j = !l;
|
|
1433
|
-
let
|
|
1434
|
-
return j ? (o = 0, n.set(s), t.set(s),
|
|
1433
|
+
let A = 0;
|
|
1434
|
+
return j ? (o = 0, n.set(s), t.set(s), A = E) : (n.set(t), o += E / l, o *= u, y += o, t.add(o), A = y - f), d = et(A), f = y, F;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function p() {
|
|
1437
1437
|
const E = s.get() - e.get();
|
|
1438
|
-
return
|
|
1438
|
+
return q(E) < 1e-3;
|
|
1439
1439
|
}
|
|
1440
1440
|
function h() {
|
|
1441
1441
|
return l;
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function v() {
|
|
1444
1444
|
return d;
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function b() {
|
|
1447
1447
|
return o;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function g() {
|
|
1450
1450
|
return T(i);
|
|
1451
1451
|
}
|
|
1452
1452
|
function m() {
|
|
1453
|
-
return
|
|
1453
|
+
return B(a);
|
|
1454
1454
|
}
|
|
1455
1455
|
function T(E) {
|
|
1456
1456
|
return l = E, F;
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function B(E) {
|
|
1459
1459
|
return u = E, F;
|
|
1460
1460
|
}
|
|
1461
1461
|
const F = {
|
|
1462
|
-
direction:
|
|
1462
|
+
direction: v,
|
|
1463
1463
|
duration: h,
|
|
1464
|
-
velocity:
|
|
1464
|
+
velocity: b,
|
|
1465
1465
|
seek: k,
|
|
1466
|
-
settled:
|
|
1466
|
+
settled: p,
|
|
1467
1467
|
useBaseFriction: m,
|
|
1468
|
-
useBaseDuration:
|
|
1469
|
-
useFriction:
|
|
1468
|
+
useBaseDuration: g,
|
|
1469
|
+
useFriction: B,
|
|
1470
1470
|
useDuration: T
|
|
1471
1471
|
};
|
|
1472
1472
|
return F;
|
|
@@ -1477,13 +1477,13 @@ function Tr(t, e, n, s, i) {
|
|
|
1477
1477
|
function u() {
|
|
1478
1478
|
return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
|
|
1479
1479
|
}
|
|
1480
|
-
function y(
|
|
1480
|
+
function y(p) {
|
|
1481
1481
|
if (!u()) return;
|
|
1482
|
-
const h = t.reachedMin(e.get()) ? "min" : "max",
|
|
1483
|
-
n.subtract(
|
|
1482
|
+
const h = t.reachedMin(e.get()) ? "min" : "max", v = q(t[h] - e.get()), b = n.get() - e.get(), g = d.constrain(v / o);
|
|
1483
|
+
n.subtract(b * g), !p && q(b) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
|
|
1484
1484
|
}
|
|
1485
|
-
function f(
|
|
1486
|
-
l = !
|
|
1485
|
+
function f(p) {
|
|
1486
|
+
l = !p;
|
|
1487
1487
|
}
|
|
1488
1488
|
return {
|
|
1489
1489
|
shouldConstrain: u,
|
|
@@ -1493,20 +1493,20 @@ function Tr(t, e, n, s, i) {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
function Sr(t, e, n, s, i) {
|
|
1495
1495
|
const a = fe(-e + t, 0), o = f(), d = y(), l = k();
|
|
1496
|
-
function u(h,
|
|
1497
|
-
return Ie(h,
|
|
1496
|
+
function u(h, v) {
|
|
1497
|
+
return Ie(h, v) <= 1;
|
|
1498
1498
|
}
|
|
1499
1499
|
function y() {
|
|
1500
|
-
const h = o[0],
|
|
1501
|
-
return fe(
|
|
1500
|
+
const h = o[0], v = ie(o), b = o.lastIndexOf(h), g = o.indexOf(v) + 1;
|
|
1501
|
+
return fe(b, g);
|
|
1502
1502
|
}
|
|
1503
1503
|
function f() {
|
|
1504
|
-
return n.map((h,
|
|
1504
|
+
return n.map((h, v) => {
|
|
1505
1505
|
const {
|
|
1506
|
-
min:
|
|
1507
|
-
max:
|
|
1508
|
-
} = a, m = a.constrain(h), T = !
|
|
1509
|
-
return T ?
|
|
1506
|
+
min: b,
|
|
1507
|
+
max: g
|
|
1508
|
+
} = a, m = a.constrain(h), T = !v, B = tt(n, v);
|
|
1509
|
+
return T ? g : B || u(b, m) ? b : u(g, m) ? g : m;
|
|
1510
1510
|
}).map((h) => parseFloat(h.toFixed(3)));
|
|
1511
1511
|
}
|
|
1512
1512
|
function k() {
|
|
@@ -1514,9 +1514,9 @@ function Sr(t, e, n, s, i) {
|
|
|
1514
1514
|
if (s === "keepSnaps") return o;
|
|
1515
1515
|
const {
|
|
1516
1516
|
min: h,
|
|
1517
|
-
max:
|
|
1517
|
+
max: v
|
|
1518
1518
|
} = d;
|
|
1519
|
-
return o.slice(h,
|
|
1519
|
+
return o.slice(h, v);
|
|
1520
1520
|
}
|
|
1521
1521
|
return {
|
|
1522
1522
|
snapsContained: l,
|
|
@@ -1539,8 +1539,8 @@ function Cr(t, e, n, s) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
function y(k) {
|
|
1541
1541
|
if (!u(k)) return;
|
|
1542
|
-
const
|
|
1543
|
-
s.forEach((h) => h.add(
|
|
1542
|
+
const p = t * (k * -1);
|
|
1543
|
+
s.forEach((h) => h.add(p));
|
|
1544
1544
|
}
|
|
1545
1545
|
return {
|
|
1546
1546
|
loop: y
|
|
@@ -1565,15 +1565,15 @@ function Dr(t, e, n, s, i) {
|
|
|
1565
1565
|
endEdge: o
|
|
1566
1566
|
} = t, {
|
|
1567
1567
|
groupSlides: d
|
|
1568
|
-
} = i, l = f().map(e.measure), u = k(), y =
|
|
1568
|
+
} = i, l = f().map(e.measure), u = k(), y = p();
|
|
1569
1569
|
function f() {
|
|
1570
|
-
return d(s).map((
|
|
1570
|
+
return d(s).map((v) => ie(v)[o] - v[0][a]).map(q);
|
|
1571
1571
|
}
|
|
1572
1572
|
function k() {
|
|
1573
|
-
return s.map((
|
|
1573
|
+
return s.map((v) => n[a] - v[a]).map((v) => -q(v));
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1576
|
-
return d(u).map((
|
|
1575
|
+
function p() {
|
|
1576
|
+
return d(u).map((v) => v[0]).map((v, b) => v + l[b]);
|
|
1577
1577
|
}
|
|
1578
1578
|
return {
|
|
1579
1579
|
snaps: u,
|
|
@@ -1588,16 +1588,16 @@ function Ir(t, e, n, s, i, a) {
|
|
|
1588
1588
|
max: l
|
|
1589
1589
|
} = s, u = y();
|
|
1590
1590
|
function y() {
|
|
1591
|
-
const k = o(a),
|
|
1592
|
-
return n.length === 1 ? [a] :
|
|
1593
|
-
const
|
|
1594
|
-
if (
|
|
1595
|
-
const T = ie(
|
|
1591
|
+
const k = o(a), p = !t || e === "keepSnaps";
|
|
1592
|
+
return n.length === 1 ? [a] : p ? k : k.slice(d, l).map((h, v, b) => {
|
|
1593
|
+
const g = !v, m = tt(b, v);
|
|
1594
|
+
if (g) {
|
|
1595
|
+
const T = ie(b[0]) + 1;
|
|
1596
1596
|
return jt(T);
|
|
1597
1597
|
}
|
|
1598
1598
|
if (m) {
|
|
1599
|
-
const T =
|
|
1600
|
-
return jt(T, ie(
|
|
1599
|
+
const T = Be(a) - ie(b)[0] + 1;
|
|
1600
|
+
return jt(T, ie(b)[0]);
|
|
1601
1601
|
}
|
|
1602
1602
|
return h;
|
|
1603
1603
|
});
|
|
@@ -1606,53 +1606,53 @@ function Ir(t, e, n, s, i, a) {
|
|
|
1606
1606
|
slideRegistry: u
|
|
1607
1607
|
};
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function Ar(t, e, n, s, i) {
|
|
1610
1610
|
const {
|
|
1611
1611
|
reachedAny: a,
|
|
1612
1612
|
removeOffset: o,
|
|
1613
1613
|
constrain: d
|
|
1614
1614
|
} = s;
|
|
1615
1615
|
function l(h) {
|
|
1616
|
-
return h.concat().sort((
|
|
1616
|
+
return h.concat().sort((v, b) => q(v) - q(b))[0];
|
|
1617
1617
|
}
|
|
1618
1618
|
function u(h) {
|
|
1619
|
-
const
|
|
1620
|
-
diff: y(m -
|
|
1619
|
+
const v = t ? o(h) : d(h), b = e.map((m, T) => ({
|
|
1620
|
+
diff: y(m - v, 0),
|
|
1621
1621
|
index: T
|
|
1622
|
-
})).sort((m, T) =>
|
|
1623
|
-
index:
|
|
1624
|
-
} =
|
|
1622
|
+
})).sort((m, T) => q(m.diff) - q(T.diff)), {
|
|
1623
|
+
index: g
|
|
1624
|
+
} = b[0];
|
|
1625
1625
|
return {
|
|
1626
|
-
index:
|
|
1627
|
-
distance:
|
|
1626
|
+
index: g,
|
|
1627
|
+
distance: v
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
|
-
function y(h,
|
|
1631
|
-
const
|
|
1630
|
+
function y(h, v) {
|
|
1631
|
+
const b = [h, h + n, h - n];
|
|
1632
1632
|
if (!t) return h;
|
|
1633
|
-
if (!
|
|
1634
|
-
const
|
|
1635
|
-
return
|
|
1633
|
+
if (!v) return l(b);
|
|
1634
|
+
const g = b.filter((m) => et(m) === v);
|
|
1635
|
+
return g.length ? l(g) : ie(b) - n;
|
|
1636
1636
|
}
|
|
1637
|
-
function f(h,
|
|
1638
|
-
const
|
|
1637
|
+
function f(h, v) {
|
|
1638
|
+
const b = e[h] - i.get(), g = y(b, v);
|
|
1639
1639
|
return {
|
|
1640
1640
|
index: h,
|
|
1641
|
-
distance:
|
|
1641
|
+
distance: g
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
|
-
function k(h,
|
|
1645
|
-
const
|
|
1646
|
-
index:
|
|
1644
|
+
function k(h, v) {
|
|
1645
|
+
const b = i.get() + h, {
|
|
1646
|
+
index: g,
|
|
1647
1647
|
distance: m
|
|
1648
|
-
} = u(
|
|
1649
|
-
if (!
|
|
1650
|
-
index:
|
|
1648
|
+
} = u(b), T = !t && a(b);
|
|
1649
|
+
if (!v || T) return {
|
|
1650
|
+
index: g,
|
|
1651
1651
|
distance: h
|
|
1652
1652
|
};
|
|
1653
|
-
const
|
|
1653
|
+
const B = e[g] - m, F = h + y(B, 0);
|
|
1654
1654
|
return {
|
|
1655
|
-
index:
|
|
1655
|
+
index: g,
|
|
1656
1656
|
distance: F
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
@@ -1662,17 +1662,17 @@ function Lr(t, e, n, s, i) {
|
|
|
1662
1662
|
shortcut: y
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function Lr(t, e, n, s, i, a, o) {
|
|
1666
1666
|
function d(f) {
|
|
1667
|
-
const k = f.distance,
|
|
1668
|
-
a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())),
|
|
1667
|
+
const k = f.distance, p = f.index !== e.get();
|
|
1668
|
+
a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), p && (n.set(e.get()), e.set(f.index), o.emit("select"));
|
|
1669
1669
|
}
|
|
1670
1670
|
function l(f, k) {
|
|
1671
|
-
const
|
|
1672
|
-
d(
|
|
1671
|
+
const p = i.byDistance(f, k);
|
|
1672
|
+
d(p);
|
|
1673
1673
|
}
|
|
1674
1674
|
function u(f, k) {
|
|
1675
|
-
const
|
|
1675
|
+
const p = e.clone().set(f), h = i.byIndex(p.get(), k);
|
|
1676
1676
|
d(h);
|
|
1677
1677
|
}
|
|
1678
1678
|
return {
|
|
@@ -1686,22 +1686,22 @@ function Fr(t, e, n, s, i, a, o, d) {
|
|
|
1686
1686
|
capture: !0
|
|
1687
1687
|
};
|
|
1688
1688
|
let u = 0;
|
|
1689
|
-
function y(
|
|
1689
|
+
function y(p) {
|
|
1690
1690
|
if (!d) return;
|
|
1691
|
-
function h(
|
|
1691
|
+
function h(v) {
|
|
1692
1692
|
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
1693
1693
|
o.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1694
|
-
const m = n.findIndex((T) => T.includes(
|
|
1694
|
+
const m = n.findIndex((T) => T.includes(v));
|
|
1695
1695
|
Qe(m) && (i.useDuration(0), s.index(m, 0), o.emit("slideFocus"));
|
|
1696
1696
|
}
|
|
1697
|
-
a.add(document, "keydown", f, !1), e.forEach((
|
|
1698
|
-
a.add(
|
|
1699
|
-
(Me(d) || d(
|
|
1697
|
+
a.add(document, "keydown", f, !1), e.forEach((v, b) => {
|
|
1698
|
+
a.add(v, "focus", (g) => {
|
|
1699
|
+
(Me(d) || d(p, g)) && h(b);
|
|
1700
1700
|
}, l);
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
|
-
function f(
|
|
1704
|
-
|
|
1703
|
+
function f(p) {
|
|
1704
|
+
p.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
|
|
1705
1705
|
}
|
|
1706
1706
|
return {
|
|
1707
1707
|
init: y
|
|
@@ -1742,8 +1742,8 @@ function Pt(t, e) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
function l(k) {
|
|
1744
1744
|
if (a) return;
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1745
|
+
const p = mr(t.direction(k));
|
|
1746
|
+
p !== i && (s.transform = n(p), i = p);
|
|
1747
1747
|
}
|
|
1748
1748
|
function u(k) {
|
|
1749
1749
|
a = !k;
|
|
@@ -1757,57 +1757,57 @@ function Pt(t, e) {
|
|
|
1757
1757
|
toggleActive: u
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1761
|
-
const y =
|
|
1762
|
-
function
|
|
1763
|
-
return j.reduce((
|
|
1764
|
-
}
|
|
1765
|
-
function h(j,
|
|
1766
|
-
return j.reduce((
|
|
1767
|
-
}
|
|
1768
|
-
function
|
|
1769
|
-
return a.map((
|
|
1770
|
-
start:
|
|
1771
|
-
end:
|
|
1760
|
+
function Br(t, e, n, s, i, a, o, d, l) {
|
|
1761
|
+
const y = Ae(i), f = Ae(i).reverse(), k = g().concat(m());
|
|
1762
|
+
function p(j, A) {
|
|
1763
|
+
return j.reduce((N, $) => N - i[$], A);
|
|
1764
|
+
}
|
|
1765
|
+
function h(j, A) {
|
|
1766
|
+
return j.reduce((N, $) => p(N, A) > 0 ? N.concat([$]) : N, []);
|
|
1767
|
+
}
|
|
1768
|
+
function v(j) {
|
|
1769
|
+
return a.map((A, N) => ({
|
|
1770
|
+
start: A - s[N] + 0.5 + j,
|
|
1771
|
+
end: A + e - 0.5 + j
|
|
1772
1772
|
}));
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1775
|
-
const $ =
|
|
1776
|
-
return j.map((
|
|
1777
|
-
const W =
|
|
1774
|
+
function b(j, A, N) {
|
|
1775
|
+
const $ = v(A);
|
|
1776
|
+
return j.map((_) => {
|
|
1777
|
+
const W = N ? 0 : -n, R = N ? n : 0, M = N ? "end" : "start", I = $[_][M];
|
|
1778
1778
|
return {
|
|
1779
|
-
index:
|
|
1779
|
+
index: _,
|
|
1780
1780
|
loopPoint: I,
|
|
1781
1781
|
slideLocation: De(-1),
|
|
1782
|
-
translate: Pt(t, l[
|
|
1783
|
-
target: () => d.get() > I ? W :
|
|
1782
|
+
translate: Pt(t, l[_]),
|
|
1783
|
+
target: () => d.get() > I ? W : R
|
|
1784
1784
|
};
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const j = o[0],
|
|
1789
|
-
return
|
|
1787
|
+
function g() {
|
|
1788
|
+
const j = o[0], A = h(f, j);
|
|
1789
|
+
return b(A, n, !1);
|
|
1790
1790
|
}
|
|
1791
1791
|
function m() {
|
|
1792
|
-
const j = e - o[0] - 1,
|
|
1793
|
-
return
|
|
1792
|
+
const j = e - o[0] - 1, A = h(y, j);
|
|
1793
|
+
return b(A, -n, !0);
|
|
1794
1794
|
}
|
|
1795
1795
|
function T() {
|
|
1796
1796
|
return k.every(({
|
|
1797
1797
|
index: j
|
|
1798
1798
|
}) => {
|
|
1799
|
-
const
|
|
1800
|
-
return
|
|
1799
|
+
const A = y.filter((N) => N !== j);
|
|
1800
|
+
return p(A, e) <= 0.1;
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1803
|
+
function B() {
|
|
1804
1804
|
k.forEach((j) => {
|
|
1805
1805
|
const {
|
|
1806
|
-
target:
|
|
1807
|
-
translate:
|
|
1806
|
+
target: A,
|
|
1807
|
+
translate: N,
|
|
1808
1808
|
slideLocation: $
|
|
1809
|
-
} = j,
|
|
1810
|
-
|
|
1809
|
+
} = j, _ = A();
|
|
1810
|
+
_ !== $.get() && (N.to(_), $.set(_));
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
function F() {
|
|
@@ -1816,7 +1816,7 @@ function _r(t, e, n, s, i, a, o, d, l) {
|
|
|
1816
1816
|
return {
|
|
1817
1817
|
canLoop: T,
|
|
1818
1818
|
clear: F,
|
|
1819
|
-
loop:
|
|
1819
|
+
loop: B,
|
|
1820
1820
|
loopPoints: k
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
@@ -1845,14 +1845,14 @@ function Er(t, e, n) {
|
|
|
1845
1845
|
destroy: o
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Nr(t, e, n, s) {
|
|
1849
1849
|
const i = {};
|
|
1850
1850
|
let a = null, o = null, d, l = !1;
|
|
1851
1851
|
function u() {
|
|
1852
1852
|
d = new IntersectionObserver((h) => {
|
|
1853
|
-
l || (h.forEach((
|
|
1854
|
-
const
|
|
1855
|
-
i[
|
|
1853
|
+
l || (h.forEach((v) => {
|
|
1854
|
+
const b = e.indexOf(v.target);
|
|
1855
|
+
i[b] = v;
|
|
1856
1856
|
}), a = null, o = null, n.emit("slidesInView"));
|
|
1857
1857
|
}, {
|
|
1858
1858
|
root: t.parentElement,
|
|
@@ -1863,18 +1863,18 @@ function Br(t, e, n, s) {
|
|
|
1863
1863
|
d && d.disconnect(), l = !0;
|
|
1864
1864
|
}
|
|
1865
1865
|
function f(h) {
|
|
1866
|
-
return
|
|
1867
|
-
const
|
|
1866
|
+
return Le(i).reduce((v, b) => {
|
|
1867
|
+
const g = parseInt(b), {
|
|
1868
1868
|
isIntersecting: m
|
|
1869
|
-
} = i[
|
|
1870
|
-
return (h && m || !h && !m) &&
|
|
1869
|
+
} = i[g];
|
|
1870
|
+
return (h && m || !h && !m) && v.push(g), v;
|
|
1871
1871
|
}, []);
|
|
1872
1872
|
}
|
|
1873
1873
|
function k(h = !0) {
|
|
1874
1874
|
if (h && a) return a;
|
|
1875
1875
|
if (!h && o) return o;
|
|
1876
|
-
const
|
|
1877
|
-
return h && (a =
|
|
1876
|
+
const v = f(h);
|
|
1877
|
+
return h && (a = v), h || (o = v), v;
|
|
1878
1878
|
}
|
|
1879
1879
|
return {
|
|
1880
1880
|
init: u,
|
|
@@ -1882,31 +1882,31 @@ function Br(t, e, n, s) {
|
|
|
1882
1882
|
get: k
|
|
1883
1883
|
};
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function _r(t, e, n, s, i, a) {
|
|
1886
1886
|
const {
|
|
1887
1887
|
measureSize: o,
|
|
1888
1888
|
startEdge: d,
|
|
1889
1889
|
endEdge: l
|
|
1890
|
-
} = t, u = n[0] && i, y = h(), f =
|
|
1890
|
+
} = t, u = n[0] && i, y = h(), f = v(), k = n.map(o), p = b();
|
|
1891
1891
|
function h() {
|
|
1892
1892
|
if (!u) return 0;
|
|
1893
1893
|
const m = n[0];
|
|
1894
|
-
return
|
|
1894
|
+
return q(e[d] - m[d]);
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function v() {
|
|
1897
1897
|
if (!u) return 0;
|
|
1898
1898
|
const m = a.getComputedStyle(ie(s));
|
|
1899
1899
|
return parseFloat(m.getPropertyValue(`margin-${l}`));
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1902
|
-
return n.map((m, T,
|
|
1903
|
-
const F = !T, E = tt(
|
|
1904
|
-
return F ? k[T] + y : E ? k[T] + f :
|
|
1905
|
-
}).map(
|
|
1901
|
+
function b() {
|
|
1902
|
+
return n.map((m, T, B) => {
|
|
1903
|
+
const F = !T, E = tt(B, T);
|
|
1904
|
+
return F ? k[T] + y : E ? k[T] + f : B[T + 1][d] - m[d];
|
|
1905
|
+
}).map(q);
|
|
1906
1906
|
}
|
|
1907
1907
|
return {
|
|
1908
1908
|
slideSizes: k,
|
|
1909
|
-
slideSizesWithGaps:
|
|
1909
|
+
slideSizesWithGaps: p,
|
|
1910
1910
|
startGap: y,
|
|
1911
1911
|
endGap: f
|
|
1912
1912
|
};
|
|
@@ -1917,26 +1917,26 @@ function Pr(t, e, n, s, i, a, o, d, l) {
|
|
|
1917
1917
|
endEdge: y,
|
|
1918
1918
|
direction: f
|
|
1919
1919
|
} = t, k = Qe(n);
|
|
1920
|
-
function g
|
|
1921
|
-
return
|
|
1922
|
-
}
|
|
1923
|
-
function h(
|
|
1924
|
-
return
|
|
1925
|
-
const F = ie(m) || 0, E = F === 0, j = T ===
|
|
1926
|
-
return
|
|
1927
|
-
}, []).map((m, T,
|
|
1928
|
-
const F = Math.max(
|
|
1929
|
-
return
|
|
1920
|
+
function p(g, m) {
|
|
1921
|
+
return Ae(g).filter((T) => T % m === 0).map((T) => g.slice(T, T + m));
|
|
1922
|
+
}
|
|
1923
|
+
function h(g) {
|
|
1924
|
+
return g.length ? Ae(g).reduce((m, T, B) => {
|
|
1925
|
+
const F = ie(m) || 0, E = F === 0, j = T === Be(g), A = i[u] - a[F][u], N = i[u] - a[T][y], $ = !s && E ? f(o) : 0, _ = !s && j ? f(d) : 0, W = q(N - _ - (A + $));
|
|
1926
|
+
return B && W > e + l && m.push(T), j && m.push(g.length), m;
|
|
1927
|
+
}, []).map((m, T, B) => {
|
|
1928
|
+
const F = Math.max(B[T - 1] || 0);
|
|
1929
|
+
return g.slice(F, m);
|
|
1930
1930
|
}) : [];
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1933
|
-
return k ? g
|
|
1932
|
+
function v(g) {
|
|
1933
|
+
return k ? p(g, n) : h(g);
|
|
1934
1934
|
}
|
|
1935
1935
|
return {
|
|
1936
|
-
groupSlides:
|
|
1936
|
+
groupSlides: v
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Rr(t, e, n, s, i, a, o) {
|
|
1940
1940
|
const {
|
|
1941
1941
|
align: d,
|
|
1942
1942
|
axis: l,
|
|
@@ -1944,30 +1944,30 @@ function zr(t, e, n, s, i, a, o) {
|
|
|
1944
1944
|
startIndex: y,
|
|
1945
1945
|
loop: f,
|
|
1946
1946
|
duration: k,
|
|
1947
|
-
dragFree:
|
|
1947
|
+
dragFree: p,
|
|
1948
1948
|
dragThreshold: h,
|
|
1949
|
-
inViewThreshold:
|
|
1950
|
-
slidesToScroll:
|
|
1951
|
-
skipSnaps:
|
|
1949
|
+
inViewThreshold: v,
|
|
1950
|
+
slidesToScroll: b,
|
|
1951
|
+
skipSnaps: g,
|
|
1952
1952
|
containScroll: m,
|
|
1953
1953
|
watchResize: T,
|
|
1954
|
-
watchSlides:
|
|
1954
|
+
watchSlides: B,
|
|
1955
1955
|
watchDrag: F,
|
|
1956
1956
|
watchFocus: E
|
|
1957
|
-
} = a, j = 2,
|
|
1957
|
+
} = a, j = 2, A = vr(), N = A.measure(e), $ = n.map(A.measure), _ = fr(l, u), W = _.measureSize(N), R = br(W), M = pr(d, W), I = !f && !!m, U = f || !!m, {
|
|
1958
1958
|
slideSizes: ne,
|
|
1959
1959
|
slideSizesWithGaps: Y,
|
|
1960
1960
|
startGap: K,
|
|
1961
1961
|
endGap: re
|
|
1962
|
-
} =
|
|
1963
|
-
snaps:
|
|
1962
|
+
} = _r(_, N, $, n, U, i), c = Pr(_, W, b, f, N, $, K, re, j), {
|
|
1963
|
+
snaps: L,
|
|
1964
1964
|
snapsAligned: P
|
|
1965
|
-
} = Dr(
|
|
1965
|
+
} = Dr(_, M, N, $, c), z = -ie(L) + ie(Y), {
|
|
1966
1966
|
snapsContained: x,
|
|
1967
1967
|
scrollContainLimit: D
|
|
1968
|
-
} = Sr(W,
|
|
1968
|
+
} = Sr(W, z, P, m, j), C = I ? x : P, {
|
|
1969
1969
|
limit: H
|
|
1970
|
-
} = wr(
|
|
1970
|
+
} = wr(z, C, f), J = _t(Be(C), y, f), X = J.clone(), V = Ae(n), w = ({
|
|
1971
1971
|
dragHandler: he,
|
|
1972
1972
|
scrollBody: He,
|
|
1973
1973
|
scrollBounds: We,
|
|
@@ -1992,23 +1992,23 @@ function zr(t, e, n, s, i, a, o) {
|
|
|
1992
1992
|
loop: it
|
|
1993
1993
|
}
|
|
1994
1994
|
}, lt) => {
|
|
1995
|
-
const dt = he.settled(),
|
|
1995
|
+
const dt = he.settled(), Ut = !Gt.shouldConstrain(), ct = it ? dt : dt && Ut, ut = ct && !Wt.pointerDown();
|
|
1996
1996
|
ut && Vt.stop();
|
|
1997
|
-
const
|
|
1998
|
-
Ee.set(
|
|
1999
|
-
}, G =
|
|
1997
|
+
const qt = We.get() * lt + Ot.get() * (1 - lt);
|
|
1998
|
+
Ee.set(qt), it && ($t.loop(he.direction()), Ht.loop()), He.to(Ee.get()), ut && at.emit("settle"), ct || at.emit("scroll");
|
|
1999
|
+
}, G = gr(s, i, () => w($e), (he) => O($e, he)), Z = 0.68, le = C[J.get()], de = De(le), me = De(le), ce = De(le), pe = De(le), xe = xr(de, ce, me, pe, k, Z), ze = Ar(f, C, z, H, pe), Oe = Lr(G, J, X, xe, ze, pe, o), ot = jr(H), rt = Fe(), Mt = Nr(e, n, o, v), {
|
|
2000
2000
|
slideRegistry: st
|
|
2001
|
-
} = Ir(I, m, C, D, c, V),
|
|
2001
|
+
} = Ir(I, m, C, D, c, V), zt = Fr(t, n, st, Oe, xe, rt, o, E), $e = {
|
|
2002
2002
|
ownerDocument: s,
|
|
2003
2003
|
ownerWindow: i,
|
|
2004
2004
|
eventHandler: o,
|
|
2005
|
-
containerRect:
|
|
2005
|
+
containerRect: N,
|
|
2006
2006
|
slideRects: $,
|
|
2007
2007
|
animation: G,
|
|
2008
|
-
axis:
|
|
2009
|
-
dragHandler: hr(
|
|
2008
|
+
axis: _,
|
|
2009
|
+
dragHandler: hr(_, t, s, i, pe, kr(_, i), de, G, Oe, xe, ze, J, o, R, p, h, g, Z, F),
|
|
2010
2010
|
eventStore: rt,
|
|
2011
|
-
percentOfView:
|
|
2011
|
+
percentOfView: R,
|
|
2012
2012
|
index: J,
|
|
2013
2013
|
indexPrevious: X,
|
|
2014
2014
|
limit: H,
|
|
@@ -2016,24 +2016,24 @@ function zr(t, e, n, s, i, a, o) {
|
|
|
2016
2016
|
offsetLocation: ce,
|
|
2017
2017
|
previousLocation: me,
|
|
2018
2018
|
options: a,
|
|
2019
|
-
resizeHandler: yr(e, o, i, n,
|
|
2019
|
+
resizeHandler: yr(e, o, i, n, _, T, A),
|
|
2020
2020
|
scrollBody: xe,
|
|
2021
|
-
scrollBounds: Tr(H, ce,
|
|
2022
|
-
scrollLooper: Cr(
|
|
2021
|
+
scrollBounds: Tr(H, ce, pe, xe, R),
|
|
2022
|
+
scrollLooper: Cr(z, H, ce, [de, ce, me, pe]),
|
|
2023
2023
|
scrollProgress: ot,
|
|
2024
2024
|
scrollSnapList: C.map(ot.get),
|
|
2025
2025
|
scrollSnaps: C,
|
|
2026
|
-
scrollTarget:
|
|
2026
|
+
scrollTarget: ze,
|
|
2027
2027
|
scrollTo: Oe,
|
|
2028
|
-
slideLooper:
|
|
2029
|
-
slideFocus:
|
|
2030
|
-
slidesHandler: Er(e, o,
|
|
2028
|
+
slideLooper: Br(_, W, z, ne, Y, L, C, ce, n),
|
|
2029
|
+
slideFocus: zt,
|
|
2030
|
+
slidesHandler: Er(e, o, B),
|
|
2031
2031
|
slidesInView: Mt,
|
|
2032
2032
|
slideIndexes: V,
|
|
2033
2033
|
slideRegistry: st,
|
|
2034
2034
|
slidesToScroll: c,
|
|
2035
|
-
target:
|
|
2036
|
-
translate: Pt(
|
|
2035
|
+
target: pe,
|
|
2036
|
+
translate: Pt(_, e)
|
|
2037
2037
|
};
|
|
2038
2038
|
return $e;
|
|
2039
2039
|
}
|
|
@@ -2066,7 +2066,7 @@ function Mr() {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
return l;
|
|
2068
2068
|
}
|
|
2069
|
-
const
|
|
2069
|
+
const zr = {
|
|
2070
2070
|
align: "center",
|
|
2071
2071
|
axis: "x",
|
|
2072
2072
|
container: null,
|
|
@@ -2090,14 +2090,14 @@ const Rr = {
|
|
|
2090
2090
|
};
|
|
2091
2091
|
function Or(t) {
|
|
2092
2092
|
function e(a, o) {
|
|
2093
|
-
return
|
|
2093
|
+
return Nt(a, o || {});
|
|
2094
2094
|
}
|
|
2095
2095
|
function n(a) {
|
|
2096
|
-
const o = a.breakpoints || {}, d =
|
|
2096
|
+
const o = a.breakpoints || {}, d = Le(o).filter((l) => t.matchMedia(l).matches).map((l) => o[l]).reduce((l, u) => e(l, u), {});
|
|
2097
2097
|
return e(a, d);
|
|
2098
2098
|
}
|
|
2099
2099
|
function s(a) {
|
|
2100
|
-
return a.map((o) =>
|
|
2100
|
+
return a.map((o) => Le(o.breakpoints || {})).reduce((o, d) => o.concat(d), []).map(t.matchMedia);
|
|
2101
2101
|
}
|
|
2102
2102
|
return {
|
|
2103
2103
|
mergeOptions: e,
|
|
@@ -2122,18 +2122,18 @@ function $r(t) {
|
|
|
2122
2122
|
destroy: s
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function Re(t, e, n) {
|
|
2126
2126
|
const s = t.ownerDocument, i = s.defaultView, a = Or(i), o = $r(a), d = Fe(), l = Mr(), {
|
|
2127
2127
|
mergeOptions: u,
|
|
2128
2128
|
optionsAtMedia: y,
|
|
2129
2129
|
optionsMediaQueries: f
|
|
2130
2130
|
} = a, {
|
|
2131
2131
|
on: k,
|
|
2132
|
-
off:
|
|
2132
|
+
off: p,
|
|
2133
2133
|
emit: h
|
|
2134
|
-
} = l,
|
|
2135
|
-
let
|
|
2136
|
-
function
|
|
2134
|
+
} = l, v = _;
|
|
2135
|
+
let b = !1, g, m = u(zr, Re.globalOptions), T = u(m), B = [], F, E, j;
|
|
2136
|
+
function A() {
|
|
2137
2137
|
const {
|
|
2138
2138
|
container: V,
|
|
2139
2139
|
slides: w
|
|
@@ -2142,73 +2142,73 @@ function ze(t, e, n) {
|
|
|
2142
2142
|
const G = Ye(w) ? E.querySelectorAll(w) : w;
|
|
2143
2143
|
j = [].slice.call(G || E.children);
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2146
|
-
const w =
|
|
2145
|
+
function N(V) {
|
|
2146
|
+
const w = Rr(t, E, j, s, i, V, l);
|
|
2147
2147
|
if (V.loop && !w.slideLooper.canLoop()) {
|
|
2148
2148
|
const O = Object.assign({}, V, {
|
|
2149
2149
|
loop: !1
|
|
2150
2150
|
});
|
|
2151
|
-
return
|
|
2151
|
+
return N(O);
|
|
2152
2152
|
}
|
|
2153
2153
|
return w;
|
|
2154
2154
|
}
|
|
2155
2155
|
function $(V, w) {
|
|
2156
|
-
|
|
2156
|
+
b || (m = u(m, V), T = y(m), B = w || B, A(), g = N(T), f([m, ...B.map(({
|
|
2157
2157
|
options: O
|
|
2158
|
-
}) => O)]).forEach((O) => d.add(O, "change",
|
|
2158
|
+
}) => O)]).forEach((O) => d.add(O, "change", _)), T.active && (g.translate.to(g.location.get()), g.animation.init(), g.slidesInView.init(), g.slideFocus.init(X), g.eventHandler.init(X), g.resizeHandler.init(X), g.slidesHandler.init(X), g.options.loop && g.slideLooper.loop(), E.offsetParent && j.length && g.dragHandler.init(X), F = o.init(X, B)));
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2160
|
+
function _(V, w) {
|
|
2161
2161
|
const O = c();
|
|
2162
2162
|
W(), $(u({
|
|
2163
2163
|
startIndex: O
|
|
2164
2164
|
}, V), w), l.emit("reInit");
|
|
2165
2165
|
}
|
|
2166
2166
|
function W() {
|
|
2167
|
-
|
|
2167
|
+
g.dragHandler.destroy(), g.eventStore.clear(), g.translate.clear(), g.slideLooper.clear(), g.resizeHandler.destroy(), g.slidesHandler.destroy(), g.slidesInView.destroy(), g.animation.destroy(), o.destroy(), d.clear();
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2170
|
-
|
|
2169
|
+
function R() {
|
|
2170
|
+
b || (b = !0, d.clear(), W(), l.emit("destroy"), l.clear());
|
|
2171
2171
|
}
|
|
2172
2172
|
function M(V, w, O) {
|
|
2173
|
-
!T.active ||
|
|
2173
|
+
!T.active || b || (g.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : T.duration), g.scrollTo.index(V, O || 0));
|
|
2174
2174
|
}
|
|
2175
2175
|
function I(V) {
|
|
2176
|
-
const w =
|
|
2176
|
+
const w = g.index.add(1).get();
|
|
2177
2177
|
M(w, V, -1);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
const w =
|
|
2179
|
+
function U(V) {
|
|
2180
|
+
const w = g.index.add(-1).get();
|
|
2181
2181
|
M(w, V, 1);
|
|
2182
2182
|
}
|
|
2183
2183
|
function ne() {
|
|
2184
|
-
return
|
|
2184
|
+
return g.index.add(1).get() !== c();
|
|
2185
2185
|
}
|
|
2186
2186
|
function Y() {
|
|
2187
|
-
return
|
|
2187
|
+
return g.index.add(-1).get() !== c();
|
|
2188
2188
|
}
|
|
2189
2189
|
function K() {
|
|
2190
|
-
return
|
|
2190
|
+
return g.scrollSnapList;
|
|
2191
2191
|
}
|
|
2192
2192
|
function re() {
|
|
2193
|
-
return
|
|
2193
|
+
return g.scrollProgress.get(g.offsetLocation.get());
|
|
2194
2194
|
}
|
|
2195
2195
|
function c() {
|
|
2196
|
-
return
|
|
2196
|
+
return g.index.get();
|
|
2197
2197
|
}
|
|
2198
|
-
function
|
|
2199
|
-
return
|
|
2198
|
+
function L() {
|
|
2199
|
+
return g.indexPrevious.get();
|
|
2200
2200
|
}
|
|
2201
2201
|
function P() {
|
|
2202
|
-
return
|
|
2202
|
+
return g.slidesInView.get();
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2205
|
-
return
|
|
2204
|
+
function z() {
|
|
2205
|
+
return g.slidesInView.get(!1);
|
|
2206
2206
|
}
|
|
2207
2207
|
function x() {
|
|
2208
2208
|
return F;
|
|
2209
2209
|
}
|
|
2210
2210
|
function D() {
|
|
2211
|
-
return
|
|
2211
|
+
return g;
|
|
2212
2212
|
}
|
|
2213
2213
|
function C() {
|
|
2214
2214
|
return t;
|
|
@@ -2224,29 +2224,29 @@ function ze(t, e, n) {
|
|
|
2224
2224
|
canScrollPrev: Y,
|
|
2225
2225
|
containerNode: H,
|
|
2226
2226
|
internalEngine: D,
|
|
2227
|
-
destroy:
|
|
2228
|
-
off:
|
|
2227
|
+
destroy: R,
|
|
2228
|
+
off: p,
|
|
2229
2229
|
on: k,
|
|
2230
2230
|
emit: h,
|
|
2231
2231
|
plugins: x,
|
|
2232
|
-
previousScrollSnap:
|
|
2233
|
-
reInit:
|
|
2232
|
+
previousScrollSnap: L,
|
|
2233
|
+
reInit: v,
|
|
2234
2234
|
rootNode: C,
|
|
2235
2235
|
scrollNext: I,
|
|
2236
|
-
scrollPrev:
|
|
2236
|
+
scrollPrev: U,
|
|
2237
2237
|
scrollProgress: re,
|
|
2238
2238
|
scrollSnapList: K,
|
|
2239
2239
|
scrollTo: M,
|
|
2240
2240
|
selectedScrollSnap: c,
|
|
2241
2241
|
slideNodes: J,
|
|
2242
2242
|
slidesInView: P,
|
|
2243
|
-
slidesNotInView:
|
|
2243
|
+
slidesNotInView: z
|
|
2244
2244
|
};
|
|
2245
2245
|
return $(e, n), setTimeout(() => l.emit("init"), 0), X;
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2247
|
+
Re.globalOptions = void 0;
|
|
2248
2248
|
function nt(t = {}, e = []) {
|
|
2249
|
-
const n =
|
|
2249
|
+
const n = qe(t), s = qe(e), [i, a] = oe(), [o, d] = oe(), l = ae(() => {
|
|
2250
2250
|
i && i.reInit(n.current, s.current);
|
|
2251
2251
|
}, [i]);
|
|
2252
2252
|
return te(() => {
|
|
@@ -2255,21 +2255,21 @@ function nt(t = {}, e = []) {
|
|
|
2255
2255
|
cr(s.current, e) || (s.current = e, l());
|
|
2256
2256
|
}, [e, l]), te(() => {
|
|
2257
2257
|
if (dr() && o) {
|
|
2258
|
-
|
|
2259
|
-
const u =
|
|
2258
|
+
Re.globalOptions = nt.globalOptions;
|
|
2259
|
+
const u = Re(o, n.current, s.current);
|
|
2260
2260
|
return a(u), () => u.destroy();
|
|
2261
2261
|
} else
|
|
2262
2262
|
a(void 0);
|
|
2263
2263
|
}, [o, a]), [d, i];
|
|
2264
2264
|
}
|
|
2265
2265
|
nt.globalOptions = void 0;
|
|
2266
|
-
const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17",
|
|
2266
|
+
const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Ur = "_slideInner_1bu1s_37", qr = "_loaderOverlay_1bu1s_45", Kr = "_image_1bu1s_55", Yr = "_loaded_1bu1s_66", Jr = "_empty_1bu1s_78", Zr = "_controls_1bu1s_84", Xr = "_arrows_1bu1s_94", Qr = "_dots_1bu1s_104", es = "_dot_1bu1s_104", ts = "_dotActive_1bu1s_130", Q = {
|
|
2267
2267
|
carouselContainer: Hr,
|
|
2268
2268
|
viewport: Wr,
|
|
2269
2269
|
slides: Vr,
|
|
2270
2270
|
slide: Gr,
|
|
2271
|
-
slideInner:
|
|
2272
|
-
loaderOverlay:
|
|
2271
|
+
slideInner: Ur,
|
|
2272
|
+
loaderOverlay: qr,
|
|
2273
2273
|
image: Kr,
|
|
2274
2274
|
loaded: Yr,
|
|
2275
2275
|
empty: Jr,
|
|
@@ -2296,35 +2296,35 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2296
2296
|
align: "start",
|
|
2297
2297
|
containScroll: "trimSnaps",
|
|
2298
2298
|
slidesToScroll: 1
|
|
2299
|
-
}, [k,
|
|
2299
|
+
}, [k, p] = nt(f), [h, v] = oe(0), [b, g] = oe([]), [m, T] = oe([]);
|
|
2300
2300
|
te(() => {
|
|
2301
2301
|
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
2302
|
}, [t]);
|
|
2303
|
-
const
|
|
2303
|
+
const B = ae((R) => {
|
|
2304
2304
|
T((M) => {
|
|
2305
2305
|
const I = [...M];
|
|
2306
|
-
return I[
|
|
2306
|
+
return I[R] = !0, I;
|
|
2307
2307
|
});
|
|
2308
|
-
}, []), F =
|
|
2309
|
-
|
|
2310
|
-
}, [
|
|
2308
|
+
}, []), F = be(() => n * 1e3, [n]), E = ae(() => {
|
|
2309
|
+
p && v(p.selectedScrollSnap());
|
|
2310
|
+
}, [p]), j = ae((R) => p && p.scrollTo(R), [p]), A = ae(() => p && p.scrollPrev(), [p]), N = ae(() => p && p.scrollNext(), [p]);
|
|
2311
2311
|
te(() => {
|
|
2312
|
-
if (
|
|
2313
|
-
return
|
|
2314
|
-
|
|
2312
|
+
if (p)
|
|
2313
|
+
return p.on("select", E), p.on("reInit", E), g(p.scrollSnapList()), () => {
|
|
2314
|
+
p.off("select", E), p.off("reInit", E);
|
|
2315
2315
|
};
|
|
2316
|
-
}, [
|
|
2317
|
-
|
|
2318
|
-
}, [
|
|
2319
|
-
if (!e || !
|
|
2320
|
-
const
|
|
2321
|
-
|
|
2316
|
+
}, [p, E]), te(() => {
|
|
2317
|
+
p && (p.reInit(), g(p.scrollSnapList()));
|
|
2318
|
+
}, [p, t, o, d]), te(() => {
|
|
2319
|
+
if (!e || !p || !t || t.length <= 1) return;
|
|
2320
|
+
const R = window.setInterval(() => {
|
|
2321
|
+
p.canScrollNext() && p.scrollNext();
|
|
2322
2322
|
}, F);
|
|
2323
2323
|
return () => {
|
|
2324
|
-
window.clearInterval(
|
|
2324
|
+
window.clearInterval(R);
|
|
2325
2325
|
};
|
|
2326
|
-
}, [e, F,
|
|
2327
|
-
const $ = Math.max(1, o),
|
|
2326
|
+
}, [e, F, p, t]);
|
|
2327
|
+
const $ = Math.max(1, o), _ = `${100 / $}%`, W = d / 2;
|
|
2328
2328
|
return /* @__PURE__ */ r.jsxs(
|
|
2329
2329
|
"div",
|
|
2330
2330
|
{
|
|
@@ -2341,12 +2341,12 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2341
2341
|
marginLeft: `-${W}px`,
|
|
2342
2342
|
marginRight: `-${W}px`
|
|
2343
2343
|
},
|
|
2344
|
-
children: t && t.length > 0 ? t.map((
|
|
2344
|
+
children: t && t.length > 0 ? t.map((R, M) => /* @__PURE__ */ r.jsx(
|
|
2345
2345
|
"div",
|
|
2346
2346
|
{
|
|
2347
2347
|
className: Q.slide,
|
|
2348
2348
|
style: {
|
|
2349
|
-
flex: `0 0 ${
|
|
2349
|
+
flex: `0 0 ${_}`,
|
|
2350
2350
|
paddingLeft: `${W}px`,
|
|
2351
2351
|
paddingRight: `${W}px`,
|
|
2352
2352
|
borderRadius: l > 0 ? `${l}px` : void 0,
|
|
@@ -2359,19 +2359,19 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2359
2359
|
"img",
|
|
2360
2360
|
{
|
|
2361
2361
|
className: `${Q.image} ${m[M] ? Q.loaded : Q.loadingImage}`,
|
|
2362
|
-
src:
|
|
2363
|
-
alt:
|
|
2362
|
+
src: R.src,
|
|
2363
|
+
alt: R.alt,
|
|
2364
2364
|
loading: M < $ ? "eager" : "lazy",
|
|
2365
2365
|
crossOrigin: "anonymous",
|
|
2366
|
-
onLoad: () =>
|
|
2366
|
+
onLoad: () => B(M),
|
|
2367
2367
|
onError: (I) => {
|
|
2368
|
-
I.target.style.display = "none",
|
|
2368
|
+
I.target.style.display = "none", B(M);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
2372
2372
|
] })
|
|
2373
2373
|
},
|
|
2374
|
-
`image-${M}-${
|
|
2374
|
+
`image-${M}-${R.src}`
|
|
2375
2375
|
)) : /* @__PURE__ */ r.jsx("div", { className: Q.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ r.jsx("div", { className: Q.empty, children: "Ingen bilder" }) })
|
|
2376
2376
|
}
|
|
2377
2377
|
) }),
|
|
@@ -2383,7 +2383,7 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2383
2383
|
variant: "primary",
|
|
2384
2384
|
icon: !0,
|
|
2385
2385
|
"aria-label": "Forrige bilde",
|
|
2386
|
-
onClick:
|
|
2386
|
+
onClick: A,
|
|
2387
2387
|
disabled: !t || t.length <= 1,
|
|
2388
2388
|
children: /* @__PURE__ */ r.jsx(Xn, { "aria-hidden": !0 })
|
|
2389
2389
|
}
|
|
@@ -2394,13 +2394,13 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2394
2394
|
variant: "primary",
|
|
2395
2395
|
icon: !0,
|
|
2396
2396
|
"aria-label": "Neste bilde",
|
|
2397
|
-
onClick:
|
|
2397
|
+
onClick: N,
|
|
2398
2398
|
disabled: !t || t.length <= 1,
|
|
2399
2399
|
children: /* @__PURE__ */ r.jsx(Qn, { "aria-hidden": !0 })
|
|
2400
2400
|
}
|
|
2401
2401
|
)
|
|
2402
2402
|
] }),
|
|
2403
|
-
i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children:
|
|
2403
|
+
i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: b.map((R, M) => {
|
|
2404
2404
|
const I = M === h;
|
|
2405
2405
|
return /* @__PURE__ */ r.jsx(
|
|
2406
2406
|
"button",
|
|
@@ -2421,24 +2421,24 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2421
2421
|
);
|
|
2422
2422
|
};
|
|
2423
2423
|
os.displayName = "Carousel";
|
|
2424
|
-
const Ca = un, ja = mn, Da =
|
|
2424
|
+
const Ca = un, ja = mn, Da = pn, ee = gn, Ia = fn, Aa = hn, rs = kn, ss = vn;
|
|
2425
2425
|
rs.displayName = "Field.Description";
|
|
2426
2426
|
ss.displayName = "Field.Counter";
|
|
2427
|
-
const
|
|
2427
|
+
const La = It, as = ue((t, e) => /* @__PURE__ */ r.jsx(bn, { ref: e, ...t }));
|
|
2428
2428
|
as.displayName = "Heading";
|
|
2429
2429
|
const Fa = yn, is = ue((t, e) => /* @__PURE__ */ r.jsx(xn, { ref: e, ...t }));
|
|
2430
2430
|
is.displayName = "Label";
|
|
2431
|
-
const
|
|
2431
|
+
const _e = Tn, Ba = Sn, Ea = wn, Na = Cn, Ze = ue(
|
|
2432
2432
|
(t, e) => /* @__PURE__ */ r.jsx(jn, { ref: e, ...t })
|
|
2433
2433
|
);
|
|
2434
2434
|
Ze.displayName = "Paragraph";
|
|
2435
|
-
const
|
|
2435
|
+
const _a = Dn, Pa = In, Ra = An, Pe = Object.assign(Ln, {
|
|
2436
2436
|
Button: En,
|
|
2437
|
-
ClearButton:
|
|
2437
|
+
ClearButton: Bn,
|
|
2438
2438
|
Input: Fn
|
|
2439
|
-
}), Ma =
|
|
2439
|
+
}), Ma = Nn, za = _n, Oa = Pn, ls = Rn;
|
|
2440
2440
|
ls.displayName = "Suggestion";
|
|
2441
|
-
const
|
|
2441
|
+
const Ue = Mn, $a = zn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, Ua = Vn, qa = Gn, ds = ue((t, e) => /* @__PURE__ */ r.jsx(Un, { ref: e, ...t }));
|
|
2442
2442
|
ds.displayName = "ValidationMessage";
|
|
2443
2443
|
const cs = {
|
|
2444
2444
|
NO: {
|
|
@@ -2467,6 +2467,7 @@ const cs = {
|
|
|
2467
2467
|
design: "Design",
|
|
2468
2468
|
components: "Komponenter",
|
|
2469
2469
|
code: "Kode",
|
|
2470
|
+
tokens: "Tokens",
|
|
2470
2471
|
work: "Vårt arbeid",
|
|
2471
2472
|
volunteer: "Bli frivillig",
|
|
2472
2473
|
courses: "Kurs og opplæring"
|
|
@@ -2690,20 +2691,89 @@ const cs = {
|
|
|
2690
2691
|
processReview: 'Klar for gjennomgang: Når utviklingen er ferdig og alle automatiserte sjekker passerer, merk PR-en som "Ready for review" og be om en gjennomgang fra designsystem-forvalterne.'
|
|
2691
2692
|
},
|
|
2692
2693
|
figmaMcp: {
|
|
2693
|
-
title: "Fra Figma til Kode med MCP",
|
|
2694
|
-
intro: "
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2694
|
+
title: "Arbeidsflyt: Fra Figma til Kode med MCP",
|
|
2695
|
+
intro: "Denne guiden beskriver hvordan vi bruker Model Context Protocol (MCP) for å koble Figma direkte til utviklingsmiljøet. Dette gjør det mulig å hente designspesifikasjoner, tokens og strukturer automatisk, validert mot vårt designsystem.",
|
|
2696
|
+
part1Title: "Del 1: Oppsett av Figma MCP Server",
|
|
2697
|
+
part1Intro: "Dette gjøres kun én gang for å aktivere integrasjonen i Cursor/Windsurf.",
|
|
2698
|
+
part1Description: 'For at AI-en skal kunne "lese" Figma-filene, må vi sette opp en lokal kobling.',
|
|
2699
|
+
setupStep1Title: "1. Hent Figma Access Token",
|
|
2700
|
+
setupStep1Item1: "Gå til Figma -> Settings -> Personal Access Tokens.",
|
|
2701
|
+
setupStep1Item2: "Klikk Generate new token.",
|
|
2702
|
+
setupStep1Item3: 'Navn: F.eks. "Cursor MCP".',
|
|
2703
|
+
setupStep1Item4: "Scopes: Velg File content: Read og File metadata: Read.",
|
|
2704
|
+
setupStep1Item5: "Kopier tokenet (du får ikke se det igjen).",
|
|
2705
|
+
setupStep2Title: "2. Konfigurer i Cursor",
|
|
2706
|
+
setupStep2Item1: "Åpne innstillinger i Cursor (Ctrl/Cmd + ,).",
|
|
2707
|
+
setupStep2Item2: "Gå til Features -> MCP.",
|
|
2708
|
+
setupStep2Item3: "Klikk + Add New MCP Server.",
|
|
2709
|
+
setupStep2Item4: "Fyll inn følgende:",
|
|
2710
|
+
setupStep2Item5: "Type: command",
|
|
2711
|
+
setupStep2Item6: "Name: figma",
|
|
2712
|
+
setupStep2Item7: "Command: npx -y @modelcontextprotocol/server-figma",
|
|
2713
|
+
setupStep2Item8: "Legg til Environment Variable (viktig!):",
|
|
2714
|
+
setupStep2Item9: "Key: FIGMA_ACCESS_TOKEN",
|
|
2715
|
+
setupStep2Item10: "Value: [Lim inn tokenet du kopierte i steg 1]",
|
|
2716
|
+
setupStep2Item11: 'Når lyset ved siden av "figma" blir grønt, er verktøyet klart til bruk.',
|
|
2717
|
+
part2Title: "Del 2: Daglig Arbeidsflyt",
|
|
2718
|
+
step0Title: "Steg 0: Indeksering av Dokumentasjon",
|
|
2719
|
+
step0Description: "Gjør dette én gang per prosjekt for å gi AI-en full oversikt over designsystemet.",
|
|
2720
|
+
step0Intro: "For at Cursor skal forstå våre spesifikke tokens, komponentnavn og retningslinjer, må vi la den lese gjennom dokumentasjonen på forhånd.",
|
|
2721
|
+
step0Item1: "Åpne Chat i Cursor (Cmd + L / Ctrl + L).",
|
|
2722
|
+
step0Item2: 'Skriv @Docs i tekstfeltet og velg "Add new doc" fra menyen som dukker opp.',
|
|
2723
|
+
step0Item3: "Lim inn URL-en til hovedsiden for dokumentasjonen: https://norwegianredcross.github.io/DesignSystem/",
|
|
2724
|
+
step0Item4: "Gi den et navn som er lett å huske, f.eks. RødeKors.",
|
|
2725
|
+
step0Item5: "Trykk Confirm.",
|
|
2726
|
+
step0WhatHappensTitle: "Hva skjer nå?",
|
|
2727
|
+
step0WhatHappensText: 'Cursor vil automatisk "crawle" (lese) gjennom hovedsiden og alle undersider. Den lagrer informasjonen i en lokal database. Dette gjør at du senere kan referere til @RødeKors i chatten, og AI-en vil umiddelbart vite alle fargekoder, spacing-variabler og komponent-regler uten at du trenger å lime inn tekst manuelt. NB: Dette gjelder når du refererer til @RødeKors i chatten. Hvis du bruker .cursorrules, trenger du ikke å legge ved @RødeKors manuelt.',
|
|
2728
|
+
step1Title: "Steg 1: Hent presis lenke i Figma",
|
|
2729
|
+
step1Description: "For best resultat bør du isolere seksjonen du jobber med.",
|
|
2730
|
+
step1Item1: "Marker rammen (Frame), komponenten eller gruppen du vil implementere.",
|
|
2731
|
+
step1Item2: "Høyreklikk og velg Copy link to selection (Snarvei: Ctrl + L).",
|
|
2732
|
+
step1Item3: "NB: Bruk denne funksjonen fremfor å kopiere URL-en fra nettleseren.",
|
|
2733
|
+
step1ImageCaption: "",
|
|
2734
|
+
step2Title: "Steg 2: Gi kontekst (To metoder)",
|
|
2735
|
+
step2Description: "For at AI-en skal følge designsystemet vårt, må den vite hvor reglene finnes. Du kan velge mellom manuell eller automatisert metode.",
|
|
2736
|
+
step2AltATitle: "Alternativ A: Manuell kontekst (Raskt og enkelt)",
|
|
2737
|
+
step2AltADescription: "Bruk dette for engangstilfeller eller hvis du tester nye dokumentasjonskilder. Dette må gjøres manuelt med hver eneste prompt.",
|
|
2738
|
+
step2AltAItem1: "I Composer (Chat): Skriv @ og lim inn URL-ene til dokumentasjonen. Du må inkludere:",
|
|
2739
|
+
step2AltAItem1Sub1: "@https://norwegianredcross.github.io/design-tokens/theme.css",
|
|
2740
|
+
step2AltAItem1Sub2: "@https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json",
|
|
2741
|
+
step2AltAItem2: "Lim inn Figma-lenken: Lim inn lenken fra steg 1.",
|
|
2742
|
+
step2AltAImageCaption: "",
|
|
2743
|
+
step2AltBTitle: "Alternativ B: Automatisert med .cursorrules (Anbefalt)",
|
|
2744
|
+
step2AltBDescription: "Bruk dette for å slippe å legge ved dokumentasjon hver gang. Med en .cursorrules-fil i roten av prosjektet, vet AI-en alltid hvilke regler som gjelder.",
|
|
2745
|
+
step2AltBSetupTitle: "1. Oppsett (Gjøres én gang per prosjekt):",
|
|
2746
|
+
step2AltBSetupText: "Opprett en fil som heter .cursorrules i prosjektets rotmappe og gi kontekst ved å lime inn dette:",
|
|
2747
|
+
step2AltBCodeBlock: `You are an expert Frontend Developer implementing designs from Figma.
|
|
2748
|
+
|
|
2749
|
+
ALWAYS follow these rules:
|
|
2750
|
+
1. **Documentation:** Refer to the indexed design system documentation (@RødeKors) for component usage, patterns, and guidelines.
|
|
2751
|
+
2. **Metadata:** Use component metadata from: https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json
|
|
2752
|
+
3. **Tokens:** Always use CSS variables/tokens defined in: https://norwegianredcross.github.io/design-tokens/theme.css (e.g., var(--spacing-md)).
|
|
2753
|
+
4. **Figma MCP:** When a Figma link is provided, use the \`figma\` tool to inspect node properties.
|
|
2754
|
+
|
|
2755
|
+
Note: Make sure you have indexed the documentation (Step 0) before using these rules. Reference @RødeKors in chat when you need design system context.`,
|
|
2756
|
+
step2AltBUsageTitle: "2. I daglig bruk:",
|
|
2757
|
+
step2AltBUsageText: "Nå trenger du kun å lime inn Figma-lenken i chatten. AI-en vil automatisk sjekke .cursorrules og forstå at den skal hente designreglene fra dokumentasjonen du definerte.",
|
|
2758
|
+
step3Title: "Steg 3: Prompt",
|
|
2759
|
+
step3Description: "Gi en instruks som kobler designet mot kodebasen. Bruk gjerne denne malen:",
|
|
2760
|
+
step3Prompt: `"Using the design at this Figma link and the context from the provided documentation/rules:
|
|
2761
|
+
|
|
2762
|
+
Create a React component for this section.
|
|
2763
|
+
|
|
2764
|
+
Strictly use tokens found in the documentation (colors, spacing) - no magic numbers.
|
|
2765
|
+
|
|
2766
|
+
Map design elements to our existing components where possible (e.g. Buttons, Headings)."`,
|
|
2767
|
+
step4Title: "Steg 4: Generering og Review",
|
|
2768
|
+
step4Item1: "AI-en bruker nå MCP til å lese nodedataene og genererer et kodeforslag.",
|
|
2769
|
+
step4ReviewTitle: "Review:",
|
|
2770
|
+
step4ReviewItem1: 'Sjekk "Diff View" i Cursor.',
|
|
2771
|
+
step4ReviewItem2: "Er tokens brukt riktig? (f.eks. var(--spacing-md)).",
|
|
2772
|
+
step4ReviewItem3: "Er semantikken god?",
|
|
2773
|
+
step4Apply: 'Apply: Trykk "Apply" for å legge koden inn i filen din.',
|
|
2774
|
+
proTipsTitle: "Tips for suksess",
|
|
2775
|
+
proTip1: 'Lagre Docs som favoritter: I Cursor under "Docs"-fanen kan du indekserere norwegianredcross.github.io/.... Da kan du bruke @RødeKors som en snarvei i chatten hvis du ikke bruker .cursorrules.',
|
|
2776
|
+
proTip2: 'Missing Auto Layout? Hvis Figma-noden mangler Auto Layout, kan AI-en slite med posisjonering. Nevn gjerne i prompten: "Infer layout logic based on visual proximity if Auto Layout is missing."'
|
|
2707
2777
|
},
|
|
2708
2778
|
metadataFiles: {
|
|
2709
2779
|
title: "Metadata-filer",
|
|
@@ -3200,8 +3270,30 @@ const cs = {
|
|
|
3200
3270
|
githubIssuesLink: "https://github.com/norwegianredcross/DesignSystem/issues"
|
|
3201
3271
|
}
|
|
3202
3272
|
},
|
|
3203
|
-
// Footer
|
|
3204
|
-
footer: {
|
|
3273
|
+
// Footer
|
|
3274
|
+
footer: {
|
|
3275
|
+
shortcuts: "Snarveier",
|
|
3276
|
+
shortcutsLinks: {
|
|
3277
|
+
services: "Tilbudene",
|
|
3278
|
+
volunteer: "Bli frivillig",
|
|
3279
|
+
ourWork: "Vårt arbeid",
|
|
3280
|
+
about: "Om Røde Kors",
|
|
3281
|
+
support: "Støtt arbeidet",
|
|
3282
|
+
contact: "Kontakt oss"
|
|
3283
|
+
},
|
|
3284
|
+
contact: {
|
|
3285
|
+
visitingAddress: "Besøks adresse",
|
|
3286
|
+
organizationNumber: "Organisasjonsnummer",
|
|
3287
|
+
email: "E-post"
|
|
3288
|
+
},
|
|
3289
|
+
copyright: "Rødekors",
|
|
3290
|
+
legal: {
|
|
3291
|
+
privacy: "Personvern",
|
|
3292
|
+
press: "For presse",
|
|
3293
|
+
procurement: "Regler for innkjøp",
|
|
3294
|
+
whistleblowing: "Varsling/Misconduct"
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3205
3297
|
},
|
|
3206
3298
|
EN: {
|
|
3207
3299
|
// Header
|
|
@@ -3229,6 +3321,7 @@ const cs = {
|
|
|
3229
3321
|
design: "Design",
|
|
3230
3322
|
components: "Components",
|
|
3231
3323
|
code: "Code",
|
|
3324
|
+
tokens: "Tokens",
|
|
3232
3325
|
work: "Our Work",
|
|
3233
3326
|
volunteer: "Volunteer",
|
|
3234
3327
|
courses: "Courses & Training"
|
|
@@ -3455,20 +3548,88 @@ const cs = {
|
|
|
3455
3548
|
processReview: 'Ready for review: When development is complete and all automated checks pass, mark the PR as "Ready for review" and request a review from the design system maintainers.'
|
|
3456
3549
|
},
|
|
3457
3550
|
figmaMcp: {
|
|
3458
|
-
title: "From Figma to Code with MCP",
|
|
3459
|
-
intro: "
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3551
|
+
title: "Workflow: From Figma to Code with MCP",
|
|
3552
|
+
intro: "This guide describes how we use Model Context Protocol (MCP) to connect Figma directly to the development environment. This makes it possible to fetch design specifications, tokens, and structures automatically, validated against our design system.",
|
|
3553
|
+
part1Title: "Part 1: Figma MCP Server Setup",
|
|
3554
|
+
part1Intro: "This is done only once to activate the integration in Cursor/Windsurf.",
|
|
3555
|
+
part1Description: 'For the AI to be able to "read" Figma files, we need to set up a local connection.',
|
|
3556
|
+
setupStep1Title: "1. Get Figma Access Token",
|
|
3557
|
+
setupStep1Item1: "Go to Figma -> Settings -> Personal Access Tokens.",
|
|
3558
|
+
setupStep1Item2: "Click Generate new token.",
|
|
3559
|
+
setupStep1Item3: 'Name: E.g. "Cursor MCP".',
|
|
3560
|
+
setupStep1Item4: "Scopes: Select File content: Read and File metadata: Read.",
|
|
3561
|
+
setupStep1Item5: "Copy the token (you won't see it again).",
|
|
3562
|
+
setupStep2Title: "2. Configure in Cursor",
|
|
3563
|
+
setupStep2Item1: "Open settings in Cursor (Ctrl/Cmd + ,).",
|
|
3564
|
+
setupStep2Item2: "Go to Features -> MCP.",
|
|
3565
|
+
setupStep2Item3: "Click + Add New MCP Server.",
|
|
3566
|
+
setupStep2Item4: "Fill in the following:",
|
|
3567
|
+
setupStep2Item5: "Type: command",
|
|
3568
|
+
setupStep2Item6: "Name: figma",
|
|
3569
|
+
setupStep2Item7: "Command: npx -y @modelcontextprotocol/server-figma",
|
|
3570
|
+
setupStep2Item8: "Add Environment Variable (important!):",
|
|
3571
|
+
setupStep2Item9: "Key: FIGMA_ACCESS_TOKEN",
|
|
3572
|
+
setupStep2Item10: "Value: [Paste the token you copied in step 1]",
|
|
3573
|
+
setupStep2Item11: 'When the light next to "figma" turns green, the tool is ready to use.',
|
|
3574
|
+
part2Title: "Part 2: Daily Workflow",
|
|
3575
|
+
step0Title: "Step 0: Indexing Documentation",
|
|
3576
|
+
step0Description: "Do this once per project to give the AI a complete overview of the design system.",
|
|
3577
|
+
step0Intro: "For Cursor to understand our specific tokens, component names, and guidelines, we need to let it read through the documentation in advance.",
|
|
3578
|
+
step0Item1: "Open Chat in Cursor (Cmd + L / Ctrl + L).",
|
|
3579
|
+
step0Item2: 'Type @Docs in the text field and select "Add new doc" from the menu that appears.',
|
|
3580
|
+
step0Item3: "Paste the URL to the main page of the documentation: https://norwegianredcross.github.io/DesignSystem/",
|
|
3581
|
+
step0Item4: "Give it a name that's easy to remember, e.g. RedCross.",
|
|
3582
|
+
step0Item5: "Click Confirm.",
|
|
3583
|
+
step0WhatHappensTitle: "What happens now?",
|
|
3584
|
+
step0WhatHappensText: 'Cursor will automatically "crawl" (read) through the main page and all subpages. It stores the information in a local database. This means you can later refer to @RedCross in the chat, and the AI will immediately know all color codes, spacing variables, and component rules without you needing to paste text manually. Note: This applies when you reference @RedCross in chat. If you use .cursorrules, you don’t need to attach @RedCross manually.',
|
|
3585
|
+
step1Description: "For best results, you should isolate the section you're working with.",
|
|
3586
|
+
step1Item1: "Select the frame (Frame), component, or group you want to implement.",
|
|
3587
|
+
step1Item2: "Right-click and select Copy link to selection (Shortcut: Ctrl + L).",
|
|
3588
|
+
step1Item3: "NB: Use this function instead of copying the URL from the browser.",
|
|
3589
|
+
step1ImageCaption: "",
|
|
3590
|
+
step2Title: "Step 2: Provide context (Two methods)",
|
|
3591
|
+
step2Description: "For the AI to follow our design system, it needs to know where the rules are. You can choose between manual or automated method.",
|
|
3592
|
+
step2AltATitle: "Alternative A: Manual context (Quick and easy)",
|
|
3593
|
+
step2AltADescription: "Use this for one-time cases or if you're testing new documentation sources. This must be done manually with every single prompt.",
|
|
3594
|
+
step2AltAItem1: "In Composer (Chat): Type @ and paste the URLs to the documentation. You must include:",
|
|
3595
|
+
step2AltAItem1Sub1: "@https://norwegianredcross.github.io/design-tokens/theme.css",
|
|
3596
|
+
step2AltAItem1Sub2: "@https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json",
|
|
3597
|
+
step2AltAItem2: "Paste Figma link: Paste the link from step 1.",
|
|
3598
|
+
step2AltAImageCaption: "",
|
|
3599
|
+
step2AltBTitle: "Alternative B: Automated with .cursorrules (Recommended)",
|
|
3600
|
+
step2AltBDescription: "Use this to avoid attaching documentation every time. With a .cursorrules file in the project root, the AI always knows which rules apply.",
|
|
3601
|
+
step2AltBSetupTitle: "1. Setup (Done once per project):",
|
|
3602
|
+
step2AltBSetupText: "Create a file named .cursorrules in the project root folder and give context by pasting this:",
|
|
3603
|
+
step2AltBCodeBlock: `You are an expert Frontend Developer implementing designs from Figma.
|
|
3604
|
+
|
|
3605
|
+
ALWAYS follow these rules:
|
|
3606
|
+
1. **Documentation:** Refer to the indexed design system documentation (@RedCross) for component usage, patterns, and guidelines.
|
|
3607
|
+
2. **Metadata:** Use component metadata from: https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json
|
|
3608
|
+
3. **Tokens:** Always use CSS variables/tokens defined in: https://norwegianredcross.github.io/design-tokens/theme.css (e.g., var(--spacing-md)).
|
|
3609
|
+
4. **Figma MCP:** When a Figma link is provided, use the \`figma\` tool to inspect node properties.
|
|
3610
|
+
|
|
3611
|
+
Note: Make sure you have indexed the documentation (Step 0) before using these rules. Reference @RedCross in chat when you need design system context.`,
|
|
3612
|
+
step2AltBUsageTitle: "2. In daily use:",
|
|
3613
|
+
step2AltBUsageText: "Now you only need to paste the Figma link in the chat. The AI will automatically check .cursorrules and understand that it should fetch design rules from the documentation you defined.",
|
|
3614
|
+
step3Title: "Step 3: Prompt",
|
|
3615
|
+
step3Description: "Give an instruction that connects the design to the codebase. You can use this template:",
|
|
3616
|
+
step3Prompt: `"Using the design at this Figma link and the context from the provided documentation/rules:
|
|
3617
|
+
|
|
3618
|
+
Create a React component for this section.
|
|
3619
|
+
|
|
3620
|
+
Strictly use tokens found in the documentation (colors, spacing) - no magic numbers.
|
|
3621
|
+
|
|
3622
|
+
Map design elements to our existing components where possible (e.g. Buttons, Headings)."`,
|
|
3623
|
+
step4Title: "Step 4: Generation and Review",
|
|
3624
|
+
step4Item1: "The AI now uses MCP to read the node data and generates a code proposal.",
|
|
3625
|
+
step4ReviewTitle: "Review:",
|
|
3626
|
+
step4ReviewItem1: 'Check "Diff View" in Cursor.',
|
|
3627
|
+
step4ReviewItem2: "Are tokens used correctly? (e.g. var(--spacing-md)).",
|
|
3628
|
+
step4ReviewItem3: "Is the semantics good?",
|
|
3629
|
+
step4Apply: 'Apply: Click "Apply" to insert the code into your file.',
|
|
3630
|
+
proTipsTitle: "Tips for success",
|
|
3631
|
+
proTip1: `Save Docs as favorites: In Cursor under the "Docs" tab, you can index norwegianredcross.github.io/.... Then you can use @RedCross as a shortcut in the chat if you don't use .cursorrules.`,
|
|
3632
|
+
proTip2: 'Missing Auto Layout? If the Figma node is missing Auto Layout, the AI may struggle with positioning. Mention in the prompt: "Infer layout logic based on visual proximity if Auto Layout is missing."'
|
|
3472
3633
|
},
|
|
3473
3634
|
metadataFiles: {
|
|
3474
3635
|
title: "Metadata Files",
|
|
@@ -3966,9 +4127,31 @@ const cs = {
|
|
|
3966
4127
|
}
|
|
3967
4128
|
},
|
|
3968
4129
|
// Footer
|
|
3969
|
-
footer: {
|
|
4130
|
+
footer: {
|
|
4131
|
+
shortcuts: "Shortcuts",
|
|
4132
|
+
shortcutsLinks: {
|
|
4133
|
+
services: "Services",
|
|
4134
|
+
volunteer: "Become a volunteer",
|
|
4135
|
+
ourWork: "Our Work",
|
|
4136
|
+
about: "About Red Cross",
|
|
4137
|
+
support: "Support the work",
|
|
4138
|
+
contact: "Contact us"
|
|
4139
|
+
},
|
|
4140
|
+
contact: {
|
|
4141
|
+
visitingAddress: "Visiting address",
|
|
4142
|
+
organizationNumber: "Organization number",
|
|
4143
|
+
email: "Email"
|
|
4144
|
+
},
|
|
4145
|
+
copyright: "Red Cross",
|
|
4146
|
+
legal: {
|
|
4147
|
+
privacy: "Privacy",
|
|
4148
|
+
press: "For press",
|
|
4149
|
+
procurement: "Procurement rules",
|
|
4150
|
+
whistleblowing: "Whistleblowing/Misconduct"
|
|
4151
|
+
}
|
|
4152
|
+
}
|
|
3970
4153
|
}
|
|
3971
|
-
},
|
|
4154
|
+
}, Rt = Kt(void 0), Ka = ({ children: t }) => {
|
|
3972
4155
|
const [e, n] = oe("NO"), s = (i) => {
|
|
3973
4156
|
const a = i.split(".");
|
|
3974
4157
|
let o = cs[e];
|
|
@@ -3979,21 +4162,21 @@ const cs = {
|
|
|
3979
4162
|
}
|
|
3980
4163
|
return o;
|
|
3981
4164
|
};
|
|
3982
|
-
return /* @__PURE__ */ r.jsx(
|
|
4165
|
+
return /* @__PURE__ */ r.jsx(Rt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
|
|
3983
4166
|
}, us = () => {
|
|
3984
|
-
const t = Yt(
|
|
4167
|
+
const t = Yt(Rt);
|
|
3985
4168
|
if (t === void 0)
|
|
3986
4169
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
3987
4170
|
return t;
|
|
3988
|
-
}, ms = "_header_3zql2_1",
|
|
4171
|
+
}, ms = "_header_3zql2_1", ps = "_languageSwitch_3zql2_36", gs = "_searchOverlay_3zql2_40", fs = "_headerExtension_3zql2_45", hs = "_extensionContentWrapper_3zql2_61", ks = "_extensionContent_3zql2_61", vs = "_extensionDivider_3zql2_84", bs = "_languageLabel_3zql2_98", ys = "_languageLink_3zql2_104", xs = "_headerInner_3zql2_129", Ts = "_logoWrapper_3zql2_146", Ss = "_logo_3zql2_146", ws = "_secondaryLogoWrapper_3zql2_169", Cs = "_slotComponent_3zql2_178", js = "_slotContainer_3zql2_188", Ds = "_slotText_3zql2_196", Is = "_secondaryLogo_3zql2_169", As = "_redCrossLogo_3zql2_223", Ls = "_primaryLogo_3zql2_229", Fs = "_navItems_3zql2_233", Bs = "_navLink_3zql2_242", Es = "_actions_3zql2_255", Ns = "_ctaButton_3zql2_263", _s = "_themeToggle_3zql2_268", Ps = "_userInfo_3zql2_273", Rs = "_userName_3zql2_279", Ms = "_loginLink_3zql2_286", zs = "_loginText_3zql2_295", Os = "_underline_3zql2_302", $s = "_searchButtonWrapper_3zql2_308", Hs = "_buttonText_3zql2_312", Ws = "_menuButton_3zql2_317", Vs = "_menuOverlay_3zql2_322", Gs = "_searchContent_3zql2_356", Us = "_menuContent_3zql2_366", qs = "_menuLeftColumn_3zql2_375", Ks = "_menuRightColumn_3zql2_381", Ys = "_slotContent_3zql2_395", Js = "_navList_3zql2_408", Zs = "_menuUtilities_3zql2_415", Xs = "_menuBrand_3zql2_422", Qs = "_suggestionsSection_3zql2_426", ea = "_suggestionsTitle_3zql2_432", ta = "_searchResults_3zql2_441", na = "_resultList_3zql2_447", oa = "_resultItem_3zql2_453", ra = "_resultLink_3zql2_461", sa = "_suggestionIcon_3zql2_475", aa = "_suggestionText_3zql2_488", ia = "_highlightedText_3zql2_495", la = "_remainingText_3zql2_500", da = "_viewAllLink_3zql2_513", ca = "_noResults_3zql2_548", S = {
|
|
3989
4172
|
header: ms,
|
|
3990
|
-
languageSwitch:
|
|
3991
|
-
searchOverlay:
|
|
4173
|
+
languageSwitch: ps,
|
|
4174
|
+
searchOverlay: gs,
|
|
3992
4175
|
headerExtension: fs,
|
|
3993
4176
|
extensionContentWrapper: hs,
|
|
3994
4177
|
extensionContent: ks,
|
|
3995
|
-
extensionDivider:
|
|
3996
|
-
languageLabel:
|
|
4178
|
+
extensionDivider: vs,
|
|
4179
|
+
languageLabel: bs,
|
|
3997
4180
|
languageLink: ys,
|
|
3998
4181
|
headerInner: xs,
|
|
3999
4182
|
logoWrapper: Ts,
|
|
@@ -4003,25 +4186,25 @@ const cs = {
|
|
|
4003
4186
|
slotContainer: js,
|
|
4004
4187
|
slotText: Ds,
|
|
4005
4188
|
secondaryLogo: Is,
|
|
4006
|
-
redCrossLogo:
|
|
4007
|
-
primaryLogo:
|
|
4189
|
+
redCrossLogo: As,
|
|
4190
|
+
primaryLogo: Ls,
|
|
4008
4191
|
navItems: Fs,
|
|
4009
|
-
navLink:
|
|
4192
|
+
navLink: Bs,
|
|
4010
4193
|
actions: Es,
|
|
4011
|
-
ctaButton:
|
|
4012
|
-
themeToggle:
|
|
4194
|
+
ctaButton: Ns,
|
|
4195
|
+
themeToggle: _s,
|
|
4013
4196
|
userInfo: Ps,
|
|
4014
|
-
userName:
|
|
4197
|
+
userName: Rs,
|
|
4015
4198
|
loginLink: Ms,
|
|
4016
|
-
loginText:
|
|
4199
|
+
loginText: zs,
|
|
4017
4200
|
underline: Os,
|
|
4018
4201
|
searchButtonWrapper: $s,
|
|
4019
4202
|
buttonText: Hs,
|
|
4020
4203
|
menuButton: Ws,
|
|
4021
4204
|
menuOverlay: Vs,
|
|
4022
4205
|
searchContent: Gs,
|
|
4023
|
-
menuContent:
|
|
4024
|
-
menuLeftColumn:
|
|
4206
|
+
menuContent: Us,
|
|
4207
|
+
menuLeftColumn: qs,
|
|
4025
4208
|
menuRightColumn: Ks,
|
|
4026
4209
|
slotContent: Ys,
|
|
4027
4210
|
navList: Js,
|
|
@@ -4116,16 +4299,16 @@ const cs = {
|
|
|
4116
4299
|
showThemeToggle: y = !1,
|
|
4117
4300
|
secondaryLogo: f = !1,
|
|
4118
4301
|
secondaryLogoSrc: k,
|
|
4119
|
-
secondaryLogoSrcDark:
|
|
4302
|
+
secondaryLogoSrcDark: p,
|
|
4120
4303
|
secondaryLogoAlt: h = "Secondary Logo",
|
|
4121
|
-
navItems:
|
|
4122
|
-
showNavItems:
|
|
4123
|
-
showMenuButton:
|
|
4304
|
+
navItems: v,
|
|
4305
|
+
showNavItems: b = !0,
|
|
4306
|
+
showMenuButton: g = !0,
|
|
4124
4307
|
showHeaderExtension: m = !1,
|
|
4125
4308
|
showModeToggle: T = !1,
|
|
4126
|
-
showLanguageSwitch:
|
|
4309
|
+
showLanguageSwitch: B = !1
|
|
4127
4310
|
}) => {
|
|
4128
|
-
const [F, E] = oe(!1), [j,
|
|
4311
|
+
const [F, E] = oe(!1), [j, A] = oe(!1), [N, $] = oe(""), [_, W] = oe("light"), { language: R, setLanguage: M, t: I } = us(), [U, ne] = oe(!1);
|
|
4129
4312
|
te(() => {
|
|
4130
4313
|
const x = "rk-header-inline-styles";
|
|
4131
4314
|
if (typeof document > "u" || document.getElementById(x)) return;
|
|
@@ -4158,15 +4341,15 @@ const cs = {
|
|
|
4158
4341
|
}
|
|
4159
4342
|
);
|
|
4160
4343
|
te(() => {
|
|
4161
|
-
E(!1),
|
|
4344
|
+
E(!1), A(!1), $("");
|
|
4162
4345
|
}, [t]), te(() => {
|
|
4163
|
-
if (!(typeof document > "u") && F &&
|
|
4346
|
+
if (!(typeof document > "u") && F && U) {
|
|
4164
4347
|
const x = document.body.style.overflow;
|
|
4165
4348
|
return document.body.style.overflow = "hidden", () => {
|
|
4166
4349
|
document.body.style.overflow = x;
|
|
4167
4350
|
};
|
|
4168
4351
|
}
|
|
4169
|
-
}, [F,
|
|
4352
|
+
}, [F, U]), te(() => {
|
|
4170
4353
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4171
4354
|
const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
|
|
4172
4355
|
return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
|
|
@@ -4187,7 +4370,7 @@ const cs = {
|
|
|
4187
4370
|
return C.observe(x), () => {
|
|
4188
4371
|
window.removeEventListener("resize", D), C.disconnect();
|
|
4189
4372
|
};
|
|
4190
|
-
}, [
|
|
4373
|
+
}, [U]), te(() => {
|
|
4191
4374
|
if (typeof document > "u") return;
|
|
4192
4375
|
const x = document.querySelector(`.${S.logoWrapper}`);
|
|
4193
4376
|
if (!x) return;
|
|
@@ -4196,7 +4379,7 @@ const cs = {
|
|
|
4196
4379
|
document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
|
|
4197
4380
|
};
|
|
4198
4381
|
return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
|
|
4199
|
-
}, [
|
|
4382
|
+
}, [U]), te(() => {
|
|
4200
4383
|
if (typeof document > "u" || !j) {
|
|
4201
4384
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4202
4385
|
return;
|
|
@@ -4214,44 +4397,44 @@ const cs = {
|
|
|
4214
4397
|
};
|
|
4215
4398
|
}, [j]);
|
|
4216
4399
|
const K = () => {
|
|
4217
|
-
const x =
|
|
4400
|
+
const x = _ === "light" ? "dark" : "light";
|
|
4218
4401
|
W(x), document.documentElement.setAttribute("data-color-scheme", x);
|
|
4219
4402
|
}, re = (x) => {
|
|
4220
|
-
e && (x.preventDefault(), e("home")), E(!1),
|
|
4403
|
+
e && (x.preventDefault(), e("home")), E(!1), A(!1);
|
|
4221
4404
|
}, c = () => {
|
|
4222
|
-
E(!F), j &&
|
|
4405
|
+
E(!F), j && A(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
|
|
4223
4406
|
const x = document.querySelector(`.${S.header}`);
|
|
4224
4407
|
if (x) {
|
|
4225
4408
|
const D = x.offsetHeight;
|
|
4226
4409
|
document.documentElement.style.setProperty("--header-height-mobile", `${D}px`);
|
|
4227
4410
|
}
|
|
4228
4411
|
});
|
|
4229
|
-
},
|
|
4230
|
-
|
|
4231
|
-
}, P =
|
|
4232
|
-
if (!
|
|
4233
|
-
const x =
|
|
4412
|
+
}, L = () => {
|
|
4413
|
+
A(!j), F && E(!1);
|
|
4414
|
+
}, P = be(() => {
|
|
4415
|
+
if (!N.trim()) return [];
|
|
4416
|
+
const x = N.toLowerCase();
|
|
4234
4417
|
return ua.filter(
|
|
4235
4418
|
(D) => D.title.toLowerCase().startsWith(x)
|
|
4236
4419
|
);
|
|
4237
|
-
}, [
|
|
4238
|
-
e && e(x),
|
|
4420
|
+
}, [N]), z = (x) => {
|
|
4421
|
+
e && e(x), A(!1), $("");
|
|
4239
4422
|
};
|
|
4240
4423
|
return /* @__PURE__ */ r.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
|
|
4241
4424
|
m && /* @__PURE__ */ r.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: S.extensionContentWrapper, children: [
|
|
4242
4425
|
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4243
|
-
|
|
4426
|
+
Ue,
|
|
4244
4427
|
{
|
|
4245
4428
|
"data-size": "sm",
|
|
4246
|
-
checked:
|
|
4429
|
+
checked: _ === "dark",
|
|
4247
4430
|
onChange: K,
|
|
4248
4431
|
label: I("header.darkMode"),
|
|
4249
4432
|
color: "neutral",
|
|
4250
4433
|
"data-color-scheme": "light"
|
|
4251
4434
|
}
|
|
4252
4435
|
) }),
|
|
4253
|
-
T &&
|
|
4254
|
-
|
|
4436
|
+
T && B && /* @__PURE__ */ r.jsx("div", { className: S.extensionDivider }),
|
|
4437
|
+
B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
|
|
4255
4438
|
/* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4256
4439
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4257
4440
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -4261,16 +4444,16 @@ const cs = {
|
|
|
4261
4444
|
"aria-label": I("header.selectLanguage"),
|
|
4262
4445
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4263
4446
|
children: [
|
|
4264
|
-
|
|
4447
|
+
R,
|
|
4265
4448
|
" ",
|
|
4266
|
-
/* @__PURE__ */ r.jsx(
|
|
4449
|
+
/* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
|
|
4267
4450
|
]
|
|
4268
4451
|
}
|
|
4269
4452
|
),
|
|
4270
4453
|
/* @__PURE__ */ r.jsx(
|
|
4271
4454
|
ee,
|
|
4272
4455
|
{
|
|
4273
|
-
"data-color-scheme":
|
|
4456
|
+
"data-color-scheme": _,
|
|
4274
4457
|
placement: "bottom-end",
|
|
4275
4458
|
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4276
4459
|
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
|
|
@@ -4284,7 +4467,7 @@ const cs = {
|
|
|
4284
4467
|
/* @__PURE__ */ r.jsxs("div", { className: S.headerInner, children: [
|
|
4285
4468
|
/* @__PURE__ */ r.jsxs("div", { className: S.logoWrapper, children: [
|
|
4286
4469
|
/* @__PURE__ */ r.jsx(
|
|
4287
|
-
|
|
4470
|
+
_e,
|
|
4288
4471
|
{
|
|
4289
4472
|
href: "/",
|
|
4290
4473
|
className: `${S.logo} ${S.primaryLogo}`,
|
|
@@ -4296,14 +4479,14 @@ const cs = {
|
|
|
4296
4479
|
/* @__PURE__ */ r.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
|
|
4297
4480
|
"img",
|
|
4298
4481
|
{
|
|
4299
|
-
src:
|
|
4482
|
+
src: _ === "dark" && p ? p : k,
|
|
4300
4483
|
alt: h,
|
|
4301
4484
|
className: S.secondaryLogo
|
|
4302
4485
|
}
|
|
4303
4486
|
) : f ? /* @__PURE__ */ r.jsx("div", { className: S.slotComponent, children: /* @__PURE__ */ r.jsx("div", { className: S.slotContainer, children: /* @__PURE__ */ r.jsx("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
|
|
4304
4487
|
] }),
|
|
4305
|
-
|
|
4306
|
-
|
|
4488
|
+
b && v && v.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: v.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4489
|
+
_e,
|
|
4307
4490
|
{
|
|
4308
4491
|
href: x.href,
|
|
4309
4492
|
className: S.navLink,
|
|
@@ -4330,9 +4513,9 @@ const cs = {
|
|
|
4330
4513
|
}
|
|
4331
4514
|
),
|
|
4332
4515
|
!m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
|
|
4333
|
-
|
|
4516
|
+
Ue,
|
|
4334
4517
|
{
|
|
4335
|
-
checked:
|
|
4518
|
+
checked: _ === "dark",
|
|
4336
4519
|
onChange: K,
|
|
4337
4520
|
"aria-label": I("header.toggleTheme")
|
|
4338
4521
|
}
|
|
@@ -4351,16 +4534,16 @@ const cs = {
|
|
|
4351
4534
|
variant: "secondary",
|
|
4352
4535
|
"data-color": "main",
|
|
4353
4536
|
"data-size": "md",
|
|
4354
|
-
onClick:
|
|
4537
|
+
onClick: L,
|
|
4355
4538
|
"aria-expanded": j,
|
|
4356
4539
|
"aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
|
|
4357
4540
|
children: [
|
|
4358
|
-
j ? /* @__PURE__ */ r.jsx(
|
|
4541
|
+
j ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
|
|
4359
4542
|
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
|
|
4360
4543
|
]
|
|
4361
4544
|
}
|
|
4362
4545
|
) }),
|
|
4363
|
-
(
|
|
4546
|
+
(g || U) && /* @__PURE__ */ r.jsxs(
|
|
4364
4547
|
ye,
|
|
4365
4548
|
{
|
|
4366
4549
|
variant: "primary",
|
|
@@ -4371,7 +4554,7 @@ const cs = {
|
|
|
4371
4554
|
"aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
|
|
4372
4555
|
className: S.menuButton,
|
|
4373
4556
|
children: [
|
|
4374
|
-
F ? /* @__PURE__ */ r.jsx(
|
|
4557
|
+
F ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
|
|
4375
4558
|
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
|
|
4376
4559
|
]
|
|
4377
4560
|
}
|
|
@@ -4381,8 +4564,8 @@ const cs = {
|
|
|
4381
4564
|
F && /* @__PURE__ */ r.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.menuContent, children: [
|
|
4382
4565
|
/* @__PURE__ */ r.jsx("div", { className: S.menuLeftColumn }),
|
|
4383
4566
|
/* @__PURE__ */ r.jsxs("div", { className: S.menuRightColumn, children: [
|
|
4384
|
-
|
|
4385
|
-
|
|
4567
|
+
U && (B || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
|
|
4568
|
+
B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
|
|
4386
4569
|
/* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4387
4570
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4388
4571
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -4392,16 +4575,16 @@ const cs = {
|
|
|
4392
4575
|
"aria-label": I("header.selectLanguage"),
|
|
4393
4576
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4394
4577
|
children: [
|
|
4395
|
-
|
|
4578
|
+
R,
|
|
4396
4579
|
" ",
|
|
4397
|
-
/* @__PURE__ */ r.jsx(
|
|
4580
|
+
/* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
|
|
4398
4581
|
]
|
|
4399
4582
|
}
|
|
4400
4583
|
),
|
|
4401
4584
|
/* @__PURE__ */ r.jsx(
|
|
4402
4585
|
ee,
|
|
4403
4586
|
{
|
|
4404
|
-
"data-color-scheme":
|
|
4587
|
+
"data-color-scheme": _,
|
|
4405
4588
|
placement: "bottom-start",
|
|
4406
4589
|
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4407
4590
|
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
|
|
@@ -4412,10 +4595,10 @@ const cs = {
|
|
|
4412
4595
|
] })
|
|
4413
4596
|
] }),
|
|
4414
4597
|
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4415
|
-
|
|
4598
|
+
Ue,
|
|
4416
4599
|
{
|
|
4417
4600
|
"data-size": "sm",
|
|
4418
|
-
checked:
|
|
4601
|
+
checked: _ === "dark",
|
|
4419
4602
|
onChange: K,
|
|
4420
4603
|
label: I("header.darkMode"),
|
|
4421
4604
|
color: "neutral",
|
|
@@ -4425,8 +4608,8 @@ const cs = {
|
|
|
4425
4608
|
] }),
|
|
4426
4609
|
/* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
|
|
4427
4610
|
n,
|
|
4428
|
-
|
|
4429
|
-
|
|
4611
|
+
U && b && v && v.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: v.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4612
|
+
_e,
|
|
4430
4613
|
{
|
|
4431
4614
|
href: x.href,
|
|
4432
4615
|
className: S.navLink,
|
|
@@ -4438,7 +4621,7 @@ const cs = {
|
|
|
4438
4621
|
D
|
|
4439
4622
|
)) })
|
|
4440
4623
|
] }),
|
|
4441
|
-
|
|
4624
|
+
U && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
|
|
4442
4625
|
] })
|
|
4443
4626
|
] }) }),
|
|
4444
4627
|
j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
|
|
@@ -4448,26 +4631,26 @@ const cs = {
|
|
|
4448
4631
|
{
|
|
4449
4632
|
"aria-label": I("header.search"),
|
|
4450
4633
|
placeholder: I("header.searchPlaceholder"),
|
|
4451
|
-
value:
|
|
4634
|
+
value: N,
|
|
4452
4635
|
onChange: (x) => $(x.target.value)
|
|
4453
4636
|
}
|
|
4454
4637
|
),
|
|
4455
4638
|
/* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": I("header.search") }),
|
|
4456
4639
|
/* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": I("header.clearSearch") })
|
|
4457
4640
|
] }),
|
|
4458
|
-
|
|
4641
|
+
N && /* @__PURE__ */ r.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: S.suggestionsSection, children: [
|
|
4459
4642
|
/* @__PURE__ */ r.jsx("h3", { className: S.suggestionsTitle, children: I("header.suggestions") }),
|
|
4460
4643
|
/* @__PURE__ */ r.jsx("ul", { className: S.resultList, children: P.slice(0, 5).map((x) => /* @__PURE__ */ r.jsx("li", { className: S.resultItem, children: /* @__PURE__ */ r.jsxs(
|
|
4461
4644
|
"button",
|
|
4462
4645
|
{
|
|
4463
4646
|
className: S.resultLink,
|
|
4464
|
-
onClick: () =>
|
|
4647
|
+
onClick: () => z(x.path),
|
|
4465
4648
|
children: [
|
|
4466
4649
|
/* @__PURE__ */ r.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
|
|
4467
4650
|
/* @__PURE__ */ r.jsx("span", { className: S.suggestionText, children: (() => {
|
|
4468
|
-
const D = x.title.toLowerCase().indexOf(
|
|
4651
|
+
const D = x.title.toLowerCase().indexOf(N.toLowerCase());
|
|
4469
4652
|
if (D === -1) return /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: x.title });
|
|
4470
|
-
const C = x.title.slice(0, D), H = x.title.slice(D, D +
|
|
4653
|
+
const C = x.title.slice(0, D), H = x.title.slice(D, D + N.length), J = x.title.slice(D + N.length);
|
|
4471
4654
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4472
4655
|
/* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: C }),
|
|
4473
4656
|
/* @__PURE__ */ r.jsx("span", { className: S.highlightedText, children: H }),
|
|
@@ -4478,13 +4661,13 @@ const cs = {
|
|
|
4478
4661
|
}
|
|
4479
4662
|
) }, x.id)) }),
|
|
4480
4663
|
P.length > 5 && /* @__PURE__ */ r.jsxs(
|
|
4481
|
-
|
|
4664
|
+
_e,
|
|
4482
4665
|
{
|
|
4483
4666
|
href: "#",
|
|
4484
4667
|
"data-color": "neutral",
|
|
4485
4668
|
className: S.viewAllLink,
|
|
4486
4669
|
onClick: (x) => {
|
|
4487
|
-
x.preventDefault(), e && e(`search/${
|
|
4670
|
+
x.preventDefault(), e && e(`search/${N}`), A(!1), $("");
|
|
4488
4671
|
},
|
|
4489
4672
|
children: [
|
|
4490
4673
|
I("header.viewAll"),
|
|
@@ -4497,7 +4680,7 @@ const cs = {
|
|
|
4497
4680
|
] }) : /* @__PURE__ */ r.jsx("div", { className: S.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
|
|
4498
4681
|
I("header.noResults"),
|
|
4499
4682
|
' "',
|
|
4500
|
-
|
|
4683
|
+
N,
|
|
4501
4684
|
'"'
|
|
4502
4685
|
] }) }) })
|
|
4503
4686
|
] }) })
|
|
@@ -4638,10 +4821,10 @@ export {
|
|
|
4638
4821
|
Ft as Avatar,
|
|
4639
4822
|
ao as Badge,
|
|
4640
4823
|
ka as BadgePosition,
|
|
4641
|
-
|
|
4824
|
+
va as Breadcrumbs,
|
|
4642
4825
|
ya as BreadcrumbsItem,
|
|
4643
4826
|
xa as BreadcrumbsLink,
|
|
4644
|
-
|
|
4827
|
+
ba as BreadcrumbsList,
|
|
4645
4828
|
ye as Button,
|
|
4646
4829
|
io as Card,
|
|
4647
4830
|
Ta as CardBlock,
|
|
@@ -4655,38 +4838,38 @@ export {
|
|
|
4655
4838
|
Da as Divider,
|
|
4656
4839
|
ee as Dropdown,
|
|
4657
4840
|
Ia as ErrorSummary,
|
|
4658
|
-
|
|
4841
|
+
Aa as Field,
|
|
4659
4842
|
ss as FieldCounter,
|
|
4660
4843
|
rs as FieldDescription,
|
|
4661
|
-
|
|
4844
|
+
La as Fieldset,
|
|
4662
4845
|
Ya as Header,
|
|
4663
4846
|
as as Heading,
|
|
4664
4847
|
Fa as Input,
|
|
4665
4848
|
is as Label,
|
|
4666
4849
|
Ka as LanguageProvider,
|
|
4667
|
-
|
|
4668
|
-
|
|
4850
|
+
_e as Link,
|
|
4851
|
+
Ba as List,
|
|
4669
4852
|
Ea as Pagination,
|
|
4670
4853
|
Ze as Paragraph,
|
|
4671
|
-
|
|
4854
|
+
_a as Popover,
|
|
4672
4855
|
Pa as Radio,
|
|
4673
4856
|
Pe as Search,
|
|
4674
4857
|
Ma as Select,
|
|
4675
|
-
|
|
4858
|
+
za as SkeletonLoader,
|
|
4676
4859
|
Oa as SkipLink,
|
|
4677
4860
|
ns as Spinner,
|
|
4678
4861
|
ls as Suggestion,
|
|
4679
|
-
|
|
4862
|
+
Ue as Switch,
|
|
4680
4863
|
$a as Table,
|
|
4681
4864
|
Ha as Tabs,
|
|
4682
4865
|
Wa as Tag,
|
|
4683
4866
|
Va as Textarea,
|
|
4684
4867
|
Ga as Textfield,
|
|
4685
|
-
|
|
4686
|
-
|
|
4868
|
+
Ua as ToggleGroup,
|
|
4869
|
+
qa as Tooltip,
|
|
4687
4870
|
ds as ValidationMessage,
|
|
4688
4871
|
Sa as useCheckboxGroup,
|
|
4689
4872
|
us as useLanguage,
|
|
4690
|
-
|
|
4691
|
-
|
|
4873
|
+
Na as usePagination,
|
|
4874
|
+
Ra as useRadioGroup
|
|
4692
4875
|
};
|