rk-designsystem 1.1.57 → 1.1.59
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 +1687 -1825
- package/dist/componentlibrary.umd.js +30 -23
- package/package.json +5 -5
|
@@ -1,361 +1,84 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var r = null;
|
|
22
|
-
if (a !== void 0 && (r = "" + a), i.key !== void 0 && (r = "" + i.key), "key" in i) {
|
|
23
|
-
a = {};
|
|
24
|
-
for (var d in i)
|
|
25
|
-
d !== "key" && (a[d] = i[d]);
|
|
26
|
-
} else a = i;
|
|
27
|
-
return i = a.ref, {
|
|
28
|
-
$$typeof: t,
|
|
29
|
-
type: s,
|
|
30
|
-
key: r,
|
|
31
|
-
ref: i !== void 0 ? i : null,
|
|
32
|
-
props: a
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
return Se.Fragment = e, Se.jsx = n, Se.jsxs = n, Se;
|
|
36
|
-
}
|
|
37
|
-
var we = {};
|
|
38
|
-
/**
|
|
39
|
-
* @license React
|
|
40
|
-
* react-jsx-runtime.development.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/
|
|
47
|
-
var kt;
|
|
48
|
-
function rr() {
|
|
49
|
-
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
50
|
-
function t(c) {
|
|
51
|
-
if (c == null) return null;
|
|
52
|
-
if (typeof c == "function")
|
|
53
|
-
return c.$$typeof === N ? null : c.displayName || c.name || null;
|
|
54
|
-
if (typeof c == "string") return c;
|
|
55
|
-
switch (c) {
|
|
56
|
-
case v:
|
|
57
|
-
return "Fragment";
|
|
58
|
-
case m:
|
|
59
|
-
return "Profiler";
|
|
60
|
-
case p:
|
|
61
|
-
return "StrictMode";
|
|
62
|
-
case E:
|
|
63
|
-
return "Suspense";
|
|
64
|
-
case j:
|
|
65
|
-
return "SuspenseList";
|
|
66
|
-
case $:
|
|
67
|
-
return "Activity";
|
|
68
|
-
}
|
|
69
|
-
if (typeof c == "object")
|
|
70
|
-
switch (typeof c.tag == "number" && console.error(
|
|
71
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
|
-
), c.$$typeof) {
|
|
73
|
-
case b:
|
|
74
|
-
return "Portal";
|
|
75
|
-
case _:
|
|
76
|
-
return c.displayName || "Context";
|
|
77
|
-
case T:
|
|
78
|
-
return (c._context.displayName || "Context") + ".Consumer";
|
|
79
|
-
case F:
|
|
80
|
-
var A = c.render;
|
|
81
|
-
return c = c.displayName, c || (c = A.displayName || A.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
82
|
-
case L:
|
|
83
|
-
return A = c.displayName || null, A !== null ? A : t(c.type) || "Memo";
|
|
84
|
-
case B:
|
|
85
|
-
A = c._payload, c = c._init;
|
|
86
|
-
try {
|
|
87
|
-
return t(c(A));
|
|
88
|
-
} catch {
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
function e(c) {
|
|
94
|
-
return "" + c;
|
|
95
|
-
}
|
|
96
|
-
function n(c) {
|
|
97
|
-
try {
|
|
98
|
-
e(c);
|
|
99
|
-
var A = !1;
|
|
100
|
-
} catch {
|
|
101
|
-
A = !0;
|
|
102
|
-
}
|
|
103
|
-
if (A) {
|
|
104
|
-
A = console;
|
|
105
|
-
var P = A.error, M = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
106
|
-
return P.call(
|
|
107
|
-
A,
|
|
108
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
-
M
|
|
110
|
-
), e(c);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function s(c) {
|
|
114
|
-
if (c === v) return "<>";
|
|
115
|
-
if (typeof c == "object" && c !== null && c.$$typeof === B)
|
|
116
|
-
return "<...>";
|
|
117
|
-
try {
|
|
118
|
-
var A = t(c);
|
|
119
|
-
return A ? "<" + A + ">" : "<...>";
|
|
120
|
-
} catch {
|
|
121
|
-
return "<...>";
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function i() {
|
|
125
|
-
var c = W.A;
|
|
126
|
-
return c === null ? null : c.getOwner();
|
|
127
|
-
}
|
|
128
|
-
function a() {
|
|
129
|
-
return Error("react-stack-top-frame");
|
|
130
|
-
}
|
|
131
|
-
function r(c) {
|
|
132
|
-
if (R.call(c, "key")) {
|
|
133
|
-
var A = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
134
|
-
if (A && A.isReactWarning) return !1;
|
|
135
|
-
}
|
|
136
|
-
return c.key !== void 0;
|
|
137
|
-
}
|
|
138
|
-
function d(c, A) {
|
|
139
|
-
function P() {
|
|
140
|
-
q || (q = !0, console.error(
|
|
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
|
-
A
|
|
143
|
-
));
|
|
144
|
-
}
|
|
145
|
-
P.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
146
|
-
get: P,
|
|
147
|
-
configurable: !0
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function l() {
|
|
151
|
-
var c = t(this.type);
|
|
152
|
-
return ne[c] || (ne[c] = !0, console.error(
|
|
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
|
-
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
155
|
-
}
|
|
156
|
-
function u(c, A, P, M, x, D) {
|
|
157
|
-
var C = P.ref;
|
|
158
|
-
return c = {
|
|
159
|
-
$$typeof: h,
|
|
160
|
-
type: c,
|
|
161
|
-
key: A,
|
|
162
|
-
props: P,
|
|
163
|
-
_owner: M
|
|
164
|
-
}, (C !== void 0 ? C : null) !== null ? Object.defineProperty(c, "ref", {
|
|
165
|
-
enumerable: !1,
|
|
166
|
-
get: l
|
|
167
|
-
}) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
168
|
-
configurable: !1,
|
|
169
|
-
enumerable: !1,
|
|
170
|
-
writable: !0,
|
|
171
|
-
value: 0
|
|
172
|
-
}), Object.defineProperty(c, "_debugInfo", {
|
|
173
|
-
configurable: !1,
|
|
174
|
-
enumerable: !1,
|
|
175
|
-
writable: !0,
|
|
176
|
-
value: null
|
|
177
|
-
}), Object.defineProperty(c, "_debugStack", {
|
|
178
|
-
configurable: !1,
|
|
179
|
-
enumerable: !1,
|
|
180
|
-
writable: !0,
|
|
181
|
-
value: x
|
|
182
|
-
}), Object.defineProperty(c, "_debugTask", {
|
|
183
|
-
configurable: !1,
|
|
184
|
-
enumerable: !1,
|
|
185
|
-
writable: !0,
|
|
186
|
-
value: D
|
|
187
|
-
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
188
|
-
}
|
|
189
|
-
function y(c, A, P, M, x, D) {
|
|
190
|
-
var C = A.children;
|
|
191
|
-
if (C !== void 0)
|
|
192
|
-
if (M)
|
|
193
|
-
if (z(C)) {
|
|
194
|
-
for (M = 0; M < C.length; M++)
|
|
195
|
-
f(C[M]);
|
|
196
|
-
Object.freeze && Object.freeze(C);
|
|
197
|
-
} else
|
|
198
|
-
console.error(
|
|
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
|
-
);
|
|
201
|
-
else f(C);
|
|
202
|
-
if (R.call(A, "key")) {
|
|
203
|
-
C = t(c);
|
|
204
|
-
var H = Object.keys(A).filter(function(X) {
|
|
205
|
-
return X !== "key";
|
|
206
|
-
});
|
|
207
|
-
M = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", oe[C + M] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
209
|
-
let props = %s;
|
|
210
|
-
<%s {...props} />
|
|
211
|
-
React keys must be passed directly to JSX without using spread:
|
|
212
|
-
let props = %s;
|
|
213
|
-
<%s key={someKey} {...props} />`,
|
|
214
|
-
M,
|
|
215
|
-
C,
|
|
216
|
-
H,
|
|
217
|
-
C
|
|
218
|
-
), oe[C + M] = !0);
|
|
219
|
-
}
|
|
220
|
-
if (C = null, P !== void 0 && (n(P), C = "" + P), r(A) && (n(A.key), C = "" + A.key), "key" in A) {
|
|
221
|
-
P = {};
|
|
222
|
-
for (var J in A)
|
|
223
|
-
J !== "key" && (P[J] = A[J]);
|
|
224
|
-
} else P = A;
|
|
225
|
-
return C && d(
|
|
226
|
-
P,
|
|
227
|
-
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
228
|
-
), u(
|
|
229
|
-
c,
|
|
230
|
-
C,
|
|
231
|
-
P,
|
|
232
|
-
i(),
|
|
233
|
-
x,
|
|
234
|
-
D
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
|
-
function f(c) {
|
|
238
|
-
k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === B && (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
|
-
}
|
|
240
|
-
function k(c) {
|
|
241
|
-
return typeof c == "object" && c !== null && c.$$typeof === h;
|
|
242
|
-
}
|
|
243
|
-
var g = Dt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), W = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, R = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
244
|
-
return null;
|
|
245
|
-
};
|
|
246
|
-
g = {
|
|
247
|
-
react_stack_bottom_frame: function(c) {
|
|
248
|
-
return c();
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
var q, ne = {}, Y = g.react_stack_bottom_frame.bind(
|
|
252
|
-
g,
|
|
253
|
-
a
|
|
254
|
-
)(), K = I(s(a)), oe = {};
|
|
255
|
-
we.Fragment = v, we.jsx = function(c, A, P) {
|
|
256
|
-
var M = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
257
|
-
return y(
|
|
258
|
-
c,
|
|
259
|
-
A,
|
|
260
|
-
P,
|
|
261
|
-
!1,
|
|
262
|
-
M ? Error("react-stack-top-frame") : Y,
|
|
263
|
-
M ? I(s(c)) : K
|
|
264
|
-
);
|
|
265
|
-
}, we.jsxs = function(c, A, P) {
|
|
266
|
-
var M = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
267
|
-
return y(
|
|
268
|
-
c,
|
|
269
|
-
A,
|
|
270
|
-
P,
|
|
271
|
-
!0,
|
|
272
|
-
M ? Error("react-stack-top-frame") : Y,
|
|
273
|
-
M ? I(s(c)) : K
|
|
274
|
-
);
|
|
275
|
-
};
|
|
276
|
-
})()), we;
|
|
277
|
-
}
|
|
278
|
-
var bt;
|
|
279
|
-
function or() {
|
|
280
|
-
return bt || (bt = 1, process.env.NODE_ENV === "production" ? Be.exports = nr() : Be.exports = rr()), Be.exports;
|
|
281
|
-
}
|
|
282
|
-
var o = or();
|
|
283
|
-
const sr = ue((t, e) => /* @__PURE__ */ o.jsx(Jt, { ref: e, ...t }));
|
|
284
|
-
sr.displayName = "Alert";
|
|
285
|
-
const Ft = ue((t, e) => /* @__PURE__ */ o.jsx(Zt, { ref: e, ...t }));
|
|
286
|
-
Ft.displayName = "Avatar";
|
|
287
|
-
const ar = ue((t, e) => /* @__PURE__ */ o.jsx(Qt, { ref: e, ...t }));
|
|
288
|
-
ar.displayName = "Badge";
|
|
289
|
-
const ka = Xt, ba = en, va = tn, ya = nn, xa = rn, ye = Ke;
|
|
290
|
-
ye.displayName = "Button";
|
|
291
|
-
const ir = on, Ta = sn;
|
|
292
|
-
ir.displayName = "Card";
|
|
293
|
-
const lr = an, dr = It, Sa = ln;
|
|
294
|
-
lr.displayName = "Checkbox";
|
|
295
|
-
dr.displayName = "Fieldset";
|
|
296
|
-
const wa = dn;
|
|
297
|
-
function Ge(t) {
|
|
1
|
+
import { jsx as d, jsxs as B, Fragment as Ot } from "react/jsx-runtime";
|
|
2
|
+
import Wt, { forwardRef as me, useState as ne, useEffect as K, useMemo as ye, useCallback as se, useRef as Ge, createContext as Vt, useContext as Gt } from "react";
|
|
3
|
+
import { Alert as Ut, Avatar as qt, BadgePosition as Kt, Badge as Yt, Breadcrumbs as Zt, BreadcrumbsList as Jt, BreadcrumbsItem as Qt, BreadcrumbsLink as Xt, Button as Ue, Card as en, CardBlock as tn, Checkbox as nn, useCheckboxGroup as on, Fieldset as xt, Chip as rn, Spinner as sn, Details as an, Dialog as ln, Divider as dn, Dropdown as cn, ErrorSummary as un, Field as mn, FieldDescription as gn, FieldCounter as pn, Heading as fn, Input as hn, Label as kn, Link as vn, List as bn, Pagination as yn, usePagination as Tn, Paragraph as xn, Popover as Sn, Radio as wn, useRadioGroup as Cn, Search as Dn, SearchInput as In, SearchClear as An, SearchButton as jn, Select as Ln, Skeleton as Fn, SkipLink as Bn, EXPERIMENTAL_Suggestion as Nn, Switch as Pn, Table as Mn, Tabs as En, Tag as _n, Textarea as zn, Textfield as Rn, ToggleGroup as $n, Tooltip as Hn, ValidationMessage as On } from "@digdir/designsystemet-react";
|
|
4
|
+
import { startOfMonth as ve, isValid as Oe, isSameMonth as ct, startOfWeek as St, format as Se, addDays as wt, subMonths as Wn, addMonths as Vn, isSameDay as Gn, isToday as Un, eachDayOfInterval as qn } from "date-fns";
|
|
5
|
+
import { ChevronLeftIcon as Kn, ChevronRightIcon as Yn, ChevronDownIcon as ut, XMarkIcon as mt, MagnifyingGlassIcon as gt, MenuHamburgerIcon as Zn, HeartIcon as Jn } from "@navikt/aksel-icons";
|
|
6
|
+
const Qn = me((t, e) => /* @__PURE__ */ d(Ut, { ref: e, ...t }));
|
|
7
|
+
Qn.displayName = "Alert";
|
|
8
|
+
const Ct = me((t, e) => /* @__PURE__ */ d(qt, { ref: e, ...t }));
|
|
9
|
+
Ct.displayName = "Avatar";
|
|
10
|
+
const Xn = me((t, e) => /* @__PURE__ */ d(Yt, { ref: e, ...t }));
|
|
11
|
+
Xn.displayName = "Badge";
|
|
12
|
+
const ui = Kt, mi = Zt, gi = Jt, pi = Qt, fi = Xt, Te = Ue;
|
|
13
|
+
Te.displayName = "Button";
|
|
14
|
+
const eo = en, hi = tn;
|
|
15
|
+
eo.displayName = "Card";
|
|
16
|
+
const to = nn, no = xt, ki = on;
|
|
17
|
+
to.displayName = "Checkbox";
|
|
18
|
+
no.displayName = "Fieldset";
|
|
19
|
+
const vi = rn;
|
|
20
|
+
function We(t) {
|
|
298
21
|
return (e = {}) => {
|
|
299
22
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
300
23
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
301
24
|
};
|
|
302
25
|
}
|
|
303
|
-
function
|
|
26
|
+
function we(t) {
|
|
304
27
|
return (e, n) => {
|
|
305
|
-
const
|
|
28
|
+
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
306
29
|
let i;
|
|
307
|
-
if (
|
|
308
|
-
const
|
|
309
|
-
i = t.formattingValues[
|
|
30
|
+
if (r === "formatting" && t.formattingValues) {
|
|
31
|
+
const o = t.defaultFormattingWidth || t.defaultWidth, l = n != null && n.width ? String(n.width) : o;
|
|
32
|
+
i = t.formattingValues[l] || t.formattingValues[o];
|
|
310
33
|
} else {
|
|
311
|
-
const
|
|
312
|
-
i = t.values[
|
|
34
|
+
const o = t.defaultWidth, l = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
35
|
+
i = t.values[l] || t.values[o];
|
|
313
36
|
}
|
|
314
|
-
const
|
|
315
|
-
return i[
|
|
37
|
+
const s = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
38
|
+
return i[s];
|
|
316
39
|
};
|
|
317
40
|
}
|
|
318
|
-
function
|
|
41
|
+
function Ce(t) {
|
|
319
42
|
return (e, n = {}) => {
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
43
|
+
const r = n.width, i = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], s = e.match(i);
|
|
44
|
+
if (!s)
|
|
322
45
|
return null;
|
|
323
|
-
const
|
|
46
|
+
const o = s[0], l = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], a = Array.isArray(l) ? ro(l, (p) => p.test(o)) : (
|
|
324
47
|
// [TODO] -- I challenge you to fix the type
|
|
325
|
-
|
|
48
|
+
oo(l, (p) => p.test(o))
|
|
326
49
|
);
|
|
327
|
-
let
|
|
328
|
-
|
|
50
|
+
let c;
|
|
51
|
+
c = t.valueCallback ? t.valueCallback(a) : a, c = n.valueCallback ? (
|
|
329
52
|
// [TODO] -- I challenge you to fix the type
|
|
330
|
-
n.valueCallback(
|
|
331
|
-
) :
|
|
332
|
-
const
|
|
333
|
-
return { value:
|
|
53
|
+
n.valueCallback(c)
|
|
54
|
+
) : c;
|
|
55
|
+
const b = e.slice(o.length);
|
|
56
|
+
return { value: c, rest: b };
|
|
334
57
|
};
|
|
335
58
|
}
|
|
336
|
-
function
|
|
59
|
+
function oo(t, e) {
|
|
337
60
|
for (const n in t)
|
|
338
61
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
339
62
|
return n;
|
|
340
63
|
}
|
|
341
|
-
function
|
|
64
|
+
function ro(t, e) {
|
|
342
65
|
for (let n = 0; n < t.length; n++)
|
|
343
66
|
if (e(t[n]))
|
|
344
67
|
return n;
|
|
345
68
|
}
|
|
346
|
-
function
|
|
69
|
+
function so(t) {
|
|
347
70
|
return (e, n = {}) => {
|
|
348
|
-
const
|
|
71
|
+
const r = e.match(t.matchPattern);
|
|
72
|
+
if (!r) return null;
|
|
73
|
+
const i = r[0], s = e.match(t.parsePattern);
|
|
349
74
|
if (!s) return null;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
const d = e.slice(i.length);
|
|
355
|
-
return { value: r, rest: d };
|
|
75
|
+
let o = t.valueCallback ? t.valueCallback(s[0]) : s[0];
|
|
76
|
+
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
77
|
+
const l = e.slice(i.length);
|
|
78
|
+
return { value: o, rest: l };
|
|
356
79
|
};
|
|
357
80
|
}
|
|
358
|
-
const
|
|
81
|
+
const io = {
|
|
359
82
|
lessThanXSeconds: {
|
|
360
83
|
one: "mindre enn ett sekund",
|
|
361
84
|
other: "mindre enn {{count}} sekunder"
|
|
@@ -417,54 +140,54 @@ const gr = {
|
|
|
417
140
|
one: "nesten ett år",
|
|
418
141
|
other: "nesten {{count}} år"
|
|
419
142
|
}
|
|
420
|
-
},
|
|
421
|
-
let
|
|
422
|
-
const i =
|
|
423
|
-
return typeof i == "string" ?
|
|
424
|
-
},
|
|
143
|
+
}, ao = (t, e, n) => {
|
|
144
|
+
let r;
|
|
145
|
+
const i = io[t];
|
|
146
|
+
return typeof i == "string" ? r = i : e === 1 ? r = i.one : r = i.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + r : r + " siden" : r;
|
|
147
|
+
}, lo = {
|
|
425
148
|
full: "EEEE d. MMMM y",
|
|
426
149
|
long: "d. MMMM y",
|
|
427
150
|
medium: "d. MMM y",
|
|
428
151
|
short: "dd.MM.y"
|
|
429
|
-
},
|
|
152
|
+
}, co = {
|
|
430
153
|
full: "'kl'. HH:mm:ss zzzz",
|
|
431
154
|
long: "HH:mm:ss z",
|
|
432
155
|
medium: "HH:mm:ss",
|
|
433
156
|
short: "HH:mm"
|
|
434
|
-
},
|
|
157
|
+
}, uo = {
|
|
435
158
|
full: "{{date}} 'kl.' {{time}}",
|
|
436
159
|
long: "{{date}} 'kl.' {{time}}",
|
|
437
160
|
medium: "{{date}} {{time}}",
|
|
438
161
|
short: "{{date}} {{time}}"
|
|
439
|
-
},
|
|
440
|
-
date:
|
|
441
|
-
formats:
|
|
162
|
+
}, mo = {
|
|
163
|
+
date: We({
|
|
164
|
+
formats: lo,
|
|
442
165
|
defaultWidth: "full"
|
|
443
166
|
}),
|
|
444
|
-
time:
|
|
445
|
-
formats:
|
|
167
|
+
time: We({
|
|
168
|
+
formats: co,
|
|
446
169
|
defaultWidth: "full"
|
|
447
170
|
}),
|
|
448
|
-
dateTime:
|
|
449
|
-
formats:
|
|
171
|
+
dateTime: We({
|
|
172
|
+
formats: uo,
|
|
450
173
|
defaultWidth: "full"
|
|
451
174
|
})
|
|
452
|
-
},
|
|
175
|
+
}, go = {
|
|
453
176
|
lastWeek: "'forrige' eeee 'kl.' p",
|
|
454
177
|
yesterday: "'i går kl.' p",
|
|
455
178
|
today: "'i dag kl.' p",
|
|
456
179
|
tomorrow: "'i morgen kl.' p",
|
|
457
180
|
nextWeek: "EEEE 'kl.' p",
|
|
458
181
|
other: "P"
|
|
459
|
-
},
|
|
182
|
+
}, po = (t, e, n, r) => go[t], fo = {
|
|
460
183
|
narrow: ["f.Kr.", "e.Kr."],
|
|
461
184
|
abbreviated: ["f.Kr.", "e.Kr."],
|
|
462
185
|
wide: ["før Kristus", "etter Kristus"]
|
|
463
|
-
},
|
|
186
|
+
}, ho = {
|
|
464
187
|
narrow: ["1", "2", "3", "4"],
|
|
465
188
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
466
189
|
wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
|
|
467
|
-
},
|
|
190
|
+
}, ko = {
|
|
468
191
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
469
192
|
abbreviated: [
|
|
470
193
|
"jan.",
|
|
@@ -494,7 +217,7 @@ const gr = {
|
|
|
494
217
|
"november",
|
|
495
218
|
"desember"
|
|
496
219
|
]
|
|
497
|
-
},
|
|
220
|
+
}, vo = {
|
|
498
221
|
narrow: ["S", "M", "T", "O", "T", "F", "L"],
|
|
499
222
|
short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
|
|
500
223
|
abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
|
@@ -507,7 +230,7 @@ const gr = {
|
|
|
507
230
|
"fredag",
|
|
508
231
|
"lørdag"
|
|
509
232
|
]
|
|
510
|
-
},
|
|
233
|
+
}, bo = {
|
|
511
234
|
narrow: {
|
|
512
235
|
am: "a",
|
|
513
236
|
pm: "p",
|
|
@@ -538,46 +261,46 @@ const gr = {
|
|
|
538
261
|
evening: "på kvelden",
|
|
539
262
|
night: "på natten"
|
|
540
263
|
}
|
|
541
|
-
},
|
|
542
|
-
ordinalNumber:
|
|
543
|
-
era:
|
|
544
|
-
values:
|
|
264
|
+
}, yo = (t, e) => Number(t) + ".", To = {
|
|
265
|
+
ordinalNumber: yo,
|
|
266
|
+
era: we({
|
|
267
|
+
values: fo,
|
|
545
268
|
defaultWidth: "wide"
|
|
546
269
|
}),
|
|
547
|
-
quarter:
|
|
548
|
-
values:
|
|
270
|
+
quarter: we({
|
|
271
|
+
values: ho,
|
|
549
272
|
defaultWidth: "wide",
|
|
550
273
|
argumentCallback: (t) => t - 1
|
|
551
274
|
}),
|
|
552
|
-
month:
|
|
553
|
-
values:
|
|
275
|
+
month: we({
|
|
276
|
+
values: ko,
|
|
554
277
|
defaultWidth: "wide"
|
|
555
278
|
}),
|
|
556
|
-
day:
|
|
557
|
-
values:
|
|
279
|
+
day: we({
|
|
280
|
+
values: vo,
|
|
558
281
|
defaultWidth: "wide"
|
|
559
282
|
}),
|
|
560
|
-
dayPeriod:
|
|
561
|
-
values:
|
|
283
|
+
dayPeriod: we({
|
|
284
|
+
values: bo,
|
|
562
285
|
defaultWidth: "wide"
|
|
563
286
|
})
|
|
564
|
-
},
|
|
287
|
+
}, xo = /^(\d+)\.?/i, So = /\d+/i, wo = {
|
|
565
288
|
narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
566
289
|
abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
567
290
|
wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
|
|
568
|
-
},
|
|
291
|
+
}, Co = {
|
|
569
292
|
any: [/^f/i, /^e/i]
|
|
570
|
-
},
|
|
293
|
+
}, Do = {
|
|
571
294
|
narrow: /^[1234]/i,
|
|
572
295
|
abbreviated: /^q[1234]/i,
|
|
573
296
|
wide: /^[1234](\.)? kvartal/i
|
|
574
|
-
},
|
|
297
|
+
}, Io = {
|
|
575
298
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
|
-
},
|
|
299
|
+
}, Ao = {
|
|
577
300
|
narrow: /^[jfmasond]/i,
|
|
578
301
|
abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
|
|
579
302
|
wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
|
|
580
|
-
},
|
|
303
|
+
}, jo = {
|
|
581
304
|
narrow: [
|
|
582
305
|
/^j/i,
|
|
583
306
|
/^f/i,
|
|
@@ -606,17 +329,17 @@ const gr = {
|
|
|
606
329
|
/^n/i,
|
|
607
330
|
/^d/i
|
|
608
331
|
]
|
|
609
|
-
},
|
|
332
|
+
}, Lo = {
|
|
610
333
|
narrow: /^[smtofl]/i,
|
|
611
334
|
short: /^(sø|ma|ti|on|to|fr|lø)/i,
|
|
612
335
|
abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
|
|
613
336
|
wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
|
|
614
|
-
},
|
|
337
|
+
}, Fo = {
|
|
615
338
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
616
|
-
},
|
|
339
|
+
}, Bo = {
|
|
617
340
|
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
618
341
|
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
|
|
619
|
-
},
|
|
342
|
+
}, No = {
|
|
620
343
|
any: {
|
|
621
344
|
am: /^a(\.?\s?m\.?)?$/i,
|
|
622
345
|
pm: /^p(\.?\s?m\.?)?$/i,
|
|
@@ -627,55 +350,55 @@ const gr = {
|
|
|
627
350
|
evening: /kveld/i,
|
|
628
351
|
night: /natt/i
|
|
629
352
|
}
|
|
630
|
-
},
|
|
631
|
-
ordinalNumber:
|
|
632
|
-
matchPattern:
|
|
633
|
-
parsePattern:
|
|
353
|
+
}, Po = {
|
|
354
|
+
ordinalNumber: so({
|
|
355
|
+
matchPattern: xo,
|
|
356
|
+
parsePattern: So,
|
|
634
357
|
valueCallback: (t) => parseInt(t, 10)
|
|
635
358
|
}),
|
|
636
|
-
era:
|
|
637
|
-
matchPatterns:
|
|
359
|
+
era: Ce({
|
|
360
|
+
matchPatterns: wo,
|
|
638
361
|
defaultMatchWidth: "wide",
|
|
639
|
-
parsePatterns:
|
|
362
|
+
parsePatterns: Co,
|
|
640
363
|
defaultParseWidth: "any"
|
|
641
364
|
}),
|
|
642
|
-
quarter:
|
|
643
|
-
matchPatterns:
|
|
365
|
+
quarter: Ce({
|
|
366
|
+
matchPatterns: Do,
|
|
644
367
|
defaultMatchWidth: "wide",
|
|
645
|
-
parsePatterns:
|
|
368
|
+
parsePatterns: Io,
|
|
646
369
|
defaultParseWidth: "any",
|
|
647
370
|
valueCallback: (t) => t + 1
|
|
648
371
|
}),
|
|
649
|
-
month:
|
|
650
|
-
matchPatterns:
|
|
372
|
+
month: Ce({
|
|
373
|
+
matchPatterns: Ao,
|
|
651
374
|
defaultMatchWidth: "wide",
|
|
652
|
-
parsePatterns:
|
|
375
|
+
parsePatterns: jo,
|
|
653
376
|
defaultParseWidth: "any"
|
|
654
377
|
}),
|
|
655
|
-
day:
|
|
656
|
-
matchPatterns:
|
|
378
|
+
day: Ce({
|
|
379
|
+
matchPatterns: Lo,
|
|
657
380
|
defaultMatchWidth: "wide",
|
|
658
|
-
parsePatterns:
|
|
381
|
+
parsePatterns: Fo,
|
|
659
382
|
defaultParseWidth: "any"
|
|
660
383
|
}),
|
|
661
|
-
dayPeriod:
|
|
662
|
-
matchPatterns:
|
|
384
|
+
dayPeriod: Ce({
|
|
385
|
+
matchPatterns: Bo,
|
|
663
386
|
defaultMatchWidth: "any",
|
|
664
|
-
parsePatterns:
|
|
387
|
+
parsePatterns: No,
|
|
665
388
|
defaultParseWidth: "any"
|
|
666
389
|
})
|
|
667
390
|
}, be = {
|
|
668
391
|
code: "nb",
|
|
669
|
-
formatDistance:
|
|
670
|
-
formatLong:
|
|
671
|
-
formatRelative:
|
|
672
|
-
localize:
|
|
673
|
-
match:
|
|
392
|
+
formatDistance: ao,
|
|
393
|
+
formatLong: mo,
|
|
394
|
+
formatRelative: po,
|
|
395
|
+
localize: To,
|
|
396
|
+
match: Po,
|
|
674
397
|
options: {
|
|
675
398
|
weekStartsOn: 1,
|
|
676
399
|
firstWeekContainsDate: 4
|
|
677
400
|
}
|
|
678
|
-
},
|
|
401
|
+
}, Dt = ({ title: t, ...e }) => /* @__PURE__ */ B(
|
|
679
402
|
"svg",
|
|
680
403
|
{
|
|
681
404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -687,8 +410,8 @@ const gr = {
|
|
|
687
410
|
focusable: "false",
|
|
688
411
|
...e,
|
|
689
412
|
children: [
|
|
690
|
-
t && /* @__PURE__ */
|
|
691
|
-
/* @__PURE__ */
|
|
413
|
+
t && /* @__PURE__ */ d("title", { children: t }),
|
|
414
|
+
/* @__PURE__ */ d(
|
|
692
415
|
"path",
|
|
693
416
|
{
|
|
694
417
|
fillRule: "evenodd",
|
|
@@ -700,8 +423,8 @@ const gr = {
|
|
|
700
423
|
]
|
|
701
424
|
}
|
|
702
425
|
);
|
|
703
|
-
|
|
704
|
-
const
|
|
426
|
+
Dt.displayName = "ChevronLeftIcon";
|
|
427
|
+
const It = ({ title: t, ...e }) => /* @__PURE__ */ B(
|
|
705
428
|
"svg",
|
|
706
429
|
{
|
|
707
430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -713,8 +436,8 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
|
|
|
713
436
|
focusable: "false",
|
|
714
437
|
...e,
|
|
715
438
|
children: [
|
|
716
|
-
t && /* @__PURE__ */
|
|
717
|
-
/* @__PURE__ */
|
|
439
|
+
t && /* @__PURE__ */ d("title", { children: t }),
|
|
440
|
+
/* @__PURE__ */ d(
|
|
718
441
|
"path",
|
|
719
442
|
{
|
|
720
443
|
fillRule: "evenodd",
|
|
@@ -726,138 +449,138 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
|
|
|
726
449
|
]
|
|
727
450
|
}
|
|
728
451
|
);
|
|
729
|
-
|
|
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 =
|
|
743
|
-
return
|
|
744
|
-
},
|
|
452
|
+
It.displayName = "ChevronRightIcon";
|
|
453
|
+
const Mo = "_calendarContainer_10l5p_1", Eo = "_calendarHeader_10l5p_14", _o = "_monthYear_10l5p_21", zo = "_navigationButtons_10l5p_32", Ro = "_grid_10l5p_41", $o = "_dayNameCell_10l5p_48", Ho = "_dateCell_10l5p_65", Oo = "_dateNumberContainer_10l5p_90", Wo = "_otherMonth_10l5p_103", Vo = "_selectedDate_10l5p_129", re = {
|
|
454
|
+
calendarContainer: Mo,
|
|
455
|
+
calendarHeader: Eo,
|
|
456
|
+
monthYear: _o,
|
|
457
|
+
navigationButtons: zo,
|
|
458
|
+
grid: Ro,
|
|
459
|
+
dayNameCell: $o,
|
|
460
|
+
dateCell: Ho,
|
|
461
|
+
dateNumberContainer: Oo,
|
|
462
|
+
otherMonth: Wo,
|
|
463
|
+
selectedDate: Vo
|
|
464
|
+
}, Go = (t) => {
|
|
465
|
+
const e = ve(t), n = St(e, { locale: be }), r = wt(n, 41);
|
|
466
|
+
return qn({ start: n, end: r });
|
|
467
|
+
}, pt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Uo = ({
|
|
745
468
|
initialDate: t = /* @__PURE__ */ new Date(),
|
|
746
469
|
selectedDate: e = null,
|
|
747
470
|
// Prop for valgt dato
|
|
748
471
|
onDateSelect: n,
|
|
749
|
-
"data-color":
|
|
472
|
+
"data-color": r,
|
|
750
473
|
// <-- Destrukturert
|
|
751
474
|
"data-size": i
|
|
752
475
|
// <-- Destrukturert
|
|
753
476
|
}) => {
|
|
754
|
-
const [
|
|
755
|
-
|
|
477
|
+
const [s, o] = ne(
|
|
478
|
+
ve(e && Oe(e) ? e : t)
|
|
756
479
|
);
|
|
757
|
-
|
|
758
|
-
if (e &&
|
|
759
|
-
const
|
|
760
|
-
|
|
480
|
+
K(() => {
|
|
481
|
+
if (e && Oe(e)) {
|
|
482
|
+
const u = ve(e);
|
|
483
|
+
ct(u, s) || o(u);
|
|
761
484
|
}
|
|
762
485
|
}, [e]);
|
|
763
|
-
const
|
|
764
|
-
() =>
|
|
765
|
-
[
|
|
766
|
-
),
|
|
767
|
-
const
|
|
768
|
-
return Array.from({ length: 7 }).map((T,
|
|
769
|
-
const
|
|
770
|
-
return
|
|
486
|
+
const l = ye(() => ve(/* @__PURE__ */ new Date()), []), a = ye(() => !1, [s, l]), c = ye(
|
|
487
|
+
() => Go(s),
|
|
488
|
+
[s]
|
|
489
|
+
), b = ye(() => {
|
|
490
|
+
const u = St(/* @__PURE__ */ new Date(), { locale: be });
|
|
491
|
+
return Array.from({ length: 7 }).map((T, j) => {
|
|
492
|
+
const A = Se(wt(u, j), "EEEEEE", { locale: be });
|
|
493
|
+
return pt(A);
|
|
771
494
|
});
|
|
772
|
-
}, []),
|
|
773
|
-
|
|
774
|
-
}, [
|
|
775
|
-
|
|
776
|
-
}, []), g =
|
|
777
|
-
(
|
|
778
|
-
n && n(
|
|
495
|
+
}, []), p = se(() => {
|
|
496
|
+
a || o((u) => ve(Wn(u, 1)));
|
|
497
|
+
}, [a]), k = se(() => {
|
|
498
|
+
o((u) => ve(Vn(u, 1)));
|
|
499
|
+
}, []), g = se(
|
|
500
|
+
(u) => {
|
|
501
|
+
n && n(u);
|
|
779
502
|
},
|
|
780
503
|
[n]
|
|
781
|
-
),
|
|
782
|
-
(
|
|
783
|
-
(
|
|
504
|
+
), f = se(
|
|
505
|
+
(u, T) => {
|
|
506
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), g(T));
|
|
784
507
|
},
|
|
785
508
|
[g]
|
|
786
|
-
),
|
|
787
|
-
return /* @__PURE__ */
|
|
509
|
+
), h = Se(s, "MMMM", { locale: be }), v = Se(s, "yyyy", { locale: be }), m = `${pt(h)} ${v}`;
|
|
510
|
+
return /* @__PURE__ */ B(
|
|
788
511
|
"div",
|
|
789
512
|
{
|
|
790
|
-
className:
|
|
791
|
-
"data-color":
|
|
513
|
+
className: re.calendarContainer,
|
|
514
|
+
"data-color": r,
|
|
792
515
|
"data-size": i,
|
|
793
516
|
children: [
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
|
|
517
|
+
/* @__PURE__ */ B("div", { className: re.calendarHeader, children: [
|
|
518
|
+
/* @__PURE__ */ d("span", { className: re.monthYear, children: m }),
|
|
519
|
+
/* @__PURE__ */ B("div", { className: re.navigationButtons, children: [
|
|
520
|
+
/* @__PURE__ */ d(
|
|
521
|
+
Ue,
|
|
799
522
|
{
|
|
800
523
|
variant: "tertiary",
|
|
801
524
|
icon: !0,
|
|
802
|
-
onClick:
|
|
525
|
+
onClick: p,
|
|
803
526
|
"aria-label": "Forrige måned",
|
|
804
|
-
disabled:
|
|
805
|
-
children: /* @__PURE__ */
|
|
527
|
+
disabled: a,
|
|
528
|
+
children: /* @__PURE__ */ d(Dt, {})
|
|
806
529
|
}
|
|
807
530
|
),
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
|
|
531
|
+
/* @__PURE__ */ d(
|
|
532
|
+
Ue,
|
|
810
533
|
{
|
|
811
534
|
variant: "tertiary",
|
|
812
535
|
icon: !0,
|
|
813
536
|
onClick: k,
|
|
814
537
|
"aria-label": "Neste måned",
|
|
815
|
-
children: /* @__PURE__ */
|
|
538
|
+
children: /* @__PURE__ */ d(It, {})
|
|
816
539
|
}
|
|
817
540
|
)
|
|
818
541
|
] })
|
|
819
542
|
] }),
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
-
const T =
|
|
823
|
-
|
|
824
|
-
T ? "" :
|
|
825
|
-
|
|
543
|
+
/* @__PURE__ */ d("div", { className: re.grid, children: b.map((u) => /* @__PURE__ */ d("div", { className: re.dayNameCell, children: u }, u)) }),
|
|
544
|
+
/* @__PURE__ */ d("div", { className: re.grid, children: c.map((u) => {
|
|
545
|
+
const T = ct(u, s), j = e && Oe(e) && Gn(u, e), A = Un(u), L = [
|
|
546
|
+
re.dateCell,
|
|
547
|
+
T ? "" : re.otherMonth,
|
|
548
|
+
j ? re.selectedDate : "",
|
|
826
549
|
// Utheving basert på prop
|
|
827
|
-
|
|
550
|
+
A && !j ? re.todayDate : ""
|
|
828
551
|
].filter(Boolean).join(" ");
|
|
829
|
-
return /* @__PURE__ */
|
|
552
|
+
return /* @__PURE__ */ d(
|
|
830
553
|
"div",
|
|
831
554
|
{
|
|
832
|
-
className:
|
|
833
|
-
onClick: () => g(
|
|
834
|
-
onKeyDown: (
|
|
555
|
+
className: L,
|
|
556
|
+
onClick: () => g(u),
|
|
557
|
+
onKeyDown: (w) => f(w, u),
|
|
835
558
|
role: "button",
|
|
836
559
|
tabIndex: 0,
|
|
837
|
-
"aria-pressed":
|
|
838
|
-
"aria-label":
|
|
839
|
-
children: /* @__PURE__ */
|
|
560
|
+
"aria-pressed": j ?? !1,
|
|
561
|
+
"aria-label": Se(u, "PPP", { locale: be }),
|
|
562
|
+
children: /* @__PURE__ */ d("span", { className: re.dateNumberContainer, children: Se(u, "d") })
|
|
840
563
|
},
|
|
841
|
-
|
|
564
|
+
u.toISOString()
|
|
842
565
|
);
|
|
843
566
|
}) })
|
|
844
567
|
]
|
|
845
568
|
}
|
|
846
569
|
);
|
|
847
570
|
};
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
fieldset:
|
|
851
|
-
description:
|
|
852
|
-
error:
|
|
853
|
-
inputWrapper:
|
|
854
|
-
inputWrapperError:
|
|
855
|
-
suffixButton:
|
|
856
|
-
suffixButtonInteractive:
|
|
857
|
-
},
|
|
858
|
-
const e = t.slice(0, 2), n = t.slice(2, 4),
|
|
859
|
-
return t.length > 4 ? `${e}.${n}.${
|
|
860
|
-
},
|
|
571
|
+
Uo.displayName = "DatePicker";
|
|
572
|
+
const qo = "_fieldset_16fx7_2", Ko = "_description_16fx7_14", Yo = "_error_16fx7_21", Zo = "_inputWrapper_16fx7_30", Jo = "_inputWrapperError_16fx7_42", Qo = "_suffixButton_16fx7_80", Xo = "_suffixButtonInteractive_16fx7_100", fe = {
|
|
573
|
+
fieldset: qo,
|
|
574
|
+
description: Ko,
|
|
575
|
+
error: Yo,
|
|
576
|
+
inputWrapper: Zo,
|
|
577
|
+
inputWrapperError: Jo,
|
|
578
|
+
suffixButton: Qo,
|
|
579
|
+
suffixButtonInteractive: Xo
|
|
580
|
+
}, ft = (t) => {
|
|
581
|
+
const e = t.slice(0, 2), n = t.slice(2, 4), r = t.slice(4, 8);
|
|
582
|
+
return t.length > 4 ? `${e}.${n}.${r}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
|
|
583
|
+
}, ht = (t) => (t || "").replace(/\D/g, ""), kt = (t) => {
|
|
861
584
|
let e = t;
|
|
862
585
|
if (e.length >= 2) {
|
|
863
586
|
const n = parseInt(e.substring(0, 2), 10);
|
|
@@ -868,843 +591,843 @@ const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7
|
|
|
868
591
|
!isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
|
|
869
592
|
}
|
|
870
593
|
return e.slice(0, 8);
|
|
871
|
-
},
|
|
594
|
+
}, er = me(
|
|
872
595
|
(t, e) => {
|
|
873
596
|
const {
|
|
874
597
|
label: n,
|
|
875
|
-
suffixIcon:
|
|
598
|
+
suffixIcon: r,
|
|
876
599
|
onSuffixClick: i,
|
|
877
|
-
className:
|
|
600
|
+
className: s,
|
|
878
601
|
// For ytre fieldset
|
|
879
|
-
inputWrapperClassName:
|
|
602
|
+
inputWrapperClassName: o,
|
|
880
603
|
// For input wrapper div
|
|
881
|
-
inputClassName:
|
|
604
|
+
inputClassName: l,
|
|
882
605
|
// For selve input-elementet
|
|
883
|
-
value:
|
|
884
|
-
defaultValue:
|
|
885
|
-
onChange:
|
|
886
|
-
readOnly:
|
|
606
|
+
value: a,
|
|
607
|
+
defaultValue: c,
|
|
608
|
+
onChange: b,
|
|
609
|
+
readOnly: p,
|
|
887
610
|
placeholder: k = "dd.mm.åååå",
|
|
888
611
|
id: g,
|
|
889
|
-
name:
|
|
890
|
-
required:
|
|
612
|
+
name: f,
|
|
613
|
+
required: h,
|
|
891
614
|
disabled: v,
|
|
892
|
-
onClick:
|
|
893
|
-
onFocus:
|
|
615
|
+
onClick: m,
|
|
616
|
+
onFocus: u,
|
|
894
617
|
// Send ekstern onFocus videre
|
|
895
618
|
onBlur: T,
|
|
896
619
|
// Send ekstern onBlur videre
|
|
897
|
-
autoComplete:
|
|
898
|
-
"aria-label":
|
|
899
|
-
"aria-labelledby":
|
|
900
|
-
description:
|
|
901
|
-
error:
|
|
620
|
+
autoComplete: j = "off",
|
|
621
|
+
"aria-label": A,
|
|
622
|
+
"aria-labelledby": L,
|
|
623
|
+
description: w,
|
|
624
|
+
error: I,
|
|
902
625
|
// Bruk error-prop for styling
|
|
903
|
-
"data-color":
|
|
626
|
+
"data-color": F,
|
|
904
627
|
// <-- Destrukturering
|
|
905
|
-
"data-size":
|
|
628
|
+
"data-size": z,
|
|
906
629
|
// <-- Destrukturering
|
|
907
|
-
...
|
|
908
|
-
} = t,
|
|
909
|
-
|
|
630
|
+
...P
|
|
631
|
+
} = t, R = a !== void 0, _ = Ge(null);
|
|
632
|
+
Wt.useImperativeHandle(
|
|
910
633
|
e,
|
|
911
|
-
() =>
|
|
634
|
+
() => _.current
|
|
912
635
|
);
|
|
913
|
-
const
|
|
914
|
-
(
|
|
915
|
-
const
|
|
916
|
-
return
|
|
636
|
+
const M = se(
|
|
637
|
+
(C) => {
|
|
638
|
+
const N = ht(C), O = kt(N);
|
|
639
|
+
return ft(O);
|
|
917
640
|
},
|
|
918
641
|
[]
|
|
919
|
-
), [
|
|
920
|
-
() =>
|
|
642
|
+
), [D, V] = ne(
|
|
643
|
+
() => M(a ?? c)
|
|
921
644
|
);
|
|
922
|
-
|
|
923
|
-
if (
|
|
924
|
-
const
|
|
925
|
-
|
|
645
|
+
K(() => {
|
|
646
|
+
if (R) {
|
|
647
|
+
const C = M(a);
|
|
648
|
+
C !== D && (V(C), _.current && _.current.value !== C && (_.current.value = C));
|
|
926
649
|
}
|
|
927
|
-
}, [
|
|
928
|
-
const
|
|
929
|
-
(
|
|
930
|
-
const
|
|
931
|
-
let
|
|
932
|
-
const
|
|
933
|
-
|
|
934
|
-
if (
|
|
935
|
-
const
|
|
936
|
-
...
|
|
937
|
-
target: { ...
|
|
650
|
+
}, [a, R, D, M]);
|
|
651
|
+
const oe = se(
|
|
652
|
+
(C) => {
|
|
653
|
+
const N = C.target, O = N.value, te = D, ee = ht(O).slice(0, 8), $ = kt(ee), S = ft($);
|
|
654
|
+
let E = 0;
|
|
655
|
+
const H = $.length;
|
|
656
|
+
H <= 2 ? E = H : H <= 4 ? E = H + 1 : E = H + 2, E = Math.min(E, S.length), requestAnimationFrame(() => {
|
|
657
|
+
if (_.current && (V(S), _.current.value = S, _.current.setSelectionRange(E, E), (S !== te || R) && b)) {
|
|
658
|
+
const G = {
|
|
659
|
+
...C,
|
|
660
|
+
target: { ...N, value: S }
|
|
938
661
|
};
|
|
939
|
-
|
|
662
|
+
b(G, S);
|
|
940
663
|
}
|
|
941
664
|
});
|
|
942
665
|
},
|
|
943
|
-
[
|
|
944
|
-
),
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
].filter(Boolean).join(" "),
|
|
949
|
-
|
|
950
|
-
].filter(Boolean).join(" "),
|
|
951
|
-
|
|
952
|
-
i ?
|
|
666
|
+
[D, R, b, M]
|
|
667
|
+
), Z = [fe.fieldset, s].filter(Boolean).join(" "), Y = [
|
|
668
|
+
fe.inputWrapper,
|
|
669
|
+
o,
|
|
670
|
+
I ? fe.inputWrapperError : ""
|
|
671
|
+
].filter(Boolean).join(" "), de = [
|
|
672
|
+
l
|
|
673
|
+
].filter(Boolean).join(" "), J = [
|
|
674
|
+
fe.suffixButton,
|
|
675
|
+
i ? fe.suffixButtonInteractive : ""
|
|
953
676
|
].filter(Boolean).join(" ");
|
|
954
|
-
!n && !
|
|
955
|
-
const
|
|
677
|
+
!n && !A && !L && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
678
|
+
const ie = n && typeof n == "string" ? L || `${g}-label` : void 0, Q = w ? `${g}-desc` : void 0, X = I ? `${g}-err` : void 0, x = [Q, X].filter(Boolean).join(" ") || void 0;
|
|
956
679
|
return (
|
|
957
680
|
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
958
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ B(
|
|
959
682
|
"div",
|
|
960
683
|
{
|
|
961
|
-
className:
|
|
962
|
-
"data-color":
|
|
963
|
-
"data-size":
|
|
684
|
+
className: Z,
|
|
685
|
+
"data-color": F,
|
|
686
|
+
"data-size": z,
|
|
964
687
|
children: [
|
|
965
|
-
n && typeof n == "string" ? /* @__PURE__ */
|
|
966
|
-
|
|
967
|
-
/* @__PURE__ */
|
|
968
|
-
/* @__PURE__ */
|
|
688
|
+
n && typeof n == "string" ? /* @__PURE__ */ d("label", { id: ie, htmlFor: g, children: n }) : n,
|
|
689
|
+
w && /* @__PURE__ */ d("p", { id: Q, className: fe.description, children: w }),
|
|
690
|
+
/* @__PURE__ */ B("div", { className: Y, children: [
|
|
691
|
+
/* @__PURE__ */ d(
|
|
969
692
|
"input",
|
|
970
693
|
{
|
|
971
|
-
ref:
|
|
694
|
+
ref: _,
|
|
972
695
|
type: "text",
|
|
973
696
|
inputMode: "numeric",
|
|
974
697
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
975
698
|
maxLength: 10,
|
|
976
|
-
value:
|
|
977
|
-
readOnly:
|
|
699
|
+
value: D,
|
|
700
|
+
readOnly: p,
|
|
978
701
|
placeholder: k,
|
|
979
702
|
id: g,
|
|
980
|
-
name:
|
|
981
|
-
required:
|
|
703
|
+
name: f,
|
|
704
|
+
required: h,
|
|
982
705
|
disabled: v,
|
|
983
|
-
onClick:
|
|
984
|
-
onChange:
|
|
985
|
-
onFocus:
|
|
706
|
+
onClick: m,
|
|
707
|
+
onChange: oe,
|
|
708
|
+
onFocus: u,
|
|
986
709
|
onBlur: T,
|
|
987
|
-
autoComplete:
|
|
988
|
-
"aria-label":
|
|
989
|
-
"aria-labelledby":
|
|
710
|
+
autoComplete: j,
|
|
711
|
+
"aria-label": A,
|
|
712
|
+
"aria-labelledby": ie,
|
|
990
713
|
"aria-describedby": x,
|
|
991
|
-
"aria-invalid": !!
|
|
992
|
-
className:
|
|
993
|
-
...
|
|
714
|
+
"aria-invalid": !!I,
|
|
715
|
+
className: de,
|
|
716
|
+
...P
|
|
994
717
|
}
|
|
995
718
|
),
|
|
996
|
-
|
|
719
|
+
r && /* @__PURE__ */ d(
|
|
997
720
|
"button",
|
|
998
721
|
{
|
|
999
722
|
type: "button",
|
|
1000
|
-
className:
|
|
723
|
+
className: J,
|
|
1001
724
|
onClick: v ? void 0 : i,
|
|
1002
725
|
tabIndex: i && !v ? 0 : -1,
|
|
1003
726
|
"aria-hidden": !i,
|
|
1004
727
|
disabled: v,
|
|
1005
728
|
"aria-label": i ? "Åpne datovelger" : void 0,
|
|
1006
|
-
children:
|
|
729
|
+
children: r
|
|
1007
730
|
}
|
|
1008
731
|
)
|
|
1009
732
|
] }),
|
|
1010
|
-
|
|
733
|
+
I && /* @__PURE__ */ d("p", { id: X, className: fe.error, role: "alert", children: I })
|
|
1011
734
|
]
|
|
1012
735
|
}
|
|
1013
736
|
)
|
|
1014
737
|
);
|
|
1015
738
|
}
|
|
1016
739
|
);
|
|
1017
|
-
|
|
1018
|
-
function
|
|
740
|
+
er.displayName = "DateInput";
|
|
741
|
+
function tr(t) {
|
|
1019
742
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1020
743
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return
|
|
744
|
+
function vt(t) {
|
|
745
|
+
return tr(t) || Array.isArray(t);
|
|
1023
746
|
}
|
|
1024
|
-
function
|
|
747
|
+
function nr() {
|
|
1025
748
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1026
749
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const n = Object.keys(t),
|
|
1029
|
-
if (n.length !==
|
|
1030
|
-
const i = JSON.stringify(Object.keys(t.breakpoints || {})),
|
|
1031
|
-
return i !==
|
|
1032
|
-
const
|
|
1033
|
-
return typeof
|
|
750
|
+
function Ze(t, e) {
|
|
751
|
+
const n = Object.keys(t), r = Object.keys(e);
|
|
752
|
+
if (n.length !== r.length) return !1;
|
|
753
|
+
const i = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(e.breakpoints || {}));
|
|
754
|
+
return i !== s ? !1 : n.every((o) => {
|
|
755
|
+
const l = t[o], a = e[o];
|
|
756
|
+
return typeof l == "function" ? `${l}` == `${a}` : !vt(l) || !vt(a) ? l === a : Ze(l, a);
|
|
1034
757
|
});
|
|
1035
758
|
}
|
|
1036
|
-
function
|
|
759
|
+
function bt(t) {
|
|
1037
760
|
return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
|
|
1038
761
|
}
|
|
1039
|
-
function
|
|
762
|
+
function or(t, e) {
|
|
1040
763
|
if (t.length !== e.length) return !1;
|
|
1041
|
-
const n =
|
|
1042
|
-
return n.every((i,
|
|
1043
|
-
const
|
|
1044
|
-
return
|
|
764
|
+
const n = bt(t), r = bt(e);
|
|
765
|
+
return n.every((i, s) => {
|
|
766
|
+
const o = r[s];
|
|
767
|
+
return Ze(i, o);
|
|
1045
768
|
});
|
|
1046
769
|
}
|
|
1047
|
-
function
|
|
770
|
+
function Je(t) {
|
|
1048
771
|
return typeof t == "number";
|
|
1049
772
|
}
|
|
1050
|
-
function
|
|
773
|
+
function qe(t) {
|
|
1051
774
|
return typeof t == "string";
|
|
1052
775
|
}
|
|
1053
|
-
function
|
|
776
|
+
function Ee(t) {
|
|
1054
777
|
return typeof t == "boolean";
|
|
1055
778
|
}
|
|
1056
|
-
function
|
|
779
|
+
function yt(t) {
|
|
1057
780
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1058
781
|
}
|
|
1059
|
-
function
|
|
782
|
+
function W(t) {
|
|
1060
783
|
return Math.abs(t);
|
|
1061
784
|
}
|
|
1062
|
-
function
|
|
785
|
+
function Qe(t) {
|
|
1063
786
|
return Math.sign(t);
|
|
1064
787
|
}
|
|
1065
788
|
function Ie(t, e) {
|
|
1066
|
-
return
|
|
789
|
+
return W(t - e);
|
|
1067
790
|
}
|
|
1068
|
-
function
|
|
1069
|
-
if (t === 0 || e === 0 ||
|
|
1070
|
-
const n = Ie(
|
|
1071
|
-
return
|
|
791
|
+
function rr(t, e) {
|
|
792
|
+
if (t === 0 || e === 0 || W(t) <= W(e)) return 0;
|
|
793
|
+
const n = Ie(W(t), W(e));
|
|
794
|
+
return W(n / t);
|
|
1072
795
|
}
|
|
1073
|
-
function
|
|
796
|
+
function sr(t) {
|
|
1074
797
|
return Math.round(t * 100) / 100;
|
|
1075
798
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return
|
|
799
|
+
function Ae(t) {
|
|
800
|
+
return je(t).map(Number);
|
|
1078
801
|
}
|
|
1079
|
-
function
|
|
1080
|
-
return t[
|
|
802
|
+
function ae(t) {
|
|
803
|
+
return t[Fe(t)];
|
|
1081
804
|
}
|
|
1082
|
-
function
|
|
805
|
+
function Fe(t) {
|
|
1083
806
|
return Math.max(0, t.length - 1);
|
|
1084
807
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return e ===
|
|
808
|
+
function Xe(t, e) {
|
|
809
|
+
return e === Fe(t);
|
|
1087
810
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return Array.from(Array(t), (n,
|
|
811
|
+
function Tt(t, e = 0) {
|
|
812
|
+
return Array.from(Array(t), (n, r) => e + r);
|
|
1090
813
|
}
|
|
1091
|
-
function
|
|
814
|
+
function je(t) {
|
|
1092
815
|
return Object.keys(t);
|
|
1093
816
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return [t, e].reduce((n,
|
|
1096
|
-
const
|
|
1097
|
-
n[i] =
|
|
817
|
+
function At(t, e) {
|
|
818
|
+
return [t, e].reduce((n, r) => (je(r).forEach((i) => {
|
|
819
|
+
const s = n[i], o = r[i], l = yt(s) && yt(o);
|
|
820
|
+
n[i] = l ? At(s, o) : o;
|
|
1098
821
|
}), n), {});
|
|
1099
822
|
}
|
|
1100
|
-
function
|
|
823
|
+
function Ke(t, e) {
|
|
1101
824
|
return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
|
|
1102
825
|
}
|
|
1103
|
-
function
|
|
826
|
+
function ir(t, e) {
|
|
1104
827
|
const n = {
|
|
1105
|
-
start:
|
|
828
|
+
start: r,
|
|
1106
829
|
center: i,
|
|
1107
|
-
end:
|
|
830
|
+
end: s
|
|
1108
831
|
};
|
|
1109
|
-
function
|
|
832
|
+
function r() {
|
|
1110
833
|
return 0;
|
|
1111
834
|
}
|
|
1112
|
-
function i(
|
|
1113
|
-
return a
|
|
835
|
+
function i(a) {
|
|
836
|
+
return s(a) / 2;
|
|
1114
837
|
}
|
|
1115
|
-
function a
|
|
1116
|
-
return e -
|
|
838
|
+
function s(a) {
|
|
839
|
+
return e - a;
|
|
1117
840
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return
|
|
841
|
+
function o(a, c) {
|
|
842
|
+
return qe(t) ? n[t](a) : t(e, a, c);
|
|
1120
843
|
}
|
|
1121
844
|
return {
|
|
1122
|
-
measure:
|
|
845
|
+
measure: o
|
|
1123
846
|
};
|
|
1124
847
|
}
|
|
1125
|
-
function
|
|
848
|
+
function Le() {
|
|
1126
849
|
let t = [];
|
|
1127
|
-
function e(i,
|
|
850
|
+
function e(i, s, o, l = {
|
|
1128
851
|
passive: !0
|
|
1129
852
|
}) {
|
|
1130
|
-
let
|
|
853
|
+
let a;
|
|
1131
854
|
if ("addEventListener" in i)
|
|
1132
|
-
i.addEventListener(
|
|
855
|
+
i.addEventListener(s, o, l), a = () => i.removeEventListener(s, o, l);
|
|
1133
856
|
else {
|
|
1134
|
-
const
|
|
1135
|
-
|
|
857
|
+
const c = i;
|
|
858
|
+
c.addListener(o), a = () => c.removeListener(o);
|
|
1136
859
|
}
|
|
1137
|
-
return t.push(
|
|
860
|
+
return t.push(a), r;
|
|
1138
861
|
}
|
|
1139
862
|
function n() {
|
|
1140
863
|
t = t.filter((i) => i());
|
|
1141
864
|
}
|
|
1142
|
-
const
|
|
865
|
+
const r = {
|
|
1143
866
|
add: e,
|
|
1144
867
|
clear: n
|
|
1145
868
|
};
|
|
1146
|
-
return
|
|
869
|
+
return r;
|
|
1147
870
|
}
|
|
1148
|
-
function
|
|
1149
|
-
const i =
|
|
1150
|
-
let
|
|
1151
|
-
function
|
|
871
|
+
function ar(t, e, n, r) {
|
|
872
|
+
const i = Le(), s = 1e3 / 60;
|
|
873
|
+
let o = null, l = 0, a = 0;
|
|
874
|
+
function c() {
|
|
1152
875
|
i.add(t, "visibilitychange", () => {
|
|
1153
|
-
t.hidden &&
|
|
876
|
+
t.hidden && f();
|
|
1154
877
|
});
|
|
1155
878
|
}
|
|
1156
|
-
function
|
|
879
|
+
function b() {
|
|
1157
880
|
g(), i.clear();
|
|
1158
881
|
}
|
|
1159
|
-
function
|
|
1160
|
-
if (!
|
|
1161
|
-
|
|
1162
|
-
const
|
|
1163
|
-
for (
|
|
1164
|
-
n(),
|
|
1165
|
-
const
|
|
1166
|
-
|
|
882
|
+
function p(v) {
|
|
883
|
+
if (!a) return;
|
|
884
|
+
o || (o = v, n(), n());
|
|
885
|
+
const m = v - o;
|
|
886
|
+
for (o = v, l += m; l >= s; )
|
|
887
|
+
n(), l -= s;
|
|
888
|
+
const u = l / s;
|
|
889
|
+
r(u), a && (a = e.requestAnimationFrame(p));
|
|
1167
890
|
}
|
|
1168
891
|
function k() {
|
|
1169
|
-
|
|
892
|
+
a || (a = e.requestAnimationFrame(p));
|
|
1170
893
|
}
|
|
1171
894
|
function g() {
|
|
1172
|
-
e.cancelAnimationFrame(
|
|
895
|
+
e.cancelAnimationFrame(a), o = null, l = 0, a = 0;
|
|
1173
896
|
}
|
|
1174
|
-
function
|
|
1175
|
-
|
|
897
|
+
function f() {
|
|
898
|
+
o = null, l = 0;
|
|
1176
899
|
}
|
|
1177
900
|
return {
|
|
1178
|
-
init:
|
|
1179
|
-
destroy:
|
|
901
|
+
init: c,
|
|
902
|
+
destroy: b,
|
|
1180
903
|
start: k,
|
|
1181
904
|
stop: g,
|
|
1182
905
|
update: n,
|
|
1183
|
-
render:
|
|
906
|
+
render: r
|
|
1184
907
|
};
|
|
1185
908
|
}
|
|
1186
|
-
function
|
|
1187
|
-
const n = e === "rtl",
|
|
1188
|
-
function
|
|
909
|
+
function lr(t, e) {
|
|
910
|
+
const n = e === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", o = !r && n ? -1 : 1, l = b(), a = p();
|
|
911
|
+
function c(f) {
|
|
1189
912
|
const {
|
|
1190
|
-
height:
|
|
913
|
+
height: h,
|
|
1191
914
|
width: v
|
|
1192
|
-
} =
|
|
1193
|
-
return
|
|
915
|
+
} = f;
|
|
916
|
+
return r ? h : v;
|
|
1194
917
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return
|
|
918
|
+
function b() {
|
|
919
|
+
return r ? "top" : n ? "right" : "left";
|
|
1197
920
|
}
|
|
1198
|
-
function
|
|
1199
|
-
return
|
|
921
|
+
function p() {
|
|
922
|
+
return r ? "bottom" : n ? "left" : "right";
|
|
1200
923
|
}
|
|
1201
|
-
function k(
|
|
1202
|
-
return
|
|
924
|
+
function k(f) {
|
|
925
|
+
return f * o;
|
|
1203
926
|
}
|
|
1204
927
|
return {
|
|
1205
928
|
scroll: i,
|
|
1206
|
-
cross:
|
|
1207
|
-
startEdge:
|
|
1208
|
-
endEdge:
|
|
1209
|
-
measureSize:
|
|
929
|
+
cross: s,
|
|
930
|
+
startEdge: l,
|
|
931
|
+
endEdge: a,
|
|
932
|
+
measureSize: c,
|
|
1210
933
|
direction: k
|
|
1211
934
|
};
|
|
1212
935
|
}
|
|
1213
|
-
function
|
|
1214
|
-
const n =
|
|
1215
|
-
function
|
|
1216
|
-
return
|
|
936
|
+
function he(t = 0, e = 0) {
|
|
937
|
+
const n = W(t - e);
|
|
938
|
+
function r(c) {
|
|
939
|
+
return c < t;
|
|
1217
940
|
}
|
|
1218
|
-
function i(
|
|
1219
|
-
return
|
|
941
|
+
function i(c) {
|
|
942
|
+
return c > e;
|
|
1220
943
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return
|
|
944
|
+
function s(c) {
|
|
945
|
+
return r(c) || i(c);
|
|
1223
946
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return
|
|
947
|
+
function o(c) {
|
|
948
|
+
return s(c) ? r(c) ? t : e : c;
|
|
1226
949
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return n ?
|
|
950
|
+
function l(c) {
|
|
951
|
+
return n ? c - n * Math.ceil((c - e) / n) : c;
|
|
1229
952
|
}
|
|
1230
953
|
return {
|
|
1231
954
|
length: n,
|
|
1232
955
|
max: e,
|
|
1233
956
|
min: t,
|
|
1234
|
-
constrain:
|
|
1235
|
-
reachedAny:
|
|
957
|
+
constrain: o,
|
|
958
|
+
reachedAny: s,
|
|
1236
959
|
reachedMax: i,
|
|
1237
|
-
reachedMin:
|
|
1238
|
-
removeOffset:
|
|
960
|
+
reachedMin: r,
|
|
961
|
+
removeOffset: l
|
|
1239
962
|
};
|
|
1240
963
|
}
|
|
1241
|
-
function
|
|
964
|
+
function jt(t, e, n) {
|
|
1242
965
|
const {
|
|
1243
|
-
constrain:
|
|
1244
|
-
} =
|
|
1245
|
-
let
|
|
1246
|
-
function
|
|
1247
|
-
return n ?
|
|
966
|
+
constrain: r
|
|
967
|
+
} = he(0, t), i = t + 1;
|
|
968
|
+
let s = o(e);
|
|
969
|
+
function o(k) {
|
|
970
|
+
return n ? W((i + k) % i) : r(k);
|
|
1248
971
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return
|
|
972
|
+
function l() {
|
|
973
|
+
return s;
|
|
1251
974
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return
|
|
975
|
+
function a(k) {
|
|
976
|
+
return s = o(k), p;
|
|
1254
977
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return
|
|
978
|
+
function c(k) {
|
|
979
|
+
return b().set(l() + k);
|
|
1257
980
|
}
|
|
1258
|
-
function
|
|
1259
|
-
return
|
|
981
|
+
function b() {
|
|
982
|
+
return jt(t, l(), n);
|
|
1260
983
|
}
|
|
1261
|
-
const
|
|
1262
|
-
get:
|
|
1263
|
-
set:
|
|
1264
|
-
add:
|
|
1265
|
-
clone:
|
|
984
|
+
const p = {
|
|
985
|
+
get: l,
|
|
986
|
+
set: a,
|
|
987
|
+
add: c,
|
|
988
|
+
clone: b
|
|
1266
989
|
};
|
|
1267
|
-
return
|
|
990
|
+
return p;
|
|
1268
991
|
}
|
|
1269
|
-
function
|
|
992
|
+
function dr(t, e, n, r, i, s, o, l, a, c, b, p, k, g, f, h, v, m, u) {
|
|
1270
993
|
const {
|
|
1271
994
|
cross: T,
|
|
1272
|
-
direction:
|
|
1273
|
-
} = t,
|
|
995
|
+
direction: j
|
|
996
|
+
} = t, A = ["INPUT", "SELECT", "TEXTAREA"], L = {
|
|
1274
997
|
passive: !1
|
|
1275
|
-
},
|
|
998
|
+
}, w = Le(), I = Le(), F = he(50, 225).constrain(g.measure(20)), z = {
|
|
1276
999
|
mouse: 300,
|
|
1277
1000
|
touch: 400
|
|
1278
|
-
},
|
|
1001
|
+
}, P = {
|
|
1279
1002
|
mouse: 500,
|
|
1280
1003
|
touch: 600
|
|
1281
|
-
},
|
|
1282
|
-
let
|
|
1283
|
-
function
|
|
1284
|
-
if (!
|
|
1285
|
-
function
|
|
1286
|
-
(
|
|
1004
|
+
}, R = f ? 43 : 25;
|
|
1005
|
+
let _ = !1, M = 0, D = 0, V = !1, oe = !1, Z = !1, Y = !1;
|
|
1006
|
+
function de(S) {
|
|
1007
|
+
if (!u) return;
|
|
1008
|
+
function E(G) {
|
|
1009
|
+
(Ee(u) || u(S, G)) && C(G);
|
|
1287
1010
|
}
|
|
1288
|
-
const
|
|
1289
|
-
|
|
1290
|
-
},
|
|
1291
|
-
}).add(
|
|
1011
|
+
const H = e;
|
|
1012
|
+
w.add(H, "dragstart", (G) => G.preventDefault(), L).add(H, "touchmove", () => {
|
|
1013
|
+
}, L).add(H, "touchend", () => {
|
|
1014
|
+
}).add(H, "touchstart", E).add(H, "mousedown", E).add(H, "touchcancel", O).add(H, "contextmenu", O).add(H, "click", te, !0);
|
|
1292
1015
|
}
|
|
1293
|
-
function
|
|
1294
|
-
|
|
1016
|
+
function J() {
|
|
1017
|
+
w.clear(), I.clear();
|
|
1295
1018
|
}
|
|
1296
|
-
function
|
|
1297
|
-
const
|
|
1298
|
-
|
|
1019
|
+
function ie() {
|
|
1020
|
+
const S = Y ? n : e;
|
|
1021
|
+
I.add(S, "touchmove", N, L).add(S, "touchend", O).add(S, "mousemove", N, L).add(S, "mouseup", O);
|
|
1299
1022
|
}
|
|
1300
|
-
function
|
|
1301
|
-
const
|
|
1302
|
-
return
|
|
1023
|
+
function Q(S) {
|
|
1024
|
+
const E = S.nodeName || "";
|
|
1025
|
+
return A.includes(E);
|
|
1303
1026
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return (
|
|
1027
|
+
function X() {
|
|
1028
|
+
return (f ? P : z)[Y ? "mouse" : "touch"];
|
|
1306
1029
|
}
|
|
1307
|
-
function x(
|
|
1308
|
-
const
|
|
1309
|
-
return
|
|
1030
|
+
function x(S, E) {
|
|
1031
|
+
const H = p.add(Qe(S) * -1), G = b.byDistance(S, !f).distance;
|
|
1032
|
+
return f || W(S) < F ? G : v && E ? G * 0.5 : b.byIndex(H.get(), 0).distance;
|
|
1310
1033
|
}
|
|
1311
|
-
function
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1034
|
+
function C(S) {
|
|
1035
|
+
const E = Ke(S, r);
|
|
1036
|
+
Y = E, Z = f && E && !S.buttons && _, _ = Ie(i.get(), o.get()) >= 2, !(E && S.button !== 0) && (Q(S.target) || (V = !0, s.pointerDown(S), c.useFriction(0).useDuration(0), i.set(o), ie(), M = s.readPoint(S), D = s.readPoint(S, T), k.emit("pointerDown")));
|
|
1314
1037
|
}
|
|
1315
|
-
function
|
|
1316
|
-
if (!
|
|
1317
|
-
const
|
|
1318
|
-
if (!
|
|
1319
|
-
return
|
|
1320
|
-
const
|
|
1321
|
-
le >
|
|
1038
|
+
function N(S) {
|
|
1039
|
+
if (!Ke(S, r) && S.touches.length >= 2) return O(S);
|
|
1040
|
+
const H = s.readPoint(S), G = s.readPoint(S, T), le = Ie(H, M), ce = Ie(G, D);
|
|
1041
|
+
if (!oe && !Y && (!S.cancelable || (oe = le > ce, !oe)))
|
|
1042
|
+
return O(S);
|
|
1043
|
+
const ge = s.pointerMove(S);
|
|
1044
|
+
le > h && (Z = !0), c.useFriction(0.3).useDuration(0.75), l.start(), i.add(j(ge)), S.preventDefault();
|
|
1322
1045
|
}
|
|
1323
|
-
function
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1046
|
+
function O(S) {
|
|
1047
|
+
const H = b.byDistance(0, !1).index !== p.get(), G = s.pointerUp(S) * X(), le = x(j(G), H), ce = rr(G, le), ge = R - 10 * ce, ue = m + ce / 50;
|
|
1048
|
+
oe = !1, V = !1, I.clear(), c.useDuration(ge).useFriction(ue), a.distance(le, !f), Y = !1, k.emit("pointerUp");
|
|
1326
1049
|
}
|
|
1327
|
-
function
|
|
1328
|
-
|
|
1050
|
+
function te(S) {
|
|
1051
|
+
Z && (S.stopPropagation(), S.preventDefault(), Z = !1);
|
|
1329
1052
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1053
|
+
function ee() {
|
|
1054
|
+
return V;
|
|
1332
1055
|
}
|
|
1333
1056
|
return {
|
|
1334
|
-
init:
|
|
1335
|
-
destroy:
|
|
1336
|
-
pointerDown:
|
|
1057
|
+
init: de,
|
|
1058
|
+
destroy: J,
|
|
1059
|
+
pointerDown: ee
|
|
1337
1060
|
};
|
|
1338
1061
|
}
|
|
1339
|
-
function
|
|
1340
|
-
let
|
|
1341
|
-
function
|
|
1342
|
-
return
|
|
1062
|
+
function cr(t, e) {
|
|
1063
|
+
let r, i;
|
|
1064
|
+
function s(p) {
|
|
1065
|
+
return p.timeStamp;
|
|
1343
1066
|
}
|
|
1344
|
-
function
|
|
1345
|
-
const
|
|
1346
|
-
return (
|
|
1067
|
+
function o(p, k) {
|
|
1068
|
+
const f = `client${(k || t.scroll) === "x" ? "X" : "Y"}`;
|
|
1069
|
+
return (Ke(p, e) ? p : p.touches[0])[f];
|
|
1347
1070
|
}
|
|
1348
|
-
function
|
|
1349
|
-
return
|
|
1071
|
+
function l(p) {
|
|
1072
|
+
return r = p, i = p, o(p);
|
|
1350
1073
|
}
|
|
1351
|
-
function
|
|
1352
|
-
const k =
|
|
1353
|
-
return i =
|
|
1074
|
+
function a(p) {
|
|
1075
|
+
const k = o(p) - o(i), g = s(p) - s(r) > 170;
|
|
1076
|
+
return i = p, g && (r = p), k;
|
|
1354
1077
|
}
|
|
1355
|
-
function
|
|
1356
|
-
if (!
|
|
1357
|
-
const k =
|
|
1358
|
-
return g && !
|
|
1078
|
+
function c(p) {
|
|
1079
|
+
if (!r || !i) return 0;
|
|
1080
|
+
const k = o(i) - o(r), g = s(p) - s(r), f = s(p) - s(i) > 170, h = k / g;
|
|
1081
|
+
return g && !f && W(h) > 0.1 ? h : 0;
|
|
1359
1082
|
}
|
|
1360
1083
|
return {
|
|
1361
|
-
pointerDown:
|
|
1362
|
-
pointerMove:
|
|
1363
|
-
pointerUp:
|
|
1364
|
-
readPoint:
|
|
1084
|
+
pointerDown: l,
|
|
1085
|
+
pointerMove: a,
|
|
1086
|
+
pointerUp: c,
|
|
1087
|
+
readPoint: o
|
|
1365
1088
|
};
|
|
1366
1089
|
}
|
|
1367
|
-
function
|
|
1090
|
+
function ur() {
|
|
1368
1091
|
function t(n) {
|
|
1369
1092
|
const {
|
|
1370
|
-
offsetTop:
|
|
1093
|
+
offsetTop: r,
|
|
1371
1094
|
offsetLeft: i,
|
|
1372
|
-
offsetWidth:
|
|
1373
|
-
offsetHeight:
|
|
1095
|
+
offsetWidth: s,
|
|
1096
|
+
offsetHeight: o
|
|
1374
1097
|
} = n;
|
|
1375
1098
|
return {
|
|
1376
|
-
top:
|
|
1377
|
-
right: i +
|
|
1378
|
-
bottom:
|
|
1099
|
+
top: r,
|
|
1100
|
+
right: i + s,
|
|
1101
|
+
bottom: r + o,
|
|
1379
1102
|
left: i,
|
|
1380
|
-
width:
|
|
1381
|
-
height:
|
|
1103
|
+
width: s,
|
|
1104
|
+
height: o
|
|
1382
1105
|
};
|
|
1383
1106
|
}
|
|
1384
1107
|
return {
|
|
1385
1108
|
measure: t
|
|
1386
1109
|
};
|
|
1387
1110
|
}
|
|
1388
|
-
function
|
|
1389
|
-
function e(
|
|
1390
|
-
return t * (
|
|
1111
|
+
function mr(t) {
|
|
1112
|
+
function e(r) {
|
|
1113
|
+
return t * (r / 100);
|
|
1391
1114
|
}
|
|
1392
1115
|
return {
|
|
1393
1116
|
measure: e
|
|
1394
1117
|
};
|
|
1395
1118
|
}
|
|
1396
|
-
function
|
|
1397
|
-
const
|
|
1398
|
-
let
|
|
1119
|
+
function gr(t, e, n, r, i, s, o) {
|
|
1120
|
+
const l = [t].concat(r);
|
|
1121
|
+
let a, c, b = [], p = !1;
|
|
1399
1122
|
function k(v) {
|
|
1400
|
-
return i.measureSize(
|
|
1123
|
+
return i.measureSize(o.measure(v));
|
|
1401
1124
|
}
|
|
1402
1125
|
function g(v) {
|
|
1403
|
-
if (!
|
|
1404
|
-
|
|
1405
|
-
function
|
|
1406
|
-
for (const T of
|
|
1407
|
-
if (
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1126
|
+
if (!s) return;
|
|
1127
|
+
c = k(t), b = r.map(k);
|
|
1128
|
+
function m(u) {
|
|
1129
|
+
for (const T of u) {
|
|
1130
|
+
if (p) return;
|
|
1131
|
+
const j = T.target === t, A = r.indexOf(T.target), L = j ? c : b[A], w = k(j ? t : r[A]);
|
|
1132
|
+
if (W(w - L) >= 0.5) {
|
|
1410
1133
|
v.reInit(), e.emit("resize");
|
|
1411
1134
|
break;
|
|
1412
1135
|
}
|
|
1413
1136
|
}
|
|
1414
1137
|
}
|
|
1415
|
-
|
|
1416
|
-
(
|
|
1138
|
+
a = new ResizeObserver((u) => {
|
|
1139
|
+
(Ee(s) || s(v, u)) && m(u);
|
|
1417
1140
|
}), n.requestAnimationFrame(() => {
|
|
1418
|
-
|
|
1141
|
+
l.forEach((u) => a.observe(u));
|
|
1419
1142
|
});
|
|
1420
1143
|
}
|
|
1421
|
-
function
|
|
1422
|
-
|
|
1144
|
+
function f() {
|
|
1145
|
+
p = !0, a && a.disconnect();
|
|
1423
1146
|
}
|
|
1424
1147
|
return {
|
|
1425
1148
|
init: g,
|
|
1426
|
-
destroy:
|
|
1149
|
+
destroy: f
|
|
1427
1150
|
};
|
|
1428
1151
|
}
|
|
1429
|
-
function
|
|
1430
|
-
let
|
|
1152
|
+
function pr(t, e, n, r, i, s) {
|
|
1153
|
+
let o = 0, l = 0, a = i, c = s, b = t.get(), p = 0;
|
|
1431
1154
|
function k() {
|
|
1432
|
-
const
|
|
1433
|
-
let
|
|
1434
|
-
return
|
|
1155
|
+
const L = r.get() - t.get(), w = !a;
|
|
1156
|
+
let I = 0;
|
|
1157
|
+
return w ? (o = 0, n.set(r), t.set(r), I = L) : (n.set(t), o += L / a, o *= c, b += o, t.add(o), I = b - p), l = Qe(I), p = b, A;
|
|
1435
1158
|
}
|
|
1436
1159
|
function g() {
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1160
|
+
const L = r.get() - e.get();
|
|
1161
|
+
return W(L) < 1e-3;
|
|
1162
|
+
}
|
|
1163
|
+
function f() {
|
|
1164
|
+
return a;
|
|
1439
1165
|
}
|
|
1440
1166
|
function h() {
|
|
1441
1167
|
return l;
|
|
1442
1168
|
}
|
|
1443
|
-
function b() {
|
|
1444
|
-
return d;
|
|
1445
|
-
}
|
|
1446
1169
|
function v() {
|
|
1447
|
-
return
|
|
1170
|
+
return o;
|
|
1448
1171
|
}
|
|
1449
|
-
function
|
|
1172
|
+
function m() {
|
|
1450
1173
|
return T(i);
|
|
1451
1174
|
}
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1175
|
+
function u() {
|
|
1176
|
+
return j(s);
|
|
1454
1177
|
}
|
|
1455
|
-
function T(
|
|
1456
|
-
return
|
|
1178
|
+
function T(L) {
|
|
1179
|
+
return a = L, A;
|
|
1457
1180
|
}
|
|
1458
|
-
function
|
|
1459
|
-
return
|
|
1181
|
+
function j(L) {
|
|
1182
|
+
return c = L, A;
|
|
1460
1183
|
}
|
|
1461
|
-
const
|
|
1462
|
-
direction:
|
|
1463
|
-
duration:
|
|
1184
|
+
const A = {
|
|
1185
|
+
direction: h,
|
|
1186
|
+
duration: f,
|
|
1464
1187
|
velocity: v,
|
|
1465
1188
|
seek: k,
|
|
1466
1189
|
settled: g,
|
|
1467
|
-
useBaseFriction:
|
|
1468
|
-
useBaseDuration:
|
|
1469
|
-
useFriction:
|
|
1190
|
+
useBaseFriction: u,
|
|
1191
|
+
useBaseDuration: m,
|
|
1192
|
+
useFriction: j,
|
|
1470
1193
|
useDuration: T
|
|
1471
1194
|
};
|
|
1472
|
-
return
|
|
1195
|
+
return A;
|
|
1473
1196
|
}
|
|
1474
|
-
function
|
|
1475
|
-
const
|
|
1476
|
-
let
|
|
1477
|
-
function
|
|
1478
|
-
return !(
|
|
1197
|
+
function fr(t, e, n, r, i) {
|
|
1198
|
+
const s = i.measure(10), o = i.measure(50), l = he(0.1, 0.99);
|
|
1199
|
+
let a = !1;
|
|
1200
|
+
function c() {
|
|
1201
|
+
return !(a || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
|
|
1479
1202
|
}
|
|
1480
|
-
function
|
|
1481
|
-
if (!
|
|
1482
|
-
const
|
|
1483
|
-
n.subtract(v *
|
|
1203
|
+
function b(g) {
|
|
1204
|
+
if (!c()) return;
|
|
1205
|
+
const f = t.reachedMin(e.get()) ? "min" : "max", h = W(t[f] - e.get()), v = n.get() - e.get(), m = l.constrain(h / o);
|
|
1206
|
+
n.subtract(v * m), !g && W(v) < s && (n.set(t.constrain(n.get())), r.useDuration(25).useBaseFriction());
|
|
1484
1207
|
}
|
|
1485
|
-
function
|
|
1486
|
-
|
|
1208
|
+
function p(g) {
|
|
1209
|
+
a = !g;
|
|
1487
1210
|
}
|
|
1488
1211
|
return {
|
|
1489
|
-
shouldConstrain:
|
|
1490
|
-
constrain:
|
|
1491
|
-
toggleActive:
|
|
1212
|
+
shouldConstrain: c,
|
|
1213
|
+
constrain: b,
|
|
1214
|
+
toggleActive: p
|
|
1492
1215
|
};
|
|
1493
1216
|
}
|
|
1494
|
-
function
|
|
1495
|
-
const
|
|
1496
|
-
function
|
|
1497
|
-
return Ie(
|
|
1217
|
+
function hr(t, e, n, r, i) {
|
|
1218
|
+
const s = he(-e + t, 0), o = p(), l = b(), a = k();
|
|
1219
|
+
function c(f, h) {
|
|
1220
|
+
return Ie(f, h) <= 1;
|
|
1498
1221
|
}
|
|
1499
|
-
function
|
|
1500
|
-
const
|
|
1501
|
-
return
|
|
1222
|
+
function b() {
|
|
1223
|
+
const f = o[0], h = ae(o), v = o.lastIndexOf(f), m = o.indexOf(h) + 1;
|
|
1224
|
+
return he(v, m);
|
|
1502
1225
|
}
|
|
1503
|
-
function
|
|
1504
|
-
return n.map((
|
|
1226
|
+
function p() {
|
|
1227
|
+
return n.map((f, h) => {
|
|
1505
1228
|
const {
|
|
1506
1229
|
min: v,
|
|
1507
|
-
max:
|
|
1508
|
-
} =
|
|
1509
|
-
return T ?
|
|
1510
|
-
}).map((
|
|
1230
|
+
max: m
|
|
1231
|
+
} = s, u = s.constrain(f), T = !h, j = Xe(n, h);
|
|
1232
|
+
return T ? m : j || c(v, u) ? v : c(m, u) ? m : u;
|
|
1233
|
+
}).map((f) => parseFloat(f.toFixed(3)));
|
|
1511
1234
|
}
|
|
1512
1235
|
function k() {
|
|
1513
|
-
if (e <= t + i) return [
|
|
1514
|
-
if (
|
|
1236
|
+
if (e <= t + i) return [s.max];
|
|
1237
|
+
if (r === "keepSnaps") return o;
|
|
1515
1238
|
const {
|
|
1516
|
-
min:
|
|
1517
|
-
max:
|
|
1518
|
-
} =
|
|
1519
|
-
return
|
|
1239
|
+
min: f,
|
|
1240
|
+
max: h
|
|
1241
|
+
} = l;
|
|
1242
|
+
return o.slice(f, h);
|
|
1520
1243
|
}
|
|
1521
1244
|
return {
|
|
1522
|
-
snapsContained:
|
|
1523
|
-
scrollContainLimit:
|
|
1245
|
+
snapsContained: a,
|
|
1246
|
+
scrollContainLimit: l
|
|
1524
1247
|
};
|
|
1525
1248
|
}
|
|
1526
|
-
function
|
|
1527
|
-
const
|
|
1249
|
+
function kr(t, e, n) {
|
|
1250
|
+
const r = e[0], i = n ? r - t : ae(e);
|
|
1528
1251
|
return {
|
|
1529
|
-
limit:
|
|
1252
|
+
limit: he(i, r)
|
|
1530
1253
|
};
|
|
1531
1254
|
}
|
|
1532
|
-
function
|
|
1533
|
-
const
|
|
1534
|
-
reachedMin:
|
|
1535
|
-
reachedMax:
|
|
1536
|
-
} =
|
|
1537
|
-
function
|
|
1538
|
-
return k === 1 ?
|
|
1539
|
-
}
|
|
1540
|
-
function
|
|
1541
|
-
if (!
|
|
1255
|
+
function vr(t, e, n, r) {
|
|
1256
|
+
const s = e.min + 0.1, o = e.max + 0.1, {
|
|
1257
|
+
reachedMin: l,
|
|
1258
|
+
reachedMax: a
|
|
1259
|
+
} = he(s, o);
|
|
1260
|
+
function c(k) {
|
|
1261
|
+
return k === 1 ? a(n.get()) : k === -1 ? l(n.get()) : !1;
|
|
1262
|
+
}
|
|
1263
|
+
function b(k) {
|
|
1264
|
+
if (!c(k)) return;
|
|
1542
1265
|
const g = t * (k * -1);
|
|
1543
|
-
|
|
1266
|
+
r.forEach((f) => f.add(g));
|
|
1544
1267
|
}
|
|
1545
1268
|
return {
|
|
1546
|
-
loop:
|
|
1269
|
+
loop: b
|
|
1547
1270
|
};
|
|
1548
1271
|
}
|
|
1549
|
-
function
|
|
1272
|
+
function br(t) {
|
|
1550
1273
|
const {
|
|
1551
1274
|
max: e,
|
|
1552
1275
|
length: n
|
|
1553
1276
|
} = t;
|
|
1554
|
-
function s
|
|
1555
|
-
const
|
|
1556
|
-
return n ?
|
|
1277
|
+
function r(s) {
|
|
1278
|
+
const o = s - e;
|
|
1279
|
+
return n ? o / -n : 0;
|
|
1557
1280
|
}
|
|
1558
1281
|
return {
|
|
1559
|
-
get:
|
|
1282
|
+
get: r
|
|
1560
1283
|
};
|
|
1561
1284
|
}
|
|
1562
|
-
function
|
|
1285
|
+
function yr(t, e, n, r, i) {
|
|
1563
1286
|
const {
|
|
1564
|
-
startEdge:
|
|
1565
|
-
endEdge:
|
|
1287
|
+
startEdge: s,
|
|
1288
|
+
endEdge: o
|
|
1566
1289
|
} = t, {
|
|
1567
|
-
groupSlides:
|
|
1568
|
-
} = i,
|
|
1569
|
-
function
|
|
1570
|
-
return
|
|
1290
|
+
groupSlides: l
|
|
1291
|
+
} = i, a = p().map(e.measure), c = k(), b = g();
|
|
1292
|
+
function p() {
|
|
1293
|
+
return l(r).map((h) => ae(h)[o] - h[0][s]).map(W);
|
|
1571
1294
|
}
|
|
1572
1295
|
function k() {
|
|
1573
|
-
return
|
|
1296
|
+
return r.map((h) => n[s] - h[s]).map((h) => -W(h));
|
|
1574
1297
|
}
|
|
1575
1298
|
function g() {
|
|
1576
|
-
return
|
|
1299
|
+
return l(c).map((h) => h[0]).map((h, v) => h + a[v]);
|
|
1577
1300
|
}
|
|
1578
1301
|
return {
|
|
1579
|
-
snaps:
|
|
1580
|
-
snapsAligned:
|
|
1302
|
+
snaps: c,
|
|
1303
|
+
snapsAligned: b
|
|
1581
1304
|
};
|
|
1582
1305
|
}
|
|
1583
|
-
function
|
|
1306
|
+
function Tr(t, e, n, r, i, s) {
|
|
1584
1307
|
const {
|
|
1585
|
-
groupSlides:
|
|
1308
|
+
groupSlides: o
|
|
1586
1309
|
} = i, {
|
|
1587
|
-
min:
|
|
1588
|
-
max:
|
|
1589
|
-
} =
|
|
1590
|
-
function
|
|
1591
|
-
const k =
|
|
1592
|
-
return n.length === 1 ? [
|
|
1593
|
-
const
|
|
1594
|
-
if (p) {
|
|
1595
|
-
const T = ie(v[0]) + 1;
|
|
1596
|
-
return jt(T);
|
|
1597
|
-
}
|
|
1310
|
+
min: l,
|
|
1311
|
+
max: a
|
|
1312
|
+
} = r, c = b();
|
|
1313
|
+
function b() {
|
|
1314
|
+
const k = o(s), g = !t || e === "keepSnaps";
|
|
1315
|
+
return n.length === 1 ? [s] : g ? k : k.slice(l, a).map((f, h, v) => {
|
|
1316
|
+
const m = !h, u = Xe(v, h);
|
|
1598
1317
|
if (m) {
|
|
1599
|
-
const T =
|
|
1600
|
-
return
|
|
1318
|
+
const T = ae(v[0]) + 1;
|
|
1319
|
+
return Tt(T);
|
|
1320
|
+
}
|
|
1321
|
+
if (u) {
|
|
1322
|
+
const T = Fe(s) - ae(v)[0] + 1;
|
|
1323
|
+
return Tt(T, ae(v)[0]);
|
|
1601
1324
|
}
|
|
1602
|
-
return
|
|
1325
|
+
return f;
|
|
1603
1326
|
});
|
|
1604
1327
|
}
|
|
1605
1328
|
return {
|
|
1606
|
-
slideRegistry:
|
|
1329
|
+
slideRegistry: c
|
|
1607
1330
|
};
|
|
1608
1331
|
}
|
|
1609
|
-
function
|
|
1332
|
+
function xr(t, e, n, r, i) {
|
|
1610
1333
|
const {
|
|
1611
|
-
reachedAny:
|
|
1612
|
-
removeOffset:
|
|
1613
|
-
constrain:
|
|
1614
|
-
} =
|
|
1615
|
-
function
|
|
1616
|
-
return
|
|
1617
|
-
}
|
|
1618
|
-
function
|
|
1619
|
-
const
|
|
1620
|
-
diff:
|
|
1334
|
+
reachedAny: s,
|
|
1335
|
+
removeOffset: o,
|
|
1336
|
+
constrain: l
|
|
1337
|
+
} = r;
|
|
1338
|
+
function a(f) {
|
|
1339
|
+
return f.concat().sort((h, v) => W(h) - W(v))[0];
|
|
1340
|
+
}
|
|
1341
|
+
function c(f) {
|
|
1342
|
+
const h = t ? o(f) : l(f), v = e.map((u, T) => ({
|
|
1343
|
+
diff: b(u - h, 0),
|
|
1621
1344
|
index: T
|
|
1622
|
-
})).sort((
|
|
1623
|
-
index:
|
|
1345
|
+
})).sort((u, T) => W(u.diff) - W(T.diff)), {
|
|
1346
|
+
index: m
|
|
1624
1347
|
} = v[0];
|
|
1625
1348
|
return {
|
|
1626
|
-
index:
|
|
1627
|
-
distance:
|
|
1349
|
+
index: m,
|
|
1350
|
+
distance: h
|
|
1628
1351
|
};
|
|
1629
1352
|
}
|
|
1630
|
-
function
|
|
1631
|
-
const v = [
|
|
1632
|
-
if (!t) return
|
|
1633
|
-
if (!
|
|
1634
|
-
const
|
|
1635
|
-
return
|
|
1353
|
+
function b(f, h) {
|
|
1354
|
+
const v = [f, f + n, f - n];
|
|
1355
|
+
if (!t) return f;
|
|
1356
|
+
if (!h) return a(v);
|
|
1357
|
+
const m = v.filter((u) => Qe(u) === h);
|
|
1358
|
+
return m.length ? a(m) : ae(v) - n;
|
|
1636
1359
|
}
|
|
1637
|
-
function f
|
|
1638
|
-
const v = e[
|
|
1360
|
+
function p(f, h) {
|
|
1361
|
+
const v = e[f] - i.get(), m = b(v, h);
|
|
1639
1362
|
return {
|
|
1640
|
-
index:
|
|
1641
|
-
distance:
|
|
1363
|
+
index: f,
|
|
1364
|
+
distance: m
|
|
1642
1365
|
};
|
|
1643
1366
|
}
|
|
1644
|
-
function k(
|
|
1645
|
-
const v = i.get() +
|
|
1646
|
-
index:
|
|
1647
|
-
distance:
|
|
1648
|
-
} =
|
|
1649
|
-
if (!
|
|
1650
|
-
index:
|
|
1651
|
-
distance:
|
|
1367
|
+
function k(f, h) {
|
|
1368
|
+
const v = i.get() + f, {
|
|
1369
|
+
index: m,
|
|
1370
|
+
distance: u
|
|
1371
|
+
} = c(v), T = !t && s(v);
|
|
1372
|
+
if (!h || T) return {
|
|
1373
|
+
index: m,
|
|
1374
|
+
distance: f
|
|
1652
1375
|
};
|
|
1653
|
-
const
|
|
1376
|
+
const j = e[m] - u, A = f + b(j, 0);
|
|
1654
1377
|
return {
|
|
1655
|
-
index:
|
|
1656
|
-
distance:
|
|
1378
|
+
index: m,
|
|
1379
|
+
distance: A
|
|
1657
1380
|
};
|
|
1658
1381
|
}
|
|
1659
1382
|
return {
|
|
1660
1383
|
byDistance: k,
|
|
1661
|
-
byIndex:
|
|
1662
|
-
shortcut:
|
|
1384
|
+
byIndex: p,
|
|
1385
|
+
shortcut: b
|
|
1663
1386
|
};
|
|
1664
1387
|
}
|
|
1665
|
-
function
|
|
1666
|
-
function
|
|
1667
|
-
const k =
|
|
1668
|
-
|
|
1388
|
+
function Sr(t, e, n, r, i, s, o) {
|
|
1389
|
+
function l(p) {
|
|
1390
|
+
const k = p.distance, g = p.index !== e.get();
|
|
1391
|
+
s.add(k), k && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(p.index), o.emit("select"));
|
|
1669
1392
|
}
|
|
1670
|
-
function
|
|
1671
|
-
const g = i.byDistance(
|
|
1672
|
-
|
|
1393
|
+
function a(p, k) {
|
|
1394
|
+
const g = i.byDistance(p, k);
|
|
1395
|
+
l(g);
|
|
1673
1396
|
}
|
|
1674
|
-
function
|
|
1675
|
-
const g = e.clone().set(
|
|
1676
|
-
|
|
1397
|
+
function c(p, k) {
|
|
1398
|
+
const g = e.clone().set(p), f = i.byIndex(g.get(), k);
|
|
1399
|
+
l(f);
|
|
1677
1400
|
}
|
|
1678
1401
|
return {
|
|
1679
|
-
distance:
|
|
1680
|
-
index:
|
|
1402
|
+
distance: a,
|
|
1403
|
+
index: c
|
|
1681
1404
|
};
|
|
1682
1405
|
}
|
|
1683
|
-
function
|
|
1684
|
-
const
|
|
1406
|
+
function wr(t, e, n, r, i, s, o, l) {
|
|
1407
|
+
const a = {
|
|
1685
1408
|
passive: !0,
|
|
1686
1409
|
capture: !0
|
|
1687
1410
|
};
|
|
1688
|
-
let
|
|
1689
|
-
function
|
|
1690
|
-
if (!
|
|
1691
|
-
function h
|
|
1692
|
-
if ((/* @__PURE__ */ new Date()).getTime() -
|
|
1693
|
-
|
|
1694
|
-
const
|
|
1695
|
-
|
|
1411
|
+
let c = 0;
|
|
1412
|
+
function b(g) {
|
|
1413
|
+
if (!l) return;
|
|
1414
|
+
function f(h) {
|
|
1415
|
+
if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
|
|
1416
|
+
o.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1417
|
+
const u = n.findIndex((T) => T.includes(h));
|
|
1418
|
+
Je(u) && (i.useDuration(0), r.index(u, 0), o.emit("slideFocus"));
|
|
1696
1419
|
}
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
(
|
|
1700
|
-
},
|
|
1420
|
+
s.add(document, "keydown", p, !1), e.forEach((h, v) => {
|
|
1421
|
+
s.add(h, "focus", (m) => {
|
|
1422
|
+
(Ee(l) || l(g, m)) && f(v);
|
|
1423
|
+
}, a);
|
|
1701
1424
|
});
|
|
1702
1425
|
}
|
|
1703
|
-
function
|
|
1704
|
-
g.code === "Tab" && (
|
|
1426
|
+
function p(g) {
|
|
1427
|
+
g.code === "Tab" && (c = (/* @__PURE__ */ new Date()).getTime());
|
|
1705
1428
|
}
|
|
1706
1429
|
return {
|
|
1707
|
-
init:
|
|
1430
|
+
init: b
|
|
1708
1431
|
};
|
|
1709
1432
|
}
|
|
1710
1433
|
function De(t) {
|
|
@@ -1712,361 +1435,361 @@ function De(t) {
|
|
|
1712
1435
|
function n() {
|
|
1713
1436
|
return e;
|
|
1714
1437
|
}
|
|
1715
|
-
function
|
|
1716
|
-
e =
|
|
1438
|
+
function r(a) {
|
|
1439
|
+
e = o(a);
|
|
1717
1440
|
}
|
|
1718
|
-
function i(
|
|
1719
|
-
e +=
|
|
1441
|
+
function i(a) {
|
|
1442
|
+
e += o(a);
|
|
1720
1443
|
}
|
|
1721
|
-
function a
|
|
1722
|
-
e -=
|
|
1444
|
+
function s(a) {
|
|
1445
|
+
e -= o(a);
|
|
1723
1446
|
}
|
|
1724
|
-
function
|
|
1725
|
-
return
|
|
1447
|
+
function o(a) {
|
|
1448
|
+
return Je(a) ? a : a.get();
|
|
1726
1449
|
}
|
|
1727
1450
|
return {
|
|
1728
1451
|
get: n,
|
|
1729
|
-
set:
|
|
1452
|
+
set: r,
|
|
1730
1453
|
add: i,
|
|
1731
|
-
subtract:
|
|
1454
|
+
subtract: s
|
|
1732
1455
|
};
|
|
1733
1456
|
}
|
|
1734
|
-
function
|
|
1735
|
-
const n = t.scroll === "x" ?
|
|
1736
|
-
let i = null,
|
|
1737
|
-
function
|
|
1457
|
+
function Lt(t, e) {
|
|
1458
|
+
const n = t.scroll === "x" ? o : l, r = e.style;
|
|
1459
|
+
let i = null, s = !1;
|
|
1460
|
+
function o(k) {
|
|
1738
1461
|
return `translate3d(${k}px,0px,0px)`;
|
|
1739
1462
|
}
|
|
1740
|
-
function
|
|
1463
|
+
function l(k) {
|
|
1741
1464
|
return `translate3d(0px,${k}px,0px)`;
|
|
1742
1465
|
}
|
|
1743
|
-
function
|
|
1744
|
-
if (
|
|
1745
|
-
const g =
|
|
1746
|
-
g !== i && (
|
|
1466
|
+
function a(k) {
|
|
1467
|
+
if (s) return;
|
|
1468
|
+
const g = sr(t.direction(k));
|
|
1469
|
+
g !== i && (r.transform = n(g), i = g);
|
|
1747
1470
|
}
|
|
1748
|
-
function
|
|
1749
|
-
|
|
1471
|
+
function c(k) {
|
|
1472
|
+
s = !k;
|
|
1750
1473
|
}
|
|
1751
|
-
function
|
|
1752
|
-
|
|
1474
|
+
function b() {
|
|
1475
|
+
s || (r.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
|
|
1753
1476
|
}
|
|
1754
1477
|
return {
|
|
1755
|
-
clear:
|
|
1756
|
-
to:
|
|
1757
|
-
toggleActive:
|
|
1478
|
+
clear: b,
|
|
1479
|
+
to: a,
|
|
1480
|
+
toggleActive: c
|
|
1758
1481
|
};
|
|
1759
1482
|
}
|
|
1760
|
-
function
|
|
1761
|
-
const
|
|
1762
|
-
function g(
|
|
1763
|
-
return
|
|
1764
|
-
}
|
|
1765
|
-
function
|
|
1766
|
-
return
|
|
1767
|
-
}
|
|
1768
|
-
function
|
|
1769
|
-
return
|
|
1770
|
-
start:
|
|
1771
|
-
end:
|
|
1483
|
+
function Cr(t, e, n, r, i, s, o, l, a) {
|
|
1484
|
+
const b = Ae(i), p = Ae(i).reverse(), k = m().concat(u());
|
|
1485
|
+
function g(w, I) {
|
|
1486
|
+
return w.reduce((F, z) => F - i[z], I);
|
|
1487
|
+
}
|
|
1488
|
+
function f(w, I) {
|
|
1489
|
+
return w.reduce((F, z) => g(F, I) > 0 ? F.concat([z]) : F, []);
|
|
1490
|
+
}
|
|
1491
|
+
function h(w) {
|
|
1492
|
+
return s.map((I, F) => ({
|
|
1493
|
+
start: I - r[F] + 0.5 + w,
|
|
1494
|
+
end: I + e - 0.5 + w
|
|
1772
1495
|
}));
|
|
1773
1496
|
}
|
|
1774
|
-
function v(
|
|
1775
|
-
const
|
|
1776
|
-
return
|
|
1777
|
-
const
|
|
1497
|
+
function v(w, I, F) {
|
|
1498
|
+
const z = h(I);
|
|
1499
|
+
return w.map((P) => {
|
|
1500
|
+
const R = F ? 0 : -n, _ = F ? n : 0, M = F ? "end" : "start", D = z[P][M];
|
|
1778
1501
|
return {
|
|
1779
|
-
index:
|
|
1780
|
-
loopPoint:
|
|
1502
|
+
index: P,
|
|
1503
|
+
loopPoint: D,
|
|
1781
1504
|
slideLocation: De(-1),
|
|
1782
|
-
translate:
|
|
1783
|
-
target: () =>
|
|
1505
|
+
translate: Lt(t, a[P]),
|
|
1506
|
+
target: () => l.get() > D ? R : _
|
|
1784
1507
|
};
|
|
1785
1508
|
});
|
|
1786
1509
|
}
|
|
1787
|
-
function p() {
|
|
1788
|
-
const j = r[0], L = h(f, j);
|
|
1789
|
-
return v(L, n, !1);
|
|
1790
|
-
}
|
|
1791
1510
|
function m() {
|
|
1792
|
-
const
|
|
1793
|
-
return v(
|
|
1511
|
+
const w = o[0], I = f(p, w);
|
|
1512
|
+
return v(I, n, !1);
|
|
1513
|
+
}
|
|
1514
|
+
function u() {
|
|
1515
|
+
const w = e - o[0] - 1, I = f(b, w);
|
|
1516
|
+
return v(I, -n, !0);
|
|
1794
1517
|
}
|
|
1795
1518
|
function T() {
|
|
1796
1519
|
return k.every(({
|
|
1797
|
-
index:
|
|
1520
|
+
index: w
|
|
1798
1521
|
}) => {
|
|
1799
|
-
const
|
|
1800
|
-
return g(
|
|
1522
|
+
const I = b.filter((F) => F !== w);
|
|
1523
|
+
return g(I, e) <= 0.1;
|
|
1801
1524
|
});
|
|
1802
1525
|
}
|
|
1803
|
-
function
|
|
1804
|
-
k.forEach((
|
|
1526
|
+
function j() {
|
|
1527
|
+
k.forEach((w) => {
|
|
1805
1528
|
const {
|
|
1806
|
-
target:
|
|
1807
|
-
translate:
|
|
1808
|
-
slideLocation:
|
|
1809
|
-
} =
|
|
1810
|
-
|
|
1529
|
+
target: I,
|
|
1530
|
+
translate: F,
|
|
1531
|
+
slideLocation: z
|
|
1532
|
+
} = w, P = I();
|
|
1533
|
+
P !== z.get() && (F.to(P), z.set(P));
|
|
1811
1534
|
});
|
|
1812
1535
|
}
|
|
1813
|
-
function
|
|
1814
|
-
k.forEach((
|
|
1536
|
+
function A() {
|
|
1537
|
+
k.forEach((w) => w.translate.clear());
|
|
1815
1538
|
}
|
|
1816
1539
|
return {
|
|
1817
1540
|
canLoop: T,
|
|
1818
|
-
clear:
|
|
1819
|
-
loop:
|
|
1541
|
+
clear: A,
|
|
1542
|
+
loop: j,
|
|
1820
1543
|
loopPoints: k
|
|
1821
1544
|
};
|
|
1822
1545
|
}
|
|
1823
|
-
function
|
|
1824
|
-
let
|
|
1825
|
-
function a
|
|
1546
|
+
function Dr(t, e, n) {
|
|
1547
|
+
let r, i = !1;
|
|
1548
|
+
function s(a) {
|
|
1826
1549
|
if (!n) return;
|
|
1827
|
-
function
|
|
1828
|
-
for (const
|
|
1829
|
-
if (
|
|
1830
|
-
|
|
1550
|
+
function c(b) {
|
|
1551
|
+
for (const p of b)
|
|
1552
|
+
if (p.type === "childList") {
|
|
1553
|
+
a.reInit(), e.emit("slidesChanged");
|
|
1831
1554
|
break;
|
|
1832
1555
|
}
|
|
1833
1556
|
}
|
|
1834
|
-
|
|
1835
|
-
i || (
|
|
1836
|
-
}),
|
|
1557
|
+
r = new MutationObserver((b) => {
|
|
1558
|
+
i || (Ee(n) || n(a, b)) && c(b);
|
|
1559
|
+
}), r.observe(t, {
|
|
1837
1560
|
childList: !0
|
|
1838
1561
|
});
|
|
1839
1562
|
}
|
|
1840
|
-
function
|
|
1841
|
-
|
|
1563
|
+
function o() {
|
|
1564
|
+
r && r.disconnect(), i = !0;
|
|
1842
1565
|
}
|
|
1843
1566
|
return {
|
|
1844
|
-
init:
|
|
1845
|
-
destroy:
|
|
1567
|
+
init: s,
|
|
1568
|
+
destroy: o
|
|
1846
1569
|
};
|
|
1847
1570
|
}
|
|
1848
|
-
function
|
|
1571
|
+
function Ir(t, e, n, r) {
|
|
1849
1572
|
const i = {};
|
|
1850
|
-
let
|
|
1851
|
-
function
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
const v = e.indexOf(
|
|
1855
|
-
i[v] =
|
|
1856
|
-
}),
|
|
1573
|
+
let s = null, o = null, l, a = !1;
|
|
1574
|
+
function c() {
|
|
1575
|
+
l = new IntersectionObserver((f) => {
|
|
1576
|
+
a || (f.forEach((h) => {
|
|
1577
|
+
const v = e.indexOf(h.target);
|
|
1578
|
+
i[v] = h;
|
|
1579
|
+
}), s = null, o = null, n.emit("slidesInView"));
|
|
1857
1580
|
}, {
|
|
1858
1581
|
root: t.parentElement,
|
|
1859
|
-
threshold:
|
|
1860
|
-
}), e.forEach((
|
|
1861
|
-
}
|
|
1862
|
-
function
|
|
1863
|
-
|
|
1864
|
-
}
|
|
1865
|
-
function f
|
|
1866
|
-
return
|
|
1867
|
-
const
|
|
1868
|
-
isIntersecting:
|
|
1869
|
-
} = i[
|
|
1870
|
-
return (
|
|
1582
|
+
threshold: r
|
|
1583
|
+
}), e.forEach((f) => l.observe(f));
|
|
1584
|
+
}
|
|
1585
|
+
function b() {
|
|
1586
|
+
l && l.disconnect(), a = !0;
|
|
1587
|
+
}
|
|
1588
|
+
function p(f) {
|
|
1589
|
+
return je(i).reduce((h, v) => {
|
|
1590
|
+
const m = parseInt(v), {
|
|
1591
|
+
isIntersecting: u
|
|
1592
|
+
} = i[m];
|
|
1593
|
+
return (f && u || !f && !u) && h.push(m), h;
|
|
1871
1594
|
}, []);
|
|
1872
1595
|
}
|
|
1873
|
-
function k(
|
|
1874
|
-
if (
|
|
1875
|
-
if (!
|
|
1876
|
-
const
|
|
1877
|
-
return
|
|
1596
|
+
function k(f = !0) {
|
|
1597
|
+
if (f && s) return s;
|
|
1598
|
+
if (!f && o) return o;
|
|
1599
|
+
const h = p(f);
|
|
1600
|
+
return f && (s = h), f || (o = h), h;
|
|
1878
1601
|
}
|
|
1879
1602
|
return {
|
|
1880
|
-
init:
|
|
1881
|
-
destroy:
|
|
1603
|
+
init: c,
|
|
1604
|
+
destroy: b,
|
|
1882
1605
|
get: k
|
|
1883
1606
|
};
|
|
1884
1607
|
}
|
|
1885
|
-
function
|
|
1608
|
+
function Ar(t, e, n, r, i, s) {
|
|
1886
1609
|
const {
|
|
1887
|
-
measureSize:
|
|
1888
|
-
startEdge:
|
|
1889
|
-
endEdge:
|
|
1890
|
-
} = t,
|
|
1891
|
-
function
|
|
1892
|
-
if (!
|
|
1893
|
-
const
|
|
1894
|
-
return
|
|
1610
|
+
measureSize: o,
|
|
1611
|
+
startEdge: l,
|
|
1612
|
+
endEdge: a
|
|
1613
|
+
} = t, c = n[0] && i, b = f(), p = h(), k = n.map(o), g = v();
|
|
1614
|
+
function f() {
|
|
1615
|
+
if (!c) return 0;
|
|
1616
|
+
const u = n[0];
|
|
1617
|
+
return W(e[l] - u[l]);
|
|
1895
1618
|
}
|
|
1896
|
-
function
|
|
1897
|
-
if (!
|
|
1898
|
-
const
|
|
1899
|
-
return parseFloat(
|
|
1619
|
+
function h() {
|
|
1620
|
+
if (!c) return 0;
|
|
1621
|
+
const u = s.getComputedStyle(ae(r));
|
|
1622
|
+
return parseFloat(u.getPropertyValue(`margin-${a}`));
|
|
1900
1623
|
}
|
|
1901
1624
|
function v() {
|
|
1902
|
-
return n.map((
|
|
1903
|
-
const
|
|
1904
|
-
return
|
|
1905
|
-
}).map(
|
|
1625
|
+
return n.map((u, T, j) => {
|
|
1626
|
+
const A = !T, L = Xe(j, T);
|
|
1627
|
+
return A ? k[T] + b : L ? k[T] + p : j[T + 1][l] - u[l];
|
|
1628
|
+
}).map(W);
|
|
1906
1629
|
}
|
|
1907
1630
|
return {
|
|
1908
1631
|
slideSizes: k,
|
|
1909
1632
|
slideSizesWithGaps: g,
|
|
1910
|
-
startGap:
|
|
1911
|
-
endGap:
|
|
1633
|
+
startGap: b,
|
|
1634
|
+
endGap: p
|
|
1912
1635
|
};
|
|
1913
1636
|
}
|
|
1914
|
-
function
|
|
1637
|
+
function jr(t, e, n, r, i, s, o, l, a) {
|
|
1915
1638
|
const {
|
|
1916
|
-
startEdge:
|
|
1917
|
-
endEdge:
|
|
1918
|
-
direction:
|
|
1919
|
-
} = t, k =
|
|
1920
|
-
function g(
|
|
1921
|
-
return
|
|
1922
|
-
}
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1925
|
-
const
|
|
1926
|
-
return
|
|
1927
|
-
}, []).map((
|
|
1928
|
-
const
|
|
1929
|
-
return
|
|
1639
|
+
startEdge: c,
|
|
1640
|
+
endEdge: b,
|
|
1641
|
+
direction: p
|
|
1642
|
+
} = t, k = Je(n);
|
|
1643
|
+
function g(m, u) {
|
|
1644
|
+
return Ae(m).filter((T) => T % u === 0).map((T) => m.slice(T, T + u));
|
|
1645
|
+
}
|
|
1646
|
+
function f(m) {
|
|
1647
|
+
return m.length ? Ae(m).reduce((u, T, j) => {
|
|
1648
|
+
const A = ae(u) || 0, L = A === 0, w = T === Fe(m), I = i[c] - s[A][c], F = i[c] - s[T][b], z = !r && L ? p(o) : 0, P = !r && w ? p(l) : 0, R = W(F - P - (I + z));
|
|
1649
|
+
return j && R > e + a && u.push(T), w && u.push(m.length), u;
|
|
1650
|
+
}, []).map((u, T, j) => {
|
|
1651
|
+
const A = Math.max(j[T - 1] || 0);
|
|
1652
|
+
return m.slice(A, u);
|
|
1930
1653
|
}) : [];
|
|
1931
1654
|
}
|
|
1932
|
-
function
|
|
1933
|
-
return k ? g(
|
|
1655
|
+
function h(m) {
|
|
1656
|
+
return k ? g(m, n) : f(m);
|
|
1934
1657
|
}
|
|
1935
1658
|
return {
|
|
1936
|
-
groupSlides:
|
|
1659
|
+
groupSlides: h
|
|
1937
1660
|
};
|
|
1938
1661
|
}
|
|
1939
|
-
function
|
|
1662
|
+
function Lr(t, e, n, r, i, s, o) {
|
|
1940
1663
|
const {
|
|
1941
|
-
align:
|
|
1942
|
-
axis:
|
|
1943
|
-
direction:
|
|
1944
|
-
startIndex:
|
|
1945
|
-
loop:
|
|
1664
|
+
align: l,
|
|
1665
|
+
axis: a,
|
|
1666
|
+
direction: c,
|
|
1667
|
+
startIndex: b,
|
|
1668
|
+
loop: p,
|
|
1946
1669
|
duration: k,
|
|
1947
1670
|
dragFree: g,
|
|
1948
|
-
dragThreshold:
|
|
1949
|
-
inViewThreshold:
|
|
1671
|
+
dragThreshold: f,
|
|
1672
|
+
inViewThreshold: h,
|
|
1950
1673
|
slidesToScroll: v,
|
|
1951
|
-
skipSnaps:
|
|
1952
|
-
containScroll:
|
|
1674
|
+
skipSnaps: m,
|
|
1675
|
+
containScroll: u,
|
|
1953
1676
|
watchResize: T,
|
|
1954
|
-
watchSlides:
|
|
1955
|
-
watchDrag:
|
|
1956
|
-
watchFocus:
|
|
1957
|
-
} =
|
|
1958
|
-
slideSizes:
|
|
1959
|
-
slideSizesWithGaps:
|
|
1960
|
-
startGap:
|
|
1961
|
-
endGap:
|
|
1962
|
-
} =
|
|
1963
|
-
snaps:
|
|
1964
|
-
snapsAligned:
|
|
1965
|
-
} =
|
|
1677
|
+
watchSlides: j,
|
|
1678
|
+
watchDrag: A,
|
|
1679
|
+
watchFocus: L
|
|
1680
|
+
} = s, w = 2, I = ur(), F = I.measure(e), z = n.map(I.measure), P = lr(a, c), R = P.measureSize(F), _ = mr(R), M = ir(l, R), D = !p && !!u, V = p || !!u, {
|
|
1681
|
+
slideSizes: oe,
|
|
1682
|
+
slideSizesWithGaps: Z,
|
|
1683
|
+
startGap: Y,
|
|
1684
|
+
endGap: de
|
|
1685
|
+
} = Ar(P, F, z, n, V, i), J = jr(P, R, v, p, F, z, Y, de, w), {
|
|
1686
|
+
snaps: ie,
|
|
1687
|
+
snapsAligned: Q
|
|
1688
|
+
} = yr(P, M, F, z, J), X = -ae(ie) + ae(Z), {
|
|
1966
1689
|
snapsContained: x,
|
|
1967
|
-
scrollContainLimit:
|
|
1968
|
-
} =
|
|
1969
|
-
limit:
|
|
1970
|
-
} =
|
|
1971
|
-
dragHandler:
|
|
1972
|
-
scrollBody:
|
|
1973
|
-
scrollBounds:
|
|
1690
|
+
scrollContainLimit: C
|
|
1691
|
+
} = hr(R, X, Q, u, w), N = D ? x : Q, {
|
|
1692
|
+
limit: O
|
|
1693
|
+
} = kr(X, N, p), te = jt(Fe(N), b, p), ee = te.clone(), $ = Ae(n), S = ({
|
|
1694
|
+
dragHandler: ke,
|
|
1695
|
+
scrollBody: $e,
|
|
1696
|
+
scrollBounds: He,
|
|
1974
1697
|
options: {
|
|
1975
|
-
loop:
|
|
1698
|
+
loop: Be
|
|
1976
1699
|
}
|
|
1977
1700
|
}) => {
|
|
1978
|
-
|
|
1979
|
-
},
|
|
1980
|
-
scrollBody:
|
|
1981
|
-
translate:
|
|
1982
|
-
location:
|
|
1983
|
-
offsetLocation:
|
|
1984
|
-
previousLocation:
|
|
1985
|
-
scrollLooper:
|
|
1986
|
-
slideLooper:
|
|
1987
|
-
dragHandler:
|
|
1988
|
-
animation:
|
|
1989
|
-
eventHandler:
|
|
1990
|
-
scrollBounds:
|
|
1701
|
+
Be || He.constrain(ke.pointerDown()), $e.seek();
|
|
1702
|
+
}, E = ({
|
|
1703
|
+
scrollBody: ke,
|
|
1704
|
+
translate: $e,
|
|
1705
|
+
location: He,
|
|
1706
|
+
offsetLocation: Be,
|
|
1707
|
+
previousLocation: Pt,
|
|
1708
|
+
scrollLooper: Mt,
|
|
1709
|
+
slideLooper: Et,
|
|
1710
|
+
dragHandler: _t,
|
|
1711
|
+
animation: zt,
|
|
1712
|
+
eventHandler: rt,
|
|
1713
|
+
scrollBounds: Rt,
|
|
1991
1714
|
options: {
|
|
1992
|
-
loop:
|
|
1715
|
+
loop: st
|
|
1993
1716
|
}
|
|
1994
|
-
},
|
|
1995
|
-
const
|
|
1996
|
-
|
|
1997
|
-
const
|
|
1998
|
-
|
|
1999
|
-
},
|
|
2000
|
-
slideRegistry:
|
|
2001
|
-
} =
|
|
2002
|
-
ownerDocument:
|
|
1717
|
+
}, it) => {
|
|
1718
|
+
const at = ke.settled(), $t = !Rt.shouldConstrain(), lt = st ? at : at && $t, dt = lt && !_t.pointerDown();
|
|
1719
|
+
dt && zt.stop();
|
|
1720
|
+
const Ht = He.get() * it + Pt.get() * (1 - it);
|
|
1721
|
+
Be.set(Ht), st && (Mt.loop(ke.direction()), Et.loop()), $e.to(Be.get()), dt && rt.emit("settle"), lt || rt.emit("scroll");
|
|
1722
|
+
}, H = ar(r, i, () => S(Re), (ke) => E(Re, ke)), G = 0.68, le = N[te.get()], ce = De(le), ge = De(le), ue = De(le), pe = De(le), xe = pr(ce, ue, ge, pe, k, G), _e = xr(p, N, X, O, pe), ze = Sr(H, te, ee, xe, _e, pe, o), tt = br(O), nt = Le(), Bt = Ir(e, n, o, h), {
|
|
1723
|
+
slideRegistry: ot
|
|
1724
|
+
} = Tr(D, u, N, C, J, $), Nt = wr(t, n, ot, ze, xe, nt, o, L), Re = {
|
|
1725
|
+
ownerDocument: r,
|
|
2003
1726
|
ownerWindow: i,
|
|
2004
|
-
eventHandler:
|
|
2005
|
-
containerRect:
|
|
2006
|
-
slideRects:
|
|
2007
|
-
animation:
|
|
2008
|
-
axis:
|
|
2009
|
-
dragHandler:
|
|
2010
|
-
eventStore:
|
|
2011
|
-
percentOfView:
|
|
2012
|
-
index:
|
|
2013
|
-
indexPrevious:
|
|
2014
|
-
limit:
|
|
2015
|
-
location:
|
|
2016
|
-
offsetLocation:
|
|
2017
|
-
previousLocation:
|
|
2018
|
-
options:
|
|
2019
|
-
resizeHandler:
|
|
1727
|
+
eventHandler: o,
|
|
1728
|
+
containerRect: F,
|
|
1729
|
+
slideRects: z,
|
|
1730
|
+
animation: H,
|
|
1731
|
+
axis: P,
|
|
1732
|
+
dragHandler: dr(P, t, r, i, pe, cr(P, i), ce, H, ze, xe, _e, te, o, _, g, f, m, G, A),
|
|
1733
|
+
eventStore: nt,
|
|
1734
|
+
percentOfView: _,
|
|
1735
|
+
index: te,
|
|
1736
|
+
indexPrevious: ee,
|
|
1737
|
+
limit: O,
|
|
1738
|
+
location: ce,
|
|
1739
|
+
offsetLocation: ue,
|
|
1740
|
+
previousLocation: ge,
|
|
1741
|
+
options: s,
|
|
1742
|
+
resizeHandler: gr(e, o, i, n, P, T, I),
|
|
2020
1743
|
scrollBody: xe,
|
|
2021
|
-
scrollBounds:
|
|
2022
|
-
scrollLooper:
|
|
2023
|
-
scrollProgress:
|
|
2024
|
-
scrollSnapList:
|
|
2025
|
-
scrollSnaps:
|
|
2026
|
-
scrollTarget:
|
|
2027
|
-
scrollTo:
|
|
2028
|
-
slideLooper:
|
|
2029
|
-
slideFocus:
|
|
2030
|
-
slidesHandler:
|
|
2031
|
-
slidesInView:
|
|
2032
|
-
slideIndexes:
|
|
2033
|
-
slideRegistry:
|
|
2034
|
-
slidesToScroll:
|
|
2035
|
-
target:
|
|
2036
|
-
translate:
|
|
1744
|
+
scrollBounds: fr(O, ue, pe, xe, _),
|
|
1745
|
+
scrollLooper: vr(X, O, ue, [ce, ue, ge, pe]),
|
|
1746
|
+
scrollProgress: tt,
|
|
1747
|
+
scrollSnapList: N.map(tt.get),
|
|
1748
|
+
scrollSnaps: N,
|
|
1749
|
+
scrollTarget: _e,
|
|
1750
|
+
scrollTo: ze,
|
|
1751
|
+
slideLooper: Cr(P, R, X, oe, Z, ie, N, ue, n),
|
|
1752
|
+
slideFocus: Nt,
|
|
1753
|
+
slidesHandler: Dr(e, o, j),
|
|
1754
|
+
slidesInView: Bt,
|
|
1755
|
+
slideIndexes: $,
|
|
1756
|
+
slideRegistry: ot,
|
|
1757
|
+
slidesToScroll: J,
|
|
1758
|
+
target: pe,
|
|
1759
|
+
translate: Lt(P, e)
|
|
2037
1760
|
};
|
|
2038
|
-
return
|
|
1761
|
+
return Re;
|
|
2039
1762
|
}
|
|
2040
|
-
function
|
|
1763
|
+
function Fr() {
|
|
2041
1764
|
let t = {}, e;
|
|
2042
|
-
function n(
|
|
2043
|
-
e =
|
|
1765
|
+
function n(c) {
|
|
1766
|
+
e = c;
|
|
2044
1767
|
}
|
|
2045
|
-
function
|
|
2046
|
-
return t[
|
|
1768
|
+
function r(c) {
|
|
1769
|
+
return t[c] || [];
|
|
2047
1770
|
}
|
|
2048
|
-
function i(
|
|
2049
|
-
return
|
|
1771
|
+
function i(c) {
|
|
1772
|
+
return r(c).forEach((b) => b(e, c)), a;
|
|
2050
1773
|
}
|
|
2051
|
-
function
|
|
2052
|
-
return t[
|
|
1774
|
+
function s(c, b) {
|
|
1775
|
+
return t[c] = r(c).concat([b]), a;
|
|
2053
1776
|
}
|
|
2054
|
-
function
|
|
2055
|
-
return t[
|
|
1777
|
+
function o(c, b) {
|
|
1778
|
+
return t[c] = r(c).filter((p) => p !== b), a;
|
|
2056
1779
|
}
|
|
2057
|
-
function
|
|
1780
|
+
function l() {
|
|
2058
1781
|
t = {};
|
|
2059
1782
|
}
|
|
2060
|
-
const
|
|
1783
|
+
const a = {
|
|
2061
1784
|
init: n,
|
|
2062
1785
|
emit: i,
|
|
2063
|
-
off:
|
|
2064
|
-
on:
|
|
2065
|
-
clear:
|
|
1786
|
+
off: o,
|
|
1787
|
+
on: s,
|
|
1788
|
+
clear: l
|
|
2066
1789
|
};
|
|
2067
|
-
return
|
|
1790
|
+
return a;
|
|
2068
1791
|
}
|
|
2069
|
-
const
|
|
1792
|
+
const Br = {
|
|
2070
1793
|
align: "center",
|
|
2071
1794
|
axis: "x",
|
|
2072
1795
|
container: null,
|
|
@@ -2088,331 +1811,331 @@ const Mo = {
|
|
|
2088
1811
|
watchSlides: !0,
|
|
2089
1812
|
watchFocus: !0
|
|
2090
1813
|
};
|
|
2091
|
-
function
|
|
2092
|
-
function e(
|
|
2093
|
-
return
|
|
1814
|
+
function Nr(t) {
|
|
1815
|
+
function e(s, o) {
|
|
1816
|
+
return At(s, o || {});
|
|
2094
1817
|
}
|
|
2095
|
-
function n(
|
|
2096
|
-
const
|
|
2097
|
-
return e(
|
|
1818
|
+
function n(s) {
|
|
1819
|
+
const o = s.breakpoints || {}, l = je(o).filter((a) => t.matchMedia(a).matches).map((a) => o[a]).reduce((a, c) => e(a, c), {});
|
|
1820
|
+
return e(s, l);
|
|
2098
1821
|
}
|
|
2099
|
-
function s
|
|
2100
|
-
return
|
|
1822
|
+
function r(s) {
|
|
1823
|
+
return s.map((o) => je(o.breakpoints || {})).reduce((o, l) => o.concat(l), []).map(t.matchMedia);
|
|
2101
1824
|
}
|
|
2102
1825
|
return {
|
|
2103
1826
|
mergeOptions: e,
|
|
2104
1827
|
optionsAtMedia: n,
|
|
2105
|
-
optionsMediaQueries:
|
|
1828
|
+
optionsMediaQueries: r
|
|
2106
1829
|
};
|
|
2107
1830
|
}
|
|
2108
|
-
function
|
|
1831
|
+
function Pr(t) {
|
|
2109
1832
|
let e = [];
|
|
2110
|
-
function n(
|
|
2111
|
-
return e =
|
|
2112
|
-
options:
|
|
2113
|
-
}) => t.optionsAtMedia(
|
|
2114
|
-
[
|
|
1833
|
+
function n(s, o) {
|
|
1834
|
+
return e = o.filter(({
|
|
1835
|
+
options: l
|
|
1836
|
+
}) => t.optionsAtMedia(l).active !== !1), e.forEach((l) => l.init(s, t)), o.reduce((l, a) => Object.assign(l, {
|
|
1837
|
+
[a.name]: a
|
|
2115
1838
|
}), {});
|
|
2116
1839
|
}
|
|
2117
|
-
function
|
|
2118
|
-
e = e.filter((
|
|
1840
|
+
function r() {
|
|
1841
|
+
e = e.filter((s) => s.destroy());
|
|
2119
1842
|
}
|
|
2120
1843
|
return {
|
|
2121
1844
|
init: n,
|
|
2122
|
-
destroy:
|
|
1845
|
+
destroy: r
|
|
2123
1846
|
};
|
|
2124
1847
|
}
|
|
2125
|
-
function
|
|
2126
|
-
const
|
|
2127
|
-
mergeOptions:
|
|
2128
|
-
optionsAtMedia:
|
|
2129
|
-
optionsMediaQueries:
|
|
2130
|
-
} =
|
|
1848
|
+
function Me(t, e, n) {
|
|
1849
|
+
const r = t.ownerDocument, i = r.defaultView, s = Nr(i), o = Pr(s), l = Le(), a = Fr(), {
|
|
1850
|
+
mergeOptions: c,
|
|
1851
|
+
optionsAtMedia: b,
|
|
1852
|
+
optionsMediaQueries: p
|
|
1853
|
+
} = s, {
|
|
2131
1854
|
on: k,
|
|
2132
1855
|
off: g,
|
|
2133
|
-
emit:
|
|
2134
|
-
} =
|
|
2135
|
-
let v = !1,
|
|
2136
|
-
function
|
|
1856
|
+
emit: f
|
|
1857
|
+
} = a, h = P;
|
|
1858
|
+
let v = !1, m, u = c(Br, Me.globalOptions), T = c(u), j = [], A, L, w;
|
|
1859
|
+
function I() {
|
|
2137
1860
|
const {
|
|
2138
|
-
container:
|
|
2139
|
-
slides:
|
|
1861
|
+
container: $,
|
|
1862
|
+
slides: S
|
|
2140
1863
|
} = T;
|
|
2141
|
-
|
|
2142
|
-
const
|
|
2143
|
-
|
|
2144
|
-
}
|
|
2145
|
-
function
|
|
2146
|
-
const
|
|
2147
|
-
if (
|
|
2148
|
-
const
|
|
1864
|
+
L = (qe($) ? t.querySelector($) : $) || t.children[0];
|
|
1865
|
+
const H = qe(S) ? L.querySelectorAll(S) : S;
|
|
1866
|
+
w = [].slice.call(H || L.children);
|
|
1867
|
+
}
|
|
1868
|
+
function F($) {
|
|
1869
|
+
const S = Lr(t, L, w, r, i, $, a);
|
|
1870
|
+
if ($.loop && !S.slideLooper.canLoop()) {
|
|
1871
|
+
const E = Object.assign({}, $, {
|
|
2149
1872
|
loop: !1
|
|
2150
1873
|
});
|
|
2151
|
-
return
|
|
1874
|
+
return F(E);
|
|
2152
1875
|
}
|
|
2153
|
-
return
|
|
2154
|
-
}
|
|
2155
|
-
function $(V, w) {
|
|
2156
|
-
v || (m = u(m, V), T = y(m), _ = w || _, L(), p = B(T), f([m, ..._.map(({
|
|
2157
|
-
options: O
|
|
2158
|
-
}) => O)]).forEach((O) => d.add(O, "change", N)), T.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(X), p.eventHandler.init(X), p.resizeHandler.init(X), p.slidesHandler.init(X), p.options.loop && p.slideLooper.loop(), E.offsetParent && j.length && p.dragHandler.init(X), F = r.init(X, _)));
|
|
1876
|
+
return S;
|
|
2159
1877
|
}
|
|
2160
|
-
function
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
}, V), w), l.emit("reInit");
|
|
1878
|
+
function z($, S) {
|
|
1879
|
+
v || (u = c(u, $), T = b(u), j = S || j, I(), m = F(T), p([u, ...j.map(({
|
|
1880
|
+
options: E
|
|
1881
|
+
}) => E)]).forEach((E) => l.add(E, "change", P)), T.active && (m.translate.to(m.location.get()), m.animation.init(), m.slidesInView.init(), m.slideFocus.init(ee), m.eventHandler.init(ee), m.resizeHandler.init(ee), m.slidesHandler.init(ee), m.options.loop && m.slideLooper.loop(), L.offsetParent && w.length && m.dragHandler.init(ee), A = o.init(ee, j)));
|
|
2165
1882
|
}
|
|
2166
|
-
function
|
|
2167
|
-
|
|
1883
|
+
function P($, S) {
|
|
1884
|
+
const E = J();
|
|
1885
|
+
R(), z(c({
|
|
1886
|
+
startIndex: E
|
|
1887
|
+
}, $), S), a.emit("reInit");
|
|
2168
1888
|
}
|
|
2169
1889
|
function R() {
|
|
2170
|
-
|
|
1890
|
+
m.dragHandler.destroy(), m.eventStore.clear(), m.translate.clear(), m.slideLooper.clear(), m.resizeHandler.destroy(), m.slidesHandler.destroy(), m.slidesInView.destroy(), m.animation.destroy(), o.destroy(), l.clear();
|
|
2171
1891
|
}
|
|
2172
|
-
function
|
|
2173
|
-
|
|
1892
|
+
function _() {
|
|
1893
|
+
v || (v = !0, l.clear(), R(), a.emit("destroy"), a.clear());
|
|
2174
1894
|
}
|
|
2175
|
-
function
|
|
2176
|
-
|
|
2177
|
-
z(w, V, -1);
|
|
1895
|
+
function M($, S, E) {
|
|
1896
|
+
!T.active || v || (m.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : T.duration), m.scrollTo.index($, E || 0));
|
|
2178
1897
|
}
|
|
2179
|
-
function
|
|
2180
|
-
const
|
|
2181
|
-
|
|
1898
|
+
function D($) {
|
|
1899
|
+
const S = m.index.add(1).get();
|
|
1900
|
+
M(S, $, -1);
|
|
2182
1901
|
}
|
|
2183
|
-
function
|
|
2184
|
-
|
|
1902
|
+
function V($) {
|
|
1903
|
+
const S = m.index.add(-1).get();
|
|
1904
|
+
M(S, $, 1);
|
|
2185
1905
|
}
|
|
2186
|
-
function
|
|
2187
|
-
return
|
|
1906
|
+
function oe() {
|
|
1907
|
+
return m.index.add(1).get() !== J();
|
|
2188
1908
|
}
|
|
2189
|
-
function
|
|
2190
|
-
return
|
|
1909
|
+
function Z() {
|
|
1910
|
+
return m.index.add(-1).get() !== J();
|
|
2191
1911
|
}
|
|
2192
|
-
function
|
|
2193
|
-
return
|
|
1912
|
+
function Y() {
|
|
1913
|
+
return m.scrollSnapList;
|
|
2194
1914
|
}
|
|
2195
|
-
function
|
|
2196
|
-
return
|
|
1915
|
+
function de() {
|
|
1916
|
+
return m.scrollProgress.get(m.offsetLocation.get());
|
|
2197
1917
|
}
|
|
2198
|
-
function
|
|
2199
|
-
return
|
|
1918
|
+
function J() {
|
|
1919
|
+
return m.index.get();
|
|
2200
1920
|
}
|
|
2201
|
-
function
|
|
2202
|
-
return
|
|
1921
|
+
function ie() {
|
|
1922
|
+
return m.indexPrevious.get();
|
|
2203
1923
|
}
|
|
2204
|
-
function
|
|
2205
|
-
return
|
|
1924
|
+
function Q() {
|
|
1925
|
+
return m.slidesInView.get();
|
|
2206
1926
|
}
|
|
2207
|
-
function
|
|
2208
|
-
return
|
|
1927
|
+
function X() {
|
|
1928
|
+
return m.slidesInView.get(!1);
|
|
2209
1929
|
}
|
|
2210
|
-
function
|
|
2211
|
-
return
|
|
1930
|
+
function x() {
|
|
1931
|
+
return A;
|
|
2212
1932
|
}
|
|
2213
1933
|
function C() {
|
|
1934
|
+
return m;
|
|
1935
|
+
}
|
|
1936
|
+
function N() {
|
|
2214
1937
|
return t;
|
|
2215
1938
|
}
|
|
2216
|
-
function
|
|
2217
|
-
return
|
|
1939
|
+
function O() {
|
|
1940
|
+
return L;
|
|
2218
1941
|
}
|
|
2219
|
-
function
|
|
2220
|
-
return
|
|
2221
|
-
}
|
|
2222
|
-
const
|
|
2223
|
-
canScrollNext:
|
|
2224
|
-
canScrollPrev:
|
|
2225
|
-
containerNode:
|
|
2226
|
-
internalEngine:
|
|
2227
|
-
destroy:
|
|
1942
|
+
function te() {
|
|
1943
|
+
return w;
|
|
1944
|
+
}
|
|
1945
|
+
const ee = {
|
|
1946
|
+
canScrollNext: oe,
|
|
1947
|
+
canScrollPrev: Z,
|
|
1948
|
+
containerNode: O,
|
|
1949
|
+
internalEngine: C,
|
|
1950
|
+
destroy: _,
|
|
2228
1951
|
off: g,
|
|
2229
1952
|
on: k,
|
|
2230
|
-
emit:
|
|
1953
|
+
emit: f,
|
|
2231
1954
|
plugins: x,
|
|
2232
|
-
previousScrollSnap:
|
|
2233
|
-
reInit:
|
|
2234
|
-
rootNode:
|
|
2235
|
-
scrollNext:
|
|
2236
|
-
scrollPrev:
|
|
2237
|
-
scrollProgress:
|
|
2238
|
-
scrollSnapList:
|
|
2239
|
-
scrollTo:
|
|
2240
|
-
selectedScrollSnap:
|
|
2241
|
-
slideNodes:
|
|
2242
|
-
slidesInView:
|
|
2243
|
-
slidesNotInView:
|
|
1955
|
+
previousScrollSnap: ie,
|
|
1956
|
+
reInit: h,
|
|
1957
|
+
rootNode: N,
|
|
1958
|
+
scrollNext: D,
|
|
1959
|
+
scrollPrev: V,
|
|
1960
|
+
scrollProgress: de,
|
|
1961
|
+
scrollSnapList: Y,
|
|
1962
|
+
scrollTo: M,
|
|
1963
|
+
selectedScrollSnap: J,
|
|
1964
|
+
slideNodes: te,
|
|
1965
|
+
slidesInView: Q,
|
|
1966
|
+
slidesNotInView: X
|
|
2244
1967
|
};
|
|
2245
|
-
return
|
|
1968
|
+
return z(e, n), setTimeout(() => a.emit("init"), 0), ee;
|
|
2246
1969
|
}
|
|
2247
|
-
|
|
2248
|
-
function
|
|
2249
|
-
const n =
|
|
2250
|
-
i && i.reInit(n.current,
|
|
1970
|
+
Me.globalOptions = void 0;
|
|
1971
|
+
function et(t = {}, e = []) {
|
|
1972
|
+
const n = Ge(t), r = Ge(e), [i, s] = ne(), [o, l] = ne(), a = se(() => {
|
|
1973
|
+
i && i.reInit(n.current, r.current);
|
|
2251
1974
|
}, [i]);
|
|
2252
|
-
return
|
|
2253
|
-
|
|
2254
|
-
}, [t,
|
|
2255
|
-
|
|
2256
|
-
}, [e,
|
|
2257
|
-
if (
|
|
2258
|
-
|
|
2259
|
-
const
|
|
2260
|
-
return
|
|
1975
|
+
return K(() => {
|
|
1976
|
+
Ze(n.current, t) || (n.current = t, a());
|
|
1977
|
+
}, [t, a]), K(() => {
|
|
1978
|
+
or(r.current, e) || (r.current = e, a());
|
|
1979
|
+
}, [e, a]), K(() => {
|
|
1980
|
+
if (nr() && o) {
|
|
1981
|
+
Me.globalOptions = et.globalOptions;
|
|
1982
|
+
const c = Me(o, n.current, r.current);
|
|
1983
|
+
return s(c), () => c.destroy();
|
|
2261
1984
|
} else
|
|
2262
|
-
|
|
2263
|
-
}, [
|
|
1985
|
+
s(void 0);
|
|
1986
|
+
}, [o, s]), [l, i];
|
|
2264
1987
|
}
|
|
2265
|
-
|
|
2266
|
-
const
|
|
2267
|
-
carouselContainer:
|
|
2268
|
-
viewport:
|
|
2269
|
-
slides:
|
|
2270
|
-
slide:
|
|
2271
|
-
slideInner:
|
|
2272
|
-
loaderOverlay:
|
|
2273
|
-
image:
|
|
2274
|
-
loaded:
|
|
2275
|
-
empty:
|
|
2276
|
-
controls:
|
|
2277
|
-
arrows:
|
|
2278
|
-
dots:
|
|
2279
|
-
dot:
|
|
2280
|
-
dotActive:
|
|
2281
|
-
},
|
|
1988
|
+
et.globalOptions = void 0;
|
|
1989
|
+
const Mr = "_carouselContainer_1bu1s_1", Er = "_viewport_1bu1s_11", _r = "_slides_1bu1s_17", zr = "_slide_1bu1s_17", Rr = "_slideInner_1bu1s_37", $r = "_loaderOverlay_1bu1s_45", Hr = "_image_1bu1s_55", Or = "_loaded_1bu1s_66", Wr = "_empty_1bu1s_78", Vr = "_controls_1bu1s_84", Gr = "_arrows_1bu1s_94", Ur = "_dots_1bu1s_104", qr = "_dot_1bu1s_104", Kr = "_dotActive_1bu1s_130", U = {
|
|
1990
|
+
carouselContainer: Mr,
|
|
1991
|
+
viewport: Er,
|
|
1992
|
+
slides: _r,
|
|
1993
|
+
slide: zr,
|
|
1994
|
+
slideInner: Rr,
|
|
1995
|
+
loaderOverlay: $r,
|
|
1996
|
+
image: Hr,
|
|
1997
|
+
loaded: Or,
|
|
1998
|
+
empty: Wr,
|
|
1999
|
+
controls: Vr,
|
|
2000
|
+
arrows: Gr,
|
|
2001
|
+
dots: Ur,
|
|
2002
|
+
dot: qr,
|
|
2003
|
+
dotActive: Kr
|
|
2004
|
+
}, Yr = sn, Zr = ({
|
|
2282
2005
|
images: t,
|
|
2283
2006
|
autoPlay: e = !1,
|
|
2284
2007
|
autoDelay: n = 5,
|
|
2285
|
-
showArrows:
|
|
2008
|
+
showArrows: r = !0,
|
|
2286
2009
|
showDots: i = !0,
|
|
2287
|
-
variant:
|
|
2288
|
-
slidesPerView:
|
|
2289
|
-
slideSpacing:
|
|
2290
|
-
cornerRadius:
|
|
2291
|
-
"data-color":
|
|
2292
|
-
"data-size":
|
|
2010
|
+
variant: s,
|
|
2011
|
+
slidesPerView: o = 1,
|
|
2012
|
+
slideSpacing: l = 16,
|
|
2013
|
+
cornerRadius: a = 0,
|
|
2014
|
+
"data-color": c,
|
|
2015
|
+
"data-size": b
|
|
2293
2016
|
}) => {
|
|
2294
|
-
const
|
|
2017
|
+
const p = {
|
|
2295
2018
|
loop: !0,
|
|
2296
2019
|
align: "start",
|
|
2297
2020
|
containScroll: "trimSnaps",
|
|
2298
2021
|
slidesToScroll: 1
|
|
2299
|
-
}, [k, g] =
|
|
2300
|
-
|
|
2022
|
+
}, [k, g] = et(p), [f, h] = ne(0), [v, m] = ne([]), [u, T] = ne([]);
|
|
2023
|
+
K(() => {
|
|
2301
2024
|
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
2025
|
}, [t]);
|
|
2303
|
-
const
|
|
2304
|
-
T((
|
|
2305
|
-
const
|
|
2306
|
-
return
|
|
2026
|
+
const j = se((_) => {
|
|
2027
|
+
T((M) => {
|
|
2028
|
+
const D = [...M];
|
|
2029
|
+
return D[_] = !0, D;
|
|
2307
2030
|
});
|
|
2308
|
-
}, []),
|
|
2309
|
-
g &&
|
|
2310
|
-
}, [g]),
|
|
2311
|
-
|
|
2031
|
+
}, []), A = ye(() => n * 1e3, [n]), L = se(() => {
|
|
2032
|
+
g && h(g.selectedScrollSnap());
|
|
2033
|
+
}, [g]), w = se((_) => g && g.scrollTo(_), [g]), I = se(() => g && g.scrollPrev(), [g]), F = se(() => g && g.scrollNext(), [g]);
|
|
2034
|
+
K(() => {
|
|
2312
2035
|
if (g)
|
|
2313
|
-
return g.on("select",
|
|
2314
|
-
g.off("select",
|
|
2036
|
+
return g.on("select", L), g.on("reInit", L), m(g.scrollSnapList()), () => {
|
|
2037
|
+
g.off("select", L), g.off("reInit", L);
|
|
2315
2038
|
};
|
|
2316
|
-
}, [g,
|
|
2317
|
-
g && (g.reInit(),
|
|
2318
|
-
}, [g, t,
|
|
2039
|
+
}, [g, L]), K(() => {
|
|
2040
|
+
g && (g.reInit(), m(g.scrollSnapList()));
|
|
2041
|
+
}, [g, t, o, l]), K(() => {
|
|
2319
2042
|
if (!e || !g || !t || t.length <= 1) return;
|
|
2320
|
-
const
|
|
2043
|
+
const _ = window.setInterval(() => {
|
|
2321
2044
|
g.canScrollNext() && g.scrollNext();
|
|
2322
|
-
},
|
|
2045
|
+
}, A);
|
|
2323
2046
|
return () => {
|
|
2324
|
-
window.clearInterval(
|
|
2047
|
+
window.clearInterval(_);
|
|
2325
2048
|
};
|
|
2326
|
-
}, [e,
|
|
2327
|
-
const
|
|
2328
|
-
return /* @__PURE__ */
|
|
2049
|
+
}, [e, A, g, t]);
|
|
2050
|
+
const z = Math.max(1, o), P = `${100 / z}%`, R = l / 2;
|
|
2051
|
+
return /* @__PURE__ */ B(
|
|
2329
2052
|
"div",
|
|
2330
2053
|
{
|
|
2331
|
-
className:
|
|
2332
|
-
"data-color":
|
|
2333
|
-
"data-size":
|
|
2334
|
-
"data-variant":
|
|
2054
|
+
className: U.carouselContainer,
|
|
2055
|
+
"data-color": c,
|
|
2056
|
+
"data-size": b,
|
|
2057
|
+
"data-variant": s,
|
|
2335
2058
|
children: [
|
|
2336
|
-
/* @__PURE__ */
|
|
2059
|
+
/* @__PURE__ */ d("div", { className: U.viewport, ref: k, children: /* @__PURE__ */ d(
|
|
2337
2060
|
"div",
|
|
2338
2061
|
{
|
|
2339
|
-
className:
|
|
2062
|
+
className: U.slides,
|
|
2340
2063
|
style: {
|
|
2341
|
-
marginLeft: `-${
|
|
2342
|
-
marginRight: `-${
|
|
2064
|
+
marginLeft: `-${R}px`,
|
|
2065
|
+
marginRight: `-${R}px`
|
|
2343
2066
|
},
|
|
2344
|
-
children: t && t.length > 0 ? t.map((
|
|
2067
|
+
children: t && t.length > 0 ? t.map((_, M) => /* @__PURE__ */ d(
|
|
2345
2068
|
"div",
|
|
2346
2069
|
{
|
|
2347
|
-
className:
|
|
2070
|
+
className: U.slide,
|
|
2348
2071
|
style: {
|
|
2349
|
-
flex: `0 0 ${
|
|
2350
|
-
paddingLeft: `${
|
|
2351
|
-
paddingRight: `${
|
|
2352
|
-
borderRadius:
|
|
2072
|
+
flex: `0 0 ${P}`,
|
|
2073
|
+
paddingLeft: `${R}px`,
|
|
2074
|
+
paddingRight: `${R}px`,
|
|
2075
|
+
borderRadius: a > 0 ? `${a}px` : void 0,
|
|
2353
2076
|
overflow: "hidden"
|
|
2354
2077
|
// Ensure radius clips content
|
|
2355
2078
|
},
|
|
2356
|
-
children: /* @__PURE__ */
|
|
2357
|
-
!
|
|
2358
|
-
/* @__PURE__ */
|
|
2079
|
+
children: /* @__PURE__ */ B("div", { className: U.slideInner, style: { borderRadius: `${a}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2080
|
+
!u[M] && /* @__PURE__ */ d("div", { className: U.loaderOverlay, children: /* @__PURE__ */ d(Yr, { "aria-label": "Laster bilde" }) }),
|
|
2081
|
+
/* @__PURE__ */ d(
|
|
2359
2082
|
"img",
|
|
2360
2083
|
{
|
|
2361
|
-
className: `${
|
|
2362
|
-
src:
|
|
2363
|
-
alt:
|
|
2364
|
-
loading:
|
|
2084
|
+
className: `${U.image} ${u[M] ? U.loaded : U.loadingImage}`,
|
|
2085
|
+
src: _.src,
|
|
2086
|
+
alt: _.alt,
|
|
2087
|
+
loading: M < z ? "eager" : "lazy",
|
|
2365
2088
|
crossOrigin: "anonymous",
|
|
2366
|
-
onLoad: () =>
|
|
2367
|
-
onError: (
|
|
2368
|
-
|
|
2089
|
+
onLoad: () => j(M),
|
|
2090
|
+
onError: (D) => {
|
|
2091
|
+
D.target.style.display = "none", j(M);
|
|
2369
2092
|
}
|
|
2370
2093
|
}
|
|
2371
2094
|
)
|
|
2372
2095
|
] })
|
|
2373
2096
|
},
|
|
2374
|
-
`image-${
|
|
2375
|
-
)) : /* @__PURE__ */
|
|
2097
|
+
`image-${M}-${_.src}`
|
|
2098
|
+
)) : /* @__PURE__ */ d("div", { className: U.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ d("div", { className: U.empty, children: "Ingen bilder" }) })
|
|
2376
2099
|
}
|
|
2377
2100
|
) }),
|
|
2378
|
-
(
|
|
2379
|
-
|
|
2380
|
-
/* @__PURE__ */
|
|
2381
|
-
|
|
2101
|
+
(r || i && t && t.length > 1) && /* @__PURE__ */ B("div", { className: U.controls, "aria-hidden": "false", children: [
|
|
2102
|
+
r && /* @__PURE__ */ B("div", { className: U.arrows, children: [
|
|
2103
|
+
/* @__PURE__ */ d(
|
|
2104
|
+
Te,
|
|
2382
2105
|
{
|
|
2383
2106
|
variant: "primary",
|
|
2384
2107
|
icon: !0,
|
|
2385
2108
|
"aria-label": "Forrige bilde",
|
|
2386
|
-
onClick:
|
|
2109
|
+
onClick: I,
|
|
2387
2110
|
disabled: !t || t.length <= 1,
|
|
2388
|
-
children: /* @__PURE__ */
|
|
2111
|
+
children: /* @__PURE__ */ d(Kn, { "aria-hidden": !0 })
|
|
2389
2112
|
}
|
|
2390
2113
|
),
|
|
2391
|
-
/* @__PURE__ */
|
|
2392
|
-
|
|
2114
|
+
/* @__PURE__ */ d(
|
|
2115
|
+
Te,
|
|
2393
2116
|
{
|
|
2394
2117
|
variant: "primary",
|
|
2395
2118
|
icon: !0,
|
|
2396
2119
|
"aria-label": "Neste bilde",
|
|
2397
|
-
onClick:
|
|
2120
|
+
onClick: F,
|
|
2398
2121
|
disabled: !t || t.length <= 1,
|
|
2399
|
-
children: /* @__PURE__ */
|
|
2122
|
+
children: /* @__PURE__ */ d(Yn, { "aria-hidden": !0 })
|
|
2400
2123
|
}
|
|
2401
2124
|
)
|
|
2402
2125
|
] }),
|
|
2403
|
-
i && t && t.length > 1 && /* @__PURE__ */
|
|
2404
|
-
const
|
|
2405
|
-
return /* @__PURE__ */
|
|
2126
|
+
i && t && t.length > 1 && /* @__PURE__ */ d("div", { className: U.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((_, M) => {
|
|
2127
|
+
const D = M === f;
|
|
2128
|
+
return /* @__PURE__ */ d(
|
|
2406
2129
|
"button",
|
|
2407
2130
|
{
|
|
2408
2131
|
type: "button",
|
|
2409
|
-
className: `${
|
|
2410
|
-
onClick: () =>
|
|
2411
|
-
"aria-label": `Gå til bilde ${
|
|
2412
|
-
"aria-selected":
|
|
2132
|
+
className: `${U.dot} ${D ? U.dotActive : ""}`,
|
|
2133
|
+
onClick: () => w(M),
|
|
2134
|
+
"aria-label": `Gå til bilde ${M + 1}`,
|
|
2135
|
+
"aria-selected": D,
|
|
2413
2136
|
role: "tab"
|
|
2414
2137
|
},
|
|
2415
|
-
`dot-${
|
|
2138
|
+
`dot-${M}`
|
|
2416
2139
|
);
|
|
2417
2140
|
}) })
|
|
2418
2141
|
] })
|
|
@@ -2420,27 +2143,27 @@ const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slide
|
|
|
2420
2143
|
}
|
|
2421
2144
|
);
|
|
2422
2145
|
};
|
|
2423
|
-
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2429
|
-
const
|
|
2430
|
-
|
|
2431
|
-
const Ne =
|
|
2432
|
-
(t, e) => /* @__PURE__ */
|
|
2146
|
+
Zr.displayName = "Carousel";
|
|
2147
|
+
const bi = an, yi = ln, Ti = dn, q = cn, xi = un, Si = mn, Jr = gn, Qr = pn;
|
|
2148
|
+
Jr.displayName = "Field.Description";
|
|
2149
|
+
Qr.displayName = "Field.Counter";
|
|
2150
|
+
const wi = xt, Xr = me((t, e) => /* @__PURE__ */ d(fn, { ref: e, ...t }));
|
|
2151
|
+
Xr.displayName = "Heading";
|
|
2152
|
+
const Ci = hn, es = me((t, e) => /* @__PURE__ */ d(kn, { ref: e, ...t }));
|
|
2153
|
+
es.displayName = "Label";
|
|
2154
|
+
const Ne = vn, Di = bn, Ii = yn, Ai = Tn, Ye = me(
|
|
2155
|
+
(t, e) => /* @__PURE__ */ d(xn, { ref: e, ...t })
|
|
2433
2156
|
);
|
|
2434
|
-
|
|
2435
|
-
const
|
|
2436
|
-
Button:
|
|
2437
|
-
ClearButton:
|
|
2438
|
-
Input:
|
|
2439
|
-
}),
|
|
2440
|
-
|
|
2441
|
-
const
|
|
2442
|
-
|
|
2443
|
-
const
|
|
2157
|
+
Ye.displayName = "Paragraph";
|
|
2158
|
+
const ji = Sn, Li = wn, Fi = Cn, Pe = Object.assign(Dn, {
|
|
2159
|
+
Button: jn,
|
|
2160
|
+
ClearButton: An,
|
|
2161
|
+
Input: In
|
|
2162
|
+
}), Bi = Ln, Ni = Fn, Pi = Bn, ts = Nn;
|
|
2163
|
+
ts.displayName = "Suggestion";
|
|
2164
|
+
const Ve = Pn, Mi = Mn, Ei = En, _i = _n, zi = zn, Ri = Rn, $i = $n, Hi = Hn, ns = me((t, e) => /* @__PURE__ */ d(On, { ref: e, ...t }));
|
|
2165
|
+
ns.displayName = "ValidationMessage";
|
|
2166
|
+
const os = {
|
|
2444
2167
|
NO: {
|
|
2445
2168
|
// Header
|
|
2446
2169
|
header: {
|
|
@@ -2467,6 +2190,7 @@ const cs = {
|
|
|
2467
2190
|
design: "Design",
|
|
2468
2191
|
components: "Komponenter",
|
|
2469
2192
|
code: "Kode",
|
|
2193
|
+
tokens: "Tokens",
|
|
2470
2194
|
work: "Vårt arbeid",
|
|
2471
2195
|
volunteer: "Bli frivillig",
|
|
2472
2196
|
courses: "Kurs og opplæring"
|
|
@@ -2690,20 +2414,89 @@ const cs = {
|
|
|
2690
2414
|
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
2415
|
},
|
|
2692
2416
|
figmaMcp: {
|
|
2693
|
-
title: "Fra Figma til Kode med MCP",
|
|
2694
|
-
intro: "
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2417
|
+
title: "Arbeidsflyt: Fra Figma til Kode med MCP",
|
|
2418
|
+
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.",
|
|
2419
|
+
part1Title: "Del 1: Oppsett av Figma MCP Server",
|
|
2420
|
+
part1Intro: "Dette gjøres kun én gang for å aktivere integrasjonen i Cursor/Windsurf.",
|
|
2421
|
+
part1Description: 'For at AI-en skal kunne "lese" Figma-filene, må vi sette opp en lokal kobling.',
|
|
2422
|
+
setupStep1Title: "1. Hent Figma Access Token",
|
|
2423
|
+
setupStep1Item1: "Gå til Figma -> Settings -> Personal Access Tokens.",
|
|
2424
|
+
setupStep1Item2: "Klikk Generate new token.",
|
|
2425
|
+
setupStep1Item3: 'Navn: F.eks. "Cursor MCP".',
|
|
2426
|
+
setupStep1Item4: "Scopes: Velg File content: Read og File metadata: Read.",
|
|
2427
|
+
setupStep1Item5: "Kopier tokenet (du får ikke se det igjen).",
|
|
2428
|
+
setupStep2Title: "2. Konfigurer i Cursor",
|
|
2429
|
+
setupStep2Item1: "Åpne innstillinger i Cursor (Ctrl/Cmd + ,).",
|
|
2430
|
+
setupStep2Item2: "Gå til Features -> MCP.",
|
|
2431
|
+
setupStep2Item3: "Klikk + Add New MCP Server.",
|
|
2432
|
+
setupStep2Item4: "Fyll inn følgende:",
|
|
2433
|
+
setupStep2Item5: "Type: command",
|
|
2434
|
+
setupStep2Item6: "Name: figma",
|
|
2435
|
+
setupStep2Item7: "Command: npx -y @modelcontextprotocol/server-figma",
|
|
2436
|
+
setupStep2Item8: "Legg til Environment Variable (viktig!):",
|
|
2437
|
+
setupStep2Item9: "Key: FIGMA_ACCESS_TOKEN",
|
|
2438
|
+
setupStep2Item10: "Value: [Lim inn tokenet du kopierte i steg 1]",
|
|
2439
|
+
setupStep2Item11: 'Når lyset ved siden av "figma" blir grønt, er verktøyet klart til bruk.',
|
|
2440
|
+
part2Title: "Del 2: Daglig Arbeidsflyt",
|
|
2441
|
+
step0Title: "Steg 0: Indeksering av Dokumentasjon",
|
|
2442
|
+
step0Description: "Gjør dette én gang per prosjekt for å gi AI-en full oversikt over designsystemet.",
|
|
2443
|
+
step0Intro: "For at Cursor skal forstå våre spesifikke tokens, komponentnavn og retningslinjer, må vi la den lese gjennom dokumentasjonen på forhånd.",
|
|
2444
|
+
step0Item1: "Åpne Chat i Cursor (Cmd + L / Ctrl + L).",
|
|
2445
|
+
step0Item2: 'Skriv @Docs i tekstfeltet og velg "Add new doc" fra menyen som dukker opp.',
|
|
2446
|
+
step0Item3: "Lim inn URL-en til hovedsiden for dokumentasjonen: https://norwegianredcross.github.io/DesignSystem/",
|
|
2447
|
+
step0Item4: "Gi den et navn som er lett å huske, f.eks. RødeKors.",
|
|
2448
|
+
step0Item5: "Trykk Confirm.",
|
|
2449
|
+
step0WhatHappensTitle: "Hva skjer nå?",
|
|
2450
|
+
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.',
|
|
2451
|
+
step1Title: "Steg 1: Hent presis lenke i Figma",
|
|
2452
|
+
step1Description: "For best resultat bør du isolere seksjonen du jobber med.",
|
|
2453
|
+
step1Item1: "Marker rammen (Frame), komponenten eller gruppen du vil implementere.",
|
|
2454
|
+
step1Item2: "Høyreklikk og velg Copy link to selection (Snarvei: Ctrl + L).",
|
|
2455
|
+
step1Item3: "NB: Bruk denne funksjonen fremfor å kopiere URL-en fra nettleseren.",
|
|
2456
|
+
step1ImageCaption: "",
|
|
2457
|
+
step2Title: "Steg 2: Gi kontekst (To metoder)",
|
|
2458
|
+
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.",
|
|
2459
|
+
step2AltATitle: "Alternativ A: Manuell kontekst (Raskt og enkelt)",
|
|
2460
|
+
step2AltADescription: "Bruk dette for engangstilfeller eller hvis du tester nye dokumentasjonskilder. Dette må gjøres manuelt med hver eneste prompt.",
|
|
2461
|
+
step2AltAItem1: "I Composer (Chat): Skriv @ og lim inn URL-ene til dokumentasjonen. Du må inkludere:",
|
|
2462
|
+
step2AltAItem1Sub1: "@https://norwegianredcross.github.io/design-tokens/theme.css",
|
|
2463
|
+
step2AltAItem1Sub2: "@https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json",
|
|
2464
|
+
step2AltAItem2: "Lim inn Figma-lenken: Lim inn lenken fra steg 1.",
|
|
2465
|
+
step2AltAImageCaption: "",
|
|
2466
|
+
step2AltBTitle: "Alternativ B: Automatisert med .cursorrules (Anbefalt)",
|
|
2467
|
+
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.",
|
|
2468
|
+
step2AltBSetupTitle: "1. Oppsett (Gjøres én gang per prosjekt):",
|
|
2469
|
+
step2AltBSetupText: "Opprett en fil som heter .cursorrules i prosjektets rotmappe og gi kontekst ved å lime inn dette:",
|
|
2470
|
+
step2AltBCodeBlock: `You are an expert Frontend Developer implementing designs from Figma.
|
|
2471
|
+
|
|
2472
|
+
ALWAYS follow these rules:
|
|
2473
|
+
1. **Documentation:** Refer to the indexed design system documentation (@RødeKors) for component usage, patterns, and guidelines.
|
|
2474
|
+
2. **Metadata:** Use component metadata from: https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json
|
|
2475
|
+
3. **Tokens:** Always use CSS variables/tokens defined in: https://norwegianredcross.github.io/design-tokens/theme.css (e.g., var(--spacing-md)).
|
|
2476
|
+
4. **Figma MCP:** When a Figma link is provided, use the \`figma\` tool to inspect node properties.
|
|
2477
|
+
|
|
2478
|
+
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.`,
|
|
2479
|
+
step2AltBUsageTitle: "2. I daglig bruk:",
|
|
2480
|
+
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.",
|
|
2481
|
+
step3Title: "Steg 3: Prompt",
|
|
2482
|
+
step3Description: "Gi en instruks som kobler designet mot kodebasen. Bruk gjerne denne malen:",
|
|
2483
|
+
step3Prompt: `"Using the design at this Figma link and the context from the provided documentation/rules:
|
|
2484
|
+
|
|
2485
|
+
Create a React component for this section.
|
|
2486
|
+
|
|
2487
|
+
Strictly use tokens found in the documentation (colors, spacing) - no magic numbers.
|
|
2488
|
+
|
|
2489
|
+
Map design elements to our existing components where possible (e.g. Buttons, Headings)."`,
|
|
2490
|
+
step4Title: "Steg 4: Generering og Review",
|
|
2491
|
+
step4Item1: "AI-en bruker nå MCP til å lese nodedataene og genererer et kodeforslag.",
|
|
2492
|
+
step4ReviewTitle: "Review:",
|
|
2493
|
+
step4ReviewItem1: 'Sjekk "Diff View" i Cursor.',
|
|
2494
|
+
step4ReviewItem2: "Er tokens brukt riktig? (f.eks. var(--spacing-md)).",
|
|
2495
|
+
step4ReviewItem3: "Er semantikken god?",
|
|
2496
|
+
step4Apply: 'Apply: Trykk "Apply" for å legge koden inn i filen din.',
|
|
2497
|
+
proTipsTitle: "Tips for suksess",
|
|
2498
|
+
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.',
|
|
2499
|
+
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
2500
|
},
|
|
2708
2501
|
metadataFiles: {
|
|
2709
2502
|
title: "Metadata-filer",
|
|
@@ -3251,6 +3044,7 @@ const cs = {
|
|
|
3251
3044
|
design: "Design",
|
|
3252
3045
|
components: "Components",
|
|
3253
3046
|
code: "Code",
|
|
3047
|
+
tokens: "Tokens",
|
|
3254
3048
|
work: "Our Work",
|
|
3255
3049
|
volunteer: "Volunteer",
|
|
3256
3050
|
courses: "Courses & Training"
|
|
@@ -3477,20 +3271,88 @@ const cs = {
|
|
|
3477
3271
|
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
3272
|
},
|
|
3479
3273
|
figmaMcp: {
|
|
3480
|
-
title: "From Figma to Code with MCP",
|
|
3481
|
-
intro: "
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3274
|
+
title: "Workflow: From Figma to Code with MCP",
|
|
3275
|
+
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.",
|
|
3276
|
+
part1Title: "Part 1: Figma MCP Server Setup",
|
|
3277
|
+
part1Intro: "This is done only once to activate the integration in Cursor/Windsurf.",
|
|
3278
|
+
part1Description: 'For the AI to be able to "read" Figma files, we need to set up a local connection.',
|
|
3279
|
+
setupStep1Title: "1. Get Figma Access Token",
|
|
3280
|
+
setupStep1Item1: "Go to Figma -> Settings -> Personal Access Tokens.",
|
|
3281
|
+
setupStep1Item2: "Click Generate new token.",
|
|
3282
|
+
setupStep1Item3: 'Name: E.g. "Cursor MCP".',
|
|
3283
|
+
setupStep1Item4: "Scopes: Select File content: Read and File metadata: Read.",
|
|
3284
|
+
setupStep1Item5: "Copy the token (you won't see it again).",
|
|
3285
|
+
setupStep2Title: "2. Configure in Cursor",
|
|
3286
|
+
setupStep2Item1: "Open settings in Cursor (Ctrl/Cmd + ,).",
|
|
3287
|
+
setupStep2Item2: "Go to Features -> MCP.",
|
|
3288
|
+
setupStep2Item3: "Click + Add New MCP Server.",
|
|
3289
|
+
setupStep2Item4: "Fill in the following:",
|
|
3290
|
+
setupStep2Item5: "Type: command",
|
|
3291
|
+
setupStep2Item6: "Name: figma",
|
|
3292
|
+
setupStep2Item7: "Command: npx -y @modelcontextprotocol/server-figma",
|
|
3293
|
+
setupStep2Item8: "Add Environment Variable (important!):",
|
|
3294
|
+
setupStep2Item9: "Key: FIGMA_ACCESS_TOKEN",
|
|
3295
|
+
setupStep2Item10: "Value: [Paste the token you copied in step 1]",
|
|
3296
|
+
setupStep2Item11: 'When the light next to "figma" turns green, the tool is ready to use.',
|
|
3297
|
+
part2Title: "Part 2: Daily Workflow",
|
|
3298
|
+
step0Title: "Step 0: Indexing Documentation",
|
|
3299
|
+
step0Description: "Do this once per project to give the AI a complete overview of the design system.",
|
|
3300
|
+
step0Intro: "For Cursor to understand our specific tokens, component names, and guidelines, we need to let it read through the documentation in advance.",
|
|
3301
|
+
step0Item1: "Open Chat in Cursor (Cmd + L / Ctrl + L).",
|
|
3302
|
+
step0Item2: 'Type @Docs in the text field and select "Add new doc" from the menu that appears.',
|
|
3303
|
+
step0Item3: "Paste the URL to the main page of the documentation: https://norwegianredcross.github.io/DesignSystem/",
|
|
3304
|
+
step0Item4: "Give it a name that's easy to remember, e.g. RedCross.",
|
|
3305
|
+
step0Item5: "Click Confirm.",
|
|
3306
|
+
step0WhatHappensTitle: "What happens now?",
|
|
3307
|
+
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.',
|
|
3308
|
+
step1Description: "For best results, you should isolate the section you're working with.",
|
|
3309
|
+
step1Item1: "Select the frame (Frame), component, or group you want to implement.",
|
|
3310
|
+
step1Item2: "Right-click and select Copy link to selection (Shortcut: Ctrl + L).",
|
|
3311
|
+
step1Item3: "NB: Use this function instead of copying the URL from the browser.",
|
|
3312
|
+
step1ImageCaption: "",
|
|
3313
|
+
step2Title: "Step 2: Provide context (Two methods)",
|
|
3314
|
+
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.",
|
|
3315
|
+
step2AltATitle: "Alternative A: Manual context (Quick and easy)",
|
|
3316
|
+
step2AltADescription: "Use this for one-time cases or if you're testing new documentation sources. This must be done manually with every single prompt.",
|
|
3317
|
+
step2AltAItem1: "In Composer (Chat): Type @ and paste the URLs to the documentation. You must include:",
|
|
3318
|
+
step2AltAItem1Sub1: "@https://norwegianredcross.github.io/design-tokens/theme.css",
|
|
3319
|
+
step2AltAItem1Sub2: "@https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json",
|
|
3320
|
+
step2AltAItem2: "Paste Figma link: Paste the link from step 1.",
|
|
3321
|
+
step2AltAImageCaption: "",
|
|
3322
|
+
step2AltBTitle: "Alternative B: Automated with .cursorrules (Recommended)",
|
|
3323
|
+
step2AltBDescription: "Use this to avoid attaching documentation every time. With a .cursorrules file in the project root, the AI always knows which rules apply.",
|
|
3324
|
+
step2AltBSetupTitle: "1. Setup (Done once per project):",
|
|
3325
|
+
step2AltBSetupText: "Create a file named .cursorrules in the project root folder and give context by pasting this:",
|
|
3326
|
+
step2AltBCodeBlock: `You are an expert Frontend Developer implementing designs from Figma.
|
|
3327
|
+
|
|
3328
|
+
ALWAYS follow these rules:
|
|
3329
|
+
1. **Documentation:** Refer to the indexed design system documentation (@RedCross) for component usage, patterns, and guidelines.
|
|
3330
|
+
2. **Metadata:** Use component metadata from: https://norwegianredcross.github.io/DesignSystem/storybook/metadata.json
|
|
3331
|
+
3. **Tokens:** Always use CSS variables/tokens defined in: https://norwegianredcross.github.io/design-tokens/theme.css (e.g., var(--spacing-md)).
|
|
3332
|
+
4. **Figma MCP:** When a Figma link is provided, use the \`figma\` tool to inspect node properties.
|
|
3333
|
+
|
|
3334
|
+
Note: Make sure you have indexed the documentation (Step 0) before using these rules. Reference @RedCross in chat when you need design system context.`,
|
|
3335
|
+
step2AltBUsageTitle: "2. In daily use:",
|
|
3336
|
+
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.",
|
|
3337
|
+
step3Title: "Step 3: Prompt",
|
|
3338
|
+
step3Description: "Give an instruction that connects the design to the codebase. You can use this template:",
|
|
3339
|
+
step3Prompt: `"Using the design at this Figma link and the context from the provided documentation/rules:
|
|
3340
|
+
|
|
3341
|
+
Create a React component for this section.
|
|
3342
|
+
|
|
3343
|
+
Strictly use tokens found in the documentation (colors, spacing) - no magic numbers.
|
|
3344
|
+
|
|
3345
|
+
Map design elements to our existing components where possible (e.g. Buttons, Headings)."`,
|
|
3346
|
+
step4Title: "Step 4: Generation and Review",
|
|
3347
|
+
step4Item1: "The AI now uses MCP to read the node data and generates a code proposal.",
|
|
3348
|
+
step4ReviewTitle: "Review:",
|
|
3349
|
+
step4ReviewItem1: 'Check "Diff View" in Cursor.',
|
|
3350
|
+
step4ReviewItem2: "Are tokens used correctly? (e.g. var(--spacing-md)).",
|
|
3351
|
+
step4ReviewItem3: "Is the semantics good?",
|
|
3352
|
+
step4Apply: 'Apply: Click "Apply" to insert the code into your file.',
|
|
3353
|
+
proTipsTitle: "Tips for success",
|
|
3354
|
+
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.`,
|
|
3355
|
+
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
3356
|
},
|
|
3495
3357
|
metadataFiles: {
|
|
3496
3358
|
title: "Metadata Files",
|
|
@@ -4012,78 +3874,78 @@ const cs = {
|
|
|
4012
3874
|
}
|
|
4013
3875
|
}
|
|
4014
3876
|
}
|
|
4015
|
-
},
|
|
4016
|
-
const [e, n] =
|
|
4017
|
-
const
|
|
4018
|
-
let
|
|
4019
|
-
for (const
|
|
4020
|
-
if (
|
|
3877
|
+
}, Ft = Vt(void 0), Oi = ({ children: t }) => {
|
|
3878
|
+
const [e, n] = ne("NO"), r = (i) => {
|
|
3879
|
+
const s = i.split(".");
|
|
3880
|
+
let o = os[e];
|
|
3881
|
+
for (const l of s) {
|
|
3882
|
+
if (o[l] === void 0)
|
|
4021
3883
|
return console.warn(`Translation missing for key: ${i} in language: ${e}`), i;
|
|
4022
|
-
|
|
3884
|
+
o = o[l];
|
|
4023
3885
|
}
|
|
4024
|
-
return
|
|
3886
|
+
return o;
|
|
4025
3887
|
};
|
|
4026
|
-
return /* @__PURE__ */
|
|
4027
|
-
},
|
|
4028
|
-
const t =
|
|
3888
|
+
return /* @__PURE__ */ d(Ft.Provider, { value: { language: e, setLanguage: n, t: r }, children: t });
|
|
3889
|
+
}, rs = () => {
|
|
3890
|
+
const t = Gt(Ft);
|
|
4029
3891
|
if (t === void 0)
|
|
4030
3892
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
4031
3893
|
return t;
|
|
4032
|
-
},
|
|
4033
|
-
header:
|
|
4034
|
-
languageSwitch:
|
|
4035
|
-
searchOverlay:
|
|
4036
|
-
headerExtension:
|
|
4037
|
-
extensionContentWrapper:
|
|
4038
|
-
extensionContent:
|
|
4039
|
-
extensionDivider:
|
|
4040
|
-
languageLabel:
|
|
4041
|
-
languageLink:
|
|
4042
|
-
headerInner:
|
|
4043
|
-
logoWrapper:
|
|
4044
|
-
logo:
|
|
4045
|
-
secondaryLogoWrapper:
|
|
4046
|
-
slotComponent:
|
|
4047
|
-
slotContainer:
|
|
4048
|
-
slotText:
|
|
4049
|
-
secondaryLogo:
|
|
4050
|
-
redCrossLogo:
|
|
4051
|
-
primaryLogo:
|
|
4052
|
-
navItems:
|
|
4053
|
-
navLink:
|
|
4054
|
-
actions:
|
|
4055
|
-
ctaButton:
|
|
4056
|
-
themeToggle:
|
|
4057
|
-
userInfo:
|
|
4058
|
-
userName:
|
|
4059
|
-
loginLink:
|
|
4060
|
-
loginText:
|
|
4061
|
-
underline:
|
|
4062
|
-
searchButtonWrapper:
|
|
4063
|
-
buttonText:
|
|
4064
|
-
menuButton:
|
|
4065
|
-
menuOverlay:
|
|
4066
|
-
searchContent:
|
|
4067
|
-
menuContent:
|
|
4068
|
-
menuLeftColumn:
|
|
4069
|
-
menuRightColumn:
|
|
4070
|
-
slotContent:
|
|
4071
|
-
navList:
|
|
4072
|
-
menuUtilities:
|
|
4073
|
-
menuBrand:
|
|
4074
|
-
suggestionsSection:
|
|
4075
|
-
suggestionsTitle:
|
|
4076
|
-
searchResults:
|
|
4077
|
-
resultList:
|
|
4078
|
-
resultItem:
|
|
4079
|
-
resultLink:
|
|
4080
|
-
suggestionIcon:
|
|
4081
|
-
suggestionText:
|
|
4082
|
-
highlightedText:
|
|
4083
|
-
remainingText:
|
|
4084
|
-
viewAllLink:
|
|
4085
|
-
noResults:
|
|
4086
|
-
},
|
|
3894
|
+
}, ss = "_header_3zql2_1", is = "_languageSwitch_3zql2_36", as = "_searchOverlay_3zql2_40", ls = "_headerExtension_3zql2_45", ds = "_extensionContentWrapper_3zql2_61", cs = "_extensionContent_3zql2_61", us = "_extensionDivider_3zql2_84", ms = "_languageLabel_3zql2_98", gs = "_languageLink_3zql2_104", ps = "_headerInner_3zql2_129", fs = "_logoWrapper_3zql2_146", hs = "_logo_3zql2_146", ks = "_secondaryLogoWrapper_3zql2_169", vs = "_slotComponent_3zql2_178", bs = "_slotContainer_3zql2_188", ys = "_slotText_3zql2_196", Ts = "_secondaryLogo_3zql2_169", xs = "_redCrossLogo_3zql2_223", Ss = "_primaryLogo_3zql2_229", ws = "_navItems_3zql2_233", Cs = "_navLink_3zql2_242", Ds = "_actions_3zql2_255", Is = "_ctaButton_3zql2_263", As = "_themeToggle_3zql2_268", js = "_userInfo_3zql2_273", Ls = "_userName_3zql2_279", Fs = "_loginLink_3zql2_286", Bs = "_loginText_3zql2_295", Ns = "_underline_3zql2_302", Ps = "_searchButtonWrapper_3zql2_308", Ms = "_buttonText_3zql2_312", Es = "_menuButton_3zql2_317", _s = "_menuOverlay_3zql2_322", zs = "_searchContent_3zql2_356", Rs = "_menuContent_3zql2_366", $s = "_menuLeftColumn_3zql2_375", Hs = "_menuRightColumn_3zql2_381", Os = "_slotContent_3zql2_395", Ws = "_navList_3zql2_408", Vs = "_menuUtilities_3zql2_415", Gs = "_menuBrand_3zql2_422", Us = "_suggestionsSection_3zql2_426", qs = "_suggestionsTitle_3zql2_432", Ks = "_searchResults_3zql2_441", Ys = "_resultList_3zql2_447", Zs = "_resultItem_3zql2_453", Js = "_resultLink_3zql2_461", Qs = "_suggestionIcon_3zql2_475", Xs = "_suggestionText_3zql2_488", ei = "_highlightedText_3zql2_495", ti = "_remainingText_3zql2_500", ni = "_viewAllLink_3zql2_513", oi = "_noResults_3zql2_548", y = {
|
|
3895
|
+
header: ss,
|
|
3896
|
+
languageSwitch: is,
|
|
3897
|
+
searchOverlay: as,
|
|
3898
|
+
headerExtension: ls,
|
|
3899
|
+
extensionContentWrapper: ds,
|
|
3900
|
+
extensionContent: cs,
|
|
3901
|
+
extensionDivider: us,
|
|
3902
|
+
languageLabel: ms,
|
|
3903
|
+
languageLink: gs,
|
|
3904
|
+
headerInner: ps,
|
|
3905
|
+
logoWrapper: fs,
|
|
3906
|
+
logo: hs,
|
|
3907
|
+
secondaryLogoWrapper: ks,
|
|
3908
|
+
slotComponent: vs,
|
|
3909
|
+
slotContainer: bs,
|
|
3910
|
+
slotText: ys,
|
|
3911
|
+
secondaryLogo: Ts,
|
|
3912
|
+
redCrossLogo: xs,
|
|
3913
|
+
primaryLogo: Ss,
|
|
3914
|
+
navItems: ws,
|
|
3915
|
+
navLink: Cs,
|
|
3916
|
+
actions: Ds,
|
|
3917
|
+
ctaButton: Is,
|
|
3918
|
+
themeToggle: As,
|
|
3919
|
+
userInfo: js,
|
|
3920
|
+
userName: Ls,
|
|
3921
|
+
loginLink: Fs,
|
|
3922
|
+
loginText: Bs,
|
|
3923
|
+
underline: Ns,
|
|
3924
|
+
searchButtonWrapper: Ps,
|
|
3925
|
+
buttonText: Ms,
|
|
3926
|
+
menuButton: Es,
|
|
3927
|
+
menuOverlay: _s,
|
|
3928
|
+
searchContent: zs,
|
|
3929
|
+
menuContent: Rs,
|
|
3930
|
+
menuLeftColumn: $s,
|
|
3931
|
+
menuRightColumn: Hs,
|
|
3932
|
+
slotContent: Os,
|
|
3933
|
+
navList: Ws,
|
|
3934
|
+
menuUtilities: Vs,
|
|
3935
|
+
menuBrand: Gs,
|
|
3936
|
+
suggestionsSection: Us,
|
|
3937
|
+
suggestionsTitle: qs,
|
|
3938
|
+
searchResults: Ks,
|
|
3939
|
+
resultList: Ys,
|
|
3940
|
+
resultItem: Zs,
|
|
3941
|
+
resultLink: Js,
|
|
3942
|
+
suggestionIcon: Qs,
|
|
3943
|
+
suggestionText: Xs,
|
|
3944
|
+
highlightedText: ei,
|
|
3945
|
+
remainingText: ti,
|
|
3946
|
+
viewAllLink: ni,
|
|
3947
|
+
noResults: oi
|
|
3948
|
+
}, ri = [
|
|
4087
3949
|
// Pages
|
|
4088
3950
|
{ id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
|
|
4089
3951
|
{ id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
|
|
@@ -4146,37 +4008,37 @@ const cs = {
|
|
|
4146
4008
|
{ id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
|
|
4147
4009
|
{ id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
|
|
4148
4010
|
{ id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
|
|
4149
|
-
],
|
|
4011
|
+
], Wi = ({
|
|
4150
4012
|
activePage: t,
|
|
4151
4013
|
setPage: e,
|
|
4152
4014
|
children: n,
|
|
4153
|
-
showUser:
|
|
4015
|
+
showUser: r = !0,
|
|
4154
4016
|
showSearch: i = !0,
|
|
4155
|
-
showLogin:
|
|
4156
|
-
showCta:
|
|
4157
|
-
ctaLabel:
|
|
4158
|
-
ctaIcon:
|
|
4159
|
-
onCtaClick:
|
|
4160
|
-
showThemeToggle:
|
|
4161
|
-
secondaryLogo:
|
|
4017
|
+
showLogin: s = !0,
|
|
4018
|
+
showCta: o = !1,
|
|
4019
|
+
ctaLabel: l,
|
|
4020
|
+
ctaIcon: a = /* @__PURE__ */ d(Jn, { "aria-hidden": !0 }),
|
|
4021
|
+
onCtaClick: c,
|
|
4022
|
+
showThemeToggle: b = !1,
|
|
4023
|
+
secondaryLogo: p = !1,
|
|
4162
4024
|
secondaryLogoSrc: k,
|
|
4163
4025
|
secondaryLogoSrcDark: g,
|
|
4164
|
-
secondaryLogoAlt:
|
|
4165
|
-
navItems:
|
|
4026
|
+
secondaryLogoAlt: f = "Secondary Logo",
|
|
4027
|
+
navItems: h,
|
|
4166
4028
|
showNavItems: v = !0,
|
|
4167
|
-
showMenuButton:
|
|
4168
|
-
showHeaderExtension:
|
|
4029
|
+
showMenuButton: m = !0,
|
|
4030
|
+
showHeaderExtension: u = !1,
|
|
4169
4031
|
showModeToggle: T = !1,
|
|
4170
|
-
showLanguageSwitch:
|
|
4032
|
+
showLanguageSwitch: j = !1
|
|
4171
4033
|
}) => {
|
|
4172
|
-
const [
|
|
4173
|
-
|
|
4034
|
+
const [A, L] = ne(!1), [w, I] = ne(!1), [F, z] = ne(""), [P, R] = ne("light"), { language: _, setLanguage: M, t: D } = rs(), [V, oe] = ne(!1);
|
|
4035
|
+
K(() => {
|
|
4174
4036
|
const x = "rk-header-inline-styles";
|
|
4175
4037
|
if (typeof document > "u" || document.getElementById(x)) return;
|
|
4176
|
-
const
|
|
4177
|
-
|
|
4038
|
+
const C = si(y), N = document.createElement("style");
|
|
4039
|
+
N.id = x, N.textContent = C, document.head.appendChild(N);
|
|
4178
4040
|
}, []);
|
|
4179
|
-
const
|
|
4041
|
+
const Z = () => /* @__PURE__ */ B(
|
|
4180
4042
|
"svg",
|
|
4181
4043
|
{
|
|
4182
4044
|
width: "170",
|
|
@@ -4186,368 +4048,368 @@ const cs = {
|
|
|
4186
4048
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4187
4049
|
"aria-hidden": !0,
|
|
4188
4050
|
focusable: "false",
|
|
4189
|
-
className:
|
|
4051
|
+
className: y.redCrossLogo,
|
|
4190
4052
|
children: [
|
|
4191
|
-
/* @__PURE__ */
|
|
4192
|
-
/* @__PURE__ */
|
|
4193
|
-
/* @__PURE__ */
|
|
4194
|
-
/* @__PURE__ */
|
|
4195
|
-
/* @__PURE__ */
|
|
4196
|
-
/* @__PURE__ */
|
|
4197
|
-
/* @__PURE__ */
|
|
4198
|
-
/* @__PURE__ */
|
|
4199
|
-
/* @__PURE__ */
|
|
4200
|
-
/* @__PURE__ */
|
|
4053
|
+
/* @__PURE__ */ d("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" }),
|
|
4054
|
+
/* @__PURE__ */ d("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" }),
|
|
4055
|
+
/* @__PURE__ */ d("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" }),
|
|
4056
|
+
/* @__PURE__ */ d("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" }),
|
|
4057
|
+
/* @__PURE__ */ d("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" }),
|
|
4058
|
+
/* @__PURE__ */ d("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" }),
|
|
4059
|
+
/* @__PURE__ */ d("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" }),
|
|
4060
|
+
/* @__PURE__ */ d("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" }),
|
|
4061
|
+
/* @__PURE__ */ d("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
4062
|
+
/* @__PURE__ */ d("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
4201
4063
|
]
|
|
4202
4064
|
}
|
|
4203
4065
|
);
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
}, [t]),
|
|
4207
|
-
if (!(typeof document > "u") &&
|
|
4066
|
+
K(() => {
|
|
4067
|
+
L(!1), I(!1), z("");
|
|
4068
|
+
}, [t]), K(() => {
|
|
4069
|
+
if (!(typeof document > "u") && A && V) {
|
|
4208
4070
|
const x = document.body.style.overflow;
|
|
4209
4071
|
return document.body.style.overflow = "hidden", () => {
|
|
4210
4072
|
document.body.style.overflow = x;
|
|
4211
4073
|
};
|
|
4212
4074
|
}
|
|
4213
|
-
}, [
|
|
4075
|
+
}, [A, V]), K(() => {
|
|
4214
4076
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4215
|
-
const x = window.matchMedia("(max-width: 850px)"),
|
|
4216
|
-
return
|
|
4217
|
-
x.removeEventListener ? x.removeEventListener("change",
|
|
4077
|
+
const x = window.matchMedia("(max-width: 850px)"), C = (N) => oe("matches" in N ? N.matches : x.matches);
|
|
4078
|
+
return C(x), x.addEventListener ? x.addEventListener("change", C) : x.addListener(C), () => {
|
|
4079
|
+
x.removeEventListener ? x.removeEventListener("change", C) : x.removeListener(C);
|
|
4218
4080
|
};
|
|
4219
|
-
}, []),
|
|
4081
|
+
}, []), K(() => {
|
|
4220
4082
|
if (typeof document > "u") return;
|
|
4221
|
-
const x = document.querySelector(`.${
|
|
4083
|
+
const x = document.querySelector(`.${y.header}`);
|
|
4222
4084
|
if (!x) return;
|
|
4223
|
-
const
|
|
4224
|
-
const
|
|
4225
|
-
document.documentElement.style.setProperty("--header-height-mobile", `${
|
|
4085
|
+
const C = () => {
|
|
4086
|
+
const O = x.offsetHeight;
|
|
4087
|
+
document.documentElement.style.setProperty("--header-height-mobile", `${O}px`);
|
|
4226
4088
|
};
|
|
4227
|
-
|
|
4228
|
-
const
|
|
4229
|
-
|
|
4089
|
+
C(), window.addEventListener("resize", C);
|
|
4090
|
+
const N = new ResizeObserver(() => {
|
|
4091
|
+
C();
|
|
4230
4092
|
});
|
|
4231
|
-
return
|
|
4232
|
-
window.removeEventListener("resize",
|
|
4093
|
+
return N.observe(x), () => {
|
|
4094
|
+
window.removeEventListener("resize", C), N.disconnect();
|
|
4233
4095
|
};
|
|
4234
|
-
}, [
|
|
4096
|
+
}, [V]), K(() => {
|
|
4235
4097
|
if (typeof document > "u") return;
|
|
4236
|
-
const x = document.querySelector(`.${
|
|
4098
|
+
const x = document.querySelector(`.${y.logoWrapper}`);
|
|
4237
4099
|
if (!x) return;
|
|
4238
|
-
const
|
|
4239
|
-
const
|
|
4240
|
-
document.documentElement.style.setProperty("--rk-logo-width", `${
|
|
4100
|
+
const C = () => {
|
|
4101
|
+
const N = x.offsetWidth;
|
|
4102
|
+
document.documentElement.style.setProperty("--rk-logo-width", `${N}px`);
|
|
4241
4103
|
};
|
|
4242
|
-
return
|
|
4243
|
-
}, [
|
|
4244
|
-
if (typeof document > "u" || !
|
|
4104
|
+
return C(), window.addEventListener("resize", C), () => window.removeEventListener("resize", C);
|
|
4105
|
+
}, [V]), K(() => {
|
|
4106
|
+
if (typeof document > "u" || !w) {
|
|
4245
4107
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4246
4108
|
return;
|
|
4247
4109
|
}
|
|
4248
|
-
const x = document.querySelector(`.${
|
|
4110
|
+
const x = document.querySelector(`.${y.searchOverlay}`);
|
|
4249
4111
|
if (!x) return;
|
|
4250
|
-
const
|
|
4251
|
-
const
|
|
4252
|
-
document.documentElement.style.setProperty("--rk-search-overlay-height", `${
|
|
4112
|
+
const C = () => {
|
|
4113
|
+
const O = x.offsetHeight;
|
|
4114
|
+
document.documentElement.style.setProperty("--rk-search-overlay-height", `${O}px`);
|
|
4253
4115
|
};
|
|
4254
|
-
requestAnimationFrame(
|
|
4255
|
-
const
|
|
4256
|
-
return
|
|
4257
|
-
window.removeEventListener("resize",
|
|
4116
|
+
requestAnimationFrame(C), window.addEventListener("resize", C);
|
|
4117
|
+
const N = new ResizeObserver(C);
|
|
4118
|
+
return N.observe(x), () => {
|
|
4119
|
+
window.removeEventListener("resize", C), N.disconnect();
|
|
4258
4120
|
};
|
|
4259
|
-
}, [
|
|
4260
|
-
const
|
|
4261
|
-
const x =
|
|
4262
|
-
|
|
4263
|
-
},
|
|
4264
|
-
e && (x.preventDefault(), e("home")),
|
|
4265
|
-
},
|
|
4266
|
-
|
|
4267
|
-
const x = document.querySelector(`.${
|
|
4121
|
+
}, [w]);
|
|
4122
|
+
const Y = () => {
|
|
4123
|
+
const x = P === "light" ? "dark" : "light";
|
|
4124
|
+
R(x), document.documentElement.setAttribute("data-color-scheme", x);
|
|
4125
|
+
}, de = (x) => {
|
|
4126
|
+
e && (x.preventDefault(), e("home")), L(!1), I(!1);
|
|
4127
|
+
}, J = () => {
|
|
4128
|
+
L(!A), w && I(!1), !A && typeof document < "u" && requestAnimationFrame(() => {
|
|
4129
|
+
const x = document.querySelector(`.${y.header}`);
|
|
4268
4130
|
if (x) {
|
|
4269
|
-
const
|
|
4270
|
-
document.documentElement.style.setProperty("--header-height-mobile", `${
|
|
4131
|
+
const C = x.offsetHeight;
|
|
4132
|
+
document.documentElement.style.setProperty("--header-height-mobile", `${C}px`);
|
|
4271
4133
|
}
|
|
4272
4134
|
});
|
|
4273
|
-
},
|
|
4274
|
-
|
|
4275
|
-
},
|
|
4276
|
-
if (!
|
|
4277
|
-
const x =
|
|
4278
|
-
return
|
|
4279
|
-
(
|
|
4135
|
+
}, ie = () => {
|
|
4136
|
+
I(!w), A && L(!1);
|
|
4137
|
+
}, Q = ye(() => {
|
|
4138
|
+
if (!F.trim()) return [];
|
|
4139
|
+
const x = F.toLowerCase();
|
|
4140
|
+
return ri.filter(
|
|
4141
|
+
(C) => C.title.toLowerCase().startsWith(x)
|
|
4280
4142
|
);
|
|
4281
|
-
}, [
|
|
4282
|
-
e && e(x),
|
|
4143
|
+
}, [F]), X = (x) => {
|
|
4144
|
+
e && e(x), I(!1), z("");
|
|
4283
4145
|
};
|
|
4284
|
-
return /* @__PURE__ */
|
|
4285
|
-
|
|
4286
|
-
T && /* @__PURE__ */
|
|
4287
|
-
|
|
4146
|
+
return /* @__PURE__ */ B("header", { className: y.header, "data-open": A ? "true" : "false", children: [
|
|
4147
|
+
u && /* @__PURE__ */ d("div", { className: y.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ B("div", { className: y.extensionContentWrapper, children: [
|
|
4148
|
+
T && /* @__PURE__ */ d("div", { className: y.extensionContent, children: /* @__PURE__ */ d(
|
|
4149
|
+
Ve,
|
|
4288
4150
|
{
|
|
4289
4151
|
"data-size": "sm",
|
|
4290
|
-
checked:
|
|
4291
|
-
onChange:
|
|
4292
|
-
label:
|
|
4152
|
+
checked: P === "dark",
|
|
4153
|
+
onChange: Y,
|
|
4154
|
+
label: D("header.darkMode"),
|
|
4293
4155
|
color: "neutral",
|
|
4294
4156
|
"data-color-scheme": "light"
|
|
4295
4157
|
}
|
|
4296
4158
|
) }),
|
|
4297
|
-
T &&
|
|
4298
|
-
|
|
4299
|
-
/* @__PURE__ */
|
|
4300
|
-
/* @__PURE__ */
|
|
4301
|
-
/* @__PURE__ */
|
|
4302
|
-
|
|
4159
|
+
T && j && /* @__PURE__ */ d("div", { className: y.extensionDivider }),
|
|
4160
|
+
j && /* @__PURE__ */ B("div", { className: y.languageSwitch, children: [
|
|
4161
|
+
/* @__PURE__ */ d("span", { className: y.languageLabel, children: D("header.language") }),
|
|
4162
|
+
/* @__PURE__ */ B(q.TriggerContext, { children: [
|
|
4163
|
+
/* @__PURE__ */ B(
|
|
4164
|
+
q.Trigger,
|
|
4303
4165
|
{
|
|
4304
|
-
className:
|
|
4305
|
-
"aria-label":
|
|
4166
|
+
className: y.languageLink,
|
|
4167
|
+
"aria-label": D("header.selectLanguage"),
|
|
4306
4168
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4307
4169
|
children: [
|
|
4308
|
-
|
|
4170
|
+
_,
|
|
4309
4171
|
" ",
|
|
4310
|
-
/* @__PURE__ */
|
|
4172
|
+
/* @__PURE__ */ d(ut, { "aria-hidden": !0 })
|
|
4311
4173
|
]
|
|
4312
4174
|
}
|
|
4313
4175
|
),
|
|
4314
|
-
/* @__PURE__ */
|
|
4315
|
-
|
|
4176
|
+
/* @__PURE__ */ d(
|
|
4177
|
+
q,
|
|
4316
4178
|
{
|
|
4317
|
-
"data-color-scheme":
|
|
4179
|
+
"data-color-scheme": P,
|
|
4318
4180
|
placement: "bottom-end",
|
|
4319
|
-
children: /* @__PURE__ */
|
|
4320
|
-
/* @__PURE__ */
|
|
4321
|
-
/* @__PURE__ */
|
|
4181
|
+
children: /* @__PURE__ */ B(q.List, { children: [
|
|
4182
|
+
/* @__PURE__ */ d(q.Item, { children: /* @__PURE__ */ d(q.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
|
|
4183
|
+
/* @__PURE__ */ d(q.Item, { children: /* @__PURE__ */ d(q.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
|
|
4322
4184
|
] })
|
|
4323
4185
|
}
|
|
4324
4186
|
)
|
|
4325
4187
|
] })
|
|
4326
4188
|
] })
|
|
4327
4189
|
] }) }),
|
|
4328
|
-
/* @__PURE__ */
|
|
4329
|
-
/* @__PURE__ */
|
|
4330
|
-
/* @__PURE__ */
|
|
4190
|
+
/* @__PURE__ */ B("div", { className: y.headerInner, children: [
|
|
4191
|
+
/* @__PURE__ */ B("div", { className: y.logoWrapper, children: [
|
|
4192
|
+
/* @__PURE__ */ d(
|
|
4331
4193
|
Ne,
|
|
4332
4194
|
{
|
|
4333
4195
|
href: "/",
|
|
4334
|
-
className: `${
|
|
4335
|
-
"aria-label":
|
|
4336
|
-
onClick:
|
|
4337
|
-
children: /* @__PURE__ */
|
|
4196
|
+
className: `${y.logo} ${y.primaryLogo}`,
|
|
4197
|
+
"aria-label": D("header.homeAriaLabel"),
|
|
4198
|
+
onClick: de,
|
|
4199
|
+
children: /* @__PURE__ */ d(Z, {})
|
|
4338
4200
|
}
|
|
4339
4201
|
),
|
|
4340
|
-
/* @__PURE__ */
|
|
4202
|
+
/* @__PURE__ */ d("div", { className: y.secondaryLogoWrapper, children: p && k ? /* @__PURE__ */ d(
|
|
4341
4203
|
"img",
|
|
4342
4204
|
{
|
|
4343
|
-
src:
|
|
4344
|
-
alt:
|
|
4345
|
-
className:
|
|
4205
|
+
src: P === "dark" && g ? g : k,
|
|
4206
|
+
alt: f,
|
|
4207
|
+
className: y.secondaryLogo
|
|
4346
4208
|
}
|
|
4347
|
-
) :
|
|
4209
|
+
) : p ? /* @__PURE__ */ d("div", { className: y.slotComponent, children: /* @__PURE__ */ d("div", { className: y.slotContainer, children: /* @__PURE__ */ d("p", { className: y.slotText, children: "SLOT" }) }) }) : null })
|
|
4348
4210
|
] }),
|
|
4349
|
-
v &&
|
|
4211
|
+
v && h && h.length > 0 && !V && /* @__PURE__ */ d("nav", { className: y.navItems, children: h.map((x, C) => /* @__PURE__ */ d(
|
|
4350
4212
|
Ne,
|
|
4351
4213
|
{
|
|
4352
4214
|
href: x.href,
|
|
4353
|
-
className:
|
|
4354
|
-
onClick: (
|
|
4355
|
-
e && (
|
|
4215
|
+
className: y.navLink,
|
|
4216
|
+
onClick: (N) => {
|
|
4217
|
+
e && (N.preventDefault(), e(x.href));
|
|
4356
4218
|
},
|
|
4357
4219
|
children: x.label
|
|
4358
4220
|
},
|
|
4359
|
-
|
|
4221
|
+
C
|
|
4360
4222
|
)) }),
|
|
4361
|
-
/* @__PURE__ */
|
|
4362
|
-
|
|
4363
|
-
|
|
4223
|
+
/* @__PURE__ */ B("div", { className: y.actions, children: [
|
|
4224
|
+
o && /* @__PURE__ */ B(
|
|
4225
|
+
Te,
|
|
4364
4226
|
{
|
|
4365
4227
|
variant: "primary",
|
|
4366
4228
|
"data-color": "main",
|
|
4367
4229
|
"data-size": "md",
|
|
4368
|
-
className:
|
|
4369
|
-
onClick:
|
|
4230
|
+
className: y.ctaButton,
|
|
4231
|
+
onClick: c,
|
|
4370
4232
|
children: [
|
|
4371
|
-
|
|
4372
|
-
/* @__PURE__ */
|
|
4233
|
+
a,
|
|
4234
|
+
/* @__PURE__ */ d("span", { className: y.buttonText, children: l || D("header.supportUs") })
|
|
4373
4235
|
]
|
|
4374
4236
|
}
|
|
4375
4237
|
),
|
|
4376
|
-
!
|
|
4377
|
-
|
|
4238
|
+
!u && b && /* @__PURE__ */ d("div", { className: y.themeToggle, children: /* @__PURE__ */ d(
|
|
4239
|
+
Ve,
|
|
4378
4240
|
{
|
|
4379
|
-
checked:
|
|
4380
|
-
onChange:
|
|
4381
|
-
"aria-label":
|
|
4241
|
+
checked: P === "dark",
|
|
4242
|
+
onChange: Y,
|
|
4243
|
+
"aria-label": D("header.toggleTheme")
|
|
4382
4244
|
}
|
|
4383
4245
|
) }),
|
|
4384
|
-
|
|
4385
|
-
/* @__PURE__ */
|
|
4386
|
-
/* @__PURE__ */
|
|
4246
|
+
r && /* @__PURE__ */ B("div", { className: y.userInfo, children: [
|
|
4247
|
+
/* @__PURE__ */ d(Ye, { "data-size": "md", className: y.userName, children: "Frodo Baggins" }),
|
|
4248
|
+
/* @__PURE__ */ d(Ct, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4387
4249
|
] }),
|
|
4388
|
-
|
|
4389
|
-
/* @__PURE__ */
|
|
4390
|
-
/* @__PURE__ */
|
|
4250
|
+
s && /* @__PURE__ */ B("a", { href: "#", className: y.loginLink, children: [
|
|
4251
|
+
/* @__PURE__ */ d("span", { className: y.loginText, children: D("header.login") }),
|
|
4252
|
+
/* @__PURE__ */ d("div", { className: y.underline })
|
|
4391
4253
|
] }),
|
|
4392
|
-
i && /* @__PURE__ */
|
|
4393
|
-
|
|
4254
|
+
i && /* @__PURE__ */ d("div", { className: y.searchButtonWrapper, children: /* @__PURE__ */ B(
|
|
4255
|
+
Te,
|
|
4394
4256
|
{
|
|
4395
4257
|
variant: "secondary",
|
|
4396
4258
|
"data-color": "main",
|
|
4397
4259
|
"data-size": "md",
|
|
4398
|
-
onClick:
|
|
4399
|
-
"aria-expanded":
|
|
4400
|
-
"aria-label":
|
|
4260
|
+
onClick: ie,
|
|
4261
|
+
"aria-expanded": w,
|
|
4262
|
+
"aria-label": D(w ? "header.closeSearch" : "header.openSearch"),
|
|
4401
4263
|
children: [
|
|
4402
|
-
|
|
4403
|
-
/* @__PURE__ */
|
|
4264
|
+
w ? /* @__PURE__ */ d(mt, { "aria-hidden": !0 }) : /* @__PURE__ */ d(gt, { "aria-hidden": !0 }),
|
|
4265
|
+
/* @__PURE__ */ d("span", { className: y.buttonText, children: D(w ? "header.close" : "header.search") })
|
|
4404
4266
|
]
|
|
4405
4267
|
}
|
|
4406
4268
|
) }),
|
|
4407
|
-
(
|
|
4408
|
-
|
|
4269
|
+
(m || V) && /* @__PURE__ */ B(
|
|
4270
|
+
Te,
|
|
4409
4271
|
{
|
|
4410
4272
|
variant: "primary",
|
|
4411
4273
|
"data-color": "main",
|
|
4412
4274
|
"data-size": "md",
|
|
4413
|
-
onClick:
|
|
4414
|
-
"aria-expanded":
|
|
4415
|
-
"aria-label":
|
|
4416
|
-
className:
|
|
4275
|
+
onClick: J,
|
|
4276
|
+
"aria-expanded": A,
|
|
4277
|
+
"aria-label": D(A ? "header.closeMenu" : "header.openMenu"),
|
|
4278
|
+
className: y.menuButton,
|
|
4417
4279
|
children: [
|
|
4418
|
-
|
|
4419
|
-
/* @__PURE__ */
|
|
4280
|
+
A ? /* @__PURE__ */ d(mt, { "aria-hidden": !0 }) : /* @__PURE__ */ d(Zn, { "aria-hidden": !0 }),
|
|
4281
|
+
/* @__PURE__ */ d("span", { className: y.buttonText, children: D(A ? "header.close" : "header.menu") })
|
|
4420
4282
|
]
|
|
4421
4283
|
}
|
|
4422
4284
|
)
|
|
4423
4285
|
] })
|
|
4424
4286
|
] }),
|
|
4425
|
-
|
|
4426
|
-
/* @__PURE__ */
|
|
4427
|
-
/* @__PURE__ */
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
/* @__PURE__ */
|
|
4431
|
-
/* @__PURE__ */
|
|
4432
|
-
/* @__PURE__ */
|
|
4433
|
-
|
|
4287
|
+
A && /* @__PURE__ */ d("div", { className: y.menuOverlay, children: /* @__PURE__ */ B("div", { className: y.menuContent, children: [
|
|
4288
|
+
/* @__PURE__ */ d("div", { className: y.menuLeftColumn }),
|
|
4289
|
+
/* @__PURE__ */ B("div", { className: y.menuRightColumn, children: [
|
|
4290
|
+
V && (j || T) && /* @__PURE__ */ B("div", { className: y.menuUtilities, children: [
|
|
4291
|
+
j && /* @__PURE__ */ B("div", { className: y.languageSwitch, children: [
|
|
4292
|
+
/* @__PURE__ */ d("span", { className: y.languageLabel, children: D("header.language") }),
|
|
4293
|
+
/* @__PURE__ */ B(q.TriggerContext, { children: [
|
|
4294
|
+
/* @__PURE__ */ B(
|
|
4295
|
+
q.Trigger,
|
|
4434
4296
|
{
|
|
4435
|
-
className:
|
|
4436
|
-
"aria-label":
|
|
4297
|
+
className: y.languageLink,
|
|
4298
|
+
"aria-label": D("header.selectLanguage"),
|
|
4437
4299
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4438
4300
|
children: [
|
|
4439
|
-
|
|
4301
|
+
_,
|
|
4440
4302
|
" ",
|
|
4441
|
-
/* @__PURE__ */
|
|
4303
|
+
/* @__PURE__ */ d(ut, { "aria-hidden": !0 })
|
|
4442
4304
|
]
|
|
4443
4305
|
}
|
|
4444
4306
|
),
|
|
4445
|
-
/* @__PURE__ */
|
|
4446
|
-
|
|
4307
|
+
/* @__PURE__ */ d(
|
|
4308
|
+
q,
|
|
4447
4309
|
{
|
|
4448
|
-
"data-color-scheme":
|
|
4310
|
+
"data-color-scheme": P,
|
|
4449
4311
|
placement: "bottom-start",
|
|
4450
|
-
children: /* @__PURE__ */
|
|
4451
|
-
/* @__PURE__ */
|
|
4452
|
-
/* @__PURE__ */
|
|
4312
|
+
children: /* @__PURE__ */ B(q.List, { children: [
|
|
4313
|
+
/* @__PURE__ */ d(q.Item, { children: /* @__PURE__ */ d(q.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
|
|
4314
|
+
/* @__PURE__ */ d(q.Item, { children: /* @__PURE__ */ d(q.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
|
|
4453
4315
|
] })
|
|
4454
4316
|
}
|
|
4455
4317
|
)
|
|
4456
4318
|
] })
|
|
4457
4319
|
] }),
|
|
4458
|
-
T && /* @__PURE__ */
|
|
4459
|
-
|
|
4320
|
+
T && /* @__PURE__ */ d("div", { className: y.extensionContent, children: /* @__PURE__ */ d(
|
|
4321
|
+
Ve,
|
|
4460
4322
|
{
|
|
4461
4323
|
"data-size": "sm",
|
|
4462
|
-
checked:
|
|
4463
|
-
onChange:
|
|
4464
|
-
label:
|
|
4324
|
+
checked: P === "dark",
|
|
4325
|
+
onChange: Y,
|
|
4326
|
+
label: D("header.darkMode"),
|
|
4465
4327
|
color: "neutral",
|
|
4466
4328
|
"data-color-scheme": "light"
|
|
4467
4329
|
}
|
|
4468
4330
|
) })
|
|
4469
4331
|
] }),
|
|
4470
|
-
/* @__PURE__ */
|
|
4332
|
+
/* @__PURE__ */ B("div", { className: y.slotContent, children: [
|
|
4471
4333
|
n,
|
|
4472
|
-
|
|
4334
|
+
V && v && h && h.length > 0 && /* @__PURE__ */ d("nav", { className: y.navList, children: h.map((x, C) => /* @__PURE__ */ d(
|
|
4473
4335
|
Ne,
|
|
4474
4336
|
{
|
|
4475
4337
|
href: x.href,
|
|
4476
|
-
className:
|
|
4477
|
-
onClick: (
|
|
4478
|
-
e && (
|
|
4338
|
+
className: y.navLink,
|
|
4339
|
+
onClick: (N) => {
|
|
4340
|
+
e && (N.preventDefault(), e(x.href));
|
|
4479
4341
|
},
|
|
4480
4342
|
children: x.label
|
|
4481
4343
|
},
|
|
4482
|
-
|
|
4344
|
+
C
|
|
4483
4345
|
)) })
|
|
4484
4346
|
] }),
|
|
4485
|
-
|
|
4347
|
+
V && /* @__PURE__ */ d("div", { className: y.menuBrand, children: /* @__PURE__ */ d(Z, {}) })
|
|
4486
4348
|
] })
|
|
4487
4349
|
] }) }),
|
|
4488
|
-
|
|
4489
|
-
/* @__PURE__ */
|
|
4490
|
-
/* @__PURE__ */
|
|
4350
|
+
w && /* @__PURE__ */ d("div", { className: y.searchOverlay, children: /* @__PURE__ */ B("div", { className: y.searchContent, children: [
|
|
4351
|
+
/* @__PURE__ */ B(Pe, { children: [
|
|
4352
|
+
/* @__PURE__ */ d(
|
|
4491
4353
|
Pe.Input,
|
|
4492
4354
|
{
|
|
4493
|
-
"aria-label":
|
|
4494
|
-
placeholder:
|
|
4495
|
-
value:
|
|
4496
|
-
onChange: (x) =>
|
|
4355
|
+
"aria-label": D("header.search"),
|
|
4356
|
+
placeholder: D("header.searchPlaceholder"),
|
|
4357
|
+
value: F,
|
|
4358
|
+
onChange: (x) => z(x.target.value)
|
|
4497
4359
|
}
|
|
4498
4360
|
),
|
|
4499
|
-
/* @__PURE__ */
|
|
4500
|
-
/* @__PURE__ */
|
|
4361
|
+
/* @__PURE__ */ d(Pe.Button, { "aria-label": D("header.search") }),
|
|
4362
|
+
/* @__PURE__ */ d(Pe.ClearButton, { onClick: () => z(""), "aria-label": D("header.clearSearch") })
|
|
4501
4363
|
] }),
|
|
4502
|
-
|
|
4503
|
-
/* @__PURE__ */
|
|
4504
|
-
/* @__PURE__ */
|
|
4364
|
+
F && /* @__PURE__ */ d("div", { className: y.searchResults, children: Q.length > 0 ? /* @__PURE__ */ B("div", { className: y.suggestionsSection, children: [
|
|
4365
|
+
/* @__PURE__ */ d("h3", { className: y.suggestionsTitle, children: D("header.suggestions") }),
|
|
4366
|
+
/* @__PURE__ */ d("ul", { className: y.resultList, children: Q.slice(0, 5).map((x) => /* @__PURE__ */ d("li", { className: y.resultItem, children: /* @__PURE__ */ B(
|
|
4505
4367
|
"button",
|
|
4506
4368
|
{
|
|
4507
|
-
className:
|
|
4508
|
-
onClick: () =>
|
|
4369
|
+
className: y.resultLink,
|
|
4370
|
+
onClick: () => X(x.path),
|
|
4509
4371
|
children: [
|
|
4510
|
-
/* @__PURE__ */
|
|
4511
|
-
/* @__PURE__ */
|
|
4512
|
-
const
|
|
4513
|
-
if (
|
|
4514
|
-
const
|
|
4515
|
-
return /* @__PURE__ */
|
|
4516
|
-
/* @__PURE__ */
|
|
4517
|
-
/* @__PURE__ */
|
|
4518
|
-
/* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ d("span", { className: y.suggestionIcon, children: /* @__PURE__ */ d(gt, { "aria-hidden": !0 }) }),
|
|
4373
|
+
/* @__PURE__ */ d("span", { className: y.suggestionText, children: (() => {
|
|
4374
|
+
const C = x.title.toLowerCase().indexOf(F.toLowerCase());
|
|
4375
|
+
if (C === -1) return /* @__PURE__ */ d("span", { className: y.remainingText, children: x.title });
|
|
4376
|
+
const N = x.title.slice(0, C), O = x.title.slice(C, C + F.length), te = x.title.slice(C + F.length);
|
|
4377
|
+
return /* @__PURE__ */ B(Ot, { children: [
|
|
4378
|
+
/* @__PURE__ */ d("span", { className: y.remainingText, children: N }),
|
|
4379
|
+
/* @__PURE__ */ d("span", { className: y.highlightedText, children: O }),
|
|
4380
|
+
/* @__PURE__ */ d("span", { className: y.remainingText, children: te })
|
|
4519
4381
|
] });
|
|
4520
4382
|
})() })
|
|
4521
4383
|
]
|
|
4522
4384
|
}
|
|
4523
4385
|
) }, x.id)) }),
|
|
4524
|
-
|
|
4386
|
+
Q.length > 5 && /* @__PURE__ */ B(
|
|
4525
4387
|
Ne,
|
|
4526
4388
|
{
|
|
4527
4389
|
href: "#",
|
|
4528
4390
|
"data-color": "neutral",
|
|
4529
|
-
className:
|
|
4391
|
+
className: y.viewAllLink,
|
|
4530
4392
|
onClick: (x) => {
|
|
4531
|
-
x.preventDefault(), e && e(`search/${
|
|
4393
|
+
x.preventDefault(), e && e(`search/${F}`), I(!1), z("");
|
|
4532
4394
|
},
|
|
4533
4395
|
children: [
|
|
4534
|
-
|
|
4396
|
+
D("header.viewAll"),
|
|
4535
4397
|
" (",
|
|
4536
|
-
|
|
4398
|
+
Q.length,
|
|
4537
4399
|
")"
|
|
4538
4400
|
]
|
|
4539
4401
|
}
|
|
4540
4402
|
)
|
|
4541
|
-
] }) : /* @__PURE__ */
|
|
4542
|
-
|
|
4403
|
+
] }) : /* @__PURE__ */ d("div", { className: y.noResults, children: /* @__PURE__ */ B(Ye, { children: [
|
|
4404
|
+
D("header.noResults"),
|
|
4543
4405
|
' "',
|
|
4544
|
-
|
|
4406
|
+
F,
|
|
4545
4407
|
'"'
|
|
4546
4408
|
] }) }) })
|
|
4547
4409
|
] }) })
|
|
4548
4410
|
] });
|
|
4549
4411
|
};
|
|
4550
|
-
function
|
|
4412
|
+
function si(t) {
|
|
4551
4413
|
const e = t;
|
|
4552
4414
|
return `
|
|
4553
4415
|
.${e.header} {
|
|
@@ -4678,59 +4540,59 @@ function ma(t) {
|
|
|
4678
4540
|
`;
|
|
4679
4541
|
}
|
|
4680
4542
|
export {
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4543
|
+
Qn as Alert,
|
|
4544
|
+
Ct as Avatar,
|
|
4545
|
+
Xn as Badge,
|
|
4546
|
+
ui as BadgePosition,
|
|
4547
|
+
mi as Breadcrumbs,
|
|
4548
|
+
pi as BreadcrumbsItem,
|
|
4549
|
+
fi as BreadcrumbsLink,
|
|
4550
|
+
gi as BreadcrumbsList,
|
|
4551
|
+
Te as Button,
|
|
4552
|
+
eo as Card,
|
|
4553
|
+
hi as CardBlock,
|
|
4554
|
+
Zr as Carousel,
|
|
4555
|
+
to as Checkbox,
|
|
4556
|
+
vi as Chip,
|
|
4557
|
+
er as DateInput,
|
|
4558
|
+
Uo as DatePicker,
|
|
4559
|
+
bi as Details,
|
|
4560
|
+
yi as Dialog,
|
|
4561
|
+
Ti as Divider,
|
|
4562
|
+
q as Dropdown,
|
|
4563
|
+
xi as ErrorSummary,
|
|
4564
|
+
Si as Field,
|
|
4565
|
+
Qr as FieldCounter,
|
|
4566
|
+
Jr as FieldDescription,
|
|
4567
|
+
wi as Fieldset,
|
|
4568
|
+
Wi as Header,
|
|
4569
|
+
Xr as Heading,
|
|
4570
|
+
Ci as Input,
|
|
4571
|
+
es as Label,
|
|
4572
|
+
Oi as LanguageProvider,
|
|
4711
4573
|
Ne as Link,
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4574
|
+
Di as List,
|
|
4575
|
+
Ii as Pagination,
|
|
4576
|
+
Ye as Paragraph,
|
|
4577
|
+
ji as Popover,
|
|
4578
|
+
Li as Radio,
|
|
4717
4579
|
Pe as Search,
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4580
|
+
Bi as Select,
|
|
4581
|
+
Ni as SkeletonLoader,
|
|
4582
|
+
Pi as SkipLink,
|
|
4583
|
+
Yr as Spinner,
|
|
4584
|
+
ts as Suggestion,
|
|
4585
|
+
Ve as Switch,
|
|
4586
|
+
Mi as Table,
|
|
4587
|
+
Ei as Tabs,
|
|
4588
|
+
_i as Tag,
|
|
4589
|
+
zi as Textarea,
|
|
4590
|
+
Ri as Textfield,
|
|
4591
|
+
$i as ToggleGroup,
|
|
4592
|
+
Hi as Tooltip,
|
|
4593
|
+
ns as ValidationMessage,
|
|
4594
|
+
ki as useCheckboxGroup,
|
|
4595
|
+
rs as useLanguage,
|
|
4596
|
+
Ai as usePagination,
|
|
4597
|
+
Fi as useRadioGroup
|
|
4736
4598
|
};
|