rk-designsystem 1.1.57 → 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 +1051 -912
- package/dist/componentlibrary.umd.js +33 -5
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Dt, { forwardRef as ue, useState 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
|
|
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
|
|
@@ -13,13 +13,13 @@ var Be = { exports: {} }, Se = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var ht;
|
|
16
|
-
function
|
|
16
|
+
function no() {
|
|
17
17
|
if (ht) return Se;
|
|
18
18
|
ht = 1;
|
|
19
19
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
20
20
|
function n(s, i, a) {
|
|
21
|
-
var
|
|
22
|
-
if (a !== void 0 && (
|
|
21
|
+
var o = null;
|
|
22
|
+
if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
|
|
23
23
|
a = {};
|
|
24
24
|
for (var d in i)
|
|
25
25
|
d !== "key" && (a[d] = i[d]);
|
|
@@ -27,7 +27,7 @@ function nr() {
|
|
|
27
27
|
return i = a.ref, {
|
|
28
28
|
$$typeof: t,
|
|
29
29
|
type: s,
|
|
30
|
-
key:
|
|
30
|
+
key: o,
|
|
31
31
|
ref: i !== void 0 ? i : null,
|
|
32
32
|
props: a
|
|
33
33
|
};
|
|
@@ -45,19 +45,19 @@ var we = {};
|
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
47
|
var kt;
|
|
48
|
-
function
|
|
48
|
+
function oo() {
|
|
49
49
|
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
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 rr() {
|
|
|
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 rr() {
|
|
|
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
|
}
|
|
@@ -128,18 +128,18 @@ function rr() {
|
|
|
128
128
|
function a() {
|
|
129
129
|
return Error("react-stack-top-frame");
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function o(c) {
|
|
132
132
|
if (R.call(c, "key")) {
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
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 rr() {
|
|
|
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 rr() {
|
|
|
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 (
|
|
193
|
-
if (
|
|
194
|
-
for (
|
|
195
|
-
f(C[
|
|
192
|
+
if (z)
|
|
193
|
+
if (M(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 (R.call(
|
|
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
|
-
),
|
|
218
|
+
), re[C + z] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (C = null, P !== void 0 && (n(P), C = "" + P),
|
|
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,64 +235,64 @@ 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
|
-
)(), K = I(s(a)),
|
|
255
|
-
we.Fragment =
|
|
256
|
-
var
|
|
254
|
+
)(), K = I(s(a)), re = {};
|
|
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
|
|
279
|
-
function
|
|
280
|
-
return
|
|
278
|
+
var vt;
|
|
279
|
+
function ro() {
|
|
280
|
+
return vt || (vt = 1, process.env.NODE_ENV === "production" ? Ne.exports = no() : Ne.exports = oo()), Ne.exports;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
const Ft = ue((t, e) => /* @__PURE__ */
|
|
282
|
+
var r = ro();
|
|
283
|
+
const so = ue((t, e) => /* @__PURE__ */ r.jsx(Jt, { ref: e, ...t }));
|
|
284
|
+
so.displayName = "Alert";
|
|
285
|
+
const Ft = ue((t, e) => /* @__PURE__ */ r.jsx(Zt, { ref: e, ...t }));
|
|
286
286
|
Ft.displayName = "Avatar";
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
const ka = Xt,
|
|
287
|
+
const ao = ue((t, e) => /* @__PURE__ */ r.jsx(Qt, { ref: e, ...t }));
|
|
288
|
+
ao.displayName = "Badge";
|
|
289
|
+
const ka = Xt, va = en, ba = tn, ya = nn, xa = on, ye = Ke;
|
|
290
290
|
ye.displayName = "Button";
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
291
|
+
const io = rn, Ta = sn;
|
|
292
|
+
io.displayName = "Card";
|
|
293
|
+
const lo = an, co = It, Sa = ln;
|
|
294
|
+
lo.displayName = "Checkbox";
|
|
295
|
+
co.displayName = "Fieldset";
|
|
296
296
|
const wa = dn;
|
|
297
297
|
function Ge(t) {
|
|
298
298
|
return (e = {}) => {
|
|
@@ -305,11 +305,11 @@ function Ce(t) {
|
|
|
305
305
|
const s = n != null && n.context ? String(n.context) : "standalone";
|
|
306
306
|
let i;
|
|
307
307
|
if (s === "formatting" && t.formattingValues) {
|
|
308
|
-
const
|
|
309
|
-
i = t.formattingValues[d] || t.formattingValues[
|
|
308
|
+
const o = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : o;
|
|
309
|
+
i = t.formattingValues[d] || t.formattingValues[o];
|
|
310
310
|
} else {
|
|
311
|
-
const
|
|
312
|
-
i = t.values[d] || t.values[
|
|
311
|
+
const o = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
312
|
+
i = t.values[d] || t.values[o];
|
|
313
313
|
}
|
|
314
314
|
const a = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
315
315
|
return i[a];
|
|
@@ -320,42 +320,42 @@ function je(t) {
|
|
|
320
320
|
const s = n.width, i = s && t.matchPatterns[s] || t.matchPatterns[t.defaultMatchWidth], a = e.match(i);
|
|
321
321
|
if (!a)
|
|
322
322
|
return null;
|
|
323
|
-
const
|
|
323
|
+
const o = a[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? mo(d, (f) => f.test(o)) : (
|
|
324
324
|
// [TODO] -- I challenge you to fix the type
|
|
325
|
-
|
|
325
|
+
uo(d, (f) => f.test(o))
|
|
326
326
|
);
|
|
327
327
|
let u;
|
|
328
328
|
u = t.valueCallback ? t.valueCallback(l) : l, u = n.valueCallback ? (
|
|
329
329
|
// [TODO] -- I challenge you to fix the type
|
|
330
330
|
n.valueCallback(u)
|
|
331
331
|
) : u;
|
|
332
|
-
const y = e.slice(
|
|
332
|
+
const y = e.slice(o.length);
|
|
333
333
|
return { value: u, rest: y };
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function uo(t, e) {
|
|
337
337
|
for (const n in t)
|
|
338
338
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
339
339
|
return n;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function mo(t, e) {
|
|
342
342
|
for (let n = 0; n < t.length; n++)
|
|
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;
|
|
350
350
|
const i = s[0], a = e.match(t.parsePattern);
|
|
351
351
|
if (!a) return null;
|
|
352
|
-
let
|
|
353
|
-
|
|
352
|
+
let o = t.valueCallback ? t.valueCallback(a[0]) : a[0];
|
|
353
|
+
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
354
354
|
const d = e.slice(i.length);
|
|
355
|
-
return { value:
|
|
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"
|
|
@@ -417,54 +417,54 @@ const gr = {
|
|
|
417
417
|
one: "nesten ett år",
|
|
418
418
|
other: "nesten {{count}} år"
|
|
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",
|
|
426
426
|
long: "d. MMMM y",
|
|
427
427
|
medium: "d. MMM y",
|
|
428
428
|
short: "dd.MM.y"
|
|
429
|
-
},
|
|
429
|
+
}, ko = {
|
|
430
430
|
full: "'kl'. HH:mm:ss zzzz",
|
|
431
431
|
long: "HH:mm:ss z",
|
|
432
432
|
medium: "HH:mm:ss",
|
|
433
433
|
short: "HH:mm"
|
|
434
|
-
},
|
|
434
|
+
}, 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
|
-
formats:
|
|
441
|
+
formats: ho,
|
|
442
442
|
defaultWidth: "full"
|
|
443
443
|
}),
|
|
444
444
|
time: Ge({
|
|
445
|
-
formats:
|
|
445
|
+
formats: ko,
|
|
446
446
|
defaultWidth: "full"
|
|
447
447
|
}),
|
|
448
448
|
dateTime: Ge({
|
|
449
|
-
formats:
|
|
449
|
+
formats: vo,
|
|
450
450
|
defaultWidth: "full"
|
|
451
451
|
})
|
|
452
|
-
},
|
|
452
|
+
}, yo = {
|
|
453
453
|
lastWeek: "'forrige' eeee 'kl.' p",
|
|
454
454
|
yesterday: "'i går kl.' p",
|
|
455
455
|
today: "'i dag kl.' p",
|
|
456
456
|
tomorrow: "'i morgen kl.' p",
|
|
457
457
|
nextWeek: "EEEE 'kl.' p",
|
|
458
458
|
other: "P"
|
|
459
|
-
},
|
|
459
|
+
}, xo = (t, e, n, s) => yo[t], To = {
|
|
460
460
|
narrow: ["f.Kr.", "e.Kr."],
|
|
461
461
|
abbreviated: ["f.Kr.", "e.Kr."],
|
|
462
462
|
wide: ["før Kristus", "etter Kristus"]
|
|
463
|
-
},
|
|
463
|
+
}, So = {
|
|
464
464
|
narrow: ["1", "2", "3", "4"],
|
|
465
465
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
466
466
|
wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
|
|
467
|
-
},
|
|
467
|
+
}, wo = {
|
|
468
468
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
469
469
|
abbreviated: [
|
|
470
470
|
"jan.",
|
|
@@ -494,7 +494,7 @@ const gr = {
|
|
|
494
494
|
"november",
|
|
495
495
|
"desember"
|
|
496
496
|
]
|
|
497
|
-
},
|
|
497
|
+
}, Co = {
|
|
498
498
|
narrow: ["S", "M", "T", "O", "T", "F", "L"],
|
|
499
499
|
short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
|
|
500
500
|
abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
|
@@ -507,7 +507,7 @@ const gr = {
|
|
|
507
507
|
"fredag",
|
|
508
508
|
"lørdag"
|
|
509
509
|
]
|
|
510
|
-
},
|
|
510
|
+
}, jo = {
|
|
511
511
|
narrow: {
|
|
512
512
|
am: "a",
|
|
513
513
|
pm: "p",
|
|
@@ -538,46 +538,46 @@ const gr = {
|
|
|
538
538
|
evening: "på kvelden",
|
|
539
539
|
night: "på natten"
|
|
540
540
|
}
|
|
541
|
-
},
|
|
542
|
-
ordinalNumber:
|
|
541
|
+
}, Do = (t, e) => Number(t) + ".", Io = {
|
|
542
|
+
ordinalNumber: Do,
|
|
543
543
|
era: Ce({
|
|
544
|
-
values:
|
|
544
|
+
values: To,
|
|
545
545
|
defaultWidth: "wide"
|
|
546
546
|
}),
|
|
547
547
|
quarter: Ce({
|
|
548
|
-
values:
|
|
548
|
+
values: So,
|
|
549
549
|
defaultWidth: "wide",
|
|
550
550
|
argumentCallback: (t) => t - 1
|
|
551
551
|
}),
|
|
552
552
|
month: Ce({
|
|
553
|
-
values:
|
|
553
|
+
values: wo,
|
|
554
554
|
defaultWidth: "wide"
|
|
555
555
|
}),
|
|
556
556
|
day: Ce({
|
|
557
|
-
values:
|
|
557
|
+
values: Co,
|
|
558
558
|
defaultWidth: "wide"
|
|
559
559
|
}),
|
|
560
560
|
dayPeriod: Ce({
|
|
561
|
-
values:
|
|
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
|
-
},
|
|
574
|
+
}, No = {
|
|
575
575
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
|
-
},
|
|
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
|
|
580
|
-
},
|
|
580
|
+
}, Po = {
|
|
581
581
|
narrow: [
|
|
582
582
|
/^j/i,
|
|
583
583
|
/^f/i,
|
|
@@ -606,17 +606,17 @@ const gr = {
|
|
|
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 = {
|
|
620
620
|
any: {
|
|
621
621
|
am: /^a(\.?\s?m\.?)?$/i,
|
|
622
622
|
pm: /^p(\.?\s?m\.?)?$/i,
|
|
@@ -627,55 +627,55 @@ const gr = {
|
|
|
627
627
|
evening: /kveld/i,
|
|
628
628
|
night: /natt/i
|
|
629
629
|
}
|
|
630
|
-
},
|
|
631
|
-
ordinalNumber:
|
|
632
|
-
matchPattern:
|
|
633
|
-
parsePattern:
|
|
630
|
+
}, $o = {
|
|
631
|
+
ordinalNumber: po({
|
|
632
|
+
matchPattern: Ao,
|
|
633
|
+
parsePattern: Lo,
|
|
634
634
|
valueCallback: (t) => parseInt(t, 10)
|
|
635
635
|
}),
|
|
636
636
|
era: je({
|
|
637
|
-
matchPatterns:
|
|
637
|
+
matchPatterns: Fo,
|
|
638
638
|
defaultMatchWidth: "wide",
|
|
639
|
-
parsePatterns:
|
|
639
|
+
parsePatterns: Bo,
|
|
640
640
|
defaultParseWidth: "any"
|
|
641
641
|
}),
|
|
642
642
|
quarter: je({
|
|
643
|
-
matchPatterns:
|
|
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
|
-
parsePatterns:
|
|
652
|
+
parsePatterns: Po,
|
|
653
653
|
defaultParseWidth: "any"
|
|
654
654
|
}),
|
|
655
655
|
day: je({
|
|
656
|
-
matchPatterns:
|
|
656
|
+
matchPatterns: Ro,
|
|
657
657
|
defaultMatchWidth: "wide",
|
|
658
|
-
parsePatterns:
|
|
658
|
+
parsePatterns: Mo,
|
|
659
659
|
defaultParseWidth: "any"
|
|
660
660
|
}),
|
|
661
661
|
dayPeriod: je({
|
|
662
|
-
matchPatterns:
|
|
662
|
+
matchPatterns: zo,
|
|
663
663
|
defaultMatchWidth: "any",
|
|
664
|
-
parsePatterns:
|
|
664
|
+
parsePatterns: Oo,
|
|
665
665
|
defaultParseWidth: "any"
|
|
666
666
|
})
|
|
667
|
-
},
|
|
667
|
+
}, ve = {
|
|
668
668
|
code: "nb",
|
|
669
|
-
formatDistance:
|
|
670
|
-
formatLong:
|
|
671
|
-
formatRelative:
|
|
672
|
-
localize:
|
|
673
|
-
match:
|
|
669
|
+
formatDistance: fo,
|
|
670
|
+
formatLong: bo,
|
|
671
|
+
formatRelative: xo,
|
|
672
|
+
localize: Io,
|
|
673
|
+
match: $o,
|
|
674
674
|
options: {
|
|
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",
|
|
@@ -687,8 +687,8 @@ const gr = {
|
|
|
687
687
|
focusable: "false",
|
|
688
688
|
...e,
|
|
689
689
|
children: [
|
|
690
|
-
t && /* @__PURE__ */
|
|
691
|
-
/* @__PURE__ */
|
|
690
|
+
t && /* @__PURE__ */ r.jsx("title", { children: t }),
|
|
691
|
+
/* @__PURE__ */ r.jsx(
|
|
692
692
|
"path",
|
|
693
693
|
{
|
|
694
694
|
fillRule: "evenodd",
|
|
@@ -700,8 +700,8 @@ const gr = {
|
|
|
700
700
|
]
|
|
701
701
|
}
|
|
702
702
|
);
|
|
703
|
-
|
|
704
|
-
const Et = ({ title: t, ...e }) => /* @__PURE__ */
|
|
703
|
+
Bt.displayName = "ChevronLeftIcon";
|
|
704
|
+
const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
705
705
|
"svg",
|
|
706
706
|
{
|
|
707
707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -713,8 +713,8 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
|
|
|
713
713
|
focusable: "false",
|
|
714
714
|
...e,
|
|
715
715
|
children: [
|
|
716
|
-
t && /* @__PURE__ */
|
|
717
|
-
/* @__PURE__ */
|
|
716
|
+
t && /* @__PURE__ */ r.jsx("title", { children: t }),
|
|
717
|
+
/* @__PURE__ */ r.jsx(
|
|
718
718
|
"path",
|
|
719
719
|
{
|
|
720
720
|
fillRule: "evenodd",
|
|
@@ -727,21 +727,21 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
|
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
729
|
Et.displayName = "ChevronRightIcon";
|
|
730
|
-
const
|
|
731
|
-
calendarContainer:
|
|
732
|
-
calendarHeader:
|
|
733
|
-
monthYear:
|
|
734
|
-
navigationButtons:
|
|
735
|
-
grid:
|
|
736
|
-
dayNameCell:
|
|
737
|
-
dateCell:
|
|
738
|
-
dateNumberContainer:
|
|
739
|
-
otherMonth:
|
|
740
|
-
selectedDate:
|
|
741
|
-
},
|
|
742
|
-
const e = ke(t), n =
|
|
730
|
+
const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Uo = "_grid_10l5p_41", qo = "_dayNameCell_10l5p_48", Ko = "_dateCell_10l5p_65", Yo = "_dateNumberContainer_10l5p_90", Jo = "_otherMonth_10l5p_103", Zo = "_selectedDate_10l5p_129", se = {
|
|
731
|
+
calendarContainer: Ho,
|
|
732
|
+
calendarHeader: Wo,
|
|
733
|
+
monthYear: Vo,
|
|
734
|
+
navigationButtons: Go,
|
|
735
|
+
grid: Uo,
|
|
736
|
+
dayNameCell: qo,
|
|
737
|
+
dateCell: Ko,
|
|
738
|
+
dateNumberContainer: Yo,
|
|
739
|
+
otherMonth: Jo,
|
|
740
|
+
selectedDate: Zo
|
|
741
|
+
}, Xo = (t) => {
|
|
742
|
+
const e = ke(t), n = At(e, { locale: ve }), s = Lt(n, 41);
|
|
743
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
|
|
@@ -751,50 +751,50 @@ const $r = "_calendarContainer_10l5p_1", Hr = "_calendarHeader_10l5p_14", Wr = "
|
|
|
751
751
|
"data-size": i
|
|
752
752
|
// <-- Destrukturert
|
|
753
753
|
}) => {
|
|
754
|
-
const [a,
|
|
754
|
+
const [a, o] = oe(
|
|
755
755
|
ke(e && Ve(e) ? e : t)
|
|
756
756
|
);
|
|
757
757
|
te(() => {
|
|
758
758
|
if (e && Ve(e)) {
|
|
759
759
|
const m = ke(e);
|
|
760
|
-
mt(m, a) ||
|
|
760
|
+
mt(m, a) || o(m);
|
|
761
761
|
}
|
|
762
762
|
}, [e]);
|
|
763
|
-
const d =
|
|
764
|
-
() =>
|
|
763
|
+
const d = be(() => ke(/* @__PURE__ */ new Date()), []), l = be(() => !1, [a, d]), u = be(
|
|
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 ||
|
|
773
|
+
l || o((m) => ke(qn(m, 1)));
|
|
774
774
|
}, [l]), k = ae(() => {
|
|
775
|
-
|
|
776
|
-
}, []),
|
|
775
|
+
o((m) => ke(Kn(m, 1)));
|
|
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
|
-
),
|
|
787
|
-
return /* @__PURE__ */
|
|
785
|
+
[p]
|
|
786
|
+
), v = Te(a, "MMMM", { locale: ve }), b = Te(a, "yyyy", { locale: ve }), g = `${bt(v)} ${b}`;
|
|
787
|
+
return /* @__PURE__ */ r.jsxs(
|
|
788
788
|
"div",
|
|
789
789
|
{
|
|
790
790
|
className: se.calendarContainer,
|
|
791
791
|
"data-color": s,
|
|
792
792
|
"data-size": i,
|
|
793
793
|
children: [
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ r.jsxs("div", { className: se.calendarHeader, children: [
|
|
795
|
+
/* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: g }),
|
|
796
|
+
/* @__PURE__ */ r.jsxs("div", { className: se.navigationButtons, children: [
|
|
797
|
+
/* @__PURE__ */ r.jsx(
|
|
798
798
|
Ke,
|
|
799
799
|
{
|
|
800
800
|
variant: "tertiary",
|
|
@@ -802,41 +802,41 @@ const $r = "_calendarContainer_10l5p_1", Hr = "_calendarHeader_10l5p_14", Wr = "
|
|
|
802
802
|
onClick: f,
|
|
803
803
|
"aria-label": "Forrige måned",
|
|
804
804
|
disabled: l,
|
|
805
|
-
children: /* @__PURE__ */
|
|
805
|
+
children: /* @__PURE__ */ r.jsx(Bt, {})
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ r.jsx(
|
|
809
809
|
Ke,
|
|
810
810
|
{
|
|
811
811
|
variant: "tertiary",
|
|
812
812
|
icon: !0,
|
|
813
813
|
onClick: k,
|
|
814
814
|
"aria-label": "Neste måned",
|
|
815
|
-
children: /* @__PURE__ */
|
|
815
|
+
children: /* @__PURE__ */ r.jsx(Et, {})
|
|
816
816
|
}
|
|
817
817
|
)
|
|
818
818
|
] })
|
|
819
819
|
] }),
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
-
const T = mt(m, a),
|
|
820
|
+
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
|
|
821
|
+
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((m) => {
|
|
822
|
+
const T = mt(m, a), B = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
|
|
823
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
|
-
return /* @__PURE__ */
|
|
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:
|
|
839
|
-
children: /* @__PURE__ */
|
|
837
|
+
"aria-pressed": B ?? !1,
|
|
838
|
+
"aria-label": Te(m, "PPP", { locale: ve }),
|
|
839
|
+
children: /* @__PURE__ */ r.jsx("span", { className: se.dateNumberContainer, children: Te(m, "d") })
|
|
840
840
|
},
|
|
841
841
|
m.toISOString()
|
|
842
842
|
);
|
|
@@ -845,15 +845,15 @@ const $r = "_calendarContainer_10l5p_1", Hr = "_calendarHeader_10l5p_14", Wr = "
|
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
fieldset:
|
|
851
|
-
description:
|
|
852
|
-
error:
|
|
853
|
-
inputWrapper:
|
|
854
|
-
inputWrapperError:
|
|
855
|
-
suffixButton:
|
|
856
|
-
suffixButtonInteractive:
|
|
848
|
+
Qo.displayName = "DatePicker";
|
|
849
|
+
const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7_21", or = "_inputWrapper_16fx7_30", rr = "_inputWrapperError_16fx7_42", sr = "_suffixButton_16fx7_80", ar = "_suffixButtonInteractive_16fx7_100", ge = {
|
|
850
|
+
fieldset: er,
|
|
851
|
+
description: tr,
|
|
852
|
+
error: nr,
|
|
853
|
+
inputWrapper: or,
|
|
854
|
+
inputWrapperError: rr,
|
|
855
|
+
suffixButton: sr,
|
|
856
|
+
suffixButtonInteractive: ar
|
|
857
857
|
}, yt = (t) => {
|
|
858
858
|
const e = t.slice(0, 2), n = t.slice(2, 4), s = t.slice(4, 8);
|
|
859
859
|
return t.length > 4 ? `${e}.${n}.${s}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
|
|
@@ -868,7 +868,7 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7
|
|
|
868
868
|
!isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
|
|
869
869
|
}
|
|
870
870
|
return e.slice(0, 8);
|
|
871
|
-
},
|
|
871
|
+
}, ir = ue(
|
|
872
872
|
(t, e) => {
|
|
873
873
|
const {
|
|
874
874
|
label: n,
|
|
@@ -876,7 +876,7 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7
|
|
|
876
876
|
onSuffixClick: i,
|
|
877
877
|
className: a,
|
|
878
878
|
// For ytre fieldset
|
|
879
|
-
inputWrapperClassName:
|
|
879
|
+
inputWrapperClassName: o,
|
|
880
880
|
// For input wrapper div
|
|
881
881
|
inputClassName: d,
|
|
882
882
|
// For selve input-elementet
|
|
@@ -885,53 +885,53 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_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, R =
|
|
907
|
+
..._
|
|
908
|
+
} = t, W = l !== void 0, R = qe(null);
|
|
909
909
|
Dt.useImperativeHandle(
|
|
910
910
|
e,
|
|
911
911
|
() => R.current
|
|
912
912
|
);
|
|
913
|
-
const
|
|
913
|
+
const M = ae(
|
|
914
914
|
(D) => {
|
|
915
915
|
const C = xt(D), H = Tt(C);
|
|
916
916
|
return yt(H);
|
|
917
917
|
},
|
|
918
918
|
[]
|
|
919
|
-
), [I,
|
|
920
|
-
() =>
|
|
919
|
+
), [I, U] = oe(
|
|
920
|
+
() => M(l ?? u)
|
|
921
921
|
);
|
|
922
922
|
te(() => {
|
|
923
923
|
if (W) {
|
|
924
|
-
const D =
|
|
925
|
-
D !== I && (
|
|
924
|
+
const D = M(l);
|
|
925
|
+
D !== I && (U(D), R.current && R.current.value !== D && (R.current.value = D));
|
|
926
926
|
}
|
|
927
|
-
}, [l, W, I,
|
|
927
|
+
}, [l, W, I, M]);
|
|
928
928
|
const ne = ae(
|
|
929
929
|
(D) => {
|
|
930
930
|
const C = D.target, H = C.value, J = I, X = xt(H).slice(0, 8), V = Tt(X), w = yt(V);
|
|
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 (R.current && (
|
|
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 }
|
|
@@ -940,32 +940,32 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7
|
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
},
|
|
943
|
-
[I, W, y,
|
|
944
|
-
), Y = [
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
].filter(Boolean).join(" "),
|
|
943
|
+
[I, W, y, M]
|
|
944
|
+
), Y = [ge.fieldset, a].filter(Boolean).join(" "), K = [
|
|
945
|
+
ge.inputWrapper,
|
|
946
|
+
o,
|
|
947
|
+
A ? ge.inputWrapperError : ""
|
|
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
|
-
/* @__PURE__ */
|
|
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__ */
|
|
966
|
-
j && /* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
968
|
-
/* @__PURE__ */
|
|
965
|
+
n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: L, htmlFor: p, children: n }) : n,
|
|
966
|
+
j && /* @__PURE__ */ r.jsx("p", { id: P, className: ge.description, children: j }),
|
|
967
|
+
/* @__PURE__ */ r.jsxs("div", { className: K, children: [
|
|
968
|
+
/* @__PURE__ */ r.jsx(
|
|
969
969
|
"input",
|
|
970
970
|
{
|
|
971
971
|
ref: R,
|
|
@@ -976,72 +976,72 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_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": !!
|
|
992
|
-
className:
|
|
993
|
-
...
|
|
991
|
+
"aria-invalid": !!A,
|
|
992
|
+
className: re,
|
|
993
|
+
..._
|
|
994
994
|
}
|
|
995
995
|
),
|
|
996
|
-
s && /* @__PURE__ */
|
|
996
|
+
s && /* @__PURE__ */ r.jsx(
|
|
997
997
|
"button",
|
|
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
|
)
|
|
1014
1014
|
);
|
|
1015
1015
|
}
|
|
1016
1016
|
);
|
|
1017
|
-
|
|
1018
|
-
function
|
|
1017
|
+
ir.displayName = "DateInput";
|
|
1018
|
+
function lr(t) {
|
|
1019
1019
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1020
1020
|
}
|
|
1021
1021
|
function St(t) {
|
|
1022
|
-
return
|
|
1022
|
+
return lr(t) || Array.isArray(t);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function dr() {
|
|
1025
1025
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1026
1026
|
}
|
|
1027
1027
|
function Xe(t, e) {
|
|
1028
1028
|
const n = Object.keys(t), s = Object.keys(e);
|
|
1029
1029
|
if (n.length !== s.length) return !1;
|
|
1030
1030
|
const i = JSON.stringify(Object.keys(t.breakpoints || {})), a = JSON.stringify(Object.keys(e.breakpoints || {}));
|
|
1031
|
-
return i !== a ? !1 : n.every((
|
|
1032
|
-
const d = t[
|
|
1031
|
+
return i !== a ? !1 : n.every((o) => {
|
|
1032
|
+
const d = t[o], l = e[o];
|
|
1033
1033
|
return typeof d == "function" ? `${d}` == `${l}` : !St(d) || !St(l) ? d === l : Xe(d, l);
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
function wt(t) {
|
|
1037
1037
|
return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function cr(t, e) {
|
|
1040
1040
|
if (t.length !== e.length) return !1;
|
|
1041
1041
|
const n = wt(t), s = wt(e);
|
|
1042
1042
|
return n.every((i, a) => {
|
|
1043
|
-
const
|
|
1044
|
-
return Xe(i,
|
|
1043
|
+
const o = s[a];
|
|
1044
|
+
return Xe(i, o);
|
|
1045
1045
|
});
|
|
1046
1046
|
}
|
|
1047
1047
|
function Qe(t) {
|
|
@@ -1050,57 +1050,57 @@ function Qe(t) {
|
|
|
1050
1050
|
function Ye(t) {
|
|
1051
1051
|
return typeof t == "string";
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function Me(t) {
|
|
1054
1054
|
return typeof t == "boolean";
|
|
1055
1055
|
}
|
|
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
|
-
function
|
|
1069
|
-
if (t === 0 || e === 0 ||
|
|
1070
|
-
const n = Ie(
|
|
1071
|
-
return
|
|
1068
|
+
function ur(t, e) {
|
|
1069
|
+
if (t === 0 || e === 0 || q(t) <= q(e)) return 0;
|
|
1070
|
+
const n = Ie(q(t), q(e));
|
|
1071
|
+
return q(n / t);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
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) => (
|
|
1096
|
-
const a = n[i],
|
|
1097
|
-
n[i] = d ?
|
|
1094
|
+
function Nt(t, e) {
|
|
1095
|
+
return [t, e].reduce((n, s) => (Le(s).forEach((i) => {
|
|
1096
|
+
const a = n[i], o = s[i], d = Ct(a) && Ct(o);
|
|
1097
|
+
n[i] = d ? Nt(a, o) : o;
|
|
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,
|
|
@@ -1115,24 +1115,24 @@ function go(t, e) {
|
|
|
1115
1115
|
function a(l) {
|
|
1116
1116
|
return e - l;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function o(l, u) {
|
|
1119
1119
|
return Ye(t) ? n[t](l) : t(e, l, u);
|
|
1120
1120
|
}
|
|
1121
1121
|
return {
|
|
1122
|
-
measure:
|
|
1122
|
+
measure: o
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
1125
|
function Fe() {
|
|
1126
1126
|
let t = [];
|
|
1127
|
-
function e(i, a,
|
|
1127
|
+
function e(i, a, o, d = {
|
|
1128
1128
|
passive: !0
|
|
1129
1129
|
}) {
|
|
1130
1130
|
let l;
|
|
1131
1131
|
if ("addEventListener" in i)
|
|
1132
|
-
i.addEventListener(a,
|
|
1132
|
+
i.addEventListener(a, o, d), l = () => i.removeEventListener(a, o, d);
|
|
1133
1133
|
else {
|
|
1134
1134
|
const u = i;
|
|
1135
|
-
u.addListener(
|
|
1135
|
+
u.addListener(o), l = () => u.removeListener(o);
|
|
1136
1136
|
}
|
|
1137
1137
|
return t.push(l), s;
|
|
1138
1138
|
}
|
|
@@ -1145,22 +1145,22 @@ 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
|
-
let
|
|
1150
|
+
let o = null, d = 0, l = 0;
|
|
1151
1151
|
function u() {
|
|
1152
1152
|
i.add(t, "visibilitychange", () => {
|
|
1153
1153
|
t.hidden && h();
|
|
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
|
-
|
|
1162
|
-
const
|
|
1163
|
-
for (
|
|
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,29 +1168,29 @@ function po(t, e, n, s) {
|
|
|
1168
1168
|
function k() {
|
|
1169
1169
|
l || (l = e.requestAnimationFrame(f));
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
e.cancelAnimationFrame(l),
|
|
1171
|
+
function p() {
|
|
1172
|
+
e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
|
|
1173
1173
|
}
|
|
1174
1174
|
function h() {
|
|
1175
|
-
|
|
1175
|
+
o = null, d = 0;
|
|
1176
1176
|
}
|
|
1177
1177
|
return {
|
|
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
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1187
|
-
const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y",
|
|
1186
|
+
function fr(t, e) {
|
|
1187
|
+
const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y", o = !s && n ? -1 : 1, d = y(), l = f();
|
|
1188
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";
|
|
@@ -1199,7 +1199,7 @@ function fo(t, e) {
|
|
|
1199
1199
|
return s ? "bottom" : n ? "left" : "right";
|
|
1200
1200
|
}
|
|
1201
1201
|
function k(h) {
|
|
1202
|
-
return h *
|
|
1202
|
+
return h * o;
|
|
1203
1203
|
}
|
|
1204
1204
|
return {
|
|
1205
1205
|
scroll: i,
|
|
@@ -1211,7 +1211,7 @@ function fo(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
|
}
|
|
@@ -1221,7 +1221,7 @@ function fe(t = 0, e = 0) {
|
|
|
1221
1221
|
function a(u) {
|
|
1222
1222
|
return s(u) || i(u);
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function o(u) {
|
|
1225
1225
|
return a(u) ? s(u) ? t : e : u;
|
|
1226
1226
|
}
|
|
1227
1227
|
function d(u) {
|
|
@@ -1231,32 +1231,32 @@ function fe(t = 0, e = 0) {
|
|
|
1231
1231
|
length: n,
|
|
1232
1232
|
max: e,
|
|
1233
1233
|
min: t,
|
|
1234
|
-
constrain:
|
|
1234
|
+
constrain: o,
|
|
1235
1235
|
reachedAny: a,
|
|
1236
1236
|
reachedMax: i,
|
|
1237
1237
|
reachedMin: s,
|
|
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
|
-
let a =
|
|
1246
|
-
function
|
|
1247
|
-
return n ?
|
|
1245
|
+
let a = o(e);
|
|
1246
|
+
function o(k) {
|
|
1247
|
+
return n ? q((i + k) % i) : s(k);
|
|
1248
1248
|
}
|
|
1249
1249
|
function d() {
|
|
1250
1250
|
return a;
|
|
1251
1251
|
}
|
|
1252
1252
|
function l(k) {
|
|
1253
|
-
return a =
|
|
1253
|
+
return a = o(k), f;
|
|
1254
1254
|
}
|
|
1255
1255
|
function u(k) {
|
|
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,24 +1266,24 @@ function Nt(t, e, n) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
return f;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
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 R = !1,
|
|
1283
|
-
function
|
|
1282
|
+
let R = !1, M = 0, I = 0, U = !1, ne = !1, Y = !1, K = !1;
|
|
1283
|
+
function re(w) {
|
|
1284
1284
|
if (!m) return;
|
|
1285
1285
|
function O(Z) {
|
|
1286
|
-
(
|
|
1286
|
+
(Me(m) || m(w, Z)) && D(Z);
|
|
1287
1287
|
}
|
|
1288
1288
|
const G = e;
|
|
1289
1289
|
j.add(G, "dragstart", (Z) => Z.preventDefault(), E).add(G, "touchmove", () => {
|
|
@@ -1291,101 +1291,101 @@ function ho(t, e, n, s, i, a, r, 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 && R, R = Ie(i.get(),
|
|
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);
|
|
1317
|
-
const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G,
|
|
1317
|
+
const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G, M), de = Ie(Z, I);
|
|
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
|
-
init:
|
|
1334
|
+
init: re,
|
|
1335
1335
|
destroy: c,
|
|
1336
1336
|
pointerDown: X
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function kr(t, e) {
|
|
1340
1340
|
let s, i;
|
|
1341
1341
|
function a(f) {
|
|
1342
1342
|
return f.timeStamp;
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function o(f, k) {
|
|
1345
1345
|
const h = `client${(k || t.scroll) === "x" ? "X" : "Y"}`;
|
|
1346
1346
|
return (Je(f, e) ? f : f.touches[0])[h];
|
|
1347
1347
|
}
|
|
1348
1348
|
function d(f) {
|
|
1349
|
-
return s = f, i = f,
|
|
1349
|
+
return s = f, i = f, o(f);
|
|
1350
1350
|
}
|
|
1351
1351
|
function l(f) {
|
|
1352
|
-
const k =
|
|
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 =
|
|
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,
|
|
1362
1362
|
pointerMove: l,
|
|
1363
1363
|
pointerUp: u,
|
|
1364
|
-
readPoint:
|
|
1364
|
+
readPoint: o
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function vr() {
|
|
1368
1368
|
function t(n) {
|
|
1369
1369
|
const {
|
|
1370
1370
|
offsetTop: s,
|
|
1371
1371
|
offsetLeft: i,
|
|
1372
1372
|
offsetWidth: a,
|
|
1373
|
-
offsetHeight:
|
|
1373
|
+
offsetHeight: o
|
|
1374
1374
|
} = n;
|
|
1375
1375
|
return {
|
|
1376
1376
|
top: s,
|
|
1377
1377
|
right: i + a,
|
|
1378
|
-
bottom: s +
|
|
1378
|
+
bottom: s + o,
|
|
1379
1379
|
left: i,
|
|
1380
1380
|
width: a,
|
|
1381
|
-
height:
|
|
1381
|
+
height: o
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
1384
|
return {
|
|
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
|
}
|
|
@@ -1393,27 +1393,27 @@ function vo(t) {
|
|
|
1393
1393
|
measure: e
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
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(
|
|
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
|
-
(
|
|
1416
|
+
(Me(a) || a(b, m)) && g(m);
|
|
1417
1417
|
}), n.requestAnimationFrame(() => {
|
|
1418
1418
|
d.forEach((m) => l.observe(m));
|
|
1419
1419
|
});
|
|
@@ -1422,68 +1422,68 @@ function yo(t, e, n, s, i, a, r) {
|
|
|
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
|
}
|
|
1429
|
-
function
|
|
1430
|
-
let
|
|
1429
|
+
function xr(t, e, n, s, i, a) {
|
|
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 ? (
|
|
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
|
|
1447
|
-
return
|
|
1446
|
+
function b() {
|
|
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;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1475
|
-
const a = i.measure(10),
|
|
1474
|
+
function Tr(t, e, n, s, i) {
|
|
1475
|
+
const a = i.measure(10), o = i.measure(50), d = fe(0.1, 0.99);
|
|
1476
1476
|
let l = !1;
|
|
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,
|
|
@@ -1491,113 +1491,113 @@ function To(t, e, n, s, i) {
|
|
|
1491
1491
|
toggleActive: f
|
|
1492
1492
|
};
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1495
|
-
const a = fe(-e + t, 0),
|
|
1496
|
-
function u(h,
|
|
1497
|
-
return Ie(h,
|
|
1494
|
+
function Sr(t, e, n, s, i) {
|
|
1495
|
+
const a = fe(-e + t, 0), o = f(), d = y(), l = k();
|
|
1496
|
+
function u(h, v) {
|
|
1497
|
+
return Ie(h, v) <= 1;
|
|
1498
1498
|
}
|
|
1499
1499
|
function y() {
|
|
1500
|
-
const h =
|
|
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() {
|
|
1513
1513
|
if (e <= t + i) return [a.max];
|
|
1514
|
-
if (s === "keepSnaps") return
|
|
1514
|
+
if (s === "keepSnaps") return o;
|
|
1515
1515
|
const {
|
|
1516
1516
|
min: h,
|
|
1517
|
-
max:
|
|
1517
|
+
max: v
|
|
1518
1518
|
} = d;
|
|
1519
|
-
return
|
|
1519
|
+
return o.slice(h, v);
|
|
1520
1520
|
}
|
|
1521
1521
|
return {
|
|
1522
1522
|
snapsContained: l,
|
|
1523
1523
|
scrollContainLimit: d
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function wr(t, e, n) {
|
|
1527
1527
|
const s = e[0], i = n ? s - t : ie(e);
|
|
1528
1528
|
return {
|
|
1529
1529
|
limit: fe(i, s)
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
const a = e.min + 0.1,
|
|
1532
|
+
function Cr(t, e, n, s) {
|
|
1533
|
+
const a = e.min + 0.1, o = e.max + 0.1, {
|
|
1534
1534
|
reachedMin: d,
|
|
1535
1535
|
reachedMax: l
|
|
1536
|
-
} = fe(a,
|
|
1536
|
+
} = fe(a, o);
|
|
1537
1537
|
function u(k) {
|
|
1538
1538
|
return k === 1 ? l(n.get()) : k === -1 ? d(n.get()) : !1;
|
|
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
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function jr(t) {
|
|
1550
1550
|
const {
|
|
1551
1551
|
max: e,
|
|
1552
1552
|
length: n
|
|
1553
1553
|
} = t;
|
|
1554
1554
|
function s(a) {
|
|
1555
|
-
const
|
|
1556
|
-
return n ?
|
|
1555
|
+
const o = a - e;
|
|
1556
|
+
return n ? o / -n : 0;
|
|
1557
1557
|
}
|
|
1558
1558
|
return {
|
|
1559
1559
|
get: s
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Dr(t, e, n, s, i) {
|
|
1563
1563
|
const {
|
|
1564
1564
|
startEdge: a,
|
|
1565
|
-
endEdge:
|
|
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,
|
|
1580
1580
|
snapsAligned: y
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function Ir(t, e, n, s, i, a) {
|
|
1584
1584
|
const {
|
|
1585
|
-
groupSlides:
|
|
1585
|
+
groupSlides: o
|
|
1586
1586
|
} = i, {
|
|
1587
1587
|
min: d,
|
|
1588
1588
|
max: l
|
|
1589
1589
|
} = s, u = y();
|
|
1590
1590
|
function y() {
|
|
1591
|
-
const k =
|
|
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 Io(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
|
-
removeOffset:
|
|
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 Lo(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 {
|
|
@@ -1680,28 +1680,28 @@ function Ao(t, e, n, s, i, a, r) {
|
|
|
1680
1680
|
index: u
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Fr(t, e, n, s, i, a, o, d) {
|
|
1684
1684
|
const l = {
|
|
1685
1685
|
passive: !0,
|
|
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
|
-
|
|
1694
|
-
const m = n.findIndex((T) => T.includes(
|
|
1695
|
-
Qe(m) && (i.useDuration(0), s.index(m, 0),
|
|
1693
|
+
o.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1694
|
+
const m = n.findIndex((T) => T.includes(v));
|
|
1695
|
+
Qe(m) && (i.useDuration(0), s.index(m, 0), o.emit("slideFocus"));
|
|
1696
1696
|
}
|
|
1697
|
-
a.add(document, "keydown", f, !1), e.forEach((
|
|
1698
|
-
a.add(
|
|
1699
|
-
(
|
|
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
|
|
@@ -1713,15 +1713,15 @@ function De(t) {
|
|
|
1713
1713
|
return e;
|
|
1714
1714
|
}
|
|
1715
1715
|
function s(l) {
|
|
1716
|
-
e =
|
|
1716
|
+
e = o(l);
|
|
1717
1717
|
}
|
|
1718
1718
|
function i(l) {
|
|
1719
|
-
e +=
|
|
1719
|
+
e += o(l);
|
|
1720
1720
|
}
|
|
1721
1721
|
function a(l) {
|
|
1722
|
-
e -=
|
|
1722
|
+
e -= o(l);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function o(l) {
|
|
1725
1725
|
return Qe(l) ? l : l.get();
|
|
1726
1726
|
}
|
|
1727
1727
|
return {
|
|
@@ -1732,9 +1732,9 @@ function De(t) {
|
|
|
1732
1732
|
};
|
|
1733
1733
|
}
|
|
1734
1734
|
function Pt(t, e) {
|
|
1735
|
-
const n = t.scroll === "x" ?
|
|
1735
|
+
const n = t.scroll === "x" ? o : d, s = e.style;
|
|
1736
1736
|
let i = null, a = !1;
|
|
1737
|
-
function
|
|
1737
|
+
function o(k) {
|
|
1738
1738
|
return `translate3d(${k}px,0px,0px)`;
|
|
1739
1739
|
}
|
|
1740
1740
|
function d(k) {
|
|
@@ -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[
|
|
1782
|
+
translate: Pt(t, l[_]),
|
|
1783
1783
|
target: () => d.get() > I ? W : R
|
|
1784
1784
|
};
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const j =
|
|
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 -
|
|
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,11 +1816,11 @@ function _o(t, e, n, s, i, a, r, 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
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function Er(t, e, n) {
|
|
1824
1824
|
let s, i = !1;
|
|
1825
1825
|
function a(l) {
|
|
1826
1826
|
if (!n) return;
|
|
@@ -1832,28 +1832,28 @@ function Eo(t, e, n) {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
s = new MutationObserver((y) => {
|
|
1835
|
-
i || (
|
|
1835
|
+
i || (Me(n) || n(l, y)) && u(y);
|
|
1836
1836
|
}), s.observe(t, {
|
|
1837
1837
|
childList: !0
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function o() {
|
|
1841
1841
|
s && s.disconnect(), i = !0;
|
|
1842
1842
|
}
|
|
1843
1843
|
return {
|
|
1844
1844
|
init: a,
|
|
1845
|
-
destroy:
|
|
1845
|
+
destroy: o
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Nr(t, e, n, s) {
|
|
1849
1849
|
const i = {};
|
|
1850
|
-
let a = null,
|
|
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[
|
|
1856
|
-
}), a = null,
|
|
1853
|
+
l || (h.forEach((v) => {
|
|
1854
|
+
const b = e.indexOf(v.target);
|
|
1855
|
+
i[b] = v;
|
|
1856
|
+
}), a = null, o = null, n.emit("slidesInView"));
|
|
1857
1857
|
}, {
|
|
1858
1858
|
root: t.parentElement,
|
|
1859
1859
|
threshold: s
|
|
@@ -1863,18 +1863,18 @@ function Bo(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
|
-
if (!h &&
|
|
1876
|
-
const
|
|
1877
|
-
return h && (a =
|
|
1875
|
+
if (!h && o) return o;
|
|
1876
|
+
const v = f(h);
|
|
1877
|
+
return h && (a = v), h || (o = v), v;
|
|
1878
1878
|
}
|
|
1879
1879
|
return {
|
|
1880
1880
|
init: u,
|
|
@@ -1882,61 +1882,61 @@ function Bo(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
|
-
measureSize:
|
|
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
|
};
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function Pr(t, e, n, s, i, a, o, d, l) {
|
|
1915
1915
|
const {
|
|
1916
1916
|
startEdge: u,
|
|
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 Ro(t, e, n, s, i, a, r) {
|
|
|
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
|
-
endGap:
|
|
1962
|
-
} =
|
|
1963
|
-
snaps:
|
|
1961
|
+
endGap: re
|
|
1962
|
+
} = _r(_, N, $, n, U, i), c = Pr(_, W, b, f, N, $, K, re, j), {
|
|
1963
|
+
snaps: L,
|
|
1964
1964
|
snapsAligned: P
|
|
1965
|
-
} =
|
|
1965
|
+
} = Dr(_, M, N, $, c), z = -ie(L) + ie(Y), {
|
|
1966
1966
|
snapsContained: x,
|
|
1967
1967
|
scrollContainLimit: D
|
|
1968
|
-
} =
|
|
1968
|
+
} = Sr(W, z, P, m, j), C = I ? x : P, {
|
|
1969
1969
|
limit: H
|
|
1970
|
-
} =
|
|
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,22 +1992,22 @@ function Ro(t, e, n, s, i, a, r) {
|
|
|
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
|
-
} =
|
|
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
|
-
eventHandler:
|
|
2005
|
-
containerRect:
|
|
2004
|
+
eventHandler: o,
|
|
2005
|
+
containerRect: N,
|
|
2006
2006
|
slideRects: $,
|
|
2007
2007
|
animation: G,
|
|
2008
|
-
axis:
|
|
2009
|
-
dragHandler:
|
|
2010
|
-
eventStore:
|
|
2008
|
+
axis: _,
|
|
2009
|
+
dragHandler: hr(_, t, s, i, pe, kr(_, i), de, G, Oe, xe, ze, J, o, R, p, h, g, Z, F),
|
|
2010
|
+
eventStore: rt,
|
|
2011
2011
|
percentOfView: R,
|
|
2012
2012
|
index: J,
|
|
2013
2013
|
indexPrevious: X,
|
|
@@ -2016,28 +2016,28 @@ function Ro(t, e, n, s, i, a, r) {
|
|
|
2016
2016
|
offsetLocation: ce,
|
|
2017
2017
|
previousLocation: me,
|
|
2018
2018
|
options: a,
|
|
2019
|
-
resizeHandler:
|
|
2019
|
+
resizeHandler: yr(e, o, i, n, _, T, A),
|
|
2020
2020
|
scrollBody: xe,
|
|
2021
|
-
scrollBounds:
|
|
2022
|
-
scrollLooper:
|
|
2023
|
-
scrollProgress:
|
|
2024
|
-
scrollSnapList: C.map(
|
|
2021
|
+
scrollBounds: Tr(H, ce, pe, xe, R),
|
|
2022
|
+
scrollLooper: Cr(z, H, ce, [de, ce, me, pe]),
|
|
2023
|
+
scrollProgress: ot,
|
|
2024
|
+
scrollSnapList: C.map(ot.get),
|
|
2025
2025
|
scrollSnaps: C,
|
|
2026
|
-
scrollTarget:
|
|
2026
|
+
scrollTarget: ze,
|
|
2027
2027
|
scrollTo: Oe,
|
|
2028
|
-
slideLooper:
|
|
2029
|
-
slideFocus:
|
|
2030
|
-
slidesHandler:
|
|
2031
|
-
slidesInView:
|
|
2028
|
+
slideLooper: Br(_, W, z, ne, Y, L, C, ce, n),
|
|
2029
|
+
slideFocus: zt,
|
|
2030
|
+
slidesHandler: Er(e, o, B),
|
|
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
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function Mr() {
|
|
2041
2041
|
let t = {}, e;
|
|
2042
2042
|
function n(u) {
|
|
2043
2043
|
e = u;
|
|
@@ -2051,7 +2051,7 @@ function zo() {
|
|
|
2051
2051
|
function a(u, y) {
|
|
2052
2052
|
return t[u] = s(u).concat([y]), l;
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function o(u, y) {
|
|
2055
2055
|
return t[u] = s(u).filter((f) => f !== y), l;
|
|
2056
2056
|
}
|
|
2057
2057
|
function d() {
|
|
@@ -2060,13 +2060,13 @@ function zo() {
|
|
|
2060
2060
|
const l = {
|
|
2061
2061
|
init: n,
|
|
2062
2062
|
emit: i,
|
|
2063
|
-
off:
|
|
2063
|
+
off: o,
|
|
2064
2064
|
on: a,
|
|
2065
2065
|
clear: d
|
|
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,
|
|
@@ -2088,16 +2088,16 @@ const Mo = {
|
|
|
2088
2088
|
watchSlides: !0,
|
|
2089
2089
|
watchFocus: !0
|
|
2090
2090
|
};
|
|
2091
|
-
function
|
|
2092
|
-
function e(a,
|
|
2093
|
-
return
|
|
2091
|
+
function Or(t) {
|
|
2092
|
+
function e(a, o) {
|
|
2093
|
+
return Nt(a, o || {});
|
|
2094
2094
|
}
|
|
2095
2095
|
function n(a) {
|
|
2096
|
-
const
|
|
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((
|
|
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,
|
|
@@ -2105,12 +2105,12 @@ function Oo(t) {
|
|
|
2105
2105
|
optionsMediaQueries: s
|
|
2106
2106
|
};
|
|
2107
2107
|
}
|
|
2108
|
-
function $
|
|
2108
|
+
function $r(t) {
|
|
2109
2109
|
let e = [];
|
|
2110
|
-
function n(a,
|
|
2111
|
-
return e =
|
|
2110
|
+
function n(a, o) {
|
|
2111
|
+
return e = o.filter(({
|
|
2112
2112
|
options: d
|
|
2113
|
-
}) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)),
|
|
2113
|
+
}) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)), o.reduce((d, l) => Object.assign(d, {
|
|
2114
2114
|
[l.name]: l
|
|
2115
2115
|
}), {});
|
|
2116
2116
|
}
|
|
@@ -2123,17 +2123,17 @@ function $o(t) {
|
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
2125
|
function Re(t, e, n) {
|
|
2126
|
-
const s = t.ownerDocument, i = s.defaultView, a =
|
|
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 Re(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
2169
|
function R() {
|
|
2170
|
-
|
|
2170
|
+
b || (b = !0, d.clear(), W(), l.emit("destroy"), l.clear());
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2173
|
-
!T.active ||
|
|
2172
|
+
function M(V, w, O) {
|
|
2173
|
+
!T.active || b || (g.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : T.duration), g.scrollTo.index(V, O || 0));
|
|
2174
2174
|
}
|
|
2175
2175
|
function I(V) {
|
|
2176
|
-
const w =
|
|
2177
|
-
|
|
2176
|
+
const w = g.index.add(1).get();
|
|
2177
|
+
M(w, V, -1);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
const w =
|
|
2181
|
-
|
|
2179
|
+
function U(V) {
|
|
2180
|
+
const w = g.index.add(-1).get();
|
|
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
|
-
function
|
|
2193
|
-
return
|
|
2192
|
+
function re() {
|
|
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;
|
|
@@ -2225,67 +2225,67 @@ function Re(t, e, n) {
|
|
|
2225
2225
|
containerNode: H,
|
|
2226
2226
|
internalEngine: D,
|
|
2227
2227
|
destroy: R,
|
|
2228
|
-
off:
|
|
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:
|
|
2237
|
-
scrollProgress:
|
|
2236
|
+
scrollPrev: U,
|
|
2237
|
+
scrollProgress: re,
|
|
2238
2238
|
scrollSnapList: K,
|
|
2239
|
-
scrollTo:
|
|
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(() => {
|
|
2253
2253
|
Xe(n.current, t) || (n.current = t, l());
|
|
2254
2254
|
}, [t, l]), te(() => {
|
|
2255
|
-
|
|
2255
|
+
cr(s.current, e) || (s.current = e, l());
|
|
2256
2256
|
}, [e, l]), te(() => {
|
|
2257
|
-
if (
|
|
2257
|
+
if (dr() && o) {
|
|
2258
2258
|
Re.globalOptions = nt.globalOptions;
|
|
2259
|
-
const u = Re(
|
|
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
|
|
2267
|
-
carouselContainer:
|
|
2268
|
-
viewport:
|
|
2269
|
-
slides:
|
|
2270
|
-
slide:
|
|
2271
|
-
slideInner:
|
|
2272
|
-
loaderOverlay:
|
|
2273
|
-
image:
|
|
2274
|
-
loaded:
|
|
2275
|
-
empty:
|
|
2276
|
-
controls:
|
|
2277
|
-
arrows:
|
|
2278
|
-
dots:
|
|
2266
|
+
const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Ur = "_slideInner_1bu1s_37", qr = "_loaderOverlay_1bu1s_45", Kr = "_image_1bu1s_55", Yr = "_loaded_1bu1s_66", Jr = "_empty_1bu1s_78", Zr = "_controls_1bu1s_84", Xr = "_arrows_1bu1s_94", Qr = "_dots_1bu1s_104", es = "_dot_1bu1s_104", ts = "_dotActive_1bu1s_130", Q = {
|
|
2267
|
+
carouselContainer: Hr,
|
|
2268
|
+
viewport: Wr,
|
|
2269
|
+
slides: Vr,
|
|
2270
|
+
slide: Gr,
|
|
2271
|
+
slideInner: Ur,
|
|
2272
|
+
loaderOverlay: qr,
|
|
2273
|
+
image: Kr,
|
|
2274
|
+
loaded: Yr,
|
|
2275
|
+
empty: Jr,
|
|
2276
|
+
controls: Zr,
|
|
2277
|
+
arrows: Xr,
|
|
2278
|
+
dots: Qr,
|
|
2279
2279
|
dot: es,
|
|
2280
2280
|
dotActive: ts
|
|
2281
|
-
}, ns = cn,
|
|
2281
|
+
}, ns = cn, os = ({
|
|
2282
2282
|
images: t,
|
|
2283
2283
|
autoPlay: e = !1,
|
|
2284
2284
|
autoDelay: n = 5,
|
|
2285
2285
|
showArrows: s = !0,
|
|
2286
2286
|
showDots: i = !0,
|
|
2287
2287
|
variant: a,
|
|
2288
|
-
slidesPerView:
|
|
2288
|
+
slidesPerView: o = 1,
|
|
2289
2289
|
slideSpacing: d = 16,
|
|
2290
2290
|
cornerRadius: l = 0,
|
|
2291
2291
|
"data-color": u,
|
|
@@ -2296,36 +2296,36 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_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
|
|
2304
|
-
T((
|
|
2305
|
-
const I = [...
|
|
2303
|
+
const B = ae((R) => {
|
|
2304
|
+
T((M) => {
|
|
2305
|
+
const I = [...M];
|
|
2306
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 || !
|
|
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
2320
|
const R = window.setInterval(() => {
|
|
2321
|
-
|
|
2321
|
+
p.canScrollNext() && p.scrollNext();
|
|
2322
2322
|
}, F);
|
|
2323
2323
|
return () => {
|
|
2324
2324
|
window.clearInterval(R);
|
|
2325
2325
|
};
|
|
2326
|
-
}, [e, F,
|
|
2327
|
-
const $ = Math.max(1,
|
|
2328
|
-
return /* @__PURE__ */
|
|
2326
|
+
}, [e, F, p, t]);
|
|
2327
|
+
const $ = Math.max(1, o), _ = `${100 / $}%`, W = d / 2;
|
|
2328
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2329
2329
|
"div",
|
|
2330
2330
|
{
|
|
2331
2331
|
className: Q.carouselContainer,
|
|
@@ -2333,7 +2333,7 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
|
|
|
2333
2333
|
"data-size": y,
|
|
2334
2334
|
"data-variant": a,
|
|
2335
2335
|
children: [
|
|
2336
|
-
/* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ r.jsx("div", { className: Q.viewport, ref: k, children: /* @__PURE__ */ r.jsx(
|
|
2337
2337
|
"div",
|
|
2338
2338
|
{
|
|
2339
2339
|
className: Q.slides,
|
|
@@ -2341,78 +2341,78 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
|
|
|
2341
2341
|
marginLeft: `-${W}px`,
|
|
2342
2342
|
marginRight: `-${W}px`
|
|
2343
2343
|
},
|
|
2344
|
-
children: t && t.length > 0 ? t.map((R,
|
|
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,
|
|
2353
2353
|
overflow: "hidden"
|
|
2354
2354
|
// Ensure radius clips content
|
|
2355
2355
|
},
|
|
2356
|
-
children: /* @__PURE__ */
|
|
2357
|
-
!m[
|
|
2358
|
-
/* @__PURE__ */
|
|
2356
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: Q.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2357
|
+
!m[M] && /* @__PURE__ */ r.jsx("div", { className: Q.loaderOverlay, children: /* @__PURE__ */ r.jsx(ns, { "aria-label": "Laster bilde" }) }),
|
|
2358
|
+
/* @__PURE__ */ r.jsx(
|
|
2359
2359
|
"img",
|
|
2360
2360
|
{
|
|
2361
|
-
className: `${Q.image} ${m[
|
|
2361
|
+
className: `${Q.image} ${m[M] ? Q.loaded : Q.loadingImage}`,
|
|
2362
2362
|
src: R.src,
|
|
2363
2363
|
alt: R.alt,
|
|
2364
|
-
loading:
|
|
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-${
|
|
2375
|
-
)) : /* @__PURE__ */
|
|
2374
|
+
`image-${M}-${R.src}`
|
|
2375
|
+
)) : /* @__PURE__ */ r.jsx("div", { className: Q.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ r.jsx("div", { className: Q.empty, children: "Ingen bilder" }) })
|
|
2376
2376
|
}
|
|
2377
2377
|
) }),
|
|
2378
|
-
(s || i && t && t.length > 1) && /* @__PURE__ */
|
|
2379
|
-
s && /* @__PURE__ */
|
|
2380
|
-
/* @__PURE__ */
|
|
2378
|
+
(s || i && t && t.length > 1) && /* @__PURE__ */ r.jsxs("div", { className: Q.controls, "aria-hidden": "false", children: [
|
|
2379
|
+
s && /* @__PURE__ */ r.jsxs("div", { className: Q.arrows, children: [
|
|
2380
|
+
/* @__PURE__ */ r.jsx(
|
|
2381
2381
|
ye,
|
|
2382
2382
|
{
|
|
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
|
-
children: /* @__PURE__ */
|
|
2388
|
+
children: /* @__PURE__ */ r.jsx(Xn, { "aria-hidden": !0 })
|
|
2389
2389
|
}
|
|
2390
2390
|
),
|
|
2391
|
-
/* @__PURE__ */
|
|
2391
|
+
/* @__PURE__ */ r.jsx(
|
|
2392
2392
|
ye,
|
|
2393
2393
|
{
|
|
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
|
-
children: /* @__PURE__ */
|
|
2399
|
+
children: /* @__PURE__ */ r.jsx(Qn, { "aria-hidden": !0 })
|
|
2400
2400
|
}
|
|
2401
2401
|
)
|
|
2402
2402
|
] }),
|
|
2403
|
-
i && t && t.length > 1 && /* @__PURE__ */
|
|
2404
|
-
const I =
|
|
2405
|
-
return /* @__PURE__ */
|
|
2403
|
+
i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: b.map((R, M) => {
|
|
2404
|
+
const I = M === h;
|
|
2405
|
+
return /* @__PURE__ */ r.jsx(
|
|
2406
2406
|
"button",
|
|
2407
2407
|
{
|
|
2408
2408
|
type: "button",
|
|
2409
2409
|
className: `${Q.dot} ${I ? Q.dotActive : ""}`,
|
|
2410
|
-
onClick: () => j(
|
|
2411
|
-
"aria-label": `Gå til bilde ${
|
|
2410
|
+
onClick: () => j(M),
|
|
2411
|
+
"aria-label": `Gå til bilde ${M + 1}`,
|
|
2412
2412
|
"aria-selected": I,
|
|
2413
2413
|
role: "tab"
|
|
2414
2414
|
},
|
|
2415
|
-
`dot-${
|
|
2415
|
+
`dot-${M}`
|
|
2416
2416
|
);
|
|
2417
2417
|
}) })
|
|
2418
2418
|
] })
|
|
@@ -2420,25 +2420,25 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
|
|
|
2420
2420
|
}
|
|
2421
2421
|
);
|
|
2422
2422
|
};
|
|
2423
|
-
|
|
2424
|
-
const Ca = un, ja = mn, Da =
|
|
2425
|
-
|
|
2423
|
+
os.displayName = "Carousel";
|
|
2424
|
+
const Ca = un, ja = mn, Da = pn, ee = gn, Ia = fn, Aa = hn, rs = kn, ss = vn;
|
|
2425
|
+
rs.displayName = "Field.Description";
|
|
2426
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
|
-
const Fa = yn, is = ue((t, e) => /* @__PURE__ */
|
|
2429
|
+
const Fa = yn, is = ue((t, e) => /* @__PURE__ */ r.jsx(xn, { ref: e, ...t }));
|
|
2430
2430
|
is.displayName = "Label";
|
|
2431
|
-
const
|
|
2432
|
-
(t, e) => /* @__PURE__ */
|
|
2431
|
+
const _e = Tn, Ba = Sn, Ea = wn, Na = Cn, Ze = ue(
|
|
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
|
-
}),
|
|
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",
|
|
@@ -3251,6 +3321,7 @@ const cs = {
|
|
|
3251
3321
|
design: "Design",
|
|
3252
3322
|
components: "Components",
|
|
3253
3323
|
code: "Code",
|
|
3324
|
+
tokens: "Tokens",
|
|
3254
3325
|
work: "Our Work",
|
|
3255
3326
|
volunteer: "Volunteer",
|
|
3256
3327
|
courses: "Courses & Training"
|
|
@@ -3477,20 +3548,88 @@ const cs = {
|
|
|
3477
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.'
|
|
3478
3549
|
},
|
|
3479
3550
|
figmaMcp: {
|
|
3480
|
-
title: "From Figma to Code with MCP",
|
|
3481
|
-
intro: "
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
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."'
|
|
3494
3633
|
},
|
|
3495
3634
|
metadataFiles: {
|
|
3496
3635
|
title: "Metadata Files",
|
|
@@ -4013,31 +4152,31 @@ const cs = {
|
|
|
4013
4152
|
}
|
|
4014
4153
|
}
|
|
4015
4154
|
}, Rt = Kt(void 0), Ka = ({ children: t }) => {
|
|
4016
|
-
const [e, n] =
|
|
4155
|
+
const [e, n] = oe("NO"), s = (i) => {
|
|
4017
4156
|
const a = i.split(".");
|
|
4018
|
-
let
|
|
4157
|
+
let o = cs[e];
|
|
4019
4158
|
for (const d of a) {
|
|
4020
|
-
if (
|
|
4159
|
+
if (o[d] === void 0)
|
|
4021
4160
|
return console.warn(`Translation missing for key: ${i} in language: ${e}`), i;
|
|
4022
|
-
|
|
4161
|
+
o = o[d];
|
|
4023
4162
|
}
|
|
4024
|
-
return
|
|
4163
|
+
return o;
|
|
4025
4164
|
};
|
|
4026
|
-
return /* @__PURE__ */
|
|
4165
|
+
return /* @__PURE__ */ r.jsx(Rt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
|
|
4027
4166
|
}, us = () => {
|
|
4028
4167
|
const t = Yt(Rt);
|
|
4029
4168
|
if (t === void 0)
|
|
4030
4169
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
4031
4170
|
return t;
|
|
4032
|
-
}, 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 = {
|
|
4033
4172
|
header: ms,
|
|
4034
|
-
languageSwitch:
|
|
4035
|
-
searchOverlay:
|
|
4173
|
+
languageSwitch: ps,
|
|
4174
|
+
searchOverlay: gs,
|
|
4036
4175
|
headerExtension: fs,
|
|
4037
4176
|
extensionContentWrapper: hs,
|
|
4038
4177
|
extensionContent: ks,
|
|
4039
|
-
extensionDivider:
|
|
4040
|
-
languageLabel:
|
|
4178
|
+
extensionDivider: vs,
|
|
4179
|
+
languageLabel: bs,
|
|
4041
4180
|
languageLink: ys,
|
|
4042
4181
|
headerInner: xs,
|
|
4043
4182
|
logoWrapper: Ts,
|
|
@@ -4047,25 +4186,25 @@ const cs = {
|
|
|
4047
4186
|
slotContainer: js,
|
|
4048
4187
|
slotText: Ds,
|
|
4049
4188
|
secondaryLogo: Is,
|
|
4050
|
-
redCrossLogo:
|
|
4051
|
-
primaryLogo:
|
|
4189
|
+
redCrossLogo: As,
|
|
4190
|
+
primaryLogo: Ls,
|
|
4052
4191
|
navItems: Fs,
|
|
4053
|
-
navLink:
|
|
4192
|
+
navLink: Bs,
|
|
4054
4193
|
actions: Es,
|
|
4055
|
-
ctaButton:
|
|
4056
|
-
themeToggle:
|
|
4194
|
+
ctaButton: Ns,
|
|
4195
|
+
themeToggle: _s,
|
|
4057
4196
|
userInfo: Ps,
|
|
4058
4197
|
userName: Rs,
|
|
4059
|
-
loginLink:
|
|
4060
|
-
loginText:
|
|
4198
|
+
loginLink: Ms,
|
|
4199
|
+
loginText: zs,
|
|
4061
4200
|
underline: Os,
|
|
4062
4201
|
searchButtonWrapper: $s,
|
|
4063
4202
|
buttonText: Hs,
|
|
4064
4203
|
menuButton: Ws,
|
|
4065
4204
|
menuOverlay: Vs,
|
|
4066
4205
|
searchContent: Gs,
|
|
4067
|
-
menuContent:
|
|
4068
|
-
menuLeftColumn:
|
|
4206
|
+
menuContent: Us,
|
|
4207
|
+
menuLeftColumn: qs,
|
|
4069
4208
|
menuRightColumn: Ks,
|
|
4070
4209
|
slotContent: Ys,
|
|
4071
4210
|
navList: Js,
|
|
@@ -4075,8 +4214,8 @@ const cs = {
|
|
|
4075
4214
|
suggestionsTitle: ea,
|
|
4076
4215
|
searchResults: ta,
|
|
4077
4216
|
resultList: na,
|
|
4078
|
-
resultItem:
|
|
4079
|
-
resultLink:
|
|
4217
|
+
resultItem: oa,
|
|
4218
|
+
resultLink: ra,
|
|
4080
4219
|
suggestionIcon: sa,
|
|
4081
4220
|
suggestionText: aa,
|
|
4082
4221
|
highlightedText: ia,
|
|
@@ -4153,30 +4292,30 @@ const cs = {
|
|
|
4153
4292
|
showUser: s = !0,
|
|
4154
4293
|
showSearch: i = !0,
|
|
4155
4294
|
showLogin: a = !0,
|
|
4156
|
-
showCta:
|
|
4295
|
+
showCta: o = !1,
|
|
4157
4296
|
ctaLabel: d,
|
|
4158
|
-
ctaIcon: l = /* @__PURE__ */
|
|
4297
|
+
ctaIcon: l = /* @__PURE__ */ r.jsx(to, { "aria-hidden": !0 }),
|
|
4159
4298
|
onCtaClick: u,
|
|
4160
4299
|
showThemeToggle: y = !1,
|
|
4161
4300
|
secondaryLogo: f = !1,
|
|
4162
4301
|
secondaryLogoSrc: k,
|
|
4163
|
-
secondaryLogoSrcDark:
|
|
4302
|
+
secondaryLogoSrcDark: p,
|
|
4164
4303
|
secondaryLogoAlt: h = "Secondary Logo",
|
|
4165
|
-
navItems:
|
|
4166
|
-
showNavItems:
|
|
4167
|
-
showMenuButton:
|
|
4304
|
+
navItems: v,
|
|
4305
|
+
showNavItems: b = !0,
|
|
4306
|
+
showMenuButton: g = !0,
|
|
4168
4307
|
showHeaderExtension: m = !1,
|
|
4169
4308
|
showModeToggle: T = !1,
|
|
4170
|
-
showLanguageSwitch:
|
|
4309
|
+
showLanguageSwitch: B = !1
|
|
4171
4310
|
}) => {
|
|
4172
|
-
const [F, E] =
|
|
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);
|
|
4173
4312
|
te(() => {
|
|
4174
4313
|
const x = "rk-header-inline-styles";
|
|
4175
4314
|
if (typeof document > "u" || document.getElementById(x)) return;
|
|
4176
4315
|
const D = ma(S), C = document.createElement("style");
|
|
4177
4316
|
C.id = x, C.textContent = D, document.head.appendChild(C);
|
|
4178
4317
|
}, []);
|
|
4179
|
-
const Y = () => /* @__PURE__ */
|
|
4318
|
+
const Y = () => /* @__PURE__ */ r.jsxs(
|
|
4180
4319
|
"svg",
|
|
4181
4320
|
{
|
|
4182
4321
|
width: "170",
|
|
@@ -4188,29 +4327,29 @@ const cs = {
|
|
|
4188
4327
|
focusable: "false",
|
|
4189
4328
|
className: S.redCrossLogo,
|
|
4190
4329
|
children: [
|
|
4191
|
-
/* @__PURE__ */
|
|
4192
|
-
/* @__PURE__ */
|
|
4193
|
-
/* @__PURE__ */
|
|
4194
|
-
/* @__PURE__ */
|
|
4195
|
-
/* @__PURE__ */
|
|
4196
|
-
/* @__PURE__ */
|
|
4197
|
-
/* @__PURE__ */
|
|
4198
|
-
/* @__PURE__ */
|
|
4199
|
-
/* @__PURE__ */
|
|
4200
|
-
/* @__PURE__ */
|
|
4330
|
+
/* @__PURE__ */ r.jsx("path", { d: "M76.1036 48.1397C77.8925 47.8781 79.6984 47.7525 81.5061 47.7639C84.1713 47.7639 86.0396 48.1669 87.3182 49.1857C87.8735 49.639 88.3149 50.2176 88.6067 50.8744C88.8984 51.5312 89.0323 52.2479 88.9974 52.9665C88.9839 53.9451 88.6724 54.896 88.1049 55.691C87.5373 56.4861 86.7411 57.087 85.8235 57.4129V57.4944C87.0796 58.006 87.7684 59.2104 88.2231 60.8722C88.7813 62.9097 89.3441 65.2688 89.6907 65.9661H85.5309C85.2382 65.4544 84.7835 63.9829 84.2793 61.7597C83.7751 59.5365 83.0097 58.8527 81.344 58.8527H80.1284V65.9661H76.1036V48.1397ZM80.1284 55.9141H81.7312C83.7526 55.9141 84.9546 54.8954 84.9546 53.3151C84.9546 51.6534 83.8336 50.8202 81.9698 50.7931C81.3532 50.7814 80.7368 50.8268 80.1284 50.9289V55.9141Z", fill: "#1E1E1E" }),
|
|
4331
|
+
/* @__PURE__ */ r.jsx("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
|
|
4332
|
+
/* @__PURE__ */ r.jsx("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
|
|
4333
|
+
/* @__PURE__ */ r.jsx("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
|
|
4334
|
+
/* @__PURE__ */ r.jsx("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
|
|
4335
|
+
/* @__PURE__ */ r.jsx("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
|
|
4336
|
+
/* @__PURE__ */ r.jsx("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
|
|
4337
|
+
/* @__PURE__ */ r.jsx("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
|
|
4338
|
+
/* @__PURE__ */ r.jsx("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
4339
|
+
/* @__PURE__ */ r.jsx("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
4201
4340
|
]
|
|
4202
4341
|
}
|
|
4203
4342
|
);
|
|
4204
4343
|
te(() => {
|
|
4205
|
-
E(!1),
|
|
4344
|
+
E(!1), A(!1), $("");
|
|
4206
4345
|
}, [t]), te(() => {
|
|
4207
|
-
if (!(typeof document > "u") && F &&
|
|
4346
|
+
if (!(typeof document > "u") && F && U) {
|
|
4208
4347
|
const x = document.body.style.overflow;
|
|
4209
4348
|
return document.body.style.overflow = "hidden", () => {
|
|
4210
4349
|
document.body.style.overflow = x;
|
|
4211
4350
|
};
|
|
4212
4351
|
}
|
|
4213
|
-
}, [F,
|
|
4352
|
+
}, [F, U]), te(() => {
|
|
4214
4353
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4215
4354
|
const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
|
|
4216
4355
|
return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
|
|
@@ -4231,7 +4370,7 @@ const cs = {
|
|
|
4231
4370
|
return C.observe(x), () => {
|
|
4232
4371
|
window.removeEventListener("resize", D), C.disconnect();
|
|
4233
4372
|
};
|
|
4234
|
-
}, [
|
|
4373
|
+
}, [U]), te(() => {
|
|
4235
4374
|
if (typeof document > "u") return;
|
|
4236
4375
|
const x = document.querySelector(`.${S.logoWrapper}`);
|
|
4237
4376
|
if (!x) return;
|
|
@@ -4240,7 +4379,7 @@ const cs = {
|
|
|
4240
4379
|
document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
|
|
4241
4380
|
};
|
|
4242
4381
|
return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
|
|
4243
|
-
}, [
|
|
4382
|
+
}, [U]), te(() => {
|
|
4244
4383
|
if (typeof document > "u" || !j) {
|
|
4245
4384
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4246
4385
|
return;
|
|
@@ -4258,47 +4397,47 @@ const cs = {
|
|
|
4258
4397
|
};
|
|
4259
4398
|
}, [j]);
|
|
4260
4399
|
const K = () => {
|
|
4261
|
-
const x =
|
|
4400
|
+
const x = _ === "light" ? "dark" : "light";
|
|
4262
4401
|
W(x), document.documentElement.setAttribute("data-color-scheme", x);
|
|
4263
|
-
},
|
|
4264
|
-
e && (x.preventDefault(), e("home")), E(!1),
|
|
4402
|
+
}, re = (x) => {
|
|
4403
|
+
e && (x.preventDefault(), e("home")), E(!1), A(!1);
|
|
4265
4404
|
}, c = () => {
|
|
4266
|
-
E(!F), j &&
|
|
4405
|
+
E(!F), j && A(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
|
|
4267
4406
|
const x = document.querySelector(`.${S.header}`);
|
|
4268
4407
|
if (x) {
|
|
4269
4408
|
const D = x.offsetHeight;
|
|
4270
4409
|
document.documentElement.style.setProperty("--header-height-mobile", `${D}px`);
|
|
4271
4410
|
}
|
|
4272
4411
|
});
|
|
4273
|
-
},
|
|
4274
|
-
|
|
4275
|
-
}, P =
|
|
4276
|
-
if (!
|
|
4277
|
-
const x =
|
|
4412
|
+
}, L = () => {
|
|
4413
|
+
A(!j), F && E(!1);
|
|
4414
|
+
}, P = be(() => {
|
|
4415
|
+
if (!N.trim()) return [];
|
|
4416
|
+
const x = N.toLowerCase();
|
|
4278
4417
|
return ua.filter(
|
|
4279
4418
|
(D) => D.title.toLowerCase().startsWith(x)
|
|
4280
4419
|
);
|
|
4281
|
-
}, [
|
|
4282
|
-
e && e(x),
|
|
4420
|
+
}, [N]), z = (x) => {
|
|
4421
|
+
e && e(x), A(!1), $("");
|
|
4283
4422
|
};
|
|
4284
|
-
return /* @__PURE__ */
|
|
4285
|
-
m && /* @__PURE__ */
|
|
4286
|
-
T && /* @__PURE__ */
|
|
4287
|
-
|
|
4423
|
+
return /* @__PURE__ */ r.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
|
|
4424
|
+
m && /* @__PURE__ */ r.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: S.extensionContentWrapper, children: [
|
|
4425
|
+
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4426
|
+
Ue,
|
|
4288
4427
|
{
|
|
4289
4428
|
"data-size": "sm",
|
|
4290
|
-
checked:
|
|
4429
|
+
checked: _ === "dark",
|
|
4291
4430
|
onChange: K,
|
|
4292
4431
|
label: I("header.darkMode"),
|
|
4293
4432
|
color: "neutral",
|
|
4294
4433
|
"data-color-scheme": "light"
|
|
4295
4434
|
}
|
|
4296
4435
|
) }),
|
|
4297
|
-
T &&
|
|
4298
|
-
|
|
4299
|
-
/* @__PURE__ */
|
|
4300
|
-
/* @__PURE__ */
|
|
4301
|
-
/* @__PURE__ */
|
|
4436
|
+
T && B && /* @__PURE__ */ r.jsx("div", { className: S.extensionDivider }),
|
|
4437
|
+
B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
|
|
4438
|
+
/* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4439
|
+
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4440
|
+
/* @__PURE__ */ r.jsxs(
|
|
4302
4441
|
ee.Trigger,
|
|
4303
4442
|
{
|
|
4304
4443
|
className: S.languageLink,
|
|
@@ -4307,47 +4446,47 @@ const cs = {
|
|
|
4307
4446
|
children: [
|
|
4308
4447
|
R,
|
|
4309
4448
|
" ",
|
|
4310
|
-
/* @__PURE__ */
|
|
4449
|
+
/* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
|
|
4311
4450
|
]
|
|
4312
4451
|
}
|
|
4313
4452
|
),
|
|
4314
|
-
/* @__PURE__ */
|
|
4453
|
+
/* @__PURE__ */ r.jsx(
|
|
4315
4454
|
ee,
|
|
4316
4455
|
{
|
|
4317
|
-
"data-color-scheme":
|
|
4456
|
+
"data-color-scheme": _,
|
|
4318
4457
|
placement: "bottom-end",
|
|
4319
|
-
children: /* @__PURE__ */
|
|
4320
|
-
/* @__PURE__ */
|
|
4321
|
-
/* @__PURE__ */
|
|
4458
|
+
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4459
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
|
|
4460
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
|
|
4322
4461
|
] })
|
|
4323
4462
|
}
|
|
4324
4463
|
)
|
|
4325
4464
|
] })
|
|
4326
4465
|
] })
|
|
4327
4466
|
] }) }),
|
|
4328
|
-
/* @__PURE__ */
|
|
4329
|
-
/* @__PURE__ */
|
|
4330
|
-
/* @__PURE__ */
|
|
4331
|
-
|
|
4467
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.headerInner, children: [
|
|
4468
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.logoWrapper, children: [
|
|
4469
|
+
/* @__PURE__ */ r.jsx(
|
|
4470
|
+
_e,
|
|
4332
4471
|
{
|
|
4333
4472
|
href: "/",
|
|
4334
4473
|
className: `${S.logo} ${S.primaryLogo}`,
|
|
4335
4474
|
"aria-label": I("header.homeAriaLabel"),
|
|
4336
|
-
onClick:
|
|
4337
|
-
children: /* @__PURE__ */
|
|
4475
|
+
onClick: re,
|
|
4476
|
+
children: /* @__PURE__ */ r.jsx(Y, {})
|
|
4338
4477
|
}
|
|
4339
4478
|
),
|
|
4340
|
-
/* @__PURE__ */
|
|
4479
|
+
/* @__PURE__ */ r.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
|
|
4341
4480
|
"img",
|
|
4342
4481
|
{
|
|
4343
|
-
src:
|
|
4482
|
+
src: _ === "dark" && p ? p : k,
|
|
4344
4483
|
alt: h,
|
|
4345
4484
|
className: S.secondaryLogo
|
|
4346
4485
|
}
|
|
4347
|
-
) : f ? /* @__PURE__ */
|
|
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 })
|
|
4348
4487
|
] }),
|
|
4349
|
-
|
|
4350
|
-
|
|
4488
|
+
b && v && v.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: v.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4489
|
+
_e,
|
|
4351
4490
|
{
|
|
4352
4491
|
href: x.href,
|
|
4353
4492
|
className: S.navLink,
|
|
@@ -4358,8 +4497,8 @@ const cs = {
|
|
|
4358
4497
|
},
|
|
4359
4498
|
D
|
|
4360
4499
|
)) }),
|
|
4361
|
-
/* @__PURE__ */
|
|
4362
|
-
|
|
4500
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.actions, children: [
|
|
4501
|
+
o && /* @__PURE__ */ r.jsxs(
|
|
4363
4502
|
ye,
|
|
4364
4503
|
{
|
|
4365
4504
|
variant: "primary",
|
|
@@ -4369,42 +4508,42 @@ const cs = {
|
|
|
4369
4508
|
onClick: u,
|
|
4370
4509
|
children: [
|
|
4371
4510
|
l,
|
|
4372
|
-
/* @__PURE__ */
|
|
4511
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: d || I("header.supportUs") })
|
|
4373
4512
|
]
|
|
4374
4513
|
}
|
|
4375
4514
|
),
|
|
4376
|
-
!m && y && /* @__PURE__ */
|
|
4377
|
-
|
|
4515
|
+
!m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
|
|
4516
|
+
Ue,
|
|
4378
4517
|
{
|
|
4379
|
-
checked:
|
|
4518
|
+
checked: _ === "dark",
|
|
4380
4519
|
onChange: K,
|
|
4381
4520
|
"aria-label": I("header.toggleTheme")
|
|
4382
4521
|
}
|
|
4383
4522
|
) }),
|
|
4384
|
-
s && /* @__PURE__ */
|
|
4385
|
-
/* @__PURE__ */
|
|
4386
|
-
/* @__PURE__ */
|
|
4523
|
+
s && /* @__PURE__ */ r.jsxs("div", { className: S.userInfo, children: [
|
|
4524
|
+
/* @__PURE__ */ r.jsx(Ze, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
|
|
4525
|
+
/* @__PURE__ */ r.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4387
4526
|
] }),
|
|
4388
|
-
a && /* @__PURE__ */
|
|
4389
|
-
/* @__PURE__ */
|
|
4390
|
-
/* @__PURE__ */
|
|
4527
|
+
a && /* @__PURE__ */ r.jsxs("a", { href: "#", className: S.loginLink, children: [
|
|
4528
|
+
/* @__PURE__ */ r.jsx("span", { className: S.loginText, children: I("header.login") }),
|
|
4529
|
+
/* @__PURE__ */ r.jsx("div", { className: S.underline })
|
|
4391
4530
|
] }),
|
|
4392
|
-
i && /* @__PURE__ */
|
|
4531
|
+
i && /* @__PURE__ */ r.jsx("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
4393
4532
|
ye,
|
|
4394
4533
|
{
|
|
4395
4534
|
variant: "secondary",
|
|
4396
4535
|
"data-color": "main",
|
|
4397
4536
|
"data-size": "md",
|
|
4398
|
-
onClick:
|
|
4537
|
+
onClick: L,
|
|
4399
4538
|
"aria-expanded": j,
|
|
4400
4539
|
"aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
|
|
4401
4540
|
children: [
|
|
4402
|
-
j ? /* @__PURE__ */
|
|
4403
|
-
/* @__PURE__ */
|
|
4541
|
+
j ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
|
|
4542
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
|
|
4404
4543
|
]
|
|
4405
4544
|
}
|
|
4406
4545
|
) }),
|
|
4407
|
-
(
|
|
4546
|
+
(g || U) && /* @__PURE__ */ r.jsxs(
|
|
4408
4547
|
ye,
|
|
4409
4548
|
{
|
|
4410
4549
|
variant: "primary",
|
|
@@ -4415,21 +4554,21 @@ const cs = {
|
|
|
4415
4554
|
"aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
|
|
4416
4555
|
className: S.menuButton,
|
|
4417
4556
|
children: [
|
|
4418
|
-
F ? /* @__PURE__ */
|
|
4419
|
-
/* @__PURE__ */
|
|
4557
|
+
F ? /* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
|
|
4558
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
|
|
4420
4559
|
]
|
|
4421
4560
|
}
|
|
4422
4561
|
)
|
|
4423
4562
|
] })
|
|
4424
4563
|
] }),
|
|
4425
|
-
F && /* @__PURE__ */
|
|
4426
|
-
/* @__PURE__ */
|
|
4427
|
-
/* @__PURE__ */
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
/* @__PURE__ */
|
|
4431
|
-
/* @__PURE__ */
|
|
4432
|
-
/* @__PURE__ */
|
|
4564
|
+
F && /* @__PURE__ */ r.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.menuContent, children: [
|
|
4565
|
+
/* @__PURE__ */ r.jsx("div", { className: S.menuLeftColumn }),
|
|
4566
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.menuRightColumn, children: [
|
|
4567
|
+
U && (B || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
|
|
4568
|
+
B && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
|
|
4569
|
+
/* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4570
|
+
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4571
|
+
/* @__PURE__ */ r.jsxs(
|
|
4433
4572
|
ee.Trigger,
|
|
4434
4573
|
{
|
|
4435
4574
|
className: S.languageLink,
|
|
@@ -4438,28 +4577,28 @@ const cs = {
|
|
|
4438
4577
|
children: [
|
|
4439
4578
|
R,
|
|
4440
4579
|
" ",
|
|
4441
|
-
/* @__PURE__ */
|
|
4580
|
+
/* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 })
|
|
4442
4581
|
]
|
|
4443
4582
|
}
|
|
4444
4583
|
),
|
|
4445
|
-
/* @__PURE__ */
|
|
4584
|
+
/* @__PURE__ */ r.jsx(
|
|
4446
4585
|
ee,
|
|
4447
4586
|
{
|
|
4448
|
-
"data-color-scheme":
|
|
4587
|
+
"data-color-scheme": _,
|
|
4449
4588
|
placement: "bottom-start",
|
|
4450
|
-
children: /* @__PURE__ */
|
|
4451
|
-
/* @__PURE__ */
|
|
4452
|
-
/* @__PURE__ */
|
|
4589
|
+
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4590
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
|
|
4591
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
|
|
4453
4592
|
] })
|
|
4454
4593
|
}
|
|
4455
4594
|
)
|
|
4456
4595
|
] })
|
|
4457
4596
|
] }),
|
|
4458
|
-
T && /* @__PURE__ */
|
|
4459
|
-
|
|
4597
|
+
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4598
|
+
Ue,
|
|
4460
4599
|
{
|
|
4461
4600
|
"data-size": "sm",
|
|
4462
|
-
checked:
|
|
4601
|
+
checked: _ === "dark",
|
|
4463
4602
|
onChange: K,
|
|
4464
4603
|
label: I("header.darkMode"),
|
|
4465
4604
|
color: "neutral",
|
|
@@ -4467,10 +4606,10 @@ const cs = {
|
|
|
4467
4606
|
}
|
|
4468
4607
|
) })
|
|
4469
4608
|
] }),
|
|
4470
|
-
/* @__PURE__ */
|
|
4609
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
|
|
4471
4610
|
n,
|
|
4472
|
-
|
|
4473
|
-
|
|
4611
|
+
U && b && v && v.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: v.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4612
|
+
_e,
|
|
4474
4613
|
{
|
|
4475
4614
|
href: x.href,
|
|
4476
4615
|
className: S.navLink,
|
|
@@ -4482,53 +4621,53 @@ const cs = {
|
|
|
4482
4621
|
D
|
|
4483
4622
|
)) })
|
|
4484
4623
|
] }),
|
|
4485
|
-
|
|
4624
|
+
U && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
|
|
4486
4625
|
] })
|
|
4487
4626
|
] }) }),
|
|
4488
|
-
j && /* @__PURE__ */
|
|
4489
|
-
/* @__PURE__ */
|
|
4490
|
-
/* @__PURE__ */
|
|
4627
|
+
j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
|
|
4628
|
+
/* @__PURE__ */ r.jsxs(Pe, { children: [
|
|
4629
|
+
/* @__PURE__ */ r.jsx(
|
|
4491
4630
|
Pe.Input,
|
|
4492
4631
|
{
|
|
4493
4632
|
"aria-label": I("header.search"),
|
|
4494
4633
|
placeholder: I("header.searchPlaceholder"),
|
|
4495
|
-
value:
|
|
4634
|
+
value: N,
|
|
4496
4635
|
onChange: (x) => $(x.target.value)
|
|
4497
4636
|
}
|
|
4498
4637
|
),
|
|
4499
|
-
/* @__PURE__ */
|
|
4500
|
-
/* @__PURE__ */
|
|
4638
|
+
/* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": I("header.search") }),
|
|
4639
|
+
/* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": I("header.clearSearch") })
|
|
4501
4640
|
] }),
|
|
4502
|
-
|
|
4503
|
-
/* @__PURE__ */
|
|
4504
|
-
/* @__PURE__ */
|
|
4641
|
+
N && /* @__PURE__ */ r.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: S.suggestionsSection, children: [
|
|
4642
|
+
/* @__PURE__ */ r.jsx("h3", { className: S.suggestionsTitle, children: I("header.suggestions") }),
|
|
4643
|
+
/* @__PURE__ */ r.jsx("ul", { className: S.resultList, children: P.slice(0, 5).map((x) => /* @__PURE__ */ r.jsx("li", { className: S.resultItem, children: /* @__PURE__ */ r.jsxs(
|
|
4505
4644
|
"button",
|
|
4506
4645
|
{
|
|
4507
4646
|
className: S.resultLink,
|
|
4508
|
-
onClick: () =>
|
|
4647
|
+
onClick: () => z(x.path),
|
|
4509
4648
|
children: [
|
|
4510
|
-
/* @__PURE__ */
|
|
4511
|
-
/* @__PURE__ */
|
|
4512
|
-
const D = x.title.toLowerCase().indexOf(
|
|
4513
|
-
if (D === -1) return /* @__PURE__ */
|
|
4514
|
-
const C = x.title.slice(0, D), H = x.title.slice(D, D +
|
|
4515
|
-
return /* @__PURE__ */
|
|
4516
|
-
/* @__PURE__ */
|
|
4517
|
-
/* @__PURE__ */
|
|
4518
|
-
/* @__PURE__ */
|
|
4649
|
+
/* @__PURE__ */ r.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
|
|
4650
|
+
/* @__PURE__ */ r.jsx("span", { className: S.suggestionText, children: (() => {
|
|
4651
|
+
const D = x.title.toLowerCase().indexOf(N.toLowerCase());
|
|
4652
|
+
if (D === -1) return /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: x.title });
|
|
4653
|
+
const C = x.title.slice(0, D), H = x.title.slice(D, D + N.length), J = x.title.slice(D + N.length);
|
|
4654
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4655
|
+
/* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: C }),
|
|
4656
|
+
/* @__PURE__ */ r.jsx("span", { className: S.highlightedText, children: H }),
|
|
4657
|
+
/* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: J })
|
|
4519
4658
|
] });
|
|
4520
4659
|
})() })
|
|
4521
4660
|
]
|
|
4522
4661
|
}
|
|
4523
4662
|
) }, x.id)) }),
|
|
4524
|
-
P.length > 5 && /* @__PURE__ */
|
|
4525
|
-
|
|
4663
|
+
P.length > 5 && /* @__PURE__ */ r.jsxs(
|
|
4664
|
+
_e,
|
|
4526
4665
|
{
|
|
4527
4666
|
href: "#",
|
|
4528
4667
|
"data-color": "neutral",
|
|
4529
4668
|
className: S.viewAllLink,
|
|
4530
4669
|
onClick: (x) => {
|
|
4531
|
-
x.preventDefault(), e && e(`search/${
|
|
4670
|
+
x.preventDefault(), e && e(`search/${N}`), A(!1), $("");
|
|
4532
4671
|
},
|
|
4533
4672
|
children: [
|
|
4534
4673
|
I("header.viewAll"),
|
|
@@ -4538,10 +4677,10 @@ const cs = {
|
|
|
4538
4677
|
]
|
|
4539
4678
|
}
|
|
4540
4679
|
)
|
|
4541
|
-
] }) : /* @__PURE__ */
|
|
4680
|
+
] }) : /* @__PURE__ */ r.jsx("div", { className: S.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
|
|
4542
4681
|
I("header.noResults"),
|
|
4543
4682
|
' "',
|
|
4544
|
-
|
|
4683
|
+
N,
|
|
4545
4684
|
'"'
|
|
4546
4685
|
] }) }) })
|
|
4547
4686
|
] }) })
|
|
@@ -4678,59 +4817,59 @@ function ma(t) {
|
|
|
4678
4817
|
`;
|
|
4679
4818
|
}
|
|
4680
4819
|
export {
|
|
4681
|
-
|
|
4820
|
+
so as Alert,
|
|
4682
4821
|
Ft as Avatar,
|
|
4683
|
-
|
|
4822
|
+
ao as Badge,
|
|
4684
4823
|
ka as BadgePosition,
|
|
4685
|
-
|
|
4824
|
+
va as Breadcrumbs,
|
|
4686
4825
|
ya as BreadcrumbsItem,
|
|
4687
4826
|
xa as BreadcrumbsLink,
|
|
4688
|
-
|
|
4827
|
+
ba as BreadcrumbsList,
|
|
4689
4828
|
ye as Button,
|
|
4690
|
-
|
|
4829
|
+
io as Card,
|
|
4691
4830
|
Ta as CardBlock,
|
|
4692
|
-
|
|
4693
|
-
|
|
4831
|
+
os as Carousel,
|
|
4832
|
+
lo as Checkbox,
|
|
4694
4833
|
wa as Chip,
|
|
4695
|
-
|
|
4696
|
-
|
|
4834
|
+
ir as DateInput,
|
|
4835
|
+
Qo as DatePicker,
|
|
4697
4836
|
Ca as Details,
|
|
4698
4837
|
ja as Dialog,
|
|
4699
4838
|
Da as Divider,
|
|
4700
4839
|
ee as Dropdown,
|
|
4701
4840
|
Ia as ErrorSummary,
|
|
4702
|
-
|
|
4841
|
+
Aa as Field,
|
|
4703
4842
|
ss as FieldCounter,
|
|
4704
|
-
|
|
4705
|
-
|
|
4843
|
+
rs as FieldDescription,
|
|
4844
|
+
La as Fieldset,
|
|
4706
4845
|
Ya as Header,
|
|
4707
4846
|
as as Heading,
|
|
4708
4847
|
Fa as Input,
|
|
4709
4848
|
is as Label,
|
|
4710
4849
|
Ka as LanguageProvider,
|
|
4711
|
-
|
|
4712
|
-
|
|
4850
|
+
_e as Link,
|
|
4851
|
+
Ba as List,
|
|
4713
4852
|
Ea as Pagination,
|
|
4714
4853
|
Ze as Paragraph,
|
|
4715
|
-
|
|
4854
|
+
_a as Popover,
|
|
4716
4855
|
Pa as Radio,
|
|
4717
4856
|
Pe as Search,
|
|
4718
|
-
|
|
4719
|
-
|
|
4857
|
+
Ma as Select,
|
|
4858
|
+
za as SkeletonLoader,
|
|
4720
4859
|
Oa as SkipLink,
|
|
4721
4860
|
ns as Spinner,
|
|
4722
4861
|
ls as Suggestion,
|
|
4723
|
-
|
|
4862
|
+
Ue as Switch,
|
|
4724
4863
|
$a as Table,
|
|
4725
4864
|
Ha as Tabs,
|
|
4726
4865
|
Wa as Tag,
|
|
4727
4866
|
Va as Textarea,
|
|
4728
4867
|
Ga as Textfield,
|
|
4729
|
-
|
|
4730
|
-
|
|
4868
|
+
Ua as ToggleGroup,
|
|
4869
|
+
qa as Tooltip,
|
|
4731
4870
|
ds as ValidationMessage,
|
|
4732
4871
|
Sa as useCheckboxGroup,
|
|
4733
4872
|
us as useLanguage,
|
|
4734
|
-
|
|
4873
|
+
Na as usePagination,
|
|
4735
4874
|
Ra as useRadioGroup
|
|
4736
4875
|
};
|