cattle-care-ui 0.2.0 → 0.3.1
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/components/Calendar.d.ts +17 -1
- package/dist/components/DateRangePicker.d.ts +52 -0
- package/dist/components/usePopup.d.ts +20 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1277 -937
- package/dist/index.js.map +1 -1
- package/dist/utils/dateRange.d.ts +31 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Children as e, Fragment as t, cloneElement as n, createContext as r, createElement as i, forwardRef as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
var
|
|
2
|
+
import { Children as e, Fragment as t, cloneElement as n, createContext as r, createElement as i, forwardRef as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m, useSyncExternalStore as h } from "react";
|
|
3
|
+
import { createPortal as g } from "react-dom";
|
|
4
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
5
|
+
var b = {
|
|
6
6
|
tooltip: "_tooltip_1rs7r_1",
|
|
7
7
|
tooltipIn: "_tooltipIn_1rs7r_1",
|
|
8
8
|
bottom: "_bottom_1rs7r_17",
|
|
9
9
|
top: "_top_1rs7r_20"
|
|
10
|
-
},
|
|
11
|
-
function
|
|
12
|
-
let [a, o] = m(!1), [c, u] = m(null), f = p(null),
|
|
10
|
+
}, x = 8, S = 8;
|
|
11
|
+
function C({ content: e, side: t = "bottom", delay: r = 400, children: i }) {
|
|
12
|
+
let [a, o] = m(!1), [c, u] = m(null), f = p(null), h = p(null), C = p(void 0), w = i.props, T = w.ref, E = s((e) => {
|
|
13
13
|
f.current = e, typeof T == "function" ? T(e) : T && (T.current = e);
|
|
14
14
|
}, [T]), D = (e) => {
|
|
15
15
|
window.clearTimeout(C.current), e ? o(!0) : C.current = window.setTimeout(() => o(!0), r);
|
|
@@ -17,10 +17,10 @@ function S({ content: e, side: t = "bottom", delay: r = 400, children: i }) {
|
|
|
17
17
|
window.clearTimeout(C.current), o(!1), u(null);
|
|
18
18
|
};
|
|
19
19
|
if (l(() => () => window.clearTimeout(C.current), []), d(() => {
|
|
20
|
-
if (!a || !f.current || !
|
|
21
|
-
let e = f.current.getBoundingClientRect(), n =
|
|
20
|
+
if (!a || !f.current || !h.current) return;
|
|
21
|
+
let e = f.current.getBoundingClientRect(), n = h.current, r = n.offsetWidth, i = n.offsetHeight, o = e.bottom + x + i + S <= window.innerHeight, s = e.top - x - i - S >= 0, c = t;
|
|
22
22
|
t === "bottom" && !o && s && (c = "top"), t === "top" && !s && o && (c = "bottom");
|
|
23
|
-
let l = c === "bottom" ? e.bottom +
|
|
23
|
+
let l = c === "bottom" ? e.bottom + x : e.top - x - i, d = e.left + e.width / 2 - r / 2, p = Math.max(S, Math.min(d, window.innerWidth - r - S));
|
|
24
24
|
u({
|
|
25
25
|
left: p,
|
|
26
26
|
top: l,
|
|
@@ -50,10 +50,10 @@ function S({ content: e, side: t = "bottom", delay: r = 400, children: i }) {
|
|
|
50
50
|
w.onBlur?.(e), O();
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
ref:
|
|
53
|
+
return /* @__PURE__ */ y(_, { children: [k, a && g(/* @__PURE__ */ v("div", {
|
|
54
|
+
ref: h,
|
|
55
55
|
role: "tooltip",
|
|
56
|
-
className: `${
|
|
56
|
+
className: `${b.tooltip} ${c?.side === "top" ? b.top : b.bottom}`,
|
|
57
57
|
style: c ? {
|
|
58
58
|
left: c.left,
|
|
59
59
|
top: c.top
|
|
@@ -67,32 +67,32 @@ function S({ content: e, side: t = "bottom", delay: r = 400, children: i }) {
|
|
|
67
67
|
}
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/components/shortcut.ts
|
|
70
|
-
var
|
|
70
|
+
var w = () => typeof navigator < "u" && /mac|iphone|ipad/i.test(navigator.platform), T = {
|
|
71
71
|
alt: "⌥",
|
|
72
72
|
shift: "⇧",
|
|
73
73
|
ctrl: "Ctrl",
|
|
74
74
|
enter: "↵",
|
|
75
75
|
esc: "Esc"
|
|
76
76
|
};
|
|
77
|
-
function
|
|
78
|
-
let t =
|
|
79
|
-
return a.push(
|
|
77
|
+
function E(e) {
|
|
78
|
+
let t = w(), n = e.toLowerCase().split("+").map((e) => e.trim()), r = n[n.length - 1], i = new Set(n.slice(0, -1)), a = [...i].map((e) => e === "mod" ? t ? "⌘" : "Ctrl" : T[e] ?? e);
|
|
79
|
+
return a.push(T[r] ?? r.toUpperCase()), {
|
|
80
80
|
key: r,
|
|
81
81
|
mods: i,
|
|
82
82
|
mac: t,
|
|
83
83
|
labels: a
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function D(e, t, n = !0) {
|
|
87
87
|
l(() => {
|
|
88
88
|
if (!e || !n) return;
|
|
89
|
-
let { key: r, mods: i, mac: a } =
|
|
89
|
+
let { key: r, mods: i, mac: a } = E(e), o = (e) => {
|
|
90
90
|
e.key.toLowerCase() === r && (a ? e.metaKey : e.ctrlKey) === (i.has("mod") || !a && i.has("ctrl")) && e.altKey === i.has("alt") && e.shiftKey === i.has("shift") && (e.preventDefault(), t());
|
|
91
91
|
};
|
|
92
92
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
93
93
|
}, [e, n]);
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var O = {
|
|
96
96
|
primary: "_primary_1j6ub_1",
|
|
97
97
|
secondary: "_secondary_1j6ub_2",
|
|
98
98
|
tertiary: "_tertiary_1j6ub_3",
|
|
@@ -114,19 +114,19 @@ var D = {
|
|
|
114
114
|
};
|
|
115
115
|
//#endregion
|
|
116
116
|
//#region src/components/Button.tsx
|
|
117
|
-
function
|
|
117
|
+
function k({ variant: e = "primary", size: t = "base", leadingIcon: n, trailingIcon: r, fullWidth: i, shortcut: a, underline: o = "always", children: s, className: c, ref: l, ...u }) {
|
|
118
118
|
let d = p(null);
|
|
119
|
-
|
|
119
|
+
D(a, () => d.current?.click(), !u.disabled);
|
|
120
120
|
let f = (e) => {
|
|
121
121
|
d.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
|
|
122
122
|
};
|
|
123
123
|
if (e === "link") {
|
|
124
124
|
let e = [
|
|
125
|
-
|
|
126
|
-
o === "hover" &&
|
|
125
|
+
O.link,
|
|
126
|
+
o === "hover" && O.underlineHover,
|
|
127
127
|
c
|
|
128
128
|
].filter(Boolean).join(" ");
|
|
129
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ v("button", {
|
|
130
130
|
ref: f,
|
|
131
131
|
type: "button",
|
|
132
132
|
className: e,
|
|
@@ -135,42 +135,42 @@ function O({ variant: e = "primary", size: t = "base", leadingIcon: n, trailingI
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
let m = !s && !!n, h = [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
m &&
|
|
141
|
-
i &&
|
|
138
|
+
O[e],
|
|
139
|
+
O[t],
|
|
140
|
+
m && O.iconOnly,
|
|
141
|
+
i && O.fullWidth,
|
|
142
142
|
c
|
|
143
|
-
].filter(Boolean).join(" "), g = /* @__PURE__ */
|
|
143
|
+
].filter(Boolean).join(" "), g = /* @__PURE__ */ y("button", {
|
|
144
144
|
ref: f,
|
|
145
145
|
type: "button",
|
|
146
146
|
className: h,
|
|
147
147
|
...u,
|
|
148
148
|
children: [
|
|
149
|
-
n && /* @__PURE__ */
|
|
150
|
-
className: `${
|
|
149
|
+
n && /* @__PURE__ */ v("span", {
|
|
150
|
+
className: `${O.icon} ${m ? "" : O.leadingIcon}`.trim(),
|
|
151
151
|
children: n
|
|
152
152
|
}),
|
|
153
153
|
s,
|
|
154
|
-
a && !m && /* @__PURE__ */
|
|
155
|
-
className:
|
|
154
|
+
a && !m && /* @__PURE__ */ v("span", {
|
|
155
|
+
className: O.shortcut,
|
|
156
156
|
"aria-hidden": "true",
|
|
157
|
-
children:
|
|
158
|
-
className:
|
|
157
|
+
children: E(a).labels.map((e) => /* @__PURE__ */ v("kbd", {
|
|
158
|
+
className: O.kbd,
|
|
159
159
|
children: e
|
|
160
160
|
}, e))
|
|
161
161
|
}),
|
|
162
|
-
r && /* @__PURE__ */
|
|
163
|
-
className: `${
|
|
162
|
+
r && /* @__PURE__ */ v("span", {
|
|
163
|
+
className: `${O.icon} ${O.trailingIcon}`,
|
|
164
164
|
children: r
|
|
165
165
|
})
|
|
166
166
|
]
|
|
167
167
|
});
|
|
168
|
-
return m ? /* @__PURE__ */
|
|
168
|
+
return m ? /* @__PURE__ */ v(C, {
|
|
169
169
|
content: u["aria-label"],
|
|
170
170
|
children: g
|
|
171
171
|
}) : g;
|
|
172
172
|
}
|
|
173
|
-
var
|
|
173
|
+
var A = {
|
|
174
174
|
wrap: "_wrap_1423o_1",
|
|
175
175
|
fluid: "_fluid_1423o_9",
|
|
176
176
|
backing: "_backing_1423o_14",
|
|
@@ -182,23 +182,23 @@ var k = {
|
|
|
182
182
|
};
|
|
183
183
|
//#endregion
|
|
184
184
|
//#region src/components/Card.tsx
|
|
185
|
-
function
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
className: `${
|
|
188
|
-
children: [e && /* @__PURE__ */
|
|
185
|
+
function j({ stacked: e, completed: t, interactive: n, draggable: r, dragging: i, fluid: a, children: o, ...s }) {
|
|
186
|
+
return /* @__PURE__ */ y("div", {
|
|
187
|
+
className: `${A.wrap} ${a ? A.fluid : ""}`,
|
|
188
|
+
children: [e && /* @__PURE__ */ v("div", { className: `${A.backing} ${t ? A.completed : ""}` }), /* @__PURE__ */ v("div", {
|
|
189
189
|
className: [
|
|
190
|
-
|
|
191
|
-
t ?
|
|
192
|
-
n ?
|
|
193
|
-
r ?
|
|
194
|
-
i ?
|
|
190
|
+
A.card,
|
|
191
|
+
t ? A.completed : "",
|
|
192
|
+
n ? A.interactive : "",
|
|
193
|
+
r ? A.grabbable : "",
|
|
194
|
+
i ? A.dragging : ""
|
|
195
195
|
].filter(Boolean).join(" "),
|
|
196
196
|
...s,
|
|
197
197
|
children: o
|
|
198
198
|
})]
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var M = {
|
|
202
202
|
badge: "_badge_jm5u5_1",
|
|
203
203
|
neutral: "_neutral_jm5u5_12",
|
|
204
204
|
brand: "_brand_jm5u5_17",
|
|
@@ -213,25 +213,25 @@ var j = {
|
|
|
213
213
|
};
|
|
214
214
|
//#endregion
|
|
215
215
|
//#region src/components/Badge.tsx
|
|
216
|
-
function
|
|
216
|
+
function ee(...e) {
|
|
217
217
|
return e.filter(Boolean).join(" ");
|
|
218
218
|
}
|
|
219
219
|
function N({ variant: e = "neutral", size: t = "base", children: n, iconLeft: r, iconRight: i, dot: a, ...o }) {
|
|
220
|
-
return /* @__PURE__ */
|
|
221
|
-
className: M
|
|
220
|
+
return /* @__PURE__ */ y("span", {
|
|
221
|
+
className: ee(M.badge, M[e], M[t]),
|
|
222
222
|
...o,
|
|
223
223
|
children: [
|
|
224
|
-
a && /* @__PURE__ */
|
|
225
|
-
className:
|
|
224
|
+
a && /* @__PURE__ */ v("span", {
|
|
225
|
+
className: M.dot,
|
|
226
226
|
"aria-hidden": "true"
|
|
227
227
|
}),
|
|
228
|
-
r != null && /* @__PURE__ */
|
|
229
|
-
className:
|
|
228
|
+
r != null && /* @__PURE__ */ v("span", {
|
|
229
|
+
className: M.icon,
|
|
230
230
|
children: r
|
|
231
231
|
}),
|
|
232
232
|
n,
|
|
233
|
-
i != null && /* @__PURE__ */
|
|
234
|
-
className:
|
|
233
|
+
i != null && /* @__PURE__ */ v("span", {
|
|
234
|
+
className: M.icon,
|
|
235
235
|
children: i
|
|
236
236
|
})
|
|
237
237
|
]
|
|
@@ -253,7 +253,7 @@ function F(e, t, n = []) {
|
|
|
253
253
|
}
|
|
254
254
|
//#endregion
|
|
255
255
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
|
|
256
|
-
var
|
|
256
|
+
var te = (e) => {
|
|
257
257
|
let t = "", n = !1;
|
|
258
258
|
for (let r of e) {
|
|
259
259
|
if (r === "-" || r === "_" || r <= " ") {
|
|
@@ -263,10 +263,10 @@ var ee = (e) => {
|
|
|
263
263
|
t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1;
|
|
264
264
|
}
|
|
265
265
|
return t;
|
|
266
|
-
},
|
|
267
|
-
let t =
|
|
266
|
+
}, ne = (e) => {
|
|
267
|
+
let t = te(e);
|
|
268
268
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
269
|
-
},
|
|
269
|
+
}, I = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), L = {
|
|
270
270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
271
271
|
width: 24,
|
|
272
272
|
height: 24,
|
|
@@ -279,22 +279,22 @@ var ee = (e) => {
|
|
|
279
279
|
};
|
|
280
280
|
//#endregion
|
|
281
281
|
//#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
|
|
282
|
-
function
|
|
282
|
+
function R(e) {
|
|
283
283
|
return e != null;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ??
|
|
285
|
+
function z(e, t = {}) {
|
|
286
|
+
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? L.width, a = e.size ?? e.height ?? L.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? I(...c) : I("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? L["stroke-width"]) * Number(e.size ?? e.width ?? L.width) / Number(t.size ?? t.width ?? L.width) : t.strokeWidth ?? L["stroke-width"];
|
|
287
287
|
return [
|
|
288
288
|
"svg",
|
|
289
289
|
{
|
|
290
|
-
...Object.entries(
|
|
290
|
+
...Object.entries(L).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
|
|
291
291
|
..."color" in t && t.color && { [r("stroke")]: t.color },
|
|
292
|
-
..."size" in t &&
|
|
292
|
+
..."size" in t && R(t.size) && {
|
|
293
293
|
[r("width")]: t.size,
|
|
294
294
|
[r("height")]: t.size
|
|
295
295
|
},
|
|
296
|
-
..."width" in t &&
|
|
297
|
-
..."height" in t &&
|
|
296
|
+
..."width" in t && R(t.width) && { [r("width")]: t.width },
|
|
297
|
+
..."height" in t && R(t.height) && { [r("height")]: t.height },
|
|
298
298
|
[r("stroke-width")]: u,
|
|
299
299
|
...l && { [r("class")]: l },
|
|
300
300
|
[r("viewBox")]: `0 0 ${i} ${a}`,
|
|
@@ -316,8 +316,8 @@ function B(e, t = {}) {
|
|
|
316
316
|
}
|
|
317
317
|
//#endregion
|
|
318
318
|
//#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
|
|
319
|
-
function
|
|
320
|
-
return
|
|
319
|
+
function re(e, t = {}) {
|
|
320
|
+
return z(e, {
|
|
321
321
|
...t,
|
|
322
322
|
attributeNames: {
|
|
323
323
|
...t.attributeNames,
|
|
@@ -331,22 +331,22 @@ function te(e, t = {}) {
|
|
|
331
331
|
}
|
|
332
332
|
//#endregion
|
|
333
333
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
|
|
334
|
-
var
|
|
334
|
+
var ie = (e) => {
|
|
335
335
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
336
336
|
return !1;
|
|
337
|
-
},
|
|
337
|
+
}, ae = r({}), oe = () => c(ae), se = a(({ color: e, size: t, width: n, height: r, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
|
|
338
338
|
node: u,
|
|
339
339
|
aliases: [],
|
|
340
340
|
size: 24
|
|
341
341
|
}, ...f }, p) => {
|
|
342
|
-
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } =
|
|
342
|
+
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = oe() ?? {}, b = !!l || ie(f), [x, S, C = []] = re(d, {
|
|
343
343
|
color: e ?? v,
|
|
344
344
|
width: n ?? t ?? m,
|
|
345
345
|
height: r ?? t ?? m,
|
|
346
346
|
strokeWidth: a ?? h,
|
|
347
347
|
absoluteStrokeWidth: o ?? g,
|
|
348
348
|
nonScalingStroke: s ?? _,
|
|
349
|
-
className:
|
|
349
|
+
className: I(y, c),
|
|
350
350
|
hasA11yProp: b,
|
|
351
351
|
attributes: f
|
|
352
352
|
});
|
|
@@ -357,18 +357,18 @@ var ne = (e) => {
|
|
|
357
357
|
});
|
|
358
358
|
//#endregion
|
|
359
359
|
//#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
|
|
360
|
-
function
|
|
361
|
-
let r = typeof e == "string" ? F(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(
|
|
360
|
+
function B(e, t = [], n = []) {
|
|
361
|
+
let r = typeof e == "string" ? F(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(se, {
|
|
362
362
|
ref: n,
|
|
363
363
|
icon: r,
|
|
364
364
|
className: e,
|
|
365
365
|
...t
|
|
366
366
|
}));
|
|
367
|
-
return r.name && (o.displayName =
|
|
367
|
+
return r.name && (o.displayName = ne(r.name)), o;
|
|
368
368
|
}
|
|
369
369
|
//#endregion
|
|
370
370
|
//#region node_modules/lucide-react/dist/esm/icons/archive.mjs
|
|
371
|
-
var
|
|
371
|
+
var V = {
|
|
372
372
|
name: "archive",
|
|
373
373
|
size: 24,
|
|
374
374
|
node: [
|
|
@@ -390,8 +390,59 @@ var oe = {
|
|
|
390
390
|
}]
|
|
391
391
|
]
|
|
392
392
|
};
|
|
393
|
-
|
|
394
|
-
var
|
|
393
|
+
V.node;
|
|
394
|
+
var H = B(V), U = {
|
|
395
|
+
name: "calendar-days",
|
|
396
|
+
size: 24,
|
|
397
|
+
node: [
|
|
398
|
+
["path", {
|
|
399
|
+
d: "M8 2v3",
|
|
400
|
+
key: "1ioesn"
|
|
401
|
+
}],
|
|
402
|
+
["path", {
|
|
403
|
+
d: "M16 2v3",
|
|
404
|
+
key: "otl347"
|
|
405
|
+
}],
|
|
406
|
+
["rect", {
|
|
407
|
+
x: "3",
|
|
408
|
+
y: "3",
|
|
409
|
+
width: "18",
|
|
410
|
+
height: "18",
|
|
411
|
+
rx: "2",
|
|
412
|
+
key: "h1oib"
|
|
413
|
+
}],
|
|
414
|
+
["path", {
|
|
415
|
+
d: "M3 9h18",
|
|
416
|
+
key: "1pudct"
|
|
417
|
+
}],
|
|
418
|
+
["path", {
|
|
419
|
+
d: "M8 13h.01",
|
|
420
|
+
key: "1sbv64"
|
|
421
|
+
}],
|
|
422
|
+
["path", {
|
|
423
|
+
d: "M12 13h.01",
|
|
424
|
+
key: "y0uutt"
|
|
425
|
+
}],
|
|
426
|
+
["path", {
|
|
427
|
+
d: "M16 13h.01",
|
|
428
|
+
key: "wip0gl"
|
|
429
|
+
}],
|
|
430
|
+
["path", {
|
|
431
|
+
d: "M8 17h.01",
|
|
432
|
+
key: "p3bg7i"
|
|
433
|
+
}],
|
|
434
|
+
["path", {
|
|
435
|
+
d: "M12 17h.01",
|
|
436
|
+
key: "p32p05"
|
|
437
|
+
}],
|
|
438
|
+
["path", {
|
|
439
|
+
d: "M16 17h.01",
|
|
440
|
+
key: "ql8jdd"
|
|
441
|
+
}]
|
|
442
|
+
]
|
|
443
|
+
};
|
|
444
|
+
U.node;
|
|
445
|
+
var ce = B(U), le = {
|
|
395
446
|
name: "check",
|
|
396
447
|
size: 24,
|
|
397
448
|
node: [["path", {
|
|
@@ -399,8 +450,8 @@ var se = V(oe), ce = {
|
|
|
399
450
|
key: "1gmf2c"
|
|
400
451
|
}]]
|
|
401
452
|
};
|
|
402
|
-
|
|
403
|
-
var
|
|
453
|
+
le.node;
|
|
454
|
+
var W = B(le), ue = {
|
|
404
455
|
name: "chevron-down",
|
|
405
456
|
size: 24,
|
|
406
457
|
node: [["path", {
|
|
@@ -409,7 +460,7 @@ var le = V(ce), ue = {
|
|
|
409
460
|
}]]
|
|
410
461
|
};
|
|
411
462
|
ue.node;
|
|
412
|
-
var de =
|
|
463
|
+
var de = B(ue), fe = {
|
|
413
464
|
name: "chevron-left",
|
|
414
465
|
size: 24,
|
|
415
466
|
node: [["path", {
|
|
@@ -418,7 +469,7 @@ var de = V(ue), fe = {
|
|
|
418
469
|
}]]
|
|
419
470
|
};
|
|
420
471
|
fe.node;
|
|
421
|
-
var
|
|
472
|
+
var pe = B(fe), me = {
|
|
422
473
|
name: "chevron-right",
|
|
423
474
|
size: 24,
|
|
424
475
|
node: [["path", {
|
|
@@ -426,8 +477,8 @@ var H = V(fe), U = {
|
|
|
426
477
|
key: "mthhwq"
|
|
427
478
|
}]]
|
|
428
479
|
};
|
|
429
|
-
|
|
430
|
-
var
|
|
480
|
+
me.node;
|
|
481
|
+
var he = B(me), ge = {
|
|
431
482
|
name: "eye-off",
|
|
432
483
|
size: 24,
|
|
433
484
|
node: [
|
|
@@ -449,8 +500,8 @@ var pe = V(U), me = {
|
|
|
449
500
|
}]
|
|
450
501
|
]
|
|
451
502
|
};
|
|
452
|
-
|
|
453
|
-
var
|
|
503
|
+
ge.node;
|
|
504
|
+
var _e = B(ge), ve = {
|
|
454
505
|
name: "eye",
|
|
455
506
|
size: 24,
|
|
456
507
|
node: [["path", {
|
|
@@ -463,8 +514,8 @@ var he = V(me), ge = {
|
|
|
463
514
|
key: "1v7zrd"
|
|
464
515
|
}]]
|
|
465
516
|
};
|
|
466
|
-
|
|
467
|
-
var
|
|
517
|
+
ve.node;
|
|
518
|
+
var ye = B(ve), be = {
|
|
468
519
|
name: "lock",
|
|
469
520
|
size: 24,
|
|
470
521
|
node: [["rect", {
|
|
@@ -480,8 +531,8 @@ var _e = V(ge), ve = {
|
|
|
480
531
|
key: "fwvmzm"
|
|
481
532
|
}]]
|
|
482
533
|
};
|
|
483
|
-
|
|
484
|
-
var
|
|
534
|
+
be.node;
|
|
535
|
+
var xe = B(be), Se = {
|
|
485
536
|
name: "play",
|
|
486
537
|
size: 24,
|
|
487
538
|
node: [["path", {
|
|
@@ -489,8 +540,8 @@ var ye = V(ve), be = {
|
|
|
489
540
|
key: "10ikf1"
|
|
490
541
|
}]]
|
|
491
542
|
};
|
|
492
|
-
|
|
493
|
-
var
|
|
543
|
+
Se.node;
|
|
544
|
+
var Ce = B(Se), we = {
|
|
494
545
|
name: "search",
|
|
495
546
|
size: 24,
|
|
496
547
|
node: [["path", {
|
|
@@ -503,8 +554,8 @@ var xe = V(be), Se = {
|
|
|
503
554
|
key: "4ej97u"
|
|
504
555
|
}]]
|
|
505
556
|
};
|
|
506
|
-
|
|
507
|
-
var
|
|
557
|
+
we.node;
|
|
558
|
+
var Te = B(we), Ee = {
|
|
508
559
|
name: "user",
|
|
509
560
|
size: 24,
|
|
510
561
|
node: [["path", {
|
|
@@ -517,8 +568,8 @@ var Ce = V(Se), we = {
|
|
|
517
568
|
key: "17ys0d"
|
|
518
569
|
}]]
|
|
519
570
|
};
|
|
520
|
-
|
|
521
|
-
var
|
|
571
|
+
Ee.node;
|
|
572
|
+
var De = B(Ee), Oe = {
|
|
522
573
|
name: "x",
|
|
523
574
|
size: 24,
|
|
524
575
|
node: [["path", {
|
|
@@ -529,8 +580,8 @@ var Te = V(we), Ee = {
|
|
|
529
580
|
key: "d8bk6v"
|
|
530
581
|
}]]
|
|
531
582
|
};
|
|
532
|
-
|
|
533
|
-
var
|
|
583
|
+
Oe.node;
|
|
584
|
+
var ke = B(Oe), Ae = {
|
|
534
585
|
neutral: "_neutral_11vj2_1",
|
|
535
586
|
pill: "_pill_11vj2_2",
|
|
536
587
|
accent: "_accent_11vj2_3",
|
|
@@ -548,119 +599,119 @@ var De = V(Ee), W = {
|
|
|
548
599
|
main: "_main_11vj2_161",
|
|
549
600
|
remove: "_remove_11vj2_162",
|
|
550
601
|
removable: "_removable_11vj2_189"
|
|
551
|
-
},
|
|
602
|
+
}, je = {
|
|
552
603
|
chip: "_chip_ny74i_5",
|
|
553
604
|
disabled: "_disabled_ny74i_15",
|
|
554
605
|
selected: "_selected_ny74i_28"
|
|
555
606
|
};
|
|
556
607
|
//#endregion
|
|
557
608
|
//#region src/components/Tag.tsx
|
|
558
|
-
function
|
|
609
|
+
function Me(...e) {
|
|
559
610
|
return e.filter(Boolean).join(" ");
|
|
560
611
|
}
|
|
561
|
-
function
|
|
612
|
+
function Ne(e) {
|
|
562
613
|
if (e.variant === "count") {
|
|
563
614
|
let { variant: t, children: n, ...r } = e;
|
|
564
|
-
return /* @__PURE__ */
|
|
565
|
-
className:
|
|
615
|
+
return /* @__PURE__ */ v("span", {
|
|
616
|
+
className: Ae[t],
|
|
566
617
|
...r,
|
|
567
618
|
children: n
|
|
568
619
|
});
|
|
569
620
|
}
|
|
570
|
-
let { variant: t = "neutral", children: n, onClick: r, pressed: i, disabled: a, leading: o, onRemove: s, removeLabel: c, ...l } = e, u = !!r, d = !!s, f = t === "chip", p = u && i === !0, m =
|
|
571
|
-
className:
|
|
621
|
+
let { variant: t = "neutral", children: n, onClick: r, pressed: i, disabled: a, leading: o, onRemove: s, removeLabel: c, ...l } = e, u = !!r, d = !!s, f = t === "chip", p = u && i === !0, m = Me(Ae[t], f && je.chip, f && p && je.selected, f && a && je.disabled, (u || d) && Ae.interactive, p && Ae.pressed, a && Ae.disabled, (o != null || d) && Ae.slots), h = /* @__PURE__ */ y(_, { children: [o != null && /* @__PURE__ */ v("span", {
|
|
622
|
+
className: Ae.leading,
|
|
572
623
|
children: o
|
|
573
624
|
}), n] });
|
|
574
|
-
return d ? /* @__PURE__ */
|
|
575
|
-
className:
|
|
625
|
+
return d ? /* @__PURE__ */ y("span", {
|
|
626
|
+
className: Me(m, Ae.removable),
|
|
576
627
|
...l,
|
|
577
|
-
children: [u ? /* @__PURE__ */
|
|
628
|
+
children: [u ? /* @__PURE__ */ v("button", {
|
|
578
629
|
type: "button",
|
|
579
|
-
className:
|
|
630
|
+
className: Me(Ae.main, Ae.slots),
|
|
580
631
|
"aria-pressed": i,
|
|
581
632
|
disabled: a,
|
|
582
633
|
onClick: r,
|
|
583
634
|
children: h
|
|
584
|
-
}) : h, /* @__PURE__ */
|
|
635
|
+
}) : h, /* @__PURE__ */ v("button", {
|
|
585
636
|
type: "button",
|
|
586
|
-
className:
|
|
637
|
+
className: Ae.remove,
|
|
587
638
|
"aria-label": c,
|
|
588
639
|
disabled: a,
|
|
589
640
|
onClick: () => s(),
|
|
590
|
-
children: /* @__PURE__ */
|
|
641
|
+
children: /* @__PURE__ */ v(ke, {
|
|
591
642
|
size: 12,
|
|
592
643
|
"aria-hidden": "true"
|
|
593
644
|
})
|
|
594
645
|
})]
|
|
595
|
-
}) : u ? /* @__PURE__ */
|
|
646
|
+
}) : u ? /* @__PURE__ */ v("button", {
|
|
596
647
|
type: "button",
|
|
597
|
-
className:
|
|
648
|
+
className: Me(m, Ae.button),
|
|
598
649
|
"aria-pressed": i,
|
|
599
650
|
disabled: a,
|
|
600
651
|
onClick: r,
|
|
601
652
|
...l,
|
|
602
653
|
children: h
|
|
603
|
-
}) : /* @__PURE__ */
|
|
654
|
+
}) : /* @__PURE__ */ v("span", {
|
|
604
655
|
className: m,
|
|
605
656
|
...l,
|
|
606
657
|
children: h
|
|
607
658
|
});
|
|
608
659
|
}
|
|
609
|
-
var
|
|
660
|
+
var Pe = {
|
|
610
661
|
group: "_group_kw1z2_1",
|
|
611
662
|
sm: "_sm_kw1z2_9",
|
|
612
663
|
chip: "_chip_kw1z2_13 _chip_ny74i_5",
|
|
613
664
|
base: "_base_kw1z2_28",
|
|
614
665
|
selected: "_selected_kw1z2_44 _selected_ny74i_28"
|
|
615
|
-
},
|
|
666
|
+
}, Fe = {
|
|
616
667
|
group: "_group_1gqda_1",
|
|
617
668
|
groupLabel: "_groupLabel_1gqda_7"
|
|
618
|
-
},
|
|
669
|
+
}, Ie = { label: "_label_1hzxz_1" };
|
|
619
670
|
//#endregion
|
|
620
671
|
//#region src/components/FieldLabel.tsx
|
|
621
|
-
function
|
|
622
|
-
let r = `${
|
|
623
|
-
return t ? /* @__PURE__ */
|
|
672
|
+
function Le({ children: e, htmlFor: t, className: n }) {
|
|
673
|
+
let r = `${Ie.label} ${n ?? ""}`.trim();
|
|
674
|
+
return t ? /* @__PURE__ */ v("label", {
|
|
624
675
|
className: r,
|
|
625
676
|
htmlFor: t,
|
|
626
677
|
children: e
|
|
627
|
-
}) : /* @__PURE__ */
|
|
678
|
+
}) : /* @__PURE__ */ v("span", {
|
|
628
679
|
className: r,
|
|
629
680
|
children: e
|
|
630
681
|
});
|
|
631
682
|
}
|
|
632
683
|
//#endregion
|
|
633
684
|
//#region src/components/TagGroup.tsx
|
|
634
|
-
function
|
|
685
|
+
function Re({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
|
|
635
686
|
function s(e) {
|
|
636
687
|
n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
637
688
|
}
|
|
638
|
-
let c = /* @__PURE__ */
|
|
689
|
+
let c = /* @__PURE__ */ v("div", {
|
|
639
690
|
role: "group",
|
|
640
691
|
"aria-label": a ? void 0 : o["aria-label"],
|
|
641
|
-
className: `${
|
|
692
|
+
className: `${Pe.group} ${Pe[r]}`,
|
|
642
693
|
children: e.map((e) => {
|
|
643
694
|
let n = t.includes(e.value), r = i || e.disabled;
|
|
644
|
-
return /* @__PURE__ */
|
|
695
|
+
return /* @__PURE__ */ v("button", {
|
|
645
696
|
type: "button",
|
|
646
697
|
"aria-pressed": n,
|
|
647
698
|
disabled: r,
|
|
648
|
-
className: [
|
|
699
|
+
className: [Pe.chip, n && Pe.selected].filter(Boolean).join(" "),
|
|
649
700
|
onClick: () => !r && s(e.value),
|
|
650
701
|
children: e.label
|
|
651
702
|
}, e.value);
|
|
652
703
|
})
|
|
653
704
|
});
|
|
654
|
-
return a ? /* @__PURE__ */
|
|
655
|
-
className:
|
|
705
|
+
return a ? /* @__PURE__ */ y("div", {
|
|
706
|
+
className: Fe.group,
|
|
656
707
|
...o,
|
|
657
|
-
children: [/* @__PURE__ */
|
|
658
|
-
className:
|
|
708
|
+
children: [/* @__PURE__ */ v(Le, {
|
|
709
|
+
className: Fe.groupLabel,
|
|
659
710
|
children: a
|
|
660
711
|
}), c]
|
|
661
712
|
}) : c;
|
|
662
713
|
}
|
|
663
|
-
var
|
|
714
|
+
var ze = {
|
|
664
715
|
toolbar: "_toolbar_1naq9_1",
|
|
665
716
|
searchWrap: "_searchWrap_1naq9_14",
|
|
666
717
|
searchIcon: "_searchIcon_1naq9_33",
|
|
@@ -670,44 +721,44 @@ var Ie = {
|
|
|
670
721
|
};
|
|
671
722
|
//#endregion
|
|
672
723
|
//#region src/components/Toolbar.tsx
|
|
673
|
-
function
|
|
724
|
+
function Be({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
|
|
674
725
|
let o = p(null);
|
|
675
726
|
return l(() => {
|
|
676
727
|
function e(e) {
|
|
677
728
|
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === i.toLowerCase() && (e.preventDefault(), o.current?.focus());
|
|
678
729
|
}
|
|
679
730
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
680
|
-
}, [i]), /* @__PURE__ */
|
|
681
|
-
className:
|
|
682
|
-
children: [/* @__PURE__ */
|
|
683
|
-
className:
|
|
731
|
+
}, [i]), /* @__PURE__ */ y("div", {
|
|
732
|
+
className: ze.toolbar,
|
|
733
|
+
children: [/* @__PURE__ */ y("div", {
|
|
734
|
+
className: ze.searchWrap,
|
|
684
735
|
children: [
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
className:
|
|
687
|
-
children: /* @__PURE__ */
|
|
736
|
+
/* @__PURE__ */ v("span", {
|
|
737
|
+
className: ze.searchIcon,
|
|
738
|
+
children: /* @__PURE__ */ v(Te, {})
|
|
688
739
|
}),
|
|
689
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ v("input", {
|
|
690
741
|
ref: o,
|
|
691
742
|
type: "text",
|
|
692
|
-
className:
|
|
743
|
+
className: ze.search,
|
|
693
744
|
placeholder: n,
|
|
694
745
|
autoComplete: "off",
|
|
695
746
|
value: e,
|
|
696
747
|
onChange: (e) => t?.(e.target.value)
|
|
697
748
|
}),
|
|
698
|
-
r && /* @__PURE__ */
|
|
699
|
-
className:
|
|
749
|
+
r && /* @__PURE__ */ v("span", {
|
|
750
|
+
className: ze.searchShortcut,
|
|
700
751
|
"aria-hidden": "true",
|
|
701
752
|
children: r
|
|
702
753
|
})
|
|
703
754
|
]
|
|
704
|
-
}), a && /* @__PURE__ */
|
|
705
|
-
className:
|
|
755
|
+
}), a && /* @__PURE__ */ v("div", {
|
|
756
|
+
className: ze.controls,
|
|
706
757
|
children: a
|
|
707
758
|
})]
|
|
708
759
|
});
|
|
709
760
|
}
|
|
710
|
-
var
|
|
761
|
+
var Ve = {
|
|
711
762
|
anchor: "_anchor_1yabe_3",
|
|
712
763
|
sentinel: "_sentinel_1yabe_8",
|
|
713
764
|
header: "_header_1yabe_17",
|
|
@@ -715,8 +766,8 @@ var Re = {
|
|
|
715
766
|
card: "_card_1yabe_49",
|
|
716
767
|
left: "_left_1yabe_104",
|
|
717
768
|
right: "_right_1yabe_105"
|
|
718
|
-
},
|
|
719
|
-
function
|
|
769
|
+
}, He = 4;
|
|
770
|
+
function Ue(e) {
|
|
720
771
|
let t = e.parentElement;
|
|
721
772
|
for (; t && t !== document.body && t !== document.documentElement;) {
|
|
722
773
|
let { overflowY: e } = getComputedStyle(t);
|
|
@@ -725,8 +776,8 @@ function Be(e) {
|
|
|
725
776
|
}
|
|
726
777
|
return null;
|
|
727
778
|
}
|
|
728
|
-
function
|
|
729
|
-
let u = p(null), [d, f] = m("top"), [h,
|
|
779
|
+
function We({ left: e, right: t, children: n, scrollRoot: r, threshold: i = He, floatOnMobile: a = !1, onStateChange: o, className: s, "data-testid": c = "header" }) {
|
|
780
|
+
let u = p(null), [d, f] = m("top"), [h, g] = m(!1), b = p(o);
|
|
730
781
|
l(() => {
|
|
731
782
|
b.current = o;
|
|
732
783
|
});
|
|
@@ -737,10 +788,10 @@ function Ve({ left: e, right: t, children: n, scrollRoot: r, threshold: i = ze,
|
|
|
737
788
|
let e = u.current;
|
|
738
789
|
if (!e) return;
|
|
739
790
|
let t, n, i = !0, a = 0, o = () => {
|
|
740
|
-
let o = r === void 0 ?
|
|
791
|
+
let o = r === void 0 ? Ue(e) : r;
|
|
741
792
|
t && o === n || (t?.disconnect(), n = o, t = new IntersectionObserver((e) => {
|
|
742
793
|
let t = e[e.length - 1];
|
|
743
|
-
f(t.isIntersecting ? "top" : "floating"), i && (i = !1, a = requestAnimationFrame(() =>
|
|
794
|
+
f(t.isIntersecting ? "top" : "floating"), i && (i = !1, a = requestAnimationFrame(() => g(!0)));
|
|
744
795
|
}, { root: o }), t.observe(e));
|
|
745
796
|
};
|
|
746
797
|
return o(), window.addEventListener("resize", o), () => {
|
|
@@ -748,38 +799,38 @@ function Ve({ left: e, right: t, children: n, scrollRoot: r, threshold: i = ze,
|
|
|
748
799
|
};
|
|
749
800
|
}, [r, i]);
|
|
750
801
|
let S = [
|
|
751
|
-
|
|
752
|
-
h ?
|
|
802
|
+
Ve.card,
|
|
803
|
+
h ? Ve.animated : "",
|
|
753
804
|
s
|
|
754
805
|
].filter(Boolean).join(" ");
|
|
755
|
-
return /* @__PURE__ */
|
|
756
|
-
className:
|
|
806
|
+
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
807
|
+
className: Ve.anchor,
|
|
757
808
|
"aria-hidden": "true",
|
|
758
|
-
children: /* @__PURE__ */
|
|
809
|
+
children: /* @__PURE__ */ v("div", {
|
|
759
810
|
ref: u,
|
|
760
|
-
className:
|
|
811
|
+
className: Ve.sentinel,
|
|
761
812
|
style: { top: i }
|
|
762
813
|
})
|
|
763
|
-
}), /* @__PURE__ */
|
|
764
|
-
className: [
|
|
814
|
+
}), /* @__PURE__ */ v("header", {
|
|
815
|
+
className: [Ve.header, h ? Ve.animated : ""].filter(Boolean).join(" "),
|
|
765
816
|
"data-state": d,
|
|
766
817
|
"data-float-mobile": a ? "" : void 0,
|
|
767
818
|
"data-testid": c,
|
|
768
|
-
children: /* @__PURE__ */
|
|
819
|
+
children: /* @__PURE__ */ v("div", {
|
|
769
820
|
className: S,
|
|
770
821
|
"data-state": d,
|
|
771
822
|
"data-float-mobile": a ? "" : void 0,
|
|
772
|
-
children: n ?? /* @__PURE__ */
|
|
773
|
-
className:
|
|
823
|
+
children: n ?? /* @__PURE__ */ y(_, { children: [e && /* @__PURE__ */ v("div", {
|
|
824
|
+
className: Ve.left,
|
|
774
825
|
children: e
|
|
775
|
-
}), t && /* @__PURE__ */
|
|
776
|
-
className:
|
|
826
|
+
}), t && /* @__PURE__ */ v("div", {
|
|
827
|
+
className: Ve.right,
|
|
777
828
|
children: t
|
|
778
829
|
})] })
|
|
779
830
|
})
|
|
780
831
|
})] });
|
|
781
832
|
}
|
|
782
|
-
var
|
|
833
|
+
var Ge = {
|
|
783
834
|
checkbox: "_checkbox_1ve07_1",
|
|
784
835
|
control: "_control_1ve07_8",
|
|
785
836
|
labelText: "_labelText_1ve07_17",
|
|
@@ -790,62 +841,62 @@ var He = {
|
|
|
790
841
|
};
|
|
791
842
|
//#endregion
|
|
792
843
|
//#region src/components/Checkbox.tsx
|
|
793
|
-
function
|
|
794
|
-
return /* @__PURE__ */
|
|
795
|
-
className: `${
|
|
796
|
-
children: [/* @__PURE__ */
|
|
797
|
-
className:
|
|
798
|
-
children: [/* @__PURE__ */
|
|
844
|
+
function Ke({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
|
|
845
|
+
return /* @__PURE__ */ y("label", {
|
|
846
|
+
className: `${Ge.checkbox} ${s ?? ""}`,
|
|
847
|
+
children: [/* @__PURE__ */ y("span", {
|
|
848
|
+
className: Ge.control,
|
|
849
|
+
children: [/* @__PURE__ */ v("input", {
|
|
799
850
|
ref: c,
|
|
800
851
|
type: "checkbox",
|
|
801
|
-
className:
|
|
852
|
+
className: Ge.input,
|
|
802
853
|
checked: e,
|
|
803
854
|
onChange: t,
|
|
804
855
|
onBlur: n,
|
|
805
856
|
name: r,
|
|
806
857
|
"aria-label": a,
|
|
807
858
|
disabled: o
|
|
808
|
-
}), /* @__PURE__ */
|
|
809
|
-
className:
|
|
810
|
-
children: /* @__PURE__ */
|
|
811
|
-
className:
|
|
859
|
+
}), /* @__PURE__ */ v("span", {
|
|
860
|
+
className: Ge.box,
|
|
861
|
+
children: /* @__PURE__ */ v("svg", {
|
|
862
|
+
className: Ge.icon,
|
|
812
863
|
viewBox: "0 0 17 18",
|
|
813
864
|
"aria-hidden": "true",
|
|
814
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
|
|
815
866
|
})
|
|
816
867
|
})]
|
|
817
|
-
}), i && /* @__PURE__ */
|
|
818
|
-
className:
|
|
868
|
+
}), i && /* @__PURE__ */ v("span", {
|
|
869
|
+
className: Ge.labelText,
|
|
819
870
|
children: i
|
|
820
871
|
})]
|
|
821
872
|
});
|
|
822
873
|
}
|
|
823
|
-
function
|
|
824
|
-
return /* @__PURE__ */
|
|
825
|
-
className: `${
|
|
874
|
+
function qe({ checked: e, disabled: t }) {
|
|
875
|
+
return /* @__PURE__ */ v("span", {
|
|
876
|
+
className: `${Ge.box} ${Ge.indicator}`,
|
|
826
877
|
"data-checked": e,
|
|
827
878
|
"data-disabled": t || void 0,
|
|
828
879
|
"aria-hidden": "true",
|
|
829
|
-
children: /* @__PURE__ */
|
|
830
|
-
className:
|
|
880
|
+
children: /* @__PURE__ */ v("svg", {
|
|
881
|
+
className: Ge.icon,
|
|
831
882
|
viewBox: "0 0 17 18",
|
|
832
883
|
"aria-hidden": "true",
|
|
833
|
-
children: /* @__PURE__ */
|
|
884
|
+
children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
|
|
834
885
|
})
|
|
835
886
|
});
|
|
836
887
|
}
|
|
837
|
-
function
|
|
888
|
+
function Je({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
|
|
838
889
|
function o(e) {
|
|
839
890
|
r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
840
891
|
}
|
|
841
|
-
return /* @__PURE__ */
|
|
892
|
+
return /* @__PURE__ */ y("div", {
|
|
842
893
|
role: "group",
|
|
843
894
|
"aria-label": e ? void 0 : a["aria-label"],
|
|
844
|
-
className:
|
|
845
|
-
children: [e && /* @__PURE__ */
|
|
846
|
-
className:
|
|
895
|
+
className: Fe.group,
|
|
896
|
+
children: [e && /* @__PURE__ */ v(Le, {
|
|
897
|
+
className: Fe.groupLabel,
|
|
847
898
|
children: e
|
|
848
|
-
}), t.map((e) => /* @__PURE__ */
|
|
899
|
+
}), t.map((e) => /* @__PURE__ */ v(Ke, {
|
|
849
900
|
checked: n.includes(e.value),
|
|
850
901
|
onChange: () => o(e.value),
|
|
851
902
|
label: e.label,
|
|
@@ -853,7 +904,7 @@ function Ge({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
|
|
|
853
904
|
}, e.value))]
|
|
854
905
|
});
|
|
855
906
|
}
|
|
856
|
-
var
|
|
907
|
+
var Ye = {
|
|
857
908
|
radio: "_radio_a790l_1",
|
|
858
909
|
control: "_control_a790l_8",
|
|
859
910
|
labelText: "_labelText_a790l_17",
|
|
@@ -863,15 +914,15 @@ var Ke = {
|
|
|
863
914
|
};
|
|
864
915
|
//#endregion
|
|
865
916
|
//#region src/components/RadioButton.tsx
|
|
866
|
-
function
|
|
867
|
-
return /* @__PURE__ */
|
|
868
|
-
className: `${
|
|
869
|
-
children: [/* @__PURE__ */
|
|
870
|
-
className:
|
|
871
|
-
children: [/* @__PURE__ */
|
|
917
|
+
function Xe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
|
|
918
|
+
return /* @__PURE__ */ y("label", {
|
|
919
|
+
className: `${Ye.radio} ${c ?? ""}`,
|
|
920
|
+
children: [/* @__PURE__ */ y("span", {
|
|
921
|
+
className: Ye.control,
|
|
922
|
+
children: [/* @__PURE__ */ v("input", {
|
|
872
923
|
ref: l,
|
|
873
924
|
type: "radio",
|
|
874
|
-
className:
|
|
925
|
+
className: Ye.input,
|
|
875
926
|
checked: e,
|
|
876
927
|
onChange: t,
|
|
877
928
|
onBlur: n,
|
|
@@ -879,25 +930,25 @@ function qe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, a
|
|
|
879
930
|
value: i,
|
|
880
931
|
"aria-label": o,
|
|
881
932
|
disabled: s
|
|
882
|
-
}), /* @__PURE__ */
|
|
883
|
-
className:
|
|
884
|
-
children: /* @__PURE__ */
|
|
933
|
+
}), /* @__PURE__ */ v("span", {
|
|
934
|
+
className: Ye.circle,
|
|
935
|
+
children: /* @__PURE__ */ v("span", { className: Ye.dot })
|
|
885
936
|
})]
|
|
886
|
-
}), a && /* @__PURE__ */
|
|
887
|
-
className:
|
|
937
|
+
}), a && /* @__PURE__ */ v("span", {
|
|
938
|
+
className: Ye.labelText,
|
|
888
939
|
children: a
|
|
889
940
|
})]
|
|
890
941
|
});
|
|
891
942
|
}
|
|
892
|
-
function
|
|
893
|
-
return /* @__PURE__ */
|
|
943
|
+
function Ze({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
|
|
944
|
+
return /* @__PURE__ */ y("div", {
|
|
894
945
|
role: "radiogroup",
|
|
895
946
|
"aria-label": e ? void 0 : o["aria-label"],
|
|
896
|
-
className:
|
|
897
|
-
children: [e && /* @__PURE__ */
|
|
898
|
-
className:
|
|
947
|
+
className: Fe.group,
|
|
948
|
+
children: [e && /* @__PURE__ */ v(Le, {
|
|
949
|
+
className: Fe.groupLabel,
|
|
899
950
|
children: e
|
|
900
|
-
}), n.map((e) => /* @__PURE__ */
|
|
951
|
+
}), n.map((e) => /* @__PURE__ */ v(Xe, {
|
|
901
952
|
name: t,
|
|
902
953
|
value: e.value,
|
|
903
954
|
checked: r === e.value,
|
|
@@ -907,7 +958,7 @@ function Je({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, .
|
|
|
907
958
|
}, e.value))]
|
|
908
959
|
});
|
|
909
960
|
}
|
|
910
|
-
var
|
|
961
|
+
var Qe = {
|
|
911
962
|
switch: "_switch_vrgp6_1",
|
|
912
963
|
input: "_input_vrgp6_7",
|
|
913
964
|
control: "_control_vrgp6_10",
|
|
@@ -919,25 +970,25 @@ var Ye = {
|
|
|
919
970
|
};
|
|
920
971
|
//#endregion
|
|
921
972
|
//#region src/components/Switch.tsx
|
|
922
|
-
function
|
|
923
|
-
return /* @__PURE__ */
|
|
924
|
-
className: `${
|
|
925
|
-
children: [/* @__PURE__ */
|
|
926
|
-
className: `${
|
|
927
|
-
children: [/* @__PURE__ */
|
|
973
|
+
function $e({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
|
|
974
|
+
return /* @__PURE__ */ y("label", {
|
|
975
|
+
className: `${Qe.switch} ${o ?? ""}`,
|
|
976
|
+
children: [/* @__PURE__ */ y("span", {
|
|
977
|
+
className: `${Qe.control} ${Qe[n]}`,
|
|
978
|
+
children: [/* @__PURE__ */ v("input", {
|
|
928
979
|
type: "checkbox",
|
|
929
980
|
role: "switch",
|
|
930
|
-
className:
|
|
981
|
+
className: Qe.input,
|
|
931
982
|
checked: e,
|
|
932
983
|
onChange: t,
|
|
933
984
|
"aria-label": i,
|
|
934
985
|
disabled: a
|
|
935
|
-
}), /* @__PURE__ */
|
|
936
|
-
className:
|
|
937
|
-
children: /* @__PURE__ */
|
|
986
|
+
}), /* @__PURE__ */ v("span", {
|
|
987
|
+
className: Qe.track,
|
|
988
|
+
children: /* @__PURE__ */ v("span", { className: Qe.thumb })
|
|
938
989
|
})]
|
|
939
|
-
}), r && /* @__PURE__ */
|
|
940
|
-
className:
|
|
990
|
+
}), r && /* @__PURE__ */ v("span", {
|
|
991
|
+
className: Qe.labelText,
|
|
941
992
|
children: r
|
|
942
993
|
})]
|
|
943
994
|
});
|
|
@@ -962,23 +1013,23 @@ var G = {
|
|
|
962
1013
|
};
|
|
963
1014
|
//#endregion
|
|
964
1015
|
//#region src/components/TextField.tsx
|
|
965
|
-
function
|
|
1016
|
+
function et({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
|
|
966
1017
|
let f = u(), m = s ?? f, h = p(null);
|
|
967
|
-
return
|
|
1018
|
+
return D(o, () => h.current?.focus()), /* @__PURE__ */ y("div", {
|
|
968
1019
|
className: [G.field, c].filter(Boolean).join(" "),
|
|
969
1020
|
children: [
|
|
970
|
-
e && /* @__PURE__ */
|
|
1021
|
+
e && /* @__PURE__ */ v(Le, {
|
|
971
1022
|
htmlFor: m,
|
|
972
1023
|
children: e
|
|
973
1024
|
}),
|
|
974
|
-
/* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ y("div", {
|
|
975
1026
|
className: `${G.inputWrap} ${G[i]} ${G[r]} ${n ? G.errorWrap : ""}`,
|
|
976
1027
|
children: [
|
|
977
|
-
a && /* @__PURE__ */
|
|
1028
|
+
a && /* @__PURE__ */ v("span", {
|
|
978
1029
|
className: G.icon,
|
|
979
1030
|
children: a
|
|
980
1031
|
}),
|
|
981
|
-
/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ v("input", {
|
|
982
1033
|
ref: (e) => {
|
|
983
1034
|
h.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
|
|
984
1035
|
},
|
|
@@ -986,20 +1037,20 @@ function Ze({ label: e, helperText: t, error: n, size: r = "base", variant: i =
|
|
|
986
1037
|
className: G.input,
|
|
987
1038
|
...d
|
|
988
1039
|
}),
|
|
989
|
-
o && /* @__PURE__ */
|
|
1040
|
+
o && /* @__PURE__ */ v("span", {
|
|
990
1041
|
className: G.shortcut,
|
|
991
1042
|
"aria-hidden": "true",
|
|
992
|
-
children:
|
|
1043
|
+
children: E(o).labels.map((e) => /* @__PURE__ */ v("kbd", {
|
|
993
1044
|
className: G.kbd,
|
|
994
1045
|
children: e
|
|
995
1046
|
}, e))
|
|
996
1047
|
})
|
|
997
1048
|
]
|
|
998
1049
|
}),
|
|
999
|
-
n ? /* @__PURE__ */
|
|
1050
|
+
n ? /* @__PURE__ */ v("span", {
|
|
1000
1051
|
className: G.errorText,
|
|
1001
1052
|
children: n
|
|
1002
|
-
}) : t ? /* @__PURE__ */
|
|
1053
|
+
}) : t ? /* @__PURE__ */ v("span", {
|
|
1003
1054
|
className: G.helperText,
|
|
1004
1055
|
children: t
|
|
1005
1056
|
}) : null
|
|
@@ -1026,11 +1077,11 @@ var K = {
|
|
|
1026
1077
|
};
|
|
1027
1078
|
//#endregion
|
|
1028
1079
|
//#region src/components/TextArea.tsx
|
|
1029
|
-
function
|
|
1080
|
+
function tt(e, t) {
|
|
1030
1081
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
1031
1082
|
}
|
|
1032
|
-
function
|
|
1033
|
-
let O = u(), k = l ?? O, A = p(null), j =
|
|
1083
|
+
function nt({ label: e, helperText: t, error: n, size: r = "base", resize: i = "vertical", autoResize: a = !1, maxRows: o = 8, showCount: c = !1, id: l, className: f, ref: h, rows: g = 3, value: _, defaultValue: b, maxLength: x, disabled: S, readOnly: C, onChange: w, onInput: T, "aria-describedby": E, ...D }) {
|
|
1084
|
+
let O = u(), k = l ?? O, A = p(null), j = _ !== void 0, [M, ee] = m(() => String(b ?? "").length), N = j ? String(_).length : M, P = s(() => {
|
|
1034
1085
|
let e = A.current;
|
|
1035
1086
|
if (!e || !a) return;
|
|
1036
1087
|
let t = getComputedStyle(e), n = parseFloat(t.fontSize) || 14, r = parseFloat(t.lineHeight) || n * 1.4, i = (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0), s = r * o + i;
|
|
@@ -1039,80 +1090,80 @@ function $e({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1039
1090
|
e.style.height = `${c}px`, e.style.overflowY = e.scrollHeight > s ? "auto" : "hidden";
|
|
1040
1091
|
}, [a, o]);
|
|
1041
1092
|
d(() => {
|
|
1042
|
-
|
|
1093
|
+
P();
|
|
1043
1094
|
}, [
|
|
1044
|
-
|
|
1045
|
-
|
|
1095
|
+
P,
|
|
1096
|
+
_,
|
|
1046
1097
|
g,
|
|
1047
1098
|
r
|
|
1048
1099
|
]), d(() => {
|
|
1049
1100
|
let e = A.current;
|
|
1050
1101
|
if (!a || !e || typeof ResizeObserver > "u") return;
|
|
1051
1102
|
let t = e.clientWidth, n = new ResizeObserver(() => {
|
|
1052
|
-
e.clientWidth !== t && (t = e.clientWidth,
|
|
1103
|
+
e.clientWidth !== t && (t = e.clientWidth, P());
|
|
1053
1104
|
});
|
|
1054
1105
|
return n.observe(e), () => n.disconnect();
|
|
1055
|
-
}, [a,
|
|
1106
|
+
}, [a, P]), d(() => {
|
|
1056
1107
|
let e = A.current;
|
|
1057
1108
|
!a && e && (e.style.height = "", e.style.overflowY = "");
|
|
1058
1109
|
}, [a]);
|
|
1059
|
-
let
|
|
1060
|
-
j ||
|
|
1061
|
-
},
|
|
1062
|
-
j || (
|
|
1063
|
-
},
|
|
1110
|
+
let F = (e) => {
|
|
1111
|
+
j || ee(e.target.value.length), w?.(e);
|
|
1112
|
+
}, te = (e) => {
|
|
1113
|
+
j || (ee(e.currentTarget.value.length), P()), T?.(e);
|
|
1114
|
+
}, ne = `${k}-helper`, I = `${k}-error`, L = `${k}-count`, R = [
|
|
1064
1115
|
E,
|
|
1065
|
-
n ?
|
|
1066
|
-
c ?
|
|
1067
|
-
].filter(Boolean).join(" ") || void 0,
|
|
1116
|
+
n ? I : t ? ne : null,
|
|
1117
|
+
c ? L : null
|
|
1118
|
+
].filter(Boolean).join(" ") || void 0, z = x ? N / x : 0, re = z >= 1 ? K.countLimit : z >= .9 ? K.countNear : "", ie = [
|
|
1068
1119
|
K.wrap,
|
|
1069
1120
|
K[r],
|
|
1070
1121
|
n ? K.errorWrap : "",
|
|
1071
1122
|
S ? K.disabled : "",
|
|
1072
1123
|
C ? K.readOnly : ""
|
|
1073
|
-
].filter(Boolean).join(" "),
|
|
1074
|
-
return /* @__PURE__ */
|
|
1124
|
+
].filter(Boolean).join(" "), ae = a ? "none" : i;
|
|
1125
|
+
return /* @__PURE__ */ y("div", {
|
|
1075
1126
|
className: [K.field, f].filter(Boolean).join(" "),
|
|
1076
1127
|
children: [
|
|
1077
|
-
e && /* @__PURE__ */
|
|
1128
|
+
e && /* @__PURE__ */ v(Le, {
|
|
1078
1129
|
htmlFor: k,
|
|
1079
1130
|
children: e
|
|
1080
1131
|
}),
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
className:
|
|
1083
|
-
children: /* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ v("div", {
|
|
1133
|
+
className: ie,
|
|
1134
|
+
children: /* @__PURE__ */ v("textarea", {
|
|
1084
1135
|
...D,
|
|
1085
1136
|
ref: (e) => {
|
|
1086
|
-
A.current = e,
|
|
1137
|
+
A.current = e, tt(h, e);
|
|
1087
1138
|
},
|
|
1088
1139
|
id: k,
|
|
1089
|
-
className: `${K.textarea} ${K[`resize-${
|
|
1140
|
+
className: `${K.textarea} ${K[`resize-${ae}`]}`,
|
|
1090
1141
|
rows: g,
|
|
1091
|
-
value:
|
|
1142
|
+
value: _,
|
|
1092
1143
|
defaultValue: b,
|
|
1093
1144
|
maxLength: x,
|
|
1094
1145
|
disabled: S,
|
|
1095
1146
|
readOnly: C,
|
|
1096
1147
|
"aria-invalid": n ? !0 : D["aria-invalid"],
|
|
1097
|
-
"aria-describedby":
|
|
1098
|
-
onChange:
|
|
1099
|
-
onInput:
|
|
1148
|
+
"aria-describedby": R,
|
|
1149
|
+
onChange: F,
|
|
1150
|
+
onInput: te
|
|
1100
1151
|
})
|
|
1101
1152
|
}),
|
|
1102
|
-
(n || t || c) && /* @__PURE__ */
|
|
1153
|
+
(n || t || c) && /* @__PURE__ */ y("div", {
|
|
1103
1154
|
className: K.footer,
|
|
1104
|
-
children: [n ? /* @__PURE__ */
|
|
1105
|
-
id:
|
|
1155
|
+
children: [n ? /* @__PURE__ */ v("span", {
|
|
1156
|
+
id: I,
|
|
1106
1157
|
className: K.errorText,
|
|
1107
1158
|
children: n
|
|
1108
|
-
}) : t ? /* @__PURE__ */
|
|
1109
|
-
id:
|
|
1159
|
+
}) : t ? /* @__PURE__ */ v("span", {
|
|
1160
|
+
id: ne,
|
|
1110
1161
|
className: K.helperText,
|
|
1111
1162
|
children: t
|
|
1112
|
-
}) : null, c && /* @__PURE__ */
|
|
1113
|
-
id:
|
|
1114
|
-
className: `${K.count} ${
|
|
1115
|
-
children: x ? `${
|
|
1163
|
+
}) : null, c && /* @__PURE__ */ v("span", {
|
|
1164
|
+
id: L,
|
|
1165
|
+
className: `${K.count} ${re}`,
|
|
1166
|
+
children: x ? `${N} / ${x}` : N
|
|
1116
1167
|
})]
|
|
1117
1168
|
})
|
|
1118
1169
|
]
|
|
@@ -1120,18 +1171,18 @@ function $e({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1120
1171
|
}
|
|
1121
1172
|
//#endregion
|
|
1122
1173
|
//#region src/components/PasswordField.tsx
|
|
1123
|
-
function
|
|
1124
|
-
let p = u(), h = s ?? p, [g,
|
|
1125
|
-
return /* @__PURE__ */
|
|
1174
|
+
function rt({ label: e, helperText: t, error: n, size: r = "base", showLabel: i = "Show password", hideLabel: a = "Hide password", defaultVisible: o = !1, id: s, className: c, ref: l, disabled: d, ...f }) {
|
|
1175
|
+
let p = u(), h = s ?? p, [g, _] = m(o);
|
|
1176
|
+
return /* @__PURE__ */ y("div", {
|
|
1126
1177
|
className: [G.field, c].filter(Boolean).join(" "),
|
|
1127
1178
|
children: [
|
|
1128
|
-
e && /* @__PURE__ */
|
|
1179
|
+
e && /* @__PURE__ */ v(Le, {
|
|
1129
1180
|
htmlFor: h,
|
|
1130
1181
|
children: e
|
|
1131
1182
|
}),
|
|
1132
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ y("div", {
|
|
1133
1184
|
className: `${G.inputWrap} ${G.default} ${G[r]} ${n ? G.errorWrap : ""}`,
|
|
1134
|
-
children: [/* @__PURE__ */
|
|
1185
|
+
children: [/* @__PURE__ */ v("input", {
|
|
1135
1186
|
ref: l,
|
|
1136
1187
|
id: h,
|
|
1137
1188
|
className: G.input,
|
|
@@ -1139,21 +1190,21 @@ function et({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
|
|
|
1139
1190
|
autoComplete: "off",
|
|
1140
1191
|
disabled: d,
|
|
1141
1192
|
...f
|
|
1142
|
-
}), /* @__PURE__ */
|
|
1193
|
+
}), /* @__PURE__ */ v("button", {
|
|
1143
1194
|
type: "button",
|
|
1144
1195
|
className: G.trailing,
|
|
1145
1196
|
"aria-label": g ? a : i,
|
|
1146
1197
|
"aria-pressed": g,
|
|
1147
1198
|
"aria-controls": h,
|
|
1148
1199
|
disabled: d,
|
|
1149
|
-
onClick: () =>
|
|
1150
|
-
children:
|
|
1200
|
+
onClick: () => _((e) => !e),
|
|
1201
|
+
children: v(g ? _e : ye, {})
|
|
1151
1202
|
})]
|
|
1152
1203
|
}),
|
|
1153
|
-
n ? /* @__PURE__ */
|
|
1204
|
+
n ? /* @__PURE__ */ v("span", {
|
|
1154
1205
|
className: G.errorText,
|
|
1155
1206
|
children: n
|
|
1156
|
-
}) : t ? /* @__PURE__ */
|
|
1207
|
+
}) : t ? /* @__PURE__ */ v("span", {
|
|
1157
1208
|
className: G.helperText,
|
|
1158
1209
|
children: t
|
|
1159
1210
|
}) : null
|
|
@@ -1162,18 +1213,18 @@ function et({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
|
|
|
1162
1213
|
}
|
|
1163
1214
|
//#endregion
|
|
1164
1215
|
//#region src/components/DateField.tsx
|
|
1165
|
-
function
|
|
1216
|
+
function it({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
|
|
1166
1217
|
let f = u(), p = a ?? f;
|
|
1167
|
-
return /* @__PURE__ */
|
|
1218
|
+
return /* @__PURE__ */ y("div", {
|
|
1168
1219
|
className: [G.field, o].filter(Boolean).join(" "),
|
|
1169
1220
|
children: [
|
|
1170
|
-
e && /* @__PURE__ */
|
|
1221
|
+
e && /* @__PURE__ */ v(Le, {
|
|
1171
1222
|
htmlFor: p,
|
|
1172
1223
|
children: e
|
|
1173
1224
|
}),
|
|
1174
|
-
/* @__PURE__ */
|
|
1225
|
+
/* @__PURE__ */ y("div", {
|
|
1175
1226
|
className: `${G.inputWrap} ${G.default} ${G[r]} ${n ? G.errorWrap : ""}`,
|
|
1176
|
-
children: [/* @__PURE__ */
|
|
1227
|
+
children: [/* @__PURE__ */ v("input", {
|
|
1177
1228
|
...d,
|
|
1178
1229
|
ref: s,
|
|
1179
1230
|
id: p,
|
|
@@ -1183,16 +1234,16 @@ function tt({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
|
|
|
1183
1234
|
disabled: l,
|
|
1184
1235
|
onClick: c,
|
|
1185
1236
|
"aria-label": e ? void 0 : i
|
|
1186
|
-
}), /* @__PURE__ */
|
|
1237
|
+
}), /* @__PURE__ */ v("span", {
|
|
1187
1238
|
className: `${G.pickerChevron} ${r === "sm" ? G.pickerChevronSm : ""}`,
|
|
1188
1239
|
"aria-hidden": !0,
|
|
1189
|
-
children: /* @__PURE__ */
|
|
1240
|
+
children: /* @__PURE__ */ v(de, {})
|
|
1190
1241
|
})]
|
|
1191
1242
|
}),
|
|
1192
|
-
n ? /* @__PURE__ */
|
|
1243
|
+
n ? /* @__PURE__ */ v("span", {
|
|
1193
1244
|
className: G.errorText,
|
|
1194
1245
|
children: n
|
|
1195
|
-
}) : t ? /* @__PURE__ */
|
|
1246
|
+
}) : t ? /* @__PURE__ */ v("span", {
|
|
1196
1247
|
className: G.helperText,
|
|
1197
1248
|
children: t
|
|
1198
1249
|
}) : null
|
|
@@ -1201,44 +1252,44 @@ function tt({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
|
|
|
1201
1252
|
}
|
|
1202
1253
|
//#endregion
|
|
1203
1254
|
//#region src/utils/date.ts
|
|
1204
|
-
function
|
|
1255
|
+
function at(e) {
|
|
1205
1256
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
1206
1257
|
}
|
|
1207
|
-
function
|
|
1258
|
+
function ot(e, t) {
|
|
1208
1259
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
|
|
1209
1260
|
}
|
|
1210
|
-
function
|
|
1261
|
+
function st(e, t) {
|
|
1211
1262
|
return new Date(e, t + 1, 0).getDate();
|
|
1212
1263
|
}
|
|
1213
|
-
function
|
|
1214
|
-
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(),
|
|
1264
|
+
function ct(e, t) {
|
|
1265
|
+
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), st(n.getFullYear(), n.getMonth()));
|
|
1215
1266
|
return new Date(n.getFullYear(), n.getMonth(), r);
|
|
1216
1267
|
}
|
|
1217
|
-
function
|
|
1268
|
+
function lt(e, t) {
|
|
1218
1269
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
1219
1270
|
}
|
|
1220
|
-
function
|
|
1271
|
+
function ut(e, t) {
|
|
1221
1272
|
return e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate();
|
|
1222
1273
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return !!(t &&
|
|
1274
|
+
function dt(e, t, n) {
|
|
1275
|
+
return !!(t && ut(e, t) < 0 || n && ut(e, n) > 0);
|
|
1225
1276
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return t &&
|
|
1277
|
+
function ft(e, t, n) {
|
|
1278
|
+
return t && ut(e, t) < 0 ? at(t) : n && ut(e, n) > 0 ? at(n) : at(e);
|
|
1228
1279
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return
|
|
1280
|
+
function pt(e, t) {
|
|
1281
|
+
return ot(e, -((e.getDay() - t + 7) % 7));
|
|
1231
1282
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return
|
|
1283
|
+
function mt(e, t) {
|
|
1284
|
+
return ot(pt(e, t), 6);
|
|
1234
1285
|
}
|
|
1235
|
-
var
|
|
1236
|
-
function
|
|
1237
|
-
let r =
|
|
1238
|
-
for (let e = 0; e <
|
|
1286
|
+
var ht = 6;
|
|
1287
|
+
function gt(e, t, n) {
|
|
1288
|
+
let r = pt(new Date(e, t, 1), n), i = [];
|
|
1289
|
+
for (let e = 0; e < ht; e++) {
|
|
1239
1290
|
let n = [];
|
|
1240
1291
|
for (let i = 0; i < 7; i++) {
|
|
1241
|
-
let a =
|
|
1292
|
+
let a = ot(r, e * 7 + i);
|
|
1242
1293
|
n.push({
|
|
1243
1294
|
date: a,
|
|
1244
1295
|
inMonth: a.getMonth() === t
|
|
@@ -1249,34 +1300,44 @@ function pt(e, t, n) {
|
|
|
1249
1300
|
return i;
|
|
1250
1301
|
}
|
|
1251
1302
|
var q = {
|
|
1252
|
-
calendar: "
|
|
1253
|
-
header: "
|
|
1254
|
-
navButton: "
|
|
1255
|
-
title: "
|
|
1256
|
-
grid: "
|
|
1257
|
-
row: "
|
|
1258
|
-
weekday: "
|
|
1259
|
-
day: "
|
|
1260
|
-
selected: "
|
|
1261
|
-
disabled: "
|
|
1262
|
-
outside: "
|
|
1263
|
-
today: "
|
|
1264
|
-
|
|
1265
|
-
|
|
1303
|
+
calendar: "_calendar_1suqc_1",
|
|
1304
|
+
header: "_header_1suqc_7",
|
|
1305
|
+
navButton: "_navButton_1suqc_13",
|
|
1306
|
+
title: "_title_1suqc_21",
|
|
1307
|
+
grid: "_grid_1suqc_27",
|
|
1308
|
+
row: "_row_1suqc_31",
|
|
1309
|
+
weekday: "_weekday_1suqc_35",
|
|
1310
|
+
day: "_day_1suqc_44",
|
|
1311
|
+
selected: "_selected_1suqc_61",
|
|
1312
|
+
disabled: "_disabled_1suqc_61",
|
|
1313
|
+
outside: "_outside_1suqc_68",
|
|
1314
|
+
today: "_today_1suqc_71",
|
|
1315
|
+
inRange: "_inRange_1suqc_84",
|
|
1316
|
+
rangeStart: "_rangeStart_1suqc_91",
|
|
1317
|
+
rangeEnd: "_rangeEnd_1suqc_95",
|
|
1318
|
+
hiddenDay: "_hiddenDay_1suqc_99"
|
|
1319
|
+
}, _t = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
|
|
1320
|
+
function vt(e, t) {
|
|
1321
|
+
let n = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
1322
|
+
return new Date(e.getFullYear(), e.getMonth(), Math.min(t, n));
|
|
1323
|
+
}
|
|
1324
|
+
function yt(e, t) {
|
|
1266
1325
|
return e.charAt(0).toLocaleUpperCase(t) + e.slice(1);
|
|
1267
1326
|
}
|
|
1268
|
-
function
|
|
1269
|
-
let [
|
|
1270
|
-
|
|
1271
|
-
let
|
|
1327
|
+
function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", weekStartsOn: a = 0, autoFocus: o, previousMonthLabel: s = "Previous month", nextMonthLabel: c = "Next month", className: d, range: h, onDayHover: g, month: _, onMonthChange: b, hideNavigation: x }) {
|
|
1328
|
+
let [S, C] = m(() => _ ? vt(_, (e ?? /* @__PURE__ */ new Date()).getDate()) : ft(e ?? /* @__PURE__ */ new Date(), n, r)), w = _ ? `${_.getFullYear()}-${_.getMonth()}` : null, [T, E] = m(w);
|
|
1329
|
+
w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(vt(_, S.getDate())));
|
|
1330
|
+
let D = e ? _t(e) : null, [O, A] = m(D);
|
|
1331
|
+
D !== O && (A(D), e && C(ft(e, n, r)));
|
|
1332
|
+
let j = p(null), M = p(!!o), ee = u();
|
|
1272
1333
|
l(() => {
|
|
1273
|
-
|
|
1274
|
-
}, [
|
|
1275
|
-
let
|
|
1276
|
-
|
|
1277
|
-
|
|
1334
|
+
M.current && (M.current = !1, j.current?.querySelector(`[data-date="${_t(S)}"]`)?.focus());
|
|
1335
|
+
}, [S]);
|
|
1336
|
+
let N = S.getFullYear(), P = S.getMonth(), F = f(() => gt(N, P, a), [
|
|
1337
|
+
N,
|
|
1338
|
+
P,
|
|
1278
1339
|
a
|
|
1279
|
-
]),
|
|
1340
|
+
]), te = at(/* @__PURE__ */ new Date()), ne = !!(h?.start && h.end && ut(h.start, h.end) > 0), I = ne ? h.end : h?.start ?? null, L = ne ? h.start : h?.end ?? null, R = !!(I && L && ut(I, L) !== 0), z = f(() => ({
|
|
1280
1341
|
title: new Intl.DateTimeFormat(i, {
|
|
1281
1342
|
month: "long",
|
|
1282
1343
|
year: "numeric"
|
|
@@ -1284,208 +1345,244 @@ function gt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
|
|
|
1284
1345
|
short: new Intl.DateTimeFormat(i, { weekday: "short" }),
|
|
1285
1346
|
long: new Intl.DateTimeFormat(i, { weekday: "long" }),
|
|
1286
1347
|
full: new Intl.DateTimeFormat(i, { dateStyle: "full" })
|
|
1287
|
-
}), [i]),
|
|
1288
|
-
short:
|
|
1289
|
-
long:
|
|
1290
|
-
})),
|
|
1291
|
-
function
|
|
1292
|
-
|
|
1348
|
+
}), [i]), re = F[0].map(({ date: e }) => ({
|
|
1349
|
+
short: yt(z.short.format(e), i).slice(0, 2),
|
|
1350
|
+
long: z.long.format(e)
|
|
1351
|
+
})), ie = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < at(n), ae = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > at(r), oe = ie(S), se = ae(S);
|
|
1352
|
+
function B(e) {
|
|
1353
|
+
b && (e.getFullYear() !== S.getFullYear() || e.getMonth() !== S.getMonth()) && b(e), C(e);
|
|
1354
|
+
}
|
|
1355
|
+
function V(e) {
|
|
1356
|
+
M.current = !0, B(ft(e, n, r));
|
|
1293
1357
|
}
|
|
1294
|
-
function
|
|
1295
|
-
let t =
|
|
1296
|
-
|
|
1358
|
+
function H(e) {
|
|
1359
|
+
let t = ft(ct(S, e), n, r);
|
|
1360
|
+
M.current = e < 0 ? ie(t) : ae(t), B(t);
|
|
1297
1361
|
}
|
|
1298
|
-
function
|
|
1362
|
+
function U(e) {
|
|
1299
1363
|
let t = null;
|
|
1300
1364
|
switch (e.key) {
|
|
1301
1365
|
case "ArrowLeft":
|
|
1302
|
-
t =
|
|
1366
|
+
t = ot(S, -1);
|
|
1303
1367
|
break;
|
|
1304
1368
|
case "ArrowRight":
|
|
1305
|
-
t =
|
|
1369
|
+
t = ot(S, 1);
|
|
1306
1370
|
break;
|
|
1307
1371
|
case "ArrowUp":
|
|
1308
|
-
t =
|
|
1372
|
+
t = ot(S, -7);
|
|
1309
1373
|
break;
|
|
1310
1374
|
case "ArrowDown":
|
|
1311
|
-
t =
|
|
1375
|
+
t = ot(S, 7);
|
|
1312
1376
|
break;
|
|
1313
1377
|
case "PageUp":
|
|
1314
|
-
t =
|
|
1378
|
+
t = ct(S, -1);
|
|
1315
1379
|
break;
|
|
1316
1380
|
case "PageDown":
|
|
1317
|
-
t =
|
|
1381
|
+
t = ct(S, 1);
|
|
1318
1382
|
break;
|
|
1319
1383
|
case "Home":
|
|
1320
|
-
t =
|
|
1384
|
+
t = pt(S, a);
|
|
1321
1385
|
break;
|
|
1322
|
-
case "End": t =
|
|
1386
|
+
case "End": t = mt(S, a);
|
|
1323
1387
|
}
|
|
1324
|
-
t && (e.preventDefault(),
|
|
1388
|
+
t && (e.preventDefault(), V(t));
|
|
1325
1389
|
}
|
|
1326
|
-
function
|
|
1327
|
-
let n =
|
|
1328
|
-
|
|
1390
|
+
function ce(e) {
|
|
1391
|
+
let n = at(e);
|
|
1392
|
+
B(n), t(n);
|
|
1329
1393
|
}
|
|
1330
|
-
return /* @__PURE__ */
|
|
1394
|
+
return /* @__PURE__ */ y("div", {
|
|
1331
1395
|
className: [q.calendar, d].filter(Boolean).join(" "),
|
|
1332
|
-
children: [/* @__PURE__ */
|
|
1396
|
+
children: [/* @__PURE__ */ y("div", {
|
|
1333
1397
|
className: q.header,
|
|
1334
1398
|
children: [
|
|
1335
|
-
/* @__PURE__ */
|
|
1399
|
+
x === "previous" ? /* @__PURE__ */ v("span", {}) : /* @__PURE__ */ v(k, {
|
|
1336
1400
|
variant: "tertiary",
|
|
1337
1401
|
size: "sm",
|
|
1338
1402
|
className: q.navButton,
|
|
1339
|
-
leadingIcon: /* @__PURE__ */
|
|
1403
|
+
leadingIcon: /* @__PURE__ */ v(pe, {}),
|
|
1340
1404
|
"aria-label": s,
|
|
1341
|
-
disabled:
|
|
1342
|
-
onClick: () =>
|
|
1405
|
+
disabled: oe,
|
|
1406
|
+
onClick: () => H(-1)
|
|
1343
1407
|
}),
|
|
1344
|
-
/* @__PURE__ */
|
|
1345
|
-
id:
|
|
1408
|
+
/* @__PURE__ */ v("div", {
|
|
1409
|
+
id: ee,
|
|
1346
1410
|
className: q.title,
|
|
1347
1411
|
"aria-live": "polite",
|
|
1348
|
-
children:
|
|
1412
|
+
children: yt(z.title.format(S), i)
|
|
1349
1413
|
}),
|
|
1350
|
-
/* @__PURE__ */
|
|
1414
|
+
x === "next" ? /* @__PURE__ */ v("span", {}) : /* @__PURE__ */ v(k, {
|
|
1351
1415
|
variant: "tertiary",
|
|
1352
1416
|
size: "sm",
|
|
1353
1417
|
className: q.navButton,
|
|
1354
|
-
leadingIcon: /* @__PURE__ */
|
|
1418
|
+
leadingIcon: /* @__PURE__ */ v(he, {}),
|
|
1355
1419
|
"aria-label": c,
|
|
1356
|
-
disabled:
|
|
1357
|
-
onClick: () =>
|
|
1420
|
+
disabled: se,
|
|
1421
|
+
onClick: () => H(1)
|
|
1358
1422
|
})
|
|
1359
1423
|
]
|
|
1360
|
-
}), /* @__PURE__ */
|
|
1361
|
-
ref:
|
|
1424
|
+
}), /* @__PURE__ */ y("div", {
|
|
1425
|
+
ref: j,
|
|
1362
1426
|
role: "grid",
|
|
1363
|
-
"aria-labelledby":
|
|
1427
|
+
"aria-labelledby": ee,
|
|
1364
1428
|
className: q.grid,
|
|
1365
|
-
onKeyDown:
|
|
1366
|
-
|
|
1429
|
+
onKeyDown: U,
|
|
1430
|
+
onMouseLeave: g ? () => g(null) : void 0,
|
|
1431
|
+
children: [/* @__PURE__ */ v("div", {
|
|
1367
1432
|
role: "row",
|
|
1368
1433
|
className: q.row,
|
|
1369
|
-
children:
|
|
1434
|
+
children: re.map((e) => /* @__PURE__ */ v("span", {
|
|
1370
1435
|
role: "columnheader",
|
|
1371
1436
|
"aria-label": e.long,
|
|
1372
1437
|
className: q.weekday,
|
|
1373
1438
|
children: e.short
|
|
1374
1439
|
}, e.long))
|
|
1375
|
-
}),
|
|
1440
|
+
}), F.map((t) => /* @__PURE__ */ v("div", {
|
|
1376
1441
|
role: "row",
|
|
1377
1442
|
className: q.row,
|
|
1378
1443
|
children: t.map(({ date: t, inMonth: i }) => {
|
|
1379
|
-
let a =
|
|
1380
|
-
return /* @__PURE__ */
|
|
1444
|
+
let a = dt(t, n, r), o = !!I && lt(t, I), s = !!L && lt(t, L), c = !!(I && L) && ut(t, I) > 0 && ut(t, L) < 0, l = h ? o || s : !!e && lt(t, e), u = !!h && !i, d = lt(t, te);
|
|
1445
|
+
return /* @__PURE__ */ v("button", {
|
|
1381
1446
|
type: "button",
|
|
1382
1447
|
role: "gridcell",
|
|
1383
|
-
"data-date":
|
|
1384
|
-
tabIndex:
|
|
1385
|
-
"aria-selected":
|
|
1448
|
+
"data-date": _t(t),
|
|
1449
|
+
tabIndex: lt(t, S) && !u ? 0 : -1,
|
|
1450
|
+
"aria-selected": l || c,
|
|
1451
|
+
"aria-hidden": u || void 0,
|
|
1386
1452
|
"aria-disabled": a || void 0,
|
|
1387
|
-
"aria-current":
|
|
1388
|
-
"aria-label":
|
|
1453
|
+
"aria-current": d ? "date" : void 0,
|
|
1454
|
+
"aria-label": z.full.format(t),
|
|
1389
1455
|
className: [
|
|
1390
1456
|
q.day,
|
|
1391
1457
|
!i && q.outside,
|
|
1392
|
-
|
|
1393
|
-
|
|
1458
|
+
u && q.hiddenDay,
|
|
1459
|
+
c && q.inRange,
|
|
1460
|
+
R && o && q.rangeStart,
|
|
1461
|
+
R && s && q.rangeEnd,
|
|
1462
|
+
d && q.today,
|
|
1463
|
+
l && q.selected,
|
|
1394
1464
|
a && q.disabled
|
|
1395
1465
|
].filter(Boolean).join(" "),
|
|
1396
1466
|
onMouseDown: a ? (e) => e.preventDefault() : void 0,
|
|
1397
|
-
onClick: a ? void 0 : () =>
|
|
1467
|
+
onClick: a || u ? void 0 : () => ce(t),
|
|
1468
|
+
onMouseEnter: g && !u ? () => g(t) : void 0,
|
|
1469
|
+
onFocus: g && !u ? () => g(t) : void 0,
|
|
1398
1470
|
children: t.getDate()
|
|
1399
|
-
},
|
|
1471
|
+
}, _t(t));
|
|
1400
1472
|
})
|
|
1401
|
-
},
|
|
1473
|
+
}, _t(t[0].date)))]
|
|
1402
1474
|
})]
|
|
1403
1475
|
});
|
|
1404
1476
|
}
|
|
1405
|
-
var
|
|
1406
|
-
function
|
|
1407
|
-
let
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
let e = M.current, t = I();
|
|
1412
|
-
if (!e || !t) return;
|
|
1413
|
-
if (window.matchMedia(vt).matches) {
|
|
1477
|
+
var xt = 4, St = 8;
|
|
1478
|
+
function Ct({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, layoutKey: a }) {
|
|
1479
|
+
let o = s(() => {
|
|
1480
|
+
let e = t.current, i = n();
|
|
1481
|
+
if (!e || !i) return;
|
|
1482
|
+
if (window.matchMedia("(max-width: 480px)").matches) {
|
|
1414
1483
|
e.style.left = "", e.style.top = "";
|
|
1415
1484
|
return;
|
|
1416
1485
|
}
|
|
1417
|
-
let
|
|
1418
|
-
|
|
1419
|
-
let
|
|
1420
|
-
|
|
1421
|
-
}, [
|
|
1486
|
+
let a = i.getBoundingClientRect(), o = e.offsetWidth, s = e.offsetHeight, c = document.documentElement.clientWidth, l = window.innerHeight, u = r === "bottom-end" ? a.right - o : a.left;
|
|
1487
|
+
u = Math.max(St, Math.min(u, c - o - St));
|
|
1488
|
+
let d = a.bottom + xt, f = d + s <= l - St, p = a.top - xt - s >= St, m = !f && p;
|
|
1489
|
+
m && (d = a.top - xt - s), e.dataset.flipped = String(m), e.dataset.align = r === "bottom-end" ? "end" : "start", e.style.left = `${u}px`, e.style.top = `${d}px`;
|
|
1490
|
+
}, [
|
|
1491
|
+
n,
|
|
1492
|
+
r,
|
|
1493
|
+
t
|
|
1494
|
+
]);
|
|
1422
1495
|
d(() => {
|
|
1423
|
-
if (
|
|
1424
|
-
window.removeEventListener("resize",
|
|
1496
|
+
if (e) return o(), window.addEventListener("resize", o), window.addEventListener("scroll", o, !0), () => {
|
|
1497
|
+
window.removeEventListener("resize", o), window.removeEventListener("scroll", o, !0);
|
|
1425
1498
|
};
|
|
1426
|
-
}, [
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1499
|
+
}, [
|
|
1500
|
+
e,
|
|
1501
|
+
o,
|
|
1502
|
+
a
|
|
1503
|
+
]), l(() => {
|
|
1504
|
+
if (!e) return;
|
|
1505
|
+
function r(e) {
|
|
1506
|
+
let r = e.target;
|
|
1507
|
+
t.current?.contains(r) || n()?.contains(r) || i(!1);
|
|
1434
1508
|
}
|
|
1435
|
-
function
|
|
1436
|
-
if (
|
|
1437
|
-
|
|
1509
|
+
function a(e) {
|
|
1510
|
+
if (e.key === "Escape") {
|
|
1511
|
+
e.preventDefault(), i(!0);
|
|
1438
1512
|
return;
|
|
1439
1513
|
}
|
|
1440
|
-
if (
|
|
1441
|
-
let n =
|
|
1514
|
+
if (e.key !== "Tab") return;
|
|
1515
|
+
let n = t.current;
|
|
1442
1516
|
if (!n) return;
|
|
1443
1517
|
let r = Array.from(n.querySelectorAll("button:not(:disabled):not([tabindex=\"-1\"])"));
|
|
1444
1518
|
if (r.length === 0) {
|
|
1445
|
-
|
|
1519
|
+
e.preventDefault();
|
|
1446
1520
|
return;
|
|
1447
1521
|
}
|
|
1448
|
-
let
|
|
1449
|
-
n.contains(
|
|
1522
|
+
let a = r[0], o = r[r.length - 1], s = document.activeElement;
|
|
1523
|
+
n.contains(s) ? e.shiftKey && s === a ? (e.preventDefault(), o.focus()) : !e.shiftKey && s === o && (e.preventDefault(), a.focus()) : (e.preventDefault(), (e.shiftKey ? o : a).focus());
|
|
1450
1524
|
}
|
|
1451
|
-
return window.addEventListener("pointerdown",
|
|
1452
|
-
window.removeEventListener("pointerdown",
|
|
1525
|
+
return window.addEventListener("pointerdown", r), window.addEventListener("keydown", a), () => {
|
|
1526
|
+
window.removeEventListener("pointerdown", r), window.removeEventListener("keydown", a);
|
|
1453
1527
|
};
|
|
1454
|
-
}, [
|
|
1455
|
-
|
|
1456
|
-
|
|
1528
|
+
}, [
|
|
1529
|
+
e,
|
|
1530
|
+
n,
|
|
1531
|
+
i,
|
|
1532
|
+
t
|
|
1533
|
+
]);
|
|
1534
|
+
}
|
|
1535
|
+
var wt = { popup: "_popup_em2ap_1" };
|
|
1536
|
+
//#endregion
|
|
1537
|
+
//#region src/components/DatePicker.tsx
|
|
1538
|
+
function Tt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale: a = "en", weekStartsOn: o = 0, formatValue: c, placement: l = "bottom-start", label: d, helperText: h, error: b, size: x, openLabel: S, placeholder: C, dialogLabel: w = "Choose date", className: T, id: E }) {
|
|
1539
|
+
let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !i, ee = f(() => new Intl.DateTimeFormat(a, {
|
|
1540
|
+
month: "short",
|
|
1541
|
+
day: "2-digit"
|
|
1542
|
+
}), [a]), N = e ? c ? c(e) : ee.format(e) : "";
|
|
1543
|
+
Ct({
|
|
1544
|
+
isOpen: M,
|
|
1545
|
+
popupRef: A,
|
|
1546
|
+
getAnchor: s(() => k.current?.parentElement ?? k.current, []),
|
|
1547
|
+
placement: l,
|
|
1548
|
+
onClose: s((e) => {
|
|
1549
|
+
O(!1), e && k.current?.focus();
|
|
1550
|
+
}, [])
|
|
1551
|
+
});
|
|
1552
|
+
function P(e) {
|
|
1553
|
+
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), i || O(!0));
|
|
1457
1554
|
}
|
|
1458
|
-
function
|
|
1459
|
-
t(e),
|
|
1555
|
+
function F(e) {
|
|
1556
|
+
t(e), O(!1), k.current?.focus();
|
|
1460
1557
|
}
|
|
1461
|
-
return /* @__PURE__ */
|
|
1462
|
-
ref:
|
|
1463
|
-
id:
|
|
1464
|
-
className:
|
|
1465
|
-
label:
|
|
1466
|
-
helperText:
|
|
1467
|
-
error:
|
|
1468
|
-
size:
|
|
1469
|
-
openLabel:
|
|
1470
|
-
placeholder:
|
|
1558
|
+
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(it, {
|
|
1559
|
+
ref: k,
|
|
1560
|
+
id: E,
|
|
1561
|
+
className: T,
|
|
1562
|
+
label: d,
|
|
1563
|
+
helperText: h,
|
|
1564
|
+
error: b,
|
|
1565
|
+
size: x,
|
|
1566
|
+
openLabel: S,
|
|
1567
|
+
placeholder: C,
|
|
1471
1568
|
disabled: i,
|
|
1472
|
-
value:
|
|
1569
|
+
value: N,
|
|
1473
1570
|
role: "combobox",
|
|
1474
1571
|
"aria-haspopup": "dialog",
|
|
1475
|
-
"aria-expanded":
|
|
1476
|
-
"aria-controls":
|
|
1477
|
-
onClick: () => !i &&
|
|
1478
|
-
onKeyDown:
|
|
1479
|
-
}),
|
|
1480
|
-
ref:
|
|
1481
|
-
id:
|
|
1572
|
+
"aria-expanded": M,
|
|
1573
|
+
"aria-controls": M ? j : void 0,
|
|
1574
|
+
onClick: () => !i && O((e) => !e),
|
|
1575
|
+
onKeyDown: P
|
|
1576
|
+
}), M && g(/* @__PURE__ */ v("div", {
|
|
1577
|
+
ref: A,
|
|
1578
|
+
id: j,
|
|
1482
1579
|
role: "dialog",
|
|
1483
|
-
"aria-label":
|
|
1484
|
-
className:
|
|
1485
|
-
children: /* @__PURE__ */
|
|
1580
|
+
"aria-label": w,
|
|
1581
|
+
className: wt.popup,
|
|
1582
|
+
children: /* @__PURE__ */ v(bt, {
|
|
1486
1583
|
autoFocus: !0,
|
|
1487
1584
|
value: e,
|
|
1488
|
-
onChange:
|
|
1585
|
+
onChange: F,
|
|
1489
1586
|
minDate: n,
|
|
1490
1587
|
maxDate: r,
|
|
1491
1588
|
locale: a,
|
|
@@ -1493,7 +1590,274 @@ function xt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
|
|
|
1493
1590
|
})
|
|
1494
1591
|
}), document.body)] });
|
|
1495
1592
|
}
|
|
1496
|
-
var
|
|
1593
|
+
var Et = {
|
|
1594
|
+
skeleton: "_skeleton_5dl4r_2",
|
|
1595
|
+
rect: "_rect_5dl4r_7",
|
|
1596
|
+
text: "_text_5dl4r_13",
|
|
1597
|
+
circle: "_circle_5dl4r_19",
|
|
1598
|
+
animated: "_animated_5dl4r_26",
|
|
1599
|
+
skeletonPulse: "_skeletonPulse_5dl4r_1"
|
|
1600
|
+
};
|
|
1601
|
+
//#endregion
|
|
1602
|
+
//#region src/components/Skeleton.tsx
|
|
1603
|
+
function Dt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
|
|
1604
|
+
let s = [
|
|
1605
|
+
Et.skeleton,
|
|
1606
|
+
Et[e],
|
|
1607
|
+
i && Et.animated,
|
|
1608
|
+
a
|
|
1609
|
+
].filter(Boolean).join(" "), c = {};
|
|
1610
|
+
return e === "circle" && r !== void 0 && (c.width = r, c.height = r), t !== void 0 && (c.width = t), n !== void 0 && (c.height = n), /* @__PURE__ */ v("div", {
|
|
1611
|
+
"aria-hidden": "true",
|
|
1612
|
+
className: s,
|
|
1613
|
+
style: c,
|
|
1614
|
+
"data-testid": o
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
//#endregion
|
|
1618
|
+
//#region src/utils/dateRange.ts
|
|
1619
|
+
function Ot(e) {
|
|
1620
|
+
return e.start !== null && e.end !== null;
|
|
1621
|
+
}
|
|
1622
|
+
function kt(e, t) {
|
|
1623
|
+
let n = at(t);
|
|
1624
|
+
return e.start && !e.end && ut(n, e.start) >= 0 ? {
|
|
1625
|
+
start: e.start,
|
|
1626
|
+
end: n
|
|
1627
|
+
} : {
|
|
1628
|
+
start: n,
|
|
1629
|
+
end: null
|
|
1630
|
+
};
|
|
1631
|
+
}
|
|
1632
|
+
function At(e, t) {
|
|
1633
|
+
return e.start && !e.end && t ? ut(t, e.start) < 0 ? {
|
|
1634
|
+
start: t,
|
|
1635
|
+
end: e.start
|
|
1636
|
+
} : {
|
|
1637
|
+
start: e.start,
|
|
1638
|
+
end: t
|
|
1639
|
+
} : e;
|
|
1640
|
+
}
|
|
1641
|
+
var jt = " – ";
|
|
1642
|
+
function Mt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
|
|
1643
|
+
let { start: i, end: a } = e;
|
|
1644
|
+
if (!i && !a) return "";
|
|
1645
|
+
let o = new Intl.DateTimeFormat(t, {
|
|
1646
|
+
month: "short",
|
|
1647
|
+
day: "2-digit"
|
|
1648
|
+
}), s = new Intl.DateTimeFormat(t, {
|
|
1649
|
+
month: "short",
|
|
1650
|
+
day: "2-digit",
|
|
1651
|
+
year: "numeric"
|
|
1652
|
+
}), c = [i, a].some((e) => e && e.getFullYear() !== n.getFullYear()), l = (e) => r ? r(e) : (c ? s : o).format(e);
|
|
1653
|
+
return i && !a ? l(i) : !i && a ? l(a) : lt(i, a) ? l(i) : `${l(i)}${jt}${l(a)}`;
|
|
1654
|
+
}
|
|
1655
|
+
var J = {
|
|
1656
|
+
field: "_field_12tzs_1",
|
|
1657
|
+
trigger: "_trigger_12tzs_11",
|
|
1658
|
+
errorWrap: "_errorWrap_12tzs_41",
|
|
1659
|
+
sm: "_sm_12tzs_64",
|
|
1660
|
+
base: "_base_12tzs_72",
|
|
1661
|
+
icon: "_icon_12tzs_80",
|
|
1662
|
+
value: "_value_12tzs_94",
|
|
1663
|
+
placeholder: "_placeholder_12tzs_102",
|
|
1664
|
+
chevron: "_chevron_12tzs_105",
|
|
1665
|
+
chevronOpen: "_chevronOpen_12tzs_120",
|
|
1666
|
+
helperText: "_helperText_12tzs_123",
|
|
1667
|
+
errorText: "_errorText_12tzs_128",
|
|
1668
|
+
popup: "_popup_12tzs_134",
|
|
1669
|
+
popupIn: "_popupIn_12tzs_1",
|
|
1670
|
+
presets: "_presets_12tzs_169",
|
|
1671
|
+
preset: "_preset_12tzs_169",
|
|
1672
|
+
main: "_main_12tzs_207",
|
|
1673
|
+
months: "_months_12tzs_214",
|
|
1674
|
+
month: "_month_12tzs_214",
|
|
1675
|
+
footer: "_footer_12tzs_222"
|
|
1676
|
+
}, Nt = "(min-width: 640px)";
|
|
1677
|
+
function Pt(e) {
|
|
1678
|
+
return h((t) => {
|
|
1679
|
+
let n = window.matchMedia(e);
|
|
1680
|
+
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
1681
|
+
}, () => window.matchMedia(e).matches, () => !1);
|
|
1682
|
+
}
|
|
1683
|
+
var Ft = (e) => new Date(e.getFullYear(), e.getMonth(), 1), It = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
|
|
1684
|
+
function Lt(e, t, n, r) {
|
|
1685
|
+
let i = Ft(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
|
|
1686
|
+
return r && (i = ct(i, -1)), t && ut(i, Ft(t)) < 0 && (i = Ft(t)), i;
|
|
1687
|
+
}
|
|
1688
|
+
function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], activePresetId: a, disabled: o, loading: c, locale: l = "en", weekStartsOn: d = 0, formatValue: h, placement: b = "bottom-start", size: x = "base", label: S, helperText: C, error: w, placeholder: T = "Select period", openLabel: E = "Choose period", dialogLabel: D = "Choose period", applyLabel: O = "Apply", cancelLabel: A = "Cancel", className: j, id: M }) {
|
|
1689
|
+
let [ee, N] = m(!1), [P, F] = m({
|
|
1690
|
+
start: null,
|
|
1691
|
+
end: null
|
|
1692
|
+
}), [te, ne] = m(null), [I, L] = m(() => Lt(e, n, r, !0)), [R, z] = m(() => at(/* @__PURE__ */ new Date())), re = p(null), ie = p(null), ae = u(), oe = M ?? ae, se = u(), B = Pt(Nt), V = ee && !o && !c, H = a ? i.find((e) => e.id === a) : void 0, U = (e, t) => e && t ? ut(e, t) === 0 : e === t, le = V && !!P.start && !(U(P.start, e.start) && U(P.end, e.end)), W = f(() => le ? Mt(P, {
|
|
1693
|
+
locale: l,
|
|
1694
|
+
formatValue: h
|
|
1695
|
+
}) : H?.label ?? Mt(e, {
|
|
1696
|
+
locale: l,
|
|
1697
|
+
formatValue: h
|
|
1698
|
+
}), [
|
|
1699
|
+
le,
|
|
1700
|
+
P,
|
|
1701
|
+
H,
|
|
1702
|
+
e,
|
|
1703
|
+
l,
|
|
1704
|
+
h
|
|
1705
|
+
]), ue = s(() => re.current, []), fe = s((e) => {
|
|
1706
|
+
N(!1), e && re.current?.focus();
|
|
1707
|
+
}, []);
|
|
1708
|
+
Ct({
|
|
1709
|
+
isOpen: V,
|
|
1710
|
+
popupRef: ie,
|
|
1711
|
+
getAnchor: ue,
|
|
1712
|
+
placement: b,
|
|
1713
|
+
onClose: fe,
|
|
1714
|
+
layoutKey: B
|
|
1715
|
+
});
|
|
1716
|
+
function pe() {
|
|
1717
|
+
o || c || (F({
|
|
1718
|
+
start: e.start,
|
|
1719
|
+
end: e.end
|
|
1720
|
+
}), ne(null), L(Lt(e, n, r, B)), z(e.end ?? e.start ?? at(/* @__PURE__ */ new Date())), N(!0));
|
|
1721
|
+
}
|
|
1722
|
+
function me() {
|
|
1723
|
+
V ? fe(!1) : pe();
|
|
1724
|
+
}
|
|
1725
|
+
function he(e) {
|
|
1726
|
+
e.key === "ArrowDown" && !V && (e.preventDefault(), pe());
|
|
1727
|
+
}
|
|
1728
|
+
function ge(e) {
|
|
1729
|
+
t(e.range()), fe(!0);
|
|
1730
|
+
}
|
|
1731
|
+
function _e() {
|
|
1732
|
+
Ot(P) && (t({
|
|
1733
|
+
start: P.start,
|
|
1734
|
+
end: P.end
|
|
1735
|
+
}), fe(!0));
|
|
1736
|
+
}
|
|
1737
|
+
let ve = (e) => (t) => L(ct(Ft(t), -e)), ye = At(P, te), be = ct(I, 1), xe = B && It(R, be), Se = {
|
|
1738
|
+
value: R,
|
|
1739
|
+
onChange: (e) => F((t) => kt(t, e)),
|
|
1740
|
+
minDate: n,
|
|
1741
|
+
maxDate: r,
|
|
1742
|
+
locale: l,
|
|
1743
|
+
weekStartsOn: d,
|
|
1744
|
+
range: ye,
|
|
1745
|
+
onDayHover: ne
|
|
1746
|
+
}, Ce = i.length > 0;
|
|
1747
|
+
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
|
|
1748
|
+
className: [J.field, j].filter(Boolean).join(" "),
|
|
1749
|
+
children: [
|
|
1750
|
+
S && /* @__PURE__ */ v(Le, {
|
|
1751
|
+
htmlFor: oe,
|
|
1752
|
+
children: S
|
|
1753
|
+
}),
|
|
1754
|
+
/* @__PURE__ */ y("button", {
|
|
1755
|
+
ref: re,
|
|
1756
|
+
id: oe,
|
|
1757
|
+
type: "button",
|
|
1758
|
+
className: [
|
|
1759
|
+
J.trigger,
|
|
1760
|
+
J[x],
|
|
1761
|
+
w && J.errorWrap
|
|
1762
|
+
].filter(Boolean).join(" "),
|
|
1763
|
+
disabled: o || c,
|
|
1764
|
+
"aria-label": S ? void 0 : E,
|
|
1765
|
+
"aria-haspopup": "dialog",
|
|
1766
|
+
"aria-expanded": V,
|
|
1767
|
+
"aria-controls": V ? se : void 0,
|
|
1768
|
+
"aria-busy": c || void 0,
|
|
1769
|
+
onClick: me,
|
|
1770
|
+
onKeyDown: he,
|
|
1771
|
+
children: [
|
|
1772
|
+
/* @__PURE__ */ v("span", {
|
|
1773
|
+
className: J.icon,
|
|
1774
|
+
"aria-hidden": !0,
|
|
1775
|
+
children: /* @__PURE__ */ v(ce, {})
|
|
1776
|
+
}),
|
|
1777
|
+
c ? /* @__PURE__ */ v("span", {
|
|
1778
|
+
className: J.value,
|
|
1779
|
+
children: /* @__PURE__ */ v(Dt, {
|
|
1780
|
+
variant: "text",
|
|
1781
|
+
width: "60%"
|
|
1782
|
+
})
|
|
1783
|
+
}) : /* @__PURE__ */ v("span", {
|
|
1784
|
+
className: [J.value, !W && J.placeholder].filter(Boolean).join(" "),
|
|
1785
|
+
children: W || T
|
|
1786
|
+
}),
|
|
1787
|
+
/* @__PURE__ */ v("span", {
|
|
1788
|
+
className: [J.chevron, V && J.chevronOpen].filter(Boolean).join(" "),
|
|
1789
|
+
"aria-hidden": !0,
|
|
1790
|
+
children: /* @__PURE__ */ v(de, {})
|
|
1791
|
+
})
|
|
1792
|
+
]
|
|
1793
|
+
}),
|
|
1794
|
+
w ? /* @__PURE__ */ v("span", {
|
|
1795
|
+
className: J.errorText,
|
|
1796
|
+
children: w
|
|
1797
|
+
}) : C ? /* @__PURE__ */ v("span", {
|
|
1798
|
+
className: J.helperText,
|
|
1799
|
+
children: C
|
|
1800
|
+
}) : null
|
|
1801
|
+
]
|
|
1802
|
+
}), V && g(/* @__PURE__ */ y("div", {
|
|
1803
|
+
ref: ie,
|
|
1804
|
+
id: se,
|
|
1805
|
+
role: "dialog",
|
|
1806
|
+
"aria-label": D,
|
|
1807
|
+
className: J.popup,
|
|
1808
|
+
children: [Ce && /* @__PURE__ */ v("div", {
|
|
1809
|
+
className: J.presets,
|
|
1810
|
+
role: "group",
|
|
1811
|
+
"aria-label": D,
|
|
1812
|
+
children: i.map((e) => /* @__PURE__ */ v("button", {
|
|
1813
|
+
type: "button",
|
|
1814
|
+
className: J.preset,
|
|
1815
|
+
"aria-pressed": e.id === a,
|
|
1816
|
+
onClick: () => ge(e),
|
|
1817
|
+
children: e.label
|
|
1818
|
+
}, e.id))
|
|
1819
|
+
}), /* @__PURE__ */ y("div", {
|
|
1820
|
+
className: J.main,
|
|
1821
|
+
children: [/* @__PURE__ */ y("div", {
|
|
1822
|
+
className: J.months,
|
|
1823
|
+
children: [/* @__PURE__ */ v("div", {
|
|
1824
|
+
className: J.month,
|
|
1825
|
+
children: /* @__PURE__ */ v(bt, {
|
|
1826
|
+
...Se,
|
|
1827
|
+
autoFocus: !xe,
|
|
1828
|
+
month: I,
|
|
1829
|
+
onMonthChange: ve(0),
|
|
1830
|
+
hideNavigation: B ? "next" : void 0
|
|
1831
|
+
})
|
|
1832
|
+
}), B && /* @__PURE__ */ v("div", {
|
|
1833
|
+
className: J.month,
|
|
1834
|
+
children: /* @__PURE__ */ v(bt, {
|
|
1835
|
+
...Se,
|
|
1836
|
+
autoFocus: xe,
|
|
1837
|
+
month: be,
|
|
1838
|
+
onMonthChange: ve(1),
|
|
1839
|
+
hideNavigation: "previous"
|
|
1840
|
+
})
|
|
1841
|
+
})]
|
|
1842
|
+
}), /* @__PURE__ */ y("div", {
|
|
1843
|
+
className: J.footer,
|
|
1844
|
+
children: [/* @__PURE__ */ v(k, {
|
|
1845
|
+
variant: "tertiary",
|
|
1846
|
+
size: "sm",
|
|
1847
|
+
onClick: () => fe(!0),
|
|
1848
|
+
children: A
|
|
1849
|
+
}), /* @__PURE__ */ v(k, {
|
|
1850
|
+
variant: "primary",
|
|
1851
|
+
size: "sm",
|
|
1852
|
+
disabled: !Ot(P),
|
|
1853
|
+
onClick: _e,
|
|
1854
|
+
children: O
|
|
1855
|
+
})]
|
|
1856
|
+
})]
|
|
1857
|
+
})]
|
|
1858
|
+
}), document.body)] });
|
|
1859
|
+
}
|
|
1860
|
+
var zt = {
|
|
1497
1861
|
field: "_field_l0zl7_1",
|
|
1498
1862
|
inputWrap: "_inputWrap_l0zl7_6",
|
|
1499
1863
|
errorWrap: "_errorWrap_l0zl7_19",
|
|
@@ -1507,64 +1871,64 @@ var St = {
|
|
|
1507
1871
|
};
|
|
1508
1872
|
//#endregion
|
|
1509
1873
|
//#region src/components/NumberField.tsx
|
|
1510
|
-
function
|
|
1874
|
+
function Bt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
|
|
1511
1875
|
let c = u(), l = o ?? c;
|
|
1512
|
-
return /* @__PURE__ */
|
|
1513
|
-
className:
|
|
1876
|
+
return /* @__PURE__ */ y("div", {
|
|
1877
|
+
className: zt.field,
|
|
1514
1878
|
children: [
|
|
1515
|
-
e && /* @__PURE__ */
|
|
1879
|
+
e && /* @__PURE__ */ v(Le, {
|
|
1516
1880
|
htmlFor: l,
|
|
1517
1881
|
children: e
|
|
1518
1882
|
}),
|
|
1519
|
-
/* @__PURE__ */
|
|
1520
|
-
className: `${
|
|
1883
|
+
/* @__PURE__ */ y("div", {
|
|
1884
|
+
className: `${zt.inputWrap} ${zt[r]} ${n ? zt.errorWrap : ""}`,
|
|
1521
1885
|
children: [
|
|
1522
|
-
i && /* @__PURE__ */
|
|
1523
|
-
className:
|
|
1886
|
+
i && /* @__PURE__ */ v("span", {
|
|
1887
|
+
className: zt.prefix,
|
|
1524
1888
|
children: i
|
|
1525
1889
|
}),
|
|
1526
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ v("input", {
|
|
1527
1891
|
id: l,
|
|
1528
|
-
className:
|
|
1892
|
+
className: zt.input,
|
|
1529
1893
|
...s
|
|
1530
1894
|
}),
|
|
1531
|
-
a && /* @__PURE__ */
|
|
1532
|
-
className:
|
|
1895
|
+
a && /* @__PURE__ */ v("span", {
|
|
1896
|
+
className: zt.suffix,
|
|
1533
1897
|
children: a
|
|
1534
1898
|
})
|
|
1535
1899
|
]
|
|
1536
1900
|
}),
|
|
1537
|
-
n ? /* @__PURE__ */
|
|
1538
|
-
className:
|
|
1901
|
+
n ? /* @__PURE__ */ v("span", {
|
|
1902
|
+
className: zt.errorText,
|
|
1539
1903
|
children: n
|
|
1540
|
-
}) : t ? /* @__PURE__ */
|
|
1541
|
-
className:
|
|
1904
|
+
}) : t ? /* @__PURE__ */ v("span", {
|
|
1905
|
+
className: zt.helperText,
|
|
1542
1906
|
children: t
|
|
1543
1907
|
}) : null
|
|
1544
1908
|
]
|
|
1545
1909
|
});
|
|
1546
1910
|
}
|
|
1547
|
-
var
|
|
1911
|
+
var Vt = {
|
|
1548
1912
|
menu: "_menu_xz84k_1",
|
|
1549
1913
|
divider: "_divider_xz84k_15"
|
|
1550
1914
|
};
|
|
1551
1915
|
//#endregion
|
|
1552
1916
|
//#region src/components/Menu.tsx
|
|
1553
|
-
function
|
|
1554
|
-
return /* @__PURE__ */
|
|
1917
|
+
function Ht({ children: e, ...t }) {
|
|
1918
|
+
return /* @__PURE__ */ v("div", {
|
|
1555
1919
|
role: "menu",
|
|
1556
|
-
className:
|
|
1920
|
+
className: Vt.menu,
|
|
1557
1921
|
...t,
|
|
1558
1922
|
children: e
|
|
1559
1923
|
});
|
|
1560
1924
|
}
|
|
1561
|
-
function
|
|
1562
|
-
return /* @__PURE__ */
|
|
1563
|
-
className:
|
|
1925
|
+
function Ut() {
|
|
1926
|
+
return /* @__PURE__ */ v("div", {
|
|
1927
|
+
className: Vt.divider,
|
|
1564
1928
|
role: "separator"
|
|
1565
1929
|
});
|
|
1566
1930
|
}
|
|
1567
|
-
var
|
|
1931
|
+
var Wt = {
|
|
1568
1932
|
item: "_item_15ucz_1",
|
|
1569
1933
|
base: "_base_15ucz_21",
|
|
1570
1934
|
icon: "_icon_15ucz_28",
|
|
@@ -1577,43 +1941,43 @@ var Dt = {
|
|
|
1577
1941
|
};
|
|
1578
1942
|
//#endregion
|
|
1579
1943
|
//#region src/components/MenuItem.tsx
|
|
1580
|
-
function
|
|
1944
|
+
function Gt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
|
|
1581
1945
|
let c = [
|
|
1582
|
-
|
|
1583
|
-
a === "base" &&
|
|
1584
|
-
r &&
|
|
1585
|
-
i &&
|
|
1946
|
+
Wt.item,
|
|
1947
|
+
a === "base" && Wt.base,
|
|
1948
|
+
r && Wt.selected,
|
|
1949
|
+
i && Wt.destructive
|
|
1586
1950
|
].filter(Boolean).join(" ");
|
|
1587
|
-
return /* @__PURE__ */
|
|
1951
|
+
return /* @__PURE__ */ y("button", {
|
|
1588
1952
|
type: "button",
|
|
1589
1953
|
role: "menuitem",
|
|
1590
1954
|
className: c,
|
|
1591
1955
|
...s,
|
|
1592
1956
|
children: [
|
|
1593
|
-
e && /* @__PURE__ */
|
|
1594
|
-
className:
|
|
1957
|
+
e && /* @__PURE__ */ v("span", {
|
|
1958
|
+
className: Wt.leading,
|
|
1595
1959
|
children: e
|
|
1596
1960
|
}),
|
|
1597
|
-
t && /* @__PURE__ */
|
|
1598
|
-
className:
|
|
1961
|
+
t && /* @__PURE__ */ v("span", {
|
|
1962
|
+
className: Wt.icon,
|
|
1599
1963
|
children: t
|
|
1600
1964
|
}),
|
|
1601
|
-
/* @__PURE__ */
|
|
1602
|
-
className:
|
|
1965
|
+
/* @__PURE__ */ v("span", {
|
|
1966
|
+
className: Wt.label,
|
|
1603
1967
|
children: o
|
|
1604
1968
|
}),
|
|
1605
|
-
n && /* @__PURE__ */
|
|
1606
|
-
className:
|
|
1969
|
+
n && /* @__PURE__ */ v("span", {
|
|
1970
|
+
className: Wt.trailing,
|
|
1607
1971
|
children: n
|
|
1608
1972
|
}),
|
|
1609
|
-
r && /* @__PURE__ */
|
|
1610
|
-
className:
|
|
1611
|
-
children: /* @__PURE__ */
|
|
1973
|
+
r && /* @__PURE__ */ v("span", {
|
|
1974
|
+
className: Wt.check,
|
|
1975
|
+
children: /* @__PURE__ */ v(W, {})
|
|
1612
1976
|
})
|
|
1613
1977
|
]
|
|
1614
1978
|
});
|
|
1615
1979
|
}
|
|
1616
|
-
var
|
|
1980
|
+
var Y = {
|
|
1617
1981
|
field: "_field_1dolc_1",
|
|
1618
1982
|
fieldInline: "_fieldInline_1dolc_2",
|
|
1619
1983
|
trigger: "_trigger_1dolc_19",
|
|
@@ -1650,15 +2014,15 @@ var J = {
|
|
|
1650
2014
|
};
|
|
1651
2015
|
//#endregion
|
|
1652
2016
|
//#region src/components/Dropdown.tsx
|
|
1653
|
-
function
|
|
2017
|
+
function Kt(e) {
|
|
1654
2018
|
return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
|
|
1655
2019
|
}
|
|
1656
|
-
function
|
|
2020
|
+
function qt(e) {
|
|
1657
2021
|
return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
|
|
1658
2022
|
}
|
|
1659
|
-
var
|
|
1660
|
-
function
|
|
1661
|
-
let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: c = "base", placeholder: f = "Select…", options: h, disabled:
|
|
2023
|
+
var Jt = (e) => `and ${e} more`;
|
|
2024
|
+
function Yt(e) {
|
|
2025
|
+
let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: c = "base", placeholder: f = "Select…", options: h, disabled: g, searchable: b, searchPlaceholder: x = "Search…", noResultsText: S = "No matches", defaultOpen: C = !1, autoFocus: w, className: T, labelClassName: E, "aria-label": D, "data-testid": O } = e, A = e.multiple === !0, [j, M] = m(C), [ee, N] = m(C), [P, F] = m(""), [te, ne] = m(!1), [I, L] = m(null), R = p(null), z = p(null), re = p(null), ie = p(null), ae = s((e) => {
|
|
1662
2026
|
if (!e) return;
|
|
1663
2027
|
let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
|
|
1664
2028
|
t();
|
|
@@ -1669,241 +2033,241 @@ function Mt(e) {
|
|
|
1669
2033
|
return r.observe(e, { childList: !0 }), () => {
|
|
1670
2034
|
n.disconnect(), r.disconnect();
|
|
1671
2035
|
};
|
|
1672
|
-
}, []),
|
|
1673
|
-
function
|
|
1674
|
-
|
|
2036
|
+
}, []), oe = u(), se = u(), B = e.multiple ? void 0 : e.value, V = e.multiple && e.value || [], H = V.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), U = A ? void 0 : h.find((e) => e.value === B), ce = P.trim().toLowerCase(), le = b && ce ? h.filter((e) => Kt(e).toLowerCase().includes(ce)) : h, W = le.filter((e) => !e.disabled).map((e) => e.value), ue = t === "field";
|
|
2037
|
+
function fe() {
|
|
2038
|
+
N(!0), M(!0);
|
|
1675
2039
|
}
|
|
1676
|
-
function
|
|
1677
|
-
M(!1),
|
|
2040
|
+
function pe() {
|
|
2041
|
+
M(!1), F("");
|
|
1678
2042
|
}
|
|
1679
2043
|
l(() => {
|
|
1680
2044
|
if (!j) return;
|
|
1681
2045
|
if (b) {
|
|
1682
|
-
|
|
2046
|
+
ie.current?.focus();
|
|
1683
2047
|
return;
|
|
1684
2048
|
}
|
|
1685
|
-
let e = (A ?
|
|
1686
|
-
(
|
|
2049
|
+
let e = (A ? H.find((e) => !e.disabled)?.value : B) ?? W[0];
|
|
2050
|
+
(R.current?.querySelector(`[data-value="${e}"]`))?.focus();
|
|
1687
2051
|
}, [j]), d(() => {
|
|
1688
|
-
if (!j || !
|
|
1689
|
-
let e =
|
|
1690
|
-
|
|
2052
|
+
if (!j || !re.current || !R.current) return;
|
|
2053
|
+
let e = R.current.getBoundingClientRect(), t = re.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
|
|
2054
|
+
ne(n < t + 8 && r > n);
|
|
1691
2055
|
}, [j]), l(() => {
|
|
1692
2056
|
if (!j) return;
|
|
1693
2057
|
function e(e) {
|
|
1694
|
-
|
|
2058
|
+
R.current?.contains(e.target) || pe();
|
|
1695
2059
|
}
|
|
1696
2060
|
function t(e) {
|
|
1697
|
-
e.key === "Escape" && (
|
|
2061
|
+
e.key === "Escape" && (pe(), z.current?.focus()), e.key === "Tab" && A && pe();
|
|
1698
2062
|
}
|
|
1699
2063
|
return window.addEventListener("pointerdown", e), window.addEventListener("keydown", t), () => {
|
|
1700
2064
|
window.removeEventListener("pointerdown", e), window.removeEventListener("keydown", t);
|
|
1701
2065
|
};
|
|
1702
2066
|
}, [j, A]);
|
|
2067
|
+
function me(e) {
|
|
2068
|
+
e !== void 0 && R.current?.querySelector(`[data-value="${e}"]`)?.focus();
|
|
2069
|
+
}
|
|
1703
2070
|
function he(e) {
|
|
1704
|
-
e
|
|
2071
|
+
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), fe());
|
|
1705
2072
|
}
|
|
1706
2073
|
function ge(e) {
|
|
1707
|
-
|
|
1708
|
-
}
|
|
1709
|
-
function _e(e) {
|
|
1710
|
-
e.key === "ArrowDown" && (e.preventDefault(), he(H[0])), e.key === "Enter" && H.length === 1 && (e.preventDefault(), be(H[0]));
|
|
2074
|
+
e.key === "ArrowDown" && (e.preventDefault(), me(W[0])), e.key === "Enter" && W.length === 1 && (e.preventDefault(), ye(W[0]));
|
|
1711
2075
|
}
|
|
1712
|
-
function
|
|
1713
|
-
let n =
|
|
2076
|
+
function _e(e, t) {
|
|
2077
|
+
let n = W.indexOf(t);
|
|
1714
2078
|
if (n === -1) return;
|
|
1715
2079
|
let r = null;
|
|
1716
|
-
if (e.key === "ArrowDown" && (r = (n + 1) %
|
|
2080
|
+
if (e.key === "ArrowDown" && (r = (n + 1) % W.length), e.key === "ArrowUp") {
|
|
1717
2081
|
if (b && n === 0) {
|
|
1718
|
-
e.preventDefault(),
|
|
2082
|
+
e.preventDefault(), ie.current?.focus();
|
|
1719
2083
|
return;
|
|
1720
2084
|
}
|
|
1721
|
-
r = (n - 1 +
|
|
2085
|
+
r = (n - 1 + W.length) % W.length;
|
|
1722
2086
|
}
|
|
1723
|
-
e.key === "Home" && (r = 0), e.key === "End" && (r =
|
|
2087
|
+
e.key === "Home" && (r = 0), e.key === "End" && (r = W.length - 1), r !== null && (e.preventDefault(), me(W[r]));
|
|
1724
2088
|
}
|
|
1725
|
-
function
|
|
1726
|
-
|
|
2089
|
+
function ve(e) {
|
|
2090
|
+
L((t) => ({
|
|
1727
2091
|
top: e.offsetTop,
|
|
1728
2092
|
height: e.offsetHeight,
|
|
1729
2093
|
instant: !t
|
|
1730
2094
|
}));
|
|
1731
2095
|
}
|
|
1732
|
-
function
|
|
2096
|
+
function ye(t) {
|
|
1733
2097
|
if (e.multiple) {
|
|
1734
2098
|
let n = e.value ?? [];
|
|
1735
2099
|
e.onChange(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
1736
2100
|
return;
|
|
1737
2101
|
}
|
|
1738
|
-
e.onChange(t),
|
|
2102
|
+
e.onChange(t), pe(), z.current?.focus();
|
|
1739
2103
|
}
|
|
1740
|
-
function
|
|
1741
|
-
if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(
|
|
1742
|
-
let t =
|
|
1743
|
-
if (
|
|
1744
|
-
let n =
|
|
1745
|
-
return n === void 0 ? `${
|
|
2104
|
+
function be() {
|
|
2105
|
+
if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(H);
|
|
2106
|
+
let t = H[0];
|
|
2107
|
+
if (H.length === 1) return t.label;
|
|
2108
|
+
let n = qt(t);
|
|
2109
|
+
return n === void 0 ? `${H.length} selected` : `${n} ${(e.multiple && e.moreText || Jt)(H.length - 1)}`;
|
|
1746
2110
|
}
|
|
1747
|
-
let
|
|
1748
|
-
className:
|
|
2111
|
+
let xe = n === void 0 && (A ? H.length === 0 : !U), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
|
|
2112
|
+
className: Y.prefix,
|
|
1749
2113
|
children: [e.triggerPrefix, " "]
|
|
1750
|
-
}) : null,
|
|
2114
|
+
}) : null, Ce = n ?? (xe ? f : A ? be() : U?.label), we = /* @__PURE__ */ y(_, { children: [Se, Ce] }), Te = {
|
|
1751
2115
|
"aria-haspopup": "listbox",
|
|
1752
2116
|
"aria-expanded": j,
|
|
1753
|
-
"aria-controls": j ?
|
|
2117
|
+
"aria-controls": j ? se : void 0,
|
|
1754
2118
|
"aria-label": i ? void 0 : D,
|
|
1755
2119
|
autoFocus: w,
|
|
1756
|
-
disabled:
|
|
1757
|
-
onClick: () => j ?
|
|
1758
|
-
onKeyDown:
|
|
2120
|
+
disabled: g,
|
|
2121
|
+
onClick: () => j ? pe() : fe(),
|
|
2122
|
+
onKeyDown: he
|
|
1759
2123
|
};
|
|
1760
|
-
return /* @__PURE__ */
|
|
1761
|
-
className: [
|
|
1762
|
-
ref:
|
|
1763
|
-
"data-testid":
|
|
2124
|
+
return /* @__PURE__ */ y("div", {
|
|
2125
|
+
className: [ue ? Y.field : Y.fieldInline, T].filter(Boolean).join(" "),
|
|
2126
|
+
ref: R,
|
|
2127
|
+
"data-testid": O,
|
|
1764
2128
|
children: [
|
|
1765
|
-
|
|
1766
|
-
htmlFor:
|
|
2129
|
+
ue && i && /* @__PURE__ */ v(Le, {
|
|
2130
|
+
htmlFor: oe,
|
|
1767
2131
|
className: E,
|
|
1768
2132
|
children: i
|
|
1769
2133
|
}),
|
|
1770
|
-
|
|
1771
|
-
ref:
|
|
1772
|
-
id:
|
|
2134
|
+
ue ? /* @__PURE__ */ y("button", {
|
|
2135
|
+
ref: z,
|
|
2136
|
+
id: oe,
|
|
1773
2137
|
type: "button",
|
|
1774
2138
|
role: "combobox",
|
|
1775
|
-
className: `${
|
|
1776
|
-
...
|
|
2139
|
+
className: `${Y.trigger} ${Y[c]} ${o ? Y.errorWrap : ""}`,
|
|
2140
|
+
...Te,
|
|
1777
2141
|
children: [
|
|
1778
|
-
|
|
1779
|
-
className:
|
|
1780
|
-
children:
|
|
2142
|
+
U?.icon && /* @__PURE__ */ v("span", {
|
|
2143
|
+
className: Y.icon,
|
|
2144
|
+
children: U.icon
|
|
1781
2145
|
}),
|
|
1782
|
-
/* @__PURE__ */
|
|
1783
|
-
className: `${
|
|
1784
|
-
children:
|
|
2146
|
+
/* @__PURE__ */ v("span", {
|
|
2147
|
+
className: `${Y.value} ${xe ? Y.placeholder : ""}`,
|
|
2148
|
+
children: we
|
|
1785
2149
|
}),
|
|
1786
|
-
/* @__PURE__ */
|
|
1787
|
-
className: `${
|
|
1788
|
-
children: /* @__PURE__ */
|
|
2150
|
+
/* @__PURE__ */ v("span", {
|
|
2151
|
+
className: `${Y.chevron} ${j ? Y.chevronOpen : ""}`,
|
|
2152
|
+
children: /* @__PURE__ */ v(de, {})
|
|
1789
2153
|
})
|
|
1790
2154
|
]
|
|
1791
|
-
}) : t === "pill" ? /* @__PURE__ */
|
|
1792
|
-
ref:
|
|
1793
|
-
id:
|
|
2155
|
+
}) : t === "pill" ? /* @__PURE__ */ y("button", {
|
|
2156
|
+
ref: z,
|
|
2157
|
+
id: oe,
|
|
1794
2158
|
type: "button",
|
|
1795
|
-
className:
|
|
1796
|
-
...
|
|
2159
|
+
className: Y.pillTrigger,
|
|
2160
|
+
...Te,
|
|
1797
2161
|
children: [
|
|
1798
|
-
|
|
1799
|
-
className:
|
|
1800
|
-
children:
|
|
2162
|
+
U?.icon && /* @__PURE__ */ v("span", {
|
|
2163
|
+
className: Y.pillIcon,
|
|
2164
|
+
children: U.icon
|
|
1801
2165
|
}),
|
|
1802
|
-
|
|
1803
|
-
/* @__PURE__ */
|
|
1804
|
-
className: `${
|
|
1805
|
-
children: /* @__PURE__ */
|
|
2166
|
+
we,
|
|
2167
|
+
/* @__PURE__ */ v("span", {
|
|
2168
|
+
className: `${Y.pillChevron} ${j ? Y.chevronOpen : ""}`,
|
|
2169
|
+
children: /* @__PURE__ */ v(de, {})
|
|
1806
2170
|
})
|
|
1807
2171
|
]
|
|
1808
|
-
}) : /* @__PURE__ */
|
|
1809
|
-
ref:
|
|
1810
|
-
id:
|
|
2172
|
+
}) : /* @__PURE__ */ v(k, {
|
|
2173
|
+
ref: z,
|
|
2174
|
+
id: oe,
|
|
1811
2175
|
variant: t,
|
|
1812
2176
|
size: c,
|
|
1813
|
-
className: c === "base" ?
|
|
1814
|
-
leadingIcon:
|
|
1815
|
-
trailingIcon: /* @__PURE__ */
|
|
1816
|
-
className: `${
|
|
1817
|
-
children: /* @__PURE__ */
|
|
2177
|
+
className: c === "base" ? Y.buttonTriggerBase : void 0,
|
|
2178
|
+
leadingIcon: U?.icon,
|
|
2179
|
+
trailingIcon: /* @__PURE__ */ v("span", {
|
|
2180
|
+
className: `${Y.buttonChevron} ${j ? Y.chevronOpen : ""}`,
|
|
2181
|
+
children: /* @__PURE__ */ v(de, {})
|
|
1818
2182
|
}),
|
|
1819
|
-
...
|
|
1820
|
-
children:
|
|
2183
|
+
...Te,
|
|
2184
|
+
children: we
|
|
1821
2185
|
}),
|
|
1822
|
-
|
|
1823
|
-
ref:
|
|
2186
|
+
ee && /* @__PURE__ */ v("div", {
|
|
2187
|
+
ref: re,
|
|
1824
2188
|
className: [
|
|
1825
|
-
|
|
1826
|
-
!
|
|
1827
|
-
!
|
|
1828
|
-
!
|
|
1829
|
-
|
|
1830
|
-
!j &&
|
|
2189
|
+
Y.menuWrap,
|
|
2190
|
+
!ue && Y.menuWrapAuto,
|
|
2191
|
+
!ue && A && Y.menuWrapMultiple,
|
|
2192
|
+
!ue && r === "end" && Y.menuWrapEnd,
|
|
2193
|
+
te && Y.menuWrapUp,
|
|
2194
|
+
!j && Y.menuWrapClosing
|
|
1831
2195
|
].filter(Boolean).join(" "),
|
|
1832
2196
|
onAnimationEnd: (e) => {
|
|
1833
|
-
j || e.target !== e.currentTarget || (
|
|
2197
|
+
j || e.target !== e.currentTarget || (N(!1), ne(!1));
|
|
1834
2198
|
},
|
|
1835
|
-
children: /* @__PURE__ */
|
|
2199
|
+
children: /* @__PURE__ */ y(Ht, {
|
|
1836
2200
|
role: "presentation",
|
|
1837
|
-
style:
|
|
1838
|
-
children: [b && /* @__PURE__ */
|
|
1839
|
-
ref:
|
|
2201
|
+
style: ue ? { width: "100%" } : void 0,
|
|
2202
|
+
children: [b && /* @__PURE__ */ v("input", {
|
|
2203
|
+
ref: ie,
|
|
1840
2204
|
type: "text",
|
|
1841
|
-
className:
|
|
1842
|
-
value:
|
|
2205
|
+
className: Y.search,
|
|
2206
|
+
value: P,
|
|
1843
2207
|
placeholder: x,
|
|
1844
2208
|
"aria-label": x,
|
|
1845
|
-
"aria-controls":
|
|
2209
|
+
"aria-controls": se,
|
|
1846
2210
|
autoComplete: "off",
|
|
1847
2211
|
spellCheck: !1,
|
|
1848
2212
|
onChange: (e) => {
|
|
1849
|
-
|
|
2213
|
+
F(e.target.value), L(null);
|
|
1850
2214
|
},
|
|
1851
|
-
onKeyDown:
|
|
1852
|
-
}), /* @__PURE__ */
|
|
1853
|
-
id:
|
|
2215
|
+
onKeyDown: ge
|
|
2216
|
+
}), /* @__PURE__ */ y("div", {
|
|
2217
|
+
id: se,
|
|
1854
2218
|
role: "listbox",
|
|
1855
2219
|
"aria-multiselectable": A || void 0,
|
|
1856
2220
|
"aria-label": i ?? D,
|
|
1857
|
-
ref:
|
|
1858
|
-
className:
|
|
1859
|
-
onMouseLeave: () =>
|
|
2221
|
+
ref: ae,
|
|
2222
|
+
className: Y.list,
|
|
2223
|
+
onMouseLeave: () => L(null),
|
|
1860
2224
|
onBlur: (e) => {
|
|
1861
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
2225
|
+
e.currentTarget.contains(e.relatedTarget) || L(null);
|
|
1862
2226
|
},
|
|
1863
|
-
children: [
|
|
2227
|
+
children: [I && le.length > 0 && /* @__PURE__ */ v("span", {
|
|
1864
2228
|
"aria-hidden": "true",
|
|
1865
|
-
className: `${
|
|
2229
|
+
className: `${Y.highlight} ${I.instant ? Y.highlightInstant : ""}`,
|
|
1866
2230
|
style: {
|
|
1867
|
-
transform: `translateY(${
|
|
1868
|
-
height:
|
|
2231
|
+
transform: `translateY(${I.top}px)`,
|
|
2232
|
+
height: I.height
|
|
1869
2233
|
}
|
|
1870
|
-
}),
|
|
1871
|
-
className:
|
|
2234
|
+
}), le.length === 0 ? /* @__PURE__ */ v("div", {
|
|
2235
|
+
className: Y.noResults,
|
|
1872
2236
|
role: "presentation",
|
|
1873
2237
|
children: S
|
|
1874
|
-
}) :
|
|
2238
|
+
}) : le.map((e, n) => /* @__PURE__ */ v(Gt, {
|
|
1875
2239
|
style: { "--i": Math.min(n, 8) },
|
|
1876
2240
|
"data-value": e.value,
|
|
1877
2241
|
role: "option",
|
|
1878
|
-
"aria-selected": A ?
|
|
2242
|
+
"aria-selected": A ? V.includes(e.value) : e.value === B,
|
|
1879
2243
|
size: t === "pill" ? "sm" : c,
|
|
1880
2244
|
icon: e.icon,
|
|
1881
|
-
leading: A ? /* @__PURE__ */
|
|
1882
|
-
checked:
|
|
2245
|
+
leading: A ? /* @__PURE__ */ v(qe, {
|
|
2246
|
+
checked: V.includes(e.value),
|
|
1883
2247
|
disabled: e.disabled
|
|
1884
2248
|
}) : void 0,
|
|
1885
|
-
selected: !A && e.value ===
|
|
2249
|
+
selected: !A && e.value === B,
|
|
1886
2250
|
disabled: e.disabled,
|
|
1887
|
-
onClick: () =>
|
|
1888
|
-
onMouseEnter: (t) => !e.disabled &&
|
|
1889
|
-
onFocus: (e) =>
|
|
1890
|
-
onKeyDown: (t) =>
|
|
2251
|
+
onClick: () => ye(e.value),
|
|
2252
|
+
onMouseEnter: (t) => !e.disabled && ve(t.currentTarget),
|
|
2253
|
+
onFocus: (e) => ve(e.currentTarget),
|
|
2254
|
+
onKeyDown: (t) => _e(t, e.value),
|
|
1891
2255
|
children: e.label
|
|
1892
2256
|
}, e.value))]
|
|
1893
2257
|
})]
|
|
1894
2258
|
})
|
|
1895
2259
|
}),
|
|
1896
|
-
|
|
1897
|
-
className:
|
|
2260
|
+
ue && o ? /* @__PURE__ */ v("span", {
|
|
2261
|
+
className: Y.errorText,
|
|
1898
2262
|
children: o
|
|
1899
|
-
}) :
|
|
1900
|
-
className:
|
|
2263
|
+
}) : ue && a ? /* @__PURE__ */ v("span", {
|
|
2264
|
+
className: Y.helperText,
|
|
1901
2265
|
children: a
|
|
1902
2266
|
}) : null
|
|
1903
2267
|
]
|
|
1904
2268
|
});
|
|
1905
2269
|
}
|
|
1906
|
-
var
|
|
2270
|
+
var Xt = {
|
|
1907
2271
|
item: "_item_5896s_2",
|
|
1908
2272
|
active: "_active_5896s_38",
|
|
1909
2273
|
inList: "_inList_5896s_41",
|
|
@@ -1914,41 +2278,41 @@ var Nt = {
|
|
|
1914
2278
|
glide: "_glide_5896s_115",
|
|
1915
2279
|
glideAnimated: "_glideAnimated_5896s_128",
|
|
1916
2280
|
glideVisible: "_glideVisible_5896s_134"
|
|
1917
|
-
},
|
|
1918
|
-
function
|
|
1919
|
-
let l = c(
|
|
1920
|
-
|
|
1921
|
-
n &&
|
|
1922
|
-
l &&
|
|
2281
|
+
}, Zt = "data-nav-item", Qt = r(!1);
|
|
2282
|
+
function $t({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
|
|
2283
|
+
let l = c(Qt), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
|
|
2284
|
+
Xt.item,
|
|
2285
|
+
n && Xt.active,
|
|
2286
|
+
l && Xt.inList,
|
|
1923
2287
|
a
|
|
1924
2288
|
].filter(Boolean).join(" ");
|
|
1925
|
-
return /* @__PURE__ */
|
|
2289
|
+
return /* @__PURE__ */ y(u, {
|
|
1926
2290
|
...d ? { type: "button" } : {},
|
|
1927
2291
|
...i === void 0 ? {} : { href: i },
|
|
1928
|
-
[
|
|
2292
|
+
[Zt]: "",
|
|
1929
2293
|
"aria-current": n ? "page" : void 0,
|
|
1930
2294
|
className: f,
|
|
1931
2295
|
...s,
|
|
1932
2296
|
children: [
|
|
1933
|
-
e && /* @__PURE__ */
|
|
1934
|
-
className:
|
|
2297
|
+
e && /* @__PURE__ */ v("span", {
|
|
2298
|
+
className: Xt.icon,
|
|
1935
2299
|
"aria-hidden": !0,
|
|
1936
2300
|
children: e
|
|
1937
2301
|
}),
|
|
1938
|
-
/* @__PURE__ */
|
|
1939
|
-
className:
|
|
2302
|
+
/* @__PURE__ */ v("span", {
|
|
2303
|
+
className: Xt.label,
|
|
1940
2304
|
children: o
|
|
1941
2305
|
}),
|
|
1942
|
-
t && /* @__PURE__ */
|
|
1943
|
-
className:
|
|
2306
|
+
t && /* @__PURE__ */ v("span", {
|
|
2307
|
+
className: Xt.trailing,
|
|
1944
2308
|
children: t
|
|
1945
2309
|
})
|
|
1946
2310
|
]
|
|
1947
2311
|
});
|
|
1948
2312
|
}
|
|
1949
|
-
function
|
|
2313
|
+
function en({ children: e, className: t, ...n }) {
|
|
1950
2314
|
let r = p(null), [i, a] = m(null), [o, c] = m(!1), [l, u] = m(!1), f = s((e) => {
|
|
1951
|
-
let t = r.current, n = e instanceof Element ? e.closest(`[${
|
|
2315
|
+
let t = r.current, n = e instanceof Element ? e.closest(`[${Zt}]`) : null;
|
|
1952
2316
|
if (!t || !n || !t.contains(n)) return;
|
|
1953
2317
|
if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
|
|
1954
2318
|
c(!1);
|
|
@@ -1962,22 +2326,22 @@ function Lt({ children: e, className: t, ...n }) {
|
|
|
1962
2326
|
}, [o]);
|
|
1963
2327
|
return d(() => {
|
|
1964
2328
|
o || u(!1);
|
|
1965
|
-
}, [o]), /* @__PURE__ */
|
|
2329
|
+
}, [o]), /* @__PURE__ */ v(Qt.Provider, {
|
|
1966
2330
|
value: !0,
|
|
1967
|
-
children: /* @__PURE__ */
|
|
2331
|
+
children: /* @__PURE__ */ y("div", {
|
|
1968
2332
|
ref: r,
|
|
1969
|
-
className: [
|
|
2333
|
+
className: [Xt.list, t].filter(Boolean).join(" "),
|
|
1970
2334
|
onMouseOver: (e) => f(e.target),
|
|
1971
2335
|
onMouseLeave: () => c(!1),
|
|
1972
2336
|
onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
|
|
1973
2337
|
onBlur: () => c(!1),
|
|
1974
2338
|
...n,
|
|
1975
|
-
children: [/* @__PURE__ */
|
|
2339
|
+
children: [/* @__PURE__ */ v("span", {
|
|
1976
2340
|
"aria-hidden": !0,
|
|
1977
2341
|
className: [
|
|
1978
|
-
|
|
1979
|
-
l &&
|
|
1980
|
-
o &&
|
|
2342
|
+
Xt.glide,
|
|
2343
|
+
l && Xt.glideAnimated,
|
|
2344
|
+
o && Xt.glideVisible
|
|
1981
2345
|
].filter(Boolean).join(" "),
|
|
1982
2346
|
style: i ? {
|
|
1983
2347
|
translate: `0 ${i.top}px`,
|
|
@@ -1989,8 +2353,8 @@ function Lt({ children: e, className: t, ...n }) {
|
|
|
1989
2353
|
}
|
|
1990
2354
|
//#endregion
|
|
1991
2355
|
//#region src/components/Logo.tsx
|
|
1992
|
-
function
|
|
1993
|
-
return /* @__PURE__ */
|
|
2356
|
+
function tn({ size: e = 40, "aria-label": t, ...n }) {
|
|
2357
|
+
return /* @__PURE__ */ y("svg", {
|
|
1994
2358
|
width: e,
|
|
1995
2359
|
height: e,
|
|
1996
2360
|
viewBox: "0 0 32 32",
|
|
@@ -2001,16 +2365,16 @@ function Rt({ size: e = 40, "aria-label": t, ...n }) {
|
|
|
2001
2365
|
"aria-hidden": !t || void 0,
|
|
2002
2366
|
style: { flexShrink: 0 },
|
|
2003
2367
|
...n,
|
|
2004
|
-
children: [/* @__PURE__ */
|
|
2368
|
+
children: [/* @__PURE__ */ v("path", {
|
|
2005
2369
|
d: "M11.9756 25.8377C12.3367 25.9862 12.7512 26.126 13.219 26.2571C14.7761 26.6931 16.511 26.713 18.0514 26.4307C19.8961 26.0918 21.607 25.1684 23.047 23.9836C23.0663 23.9677 23.0909 23.9598 23.116 23.9616C23.1411 23.9633 23.1646 23.9746 23.1819 23.993C24.2736 25.1608 25.303 26.2811 26.27 27.3541C26.3725 27.4677 26.4805 27.596 26.5942 27.7389C26.6276 27.7814 26.6238 27.8205 26.5826 27.856C22.9929 30.9382 18.8699 32.2464 14.2135 31.7807C13.501 31.7089 12.8167 31.5883 12.1607 31.4189C9.07363 30.6213 6.46832 29.0666 4.34474 26.7548C2.36688 24.6027 1.082 22.1058 0.490104 19.2641C0.0843527 17.312 0.064832 15.2742 0.431542 13.1507C0.550061 12.4667 0.72261 11.7936 0.949189 11.1313C1.9308 8.26455 3.54265 5.89034 5.78474 4.00869C8.23111 1.95483 11.0341 0.739668 14.1936 0.363198C14.9528 0.273263 15.8421 0.249559 16.8613 0.292087C19.6127 0.408165 22.2992 1.30437 24.5779 2.79248C25.4159 3.33976 26.1103 3.86891 26.6611 4.37993C26.7643 4.47544 26.7705 4.57339 26.6799 4.67379C25.5519 5.91823 24.4298 7.1198 23.3136 8.27849C23.2662 8.32869 23.2167 8.33078 23.1651 8.28477C21.425 6.7517 19.4304 5.8527 17.1813 5.58777C16.8202 5.54525 16.3908 5.52677 15.893 5.53235C15.4091 5.53723 14.9926 5.56337 14.6433 5.61078C11.6525 6.01549 9.18657 7.53287 7.36906 9.96006C7.1125 10.3024 6.89638 10.6496 6.72069 11.0016C6.19642 12.0509 5.85063 12.9844 5.68331 13.8022C5.13882 16.4695 5.54039 19.011 6.88801 21.4267C7.02326 21.6686 7.16932 21.8938 7.32618 22.1023C7.48374 22.3128 7.64618 22.5188 7.8135 22.7203C8.98753 24.1377 10.3749 25.1768 11.9756 25.8377Z",
|
|
2006
2370
|
fill: "#4CD5FF"
|
|
2007
|
-
}), /* @__PURE__ */
|
|
2371
|
+
}), /* @__PURE__ */ v("path", {
|
|
2008
2372
|
d: "M22.7137 8.75536C22.7528 8.79022 22.7545 8.82716 22.719 8.86621L19.4416 12.404C19.4318 12.4144 19.4183 12.4206 19.404 12.4212C19.3898 12.4218 19.3758 12.4167 19.3652 12.4071C18.3285 11.4527 17.1106 11.0142 15.7114 11.0916C14.9577 11.1334 14.2787 11.3171 13.6743 11.6427C12.5149 12.268 11.7215 13.2082 11.2941 14.4631C10.3586 17.2158 12.1855 20.081 14.9093 20.8296C15.405 20.9656 15.9951 20.9872 16.6797 20.8944C17.5791 20.7721 18.4356 20.2931 19.1707 19.7818C19.2012 19.7606 19.2383 19.7511 19.2752 19.7551C19.3121 19.7592 19.3463 19.7764 19.3715 19.8037L22.5872 23.3039C22.5903 23.3073 22.5926 23.3113 22.5941 23.3156C22.5956 23.3199 22.5962 23.3245 22.5959 23.3291C22.5956 23.3337 22.5944 23.3381 22.5924 23.3422C22.5904 23.3463 22.5875 23.35 22.5841 23.353C22.2201 23.6521 21.8252 23.9432 21.3992 24.2262C19.9401 25.1953 18.317 25.7321 16.5302 25.8367C14.6925 25.944 12.9516 25.5557 11.3077 24.6717C9.89595 23.9118 8.74528 22.8824 7.85569 21.5836C7.20673 20.6358 6.71757 19.6553 6.43347 18.5363C5.98658 16.7892 5.99634 15.0511 6.46275 13.3222C6.58406 12.8746 6.77334 12.4239 6.92079 11.971C7.33525 10.7022 8.49587 9.44393 9.45674 8.59536C13.1735 5.30973 19.0593 5.44583 22.7137 8.75536Z",
|
|
2009
2373
|
fill: "#008CD8"
|
|
2010
2374
|
})]
|
|
2011
2375
|
});
|
|
2012
2376
|
}
|
|
2013
|
-
var
|
|
2377
|
+
var X = {
|
|
2014
2378
|
root: "_root_3r74y_1",
|
|
2015
2379
|
top: "_top_3r74y_13",
|
|
2016
2380
|
header: "_header_3r74y_18",
|
|
@@ -2031,91 +2395,91 @@ var Y = {
|
|
|
2031
2395
|
};
|
|
2032
2396
|
//#endregion
|
|
2033
2397
|
//#region src/components/Sidebar.tsx
|
|
2034
|
-
function
|
|
2035
|
-
return /* @__PURE__ */
|
|
2036
|
-
className: [
|
|
2398
|
+
function nn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
|
|
2399
|
+
return /* @__PURE__ */ y("aside", {
|
|
2400
|
+
className: [X.root, o].filter(Boolean).join(" "),
|
|
2037
2401
|
children: [
|
|
2038
|
-
/* @__PURE__ */
|
|
2039
|
-
className: [
|
|
2040
|
-
children: [/* @__PURE__ */
|
|
2041
|
-
className:
|
|
2402
|
+
/* @__PURE__ */ y("div", {
|
|
2403
|
+
className: [X.top, i === "flush" && X.flush].filter(Boolean).join(" "),
|
|
2404
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2405
|
+
className: X.header,
|
|
2042
2406
|
children: e
|
|
2043
|
-
}), t && /* @__PURE__ */
|
|
2044
|
-
className:
|
|
2407
|
+
}), t && /* @__PURE__ */ v("div", {
|
|
2408
|
+
className: X.switcher,
|
|
2045
2409
|
children: t
|
|
2046
2410
|
})]
|
|
2047
2411
|
}),
|
|
2048
|
-
/* @__PURE__ */
|
|
2412
|
+
/* @__PURE__ */ v("nav", {
|
|
2049
2413
|
"aria-label": a,
|
|
2050
|
-
className:
|
|
2414
|
+
className: X.nav,
|
|
2051
2415
|
children: n
|
|
2052
2416
|
}),
|
|
2053
|
-
r && /* @__PURE__ */
|
|
2054
|
-
className:
|
|
2417
|
+
r && /* @__PURE__ */ v("div", {
|
|
2418
|
+
className: X.footer,
|
|
2055
2419
|
children: r
|
|
2056
2420
|
})
|
|
2057
2421
|
]
|
|
2058
2422
|
});
|
|
2059
2423
|
}
|
|
2060
|
-
function
|
|
2061
|
-
return /* @__PURE__ */
|
|
2062
|
-
className:
|
|
2063
|
-
children: [/* @__PURE__ */
|
|
2064
|
-
className:
|
|
2065
|
-
children: [/* @__PURE__ */
|
|
2066
|
-
className:
|
|
2424
|
+
function rn({ title: e, subtitle: t, action: n }) {
|
|
2425
|
+
return /* @__PURE__ */ y("div", {
|
|
2426
|
+
className: X.footerRow,
|
|
2427
|
+
children: [/* @__PURE__ */ y("div", {
|
|
2428
|
+
className: X.footerText,
|
|
2429
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2430
|
+
className: X.title,
|
|
2067
2431
|
children: e
|
|
2068
|
-
}), t && /* @__PURE__ */
|
|
2069
|
-
className:
|
|
2432
|
+
}), t && /* @__PURE__ */ v("div", {
|
|
2433
|
+
className: X.subtitle,
|
|
2070
2434
|
children: t
|
|
2071
2435
|
})]
|
|
2072
|
-
}), n && /* @__PURE__ */
|
|
2073
|
-
className:
|
|
2436
|
+
}), n && /* @__PURE__ */ v("div", {
|
|
2437
|
+
className: X.action,
|
|
2074
2438
|
children: n
|
|
2075
2439
|
})]
|
|
2076
2440
|
});
|
|
2077
2441
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return /* @__PURE__ */
|
|
2442
|
+
function an({ items: e, value: t, onChange: n, "aria-label": r }) {
|
|
2443
|
+
return /* @__PURE__ */ v("div", {
|
|
2080
2444
|
role: "group",
|
|
2081
2445
|
"aria-label": r,
|
|
2082
|
-
className:
|
|
2083
|
-
children: e.map((e, r) => /* @__PURE__ */
|
|
2084
|
-
className:
|
|
2085
|
-
children: [r > 0 && /* @__PURE__ */
|
|
2446
|
+
className: X.lang,
|
|
2447
|
+
children: e.map((e, r) => /* @__PURE__ */ y("span", {
|
|
2448
|
+
className: X.langItem,
|
|
2449
|
+
children: [r > 0 && /* @__PURE__ */ v("span", {
|
|
2086
2450
|
"aria-hidden": !0,
|
|
2087
|
-
className:
|
|
2451
|
+
className: X.langSeparator,
|
|
2088
2452
|
children: "|"
|
|
2089
|
-
}), e.value === t ? /* @__PURE__ */
|
|
2453
|
+
}), e.value === t ? /* @__PURE__ */ v("span", {
|
|
2090
2454
|
lang: e.lang,
|
|
2091
2455
|
"aria-current": "true",
|
|
2092
|
-
className:
|
|
2456
|
+
className: X.langCurrent,
|
|
2093
2457
|
children: e.label
|
|
2094
|
-
}) : /* @__PURE__ */
|
|
2458
|
+
}) : /* @__PURE__ */ v("button", {
|
|
2095
2459
|
type: "button",
|
|
2096
2460
|
lang: e.lang,
|
|
2097
|
-
className:
|
|
2461
|
+
className: X.langButton,
|
|
2098
2462
|
onClick: () => n(e.value),
|
|
2099
2463
|
children: e.label
|
|
2100
2464
|
})]
|
|
2101
2465
|
}, e.value))
|
|
2102
2466
|
});
|
|
2103
2467
|
}
|
|
2104
|
-
var
|
|
2468
|
+
var on = { highlight: "_highlight_1pz29_1" };
|
|
2105
2469
|
//#endregion
|
|
2106
2470
|
//#region src/components/HighlightText.tsx
|
|
2107
|
-
function
|
|
2471
|
+
function sn(e) {
|
|
2108
2472
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2109
2473
|
}
|
|
2110
|
-
function
|
|
2111
|
-
if (!n) return /* @__PURE__ */ _
|
|
2112
|
-
let r = e.split(RegExp(`(${
|
|
2113
|
-
return /* @__PURE__ */ _
|
|
2114
|
-
className:
|
|
2474
|
+
function cn({ text: e, query: n }) {
|
|
2475
|
+
if (!n) return /* @__PURE__ */ v(_, { children: e });
|
|
2476
|
+
let r = e.split(RegExp(`(${sn(n)})`, "ig"));
|
|
2477
|
+
return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
|
|
2478
|
+
className: on.highlight,
|
|
2115
2479
|
children: e
|
|
2116
|
-
}, r) : /* @__PURE__ */
|
|
2480
|
+
}, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
|
|
2117
2481
|
}
|
|
2118
|
-
var
|
|
2482
|
+
var ln = {
|
|
2119
2483
|
group: "_group_9b7ud_1",
|
|
2120
2484
|
btn: "_btn_9b7ud_4",
|
|
2121
2485
|
caret: "_caret_9b7ud_29",
|
|
@@ -2137,37 +2501,37 @@ var Gt = {
|
|
|
2137
2501
|
};
|
|
2138
2502
|
//#endregion
|
|
2139
2503
|
//#region src/components/FilterSection.tsx
|
|
2140
|
-
function
|
|
2504
|
+
function un({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
|
|
2141
2505
|
let [s, c] = m(""), l = s.trim().toLowerCase(), u = l ? t.filter((e) => n(e).toLowerCase().includes(l)) : t, d = t.length > 0 && r.size === t.length;
|
|
2142
|
-
return /* @__PURE__ */
|
|
2143
|
-
/* @__PURE__ */
|
|
2144
|
-
className:
|
|
2145
|
-
children: [/* @__PURE__ */
|
|
2146
|
-
className:
|
|
2506
|
+
return /* @__PURE__ */ y("div", { children: [
|
|
2507
|
+
/* @__PURE__ */ y("div", {
|
|
2508
|
+
className: ln.sectionHeader,
|
|
2509
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2510
|
+
className: ln.sectionLabel,
|
|
2147
2511
|
children: e
|
|
2148
|
-
}), a && /* @__PURE__ */
|
|
2512
|
+
}), a && /* @__PURE__ */ v("button", {
|
|
2149
2513
|
type: "button",
|
|
2150
|
-
className:
|
|
2514
|
+
className: ln.allToggle,
|
|
2151
2515
|
onClick: () => a(d ? [] : t),
|
|
2152
2516
|
children: d ? "Deselect all" : "Select all"
|
|
2153
2517
|
})]
|
|
2154
2518
|
}),
|
|
2155
|
-
o && /* @__PURE__ */
|
|
2519
|
+
o && /* @__PURE__ */ v("input", {
|
|
2156
2520
|
type: "text",
|
|
2157
|
-
className:
|
|
2521
|
+
className: ln.search,
|
|
2158
2522
|
placeholder: `Search ${e.toLowerCase()}…`,
|
|
2159
2523
|
autoComplete: "off",
|
|
2160
2524
|
value: s,
|
|
2161
2525
|
onClick: (e) => e.stopPropagation(),
|
|
2162
2526
|
onChange: (e) => c(e.target.value)
|
|
2163
2527
|
}),
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
className:
|
|
2166
|
-
children: [u.length === 0 && /* @__PURE__ */
|
|
2167
|
-
className:
|
|
2528
|
+
/* @__PURE__ */ y("div", {
|
|
2529
|
+
className: ln.optionsList,
|
|
2530
|
+
children: [u.length === 0 && /* @__PURE__ */ v("div", {
|
|
2531
|
+
className: ln.empty,
|
|
2168
2532
|
children: "No match"
|
|
2169
|
-
}), u.map((e) => /* @__PURE__ */
|
|
2170
|
-
className:
|
|
2533
|
+
}), u.map((e) => /* @__PURE__ */ v(Ke, {
|
|
2534
|
+
className: ln.option,
|
|
2171
2535
|
checked: r.has(e),
|
|
2172
2536
|
onChange: () => i(e),
|
|
2173
2537
|
label: n(e)
|
|
@@ -2175,7 +2539,7 @@ function Kt({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
|
|
|
2175
2539
|
})
|
|
2176
2540
|
] });
|
|
2177
2541
|
}
|
|
2178
|
-
var
|
|
2542
|
+
var dn = {
|
|
2179
2543
|
line: "_line_vczwq_1",
|
|
2180
2544
|
box: "_box_vczwq_2",
|
|
2181
2545
|
indicator: "_indicator_vczwq_9",
|
|
@@ -2191,7 +2555,7 @@ var X = {
|
|
|
2191
2555
|
};
|
|
2192
2556
|
//#endregion
|
|
2193
2557
|
//#region src/components/Tabs.tsx
|
|
2194
|
-
function
|
|
2558
|
+
function fn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
|
|
2195
2559
|
let o = e.filter((e) => !e.disabled).map((e) => e.value), s = p(null), c = p(/* @__PURE__ */ new Map()), l = p(t), [u, f] = m(null), [h, g] = m("idle");
|
|
2196
2560
|
d(() => {
|
|
2197
2561
|
let e = c.current.get(t);
|
|
@@ -2205,7 +2569,7 @@ function qt({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2205
2569
|
r,
|
|
2206
2570
|
i
|
|
2207
2571
|
]);
|
|
2208
|
-
function
|
|
2572
|
+
function _(e) {
|
|
2209
2573
|
e.propertyName === "scale" && (h === "moving" ? g("settling") : h === "settling" && g("idle"));
|
|
2210
2574
|
}
|
|
2211
2575
|
d(() => {
|
|
@@ -2226,24 +2590,24 @@ function qt({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2226
2590
|
let i = null;
|
|
2227
2591
|
e.key === "ArrowRight" && (i = (r + 1) % o.length), e.key === "ArrowLeft" && (i = (r - 1 + o.length) % o.length), e.key === "Home" && (i = 0), e.key === "End" && (i = o.length - 1), i !== null && (e.preventDefault(), n(o[i]));
|
|
2228
2592
|
}
|
|
2229
|
-
return /* @__PURE__ */
|
|
2593
|
+
return /* @__PURE__ */ y("div", {
|
|
2230
2594
|
ref: s,
|
|
2231
2595
|
role: "tablist",
|
|
2232
2596
|
className: [
|
|
2233
|
-
|
|
2234
|
-
r === "box" && i === "sm" &&
|
|
2235
|
-
r === "box" && i === "lg" &&
|
|
2597
|
+
dn[r],
|
|
2598
|
+
r === "box" && i === "sm" && dn.sm,
|
|
2599
|
+
r === "box" && i === "lg" && dn.lg
|
|
2236
2600
|
].filter(Boolean).join(" "),
|
|
2237
2601
|
onKeyDown: b,
|
|
2238
2602
|
...a,
|
|
2239
|
-
children: [u && /* @__PURE__ */
|
|
2603
|
+
children: [u && /* @__PURE__ */ v("span", {
|
|
2240
2604
|
"aria-hidden": !0,
|
|
2241
2605
|
className: [
|
|
2242
|
-
|
|
2243
|
-
r === "line" ?
|
|
2244
|
-
h === "settling" &&
|
|
2606
|
+
dn.indicator,
|
|
2607
|
+
r === "line" ? dn.indicatorLine : dn.indicatorBox,
|
|
2608
|
+
h === "settling" && dn.settling
|
|
2245
2609
|
].filter(Boolean).join(" "),
|
|
2246
|
-
onTransitionEnd:
|
|
2610
|
+
onTransitionEnd: _,
|
|
2247
2611
|
style: {
|
|
2248
2612
|
translate: `${u.left}px 0`,
|
|
2249
2613
|
scale: r === "box" && h === "moving" ? .92 : 1,
|
|
@@ -2251,7 +2615,7 @@ function qt({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2251
2615
|
}
|
|
2252
2616
|
}), e.map((e) => {
|
|
2253
2617
|
let r = e.value === t, i = !e.label && !!e.icon;
|
|
2254
|
-
return /* @__PURE__ */
|
|
2618
|
+
return /* @__PURE__ */ y("button", {
|
|
2255
2619
|
ref: (t) => {
|
|
2256
2620
|
t ? c.current.set(e.value, t) : c.current.delete(e.value);
|
|
2257
2621
|
},
|
|
@@ -2262,34 +2626,34 @@ function qt({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2262
2626
|
disabled: e.disabled,
|
|
2263
2627
|
tabIndex: r ? 0 : -1,
|
|
2264
2628
|
className: [
|
|
2265
|
-
|
|
2266
|
-
r &&
|
|
2267
|
-
i &&
|
|
2629
|
+
dn.tab,
|
|
2630
|
+
r && dn.selected,
|
|
2631
|
+
i && dn.iconOnly
|
|
2268
2632
|
].filter(Boolean).join(" "),
|
|
2269
2633
|
onClick: () => !e.disabled && n(e.value),
|
|
2270
|
-
children: [e.icon && /* @__PURE__ */
|
|
2271
|
-
className:
|
|
2634
|
+
children: [e.icon && /* @__PURE__ */ v("span", {
|
|
2635
|
+
className: dn.icon,
|
|
2272
2636
|
children: e.icon
|
|
2273
2637
|
}), e.label]
|
|
2274
2638
|
}, e.value);
|
|
2275
2639
|
})]
|
|
2276
2640
|
});
|
|
2277
2641
|
}
|
|
2278
|
-
var
|
|
2642
|
+
var pn = {
|
|
2279
2643
|
root: "_root_16e39_1",
|
|
2280
2644
|
label: "_label_16e39_7"
|
|
2281
2645
|
};
|
|
2282
2646
|
//#endregion
|
|
2283
2647
|
//#region src/components/Toggle.tsx
|
|
2284
|
-
function
|
|
2648
|
+
function mn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
|
|
2285
2649
|
let a = u();
|
|
2286
|
-
return /* @__PURE__ */
|
|
2287
|
-
className:
|
|
2288
|
-
children: [r && /* @__PURE__ */
|
|
2650
|
+
return /* @__PURE__ */ y("div", {
|
|
2651
|
+
className: pn.root,
|
|
2652
|
+
children: [r && /* @__PURE__ */ v("span", {
|
|
2289
2653
|
id: a,
|
|
2290
|
-
className:
|
|
2654
|
+
className: pn.label,
|
|
2291
2655
|
children: r
|
|
2292
|
-
}), /* @__PURE__ */
|
|
2656
|
+
}), /* @__PURE__ */ v(fn, {
|
|
2293
2657
|
items: e,
|
|
2294
2658
|
value: t,
|
|
2295
2659
|
onChange: n,
|
|
@@ -2300,7 +2664,7 @@ function Yt({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
|
|
|
2300
2664
|
})]
|
|
2301
2665
|
});
|
|
2302
2666
|
}
|
|
2303
|
-
var
|
|
2667
|
+
var hn = {
|
|
2304
2668
|
spinner: "_spinner_9jjxr_3",
|
|
2305
2669
|
inner: "_inner_9jjxr_11",
|
|
2306
2670
|
outer: "_outer_9jjxr_12",
|
|
@@ -2311,13 +2675,13 @@ var Xt = {
|
|
|
2311
2675
|
};
|
|
2312
2676
|
//#endregion
|
|
2313
2677
|
//#region src/components/Spinner.tsx
|
|
2314
|
-
function
|
|
2678
|
+
function gn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
|
|
2315
2679
|
let a = [
|
|
2316
|
-
|
|
2317
|
-
|
|
2680
|
+
hn.spinner,
|
|
2681
|
+
hn[e],
|
|
2318
2682
|
r
|
|
2319
2683
|
].filter(Boolean).join(" ");
|
|
2320
|
-
return /* @__PURE__ */
|
|
2684
|
+
return /* @__PURE__ */ y("div", {
|
|
2321
2685
|
role: "status",
|
|
2322
2686
|
"aria-label": n,
|
|
2323
2687
|
className: a,
|
|
@@ -2326,22 +2690,22 @@ function Zt({ variant: e = "default", size: t = 64, label: n = "Loading", classN
|
|
|
2326
2690
|
height: t
|
|
2327
2691
|
},
|
|
2328
2692
|
"data-testid": i,
|
|
2329
|
-
children: [/* @__PURE__ */
|
|
2330
|
-
className:
|
|
2693
|
+
children: [/* @__PURE__ */ v("svg", {
|
|
2694
|
+
className: hn.inner,
|
|
2331
2695
|
width: t,
|
|
2332
2696
|
height: t,
|
|
2333
2697
|
viewBox: "0 0 64 64",
|
|
2334
2698
|
fill: "none",
|
|
2335
2699
|
"aria-hidden": "true",
|
|
2336
|
-
children: /* @__PURE__ */
|
|
2337
|
-
}), /* @__PURE__ */
|
|
2338
|
-
className:
|
|
2700
|
+
children: /* @__PURE__ */ v("path", { d: "M45.4273 17.5099C45.5053 17.5796 45.5088 17.6535 45.4377 17.7316L38.8829 24.8071C38.8634 24.828 38.8365 24.8404 38.8079 24.8416C38.7793 24.8428 38.7514 24.8326 38.7303 24.8134C36.6569 22.9045 34.221 22.0275 31.4225 22.1823C29.9153 22.2659 28.5572 22.6333 27.3483 23.2845C25.0295 24.5352 23.4428 26.4155 22.588 28.9253C20.717 34.4308 24.3708 40.1612 29.8184 41.6584C30.8097 41.9302 31.99 41.9735 33.3593 41.788C35.158 41.5433 36.8709 40.5854 38.3412 39.5627C38.4022 39.5203 38.4764 39.5014 38.5502 39.5094C38.6241 39.5175 38.6925 39.552 38.7428 39.6066L45.1742 46.6069C45.1803 46.6137 45.185 46.6217 45.188 46.6303C45.191 46.639 45.1923 46.6482 45.1917 46.6573C45.1911 46.6665 45.1887 46.6754 45.1846 46.6836C45.1805 46.6918 45.1748 46.6992 45.1679 46.7052C44.4401 47.3033 43.6502 47.8855 42.7982 48.4516C39.8799 50.3897 36.6339 51.4633 33.0602 51.6725C29.3847 51.8872 25.9031 51.1106 22.6152 49.3425C19.7917 47.8227 17.4903 45.764 15.7112 43.1663C14.4132 41.2707 13.4349 39.3097 12.8667 37.0717C11.973 33.5775 11.9925 30.1014 12.9253 26.6435C13.1679 25.7483 13.5465 24.8469 13.8414 23.9412C14.6703 21.4035 16.9915 18.887 18.9133 17.1899C26.3467 10.6186 38.1184 10.8908 45.4273 17.5099Z" })
|
|
2701
|
+
}), /* @__PURE__ */ v("svg", {
|
|
2702
|
+
className: hn.outer,
|
|
2339
2703
|
width: t,
|
|
2340
2704
|
height: t,
|
|
2341
2705
|
viewBox: "0 0 64 64",
|
|
2342
2706
|
fill: "none",
|
|
2343
2707
|
"aria-hidden": "true",
|
|
2344
|
-
children: /* @__PURE__ */
|
|
2708
|
+
children: /* @__PURE__ */ v("path", { d: "M23.9528 51.6749C24.675 51.9719 25.504 52.2515 26.4396 52.5136C29.5538 53.3858 33.0236 53.4255 36.1044 52.8608C39.7938 52.1832 43.2155 50.3364 46.0955 47.9667C46.1341 47.9349 46.1835 47.9192 46.2336 47.9227C46.2837 47.9262 46.3308 47.9487 46.3653 47.9855C48.5489 50.321 50.6076 52.5617 52.5415 54.7076C52.7465 54.9349 52.9626 55.1914 53.1899 55.4773C53.2568 55.5623 53.2492 55.6404 53.1669 55.7115C45.9875 61.8759 37.7414 64.4924 28.4286 63.5609C27.0036 63.4173 25.635 63.1761 24.323 62.8373C18.1489 61.2422 12.9382 58.1328 8.69108 53.5092C4.73535 49.2049 2.16559 44.2111 0.981796 38.5277C0.170292 34.6236 0.131251 30.548 0.864671 26.3008C1.10171 24.933 1.44681 23.5867 1.89997 22.2621C3.86319 16.5286 7.08689 11.7802 11.5711 8.01689C16.4638 3.90918 22.0697 1.47885 28.3889 0.725907C29.9073 0.546038 31.6858 0.498631 33.7243 0.583685C39.227 0.815842 44.6001 2.60826 49.1575 5.58447C50.8335 6.67902 52.2222 7.73732 53.3238 8.75937C53.5301 8.9504 53.5427 9.1463 53.3614 9.34708C51.1054 11.836 48.8612 14.2391 46.6289 16.5565C46.534 16.6569 46.435 16.6611 46.3319 16.569C42.8516 13.5029 38.8624 11.7049 34.3643 11.1751C33.642 11.09 32.7831 11.0531 31.7875 11.0642C30.8199 11.074 29.9868 11.1263 29.2882 11.2211C23.3065 12.0305 18.3747 15.0653 14.7397 19.9196C14.2266 20.6043 13.7943 21.2986 13.443 22.0028C12.3944 24.1012 11.7028 25.9683 11.3682 27.6038C10.2792 32.9385 11.0824 38.0216 13.7776 42.853C14.0481 43.3368 14.3402 43.7872 14.654 44.2041C14.9691 44.6252 15.294 45.0372 15.6286 45.4402C17.9767 48.2748 20.7514 50.3531 23.9528 51.6749Z" })
|
|
2345
2709
|
})]
|
|
2346
2710
|
});
|
|
2347
2711
|
}
|
|
@@ -2367,129 +2731,129 @@ var Z = {
|
|
|
2367
2731
|
sheet: "_sheet_p7w84_206",
|
|
2368
2732
|
fullscreen: "_fullscreen_p7w84_212",
|
|
2369
2733
|
instant: "_instant_p7w84_222"
|
|
2370
|
-
},
|
|
2371
|
-
function
|
|
2372
|
-
let t = c(
|
|
2734
|
+
}, _n = 200, vn = "(max-width: 639px)", yn = "(prefers-reduced-motion: reduce)", bn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", xn = r(null);
|
|
2735
|
+
function Sn(e) {
|
|
2736
|
+
let t = c(xn);
|
|
2373
2737
|
if (!t) throw Error(`${e} must be rendered inside <Modal>`);
|
|
2374
2738
|
return t;
|
|
2375
2739
|
}
|
|
2376
|
-
var
|
|
2377
|
-
function
|
|
2740
|
+
var Cn = [];
|
|
2741
|
+
function wn(e) {
|
|
2378
2742
|
let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
|
|
2379
2743
|
return l(() => {
|
|
2380
2744
|
let t = window.matchMedia(e), r = () => n(t.matches);
|
|
2381
2745
|
return r(), t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
2382
2746
|
}, [e]), t;
|
|
2383
2747
|
}
|
|
2384
|
-
function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", onSubmit: i, dismissible: a = !0, instantInitialOpen: o = !1, portalSelector: c = "#container", isTop: d = !0, role: f = "dialog", "aria-labelledby":
|
|
2385
|
-
let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M =
|
|
2386
|
-
|
|
2748
|
+
function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", onSubmit: i, dismissible: a = !0, instantInitialOpen: o = !1, portalSelector: c = "#container", isTop: d = !0, role: f = "dialog", "aria-labelledby": h, "data-testid": _, className: y, children: b }) {
|
|
2749
|
+
let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M = wn(vn), ee = wn(yn), N = p(null), P = p(null), F = p(!1), te = p(!1), ne = p(Symbol("modal")), I = p(e), L = p(t);
|
|
2750
|
+
L.current = t, l(() => T(!0), []), l(() => {
|
|
2387
2751
|
if (e) {
|
|
2388
|
-
if (
|
|
2389
|
-
if (
|
|
2752
|
+
if (F.current) return;
|
|
2753
|
+
if (P.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), I.current && o) {
|
|
2390
2754
|
k(!0);
|
|
2391
2755
|
return;
|
|
2392
2756
|
}
|
|
2393
2757
|
let e = requestAnimationFrame(() => k(!0));
|
|
2394
2758
|
return () => cancelAnimationFrame(e);
|
|
2395
2759
|
}
|
|
2396
|
-
if (
|
|
2397
|
-
let t = setTimeout(() => D(!1),
|
|
2760
|
+
if (F.current = !1, k(!1), !E) return;
|
|
2761
|
+
let t = setTimeout(() => D(!1), ee ? 0 : _n);
|
|
2398
2762
|
return () => clearTimeout(t);
|
|
2399
2763
|
}, [e]), l(() => {
|
|
2400
|
-
!E &&
|
|
2764
|
+
!E && P.current && (P.current.focus?.(), P.current = null);
|
|
2401
2765
|
}, [E]);
|
|
2402
|
-
let
|
|
2403
|
-
if (!a ||
|
|
2404
|
-
|
|
2405
|
-
let e =
|
|
2406
|
-
window.setTimeout(() =>
|
|
2407
|
-
}, [a,
|
|
2766
|
+
let R = s(() => {
|
|
2767
|
+
if (!a || F.current) return;
|
|
2768
|
+
F.current = !0, k(!1);
|
|
2769
|
+
let e = ee ? 0 : _n;
|
|
2770
|
+
window.setTimeout(() => L.current(), e);
|
|
2771
|
+
}, [a, ee]);
|
|
2408
2772
|
l(() => {
|
|
2409
2773
|
if (!E) return;
|
|
2410
|
-
let e =
|
|
2411
|
-
d &&
|
|
2774
|
+
let e = ne.current;
|
|
2775
|
+
d && Cn.push(e);
|
|
2412
2776
|
let t = (t) => {
|
|
2413
|
-
t.key === "Escape" &&
|
|
2777
|
+
t.key === "Escape" && Cn[Cn.length - 1] === e && (t.preventDefault(), R());
|
|
2414
2778
|
};
|
|
2415
2779
|
document.addEventListener("keydown", t);
|
|
2416
2780
|
let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
|
|
2417
|
-
return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`),
|
|
2781
|
+
return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`), N.current?.focus({ preventScroll: !0 }), () => {
|
|
2418
2782
|
document.removeEventListener("keydown", t);
|
|
2419
|
-
let a =
|
|
2420
|
-
a !== -1 &&
|
|
2783
|
+
let a = Cn.indexOf(e);
|
|
2784
|
+
a !== -1 && Cn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
|
|
2421
2785
|
};
|
|
2422
2786
|
}, [
|
|
2423
2787
|
E,
|
|
2424
2788
|
d,
|
|
2425
|
-
|
|
2789
|
+
R
|
|
2426
2790
|
]);
|
|
2427
|
-
let
|
|
2428
|
-
if (e.key !== "Tab" || !
|
|
2429
|
-
let t = Array.from(
|
|
2791
|
+
let z = (e) => {
|
|
2792
|
+
if (e.key !== "Tab" || !N.current) return;
|
|
2793
|
+
let t = Array.from(N.current.querySelectorAll(bn));
|
|
2430
2794
|
if (t.length === 0) {
|
|
2431
2795
|
e.preventDefault();
|
|
2432
2796
|
return;
|
|
2433
2797
|
}
|
|
2434
2798
|
let n = t[0], r = t[t.length - 1], i = document.activeElement;
|
|
2435
|
-
e.shiftKey && (i === n || i ===
|
|
2799
|
+
e.shiftKey && (i === n || i === N.current) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
|
|
2436
2800
|
};
|
|
2437
2801
|
if (!w || !E) return null;
|
|
2438
|
-
let
|
|
2802
|
+
let re = document.querySelector(c) ?? document.body, ie = [
|
|
2439
2803
|
Z.modal,
|
|
2440
2804
|
Z[n],
|
|
2441
2805
|
Z[r],
|
|
2442
2806
|
O && Z.visible,
|
|
2443
2807
|
o && Z.instant,
|
|
2444
2808
|
y
|
|
2445
|
-
].filter(Boolean).join(" "),
|
|
2809
|
+
].filter(Boolean).join(" "), ae = {
|
|
2446
2810
|
role: f,
|
|
2447
2811
|
"aria-modal": !0,
|
|
2448
|
-
"aria-labelledby":
|
|
2812
|
+
"aria-labelledby": h ?? S,
|
|
2449
2813
|
"aria-describedby": A ? C : void 0,
|
|
2450
2814
|
tabIndex: -1,
|
|
2451
|
-
className:
|
|
2452
|
-
"data-testid":
|
|
2453
|
-
onKeyDown:
|
|
2454
|
-
},
|
|
2815
|
+
className: ie,
|
|
2816
|
+
"data-testid": _,
|
|
2817
|
+
onKeyDown: z
|
|
2818
|
+
}, oe = {
|
|
2455
2819
|
layout: n,
|
|
2456
|
-
titleId:
|
|
2820
|
+
titleId: h ?? S,
|
|
2457
2821
|
descriptionId: C,
|
|
2458
2822
|
isMobile: M,
|
|
2459
2823
|
dismissible: a,
|
|
2460
2824
|
setHasDescription: j,
|
|
2461
|
-
requestClose:
|
|
2825
|
+
requestClose: R
|
|
2462
2826
|
};
|
|
2463
|
-
return
|
|
2464
|
-
value:
|
|
2465
|
-
children: /* @__PURE__ */
|
|
2827
|
+
return g(/* @__PURE__ */ v(xn.Provider, {
|
|
2828
|
+
value: oe,
|
|
2829
|
+
children: /* @__PURE__ */ v("div", {
|
|
2466
2830
|
className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
|
|
2467
2831
|
onPointerDown: (e) => {
|
|
2468
|
-
|
|
2832
|
+
te.current = e.target !== e.currentTarget;
|
|
2469
2833
|
},
|
|
2470
2834
|
onClick: (e) => {
|
|
2471
|
-
e.target === e.currentTarget && !
|
|
2835
|
+
e.target === e.currentTarget && !te.current && R(), te.current = !1;
|
|
2472
2836
|
},
|
|
2473
|
-
children: i ? /* @__PURE__ */
|
|
2474
|
-
ref:
|
|
2837
|
+
children: i ? /* @__PURE__ */ v("form", {
|
|
2838
|
+
ref: N,
|
|
2475
2839
|
onSubmit: i,
|
|
2476
|
-
...
|
|
2840
|
+
...ae,
|
|
2477
2841
|
children: b
|
|
2478
|
-
}) : /* @__PURE__ */
|
|
2479
|
-
ref:
|
|
2480
|
-
...
|
|
2842
|
+
}) : /* @__PURE__ */ v("div", {
|
|
2843
|
+
ref: N,
|
|
2844
|
+
...ae,
|
|
2481
2845
|
children: b
|
|
2482
2846
|
})
|
|
2483
2847
|
})
|
|
2484
|
-
}),
|
|
2848
|
+
}), re);
|
|
2485
2849
|
}
|
|
2486
|
-
function
|
|
2487
|
-
let { requestClose: n, dismissible: r } =
|
|
2488
|
-
return /* @__PURE__ */
|
|
2850
|
+
function Tn({ children: e, onClose: t }) {
|
|
2851
|
+
let { requestClose: n, dismissible: r } = Sn("Modal.Cover");
|
|
2852
|
+
return /* @__PURE__ */ y("div", {
|
|
2489
2853
|
className: Z.cover,
|
|
2490
|
-
children: [e, t && /* @__PURE__ */
|
|
2854
|
+
children: [e, t && /* @__PURE__ */ v(k, {
|
|
2491
2855
|
variant: "tertiary",
|
|
2492
|
-
leadingIcon: /* @__PURE__ */
|
|
2856
|
+
leadingIcon: /* @__PURE__ */ v(ke, {}),
|
|
2493
2857
|
"aria-label": "Close",
|
|
2494
2858
|
"data-testid": "modal-close",
|
|
2495
2859
|
className: Z.closeButton,
|
|
@@ -2500,83 +2864,83 @@ function sn({ children: e, onClose: t }) {
|
|
|
2500
2864
|
})]
|
|
2501
2865
|
});
|
|
2502
2866
|
}
|
|
2503
|
-
function
|
|
2867
|
+
function En({ children: t }) {
|
|
2504
2868
|
let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
|
|
2505
|
-
return /* @__PURE__ */
|
|
2869
|
+
return /* @__PURE__ */ y("div", {
|
|
2506
2870
|
className: Z.message,
|
|
2507
|
-
children: [r, /* @__PURE__ */
|
|
2871
|
+
children: [r, /* @__PURE__ */ v("div", {
|
|
2508
2872
|
className: Z.content,
|
|
2509
2873
|
children: i
|
|
2510
2874
|
})]
|
|
2511
2875
|
});
|
|
2512
2876
|
}
|
|
2513
|
-
function
|
|
2514
|
-
return /* @__PURE__ */
|
|
2877
|
+
function Dn({ children: e, tone: t = "neutral" }) {
|
|
2878
|
+
return /* @__PURE__ */ v("div", {
|
|
2515
2879
|
className: `${Z.icon} ${Z[`tone-${t}`]}`,
|
|
2516
2880
|
"aria-hidden": "true",
|
|
2517
2881
|
children: e
|
|
2518
2882
|
});
|
|
2519
2883
|
}
|
|
2520
|
-
function
|
|
2521
|
-
let { titleId: n } =
|
|
2522
|
-
return /* @__PURE__ */
|
|
2884
|
+
function On({ children: e, id: t }) {
|
|
2885
|
+
let { titleId: n } = Sn("Modal.Title");
|
|
2886
|
+
return /* @__PURE__ */ v("h2", {
|
|
2523
2887
|
id: t ?? n,
|
|
2524
2888
|
className: Z.title,
|
|
2525
2889
|
children: e
|
|
2526
2890
|
});
|
|
2527
2891
|
}
|
|
2528
|
-
function
|
|
2529
|
-
let { descriptionId: t, setHasDescription: n } =
|
|
2530
|
-
return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */
|
|
2892
|
+
function kn({ children: e }) {
|
|
2893
|
+
let { descriptionId: t, setHasDescription: n } = Sn("Modal.Description");
|
|
2894
|
+
return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ v("p", {
|
|
2531
2895
|
id: t,
|
|
2532
2896
|
className: Z.description,
|
|
2533
2897
|
children: e
|
|
2534
2898
|
});
|
|
2535
2899
|
}
|
|
2536
|
-
function
|
|
2537
|
-
return /* @__PURE__ */
|
|
2900
|
+
function An({ children: e }) {
|
|
2901
|
+
return /* @__PURE__ */ v("p", {
|
|
2538
2902
|
className: Z.hint,
|
|
2539
2903
|
children: e
|
|
2540
2904
|
});
|
|
2541
2905
|
}
|
|
2542
|
-
function
|
|
2543
|
-
return /* @__PURE__ */
|
|
2906
|
+
function jn({ children: e }) {
|
|
2907
|
+
return /* @__PURE__ */ v("div", {
|
|
2544
2908
|
className: Z.body,
|
|
2545
2909
|
children: e
|
|
2546
2910
|
});
|
|
2547
2911
|
}
|
|
2548
|
-
function
|
|
2549
|
-
let { isMobile: r } =
|
|
2550
|
-
return /* @__PURE__ */
|
|
2912
|
+
function Mn({ children: t }) {
|
|
2913
|
+
let { isMobile: r } = Sn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
|
|
2914
|
+
return /* @__PURE__ */ v("div", {
|
|
2551
2915
|
className: Z.footer,
|
|
2552
2916
|
children: i
|
|
2553
2917
|
});
|
|
2554
2918
|
}
|
|
2555
|
-
Q.Cover =
|
|
2919
|
+
Q.Cover = Tn, Q.Message = En, Dn.isModalIcon = !0, Q.Icon = Dn, Q.Title = On, Q.Description = kn, Q.Hint = An, Q.Body = jn, Q.Footer = Mn;
|
|
2556
2920
|
//#endregion
|
|
2557
2921
|
//#region src/components/ConfirmDialog.tsx
|
|
2558
|
-
function
|
|
2922
|
+
function Nn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon: a, confirmLabel: o, cancelLabel: s = "Cancel", tone: c = "default", loading: l = !1, "data-testid": u }) {
|
|
2559
2923
|
let d = c === "dangerous";
|
|
2560
|
-
return /* @__PURE__ */
|
|
2924
|
+
return /* @__PURE__ */ y(Q, {
|
|
2561
2925
|
open: e,
|
|
2562
2926
|
onClose: t,
|
|
2563
2927
|
layout: "vertical",
|
|
2564
2928
|
dismissible: !l,
|
|
2565
2929
|
"data-testid": u,
|
|
2566
2930
|
role: d ? "alertdialog" : void 0,
|
|
2567
|
-
children: [/* @__PURE__ */
|
|
2568
|
-
a && /* @__PURE__ */
|
|
2931
|
+
children: [/* @__PURE__ */ y(Q.Message, { children: [
|
|
2932
|
+
a && /* @__PURE__ */ v(Q.Icon, {
|
|
2569
2933
|
tone: d ? "danger" : "neutral",
|
|
2570
2934
|
children: a
|
|
2571
2935
|
}),
|
|
2572
|
-
/* @__PURE__ */
|
|
2573
|
-
i && /* @__PURE__ */
|
|
2574
|
-
] }), /* @__PURE__ */
|
|
2936
|
+
/* @__PURE__ */ v(Q.Title, { children: r }),
|
|
2937
|
+
i && /* @__PURE__ */ v(Q.Description, { children: i })
|
|
2938
|
+
] }), /* @__PURE__ */ y(Q.Footer, { children: [/* @__PURE__ */ v(k, {
|
|
2575
2939
|
variant: d ? "dangerous" : "primary",
|
|
2576
2940
|
disabled: l,
|
|
2577
2941
|
onClick: n,
|
|
2578
2942
|
children: o
|
|
2579
|
-
}), /* @__PURE__ */
|
|
2943
|
+
}), /* @__PURE__ */ v(k, {
|
|
2580
2944
|
variant: "secondary",
|
|
2581
2945
|
disabled: l,
|
|
2582
2946
|
onClick: t,
|
|
@@ -2584,31 +2948,7 @@ function hn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
|
|
|
2584
2948
|
})] })]
|
|
2585
2949
|
});
|
|
2586
2950
|
}
|
|
2587
|
-
var
|
|
2588
|
-
skeleton: "_skeleton_5dl4r_2",
|
|
2589
|
-
rect: "_rect_5dl4r_7",
|
|
2590
|
-
text: "_text_5dl4r_13",
|
|
2591
|
-
circle: "_circle_5dl4r_19",
|
|
2592
|
-
animated: "_animated_5dl4r_26",
|
|
2593
|
-
skeletonPulse: "_skeletonPulse_5dl4r_1"
|
|
2594
|
-
};
|
|
2595
|
-
//#endregion
|
|
2596
|
-
//#region src/components/Skeleton.tsx
|
|
2597
|
-
function _n({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
|
|
2598
|
-
let s = [
|
|
2599
|
-
gn.skeleton,
|
|
2600
|
-
gn[e],
|
|
2601
|
-
i && gn.animated,
|
|
2602
|
-
a
|
|
2603
|
-
].filter(Boolean).join(" "), c = {};
|
|
2604
|
-
return e === "circle" && r !== void 0 && (c.width = r, c.height = r), t !== void 0 && (c.width = t), n !== void 0 && (c.height = n), /* @__PURE__ */ _("div", {
|
|
2605
|
-
"aria-hidden": "true",
|
|
2606
|
-
className: s,
|
|
2607
|
-
style: c,
|
|
2608
|
-
"data-testid": o
|
|
2609
|
-
});
|
|
2610
|
-
}
|
|
2611
|
-
var vn = {
|
|
2951
|
+
var Pn = {
|
|
2612
2952
|
root: "_root_rybn9_1",
|
|
2613
2953
|
success: "_success_rybn9_11",
|
|
2614
2954
|
warning: "_warning_rybn9_17",
|
|
@@ -2621,45 +2961,45 @@ var vn = {
|
|
|
2621
2961
|
};
|
|
2622
2962
|
//#endregion
|
|
2623
2963
|
//#region src/components/EmptyState.tsx
|
|
2624
|
-
function
|
|
2625
|
-
return /* @__PURE__ */
|
|
2626
|
-
className: `${
|
|
2964
|
+
function Fn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
|
|
2965
|
+
return /* @__PURE__ */ y("div", {
|
|
2966
|
+
className: `${Pn.root} ${e === "neutral" ? "" : Pn[e]}`,
|
|
2627
2967
|
...a,
|
|
2628
|
-
children: [t != null && /* @__PURE__ */
|
|
2629
|
-
className:
|
|
2968
|
+
children: [t != null && /* @__PURE__ */ v("div", {
|
|
2969
|
+
className: Pn.icon,
|
|
2630
2970
|
"aria-hidden": "true",
|
|
2631
2971
|
children: t
|
|
2632
|
-
}), /* @__PURE__ */
|
|
2633
|
-
className:
|
|
2972
|
+
}), /* @__PURE__ */ y("div", {
|
|
2973
|
+
className: Pn.body,
|
|
2634
2974
|
children: [
|
|
2635
|
-
/* @__PURE__ */
|
|
2636
|
-
className:
|
|
2975
|
+
/* @__PURE__ */ v("p", {
|
|
2976
|
+
className: Pn.title,
|
|
2637
2977
|
children: n
|
|
2638
2978
|
}),
|
|
2639
|
-
r != null && /* @__PURE__ */
|
|
2640
|
-
className:
|
|
2979
|
+
r != null && /* @__PURE__ */ v("div", {
|
|
2980
|
+
className: Pn.text,
|
|
2641
2981
|
children: r
|
|
2642
2982
|
}),
|
|
2643
|
-
i != null && /* @__PURE__ */
|
|
2644
|
-
className:
|
|
2983
|
+
i != null && /* @__PURE__ */ v("div", {
|
|
2984
|
+
className: Pn.action,
|
|
2645
2985
|
children: i
|
|
2646
2986
|
})
|
|
2647
2987
|
]
|
|
2648
2988
|
})]
|
|
2649
2989
|
});
|
|
2650
2990
|
}
|
|
2651
|
-
var
|
|
2652
|
-
function
|
|
2991
|
+
var In = { photoPreview: "_photoPreview_t98hl_2" }, Ln = 180, Rn = 12, zn = 8;
|
|
2992
|
+
function Bn(e, t, n = Ln) {
|
|
2653
2993
|
let r = (e, t) => {
|
|
2654
|
-
let r = e +
|
|
2655
|
-
return Math.max(
|
|
2994
|
+
let r = e + Rn, i = r + n + zn > t ? e - Rn - n : r;
|
|
2995
|
+
return Math.max(zn, i);
|
|
2656
2996
|
};
|
|
2657
2997
|
return {
|
|
2658
2998
|
left: r(e, window.innerWidth),
|
|
2659
2999
|
top: r(t, window.innerHeight)
|
|
2660
3000
|
};
|
|
2661
3001
|
}
|
|
2662
|
-
function
|
|
3002
|
+
function Vn({ src: e, size: t = Ln, children: r }) {
|
|
2663
3003
|
let [i, a] = m(null), [o, s] = m(), c = i !== null;
|
|
2664
3004
|
if (l(() => {
|
|
2665
3005
|
if (!c) return;
|
|
@@ -2684,15 +3024,15 @@ function Tn({ src: e, size: t = xn, children: r }) {
|
|
|
2684
3024
|
u.onPointerLeave?.(e), a(null);
|
|
2685
3025
|
}
|
|
2686
3026
|
});
|
|
2687
|
-
return /* @__PURE__ */
|
|
2688
|
-
className:
|
|
3027
|
+
return /* @__PURE__ */ y(_, { children: [f, i && g(/* @__PURE__ */ v("img", {
|
|
3028
|
+
className: In.photoPreview,
|
|
2689
3029
|
src: e,
|
|
2690
3030
|
alt: "",
|
|
2691
3031
|
"aria-hidden": "true",
|
|
2692
3032
|
style: {
|
|
2693
3033
|
width: t,
|
|
2694
3034
|
height: t,
|
|
2695
|
-
...
|
|
3035
|
+
...Bn(i.x, i.y, t)
|
|
2696
3036
|
},
|
|
2697
3037
|
onError: () => {
|
|
2698
3038
|
s(e), a(null);
|
|
@@ -2730,7 +3070,7 @@ var $ = {
|
|
|
2730
3070
|
pending: "_pending_1wz24_231",
|
|
2731
3071
|
actions: "_actions_1wz24_237",
|
|
2732
3072
|
srOnly: "_srOnly_1wz24_248"
|
|
2733
|
-
},
|
|
3073
|
+
}, Hn = {
|
|
2734
3074
|
worker: "Worker:",
|
|
2735
3075
|
comment: "Comment:",
|
|
2736
3076
|
pending: "Card still in progress",
|
|
@@ -2738,35 +3078,35 @@ var $ = {
|
|
|
2738
3078
|
archived: "Archived",
|
|
2739
3079
|
new: "Unwatched"
|
|
2740
3080
|
};
|
|
2741
|
-
function
|
|
3081
|
+
function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n, previewAlt: r, dateTime: i, title: a, description: o, meta: s, worker: c, comment: l, viewed: u = !1, current: d, onClick: f, hoverable: p, actions: h, labels: g, "aria-label": b, className: x, "data-testid": S }) {
|
|
2742
3082
|
let C = {
|
|
2743
|
-
...
|
|
2744
|
-
...
|
|
2745
|
-
}, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!c && (c.pending || !A), M = !!f,
|
|
3083
|
+
...Hn,
|
|
3084
|
+
...g
|
|
3085
|
+
}, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!c && (c.pending || !A), M = !!f, ee = (e) => {
|
|
2746
3086
|
e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
|
|
2747
|
-
},
|
|
3087
|
+
}, N = [
|
|
2748
3088
|
$.root,
|
|
2749
3089
|
(M || p) && $.interactive,
|
|
2750
3090
|
d && $.current,
|
|
2751
3091
|
h != null && $.hasActions,
|
|
2752
3092
|
x
|
|
2753
|
-
].filter(Boolean).join(" "),
|
|
3093
|
+
].filter(Boolean).join(" "), P = M ? {
|
|
2754
3094
|
role: "button",
|
|
2755
3095
|
tabIndex: 0,
|
|
2756
3096
|
"aria-label": b ?? (l ? `Video ${l}` : "Video"),
|
|
2757
3097
|
onClick: f,
|
|
2758
|
-
onKeyDown:
|
|
3098
|
+
onKeyDown: ee
|
|
2759
3099
|
} : { "aria-label": b };
|
|
2760
|
-
return /* @__PURE__ */
|
|
2761
|
-
className:
|
|
3100
|
+
return /* @__PURE__ */ y("div", {
|
|
3101
|
+
className: N,
|
|
2762
3102
|
"data-testid": S,
|
|
2763
|
-
...
|
|
3103
|
+
...P,
|
|
2764
3104
|
children: [
|
|
2765
|
-
/* @__PURE__ */
|
|
3105
|
+
/* @__PURE__ */ y("div", {
|
|
2766
3106
|
className: $.side,
|
|
2767
|
-
children: [/* @__PURE__ */
|
|
3107
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2768
3108
|
className: $.thumb,
|
|
2769
|
-
children: O ? /* @__PURE__ */
|
|
3109
|
+
children: O ? /* @__PURE__ */ v("img", {
|
|
2770
3110
|
className: $.thumbImg,
|
|
2771
3111
|
src: e,
|
|
2772
3112
|
alt: r ?? (l ? `Video preview: ${l}` : "Video preview"),
|
|
@@ -2775,61 +3115,61 @@ function Dn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
2775
3115
|
onError: () => {
|
|
2776
3116
|
T(e), n?.();
|
|
2777
3117
|
}
|
|
2778
|
-
}) : /* @__PURE__ */
|
|
3118
|
+
}) : /* @__PURE__ */ v("div", {
|
|
2779
3119
|
className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
|
|
2780
|
-
children: t === "play" ? /* @__PURE__ */
|
|
3120
|
+
children: t === "play" ? /* @__PURE__ */ v(Ce, {
|
|
2781
3121
|
size: 20,
|
|
2782
3122
|
"aria-hidden": "true"
|
|
2783
|
-
}) : /* @__PURE__ */
|
|
3123
|
+
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
|
|
2784
3124
|
className: $.icon,
|
|
2785
|
-
children:
|
|
3125
|
+
children: v(t === "archived" ? H : xe, {
|
|
2786
3126
|
size: 12,
|
|
2787
3127
|
strokeWidth: 1,
|
|
2788
3128
|
"aria-hidden": "true"
|
|
2789
3129
|
})
|
|
2790
|
-
}), /* @__PURE__ */
|
|
3130
|
+
}), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : C.inaccessible })] })
|
|
2791
3131
|
})
|
|
2792
|
-
}), !u && /* @__PURE__ */
|
|
3132
|
+
}), !u && /* @__PURE__ */ v("span", {
|
|
2793
3133
|
className: $.badge,
|
|
2794
3134
|
children: C.new
|
|
2795
3135
|
})]
|
|
2796
3136
|
}),
|
|
2797
|
-
/* @__PURE__ */
|
|
3137
|
+
/* @__PURE__ */ y("div", {
|
|
2798
3138
|
className: $.main,
|
|
2799
|
-
children: [/* @__PURE__ */
|
|
3139
|
+
children: [/* @__PURE__ */ y("div", {
|
|
2800
3140
|
className: $.columns,
|
|
2801
|
-
children: [/* @__PURE__ */
|
|
3141
|
+
children: [/* @__PURE__ */ y("div", {
|
|
2802
3142
|
className: $.info,
|
|
2803
3143
|
children: [
|
|
2804
|
-
i != null && /* @__PURE__ */
|
|
3144
|
+
i != null && /* @__PURE__ */ v("div", {
|
|
2805
3145
|
className: $.date,
|
|
2806
3146
|
children: i
|
|
2807
3147
|
}),
|
|
2808
|
-
a != null && /* @__PURE__ */
|
|
3148
|
+
a != null && /* @__PURE__ */ v("div", {
|
|
2809
3149
|
className: $.title,
|
|
2810
3150
|
children: a
|
|
2811
3151
|
}),
|
|
2812
|
-
o != null && /* @__PURE__ */
|
|
3152
|
+
o != null && /* @__PURE__ */ v("div", {
|
|
2813
3153
|
className: $.description,
|
|
2814
3154
|
children: o
|
|
2815
3155
|
}),
|
|
2816
|
-
s != null && /* @__PURE__ */
|
|
3156
|
+
s != null && /* @__PURE__ */ v("div", {
|
|
2817
3157
|
className: $.meta,
|
|
2818
3158
|
children: s
|
|
2819
3159
|
})
|
|
2820
3160
|
]
|
|
2821
|
-
}), c && /* @__PURE__ */
|
|
3161
|
+
}), c && /* @__PURE__ */ v("div", {
|
|
2822
3162
|
className: $.aside,
|
|
2823
|
-
children: /* @__PURE__ */
|
|
3163
|
+
children: /* @__PURE__ */ y("div", {
|
|
2824
3164
|
className: $.worker,
|
|
2825
|
-
children: [/* @__PURE__ */
|
|
3165
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2826
3166
|
className: $.label,
|
|
2827
3167
|
children: C.worker
|
|
2828
|
-
}), /* @__PURE__ */
|
|
3168
|
+
}), /* @__PURE__ */ y("div", {
|
|
2829
3169
|
className: $.workerRow,
|
|
2830
|
-
children: [A ? /* @__PURE__ */
|
|
3170
|
+
children: [A ? /* @__PURE__ */ v(Vn, {
|
|
2831
3171
|
src: k,
|
|
2832
|
-
children: /* @__PURE__ */
|
|
3172
|
+
children: /* @__PURE__ */ v("img", {
|
|
2833
3173
|
className: $.photo,
|
|
2834
3174
|
src: k,
|
|
2835
3175
|
alt: `Photo of ${c.name}`,
|
|
@@ -2837,16 +3177,16 @@ function Dn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
2837
3177
|
decoding: "async",
|
|
2838
3178
|
onError: () => D(k)
|
|
2839
3179
|
})
|
|
2840
|
-
}) : /* @__PURE__ */
|
|
3180
|
+
}) : /* @__PURE__ */ v("div", {
|
|
2841
3181
|
className: `${$.photo} ${$.emptyPhoto}`,
|
|
2842
3182
|
"aria-hidden": "true",
|
|
2843
|
-
children: /* @__PURE__ */
|
|
2844
|
-
}), /* @__PURE__ */
|
|
3183
|
+
children: /* @__PURE__ */ v(De, { size: 20 })
|
|
3184
|
+
}), /* @__PURE__ */ y("div", {
|
|
2845
3185
|
className: $.workerText,
|
|
2846
|
-
children: [/* @__PURE__ */
|
|
3186
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2847
3187
|
className: $.workerName,
|
|
2848
3188
|
children: c.name
|
|
2849
|
-
}), j && /* @__PURE__ */
|
|
3189
|
+
}), j && /* @__PURE__ */ v("div", {
|
|
2850
3190
|
className: $.pending,
|
|
2851
3191
|
children: C.pending
|
|
2852
3192
|
})]
|
|
@@ -2854,47 +3194,47 @@ function Dn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
2854
3194
|
})]
|
|
2855
3195
|
})
|
|
2856
3196
|
})]
|
|
2857
|
-
}), l && /* @__PURE__ */
|
|
3197
|
+
}), l && /* @__PURE__ */ y("div", {
|
|
2858
3198
|
className: $.comment,
|
|
2859
3199
|
title: l,
|
|
2860
|
-
children: [/* @__PURE__ */
|
|
3200
|
+
children: [/* @__PURE__ */ y("span", {
|
|
2861
3201
|
className: $.srOnly,
|
|
2862
3202
|
children: [C.comment, " "]
|
|
2863
3203
|
}), l]
|
|
2864
3204
|
})]
|
|
2865
3205
|
}),
|
|
2866
|
-
h != null && /* @__PURE__ */
|
|
3206
|
+
h != null && /* @__PURE__ */ v("div", {
|
|
2867
3207
|
className: $.actions,
|
|
2868
3208
|
children: h
|
|
2869
3209
|
})
|
|
2870
3210
|
]
|
|
2871
3211
|
});
|
|
2872
3212
|
}
|
|
2873
|
-
function
|
|
2874
|
-
return /* @__PURE__ */
|
|
3213
|
+
function Wn({ className: e, "data-testid": t }) {
|
|
3214
|
+
return /* @__PURE__ */ y("div", {
|
|
2875
3215
|
className: `${$.root} ${e ?? ""}`,
|
|
2876
3216
|
"data-testid": t,
|
|
2877
3217
|
"aria-hidden": "true",
|
|
2878
|
-
children: [/* @__PURE__ */
|
|
3218
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2879
3219
|
className: $.side,
|
|
2880
|
-
children: /* @__PURE__ */
|
|
3220
|
+
children: /* @__PURE__ */ v(Dt, {
|
|
2881
3221
|
width: 72,
|
|
2882
3222
|
height: 48
|
|
2883
3223
|
})
|
|
2884
|
-
}), /* @__PURE__ */
|
|
3224
|
+
}), /* @__PURE__ */ v("div", {
|
|
2885
3225
|
className: $.main,
|
|
2886
|
-
children: /* @__PURE__ */
|
|
3226
|
+
children: /* @__PURE__ */ y("div", {
|
|
2887
3227
|
className: $.info,
|
|
2888
3228
|
children: [
|
|
2889
|
-
/* @__PURE__ */
|
|
3229
|
+
/* @__PURE__ */ v(Dt, {
|
|
2890
3230
|
variant: "text",
|
|
2891
3231
|
width: "40%"
|
|
2892
3232
|
}),
|
|
2893
|
-
/* @__PURE__ */
|
|
3233
|
+
/* @__PURE__ */ v(Dt, {
|
|
2894
3234
|
variant: "text",
|
|
2895
3235
|
width: "65%"
|
|
2896
3236
|
}),
|
|
2897
|
-
/* @__PURE__ */
|
|
3237
|
+
/* @__PURE__ */ v(Dt, {
|
|
2898
3238
|
variant: "text",
|
|
2899
3239
|
width: "90%"
|
|
2900
3240
|
})
|
|
@@ -2903,18 +3243,18 @@ function On({ className: e, "data-testid": t }) {
|
|
|
2903
3243
|
})]
|
|
2904
3244
|
});
|
|
2905
3245
|
}
|
|
2906
|
-
var
|
|
3246
|
+
var Gn = Object.assign(Un, { Skeleton: Wn });
|
|
2907
3247
|
//#endregion
|
|
2908
3248
|
//#region src/utils/format.ts
|
|
2909
|
-
function
|
|
3249
|
+
function Kn(e) {
|
|
2910
3250
|
let t = Math.floor(e / 60), n = e % 60;
|
|
2911
3251
|
return `${t}h:${String(n).padStart(2, "0")}m`;
|
|
2912
3252
|
}
|
|
2913
|
-
function
|
|
3253
|
+
function qn(e, t) {
|
|
2914
3254
|
let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
|
|
2915
3255
|
return `${i(n)}:${i(r)}:${i(t)}`;
|
|
2916
3256
|
}
|
|
2917
3257
|
//#endregion
|
|
2918
|
-
export { N as Badge,
|
|
3258
|
+
export { N as Badge, k as Button, bt as Calendar, j as Card, Ke as Checkbox, Je as CheckboxGroup, Nn as ConfirmDialog, it as DateField, Tt as DatePicker, Rt as DateRangePicker, Yt as Dropdown, Fn as EmptyState, Le as FieldLabel, un as FilterSection, cn as HighlightText, an as LanguageSwitch, tn as Logo, Ht as Menu, Ut as MenuDivider, Gt as MenuItem, Q as Modal, $t as NavItem, en as NavList, Bt as NumberField, rt as PasswordField, Vn as PhotoPreview, Xe as RadioButton, Ze as RadioGroup, nn as Sidebar, rn as SidebarFooter, Dt as Skeleton, gn as Spinner, $e as Switch, fn as Tabs, Ne as Tag, Re as TagGroup, nt as TextArea, et as TextField, mn as Toggle, Be as Toolbar, We as ToolbarAdaptive, C as Tooltip, Gn as VideoCard, Kn as formatDuration, qn as formatDurationHMS };
|
|
2919
3259
|
|
|
2920
3260
|
//# sourceMappingURL=index.js.map
|