snapflow-ui-kit 1.2.6 → 1.2.7
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/index.client.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import
|
|
5
|
-
import { default as
|
|
6
|
-
import { A as
|
|
7
|
-
import { B as
|
|
8
|
-
import { jsx as n, jsxs as
|
|
9
|
-
import { useEffect as
|
|
10
|
-
import { A as
|
|
11
|
-
import { DayPicker as
|
|
12
|
-
import { format as
|
|
13
|
-
import { C as
|
|
2
|
+
import z, { clsx as C } from "clsx";
|
|
3
|
+
import { clsx as Pn } from "clsx";
|
|
4
|
+
import fe from "simplebar-react";
|
|
5
|
+
import { default as Tn } from "simplebar-react";
|
|
6
|
+
import { A as se, s as W, c as te } from "./Textarea-6m6FiIv5.js";
|
|
7
|
+
import { B as $n, C as Ln, a as Mn, L as An, R as Fn, T as Vn, b as Wn } from "./Textarea-6m6FiIv5.js";
|
|
8
|
+
import { jsx as n, jsxs as p, Fragment as ce } from "react/jsx-runtime";
|
|
9
|
+
import { useEffect as k, useState as j, useRef as R, useCallback as K, useMemo as ne, forwardRef as ye, useId as ie } from "react";
|
|
10
|
+
import { A as be, C as we, E as ve, a as Ce, b as Ne, c as Ie } from "./ArrowRightIcon-D0SDyfKt.js";
|
|
11
|
+
import { DayPicker as oe } from "react-day-picker";
|
|
12
|
+
import { format as L, parse as M, isValid as A } from "date-fns";
|
|
13
|
+
import { C as le } from "./CloseIcon-CqK3tPnG.js";
|
|
14
14
|
import * as P from "@radix-ui/react-dropdown-menu";
|
|
15
|
-
import { createPortal as
|
|
16
|
-
import { FocusTrap as
|
|
17
|
-
import { toast as
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
import { createPortal as Se } from "react-dom";
|
|
16
|
+
import { FocusTrap as ke } from "focus-trap-react";
|
|
17
|
+
import { toast as Q } from "react-hot-toast";
|
|
18
|
+
const Sn = (e) => {
|
|
19
|
+
Q.custom((t) => /* @__PURE__ */ n(
|
|
20
|
+
se,
|
|
21
21
|
{
|
|
22
22
|
variant: "success",
|
|
23
23
|
message: e,
|
|
24
|
-
className: t.visible ?
|
|
25
|
-
onClose: () =>
|
|
24
|
+
className: t.visible ? W.toastEnter : W.toastExit,
|
|
25
|
+
onClose: () => Q.dismiss(t.id)
|
|
26
26
|
}
|
|
27
27
|
));
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
}, kn = (e, t = "Error!") => {
|
|
29
|
+
Q.custom((r) => /* @__PURE__ */ n(
|
|
30
|
+
se,
|
|
31
31
|
{
|
|
32
32
|
variant: "error",
|
|
33
33
|
title: t,
|
|
34
34
|
message: e,
|
|
35
|
-
className: r.visible ?
|
|
36
|
-
onClose: () =>
|
|
35
|
+
className: r.visible ? W.toastEnter : W.toastExit,
|
|
36
|
+
onClose: () => Q.dismiss(r.id)
|
|
37
37
|
}
|
|
38
38
|
));
|
|
39
|
-
},
|
|
40
|
-
wrapper:
|
|
41
|
-
inputContainer:
|
|
42
|
-
label:
|
|
43
|
-
inputWrapper:
|
|
44
|
-
trigger:
|
|
45
|
-
icon:
|
|
46
|
-
placeholder:
|
|
47
|
-
clearButton:
|
|
48
|
-
clearIcon:
|
|
49
|
-
disabledLabel:
|
|
50
|
-
error:
|
|
51
|
-
calendar:
|
|
52
|
-
open:
|
|
53
|
-
monthsCaption:
|
|
54
|
-
navButtonPrevious:
|
|
55
|
-
navButtonNext:
|
|
56
|
-
navIcon:
|
|
57
|
-
monthGrid:
|
|
58
|
-
dropdowns:
|
|
59
|
-
weekday:
|
|
60
|
-
day:
|
|
61
|
-
dayButton:
|
|
62
|
-
dayOutside:
|
|
63
|
-
dayToday:
|
|
64
|
-
daySelected:
|
|
65
|
-
dayRangeStart:
|
|
66
|
-
dayRangeEnd:
|
|
67
|
-
dayRangeMiddle:
|
|
68
|
-
},
|
|
39
|
+
}, De = "_wrapper_8euq6_1", xe = "_inputContainer_8euq6_5", Ee = "_label_8euq6_11", je = "_inputWrapper_8euq6_15", Oe = "_trigger_8euq6_22", qe = "_icon_8euq6_36", Pe = "_placeholder_8euq6_43", Re = "_clearButton_8euq6_47", Te = "_clearIcon_8euq6_87", Be = "_disabledLabel_8euq6_99", $e = "_error_8euq6_121", Le = "_calendar_8euq6_139", Me = "_open_8euq6_159", Ae = "_monthsCaption_8euq6_165", Fe = "_navButtonPrevious_8euq6_171", Ve = "_navButtonNext_8euq6_172", We = "_navIcon_8euq6_192", Qe = "_monthGrid_8euq6_198", Ge = "_dropdowns_8euq6_204", He = "_weekday_8euq6_208", ze = "_day_8euq6_219", Ke = "_dayButton_8euq6_226", Xe = "_dayOutside_8euq6_253", Ye = "_dayToday_8euq6_257", Je = "_daySelected_8euq6_262", Ue = "_dayRangeStart_8euq6_263", Ze = "_dayRangeEnd_8euq6_264", et = "_dayRangeMiddle_8euq6_265", a = {
|
|
40
|
+
wrapper: De,
|
|
41
|
+
inputContainer: xe,
|
|
42
|
+
label: Ee,
|
|
43
|
+
inputWrapper: je,
|
|
44
|
+
trigger: Oe,
|
|
45
|
+
icon: qe,
|
|
46
|
+
placeholder: Pe,
|
|
47
|
+
clearButton: Re,
|
|
48
|
+
clearIcon: Te,
|
|
49
|
+
disabledLabel: Be,
|
|
50
|
+
error: $e,
|
|
51
|
+
calendar: Le,
|
|
52
|
+
open: Me,
|
|
53
|
+
monthsCaption: Ae,
|
|
54
|
+
navButtonPrevious: Fe,
|
|
55
|
+
navButtonNext: Ve,
|
|
56
|
+
navIcon: We,
|
|
57
|
+
monthGrid: Qe,
|
|
58
|
+
dropdowns: Ge,
|
|
59
|
+
weekday: He,
|
|
60
|
+
day: ze,
|
|
61
|
+
dayButton: Ke,
|
|
62
|
+
dayOutside: Xe,
|
|
63
|
+
dayToday: Ye,
|
|
64
|
+
daySelected: Je,
|
|
65
|
+
dayRangeStart: Ue,
|
|
66
|
+
dayRangeEnd: Ze,
|
|
67
|
+
dayRangeMiddle: et
|
|
68
|
+
}, tt = ({
|
|
69
69
|
ref: e,
|
|
70
70
|
isOpen: t,
|
|
71
71
|
onDismiss: r
|
|
72
72
|
}) => {
|
|
73
|
-
|
|
73
|
+
k(() => {
|
|
74
74
|
if (!t) return;
|
|
75
75
|
const o = (s) => {
|
|
76
76
|
e.current && !e.current.contains(s.target) && r();
|
|
@@ -81,63 +81,66 @@ const un = (e) => {
|
|
|
81
81
|
document.removeEventListener("mousedown", o), document.removeEventListener("touchstart", o), document.removeEventListener("keydown", i);
|
|
82
82
|
};
|
|
83
83
|
}, [t, r, e]);
|
|
84
|
-
},
|
|
85
|
-
container:
|
|
86
|
-
label:
|
|
87
|
-
trigger:
|
|
88
|
-
select:
|
|
89
|
-
triggerOpen:
|
|
90
|
-
placeholder:
|
|
91
|
-
selectedContent:
|
|
92
|
-
optionIcon:
|
|
93
|
-
arrow:
|
|
94
|
-
open:
|
|
95
|
-
dropdown:
|
|
96
|
-
searchContainer:
|
|
97
|
-
searchInput:
|
|
98
|
-
option:
|
|
99
|
-
selected:
|
|
100
|
-
noOptions:
|
|
101
|
-
},
|
|
84
|
+
}, nt = "_container_sn15j_1", ot = "_label_sn15j_7", rt = "_trigger_sn15j_14", at = "_select_sn15j_18", st = "_triggerOpen_sn15j_50", ct = "_placeholder_sn15j_71", it = "_selectedContent_sn15j_75", lt = "_optionIcon_sn15j_85", dt = "_arrow_sn15j_91", ut = "_open_sn15j_106", _t = "_dropdown_sn15j_110", pt = "_searchContainer_sn15j_131", mt = "_searchInput_sn15j_141", ht = "_option_sn15j_85", gt = "_selected_sn15j_75", ft = "_noOptions_sn15j_202", _ = {
|
|
85
|
+
container: nt,
|
|
86
|
+
label: ot,
|
|
87
|
+
trigger: rt,
|
|
88
|
+
select: at,
|
|
89
|
+
triggerOpen: st,
|
|
90
|
+
placeholder: ct,
|
|
91
|
+
selectedContent: it,
|
|
92
|
+
optionIcon: lt,
|
|
93
|
+
arrow: dt,
|
|
94
|
+
open: ut,
|
|
95
|
+
dropdown: _t,
|
|
96
|
+
searchContainer: pt,
|
|
97
|
+
searchInput: mt,
|
|
98
|
+
option: ht,
|
|
99
|
+
selected: gt,
|
|
100
|
+
noOptions: ft
|
|
101
|
+
}, yt = ({
|
|
102
102
|
filteredOptions: e,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
103
|
+
isLoading: t,
|
|
104
|
+
loadingText: r,
|
|
105
|
+
noOptionsText: o,
|
|
106
|
+
onSearchChange: i,
|
|
107
|
+
onSelect: s,
|
|
108
|
+
searchInputRef: c,
|
|
109
|
+
searchPlaceholder: d,
|
|
110
|
+
searchQuery: m,
|
|
111
|
+
searchable: b,
|
|
112
|
+
value: g
|
|
113
|
+
}) => /* @__PURE__ */ p(ce, { children: [
|
|
114
|
+
b && /* @__PURE__ */ n("div", { className: _.searchContainer, children: /* @__PURE__ */ n(
|
|
113
115
|
"input",
|
|
114
116
|
{
|
|
115
|
-
ref:
|
|
116
|
-
className:
|
|
117
|
-
onChange: (
|
|
118
|
-
placeholder:
|
|
117
|
+
ref: c,
|
|
118
|
+
className: _.searchInput,
|
|
119
|
+
onChange: (l) => i(l.currentTarget.value),
|
|
120
|
+
placeholder: d,
|
|
119
121
|
type: "text",
|
|
120
|
-
value:
|
|
122
|
+
value: m
|
|
121
123
|
}
|
|
122
124
|
) }),
|
|
123
|
-
|
|
125
|
+
t && /* @__PURE__ */ n("p", { className: _.noOptions, children: r }),
|
|
126
|
+
e.length ? e.map((l) => /* @__PURE__ */ p(
|
|
124
127
|
"button",
|
|
125
128
|
{
|
|
126
|
-
className:
|
|
127
|
-
onClick: () =>
|
|
129
|
+
className: C(_.option, l.value === g && _.selected),
|
|
130
|
+
onClick: () => s(l.value),
|
|
128
131
|
type: "button",
|
|
129
132
|
role: "option",
|
|
130
|
-
"aria-selected":
|
|
133
|
+
"aria-selected": l.value === g,
|
|
131
134
|
children: [
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
l.icon && /* @__PURE__ */ n("span", { className: _.optionIcon, children: l.icon }),
|
|
136
|
+
l.label
|
|
134
137
|
]
|
|
135
138
|
},
|
|
136
|
-
|
|
137
|
-
)) : /* @__PURE__ */ n("p", { className:
|
|
138
|
-
] }),
|
|
139
|
+
l.value
|
|
140
|
+
)) : t ? null : /* @__PURE__ */ n("p", { className: _.noOptions, children: o })
|
|
141
|
+
] }), re = (e, t) => {
|
|
139
142
|
const [r, o] = j(e);
|
|
140
|
-
return
|
|
143
|
+
return k(() => {
|
|
141
144
|
const i = setTimeout(() => {
|
|
142
145
|
o(e);
|
|
143
146
|
}, t);
|
|
@@ -145,72 +148,92 @@ const un = (e) => {
|
|
|
145
148
|
clearTimeout(i);
|
|
146
149
|
};
|
|
147
150
|
}, [t, e]), r;
|
|
148
|
-
},
|
|
151
|
+
}, bt = (e) => {
|
|
149
152
|
const {
|
|
150
153
|
className: t,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
154
|
+
defaultSearchValue: r = "",
|
|
155
|
+
disabled: o = !1,
|
|
156
|
+
filterOptions: i,
|
|
157
|
+
isLoading: s = !1,
|
|
158
|
+
label: c,
|
|
159
|
+
loadingText: d = "Loading...",
|
|
160
|
+
noOptionsText: m = "No options found",
|
|
161
|
+
onChange: b,
|
|
162
|
+
onSearchChange: g,
|
|
163
|
+
options: l,
|
|
164
|
+
placeholder: f,
|
|
165
|
+
searchDebounceMs: y = 180,
|
|
166
|
+
searchMode: D = "local",
|
|
167
|
+
searchPlaceholder: x = "Search...",
|
|
168
|
+
searchValue: h,
|
|
169
|
+
searchable: u = !1,
|
|
170
|
+
value: S
|
|
171
|
+
} = e, [w, N] = j(!1), [T, X] = j(h ?? r), G = R(null), Y = R(null), J = R(!0), U = h !== void 0 ? h : T, ue = re(U, y), Z = re(T, y), _e = i ?? D === "local", q = l.find((E) => E.value === S), ee = ue.trim().toLowerCase(), pe = _e && ee ? l.filter((E) => E.label.toLowerCase().includes(ee)) : l, H = K(() => {
|
|
172
|
+
X("");
|
|
173
|
+
}, []), B = K(() => {
|
|
174
|
+
N(!1), H();
|
|
175
|
+
}, [H]), me = () => {
|
|
176
|
+
o || (w ? B() : (H(), N(!0)));
|
|
177
|
+
}, he = (E) => {
|
|
178
|
+
b?.(E), B();
|
|
166
179
|
};
|
|
167
|
-
return
|
|
168
|
-
const
|
|
169
|
-
|
|
180
|
+
return k(() => {
|
|
181
|
+
const E = (ge) => {
|
|
182
|
+
G.current && !G.current.contains(ge.target) && B();
|
|
170
183
|
};
|
|
171
|
-
return
|
|
172
|
-
document.removeEventListener("mousedown",
|
|
184
|
+
return w && document.addEventListener("mousedown", E), () => {
|
|
185
|
+
document.removeEventListener("mousedown", E);
|
|
173
186
|
};
|
|
174
|
-
}, [
|
|
175
|
-
u
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
187
|
+
}, [B, w]), k(() => {
|
|
188
|
+
if (!(!u || !g)) {
|
|
189
|
+
if (J.current) {
|
|
190
|
+
J.current = !1;
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
g(Z);
|
|
194
|
+
}
|
|
195
|
+
}, [Z, g, u]), k(() => {
|
|
196
|
+
w && u && Y.current?.focus();
|
|
197
|
+
}, [w, u]), /* @__PURE__ */ p("div", { className: C(_.container, t), children: [
|
|
198
|
+
c && /* @__PURE__ */ n("label", { className: _.label, children: c }),
|
|
199
|
+
/* @__PURE__ */ p("div", { className: _.select, ref: G, children: [
|
|
200
|
+
/* @__PURE__ */ p(
|
|
180
201
|
"button",
|
|
181
202
|
{
|
|
182
|
-
className:
|
|
183
|
-
disabled:
|
|
184
|
-
onClick:
|
|
203
|
+
className: C(_.trigger, w && _.triggerOpen),
|
|
204
|
+
disabled: o,
|
|
205
|
+
onClick: me,
|
|
185
206
|
type: "button",
|
|
186
207
|
"aria-haspopup": "listbox",
|
|
187
|
-
"aria-expanded":
|
|
208
|
+
"aria-expanded": w,
|
|
188
209
|
children: [
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
|
|
191
|
-
|
|
210
|
+
/* @__PURE__ */ p("span", { className: q ? _.selectedContent : _.placeholder, children: [
|
|
211
|
+
q?.icon && /* @__PURE__ */ n("span", { className: _.optionIcon, children: q.icon }),
|
|
212
|
+
q ? q.label : f || "Select an option"
|
|
192
213
|
] }),
|
|
193
|
-
/* @__PURE__ */ n("span", { className:
|
|
214
|
+
/* @__PURE__ */ n("span", { className: C(_.arrow, w && _.open), children: /* @__PURE__ */ n(be, {}) })
|
|
194
215
|
]
|
|
195
216
|
}
|
|
196
217
|
),
|
|
197
|
-
|
|
198
|
-
|
|
218
|
+
w && /* @__PURE__ */ n(fe, { className: _.dropdown, role: "listbox", style: { maxHeight: 191 }, children: /* @__PURE__ */ n(
|
|
219
|
+
yt,
|
|
199
220
|
{
|
|
200
|
-
filteredOptions:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
221
|
+
filteredOptions: pe,
|
|
222
|
+
isLoading: s,
|
|
223
|
+
loadingText: d,
|
|
224
|
+
noOptionsText: m,
|
|
225
|
+
onSearchChange: X,
|
|
226
|
+
onSelect: he,
|
|
227
|
+
searchInputRef: Y,
|
|
228
|
+
searchPlaceholder: x,
|
|
229
|
+
searchQuery: U,
|
|
230
|
+
searchable: u,
|
|
231
|
+
value: S
|
|
209
232
|
}
|
|
210
233
|
) })
|
|
211
234
|
] })
|
|
212
235
|
] });
|
|
213
|
-
},
|
|
236
|
+
}, de = (e) => {
|
|
214
237
|
const t = (o) => {
|
|
215
238
|
if (e.onChange) {
|
|
216
239
|
const i = {
|
|
@@ -225,7 +248,7 @@ const un = (e) => {
|
|
|
225
248
|
label: o.label
|
|
226
249
|
})) || [];
|
|
227
250
|
return /* @__PURE__ */ n(
|
|
228
|
-
|
|
251
|
+
bt,
|
|
229
252
|
{
|
|
230
253
|
className: e.className,
|
|
231
254
|
options: r,
|
|
@@ -234,8 +257,8 @@ const un = (e) => {
|
|
|
234
257
|
}
|
|
235
258
|
);
|
|
236
259
|
};
|
|
237
|
-
|
|
238
|
-
const
|
|
260
|
+
de.displayName = "DatePickerDropdown";
|
|
261
|
+
const wt = {
|
|
239
262
|
month_caption: a.monthsCaption,
|
|
240
263
|
button_previous: a.navButtonPrevious,
|
|
241
264
|
button_next: a.navButtonNext,
|
|
@@ -257,23 +280,23 @@ const ct = {
|
|
|
257
280
|
range_middle: a.dayRangeMiddle,
|
|
258
281
|
range_end: a.dayRangeEnd,
|
|
259
282
|
today: a.dayToday
|
|
260
|
-
},
|
|
261
|
-
Dropdown:
|
|
262
|
-
},
|
|
283
|
+
}, vt = {
|
|
284
|
+
Dropdown: de
|
|
285
|
+
}, Ct = {
|
|
263
286
|
weekStartsOn: 1,
|
|
264
287
|
showOutsideDays: !0,
|
|
265
288
|
reverseYears: !0,
|
|
266
289
|
captionLayout: "dropdown"
|
|
267
|
-
},
|
|
268
|
-
components:
|
|
269
|
-
...
|
|
270
|
-
},
|
|
271
|
-
...
|
|
290
|
+
}, Nt = {
|
|
291
|
+
components: vt,
|
|
292
|
+
...Ct
|
|
293
|
+
}, It = (e) => ({
|
|
294
|
+
...Nt,
|
|
272
295
|
classNames: {
|
|
273
|
-
root:
|
|
274
|
-
...
|
|
296
|
+
root: z(a.calendar, e && a.open),
|
|
297
|
+
...wt
|
|
275
298
|
}
|
|
276
|
-
}),
|
|
299
|
+
}), F = "dd.MM.yyyy", St = (e) => e ? L(e, F) : "", kt = (e) => !e || !e.from ? "" : e.to && e.from.getTime() !== e.to.getTime() ? `${L(e.from, F)} - ${L(e.to, F)}` : L(e.from, F), ae = (e, t) => e ? t === "single" && e instanceof Date ? St(e) : t === "range" && typeof e == "object" && "from" in e ? kt(e) : "" : "", Dt = ({
|
|
277
300
|
value: e,
|
|
278
301
|
mode: t,
|
|
279
302
|
onChange: r,
|
|
@@ -285,35 +308,35 @@ const ct = {
|
|
|
285
308
|
return;
|
|
286
309
|
}
|
|
287
310
|
if (t === "single") {
|
|
288
|
-
e instanceof Date && (o(e), r(
|
|
311
|
+
e instanceof Date && (o(e), r(ae(e, "single")), i(!1));
|
|
289
312
|
return;
|
|
290
313
|
}
|
|
291
314
|
if (t === "range" && typeof e == "object" && "from" in e) {
|
|
292
315
|
const s = e;
|
|
293
316
|
s.from ? o(s.from) : s.to && o(s.to);
|
|
294
|
-
const c =
|
|
317
|
+
const c = ae(s, "range");
|
|
295
318
|
r(c), s.from && s.to && s.from.getTime() !== s.to.getTime() && i(!1);
|
|
296
319
|
}
|
|
297
|
-
},
|
|
320
|
+
}, V = "dd.MM.yyyy", xt = (e) => {
|
|
298
321
|
if (!e) return;
|
|
299
|
-
const t =
|
|
300
|
-
return
|
|
301
|
-
},
|
|
322
|
+
const t = M(e, V, /* @__PURE__ */ new Date());
|
|
323
|
+
return A(t) ? t : void 0;
|
|
324
|
+
}, Et = (e) => {
|
|
302
325
|
if (!e) return;
|
|
303
326
|
const t = " - ", r = e.indexOf(t);
|
|
304
327
|
if (r === -1) {
|
|
305
|
-
const
|
|
306
|
-
return
|
|
328
|
+
const d = M(e.trim(), V, /* @__PURE__ */ new Date());
|
|
329
|
+
return A(d) ? { from: d, to: void 0 } : void 0;
|
|
307
330
|
}
|
|
308
331
|
const o = e.substring(0, r).trim(), i = e.substring(r + t.length).trim();
|
|
309
332
|
if (!o || !i) return;
|
|
310
|
-
const s =
|
|
311
|
-
if (
|
|
333
|
+
const s = M(o, V, /* @__PURE__ */ new Date()), c = M(i, V, /* @__PURE__ */ new Date());
|
|
334
|
+
if (A(s) && A(c))
|
|
312
335
|
return { from: s, to: c };
|
|
313
|
-
},
|
|
336
|
+
}, jt = (e, t) => {
|
|
314
337
|
if (e)
|
|
315
|
-
return t === "single" ?
|
|
316
|
-
},
|
|
338
|
+
return t === "single" ? xt(e) : Et(e);
|
|
339
|
+
}, Ot = (e, t, r) => {
|
|
317
340
|
if (e) {
|
|
318
341
|
if (t === "single" && e instanceof Date) {
|
|
319
342
|
r(e);
|
|
@@ -324,7 +347,7 @@ const ct = {
|
|
|
324
347
|
o.from ? r(o.from) : o.to && r(o.to);
|
|
325
348
|
}
|
|
326
349
|
}
|
|
327
|
-
},
|
|
350
|
+
}, Dn = ({
|
|
328
351
|
mode: e,
|
|
329
352
|
value: t,
|
|
330
353
|
onChange: r,
|
|
@@ -332,49 +355,49 @@ const ct = {
|
|
|
332
355
|
label: i,
|
|
333
356
|
error: s,
|
|
334
357
|
placeholder: c,
|
|
335
|
-
...
|
|
358
|
+
...d
|
|
336
359
|
}) => {
|
|
337
|
-
const [
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}, [
|
|
341
|
-
|
|
360
|
+
const [m, b] = j(!1), g = R(null), [l, f] = j(/* @__PURE__ */ new Date()), y = ne(() => jt(t, e), [t, e]);
|
|
361
|
+
k(() => {
|
|
362
|
+
Ot(y, e, f);
|
|
363
|
+
}, [y, e, f]), tt({ ref: g, isOpen: m, onDismiss: () => {
|
|
364
|
+
b(!1);
|
|
342
365
|
} });
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
},
|
|
346
|
-
o ||
|
|
347
|
-
},
|
|
348
|
-
const
|
|
349
|
-
r(
|
|
350
|
-
},
|
|
351
|
-
|
|
352
|
-
value:
|
|
366
|
+
const x = (N) => {
|
|
367
|
+
N.stopPropagation(), S(void 0);
|
|
368
|
+
}, h = () => {
|
|
369
|
+
o || b((N) => !N);
|
|
370
|
+
}, u = (N) => {
|
|
371
|
+
const T = N.currentTarget.value;
|
|
372
|
+
r(T);
|
|
373
|
+
}, S = (N) => {
|
|
374
|
+
Dt({
|
|
375
|
+
value: N,
|
|
353
376
|
mode: e,
|
|
354
377
|
onChange: r,
|
|
355
|
-
setMonth:
|
|
356
|
-
setIsOpen:
|
|
378
|
+
setMonth: f,
|
|
379
|
+
setIsOpen: b
|
|
357
380
|
});
|
|
358
|
-
},
|
|
359
|
-
return /* @__PURE__ */
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
i && /* @__PURE__ */ n("span", { className: o ? a.disabledLabel : a.label, children: /* @__PURE__ */ n(
|
|
362
|
-
/* @__PURE__ */
|
|
381
|
+
}, w = ne(() => It(m), [m]);
|
|
382
|
+
return /* @__PURE__ */ p("div", { ref: g, className: a.wrapper, children: [
|
|
383
|
+
/* @__PURE__ */ p("div", { className: a.inputContainer, children: [
|
|
384
|
+
i && /* @__PURE__ */ n("span", { className: o ? a.disabledLabel : a.label, children: /* @__PURE__ */ n(te, { variant: "text-14", children: i }) }),
|
|
385
|
+
/* @__PURE__ */ p("div", { className: a.inputWrapper, children: [
|
|
363
386
|
/* @__PURE__ */ n(
|
|
364
387
|
"input",
|
|
365
388
|
{
|
|
366
389
|
type: "text",
|
|
367
|
-
className:
|
|
368
|
-
onClick:
|
|
390
|
+
className: z(a.trigger, s && a.error),
|
|
391
|
+
onClick: h,
|
|
369
392
|
value: t,
|
|
370
|
-
onChange:
|
|
393
|
+
onChange: u,
|
|
371
394
|
placeholder: c,
|
|
372
395
|
disabled: o,
|
|
373
396
|
"aria-label": i || "Select date",
|
|
374
|
-
"aria-expanded":
|
|
397
|
+
"aria-expanded": m,
|
|
375
398
|
"aria-haspopup": "dialog",
|
|
376
399
|
"aria-invalid": s ? "true" : "false",
|
|
377
|
-
...
|
|
400
|
+
...d
|
|
378
401
|
}
|
|
379
402
|
),
|
|
380
403
|
t && !o && /* @__PURE__ */ n(
|
|
@@ -382,83 +405,83 @@ const ct = {
|
|
|
382
405
|
{
|
|
383
406
|
type: "button",
|
|
384
407
|
className: a.clearButton,
|
|
385
|
-
onClick:
|
|
408
|
+
onClick: x,
|
|
386
409
|
"aria-label": "Clear date",
|
|
387
|
-
children: /* @__PURE__ */ n(
|
|
410
|
+
children: /* @__PURE__ */ n(le, { className: a.clearIcon })
|
|
388
411
|
}
|
|
389
412
|
),
|
|
390
|
-
/* @__PURE__ */ n(
|
|
413
|
+
/* @__PURE__ */ n(we, { className: z(a.icon, !t && a.placeholder) })
|
|
391
414
|
] }),
|
|
392
|
-
s && /* @__PURE__ */ n(
|
|
415
|
+
s && /* @__PURE__ */ n(te, { variant: "small", className: a.error, children: s })
|
|
393
416
|
] }),
|
|
394
417
|
e === "single" ? /* @__PURE__ */ n(
|
|
395
|
-
|
|
418
|
+
oe,
|
|
396
419
|
{
|
|
397
|
-
...
|
|
398
|
-
month:
|
|
399
|
-
onMonthChange:
|
|
420
|
+
...w,
|
|
421
|
+
month: l,
|
|
422
|
+
onMonthChange: f,
|
|
400
423
|
mode: "single",
|
|
401
|
-
selected:
|
|
402
|
-
onSelect:
|
|
424
|
+
selected: y instanceof Date ? y : void 0,
|
|
425
|
+
onSelect: S
|
|
403
426
|
}
|
|
404
427
|
) : /* @__PURE__ */ n(
|
|
405
|
-
|
|
428
|
+
oe,
|
|
406
429
|
{
|
|
407
|
-
...
|
|
408
|
-
month:
|
|
409
|
-
onMonthChange:
|
|
430
|
+
...w,
|
|
431
|
+
month: l,
|
|
432
|
+
onMonthChange: f,
|
|
410
433
|
mode: "range",
|
|
411
|
-
selected:
|
|
412
|
-
onSelect:
|
|
434
|
+
selected: y && typeof y == "object" && "from" in y ? y : void 0,
|
|
435
|
+
onSelect: S
|
|
413
436
|
}
|
|
414
437
|
)
|
|
415
438
|
] });
|
|
416
|
-
},
|
|
417
|
-
content:
|
|
418
|
-
item:
|
|
419
|
-
icon:
|
|
420
|
-
label:
|
|
421
|
-
},
|
|
439
|
+
}, qt = "_content_1bas8_1", Pt = "_item_1bas8_24", Rt = "_icon_1bas8_56", Tt = "_label_1bas8_62", $ = {
|
|
440
|
+
content: qt,
|
|
441
|
+
item: Pt,
|
|
442
|
+
icon: Rt,
|
|
443
|
+
label: Tt
|
|
444
|
+
}, xn = (e) => {
|
|
422
445
|
const { children: t, items: r, className: o, align: i = "end", side: s = "bottom" } = e;
|
|
423
|
-
return /* @__PURE__ */
|
|
446
|
+
return /* @__PURE__ */ p(P.Root, { children: [
|
|
424
447
|
/* @__PURE__ */ n(P.Trigger, { asChild: !0, children: t }),
|
|
425
448
|
/* @__PURE__ */ n(P.Portal, { children: /* @__PURE__ */ n(
|
|
426
449
|
P.Content,
|
|
427
450
|
{
|
|
428
451
|
align: i,
|
|
429
|
-
className:
|
|
452
|
+
className: C($.content, o),
|
|
430
453
|
side: s,
|
|
431
454
|
sideOffset: 4,
|
|
432
|
-
children: r.map((c,
|
|
455
|
+
children: r.map((c, d) => /* @__PURE__ */ p(
|
|
433
456
|
P.Item,
|
|
434
457
|
{
|
|
435
|
-
className:
|
|
458
|
+
className: $.item,
|
|
436
459
|
disabled: c.disabled,
|
|
437
460
|
onSelect: c.onSelect,
|
|
438
461
|
children: [
|
|
439
|
-
c.icon && /* @__PURE__ */ n("span", { className:
|
|
440
|
-
/* @__PURE__ */ n("span", { className:
|
|
462
|
+
c.icon && /* @__PURE__ */ n("span", { className: $.icon, children: c.icon }),
|
|
463
|
+
/* @__PURE__ */ n("span", { className: $.label, children: c.label })
|
|
441
464
|
]
|
|
442
465
|
},
|
|
443
|
-
|
|
466
|
+
d
|
|
444
467
|
))
|
|
445
468
|
}
|
|
446
469
|
) })
|
|
447
470
|
] });
|
|
448
|
-
},
|
|
449
|
-
wrapper:
|
|
450
|
-
label:
|
|
451
|
-
disabled:
|
|
452
|
-
input:
|
|
453
|
-
inputContainer:
|
|
454
|
-
error:
|
|
455
|
-
withStartIcon:
|
|
456
|
-
withEndIcon:
|
|
457
|
-
startIcon:
|
|
458
|
-
endIcon:
|
|
459
|
-
errorMessage:
|
|
460
|
-
required:
|
|
461
|
-
},
|
|
471
|
+
}, Bt = "_wrapper_gp2gj_1", $t = "_label_gp2gj_7", Lt = "_disabled_gp2gj_14", Mt = "_input_gp2gj_18", At = "_inputContainer_gp2gj_22", Ft = "_error_gp2gj_47", Vt = "_withStartIcon_gp2gj_64", Wt = "_withEndIcon_gp2gj_68", Qt = "_startIcon_gp2gj_85", Gt = "_endIcon_gp2gj_86", Ht = "_errorMessage_gp2gj_137", zt = "_required_gp2gj_144", v = {
|
|
472
|
+
wrapper: Bt,
|
|
473
|
+
label: $t,
|
|
474
|
+
disabled: Lt,
|
|
475
|
+
input: Mt,
|
|
476
|
+
inputContainer: At,
|
|
477
|
+
error: Ft,
|
|
478
|
+
withStartIcon: Vt,
|
|
479
|
+
withEndIcon: Wt,
|
|
480
|
+
startIcon: Qt,
|
|
481
|
+
endIcon: Gt,
|
|
482
|
+
errorMessage: Ht,
|
|
483
|
+
required: zt
|
|
484
|
+
}, Kt = ye(
|
|
462
485
|
({
|
|
463
486
|
label: e,
|
|
464
487
|
errorMessage: t,
|
|
@@ -467,61 +490,61 @@ const ct = {
|
|
|
467
490
|
onEndIconClick: i,
|
|
468
491
|
allowPasswordToggle: s,
|
|
469
492
|
disabled: c,
|
|
470
|
-
type:
|
|
471
|
-
className:
|
|
472
|
-
required:
|
|
473
|
-
id:
|
|
474
|
-
...
|
|
475
|
-
},
|
|
476
|
-
const
|
|
477
|
-
return /* @__PURE__ */
|
|
478
|
-
e && /* @__PURE__ */
|
|
493
|
+
type: d = "text",
|
|
494
|
+
className: m,
|
|
495
|
+
required: b,
|
|
496
|
+
id: g,
|
|
497
|
+
...l
|
|
498
|
+
}, f) => {
|
|
499
|
+
const y = ie(), D = g ?? y, x = t ? `${D}-error` : void 0, h = !!t, u = d === "password" && s, [S, w] = j(!1);
|
|
500
|
+
return /* @__PURE__ */ p("div", { className: C(v.wrapper, m), children: [
|
|
501
|
+
e && /* @__PURE__ */ p("label", { htmlFor: D, className: C(v.label, { [v.disabled]: c }), children: [
|
|
479
502
|
e,
|
|
480
|
-
|
|
503
|
+
b && /* @__PURE__ */ n("sup", { className: v.required, children: " *" })
|
|
481
504
|
] }),
|
|
482
|
-
/* @__PURE__ */
|
|
505
|
+
/* @__PURE__ */ p(
|
|
483
506
|
"div",
|
|
484
507
|
{
|
|
485
|
-
className: v
|
|
486
|
-
[
|
|
487
|
-
[
|
|
488
|
-
[
|
|
489
|
-
[
|
|
508
|
+
className: C(v.inputContainer, {
|
|
509
|
+
[v.error]: h,
|
|
510
|
+
[v.disabled]: c,
|
|
511
|
+
[v.withStartIcon]: !!r,
|
|
512
|
+
[v.withEndIcon]: !!o || u
|
|
490
513
|
}),
|
|
491
514
|
children: [
|
|
492
|
-
r && /* @__PURE__ */ n("span", { className:
|
|
515
|
+
r && /* @__PURE__ */ n("span", { className: v.startIcon, children: r }),
|
|
493
516
|
/* @__PURE__ */ n(
|
|
494
517
|
"input",
|
|
495
518
|
{
|
|
496
|
-
ref:
|
|
497
|
-
id:
|
|
498
|
-
className:
|
|
499
|
-
type:
|
|
500
|
-
autoComplete:
|
|
501
|
-
required:
|
|
519
|
+
ref: f,
|
|
520
|
+
id: D,
|
|
521
|
+
className: v.input,
|
|
522
|
+
type: u && S ? "text" : d,
|
|
523
|
+
autoComplete: d === "password" ? "current-password" : "off",
|
|
524
|
+
required: b,
|
|
502
525
|
disabled: c,
|
|
503
|
-
"aria-invalid":
|
|
504
|
-
"aria-describedby":
|
|
505
|
-
...
|
|
526
|
+
"aria-invalid": h,
|
|
527
|
+
"aria-describedby": x,
|
|
528
|
+
...l
|
|
506
529
|
}
|
|
507
530
|
),
|
|
508
|
-
|
|
531
|
+
u && /* @__PURE__ */ n(
|
|
509
532
|
"button",
|
|
510
533
|
{
|
|
511
534
|
type: "button",
|
|
512
|
-
className:
|
|
513
|
-
onClick: () =>
|
|
514
|
-
"aria-label":
|
|
535
|
+
className: v.endIcon,
|
|
536
|
+
onClick: () => w((N) => !N),
|
|
537
|
+
"aria-label": S ? "Hide password" : "Show password",
|
|
515
538
|
disabled: c,
|
|
516
539
|
tabIndex: -1,
|
|
517
|
-
children:
|
|
540
|
+
children: S ? /* @__PURE__ */ n(ve, {}) : /* @__PURE__ */ n(Ce, {})
|
|
518
541
|
}
|
|
519
542
|
),
|
|
520
|
-
o && !
|
|
543
|
+
o && !u && /* @__PURE__ */ n(
|
|
521
544
|
"button",
|
|
522
545
|
{
|
|
523
546
|
type: "button",
|
|
524
|
-
className:
|
|
547
|
+
className: v.endIcon,
|
|
525
548
|
onClick: i,
|
|
526
549
|
"aria-label": "Action",
|
|
527
550
|
disabled: c,
|
|
@@ -531,56 +554,56 @@ const ct = {
|
|
|
531
554
|
]
|
|
532
555
|
}
|
|
533
556
|
),
|
|
534
|
-
|
|
557
|
+
h && /* @__PURE__ */ n("span", { id: x, className: v.errorMessage, role: "alert", children: t })
|
|
535
558
|
] });
|
|
536
559
|
}
|
|
537
560
|
);
|
|
538
|
-
|
|
539
|
-
const
|
|
540
|
-
overlay:
|
|
541
|
-
modal:
|
|
542
|
-
header:
|
|
543
|
-
title:
|
|
544
|
-
close:
|
|
545
|
-
body:
|
|
546
|
-
},
|
|
547
|
-
const s =
|
|
548
|
-
if (
|
|
561
|
+
Kt.displayName = "Input";
|
|
562
|
+
const Xt = "_overlay_17k3a_1", Yt = "_modal_17k3a_15", Jt = "_header_17k3a_29", Ut = "_title_17k3a_39", Zt = "_close_17k3a_52", en = "_body_17k3a_79", O = {
|
|
563
|
+
overlay: Xt,
|
|
564
|
+
modal: Yt,
|
|
565
|
+
header: Jt,
|
|
566
|
+
title: Ut,
|
|
567
|
+
close: Zt,
|
|
568
|
+
body: en
|
|
569
|
+
}, En = ({ open: e, onClose: t, title: r, children: o, className: i }) => {
|
|
570
|
+
const s = ie(), c = R(t);
|
|
571
|
+
if (k(() => {
|
|
549
572
|
c.current = t;
|
|
550
|
-
}, [t]),
|
|
573
|
+
}, [t]), k(() => {
|
|
551
574
|
if (e)
|
|
552
575
|
return document.body.style.overflow = "hidden", () => {
|
|
553
576
|
document.body.style.overflow = "";
|
|
554
577
|
};
|
|
555
|
-
}, [e]),
|
|
578
|
+
}, [e]), k(() => {
|
|
556
579
|
if (!e) return;
|
|
557
|
-
const
|
|
558
|
-
|
|
580
|
+
const m = (b) => {
|
|
581
|
+
b.key === "Escape" && c.current();
|
|
559
582
|
};
|
|
560
|
-
return document.addEventListener("keydown",
|
|
561
|
-
document.removeEventListener("keydown",
|
|
583
|
+
return document.addEventListener("keydown", m), () => {
|
|
584
|
+
document.removeEventListener("keydown", m);
|
|
562
585
|
};
|
|
563
586
|
}, [e]), !e || typeof document > "u") return null;
|
|
564
|
-
const
|
|
565
|
-
return
|
|
587
|
+
const d = document.getElementById("modal-root") ?? document.body;
|
|
588
|
+
return Se(
|
|
566
589
|
/* @__PURE__ */ n(
|
|
567
|
-
|
|
590
|
+
ke,
|
|
568
591
|
{
|
|
569
592
|
active: e,
|
|
570
593
|
focusTrapOptions: {
|
|
571
594
|
clickOutsideDeactivates: !0,
|
|
572
595
|
returnFocusOnDeactivate: !0
|
|
573
596
|
},
|
|
574
|
-
children: /* @__PURE__ */ n("div", { className: O.overlay, onClick: () => c.current(), children: /* @__PURE__ */
|
|
597
|
+
children: /* @__PURE__ */ n("div", { className: O.overlay, onClick: () => c.current(), children: /* @__PURE__ */ p(
|
|
575
598
|
"div",
|
|
576
599
|
{
|
|
577
|
-
className:
|
|
578
|
-
onClick: (
|
|
600
|
+
className: C(O.modal, i),
|
|
601
|
+
onClick: (m) => m.stopPropagation(),
|
|
579
602
|
role: "dialog",
|
|
580
603
|
"aria-modal": "true",
|
|
581
604
|
"aria-labelledby": s,
|
|
582
605
|
children: [
|
|
583
|
-
/* @__PURE__ */
|
|
606
|
+
/* @__PURE__ */ p("header", { className: O.header, children: [
|
|
584
607
|
/* @__PURE__ */ n("h2", { id: s, className: O.title, children: r }),
|
|
585
608
|
/* @__PURE__ */ n(
|
|
586
609
|
"button",
|
|
@@ -589,7 +612,7 @@ const Bt = "_overlay_17k3a_1", $t = "_modal_17k3a_15", Lt = "_header_17k3a_29",
|
|
|
589
612
|
className: O.close,
|
|
590
613
|
"aria-label": "Close modal",
|
|
591
614
|
onClick: () => c.current(),
|
|
592
|
-
children: /* @__PURE__ */ n(
|
|
615
|
+
children: /* @__PURE__ */ n(le, {})
|
|
593
616
|
}
|
|
594
617
|
)
|
|
595
618
|
] }),
|
|
@@ -599,20 +622,20 @@ const Bt = "_overlay_17k3a_1", $t = "_modal_17k3a_15", Lt = "_header_17k3a_29",
|
|
|
599
622
|
) })
|
|
600
623
|
}
|
|
601
624
|
),
|
|
602
|
-
|
|
625
|
+
d
|
|
603
626
|
);
|
|
604
|
-
},
|
|
605
|
-
root:
|
|
606
|
-
trackWrapper:
|
|
607
|
-
track:
|
|
608
|
-
slide:
|
|
609
|
-
arrow:
|
|
610
|
-
arrowPrev:
|
|
611
|
-
arrowNext:
|
|
612
|
-
dots:
|
|
613
|
-
dot:
|
|
614
|
-
dotActive:
|
|
615
|
-
},
|
|
627
|
+
}, tn = "_root_ggtcs_1", nn = "_trackWrapper_ggtcs_16", on = "_track_ggtcs_16", rn = "_slide_ggtcs_32", an = "_arrow_ggtcs_56", sn = "_arrowPrev_ggtcs_98", cn = "_arrowNext_ggtcs_102", ln = "_dots_ggtcs_107", dn = "_dot_ggtcs_107", un = "_dotActive_ggtcs_143", I = {
|
|
628
|
+
root: tn,
|
|
629
|
+
trackWrapper: nn,
|
|
630
|
+
track: on,
|
|
631
|
+
slide: rn,
|
|
632
|
+
arrow: an,
|
|
633
|
+
arrowPrev: sn,
|
|
634
|
+
arrowNext: cn,
|
|
635
|
+
dots: ln,
|
|
636
|
+
dot: dn,
|
|
637
|
+
dotActive: un
|
|
638
|
+
}, jn = ({
|
|
616
639
|
children: e,
|
|
617
640
|
value: t,
|
|
618
641
|
onValueChange: r,
|
|
@@ -620,79 +643,79 @@ const Bt = "_overlay_17k3a_1", $t = "_modal_17k3a_15", Lt = "_header_17k3a_29",
|
|
|
620
643
|
className: i,
|
|
621
644
|
hideArrowsWhenSingle: s = !0
|
|
622
645
|
}) => {
|
|
623
|
-
const c = Array.isArray(e) ? e : [e],
|
|
624
|
-
(
|
|
625
|
-
const
|
|
626
|
-
|
|
646
|
+
const c = Array.isArray(e) ? e : [e], d = c.length, [m, b] = j(0), g = t !== void 0, l = g ? Math.min(Math.max(0, t), d - 1) : m, f = K(
|
|
647
|
+
(h) => {
|
|
648
|
+
const u = (h + d) % d;
|
|
649
|
+
g || b(u), r?.(u);
|
|
627
650
|
},
|
|
628
|
-
[
|
|
651
|
+
[d, g, r]
|
|
629
652
|
);
|
|
630
|
-
if (
|
|
631
|
-
if (o <= 0 ||
|
|
632
|
-
const
|
|
633
|
-
return () => clearInterval(
|
|
634
|
-
}, [o,
|
|
635
|
-
const
|
|
636
|
-
return /* @__PURE__ */
|
|
637
|
-
/* @__PURE__ */ n("div", { className: I.trackWrapper, children: /* @__PURE__ */ n("div", { className: I.track, style: { transform: `translateX(-${
|
|
638
|
-
|
|
653
|
+
if (k(() => {
|
|
654
|
+
if (o <= 0 || d <= 1) return;
|
|
655
|
+
const h = setInterval(() => f(l + 1), o);
|
|
656
|
+
return () => clearInterval(h);
|
|
657
|
+
}, [o, d, l, f]), d === 0) return null;
|
|
658
|
+
const y = () => f(l - 1), D = () => f(l + 1), x = !s || d > 1;
|
|
659
|
+
return /* @__PURE__ */ p("div", { className: C(I.root, i), role: "region", "aria-label": "Carousel", children: [
|
|
660
|
+
/* @__PURE__ */ n("div", { className: I.trackWrapper, children: /* @__PURE__ */ n("div", { className: I.track, style: { transform: `translateX(-${l * 100}%)` }, children: c.map((h, u) => /* @__PURE__ */ n("div", { className: I.slide, children: h }, u)) }) }),
|
|
661
|
+
x && /* @__PURE__ */ p(ce, { children: [
|
|
639
662
|
/* @__PURE__ */ n(
|
|
640
663
|
"button",
|
|
641
664
|
{
|
|
642
665
|
type: "button",
|
|
643
|
-
className:
|
|
644
|
-
onClick:
|
|
666
|
+
className: C(I.arrow, I.arrowPrev),
|
|
667
|
+
onClick: y,
|
|
645
668
|
"aria-label": "Previous slide",
|
|
646
669
|
tabIndex: 0,
|
|
647
|
-
children: /* @__PURE__ */ n(
|
|
670
|
+
children: /* @__PURE__ */ n(Ne, { width: 24, height: 24, "aria-hidden": !0 })
|
|
648
671
|
}
|
|
649
672
|
),
|
|
650
673
|
/* @__PURE__ */ n(
|
|
651
674
|
"button",
|
|
652
675
|
{
|
|
653
676
|
type: "button",
|
|
654
|
-
className:
|
|
655
|
-
onClick:
|
|
677
|
+
className: C(I.arrow, I.arrowNext),
|
|
678
|
+
onClick: D,
|
|
656
679
|
"aria-label": "Next slide",
|
|
657
680
|
tabIndex: 0,
|
|
658
|
-
children: /* @__PURE__ */ n(
|
|
681
|
+
children: /* @__PURE__ */ n(Ie, { width: 24, height: 24, "aria-hidden": !0 })
|
|
659
682
|
}
|
|
660
683
|
)
|
|
661
684
|
] }),
|
|
662
|
-
|
|
685
|
+
d > 1 && /* @__PURE__ */ n("div", { className: I.dots, role: "tablist", "aria-label": "Slide selection", children: c.map((h, u) => /* @__PURE__ */ n(
|
|
663
686
|
"button",
|
|
664
687
|
{
|
|
665
688
|
type: "button",
|
|
666
689
|
role: "tab",
|
|
667
|
-
"aria-selected":
|
|
668
|
-
"aria-label": `Slide ${
|
|
669
|
-
className:
|
|
670
|
-
onClick: () =>
|
|
671
|
-
tabIndex:
|
|
690
|
+
"aria-selected": u === l,
|
|
691
|
+
"aria-label": `Slide ${u + 1}`,
|
|
692
|
+
className: C(I.dot, u === l && I.dotActive),
|
|
693
|
+
onClick: () => f(u),
|
|
694
|
+
tabIndex: u === l ? 0 : -1
|
|
672
695
|
},
|
|
673
|
-
|
|
696
|
+
u
|
|
674
697
|
)) })
|
|
675
698
|
] });
|
|
676
699
|
};
|
|
677
700
|
export {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
701
|
+
se as Alert,
|
|
702
|
+
$n as Button,
|
|
703
|
+
Ln as Card,
|
|
704
|
+
jn as Carousel,
|
|
705
|
+
Mn as Checkbox,
|
|
706
|
+
Dn as DatePicker,
|
|
707
|
+
xn as DropdownMenu,
|
|
708
|
+
Kt as Input,
|
|
709
|
+
An as Label,
|
|
710
|
+
En as Modal,
|
|
711
|
+
Fn as Radio,
|
|
712
|
+
bt as Select,
|
|
713
|
+
Tn as SimpleBar,
|
|
714
|
+
Vn as Tab,
|
|
715
|
+
Wn as Textarea,
|
|
716
|
+
te as Typography,
|
|
717
|
+
Pn as clsx,
|
|
718
|
+
kn as toastError,
|
|
719
|
+
Sn as toastSuccess
|
|
697
720
|
};
|
|
698
721
|
//# sourceMappingURL=index.client.js.map
|