@handamade/psi-react 0.24.0 → 0.26.0
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/README.md +1 -1
- package/dist/Checkbox/Checkbox.d.ts +8 -1
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Dialog/Dialog.d.ts +17 -3
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Field/Field.d.ts +3 -0
- package/dist/Field/Field.d.ts.map +1 -1
- package/dist/Menu/Menu.d.ts +11 -2
- package/dist/Menu/Menu.d.ts.map +1 -1
- package/dist/Menu/useMenuKeyboard.d.ts +5 -1
- package/dist/Menu/useMenuKeyboard.d.ts.map +1 -1
- package/dist/RadioGroup/Radio.d.ts +17 -0
- package/dist/RadioGroup/Radio.d.ts.map +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +40 -0
- package/dist/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/Table/TableSelectionCell.d.ts.map +1 -1
- package/dist/Textarea/Textarea.d.ts +25 -0
- package/dist/Textarea/Textarea.d.ts.map +1 -0
- package/dist/a11y-meta.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1318 -1180
- package/dist/manifest.json +231 -3
- package/dist/patterns.json +105 -0
- package/dist/styles.css +1 -1
- package/docs/Checkbox.md +1 -0
- package/docs/Dialog.md +5 -2
- package/docs/Menu.md +4 -1
- package/docs/Radio.md +40 -0
- package/docs/RadioGroup.md +46 -0
- package/docs/Textarea.md +43 -0
- package/llms.txt +7 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,353 +1,353 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Children as
|
|
3
|
-
const
|
|
4
|
-
button:
|
|
5
|
-
disabled:
|
|
6
|
-
size24:
|
|
7
|
-
size32:
|
|
8
|
-
size40:
|
|
9
|
-
size48:
|
|
10
|
-
accent:
|
|
11
|
-
accentSubtle:
|
|
12
|
-
neutral:
|
|
13
|
-
neutralSubtle:
|
|
14
|
-
ghost:
|
|
15
|
-
danger:
|
|
16
|
-
dangerSubtle:
|
|
17
|
-
outline:
|
|
18
|
-
},
|
|
19
|
-
accent:
|
|
20
|
-
"accent-subtle":
|
|
21
|
-
neutral:
|
|
22
|
-
"neutral-subtle":
|
|
23
|
-
ghost:
|
|
24
|
-
danger:
|
|
25
|
-
"danger-subtle":
|
|
26
|
-
outline:
|
|
27
|
-
},
|
|
28
|
-
24:
|
|
29
|
-
32:
|
|
30
|
-
40:
|
|
31
|
-
48:
|
|
1
|
+
import { jsx as t, jsxs as f, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { Children as O, useId as P, isValidElement as Q, Fragment as be, cloneElement as fe, createContext as K, useContext as B, useRef as $, useEffect as I, useLayoutEffect as ze, useState as ee, useCallback as k, useMemo as _e } from "react";
|
|
3
|
+
const Oe = "_button_1rxq8_3", Ke = "_disabled_1rxq8_45", Fe = "_size24_1rxq8_70", Ue = "_size32_1rxq8_88", Ge = "_size40_1rxq8_106", Ye = "_size48_1rxq8_124", Ze = "_accent_1rxq8_145", Xe = "_accentSubtle_1rxq8_157", Je = "_neutral_1rxq8_169", Qe = "_neutralSubtle_1rxq8_181", en = "_ghost_1rxq8_193", nn = "_danger_1rxq8_205", tn = "_dangerSubtle_1rxq8_217", rn = "_outline_1rxq8_229", C = {
|
|
4
|
+
button: Oe,
|
|
5
|
+
disabled: Ke,
|
|
6
|
+
size24: Fe,
|
|
7
|
+
size32: Ue,
|
|
8
|
+
size40: Ge,
|
|
9
|
+
size48: Ye,
|
|
10
|
+
accent: Ze,
|
|
11
|
+
accentSubtle: Xe,
|
|
12
|
+
neutral: Je,
|
|
13
|
+
neutralSubtle: Qe,
|
|
14
|
+
ghost: en,
|
|
15
|
+
danger: nn,
|
|
16
|
+
dangerSubtle: tn,
|
|
17
|
+
outline: rn
|
|
18
|
+
}, on = {
|
|
19
|
+
accent: C.accent,
|
|
20
|
+
"accent-subtle": C.accentSubtle,
|
|
21
|
+
neutral: C.neutral,
|
|
22
|
+
"neutral-subtle": C.neutralSubtle,
|
|
23
|
+
ghost: C.ghost,
|
|
24
|
+
danger: C.danger,
|
|
25
|
+
"danger-subtle": C.dangerSubtle,
|
|
26
|
+
outline: C.outline
|
|
27
|
+
}, sn = {
|
|
28
|
+
24: C.size24,
|
|
29
|
+
32: C.size32,
|
|
30
|
+
40: C.size40,
|
|
31
|
+
48: C.size48
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function se({
|
|
34
34
|
variant: e = "neutral",
|
|
35
35
|
size: n = 32,
|
|
36
36
|
href: i,
|
|
37
|
-
target:
|
|
38
|
-
rel:
|
|
39
|
-
disabled:
|
|
40
|
-
className:
|
|
37
|
+
target: s,
|
|
38
|
+
rel: a,
|
|
39
|
+
disabled: o,
|
|
40
|
+
className: r,
|
|
41
41
|
onClick: c,
|
|
42
|
-
ref:
|
|
43
|
-
...
|
|
42
|
+
ref: l,
|
|
43
|
+
...u
|
|
44
44
|
}) {
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
i !== void 0 &&
|
|
50
|
-
|
|
45
|
+
const h = [
|
|
46
|
+
C.button,
|
|
47
|
+
on[e],
|
|
48
|
+
sn[n],
|
|
49
|
+
i !== void 0 && o ? C.disabled : void 0,
|
|
50
|
+
r
|
|
51
51
|
].filter(Boolean).join(" ");
|
|
52
52
|
return i !== void 0 ? /* @__PURE__ */ t(
|
|
53
53
|
"a",
|
|
54
54
|
{
|
|
55
|
-
ref:
|
|
56
|
-
className:
|
|
57
|
-
href:
|
|
58
|
-
target:
|
|
59
|
-
rel:
|
|
60
|
-
"aria-disabled":
|
|
61
|
-
onClick:
|
|
62
|
-
...
|
|
55
|
+
ref: l,
|
|
56
|
+
className: h,
|
|
57
|
+
href: o ? void 0 : i,
|
|
58
|
+
target: s,
|
|
59
|
+
rel: a,
|
|
60
|
+
"aria-disabled": o || void 0,
|
|
61
|
+
onClick: o ? void 0 : c,
|
|
62
|
+
...u
|
|
63
63
|
}
|
|
64
64
|
) : /* @__PURE__ */ t(
|
|
65
65
|
"button",
|
|
66
66
|
{
|
|
67
|
-
ref:
|
|
68
|
-
className:
|
|
69
|
-
disabled:
|
|
67
|
+
ref: l,
|
|
68
|
+
className: h,
|
|
69
|
+
disabled: o,
|
|
70
70
|
onClick: c,
|
|
71
|
-
...
|
|
71
|
+
...u
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
-
const
|
|
76
|
-
iconButton:
|
|
77
|
-
disabled:
|
|
78
|
-
size24:
|
|
79
|
-
size32:
|
|
80
|
-
size40:
|
|
81
|
-
size48:
|
|
82
|
-
accent:
|
|
83
|
-
neutral:
|
|
84
|
-
ghost:
|
|
85
|
-
danger:
|
|
86
|
-
},
|
|
87
|
-
accent:
|
|
88
|
-
neutral:
|
|
89
|
-
ghost:
|
|
90
|
-
danger:
|
|
91
|
-
},
|
|
92
|
-
24:
|
|
93
|
-
32:
|
|
94
|
-
40:
|
|
95
|
-
48:
|
|
75
|
+
const an = "_iconButton_1q4hx_3", cn = "_disabled_1q4hx_29", ln = "_size24_1q4hx_37", dn = "_size32_1q4hx_42", un = "_size40_1q4hx_47", hn = "_size48_1q4hx_52", _n = "_accent_1q4hx_60", fn = "_neutral_1q4hx_72", pn = "_ghost_1q4hx_84", gn = "_danger_1q4hx_96", D = {
|
|
76
|
+
iconButton: an,
|
|
77
|
+
disabled: cn,
|
|
78
|
+
size24: ln,
|
|
79
|
+
size32: dn,
|
|
80
|
+
size40: un,
|
|
81
|
+
size48: hn,
|
|
82
|
+
accent: _n,
|
|
83
|
+
neutral: fn,
|
|
84
|
+
ghost: pn,
|
|
85
|
+
danger: gn
|
|
86
|
+
}, vn = {
|
|
87
|
+
accent: D.accent,
|
|
88
|
+
neutral: D.neutral,
|
|
89
|
+
ghost: D.ghost,
|
|
90
|
+
danger: D.danger
|
|
91
|
+
}, bn = {
|
|
92
|
+
24: D.size24,
|
|
93
|
+
32: D.size32,
|
|
94
|
+
40: D.size40,
|
|
95
|
+
48: D.size48
|
|
96
96
|
};
|
|
97
|
-
function
|
|
97
|
+
function ae({
|
|
98
98
|
variant: e = "neutral",
|
|
99
99
|
size: n = 32,
|
|
100
100
|
href: i,
|
|
101
|
-
target:
|
|
102
|
-
rel:
|
|
103
|
-
disabled:
|
|
104
|
-
className:
|
|
101
|
+
target: s,
|
|
102
|
+
rel: a,
|
|
103
|
+
disabled: o,
|
|
104
|
+
className: r,
|
|
105
105
|
onClick: c,
|
|
106
|
-
ref:
|
|
107
|
-
...
|
|
106
|
+
ref: l,
|
|
107
|
+
...u
|
|
108
108
|
}) {
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
i !== void 0 &&
|
|
114
|
-
|
|
109
|
+
const h = [
|
|
110
|
+
D.iconButton,
|
|
111
|
+
vn[e],
|
|
112
|
+
bn[n],
|
|
113
|
+
i !== void 0 && o ? D.disabled : void 0,
|
|
114
|
+
r
|
|
115
115
|
].filter(Boolean).join(" ");
|
|
116
116
|
return i !== void 0 ? /* @__PURE__ */ t(
|
|
117
117
|
"a",
|
|
118
118
|
{
|
|
119
|
-
ref:
|
|
120
|
-
className:
|
|
121
|
-
href:
|
|
122
|
-
target:
|
|
123
|
-
rel:
|
|
124
|
-
"aria-disabled":
|
|
125
|
-
onClick:
|
|
126
|
-
...
|
|
119
|
+
ref: l,
|
|
120
|
+
className: h,
|
|
121
|
+
href: o ? void 0 : i,
|
|
122
|
+
target: s,
|
|
123
|
+
rel: a,
|
|
124
|
+
"aria-disabled": o || void 0,
|
|
125
|
+
onClick: o ? void 0 : c,
|
|
126
|
+
...u
|
|
127
127
|
}
|
|
128
128
|
) : /* @__PURE__ */ t(
|
|
129
129
|
"button",
|
|
130
130
|
{
|
|
131
|
-
ref:
|
|
132
|
-
className:
|
|
133
|
-
disabled:
|
|
131
|
+
ref: l,
|
|
132
|
+
className: h,
|
|
133
|
+
disabled: o,
|
|
134
134
|
onClick: c,
|
|
135
|
-
...
|
|
135
|
+
...u
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
card:
|
|
141
|
-
stacked:
|
|
142
|
-
featured:
|
|
143
|
-
media:
|
|
144
|
-
body:
|
|
145
|
-
hoverLift:
|
|
139
|
+
const mn = "_card_1btb3_1", yn = "_stacked_1btb3_8", wn = "_featured_1btb3_10", xn = "_media_1btb3_22", kn = "_body_1btb3_23", Nn = "_hoverLift_1btb3_31", F = {
|
|
140
|
+
card: mn,
|
|
141
|
+
stacked: yn,
|
|
142
|
+
featured: wn,
|
|
143
|
+
media: xn,
|
|
144
|
+
body: kn,
|
|
145
|
+
hoverLift: Nn
|
|
146
146
|
};
|
|
147
|
-
function
|
|
147
|
+
function ii({
|
|
148
148
|
variant: e = "stacked",
|
|
149
149
|
media: n,
|
|
150
150
|
hoverLift: i = !1,
|
|
151
|
-
className:
|
|
152
|
-
children:
|
|
153
|
-
ref:
|
|
154
|
-
...
|
|
151
|
+
className: s,
|
|
152
|
+
children: a,
|
|
153
|
+
ref: o,
|
|
154
|
+
...r
|
|
155
155
|
}) {
|
|
156
156
|
const c = [
|
|
157
|
-
|
|
158
|
-
e === "featured" ?
|
|
159
|
-
i ?
|
|
160
|
-
|
|
157
|
+
F.card,
|
|
158
|
+
e === "featured" ? F.featured : F.stacked,
|
|
159
|
+
i ? F.hoverLift : void 0,
|
|
160
|
+
s
|
|
161
161
|
].filter(Boolean).join(" ");
|
|
162
|
-
return /* @__PURE__ */
|
|
163
|
-
n != null && /* @__PURE__ */ t("div", { className:
|
|
164
|
-
/* @__PURE__ */ t("div", { className:
|
|
162
|
+
return /* @__PURE__ */ f("div", { ref: o, className: c, ...r, children: [
|
|
163
|
+
n != null && /* @__PURE__ */ t("div", { className: F.media, children: n }),
|
|
164
|
+
/* @__PURE__ */ t("div", { className: F.body, children: a })
|
|
165
165
|
] });
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
panel:
|
|
169
|
-
padding16:
|
|
167
|
+
const $n = "_panel_jn8w4_1", Bn = "_padding16_jn8w4_8", Be = {
|
|
168
|
+
panel: $n,
|
|
169
|
+
padding16: Bn
|
|
170
170
|
};
|
|
171
|
-
function
|
|
172
|
-
const
|
|
173
|
-
return /* @__PURE__ */ t("div", { ref:
|
|
174
|
-
}
|
|
175
|
-
const
|
|
176
|
-
list:
|
|
177
|
-
item:
|
|
178
|
-
term:
|
|
179
|
-
value:
|
|
171
|
+
function si({ padding: e = 24, className: n, children: i, ref: s, ...a }) {
|
|
172
|
+
const o = [Be.panel, e === 16 ? Be.padding16 : void 0, n].filter(Boolean).join(" ");
|
|
173
|
+
return /* @__PURE__ */ t("div", { ref: s, className: o, ...a, children: i });
|
|
174
|
+
}
|
|
175
|
+
const Ln = "_list_1lh3q_8", Sn = "_item_1lh3q_26", Cn = "_term_1lh3q_44", jn = "_value_1lh3q_50", ue = {
|
|
176
|
+
list: Ln,
|
|
177
|
+
item: Sn,
|
|
178
|
+
term: Cn,
|
|
179
|
+
value: jn
|
|
180
180
|
};
|
|
181
|
-
function
|
|
181
|
+
function ai({
|
|
182
182
|
layout: e = "stacked",
|
|
183
183
|
gap: n = 12,
|
|
184
184
|
className: i,
|
|
185
|
-
children:
|
|
186
|
-
ref:
|
|
187
|
-
...
|
|
185
|
+
children: s,
|
|
186
|
+
ref: a,
|
|
187
|
+
...o
|
|
188
188
|
}) {
|
|
189
189
|
return /* @__PURE__ */ t(
|
|
190
190
|
"dl",
|
|
191
191
|
{
|
|
192
|
-
ref:
|
|
193
|
-
className: [
|
|
192
|
+
ref: a,
|
|
193
|
+
className: [ue.list, i].filter(Boolean).join(" "),
|
|
194
194
|
"data-layout": e,
|
|
195
195
|
"data-gap": n,
|
|
196
|
-
...
|
|
197
|
-
children:
|
|
196
|
+
...o,
|
|
197
|
+
children: s
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return /* @__PURE__ */
|
|
203
|
-
/* @__PURE__ */ t("dt", { className:
|
|
204
|
-
/* @__PURE__ */ t("dd", { className:
|
|
201
|
+
function ci({ term: e, className: n, children: i, ref: s, ...a }) {
|
|
202
|
+
return /* @__PURE__ */ f("div", { ref: s, className: [ue.item, n].filter(Boolean).join(" "), ...a, children: [
|
|
203
|
+
/* @__PURE__ */ t("dt", { className: ue.term, children: e }),
|
|
204
|
+
/* @__PURE__ */ t("dd", { className: ue.value, children: i })
|
|
205
205
|
] });
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
navbar:
|
|
209
|
-
inner:
|
|
210
|
-
fluid:
|
|
211
|
-
brand:
|
|
212
|
-
links:
|
|
213
|
-
actions:
|
|
207
|
+
const zn = "_navbar_1w24e_1", Tn = "_inner_1w24e_12", In = "_fluid_1w24e_20", qn = "_brand_1w24e_22", En = "_links_1w24e_23", Dn = "_actions_1w24e_53", U = {
|
|
208
|
+
navbar: zn,
|
|
209
|
+
inner: Tn,
|
|
210
|
+
fluid: In,
|
|
211
|
+
brand: qn,
|
|
212
|
+
links: En,
|
|
213
|
+
actions: Dn
|
|
214
214
|
};
|
|
215
|
-
function
|
|
216
|
-
const
|
|
217
|
-
return /* @__PURE__ */ t("header", { ref:
|
|
218
|
-
e != null && /* @__PURE__ */ t("div", { className:
|
|
219
|
-
|
|
220
|
-
n != null && /* @__PURE__ */ t("div", { className:
|
|
215
|
+
function li({ brand: e, actions: n, children: i, navLabel: s, fluid: a = !1, className: o, ref: r, ...c }) {
|
|
216
|
+
const l = [U.navbar, o].filter(Boolean).join(" "), u = O.toArray(i).length > 0;
|
|
217
|
+
return /* @__PURE__ */ t("header", { ref: r, className: l, ...c, children: /* @__PURE__ */ f("div", { className: `${a ? U.fluid : "psi-container"} ${U.inner}`, children: [
|
|
218
|
+
e != null && /* @__PURE__ */ t("div", { className: U.brand, children: e }),
|
|
219
|
+
u && /* @__PURE__ */ t("nav", { className: U.links, "aria-label": s, children: i }),
|
|
220
|
+
n != null && /* @__PURE__ */ t("div", { className: U.actions, children: n })
|
|
221
221
|
] }) });
|
|
222
222
|
}
|
|
223
|
-
const
|
|
224
|
-
skipLink:
|
|
223
|
+
const Mn = "_skipLink_1fn0y_4", Wn = {
|
|
224
|
+
skipLink: Mn
|
|
225
225
|
};
|
|
226
|
-
function
|
|
227
|
-
const
|
|
228
|
-
return /* @__PURE__ */ t("a", { ref: n, className:
|
|
226
|
+
function di({ className: e, ref: n, children: i, ...s }) {
|
|
227
|
+
const a = [Wn.skipLink, e].filter(Boolean).join(" ");
|
|
228
|
+
return /* @__PURE__ */ t("a", { ref: n, className: a, ...s, children: i });
|
|
229
229
|
}
|
|
230
|
-
const
|
|
231
|
-
navTree:
|
|
230
|
+
const Pn = "_navTree_1ktoe_7", An = "_list_1ktoe_11", Rn = "_groupList_1ktoe_12", Hn = "_item_1ktoe_23", Vn = "_groupButton_1ktoe_79", On = "_groupLabel_1ktoe_108", Kn = "_chevron_1ktoe_112", R = {
|
|
231
|
+
navTree: Pn,
|
|
232
232
|
list: An,
|
|
233
|
-
groupList:
|
|
234
|
-
item:
|
|
235
|
-
groupButton:
|
|
236
|
-
groupLabel:
|
|
237
|
-
chevron:
|
|
233
|
+
groupList: Rn,
|
|
234
|
+
item: Hn,
|
|
235
|
+
groupButton: Vn,
|
|
236
|
+
groupLabel: On,
|
|
237
|
+
chevron: Kn
|
|
238
238
|
};
|
|
239
|
-
function
|
|
240
|
-
const
|
|
241
|
-
return /* @__PURE__ */ t("nav", { ref: i, className:
|
|
239
|
+
function ui({ children: e, className: n, ref: i, ...s }) {
|
|
240
|
+
const a = [R.navTree, n].filter(Boolean).join(" ");
|
|
241
|
+
return /* @__PURE__ */ t("nav", { ref: i, className: a, ...s, children: /* @__PURE__ */ t("ul", { className: R.list, children: e }) });
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Fn({ size: e = 20, ...n }) {
|
|
244
244
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "6 9 12 15 18 9" }) });
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
const
|
|
248
|
-
return /* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
246
|
+
function hi({ label: e, open: n, onOpenChange: i, children: s, className: a }) {
|
|
247
|
+
const o = P(), r = [R.group, a].filter(Boolean).join(" ");
|
|
248
|
+
return /* @__PURE__ */ f("li", { className: r, children: [
|
|
249
|
+
/* @__PURE__ */ f(
|
|
250
250
|
"button",
|
|
251
251
|
{
|
|
252
252
|
type: "button",
|
|
253
|
-
className:
|
|
253
|
+
className: R.groupButton,
|
|
254
254
|
"aria-expanded": n,
|
|
255
|
-
"aria-controls":
|
|
255
|
+
"aria-controls": o,
|
|
256
256
|
onClick: () => i(!n),
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */ t("span", { className:
|
|
259
|
-
/* @__PURE__ */ t(
|
|
258
|
+
/* @__PURE__ */ t("span", { className: R.groupLabel, children: e }),
|
|
259
|
+
/* @__PURE__ */ t(Fn, { size: 16, className: R.chevron, "aria-hidden": "true" })
|
|
260
260
|
]
|
|
261
261
|
}
|
|
262
262
|
),
|
|
263
|
-
/* @__PURE__ */ t("ul", { id:
|
|
263
|
+
/* @__PURE__ */ t("ul", { id: o, className: R.groupList, hidden: !n, children: s })
|
|
264
264
|
] });
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
268
|
-
return /* @__PURE__ */ t("li", { ref:
|
|
266
|
+
function _i({ children: e, href: n, current: i, className: s, ref: a, ...o }) {
|
|
267
|
+
const r = [R.item, s].filter(Boolean).join(" "), c = n === void 0 && i && Q(e) && e.type !== be ? e : null;
|
|
268
|
+
return /* @__PURE__ */ t("li", { ref: a, className: r, ...o, children: n !== void 0 ? /* @__PURE__ */ t("a", { href: n, "aria-current": i ? "page" : void 0, children: e }) : c ? fe(c, { "aria-current": "page" }) : e });
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
appShell:
|
|
272
|
-
sidebarClosed:
|
|
273
|
-
header:
|
|
274
|
-
sidebar:
|
|
275
|
-
main:
|
|
270
|
+
const Un = "_appShell_i1tds_10", Gn = "_sidebarClosed_i1tds_18", Yn = "_header_i1tds_22", Zn = "_sidebar_i1tds_18", Xn = "_main_i1tds_45", re = {
|
|
271
|
+
appShell: Un,
|
|
272
|
+
sidebarClosed: Gn,
|
|
273
|
+
header: Yn,
|
|
274
|
+
sidebar: Zn,
|
|
275
|
+
main: Xn
|
|
276
276
|
};
|
|
277
|
-
function
|
|
277
|
+
function fi({
|
|
278
278
|
skipLink: e,
|
|
279
279
|
header: n,
|
|
280
280
|
sidebar: i,
|
|
281
|
-
children:
|
|
282
|
-
sidebarOpen:
|
|
283
|
-
sidebarTheme:
|
|
284
|
-
sidebarId:
|
|
281
|
+
children: s,
|
|
282
|
+
sidebarOpen: a = !0,
|
|
283
|
+
sidebarTheme: o,
|
|
284
|
+
sidebarId: r = "sidebar",
|
|
285
285
|
mainId: c = "main",
|
|
286
|
-
className:
|
|
287
|
-
ref:
|
|
288
|
-
...
|
|
286
|
+
className: l,
|
|
287
|
+
ref: u,
|
|
288
|
+
...h
|
|
289
289
|
}) {
|
|
290
|
-
const
|
|
291
|
-
return /* @__PURE__ */
|
|
290
|
+
const d = a && i != null, _ = [re.appShell, !d && re.sidebarClosed, l].filter(Boolean).join(" ");
|
|
291
|
+
return /* @__PURE__ */ f("div", { ref: u, className: _, ...h, children: [
|
|
292
292
|
e,
|
|
293
|
-
n != null && /* @__PURE__ */ t("div", { className:
|
|
294
|
-
/* @__PURE__ */ t("div", { id:
|
|
295
|
-
/* @__PURE__ */ t("main", { id: c, className:
|
|
293
|
+
n != null && /* @__PURE__ */ t("div", { className: re.header, children: n }),
|
|
294
|
+
/* @__PURE__ */ t("div", { id: r, className: re.sidebar, hidden: !d, "data-psi-theme": o, children: i }),
|
|
295
|
+
/* @__PURE__ */ t("main", { id: c, className: re.main, tabIndex: -1, children: s })
|
|
296
296
|
] });
|
|
297
297
|
}
|
|
298
|
-
const
|
|
299
|
-
frame:
|
|
298
|
+
const Jn = "_frame_et4fc_1", Qn = {
|
|
299
|
+
frame: Jn
|
|
300
300
|
};
|
|
301
|
-
function
|
|
302
|
-
const
|
|
303
|
-
return /* @__PURE__ */ t("div", { ref:
|
|
304
|
-
}
|
|
305
|
-
const
|
|
306
|
-
field:
|
|
307
|
-
label:
|
|
308
|
-
marker:
|
|
309
|
-
requiredText:
|
|
310
|
-
message:
|
|
311
|
-
invalid:
|
|
312
|
-
},
|
|
313
|
-
function
|
|
301
|
+
function pi({ ratio: e, className: n, style: i, children: s, ref: a, ...o }) {
|
|
302
|
+
const r = [Qn.frame, n].filter(Boolean).join(" ");
|
|
303
|
+
return /* @__PURE__ */ t("div", { ref: a, className: r, style: { aspectRatio: String(e), ...i }, ...o, children: s });
|
|
304
|
+
}
|
|
305
|
+
const et = "_field_x989o_1", nt = "_label_x989o_10", tt = "_marker_x989o_19", rt = "_requiredText_x989o_25", ot = "_message_x989o_30", it = "_invalid_x989o_36", H = {
|
|
306
|
+
field: et,
|
|
307
|
+
label: nt,
|
|
308
|
+
marker: tt,
|
|
309
|
+
requiredText: rt,
|
|
310
|
+
message: ot,
|
|
311
|
+
invalid: it
|
|
312
|
+
}, ne = K(null);
|
|
313
|
+
function gi({
|
|
314
314
|
label: e,
|
|
315
315
|
description: n,
|
|
316
316
|
error: i,
|
|
317
|
-
required:
|
|
318
|
-
requiredText:
|
|
319
|
-
group:
|
|
320
|
-
htmlFor:
|
|
317
|
+
required: s = !1,
|
|
318
|
+
requiredText: a,
|
|
319
|
+
group: o = !1,
|
|
320
|
+
htmlFor: r,
|
|
321
321
|
announce: c = !0,
|
|
322
|
-
className:
|
|
323
|
-
children:
|
|
324
|
-
ref:
|
|
325
|
-
...
|
|
322
|
+
className: l,
|
|
323
|
+
children: u,
|
|
324
|
+
ref: h,
|
|
325
|
+
...d
|
|
326
326
|
}) {
|
|
327
|
-
const
|
|
327
|
+
const _ = P(), v = r ?? _, m = !!i, b = m ? i : n, x = b != null && b !== !1 ? `${v}-message` : void 0, j = e != null && !o ? `${v}-label` : void 0, L = [H.field, m && H.invalid, l].filter(Boolean).join(" "), z = e != null ? /* @__PURE__ */ f(he, { children: [
|
|
328
328
|
e,
|
|
329
|
-
|
|
329
|
+
s && (a !== void 0 ? /* @__PURE__ */ f("span", { "aria-hidden": "true", className: H.requiredText, children: [
|
|
330
330
|
" ",
|
|
331
|
-
|
|
332
|
-
] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
333
|
-
] }) : null,
|
|
334
|
-
|
|
335
|
-
/* @__PURE__ */ t(
|
|
336
|
-
|
|
331
|
+
a
|
|
332
|
+
] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: H.marker, children: " *" }))
|
|
333
|
+
] }) : null, y = /* @__PURE__ */ f(he, { children: [
|
|
334
|
+
z != null && (o ? /* @__PURE__ */ t("legend", { className: H.label, children: z }) : /* @__PURE__ */ t("label", { id: j, className: H.label, htmlFor: v, children: z })),
|
|
335
|
+
/* @__PURE__ */ t(ne.Provider, { value: { id: v, labelId: j, describedBy: x, invalid: m, required: s, group: o }, children: u }),
|
|
336
|
+
x && /* @__PURE__ */ t("p", { id: x, className: H.message, "aria-live": c ? "polite" : void 0, children: b })
|
|
337
337
|
] });
|
|
338
|
-
return
|
|
338
|
+
return o ? /* @__PURE__ */ t(
|
|
339
339
|
"fieldset",
|
|
340
340
|
{
|
|
341
|
-
ref:
|
|
342
|
-
className:
|
|
343
|
-
"aria-describedby":
|
|
344
|
-
...
|
|
345
|
-
children:
|
|
341
|
+
ref: h,
|
|
342
|
+
className: L,
|
|
343
|
+
"aria-describedby": x,
|
|
344
|
+
...d,
|
|
345
|
+
children: y
|
|
346
346
|
}
|
|
347
|
-
) : /* @__PURE__ */ t("div", { ref:
|
|
347
|
+
) : /* @__PURE__ */ t("div", { ref: h, className: L, ...d, children: y });
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
const e =
|
|
349
|
+
function vi() {
|
|
350
|
+
const e = B(ne);
|
|
351
351
|
return e ? {
|
|
352
352
|
id: e.id,
|
|
353
353
|
...e.labelId ? { "aria-labelledby": e.labelId } : {},
|
|
@@ -356,89 +356,89 @@ function oi() {
|
|
|
356
356
|
...e.required ? { "aria-required": !0, required: !0 } : {}
|
|
357
357
|
} : {};
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
return /* @__PURE__ */
|
|
359
|
+
function bi({ size: e = 20, ...n }) {
|
|
360
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
361
361
|
/* @__PURE__ */ t("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
|
|
362
362
|
/* @__PURE__ */ t("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
|
|
363
363
|
] });
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function mi({ size: e = 20, ...n }) {
|
|
366
366
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) });
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return /* @__PURE__ */
|
|
368
|
+
function ye({ size: e = 20, ...n }) {
|
|
369
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
370
370
|
/* @__PURE__ */ t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
371
371
|
/* @__PURE__ */ t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
372
372
|
] });
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function st({ size: e = 20, ...n }) {
|
|
375
375
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" }) });
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function at({ size: e = 20, ...n }) {
|
|
378
378
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" }) });
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function ct({ size: e = 20, ...n }) {
|
|
381
381
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "15 18 9 12 15 6" }) });
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return /* @__PURE__ */
|
|
383
|
+
function yi({ size: e = 20, ...n }) {
|
|
384
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
385
385
|
/* @__PURE__ */ t("circle", { cx: "11", cy: "11", r: "8" }),
|
|
386
386
|
/* @__PURE__ */ t("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
387
387
|
] });
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
return /* @__PURE__ */
|
|
389
|
+
function wi({ size: e = 20, ...n }) {
|
|
390
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
391
391
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" }),
|
|
392
392
|
/* @__PURE__ */ t("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
|
|
393
393
|
] });
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
return /* @__PURE__ */
|
|
395
|
+
function xi({ size: e = 20, ...n }) {
|
|
396
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
397
397
|
/* @__PURE__ */ t("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
398
398
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "7", r: "4" })
|
|
399
399
|
] });
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
return /* @__PURE__ */
|
|
401
|
+
function ki({ size: e = 20, ...n }) {
|
|
402
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
403
403
|
/* @__PURE__ */ t("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
404
404
|
/* @__PURE__ */ t("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
405
405
|
] });
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
return /* @__PURE__ */
|
|
407
|
+
function Ni({ size: e = 20, ...n }) {
|
|
408
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
409
409
|
/* @__PURE__ */ t("polyline", { points: "3 6 5 6 21 6" }),
|
|
410
410
|
/* @__PURE__ */ t("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
|
|
411
411
|
] });
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
return /* @__PURE__ */
|
|
413
|
+
function lt({ size: e = 20, ...n }) {
|
|
414
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
415
415
|
/* @__PURE__ */ t("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
416
416
|
/* @__PURE__ */ t("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
417
417
|
] });
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
return /* @__PURE__ */
|
|
419
|
+
function $i({ size: e = 20, ...n }) {
|
|
420
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
421
421
|
/* @__PURE__ */ t("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
|
|
422
422
|
/* @__PURE__ */ t("polyline", { points: "15 3 21 3 21 9" }),
|
|
423
423
|
/* @__PURE__ */ t("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
424
424
|
] });
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
return /* @__PURE__ */
|
|
426
|
+
function Bi({ size: e = 20, ...n }) {
|
|
427
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
428
428
|
/* @__PURE__ */ t("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
429
429
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" })
|
|
430
430
|
] });
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
return /* @__PURE__ */
|
|
432
|
+
function Li({ size: e = 20, ...n }) {
|
|
433
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
434
434
|
/* @__PURE__ */ t("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94" }),
|
|
435
435
|
/* @__PURE__ */ t("path", { d: "M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }),
|
|
436
436
|
/* @__PURE__ */ t("path", { d: "M14.12 14.12a3 3 0 1 1-4.24-4.24" }),
|
|
437
437
|
/* @__PURE__ */ t("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
|
|
438
438
|
] });
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
return /* @__PURE__ */
|
|
440
|
+
function Si({ size: e = 20, ...n }) {
|
|
441
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
442
442
|
/* @__PURE__ */ t("line", { x1: "12", y1: "2", x2: "12", y2: "6" }),
|
|
443
443
|
/* @__PURE__ */ t("line", { x1: "12", y1: "18", x2: "12", y2: "22" }),
|
|
444
444
|
/* @__PURE__ */ t("line", { x1: "4.93", y1: "4.93", x2: "7.76", y2: "7.76" }),
|
|
@@ -449,343 +449,468 @@ function fi({ size: e = 20, ...n }) {
|
|
|
449
449
|
/* @__PURE__ */ t("line", { x1: "16.24", y1: "7.76", x2: "19.07", y2: "4.93" })
|
|
450
450
|
] });
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
return /* @__PURE__ */
|
|
452
|
+
function Ci({ size: e = 20, ...n }) {
|
|
453
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
454
454
|
/* @__PURE__ */ t("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
|
|
455
455
|
/* @__PURE__ */ t("polyline", { points: "19 12 12 19 5 12" })
|
|
456
456
|
] });
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
return /* @__PURE__ */
|
|
458
|
+
function ji({ size: e = 20, ...n }) {
|
|
459
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
460
460
|
/* @__PURE__ */ t("line", { x1: "7", y1: "17", x2: "17", y2: "7" }),
|
|
461
461
|
/* @__PURE__ */ t("polyline", { points: "7 7 17 7 17 17" })
|
|
462
462
|
] });
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function zi({ size: e = 20, ...n }) {
|
|
465
465
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) });
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Ti({ size: e = 20, ...n }) {
|
|
468
468
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }) });
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Ii({ size: e = 20, ...n }) {
|
|
471
471
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" }) });
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
return /* @__PURE__ */
|
|
473
|
+
function qi({ size: e = 20, ...n }) {
|
|
474
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
475
475
|
/* @__PURE__ */ t("rect", { x: "2", y: "2", width: "20", height: "20", rx: "5", ry: "5" }),
|
|
476
476
|
/* @__PURE__ */ t("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
|
|
477
477
|
/* @__PURE__ */ t("line", { x1: "17.5", y1: "6.5", x2: "17.51", y2: "6.5" })
|
|
478
478
|
] });
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
return /* @__PURE__ */
|
|
480
|
+
function dt({ size: e = 20, ...n }) {
|
|
481
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
482
482
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
|
|
483
483
|
/* @__PURE__ */ t("line", { x1: "12", y1: "11", x2: "12", y2: "16" }),
|
|
484
484
|
/* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12", y2: "8" })
|
|
485
485
|
] });
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
return /* @__PURE__ */
|
|
487
|
+
function ut({ size: e = 20, ...n }) {
|
|
488
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
489
489
|
/* @__PURE__ */ t("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }),
|
|
490
490
|
/* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
491
491
|
/* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12", y2: "17" })
|
|
492
492
|
] });
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
return /* @__PURE__ */
|
|
494
|
+
function ht({ size: e = 20, ...n }) {
|
|
495
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
496
496
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
|
|
497
497
|
/* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
|
|
498
498
|
/* @__PURE__ */ t("line", { x1: "12", y1: "16", x2: "12", y2: "16" })
|
|
499
499
|
] });
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
return /* @__PURE__ */
|
|
501
|
+
function Ei({ size: e = 20, ...n }) {
|
|
502
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
503
503
|
/* @__PURE__ */ t("circle", { cx: "5", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
|
|
504
504
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
|
|
505
505
|
/* @__PURE__ */ t("circle", { cx: "19", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" })
|
|
506
506
|
] });
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
return /* @__PURE__ */
|
|
508
|
+
function Di({ size: e = 20, ...n }) {
|
|
509
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
510
510
|
/* @__PURE__ */ t("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
|
|
511
511
|
/* @__PURE__ */ t("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
|
|
512
512
|
/* @__PURE__ */ t("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
|
|
513
513
|
] });
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
return /* @__PURE__ */
|
|
515
|
+
function Mi({ size: e = 20, ...n }) {
|
|
516
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
517
517
|
/* @__PURE__ */ t("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
|
|
518
518
|
/* @__PURE__ */ t("polyline", { points: "16 17 21 12 16 7" }),
|
|
519
519
|
/* @__PURE__ */ t("line", { x1: "21", y1: "12", x2: "9", y2: "12" })
|
|
520
520
|
] });
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return /* @__PURE__ */
|
|
522
|
+
function Wi({ size: e = 20, ...n }) {
|
|
523
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
524
524
|
/* @__PURE__ */ t("path", { d: "M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z" }),
|
|
525
525
|
/* @__PURE__ */ t("rect", { x: "8", y: "11", width: "8", height: "7", rx: "1" }),
|
|
526
526
|
/* @__PURE__ */ t("line", { x1: "12", y1: "11", x2: "12", y2: "18" })
|
|
527
527
|
] });
|
|
528
528
|
}
|
|
529
|
-
const
|
|
530
|
-
dialog:
|
|
531
|
-
panel:
|
|
532
|
-
center:
|
|
533
|
-
inlineStart:
|
|
534
|
-
inlineEnd:
|
|
535
|
-
w400:
|
|
536
|
-
w560:
|
|
537
|
-
w720:
|
|
538
|
-
header:
|
|
539
|
-
title:
|
|
540
|
-
footer:
|
|
541
|
-
},
|
|
542
|
-
400:
|
|
543
|
-
560:
|
|
544
|
-
720:
|
|
545
|
-
},
|
|
546
|
-
center:
|
|
547
|
-
"inline-start":
|
|
548
|
-
"inline-end":
|
|
529
|
+
const _t = "_dialog_qg38y_2", ft = "_panel_qg38y_20", pt = "_center_qg38y_42", gt = "_inlineStart_qg38y_50", vt = "_inlineEnd_qg38y_51", bt = "_w400_qg38y_100", mt = "_w560_qg38y_101", yt = "_w720_qg38y_102", wt = "_header_qg38y_124", xt = "_title_qg38y_131", kt = "_footer_qg38y_137", q = {
|
|
530
|
+
dialog: _t,
|
|
531
|
+
panel: ft,
|
|
532
|
+
center: pt,
|
|
533
|
+
inlineStart: gt,
|
|
534
|
+
inlineEnd: vt,
|
|
535
|
+
w400: bt,
|
|
536
|
+
w560: mt,
|
|
537
|
+
w720: yt,
|
|
538
|
+
header: wt,
|
|
539
|
+
title: xt,
|
|
540
|
+
footer: kt
|
|
541
|
+
}, Nt = {
|
|
542
|
+
400: q.w400,
|
|
543
|
+
560: q.w560,
|
|
544
|
+
720: q.w720
|
|
545
|
+
}, $t = {
|
|
546
|
+
center: q.center,
|
|
547
|
+
"inline-start": q.inlineStart,
|
|
548
|
+
"inline-end": q.inlineEnd
|
|
549
549
|
};
|
|
550
|
-
function
|
|
550
|
+
function Pi({
|
|
551
551
|
open: e,
|
|
552
552
|
onClose: n,
|
|
553
553
|
title: i,
|
|
554
|
-
footer:
|
|
555
|
-
width:
|
|
556
|
-
placement:
|
|
557
|
-
dismissible:
|
|
558
|
-
|
|
554
|
+
footer: s,
|
|
555
|
+
width: a = 560,
|
|
556
|
+
placement: o = "center",
|
|
557
|
+
dismissible: r = !0,
|
|
558
|
+
closeOnEscape: c,
|
|
559
|
+
initialFocus: l,
|
|
560
|
+
closeLabel: u,
|
|
561
|
+
className: h,
|
|
559
562
|
children: d,
|
|
560
|
-
ref:
|
|
561
|
-
...
|
|
563
|
+
ref: _,
|
|
564
|
+
...v
|
|
562
565
|
}) {
|
|
563
|
-
const
|
|
564
|
-
|
|
566
|
+
const m = $(null), b = P(), x = (y) => {
|
|
567
|
+
m.current = y, typeof _ == "function" ? _(y) : _ && (_.current = y);
|
|
565
568
|
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
569
|
+
I(() => {
|
|
570
|
+
var A;
|
|
571
|
+
const y = m.current;
|
|
572
|
+
y && (e && !y.open ? (y.showModal(), (A = l == null ? void 0 : l.current) == null || A.focus()) : !e && y.open && y.close());
|
|
573
|
+
}, [e]), I(() => {
|
|
570
574
|
if (!e) return;
|
|
571
575
|
const y = document.body.style.overflow;
|
|
572
576
|
return document.body.style.overflow = "hidden", () => {
|
|
573
577
|
document.body.style.overflow = y;
|
|
574
578
|
};
|
|
575
579
|
}, [e]);
|
|
576
|
-
const
|
|
577
|
-
y.preventDefault(),
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
},
|
|
580
|
+
const j = (y) => {
|
|
581
|
+
y.preventDefault(), (c ?? r) && n("esc");
|
|
582
|
+
}, L = (y) => {
|
|
583
|
+
r && y.target === m.current && n("backdrop");
|
|
584
|
+
}, z = [q.dialog, Nt[a], $t[o], h].filter(Boolean).join(" ");
|
|
581
585
|
return /* @__PURE__ */ t(
|
|
582
586
|
"dialog",
|
|
583
587
|
{
|
|
584
|
-
ref:
|
|
585
|
-
className:
|
|
586
|
-
"data-placement":
|
|
587
|
-
"aria-labelledby": i != null ?
|
|
588
|
-
onCancel:
|
|
589
|
-
onClick:
|
|
590
|
-
...
|
|
591
|
-
children: /* @__PURE__ */
|
|
592
|
-
(i != null ||
|
|
593
|
-
i != null && /* @__PURE__ */ t("h2", { id:
|
|
594
|
-
|
|
595
|
-
|
|
588
|
+
ref: x,
|
|
589
|
+
className: z,
|
|
590
|
+
"data-placement": o,
|
|
591
|
+
"aria-labelledby": i != null ? b : void 0,
|
|
592
|
+
onCancel: j,
|
|
593
|
+
onClick: L,
|
|
594
|
+
...v,
|
|
595
|
+
children: /* @__PURE__ */ f("div", { className: q.panel, children: [
|
|
596
|
+
(i != null || r) && /* @__PURE__ */ f("div", { className: q.header, children: [
|
|
597
|
+
i != null && /* @__PURE__ */ t("h2", { id: b, className: q.title, children: i }),
|
|
598
|
+
r && (u != null ? /* @__PURE__ */ t(se, { variant: "ghost", size: 32, onClick: () => n("close-button"), children: u }) : /* @__PURE__ */ t(
|
|
599
|
+
ae,
|
|
596
600
|
{
|
|
597
601
|
variant: "ghost",
|
|
598
602
|
size: 32,
|
|
599
603
|
"aria-label": "Close dialog",
|
|
600
604
|
onClick: () => n("close-button"),
|
|
601
|
-
children: /* @__PURE__ */ t(
|
|
605
|
+
children: /* @__PURE__ */ t(ye, { "aria-hidden": "true" })
|
|
602
606
|
}
|
|
603
|
-
)
|
|
607
|
+
))
|
|
604
608
|
] }),
|
|
605
609
|
d,
|
|
606
|
-
|
|
610
|
+
s != null && /* @__PURE__ */ t("div", { className: q.footer, children: s })
|
|
607
611
|
] })
|
|
608
612
|
}
|
|
609
613
|
);
|
|
610
614
|
}
|
|
611
|
-
const
|
|
612
|
-
input:
|
|
613
|
-
size24:
|
|
614
|
-
size32:
|
|
615
|
-
size40:
|
|
616
|
-
size48:
|
|
617
|
-
error:
|
|
618
|
-
},
|
|
619
|
-
24:
|
|
620
|
-
32:
|
|
621
|
-
40:
|
|
622
|
-
48:
|
|
615
|
+
const Bt = "_input_pmr7w_3", Lt = "_size24_pmr7w_43", St = "_size32_pmr7w_49", Ct = "_size40_pmr7w_55", jt = "_size48_pmr7w_61", zt = "_error_pmr7w_69", Y = {
|
|
616
|
+
input: Bt,
|
|
617
|
+
size24: Lt,
|
|
618
|
+
size32: St,
|
|
619
|
+
size40: Ct,
|
|
620
|
+
size48: jt,
|
|
621
|
+
error: zt
|
|
622
|
+
}, Tt = {
|
|
623
|
+
24: Y.size24,
|
|
624
|
+
32: Y.size32,
|
|
625
|
+
40: Y.size40,
|
|
626
|
+
48: Y.size48
|
|
623
627
|
};
|
|
624
|
-
function
|
|
625
|
-
const
|
|
628
|
+
function Ai({ size: e = 32, error: n = !1, type: i = "text", className: s, ref: a, ...o }) {
|
|
629
|
+
const r = B(ne), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, u = [Y.input, Tt[e], c && Y.error, s].filter(Boolean).join(" ");
|
|
626
630
|
return /* @__PURE__ */ t(
|
|
627
631
|
"input",
|
|
628
632
|
{
|
|
629
|
-
ref:
|
|
630
|
-
className:
|
|
631
|
-
id:
|
|
632
|
-
required:
|
|
633
|
-
"aria-invalid": (
|
|
633
|
+
ref: a,
|
|
634
|
+
className: u,
|
|
635
|
+
id: o.id ?? (r == null ? void 0 : r.id),
|
|
636
|
+
required: o.required ?? ((r == null ? void 0 : r.required) || void 0),
|
|
637
|
+
"aria-invalid": (r == null ? void 0 : r.invalid) || void 0,
|
|
634
638
|
type: i,
|
|
635
|
-
...
|
|
636
|
-
"aria-describedby":
|
|
639
|
+
...o,
|
|
640
|
+
"aria-describedby": l
|
|
637
641
|
}
|
|
638
642
|
);
|
|
639
643
|
}
|
|
640
|
-
const
|
|
641
|
-
select:
|
|
642
|
-
size24:
|
|
643
|
-
size32:
|
|
644
|
-
size40:
|
|
645
|
-
size48:
|
|
646
|
-
error:
|
|
647
|
-
},
|
|
648
|
-
24:
|
|
649
|
-
32:
|
|
650
|
-
40:
|
|
651
|
-
48:
|
|
644
|
+
const It = "_select_1eqz1_3", qt = "_size24_1eqz1_57", Et = "_size32_1eqz1_67", Dt = "_size40_1eqz1_77", Mt = "_size48_1eqz1_87", Wt = "_error_1eqz1_99", Z = {
|
|
645
|
+
select: It,
|
|
646
|
+
size24: qt,
|
|
647
|
+
size32: Et,
|
|
648
|
+
size40: Dt,
|
|
649
|
+
size48: Mt,
|
|
650
|
+
error: Wt
|
|
651
|
+
}, Pt = {
|
|
652
|
+
24: Z.size24,
|
|
653
|
+
32: Z.size32,
|
|
654
|
+
40: Z.size40,
|
|
655
|
+
48: Z.size48
|
|
652
656
|
};
|
|
653
|
-
function
|
|
657
|
+
function Ri({
|
|
654
658
|
size: e = 32,
|
|
655
659
|
error: n = !1,
|
|
656
660
|
className: i,
|
|
657
|
-
ref:
|
|
658
|
-
children:
|
|
659
|
-
...
|
|
661
|
+
ref: s,
|
|
662
|
+
children: a,
|
|
663
|
+
...o
|
|
660
664
|
}) {
|
|
661
|
-
const
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
c &&
|
|
665
|
+
const r = B(ne), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, u = [
|
|
666
|
+
Z.select,
|
|
667
|
+
Pt[e],
|
|
668
|
+
c && Z.error,
|
|
665
669
|
i
|
|
666
670
|
].filter(Boolean).join(" ");
|
|
667
671
|
return /* @__PURE__ */ t(
|
|
668
672
|
"select",
|
|
669
673
|
{
|
|
670
|
-
ref:
|
|
671
|
-
className:
|
|
672
|
-
id:
|
|
673
|
-
required:
|
|
674
|
-
"aria-invalid": (
|
|
675
|
-
...
|
|
676
|
-
"aria-describedby":
|
|
677
|
-
children:
|
|
674
|
+
ref: s,
|
|
675
|
+
className: u,
|
|
676
|
+
id: o.id ?? (r == null ? void 0 : r.id),
|
|
677
|
+
required: o.required ?? ((r == null ? void 0 : r.required) || void 0),
|
|
678
|
+
"aria-invalid": (r == null ? void 0 : r.invalid) || void 0,
|
|
679
|
+
...o,
|
|
680
|
+
"aria-describedby": l,
|
|
681
|
+
children: a
|
|
678
682
|
}
|
|
679
683
|
);
|
|
680
684
|
}
|
|
681
|
-
const At = "
|
|
685
|
+
const At = "_label_eo049_3", Rt = "_disabled_eo049_13", Ht = "_indicator_eo049_26", Vt = "_input_eo049_42", Ot = "_text_eo049_90", oe = {
|
|
682
686
|
label: At,
|
|
683
|
-
disabled:
|
|
684
|
-
indicator:
|
|
685
|
-
input:
|
|
686
|
-
text:
|
|
687
|
+
disabled: Rt,
|
|
688
|
+
indicator: Ht,
|
|
689
|
+
input: Vt,
|
|
690
|
+
text: Ot
|
|
687
691
|
};
|
|
688
|
-
function
|
|
692
|
+
function Te({
|
|
689
693
|
children: e,
|
|
690
694
|
className: n,
|
|
691
695
|
disabled: i,
|
|
696
|
+
indeterminate: s,
|
|
692
697
|
ref: a,
|
|
693
|
-
...
|
|
698
|
+
...o
|
|
694
699
|
}) {
|
|
695
|
-
const r =
|
|
696
|
-
|
|
700
|
+
const r = $(null), c = (u) => {
|
|
701
|
+
r.current = u, typeof a == "function" ? a(u) : a && (a.current = u);
|
|
702
|
+
};
|
|
703
|
+
ze(() => {
|
|
704
|
+
s !== void 0 && r.current && (r.current.indeterminate = s);
|
|
705
|
+
});
|
|
706
|
+
const l = [oe.label, i && oe.disabled, n].filter(Boolean).join(" ");
|
|
707
|
+
return /* @__PURE__ */ f("label", { className: l, children: [
|
|
697
708
|
/* @__PURE__ */ t(
|
|
698
709
|
"input",
|
|
699
710
|
{
|
|
700
|
-
ref:
|
|
711
|
+
ref: c,
|
|
701
712
|
type: "checkbox",
|
|
702
|
-
className: `psi-sr-only ${
|
|
713
|
+
className: `psi-sr-only ${oe.input}`,
|
|
703
714
|
disabled: i,
|
|
704
|
-
...
|
|
715
|
+
...o
|
|
705
716
|
}
|
|
706
717
|
),
|
|
707
|
-
/* @__PURE__ */ t("span", { className:
|
|
708
|
-
e && /* @__PURE__ */ t("span", { className:
|
|
718
|
+
/* @__PURE__ */ t("span", { className: oe.indicator, "aria-hidden": "true" }),
|
|
719
|
+
e && /* @__PURE__ */ t("span", { className: oe.text, children: e })
|
|
709
720
|
] });
|
|
710
721
|
}
|
|
711
|
-
const
|
|
712
|
-
label:
|
|
713
|
-
disabled:
|
|
714
|
-
track:
|
|
715
|
-
input:
|
|
716
|
-
thumb:
|
|
717
|
-
text:
|
|
722
|
+
const Kt = "_label_yv464_3", Ft = "_disabled_yv464_13", Ut = "_track_yv464_26", Gt = "_input_yv464_38", Yt = "_thumb_yv464_50", Zt = "_text_yv464_67", G = {
|
|
723
|
+
label: Kt,
|
|
724
|
+
disabled: Ft,
|
|
725
|
+
track: Ut,
|
|
726
|
+
input: Gt,
|
|
727
|
+
thumb: Yt,
|
|
728
|
+
text: Zt
|
|
718
729
|
};
|
|
719
|
-
function
|
|
730
|
+
function Hi({
|
|
720
731
|
children: e,
|
|
721
732
|
className: n,
|
|
722
733
|
disabled: i,
|
|
723
|
-
ref:
|
|
724
|
-
...
|
|
734
|
+
ref: s,
|
|
735
|
+
...a
|
|
725
736
|
}) {
|
|
726
|
-
const
|
|
727
|
-
return /* @__PURE__ */
|
|
737
|
+
const o = [G.label, i && G.disabled, n].filter(Boolean).join(" ");
|
|
738
|
+
return /* @__PURE__ */ f("label", { className: o, children: [
|
|
728
739
|
/* @__PURE__ */ t(
|
|
729
740
|
"input",
|
|
730
741
|
{
|
|
731
|
-
ref:
|
|
742
|
+
ref: s,
|
|
732
743
|
type: "checkbox",
|
|
733
744
|
role: "switch",
|
|
734
|
-
className: `psi-sr-only ${
|
|
745
|
+
className: `psi-sr-only ${G.input}`,
|
|
735
746
|
disabled: i,
|
|
736
|
-
...
|
|
747
|
+
...a
|
|
737
748
|
}
|
|
738
749
|
),
|
|
739
|
-
/* @__PURE__ */ t("span", { className:
|
|
740
|
-
e && /* @__PURE__ */ t("span", { className:
|
|
750
|
+
/* @__PURE__ */ t("span", { className: G.track, "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: G.thumb }) }),
|
|
751
|
+
e && /* @__PURE__ */ t("span", { className: G.text, children: e })
|
|
741
752
|
] });
|
|
742
753
|
}
|
|
743
|
-
const
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
success: Jt,
|
|
749
|
-
warning: Qt,
|
|
750
|
-
danger: eo,
|
|
751
|
-
neutralSubtle: no,
|
|
752
|
-
accentSubtle: to,
|
|
753
|
-
successSubtle: oo,
|
|
754
|
-
warningSubtle: ro,
|
|
755
|
-
dangerSubtle: io
|
|
756
|
-
}, so = {
|
|
757
|
-
neutral: S.neutral,
|
|
758
|
-
accent: S.accent,
|
|
759
|
-
success: S.success,
|
|
760
|
-
warning: S.warning,
|
|
761
|
-
danger: S.danger
|
|
762
|
-
}, ao = {
|
|
763
|
-
neutral: S.neutralSubtle,
|
|
764
|
-
accent: S.accentSubtle,
|
|
765
|
-
success: S.successSubtle,
|
|
766
|
-
warning: S.warningSubtle,
|
|
767
|
-
danger: S.dangerSubtle
|
|
754
|
+
const Xt = "_wrap_1twws_6", Jt = "_textarea_1twws_11", Qt = "_error_1twws_49", er = "_counter_1twws_55", de = {
|
|
755
|
+
wrap: Xt,
|
|
756
|
+
textarea: Jt,
|
|
757
|
+
error: Qt,
|
|
758
|
+
counter: er
|
|
768
759
|
};
|
|
769
|
-
function
|
|
760
|
+
function Vi({
|
|
761
|
+
rows: e = 3,
|
|
762
|
+
error: n = !1,
|
|
763
|
+
showCounter: i = !0,
|
|
764
|
+
maxLength: s,
|
|
765
|
+
className: a,
|
|
766
|
+
onChange: o,
|
|
767
|
+
ref: r,
|
|
768
|
+
...c
|
|
769
|
+
}) {
|
|
770
|
+
const l = B(ne), u = `${P()}-counter`, h = n || ((l == null ? void 0 : l.invalid) ?? !1), d = c.value !== void 0, [_, v] = ee(() => String(c.defaultValue ?? "").length), m = d ? String(c.value ?? "").length : _, b = s !== void 0 && i, x = [l == null ? void 0 : l.describedBy, b ? u : void 0, c["aria-describedby"]].filter(Boolean).join(" ") || void 0, j = [de.textarea, h && de.error, a].filter(Boolean).join(" "), L = (y) => {
|
|
771
|
+
d || v(y.target.value.length), o == null || o(y);
|
|
772
|
+
}, z = /* @__PURE__ */ t(
|
|
773
|
+
"textarea",
|
|
774
|
+
{
|
|
775
|
+
ref: r,
|
|
776
|
+
className: j,
|
|
777
|
+
rows: e,
|
|
778
|
+
maxLength: s,
|
|
779
|
+
id: c.id ?? (l == null ? void 0 : l.id),
|
|
780
|
+
required: c.required ?? ((l == null ? void 0 : l.required) || void 0),
|
|
781
|
+
"aria-invalid": (l == null ? void 0 : l.invalid) || void 0,
|
|
782
|
+
...c,
|
|
783
|
+
onChange: L,
|
|
784
|
+
"aria-describedby": x
|
|
785
|
+
}
|
|
786
|
+
);
|
|
787
|
+
return b ? /* @__PURE__ */ f("div", { className: de.wrap, children: [
|
|
788
|
+
z,
|
|
789
|
+
/* @__PURE__ */ f("div", { id: u, className: de.counter, "data-psi-textarea-counter": !0, children: [
|
|
790
|
+
m,
|
|
791
|
+
" / ",
|
|
792
|
+
s,
|
|
793
|
+
/* @__PURE__ */ t("span", { className: "psi-sr-only", children: " characters" })
|
|
794
|
+
] })
|
|
795
|
+
] }) : z;
|
|
796
|
+
}
|
|
797
|
+
const nr = "_group_1bv98_5", tr = "_horizontal_1bv98_12", rr = "_label_1bv98_18", or = "_disabled_1bv98_28", ir = "_circle_1bv98_35", sr = "_input_1bv98_51", ar = "_text_1bv98_73", V = {
|
|
798
|
+
group: nr,
|
|
799
|
+
horizontal: tr,
|
|
800
|
+
label: rr,
|
|
801
|
+
disabled: or,
|
|
802
|
+
circle: ir,
|
|
803
|
+
input: sr,
|
|
804
|
+
text: ar
|
|
805
|
+
}, Ie = K(null);
|
|
806
|
+
function Oi({
|
|
807
|
+
children: e,
|
|
808
|
+
name: n,
|
|
809
|
+
value: i,
|
|
810
|
+
defaultValue: s,
|
|
811
|
+
onValueChange: a,
|
|
812
|
+
disabled: o = !1,
|
|
813
|
+
orientation: r = "vertical",
|
|
814
|
+
className: c,
|
|
815
|
+
ref: l,
|
|
816
|
+
...u
|
|
817
|
+
}) {
|
|
818
|
+
const h = B(ne), d = P(), [_, v] = ee(s), m = i !== void 0 ? i : _, b = (h == null ? void 0 : h.group) === !0, x = (L) => {
|
|
819
|
+
i === void 0 && v(L), a == null || a(L);
|
|
820
|
+
}, j = [V.group, r === "horizontal" && V.horizontal, c].filter(Boolean).join(" ");
|
|
821
|
+
return /* @__PURE__ */ t(
|
|
822
|
+
"div",
|
|
823
|
+
{
|
|
824
|
+
...u,
|
|
825
|
+
ref: l,
|
|
826
|
+
className: j,
|
|
827
|
+
role: b ? void 0 : "radiogroup",
|
|
828
|
+
"data-psi-radio-group": !0,
|
|
829
|
+
children: /* @__PURE__ */ t(
|
|
830
|
+
Ie.Provider,
|
|
831
|
+
{
|
|
832
|
+
value: {
|
|
833
|
+
name: n ?? d,
|
|
834
|
+
value: m,
|
|
835
|
+
select: x,
|
|
836
|
+
disabled: o,
|
|
837
|
+
required: (h == null ? void 0 : h.required) ?? !1,
|
|
838
|
+
invalid: (h == null ? void 0 : h.invalid) ?? !1
|
|
839
|
+
},
|
|
840
|
+
children: e
|
|
841
|
+
}
|
|
842
|
+
)
|
|
843
|
+
}
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
function Ki({ value: e, children: n, disabled: i, className: s, ref: a }) {
|
|
847
|
+
const o = B(Ie), r = i || (o == null ? void 0 : o.disabled) || !1, c = [V.label, r && V.disabled, s].filter(Boolean).join(" ");
|
|
848
|
+
return /* @__PURE__ */ f("label", { className: c, children: [
|
|
849
|
+
/* @__PURE__ */ t(
|
|
850
|
+
"input",
|
|
851
|
+
{
|
|
852
|
+
ref: a,
|
|
853
|
+
type: "radio",
|
|
854
|
+
className: `psi-sr-only ${V.input}`,
|
|
855
|
+
name: o == null ? void 0 : o.name,
|
|
856
|
+
value: e,
|
|
857
|
+
checked: o ? o.value === e : void 0,
|
|
858
|
+
onChange: () => o == null ? void 0 : o.select(e),
|
|
859
|
+
disabled: r,
|
|
860
|
+
required: (o == null ? void 0 : o.required) || void 0,
|
|
861
|
+
"aria-invalid": (o == null ? void 0 : o.invalid) || void 0
|
|
862
|
+
}
|
|
863
|
+
),
|
|
864
|
+
/* @__PURE__ */ t("span", { className: V.circle, "aria-hidden": "true" }),
|
|
865
|
+
n && /* @__PURE__ */ t("span", { className: V.text, children: n })
|
|
866
|
+
] });
|
|
867
|
+
}
|
|
868
|
+
const cr = "_tag_1r2xw_3", lr = "_dismiss_1r2xw_17", dr = "_neutral_1r2xw_43", ur = "_accent_1r2xw_48", hr = "_success_1r2xw_53", _r = "_warning_1r2xw_58", fr = "_danger_1r2xw_63", pr = "_neutralSubtle_1r2xw_70", gr = "_accentSubtle_1r2xw_75", vr = "_successSubtle_1r2xw_80", br = "_warningSubtle_1r2xw_85", mr = "_dangerSubtle_1r2xw_90", T = {
|
|
869
|
+
tag: cr,
|
|
870
|
+
dismiss: lr,
|
|
871
|
+
neutral: dr,
|
|
872
|
+
accent: ur,
|
|
873
|
+
success: hr,
|
|
874
|
+
warning: _r,
|
|
875
|
+
danger: fr,
|
|
876
|
+
neutralSubtle: pr,
|
|
877
|
+
accentSubtle: gr,
|
|
878
|
+
successSubtle: vr,
|
|
879
|
+
warningSubtle: br,
|
|
880
|
+
dangerSubtle: mr
|
|
881
|
+
}, yr = {
|
|
882
|
+
neutral: T.neutral,
|
|
883
|
+
accent: T.accent,
|
|
884
|
+
success: T.success,
|
|
885
|
+
warning: T.warning,
|
|
886
|
+
danger: T.danger
|
|
887
|
+
}, wr = {
|
|
888
|
+
neutral: T.neutralSubtle,
|
|
889
|
+
accent: T.accentSubtle,
|
|
890
|
+
success: T.successSubtle,
|
|
891
|
+
warning: T.warningSubtle,
|
|
892
|
+
danger: T.dangerSubtle
|
|
893
|
+
};
|
|
894
|
+
function Fi({
|
|
770
895
|
variant: e = "neutral",
|
|
771
896
|
subtle: n = !1,
|
|
772
897
|
onDismiss: i,
|
|
773
|
-
className:
|
|
774
|
-
children:
|
|
775
|
-
ref:
|
|
776
|
-
...
|
|
898
|
+
className: s,
|
|
899
|
+
children: a,
|
|
900
|
+
ref: o,
|
|
901
|
+
...r
|
|
777
902
|
}) {
|
|
778
|
-
const c = n ?
|
|
779
|
-
return /* @__PURE__ */
|
|
780
|
-
|
|
903
|
+
const c = n ? wr : yr, l = [T.tag, c[e], s].filter(Boolean).join(" ");
|
|
904
|
+
return /* @__PURE__ */ f("span", { ref: o, className: l, ...r, children: [
|
|
905
|
+
a,
|
|
781
906
|
i && /* @__PURE__ */ t(
|
|
782
907
|
"button",
|
|
783
908
|
{
|
|
784
909
|
type: "button",
|
|
785
|
-
className:
|
|
910
|
+
className: T.dismiss,
|
|
786
911
|
onClick: i,
|
|
787
912
|
"aria-label": "Dismiss",
|
|
788
|
-
children: /* @__PURE__ */
|
|
913
|
+
children: /* @__PURE__ */ f(
|
|
789
914
|
"svg",
|
|
790
915
|
{
|
|
791
916
|
width: "12",
|
|
@@ -807,255 +932,268 @@ function Si({
|
|
|
807
932
|
)
|
|
808
933
|
] });
|
|
809
934
|
}
|
|
810
|
-
const
|
|
811
|
-
wrapper:
|
|
812
|
-
tooltip:
|
|
813
|
-
top:
|
|
814
|
-
bottom:
|
|
815
|
-
left:
|
|
816
|
-
right:
|
|
817
|
-
},
|
|
818
|
-
top:
|
|
819
|
-
bottom:
|
|
820
|
-
left:
|
|
821
|
-
right:
|
|
822
|
-
},
|
|
823
|
-
function
|
|
935
|
+
const xr = "_wrapper_1eu6z_3", kr = "_tooltip_1eu6z_10", Nr = "_top_1eu6z_24", $r = "_bottom_1eu6z_31", Br = "_left_1eu6z_38", Lr = "_right_1eu6z_45", X = {
|
|
936
|
+
wrapper: xr,
|
|
937
|
+
tooltip: kr,
|
|
938
|
+
top: Nr,
|
|
939
|
+
bottom: $r,
|
|
940
|
+
left: Br,
|
|
941
|
+
right: Lr
|
|
942
|
+
}, Sr = {
|
|
943
|
+
top: X.top,
|
|
944
|
+
bottom: X.bottom,
|
|
945
|
+
left: X.left,
|
|
946
|
+
right: X.right
|
|
947
|
+
}, Cr = 150;
|
|
948
|
+
function Ui({
|
|
824
949
|
content: e,
|
|
825
950
|
children: n,
|
|
826
951
|
placement: i = "top"
|
|
827
952
|
}) {
|
|
828
|
-
const [
|
|
829
|
-
|
|
830
|
-
}, []),
|
|
831
|
-
|
|
832
|
-
if (!
|
|
833
|
-
const
|
|
834
|
-
|
|
953
|
+
const [s, a] = ee(!1), o = P(), r = $(void 0), c = k(() => {
|
|
954
|
+
r.current !== void 0 && (window.clearTimeout(r.current), r.current = void 0);
|
|
955
|
+
}, []), l = k(() => a(!0), []), u = k(() => a(!1), []);
|
|
956
|
+
I(() => c, [c]), I(() => {
|
|
957
|
+
if (!s) return;
|
|
958
|
+
const d = (_) => {
|
|
959
|
+
_.key === "Escape" && u();
|
|
835
960
|
};
|
|
836
|
-
return document.addEventListener("keydown",
|
|
837
|
-
}, [
|
|
838
|
-
const
|
|
839
|
-
"aria-describedby":
|
|
840
|
-
onMouseEnter: (
|
|
841
|
-
c(),
|
|
842
|
-
const
|
|
843
|
-
|
|
961
|
+
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
962
|
+
}, [s, u]);
|
|
963
|
+
const h = fe(n, {
|
|
964
|
+
"aria-describedby": s ? o : void 0,
|
|
965
|
+
onMouseEnter: (d) => {
|
|
966
|
+
c(), r.current = window.setTimeout(l, Cr);
|
|
967
|
+
const _ = n.props.onMouseEnter;
|
|
968
|
+
_ == null || _(d);
|
|
844
969
|
},
|
|
845
|
-
onMouseLeave: (
|
|
846
|
-
c(),
|
|
847
|
-
const
|
|
848
|
-
|
|
970
|
+
onMouseLeave: (d) => {
|
|
971
|
+
c(), u();
|
|
972
|
+
const _ = n.props.onMouseLeave;
|
|
973
|
+
_ == null || _(d);
|
|
849
974
|
},
|
|
850
|
-
onFocus: (
|
|
851
|
-
|
|
852
|
-
const
|
|
853
|
-
|
|
975
|
+
onFocus: (d) => {
|
|
976
|
+
l();
|
|
977
|
+
const _ = n.props.onFocus;
|
|
978
|
+
_ == null || _(d);
|
|
854
979
|
},
|
|
855
|
-
onBlur: (
|
|
856
|
-
c(),
|
|
857
|
-
const
|
|
858
|
-
|
|
980
|
+
onBlur: (d) => {
|
|
981
|
+
c(), u();
|
|
982
|
+
const _ = n.props.onBlur;
|
|
983
|
+
_ == null || _(d);
|
|
859
984
|
}
|
|
860
985
|
});
|
|
861
|
-
return /* @__PURE__ */
|
|
862
|
-
|
|
863
|
-
|
|
986
|
+
return /* @__PURE__ */ f("span", { className: X.wrapper, children: [
|
|
987
|
+
h,
|
|
988
|
+
s && /* @__PURE__ */ t(
|
|
864
989
|
"span",
|
|
865
990
|
{
|
|
866
|
-
id:
|
|
991
|
+
id: o,
|
|
867
992
|
role: "tooltip",
|
|
868
|
-
className: [
|
|
993
|
+
className: [X.tooltip, Sr[i]].filter(Boolean).join(" "),
|
|
869
994
|
children: e
|
|
870
995
|
}
|
|
871
996
|
)
|
|
872
997
|
] });
|
|
873
998
|
}
|
|
874
|
-
const
|
|
875
|
-
toolbar:
|
|
876
|
-
gap8:
|
|
877
|
-
gap12:
|
|
878
|
-
gap16:
|
|
879
|
-
alignEnd:
|
|
880
|
-
alignStart:
|
|
881
|
-
},
|
|
999
|
+
const jr = "_toolbar_8bwkv_1", zr = "_gap8_8bwkv_7", Tr = "_gap12_8bwkv_8", Ir = "_gap16_8bwkv_9", qr = "_alignEnd_8bwkv_13", Er = "_alignStart_8bwkv_19", J = {
|
|
1000
|
+
toolbar: jr,
|
|
1001
|
+
gap8: zr,
|
|
1002
|
+
gap12: Tr,
|
|
1003
|
+
gap16: Ir,
|
|
1004
|
+
alignEnd: qr,
|
|
1005
|
+
alignStart: Er
|
|
1006
|
+
}, Dr = { 8: J.gap8, 12: J.gap12, 16: J.gap16 }, Mr = {
|
|
882
1007
|
center: void 0,
|
|
883
|
-
end:
|
|
884
|
-
start:
|
|
1008
|
+
end: J.alignEnd,
|
|
1009
|
+
start: J.alignStart
|
|
885
1010
|
};
|
|
886
|
-
function
|
|
887
|
-
const c = [
|
|
888
|
-
return i === "form" ? /* @__PURE__ */ t("form", { ref:
|
|
1011
|
+
function Gi({ gap: e = 8, align: n = "center", as: i = "div", className: s, children: a, ref: o, ...r }) {
|
|
1012
|
+
const c = [J.toolbar, Dr[e], Mr[n], s].filter(Boolean).join(" ");
|
|
1013
|
+
return i === "form" ? /* @__PURE__ */ t("form", { ref: o, className: c, ...r, children: a }) : /* @__PURE__ */ t(
|
|
889
1014
|
"div",
|
|
890
1015
|
{
|
|
891
|
-
ref:
|
|
892
|
-
role:
|
|
1016
|
+
ref: o,
|
|
1017
|
+
role: r["aria-label"] != null ? "group" : void 0,
|
|
893
1018
|
className: c,
|
|
894
|
-
...
|
|
895
|
-
children:
|
|
1019
|
+
...r,
|
|
1020
|
+
children: a
|
|
896
1021
|
}
|
|
897
1022
|
);
|
|
898
1023
|
}
|
|
899
|
-
const
|
|
900
|
-
trigger:
|
|
901
|
-
menu:
|
|
902
|
-
item:
|
|
903
|
-
text:
|
|
904
|
-
separator:
|
|
905
|
-
},
|
|
906
|
-
function
|
|
907
|
-
const
|
|
908
|
-
const
|
|
909
|
-
return
|
|
910
|
-
|
|
1024
|
+
const Wr = "_trigger_pivae_4", Pr = "_menu_pivae_16", Ar = "_item_pivae_37", Rr = "_text_pivae_85", Hr = "_separator_pivae_93", ce = {
|
|
1025
|
+
trigger: Wr,
|
|
1026
|
+
menu: Pr,
|
|
1027
|
+
item: Ar,
|
|
1028
|
+
text: Rr,
|
|
1029
|
+
separator: Hr
|
|
1030
|
+
}, Vr = 500;
|
|
1031
|
+
function Or({ popoverRef: e, triggerRef: n, open: i, openAtRef: s, onEsc: a, onTab: o }) {
|
|
1032
|
+
const r = $(""), c = $(0), l = k(() => {
|
|
1033
|
+
const d = e.current;
|
|
1034
|
+
return d ? Array.from(
|
|
1035
|
+
d.querySelectorAll('[data-psi-menu-item]:not([aria-disabled="true"])')
|
|
911
1036
|
) : [];
|
|
912
|
-
}, [e]),
|
|
913
|
-
(
|
|
914
|
-
if (
|
|
915
|
-
for (const
|
|
916
|
-
|
|
1037
|
+
}, [e]), u = k(
|
|
1038
|
+
(d) => {
|
|
1039
|
+
if (d) {
|
|
1040
|
+
for (const _ of l()) _.tabIndex = _ === d ? 0 : -1;
|
|
1041
|
+
d.focus();
|
|
917
1042
|
}
|
|
918
1043
|
},
|
|
919
|
-
[
|
|
920
|
-
),
|
|
921
|
-
var
|
|
922
|
-
const
|
|
923
|
-
|
|
1044
|
+
[l]
|
|
1045
|
+
), h = k(() => {
|
|
1046
|
+
var _;
|
|
1047
|
+
const d = (_ = n.current) == null ? void 0 : _.querySelector("button, a, [tabindex]");
|
|
1048
|
+
d == null || d.focus();
|
|
924
1049
|
}, [n]);
|
|
925
|
-
return
|
|
1050
|
+
return I(() => {
|
|
926
1051
|
if (!i) return;
|
|
927
|
-
const l =
|
|
928
|
-
return
|
|
929
|
-
var
|
|
930
|
-
(
|
|
1052
|
+
const d = l(), _ = (s == null ? void 0 : s.current) === "last";
|
|
1053
|
+
return s && (s.current = "first"), u(_ ? d[d.length - 1] : d[0]), () => {
|
|
1054
|
+
var v;
|
|
1055
|
+
(v = e.current) != null && v.contains(document.activeElement) && h();
|
|
931
1056
|
};
|
|
932
|
-
}, [i, e,
|
|
933
|
-
(
|
|
934
|
-
if (
|
|
935
|
-
|
|
1057
|
+
}, [i, e, s, l, u, h]), k(
|
|
1058
|
+
(d) => {
|
|
1059
|
+
if (d.key === "Escape") {
|
|
1060
|
+
d.preventDefault(), a();
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
if (d.key === "Tab") {
|
|
1064
|
+
o == null || o();
|
|
936
1065
|
return;
|
|
937
1066
|
}
|
|
938
|
-
const
|
|
939
|
-
if (
|
|
940
|
-
const
|
|
941
|
-
switch (
|
|
1067
|
+
const _ = l();
|
|
1068
|
+
if (_.length === 0) return;
|
|
1069
|
+
const v = _.indexOf(document.activeElement);
|
|
1070
|
+
switch (d.key) {
|
|
942
1071
|
case "ArrowDown":
|
|
943
|
-
|
|
1072
|
+
d.preventDefault(), u(_[(v + 1 + _.length) % _.length]);
|
|
944
1073
|
return;
|
|
945
1074
|
case "ArrowUp":
|
|
946
|
-
|
|
1075
|
+
d.preventDefault(), u(_[v <= 0 ? _.length - 1 : v - 1]);
|
|
947
1076
|
return;
|
|
948
1077
|
case "Home":
|
|
949
|
-
|
|
1078
|
+
d.preventDefault(), u(_[0]);
|
|
950
1079
|
return;
|
|
951
1080
|
case "End":
|
|
952
|
-
|
|
1081
|
+
d.preventDefault(), u(_[_.length - 1]);
|
|
953
1082
|
return;
|
|
954
1083
|
}
|
|
955
|
-
if (
|
|
956
|
-
const
|
|
957
|
-
|
|
958
|
-
const
|
|
959
|
-
(
|
|
1084
|
+
if (d.key.length !== 1 || d.metaKey || d.ctrlKey || d.altKey) return;
|
|
1085
|
+
const m = Date.now();
|
|
1086
|
+
r.current = m - c.current > Vr ? d.key.toLowerCase() : r.current + d.key.toLowerCase(), c.current = m;
|
|
1087
|
+
const b = _.find(
|
|
1088
|
+
(x) => (x.textContent ?? "").trim().toLowerCase().startsWith(r.current)
|
|
960
1089
|
);
|
|
961
|
-
|
|
1090
|
+
b && (d.preventDefault(), u(b));
|
|
962
1091
|
},
|
|
963
|
-
[
|
|
1092
|
+
[l, u, a, o]
|
|
964
1093
|
);
|
|
965
1094
|
}
|
|
966
|
-
function
|
|
1095
|
+
function Kr() {
|
|
967
1096
|
return typeof CSS < "u" && CSS.supports("anchor-name", "--x");
|
|
968
1097
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
971
|
-
const
|
|
972
|
-
!
|
|
973
|
-
}, [e, n,
|
|
974
|
-
if (!i ||
|
|
975
|
-
const
|
|
976
|
-
if (!
|
|
1098
|
+
function Fr({ popoverRef: e, triggerRef: n, open: i, placement: s, anchorName: a }) {
|
|
1099
|
+
I(() => {
|
|
1100
|
+
const o = n.current, r = e.current;
|
|
1101
|
+
!o || !r || (o.style.setProperty("anchor-name", a), r.style.setProperty("position-anchor", a));
|
|
1102
|
+
}, [e, n, a]), I(() => {
|
|
1103
|
+
if (!i || Kr()) return;
|
|
1104
|
+
const o = n.current, r = e.current;
|
|
1105
|
+
if (!o || !r) return;
|
|
977
1106
|
const c = () => {
|
|
978
|
-
const
|
|
979
|
-
|
|
1107
|
+
const l = o.getBoundingClientRect(), u = s.startsWith("bottom"), h = s.endsWith("end"), d = getComputedStyle(o).direction === "rtl", _ = h !== d;
|
|
1108
|
+
r.style.position = "fixed", r.style.top = u ? `${l.bottom}px` : "", r.style.bottom = u ? "" : `${window.innerHeight - l.top}px`, r.style.left = _ ? "" : `${l.left}px`, r.style.right = _ ? `${window.innerWidth - l.right}px` : "";
|
|
980
1109
|
};
|
|
981
1110
|
return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), () => {
|
|
982
1111
|
window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c);
|
|
983
1112
|
};
|
|
984
|
-
}, [i,
|
|
1113
|
+
}, [i, s, e, n]);
|
|
985
1114
|
}
|
|
986
|
-
const
|
|
1115
|
+
const qe = K({ close: () => {
|
|
987
1116
|
} });
|
|
988
|
-
function
|
|
1117
|
+
function Le(e) {
|
|
989
1118
|
return e.hasAttribute("data-open") || e.matches(":popover-open");
|
|
990
1119
|
}
|
|
991
|
-
function
|
|
1120
|
+
function Yi({
|
|
992
1121
|
open: e,
|
|
993
1122
|
onClose: n,
|
|
994
1123
|
trigger: i,
|
|
995
|
-
placement:
|
|
996
|
-
children:
|
|
997
|
-
className:
|
|
998
|
-
|
|
999
|
-
|
|
1124
|
+
placement: s = "bottom-start",
|
|
1125
|
+
children: a,
|
|
1126
|
+
className: o,
|
|
1127
|
+
id: r,
|
|
1128
|
+
ref: c,
|
|
1129
|
+
...l
|
|
1000
1130
|
}) {
|
|
1001
|
-
const
|
|
1002
|
-
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1131
|
+
const u = $(null), h = $(null), d = $(!1), _ = P().replace(/:/g, ""), v = `--psi-menu-${_}`, m = r ?? `psi-menu-${_}`, b = $("first");
|
|
1132
|
+
Fr({ popoverRef: u, triggerRef: h, open: e, placement: s, anchorName: v });
|
|
1133
|
+
const x = (p) => {
|
|
1134
|
+
u.current = p, typeof c == "function" ? c(p) : c && (c.current = p);
|
|
1005
1135
|
};
|
|
1006
|
-
|
|
1007
|
-
const
|
|
1008
|
-
if (!
|
|
1009
|
-
const
|
|
1010
|
-
e && !
|
|
1136
|
+
I(() => {
|
|
1137
|
+
const p = u.current;
|
|
1138
|
+
if (!p) return;
|
|
1139
|
+
const w = Le(p);
|
|
1140
|
+
e && !w ? p.showPopover() : !e && w && (d.current = !0, p.hidePopover());
|
|
1011
1141
|
}, [e]);
|
|
1012
|
-
const
|
|
1013
|
-
const
|
|
1014
|
-
if (
|
|
1015
|
-
if (
|
|
1016
|
-
|
|
1142
|
+
const j = k(() => {
|
|
1143
|
+
const p = u.current;
|
|
1144
|
+
if (p) {
|
|
1145
|
+
if (d.current) {
|
|
1146
|
+
d.current = !1;
|
|
1017
1147
|
return;
|
|
1018
1148
|
}
|
|
1019
|
-
|
|
1149
|
+
Le(p) || e && n("outside");
|
|
1020
1150
|
}
|
|
1021
|
-
}, [n, e]),
|
|
1022
|
-
popoverRef:
|
|
1023
|
-
triggerRef:
|
|
1151
|
+
}, [n, e]), L = Or({
|
|
1152
|
+
popoverRef: u,
|
|
1153
|
+
triggerRef: h,
|
|
1024
1154
|
open: e,
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
(
|
|
1028
|
-
|
|
1155
|
+
openAtRef: b,
|
|
1156
|
+
onEsc: () => n("esc"),
|
|
1157
|
+
onTab: () => n("tab")
|
|
1158
|
+
}), z = (p) => {
|
|
1159
|
+
var S;
|
|
1160
|
+
if (e || p.key !== "ArrowDown" && p.key !== "ArrowUp") return;
|
|
1161
|
+
const w = (S = h.current) == null ? void 0 : S.querySelector("button, a, [tabindex]");
|
|
1162
|
+
w && (p.preventDefault(), b.current = p.key === "ArrowUp" ? "last" : "first", w.click());
|
|
1163
|
+
}, y = k(
|
|
1164
|
+
(p) => {
|
|
1165
|
+
n(p);
|
|
1029
1166
|
},
|
|
1030
1167
|
[n]
|
|
1031
|
-
),
|
|
1032
|
-
|
|
1033
|
-
|
|
1168
|
+
), A = Q(i);
|
|
1169
|
+
I(() => {
|
|
1170
|
+
A || console.warn(
|
|
1034
1171
|
"Psi Menu: `trigger` must be a single React element that forwards props to a focusable node. Menu clones it to attach aria-haspopup and aria-expanded; a string, fragment or array cannot carry them, so the menu renders without its trigger ARIA."
|
|
1035
1172
|
);
|
|
1036
|
-
}, [
|
|
1037
|
-
const
|
|
1038
|
-
return /* @__PURE__ */
|
|
1039
|
-
/* @__PURE__ */ t("div", { ref:
|
|
1173
|
+
}, [A]);
|
|
1174
|
+
const g = A ? fe(i, { "aria-haspopup": "menu", "aria-expanded": e, "aria-controls": m }) : i;
|
|
1175
|
+
return /* @__PURE__ */ f(he, { children: [
|
|
1176
|
+
/* @__PURE__ */ t("div", { ref: h, className: ce.trigger, "data-psi-menu-trigger": !0, onKeyDown: z, children: g }),
|
|
1040
1177
|
/* @__PURE__ */ t(
|
|
1041
1178
|
"div",
|
|
1042
1179
|
{
|
|
1043
|
-
...
|
|
1044
|
-
|
|
1180
|
+
...l,
|
|
1181
|
+
id: m,
|
|
1182
|
+
ref: x,
|
|
1045
1183
|
popover: "auto",
|
|
1046
1184
|
role: "menu",
|
|
1047
1185
|
"data-psi-menu": !0,
|
|
1048
|
-
"data-placement":
|
|
1049
|
-
className: [
|
|
1050
|
-
onToggle:
|
|
1051
|
-
onKeyDown:
|
|
1052
|
-
children: /* @__PURE__ */ t(
|
|
1186
|
+
"data-placement": s,
|
|
1187
|
+
className: [ce.menu, o].filter(Boolean).join(" "),
|
|
1188
|
+
onToggle: j,
|
|
1189
|
+
onKeyDown: L,
|
|
1190
|
+
children: /* @__PURE__ */ t(qe.Provider, { value: { close: y }, children: a })
|
|
1053
1191
|
}
|
|
1054
1192
|
)
|
|
1055
1193
|
] });
|
|
1056
1194
|
}
|
|
1057
|
-
function
|
|
1058
|
-
const { close:
|
|
1195
|
+
function Zi({ children: e, onSelect: n, variant: i = "neutral", disabled: s = !1 }) {
|
|
1196
|
+
const { close: a } = B(qe);
|
|
1059
1197
|
return /* @__PURE__ */ t(
|
|
1060
1198
|
"button",
|
|
1061
1199
|
{
|
|
@@ -1063,868 +1201,868 @@ function Ii({ children: e, onSelect: n, variant: i = "neutral", disabled: a = !1
|
|
|
1063
1201
|
role: "menuitem",
|
|
1064
1202
|
"data-psi-menu-item": !0,
|
|
1065
1203
|
"data-variant": i,
|
|
1066
|
-
"aria-disabled":
|
|
1204
|
+
"aria-disabled": s || void 0,
|
|
1067
1205
|
tabIndex: -1,
|
|
1068
|
-
className:
|
|
1206
|
+
className: ce.item,
|
|
1069
1207
|
onClick: () => {
|
|
1070
|
-
|
|
1208
|
+
s || (n(), a("item-select"));
|
|
1071
1209
|
},
|
|
1072
1210
|
children: e
|
|
1073
1211
|
}
|
|
1074
1212
|
);
|
|
1075
1213
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className:
|
|
1078
|
-
}
|
|
1079
|
-
function
|
|
1080
|
-
return /* @__PURE__ */ t("div", { id: n, "data-psi-menu-text": !0, className:
|
|
1081
|
-
}
|
|
1082
|
-
const
|
|
1083
|
-
table:
|
|
1084
|
-
caption:
|
|
1085
|
-
captionDetail:
|
|
1086
|
-
headerCell:
|
|
1087
|
-
cell:
|
|
1088
|
-
rowHeader:
|
|
1089
|
-
sortButton:
|
|
1090
|
-
sortIndicator:
|
|
1091
|
-
selectCell:
|
|
1092
|
-
body:
|
|
1093
|
-
row:
|
|
1094
|
-
sticky:
|
|
1095
|
-
},
|
|
1214
|
+
function Xi() {
|
|
1215
|
+
return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className: ce.separator });
|
|
1216
|
+
}
|
|
1217
|
+
function Ji({ children: e, id: n }) {
|
|
1218
|
+
return /* @__PURE__ */ t("div", { id: n, "data-psi-menu-text": !0, className: ce.text, children: e });
|
|
1219
|
+
}
|
|
1220
|
+
const Ur = "_table_1maek_3", Gr = "_caption_1maek_19", Yr = "_captionDetail_1maek_27", Zr = "_headerCell_1maek_38", Xr = "_cell_1maek_44", Jr = "_rowHeader_1maek_51", Qr = "_sortButton_1maek_62", eo = "_sortIndicator_1maek_79", no = "_selectCell_1maek_123", to = "_body_1maek_130", ro = "_row_1maek_51", oo = "_sticky_1maek_155", N = {
|
|
1221
|
+
table: Ur,
|
|
1222
|
+
caption: Gr,
|
|
1223
|
+
captionDetail: Yr,
|
|
1224
|
+
headerCell: Zr,
|
|
1225
|
+
cell: Xr,
|
|
1226
|
+
rowHeader: Jr,
|
|
1227
|
+
sortButton: Qr,
|
|
1228
|
+
sortIndicator: eo,
|
|
1229
|
+
selectCell: no,
|
|
1230
|
+
body: to,
|
|
1231
|
+
row: ro,
|
|
1232
|
+
sticky: oo
|
|
1233
|
+
}, Ee = /* @__PURE__ */ new Set(), te = K({
|
|
1096
1234
|
size: 40,
|
|
1097
1235
|
sortable: !1,
|
|
1098
1236
|
sort: null,
|
|
1099
1237
|
selectable: !1,
|
|
1100
|
-
selected:
|
|
1101
|
-
}),
|
|
1102
|
-
function
|
|
1103
|
-
return /* @__PURE__ */ t("tbody", { ...
|
|
1238
|
+
selected: Ee
|
|
1239
|
+
}), De = K([]);
|
|
1240
|
+
function io({ children: e, className: n, ref: i, ...s }) {
|
|
1241
|
+
return /* @__PURE__ */ t("tbody", { ...s, ref: i, className: [N.body, n].filter(Boolean).join(" "), children: e });
|
|
1104
1242
|
}
|
|
1105
|
-
function
|
|
1243
|
+
function so(e) {
|
|
1106
1244
|
const n = [];
|
|
1107
|
-
let i = !1,
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1110
|
-
if (!
|
|
1111
|
-
if (c.type ===
|
|
1112
|
-
|
|
1245
|
+
let i = !1, s = !1;
|
|
1246
|
+
const a = (o) => {
|
|
1247
|
+
O.forEach(o, function r(c) {
|
|
1248
|
+
if (!Q(c)) return;
|
|
1249
|
+
if (c.type === be) {
|
|
1250
|
+
O.forEach(c.props.children, r);
|
|
1113
1251
|
return;
|
|
1114
1252
|
}
|
|
1115
|
-
const
|
|
1116
|
-
typeof
|
|
1253
|
+
const l = c.props.rowId;
|
|
1254
|
+
typeof l == "string" ? n.push(l) : s = !0;
|
|
1117
1255
|
});
|
|
1118
1256
|
};
|
|
1119
|
-
return
|
|
1120
|
-
if (
|
|
1121
|
-
if (
|
|
1122
|
-
|
|
1257
|
+
return O.forEach(e, function o(r) {
|
|
1258
|
+
if (Q(r)) {
|
|
1259
|
+
if (r.type === be) {
|
|
1260
|
+
O.forEach(r.props.children, o);
|
|
1123
1261
|
return;
|
|
1124
1262
|
}
|
|
1125
|
-
|
|
1263
|
+
r.type === io && (i = !0, a(r.props.children));
|
|
1126
1264
|
}
|
|
1127
|
-
}), { ids: n, sawBody: i, hasRowWithoutId:
|
|
1265
|
+
}), { ids: n, sawBody: i, hasRowWithoutId: s };
|
|
1128
1266
|
}
|
|
1129
|
-
function
|
|
1267
|
+
function Qi({
|
|
1130
1268
|
size: e = 40,
|
|
1131
1269
|
stickyHeader: n,
|
|
1132
1270
|
sortable: i = !1,
|
|
1133
|
-
sort:
|
|
1134
|
-
onSortChange:
|
|
1135
|
-
selectable:
|
|
1136
|
-
selected:
|
|
1271
|
+
sort: s = null,
|
|
1272
|
+
onSortChange: a,
|
|
1273
|
+
selectable: o = !1,
|
|
1274
|
+
selected: r = Ee,
|
|
1137
1275
|
onSelectionChange: c,
|
|
1138
|
-
children:
|
|
1139
|
-
className:
|
|
1140
|
-
ref:
|
|
1141
|
-
...
|
|
1276
|
+
children: l,
|
|
1277
|
+
className: u,
|
|
1278
|
+
ref: h,
|
|
1279
|
+
...d
|
|
1142
1280
|
}) {
|
|
1143
|
-
const
|
|
1144
|
-
return process.env.NODE_ENV !== "production" && (i && !
|
|
1281
|
+
const _ = [N.table, n && N.sticky, u].filter(Boolean).join(" "), { ids: v, sawBody: m, hasRowWithoutId: b } = _e(() => so(l), [l]);
|
|
1282
|
+
return process.env.NODE_ENV !== "production" && (i && !a && console.warn("Psi Table: `sortable` is set without `onSortChange`; sorting will not respond."), o && !c && console.warn("Psi Table: `selectable` is set without `onSelectionChange`; selection will not respond."), o && !m && console.warn("Psi Table: `selectable` is set but no `TableBody` is visible to `Table`. Wrapping `TableBody` in a component other than a Fragment hides its rows, and select-all will clear the selection instead of filling it."), o && b && console.warn("Psi Table: `selectable` is set but a row in `TableBody` has no `rowId`. That row will render without a selection checkbox and select-all will not include it.")), /* @__PURE__ */ t(te.Provider, { value: { size: e, sortable: i, sort: s, onSortChange: a, selectable: o, selected: r, onSelectionChange: c }, children: /* @__PURE__ */ t(De.Provider, { value: v, children: /* @__PURE__ */ t("table", { ...d, ref: h, className: _, "data-size": e, children: l }) }) });
|
|
1145
1283
|
}
|
|
1146
|
-
function
|
|
1147
|
-
const { selected: i, onSelectionChange:
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1284
|
+
function ao({ rowId: e, label: n }) {
|
|
1285
|
+
const { selected: i, onSelectionChange: s } = B(te), a = () => {
|
|
1286
|
+
const o = new Set(i);
|
|
1287
|
+
o.has(e) ? o.delete(e) : o.add(e), s == null || s(o);
|
|
1150
1288
|
};
|
|
1151
|
-
return /* @__PURE__ */ t("td", { className: `${
|
|
1152
|
-
}
|
|
1153
|
-
function
|
|
1154
|
-
const { selected: e, onSelectionChange: n } =
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
}, [r, s]);
|
|
1158
|
-
const o = () => {
|
|
1159
|
-
const c = new Set(e);
|
|
1160
|
-
s ? i.forEach((d) => c.delete(d)) : i.forEach((d) => c.add(d)), n == null || n(c);
|
|
1289
|
+
return /* @__PURE__ */ t("td", { className: `${N.cell} ${N.selectCell}`, children: /* @__PURE__ */ t(Te, { "aria-label": n, checked: i.has(e), onChange: a }) });
|
|
1290
|
+
}
|
|
1291
|
+
function co() {
|
|
1292
|
+
const { selected: e, onSelectionChange: n } = B(te), i = B(De), s = i.length > 0 && i.every((r) => e.has(r)), a = i.some((r) => e.has(r)), o = () => {
|
|
1293
|
+
const r = new Set(e);
|
|
1294
|
+
s ? i.forEach((c) => r.delete(c)) : i.forEach((c) => r.add(c)), n == null || n(r);
|
|
1161
1295
|
};
|
|
1162
|
-
return /* @__PURE__ */ t("th", { scope: "col", className: `${
|
|
1163
|
-
}
|
|
1164
|
-
function
|
|
1165
|
-
const { selectable:
|
|
1166
|
-
let
|
|
1167
|
-
const
|
|
1168
|
-
if (
|
|
1169
|
-
|
|
1170
|
-
const
|
|
1171
|
-
return
|
|
1172
|
-
|
|
1296
|
+
return /* @__PURE__ */ t("th", { scope: "col", className: `${N.headerCell} ${N.selectCell}`, children: /* @__PURE__ */ t(Te, { "aria-label": "Select all rows", checked: s, indeterminate: a && !s, onChange: o }) });
|
|
1297
|
+
}
|
|
1298
|
+
function es({ children: e, className: n, ref: i, ...s }) {
|
|
1299
|
+
const { selectable: a } = B(te);
|
|
1300
|
+
let o = !1;
|
|
1301
|
+
const r = a ? O.map(e, (c) => {
|
|
1302
|
+
if (o || !Q(c)) return c;
|
|
1303
|
+
o = !0;
|
|
1304
|
+
const l = c;
|
|
1305
|
+
return fe(
|
|
1306
|
+
l,
|
|
1173
1307
|
void 0,
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */ t(
|
|
1176
|
-
|
|
1308
|
+
/* @__PURE__ */ f(he, { children: [
|
|
1309
|
+
/* @__PURE__ */ t(co, {}),
|
|
1310
|
+
l.props.children
|
|
1177
1311
|
] })
|
|
1178
1312
|
);
|
|
1179
1313
|
}) : e;
|
|
1180
|
-
return /* @__PURE__ */ t("thead", { ...
|
|
1314
|
+
return /* @__PURE__ */ t("thead", { ...s, ref: i, className: [N.head, n].filter(Boolean).join(" "), children: r });
|
|
1181
1315
|
}
|
|
1182
|
-
function
|
|
1183
|
-
const { selectable:
|
|
1184
|
-
return /* @__PURE__ */
|
|
1316
|
+
function ns({ rowId: e, selectLabel: n, children: i, className: s, ref: a, ...o }) {
|
|
1317
|
+
const { selectable: r, selected: c } = B(te), l = e !== void 0 && c.has(e);
|
|
1318
|
+
return /* @__PURE__ */ f(
|
|
1185
1319
|
"tr",
|
|
1186
1320
|
{
|
|
1187
|
-
...
|
|
1188
|
-
ref:
|
|
1189
|
-
className: [
|
|
1321
|
+
...o,
|
|
1322
|
+
ref: a,
|
|
1323
|
+
className: [N.row, s].filter(Boolean).join(" "),
|
|
1190
1324
|
"data-row-id": e,
|
|
1191
|
-
"data-selected":
|
|
1325
|
+
"data-selected": l || void 0,
|
|
1192
1326
|
children: [
|
|
1193
|
-
|
|
1327
|
+
r && e !== void 0 && /* @__PURE__ */ t(ao, { rowId: e, label: n ?? `Select row ${e}` }),
|
|
1194
1328
|
i
|
|
1195
1329
|
]
|
|
1196
1330
|
}
|
|
1197
1331
|
);
|
|
1198
1332
|
}
|
|
1199
|
-
function
|
|
1200
|
-
const { sortable:
|
|
1333
|
+
function ts({ sortKey: e, numeric: n, children: i, className: s, ref: a, ...o }) {
|
|
1334
|
+
const { sortable: r, sort: c, onSortChange: l } = B(te), u = r && e !== void 0, h = u && (c == null ? void 0 : c.key) === e, d = u ? h ? c.direction === "asc" ? "ascending" : "descending" : "none" : void 0, _ = () => {
|
|
1201
1335
|
if (!e) return;
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1336
|
+
const v = h && c.direction === "asc" ? "desc" : "asc";
|
|
1337
|
+
l == null || l({ key: e, direction: v });
|
|
1204
1338
|
};
|
|
1205
1339
|
return /* @__PURE__ */ t(
|
|
1206
1340
|
"th",
|
|
1207
1341
|
{
|
|
1208
|
-
...
|
|
1209
|
-
ref:
|
|
1342
|
+
...o,
|
|
1343
|
+
ref: a,
|
|
1210
1344
|
scope: "col",
|
|
1211
|
-
className: [
|
|
1345
|
+
className: [N.headerCell, s].filter(Boolean).join(" "),
|
|
1212
1346
|
"data-numeric": n || void 0,
|
|
1213
|
-
"aria-sort":
|
|
1214
|
-
children:
|
|
1347
|
+
"aria-sort": d,
|
|
1348
|
+
children: u ? /* @__PURE__ */ f("button", { type: "button", className: N.sortButton, onClick: _, children: [
|
|
1215
1349
|
i,
|
|
1216
|
-
/* @__PURE__ */ t("span", { className:
|
|
1350
|
+
/* @__PURE__ */ t("span", { className: N.sortIndicator, "aria-hidden": "true", children: h ? c.direction === "asc" ? "↑" : "↓" : "" })
|
|
1217
1351
|
] }) : i
|
|
1218
1352
|
}
|
|
1219
1353
|
);
|
|
1220
1354
|
}
|
|
1221
|
-
function
|
|
1222
|
-
const c = [
|
|
1223
|
-
return i ? /* @__PURE__ */ t("th", { ...
|
|
1355
|
+
function rs({ numeric: e, colSpan: n, rowHeader: i, children: s, className: a, ref: o, ...r }) {
|
|
1356
|
+
const c = [N.cell, i && N.rowHeader, a].filter(Boolean).join(" ");
|
|
1357
|
+
return i ? /* @__PURE__ */ t("th", { ...r, ref: o, scope: "row", colSpan: n, className: c, "data-numeric": e || void 0, children: s }) : /* @__PURE__ */ t("td", { ...r, ref: o, colSpan: n, className: c, "data-numeric": e || void 0, children: s });
|
|
1224
1358
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return /* @__PURE__ */
|
|
1359
|
+
function os({ children: e, detail: n, className: i, ref: s, ...a }) {
|
|
1360
|
+
return /* @__PURE__ */ f("caption", { ...a, ref: s, className: [N.caption, i].filter(Boolean).join(" "), children: [
|
|
1227
1361
|
e,
|
|
1228
|
-
n != null && /* @__PURE__ */ t("span", { className:
|
|
1362
|
+
n != null && /* @__PURE__ */ t("span", { className: N.captionDetail, children: n })
|
|
1229
1363
|
] });
|
|
1230
1364
|
}
|
|
1231
|
-
const
|
|
1232
|
-
nav:
|
|
1233
|
-
ellipsis:
|
|
1365
|
+
const lo = "_nav_166vs_6", uo = "_ellipsis_166vs_12", Se = {
|
|
1366
|
+
nav: lo,
|
|
1367
|
+
ellipsis: uo
|
|
1234
1368
|
};
|
|
1235
|
-
function
|
|
1236
|
-
return Array.from({ length: n - e + 1 }, (i,
|
|
1237
|
-
}
|
|
1238
|
-
function
|
|
1239
|
-
const
|
|
1240
|
-
if (n <=
|
|
1241
|
-
return
|
|
1242
|
-
const
|
|
1243
|
-
if (!
|
|
1244
|
-
const
|
|
1245
|
-
return [...
|
|
1369
|
+
function ie(e, n) {
|
|
1370
|
+
return Array.from({ length: n - e + 1 }, (i, s) => e + s);
|
|
1371
|
+
}
|
|
1372
|
+
function ho(e, n, i) {
|
|
1373
|
+
const s = Math.max(0, i), a = s * 2 + 1, o = a + 4;
|
|
1374
|
+
if (n <= o)
|
|
1375
|
+
return ie(1, n);
|
|
1376
|
+
const r = Math.max(e - s, 1), c = Math.min(e + s, n), l = r > 3, u = c < n - 2;
|
|
1377
|
+
if (!l && u) {
|
|
1378
|
+
const h = Math.max(c, a);
|
|
1379
|
+
return [...ie(1, h), "ellipsis", n];
|
|
1246
1380
|
}
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1249
|
-
return [1, "ellipsis", ...
|
|
1381
|
+
if (l && !u) {
|
|
1382
|
+
const h = Math.min(r, n - a + 1);
|
|
1383
|
+
return [1, "ellipsis", ...ie(h, n)];
|
|
1250
1384
|
}
|
|
1251
|
-
return
|
|
1385
|
+
return l && u ? [1, "ellipsis", ...ie(r, c), "ellipsis", n] : ie(1, n);
|
|
1252
1386
|
}
|
|
1253
|
-
function
|
|
1387
|
+
function is({
|
|
1254
1388
|
page: e,
|
|
1255
1389
|
pageCount: n,
|
|
1256
1390
|
onPageChange: i,
|
|
1257
|
-
siblingCount:
|
|
1258
|
-
"aria-label":
|
|
1259
|
-
className:
|
|
1391
|
+
siblingCount: s = 1,
|
|
1392
|
+
"aria-label": a = "Pagination",
|
|
1393
|
+
className: o
|
|
1260
1394
|
}) {
|
|
1261
|
-
const
|
|
1262
|
-
process.env.NODE_ENV !== "production" && (!
|
|
1263
|
-
`Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${
|
|
1395
|
+
const r = n >= 1, c = Number.isFinite(e) ? e : 1, l = r ? Math.min(Math.max(c, 1), n) : 0;
|
|
1396
|
+
process.env.NODE_ENV !== "production" && (!r || e !== l) && console.warn(
|
|
1397
|
+
`Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${r ? l : "none"}. Clamp \`page\` when \`pageCount\` shrinks — e.g. after filtering.`
|
|
1264
1398
|
);
|
|
1265
|
-
const
|
|
1266
|
-
return /* @__PURE__ */
|
|
1399
|
+
const u = r ? ho(l, n, s) : [];
|
|
1400
|
+
return /* @__PURE__ */ f("nav", { "aria-label": a, className: [Se.nav, o].filter(Boolean).join(" "), children: [
|
|
1267
1401
|
/* @__PURE__ */ t(
|
|
1268
|
-
|
|
1402
|
+
ae,
|
|
1269
1403
|
{
|
|
1270
1404
|
"aria-label": "Previous page",
|
|
1271
1405
|
size: 32,
|
|
1272
1406
|
variant: "ghost",
|
|
1273
|
-
disabled: !
|
|
1274
|
-
onClick: () => i(
|
|
1407
|
+
disabled: !r || l <= 1,
|
|
1408
|
+
onClick: () => i(l - 1),
|
|
1275
1409
|
children: /* @__PURE__ */ t("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", width: "16", height: "16", children: /* @__PURE__ */ t("path", { d: "M10 3 5 8l5 5", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) })
|
|
1276
1410
|
}
|
|
1277
1411
|
),
|
|
1278
|
-
|
|
1279
|
-
(
|
|
1280
|
-
|
|
1412
|
+
u.map(
|
|
1413
|
+
(h, d) => h === "ellipsis" ? /* @__PURE__ */ t("span", { className: Se.ellipsis, "aria-hidden": "true", children: "…" }, `e${d}`) : /* @__PURE__ */ t(
|
|
1414
|
+
se,
|
|
1281
1415
|
{
|
|
1282
1416
|
size: 32,
|
|
1283
|
-
variant:
|
|
1284
|
-
"aria-current":
|
|
1285
|
-
onClick: () => i(
|
|
1286
|
-
children: String(
|
|
1417
|
+
variant: h === l ? "accent-subtle" : "ghost",
|
|
1418
|
+
"aria-current": h === l ? "page" : void 0,
|
|
1419
|
+
onClick: () => i(h),
|
|
1420
|
+
children: String(h)
|
|
1287
1421
|
},
|
|
1288
|
-
|
|
1422
|
+
h
|
|
1289
1423
|
)
|
|
1290
1424
|
),
|
|
1291
1425
|
/* @__PURE__ */ t(
|
|
1292
|
-
|
|
1426
|
+
ae,
|
|
1293
1427
|
{
|
|
1294
1428
|
"aria-label": "Next page",
|
|
1295
1429
|
size: 32,
|
|
1296
1430
|
variant: "ghost",
|
|
1297
|
-
disabled: !
|
|
1298
|
-
onClick: () => i(
|
|
1431
|
+
disabled: !r || l >= n,
|
|
1432
|
+
onClick: () => i(l + 1),
|
|
1299
1433
|
children: /* @__PURE__ */ t("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", width: "16", height: "16", children: /* @__PURE__ */ t("path", { d: "m6 3 5 5-5 5", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) })
|
|
1300
1434
|
}
|
|
1301
1435
|
)
|
|
1302
1436
|
] });
|
|
1303
1437
|
}
|
|
1304
|
-
const
|
|
1305
|
-
nav:
|
|
1438
|
+
const _o = "_nav_jbhk1_5", fo = {
|
|
1439
|
+
nav: _o
|
|
1306
1440
|
};
|
|
1307
|
-
function
|
|
1441
|
+
function ss({
|
|
1308
1442
|
hasPrevious: e,
|
|
1309
1443
|
hasNext: n,
|
|
1310
1444
|
onPrevious: i,
|
|
1311
|
-
onNext:
|
|
1312
|
-
previousLabel:
|
|
1313
|
-
nextLabel:
|
|
1314
|
-
size:
|
|
1445
|
+
onNext: s,
|
|
1446
|
+
previousLabel: a = "Previous",
|
|
1447
|
+
nextLabel: o = "Next",
|
|
1448
|
+
size: r = 32,
|
|
1315
1449
|
"aria-label": c = "Pagination",
|
|
1316
|
-
className:
|
|
1450
|
+
className: l
|
|
1317
1451
|
}) {
|
|
1318
|
-
return /* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
/* @__PURE__ */ t(
|
|
1321
|
-
/* @__PURE__ */ t("span", { children:
|
|
1452
|
+
return /* @__PURE__ */ f("nav", { "aria-label": c, className: [fo.nav, l].filter(Boolean).join(" "), children: [
|
|
1453
|
+
/* @__PURE__ */ f(se, { variant: "ghost", size: r, disabled: !e, onClick: i, children: [
|
|
1454
|
+
/* @__PURE__ */ t(ct, { size: 16, "aria-hidden": "true" }),
|
|
1455
|
+
/* @__PURE__ */ t("span", { children: a })
|
|
1322
1456
|
] }),
|
|
1323
|
-
/* @__PURE__ */
|
|
1324
|
-
/* @__PURE__ */ t("span", { children:
|
|
1325
|
-
/* @__PURE__ */ t(
|
|
1457
|
+
/* @__PURE__ */ f(se, { variant: "ghost", size: r, disabled: !n, onClick: s, children: [
|
|
1458
|
+
/* @__PURE__ */ t("span", { children: o }),
|
|
1459
|
+
/* @__PURE__ */ t(at, { size: 16, "aria-hidden": "true" })
|
|
1326
1460
|
] })
|
|
1327
1461
|
] });
|
|
1328
1462
|
}
|
|
1329
|
-
const
|
|
1330
|
-
neutral:
|
|
1331
|
-
success:
|
|
1332
|
-
warning:
|
|
1333
|
-
danger:
|
|
1334
|
-
},
|
|
1463
|
+
const we = {
|
|
1464
|
+
neutral: dt,
|
|
1465
|
+
success: st,
|
|
1466
|
+
warning: ut,
|
|
1467
|
+
danger: ht
|
|
1468
|
+
}, po = {
|
|
1335
1469
|
neutral: null,
|
|
1336
1470
|
success: "Success:",
|
|
1337
1471
|
warning: "Warning:",
|
|
1338
1472
|
danger: "Error:"
|
|
1339
1473
|
};
|
|
1340
|
-
function
|
|
1341
|
-
return n === void 0 ?
|
|
1342
|
-
}
|
|
1343
|
-
const
|
|
1344
|
-
toast:
|
|
1345
|
-
icon:
|
|
1346
|
-
iconNeutral:
|
|
1347
|
-
iconSuccess:
|
|
1348
|
-
iconWarning:
|
|
1349
|
-
iconDanger:
|
|
1350
|
-
body:
|
|
1351
|
-
action:
|
|
1352
|
-
region:
|
|
1353
|
-
live:
|
|
1354
|
-
},
|
|
1355
|
-
neutral:
|
|
1356
|
-
success:
|
|
1357
|
-
warning:
|
|
1358
|
-
danger:
|
|
1474
|
+
function xe(e, n) {
|
|
1475
|
+
return n === void 0 ? po[e] : n;
|
|
1476
|
+
}
|
|
1477
|
+
const go = "_toast_1gxg8_10", vo = "_icon_1gxg8_39", bo = "_iconNeutral_1gxg8_44", mo = "_iconSuccess_1gxg8_45", yo = "_iconWarning_1gxg8_46", wo = "_iconDanger_1gxg8_47", xo = "_body_1gxg8_51", ko = "_action_1gxg8_55", No = "_region_1gxg8_61", $o = "_live_1gxg8_91", E = {
|
|
1478
|
+
toast: go,
|
|
1479
|
+
icon: vo,
|
|
1480
|
+
iconNeutral: bo,
|
|
1481
|
+
iconSuccess: mo,
|
|
1482
|
+
iconWarning: yo,
|
|
1483
|
+
iconDanger: wo,
|
|
1484
|
+
body: xo,
|
|
1485
|
+
action: ko,
|
|
1486
|
+
region: No,
|
|
1487
|
+
live: $o
|
|
1488
|
+
}, Bo = {
|
|
1489
|
+
neutral: E.iconNeutral,
|
|
1490
|
+
success: E.iconSuccess,
|
|
1491
|
+
warning: E.iconWarning,
|
|
1492
|
+
danger: E.iconDanger
|
|
1359
1493
|
};
|
|
1360
|
-
function
|
|
1494
|
+
function me({
|
|
1361
1495
|
variant: e = "neutral",
|
|
1362
1496
|
children: n,
|
|
1363
1497
|
action: i,
|
|
1364
|
-
onDismiss:
|
|
1365
|
-
statusLabel:
|
|
1366
|
-
className:
|
|
1367
|
-
ref:
|
|
1498
|
+
onDismiss: s,
|
|
1499
|
+
statusLabel: a,
|
|
1500
|
+
className: o,
|
|
1501
|
+
ref: r
|
|
1368
1502
|
}) {
|
|
1369
|
-
const c =
|
|
1370
|
-
return /* @__PURE__ */
|
|
1371
|
-
/* @__PURE__ */ t("span", { className: [
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
|
|
1503
|
+
const c = we[e], l = xe(e, a), u = [E.toast, o].filter(Boolean).join(" ");
|
|
1504
|
+
return /* @__PURE__ */ f("div", { ref: r, className: u, "data-variant": e, "data-psi-toast": !0, children: [
|
|
1505
|
+
/* @__PURE__ */ t("span", { className: [E.icon, Bo[e]].join(" "), children: /* @__PURE__ */ t(c, { size: 20, "aria-hidden": "true" }) }),
|
|
1506
|
+
/* @__PURE__ */ f("div", { className: E.body, children: [
|
|
1507
|
+
l && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: l }),
|
|
1374
1508
|
n
|
|
1375
1509
|
] }),
|
|
1376
|
-
i != null && /* @__PURE__ */ t("div", { className:
|
|
1377
|
-
|
|
1378
|
-
|
|
1510
|
+
i != null && /* @__PURE__ */ t("div", { className: E.action, children: i }),
|
|
1511
|
+
s && /* @__PURE__ */ t(
|
|
1512
|
+
ae,
|
|
1379
1513
|
{
|
|
1380
1514
|
variant: "ghost",
|
|
1381
1515
|
size: 32,
|
|
1382
1516
|
"aria-label": "Dismiss notification",
|
|
1383
|
-
onClick:
|
|
1384
|
-
children: /* @__PURE__ */ t(
|
|
1517
|
+
onClick: s,
|
|
1518
|
+
children: /* @__PURE__ */ t(ye, { "aria-hidden": "true" })
|
|
1385
1519
|
}
|
|
1386
1520
|
)
|
|
1387
1521
|
] });
|
|
1388
1522
|
}
|
|
1389
|
-
function
|
|
1523
|
+
function Me({ children: e }) {
|
|
1390
1524
|
return /* @__PURE__ */ t("div", { className: "psi-sr-only", "data-psi-announcement": !0, children: e });
|
|
1391
1525
|
}
|
|
1392
|
-
const
|
|
1393
|
-
function
|
|
1394
|
-
if (!
|
|
1526
|
+
const Lo = /* @__PURE__ */ new Set(["warning", "danger"]);
|
|
1527
|
+
function Ce(e) {
|
|
1528
|
+
if (!Q(e) || e.type !== me && e.type !== Me) return !1;
|
|
1395
1529
|
const { politeness: n, variant: i } = e.props;
|
|
1396
|
-
return n !== void 0 ? n === "assertive" : e.type ===
|
|
1530
|
+
return n !== void 0 ? n === "assertive" : e.type === me && Lo.has(i ?? "neutral");
|
|
1397
1531
|
}
|
|
1398
|
-
function
|
|
1532
|
+
function So({
|
|
1399
1533
|
placement: e = "bottom-end",
|
|
1400
1534
|
"aria-label": n = "Notifications",
|
|
1401
1535
|
children: i,
|
|
1402
|
-
className:
|
|
1403
|
-
ref:
|
|
1404
|
-
...
|
|
1536
|
+
className: s,
|
|
1537
|
+
ref: a,
|
|
1538
|
+
...o
|
|
1405
1539
|
}) {
|
|
1406
|
-
const
|
|
1407
|
-
|
|
1540
|
+
const r = $(null), c = (d) => {
|
|
1541
|
+
r.current = d, typeof a == "function" ? a(d) : a && (a.current = d);
|
|
1408
1542
|
};
|
|
1409
|
-
|
|
1410
|
-
var
|
|
1411
|
-
const
|
|
1412
|
-
if (
|
|
1413
|
-
return (
|
|
1414
|
-
var
|
|
1415
|
-
(
|
|
1543
|
+
I(() => {
|
|
1544
|
+
var _;
|
|
1545
|
+
const d = r.current;
|
|
1546
|
+
if (d)
|
|
1547
|
+
return (_ = d.showPopover) == null || _.call(d), () => {
|
|
1548
|
+
var v;
|
|
1549
|
+
(v = d.hidePopover) == null || v.call(d);
|
|
1416
1550
|
};
|
|
1417
1551
|
}, []);
|
|
1418
|
-
const
|
|
1419
|
-
return /* @__PURE__ */
|
|
1552
|
+
const l = O.toArray(i), u = l.filter(Ce), h = l.filter((d) => !Ce(d));
|
|
1553
|
+
return /* @__PURE__ */ f(
|
|
1420
1554
|
"div",
|
|
1421
1555
|
{
|
|
1422
|
-
...
|
|
1556
|
+
...o,
|
|
1423
1557
|
ref: c,
|
|
1424
1558
|
role: "region",
|
|
1425
1559
|
popover: "manual",
|
|
1426
1560
|
"aria-label": n,
|
|
1427
1561
|
"data-placement": e,
|
|
1428
1562
|
"data-psi-toast-region": !0,
|
|
1429
|
-
className: [
|
|
1563
|
+
className: [E.region, s].filter(Boolean).join(" "),
|
|
1430
1564
|
children: [
|
|
1431
|
-
/* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", "aria-atomic": "false", className:
|
|
1432
|
-
/* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", "aria-atomic": "false", className:
|
|
1565
|
+
/* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", "aria-atomic": "false", className: E.live, children: h }),
|
|
1566
|
+
/* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", "aria-atomic": "false", className: E.live, children: u })
|
|
1433
1567
|
]
|
|
1434
1568
|
}
|
|
1435
1569
|
);
|
|
1436
1570
|
}
|
|
1437
|
-
const
|
|
1438
|
-
function
|
|
1439
|
-
const e =
|
|
1571
|
+
const We = K(null);
|
|
1572
|
+
function as() {
|
|
1573
|
+
const e = B(We);
|
|
1440
1574
|
if (!e)
|
|
1441
1575
|
throw new Error(
|
|
1442
1576
|
"Psi useToast: no ToastProvider found. Wrap your app (or the subtree that raises toasts) in <ToastProvider> — it owns the queue, the auto-dismiss timers and the single ToastRegion."
|
|
1443
1577
|
);
|
|
1444
1578
|
return e;
|
|
1445
1579
|
}
|
|
1446
|
-
const
|
|
1447
|
-
function
|
|
1580
|
+
const Co = 1e3;
|
|
1581
|
+
function cs({
|
|
1448
1582
|
limit: e = 3,
|
|
1449
1583
|
duration: n = 5e3,
|
|
1450
1584
|
actionDuration: i = 1e4,
|
|
1451
|
-
placement:
|
|
1452
|
-
children:
|
|
1453
|
-
...
|
|
1585
|
+
placement: s = "bottom-end",
|
|
1586
|
+
children: a,
|
|
1587
|
+
...o
|
|
1454
1588
|
}) {
|
|
1455
|
-
const [
|
|
1456
|
-
const
|
|
1457
|
-
(
|
|
1458
|
-
}, []),
|
|
1459
|
-
(
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1589
|
+
const [r, c] = ee([]), [l, u] = ee([]), h = $(/* @__PURE__ */ new Map()), d = $(!1), _ = $(0), v = P(), m = k((g) => {
|
|
1590
|
+
const p = h.current.get(g);
|
|
1591
|
+
(p == null ? void 0 : p.handle) !== void 0 && clearTimeout(p.handle), h.current.delete(g), c((w) => w.some((S) => S.id === g) ? w.filter((S) => S.id !== g) : w), u((w) => w.some((S) => S.id === g) ? w.filter((S) => S.id !== g) : w);
|
|
1592
|
+
}, []), b = k(
|
|
1593
|
+
(g, p) => {
|
|
1594
|
+
const w = d.current ? { handle: void 0, remaining: p, startedAt: void 0 } : { handle: setTimeout(() => m(g), p), remaining: p, startedAt: Date.now() };
|
|
1595
|
+
h.current.set(g, w);
|
|
1462
1596
|
},
|
|
1463
|
-
[
|
|
1464
|
-
),
|
|
1465
|
-
({ variant:
|
|
1466
|
-
const
|
|
1467
|
-
return c((
|
|
1468
|
-
const
|
|
1469
|
-
...
|
|
1470
|
-
{ id:
|
|
1597
|
+
[m]
|
|
1598
|
+
), x = k(
|
|
1599
|
+
({ variant: g = "neutral", message: p, action: w, politeness: S, statusLabel: He }) => {
|
|
1600
|
+
const ge = `${v}-${_.current++}`, Ne = w != null ? i : n;
|
|
1601
|
+
return c((Ve) => {
|
|
1602
|
+
const ve = [
|
|
1603
|
+
...Ve,
|
|
1604
|
+
{ id: ge, variant: g, message: p, action: w, politeness: S, statusLabel: He, duration: Ne }
|
|
1471
1605
|
];
|
|
1472
|
-
for (;
|
|
1473
|
-
const
|
|
1474
|
-
(
|
|
1606
|
+
for (; ve.length > e; ) {
|
|
1607
|
+
const $e = ve.shift(), le = h.current.get($e.id);
|
|
1608
|
+
(le == null ? void 0 : le.handle) !== void 0 && clearTimeout(le.handle), h.current.delete($e.id);
|
|
1475
1609
|
}
|
|
1476
|
-
return
|
|
1477
|
-
}),
|
|
1610
|
+
return ve;
|
|
1611
|
+
}), b(ge, Ne), ge;
|
|
1478
1612
|
},
|
|
1479
|
-
[i,
|
|
1480
|
-
),
|
|
1481
|
-
(
|
|
1482
|
-
const
|
|
1483
|
-
return
|
|
1613
|
+
[i, b, n, v, e]
|
|
1614
|
+
), j = k(
|
|
1615
|
+
(g, { politeness: p = "polite" } = {}) => {
|
|
1616
|
+
const w = `${v}-${_.current++}`;
|
|
1617
|
+
return u((S) => [...S, { id: w, message: g, politeness: p }]), b(w, Co), w;
|
|
1484
1618
|
},
|
|
1485
|
-
[
|
|
1486
|
-
),
|
|
1487
|
-
for (const
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}, []),
|
|
1491
|
-
if (!
|
|
1492
|
-
|
|
1493
|
-
for (const [
|
|
1494
|
-
if (
|
|
1495
|
-
clearTimeout(
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1619
|
+
[b, v]
|
|
1620
|
+
), L = k(() => {
|
|
1621
|
+
for (const g of h.current.values())
|
|
1622
|
+
g.handle !== void 0 && clearTimeout(g.handle);
|
|
1623
|
+
h.current.clear(), c([]), u([]);
|
|
1624
|
+
}, []), z = k(() => {
|
|
1625
|
+
if (!d.current) {
|
|
1626
|
+
d.current = !0;
|
|
1627
|
+
for (const [g, p] of h.current) {
|
|
1628
|
+
if (p.handle === void 0) continue;
|
|
1629
|
+
clearTimeout(p.handle);
|
|
1630
|
+
const w = p.startedAt === void 0 ? 0 : Date.now() - p.startedAt;
|
|
1631
|
+
h.current.set(g, {
|
|
1498
1632
|
handle: void 0,
|
|
1499
|
-
remaining: Math.max(0,
|
|
1633
|
+
remaining: Math.max(0, p.remaining - w),
|
|
1500
1634
|
startedAt: void 0
|
|
1501
1635
|
});
|
|
1502
1636
|
}
|
|
1503
1637
|
}
|
|
1504
|
-
}, []),
|
|
1505
|
-
if (
|
|
1506
|
-
|
|
1507
|
-
for (const [
|
|
1508
|
-
|
|
1509
|
-
handle: setTimeout(() =>
|
|
1510
|
-
remaining:
|
|
1638
|
+
}, []), y = k(() => {
|
|
1639
|
+
if (d.current) {
|
|
1640
|
+
d.current = !1;
|
|
1641
|
+
for (const [g, p] of h.current)
|
|
1642
|
+
p.handle === void 0 && h.current.set(g, {
|
|
1643
|
+
handle: setTimeout(() => m(g), p.remaining),
|
|
1644
|
+
remaining: p.remaining,
|
|
1511
1645
|
startedAt: Date.now()
|
|
1512
1646
|
});
|
|
1513
1647
|
}
|
|
1514
|
-
}, [
|
|
1515
|
-
|
|
1516
|
-
const
|
|
1648
|
+
}, [m]);
|
|
1649
|
+
I(() => {
|
|
1650
|
+
const g = h.current;
|
|
1517
1651
|
return () => {
|
|
1518
|
-
for (const
|
|
1519
|
-
|
|
1520
|
-
|
|
1652
|
+
for (const p of g.values())
|
|
1653
|
+
p.handle !== void 0 && clearTimeout(p.handle);
|
|
1654
|
+
g.clear();
|
|
1521
1655
|
};
|
|
1522
1656
|
}, []);
|
|
1523
|
-
const
|
|
1524
|
-
() => ({ show:
|
|
1525
|
-
[
|
|
1657
|
+
const A = _e(
|
|
1658
|
+
() => ({ show: x, announce: j, dismiss: m, clear: L }),
|
|
1659
|
+
[x, j, m, L]
|
|
1526
1660
|
);
|
|
1527
|
-
return /* @__PURE__ */
|
|
1528
|
-
|
|
1661
|
+
return /* @__PURE__ */ f(We.Provider, { value: A, children: [
|
|
1662
|
+
a,
|
|
1529
1663
|
/* @__PURE__ */ t(
|
|
1530
1664
|
"div",
|
|
1531
1665
|
{
|
|
1532
|
-
onPointerEnter:
|
|
1533
|
-
onPointerLeave:
|
|
1534
|
-
onFocusCapture:
|
|
1535
|
-
onBlurCapture:
|
|
1536
|
-
children: /* @__PURE__ */
|
|
1537
|
-
|
|
1538
|
-
|
|
1666
|
+
onPointerEnter: z,
|
|
1667
|
+
onPointerLeave: y,
|
|
1668
|
+
onFocusCapture: z,
|
|
1669
|
+
onBlurCapture: y,
|
|
1670
|
+
children: /* @__PURE__ */ f(So, { ...o, placement: s, children: [
|
|
1671
|
+
r.map((g) => /* @__PURE__ */ t(
|
|
1672
|
+
me,
|
|
1539
1673
|
{
|
|
1540
|
-
variant:
|
|
1541
|
-
action:
|
|
1542
|
-
politeness:
|
|
1543
|
-
statusLabel:
|
|
1544
|
-
onDismiss: () =>
|
|
1545
|
-
children:
|
|
1674
|
+
variant: g.variant,
|
|
1675
|
+
action: g.action,
|
|
1676
|
+
politeness: g.politeness,
|
|
1677
|
+
statusLabel: g.statusLabel,
|
|
1678
|
+
onDismiss: () => m(g.id),
|
|
1679
|
+
children: g.message
|
|
1546
1680
|
},
|
|
1547
|
-
|
|
1681
|
+
g.id
|
|
1548
1682
|
)),
|
|
1549
|
-
|
|
1683
|
+
l.map((g) => /* @__PURE__ */ t(Me, { politeness: g.politeness, children: g.message }, g.id))
|
|
1550
1684
|
] })
|
|
1551
1685
|
}
|
|
1552
1686
|
)
|
|
1553
1687
|
] });
|
|
1554
1688
|
}
|
|
1555
|
-
const
|
|
1556
|
-
banner:
|
|
1557
|
-
icon:
|
|
1558
|
-
iconNeutral:
|
|
1559
|
-
iconSuccess:
|
|
1560
|
-
iconWarning:
|
|
1561
|
-
iconDanger:
|
|
1562
|
-
body:
|
|
1563
|
-
title:
|
|
1564
|
-
action:
|
|
1565
|
-
},
|
|
1689
|
+
const jo = "_banner_15y1f_7", zo = "_icon_15y1f_26", To = "_iconNeutral_15y1f_31", Io = "_iconSuccess_15y1f_32", qo = "_iconWarning_15y1f_33", Eo = "_iconDanger_15y1f_34", Do = "_body_15y1f_36", Mo = "_title_15y1f_50", Wo = "_action_15y1f_55", M = {
|
|
1690
|
+
banner: jo,
|
|
1691
|
+
icon: zo,
|
|
1692
|
+
iconNeutral: To,
|
|
1693
|
+
iconSuccess: Io,
|
|
1694
|
+
iconWarning: qo,
|
|
1695
|
+
iconDanger: Eo,
|
|
1696
|
+
body: Do,
|
|
1697
|
+
title: Mo,
|
|
1698
|
+
action: Wo
|
|
1699
|
+
}, Po = {
|
|
1566
1700
|
neutral: M.iconNeutral,
|
|
1567
1701
|
success: M.iconSuccess,
|
|
1568
1702
|
warning: M.iconWarning,
|
|
1569
1703
|
danger: M.iconDanger
|
|
1570
1704
|
};
|
|
1571
|
-
function
|
|
1705
|
+
function ls({
|
|
1572
1706
|
variant: e = "neutral",
|
|
1573
1707
|
title: n,
|
|
1574
1708
|
children: i,
|
|
1575
|
-
action:
|
|
1576
|
-
onDismiss:
|
|
1577
|
-
statusLabel:
|
|
1578
|
-
className:
|
|
1709
|
+
action: s,
|
|
1710
|
+
onDismiss: a,
|
|
1711
|
+
statusLabel: o,
|
|
1712
|
+
className: r,
|
|
1579
1713
|
ref: c,
|
|
1580
|
-
...
|
|
1714
|
+
...l
|
|
1581
1715
|
}) {
|
|
1582
|
-
const
|
|
1583
|
-
return /* @__PURE__ */
|
|
1584
|
-
/* @__PURE__ */ t("span", { className: [M.icon,
|
|
1585
|
-
/* @__PURE__ */
|
|
1586
|
-
|
|
1716
|
+
const u = we[e], h = xe(e, o), d = [M.banner, r].filter(Boolean).join(" ");
|
|
1717
|
+
return /* @__PURE__ */ f("div", { ...l, ref: c, className: d, "data-variant": e, "data-psi-banner": !0, children: [
|
|
1718
|
+
/* @__PURE__ */ t("span", { className: [M.icon, Po[e]].join(" "), children: /* @__PURE__ */ t(u, { size: 20, "aria-hidden": "true" }) }),
|
|
1719
|
+
/* @__PURE__ */ f("div", { className: M.body, children: [
|
|
1720
|
+
h && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: h }),
|
|
1587
1721
|
n != null && /* @__PURE__ */ t("strong", { className: M.title, children: n }),
|
|
1588
1722
|
i
|
|
1589
1723
|
] }),
|
|
1590
|
-
|
|
1591
|
-
|
|
1724
|
+
s != null && /* @__PURE__ */ t("div", { className: M.action, children: s }),
|
|
1725
|
+
a && /* @__PURE__ */ t(ae, { variant: "ghost", size: 32, "aria-label": "Dismiss", onClick: a, children: /* @__PURE__ */ t(ye, { "aria-hidden": "true" }) })
|
|
1592
1726
|
] });
|
|
1593
1727
|
}
|
|
1594
|
-
const
|
|
1595
|
-
inlineAlert:
|
|
1596
|
-
icon:
|
|
1597
|
-
iconNeutral:
|
|
1598
|
-
iconSuccess:
|
|
1599
|
-
iconWarning:
|
|
1600
|
-
iconDanger:
|
|
1601
|
-
body:
|
|
1602
|
-
title:
|
|
1603
|
-
action:
|
|
1604
|
-
},
|
|
1605
|
-
neutral:
|
|
1606
|
-
success:
|
|
1607
|
-
warning:
|
|
1608
|
-
danger:
|
|
1728
|
+
const Ao = "_inlineAlert_16390_7", Ro = "_icon_16390_38", Ho = "_iconNeutral_16390_43", Vo = "_iconSuccess_16390_44", Oo = "_iconWarning_16390_45", Ko = "_iconDanger_16390_46", Fo = "_body_16390_48", Uo = "_title_16390_62", Go = "_action_16390_67", W = {
|
|
1729
|
+
inlineAlert: Ao,
|
|
1730
|
+
icon: Ro,
|
|
1731
|
+
iconNeutral: Ho,
|
|
1732
|
+
iconSuccess: Vo,
|
|
1733
|
+
iconWarning: Oo,
|
|
1734
|
+
iconDanger: Ko,
|
|
1735
|
+
body: Fo,
|
|
1736
|
+
title: Uo,
|
|
1737
|
+
action: Go
|
|
1738
|
+
}, Yo = {
|
|
1739
|
+
neutral: W.iconNeutral,
|
|
1740
|
+
success: W.iconSuccess,
|
|
1741
|
+
warning: W.iconWarning,
|
|
1742
|
+
danger: W.iconDanger
|
|
1609
1743
|
};
|
|
1610
|
-
function
|
|
1744
|
+
function ds({
|
|
1611
1745
|
variant: e = "neutral",
|
|
1612
1746
|
title: n,
|
|
1613
1747
|
children: i,
|
|
1614
|
-
action:
|
|
1615
|
-
statusLabel:
|
|
1616
|
-
className:
|
|
1617
|
-
ref:
|
|
1748
|
+
action: s,
|
|
1749
|
+
statusLabel: a,
|
|
1750
|
+
className: o,
|
|
1751
|
+
ref: r,
|
|
1618
1752
|
...c
|
|
1619
1753
|
}) {
|
|
1620
|
-
const
|
|
1621
|
-
return /* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */ t("span", { className: [
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
|
|
1625
|
-
n != null && /* @__PURE__ */ t("strong", { className:
|
|
1754
|
+
const l = we[e], u = xe(e, a), h = [W.inlineAlert, o].filter(Boolean).join(" ");
|
|
1755
|
+
return /* @__PURE__ */ f("div", { ...c, ref: r, className: h, "data-variant": e, "data-psi-inline-alert": !0, children: [
|
|
1756
|
+
/* @__PURE__ */ t("span", { className: [W.icon, Yo[e]].join(" "), children: /* @__PURE__ */ t(l, { size: 20, "aria-hidden": "true" }) }),
|
|
1757
|
+
/* @__PURE__ */ f("div", { className: W.body, children: [
|
|
1758
|
+
u && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: u }),
|
|
1759
|
+
n != null && /* @__PURE__ */ t("strong", { className: W.title, children: n }),
|
|
1626
1760
|
i
|
|
1627
1761
|
] }),
|
|
1628
|
-
|
|
1762
|
+
s != null && /* @__PURE__ */ t("div", { className: W.action, children: s })
|
|
1629
1763
|
] });
|
|
1630
1764
|
}
|
|
1631
|
-
const
|
|
1632
|
-
skeleton:
|
|
1633
|
-
line:
|
|
1765
|
+
const Zo = "_skeleton_1yo7t_12", Xo = "_line_1yo7t_28", je = {
|
|
1766
|
+
skeleton: Zo,
|
|
1767
|
+
line: Xo
|
|
1634
1768
|
};
|
|
1635
|
-
function
|
|
1769
|
+
function us({
|
|
1636
1770
|
variant: e = "text",
|
|
1637
1771
|
lines: n = 1,
|
|
1638
1772
|
size: i = 40,
|
|
1639
|
-
className:
|
|
1640
|
-
ref:
|
|
1641
|
-
...
|
|
1773
|
+
className: s,
|
|
1774
|
+
ref: a,
|
|
1775
|
+
...o
|
|
1642
1776
|
}) {
|
|
1643
|
-
const
|
|
1777
|
+
const r = [je.skeleton, s].filter(Boolean).join(" "), c = Math.max(1, Math.floor(n));
|
|
1644
1778
|
return /* @__PURE__ */ t(
|
|
1645
1779
|
"div",
|
|
1646
1780
|
{
|
|
1647
|
-
...
|
|
1648
|
-
ref:
|
|
1649
|
-
className:
|
|
1781
|
+
...o,
|
|
1782
|
+
ref: a,
|
|
1783
|
+
className: r,
|
|
1650
1784
|
"aria-hidden": "true",
|
|
1651
1785
|
"data-psi-skeleton": !0,
|
|
1652
1786
|
"data-variant": e,
|
|
1653
1787
|
"data-size": e === "block" ? i : void 0,
|
|
1654
|
-
children: e === "text" && Array.from({ length: c }, (
|
|
1788
|
+
children: e === "text" && Array.from({ length: c }, (l, u) => /* @__PURE__ */ t("span", { className: je.line }, u))
|
|
1655
1789
|
}
|
|
1656
1790
|
);
|
|
1657
1791
|
}
|
|
1658
|
-
function
|
|
1792
|
+
function hs({
|
|
1659
1793
|
value: e,
|
|
1660
1794
|
label: n = "Copy",
|
|
1661
1795
|
size: i = 32,
|
|
1662
|
-
variant:
|
|
1663
|
-
onCopy:
|
|
1664
|
-
className:
|
|
1796
|
+
variant: s = "ghost",
|
|
1797
|
+
onCopy: a,
|
|
1798
|
+
className: o
|
|
1665
1799
|
}) {
|
|
1666
|
-
return /* @__PURE__ */
|
|
1667
|
-
|
|
1800
|
+
return /* @__PURE__ */ f(
|
|
1801
|
+
se,
|
|
1668
1802
|
{
|
|
1669
1803
|
type: "button",
|
|
1670
|
-
variant:
|
|
1804
|
+
variant: s,
|
|
1671
1805
|
size: i,
|
|
1672
|
-
className:
|
|
1806
|
+
className: o,
|
|
1673
1807
|
onClick: () => {
|
|
1674
|
-
const
|
|
1675
|
-
if (!(
|
|
1676
|
-
|
|
1808
|
+
const r = typeof navigator < "u" ? navigator.clipboard : void 0;
|
|
1809
|
+
if (!(r != null && r.writeText)) {
|
|
1810
|
+
a == null || a("failed");
|
|
1677
1811
|
return;
|
|
1678
1812
|
}
|
|
1679
|
-
|
|
1680
|
-
() =>
|
|
1681
|
-
() =>
|
|
1813
|
+
r.writeText(e).then(
|
|
1814
|
+
() => a == null ? void 0 : a("copied"),
|
|
1815
|
+
() => a == null ? void 0 : a("failed")
|
|
1682
1816
|
);
|
|
1683
1817
|
},
|
|
1684
1818
|
children: [
|
|
1685
|
-
/* @__PURE__ */ t(
|
|
1819
|
+
/* @__PURE__ */ t(lt, { size: 16, "aria-hidden": "true" }),
|
|
1686
1820
|
/* @__PURE__ */ t("span", { children: n })
|
|
1687
1821
|
]
|
|
1688
1822
|
}
|
|
1689
1823
|
);
|
|
1690
1824
|
}
|
|
1691
|
-
const
|
|
1692
|
-
tabs:
|
|
1693
|
-
list:
|
|
1694
|
-
tab:
|
|
1695
|
-
panel:
|
|
1696
|
-
},
|
|
1697
|
-
function
|
|
1698
|
-
const n =
|
|
1825
|
+
const Jo = "_tabs_1x9om_8", Qo = "_list_1x9om_21", ei = "_tab_1x9om_8", ni = "_panel_1x9om_99", pe = {
|
|
1826
|
+
tabs: Jo,
|
|
1827
|
+
list: Qo,
|
|
1828
|
+
tab: ei,
|
|
1829
|
+
panel: ni
|
|
1830
|
+
}, Pe = K(null);
|
|
1831
|
+
function ke(e) {
|
|
1832
|
+
const n = B(Pe);
|
|
1699
1833
|
if (!n)
|
|
1700
1834
|
throw new Error(
|
|
1701
1835
|
`Psi ${e}: must be rendered inside <Tabs>. Tabs owns the selected value, the orientation and the ids that wire aria-controls and aria-labelledby together.`
|
|
1702
1836
|
);
|
|
1703
1837
|
return n;
|
|
1704
1838
|
}
|
|
1705
|
-
function
|
|
1839
|
+
function _s({
|
|
1706
1840
|
value: e,
|
|
1707
1841
|
onValueChange: n,
|
|
1708
1842
|
orientation: i = "horizontal",
|
|
1709
|
-
children:
|
|
1710
|
-
className:
|
|
1711
|
-
ref:
|
|
1843
|
+
children: s,
|
|
1844
|
+
className: a,
|
|
1845
|
+
ref: o
|
|
1712
1846
|
}) {
|
|
1713
|
-
const
|
|
1847
|
+
const r = P(), [c, l] = ee([]), u = k((v) => (l((m) => [...m, v]), () => l((m) => m.filter((b) => b !== v))), []), { tabStop: h, unmatched: d } = _e(() => {
|
|
1714
1848
|
if (c.length === 0) return { tabStop: e, unmatched: !1 };
|
|
1715
|
-
if (c.some((
|
|
1716
|
-
const
|
|
1717
|
-
(
|
|
1849
|
+
if (c.some((b) => b.value === e)) return { tabStop: e, unmatched: !1 };
|
|
1850
|
+
const v = [...c].sort(
|
|
1851
|
+
(b, x) => b.el && x.el && b.el !== x.el ? b.el.compareDocumentPosition(x.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1 : 0
|
|
1718
1852
|
);
|
|
1719
|
-
return { tabStop: (
|
|
1853
|
+
return { tabStop: (v.find((b) => !b.disabled) ?? v[0]).value, unmatched: !0 };
|
|
1720
1854
|
}, [c, e]);
|
|
1721
|
-
|
|
1722
|
-
!
|
|
1855
|
+
I(() => {
|
|
1856
|
+
!d || process.env.NODE_ENV === "production" || console.warn(
|
|
1723
1857
|
`Tabs: value "${e}" matches no tab; the first enabled tab takes the tab stop.`
|
|
1724
1858
|
);
|
|
1725
|
-
}, [
|
|
1726
|
-
const
|
|
1727
|
-
() => ({ value: e, onValueChange: n, orientation: i, idPrefix:
|
|
1728
|
-
[e, n, i,
|
|
1859
|
+
}, [d, e]);
|
|
1860
|
+
const _ = _e(
|
|
1861
|
+
() => ({ value: e, onValueChange: n, orientation: i, idPrefix: r, tabStop: h, registerTab: u }),
|
|
1862
|
+
[e, n, i, r, h, u]
|
|
1729
1863
|
);
|
|
1730
|
-
return /* @__PURE__ */ t(
|
|
1864
|
+
return /* @__PURE__ */ t(Pe.Provider, { value: _, children: /* @__PURE__ */ t(
|
|
1731
1865
|
"div",
|
|
1732
1866
|
{
|
|
1733
|
-
ref:
|
|
1734
|
-
className: [
|
|
1867
|
+
ref: o,
|
|
1868
|
+
className: [pe.tabs, a].filter(Boolean).join(" "),
|
|
1735
1869
|
"data-orientation": i,
|
|
1736
|
-
children:
|
|
1870
|
+
children: s
|
|
1737
1871
|
}
|
|
1738
1872
|
) });
|
|
1739
1873
|
}
|
|
1740
|
-
function
|
|
1874
|
+
function Ae(e, n) {
|
|
1741
1875
|
return `${e}tab-${n}`;
|
|
1742
1876
|
}
|
|
1743
|
-
function
|
|
1877
|
+
function Re(e, n) {
|
|
1744
1878
|
return `${e}panel-${n}`;
|
|
1745
1879
|
}
|
|
1746
|
-
function
|
|
1747
|
-
const
|
|
1748
|
-
const
|
|
1749
|
-
return
|
|
1750
|
-
|
|
1880
|
+
function ti({ listRef: e, orientation: n, onValueChange: i }) {
|
|
1881
|
+
const s = k(() => {
|
|
1882
|
+
const o = e.current;
|
|
1883
|
+
return o ? Array.from(
|
|
1884
|
+
o.querySelectorAll('[data-psi-tab]:not([aria-disabled="true"])')
|
|
1751
1885
|
) : [];
|
|
1752
|
-
}, [e]),
|
|
1753
|
-
(
|
|
1754
|
-
if (!
|
|
1755
|
-
for (const c of
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1886
|
+
}, [e]), a = k(
|
|
1887
|
+
(o) => {
|
|
1888
|
+
if (!o) return;
|
|
1889
|
+
for (const c of s()) c.tabIndex = c === o ? 0 : -1;
|
|
1890
|
+
o.focus();
|
|
1891
|
+
const r = o.dataset.value;
|
|
1892
|
+
r != null && i(r);
|
|
1759
1893
|
},
|
|
1760
|
-
[
|
|
1894
|
+
[s, i]
|
|
1761
1895
|
);
|
|
1762
|
-
return
|
|
1763
|
-
(
|
|
1764
|
-
const
|
|
1765
|
-
if (
|
|
1766
|
-
const [c,
|
|
1767
|
-
switch (
|
|
1768
|
-
case
|
|
1769
|
-
|
|
1896
|
+
return k(
|
|
1897
|
+
(o) => {
|
|
1898
|
+
const r = s();
|
|
1899
|
+
if (r.length === 0) return;
|
|
1900
|
+
const [c, l] = n === "vertical" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"], u = r.indexOf(document.activeElement);
|
|
1901
|
+
switch (o.key) {
|
|
1902
|
+
case l:
|
|
1903
|
+
o.preventDefault(), a(r[(u + 1 + r.length) % r.length]);
|
|
1770
1904
|
break;
|
|
1771
1905
|
case c:
|
|
1772
|
-
|
|
1906
|
+
o.preventDefault(), a(r[(u - 1 + r.length) % r.length]);
|
|
1773
1907
|
break;
|
|
1774
1908
|
case "Home":
|
|
1775
|
-
|
|
1909
|
+
o.preventDefault(), a(r[0]);
|
|
1776
1910
|
break;
|
|
1777
1911
|
case "End":
|
|
1778
|
-
|
|
1912
|
+
o.preventDefault(), a(r[r.length - 1]);
|
|
1779
1913
|
break;
|
|
1780
1914
|
}
|
|
1781
1915
|
},
|
|
1782
|
-
[
|
|
1916
|
+
[a, s, n]
|
|
1783
1917
|
);
|
|
1784
1918
|
}
|
|
1785
|
-
function
|
|
1786
|
-
const { orientation:
|
|
1787
|
-
|
|
1788
|
-
},
|
|
1919
|
+
function fs({ "aria-label": e, children: n, className: i, ref: s }) {
|
|
1920
|
+
const { orientation: a, onValueChange: o } = ke("TabList"), r = $(null), c = (u) => {
|
|
1921
|
+
r.current = u, typeof s == "function" ? s(u) : s && (s.current = u);
|
|
1922
|
+
}, l = ti({ listRef: r, orientation: a, onValueChange: o });
|
|
1789
1923
|
return /* @__PURE__ */ t(
|
|
1790
1924
|
"div",
|
|
1791
1925
|
{
|
|
1792
1926
|
ref: c,
|
|
1793
1927
|
role: "tablist",
|
|
1794
1928
|
"aria-label": e,
|
|
1795
|
-
"aria-orientation":
|
|
1796
|
-
className: [
|
|
1797
|
-
onKeyDown:
|
|
1929
|
+
"aria-orientation": a,
|
|
1930
|
+
className: [pe.list, i].filter(Boolean).join(" "),
|
|
1931
|
+
onKeyDown: l,
|
|
1798
1932
|
children: n
|
|
1799
1933
|
}
|
|
1800
1934
|
);
|
|
1801
1935
|
}
|
|
1802
|
-
function
|
|
1803
|
-
const
|
|
1804
|
-
c.current =
|
|
1936
|
+
function ps({ value: e, children: n, disabled: i = !1, className: s, ref: a }) {
|
|
1937
|
+
const o = ke("Tab"), r = o.value === e, c = $(null), { registerTab: l } = o, u = (h) => {
|
|
1938
|
+
c.current = h, typeof a == "function" ? a(h) : a && (a.current = h);
|
|
1805
1939
|
};
|
|
1806
|
-
return
|
|
1807
|
-
() =>
|
|
1808
|
-
[
|
|
1940
|
+
return ze(
|
|
1941
|
+
() => l == null ? void 0 : l({ value: e, disabled: i, el: c.current }),
|
|
1942
|
+
[l, e, i]
|
|
1809
1943
|
), /* @__PURE__ */ t(
|
|
1810
1944
|
"button",
|
|
1811
1945
|
{
|
|
1812
|
-
ref:
|
|
1946
|
+
ref: u,
|
|
1813
1947
|
type: "button",
|
|
1814
1948
|
role: "tab",
|
|
1815
|
-
id:
|
|
1949
|
+
id: Ae(o.idPrefix, e),
|
|
1816
1950
|
"data-psi-tab": !0,
|
|
1817
1951
|
"data-value": e,
|
|
1818
|
-
"aria-selected":
|
|
1819
|
-
"aria-controls":
|
|
1952
|
+
"aria-selected": r,
|
|
1953
|
+
"aria-controls": Re(o.idPrefix, e),
|
|
1820
1954
|
"aria-disabled": i || void 0,
|
|
1821
|
-
tabIndex: (
|
|
1822
|
-
className: [
|
|
1955
|
+
tabIndex: (o.tabStop ?? o.value) === e ? 0 : -1,
|
|
1956
|
+
className: [pe.tab, s].filter(Boolean).join(" "),
|
|
1823
1957
|
onClick: () => {
|
|
1824
|
-
i ||
|
|
1958
|
+
i || o.onValueChange(e);
|
|
1825
1959
|
},
|
|
1826
1960
|
children: n
|
|
1827
1961
|
}
|
|
1828
1962
|
);
|
|
1829
1963
|
}
|
|
1830
|
-
function
|
|
1831
|
-
const
|
|
1964
|
+
function gs({ value: e, children: n, className: i, ref: s }) {
|
|
1965
|
+
const a = ke("TabPanel"), o = a.value === e;
|
|
1832
1966
|
return /* @__PURE__ */ t(
|
|
1833
1967
|
"div",
|
|
1834
1968
|
{
|
|
1835
|
-
ref:
|
|
1969
|
+
ref: s,
|
|
1836
1970
|
role: "tabpanel",
|
|
1837
|
-
id:
|
|
1838
|
-
"aria-labelledby":
|
|
1839
|
-
hidden: !
|
|
1971
|
+
id: Re(a.idPrefix, e),
|
|
1972
|
+
"aria-labelledby": Ae(a.idPrefix, e),
|
|
1973
|
+
hidden: !o,
|
|
1840
1974
|
tabIndex: 0,
|
|
1841
|
-
className: [
|
|
1975
|
+
className: [pe.panel, i].filter(Boolean).join(" "),
|
|
1842
1976
|
children: n
|
|
1843
1977
|
}
|
|
1844
1978
|
);
|
|
1845
1979
|
}
|
|
1846
1980
|
export {
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
Fi as
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1981
|
+
Me as Announcement,
|
|
1982
|
+
fi as AppShell,
|
|
1983
|
+
pi as AspectRatio,
|
|
1984
|
+
ls as Banner,
|
|
1985
|
+
se as Button,
|
|
1986
|
+
ii as Card,
|
|
1987
|
+
Te as Checkbox,
|
|
1988
|
+
hs as CopyButton,
|
|
1989
|
+
ss as CursorPagination,
|
|
1990
|
+
ci as DescriptionItem,
|
|
1991
|
+
ai as DescriptionList,
|
|
1992
|
+
Pi as Dialog,
|
|
1993
|
+
gi as Field,
|
|
1994
|
+
ne as FieldContext,
|
|
1995
|
+
ht as IconAlertCircle,
|
|
1996
|
+
ut as IconAlertTriangle,
|
|
1997
|
+
Ci as IconArrowDown,
|
|
1998
|
+
ji as IconArrowUpRight,
|
|
1999
|
+
ae as IconButton,
|
|
2000
|
+
st as IconCheck,
|
|
2001
|
+
Fn as IconChevronDown,
|
|
2002
|
+
ct as IconChevronLeft,
|
|
2003
|
+
at as IconChevronRight,
|
|
2004
|
+
ye as IconClose,
|
|
2005
|
+
lt as IconCopy,
|
|
2006
|
+
ki as IconEdit,
|
|
2007
|
+
$i as IconExternalLink,
|
|
2008
|
+
Bi as IconEye,
|
|
2009
|
+
Li as IconEyeOff,
|
|
2010
|
+
Ti as IconGitHub,
|
|
2011
|
+
dt as IconInfo,
|
|
2012
|
+
qi as IconInstagram,
|
|
2013
|
+
zi as IconLinkedIn,
|
|
2014
|
+
Si as IconLoader,
|
|
2015
|
+
Mi as IconLogOut,
|
|
2016
|
+
Di as IconMenu,
|
|
2017
|
+
mi as IconMinus,
|
|
2018
|
+
Ei as IconMoreHorizontal,
|
|
2019
|
+
bi as IconPlus,
|
|
2020
|
+
yi as IconSearch,
|
|
2021
|
+
wi as IconSettings,
|
|
2022
|
+
Wi as IconSimCard,
|
|
2023
|
+
Ni as IconTrash,
|
|
2024
|
+
xi as IconUser,
|
|
2025
|
+
Ii as IconX,
|
|
2026
|
+
ds as InlineAlert,
|
|
2027
|
+
Ai as Input,
|
|
2028
|
+
Yi as Menu,
|
|
2029
|
+
qe as MenuContext,
|
|
2030
|
+
Zi as MenuItem,
|
|
2031
|
+
Xi as MenuSeparator,
|
|
2032
|
+
Ji as MenuText,
|
|
2033
|
+
li as NavBar,
|
|
2034
|
+
hi as NavGroup,
|
|
2035
|
+
_i as NavItem,
|
|
2036
|
+
ui as NavTree,
|
|
2037
|
+
is as Pagination,
|
|
2038
|
+
si as Panel,
|
|
2039
|
+
Ki as Radio,
|
|
2040
|
+
Oi as RadioGroup,
|
|
2041
|
+
Ie as RadioGroupContext,
|
|
2042
|
+
Ri as Select,
|
|
2043
|
+
us as Skeleton,
|
|
2044
|
+
di as SkipLink,
|
|
2045
|
+
Hi as Switch,
|
|
2046
|
+
ps as Tab,
|
|
2047
|
+
fs as TabList,
|
|
2048
|
+
gs as TabPanel,
|
|
2049
|
+
Qi as Table,
|
|
2050
|
+
io as TableBody,
|
|
2051
|
+
os as TableCaption,
|
|
2052
|
+
rs as TableCell,
|
|
2053
|
+
es as TableHead,
|
|
2054
|
+
ts as TableHeaderCell,
|
|
2055
|
+
ns as TableRow,
|
|
2056
|
+
_s as Tabs,
|
|
2057
|
+
Pe as TabsContext,
|
|
2058
|
+
Fi as Tag,
|
|
2059
|
+
Vi as Textarea,
|
|
2060
|
+
me as Toast,
|
|
2061
|
+
We as ToastContext,
|
|
2062
|
+
cs as ToastProvider,
|
|
2063
|
+
So as ToastRegion,
|
|
2064
|
+
Gi as Toolbar,
|
|
2065
|
+
Ui as Tooltip,
|
|
2066
|
+
vi as useFieldControl,
|
|
2067
|
+
as as useToast
|
|
1930
2068
|
};
|