@velocityuikit/velocityui 0.1.16 → 0.1.18
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/Avatar/Avatar.d.ts +2 -0
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -0
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/ChatAttachment/ChatAttachment.d.ts +12 -0
- package/dist/components/ChatAttachment/index.d.ts +2 -0
- package/dist/components/ChatBubble/ChatBubble.d.ts +17 -0
- package/dist/components/ChatBubble/index.d.ts +2 -0
- package/dist/components/ChatHeader/ChatHeader.d.ts +12 -0
- package/dist/components/ChatHeader/index.d.ts +2 -0
- package/dist/components/ChatInput/ChatInput.d.ts +14 -0
- package/dist/components/ChatInput/index.d.ts +2 -0
- package/dist/components/ChatList/ChatList.d.ts +18 -0
- package/dist/components/ChatList/index.d.ts +2 -0
- package/dist/components/ChatReaction/ChatReaction.d.ts +8 -0
- package/dist/components/ChatReaction/index.d.ts +2 -0
- package/dist/components/ChatStatus/ChatStatus.d.ts +11 -0
- package/dist/components/ChatStatus/index.d.ts +2 -0
- package/dist/components/ChatThread/ChatThread.d.ts +11 -0
- package/dist/components/ChatThread/index.d.ts +2 -0
- package/dist/components/ChatTimestamp/ChatTimestamp.d.ts +6 -0
- package/dist/components/ChatTimestamp/index.d.ts +2 -0
- package/dist/components/ChatWindow/ChatWindow.d.ts +9 -0
- package/dist/components/ChatWindow/index.d.ts +2 -0
- package/dist/components/TypingIndicator/TypingIndicator.d.ts +6 -0
- package/dist/components/TypingIndicator/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +25 -3
- package/dist/index.js +1902 -1340
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,85 +1,91 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import j, { useRef as A, useEffect as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
const
|
|
5
|
-
button:
|
|
6
|
-
loading:
|
|
7
|
-
sm:
|
|
8
|
-
md:
|
|
9
|
-
lg:
|
|
10
|
-
primary:
|
|
11
|
-
secondary:
|
|
12
|
-
outline:
|
|
13
|
-
ghost:
|
|
14
|
-
danger:
|
|
15
|
-
fullWidth:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsxs as d, jsx as e, Fragment as st } from "react/jsx-runtime";
|
|
2
|
+
import j, { useRef as A, useEffect as ae, useState as O, useId as Pe, useCallback as ke, useContext as bt, createContext as gt } from "react";
|
|
3
|
+
import { createPortal as Ke } from "react-dom";
|
|
4
|
+
const vt = "_button_16l0b_1", wt = "_loading_16l0b_34", $t = "_sm_16l0b_41", yt = "_md_16l0b_47", kt = "_lg_16l0b_53", Nt = "_primary_16l0b_60", xt = "_secondary_16l0b_73", Bt = "_outline_16l0b_86", Lt = "_ghost_16l0b_98", jt = "_danger_16l0b_109", It = "_fullWidth_16l0b_122", Ct = "_pulse_16l0b_126", zt = "_buttonPulse_16l0b_1", Wt = "_shine_16l0b_130", Et = "_buttonShine_16l0b_1", Rt = "_spinner_16l0b_145", St = "_spin_16l0b_145", ce = {
|
|
5
|
+
button: vt,
|
|
6
|
+
loading: wt,
|
|
7
|
+
sm: $t,
|
|
8
|
+
md: yt,
|
|
9
|
+
lg: kt,
|
|
10
|
+
primary: Nt,
|
|
11
|
+
secondary: xt,
|
|
12
|
+
outline: Bt,
|
|
13
|
+
ghost: Lt,
|
|
14
|
+
danger: jt,
|
|
15
|
+
fullWidth: It,
|
|
16
|
+
pulse: Ct,
|
|
17
|
+
buttonPulse: zt,
|
|
18
|
+
shine: Wt,
|
|
19
|
+
buttonShine: Et,
|
|
20
|
+
spinner: Rt,
|
|
21
|
+
spin: St
|
|
22
|
+
}, Tt = j.forwardRef(
|
|
19
23
|
({
|
|
20
24
|
variant: t = "primary",
|
|
21
25
|
size: o = "md",
|
|
22
|
-
|
|
26
|
+
animation: n = "none",
|
|
27
|
+
loading: s = !1,
|
|
23
28
|
fullWidth: r = !1,
|
|
24
|
-
leftIcon:
|
|
25
|
-
rightIcon:
|
|
26
|
-
children:
|
|
27
|
-
className:
|
|
28
|
-
disabled:
|
|
29
|
-
...
|
|
30
|
-
},
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
leftIcon: i,
|
|
30
|
+
rightIcon: l,
|
|
31
|
+
children: a,
|
|
32
|
+
className: c,
|
|
33
|
+
disabled: _,
|
|
34
|
+
...h
|
|
35
|
+
}, m) => {
|
|
36
|
+
const u = [
|
|
37
|
+
ce.button,
|
|
38
|
+
ce[t],
|
|
39
|
+
ce[o],
|
|
40
|
+
n !== "none" ? ce[n] : "",
|
|
41
|
+
r ? ce.fullWidth : "",
|
|
42
|
+
s ? ce.loading : "",
|
|
43
|
+
c ?? ""
|
|
38
44
|
].filter(Boolean).join(" ");
|
|
39
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ d(
|
|
40
46
|
"button",
|
|
41
47
|
{
|
|
42
|
-
ref:
|
|
43
|
-
className:
|
|
44
|
-
disabled:
|
|
45
|
-
"aria-busy":
|
|
46
|
-
...
|
|
48
|
+
ref: m,
|
|
49
|
+
className: u,
|
|
50
|
+
disabled: _ || s,
|
|
51
|
+
"aria-busy": s,
|
|
52
|
+
...h,
|
|
47
53
|
children: [
|
|
48
|
-
|
|
49
|
-
!
|
|
50
|
-
|
|
51
|
-
!
|
|
54
|
+
s && /* @__PURE__ */ e("span", { className: ce.spinner, "aria-hidden": "true" }),
|
|
55
|
+
!s && i && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: i }),
|
|
56
|
+
a,
|
|
57
|
+
!s && l && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: l })
|
|
52
58
|
]
|
|
53
59
|
}
|
|
54
60
|
);
|
|
55
61
|
}
|
|
56
62
|
);
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
wrapper:
|
|
60
|
-
label:
|
|
61
|
-
required:
|
|
62
|
-
inputWrapper:
|
|
63
|
-
input:
|
|
64
|
-
error:
|
|
65
|
-
sm:
|
|
66
|
-
md:
|
|
67
|
-
lg:
|
|
68
|
-
hasLeft:
|
|
69
|
-
hasRight:
|
|
70
|
-
iconLeft:
|
|
71
|
-
iconRight:
|
|
72
|
-
hint:
|
|
73
|
-
errorText:
|
|
74
|
-
floatingWrapper:
|
|
75
|
-
inputFloating:
|
|
76
|
-
floatingLabelEl:
|
|
77
|
-
floatingLabelSm:
|
|
78
|
-
floatingLabelMd:
|
|
79
|
-
floatingLabelLg:
|
|
80
|
-
floatingLabelWithLeft:
|
|
81
|
-
floatingLabelError:
|
|
82
|
-
},
|
|
63
|
+
Tt.displayName = "Button";
|
|
64
|
+
const Dt = "_wrapper_1r7em_1", qt = "_label_1r7em_8", Mt = "_required_1r7em_15", Ft = "_inputWrapper_1r7em_20", At = "_input_1r7em_20", Ht = "_error_1r7em_55", Pt = "_sm_1r7em_64", Ot = "_md_1r7em_70", Ut = "_lg_1r7em_76", Vt = "_hasLeft_1r7em_83", Xt = "_hasRight_1r7em_87", Yt = "_iconLeft_1r7em_91", Kt = "_iconRight_1r7em_92", Gt = "_hint_1r7em_111", Jt = "_errorText_1r7em_117", Qt = "_floatingWrapper_1r7em_125", Zt = "_inputFloating_1r7em_130", en = "_floatingLabelEl_1r7em_149", tn = "_floatingLabelSm_1r7em_165", nn = "_floatingLabelMd_1r7em_166", on = "_floatingLabelLg_1r7em_167", sn = "_floatingLabelWithLeft_1r7em_170", rn = "_floatingLabelError_1r7em_190", I = {
|
|
65
|
+
wrapper: Dt,
|
|
66
|
+
label: qt,
|
|
67
|
+
required: Mt,
|
|
68
|
+
inputWrapper: Ft,
|
|
69
|
+
input: At,
|
|
70
|
+
error: Ht,
|
|
71
|
+
sm: Pt,
|
|
72
|
+
md: Ot,
|
|
73
|
+
lg: Ut,
|
|
74
|
+
hasLeft: Vt,
|
|
75
|
+
hasRight: Xt,
|
|
76
|
+
iconLeft: Yt,
|
|
77
|
+
iconRight: Kt,
|
|
78
|
+
hint: Gt,
|
|
79
|
+
errorText: Jt,
|
|
80
|
+
floatingWrapper: Qt,
|
|
81
|
+
inputFloating: Zt,
|
|
82
|
+
floatingLabelEl: en,
|
|
83
|
+
floatingLabelSm: tn,
|
|
84
|
+
floatingLabelMd: nn,
|
|
85
|
+
floatingLabelLg: on,
|
|
86
|
+
floatingLabelWithLeft: sn,
|
|
87
|
+
floatingLabelError: rn
|
|
88
|
+
}, an = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
|
|
83
89
|
"path",
|
|
84
90
|
{
|
|
85
91
|
strokeLinecap: "round",
|
|
@@ -87,220 +93,227 @@ const vt = "_wrapper_1r7em_1", wt = "_label_1r7em_8", $t = "_required_1r7em_15",
|
|
|
87
93
|
strokeWidth: 2,
|
|
88
94
|
d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
89
95
|
}
|
|
90
|
-
) }),
|
|
96
|
+
) }), ln = j.forwardRef(
|
|
91
97
|
({
|
|
92
98
|
label: t,
|
|
93
99
|
size: o = "md",
|
|
94
100
|
error: n,
|
|
95
|
-
hint:
|
|
96
|
-
leftIcon:
|
|
97
|
-
rightIcon:
|
|
101
|
+
hint: s,
|
|
102
|
+
leftIcon: r,
|
|
103
|
+
rightIcon: i,
|
|
98
104
|
search: l = !1,
|
|
99
|
-
searchIcon:
|
|
105
|
+
searchIcon: a,
|
|
100
106
|
searchIconPosition: c = "left",
|
|
101
107
|
leftIconClassName: _,
|
|
102
|
-
rightIconClassName:
|
|
108
|
+
rightIconClassName: h,
|
|
103
109
|
required: m,
|
|
104
|
-
fullWidth:
|
|
110
|
+
fullWidth: u,
|
|
105
111
|
floatingLabel: f,
|
|
106
|
-
className:
|
|
107
|
-
id:
|
|
108
|
-
placeholder:
|
|
112
|
+
className: v,
|
|
113
|
+
id: p,
|
|
114
|
+
placeholder: g,
|
|
109
115
|
...w
|
|
110
|
-
},
|
|
111
|
-
const
|
|
112
|
-
let
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
f ?
|
|
118
|
-
n ?
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
].filter(Boolean).join(" "),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
n ?
|
|
116
|
+
}, B) => {
|
|
117
|
+
const y = p ?? (t ? `vui-input-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), z = y ? `${y}-error` : void 0, N = y ? `${y}-hint` : void 0, H = l || !!a, x = a ?? /* @__PURE__ */ e(an, {});
|
|
118
|
+
let $ = r, k = i, G = !1, ne = !1;
|
|
119
|
+
H && (c === "right" ? k || (k = x, ne = !0) : $ || ($ = x, G = !0));
|
|
120
|
+
const pe = [
|
|
121
|
+
I.input,
|
|
122
|
+
I[o],
|
|
123
|
+
f ? I.inputFloating : "",
|
|
124
|
+
n ? I.error : "",
|
|
125
|
+
$ ? I.hasLeft : "",
|
|
126
|
+
k ? I.hasRight : "",
|
|
127
|
+
v ?? ""
|
|
128
|
+
].filter(Boolean).join(" "), ze = [
|
|
129
|
+
I.floatingLabelEl,
|
|
130
|
+
I[`floatingLabel${o.charAt(0).toUpperCase() + o.slice(1)}`],
|
|
131
|
+
$ ? I.floatingLabelWithLeft : "",
|
|
132
|
+
n ? I.floatingLabelError : ""
|
|
127
133
|
].filter(Boolean).join(" ");
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
-
t && !f && /* @__PURE__ */
|
|
134
|
+
return /* @__PURE__ */ d("div", { className: I.wrapper, children: [
|
|
135
|
+
t && !f && /* @__PURE__ */ d("label", { htmlFor: y, className: I.label, children: [
|
|
130
136
|
t,
|
|
131
|
-
m && /* @__PURE__ */ e("span", { className:
|
|
137
|
+
m && /* @__PURE__ */ e("span", { className: I.required, "aria-hidden": "true", children: "*" })
|
|
132
138
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
|
|
139
|
+
/* @__PURE__ */ d("div", { className: `${I.inputWrapper}${f ? ` ${I.floatingWrapper}` : ""}`, children: [
|
|
140
|
+
$ && /* @__PURE__ */ e(
|
|
135
141
|
"span",
|
|
136
142
|
{
|
|
137
|
-
className: [
|
|
143
|
+
className: [I.iconLeft, _ ?? ""].filter(Boolean).join(" "),
|
|
138
144
|
"data-slot": "left-icon",
|
|
139
|
-
"data-search-icon":
|
|
145
|
+
"data-search-icon": G ? "true" : void 0,
|
|
140
146
|
"aria-hidden": "true",
|
|
141
|
-
children:
|
|
147
|
+
children: $
|
|
142
148
|
}
|
|
143
149
|
),
|
|
144
150
|
/* @__PURE__ */ e(
|
|
145
151
|
"input",
|
|
146
152
|
{
|
|
147
|
-
ref:
|
|
148
|
-
id:
|
|
149
|
-
className:
|
|
153
|
+
ref: B,
|
|
154
|
+
id: y,
|
|
155
|
+
className: pe,
|
|
150
156
|
required: m,
|
|
151
157
|
"aria-invalid": !!n,
|
|
152
|
-
"aria-describedby": [n ?
|
|
153
|
-
placeholder: f ? " " :
|
|
158
|
+
"aria-describedby": [n ? z : null, s ? N : null].filter(Boolean).join(" ") || void 0,
|
|
159
|
+
placeholder: f ? " " : g,
|
|
154
160
|
...w
|
|
155
161
|
}
|
|
156
162
|
),
|
|
157
|
-
t && f && /* @__PURE__ */
|
|
163
|
+
t && f && /* @__PURE__ */ d("label", { htmlFor: y, className: ze, children: [
|
|
158
164
|
t,
|
|
159
|
-
m && /* @__PURE__ */ e("span", { className:
|
|
165
|
+
m && /* @__PURE__ */ e("span", { className: I.required, "aria-hidden": "true", children: "*" })
|
|
160
166
|
] }),
|
|
161
|
-
|
|
167
|
+
k && /* @__PURE__ */ e(
|
|
162
168
|
"span",
|
|
163
169
|
{
|
|
164
|
-
className: [
|
|
170
|
+
className: [I.iconRight, h ?? ""].filter(Boolean).join(" "),
|
|
165
171
|
"data-slot": "right-icon",
|
|
166
|
-
"data-search-icon":
|
|
172
|
+
"data-search-icon": ne ? "true" : void 0,
|
|
167
173
|
"aria-hidden": "true",
|
|
168
|
-
children:
|
|
174
|
+
children: k
|
|
169
175
|
}
|
|
170
176
|
)
|
|
171
177
|
] }),
|
|
172
|
-
n && /* @__PURE__ */ e("span", { id:
|
|
173
|
-
|
|
178
|
+
n && /* @__PURE__ */ e("span", { id: z, className: I.errorText, role: "alert", children: n }),
|
|
179
|
+
s && !n && /* @__PURE__ */ e("span", { id: N, className: I.hint, children: s })
|
|
174
180
|
] });
|
|
175
181
|
}
|
|
176
182
|
);
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
title:
|
|
180
|
-
xs:
|
|
181
|
-
sm:
|
|
182
|
-
md:
|
|
183
|
-
lg:
|
|
184
|
-
xl:
|
|
185
|
-
xxl:
|
|
186
|
-
light:
|
|
187
|
-
normal:
|
|
188
|
-
medium:
|
|
189
|
-
semibold:
|
|
190
|
-
bold:
|
|
191
|
-
extrabold:
|
|
192
|
-
left:
|
|
193
|
-
center:
|
|
194
|
-
right:
|
|
183
|
+
ln.displayName = "Input";
|
|
184
|
+
const cn = "_title_1np0f_1", dn = "_xs_1np0f_9", _n = "_sm_1np0f_14", un = "_md_1np0f_19", pn = "_lg_1np0f_24", hn = "_xl_1np0f_29", mn = "_xxl_1np0f_34", fn = "_light_1np0f_40", bn = "_normal_1np0f_44", gn = "_medium_1np0f_48", vn = "_semibold_1np0f_52", wn = "_bold_1np0f_56", $n = "_extrabold_1np0f_60", yn = "_left_1np0f_65", kn = "_center_1np0f_69", Nn = "_right_1np0f_73", xn = "_muted_1np0f_82", Bn = "_primary_1np0f_86", Ln = "_gradient_1np0f_90", Be = {
|
|
185
|
+
title: cn,
|
|
186
|
+
xs: dn,
|
|
187
|
+
sm: _n,
|
|
188
|
+
md: un,
|
|
189
|
+
lg: pn,
|
|
190
|
+
xl: hn,
|
|
191
|
+
xxl: mn,
|
|
192
|
+
light: fn,
|
|
193
|
+
normal: bn,
|
|
194
|
+
medium: gn,
|
|
195
|
+
semibold: vn,
|
|
196
|
+
bold: wn,
|
|
197
|
+
extrabold: $n,
|
|
198
|
+
left: yn,
|
|
199
|
+
center: kn,
|
|
200
|
+
right: Nn,
|
|
195
201
|
default: "_default_1np0f_78",
|
|
196
|
-
muted:
|
|
197
|
-
primary:
|
|
198
|
-
gradient:
|
|
199
|
-
},
|
|
202
|
+
muted: xn,
|
|
203
|
+
primary: Bn,
|
|
204
|
+
gradient: Ln
|
|
205
|
+
}, jn = {
|
|
200
206
|
h1: "xxl",
|
|
201
207
|
h2: "xl",
|
|
202
208
|
h3: "lg",
|
|
203
209
|
h4: "md",
|
|
204
210
|
h5: "sm",
|
|
205
211
|
h6: "xs"
|
|
206
|
-
},
|
|
212
|
+
}, V_ = ({
|
|
207
213
|
as: t,
|
|
208
214
|
level: o = "h1",
|
|
209
215
|
size: n,
|
|
210
|
-
weight:
|
|
211
|
-
align:
|
|
212
|
-
color:
|
|
216
|
+
weight: s = "bold",
|
|
217
|
+
align: r = "left",
|
|
218
|
+
color: i = "default",
|
|
213
219
|
children: l,
|
|
214
|
-
className:
|
|
220
|
+
className: a,
|
|
215
221
|
...c
|
|
216
222
|
}) => {
|
|
217
|
-
const _ = t ?? o,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
223
|
+
const _ = t ?? o, h = n ?? jn[_], m = [
|
|
224
|
+
Be.title,
|
|
225
|
+
Be[h],
|
|
226
|
+
Be[s],
|
|
227
|
+
Be[r],
|
|
228
|
+
Be[i],
|
|
229
|
+
a ?? ""
|
|
224
230
|
].filter(Boolean).join(" ");
|
|
225
231
|
return j.createElement(_, { className: m, ...c }, l);
|
|
226
|
-
},
|
|
227
|
-
badge:
|
|
228
|
-
sm:
|
|
229
|
-
md:
|
|
230
|
-
lg:
|
|
231
|
-
default: "
|
|
232
|
-
info:
|
|
233
|
-
success:
|
|
234
|
-
warning:
|
|
235
|
-
danger:
|
|
236
|
-
primary:
|
|
237
|
-
dot:
|
|
238
|
-
|
|
232
|
+
}, In = "_badge_1d51m_1", Cn = "_sm_1d51m_24", zn = "_md_1d51m_29", Wn = "_lg_1d51m_34", En = "_info_1d51m_46", Rn = "_success_1d51m_52", Sn = "_warning_1d51m_58", Tn = "_danger_1d51m_64", Dn = "_primary_1d51m_70", qn = "_dot_1d51m_77", Mn = "_pulse_1d51m_85", Fn = "_badgePulse_1d51m_1", An = "_badgeDotPulse_1d51m_1", Hn = "_shine_1d51m_93", Pn = "_badgeShine_1d51m_1", Le = {
|
|
233
|
+
badge: In,
|
|
234
|
+
sm: Cn,
|
|
235
|
+
md: zn,
|
|
236
|
+
lg: Wn,
|
|
237
|
+
default: "_default_1d51m_40",
|
|
238
|
+
info: En,
|
|
239
|
+
success: Rn,
|
|
240
|
+
warning: Sn,
|
|
241
|
+
danger: Tn,
|
|
242
|
+
primary: Dn,
|
|
243
|
+
dot: qn,
|
|
244
|
+
pulse: Mn,
|
|
245
|
+
badgePulse: Fn,
|
|
246
|
+
badgeDotPulse: An,
|
|
247
|
+
shine: Hn,
|
|
248
|
+
badgeShine: Pn
|
|
249
|
+
}, X_ = ({
|
|
239
250
|
variant: t = "default",
|
|
240
251
|
size: o = "md",
|
|
241
|
-
|
|
252
|
+
animation: n = "none",
|
|
253
|
+
dot: s = !1,
|
|
242
254
|
leftIcon: r,
|
|
243
|
-
children:
|
|
244
|
-
className:
|
|
245
|
-
...
|
|
255
|
+
children: i,
|
|
256
|
+
className: l,
|
|
257
|
+
...a
|
|
246
258
|
}) => {
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
259
|
+
const c = [
|
|
260
|
+
Le.badge,
|
|
261
|
+
Le[t],
|
|
262
|
+
Le[o],
|
|
263
|
+
n !== "none" ? Le[n] : "",
|
|
264
|
+
l ?? ""
|
|
252
265
|
].filter(Boolean).join(" ");
|
|
253
|
-
return /* @__PURE__ */
|
|
254
|
-
|
|
255
|
-
!
|
|
256
|
-
|
|
266
|
+
return /* @__PURE__ */ d("span", { className: c, ...a, children: [
|
|
267
|
+
s && /* @__PURE__ */ e("span", { className: Le.dot, "aria-hidden": "true" }),
|
|
268
|
+
!s && r && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: r }),
|
|
269
|
+
i
|
|
257
270
|
] });
|
|
258
|
-
},
|
|
259
|
-
card:
|
|
260
|
-
bordered:
|
|
261
|
-
shadow:
|
|
262
|
-
elevated:
|
|
263
|
-
ghost:
|
|
264
|
-
sm:
|
|
265
|
-
cardHeader:
|
|
266
|
-
cardBody:
|
|
267
|
-
cardFooter:
|
|
268
|
-
md:
|
|
269
|
-
lg:
|
|
270
|
-
hoverable:
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
const
|
|
271
|
+
}, On = "_card_1q61w_1", Un = "_bordered_1q61w_11", Vn = "_shadow_1q61w_15", Xn = "_elevated_1q61w_19", Yn = "_ghost_1q61w_23", Kn = "_sm_1q61w_29", Gn = "_cardHeader_1q61w_29", Jn = "_cardBody_1q61w_30", Qn = "_cardFooter_1q61w_31", Zn = "_md_1q61w_35", eo = "_lg_1q61w_41", to = "_hoverable_1q61w_72", ue = {
|
|
272
|
+
card: On,
|
|
273
|
+
bordered: Un,
|
|
274
|
+
shadow: Vn,
|
|
275
|
+
elevated: Xn,
|
|
276
|
+
ghost: Yn,
|
|
277
|
+
sm: Kn,
|
|
278
|
+
cardHeader: Gn,
|
|
279
|
+
cardBody: Jn,
|
|
280
|
+
cardFooter: Qn,
|
|
281
|
+
md: Zn,
|
|
282
|
+
lg: eo,
|
|
283
|
+
hoverable: to
|
|
284
|
+
}, rt = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${ue.cardHeader} ${o ?? ""}`, ...n, children: t });
|
|
285
|
+
rt.displayName = "Card.Header";
|
|
286
|
+
const at = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${ue.cardBody} ${o ?? ""}`, ...n, children: t });
|
|
287
|
+
at.displayName = "Card.Body";
|
|
288
|
+
const it = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${ue.cardFooter} ${o ?? ""}`, ...n, children: t });
|
|
289
|
+
it.displayName = "Card.Footer";
|
|
290
|
+
const no = ({
|
|
278
291
|
variant: t = "bordered",
|
|
279
292
|
size: o = "md",
|
|
280
293
|
hoverable: n = !1,
|
|
281
|
-
children:
|
|
282
|
-
className:
|
|
283
|
-
...
|
|
294
|
+
children: s,
|
|
295
|
+
className: r,
|
|
296
|
+
...i
|
|
284
297
|
}) => {
|
|
285
298
|
const l = [
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
n ?
|
|
290
|
-
|
|
299
|
+
ue.card,
|
|
300
|
+
ue[t],
|
|
301
|
+
ue[o],
|
|
302
|
+
n ? ue.hoverable : "",
|
|
303
|
+
r ?? ""
|
|
291
304
|
].filter(Boolean).join(" ");
|
|
292
|
-
return /* @__PURE__ */ e("div", { className: l, ...
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
root:
|
|
300
|
-
background:
|
|
301
|
-
interactive:
|
|
302
|
-
content:
|
|
303
|
-
},
|
|
305
|
+
return /* @__PURE__ */ e("div", { className: l, ...i, children: s });
|
|
306
|
+
}, Oe = no;
|
|
307
|
+
Oe.Header = rt;
|
|
308
|
+
Oe.Body = at;
|
|
309
|
+
Oe.Footer = it;
|
|
310
|
+
Oe.displayName = "Card";
|
|
311
|
+
const oo = "_root_y54b0_1", so = "_background_y54b0_12", ro = "_interactive_y54b0_19", ao = "_content_y54b0_23", Te = {
|
|
312
|
+
root: oo,
|
|
313
|
+
background: so,
|
|
314
|
+
interactive: ro,
|
|
315
|
+
content: ao
|
|
316
|
+
}, io = {
|
|
304
317
|
subtle: {
|
|
305
318
|
"--vui-ambient-opacity": "0.62",
|
|
306
319
|
"--vui-ambient-blur": "88px",
|
|
@@ -316,7 +329,7 @@ const Tn = "_root_y54b0_1", Rn = "_background_y54b0_12", Mn = "_interactive_y54b
|
|
|
316
329
|
"--vui-ambient-blur": "136px",
|
|
317
330
|
"--vui-ambient-scale": "1.08"
|
|
318
331
|
}
|
|
319
|
-
},
|
|
332
|
+
}, lo = {
|
|
320
333
|
slow: {
|
|
321
334
|
"--vui-ambient-duration": "24s",
|
|
322
335
|
"--vui-ambient-speed-multiplier": "0.72"
|
|
@@ -329,306 +342,306 @@ const Tn = "_root_y54b0_1", Rn = "_background_y54b0_12", Mn = "_interactive_y54b
|
|
|
329
342
|
"--vui-ambient-duration": "13s",
|
|
330
343
|
"--vui-ambient-speed-multiplier": "1.25"
|
|
331
344
|
}
|
|
332
|
-
},
|
|
345
|
+
}, Y_ = ({
|
|
333
346
|
background: t,
|
|
334
347
|
contentClassName: o,
|
|
335
348
|
intensity: n = "medium",
|
|
336
|
-
speed:
|
|
337
|
-
interactive:
|
|
338
|
-
className:
|
|
349
|
+
speed: s = "medium",
|
|
350
|
+
interactive: r = !1,
|
|
351
|
+
className: i,
|
|
339
352
|
style: l,
|
|
340
|
-
children:
|
|
353
|
+
children: a,
|
|
341
354
|
...c
|
|
342
355
|
}) => {
|
|
343
356
|
const _ = [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
].filter(Boolean).join(" "),
|
|
348
|
-
...
|
|
349
|
-
...
|
|
357
|
+
Te.root,
|
|
358
|
+
r ? Te.interactive : "",
|
|
359
|
+
i ?? ""
|
|
360
|
+
].filter(Boolean).join(" "), h = [Te.content, o ?? ""].filter(Boolean).join(" "), m = {
|
|
361
|
+
...io[n],
|
|
362
|
+
...lo[s],
|
|
350
363
|
...l
|
|
351
364
|
};
|
|
352
|
-
return /* @__PURE__ */
|
|
353
|
-
t ? /* @__PURE__ */ e("div", { className:
|
|
354
|
-
/* @__PURE__ */ e("div", { className:
|
|
365
|
+
return /* @__PURE__ */ d("div", { className: _, style: m, ...c, children: [
|
|
366
|
+
t ? /* @__PURE__ */ e("div", { className: Te.background, children: t }) : null,
|
|
367
|
+
/* @__PURE__ */ e("div", { className: h, children: a })
|
|
355
368
|
] });
|
|
356
|
-
},
|
|
357
|
-
root:
|
|
358
|
-
orb:
|
|
359
|
-
floatOrb:
|
|
360
|
-
primary:
|
|
361
|
-
secondary:
|
|
362
|
-
accent:
|
|
363
|
-
highlight:
|
|
364
|
-
hero:
|
|
365
|
-
diagonal:
|
|
366
|
-
spotlight:
|
|
367
|
-
},
|
|
369
|
+
}, co = "_root_1h0b6_1", _o = "_orb_1h0b6_8", uo = "_floatOrb_1h0b6_1", po = "_primary_1h0b6_19", ho = "_secondary_1h0b6_25", mo = "_accent_1h0b6_33", fo = "_highlight_1h0b6_40", bo = "_hero_1h0b6_48", go = "_diagonal_1h0b6_68", vo = "_spotlight_1h0b6_88", X = {
|
|
370
|
+
root: co,
|
|
371
|
+
orb: _o,
|
|
372
|
+
floatOrb: uo,
|
|
373
|
+
primary: po,
|
|
374
|
+
secondary: ho,
|
|
375
|
+
accent: mo,
|
|
376
|
+
highlight: fo,
|
|
377
|
+
hero: bo,
|
|
378
|
+
diagonal: go,
|
|
379
|
+
spotlight: vo
|
|
380
|
+
}, K_ = ({
|
|
368
381
|
variant: t = "hero",
|
|
369
382
|
className: o,
|
|
370
383
|
...n
|
|
371
384
|
}) => {
|
|
372
|
-
const
|
|
373
|
-
return /* @__PURE__ */
|
|
374
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
375
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
376
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
377
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
385
|
+
const s = [X.root, X[t], o ?? ""].filter(Boolean).join(" ");
|
|
386
|
+
return /* @__PURE__ */ d("div", { className: s, "aria-hidden": "true", ...n, children: [
|
|
387
|
+
/* @__PURE__ */ e("span", { className: `${X.orb} ${X.primary}` }),
|
|
388
|
+
/* @__PURE__ */ e("span", { className: `${X.orb} ${X.secondary}` }),
|
|
389
|
+
/* @__PURE__ */ e("span", { className: `${X.orb} ${X.accent}` }),
|
|
390
|
+
/* @__PURE__ */ e("span", { className: `${X.orb} ${X.highlight}` })
|
|
378
391
|
] });
|
|
379
|
-
},
|
|
380
|
-
root:
|
|
381
|
-
grid:
|
|
382
|
-
glow:
|
|
383
|
-
beam:
|
|
384
|
-
sweepBeam:
|
|
392
|
+
}, wo = "_root_3f8d1_1", $o = "_grid_3f8d1_9", yo = "_glow_3f8d1_10", ko = "_beam_3f8d1_11", No = "_sweepBeam_3f8d1_1", xo = "_spotlight_3f8d1_49", Bo = "_panel_3f8d1_57", je = {
|
|
393
|
+
root: wo,
|
|
394
|
+
grid: $o,
|
|
395
|
+
glow: yo,
|
|
396
|
+
beam: ko,
|
|
397
|
+
sweepBeam: No,
|
|
385
398
|
default: "_default_3f8d1_45",
|
|
386
|
-
spotlight:
|
|
387
|
-
panel:
|
|
388
|
-
},
|
|
399
|
+
spotlight: xo,
|
|
400
|
+
panel: Bo
|
|
401
|
+
}, G_ = ({
|
|
389
402
|
variant: t = "default",
|
|
390
403
|
className: o,
|
|
391
404
|
...n
|
|
392
405
|
}) => {
|
|
393
|
-
const
|
|
394
|
-
return /* @__PURE__ */
|
|
395
|
-
/* @__PURE__ */ e("span", { className:
|
|
396
|
-
/* @__PURE__ */ e("span", { className:
|
|
397
|
-
/* @__PURE__ */ e("span", { className:
|
|
406
|
+
const s = [je.root, je[t], o ?? ""].filter(Boolean).join(" ");
|
|
407
|
+
return /* @__PURE__ */ d("div", { className: s, "aria-hidden": "true", ...n, children: [
|
|
408
|
+
/* @__PURE__ */ e("span", { className: je.grid }),
|
|
409
|
+
/* @__PURE__ */ e("span", { className: je.glow }),
|
|
410
|
+
/* @__PURE__ */ e("span", { className: je.beam })
|
|
398
411
|
] });
|
|
399
|
-
},
|
|
400
|
-
wrapper:
|
|
401
|
-
wrapperFullWidth:
|
|
402
|
-
label:
|
|
403
|
-
required:
|
|
404
|
-
textarea:
|
|
405
|
-
hasError:
|
|
406
|
-
sm:
|
|
407
|
-
md:
|
|
408
|
-
lg:
|
|
409
|
-
none:
|
|
410
|
-
vertical:
|
|
411
|
-
horizontal:
|
|
412
|
-
both:
|
|
413
|
-
fullWidth:
|
|
414
|
-
hint:
|
|
415
|
-
errorText:
|
|
416
|
-
},
|
|
412
|
+
}, Lo = "_wrapper_1xu0d_1", jo = "_wrapperFullWidth_1xu0d_7", Io = "_label_1xu0d_11", Co = "_required_1xu0d_18", zo = "_textarea_1xu0d_23", Wo = "_hasError_1xu0d_53", Eo = "_sm_1xu0d_62", Ro = "_md_1xu0d_67", So = "_lg_1xu0d_72", To = "_none_1xu0d_78", Do = "_vertical_1xu0d_82", qo = "_horizontal_1xu0d_86", Mo = "_both_1xu0d_90", Fo = "_fullWidth_1xu0d_94", Ao = "_hint_1xu0d_98", Ho = "_errorText_1xu0d_104", U = {
|
|
413
|
+
wrapper: Lo,
|
|
414
|
+
wrapperFullWidth: jo,
|
|
415
|
+
label: Io,
|
|
416
|
+
required: Co,
|
|
417
|
+
textarea: zo,
|
|
418
|
+
hasError: Wo,
|
|
419
|
+
sm: Eo,
|
|
420
|
+
md: Ro,
|
|
421
|
+
lg: So,
|
|
422
|
+
none: To,
|
|
423
|
+
vertical: Do,
|
|
424
|
+
horizontal: qo,
|
|
425
|
+
both: Mo,
|
|
426
|
+
fullWidth: Fo,
|
|
427
|
+
hint: Ao,
|
|
428
|
+
errorText: Ho
|
|
429
|
+
}, Po = j.forwardRef(
|
|
417
430
|
({
|
|
418
431
|
label: t,
|
|
419
432
|
size: o = "md",
|
|
420
433
|
error: n,
|
|
421
|
-
hint:
|
|
422
|
-
required:
|
|
423
|
-
fullWidth:
|
|
434
|
+
hint: s,
|
|
435
|
+
required: r,
|
|
436
|
+
fullWidth: i = !1,
|
|
424
437
|
resize: l = "vertical",
|
|
425
|
-
className:
|
|
438
|
+
className: a,
|
|
426
439
|
id: c,
|
|
427
440
|
..._
|
|
428
|
-
},
|
|
429
|
-
const m = c ?? (t ? `vui-textarea-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0),
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
n ?
|
|
434
|
-
|
|
435
|
-
|
|
441
|
+
}, h) => {
|
|
442
|
+
const m = c ?? (t ? `vui-textarea-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), u = m ? `${m}-error` : void 0, f = m ? `${m}-hint` : void 0, v = [
|
|
443
|
+
U.textarea,
|
|
444
|
+
U[o],
|
|
445
|
+
U[l],
|
|
446
|
+
n ? U.hasError : "",
|
|
447
|
+
i ? U.fullWidth : "",
|
|
448
|
+
a ?? ""
|
|
436
449
|
].filter(Boolean).join(" ");
|
|
437
|
-
return /* @__PURE__ */
|
|
438
|
-
t && /* @__PURE__ */
|
|
450
|
+
return /* @__PURE__ */ d("div", { className: `${U.wrapper}${i ? ` ${U.wrapperFullWidth}` : ""}`, children: [
|
|
451
|
+
t && /* @__PURE__ */ d("label", { htmlFor: m, className: U.label, children: [
|
|
439
452
|
t,
|
|
440
|
-
|
|
453
|
+
r && /* @__PURE__ */ e("span", { className: U.required, "aria-hidden": "true", children: "*" })
|
|
441
454
|
] }),
|
|
442
455
|
/* @__PURE__ */ e(
|
|
443
456
|
"textarea",
|
|
444
457
|
{
|
|
445
|
-
ref:
|
|
458
|
+
ref: h,
|
|
446
459
|
id: m,
|
|
447
|
-
className:
|
|
448
|
-
required:
|
|
460
|
+
className: v,
|
|
461
|
+
required: r,
|
|
449
462
|
"aria-invalid": !!n,
|
|
450
|
-
"aria-describedby": [n ?
|
|
463
|
+
"aria-describedby": [n ? u : null, s && !n ? f : null].filter(Boolean).join(" ") || void 0,
|
|
451
464
|
..._
|
|
452
465
|
}
|
|
453
466
|
),
|
|
454
|
-
n && /* @__PURE__ */ e("span", { id:
|
|
455
|
-
|
|
467
|
+
n && /* @__PURE__ */ e("span", { id: u, className: U.errorText, role: "alert", children: n }),
|
|
468
|
+
s && !n && /* @__PURE__ */ e("span", { id: f, className: U.hint, children: s })
|
|
456
469
|
] });
|
|
457
470
|
}
|
|
458
471
|
);
|
|
459
|
-
|
|
460
|
-
const
|
|
461
|
-
wrapper:
|
|
462
|
-
wrapperFullWidth:
|
|
463
|
-
label:
|
|
464
|
-
required:
|
|
465
|
-
selectWrapper:
|
|
466
|
-
hiddenSelect:
|
|
467
|
-
trigger:
|
|
468
|
-
hasError:
|
|
469
|
-
sm:
|
|
470
|
-
md:
|
|
471
|
-
lg:
|
|
472
|
-
fullWidth:
|
|
473
|
-
valueText:
|
|
474
|
-
placeholder:
|
|
475
|
-
chevron:
|
|
476
|
-
isOpen:
|
|
477
|
-
menu:
|
|
478
|
-
option:
|
|
479
|
-
optionFocused:
|
|
480
|
-
optionSelected:
|
|
481
|
-
optionLabel:
|
|
482
|
-
optionCheck:
|
|
483
|
-
optionCheckVisible:
|
|
484
|
-
hint:
|
|
485
|
-
errorText:
|
|
472
|
+
Po.displayName = "Textarea";
|
|
473
|
+
const Oo = "_wrapper_1cpn4_1", Uo = "_wrapperFullWidth_1cpn4_7", Vo = "_label_1cpn4_11", Xo = "_required_1cpn4_18", Yo = "_selectWrapper_1cpn4_23", Ko = "_hiddenSelect_1cpn4_46", Go = "_trigger_1cpn4_53", Jo = "_hasError_1cpn4_103", Qo = "_sm_1cpn4_114", Zo = "_md_1cpn4_120", es = "_lg_1cpn4_126", ts = "_fullWidth_1cpn4_132", ns = "_valueText_1cpn4_136", os = "_placeholder_1cpn4_144", ss = "_chevron_1cpn4_148", rs = "_isOpen_1cpn4_180", as = "_menu_1cpn4_184", is = "_option_1cpn4_203", ls = "_optionFocused_1cpn4_222", cs = "_optionSelected_1cpn4_229", ds = "_optionLabel_1cpn4_238", _s = "_optionCheck_1cpn4_243", us = "_optionCheckVisible_1cpn4_250", ps = "_hint_1cpn4_260", hs = "_errorText_1cpn4_266", L = {
|
|
474
|
+
wrapper: Oo,
|
|
475
|
+
wrapperFullWidth: Uo,
|
|
476
|
+
label: Vo,
|
|
477
|
+
required: Xo,
|
|
478
|
+
selectWrapper: Yo,
|
|
479
|
+
hiddenSelect: Ko,
|
|
480
|
+
trigger: Go,
|
|
481
|
+
hasError: Jo,
|
|
482
|
+
sm: Qo,
|
|
483
|
+
md: Zo,
|
|
484
|
+
lg: es,
|
|
485
|
+
fullWidth: ts,
|
|
486
|
+
valueText: ns,
|
|
487
|
+
placeholder: os,
|
|
488
|
+
chevron: ss,
|
|
489
|
+
isOpen: rs,
|
|
490
|
+
menu: as,
|
|
491
|
+
option: is,
|
|
492
|
+
optionFocused: ls,
|
|
493
|
+
optionSelected: cs,
|
|
494
|
+
optionLabel: ds,
|
|
495
|
+
optionCheck: _s,
|
|
496
|
+
optionCheckVisible: us,
|
|
497
|
+
hint: ps,
|
|
498
|
+
errorText: hs
|
|
486
499
|
};
|
|
487
|
-
function
|
|
500
|
+
function ms(t) {
|
|
488
501
|
return j.Children.toArray(t).flatMap((o) => {
|
|
489
502
|
if (!j.isValidElement(o) || o.type !== "option")
|
|
490
503
|
return [];
|
|
491
|
-
const n = o.props.value,
|
|
504
|
+
const n = o.props.value, s = typeof o.props.children == "string" ? o.props.children : String(n ?? "");
|
|
492
505
|
return n == null ? [] : [
|
|
493
506
|
{
|
|
494
507
|
value: String(n),
|
|
495
|
-
label:
|
|
508
|
+
label: s,
|
|
496
509
|
disabled: !!o.props.disabled
|
|
497
510
|
}
|
|
498
511
|
];
|
|
499
512
|
});
|
|
500
513
|
}
|
|
501
|
-
const
|
|
514
|
+
const fs = j.forwardRef(
|
|
502
515
|
({
|
|
503
516
|
label: t,
|
|
504
517
|
size: o = "md",
|
|
505
518
|
error: n,
|
|
506
|
-
hint:
|
|
507
|
-
required:
|
|
508
|
-
fullWidth:
|
|
519
|
+
hint: s,
|
|
520
|
+
required: r,
|
|
521
|
+
fullWidth: i = !1,
|
|
509
522
|
options: l,
|
|
510
|
-
placeholder:
|
|
523
|
+
placeholder: a,
|
|
511
524
|
className: c,
|
|
512
525
|
id: _,
|
|
513
|
-
children:
|
|
526
|
+
children: h,
|
|
514
527
|
value: m,
|
|
515
|
-
defaultValue:
|
|
528
|
+
defaultValue: u,
|
|
516
529
|
onChange: f,
|
|
517
|
-
onBlur:
|
|
518
|
-
onFocus:
|
|
519
|
-
onKeyDown:
|
|
530
|
+
onBlur: v,
|
|
531
|
+
onFocus: p,
|
|
532
|
+
onKeyDown: g,
|
|
520
533
|
disabled: w,
|
|
521
|
-
name:
|
|
522
|
-
autoComplete:
|
|
523
|
-
form:
|
|
534
|
+
name: B,
|
|
535
|
+
autoComplete: y,
|
|
536
|
+
form: z,
|
|
524
537
|
...N
|
|
525
|
-
},
|
|
526
|
-
const
|
|
527
|
-
j.useImperativeHandle(
|
|
528
|
-
const
|
|
529
|
-
() => l ||
|
|
530
|
-
[
|
|
531
|
-
),
|
|
538
|
+
}, H) => {
|
|
539
|
+
const x = j.useRef(null), $ = j.useRef(null);
|
|
540
|
+
j.useImperativeHandle(H, () => x.current);
|
|
541
|
+
const k = _ ?? (t ? `vui-select-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), G = k ? `${k}-error` : void 0, ne = k ? `${k}-hint` : void 0, pe = k ? `${k}-listbox` : void 0, ze = k ? `${k}-label` : void 0, W = j.useMemo(
|
|
542
|
+
() => l || ms(h),
|
|
543
|
+
[h, l]
|
|
544
|
+
), We = m !== void 0, ie = W.find((b) => !b.disabled), pt = String(u ?? (a ? "" : (ie == null ? void 0 : ie.value) ?? "")), [Ve, Ge] = j.useState(pt), Ee = String(We ? m ?? "" : Ve), [le, he] = j.useState(!1), [Ne, Re] = j.useState(-1);
|
|
532
545
|
j.useEffect(() => {
|
|
533
|
-
if (
|
|
534
|
-
|
|
535
|
-
}, [
|
|
536
|
-
const b = (
|
|
537
|
-
|
|
546
|
+
if (We || !W.length) return;
|
|
547
|
+
W.some((E) => E.value === Ve) || Ge((ie == null ? void 0 : ie.value) ?? "");
|
|
548
|
+
}, [W, We, Ve, ie]), j.useEffect(() => {
|
|
549
|
+
const b = (E) => {
|
|
550
|
+
$.current && !$.current.contains(E.target) && he(!1);
|
|
538
551
|
};
|
|
539
552
|
return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
|
|
540
553
|
}, []);
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
n ?
|
|
545
|
-
|
|
546
|
-
|
|
554
|
+
const Se = W.find((b) => b.value === Ee), ht = (Se == null ? void 0 : Se.label) ?? a ?? "", mt = [
|
|
555
|
+
L.trigger,
|
|
556
|
+
L[o],
|
|
557
|
+
n ? L.hasError : "",
|
|
558
|
+
i ? L.fullWidth : "",
|
|
559
|
+
le ? L.isOpen : "",
|
|
547
560
|
c ?? ""
|
|
548
|
-
].filter(Boolean).join(" "),
|
|
549
|
-
var
|
|
550
|
-
|
|
551
|
-
const
|
|
552
|
-
if (
|
|
553
|
-
const
|
|
561
|
+
].filter(Boolean).join(" "), Je = (b) => {
|
|
562
|
+
var S;
|
|
563
|
+
We || Ge(b);
|
|
564
|
+
const E = x.current;
|
|
565
|
+
if (E) {
|
|
566
|
+
const xe = (S = Object.getOwnPropertyDescriptor(
|
|
554
567
|
HTMLSelectElement.prototype,
|
|
555
568
|
"value"
|
|
556
|
-
)) == null ? void 0 :
|
|
557
|
-
|
|
569
|
+
)) == null ? void 0 : S.set;
|
|
570
|
+
xe == null || xe.call(E, b), E.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
558
571
|
}
|
|
559
|
-
},
|
|
560
|
-
if (w || !
|
|
561
|
-
|
|
562
|
-
const b =
|
|
572
|
+
}, Xe = () => {
|
|
573
|
+
if (w || !W.length) return;
|
|
574
|
+
he(!0);
|
|
575
|
+
const b = W.findIndex((S) => S.value === Ee && !S.disabled);
|
|
563
576
|
if (b >= 0) {
|
|
564
|
-
|
|
577
|
+
Re(b);
|
|
565
578
|
return;
|
|
566
579
|
}
|
|
567
|
-
const
|
|
568
|
-
|
|
569
|
-
},
|
|
570
|
-
if (!
|
|
571
|
-
let
|
|
572
|
-
for (let
|
|
573
|
-
if (
|
|
574
|
-
|
|
580
|
+
const E = W.findIndex((S) => !S.disabled);
|
|
581
|
+
Re(E);
|
|
582
|
+
}, Qe = (b) => {
|
|
583
|
+
if (!W.length) return;
|
|
584
|
+
let E = Ne;
|
|
585
|
+
for (let S = 0; S < W.length; S += 1)
|
|
586
|
+
if (E = (E + b + W.length) % W.length, !W[E].disabled) {
|
|
587
|
+
Re(E);
|
|
575
588
|
return;
|
|
576
589
|
}
|
|
577
|
-
},
|
|
578
|
-
if (
|
|
579
|
-
if (!
|
|
580
|
-
b.preventDefault(),
|
|
590
|
+
}, ft = (b) => {
|
|
591
|
+
if (g == null || g(b), !b.defaultPrevented) {
|
|
592
|
+
if (!le && (b.key === "ArrowDown" || b.key === "ArrowUp")) {
|
|
593
|
+
b.preventDefault(), Xe();
|
|
581
594
|
return;
|
|
582
595
|
}
|
|
583
|
-
if (!
|
|
584
|
-
b.preventDefault(),
|
|
596
|
+
if (!le && (b.key === "Enter" || b.key === " ")) {
|
|
597
|
+
b.preventDefault(), Xe();
|
|
585
598
|
return;
|
|
586
599
|
}
|
|
587
|
-
if (
|
|
600
|
+
if (le) {
|
|
588
601
|
if (b.key === "Escape") {
|
|
589
|
-
b.preventDefault(),
|
|
602
|
+
b.preventDefault(), he(!1);
|
|
590
603
|
return;
|
|
591
604
|
}
|
|
592
605
|
if (b.key === "ArrowDown") {
|
|
593
|
-
b.preventDefault(),
|
|
606
|
+
b.preventDefault(), Qe(1);
|
|
594
607
|
return;
|
|
595
608
|
}
|
|
596
609
|
if (b.key === "ArrowUp") {
|
|
597
|
-
b.preventDefault(),
|
|
610
|
+
b.preventDefault(), Qe(-1);
|
|
598
611
|
return;
|
|
599
612
|
}
|
|
600
|
-
(b.key === "Enter" || b.key === " ") && (b.preventDefault(),
|
|
613
|
+
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), Ne >= 0 && !W[Ne].disabled && (Je(W[Ne].value), he(!1)));
|
|
601
614
|
}
|
|
602
615
|
}
|
|
603
616
|
};
|
|
604
|
-
return /* @__PURE__ */
|
|
605
|
-
t && /* @__PURE__ */
|
|
617
|
+
return /* @__PURE__ */ d("div", { className: `${L.wrapper}${i ? ` ${L.wrapperFullWidth}` : ""}`, children: [
|
|
618
|
+
t && /* @__PURE__ */ d("label", { id: ze, className: L.label, children: [
|
|
606
619
|
t,
|
|
607
|
-
|
|
620
|
+
r && /* @__PURE__ */ e("span", { className: L.required, "aria-hidden": "true", children: "*" })
|
|
608
621
|
] }),
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ d("div", { className: L.selectWrapper, ref: $, children: [
|
|
623
|
+
/* @__PURE__ */ d(
|
|
611
624
|
"select",
|
|
612
625
|
{
|
|
613
|
-
ref:
|
|
614
|
-
id:
|
|
615
|
-
className:
|
|
616
|
-
value:
|
|
617
|
-
required:
|
|
626
|
+
ref: x,
|
|
627
|
+
id: k,
|
|
628
|
+
className: L.hiddenSelect,
|
|
629
|
+
value: Ee,
|
|
630
|
+
required: r,
|
|
618
631
|
disabled: w,
|
|
619
|
-
name:
|
|
620
|
-
form:
|
|
621
|
-
autoComplete:
|
|
632
|
+
name: B,
|
|
633
|
+
form: z,
|
|
634
|
+
autoComplete: y,
|
|
622
635
|
"aria-invalid": !!n,
|
|
623
|
-
"aria-describedby": [n ?
|
|
636
|
+
"aria-describedby": [n ? G : null, s && !n ? ne : null].filter(Boolean).join(" ") || void 0,
|
|
624
637
|
"aria-hidden": "true",
|
|
625
638
|
tabIndex: -1,
|
|
626
639
|
onChange: f ?? (() => {
|
|
627
640
|
}),
|
|
628
641
|
...N,
|
|
629
642
|
children: [
|
|
630
|
-
|
|
631
|
-
|
|
643
|
+
a && /* @__PURE__ */ e("option", { value: "", disabled: r, children: a }),
|
|
644
|
+
W.map((b) => /* @__PURE__ */ e("option", { value: b.value, disabled: b.disabled, children: b.label }, b.value))
|
|
632
645
|
]
|
|
633
646
|
}
|
|
634
647
|
),
|
|
@@ -636,22 +649,22 @@ const Xo = j.forwardRef(
|
|
|
636
649
|
"button",
|
|
637
650
|
{
|
|
638
651
|
type: "button",
|
|
639
|
-
className:
|
|
652
|
+
className: mt,
|
|
640
653
|
disabled: w,
|
|
641
654
|
role: "combobox",
|
|
642
655
|
"aria-invalid": !!n,
|
|
643
|
-
"aria-labelledby":
|
|
656
|
+
"aria-labelledby": ze,
|
|
644
657
|
"aria-haspopup": "listbox",
|
|
645
|
-
"aria-expanded":
|
|
646
|
-
"aria-controls":
|
|
647
|
-
onClick: () =>
|
|
648
|
-
onKeyDown:
|
|
649
|
-
onFocus: (b) =>
|
|
650
|
-
onBlur: (b) =>
|
|
651
|
-
children: /* @__PURE__ */ e("span", { className: `${
|
|
658
|
+
"aria-expanded": le,
|
|
659
|
+
"aria-controls": pe,
|
|
660
|
+
onClick: () => le ? he(!1) : Xe(),
|
|
661
|
+
onKeyDown: ft,
|
|
662
|
+
onFocus: (b) => p == null ? void 0 : p(b),
|
|
663
|
+
onBlur: (b) => v == null ? void 0 : v(b),
|
|
664
|
+
children: /* @__PURE__ */ e("span", { className: `${L.valueText}${Se ? "" : ` ${L.placeholder}`}`, children: ht })
|
|
652
665
|
}
|
|
653
666
|
),
|
|
654
|
-
/* @__PURE__ */ e("span", { className:
|
|
667
|
+
/* @__PURE__ */ e("span", { className: L.chevron, "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
655
668
|
"path",
|
|
656
669
|
{
|
|
657
670
|
strokeLinecap: "round",
|
|
@@ -660,30 +673,30 @@ const Xo = j.forwardRef(
|
|
|
660
673
|
d: "M19 9l-7 7-7-7"
|
|
661
674
|
}
|
|
662
675
|
) }) }),
|
|
663
|
-
|
|
664
|
-
const
|
|
665
|
-
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */
|
|
676
|
+
le && /* @__PURE__ */ e("ul", { id: pe, role: "listbox", className: L.menu, children: W.map((b, E) => {
|
|
677
|
+
const S = b.value === Ee, xe = E === Ne;
|
|
678
|
+
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
|
|
666
679
|
"button",
|
|
667
680
|
{
|
|
668
681
|
type: "button",
|
|
669
682
|
role: "option",
|
|
670
|
-
"aria-selected":
|
|
683
|
+
"aria-selected": S,
|
|
671
684
|
className: [
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
685
|
+
L.option,
|
|
686
|
+
S ? L.optionSelected : "",
|
|
687
|
+
xe ? L.optionFocused : ""
|
|
675
688
|
].filter(Boolean).join(" "),
|
|
676
689
|
disabled: b.disabled,
|
|
677
|
-
onMouseEnter: () =>
|
|
690
|
+
onMouseEnter: () => Re(E),
|
|
678
691
|
onClick: () => {
|
|
679
|
-
|
|
692
|
+
Je(b.value), he(!1);
|
|
680
693
|
},
|
|
681
694
|
children: [
|
|
682
|
-
/* @__PURE__ */ e("span", { className:
|
|
695
|
+
/* @__PURE__ */ e("span", { className: L.optionLabel, children: b.label }),
|
|
683
696
|
/* @__PURE__ */ e(
|
|
684
697
|
"span",
|
|
685
698
|
{
|
|
686
|
-
className: `${
|
|
699
|
+
className: `${L.optionCheck}${S ? ` ${L.optionCheckVisible}` : ""}`,
|
|
687
700
|
"aria-hidden": "true",
|
|
688
701
|
children: /* @__PURE__ */ e("svg", { width: "14", height: "14", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
689
702
|
"path",
|
|
@@ -701,252 +714,252 @@ const Xo = j.forwardRef(
|
|
|
701
714
|
) }, b.value);
|
|
702
715
|
}) })
|
|
703
716
|
] }),
|
|
704
|
-
n && /* @__PURE__ */ e("span", { id:
|
|
705
|
-
|
|
717
|
+
n && /* @__PURE__ */ e("span", { id: G, className: L.errorText, role: "alert", children: n }),
|
|
718
|
+
s && !n && /* @__PURE__ */ e("span", { id: ne, className: L.hint, children: s })
|
|
706
719
|
] });
|
|
707
720
|
}
|
|
708
721
|
);
|
|
709
|
-
|
|
710
|
-
const
|
|
711
|
-
wrapper:
|
|
712
|
-
row:
|
|
713
|
-
checkbox:
|
|
714
|
-
hasError:
|
|
715
|
-
sm:
|
|
716
|
-
md:
|
|
717
|
-
lg:
|
|
718
|
-
label:
|
|
719
|
-
description:
|
|
720
|
-
errorText:
|
|
721
|
-
},
|
|
722
|
-
({ label: t, description: o, error: n, size:
|
|
723
|
-
const c =
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
n ?
|
|
727
|
-
|
|
722
|
+
fs.displayName = "Select";
|
|
723
|
+
const bs = "_wrapper_iu9cq_1", gs = "_row_iu9cq_7", vs = "_checkbox_iu9cq_14", ws = "_hasError_iu9cq_51", $s = "_sm_iu9cq_60", ys = "_md_iu9cq_74", ks = "_lg_iu9cq_88", Ns = "_label_iu9cq_102", xs = "_description_iu9cq_113", Bs = "_errorText_iu9cq_123", J = {
|
|
724
|
+
wrapper: bs,
|
|
725
|
+
row: gs,
|
|
726
|
+
checkbox: vs,
|
|
727
|
+
hasError: ws,
|
|
728
|
+
sm: $s,
|
|
729
|
+
md: ys,
|
|
730
|
+
lg: ks,
|
|
731
|
+
label: Ns,
|
|
732
|
+
description: xs,
|
|
733
|
+
errorText: Bs
|
|
734
|
+
}, Ls = j.forwardRef(
|
|
735
|
+
({ label: t, description: o, error: n, size: s = "md", className: r, id: i, ...l }, a) => {
|
|
736
|
+
const c = i ?? (t ? `vui-checkbox-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), _ = c ? `${c}-error` : void 0, h = c && o ? `${c}-desc` : void 0, m = [
|
|
737
|
+
J.checkbox,
|
|
738
|
+
J[s],
|
|
739
|
+
n ? J.hasError : "",
|
|
740
|
+
r ?? ""
|
|
728
741
|
].filter(Boolean).join(" ");
|
|
729
|
-
return /* @__PURE__ */
|
|
730
|
-
/* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ d("div", { className: `${J.wrapper} ${J[s]}`, children: [
|
|
743
|
+
/* @__PURE__ */ d("div", { className: J.row, children: [
|
|
731
744
|
/* @__PURE__ */ e(
|
|
732
745
|
"input",
|
|
733
746
|
{
|
|
734
|
-
ref:
|
|
747
|
+
ref: a,
|
|
735
748
|
type: "checkbox",
|
|
736
749
|
id: c,
|
|
737
750
|
className: m,
|
|
738
751
|
"aria-invalid": !!n,
|
|
739
|
-
"aria-describedby": [n ? _ : null,
|
|
752
|
+
"aria-describedby": [n ? _ : null, h].filter(Boolean).join(" ") || void 0,
|
|
740
753
|
...l
|
|
741
754
|
}
|
|
742
755
|
),
|
|
743
|
-
t && /* @__PURE__ */ e("label", { htmlFor: c, className:
|
|
756
|
+
t && /* @__PURE__ */ e("label", { htmlFor: c, className: J.label, children: t })
|
|
744
757
|
] }),
|
|
745
|
-
o && !n && /* @__PURE__ */ e("span", { id:
|
|
746
|
-
n && /* @__PURE__ */ e("span", { id: _, className:
|
|
758
|
+
o && !n && /* @__PURE__ */ e("span", { id: h, className: J.description, children: o }),
|
|
759
|
+
n && /* @__PURE__ */ e("span", { id: _, className: J.errorText, role: "alert", children: n })
|
|
747
760
|
] });
|
|
748
761
|
}
|
|
749
762
|
);
|
|
750
|
-
|
|
751
|
-
const
|
|
752
|
-
fieldset:
|
|
753
|
-
legend:
|
|
754
|
-
required:
|
|
755
|
-
group:
|
|
756
|
-
vertical:
|
|
757
|
-
horizontal:
|
|
758
|
-
option:
|
|
759
|
-
radio:
|
|
760
|
-
hasError:
|
|
761
|
-
sm:
|
|
762
|
-
md:
|
|
763
|
-
lg:
|
|
764
|
-
optionContent:
|
|
765
|
-
optionLabel:
|
|
766
|
-
optionDescription:
|
|
767
|
-
hint:
|
|
768
|
-
errorText:
|
|
769
|
-
},
|
|
763
|
+
Ls.displayName = "Checkbox";
|
|
764
|
+
const js = "_fieldset_nj7or_1", Is = "_legend_nj7or_10", Cs = "_required_nj7or_19", zs = "_group_nj7or_24", Ws = "_vertical_nj7or_28", Es = "_horizontal_nj7or_33", Rs = "_option_nj7or_39", Ss = "_radio_nj7or_46", Ts = "_hasError_nj7or_81", Ds = "_sm_nj7or_86", qs = "_md_nj7or_87", Ms = "_lg_nj7or_88", Fs = "_optionContent_nj7or_90", As = "_optionLabel_nj7or_96", Hs = "_optionDescription_nj7or_107", Ps = "_hint_nj7or_113", Os = "_errorText_nj7or_119", T = {
|
|
765
|
+
fieldset: js,
|
|
766
|
+
legend: Is,
|
|
767
|
+
required: Cs,
|
|
768
|
+
group: zs,
|
|
769
|
+
vertical: Ws,
|
|
770
|
+
horizontal: Es,
|
|
771
|
+
option: Rs,
|
|
772
|
+
radio: Ss,
|
|
773
|
+
hasError: Ts,
|
|
774
|
+
sm: Ds,
|
|
775
|
+
md: qs,
|
|
776
|
+
lg: Ms,
|
|
777
|
+
optionContent: Fs,
|
|
778
|
+
optionLabel: As,
|
|
779
|
+
optionDescription: Hs,
|
|
780
|
+
hint: Ps,
|
|
781
|
+
errorText: Os
|
|
782
|
+
}, J_ = ({
|
|
770
783
|
name: t,
|
|
771
784
|
label: o,
|
|
772
785
|
options: n,
|
|
773
|
-
value:
|
|
774
|
-
defaultValue:
|
|
775
|
-
onChange:
|
|
786
|
+
value: s,
|
|
787
|
+
defaultValue: r,
|
|
788
|
+
onChange: i,
|
|
776
789
|
size: l = "md",
|
|
777
|
-
orientation:
|
|
790
|
+
orientation: a = "vertical",
|
|
778
791
|
error: c,
|
|
779
792
|
hint: _,
|
|
780
|
-
required:
|
|
793
|
+
required: h
|
|
781
794
|
}) => {
|
|
782
|
-
const m = `vui-radiogroup-${t}`,
|
|
783
|
-
return /* @__PURE__ */
|
|
795
|
+
const m = `vui-radiogroup-${t}`, u = `${m}-error`, f = `${m}-hint`, v = s !== void 0;
|
|
796
|
+
return /* @__PURE__ */ d(
|
|
784
797
|
"fieldset",
|
|
785
798
|
{
|
|
786
799
|
className: `${T.fieldset} ${T[l]}`,
|
|
787
|
-
"aria-describedby": [c ?
|
|
800
|
+
"aria-describedby": [c ? u : null, _ && !c ? f : null].filter(Boolean).join(" ") || void 0,
|
|
788
801
|
children: [
|
|
789
|
-
o && /* @__PURE__ */
|
|
802
|
+
o && /* @__PURE__ */ d("legend", { className: T.legend, children: [
|
|
790
803
|
o,
|
|
791
|
-
|
|
804
|
+
h && /* @__PURE__ */ e("span", { className: T.required, "aria-hidden": "true", children: "*" })
|
|
792
805
|
] }),
|
|
793
|
-
/* @__PURE__ */ e("div", { className: `${T.group} ${T[
|
|
794
|
-
const
|
|
795
|
-
return /* @__PURE__ */
|
|
806
|
+
/* @__PURE__ */ e("div", { className: `${T.group} ${T[a]}`, children: n.map((p) => {
|
|
807
|
+
const g = `${m}-${p.value}`, w = v ? { checked: s === p.value } : { defaultChecked: r === p.value };
|
|
808
|
+
return /* @__PURE__ */ d("div", { className: T.option, children: [
|
|
796
809
|
/* @__PURE__ */ e(
|
|
797
810
|
"input",
|
|
798
811
|
{
|
|
799
812
|
type: "radio",
|
|
800
|
-
id:
|
|
813
|
+
id: g,
|
|
801
814
|
name: t,
|
|
802
|
-
value:
|
|
803
|
-
disabled:
|
|
804
|
-
required:
|
|
805
|
-
onChange: () =>
|
|
815
|
+
value: p.value,
|
|
816
|
+
disabled: p.disabled,
|
|
817
|
+
required: h,
|
|
818
|
+
onChange: () => i == null ? void 0 : i(p.value),
|
|
806
819
|
className: `${T.radio} ${c ? T.hasError : ""}`,
|
|
807
820
|
"aria-invalid": c ? !0 : void 0,
|
|
808
821
|
...w
|
|
809
822
|
}
|
|
810
823
|
),
|
|
811
|
-
/* @__PURE__ */
|
|
812
|
-
/* @__PURE__ */ e("label", { htmlFor:
|
|
813
|
-
|
|
824
|
+
/* @__PURE__ */ d("div", { className: T.optionContent, children: [
|
|
825
|
+
/* @__PURE__ */ e("label", { htmlFor: g, className: T.optionLabel, children: p.label }),
|
|
826
|
+
p.description && /* @__PURE__ */ e("span", { className: T.optionDescription, children: p.description })
|
|
814
827
|
] })
|
|
815
|
-
] },
|
|
828
|
+
] }, p.value);
|
|
816
829
|
}) }),
|
|
817
|
-
c && /* @__PURE__ */ e("span", { id:
|
|
830
|
+
c && /* @__PURE__ */ e("span", { id: u, className: T.errorText, role: "alert", children: c }),
|
|
818
831
|
_ && !c && /* @__PURE__ */ e("span", { id: f, className: T.hint, children: _ })
|
|
819
832
|
]
|
|
820
833
|
}
|
|
821
834
|
);
|
|
822
|
-
},
|
|
823
|
-
wrapper:
|
|
824
|
-
labelRow:
|
|
825
|
-
track:
|
|
826
|
-
input:
|
|
827
|
-
thumb:
|
|
828
|
-
labelText:
|
|
829
|
-
sm:
|
|
830
|
-
md:
|
|
831
|
-
lg:
|
|
832
|
-
description:
|
|
833
|
-
},
|
|
834
|
-
({ label: t, description: o, size: n = "md", className:
|
|
835
|
-
const
|
|
836
|
-
return /* @__PURE__ */
|
|
837
|
-
/* @__PURE__ */
|
|
838
|
-
/* @__PURE__ */
|
|
835
|
+
}, Us = "_wrapper_okiio_1", Vs = "_labelRow_okiio_7", Xs = "_track_okiio_15", Ys = "_input_okiio_23", Ks = "_thumb_okiio_32", Gs = "_labelText_okiio_65", Js = "_sm_okiio_74", Qs = "_md_okiio_80", Zs = "_lg_okiio_86", er = "_description_okiio_98", oe = {
|
|
836
|
+
wrapper: Us,
|
|
837
|
+
labelRow: Vs,
|
|
838
|
+
track: Xs,
|
|
839
|
+
input: Ys,
|
|
840
|
+
thumb: Ks,
|
|
841
|
+
labelText: Gs,
|
|
842
|
+
sm: Js,
|
|
843
|
+
md: Qs,
|
|
844
|
+
lg: Zs,
|
|
845
|
+
description: er
|
|
846
|
+
}, tr = j.forwardRef(
|
|
847
|
+
({ label: t, description: o, size: n = "md", className: s, id: r, ...i }, l) => {
|
|
848
|
+
const a = r ?? (t ? `vui-switch-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), c = a && o ? `${a}-desc` : void 0;
|
|
849
|
+
return /* @__PURE__ */ d("div", { className: `${oe.wrapper} ${oe[n]}`, children: [
|
|
850
|
+
/* @__PURE__ */ d("label", { className: oe.labelRow, htmlFor: a, children: [
|
|
851
|
+
/* @__PURE__ */ d("span", { className: oe.track, children: [
|
|
839
852
|
/* @__PURE__ */ e(
|
|
840
853
|
"input",
|
|
841
854
|
{
|
|
842
855
|
ref: l,
|
|
843
856
|
type: "checkbox",
|
|
844
857
|
role: "switch",
|
|
845
|
-
id:
|
|
846
|
-
className: `${
|
|
858
|
+
id: a,
|
|
859
|
+
className: `${oe.input} ${s ?? ""}`,
|
|
847
860
|
"aria-describedby": c || void 0,
|
|
848
|
-
...
|
|
861
|
+
...i
|
|
849
862
|
}
|
|
850
863
|
),
|
|
851
|
-
/* @__PURE__ */ e("span", { className:
|
|
864
|
+
/* @__PURE__ */ e("span", { className: oe.thumb, "aria-hidden": "true" })
|
|
852
865
|
] }),
|
|
853
|
-
t && /* @__PURE__ */ e("span", { className:
|
|
866
|
+
t && /* @__PURE__ */ e("span", { className: oe.labelText, children: t })
|
|
854
867
|
] }),
|
|
855
|
-
o && /* @__PURE__ */ e("span", { id: c, className:
|
|
868
|
+
o && /* @__PURE__ */ e("span", { id: c, className: oe.description, children: o })
|
|
856
869
|
] });
|
|
857
870
|
}
|
|
858
871
|
);
|
|
859
|
-
|
|
860
|
-
const
|
|
861
|
-
overlay:
|
|
862
|
-
overlayFadeIn:
|
|
863
|
-
dialog:
|
|
864
|
-
dialogSlideUp:
|
|
865
|
-
sm:
|
|
866
|
-
md:
|
|
867
|
-
lg:
|
|
868
|
-
xl:
|
|
869
|
-
header:
|
|
870
|
-
title:
|
|
871
|
-
description:
|
|
872
|
-
body:
|
|
873
|
-
footer:
|
|
874
|
-
closeBtn:
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
const
|
|
880
|
-
|
|
881
|
-
const
|
|
872
|
+
tr.displayName = "Switch";
|
|
873
|
+
const nr = "_overlay_gedqr_1", or = "_overlayFadeIn_gedqr_1", sr = "_dialog_gedqr_19", rr = "_dialogSlideUp_gedqr_1", ar = "_sm_gedqr_39", ir = "_md_gedqr_40", lr = "_lg_gedqr_41", cr = "_xl_gedqr_42", dr = "_header_gedqr_45", _r = "_title_gedqr_51", ur = "_description_gedqr_59", pr = "_body_gedqr_66", hr = "_footer_gedqr_71", mr = "_closeBtn_gedqr_81", K = {
|
|
874
|
+
overlay: nr,
|
|
875
|
+
overlayFadeIn: or,
|
|
876
|
+
dialog: sr,
|
|
877
|
+
dialogSlideUp: rr,
|
|
878
|
+
sm: ar,
|
|
879
|
+
md: ir,
|
|
880
|
+
lg: lr,
|
|
881
|
+
xl: cr,
|
|
882
|
+
header: dr,
|
|
883
|
+
title: _r,
|
|
884
|
+
description: ur,
|
|
885
|
+
body: pr,
|
|
886
|
+
footer: hr,
|
|
887
|
+
closeBtn: mr
|
|
888
|
+
}, Ze = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])', lt = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${K.header} ${o ?? ""}`, ...n, children: t });
|
|
889
|
+
lt.displayName = "Dialog.Header";
|
|
890
|
+
const ct = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${K.body} ${o ?? ""}`, ...n, children: t });
|
|
891
|
+
ct.displayName = "Dialog.Body";
|
|
892
|
+
const dt = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${K.footer} ${o ?? ""}`, ...n, children: t });
|
|
893
|
+
dt.displayName = "Dialog.Footer";
|
|
894
|
+
const et = { current: 0 }, fr = ({
|
|
882
895
|
open: t,
|
|
883
896
|
onClose: o,
|
|
884
897
|
title: n,
|
|
885
|
-
description:
|
|
886
|
-
size:
|
|
887
|
-
children:
|
|
898
|
+
description: s,
|
|
899
|
+
size: r = "md",
|
|
900
|
+
children: i,
|
|
888
901
|
className: l,
|
|
889
|
-
closeOnOverlayClick:
|
|
902
|
+
closeOnOverlayClick: a = !0
|
|
890
903
|
}) => {
|
|
891
|
-
const c = A(null), _ = A(`vui-dialog-title-${++
|
|
892
|
-
if (
|
|
904
|
+
const c = A(null), _ = A(`vui-dialog-title-${++et.current}`).current, h = A(`vui-dialog-desc-${et.current}`).current, m = A(null);
|
|
905
|
+
if (ae(() => {
|
|
893
906
|
if (!t) return;
|
|
894
907
|
m.current = document.activeElement, document.body.style.overflow = "hidden";
|
|
895
|
-
const
|
|
896
|
-
var w,
|
|
897
|
-
const
|
|
898
|
-
(
|
|
899
|
-
}),
|
|
900
|
-
if (
|
|
908
|
+
const v = requestAnimationFrame(() => {
|
|
909
|
+
var w, B;
|
|
910
|
+
const g = (w = c.current) == null ? void 0 : w.querySelectorAll(Ze);
|
|
911
|
+
(B = g == null ? void 0 : g[0]) == null || B.focus();
|
|
912
|
+
}), p = (g) => {
|
|
913
|
+
if (g.key === "Escape") {
|
|
901
914
|
o();
|
|
902
915
|
return;
|
|
903
916
|
}
|
|
904
|
-
if (
|
|
917
|
+
if (g.key === "Tab" && c.current) {
|
|
905
918
|
const w = Array.from(
|
|
906
|
-
c.current.querySelectorAll(
|
|
919
|
+
c.current.querySelectorAll(Ze)
|
|
907
920
|
);
|
|
908
921
|
if (w.length === 0) {
|
|
909
|
-
|
|
922
|
+
g.preventDefault();
|
|
910
923
|
return;
|
|
911
924
|
}
|
|
912
|
-
const
|
|
913
|
-
|
|
925
|
+
const B = w[0], y = w[w.length - 1];
|
|
926
|
+
g.shiftKey ? document.activeElement === B && (y.focus(), g.preventDefault()) : document.activeElement === y && (B.focus(), g.preventDefault());
|
|
914
927
|
}
|
|
915
928
|
};
|
|
916
|
-
return document.addEventListener("keydown",
|
|
917
|
-
var
|
|
918
|
-
cancelAnimationFrame(
|
|
929
|
+
return document.addEventListener("keydown", p), () => {
|
|
930
|
+
var g;
|
|
931
|
+
cancelAnimationFrame(v), document.removeEventListener("keydown", p), document.body.style.overflow = "", (g = m.current) == null || g.focus();
|
|
919
932
|
};
|
|
920
933
|
}, [t, o]), !t) return null;
|
|
921
|
-
const
|
|
922
|
-
|
|
934
|
+
const u = (f) => {
|
|
935
|
+
a && f.target === f.currentTarget && o();
|
|
923
936
|
};
|
|
924
937
|
return /* @__PURE__ */ e(
|
|
925
938
|
"div",
|
|
926
939
|
{
|
|
927
|
-
className:
|
|
928
|
-
onClick:
|
|
940
|
+
className: K.overlay,
|
|
941
|
+
onClick: u,
|
|
929
942
|
"aria-modal": "true",
|
|
930
943
|
role: "presentation",
|
|
931
|
-
children: /* @__PURE__ */
|
|
944
|
+
children: /* @__PURE__ */ d(
|
|
932
945
|
"div",
|
|
933
946
|
{
|
|
934
947
|
ref: c,
|
|
935
948
|
role: "dialog",
|
|
936
949
|
"aria-labelledby": n ? _ : void 0,
|
|
937
|
-
"aria-describedby":
|
|
938
|
-
className: [
|
|
950
|
+
"aria-describedby": s ? h : void 0,
|
|
951
|
+
className: [K.dialog, K[r], l ?? ""].filter(Boolean).join(" "),
|
|
939
952
|
children: [
|
|
940
|
-
n && /* @__PURE__ */
|
|
941
|
-
/* @__PURE__ */ e("p", { id: _, className:
|
|
942
|
-
|
|
953
|
+
n && /* @__PURE__ */ d("div", { className: K.header, children: [
|
|
954
|
+
/* @__PURE__ */ e("p", { id: _, className: K.title, children: n }),
|
|
955
|
+
s && /* @__PURE__ */ e("p", { id: h, className: K.description, children: s })
|
|
943
956
|
] }),
|
|
944
|
-
|
|
957
|
+
i,
|
|
945
958
|
/* @__PURE__ */ e(
|
|
946
959
|
"button",
|
|
947
960
|
{
|
|
948
961
|
type: "button",
|
|
949
|
-
className:
|
|
962
|
+
className: K.closeBtn,
|
|
950
963
|
onClick: o,
|
|
951
964
|
"aria-label": "Close dialog",
|
|
952
965
|
children: /* @__PURE__ */ e(
|
|
@@ -976,185 +989,185 @@ const Oe = { current: 0 }, Xr = ({
|
|
|
976
989
|
)
|
|
977
990
|
}
|
|
978
991
|
);
|
|
979
|
-
},
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
const
|
|
985
|
-
wrapper:
|
|
986
|
-
tooltip:
|
|
987
|
-
visible:
|
|
988
|
-
top:
|
|
989
|
-
bottom:
|
|
990
|
-
left:
|
|
991
|
-
right:
|
|
992
|
-
arrow:
|
|
993
|
-
arrowTop:
|
|
994
|
-
arrowBottom:
|
|
995
|
-
arrowLeft:
|
|
996
|
-
arrowRight:
|
|
997
|
-
},
|
|
992
|
+
}, Ue = fr;
|
|
993
|
+
Ue.Header = lt;
|
|
994
|
+
Ue.Body = ct;
|
|
995
|
+
Ue.Footer = dt;
|
|
996
|
+
Ue.displayName = "Dialog";
|
|
997
|
+
const br = "_wrapper_16e9w_1", gr = "_tooltip_16e9w_6", vr = "_visible_16e9w_25", wr = "_top_16e9w_30", $r = "_bottom_16e9w_36", yr = "_left_16e9w_42", kr = "_right_16e9w_48", Nr = "_arrow_16e9w_55", xr = "_arrowTop_16e9w_61", Br = "_arrowBottom_16e9w_70", Lr = "_arrowLeft_16e9w_79", jr = "_arrowRight_16e9w_88", me = {
|
|
998
|
+
wrapper: br,
|
|
999
|
+
tooltip: gr,
|
|
1000
|
+
visible: vr,
|
|
1001
|
+
top: wr,
|
|
1002
|
+
bottom: $r,
|
|
1003
|
+
left: yr,
|
|
1004
|
+
right: kr,
|
|
1005
|
+
arrow: Nr,
|
|
1006
|
+
arrowTop: xr,
|
|
1007
|
+
arrowBottom: Br,
|
|
1008
|
+
arrowLeft: Lr,
|
|
1009
|
+
arrowRight: jr
|
|
1010
|
+
}, Q_ = ({
|
|
998
1011
|
content: t,
|
|
999
1012
|
children: o,
|
|
1000
1013
|
placement: n = "top",
|
|
1001
|
-
delay:
|
|
1014
|
+
delay: s = 0
|
|
1002
1015
|
}) => {
|
|
1003
|
-
const [
|
|
1004
|
-
|
|
1005
|
-
},
|
|
1006
|
-
c.current && clearTimeout(c.current),
|
|
1016
|
+
const [r, i] = O(!1), a = `vui-tooltip-${Pe().replace(/:/g, "")}`, c = j.useRef(null), _ = () => {
|
|
1017
|
+
s > 0 ? c.current = setTimeout(() => i(!0), s) : i(!0);
|
|
1018
|
+
}, h = () => {
|
|
1019
|
+
c.current && clearTimeout(c.current), i(!1);
|
|
1007
1020
|
}, m = j.cloneElement(o, {
|
|
1008
|
-
"aria-describedby":
|
|
1021
|
+
"aria-describedby": r ? a : void 0
|
|
1009
1022
|
});
|
|
1010
|
-
return /* @__PURE__ */
|
|
1023
|
+
return /* @__PURE__ */ d(
|
|
1011
1024
|
"span",
|
|
1012
1025
|
{
|
|
1013
|
-
className:
|
|
1026
|
+
className: me.wrapper,
|
|
1014
1027
|
onMouseEnter: _,
|
|
1015
|
-
onMouseLeave:
|
|
1028
|
+
onMouseLeave: h,
|
|
1016
1029
|
onFocus: _,
|
|
1017
|
-
onBlur:
|
|
1030
|
+
onBlur: h,
|
|
1018
1031
|
children: [
|
|
1019
1032
|
m,
|
|
1020
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ d(
|
|
1021
1034
|
"span",
|
|
1022
1035
|
{
|
|
1023
|
-
id:
|
|
1036
|
+
id: a,
|
|
1024
1037
|
role: "tooltip",
|
|
1025
|
-
className: [
|
|
1026
|
-
"aria-hidden": !
|
|
1038
|
+
className: [me.tooltip, me[n], r ? me.visible : ""].filter(Boolean).join(" "),
|
|
1039
|
+
"aria-hidden": !r,
|
|
1027
1040
|
children: [
|
|
1028
1041
|
t,
|
|
1029
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1042
|
+
/* @__PURE__ */ e("span", { className: `${me.arrow} ${me[`arrow${n.charAt(0).toUpperCase()}${n.slice(1)}`]}`, "aria-hidden": "true" })
|
|
1030
1043
|
]
|
|
1031
1044
|
}
|
|
1032
1045
|
)
|
|
1033
1046
|
]
|
|
1034
1047
|
}
|
|
1035
1048
|
);
|
|
1036
|
-
},
|
|
1037
|
-
tabs:
|
|
1038
|
-
tablist:
|
|
1039
|
-
underline:
|
|
1040
|
-
tab:
|
|
1041
|
-
activeTab:
|
|
1042
|
-
pills:
|
|
1043
|
-
boxed:
|
|
1044
|
-
panel:
|
|
1045
|
-
},
|
|
1049
|
+
}, Ir = "_tabs_16y0p_1", Cr = "_tablist_16y0p_8", zr = "_underline_16y0p_14", Wr = "_tab_16y0p_1", Er = "_activeTab_16y0p_39", Rr = "_pills_16y0p_50", Sr = "_boxed_16y0p_89", Tr = "_panel_16y0p_139", fe = {
|
|
1050
|
+
tabs: Ir,
|
|
1051
|
+
tablist: Cr,
|
|
1052
|
+
underline: zr,
|
|
1053
|
+
tab: Wr,
|
|
1054
|
+
activeTab: Er,
|
|
1055
|
+
pills: Rr,
|
|
1056
|
+
boxed: Sr,
|
|
1057
|
+
panel: Tr
|
|
1058
|
+
}, Z_ = ({
|
|
1046
1059
|
items: t,
|
|
1047
1060
|
defaultValue: o,
|
|
1048
1061
|
value: n,
|
|
1049
|
-
onChange:
|
|
1050
|
-
variant:
|
|
1062
|
+
onChange: s,
|
|
1063
|
+
variant: r = "underline"
|
|
1051
1064
|
}) => {
|
|
1052
|
-
var
|
|
1053
|
-
const
|
|
1054
|
-
o ?? ((
|
|
1055
|
-
), c =
|
|
1056
|
-
|
|
1057
|
-
}, m = (
|
|
1058
|
-
var
|
|
1059
|
-
const w = t.filter((N) => !N.disabled),
|
|
1060
|
-
let
|
|
1061
|
-
if (
|
|
1062
|
-
|
|
1063
|
-
const N = w[
|
|
1064
|
-
|
|
1065
|
-
const
|
|
1065
|
+
var v;
|
|
1066
|
+
const i = n !== void 0, [l, a] = O(
|
|
1067
|
+
o ?? ((v = t[0]) == null ? void 0 : v.value) ?? ""
|
|
1068
|
+
), c = i ? n : l, _ = A(null), h = (p) => {
|
|
1069
|
+
i || a(p), s == null || s(p);
|
|
1070
|
+
}, m = (p, g) => {
|
|
1071
|
+
var z;
|
|
1072
|
+
const w = t.filter((N) => !N.disabled), B = w.findIndex((N) => N.value === t[g].value);
|
|
1073
|
+
let y = null;
|
|
1074
|
+
if (p.key === "ArrowRight" ? y = (B + 1) % w.length : p.key === "ArrowLeft" ? y = (B - 1 + w.length) % w.length : p.key === "Home" ? y = 0 : p.key === "End" && (y = w.length - 1), y !== null) {
|
|
1075
|
+
p.preventDefault();
|
|
1076
|
+
const N = w[y];
|
|
1077
|
+
h(N.value);
|
|
1078
|
+
const H = (z = _.current) == null ? void 0 : z.querySelector(
|
|
1066
1079
|
`[data-value="${N.value}"]`
|
|
1067
1080
|
);
|
|
1068
|
-
|
|
1081
|
+
H == null || H.focus();
|
|
1069
1082
|
}
|
|
1070
|
-
},
|
|
1071
|
-
return /* @__PURE__ */
|
|
1083
|
+
}, u = (p) => `vui-tabpanel-${p}`, f = (p) => `vui-tab-${p}`;
|
|
1084
|
+
return /* @__PURE__ */ d("div", { className: fe.tabs, children: [
|
|
1072
1085
|
/* @__PURE__ */ e(
|
|
1073
1086
|
"div",
|
|
1074
1087
|
{
|
|
1075
1088
|
ref: _,
|
|
1076
1089
|
role: "tablist",
|
|
1077
|
-
className: [
|
|
1078
|
-
children: t.map((
|
|
1090
|
+
className: [fe.tablist, fe[r]].filter(Boolean).join(" "),
|
|
1091
|
+
children: t.map((p, g) => /* @__PURE__ */ e(
|
|
1079
1092
|
"button",
|
|
1080
1093
|
{
|
|
1081
|
-
id: f(
|
|
1094
|
+
id: f(p.value),
|
|
1082
1095
|
role: "tab",
|
|
1083
1096
|
type: "button",
|
|
1084
|
-
"data-value":
|
|
1085
|
-
"aria-selected": c ===
|
|
1086
|
-
"aria-controls":
|
|
1087
|
-
disabled:
|
|
1088
|
-
tabIndex: c ===
|
|
1097
|
+
"data-value": p.value,
|
|
1098
|
+
"aria-selected": c === p.value,
|
|
1099
|
+
"aria-controls": u(p.value),
|
|
1100
|
+
disabled: p.disabled,
|
|
1101
|
+
tabIndex: c === p.value ? 0 : -1,
|
|
1089
1102
|
className: [
|
|
1090
|
-
|
|
1091
|
-
c ===
|
|
1103
|
+
fe.tab,
|
|
1104
|
+
c === p.value ? fe.activeTab : ""
|
|
1092
1105
|
].filter(Boolean).join(" "),
|
|
1093
|
-
onClick: () => p
|
|
1094
|
-
onKeyDown: (w) => m(w,
|
|
1095
|
-
children:
|
|
1106
|
+
onClick: () => h(p.value),
|
|
1107
|
+
onKeyDown: (w) => m(w, g),
|
|
1108
|
+
children: p.label
|
|
1096
1109
|
},
|
|
1097
|
-
|
|
1110
|
+
p.value
|
|
1098
1111
|
))
|
|
1099
1112
|
}
|
|
1100
1113
|
),
|
|
1101
|
-
t.map((
|
|
1114
|
+
t.map((p) => /* @__PURE__ */ e(
|
|
1102
1115
|
"div",
|
|
1103
1116
|
{
|
|
1104
|
-
id:
|
|
1117
|
+
id: u(p.value),
|
|
1105
1118
|
role: "tabpanel",
|
|
1106
|
-
"aria-labelledby": f(
|
|
1107
|
-
hidden: c !==
|
|
1108
|
-
className:
|
|
1109
|
-
children:
|
|
1119
|
+
"aria-labelledby": f(p.value),
|
|
1120
|
+
hidden: c !== p.value,
|
|
1121
|
+
className: fe.panel,
|
|
1122
|
+
children: p.children
|
|
1110
1123
|
},
|
|
1111
|
-
|
|
1124
|
+
p.value
|
|
1112
1125
|
))
|
|
1113
1126
|
] });
|
|
1114
|
-
},
|
|
1115
|
-
accordion:
|
|
1116
|
-
bordered:
|
|
1117
|
-
item:
|
|
1118
|
-
flush:
|
|
1119
|
-
separated:
|
|
1120
|
-
heading:
|
|
1121
|
-
trigger:
|
|
1122
|
-
icon:
|
|
1123
|
-
open:
|
|
1124
|
-
contentOuter:
|
|
1125
|
-
contentInner:
|
|
1126
|
-
},
|
|
1127
|
+
}, Dr = "_accordion_wacbm_1", qr = "_bordered_wacbm_7", Mr = "_item_wacbm_13", Fr = "_flush_wacbm_17", Ar = "_separated_wacbm_21", Hr = "_heading_wacbm_35", Pr = "_trigger_wacbm_40", Or = "_icon_wacbm_72", Ur = "_open_wacbm_80", Vr = "_contentOuter_wacbm_85", Xr = "_contentInner_wacbm_95", Q = {
|
|
1128
|
+
accordion: Dr,
|
|
1129
|
+
bordered: qr,
|
|
1130
|
+
item: Mr,
|
|
1131
|
+
flush: Fr,
|
|
1132
|
+
separated: Ar,
|
|
1133
|
+
heading: Hr,
|
|
1134
|
+
trigger: Pr,
|
|
1135
|
+
icon: Or,
|
|
1136
|
+
open: Ur,
|
|
1137
|
+
contentOuter: Vr,
|
|
1138
|
+
contentInner: Xr
|
|
1139
|
+
}, eu = ({
|
|
1127
1140
|
items: t,
|
|
1128
1141
|
defaultValue: o,
|
|
1129
1142
|
value: n,
|
|
1130
|
-
onChange:
|
|
1131
|
-
multiple:
|
|
1132
|
-
variant:
|
|
1143
|
+
onChange: s,
|
|
1144
|
+
multiple: r = !1,
|
|
1145
|
+
variant: i = "bordered"
|
|
1133
1146
|
}) => {
|
|
1134
|
-
const l = n !== void 0,
|
|
1147
|
+
const l = n !== void 0, a = (u) => u ? Array.isArray(u) ? u : [u] : [], [c, _] = O(a(o)), h = l ? a(n) : c, m = (u) => {
|
|
1135
1148
|
let f;
|
|
1136
|
-
|
|
1149
|
+
h.includes(u) ? f = h.filter((v) => v !== u) : f = r ? [...h, u] : [u], l || _(f), s == null || s(r ? f : f[0] ?? "");
|
|
1137
1150
|
};
|
|
1138
|
-
return /* @__PURE__ */ e("div", { className: [
|
|
1139
|
-
const f =
|
|
1140
|
-
return /* @__PURE__ */
|
|
1151
|
+
return /* @__PURE__ */ e("div", { className: [Q.accordion, Q[i]].filter(Boolean).join(" "), children: t.map((u) => {
|
|
1152
|
+
const f = h.includes(u.value), v = `vui-accordion-trigger-${u.value}`, p = `vui-accordion-panel-${u.value}`;
|
|
1153
|
+
return /* @__PURE__ */ d(
|
|
1141
1154
|
"div",
|
|
1142
1155
|
{
|
|
1143
|
-
className: [
|
|
1156
|
+
className: [Q.item, f ? Q.open : ""].filter(Boolean).join(" "),
|
|
1144
1157
|
children: [
|
|
1145
|
-
/* @__PURE__ */ e("h3", { className:
|
|
1158
|
+
/* @__PURE__ */ e("h3", { className: Q.heading, children: /* @__PURE__ */ d(
|
|
1146
1159
|
"button",
|
|
1147
1160
|
{
|
|
1148
|
-
id:
|
|
1161
|
+
id: v,
|
|
1149
1162
|
type: "button",
|
|
1150
1163
|
"aria-expanded": f,
|
|
1151
|
-
"aria-controls":
|
|
1152
|
-
disabled:
|
|
1153
|
-
className:
|
|
1154
|
-
onClick: () => !
|
|
1164
|
+
"aria-controls": p,
|
|
1165
|
+
disabled: u.disabled,
|
|
1166
|
+
className: Q.trigger,
|
|
1167
|
+
onClick: () => !u.disabled && m(u.value),
|
|
1155
1168
|
children: [
|
|
1156
|
-
/* @__PURE__ */ e("span", { children:
|
|
1157
|
-
/* @__PURE__ */ e("span", { className:
|
|
1169
|
+
/* @__PURE__ */ e("span", { children: u.title }),
|
|
1170
|
+
/* @__PURE__ */ e("span", { className: Q.icon, "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
1158
1171
|
"svg",
|
|
1159
1172
|
{
|
|
1160
1173
|
width: "16",
|
|
@@ -1179,30 +1192,30 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1179
1192
|
/* @__PURE__ */ e(
|
|
1180
1193
|
"div",
|
|
1181
1194
|
{
|
|
1182
|
-
id:
|
|
1195
|
+
id: p,
|
|
1183
1196
|
role: "region",
|
|
1184
|
-
"aria-labelledby":
|
|
1185
|
-
className:
|
|
1186
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
1197
|
+
"aria-labelledby": v,
|
|
1198
|
+
className: Q.contentOuter,
|
|
1199
|
+
children: /* @__PURE__ */ e("div", { className: Q.contentInner, children: u.content })
|
|
1187
1200
|
}
|
|
1188
1201
|
)
|
|
1189
1202
|
]
|
|
1190
1203
|
},
|
|
1191
|
-
|
|
1204
|
+
u.value
|
|
1192
1205
|
);
|
|
1193
1206
|
}) });
|
|
1194
|
-
},
|
|
1195
|
-
alert:
|
|
1196
|
-
icon:
|
|
1197
|
-
content:
|
|
1198
|
-
title:
|
|
1199
|
-
body:
|
|
1200
|
-
closeBtn:
|
|
1201
|
-
info:
|
|
1202
|
-
success:
|
|
1203
|
-
warning:
|
|
1204
|
-
danger:
|
|
1205
|
-
},
|
|
1207
|
+
}, Yr = "_alert_b1vtk_1", Kr = "_icon_b1vtk_12", Gr = "_content_b1vtk_19", Jr = "_title_b1vtk_24", Qr = "_body_b1vtk_31", Zr = "_closeBtn_b1vtk_35", ea = "_info_b1vtk_64", ta = "_success_b1vtk_70", na = "_warning_b1vtk_76", oa = "_danger_b1vtk_82", de = {
|
|
1208
|
+
alert: Yr,
|
|
1209
|
+
icon: Kr,
|
|
1210
|
+
content: Gr,
|
|
1211
|
+
title: Jr,
|
|
1212
|
+
body: Qr,
|
|
1213
|
+
closeBtn: Zr,
|
|
1214
|
+
info: ea,
|
|
1215
|
+
success: ta,
|
|
1216
|
+
warning: na,
|
|
1217
|
+
danger: oa
|
|
1218
|
+
}, sa = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
1206
1219
|
"path",
|
|
1207
1220
|
{
|
|
1208
1221
|
strokeLinecap: "round",
|
|
@@ -1210,7 +1223,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1210
1223
|
strokeWidth: 2,
|
|
1211
1224
|
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1212
1225
|
}
|
|
1213
|
-
) }),
|
|
1226
|
+
) }), ra = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
1214
1227
|
"path",
|
|
1215
1228
|
{
|
|
1216
1229
|
strokeLinecap: "round",
|
|
@@ -1218,7 +1231,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1218
1231
|
strokeWidth: 2,
|
|
1219
1232
|
d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1220
1233
|
}
|
|
1221
|
-
) }),
|
|
1234
|
+
) }), aa = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
1222
1235
|
"path",
|
|
1223
1236
|
{
|
|
1224
1237
|
strokeLinecap: "round",
|
|
@@ -1226,7 +1239,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1226
1239
|
strokeWidth: 2,
|
|
1227
1240
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
1228
1241
|
}
|
|
1229
|
-
) }),
|
|
1242
|
+
) }), ia = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
1230
1243
|
"path",
|
|
1231
1244
|
{
|
|
1232
1245
|
strokeLinecap: "round",
|
|
@@ -1234,33 +1247,33 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1234
1247
|
strokeWidth: 2,
|
|
1235
1248
|
d: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1236
1249
|
}
|
|
1237
|
-
) }),
|
|
1238
|
-
info: /* @__PURE__ */ e(
|
|
1239
|
-
success: /* @__PURE__ */ e(
|
|
1240
|
-
warning: /* @__PURE__ */ e(
|
|
1241
|
-
danger: /* @__PURE__ */ e(
|
|
1242
|
-
},
|
|
1250
|
+
) }), la = {
|
|
1251
|
+
info: /* @__PURE__ */ e(sa, {}),
|
|
1252
|
+
success: /* @__PURE__ */ e(ra, {}),
|
|
1253
|
+
warning: /* @__PURE__ */ e(aa, {}),
|
|
1254
|
+
danger: /* @__PURE__ */ e(ia, {})
|
|
1255
|
+
}, tu = ({
|
|
1243
1256
|
variant: t = "info",
|
|
1244
1257
|
title: o,
|
|
1245
1258
|
icon: n,
|
|
1246
|
-
onClose:
|
|
1247
|
-
children:
|
|
1248
|
-
className:
|
|
1259
|
+
onClose: s,
|
|
1260
|
+
children: r,
|
|
1261
|
+
className: i,
|
|
1249
1262
|
...l
|
|
1250
1263
|
}) => {
|
|
1251
|
-
const
|
|
1252
|
-
return /* @__PURE__ */
|
|
1253
|
-
c && /* @__PURE__ */ e("span", { className:
|
|
1254
|
-
/* @__PURE__ */
|
|
1255
|
-
o && /* @__PURE__ */ e("p", { className:
|
|
1256
|
-
/* @__PURE__ */ e("div", { className:
|
|
1264
|
+
const a = [de.alert, de[t], i ?? ""].filter(Boolean).join(" "), c = n !== void 0 ? n : la[t];
|
|
1265
|
+
return /* @__PURE__ */ d("div", { className: a, role: "alert", ...l, children: [
|
|
1266
|
+
c && /* @__PURE__ */ e("span", { className: de.icon, "aria-hidden": "true", children: c }),
|
|
1267
|
+
/* @__PURE__ */ d("div", { className: de.content, children: [
|
|
1268
|
+
o && /* @__PURE__ */ e("p", { className: de.title, children: o }),
|
|
1269
|
+
/* @__PURE__ */ e("div", { className: de.body, children: r })
|
|
1257
1270
|
] }),
|
|
1258
|
-
|
|
1271
|
+
s && /* @__PURE__ */ e(
|
|
1259
1272
|
"button",
|
|
1260
1273
|
{
|
|
1261
1274
|
type: "button",
|
|
1262
|
-
className:
|
|
1263
|
-
onClick:
|
|
1275
|
+
className: de.closeBtn,
|
|
1276
|
+
onClick: s,
|
|
1264
1277
|
"aria-label": "Dismiss alert",
|
|
1265
1278
|
children: /* @__PURE__ */ e(
|
|
1266
1279
|
"svg",
|
|
@@ -1285,22 +1298,22 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1285
1298
|
}
|
|
1286
1299
|
)
|
|
1287
1300
|
] });
|
|
1288
|
-
},
|
|
1289
|
-
divider:
|
|
1290
|
-
horizontal:
|
|
1291
|
-
vertical:
|
|
1292
|
-
withLabel:
|
|
1293
|
-
label:
|
|
1294
|
-
},
|
|
1301
|
+
}, ca = "_divider_vfae1_1", da = "_horizontal_vfae1_6", _a = "_vertical_vfae1_12", ua = "_withLabel_vfae1_19", pa = "_label_vfae1_33", De = {
|
|
1302
|
+
divider: ca,
|
|
1303
|
+
horizontal: da,
|
|
1304
|
+
vertical: _a,
|
|
1305
|
+
withLabel: ua,
|
|
1306
|
+
label: pa
|
|
1307
|
+
}, nu = ({
|
|
1295
1308
|
orientation: t = "horizontal",
|
|
1296
1309
|
label: o,
|
|
1297
1310
|
className: n,
|
|
1298
|
-
...
|
|
1311
|
+
...s
|
|
1299
1312
|
}) => {
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
o ?
|
|
1313
|
+
const r = [
|
|
1314
|
+
De.divider,
|
|
1315
|
+
De[t],
|
|
1316
|
+
o ? De.withLabel : "",
|
|
1304
1317
|
n ?? ""
|
|
1305
1318
|
].filter(Boolean).join(" ");
|
|
1306
1319
|
return /* @__PURE__ */ e(
|
|
@@ -1308,35 +1321,35 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1308
1321
|
{
|
|
1309
1322
|
role: "separator",
|
|
1310
1323
|
"aria-orientation": t,
|
|
1311
|
-
className:
|
|
1312
|
-
...
|
|
1313
|
-
children: o && /* @__PURE__ */ e("span", { className:
|
|
1324
|
+
className: r,
|
|
1325
|
+
...s,
|
|
1326
|
+
children: o && /* @__PURE__ */ e("span", { className: De.label, children: o })
|
|
1314
1327
|
}
|
|
1315
1328
|
);
|
|
1316
|
-
},
|
|
1317
|
-
spinner:
|
|
1318
|
-
svg:
|
|
1319
|
-
spin:
|
|
1320
|
-
track:
|
|
1321
|
-
arc:
|
|
1322
|
-
sm:
|
|
1323
|
-
md:
|
|
1324
|
-
lg:
|
|
1325
|
-
primary:
|
|
1326
|
-
muted:
|
|
1327
|
-
white:
|
|
1328
|
-
},
|
|
1329
|
+
}, ha = "_spinner_1232t_1", ma = "_svg_1232t_8", fa = "_spin_1232t_1", ba = "_track_1232t_17", ga = "_arc_1232t_21", va = "_sm_1232t_27", wa = "_md_1232t_33", $a = "_lg_1232t_39", ya = "_primary_1232t_46", ka = "_muted_1232t_50", Na = "_white_1232t_54", be = {
|
|
1330
|
+
spinner: ha,
|
|
1331
|
+
svg: ma,
|
|
1332
|
+
spin: fa,
|
|
1333
|
+
track: ba,
|
|
1334
|
+
arc: ga,
|
|
1335
|
+
sm: va,
|
|
1336
|
+
md: wa,
|
|
1337
|
+
lg: $a,
|
|
1338
|
+
primary: ya,
|
|
1339
|
+
muted: ka,
|
|
1340
|
+
white: Na
|
|
1341
|
+
}, ou = ({
|
|
1329
1342
|
size: t = "md",
|
|
1330
1343
|
color: o = "primary",
|
|
1331
1344
|
label: n = "Loading…",
|
|
1332
|
-
className:
|
|
1333
|
-
...
|
|
1345
|
+
className: s,
|
|
1346
|
+
...r
|
|
1334
1347
|
}) => {
|
|
1335
|
-
const
|
|
1336
|
-
return /* @__PURE__ */ e("span", { className:
|
|
1348
|
+
const i = [be.spinner, be[t], be[o], s ?? ""].filter(Boolean).join(" ");
|
|
1349
|
+
return /* @__PURE__ */ e("span", { className: i, role: "status", "aria-label": n, ...r, children: /* @__PURE__ */ d(
|
|
1337
1350
|
"svg",
|
|
1338
1351
|
{
|
|
1339
|
-
className:
|
|
1352
|
+
className: be.svg,
|
|
1340
1353
|
viewBox: "0 0 24 24",
|
|
1341
1354
|
fill: "none",
|
|
1342
1355
|
"aria-hidden": "true",
|
|
@@ -1344,7 +1357,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1344
1357
|
/* @__PURE__ */ e(
|
|
1345
1358
|
"circle",
|
|
1346
1359
|
{
|
|
1347
|
-
className:
|
|
1360
|
+
className: be.track,
|
|
1348
1361
|
cx: "12",
|
|
1349
1362
|
cy: "12",
|
|
1350
1363
|
r: "10",
|
|
@@ -1355,7 +1368,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1355
1368
|
/* @__PURE__ */ e(
|
|
1356
1369
|
"circle",
|
|
1357
1370
|
{
|
|
1358
|
-
className:
|
|
1371
|
+
className: be.arc,
|
|
1359
1372
|
cx: "12",
|
|
1360
1373
|
cy: "12",
|
|
1361
1374
|
r: "10",
|
|
@@ -1367,44 +1380,44 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1367
1380
|
]
|
|
1368
1381
|
}
|
|
1369
1382
|
) });
|
|
1370
|
-
},
|
|
1371
|
-
block:
|
|
1372
|
-
stack:
|
|
1373
|
-
},
|
|
1383
|
+
}, xa = "_block_tuupu_1", Ba = "_stack_tuupu_13", Ye = {
|
|
1384
|
+
block: xa,
|
|
1385
|
+
stack: Ba
|
|
1386
|
+
}, _e = (t) => {
|
|
1374
1387
|
if (t !== void 0)
|
|
1375
1388
|
return typeof t == "number" ? `${t}px` : t;
|
|
1376
|
-
},
|
|
1389
|
+
}, su = ({
|
|
1377
1390
|
width: t,
|
|
1378
1391
|
height: o,
|
|
1379
1392
|
radius: n,
|
|
1380
|
-
lines:
|
|
1381
|
-
gap:
|
|
1382
|
-
className:
|
|
1393
|
+
lines: s,
|
|
1394
|
+
gap: r,
|
|
1395
|
+
className: i,
|
|
1383
1396
|
style: l,
|
|
1384
|
-
...
|
|
1397
|
+
...a
|
|
1385
1398
|
}) => {
|
|
1386
|
-
if (
|
|
1387
|
-
const c =
|
|
1399
|
+
if (s && s > 1) {
|
|
1400
|
+
const c = _e(r) ?? "0.5rem";
|
|
1388
1401
|
return /* @__PURE__ */ e(
|
|
1389
1402
|
"span",
|
|
1390
1403
|
{
|
|
1391
|
-
className: [
|
|
1404
|
+
className: [Ye.stack, i ?? ""].filter(Boolean).join(" "),
|
|
1392
1405
|
style: { gap: c, ...l },
|
|
1393
1406
|
"aria-hidden": "true",
|
|
1394
|
-
...
|
|
1395
|
-
children: Array.from({ length:
|
|
1396
|
-
const m =
|
|
1407
|
+
...a,
|
|
1408
|
+
children: Array.from({ length: s }).map((_, h) => {
|
|
1409
|
+
const m = h === s - 1;
|
|
1397
1410
|
return /* @__PURE__ */ e(
|
|
1398
1411
|
"span",
|
|
1399
1412
|
{
|
|
1400
|
-
className:
|
|
1413
|
+
className: Ye.block,
|
|
1401
1414
|
style: {
|
|
1402
|
-
width: m ? "75%" :
|
|
1403
|
-
height:
|
|
1404
|
-
borderRadius:
|
|
1415
|
+
width: m ? "75%" : _e(t) ?? "100%",
|
|
1416
|
+
height: _e(o) ?? "1rem",
|
|
1417
|
+
borderRadius: _e(n) ?? "var(--vui-radius-sm, 0.375rem)"
|
|
1405
1418
|
}
|
|
1406
1419
|
},
|
|
1407
|
-
|
|
1420
|
+
h
|
|
1408
1421
|
);
|
|
1409
1422
|
})
|
|
1410
1423
|
}
|
|
@@ -1413,197 +1426,210 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
|
|
|
1413
1426
|
return /* @__PURE__ */ e(
|
|
1414
1427
|
"span",
|
|
1415
1428
|
{
|
|
1416
|
-
className: [
|
|
1429
|
+
className: [Ye.block, i ?? ""].filter(Boolean).join(" "),
|
|
1417
1430
|
style: {
|
|
1418
|
-
width:
|
|
1419
|
-
height:
|
|
1420
|
-
borderRadius:
|
|
1431
|
+
width: _e(t),
|
|
1432
|
+
height: _e(o) ?? "1rem",
|
|
1433
|
+
borderRadius: _e(n) ?? "var(--vui-radius-sm, 0.375rem)",
|
|
1421
1434
|
...l
|
|
1422
1435
|
},
|
|
1423
1436
|
"aria-hidden": "true",
|
|
1424
|
-
...
|
|
1437
|
+
...a
|
|
1425
1438
|
}
|
|
1426
1439
|
);
|
|
1427
|
-
},
|
|
1428
|
-
wrapper:
|
|
1429
|
-
labelRow:
|
|
1430
|
-
label:
|
|
1431
|
-
value:
|
|
1432
|
-
track:
|
|
1433
|
-
sm:
|
|
1434
|
-
md:
|
|
1435
|
-
lg:
|
|
1436
|
-
bar:
|
|
1437
|
-
primary:
|
|
1438
|
-
success:
|
|
1439
|
-
warning:
|
|
1440
|
-
danger:
|
|
1441
|
-
},
|
|
1440
|
+
}, La = "_wrapper_xgu51_1", ja = "_labelRow_xgu51_8", Ia = "_label_xgu51_8", Ca = "_value_xgu51_20", za = "_track_xgu51_26", Wa = "_sm_xgu51_33", Ea = "_md_xgu51_34", Ra = "_lg_xgu51_35", Sa = "_bar_xgu51_37", Ta = "_primary_xgu51_43", Da = "_success_xgu51_44", qa = "_warning_xgu51_45", Ma = "_danger_xgu51_46", se = {
|
|
1441
|
+
wrapper: La,
|
|
1442
|
+
labelRow: ja,
|
|
1443
|
+
label: Ia,
|
|
1444
|
+
value: Ca,
|
|
1445
|
+
track: za,
|
|
1446
|
+
sm: Wa,
|
|
1447
|
+
md: Ea,
|
|
1448
|
+
lg: Ra,
|
|
1449
|
+
bar: Sa,
|
|
1450
|
+
primary: Ta,
|
|
1451
|
+
success: Da,
|
|
1452
|
+
warning: qa,
|
|
1453
|
+
danger: Ma
|
|
1454
|
+
}, ru = ({
|
|
1442
1455
|
value: t,
|
|
1443
1456
|
variant: o = "primary",
|
|
1444
1457
|
size: n = "md",
|
|
1445
|
-
label:
|
|
1446
|
-
showValue:
|
|
1447
|
-
className:
|
|
1458
|
+
label: s,
|
|
1459
|
+
showValue: r = !1,
|
|
1460
|
+
className: i,
|
|
1448
1461
|
...l
|
|
1449
1462
|
}) => {
|
|
1450
|
-
const
|
|
1451
|
-
return /* @__PURE__ */
|
|
1452
|
-
(
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1463
|
+
const a = Math.min(100, Math.max(0, t));
|
|
1464
|
+
return /* @__PURE__ */ d("div", { className: [se.wrapper, i ?? ""].filter(Boolean).join(" "), ...l, children: [
|
|
1465
|
+
(s || r) && /* @__PURE__ */ d("div", { className: se.labelRow, children: [
|
|
1466
|
+
s && /* @__PURE__ */ e("span", { className: se.label, children: s }),
|
|
1467
|
+
r && /* @__PURE__ */ d("span", { className: se.value, children: [
|
|
1468
|
+
a,
|
|
1456
1469
|
"%"
|
|
1457
1470
|
] })
|
|
1458
1471
|
] }),
|
|
1459
1472
|
/* @__PURE__ */ e(
|
|
1460
1473
|
"div",
|
|
1461
1474
|
{
|
|
1462
|
-
className: [
|
|
1475
|
+
className: [se.track, se[n]].filter(Boolean).join(" "),
|
|
1463
1476
|
role: "progressbar",
|
|
1464
|
-
"aria-valuenow":
|
|
1477
|
+
"aria-valuenow": a,
|
|
1465
1478
|
"aria-valuemin": 0,
|
|
1466
1479
|
"aria-valuemax": 100,
|
|
1467
|
-
"aria-label":
|
|
1480
|
+
"aria-label": s ?? `${a}%`,
|
|
1468
1481
|
children: /* @__PURE__ */ e(
|
|
1469
1482
|
"div",
|
|
1470
1483
|
{
|
|
1471
|
-
className: [
|
|
1472
|
-
style: { width: `${
|
|
1484
|
+
className: [se.bar, se[o]].filter(Boolean).join(" "),
|
|
1485
|
+
style: { width: `${a}%` }
|
|
1473
1486
|
}
|
|
1474
1487
|
)
|
|
1475
1488
|
}
|
|
1476
1489
|
)
|
|
1477
1490
|
] });
|
|
1478
|
-
},
|
|
1479
|
-
container:
|
|
1480
|
-
toast:
|
|
1481
|
-
slideUp:
|
|
1482
|
-
message:
|
|
1483
|
-
close:
|
|
1484
|
-
info:
|
|
1485
|
-
success:
|
|
1486
|
-
warning:
|
|
1487
|
-
danger:
|
|
1488
|
-
},
|
|
1489
|
-
let
|
|
1490
|
-
const
|
|
1491
|
+
}, Fa = "_container_2etd3_1", Aa = "_toast_2etd3_14", Ha = "_slideUp_2etd3_1", Pa = "_message_2etd3_31", Oa = "_close_2etd3_38", Ua = "_info_2etd3_63", Va = "_success_2etd3_69", Xa = "_warning_2etd3_75", Ya = "_danger_2etd3_81", Ce = {
|
|
1492
|
+
container: Fa,
|
|
1493
|
+
toast: Aa,
|
|
1494
|
+
slideUp: Ha,
|
|
1495
|
+
message: Pa,
|
|
1496
|
+
close: Oa,
|
|
1497
|
+
info: Ua,
|
|
1498
|
+
success: Va,
|
|
1499
|
+
warning: Xa,
|
|
1500
|
+
danger: Ya
|
|
1501
|
+
}, _t = gt(null);
|
|
1502
|
+
let Ka = 0;
|
|
1503
|
+
const Ga = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }), Ja = ({ item: t, onRemove: o }) => {
|
|
1491
1504
|
const n = A(null);
|
|
1492
|
-
|
|
1493
|
-
const
|
|
1494
|
-
return
|
|
1505
|
+
ae(() => {
|
|
1506
|
+
const r = t.duration ?? 4e3;
|
|
1507
|
+
return r > 0 && (n.current = setTimeout(() => o(t.id), r)), () => {
|
|
1495
1508
|
n.current && clearTimeout(n.current);
|
|
1496
1509
|
};
|
|
1497
1510
|
}, [t.id, t.duration, o]);
|
|
1498
|
-
const
|
|
1499
|
-
return /* @__PURE__ */
|
|
1500
|
-
/* @__PURE__ */ e("span", { className:
|
|
1511
|
+
const s = [Ce.toast, Ce[t.variant ?? "info"]].filter(Boolean).join(" ");
|
|
1512
|
+
return /* @__PURE__ */ d("div", { className: s, role: "alert", "aria-live": "assertive", children: [
|
|
1513
|
+
/* @__PURE__ */ e("span", { className: Ce.message, children: t.message }),
|
|
1501
1514
|
/* @__PURE__ */ e(
|
|
1502
1515
|
"button",
|
|
1503
1516
|
{
|
|
1504
1517
|
type: "button",
|
|
1505
|
-
className:
|
|
1518
|
+
className: Ce.close,
|
|
1506
1519
|
onClick: () => o(t.id),
|
|
1507
1520
|
"aria-label": "Dismiss notification",
|
|
1508
|
-
children: /* @__PURE__ */ e(
|
|
1521
|
+
children: /* @__PURE__ */ e(Ga, {})
|
|
1509
1522
|
}
|
|
1510
1523
|
)
|
|
1511
1524
|
] });
|
|
1512
|
-
},
|
|
1513
|
-
const [o, n] =
|
|
1514
|
-
const l = `toast-${++
|
|
1515
|
-
n((
|
|
1516
|
-
}, []),
|
|
1517
|
-
n((l) => l.filter((
|
|
1525
|
+
}, au = ({ children: t }) => {
|
|
1526
|
+
const [o, n] = O([]), s = ke((i) => {
|
|
1527
|
+
const l = `toast-${++Ka}`;
|
|
1528
|
+
n((a) => [...a, { ...i, id: l }]);
|
|
1529
|
+
}, []), r = ke((i) => {
|
|
1530
|
+
n((l) => l.filter((a) => a.id !== i));
|
|
1518
1531
|
}, []);
|
|
1519
|
-
return /* @__PURE__ */
|
|
1532
|
+
return /* @__PURE__ */ d(_t.Provider, { value: { addToast: s, removeToast: r }, children: [
|
|
1520
1533
|
t,
|
|
1521
|
-
typeof document < "u" &&
|
|
1522
|
-
/* @__PURE__ */ e("div", { className:
|
|
1534
|
+
typeof document < "u" && Ke(
|
|
1535
|
+
/* @__PURE__ */ e("div", { className: Ce.container, "aria-label": "Notifications", children: o.map((i) => /* @__PURE__ */ e(Ja, { item: i, onRemove: r }, i.id)) }),
|
|
1523
1536
|
document.body
|
|
1524
1537
|
)
|
|
1525
1538
|
] });
|
|
1526
|
-
},
|
|
1527
|
-
const t =
|
|
1539
|
+
}, iu = () => {
|
|
1540
|
+
const t = bt(_t);
|
|
1528
1541
|
if (!t)
|
|
1529
1542
|
throw new Error("useToast must be used inside <ToastProvider>");
|
|
1530
1543
|
return t;
|
|
1531
|
-
},
|
|
1532
|
-
avatar:
|
|
1533
|
-
xs:
|
|
1534
|
-
sm:
|
|
1535
|
-
md:
|
|
1536
|
-
lg:
|
|
1537
|
-
xl:
|
|
1538
|
-
circle:
|
|
1539
|
-
square:
|
|
1540
|
-
img:
|
|
1541
|
-
initials:
|
|
1542
|
-
fallbackIcon:
|
|
1543
|
-
status:
|
|
1544
|
-
online:
|
|
1545
|
-
away:
|
|
1546
|
-
offline:
|
|
1544
|
+
}, Qa = "_avatar_14l02_1", Za = "_xs_14l02_15", ei = "_sm_14l02_16", ti = "_md_14l02_17", ni = "_lg_14l02_18", oi = "_xl_14l02_19", si = "_circle_14l02_22", ri = "_square_14l02_23", ai = "_img_14l02_25", ii = "_initials_14l02_32", li = "_fallbackIcon_14l02_37", ci = "_status_14l02_44", di = "_online_14l02_57", _i = "_away_14l02_58", ui = "_offline_14l02_59", pi = "_statusPulse_14l02_61", hi = "_avatarStatusPulse_14l02_1", Z = {
|
|
1545
|
+
avatar: Qa,
|
|
1546
|
+
xs: Za,
|
|
1547
|
+
sm: ei,
|
|
1548
|
+
md: ti,
|
|
1549
|
+
lg: ni,
|
|
1550
|
+
xl: oi,
|
|
1551
|
+
circle: si,
|
|
1552
|
+
square: ri,
|
|
1553
|
+
img: ai,
|
|
1554
|
+
initials: ii,
|
|
1555
|
+
fallbackIcon: li,
|
|
1556
|
+
status: ci,
|
|
1557
|
+
online: di,
|
|
1558
|
+
away: _i,
|
|
1559
|
+
offline: ui,
|
|
1560
|
+
statusPulse: pi,
|
|
1561
|
+
avatarStatusPulse: hi
|
|
1547
1562
|
};
|
|
1548
|
-
function
|
|
1563
|
+
function mi(t) {
|
|
1549
1564
|
const o = t.trim().split(/\s+/);
|
|
1550
1565
|
return o.length === 1 ? o[0].charAt(0).toUpperCase() : (o[0].charAt(0) + o[o.length - 1].charAt(0)).toUpperCase();
|
|
1551
1566
|
}
|
|
1552
|
-
const
|
|
1567
|
+
const lu = ({
|
|
1553
1568
|
src: t,
|
|
1554
1569
|
alt: o,
|
|
1555
1570
|
name: n,
|
|
1556
|
-
size:
|
|
1557
|
-
shape:
|
|
1558
|
-
status:
|
|
1559
|
-
|
|
1560
|
-
|
|
1571
|
+
size: s = "md",
|
|
1572
|
+
shape: r = "circle",
|
|
1573
|
+
status: i,
|
|
1574
|
+
statusAnimation: l = "none",
|
|
1575
|
+
className: a,
|
|
1576
|
+
...c
|
|
1561
1577
|
}) => {
|
|
1562
|
-
const [
|
|
1563
|
-
return /* @__PURE__ */
|
|
1564
|
-
|
|
1578
|
+
const [_, h] = O(!1), m = [Z.avatar, Z[s], Z[r], a ?? ""].filter(Boolean).join(" "), u = t && !_, f = n ? mi(n) : null;
|
|
1579
|
+
return /* @__PURE__ */ d("span", { className: m, "aria-label": o ?? n, ...c, children: [
|
|
1580
|
+
u ? /* @__PURE__ */ e(
|
|
1565
1581
|
"img",
|
|
1566
1582
|
{
|
|
1567
1583
|
src: t,
|
|
1568
1584
|
alt: o ?? n ?? "",
|
|
1569
|
-
className:
|
|
1570
|
-
onError: () =>
|
|
1585
|
+
className: Z.img,
|
|
1586
|
+
onError: () => h(!0)
|
|
1571
1587
|
}
|
|
1572
|
-
) :
|
|
1573
|
-
|
|
1588
|
+
) : f ? /* @__PURE__ */ e("span", { className: Z.initials, "aria-hidden": "true", children: f }) : /* @__PURE__ */ e("svg", { className: Z.fallbackIcon, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z" }) }),
|
|
1589
|
+
i && /* @__PURE__ */ e(
|
|
1590
|
+
"span",
|
|
1591
|
+
{
|
|
1592
|
+
className: [
|
|
1593
|
+
Z.status,
|
|
1594
|
+
Z[i],
|
|
1595
|
+
l === "pulse" ? Z.statusPulse : ""
|
|
1596
|
+
].filter(Boolean).join(" "),
|
|
1597
|
+
"aria-label": i
|
|
1598
|
+
}
|
|
1599
|
+
)
|
|
1574
1600
|
] });
|
|
1575
|
-
},
|
|
1576
|
-
tag:
|
|
1577
|
-
sm:
|
|
1578
|
-
md:
|
|
1579
|
-
lg:
|
|
1601
|
+
}, fi = "_tag_13w40_1", bi = "_sm_13w40_14", gi = "_md_13w40_19", vi = "_lg_13w40_24", wi = "_info_13w40_36", $i = "_success_13w40_42", yi = "_warning_13w40_48", ki = "_danger_13w40_54", Ni = "_primary_13w40_60", xi = "_label_13w40_66", Bi = "_icon_13w40_70", Li = "_close_13w40_75", ge = {
|
|
1602
|
+
tag: fi,
|
|
1603
|
+
sm: bi,
|
|
1604
|
+
md: gi,
|
|
1605
|
+
lg: vi,
|
|
1580
1606
|
default: "_default_13w40_30",
|
|
1581
|
-
info:
|
|
1582
|
-
success:
|
|
1583
|
-
warning:
|
|
1584
|
-
danger:
|
|
1585
|
-
primary:
|
|
1586
|
-
label:
|
|
1587
|
-
icon:
|
|
1588
|
-
close:
|
|
1589
|
-
},
|
|
1607
|
+
info: wi,
|
|
1608
|
+
success: $i,
|
|
1609
|
+
warning: yi,
|
|
1610
|
+
danger: ki,
|
|
1611
|
+
primary: Ni,
|
|
1612
|
+
label: xi,
|
|
1613
|
+
icon: Bi,
|
|
1614
|
+
close: Li
|
|
1615
|
+
}, cu = ({
|
|
1590
1616
|
variant: t = "default",
|
|
1591
1617
|
size: o = "md",
|
|
1592
1618
|
onClose: n,
|
|
1593
|
-
leftIcon:
|
|
1594
|
-
children:
|
|
1595
|
-
className:
|
|
1619
|
+
leftIcon: s,
|
|
1620
|
+
children: r,
|
|
1621
|
+
className: i,
|
|
1596
1622
|
...l
|
|
1597
1623
|
}) => {
|
|
1598
|
-
const
|
|
1599
|
-
return /* @__PURE__ */
|
|
1600
|
-
|
|
1601
|
-
/* @__PURE__ */ e("span", { className:
|
|
1624
|
+
const a = [ge.tag, ge[t], ge[o], i ?? ""].filter(Boolean).join(" ");
|
|
1625
|
+
return /* @__PURE__ */ d("span", { className: a, ...l, children: [
|
|
1626
|
+
s && /* @__PURE__ */ e("span", { className: ge.icon, "aria-hidden": "true", children: s }),
|
|
1627
|
+
/* @__PURE__ */ e("span", { className: ge.label, children: r }),
|
|
1602
1628
|
n && /* @__PURE__ */ e(
|
|
1603
1629
|
"button",
|
|
1604
1630
|
{
|
|
1605
1631
|
type: "button",
|
|
1606
|
-
className:
|
|
1632
|
+
className: ge.close,
|
|
1607
1633
|
onClick: (c) => {
|
|
1608
1634
|
c.stopPropagation(), n();
|
|
1609
1635
|
},
|
|
@@ -1612,116 +1638,116 @@ const Ic = ({
|
|
|
1612
1638
|
}
|
|
1613
1639
|
)
|
|
1614
1640
|
] });
|
|
1615
|
-
},
|
|
1616
|
-
root:
|
|
1617
|
-
icon:
|
|
1618
|
-
title:
|
|
1619
|
-
description:
|
|
1620
|
-
action:
|
|
1621
|
-
},
|
|
1641
|
+
}, ji = "_root_6ieqa_1", Ii = "_icon_6ieqa_11", Ci = "_title_6ieqa_23", zi = "_description_6ieqa_31", Wi = "_action_6ieqa_39", Ie = {
|
|
1642
|
+
root: ji,
|
|
1643
|
+
icon: Ii,
|
|
1644
|
+
title: Ci,
|
|
1645
|
+
description: zi,
|
|
1646
|
+
action: Wi
|
|
1647
|
+
}, du = ({
|
|
1622
1648
|
icon: t,
|
|
1623
1649
|
title: o,
|
|
1624
1650
|
description: n,
|
|
1625
|
-
action:
|
|
1626
|
-
className:
|
|
1627
|
-
...
|
|
1628
|
-
}) => /* @__PURE__ */
|
|
1629
|
-
t && /* @__PURE__ */ e("span", { className:
|
|
1630
|
-
/* @__PURE__ */ e("p", { className:
|
|
1631
|
-
n && /* @__PURE__ */ e("p", { className:
|
|
1632
|
-
|
|
1633
|
-
] }),
|
|
1634
|
-
nav:
|
|
1635
|
-
list:
|
|
1636
|
-
item:
|
|
1637
|
-
separator:
|
|
1638
|
-
crumb:
|
|
1639
|
-
link:
|
|
1640
|
-
current:
|
|
1641
|
-
},
|
|
1651
|
+
action: s,
|
|
1652
|
+
className: r,
|
|
1653
|
+
...i
|
|
1654
|
+
}) => /* @__PURE__ */ d("div", { className: [Ie.root, r ?? ""].filter(Boolean).join(" "), ...i, children: [
|
|
1655
|
+
t && /* @__PURE__ */ e("span", { className: Ie.icon, "aria-hidden": "true", children: t }),
|
|
1656
|
+
/* @__PURE__ */ e("p", { className: Ie.title, children: o }),
|
|
1657
|
+
n && /* @__PURE__ */ e("p", { className: Ie.description, children: n }),
|
|
1658
|
+
s && /* @__PURE__ */ e("div", { className: Ie.action, children: s })
|
|
1659
|
+
] }), Ei = "_nav_1s2na_1", Ri = "_list_1s2na_5", Si = "_item_1s2na_15", Ti = "_separator_1s2na_20", Di = "_crumb_1s2na_27", qi = "_link_1s2na_33", Mi = "_current_1s2na_50", ee = {
|
|
1660
|
+
nav: Ei,
|
|
1661
|
+
list: Ri,
|
|
1662
|
+
item: Si,
|
|
1663
|
+
separator: Ti,
|
|
1664
|
+
crumb: Di,
|
|
1665
|
+
link: qi,
|
|
1666
|
+
current: Mi
|
|
1667
|
+
}, Fi = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 18l6-6-6-6" }) }), _u = ({
|
|
1642
1668
|
items: t,
|
|
1643
1669
|
separator: o,
|
|
1644
1670
|
className: n,
|
|
1645
|
-
...
|
|
1671
|
+
...s
|
|
1646
1672
|
}) => {
|
|
1647
|
-
const
|
|
1648
|
-
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: [
|
|
1649
|
-
const
|
|
1650
|
-
return /* @__PURE__ */
|
|
1651
|
-
l > 0 && /* @__PURE__ */ e("span", { className:
|
|
1652
|
-
|
|
1673
|
+
const r = o ?? /* @__PURE__ */ e(Fi, {});
|
|
1674
|
+
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: [ee.nav, n ?? ""].filter(Boolean).join(" "), ...s, children: /* @__PURE__ */ e("ol", { className: ee.list, children: t.map((i, l) => {
|
|
1675
|
+
const a = l === t.length - 1;
|
|
1676
|
+
return /* @__PURE__ */ d("li", { className: ee.item, children: [
|
|
1677
|
+
l > 0 && /* @__PURE__ */ e("span", { className: ee.separator, "aria-hidden": "true", children: r }),
|
|
1678
|
+
a || !i.href ? /* @__PURE__ */ e(
|
|
1653
1679
|
"span",
|
|
1654
1680
|
{
|
|
1655
|
-
className: [
|
|
1656
|
-
"aria-current":
|
|
1657
|
-
children:
|
|
1681
|
+
className: [ee.crumb, a ? ee.current : ee.link].filter(Boolean).join(" "),
|
|
1682
|
+
"aria-current": a ? "page" : void 0,
|
|
1683
|
+
children: i.label
|
|
1658
1684
|
}
|
|
1659
|
-
) : /* @__PURE__ */ e("a", { href:
|
|
1685
|
+
) : /* @__PURE__ */ e("a", { href: i.href, className: [ee.crumb, ee.link].filter(Boolean).join(" "), children: i.label })
|
|
1660
1686
|
] }, l);
|
|
1661
1687
|
}) }) });
|
|
1662
|
-
},
|
|
1663
|
-
nav:
|
|
1664
|
-
list:
|
|
1665
|
-
btn:
|
|
1666
|
-
disabled:
|
|
1667
|
-
active:
|
|
1668
|
-
dots:
|
|
1688
|
+
}, Ai = "_nav_10kny_1", Hi = "_list_10kny_5", Pi = "_btn_10kny_14", Oi = "_disabled_10kny_32", Ui = "_active_10kny_32", Vi = "_dots_10kny_54", q = {
|
|
1689
|
+
nav: Ai,
|
|
1690
|
+
list: Hi,
|
|
1691
|
+
btn: Pi,
|
|
1692
|
+
disabled: Oi,
|
|
1693
|
+
active: Ui,
|
|
1694
|
+
dots: Vi
|
|
1669
1695
|
};
|
|
1670
|
-
function
|
|
1696
|
+
function qe(t, o) {
|
|
1671
1697
|
const n = o - t + 1;
|
|
1672
|
-
return Array.from({ length: n }, (
|
|
1698
|
+
return Array.from({ length: n }, (s, r) => t + r);
|
|
1673
1699
|
}
|
|
1674
|
-
function
|
|
1675
|
-
const
|
|
1676
|
-
if (o <=
|
|
1677
|
-
return
|
|
1678
|
-
const
|
|
1679
|
-
return !l &&
|
|
1700
|
+
function Xi(t, o, n) {
|
|
1701
|
+
const s = n * 2 + 5;
|
|
1702
|
+
if (o <= s)
|
|
1703
|
+
return qe(1, o);
|
|
1704
|
+
const r = Math.max(t - n, 1), i = Math.min(t + n, o), l = r > 2, a = i < o - 1;
|
|
1705
|
+
return !l && a ? [...qe(1, 3 + n * 2), "...", o] : l && !a ? [1, "...", ...qe(o - (2 + n * 2), o)] : [1, "...", ...qe(r, i), "...", o];
|
|
1680
1706
|
}
|
|
1681
|
-
const
|
|
1707
|
+
const Yi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 18l-6-6 6-6" }) }), Ki = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 18l6-6-6-6" }) }), Gi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 17l-5-5 5-5M18 17l-5-5 5-5" }) }), Ji = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 17l5-5-5-5M6 17l5-5-5-5" }) }), uu = ({
|
|
1682
1708
|
page: t,
|
|
1683
1709
|
totalPages: o,
|
|
1684
1710
|
onChange: n,
|
|
1685
|
-
siblingCount:
|
|
1686
|
-
showFirstLast:
|
|
1687
|
-
className:
|
|
1711
|
+
siblingCount: s = 1,
|
|
1712
|
+
showFirstLast: r = !0,
|
|
1713
|
+
className: i,
|
|
1688
1714
|
...l
|
|
1689
1715
|
}) => {
|
|
1690
|
-
const
|
|
1716
|
+
const a = Xi(t, o, s), c = (_) => {
|
|
1691
1717
|
_ < 1 || _ > o || _ === t || n(_);
|
|
1692
1718
|
};
|
|
1693
1719
|
return /* @__PURE__ */ e(
|
|
1694
1720
|
"nav",
|
|
1695
1721
|
{
|
|
1696
1722
|
"aria-label": "Pagination",
|
|
1697
|
-
className: [
|
|
1723
|
+
className: [q.nav, i ?? ""].filter(Boolean).join(" "),
|
|
1698
1724
|
...l,
|
|
1699
|
-
children: /* @__PURE__ */
|
|
1700
|
-
|
|
1725
|
+
children: /* @__PURE__ */ d("ul", { className: q.list, children: [
|
|
1726
|
+
r && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
1701
1727
|
"button",
|
|
1702
1728
|
{
|
|
1703
|
-
className: [
|
|
1729
|
+
className: [q.btn, t === 1 ? q.disabled : ""].filter(Boolean).join(" "),
|
|
1704
1730
|
onClick: () => c(1),
|
|
1705
1731
|
disabled: t === 1,
|
|
1706
1732
|
"aria-label": "First page",
|
|
1707
|
-
children: /* @__PURE__ */ e(
|
|
1733
|
+
children: /* @__PURE__ */ e(Gi, {})
|
|
1708
1734
|
}
|
|
1709
1735
|
) }),
|
|
1710
1736
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
1711
1737
|
"button",
|
|
1712
1738
|
{
|
|
1713
|
-
className: [
|
|
1739
|
+
className: [q.btn, t === 1 ? q.disabled : ""].filter(Boolean).join(" "),
|
|
1714
1740
|
onClick: () => c(t - 1),
|
|
1715
1741
|
disabled: t === 1,
|
|
1716
1742
|
"aria-label": "Previous page",
|
|
1717
|
-
children: /* @__PURE__ */ e(
|
|
1743
|
+
children: /* @__PURE__ */ e(Yi, {})
|
|
1718
1744
|
}
|
|
1719
1745
|
) }),
|
|
1720
|
-
|
|
1721
|
-
(_,
|
|
1746
|
+
a.map(
|
|
1747
|
+
(_, h) => _ === "..." ? /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("span", { className: q.dots, children: "…" }) }, `dots-${h}`) : /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
1722
1748
|
"button",
|
|
1723
1749
|
{
|
|
1724
|
-
className: [
|
|
1750
|
+
className: [q.btn, _ === t ? q.active : ""].filter(Boolean).join(" "),
|
|
1725
1751
|
onClick: () => c(_),
|
|
1726
1752
|
"aria-label": `Page ${_}`,
|
|
1727
1753
|
"aria-current": _ === t ? "page" : void 0,
|
|
@@ -1732,53 +1758,53 @@ const yi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1732
1758
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
1733
1759
|
"button",
|
|
1734
1760
|
{
|
|
1735
|
-
className: [
|
|
1761
|
+
className: [q.btn, t === o ? q.disabled : ""].filter(Boolean).join(" "),
|
|
1736
1762
|
onClick: () => c(t + 1),
|
|
1737
1763
|
disabled: t === o,
|
|
1738
1764
|
"aria-label": "Next page",
|
|
1739
|
-
children: /* @__PURE__ */ e(
|
|
1765
|
+
children: /* @__PURE__ */ e(Ki, {})
|
|
1740
1766
|
}
|
|
1741
1767
|
) }),
|
|
1742
|
-
|
|
1768
|
+
r && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
1743
1769
|
"button",
|
|
1744
1770
|
{
|
|
1745
|
-
className: [
|
|
1771
|
+
className: [q.btn, t === o ? q.disabled : ""].filter(Boolean).join(" "),
|
|
1746
1772
|
onClick: () => c(o),
|
|
1747
1773
|
disabled: t === o,
|
|
1748
1774
|
"aria-label": "Last page",
|
|
1749
|
-
children: /* @__PURE__ */ e(
|
|
1775
|
+
children: /* @__PURE__ */ e(Ji, {})
|
|
1750
1776
|
}
|
|
1751
1777
|
) })
|
|
1752
1778
|
] })
|
|
1753
1779
|
}
|
|
1754
1780
|
);
|
|
1755
|
-
},
|
|
1756
|
-
root:
|
|
1757
|
-
horizontal:
|
|
1758
|
-
vertical:
|
|
1759
|
-
step:
|
|
1760
|
-
connector:
|
|
1761
|
-
indicator:
|
|
1762
|
-
circle:
|
|
1763
|
-
pending:
|
|
1764
|
-
active:
|
|
1765
|
-
completed:
|
|
1766
|
-
content:
|
|
1767
|
-
label:
|
|
1768
|
-
description:
|
|
1769
|
-
},
|
|
1781
|
+
}, Qi = "_root_1wmfi_1", Zi = "_horizontal_1wmfi_6", el = "_vertical_1wmfi_11", tl = "_step_1wmfi_16", nl = "_connector_1wmfi_32", ol = "_indicator_1wmfi_37", sl = "_circle_1wmfi_55", rl = "_pending_1wmfi_88", al = "_active_1wmfi_94", il = "_completed_1wmfi_100", ll = "_content_1wmfi_111", cl = "_label_1wmfi_127", dl = "_description_1wmfi_139", M = {
|
|
1782
|
+
root: Qi,
|
|
1783
|
+
horizontal: Zi,
|
|
1784
|
+
vertical: el,
|
|
1785
|
+
step: tl,
|
|
1786
|
+
connector: nl,
|
|
1787
|
+
indicator: ol,
|
|
1788
|
+
circle: sl,
|
|
1789
|
+
pending: rl,
|
|
1790
|
+
active: al,
|
|
1791
|
+
completed: il,
|
|
1792
|
+
content: ll,
|
|
1793
|
+
label: cl,
|
|
1794
|
+
description: dl
|
|
1795
|
+
}, _l = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M5 13l4 4L19 7" }) }), pu = ({
|
|
1770
1796
|
steps: t,
|
|
1771
1797
|
currentStep: o,
|
|
1772
1798
|
orientation: n = "horizontal",
|
|
1773
|
-
variant:
|
|
1774
|
-
className:
|
|
1775
|
-
...
|
|
1799
|
+
variant: s = "default",
|
|
1800
|
+
className: r,
|
|
1801
|
+
...i
|
|
1776
1802
|
}) => {
|
|
1777
1803
|
const l = [
|
|
1778
1804
|
M.root,
|
|
1779
1805
|
M[n],
|
|
1780
|
-
M[
|
|
1781
|
-
|
|
1806
|
+
M[s],
|
|
1807
|
+
r ?? ""
|
|
1782
1808
|
].filter(Boolean).join(" ");
|
|
1783
1809
|
return /* @__PURE__ */ e(
|
|
1784
1810
|
"div",
|
|
@@ -1786,108 +1812,108 @@ const yi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1786
1812
|
className: l,
|
|
1787
1813
|
role: "list",
|
|
1788
1814
|
"aria-label": "Steps",
|
|
1789
|
-
...
|
|
1790
|
-
children: t.map((
|
|
1791
|
-
const _ = c + 1,
|
|
1815
|
+
...i,
|
|
1816
|
+
children: t.map((a, c) => {
|
|
1817
|
+
const _ = c + 1, h = _ < o, m = _ === o, u = c === t.length - 1, f = [
|
|
1792
1818
|
M.step,
|
|
1793
|
-
|
|
1819
|
+
h ? M.completed : "",
|
|
1794
1820
|
m ? M.active : "",
|
|
1795
|
-
!
|
|
1821
|
+
!h && !m ? M.pending : ""
|
|
1796
1822
|
].filter(Boolean).join(" ");
|
|
1797
|
-
return /* @__PURE__ */
|
|
1798
|
-
/* @__PURE__ */
|
|
1799
|
-
/* @__PURE__ */ e("span", { className: M.circle, children:
|
|
1800
|
-
!
|
|
1823
|
+
return /* @__PURE__ */ d("div", { className: f, role: "listitem", children: [
|
|
1824
|
+
/* @__PURE__ */ d("div", { className: M.indicator, children: [
|
|
1825
|
+
/* @__PURE__ */ e("span", { className: M.circle, children: h ? /* @__PURE__ */ e(_l, {}) : /* @__PURE__ */ e("span", { children: _ }) }),
|
|
1826
|
+
!u && /* @__PURE__ */ e("span", { className: M.connector, "aria-hidden": "true" })
|
|
1801
1827
|
] }),
|
|
1802
|
-
|
|
1803
|
-
/* @__PURE__ */ e("span", { className: M.label, children:
|
|
1804
|
-
|
|
1828
|
+
s !== "compact" && /* @__PURE__ */ d("div", { className: M.content, children: [
|
|
1829
|
+
/* @__PURE__ */ e("span", { className: M.label, children: a.label }),
|
|
1830
|
+
a.description && /* @__PURE__ */ e("span", { className: M.description, children: a.description })
|
|
1805
1831
|
] })
|
|
1806
1832
|
] }, c);
|
|
1807
1833
|
})
|
|
1808
1834
|
}
|
|
1809
1835
|
);
|
|
1810
|
-
},
|
|
1811
|
-
triggerWrapper:
|
|
1812
|
-
popover:
|
|
1813
|
-
fadeIn:
|
|
1814
|
-
arrow:
|
|
1815
|
-
bottom:
|
|
1816
|
-
top:
|
|
1817
|
-
right:
|
|
1818
|
-
left:
|
|
1836
|
+
}, ul = "_triggerWrapper_v2cko_1", pl = "_popover_v2cko_6", hl = "_fadeIn_v2cko_1", ml = "_arrow_v2cko_24", fl = "_bottom_v2cko_34", bl = "_top_v2cko_42", gl = "_right_v2cko_50", vl = "_left_v2cko_58", Me = {
|
|
1837
|
+
triggerWrapper: ul,
|
|
1838
|
+
popover: pl,
|
|
1839
|
+
fadeIn: hl,
|
|
1840
|
+
arrow: ml,
|
|
1841
|
+
bottom: fl,
|
|
1842
|
+
top: bl,
|
|
1843
|
+
right: gl,
|
|
1844
|
+
left: vl
|
|
1819
1845
|
};
|
|
1820
|
-
function
|
|
1821
|
-
const { top:
|
|
1846
|
+
function wl(t, o, n) {
|
|
1847
|
+
const { top: s, left: r, bottom: i, right: l, width: a, height: c } = t, _ = o.offsetWidth, h = o.offsetHeight, m = 8;
|
|
1822
1848
|
switch (n) {
|
|
1823
1849
|
case "top":
|
|
1824
|
-
return { top:
|
|
1850
|
+
return { top: s - h - m + window.scrollY, left: r + a / 2 - _ / 2 + window.scrollX };
|
|
1825
1851
|
case "bottom":
|
|
1826
|
-
return { top:
|
|
1852
|
+
return { top: i + m + window.scrollY, left: r + a / 2 - _ / 2 + window.scrollX };
|
|
1827
1853
|
case "left":
|
|
1828
|
-
return { top:
|
|
1854
|
+
return { top: s + c / 2 - h / 2 + window.scrollY, left: r - _ - m + window.scrollX };
|
|
1829
1855
|
case "right":
|
|
1830
|
-
return { top:
|
|
1856
|
+
return { top: s + c / 2 - h / 2 + window.scrollY, left: l + m + window.scrollX };
|
|
1831
1857
|
}
|
|
1832
1858
|
}
|
|
1833
|
-
const
|
|
1859
|
+
const hu = ({
|
|
1834
1860
|
trigger: t,
|
|
1835
1861
|
content: o,
|
|
1836
1862
|
placement: n = "bottom",
|
|
1837
|
-
open:
|
|
1838
|
-
onOpenChange:
|
|
1839
|
-
className:
|
|
1863
|
+
open: s,
|
|
1864
|
+
onOpenChange: r,
|
|
1865
|
+
className: i
|
|
1840
1866
|
}) => {
|
|
1841
|
-
const l =
|
|
1867
|
+
const l = s !== void 0, [a, c] = O(!1), _ = l ? s : a, h = A(null), m = A(null), [u, f] = O({ top: 0, left: 0 }), v = ke(
|
|
1842
1868
|
(w) => {
|
|
1843
|
-
l || c(w),
|
|
1869
|
+
l || c(w), r == null || r(w);
|
|
1844
1870
|
},
|
|
1845
|
-
[l,
|
|
1846
|
-
),
|
|
1847
|
-
if (!
|
|
1848
|
-
const w =
|
|
1849
|
-
f(
|
|
1871
|
+
[l, r]
|
|
1872
|
+
), p = ke(() => {
|
|
1873
|
+
if (!h.current || !m.current) return;
|
|
1874
|
+
const w = h.current.getBoundingClientRect();
|
|
1875
|
+
f(wl(w, m.current, n));
|
|
1850
1876
|
}, [n]);
|
|
1851
|
-
|
|
1877
|
+
ae(() => {
|
|
1852
1878
|
if (_)
|
|
1853
|
-
return
|
|
1854
|
-
window.removeEventListener("resize",
|
|
1879
|
+
return p(), window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), () => {
|
|
1880
|
+
window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0);
|
|
1855
1881
|
};
|
|
1856
|
-
}, [_,
|
|
1882
|
+
}, [_, p]), ae(() => {
|
|
1857
1883
|
if (!_) return;
|
|
1858
|
-
const w = (
|
|
1859
|
-
var
|
|
1860
|
-
!((
|
|
1861
|
-
},
|
|
1862
|
-
|
|
1884
|
+
const w = (y) => {
|
|
1885
|
+
var z, N;
|
|
1886
|
+
!((z = h.current) != null && z.contains(y.target)) && !((N = m.current) != null && N.contains(y.target)) && v(!1);
|
|
1887
|
+
}, B = (y) => {
|
|
1888
|
+
y.key === "Escape" && v(!1);
|
|
1863
1889
|
};
|
|
1864
|
-
return document.addEventListener("mousedown", w), document.addEventListener("keydown",
|
|
1865
|
-
document.removeEventListener("mousedown", w), document.removeEventListener("keydown",
|
|
1890
|
+
return document.addEventListener("mousedown", w), document.addEventListener("keydown", B), () => {
|
|
1891
|
+
document.removeEventListener("mousedown", w), document.removeEventListener("keydown", B);
|
|
1866
1892
|
};
|
|
1867
|
-
}, [_,
|
|
1868
|
-
const
|
|
1869
|
-
return /* @__PURE__ */
|
|
1893
|
+
}, [_, v]);
|
|
1894
|
+
const g = [Me.popover, Me[n], i ?? ""].filter(Boolean).join(" ");
|
|
1895
|
+
return /* @__PURE__ */ d(st, { children: [
|
|
1870
1896
|
/* @__PURE__ */ e(
|
|
1871
1897
|
"span",
|
|
1872
1898
|
{
|
|
1873
|
-
ref:
|
|
1874
|
-
className:
|
|
1875
|
-
onClick: () =>
|
|
1899
|
+
ref: h,
|
|
1900
|
+
className: Me.triggerWrapper,
|
|
1901
|
+
onClick: () => v(!_),
|
|
1876
1902
|
"aria-expanded": _,
|
|
1877
1903
|
"aria-haspopup": "true",
|
|
1878
1904
|
children: t
|
|
1879
1905
|
}
|
|
1880
1906
|
),
|
|
1881
|
-
_ && typeof document < "u" &&
|
|
1882
|
-
/* @__PURE__ */
|
|
1907
|
+
_ && typeof document < "u" && Ke(
|
|
1908
|
+
/* @__PURE__ */ d(
|
|
1883
1909
|
"div",
|
|
1884
1910
|
{
|
|
1885
1911
|
ref: m,
|
|
1886
|
-
className:
|
|
1887
|
-
style: { top:
|
|
1912
|
+
className: g,
|
|
1913
|
+
style: { top: u.top, left: u.left },
|
|
1888
1914
|
role: "dialog",
|
|
1889
1915
|
children: [
|
|
1890
|
-
/* @__PURE__ */ e("div", { className:
|
|
1916
|
+
/* @__PURE__ */ e("div", { className: Me.arrow, "aria-hidden": "true" }),
|
|
1891
1917
|
o
|
|
1892
1918
|
]
|
|
1893
1919
|
}
|
|
@@ -1895,97 +1921,97 @@ const Rc = ({
|
|
|
1895
1921
|
document.body
|
|
1896
1922
|
)
|
|
1897
1923
|
] });
|
|
1898
|
-
},
|
|
1899
|
-
triggerWrapper:
|
|
1900
|
-
menu:
|
|
1901
|
-
item:
|
|
1902
|
-
itemDisabled:
|
|
1903
|
-
itemIcon:
|
|
1904
|
-
separator:
|
|
1924
|
+
}, $l = "_triggerWrapper_19rgz_1", yl = "_menu_19rgz_6", kl = "_item_19rgz_23", Nl = "_itemDisabled_19rgz_41", xl = "_itemIcon_19rgz_56", Bl = "_separator_19rgz_63", ve = {
|
|
1925
|
+
triggerWrapper: $l,
|
|
1926
|
+
menu: yl,
|
|
1927
|
+
item: kl,
|
|
1928
|
+
itemDisabled: Nl,
|
|
1929
|
+
itemIcon: xl,
|
|
1930
|
+
separator: Bl
|
|
1905
1931
|
};
|
|
1906
|
-
function
|
|
1907
|
-
const { top:
|
|
1932
|
+
function Ll(t, o, n) {
|
|
1933
|
+
const { top: s, left: r, bottom: i, right: l } = t, a = o.offsetHeight, c = o.offsetWidth, _ = 4;
|
|
1908
1934
|
switch (n) {
|
|
1909
1935
|
case "bottom-start":
|
|
1910
|
-
return { top:
|
|
1936
|
+
return { top: i + _ + window.scrollY, left: r + window.scrollX };
|
|
1911
1937
|
case "bottom-end":
|
|
1912
|
-
return { top:
|
|
1938
|
+
return { top: i + _ + window.scrollY, left: l - c + window.scrollX };
|
|
1913
1939
|
case "top-start":
|
|
1914
|
-
return { top:
|
|
1940
|
+
return { top: s - a - _ + window.scrollY, left: r + window.scrollX };
|
|
1915
1941
|
case "top-end":
|
|
1916
|
-
return { top:
|
|
1942
|
+
return { top: s - a - _ + window.scrollY, left: l - c + window.scrollX };
|
|
1917
1943
|
default:
|
|
1918
|
-
return { top:
|
|
1944
|
+
return { top: i + _ + window.scrollY, left: r + window.scrollX };
|
|
1919
1945
|
}
|
|
1920
1946
|
}
|
|
1921
|
-
const
|
|
1947
|
+
const mu = ({
|
|
1922
1948
|
trigger: t,
|
|
1923
1949
|
items: o,
|
|
1924
1950
|
placement: n = "bottom-start",
|
|
1925
|
-
className:
|
|
1951
|
+
className: s
|
|
1926
1952
|
}) => {
|
|
1927
|
-
const [
|
|
1928
|
-
if (!l.current || !
|
|
1929
|
-
const
|
|
1930
|
-
_(
|
|
1953
|
+
const [r, i] = O(!1), l = A(null), a = A(null), [c, _] = O({ top: 0, left: 0 }), h = ke(() => {
|
|
1954
|
+
if (!l.current || !a.current) return;
|
|
1955
|
+
const u = l.current.getBoundingClientRect();
|
|
1956
|
+
_(Ll(u, a.current, n));
|
|
1931
1957
|
}, [n]);
|
|
1932
|
-
|
|
1933
|
-
if (
|
|
1934
|
-
return
|
|
1935
|
-
window.removeEventListener("resize",
|
|
1958
|
+
ae(() => {
|
|
1959
|
+
if (r)
|
|
1960
|
+
return h(), window.addEventListener("resize", h), window.addEventListener("scroll", h, !0), () => {
|
|
1961
|
+
window.removeEventListener("resize", h), window.removeEventListener("scroll", h, !0);
|
|
1936
1962
|
};
|
|
1937
|
-
}, [
|
|
1938
|
-
if (!
|
|
1939
|
-
const
|
|
1940
|
-
var
|
|
1941
|
-
!((
|
|
1942
|
-
}, f = (
|
|
1943
|
-
var
|
|
1944
|
-
if (
|
|
1945
|
-
|
|
1946
|
-
const
|
|
1947
|
-
|
|
1963
|
+
}, [r, h]), ae(() => {
|
|
1964
|
+
if (!r) return;
|
|
1965
|
+
const u = (v) => {
|
|
1966
|
+
var p, g;
|
|
1967
|
+
!((p = l.current) != null && p.contains(v.target)) && !((g = a.current) != null && g.contains(v.target)) && i(!1);
|
|
1968
|
+
}, f = (v) => {
|
|
1969
|
+
var p;
|
|
1970
|
+
if (v.key === "Escape") {
|
|
1971
|
+
i(!1);
|
|
1972
|
+
const g = (p = l.current) == null ? void 0 : p.querySelector("button, a, [tabindex]");
|
|
1973
|
+
g == null || g.focus();
|
|
1948
1974
|
}
|
|
1949
1975
|
};
|
|
1950
|
-
return document.addEventListener("mousedown",
|
|
1951
|
-
document.removeEventListener("mousedown",
|
|
1976
|
+
return document.addEventListener("mousedown", u), document.addEventListener("keydown", f), () => {
|
|
1977
|
+
document.removeEventListener("mousedown", u), document.removeEventListener("keydown", f);
|
|
1952
1978
|
};
|
|
1953
|
-
}, [
|
|
1954
|
-
const m = (
|
|
1979
|
+
}, [r]);
|
|
1980
|
+
const m = (u) => {
|
|
1955
1981
|
var f;
|
|
1956
|
-
|
|
1982
|
+
u.disabled || ((f = u.onClick) == null || f.call(u), i(!1));
|
|
1957
1983
|
};
|
|
1958
|
-
return /* @__PURE__ */
|
|
1984
|
+
return /* @__PURE__ */ d(st, { children: [
|
|
1959
1985
|
/* @__PURE__ */ e(
|
|
1960
1986
|
"span",
|
|
1961
1987
|
{
|
|
1962
1988
|
ref: l,
|
|
1963
|
-
className:
|
|
1964
|
-
onClick: () =>
|
|
1989
|
+
className: ve.triggerWrapper,
|
|
1990
|
+
onClick: () => i((u) => !u),
|
|
1965
1991
|
"aria-haspopup": "menu",
|
|
1966
|
-
"aria-expanded":
|
|
1992
|
+
"aria-expanded": r,
|
|
1967
1993
|
children: t
|
|
1968
1994
|
}
|
|
1969
1995
|
),
|
|
1970
|
-
|
|
1996
|
+
r && typeof document < "u" && Ke(
|
|
1971
1997
|
/* @__PURE__ */ e(
|
|
1972
1998
|
"div",
|
|
1973
1999
|
{
|
|
1974
|
-
ref:
|
|
1975
|
-
className: [
|
|
2000
|
+
ref: a,
|
|
2001
|
+
className: [ve.menu, s ?? ""].filter(Boolean).join(" "),
|
|
1976
2002
|
style: { top: c.top, left: c.left },
|
|
1977
2003
|
role: "menu",
|
|
1978
|
-
children: o.map((
|
|
2004
|
+
children: o.map((u, f) => u.separator ? /* @__PURE__ */ e("div", { className: ve.separator, role: "separator" }, f) : /* @__PURE__ */ d(
|
|
1979
2005
|
"button",
|
|
1980
2006
|
{
|
|
1981
2007
|
type: "button",
|
|
1982
2008
|
role: "menuitem",
|
|
1983
|
-
className: [
|
|
1984
|
-
onClick: () => m(
|
|
1985
|
-
disabled:
|
|
2009
|
+
className: [ve.item, u.disabled ? ve.itemDisabled : ""].filter(Boolean).join(" "),
|
|
2010
|
+
onClick: () => m(u),
|
|
2011
|
+
disabled: u.disabled,
|
|
1986
2012
|
children: [
|
|
1987
|
-
|
|
1988
|
-
/* @__PURE__ */ e("span", { children:
|
|
2013
|
+
u.icon && /* @__PURE__ */ e("span", { className: ve.itemIcon, "aria-hidden": "true", children: u.icon }),
|
|
2014
|
+
/* @__PURE__ */ e("span", { children: u.label })
|
|
1989
2015
|
]
|
|
1990
2016
|
},
|
|
1991
2017
|
f
|
|
@@ -1995,42 +2021,42 @@ const Mc = ({
|
|
|
1995
2021
|
document.body
|
|
1996
2022
|
)
|
|
1997
2023
|
] });
|
|
1998
|
-
},
|
|
1999
|
-
wrapper:
|
|
2000
|
-
wrapperDisabled:
|
|
2001
|
-
labelRow:
|
|
2002
|
-
label:
|
|
2003
|
-
valueDisplay:
|
|
2004
|
-
trackWrapper:
|
|
2005
|
-
sm:
|
|
2006
|
-
md:
|
|
2007
|
-
lg:
|
|
2008
|
-
trackBg:
|
|
2009
|
-
trackFill:
|
|
2010
|
-
input:
|
|
2011
|
-
},
|
|
2024
|
+
}, jl = "_wrapper_13j54_1", Il = "_wrapperDisabled_13j54_8", Cl = "_labelRow_13j54_13", zl = "_label_13j54_13", Wl = "_valueDisplay_13j54_25", El = "_trackWrapper_13j54_31", Rl = "_sm_13j54_37", Sl = "_md_13j54_38", Tl = "_lg_13j54_39", Dl = "_trackBg_13j54_41", ql = "_trackFill_13j54_51", Ml = "_input_13j54_61", Y = {
|
|
2025
|
+
wrapper: jl,
|
|
2026
|
+
wrapperDisabled: Il,
|
|
2027
|
+
labelRow: Cl,
|
|
2028
|
+
label: zl,
|
|
2029
|
+
valueDisplay: Wl,
|
|
2030
|
+
trackWrapper: El,
|
|
2031
|
+
sm: Rl,
|
|
2032
|
+
md: Sl,
|
|
2033
|
+
lg: Tl,
|
|
2034
|
+
trackBg: Dl,
|
|
2035
|
+
trackFill: ql,
|
|
2036
|
+
input: Ml
|
|
2037
|
+
}, fu = ({
|
|
2012
2038
|
min: t = 0,
|
|
2013
2039
|
max: o = 100,
|
|
2014
2040
|
step: n = 1,
|
|
2015
|
-
value:
|
|
2016
|
-
onChange:
|
|
2017
|
-
label:
|
|
2041
|
+
value: s,
|
|
2042
|
+
onChange: r,
|
|
2043
|
+
label: i,
|
|
2018
2044
|
showValue: l = !1,
|
|
2019
|
-
size:
|
|
2045
|
+
size: a = "md",
|
|
2020
2046
|
disabled: c,
|
|
2021
2047
|
className: _,
|
|
2022
|
-
id:
|
|
2048
|
+
id: h,
|
|
2023
2049
|
...m
|
|
2024
2050
|
}) => {
|
|
2025
|
-
const
|
|
2026
|
-
return /* @__PURE__ */
|
|
2027
|
-
(
|
|
2028
|
-
|
|
2029
|
-
l &&
|
|
2051
|
+
const u = Pe(), f = h ?? u, v = s !== void 0 ? (s - t) / (o - t) * 100 : 0;
|
|
2052
|
+
return /* @__PURE__ */ d("div", { className: [Y.wrapper, c ? Y.wrapperDisabled : "", _ ?? ""].filter(Boolean).join(" "), children: [
|
|
2053
|
+
(i || l) && /* @__PURE__ */ d("div", { className: Y.labelRow, children: [
|
|
2054
|
+
i && /* @__PURE__ */ e("label", { htmlFor: f, className: Y.label, children: i }),
|
|
2055
|
+
l && s !== void 0 && /* @__PURE__ */ e("span", { className: Y.valueDisplay, children: s })
|
|
2030
2056
|
] }),
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
/* @__PURE__ */ e("div", { className:
|
|
2033
|
-
/* @__PURE__ */ e("div", { className:
|
|
2057
|
+
/* @__PURE__ */ d("div", { className: [Y.trackWrapper, Y[a]].filter(Boolean).join(" "), children: [
|
|
2058
|
+
/* @__PURE__ */ e("div", { className: Y.trackBg }),
|
|
2059
|
+
/* @__PURE__ */ e("div", { className: Y.trackFill, style: { width: `${v}%` } }),
|
|
2034
2060
|
/* @__PURE__ */ e(
|
|
2035
2061
|
"input",
|
|
2036
2062
|
{
|
|
@@ -2039,73 +2065,73 @@ const Mc = ({
|
|
|
2039
2065
|
min: t,
|
|
2040
2066
|
max: o,
|
|
2041
2067
|
step: n,
|
|
2042
|
-
value:
|
|
2068
|
+
value: s,
|
|
2043
2069
|
disabled: c,
|
|
2044
|
-
onChange: (
|
|
2045
|
-
className:
|
|
2070
|
+
onChange: (p) => r == null ? void 0 : r(Number(p.target.value)),
|
|
2071
|
+
className: Y.input,
|
|
2046
2072
|
"aria-valuemin": t,
|
|
2047
2073
|
"aria-valuemax": o,
|
|
2048
|
-
"aria-valuenow":
|
|
2074
|
+
"aria-valuenow": s,
|
|
2049
2075
|
...m
|
|
2050
2076
|
}
|
|
2051
2077
|
)
|
|
2052
2078
|
] })
|
|
2053
2079
|
] });
|
|
2054
|
-
},
|
|
2055
|
-
root:
|
|
2056
|
-
label:
|
|
2057
|
-
required:
|
|
2058
|
-
wrapper:
|
|
2059
|
-
hasError:
|
|
2060
|
-
disabled:
|
|
2061
|
-
sm:
|
|
2062
|
-
md:
|
|
2063
|
-
lg:
|
|
2064
|
-
input:
|
|
2065
|
-
stepBtn:
|
|
2066
|
-
errorMsg:
|
|
2067
|
-
hintMsg:
|
|
2068
|
-
},
|
|
2080
|
+
}, Fl = "_root_q5j4f_1", Al = "_label_q5j4f_7", Hl = "_required_q5j4f_14", Pl = "_wrapper_q5j4f_18", Ol = "_hasError_q5j4f_33", Ul = "_disabled_q5j4f_41", Vl = "_sm_q5j4f_47", Xl = "_md_q5j4f_48", Yl = "_lg_q5j4f_49", Kl = "_input_q5j4f_51", Gl = "_stepBtn_q5j4f_72", Jl = "_errorMsg_q5j4f_96", Ql = "_hintMsg_q5j4f_103", P = {
|
|
2081
|
+
root: Fl,
|
|
2082
|
+
label: Al,
|
|
2083
|
+
required: Hl,
|
|
2084
|
+
wrapper: Pl,
|
|
2085
|
+
hasError: Ol,
|
|
2086
|
+
disabled: Ul,
|
|
2087
|
+
sm: Vl,
|
|
2088
|
+
md: Xl,
|
|
2089
|
+
lg: Yl,
|
|
2090
|
+
input: Kl,
|
|
2091
|
+
stepBtn: Gl,
|
|
2092
|
+
errorMsg: Jl,
|
|
2093
|
+
hintMsg: Ql
|
|
2094
|
+
}, bu = ({
|
|
2069
2095
|
value: t,
|
|
2070
2096
|
onChange: o,
|
|
2071
2097
|
min: n,
|
|
2072
|
-
max:
|
|
2073
|
-
step:
|
|
2074
|
-
label:
|
|
2098
|
+
max: s,
|
|
2099
|
+
step: r = 1,
|
|
2100
|
+
label: i,
|
|
2075
2101
|
error: l,
|
|
2076
|
-
hint:
|
|
2102
|
+
hint: a,
|
|
2077
2103
|
size: c = "md",
|
|
2078
2104
|
disabled: _,
|
|
2079
|
-
required:
|
|
2105
|
+
required: h,
|
|
2080
2106
|
id: m,
|
|
2081
|
-
className:
|
|
2107
|
+
className: u,
|
|
2082
2108
|
...f
|
|
2083
2109
|
}) => {
|
|
2084
|
-
const
|
|
2085
|
-
const N = (t ?? 0) -
|
|
2110
|
+
const v = Pe(), p = m ?? v, g = `${p}-hint`, w = `${p}-error`, B = () => {
|
|
2111
|
+
const N = (t ?? 0) - r;
|
|
2086
2112
|
n !== void 0 && N < n || o == null || o(N);
|
|
2087
|
-
},
|
|
2088
|
-
const N = (t ?? 0) +
|
|
2089
|
-
|
|
2090
|
-
},
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
l ?
|
|
2094
|
-
_ ?
|
|
2095
|
-
|
|
2113
|
+
}, y = () => {
|
|
2114
|
+
const N = (t ?? 0) + r;
|
|
2115
|
+
s !== void 0 && N > s || o == null || o(N);
|
|
2116
|
+
}, z = [
|
|
2117
|
+
P.wrapper,
|
|
2118
|
+
P[c],
|
|
2119
|
+
l ? P.hasError : "",
|
|
2120
|
+
_ ? P.disabled : "",
|
|
2121
|
+
u ?? ""
|
|
2096
2122
|
].filter(Boolean).join(" ");
|
|
2097
|
-
return /* @__PURE__ */
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2123
|
+
return /* @__PURE__ */ d("div", { className: P.root, children: [
|
|
2124
|
+
i && /* @__PURE__ */ d("label", { htmlFor: p, className: P.label, children: [
|
|
2125
|
+
i,
|
|
2126
|
+
h && /* @__PURE__ */ e("span", { className: P.required, "aria-hidden": "true", children: " *" })
|
|
2101
2127
|
] }),
|
|
2102
|
-
/* @__PURE__ */
|
|
2128
|
+
/* @__PURE__ */ d("div", { className: z, children: [
|
|
2103
2129
|
/* @__PURE__ */ e(
|
|
2104
2130
|
"button",
|
|
2105
2131
|
{
|
|
2106
2132
|
type: "button",
|
|
2107
|
-
className:
|
|
2108
|
-
onClick:
|
|
2133
|
+
className: P.stepBtn,
|
|
2134
|
+
onClick: B,
|
|
2109
2135
|
disabled: _ || n !== void 0 && (t ?? 0) <= n,
|
|
2110
2136
|
"aria-label": "Decrease value",
|
|
2111
2137
|
tabIndex: -1,
|
|
@@ -2115,17 +2141,17 @@ const Mc = ({
|
|
|
2115
2141
|
/* @__PURE__ */ e(
|
|
2116
2142
|
"input",
|
|
2117
2143
|
{
|
|
2118
|
-
id:
|
|
2144
|
+
id: p,
|
|
2119
2145
|
type: "number",
|
|
2120
|
-
className:
|
|
2146
|
+
className: P.input,
|
|
2121
2147
|
value: t,
|
|
2122
2148
|
min: n,
|
|
2123
|
-
max:
|
|
2124
|
-
step:
|
|
2149
|
+
max: s,
|
|
2150
|
+
step: r,
|
|
2125
2151
|
disabled: _,
|
|
2126
|
-
required:
|
|
2152
|
+
required: h,
|
|
2127
2153
|
"aria-invalid": !!l,
|
|
2128
|
-
"aria-describedby": l ? w :
|
|
2154
|
+
"aria-describedby": l ? w : a ? g : void 0,
|
|
2129
2155
|
onChange: (N) => o == null ? void 0 : o(N.target.valueAsNumber),
|
|
2130
2156
|
...f
|
|
2131
2157
|
}
|
|
@@ -2134,232 +2160,768 @@ const Mc = ({
|
|
|
2134
2160
|
"button",
|
|
2135
2161
|
{
|
|
2136
2162
|
type: "button",
|
|
2137
|
-
className:
|
|
2138
|
-
onClick:
|
|
2139
|
-
disabled: _ ||
|
|
2163
|
+
className: P.stepBtn,
|
|
2164
|
+
onClick: y,
|
|
2165
|
+
disabled: _ || s !== void 0 && (t ?? 0) >= s,
|
|
2140
2166
|
"aria-label": "Increase value",
|
|
2141
2167
|
tabIndex: -1,
|
|
2142
2168
|
children: /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M12 5v14M5 12h14" }) })
|
|
2143
2169
|
}
|
|
2144
2170
|
)
|
|
2145
2171
|
] }),
|
|
2146
|
-
l && /* @__PURE__ */ e("p", { id: w, className:
|
|
2147
|
-
!l &&
|
|
2172
|
+
l && /* @__PURE__ */ e("p", { id: w, className: P.errorMsg, role: "alert", children: l }),
|
|
2173
|
+
!l && a && /* @__PURE__ */ e("p", { id: g, className: P.hintMsg, children: a })
|
|
2148
2174
|
] });
|
|
2149
|
-
},
|
|
2150
|
-
root:
|
|
2151
|
-
label:
|
|
2152
|
-
zone:
|
|
2153
|
-
zoneDisabled:
|
|
2154
|
-
dragging:
|
|
2155
|
-
zoneError:
|
|
2156
|
-
hiddenInput:
|
|
2157
|
-
uploadIcon:
|
|
2158
|
-
zoneText:
|
|
2159
|
-
zoneLink:
|
|
2160
|
-
zoneHint:
|
|
2161
|
-
errorMsg:
|
|
2162
|
-
fileList:
|
|
2163
|
-
fileItem:
|
|
2164
|
-
fileName:
|
|
2165
|
-
fileSize:
|
|
2166
|
-
removeBtn:
|
|
2167
|
-
},
|
|
2168
|
-
function
|
|
2175
|
+
}, Zl = "_root_10bwd_1", ec = "_label_10bwd_7", tc = "_zone_10bwd_14", nc = "_zoneDisabled_10bwd_29", oc = "_dragging_10bwd_34", sc = "_zoneError_10bwd_39", rc = "_hiddenInput_10bwd_48", ac = "_uploadIcon_10bwd_52", ic = "_zoneText_10bwd_56", lc = "_zoneLink_10bwd_61", cc = "_zoneHint_10bwd_68", dc = "_errorMsg_10bwd_73", _c = "_fileList_10bwd_79", uc = "_fileItem_10bwd_88", pc = "_fileName_10bwd_98", hc = "_fileSize_10bwd_108", mc = "_removeBtn_10bwd_114", R = {
|
|
2176
|
+
root: Zl,
|
|
2177
|
+
label: ec,
|
|
2178
|
+
zone: tc,
|
|
2179
|
+
zoneDisabled: nc,
|
|
2180
|
+
dragging: oc,
|
|
2181
|
+
zoneError: sc,
|
|
2182
|
+
hiddenInput: rc,
|
|
2183
|
+
uploadIcon: ac,
|
|
2184
|
+
zoneText: ic,
|
|
2185
|
+
zoneLink: lc,
|
|
2186
|
+
zoneHint: cc,
|
|
2187
|
+
errorMsg: dc,
|
|
2188
|
+
fileList: _c,
|
|
2189
|
+
fileItem: uc,
|
|
2190
|
+
fileName: pc,
|
|
2191
|
+
fileSize: hc,
|
|
2192
|
+
removeBtn: mc
|
|
2193
|
+
}, fc = () => /* @__PURE__ */ e("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" }) });
|
|
2194
|
+
function tt(t) {
|
|
2169
2195
|
return t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`;
|
|
2170
2196
|
}
|
|
2171
|
-
const
|
|
2197
|
+
const gu = ({
|
|
2172
2198
|
accept: t,
|
|
2173
2199
|
multiple: o = !1,
|
|
2174
2200
|
maxSize: n,
|
|
2175
|
-
onChange:
|
|
2176
|
-
label:
|
|
2177
|
-
hint:
|
|
2201
|
+
onChange: s,
|
|
2202
|
+
label: r,
|
|
2203
|
+
hint: i,
|
|
2178
2204
|
error: l,
|
|
2179
|
-
disabled:
|
|
2205
|
+
disabled: a = !1,
|
|
2180
2206
|
className: c,
|
|
2181
2207
|
id: _
|
|
2182
2208
|
}) => {
|
|
2183
|
-
const
|
|
2184
|
-
if (
|
|
2185
|
-
const
|
|
2186
|
-
if (n &&
|
|
2187
|
-
|
|
2209
|
+
const h = Pe(), m = _ ?? h, u = A(null), [f, v] = O(!1), [p, g] = O([]), [w, B] = O(null), y = l ?? w, z = ($) => {
|
|
2210
|
+
if (!$) return;
|
|
2211
|
+
const k = Array.from($);
|
|
2212
|
+
if (n && k.filter((pe) => pe.size > n).length > 0) {
|
|
2213
|
+
B(`File exceeds maximum size of ${tt(n)}.`);
|
|
2188
2214
|
return;
|
|
2189
2215
|
}
|
|
2190
|
-
|
|
2191
|
-
const
|
|
2192
|
-
|
|
2193
|
-
}, N = (
|
|
2194
|
-
|
|
2195
|
-
},
|
|
2196
|
-
const
|
|
2197
|
-
|
|
2198
|
-
},
|
|
2199
|
-
|
|
2200
|
-
f ?
|
|
2201
|
-
|
|
2202
|
-
|
|
2216
|
+
B(null);
|
|
2217
|
+
const G = o ? k : k.slice(0, 1);
|
|
2218
|
+
g(G), s == null || s(G);
|
|
2219
|
+
}, N = ($) => {
|
|
2220
|
+
$.preventDefault(), v(!1), a || z($.dataTransfer.files);
|
|
2221
|
+
}, H = ($) => {
|
|
2222
|
+
const k = p.filter((G, ne) => ne !== $);
|
|
2223
|
+
g(k), s == null || s(k);
|
|
2224
|
+
}, x = [
|
|
2225
|
+
R.zone,
|
|
2226
|
+
f ? R.dragging : "",
|
|
2227
|
+
y ? R.zoneError : "",
|
|
2228
|
+
a ? R.zoneDisabled : ""
|
|
2203
2229
|
].filter(Boolean).join(" ");
|
|
2204
|
-
return /* @__PURE__ */
|
|
2205
|
-
|
|
2206
|
-
/* @__PURE__ */
|
|
2230
|
+
return /* @__PURE__ */ d("div", { className: [R.root, c ?? ""].filter(Boolean).join(" "), children: [
|
|
2231
|
+
r && /* @__PURE__ */ e("span", { className: R.label, children: r }),
|
|
2232
|
+
/* @__PURE__ */ d(
|
|
2207
2233
|
"label",
|
|
2208
2234
|
{
|
|
2209
2235
|
htmlFor: m,
|
|
2210
|
-
className:
|
|
2211
|
-
onDragOver: (
|
|
2212
|
-
|
|
2236
|
+
className: x,
|
|
2237
|
+
onDragOver: ($) => {
|
|
2238
|
+
$.preventDefault(), a || v(!0);
|
|
2213
2239
|
},
|
|
2214
|
-
onDragLeave: () =>
|
|
2240
|
+
onDragLeave: () => v(!1),
|
|
2215
2241
|
onDrop: N,
|
|
2216
2242
|
children: [
|
|
2217
2243
|
/* @__PURE__ */ e(
|
|
2218
2244
|
"input",
|
|
2219
2245
|
{
|
|
2220
|
-
ref:
|
|
2246
|
+
ref: u,
|
|
2221
2247
|
id: m,
|
|
2222
2248
|
type: "file",
|
|
2223
2249
|
accept: t,
|
|
2224
2250
|
multiple: o,
|
|
2225
|
-
disabled:
|
|
2226
|
-
className:
|
|
2227
|
-
onChange: (
|
|
2251
|
+
disabled: a,
|
|
2252
|
+
className: R.hiddenInput,
|
|
2253
|
+
onChange: ($) => z($.target.files)
|
|
2228
2254
|
}
|
|
2229
2255
|
),
|
|
2230
|
-
/* @__PURE__ */ e("span", { className:
|
|
2231
|
-
/* @__PURE__ */
|
|
2232
|
-
/* @__PURE__ */ e("span", { className:
|
|
2256
|
+
/* @__PURE__ */ e("span", { className: R.uploadIcon, children: /* @__PURE__ */ e(fc, {}) }),
|
|
2257
|
+
/* @__PURE__ */ d("span", { className: R.zoneText, children: [
|
|
2258
|
+
/* @__PURE__ */ e("span", { className: R.zoneLink, children: "Choose files" }),
|
|
2233
2259
|
" or drag and drop"
|
|
2234
2260
|
] }),
|
|
2235
|
-
|
|
2261
|
+
i && /* @__PURE__ */ e("span", { className: R.zoneHint, children: i })
|
|
2236
2262
|
]
|
|
2237
2263
|
}
|
|
2238
2264
|
),
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
/* @__PURE__ */ e("span", { className:
|
|
2242
|
-
/* @__PURE__ */ e("span", { className:
|
|
2265
|
+
y && /* @__PURE__ */ e("p", { className: R.errorMsg, role: "alert", children: y }),
|
|
2266
|
+
p.length > 0 && /* @__PURE__ */ e("ul", { className: R.fileList, children: p.map(($, k) => /* @__PURE__ */ d("li", { className: R.fileItem, children: [
|
|
2267
|
+
/* @__PURE__ */ e("span", { className: R.fileName, children: $.name }),
|
|
2268
|
+
/* @__PURE__ */ e("span", { className: R.fileSize, children: tt($.size) }),
|
|
2243
2269
|
/* @__PURE__ */ e(
|
|
2244
2270
|
"button",
|
|
2245
2271
|
{
|
|
2246
2272
|
type: "button",
|
|
2247
|
-
className:
|
|
2248
|
-
onClick: () =>
|
|
2249
|
-
"aria-label": `Remove ${
|
|
2273
|
+
className: R.removeBtn,
|
|
2274
|
+
onClick: () => H(k),
|
|
2275
|
+
"aria-label": `Remove ${$.name}`,
|
|
2250
2276
|
children: /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M6 18L18 6M6 6l12 12" }) })
|
|
2251
2277
|
}
|
|
2252
2278
|
)
|
|
2253
|
-
] },
|
|
2279
|
+
] }, k)) })
|
|
2254
2280
|
] });
|
|
2255
|
-
},
|
|
2256
|
-
wrapper:
|
|
2257
|
-
table:
|
|
2258
|
-
sm:
|
|
2259
|
-
th:
|
|
2260
|
-
td:
|
|
2261
|
-
md:
|
|
2262
|
-
lg:
|
|
2263
|
-
thContent:
|
|
2264
|
-
sortable:
|
|
2265
|
-
sortActive:
|
|
2266
|
-
sortIcon:
|
|
2267
|
-
tr:
|
|
2268
|
-
striped:
|
|
2269
|
-
bordered:
|
|
2270
|
-
empty:
|
|
2271
|
-
},
|
|
2272
|
-
function
|
|
2281
|
+
}, bc = "_wrapper_i5kin_1", gc = "_table_i5kin_8", vc = "_sm_i5kin_15", wc = "_th_i5kin_15", $c = "_td_i5kin_16", yc = "_md_i5kin_21", kc = "_lg_i5kin_27", Nc = "_thContent_i5kin_43", xc = "_sortable_i5kin_49", Bc = "_sortActive_i5kin_58", Lc = "_sortIcon_i5kin_62", jc = "_tr_i5kin_72", Ic = "_striped_i5kin_91", Cc = "_bordered_i5kin_100", zc = "_empty_i5kin_105", F = {
|
|
2282
|
+
wrapper: bc,
|
|
2283
|
+
table: gc,
|
|
2284
|
+
sm: vc,
|
|
2285
|
+
th: wc,
|
|
2286
|
+
td: $c,
|
|
2287
|
+
md: yc,
|
|
2288
|
+
lg: kc,
|
|
2289
|
+
thContent: Nc,
|
|
2290
|
+
sortable: xc,
|
|
2291
|
+
sortActive: Bc,
|
|
2292
|
+
sortIcon: Lc,
|
|
2293
|
+
tr: jc,
|
|
2294
|
+
striped: Ic,
|
|
2295
|
+
bordered: Cc,
|
|
2296
|
+
empty: zc
|
|
2297
|
+
}, Wc = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 15l7-7 7 7" }) }), Ec = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }), Rc = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 9l4-4 4 4M16 15l-4 4-4-4" }) });
|
|
2298
|
+
function vu({
|
|
2273
2299
|
columns: t,
|
|
2274
2300
|
data: o,
|
|
2275
2301
|
sortKey: n,
|
|
2276
|
-
sortDir:
|
|
2277
|
-
onSort:
|
|
2278
|
-
striped:
|
|
2302
|
+
sortDir: s,
|
|
2303
|
+
onSort: r,
|
|
2304
|
+
striped: i = !1,
|
|
2279
2305
|
bordered: l = !1,
|
|
2280
|
-
size:
|
|
2306
|
+
size: a = "md",
|
|
2281
2307
|
className: c,
|
|
2282
2308
|
..._
|
|
2283
2309
|
}) {
|
|
2284
|
-
const
|
|
2285
|
-
if (!
|
|
2286
|
-
const f = n ===
|
|
2287
|
-
|
|
2310
|
+
const h = (u) => {
|
|
2311
|
+
if (!u.sortable || !r) return;
|
|
2312
|
+
const f = n === u.key && s === "asc" ? "desc" : "asc";
|
|
2313
|
+
r(u.key, f);
|
|
2288
2314
|
}, m = [
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
l ?
|
|
2315
|
+
F.table,
|
|
2316
|
+
F[a],
|
|
2317
|
+
i ? F.striped : "",
|
|
2318
|
+
l ? F.bordered : ""
|
|
2293
2319
|
].filter(Boolean).join(" ");
|
|
2294
2320
|
return /* @__PURE__ */ e(
|
|
2295
2321
|
"div",
|
|
2296
2322
|
{
|
|
2297
|
-
className: [
|
|
2323
|
+
className: [F.wrapper, c ?? ""].filter(Boolean).join(" "),
|
|
2298
2324
|
..._,
|
|
2299
|
-
children: /* @__PURE__ */
|
|
2300
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: t.map((
|
|
2301
|
-
const f = n ===
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
f ?
|
|
2325
|
+
children: /* @__PURE__ */ d("table", { className: m, children: [
|
|
2326
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: t.map((u) => {
|
|
2327
|
+
const f = n === u.key, v = [
|
|
2328
|
+
F.th,
|
|
2329
|
+
u.sortable ? F.sortable : "",
|
|
2330
|
+
f ? F.sortActive : ""
|
|
2305
2331
|
].filter(Boolean).join(" ");
|
|
2306
2332
|
return /* @__PURE__ */ e(
|
|
2307
2333
|
"th",
|
|
2308
2334
|
{
|
|
2309
|
-
className:
|
|
2310
|
-
onClick: () =>
|
|
2311
|
-
"aria-sort": f ?
|
|
2312
|
-
children: /* @__PURE__ */
|
|
2313
|
-
|
|
2314
|
-
|
|
2335
|
+
className: v,
|
|
2336
|
+
onClick: () => h(u),
|
|
2337
|
+
"aria-sort": f ? s === "asc" ? "ascending" : "descending" : u.sortable ? "none" : void 0,
|
|
2338
|
+
children: /* @__PURE__ */ d("span", { className: F.thContent, children: [
|
|
2339
|
+
u.header,
|
|
2340
|
+
u.sortable && /* @__PURE__ */ e("span", { className: F.sortIcon, children: f ? s === "asc" ? /* @__PURE__ */ e(Wc, {}) : /* @__PURE__ */ e(Ec, {}) : /* @__PURE__ */ e(Rc, {}) })
|
|
2315
2341
|
] })
|
|
2316
2342
|
},
|
|
2317
|
-
|
|
2343
|
+
u.key
|
|
2318
2344
|
);
|
|
2319
2345
|
}) }) }),
|
|
2320
|
-
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length, className:
|
|
2321
|
-
const
|
|
2322
|
-
return /* @__PURE__ */ e("td", { className:
|
|
2346
|
+
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length, className: F.empty, children: "No data available." }) }) : o.map((u, f) => /* @__PURE__ */ e("tr", { className: F.tr, children: t.map((v) => {
|
|
2347
|
+
const p = u[v.key], g = v.render ? v.render(p, u, f) : p;
|
|
2348
|
+
return /* @__PURE__ */ e("td", { className: F.td, children: g }, v.key);
|
|
2323
2349
|
}) }, f)) })
|
|
2324
2350
|
] })
|
|
2325
2351
|
}
|
|
2326
2352
|
);
|
|
2327
2353
|
}
|
|
2354
|
+
const Sc = "_root_d7z0d_1", Tc = "_sent_d7z0d_9", Dc = "_received_d7z0d_13", qc = "_ai_d7z0d_14", Mc = "_system_d7z0d_18", Fc = "_avatarSlot_d7z0d_23", Ac = "_avatar_d7z0d_23", Hc = "_avatarSpacer_d7z0d_37", Pc = "_content_d7z0d_42", Oc = "_header_d7z0d_60", Uc = "_username_d7z0d_67", Vc = "_time_d7z0d_73", Xc = "_bubble_d7z0d_79", Yc = "_first_d7z0d_107", Kc = "_middle_d7z0d_111", Gc = "_last_d7z0d_115", Jc = "_systemText_d7z0d_141", Qc = "_body_d7z0d_150", Zc = "_cursor_d7z0d_155", ed = "_cursorBlink_d7z0d_1", td = "_footer_d7z0d_166", nd = "_actions_d7z0d_173", od = "_status_d7z0d_178", sd = "_statusRead_d7z0d_183", C = {
|
|
2355
|
+
root: Sc,
|
|
2356
|
+
sent: Tc,
|
|
2357
|
+
received: Dc,
|
|
2358
|
+
ai: qc,
|
|
2359
|
+
system: Mc,
|
|
2360
|
+
avatarSlot: Fc,
|
|
2361
|
+
avatar: Ac,
|
|
2362
|
+
avatarSpacer: Hc,
|
|
2363
|
+
content: Pc,
|
|
2364
|
+
header: Oc,
|
|
2365
|
+
username: Uc,
|
|
2366
|
+
time: Vc,
|
|
2367
|
+
bubble: Xc,
|
|
2368
|
+
first: Yc,
|
|
2369
|
+
middle: Kc,
|
|
2370
|
+
last: Gc,
|
|
2371
|
+
systemText: Jc,
|
|
2372
|
+
body: Qc,
|
|
2373
|
+
cursor: Zc,
|
|
2374
|
+
cursorBlink: ed,
|
|
2375
|
+
footer: td,
|
|
2376
|
+
actions: nd,
|
|
2377
|
+
status: od,
|
|
2378
|
+
statusRead: sd
|
|
2379
|
+
};
|
|
2380
|
+
function rd() {
|
|
2381
|
+
return /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("polyline", { points: "20 6 9 17 4 12" }) });
|
|
2382
|
+
}
|
|
2383
|
+
function nt() {
|
|
2384
|
+
return /* @__PURE__ */ d("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2385
|
+
/* @__PURE__ */ e("path", { d: "M18 6 7 17l-5-5" }),
|
|
2386
|
+
/* @__PURE__ */ e("path", { d: "m22 10-9.5 9.5L10 17" })
|
|
2387
|
+
] });
|
|
2388
|
+
}
|
|
2389
|
+
const ad = {
|
|
2390
|
+
sent: /* @__PURE__ */ e(rd, {}),
|
|
2391
|
+
delivered: /* @__PURE__ */ e(nt, {}),
|
|
2392
|
+
read: /* @__PURE__ */ e(nt, {})
|
|
2393
|
+
}, wu = ({
|
|
2394
|
+
variant: t = "received",
|
|
2395
|
+
avatar: o,
|
|
2396
|
+
username: n,
|
|
2397
|
+
timestamp: s,
|
|
2398
|
+
status: r,
|
|
2399
|
+
grouping: i = "single",
|
|
2400
|
+
isStreaming: l = !1,
|
|
2401
|
+
actions: a,
|
|
2402
|
+
children: c,
|
|
2403
|
+
className: _,
|
|
2404
|
+
...h
|
|
2405
|
+
}) => {
|
|
2406
|
+
const m = [
|
|
2407
|
+
C.root,
|
|
2408
|
+
C[t],
|
|
2409
|
+
C[i],
|
|
2410
|
+
_ ?? ""
|
|
2411
|
+
].filter(Boolean).join(" ");
|
|
2412
|
+
if (t === "system")
|
|
2413
|
+
return /* @__PURE__ */ e("div", { className: m, ...h, children: /* @__PURE__ */ e("div", { className: C.systemText, children: c }) });
|
|
2414
|
+
const u = o && (i === "single" || i === "last"), f = (n || s) && (i === "single" || i === "first");
|
|
2415
|
+
return /* @__PURE__ */ d("div", { className: m, ...h, children: [
|
|
2416
|
+
/* @__PURE__ */ e("div", { className: C.avatarSlot, children: u ? /* @__PURE__ */ e("div", { className: C.avatar, children: o }) : /* @__PURE__ */ e("div", { className: C.avatarSpacer }) }),
|
|
2417
|
+
/* @__PURE__ */ d("div", { className: C.content, children: [
|
|
2418
|
+
f && /* @__PURE__ */ d("div", { className: C.header, children: [
|
|
2419
|
+
n && /* @__PURE__ */ e("span", { className: C.username, children: n }),
|
|
2420
|
+
s && /* @__PURE__ */ e("span", { className: C.time, children: s })
|
|
2421
|
+
] }),
|
|
2422
|
+
/* @__PURE__ */ e("div", { className: C.bubble, children: /* @__PURE__ */ d("div", { className: C.body, children: [
|
|
2423
|
+
c,
|
|
2424
|
+
l && /* @__PURE__ */ e("span", { className: C.cursor, "aria-hidden": "true" })
|
|
2425
|
+
] }) }),
|
|
2426
|
+
(a || r) && /* @__PURE__ */ d("div", { className: C.footer, children: [
|
|
2427
|
+
a && /* @__PURE__ */ e("div", { className: C.actions, children: a }),
|
|
2428
|
+
r && t === "sent" && /* @__PURE__ */ e("span", { className: `${C.status} ${r === "read" ? C.statusRead : ""}`, "aria-label": r, children: ad[r] })
|
|
2429
|
+
] })
|
|
2430
|
+
] })
|
|
2431
|
+
] });
|
|
2432
|
+
}, id = "_root_1w79c_1", ld = "_disabled_1w79c_17", cd = "_textarea_1w79c_22", dd = "_slot_1w79c_46", _d = "_sendButton_1w79c_52", we = {
|
|
2433
|
+
root: id,
|
|
2434
|
+
disabled: ld,
|
|
2435
|
+
textarea: cd,
|
|
2436
|
+
slot: dd,
|
|
2437
|
+
sendButton: _d
|
|
2438
|
+
};
|
|
2439
|
+
function ud() {
|
|
2440
|
+
return /* @__PURE__ */ d("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2441
|
+
/* @__PURE__ */ e("line", { x1: "22", y1: "2", x2: "11", y2: "13" }),
|
|
2442
|
+
/* @__PURE__ */ e("polygon", { points: "22 2 15 22 11 13 2 9 22 2" })
|
|
2443
|
+
] });
|
|
2444
|
+
}
|
|
2445
|
+
const pd = j.forwardRef(
|
|
2446
|
+
({
|
|
2447
|
+
value: t,
|
|
2448
|
+
onChange: o,
|
|
2449
|
+
onSend: n,
|
|
2450
|
+
onAttach: s,
|
|
2451
|
+
maxRows: r = 5,
|
|
2452
|
+
leftSlot: i,
|
|
2453
|
+
rightSlot: l,
|
|
2454
|
+
showSendButton: a = !0,
|
|
2455
|
+
sendOnEnter: c = !0,
|
|
2456
|
+
placeholder: _ = "Type a message…",
|
|
2457
|
+
disabled: h,
|
|
2458
|
+
className: m,
|
|
2459
|
+
...u
|
|
2460
|
+
}, f) => {
|
|
2461
|
+
var H;
|
|
2462
|
+
const v = A(null), p = f ?? v, g = ke(() => {
|
|
2463
|
+
const x = p.current;
|
|
2464
|
+
if (!x) return;
|
|
2465
|
+
x.style.height = "auto";
|
|
2466
|
+
const k = (parseFloat(getComputedStyle(x).lineHeight) || 20) * r;
|
|
2467
|
+
x.style.height = `${Math.min(x.scrollHeight, k)}px`;
|
|
2468
|
+
}, [r, p]);
|
|
2469
|
+
ae(() => {
|
|
2470
|
+
g();
|
|
2471
|
+
}, [t, g]);
|
|
2472
|
+
const w = (x) => {
|
|
2473
|
+
o == null || o(x.target.value), g();
|
|
2474
|
+
}, B = () => {
|
|
2475
|
+
var $;
|
|
2476
|
+
const x = (($ = p.current) == null ? void 0 : $.value) ?? t ?? "";
|
|
2477
|
+
x.trim() && n && n(x.trim());
|
|
2478
|
+
}, y = (x) => {
|
|
2479
|
+
var $;
|
|
2480
|
+
c && x.key === "Enter" && !x.shiftKey && (x.preventDefault(), B()), ($ = u.onKeyDown) == null || $.call(u, x);
|
|
2481
|
+
}, z = [we.root, h ? we.disabled : "", m ?? ""].filter(Boolean).join(" "), N = (t ?? ((H = p.current) == null ? void 0 : H.value) ?? "").trim().length > 0;
|
|
2482
|
+
return /* @__PURE__ */ d("div", { className: z, children: [
|
|
2483
|
+
i && /* @__PURE__ */ e("div", { className: we.slot, children: i }),
|
|
2484
|
+
/* @__PURE__ */ e(
|
|
2485
|
+
"textarea",
|
|
2486
|
+
{
|
|
2487
|
+
ref: p,
|
|
2488
|
+
className: we.textarea,
|
|
2489
|
+
value: t,
|
|
2490
|
+
onChange: w,
|
|
2491
|
+
onKeyDown: y,
|
|
2492
|
+
placeholder: _,
|
|
2493
|
+
disabled: h,
|
|
2494
|
+
rows: 1,
|
|
2495
|
+
...u
|
|
2496
|
+
}
|
|
2497
|
+
),
|
|
2498
|
+
l && /* @__PURE__ */ e("div", { className: we.slot, children: l }),
|
|
2499
|
+
a && /* @__PURE__ */ e(
|
|
2500
|
+
"button",
|
|
2501
|
+
{
|
|
2502
|
+
type: "button",
|
|
2503
|
+
className: we.sendButton,
|
|
2504
|
+
onClick: B,
|
|
2505
|
+
disabled: h || !N,
|
|
2506
|
+
"aria-label": "Send message",
|
|
2507
|
+
children: /* @__PURE__ */ e(ud, {})
|
|
2508
|
+
}
|
|
2509
|
+
)
|
|
2510
|
+
] });
|
|
2511
|
+
}
|
|
2512
|
+
);
|
|
2513
|
+
pd.displayName = "ChatInput";
|
|
2514
|
+
const hd = "_list_u1347_1", md = "_empty_u1347_7", fd = "_item_u1347_14", bd = "_active_u1347_38", gd = "_avatarWrapper_u1347_46", vd = "_avatar_u1347_46", wd = "_avatarFallback_u1347_61", $d = "_onlineDot_u1347_74", yd = "_info_u1347_85", kd = "_topRow_u1347_93", Nd = "_name_u1347_100", xd = "_time_u1347_109", Bd = "_lastMessage_u1347_116", Ld = "_unread_u1347_125", D = {
|
|
2515
|
+
list: hd,
|
|
2516
|
+
empty: md,
|
|
2517
|
+
item: fd,
|
|
2518
|
+
active: bd,
|
|
2519
|
+
avatarWrapper: gd,
|
|
2520
|
+
avatar: vd,
|
|
2521
|
+
avatarFallback: wd,
|
|
2522
|
+
onlineDot: $d,
|
|
2523
|
+
info: yd,
|
|
2524
|
+
topRow: kd,
|
|
2525
|
+
name: Nd,
|
|
2526
|
+
time: xd,
|
|
2527
|
+
lastMessage: Bd,
|
|
2528
|
+
unread: Ld
|
|
2529
|
+
}, $u = ({
|
|
2530
|
+
conversations: t,
|
|
2531
|
+
activeId: o,
|
|
2532
|
+
onSelect: n,
|
|
2533
|
+
emptyText: s = "No conversations",
|
|
2534
|
+
className: r,
|
|
2535
|
+
...i
|
|
2536
|
+
}) => {
|
|
2537
|
+
const l = [D.list, r ?? ""].filter(Boolean).join(" ");
|
|
2538
|
+
return t.length === 0 ? /* @__PURE__ */ e("div", { className: l, ...i, children: /* @__PURE__ */ e("p", { className: D.empty, children: s }) }) : /* @__PURE__ */ e("div", { className: l, role: "listbox", "aria-label": "Conversations", ...i, children: t.map((a) => {
|
|
2539
|
+
const c = a.id === o, _ = [D.item, c ? D.active : ""].filter(Boolean).join(" ");
|
|
2540
|
+
return /* @__PURE__ */ d(
|
|
2541
|
+
"button",
|
|
2542
|
+
{
|
|
2543
|
+
type: "button",
|
|
2544
|
+
role: "option",
|
|
2545
|
+
"aria-selected": c,
|
|
2546
|
+
className: _,
|
|
2547
|
+
onClick: () => n == null ? void 0 : n(a.id),
|
|
2548
|
+
children: [
|
|
2549
|
+
/* @__PURE__ */ d("div", { className: D.avatarWrapper, children: [
|
|
2550
|
+
a.avatar ? /* @__PURE__ */ e("div", { className: D.avatar, children: a.avatar }) : /* @__PURE__ */ e("div", { className: D.avatarFallback, "aria-hidden": "true", children: a.name.charAt(0).toUpperCase() }),
|
|
2551
|
+
a.online && /* @__PURE__ */ e("span", { className: D.onlineDot, "aria-label": "Online" })
|
|
2552
|
+
] }),
|
|
2553
|
+
/* @__PURE__ */ d("div", { className: D.info, children: [
|
|
2554
|
+
/* @__PURE__ */ d("div", { className: D.topRow, children: [
|
|
2555
|
+
/* @__PURE__ */ e("span", { className: D.name, children: a.name }),
|
|
2556
|
+
a.timestamp && /* @__PURE__ */ e("span", { className: D.time, children: a.timestamp })
|
|
2557
|
+
] }),
|
|
2558
|
+
a.lastMessage && /* @__PURE__ */ e("p", { className: D.lastMessage, children: a.lastMessage })
|
|
2559
|
+
] }),
|
|
2560
|
+
a.unread != null && a.unread > 0 && /* @__PURE__ */ e("span", { className: D.unread, "aria-label": `${a.unread} unread`, children: a.unread > 99 ? "99+" : a.unread })
|
|
2561
|
+
]
|
|
2562
|
+
},
|
|
2563
|
+
a.id
|
|
2564
|
+
);
|
|
2565
|
+
}) });
|
|
2566
|
+
}, jd = "_window_171g8_1", Id = "_header_171g8_11", Cd = "_messages_171g8_15", zd = "_footer_171g8_24", Fe = {
|
|
2567
|
+
window: jd,
|
|
2568
|
+
header: Id,
|
|
2569
|
+
messages: Cd,
|
|
2570
|
+
footer: zd
|
|
2571
|
+
}, Wd = j.forwardRef(
|
|
2572
|
+
({ header: t, footer: o, autoScroll: n = !0, children: s, className: r, ...i }, l) => {
|
|
2573
|
+
const a = A(null);
|
|
2574
|
+
ae(() => {
|
|
2575
|
+
n && a.current && (a.current.scrollTop = a.current.scrollHeight);
|
|
2576
|
+
}, [s, n]);
|
|
2577
|
+
const c = [Fe.window, r ?? ""].filter(Boolean).join(" ");
|
|
2578
|
+
return /* @__PURE__ */ d("div", { ref: l, className: c, ...i, children: [
|
|
2579
|
+
t && /* @__PURE__ */ e("div", { className: Fe.header, children: t }),
|
|
2580
|
+
/* @__PURE__ */ e("div", { ref: a, className: Fe.messages, children: s }),
|
|
2581
|
+
o && /* @__PURE__ */ e("div", { className: Fe.footer, children: o })
|
|
2582
|
+
] });
|
|
2583
|
+
}
|
|
2584
|
+
);
|
|
2585
|
+
Wd.displayName = "ChatWindow";
|
|
2586
|
+
const Ed = "_header_1xu0b_1", Rd = "_left_1xu0b_12", Sd = "_backButton_1xu0b_20", Td = "_avatarWrapper_1xu0b_45", Dd = "_avatar_1xu0b_45", qd = "_statusDot_1xu0b_60", Md = "_online_1xu0b_70", Fd = "_offline_1xu0b_74", Ad = "_away_1xu0b_78", Hd = "_info_1xu0b_82", Pd = "_title_1xu0b_88", Od = "_subtitle_1xu0b_97", Ud = "_actions_1xu0b_105", V = {
|
|
2587
|
+
header: Ed,
|
|
2588
|
+
left: Rd,
|
|
2589
|
+
backButton: Sd,
|
|
2590
|
+
avatarWrapper: Td,
|
|
2591
|
+
avatar: Dd,
|
|
2592
|
+
statusDot: qd,
|
|
2593
|
+
online: Md,
|
|
2594
|
+
offline: Fd,
|
|
2595
|
+
away: Ad,
|
|
2596
|
+
info: Hd,
|
|
2597
|
+
title: Pd,
|
|
2598
|
+
subtitle: Od,
|
|
2599
|
+
actions: Ud
|
|
2600
|
+
};
|
|
2601
|
+
function Vd() {
|
|
2602
|
+
return /* @__PURE__ */ d("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2603
|
+
/* @__PURE__ */ e("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
|
|
2604
|
+
/* @__PURE__ */ e("polyline", { points: "12 19 5 12 12 5" })
|
|
2605
|
+
] });
|
|
2606
|
+
}
|
|
2607
|
+
const yu = ({
|
|
2608
|
+
title: t,
|
|
2609
|
+
subtitle: o,
|
|
2610
|
+
avatar: n,
|
|
2611
|
+
status: s,
|
|
2612
|
+
actions: r,
|
|
2613
|
+
onBack: i,
|
|
2614
|
+
className: l,
|
|
2615
|
+
...a
|
|
2616
|
+
}) => {
|
|
2617
|
+
const c = [V.header, l ?? ""].filter(Boolean).join(" ");
|
|
2618
|
+
return /* @__PURE__ */ d("div", { className: c, ...a, children: [
|
|
2619
|
+
/* @__PURE__ */ d("div", { className: V.left, children: [
|
|
2620
|
+
i && /* @__PURE__ */ e("button", { type: "button", className: V.backButton, onClick: i, "aria-label": "Go back", children: /* @__PURE__ */ e(Vd, {}) }),
|
|
2621
|
+
n && /* @__PURE__ */ d("div", { className: V.avatarWrapper, children: [
|
|
2622
|
+
/* @__PURE__ */ e("div", { className: V.avatar, children: n }),
|
|
2623
|
+
s && /* @__PURE__ */ e("span", { className: `${V.statusDot} ${V[s]}`, "aria-label": s })
|
|
2624
|
+
] }),
|
|
2625
|
+
/* @__PURE__ */ d("div", { className: V.info, children: [
|
|
2626
|
+
/* @__PURE__ */ e("span", { className: V.title, children: t }),
|
|
2627
|
+
o && /* @__PURE__ */ e("span", { className: V.subtitle, children: o })
|
|
2628
|
+
] })
|
|
2629
|
+
] }),
|
|
2630
|
+
r && /* @__PURE__ */ e("div", { className: V.actions, children: r })
|
|
2631
|
+
] });
|
|
2632
|
+
}, Xd = "_indicator_1c024_1", Yd = "_dots_1c024_8", Kd = "_dot_1c024_8", Gd = "_text_1c024_34", $e = {
|
|
2633
|
+
indicator: Xd,
|
|
2634
|
+
dots: Yd,
|
|
2635
|
+
dot: Kd,
|
|
2636
|
+
text: Gd
|
|
2637
|
+
};
|
|
2638
|
+
function Jd(t) {
|
|
2639
|
+
return t.length === 0 ? "" : t.length === 1 ? `${t[0]} is typing` : t.length === 2 ? `${t[0]} and ${t[1]} are typing` : `${t[0]} and ${t.length - 1} others are typing`;
|
|
2640
|
+
}
|
|
2641
|
+
const ku = ({
|
|
2642
|
+
users: t = [],
|
|
2643
|
+
className: o,
|
|
2644
|
+
...n
|
|
2645
|
+
}) => {
|
|
2646
|
+
const s = [$e.indicator, o ?? ""].filter(Boolean).join(" "), r = Jd(t);
|
|
2647
|
+
return /* @__PURE__ */ d("div", { className: s, role: "status", "aria-label": r || "Someone is typing", ...n, children: [
|
|
2648
|
+
/* @__PURE__ */ d("span", { className: $e.dots, "aria-hidden": "true", children: [
|
|
2649
|
+
/* @__PURE__ */ e("span", { className: $e.dot }),
|
|
2650
|
+
/* @__PURE__ */ e("span", { className: $e.dot }),
|
|
2651
|
+
/* @__PURE__ */ e("span", { className: $e.dot })
|
|
2652
|
+
] }),
|
|
2653
|
+
r && /* @__PURE__ */ e("span", { className: $e.text, children: r })
|
|
2654
|
+
] });
|
|
2655
|
+
}, Qd = "_timestamp_1ddjc_1", Zd = "_line_1ddjc_9", e_ = "_text_1ddjc_15", Ae = {
|
|
2656
|
+
timestamp: Qd,
|
|
2657
|
+
line: Zd,
|
|
2658
|
+
text: e_
|
|
2659
|
+
}, Nu = ({
|
|
2660
|
+
children: t,
|
|
2661
|
+
className: o,
|
|
2662
|
+
...n
|
|
2663
|
+
}) => {
|
|
2664
|
+
const s = [Ae.timestamp, o ?? ""].filter(Boolean).join(" ");
|
|
2665
|
+
return /* @__PURE__ */ d("div", { className: s, role: "separator", "aria-label": typeof t == "string" ? t : void 0, ...n, children: [
|
|
2666
|
+
/* @__PURE__ */ e("span", { className: Ae.line, "aria-hidden": "true" }),
|
|
2667
|
+
/* @__PURE__ */ e("span", { className: Ae.text, children: t }),
|
|
2668
|
+
/* @__PURE__ */ e("span", { className: Ae.line, "aria-hidden": "true" })
|
|
2669
|
+
] });
|
|
2670
|
+
}, t_ = "_reaction_1wf9z_1", n_ = "_active_1wf9z_25", o_ = "_emoji_1wf9z_35", s_ = "_count_1wf9z_40", He = {
|
|
2671
|
+
reaction: t_,
|
|
2672
|
+
active: n_,
|
|
2673
|
+
emoji: o_,
|
|
2674
|
+
count: s_
|
|
2675
|
+
}, r_ = j.forwardRef(
|
|
2676
|
+
({ emoji: t, count: o = 1, active: n = !1, className: s, ...r }, i) => {
|
|
2677
|
+
const l = [
|
|
2678
|
+
He.reaction,
|
|
2679
|
+
n ? He.active : "",
|
|
2680
|
+
s ?? ""
|
|
2681
|
+
].filter(Boolean).join(" ");
|
|
2682
|
+
return /* @__PURE__ */ d(
|
|
2683
|
+
"button",
|
|
2684
|
+
{
|
|
2685
|
+
ref: i,
|
|
2686
|
+
type: "button",
|
|
2687
|
+
className: l,
|
|
2688
|
+
"aria-pressed": n,
|
|
2689
|
+
"aria-label": `${t} ${o}`,
|
|
2690
|
+
...r,
|
|
2691
|
+
children: [
|
|
2692
|
+
/* @__PURE__ */ e("span", { className: He.emoji, children: t }),
|
|
2693
|
+
/* @__PURE__ */ e("span", { className: He.count, children: o })
|
|
2694
|
+
]
|
|
2695
|
+
}
|
|
2696
|
+
);
|
|
2697
|
+
}
|
|
2698
|
+
);
|
|
2699
|
+
r_.displayName = "ChatReaction";
|
|
2700
|
+
const a_ = "_attachment_hawg9_1", i_ = "_file_hawg9_9", l_ = "_video_hawg9_10", c_ = "_audio_hawg9_11", d_ = "_icon_hawg9_18", __ = "_info_hawg9_30", u_ = "_fileName_hawg9_38", p_ = "_fileSize_hawg9_47", h_ = "_downloadButton_hawg9_52", m_ = "_image_hawg9_78", f_ = "_imageButton_hawg9_86", te = {
|
|
2701
|
+
attachment: a_,
|
|
2702
|
+
file: i_,
|
|
2703
|
+
video: l_,
|
|
2704
|
+
audio: c_,
|
|
2705
|
+
icon: d_,
|
|
2706
|
+
info: __,
|
|
2707
|
+
fileName: u_,
|
|
2708
|
+
fileSize: p_,
|
|
2709
|
+
downloadButton: h_,
|
|
2710
|
+
image: m_,
|
|
2711
|
+
imageButton: f_
|
|
2712
|
+
};
|
|
2713
|
+
function ut() {
|
|
2714
|
+
return /* @__PURE__ */ d("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2715
|
+
/* @__PURE__ */ e("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
2716
|
+
/* @__PURE__ */ e("polyline", { points: "14 2 14 8 20 8" })
|
|
2717
|
+
] });
|
|
2718
|
+
}
|
|
2719
|
+
function b_() {
|
|
2720
|
+
return /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("polygon", { points: "5 3 19 12 5 21 5 3" }) });
|
|
2721
|
+
}
|
|
2722
|
+
function g_() {
|
|
2723
|
+
return /* @__PURE__ */ d("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2724
|
+
/* @__PURE__ */ e("path", { d: "M9 18V5l12-2v13" }),
|
|
2725
|
+
/* @__PURE__ */ e("circle", { cx: "6", cy: "18", r: "3" }),
|
|
2726
|
+
/* @__PURE__ */ e("circle", { cx: "18", cy: "16", r: "3" })
|
|
2727
|
+
] });
|
|
2728
|
+
}
|
|
2729
|
+
function v_() {
|
|
2730
|
+
return /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2731
|
+
/* @__PURE__ */ e("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
2732
|
+
/* @__PURE__ */ e("polyline", { points: "7 10 12 15 17 10" }),
|
|
2733
|
+
/* @__PURE__ */ e("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
|
|
2734
|
+
] });
|
|
2735
|
+
}
|
|
2736
|
+
const w_ = {
|
|
2737
|
+
file: ut,
|
|
2738
|
+
video: b_,
|
|
2739
|
+
audio: g_
|
|
2740
|
+
}, xu = ({
|
|
2741
|
+
variant: t = "file",
|
|
2742
|
+
src: o,
|
|
2743
|
+
fileName: n,
|
|
2744
|
+
fileSize: s,
|
|
2745
|
+
onDownload: r,
|
|
2746
|
+
onPreview: i,
|
|
2747
|
+
className: l,
|
|
2748
|
+
...a
|
|
2749
|
+
}) => {
|
|
2750
|
+
const c = [te.attachment, te[t], l ?? ""].filter(Boolean).join(" ");
|
|
2751
|
+
if (t === "image" && o)
|
|
2752
|
+
return /* @__PURE__ */ e("div", { className: c, ...a, children: /* @__PURE__ */ e(
|
|
2753
|
+
"button",
|
|
2754
|
+
{
|
|
2755
|
+
type: "button",
|
|
2756
|
+
className: te.imageButton,
|
|
2757
|
+
onClick: i,
|
|
2758
|
+
"aria-label": n ? `Preview ${n}` : "Preview image",
|
|
2759
|
+
children: /* @__PURE__ */ e("img", { src: o, alt: n ?? "Attachment", className: te.image, loading: "lazy" })
|
|
2760
|
+
}
|
|
2761
|
+
) });
|
|
2762
|
+
const _ = w_[t] ?? ut;
|
|
2763
|
+
return /* @__PURE__ */ d("div", { className: c, ...a, children: [
|
|
2764
|
+
/* @__PURE__ */ e("span", { className: te.icon, "aria-hidden": "true", children: /* @__PURE__ */ e(_, {}) }),
|
|
2765
|
+
/* @__PURE__ */ d("div", { className: te.info, children: [
|
|
2766
|
+
/* @__PURE__ */ e("span", { className: te.fileName, children: n ?? "File" }),
|
|
2767
|
+
s && /* @__PURE__ */ e("span", { className: te.fileSize, children: s })
|
|
2768
|
+
] }),
|
|
2769
|
+
r && /* @__PURE__ */ e(
|
|
2770
|
+
"button",
|
|
2771
|
+
{
|
|
2772
|
+
type: "button",
|
|
2773
|
+
className: te.downloadButton,
|
|
2774
|
+
onClick: r,
|
|
2775
|
+
"aria-label": `Download ${n ?? "file"}`,
|
|
2776
|
+
children: /* @__PURE__ */ e(v_, {})
|
|
2777
|
+
}
|
|
2778
|
+
)
|
|
2779
|
+
] });
|
|
2780
|
+
}, $_ = "_status_1h1yp_1", y_ = "_dot_1h1yp_8", k_ = "_label_1h1yp_14", N_ = "_sm_1h1yp_20", x_ = "_md_1h1yp_25", B_ = "_lg_1h1yp_30", L_ = "_online_1h1yp_36", j_ = "_offline_1h1yp_40", I_ = "_away_1h1yp_44", C_ = "_busy_1h1yp_48", z_ = "_dnd_1h1yp_52", W_ = "_pulse_1h1yp_57", E_ = "_statusPulse_1h1yp_1", ye = {
|
|
2781
|
+
status: $_,
|
|
2782
|
+
dot: y_,
|
|
2783
|
+
label: k_,
|
|
2784
|
+
sm: N_,
|
|
2785
|
+
md: x_,
|
|
2786
|
+
lg: B_,
|
|
2787
|
+
online: L_,
|
|
2788
|
+
offline: j_,
|
|
2789
|
+
away: I_,
|
|
2790
|
+
busy: C_,
|
|
2791
|
+
dnd: z_,
|
|
2792
|
+
pulse: W_,
|
|
2793
|
+
statusPulse: E_
|
|
2794
|
+
}, ot = {
|
|
2795
|
+
online: "Online",
|
|
2796
|
+
offline: "Offline",
|
|
2797
|
+
away: "Away",
|
|
2798
|
+
busy: "Busy",
|
|
2799
|
+
dnd: "Do not disturb"
|
|
2800
|
+
}, Bu = ({
|
|
2801
|
+
variant: t = "offline",
|
|
2802
|
+
size: o = "md",
|
|
2803
|
+
showLabel: n = !1,
|
|
2804
|
+
pulse: s = !1,
|
|
2805
|
+
className: r,
|
|
2806
|
+
...i
|
|
2807
|
+
}) => {
|
|
2808
|
+
const l = [
|
|
2809
|
+
ye.status,
|
|
2810
|
+
ye[t],
|
|
2811
|
+
ye[o],
|
|
2812
|
+
s && t === "online" ? ye.pulse : "",
|
|
2813
|
+
r ?? ""
|
|
2814
|
+
].filter(Boolean).join(" ");
|
|
2815
|
+
return /* @__PURE__ */ d("span", { className: l, role: "status", "aria-label": ot[t], ...i, children: [
|
|
2816
|
+
/* @__PURE__ */ e("span", { className: ye.dot, "aria-hidden": "true" }),
|
|
2817
|
+
n && /* @__PURE__ */ e("span", { className: ye.label, children: ot[t] })
|
|
2818
|
+
] });
|
|
2819
|
+
}, R_ = "_thread_fnasz_1", S_ = "_summary_fnasz_7", T_ = "_participants_fnasz_30", D_ = "_participant_fnasz_30", q_ = "_replyText_fnasz_50", M_ = "_lastReply_fnasz_57", F_ = "_content_fnasz_63", A_ = "_expanded_fnasz_70", re = {
|
|
2820
|
+
thread: R_,
|
|
2821
|
+
summary: S_,
|
|
2822
|
+
participants: T_,
|
|
2823
|
+
participant: D_,
|
|
2824
|
+
replyText: q_,
|
|
2825
|
+
lastReply: M_,
|
|
2826
|
+
content: F_,
|
|
2827
|
+
expanded: A_
|
|
2828
|
+
};
|
|
2829
|
+
function H_({ expanded: t }) {
|
|
2830
|
+
return /* @__PURE__ */ e(
|
|
2831
|
+
"svg",
|
|
2832
|
+
{
|
|
2833
|
+
width: "14",
|
|
2834
|
+
height: "14",
|
|
2835
|
+
viewBox: "0 0 24 24",
|
|
2836
|
+
fill: "none",
|
|
2837
|
+
stroke: "currentColor",
|
|
2838
|
+
strokeWidth: 2,
|
|
2839
|
+
strokeLinecap: "round",
|
|
2840
|
+
strokeLinejoin: "round",
|
|
2841
|
+
style: { transition: "transform 0.2s", transform: t ? "rotate(90deg)" : "rotate(0deg)" },
|
|
2842
|
+
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
2843
|
+
}
|
|
2844
|
+
);
|
|
2845
|
+
}
|
|
2846
|
+
const Lu = ({
|
|
2847
|
+
replyCount: t = 0,
|
|
2848
|
+
lastReplyTimestamp: o,
|
|
2849
|
+
participants: n = [],
|
|
2850
|
+
expanded: s = !1,
|
|
2851
|
+
onToggle: r,
|
|
2852
|
+
children: i,
|
|
2853
|
+
className: l,
|
|
2854
|
+
...a
|
|
2855
|
+
}) => {
|
|
2856
|
+
const c = [re.thread, s ? re.expanded : "", l ?? ""].filter(Boolean).join(" ");
|
|
2857
|
+
return /* @__PURE__ */ d("div", { className: c, ...a, children: [
|
|
2858
|
+
/* @__PURE__ */ d(
|
|
2859
|
+
"button",
|
|
2860
|
+
{
|
|
2861
|
+
type: "button",
|
|
2862
|
+
className: re.summary,
|
|
2863
|
+
onClick: r,
|
|
2864
|
+
"aria-expanded": s,
|
|
2865
|
+
children: [
|
|
2866
|
+
n.length > 0 && /* @__PURE__ */ e("div", { className: re.participants, children: n.slice(0, 3).map((_, h) => /* @__PURE__ */ e("span", { className: re.participant, "aria-hidden": "true", children: _ }, h)) }),
|
|
2867
|
+
/* @__PURE__ */ e("span", { className: re.replyText, children: t === 1 ? "1 reply" : `${t} replies` }),
|
|
2868
|
+
o && /* @__PURE__ */ d("span", { className: re.lastReply, children: [
|
|
2869
|
+
"Last reply ",
|
|
2870
|
+
o
|
|
2871
|
+
] }),
|
|
2872
|
+
/* @__PURE__ */ e(H_, { expanded: s })
|
|
2873
|
+
]
|
|
2874
|
+
}
|
|
2875
|
+
),
|
|
2876
|
+
s && i && /* @__PURE__ */ e("div", { className: re.content, children: i })
|
|
2877
|
+
] });
|
|
2878
|
+
};
|
|
2328
2879
|
export {
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2880
|
+
eu as Accordion,
|
|
2881
|
+
tu as Alert,
|
|
2882
|
+
Y_ as AnimatedBackground,
|
|
2883
|
+
lu as Avatar,
|
|
2884
|
+
X_ as Badge,
|
|
2885
|
+
_u as Breadcrumb,
|
|
2886
|
+
Tt as Button,
|
|
2887
|
+
Oe as Card,
|
|
2888
|
+
xu as ChatAttachment,
|
|
2889
|
+
wu as ChatBubble,
|
|
2890
|
+
yu as ChatHeader,
|
|
2891
|
+
pd as ChatInput,
|
|
2892
|
+
$u as ChatList,
|
|
2893
|
+
r_ as ChatReaction,
|
|
2894
|
+
Bu as ChatStatus,
|
|
2895
|
+
Lu as ChatThread,
|
|
2896
|
+
Nu as ChatTimestamp,
|
|
2897
|
+
Wd as ChatWindow,
|
|
2898
|
+
Ls as Checkbox,
|
|
2899
|
+
Ue as Dialog,
|
|
2900
|
+
nu as Divider,
|
|
2901
|
+
mu as Dropdown,
|
|
2902
|
+
du as EmptyState,
|
|
2903
|
+
gu as FileUpload,
|
|
2904
|
+
K_ as GradientOrbs,
|
|
2905
|
+
G_ as GridGlow,
|
|
2906
|
+
ln as Input,
|
|
2907
|
+
bu as NumberInput,
|
|
2908
|
+
uu as Pagination,
|
|
2909
|
+
hu as Popover,
|
|
2910
|
+
ru as Progress,
|
|
2911
|
+
J_ as RadioGroup,
|
|
2912
|
+
fs as Select,
|
|
2913
|
+
su as Skeleton,
|
|
2914
|
+
fu as Slider,
|
|
2915
|
+
ou as Spinner,
|
|
2916
|
+
pu as Stepper,
|
|
2917
|
+
tr as Switch,
|
|
2918
|
+
vu as Table,
|
|
2919
|
+
Z_ as Tabs,
|
|
2920
|
+
cu as Tag,
|
|
2921
|
+
Po as Textarea,
|
|
2922
|
+
V_ as Title,
|
|
2923
|
+
au as ToastProvider,
|
|
2924
|
+
Q_ as Tooltip,
|
|
2925
|
+
ku as TypingIndicator,
|
|
2926
|
+
iu as useToast
|
|
2365
2927
|
};
|