@handamade/psi-react 0.25.0 → 0.27.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 +23 -1
- package/dist/Checkbox/Checkbox.d.ts +11 -2
- 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/Stack/Stack.d.ts +19 -0
- package/dist/Stack/Stack.d.ts.map +1 -0
- package/dist/Table/TableSelectionCell.d.ts.map +1 -1
- package/dist/Text/Text.d.ts +24 -0
- package/dist/Text/Text.d.ts.map +1 -0
- package/dist/Textarea/Textarea.d.ts +25 -0
- package/dist/Textarea/Textarea.d.ts.map +1 -0
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/a11y-meta.d.ts.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1393 -1188
- package/dist/manifest.json +345 -5
- package/dist/patterns.json +153 -6
- package/dist/styles.css +1 -1
- package/docs/Checkbox.md +2 -1
- 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/Stack.md +40 -0
- package/docs/Text.md +42 -0
- package/docs/Textarea.md +43 -0
- package/docs/Tooltip.md +1 -1
- package/llms.txt +12 -5
- 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 h, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
+
import { Children as F, useId as R, isValidElement as te, Fragment as ye, cloneElement as pe, createContext as U, useContext as $, useRef as B, useEffect as z, useLayoutEffect as ze, useState as re, useCallback as k, useMemo as ge } from "react";
|
|
3
|
+
const Fe = "_button_1rxq8_3", Ue = "_disabled_1rxq8_45", Ge = "_size24_1rxq8_70", Ye = "_size32_1rxq8_88", Ze = "_size40_1rxq8_106", Xe = "_size48_1rxq8_124", Je = "_accent_1rxq8_145", Qe = "_accentSubtle_1rxq8_157", en = "_neutral_1rxq8_169", nn = "_neutralSubtle_1rxq8_181", tn = "_ghost_1rxq8_193", rn = "_danger_1rxq8_205", on = "_dangerSubtle_1rxq8_217", sn = "_outline_1rxq8_229", L = {
|
|
4
|
+
button: Fe,
|
|
5
|
+
disabled: Ue,
|
|
6
|
+
size24: Ge,
|
|
7
|
+
size32: Ye,
|
|
8
|
+
size40: Ze,
|
|
9
|
+
size48: Xe,
|
|
10
|
+
accent: Je,
|
|
11
|
+
accentSubtle: Qe,
|
|
12
|
+
neutral: en,
|
|
13
|
+
neutralSubtle: nn,
|
|
14
|
+
ghost: tn,
|
|
15
|
+
danger: rn,
|
|
16
|
+
dangerSubtle: on,
|
|
17
|
+
outline: sn
|
|
18
|
+
}, an = {
|
|
19
|
+
accent: L.accent,
|
|
20
|
+
"accent-subtle": L.accentSubtle,
|
|
21
|
+
neutral: L.neutral,
|
|
22
|
+
"neutral-subtle": L.neutralSubtle,
|
|
23
|
+
ghost: L.ghost,
|
|
24
|
+
danger: L.danger,
|
|
25
|
+
"danger-subtle": L.dangerSubtle,
|
|
26
|
+
outline: L.outline
|
|
27
|
+
}, cn = {
|
|
28
|
+
24: L.size24,
|
|
29
|
+
32: L.size32,
|
|
30
|
+
40: L.size40,
|
|
31
|
+
48: L.size48
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function ce({
|
|
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
|
+
...d
|
|
44
44
|
}) {
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
i !== void 0 &&
|
|
50
|
-
|
|
45
|
+
const _ = [
|
|
46
|
+
L.button,
|
|
47
|
+
an[e],
|
|
48
|
+
cn[n],
|
|
49
|
+
i !== void 0 && o ? L.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: _,
|
|
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
|
+
...d
|
|
63
63
|
}
|
|
64
64
|
) : /* @__PURE__ */ t(
|
|
65
65
|
"button",
|
|
66
66
|
{
|
|
67
|
-
ref:
|
|
68
|
-
className:
|
|
69
|
-
disabled:
|
|
67
|
+
ref: l,
|
|
68
|
+
className: _,
|
|
69
|
+
disabled: o,
|
|
70
70
|
onClick: c,
|
|
71
|
-
...
|
|
71
|
+
...d
|
|
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 ln = "_iconButton_1q4hx_3", dn = "_disabled_1q4hx_29", un = "_size24_1q4hx_37", _n = "_size32_1q4hx_42", hn = "_size40_1q4hx_47", fn = "_size48_1q4hx_52", gn = "_accent_1q4hx_60", pn = "_neutral_1q4hx_72", mn = "_ghost_1q4hx_84", vn = "_danger_1q4hx_96", W = {
|
|
76
|
+
iconButton: ln,
|
|
77
|
+
disabled: dn,
|
|
78
|
+
size24: un,
|
|
79
|
+
size32: _n,
|
|
80
|
+
size40: hn,
|
|
81
|
+
size48: fn,
|
|
82
|
+
accent: gn,
|
|
83
|
+
neutral: pn,
|
|
84
|
+
ghost: mn,
|
|
85
|
+
danger: vn
|
|
86
|
+
}, bn = {
|
|
87
|
+
accent: W.accent,
|
|
88
|
+
neutral: W.neutral,
|
|
89
|
+
ghost: W.ghost,
|
|
90
|
+
danger: W.danger
|
|
91
|
+
}, yn = {
|
|
92
|
+
24: W.size24,
|
|
93
|
+
32: W.size32,
|
|
94
|
+
40: W.size40,
|
|
95
|
+
48: W.size48
|
|
96
96
|
};
|
|
97
|
-
function
|
|
97
|
+
function le({
|
|
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
|
+
...d
|
|
108
108
|
}) {
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
i !== void 0 &&
|
|
114
|
-
|
|
109
|
+
const _ = [
|
|
110
|
+
W.iconButton,
|
|
111
|
+
bn[e],
|
|
112
|
+
yn[n],
|
|
113
|
+
i !== void 0 && o ? W.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: _,
|
|
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
|
+
...d
|
|
127
127
|
}
|
|
128
128
|
) : /* @__PURE__ */ t(
|
|
129
129
|
"button",
|
|
130
130
|
{
|
|
131
|
-
ref:
|
|
132
|
-
className:
|
|
133
|
-
disabled:
|
|
131
|
+
ref: l,
|
|
132
|
+
className: _,
|
|
133
|
+
disabled: o,
|
|
134
134
|
onClick: c,
|
|
135
|
-
...
|
|
135
|
+
...d
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
card:
|
|
141
|
-
stacked:
|
|
142
|
-
featured:
|
|
143
|
-
media:
|
|
144
|
-
body:
|
|
145
|
-
hoverLift:
|
|
139
|
+
const wn = "_card_1btb3_1", xn = "_stacked_1btb3_8", kn = "_featured_1btb3_10", Nn = "_media_1btb3_22", $n = "_body_1btb3_23", Bn = "_hoverLift_1btb3_31", Y = {
|
|
140
|
+
card: wn,
|
|
141
|
+
stacked: xn,
|
|
142
|
+
featured: kn,
|
|
143
|
+
media: Nn,
|
|
144
|
+
body: $n,
|
|
145
|
+
hoverLift: Bn
|
|
146
146
|
};
|
|
147
|
-
function
|
|
147
|
+
function ji({
|
|
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
|
+
Y.card,
|
|
158
|
+
e === "featured" ? Y.featured : Y.stacked,
|
|
159
|
+
i ? Y.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__ */ h("div", { ref: o, className: c, ...r, children: [
|
|
163
|
+
n != null && /* @__PURE__ */ t("div", { className: Y.media, children: n }),
|
|
164
|
+
/* @__PURE__ */ t("div", { className: Y.body, children: a })
|
|
165
165
|
] });
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
panel:
|
|
169
|
-
padding16:
|
|
167
|
+
const Sn = "_panel_jn8w4_1", Cn = "_padding16_jn8w4_8", Ce = {
|
|
168
|
+
panel: Sn,
|
|
169
|
+
padding16: Cn
|
|
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 Ti({ padding: e = 24, className: n, children: i, ref: s, ...a }) {
|
|
172
|
+
const o = [Ce.panel, e === 16 ? Ce.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", jn = "_item_1lh3q_26", Tn = "_term_1lh3q_44", In = "_value_1lh3q_50", he = {
|
|
176
|
+
list: Ln,
|
|
177
|
+
item: jn,
|
|
178
|
+
term: Tn,
|
|
179
|
+
value: In
|
|
180
180
|
};
|
|
181
|
-
function
|
|
181
|
+
function Ii({
|
|
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: [he.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 zi({ term: e, className: n, children: i, ref: s, ...a }) {
|
|
202
|
+
return /* @__PURE__ */ h("div", { ref: s, className: [he.item, n].filter(Boolean).join(" "), ...a, children: [
|
|
203
|
+
/* @__PURE__ */ t("dt", { className: he.term, children: e }),
|
|
204
|
+
/* @__PURE__ */ t("dd", { className: he.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", qn = "_inner_1w24e_12", Mn = "_fluid_1w24e_20", En = "_brand_1w24e_22", Dn = "_links_1w24e_23", Wn = "_actions_1w24e_53", Z = {
|
|
208
|
+
navbar: zn,
|
|
209
|
+
inner: qn,
|
|
210
|
+
fluid: Mn,
|
|
211
|
+
brand: En,
|
|
212
|
+
links: Dn,
|
|
213
|
+
actions: Wn
|
|
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 qi({ brand: e, actions: n, children: i, navLabel: s, fluid: a = !1, className: o, ref: r, ...c }) {
|
|
216
|
+
const l = [Z.navbar, o].filter(Boolean).join(" "), d = F.toArray(i).length > 0;
|
|
217
|
+
return /* @__PURE__ */ t("header", { ref: r, className: l, ...c, children: /* @__PURE__ */ h("div", { className: `${a ? Z.fluid : "psi-container"} ${Z.inner}`, children: [
|
|
218
|
+
e != null && /* @__PURE__ */ t("div", { className: Z.brand, children: e }),
|
|
219
|
+
d && /* @__PURE__ */ t("nav", { className: Z.links, "aria-label": s, children: i }),
|
|
220
|
+
n != null && /* @__PURE__ */ t("div", { className: Z.actions, children: n })
|
|
221
221
|
] }) });
|
|
222
222
|
}
|
|
223
|
-
const
|
|
224
|
-
skipLink:
|
|
223
|
+
const Pn = "_skipLink_1fn0y_4", An = {
|
|
224
|
+
skipLink: Pn
|
|
225
225
|
};
|
|
226
|
-
function
|
|
227
|
-
const
|
|
228
|
-
return /* @__PURE__ */ t("a", { ref: n, className:
|
|
229
|
-
}
|
|
230
|
-
const
|
|
231
|
-
navTree:
|
|
232
|
-
list:
|
|
233
|
-
groupList:
|
|
234
|
-
item:
|
|
235
|
-
groupButton:
|
|
236
|
-
groupLabel:
|
|
237
|
-
chevron:
|
|
226
|
+
function Mi({ className: e, ref: n, children: i, ...s }) {
|
|
227
|
+
const a = [An.skipLink, e].filter(Boolean).join(" ");
|
|
228
|
+
return /* @__PURE__ */ t("a", { ref: n, className: a, ...s, children: i });
|
|
229
|
+
}
|
|
230
|
+
const Rn = "_navTree_1ktoe_7", Hn = "_list_1ktoe_11", Vn = "_groupList_1ktoe_12", On = "_item_1ktoe_23", Kn = "_groupButton_1ktoe_79", Fn = "_groupLabel_1ktoe_108", Un = "_chevron_1ktoe_112", V = {
|
|
231
|
+
navTree: Rn,
|
|
232
|
+
list: Hn,
|
|
233
|
+
groupList: Vn,
|
|
234
|
+
item: On,
|
|
235
|
+
groupButton: Kn,
|
|
236
|
+
groupLabel: Fn,
|
|
237
|
+
chevron: Un
|
|
238
238
|
};
|
|
239
|
-
function
|
|
240
|
-
const
|
|
241
|
-
return /* @__PURE__ */ t("nav", { ref: i, className:
|
|
239
|
+
function Ei({ children: e, className: n, ref: i, ...s }) {
|
|
240
|
+
const a = [V.navTree, n].filter(Boolean).join(" ");
|
|
241
|
+
return /* @__PURE__ */ t("nav", { ref: i, className: a, ...s, children: /* @__PURE__ */ t("ul", { className: V.list, children: e }) });
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Gn({ 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 Di({ label: e, open: n, onOpenChange: i, children: s, className: a }) {
|
|
247
|
+
const o = R(), r = [V.group, a].filter(Boolean).join(" ");
|
|
248
|
+
return /* @__PURE__ */ h("li", { className: r, children: [
|
|
249
|
+
/* @__PURE__ */ h(
|
|
250
250
|
"button",
|
|
251
251
|
{
|
|
252
252
|
type: "button",
|
|
253
|
-
className:
|
|
253
|
+
className: V.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: V.groupLabel, children: e }),
|
|
259
|
+
/* @__PURE__ */ t(Gn, { size: 16, className: V.chevron, "aria-hidden": "true" })
|
|
260
260
|
]
|
|
261
261
|
}
|
|
262
262
|
),
|
|
263
|
-
/* @__PURE__ */ t("ul", { id:
|
|
263
|
+
/* @__PURE__ */ t("ul", { id: o, className: V.groupList, hidden: !n, children: s })
|
|
264
264
|
] });
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
268
|
-
return /* @__PURE__ */ t("li", { ref:
|
|
266
|
+
function Wi({ children: e, href: n, current: i, className: s, ref: a, ...o }) {
|
|
267
|
+
const r = [V.item, s].filter(Boolean).join(" "), c = n === void 0 && i && te(e) && e.type !== ye ? 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 ? pe(c, { "aria-current": "page" }) : e });
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
appShell:
|
|
272
|
-
sidebarClosed:
|
|
273
|
-
header:
|
|
274
|
-
sidebar:
|
|
275
|
-
main:
|
|
270
|
+
const Yn = "_appShell_i1tds_10", Zn = "_sidebarClosed_i1tds_18", Xn = "_header_i1tds_22", Jn = "_sidebar_i1tds_18", Qn = "_main_i1tds_45", ie = {
|
|
271
|
+
appShell: Yn,
|
|
272
|
+
sidebarClosed: Zn,
|
|
273
|
+
header: Xn,
|
|
274
|
+
sidebar: Jn,
|
|
275
|
+
main: Qn
|
|
276
276
|
};
|
|
277
|
-
function
|
|
277
|
+
function Pi({
|
|
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: d,
|
|
288
|
+
..._
|
|
289
289
|
}) {
|
|
290
|
-
const
|
|
291
|
-
return /* @__PURE__ */
|
|
290
|
+
const u = a && i != null, f = [ie.appShell, !u && ie.sidebarClosed, l].filter(Boolean).join(" ");
|
|
291
|
+
return /* @__PURE__ */ h("div", { ref: d, className: f, ..._, 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: ie.header, children: n }),
|
|
294
|
+
/* @__PURE__ */ t("div", { id: r, className: ie.sidebar, hidden: !u, "data-psi-theme": o, children: i }),
|
|
295
|
+
/* @__PURE__ */ t("main", { id: c, className: ie.main, tabIndex: -1, children: s })
|
|
296
296
|
] });
|
|
297
297
|
}
|
|
298
|
-
const
|
|
299
|
-
frame:
|
|
298
|
+
const et = "_frame_et4fc_1", nt = {
|
|
299
|
+
frame: et
|
|
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 Ai({ ratio: e, className: n, style: i, children: s, ref: a, ...o }) {
|
|
302
|
+
const r = [nt.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 tt = "_field_x989o_1", rt = "_label_x989o_10", ot = "_marker_x989o_19", it = "_requiredText_x989o_25", st = "_message_x989o_30", at = "_invalid_x989o_36", O = {
|
|
306
|
+
field: tt,
|
|
307
|
+
label: rt,
|
|
308
|
+
marker: ot,
|
|
309
|
+
requiredText: it,
|
|
310
|
+
message: st,
|
|
311
|
+
invalid: at
|
|
312
|
+
}, G = U(null);
|
|
313
|
+
function Ri({
|
|
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: d,
|
|
324
|
+
ref: _,
|
|
325
|
+
...u
|
|
326
326
|
}) {
|
|
327
|
-
const f = R(), g =
|
|
327
|
+
const f = R(), g = r ?? f, m = !!i, b = m ? i : n, x = b != null && b !== !1 ? `${g}-message` : void 0, j = e != null && !o ? `${g}-label` : void 0, S = [O.field, m && O.invalid, l].filter(Boolean).join(" "), T = e != null ? /* @__PURE__ */ h(fe, { children: [
|
|
328
328
|
e,
|
|
329
|
-
|
|
329
|
+
s && (a !== void 0 ? /* @__PURE__ */ h("span", { "aria-hidden": "true", className: O.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: O.marker, children: " *" }))
|
|
333
|
+
] }) : null, y = /* @__PURE__ */ h(fe, { children: [
|
|
334
|
+
T != null && (o ? /* @__PURE__ */ t("legend", { className: O.label, children: T }) : /* @__PURE__ */ t("label", { id: j, className: O.label, htmlFor: g, children: T })),
|
|
335
|
+
/* @__PURE__ */ t(G.Provider, { value: { id: g, labelId: j, describedBy: x, invalid: m, required: s, group: o }, children: d }),
|
|
336
|
+
x && /* @__PURE__ */ t("p", { id: x, className: O.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: _,
|
|
342
|
+
className: S,
|
|
343
|
+
"aria-describedby": x,
|
|
344
|
+
...u,
|
|
345
|
+
children: y
|
|
346
346
|
}
|
|
347
|
-
) : /* @__PURE__ */ t("div", { ref:
|
|
347
|
+
) : /* @__PURE__ */ t("div", { ref: _, className: S, ...u, children: y });
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
const e =
|
|
349
|
+
function Hi() {
|
|
350
|
+
const e = $(G);
|
|
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 Vi({ size: e = 20, ...n }) {
|
|
360
|
+
return /* @__PURE__ */ h("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 Oi({ 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 xe({ size: e = 20, ...n }) {
|
|
369
|
+
return /* @__PURE__ */ h("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 ct({ 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 lt({ 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 dt({ 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 Ki({ size: e = 20, ...n }) {
|
|
384
|
+
return /* @__PURE__ */ h("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 Fi({ size: e = 20, ...n }) {
|
|
390
|
+
return /* @__PURE__ */ h("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 Ui({ size: e = 20, ...n }) {
|
|
396
|
+
return /* @__PURE__ */ h("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 Gi({ size: e = 20, ...n }) {
|
|
402
|
+
return /* @__PURE__ */ h("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 Yi({ size: e = 20, ...n }) {
|
|
408
|
+
return /* @__PURE__ */ h("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 ut({ size: e = 20, ...n }) {
|
|
414
|
+
return /* @__PURE__ */ h("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 Zi({ size: e = 20, ...n }) {
|
|
420
|
+
return /* @__PURE__ */ h("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 Xi({ size: e = 20, ...n }) {
|
|
427
|
+
return /* @__PURE__ */ h("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 Ji({ size: e = 20, ...n }) {
|
|
433
|
+
return /* @__PURE__ */ h("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 Qi({ size: e = 20, ...n }) {
|
|
441
|
+
return /* @__PURE__ */ h("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,531 @@ 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 es({ size: e = 20, ...n }) {
|
|
453
|
+
return /* @__PURE__ */ h("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 ns({ size: e = 20, ...n }) {
|
|
459
|
+
return /* @__PURE__ */ h("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 ts({ 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 rs({ 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 os({ 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 is({ size: e = 20, ...n }) {
|
|
474
|
+
return /* @__PURE__ */ h("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 _t({ size: e = 20, ...n }) {
|
|
481
|
+
return /* @__PURE__ */ h("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 ht({ size: e = 20, ...n }) {
|
|
488
|
+
return /* @__PURE__ */ h("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 ft({ size: e = 20, ...n }) {
|
|
495
|
+
return /* @__PURE__ */ h("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 ss({ size: e = 20, ...n }) {
|
|
502
|
+
return /* @__PURE__ */ h("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 as({ size: e = 20, ...n }) {
|
|
509
|
+
return /* @__PURE__ */ h("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 cs({ size: e = 20, ...n }) {
|
|
516
|
+
return /* @__PURE__ */ h("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 ls({ size: e = 20, ...n }) {
|
|
523
|
+
return /* @__PURE__ */ h("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 gt = "_dialog_qg38y_2", pt = "_panel_qg38y_20", mt = "_center_qg38y_42", vt = "_inlineStart_qg38y_50", bt = "_inlineEnd_qg38y_51", yt = "_w400_qg38y_100", wt = "_w560_qg38y_101", xt = "_w720_qg38y_102", kt = "_header_qg38y_124", Nt = "_title_qg38y_131", $t = "_footer_qg38y_137", q = {
|
|
530
|
+
dialog: gt,
|
|
531
|
+
panel: pt,
|
|
532
|
+
center: mt,
|
|
533
|
+
inlineStart: vt,
|
|
534
|
+
inlineEnd: bt,
|
|
535
|
+
w400: yt,
|
|
536
|
+
w560: wt,
|
|
537
|
+
w720: xt,
|
|
538
|
+
header: kt,
|
|
539
|
+
title: Nt,
|
|
540
|
+
footer: $t
|
|
541
|
+
}, Bt = {
|
|
542
|
+
400: q.w400,
|
|
543
|
+
560: q.w560,
|
|
544
|
+
720: q.w720
|
|
545
|
+
}, St = {
|
|
546
|
+
center: q.center,
|
|
547
|
+
"inline-start": q.inlineStart,
|
|
548
|
+
"inline-end": q.inlineEnd
|
|
549
549
|
};
|
|
550
|
-
function
|
|
550
|
+
function ds({
|
|
551
551
|
open: e,
|
|
552
552
|
onClose: n,
|
|
553
553
|
title: i,
|
|
554
|
-
footer:
|
|
555
|
-
width:
|
|
556
|
-
placement:
|
|
557
|
-
dismissible:
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
554
|
+
footer: s,
|
|
555
|
+
width: a = 560,
|
|
556
|
+
placement: o = "center",
|
|
557
|
+
dismissible: r = !0,
|
|
558
|
+
closeOnEscape: c,
|
|
559
|
+
initialFocus: l,
|
|
560
|
+
closeLabel: d,
|
|
561
|
+
className: _,
|
|
562
|
+
children: u,
|
|
563
|
+
ref: f,
|
|
564
|
+
...g
|
|
562
565
|
}) {
|
|
563
|
-
const
|
|
564
|
-
|
|
566
|
+
const m = B(null), b = R(), x = (y) => {
|
|
567
|
+
m.current = y, typeof f == "function" ? f(y) : f && (f.current = y);
|
|
565
568
|
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
569
|
+
z(() => {
|
|
570
|
+
var H;
|
|
571
|
+
const y = m.current;
|
|
572
|
+
y && (e && !y.open ? (y.showModal(), (H = l == null ? void 0 : l.current) == null || H.focus()) : !e && y.open && y.close());
|
|
573
|
+
}, [e]), z(() => {
|
|
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
|
+
}, S = (y) => {
|
|
583
|
+
r && y.target === m.current && n("backdrop");
|
|
584
|
+
}, T = [q.dialog, Bt[a], St[o], _].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: T,
|
|
590
|
+
"data-placement": o,
|
|
591
|
+
"aria-labelledby": i != null ? b : void 0,
|
|
592
|
+
onCancel: j,
|
|
593
|
+
onClick: S,
|
|
594
|
+
...g,
|
|
595
|
+
children: /* @__PURE__ */ h("div", { className: q.panel, children: [
|
|
596
|
+
(i != null || r) && /* @__PURE__ */ h("div", { className: q.header, children: [
|
|
597
|
+
i != null && /* @__PURE__ */ t("h2", { id: b, className: q.title, children: i }),
|
|
598
|
+
r && (d != null ? /* @__PURE__ */ t(ce, { variant: "ghost", size: 32, onClick: () => n("close-button"), children: d }) : /* @__PURE__ */ t(
|
|
599
|
+
le,
|
|
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(xe, { "aria-hidden": "true" })
|
|
602
606
|
}
|
|
603
|
-
)
|
|
607
|
+
))
|
|
604
608
|
] }),
|
|
605
|
-
|
|
606
|
-
|
|
609
|
+
u,
|
|
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 Ct = "_input_pmr7w_3", Lt = "_size24_pmr7w_43", jt = "_size32_pmr7w_49", Tt = "_size40_pmr7w_55", It = "_size48_pmr7w_61", zt = "_error_pmr7w_69", J = {
|
|
616
|
+
input: Ct,
|
|
617
|
+
size24: Lt,
|
|
618
|
+
size32: jt,
|
|
619
|
+
size40: Tt,
|
|
620
|
+
size48: It,
|
|
621
|
+
error: zt
|
|
622
|
+
}, qt = {
|
|
623
|
+
24: J.size24,
|
|
624
|
+
32: J.size32,
|
|
625
|
+
40: J.size40,
|
|
626
|
+
48: J.size48
|
|
623
627
|
};
|
|
624
|
-
function
|
|
625
|
-
const
|
|
628
|
+
function us({ size: e = 32, error: n = !1, type: i = "text", className: s, ref: a, ...o }) {
|
|
629
|
+
const r = $(G), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [J.input, qt[e], c && J.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: d,
|
|
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 Mt = "_select_1eqz1_3", Et = "_size24_1eqz1_57", Dt = "_size32_1eqz1_67", Wt = "_size40_1eqz1_77", Pt = "_size48_1eqz1_87", At = "_error_1eqz1_99", Q = {
|
|
645
|
+
select: Mt,
|
|
646
|
+
size24: Et,
|
|
647
|
+
size32: Dt,
|
|
648
|
+
size40: Wt,
|
|
649
|
+
size48: Pt,
|
|
650
|
+
error: At
|
|
651
|
+
}, Rt = {
|
|
652
|
+
24: Q.size24,
|
|
653
|
+
32: Q.size32,
|
|
654
|
+
40: Q.size40,
|
|
655
|
+
48: Q.size48
|
|
652
656
|
};
|
|
653
|
-
function
|
|
657
|
+
function _s({
|
|
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 = $(G), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [
|
|
666
|
+
Q.select,
|
|
667
|
+
Rt[e],
|
|
668
|
+
c && Q.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: d,
|
|
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
|
|
682
|
-
label:
|
|
683
|
-
disabled:
|
|
684
|
-
indicator:
|
|
685
|
-
input:
|
|
686
|
-
text:
|
|
685
|
+
const Ht = "_label_10kne_3", Vt = "_disabled_10kne_13", Ot = "_indicator_10kne_26", Kt = "_input_10kne_42", Ft = "_text_10kne_97", se = {
|
|
686
|
+
label: Ht,
|
|
687
|
+
disabled: Vt,
|
|
688
|
+
indicator: Ot,
|
|
689
|
+
input: Kt,
|
|
690
|
+
text: Ft
|
|
687
691
|
};
|
|
688
|
-
function
|
|
692
|
+
function qe({
|
|
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 = $(G), c = (r == null ? void 0 : r.group) && r.invalid || void 0, l = B(null), d = (u) => {
|
|
701
|
+
l.current = u, typeof a == "function" ? a(u) : a && (a.current = u);
|
|
702
|
+
};
|
|
703
|
+
ze(() => {
|
|
704
|
+
s !== void 0 && l.current && (l.current.indeterminate = s);
|
|
705
|
+
});
|
|
706
|
+
const _ = [se.label, i && se.disabled, n].filter(Boolean).join(" ");
|
|
707
|
+
return /* @__PURE__ */ h("label", { className: _, children: [
|
|
697
708
|
/* @__PURE__ */ t(
|
|
698
709
|
"input",
|
|
699
710
|
{
|
|
700
|
-
ref:
|
|
711
|
+
ref: d,
|
|
701
712
|
type: "checkbox",
|
|
702
|
-
className: `psi-sr-only ${
|
|
713
|
+
className: `psi-sr-only ${se.input}`,
|
|
703
714
|
disabled: i,
|
|
704
|
-
|
|
715
|
+
"aria-invalid": c,
|
|
716
|
+
...o
|
|
705
717
|
}
|
|
706
718
|
),
|
|
707
|
-
/* @__PURE__ */ t("span", { className:
|
|
708
|
-
e && /* @__PURE__ */ t("span", { className:
|
|
719
|
+
/* @__PURE__ */ t("span", { className: se.indicator, "aria-hidden": "true" }),
|
|
720
|
+
e && /* @__PURE__ */ t("span", { className: se.text, children: e })
|
|
709
721
|
] });
|
|
710
722
|
}
|
|
711
|
-
const
|
|
712
|
-
label:
|
|
713
|
-
disabled:
|
|
714
|
-
track:
|
|
715
|
-
input:
|
|
716
|
-
thumb:
|
|
717
|
-
text:
|
|
723
|
+
const Ut = "_label_yv464_3", Gt = "_disabled_yv464_13", Yt = "_track_yv464_26", Zt = "_input_yv464_38", Xt = "_thumb_yv464_50", Jt = "_text_yv464_67", X = {
|
|
724
|
+
label: Ut,
|
|
725
|
+
disabled: Gt,
|
|
726
|
+
track: Yt,
|
|
727
|
+
input: Zt,
|
|
728
|
+
thumb: Xt,
|
|
729
|
+
text: Jt
|
|
718
730
|
};
|
|
719
|
-
function
|
|
731
|
+
function hs({
|
|
720
732
|
children: e,
|
|
721
733
|
className: n,
|
|
722
734
|
disabled: i,
|
|
723
|
-
ref:
|
|
724
|
-
...
|
|
735
|
+
ref: s,
|
|
736
|
+
...a
|
|
725
737
|
}) {
|
|
726
|
-
const
|
|
727
|
-
return /* @__PURE__ */
|
|
738
|
+
const o = [X.label, i && X.disabled, n].filter(Boolean).join(" ");
|
|
739
|
+
return /* @__PURE__ */ h("label", { className: o, children: [
|
|
728
740
|
/* @__PURE__ */ t(
|
|
729
741
|
"input",
|
|
730
742
|
{
|
|
731
|
-
ref:
|
|
743
|
+
ref: s,
|
|
732
744
|
type: "checkbox",
|
|
733
745
|
role: "switch",
|
|
734
|
-
className: `psi-sr-only ${
|
|
746
|
+
className: `psi-sr-only ${X.input}`,
|
|
735
747
|
disabled: i,
|
|
736
|
-
...
|
|
748
|
+
...a
|
|
749
|
+
}
|
|
750
|
+
),
|
|
751
|
+
/* @__PURE__ */ t("span", { className: X.track, "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: X.thumb }) }),
|
|
752
|
+
e && /* @__PURE__ */ t("span", { className: X.text, children: e })
|
|
753
|
+
] });
|
|
754
|
+
}
|
|
755
|
+
const Qt = "_stack_49uys_4", er = "_gap4_49uys_9", nr = "_gap8_49uys_10", tr = "_gap12_49uys_11", rr = "_gap16_49uys_12", or = "_gap24_49uys_13", ir = "_gap32_49uys_14", sr = "_alignStart_49uys_16", ar = "_alignCenter_49uys_17", cr = "_alignEnd_49uys_18", D = {
|
|
756
|
+
stack: Qt,
|
|
757
|
+
gap4: er,
|
|
758
|
+
gap8: nr,
|
|
759
|
+
gap12: tr,
|
|
760
|
+
gap16: rr,
|
|
761
|
+
gap24: or,
|
|
762
|
+
gap32: ir,
|
|
763
|
+
alignStart: sr,
|
|
764
|
+
alignCenter: ar,
|
|
765
|
+
alignEnd: cr
|
|
766
|
+
}, lr = {
|
|
767
|
+
4: D.gap4,
|
|
768
|
+
8: D.gap8,
|
|
769
|
+
12: D.gap12,
|
|
770
|
+
16: D.gap16,
|
|
771
|
+
24: D.gap24,
|
|
772
|
+
32: D.gap32
|
|
773
|
+
}, dr = {
|
|
774
|
+
stretch: void 0,
|
|
775
|
+
start: D.alignStart,
|
|
776
|
+
center: D.alignCenter,
|
|
777
|
+
end: D.alignEnd
|
|
778
|
+
};
|
|
779
|
+
function fs({ gap: e = 16, align: n = "stretch", className: i, children: s, ref: a, ...o }) {
|
|
780
|
+
const r = [D.stack, lr[e], dr[n], i].filter(Boolean).join(" ");
|
|
781
|
+
return /* @__PURE__ */ t("div", { ref: a, className: r, ...o, children: s });
|
|
782
|
+
}
|
|
783
|
+
const ur = "_text_14u60_4", _r = "_s12Regular_14u60_9", hr = "_s12Medium_14u60_10", fr = "_s14Regular_14u60_11", gr = "_s14Medium_14u60_12", pr = "_s16Regular_14u60_13", mr = "_s16Medium_14u60_14", vr = "_s18Regular_14u60_15", br = "_s18Medium_14u60_16", yr = "_secondary_14u60_18", E = {
|
|
784
|
+
text: ur,
|
|
785
|
+
s12Regular: _r,
|
|
786
|
+
s12Medium: hr,
|
|
787
|
+
s14Regular: fr,
|
|
788
|
+
s14Medium: gr,
|
|
789
|
+
s16Regular: pr,
|
|
790
|
+
s16Medium: mr,
|
|
791
|
+
s18Regular: vr,
|
|
792
|
+
s18Medium: br,
|
|
793
|
+
secondary: yr
|
|
794
|
+
}, wr = {
|
|
795
|
+
"12regular": E.s12Regular,
|
|
796
|
+
"12medium": E.s12Medium,
|
|
797
|
+
"14regular": E.s14Regular,
|
|
798
|
+
"14medium": E.s14Medium,
|
|
799
|
+
"16regular": E.s16Regular,
|
|
800
|
+
"16medium": E.s16Medium,
|
|
801
|
+
"18regular": E.s18Regular,
|
|
802
|
+
"18medium": E.s18Medium
|
|
803
|
+
};
|
|
804
|
+
function gs({
|
|
805
|
+
as: e = "p",
|
|
806
|
+
size: n = 14,
|
|
807
|
+
weight: i = "regular",
|
|
808
|
+
tone: s = "primary",
|
|
809
|
+
className: a,
|
|
810
|
+
children: o,
|
|
811
|
+
ref: r,
|
|
812
|
+
...c
|
|
813
|
+
}) {
|
|
814
|
+
const l = [E.text, wr[`${n}${i}`], s === "secondary" && E.secondary, a].filter(Boolean).join(" ");
|
|
815
|
+
return /* @__PURE__ */ t(e, { ref: r, className: l, ...c, children: o });
|
|
816
|
+
}
|
|
817
|
+
const xr = "_wrap_1twws_6", kr = "_textarea_1twws_11", Nr = "_error_1twws_49", $r = "_counter_1twws_55", _e = {
|
|
818
|
+
wrap: xr,
|
|
819
|
+
textarea: kr,
|
|
820
|
+
error: Nr,
|
|
821
|
+
counter: $r
|
|
822
|
+
};
|
|
823
|
+
function ps({
|
|
824
|
+
rows: e = 3,
|
|
825
|
+
error: n = !1,
|
|
826
|
+
showCounter: i = !0,
|
|
827
|
+
maxLength: s,
|
|
828
|
+
className: a,
|
|
829
|
+
onChange: o,
|
|
830
|
+
ref: r,
|
|
831
|
+
...c
|
|
832
|
+
}) {
|
|
833
|
+
const l = $(G), d = `${R()}-counter`, _ = n || ((l == null ? void 0 : l.invalid) ?? !1), u = c.value !== void 0, [f, g] = re(() => String(c.defaultValue ?? "").length), m = u ? String(c.value ?? "").length : f, b = s !== void 0 && i, x = [l == null ? void 0 : l.describedBy, b ? d : void 0, c["aria-describedby"]].filter(Boolean).join(" ") || void 0, j = [_e.textarea, _ && _e.error, a].filter(Boolean).join(" "), S = (y) => {
|
|
834
|
+
u || g(y.target.value.length), o == null || o(y);
|
|
835
|
+
}, T = /* @__PURE__ */ t(
|
|
836
|
+
"textarea",
|
|
837
|
+
{
|
|
838
|
+
ref: r,
|
|
839
|
+
className: j,
|
|
840
|
+
rows: e,
|
|
841
|
+
maxLength: s,
|
|
842
|
+
id: c.id ?? (l == null ? void 0 : l.id),
|
|
843
|
+
required: c.required ?? ((l == null ? void 0 : l.required) || void 0),
|
|
844
|
+
"aria-invalid": (l == null ? void 0 : l.invalid) || void 0,
|
|
845
|
+
...c,
|
|
846
|
+
onChange: S,
|
|
847
|
+
"aria-describedby": x
|
|
848
|
+
}
|
|
849
|
+
);
|
|
850
|
+
return b ? /* @__PURE__ */ h("div", { className: _e.wrap, children: [
|
|
851
|
+
T,
|
|
852
|
+
/* @__PURE__ */ h("div", { id: d, className: _e.counter, "data-psi-textarea-counter": !0, children: [
|
|
853
|
+
m,
|
|
854
|
+
" / ",
|
|
855
|
+
s,
|
|
856
|
+
/* @__PURE__ */ t("span", { className: "psi-sr-only", children: " characters" })
|
|
857
|
+
] })
|
|
858
|
+
] }) : T;
|
|
859
|
+
}
|
|
860
|
+
const Br = "_group_wwg2k_5", Sr = "_horizontal_wwg2k_12", Cr = "_label_wwg2k_18", Lr = "_disabled_wwg2k_28", jr = "_circle_wwg2k_35", Tr = "_input_wwg2k_51", Ir = "_text_wwg2k_79", K = {
|
|
861
|
+
group: Br,
|
|
862
|
+
horizontal: Sr,
|
|
863
|
+
label: Cr,
|
|
864
|
+
disabled: Lr,
|
|
865
|
+
circle: jr,
|
|
866
|
+
input: Tr,
|
|
867
|
+
text: Ir
|
|
868
|
+
}, Me = U(null);
|
|
869
|
+
function ms({
|
|
870
|
+
children: e,
|
|
871
|
+
name: n,
|
|
872
|
+
value: i,
|
|
873
|
+
defaultValue: s,
|
|
874
|
+
onValueChange: a,
|
|
875
|
+
disabled: o = !1,
|
|
876
|
+
orientation: r = "vertical",
|
|
877
|
+
className: c,
|
|
878
|
+
ref: l,
|
|
879
|
+
...d
|
|
880
|
+
}) {
|
|
881
|
+
const _ = $(G), u = R(), [f, g] = re(s), m = i !== void 0 ? i : f, b = (_ == null ? void 0 : _.group) === !0, x = (S) => {
|
|
882
|
+
i === void 0 && g(S), a == null || a(S);
|
|
883
|
+
}, j = [K.group, r === "horizontal" && K.horizontal, c].filter(Boolean).join(" ");
|
|
884
|
+
return /* @__PURE__ */ t(
|
|
885
|
+
"div",
|
|
886
|
+
{
|
|
887
|
+
...d,
|
|
888
|
+
ref: l,
|
|
889
|
+
className: j,
|
|
890
|
+
role: b ? void 0 : "radiogroup",
|
|
891
|
+
"data-psi-radio-group": !0,
|
|
892
|
+
children: /* @__PURE__ */ t(
|
|
893
|
+
Me.Provider,
|
|
894
|
+
{
|
|
895
|
+
value: {
|
|
896
|
+
name: n ?? u,
|
|
897
|
+
value: m,
|
|
898
|
+
select: x,
|
|
899
|
+
disabled: o,
|
|
900
|
+
required: (_ == null ? void 0 : _.required) ?? !1,
|
|
901
|
+
invalid: (_ == null ? void 0 : _.invalid) ?? !1
|
|
902
|
+
},
|
|
903
|
+
children: e
|
|
904
|
+
}
|
|
905
|
+
)
|
|
906
|
+
}
|
|
907
|
+
);
|
|
908
|
+
}
|
|
909
|
+
function vs({ value: e, children: n, disabled: i, className: s, ref: a }) {
|
|
910
|
+
const o = $(Me), r = i || (o == null ? void 0 : o.disabled) || !1, c = [K.label, r && K.disabled, s].filter(Boolean).join(" ");
|
|
911
|
+
return /* @__PURE__ */ h("label", { className: c, children: [
|
|
912
|
+
/* @__PURE__ */ t(
|
|
913
|
+
"input",
|
|
914
|
+
{
|
|
915
|
+
ref: a,
|
|
916
|
+
type: "radio",
|
|
917
|
+
className: `psi-sr-only ${K.input}`,
|
|
918
|
+
name: o == null ? void 0 : o.name,
|
|
919
|
+
value: e,
|
|
920
|
+
checked: o ? o.value === e : void 0,
|
|
921
|
+
onChange: () => o == null ? void 0 : o.select(e),
|
|
922
|
+
disabled: r,
|
|
923
|
+
required: (o == null ? void 0 : o.required) || void 0,
|
|
924
|
+
"aria-invalid": (o == null ? void 0 : o.invalid) || void 0
|
|
737
925
|
}
|
|
738
926
|
),
|
|
739
|
-
/* @__PURE__ */ t("span", { className:
|
|
740
|
-
|
|
927
|
+
/* @__PURE__ */ t("span", { className: K.circle, "aria-hidden": "true" }),
|
|
928
|
+
n && /* @__PURE__ */ t("span", { className: K.text, children: n })
|
|
741
929
|
] });
|
|
742
930
|
}
|
|
743
|
-
const
|
|
744
|
-
tag:
|
|
745
|
-
dismiss:
|
|
746
|
-
neutral:
|
|
747
|
-
accent:
|
|
748
|
-
success:
|
|
749
|
-
warning:
|
|
750
|
-
danger:
|
|
751
|
-
neutralSubtle:
|
|
752
|
-
accentSubtle:
|
|
753
|
-
successSubtle:
|
|
754
|
-
warningSubtle:
|
|
755
|
-
dangerSubtle:
|
|
756
|
-
},
|
|
757
|
-
neutral:
|
|
758
|
-
accent:
|
|
759
|
-
success:
|
|
760
|
-
warning:
|
|
761
|
-
danger:
|
|
762
|
-
},
|
|
763
|
-
neutral:
|
|
764
|
-
accent:
|
|
765
|
-
success:
|
|
766
|
-
warning:
|
|
767
|
-
danger:
|
|
931
|
+
const zr = "_tag_1r2xw_3", qr = "_dismiss_1r2xw_17", Mr = "_neutral_1r2xw_43", Er = "_accent_1r2xw_48", Dr = "_success_1r2xw_53", Wr = "_warning_1r2xw_58", Pr = "_danger_1r2xw_63", Ar = "_neutralSubtle_1r2xw_70", Rr = "_accentSubtle_1r2xw_75", Hr = "_successSubtle_1r2xw_80", Vr = "_warningSubtle_1r2xw_85", Or = "_dangerSubtle_1r2xw_90", I = {
|
|
932
|
+
tag: zr,
|
|
933
|
+
dismiss: qr,
|
|
934
|
+
neutral: Mr,
|
|
935
|
+
accent: Er,
|
|
936
|
+
success: Dr,
|
|
937
|
+
warning: Wr,
|
|
938
|
+
danger: Pr,
|
|
939
|
+
neutralSubtle: Ar,
|
|
940
|
+
accentSubtle: Rr,
|
|
941
|
+
successSubtle: Hr,
|
|
942
|
+
warningSubtle: Vr,
|
|
943
|
+
dangerSubtle: Or
|
|
944
|
+
}, Kr = {
|
|
945
|
+
neutral: I.neutral,
|
|
946
|
+
accent: I.accent,
|
|
947
|
+
success: I.success,
|
|
948
|
+
warning: I.warning,
|
|
949
|
+
danger: I.danger
|
|
950
|
+
}, Fr = {
|
|
951
|
+
neutral: I.neutralSubtle,
|
|
952
|
+
accent: I.accentSubtle,
|
|
953
|
+
success: I.successSubtle,
|
|
954
|
+
warning: I.warningSubtle,
|
|
955
|
+
danger: I.dangerSubtle
|
|
768
956
|
};
|
|
769
|
-
function
|
|
957
|
+
function bs({
|
|
770
958
|
variant: e = "neutral",
|
|
771
959
|
subtle: n = !1,
|
|
772
960
|
onDismiss: i,
|
|
773
|
-
className:
|
|
774
|
-
children:
|
|
775
|
-
ref:
|
|
776
|
-
...
|
|
961
|
+
className: s,
|
|
962
|
+
children: a,
|
|
963
|
+
ref: o,
|
|
964
|
+
...r
|
|
777
965
|
}) {
|
|
778
|
-
const c = n ?
|
|
779
|
-
return /* @__PURE__ */
|
|
780
|
-
|
|
966
|
+
const c = n ? Fr : Kr, l = [I.tag, c[e], s].filter(Boolean).join(" ");
|
|
967
|
+
return /* @__PURE__ */ h("span", { ref: o, className: l, ...r, children: [
|
|
968
|
+
a,
|
|
781
969
|
i && /* @__PURE__ */ t(
|
|
782
970
|
"button",
|
|
783
971
|
{
|
|
784
972
|
type: "button",
|
|
785
|
-
className:
|
|
973
|
+
className: I.dismiss,
|
|
786
974
|
onClick: i,
|
|
787
975
|
"aria-label": "Dismiss",
|
|
788
|
-
children: /* @__PURE__ */
|
|
976
|
+
children: /* @__PURE__ */ h(
|
|
789
977
|
"svg",
|
|
790
978
|
{
|
|
791
979
|
width: "12",
|
|
@@ -807,255 +995,270 @@ function Si({
|
|
|
807
995
|
)
|
|
808
996
|
] });
|
|
809
997
|
}
|
|
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
|
|
998
|
+
const Ur = "_wrapper_15o1w_3", Gr = "_tooltip_15o1w_10", Yr = "_top_15o1w_32", Zr = "_bottom_15o1w_45", Xr = "_left_15o1w_58", Jr = "_right_15o1w_71", ee = {
|
|
999
|
+
wrapper: Ur,
|
|
1000
|
+
tooltip: Gr,
|
|
1001
|
+
top: Yr,
|
|
1002
|
+
bottom: Zr,
|
|
1003
|
+
left: Xr,
|
|
1004
|
+
right: Jr
|
|
1005
|
+
}, Qr = {
|
|
1006
|
+
top: ee.top,
|
|
1007
|
+
bottom: ee.bottom,
|
|
1008
|
+
left: ee.left,
|
|
1009
|
+
right: ee.right
|
|
1010
|
+
}, eo = 150;
|
|
1011
|
+
function ys({
|
|
824
1012
|
content: e,
|
|
825
1013
|
children: n,
|
|
826
1014
|
placement: i = "top"
|
|
827
1015
|
}) {
|
|
828
|
-
const [
|
|
829
|
-
|
|
830
|
-
}, []),
|
|
831
|
-
|
|
832
|
-
if (!
|
|
833
|
-
const
|
|
834
|
-
|
|
1016
|
+
const [s, a] = re(!1), o = R(), r = B(void 0), c = k(() => {
|
|
1017
|
+
r.current !== void 0 && (window.clearTimeout(r.current), r.current = void 0);
|
|
1018
|
+
}, []), l = k(() => a(!0), []), d = k(() => a(!1), []);
|
|
1019
|
+
z(() => c, [c]), z(() => {
|
|
1020
|
+
if (!s) return;
|
|
1021
|
+
const g = (m) => {
|
|
1022
|
+
m.key === "Escape" && d();
|
|
835
1023
|
};
|
|
836
|
-
return document.addEventListener("keydown",
|
|
837
|
-
}, [
|
|
838
|
-
const
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
1024
|
+
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
1025
|
+
}, [s, d]);
|
|
1026
|
+
const _ = () => {
|
|
1027
|
+
c(), r.current = window.setTimeout(l, eo);
|
|
1028
|
+
}, u = () => {
|
|
1029
|
+
c(), d();
|
|
1030
|
+
}, f = pe(n, {
|
|
1031
|
+
"aria-describedby": s ? o : void 0,
|
|
1032
|
+
onFocus: (g) => {
|
|
1033
|
+
l();
|
|
1034
|
+
const m = n.props.onFocus;
|
|
1035
|
+
m == null || m(g);
|
|
844
1036
|
},
|
|
845
|
-
|
|
846
|
-
c(),
|
|
847
|
-
const
|
|
848
|
-
|
|
849
|
-
},
|
|
850
|
-
onFocus: (h) => {
|
|
851
|
-
d();
|
|
852
|
-
const f = n.props.onFocus;
|
|
853
|
-
f == null || f(h);
|
|
854
|
-
},
|
|
855
|
-
onBlur: (h) => {
|
|
856
|
-
c(), l();
|
|
857
|
-
const f = n.props.onBlur;
|
|
858
|
-
f == null || f(h);
|
|
1037
|
+
onBlur: (g) => {
|
|
1038
|
+
c(), d();
|
|
1039
|
+
const m = n.props.onBlur;
|
|
1040
|
+
m == null || m(g);
|
|
859
1041
|
}
|
|
860
1042
|
});
|
|
861
|
-
return /* @__PURE__ */
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
1043
|
+
return /* @__PURE__ */ h(
|
|
1044
|
+
"span",
|
|
1045
|
+
{
|
|
1046
|
+
className: ee.wrapper,
|
|
1047
|
+
onMouseEnter: _,
|
|
1048
|
+
onMouseLeave: u,
|
|
1049
|
+
children: [
|
|
1050
|
+
f,
|
|
1051
|
+
s && /* @__PURE__ */ t(
|
|
1052
|
+
"span",
|
|
1053
|
+
{
|
|
1054
|
+
id: o,
|
|
1055
|
+
role: "tooltip",
|
|
1056
|
+
className: [ee.tooltip, Qr[i]].filter(Boolean).join(" "),
|
|
1057
|
+
children: e
|
|
1058
|
+
}
|
|
1059
|
+
)
|
|
1060
|
+
]
|
|
1061
|
+
}
|
|
1062
|
+
);
|
|
873
1063
|
}
|
|
874
|
-
const
|
|
875
|
-
toolbar:
|
|
876
|
-
gap8:
|
|
877
|
-
gap12:
|
|
878
|
-
gap16:
|
|
879
|
-
alignEnd:
|
|
880
|
-
alignStart:
|
|
881
|
-
},
|
|
1064
|
+
const no = "_toolbar_8bwkv_1", to = "_gap8_8bwkv_7", ro = "_gap12_8bwkv_8", oo = "_gap16_8bwkv_9", io = "_alignEnd_8bwkv_13", so = "_alignStart_8bwkv_19", ne = {
|
|
1065
|
+
toolbar: no,
|
|
1066
|
+
gap8: to,
|
|
1067
|
+
gap12: ro,
|
|
1068
|
+
gap16: oo,
|
|
1069
|
+
alignEnd: io,
|
|
1070
|
+
alignStart: so
|
|
1071
|
+
}, ao = { 8: ne.gap8, 12: ne.gap12, 16: ne.gap16 }, co = {
|
|
882
1072
|
center: void 0,
|
|
883
|
-
end:
|
|
884
|
-
start:
|
|
1073
|
+
end: ne.alignEnd,
|
|
1074
|
+
start: ne.alignStart
|
|
885
1075
|
};
|
|
886
|
-
function
|
|
887
|
-
const c = [
|
|
888
|
-
return i === "form" ? /* @__PURE__ */ t("form", { ref:
|
|
1076
|
+
function ws({ gap: e = 8, align: n = "center", as: i = "div", className: s, children: a, ref: o, ...r }) {
|
|
1077
|
+
const c = [ne.toolbar, ao[e], co[n], s].filter(Boolean).join(" ");
|
|
1078
|
+
return i === "form" ? /* @__PURE__ */ t("form", { ref: o, className: c, ...r, children: a }) : /* @__PURE__ */ t(
|
|
889
1079
|
"div",
|
|
890
1080
|
{
|
|
891
|
-
ref:
|
|
892
|
-
role:
|
|
1081
|
+
ref: o,
|
|
1082
|
+
role: r["aria-label"] != null ? "group" : void 0,
|
|
893
1083
|
className: c,
|
|
894
|
-
...
|
|
895
|
-
children:
|
|
1084
|
+
...r,
|
|
1085
|
+
children: a
|
|
896
1086
|
}
|
|
897
1087
|
);
|
|
898
1088
|
}
|
|
899
|
-
const
|
|
900
|
-
trigger:
|
|
901
|
-
menu:
|
|
902
|
-
item:
|
|
903
|
-
text:
|
|
904
|
-
separator:
|
|
905
|
-
},
|
|
906
|
-
function
|
|
907
|
-
const
|
|
908
|
-
const
|
|
909
|
-
return
|
|
910
|
-
|
|
1089
|
+
const lo = "_trigger_pivae_4", uo = "_menu_pivae_16", _o = "_item_pivae_37", ho = "_text_pivae_85", fo = "_separator_pivae_93", de = {
|
|
1090
|
+
trigger: lo,
|
|
1091
|
+
menu: uo,
|
|
1092
|
+
item: _o,
|
|
1093
|
+
text: ho,
|
|
1094
|
+
separator: fo
|
|
1095
|
+
}, go = 500;
|
|
1096
|
+
function po({ popoverRef: e, triggerRef: n, open: i, openAtRef: s, onEsc: a, onTab: o }) {
|
|
1097
|
+
const r = B(""), c = B(0), l = k(() => {
|
|
1098
|
+
const u = e.current;
|
|
1099
|
+
return u ? Array.from(
|
|
1100
|
+
u.querySelectorAll('[data-psi-menu-item]:not([aria-disabled="true"])')
|
|
911
1101
|
) : [];
|
|
912
|
-
}, [e]),
|
|
913
|
-
(
|
|
914
|
-
if (
|
|
915
|
-
for (const
|
|
916
|
-
|
|
1102
|
+
}, [e]), d = k(
|
|
1103
|
+
(u) => {
|
|
1104
|
+
if (u) {
|
|
1105
|
+
for (const f of l()) f.tabIndex = f === u ? 0 : -1;
|
|
1106
|
+
u.focus();
|
|
917
1107
|
}
|
|
918
1108
|
},
|
|
919
|
-
[
|
|
920
|
-
),
|
|
921
|
-
var
|
|
922
|
-
const
|
|
923
|
-
|
|
1109
|
+
[l]
|
|
1110
|
+
), _ = k(() => {
|
|
1111
|
+
var f;
|
|
1112
|
+
const u = (f = n.current) == null ? void 0 : f.querySelector("button, a, [tabindex]");
|
|
1113
|
+
u == null || u.focus();
|
|
924
1114
|
}, [n]);
|
|
925
|
-
return
|
|
1115
|
+
return z(() => {
|
|
926
1116
|
if (!i) return;
|
|
927
|
-
const l =
|
|
928
|
-
return
|
|
929
|
-
var
|
|
930
|
-
(
|
|
1117
|
+
const u = l(), f = (s == null ? void 0 : s.current) === "last";
|
|
1118
|
+
return s && (s.current = "first"), d(f ? u[u.length - 1] : u[0]), () => {
|
|
1119
|
+
var g;
|
|
1120
|
+
(g = e.current) != null && g.contains(document.activeElement) && _();
|
|
931
1121
|
};
|
|
932
|
-
}, [i, e,
|
|
933
|
-
(
|
|
934
|
-
if (
|
|
935
|
-
|
|
1122
|
+
}, [i, e, s, l, d, _]), k(
|
|
1123
|
+
(u) => {
|
|
1124
|
+
if (u.key === "Escape") {
|
|
1125
|
+
u.preventDefault(), a();
|
|
936
1126
|
return;
|
|
937
1127
|
}
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1128
|
+
if (u.key === "Tab") {
|
|
1129
|
+
o == null || o();
|
|
1130
|
+
return;
|
|
1131
|
+
}
|
|
1132
|
+
const f = l();
|
|
1133
|
+
if (f.length === 0) return;
|
|
1134
|
+
const g = f.indexOf(document.activeElement);
|
|
1135
|
+
switch (u.key) {
|
|
942
1136
|
case "ArrowDown":
|
|
943
|
-
|
|
1137
|
+
u.preventDefault(), d(f[(g + 1 + f.length) % f.length]);
|
|
944
1138
|
return;
|
|
945
1139
|
case "ArrowUp":
|
|
946
|
-
|
|
1140
|
+
u.preventDefault(), d(f[g <= 0 ? f.length - 1 : g - 1]);
|
|
947
1141
|
return;
|
|
948
1142
|
case "Home":
|
|
949
|
-
|
|
1143
|
+
u.preventDefault(), d(f[0]);
|
|
950
1144
|
return;
|
|
951
1145
|
case "End":
|
|
952
|
-
|
|
1146
|
+
u.preventDefault(), d(f[f.length - 1]);
|
|
953
1147
|
return;
|
|
954
1148
|
}
|
|
955
|
-
if (
|
|
956
|
-
const
|
|
957
|
-
|
|
958
|
-
const
|
|
959
|
-
(
|
|
1149
|
+
if (u.key.length !== 1 || u.metaKey || u.ctrlKey || u.altKey) return;
|
|
1150
|
+
const m = Date.now();
|
|
1151
|
+
r.current = m - c.current > go ? u.key.toLowerCase() : r.current + u.key.toLowerCase(), c.current = m;
|
|
1152
|
+
const b = f.find(
|
|
1153
|
+
(x) => (x.textContent ?? "").trim().toLowerCase().startsWith(r.current)
|
|
960
1154
|
);
|
|
961
|
-
|
|
1155
|
+
b && (u.preventDefault(), d(b));
|
|
962
1156
|
},
|
|
963
|
-
[
|
|
1157
|
+
[l, d, a, o]
|
|
964
1158
|
);
|
|
965
1159
|
}
|
|
966
|
-
function
|
|
1160
|
+
function mo() {
|
|
967
1161
|
return typeof CSS < "u" && CSS.supports("anchor-name", "--x");
|
|
968
1162
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
971
|
-
const
|
|
972
|
-
!
|
|
973
|
-
}, [e, n,
|
|
974
|
-
if (!i ||
|
|
975
|
-
const
|
|
976
|
-
if (!
|
|
1163
|
+
function vo({ popoverRef: e, triggerRef: n, open: i, placement: s, anchorName: a }) {
|
|
1164
|
+
z(() => {
|
|
1165
|
+
const o = n.current, r = e.current;
|
|
1166
|
+
!o || !r || (o.style.setProperty("anchor-name", a), r.style.setProperty("position-anchor", a));
|
|
1167
|
+
}, [e, n, a]), z(() => {
|
|
1168
|
+
if (!i || mo()) return;
|
|
1169
|
+
const o = n.current, r = e.current;
|
|
1170
|
+
if (!o || !r) return;
|
|
977
1171
|
const c = () => {
|
|
978
|
-
const
|
|
979
|
-
|
|
1172
|
+
const l = o.getBoundingClientRect(), d = s.startsWith("bottom"), _ = s.endsWith("end"), u = getComputedStyle(o).direction === "rtl", f = _ !== u;
|
|
1173
|
+
r.style.position = "fixed", r.style.top = d ? `${l.bottom}px` : "", r.style.bottom = d ? "" : `${window.innerHeight - l.top}px`, r.style.left = f ? "" : `${l.left}px`, r.style.right = f ? `${window.innerWidth - l.right}px` : "";
|
|
980
1174
|
};
|
|
981
1175
|
return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), () => {
|
|
982
1176
|
window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c);
|
|
983
1177
|
};
|
|
984
|
-
}, [i,
|
|
1178
|
+
}, [i, s, e, n]);
|
|
985
1179
|
}
|
|
986
|
-
const
|
|
1180
|
+
const Ee = U({ close: () => {
|
|
987
1181
|
} });
|
|
988
|
-
function
|
|
1182
|
+
function Le(e) {
|
|
989
1183
|
return e.hasAttribute("data-open") || e.matches(":popover-open");
|
|
990
1184
|
}
|
|
991
|
-
function
|
|
1185
|
+
function xs({
|
|
992
1186
|
open: e,
|
|
993
1187
|
onClose: n,
|
|
994
1188
|
trigger: i,
|
|
995
|
-
placement:
|
|
996
|
-
children:
|
|
997
|
-
className:
|
|
998
|
-
|
|
999
|
-
|
|
1189
|
+
placement: s = "bottom-start",
|
|
1190
|
+
children: a,
|
|
1191
|
+
className: o,
|
|
1192
|
+
id: r,
|
|
1193
|
+
ref: c,
|
|
1194
|
+
...l
|
|
1000
1195
|
}) {
|
|
1001
|
-
const d =
|
|
1002
|
-
|
|
1003
|
-
const
|
|
1004
|
-
d.current =
|
|
1196
|
+
const d = B(null), _ = B(null), u = B(!1), f = R().replace(/:/g, ""), g = `--psi-menu-${f}`, m = r ?? `psi-menu-${f}`, b = B("first");
|
|
1197
|
+
vo({ popoverRef: d, triggerRef: _, open: e, placement: s, anchorName: g });
|
|
1198
|
+
const x = (p) => {
|
|
1199
|
+
d.current = p, typeof c == "function" ? c(p) : c && (c.current = p);
|
|
1005
1200
|
};
|
|
1006
|
-
|
|
1007
|
-
const
|
|
1008
|
-
if (!
|
|
1009
|
-
const
|
|
1010
|
-
e && !
|
|
1201
|
+
z(() => {
|
|
1202
|
+
const p = d.current;
|
|
1203
|
+
if (!p) return;
|
|
1204
|
+
const w = Le(p);
|
|
1205
|
+
e && !w ? p.showPopover() : !e && w && (u.current = !0, p.hidePopover());
|
|
1011
1206
|
}, [e]);
|
|
1012
|
-
const
|
|
1013
|
-
const
|
|
1014
|
-
if (
|
|
1207
|
+
const j = k(() => {
|
|
1208
|
+
const p = d.current;
|
|
1209
|
+
if (p) {
|
|
1015
1210
|
if (u.current) {
|
|
1016
1211
|
u.current = !1;
|
|
1017
1212
|
return;
|
|
1018
1213
|
}
|
|
1019
|
-
|
|
1214
|
+
Le(p) || e && n("outside");
|
|
1020
1215
|
}
|
|
1021
|
-
}, [n, e]),
|
|
1216
|
+
}, [n, e]), S = po({
|
|
1022
1217
|
popoverRef: d,
|
|
1023
|
-
triggerRef:
|
|
1218
|
+
triggerRef: _,
|
|
1024
1219
|
open: e,
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
(
|
|
1028
|
-
|
|
1220
|
+
openAtRef: b,
|
|
1221
|
+
onEsc: () => n("esc"),
|
|
1222
|
+
onTab: () => n("tab")
|
|
1223
|
+
}), T = (p) => {
|
|
1224
|
+
var C;
|
|
1225
|
+
if (e || p.key !== "ArrowDown" && p.key !== "ArrowUp") return;
|
|
1226
|
+
const w = (C = _.current) == null ? void 0 : C.querySelector("button, a, [tabindex]");
|
|
1227
|
+
w && (p.preventDefault(), b.current = p.key === "ArrowUp" ? "last" : "first", w.click());
|
|
1228
|
+
}, y = k(
|
|
1229
|
+
(p) => {
|
|
1230
|
+
n(p);
|
|
1029
1231
|
},
|
|
1030
1232
|
[n]
|
|
1031
|
-
),
|
|
1032
|
-
|
|
1033
|
-
|
|
1233
|
+
), H = te(i);
|
|
1234
|
+
z(() => {
|
|
1235
|
+
H || console.warn(
|
|
1034
1236
|
"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
1237
|
);
|
|
1036
|
-
}, [
|
|
1037
|
-
const
|
|
1038
|
-
return /* @__PURE__ */
|
|
1039
|
-
/* @__PURE__ */ t("div", { ref:
|
|
1238
|
+
}, [H]);
|
|
1239
|
+
const v = H ? pe(i, { "aria-haspopup": "menu", "aria-expanded": e, "aria-controls": m }) : i;
|
|
1240
|
+
return /* @__PURE__ */ h(fe, { children: [
|
|
1241
|
+
/* @__PURE__ */ t("div", { ref: _, className: de.trigger, "data-psi-menu-trigger": !0, onKeyDown: T, children: v }),
|
|
1040
1242
|
/* @__PURE__ */ t(
|
|
1041
1243
|
"div",
|
|
1042
1244
|
{
|
|
1043
|
-
...
|
|
1044
|
-
|
|
1245
|
+
...l,
|
|
1246
|
+
id: m,
|
|
1247
|
+
ref: x,
|
|
1045
1248
|
popover: "auto",
|
|
1046
1249
|
role: "menu",
|
|
1047
1250
|
"data-psi-menu": !0,
|
|
1048
|
-
"data-placement":
|
|
1049
|
-
className: [
|
|
1050
|
-
onToggle:
|
|
1051
|
-
onKeyDown:
|
|
1052
|
-
children: /* @__PURE__ */ t(
|
|
1251
|
+
"data-placement": s,
|
|
1252
|
+
className: [de.menu, o].filter(Boolean).join(" "),
|
|
1253
|
+
onToggle: j,
|
|
1254
|
+
onKeyDown: S,
|
|
1255
|
+
children: /* @__PURE__ */ t(Ee.Provider, { value: { close: y }, children: a })
|
|
1053
1256
|
}
|
|
1054
1257
|
)
|
|
1055
1258
|
] });
|
|
1056
1259
|
}
|
|
1057
|
-
function
|
|
1058
|
-
const { close:
|
|
1260
|
+
function ks({ children: e, onSelect: n, variant: i = "neutral", disabled: s = !1 }) {
|
|
1261
|
+
const { close: a } = $(Ee);
|
|
1059
1262
|
return /* @__PURE__ */ t(
|
|
1060
1263
|
"button",
|
|
1061
1264
|
{
|
|
@@ -1063,868 +1266,870 @@ function Ii({ children: e, onSelect: n, variant: i = "neutral", disabled: a = !1
|
|
|
1063
1266
|
role: "menuitem",
|
|
1064
1267
|
"data-psi-menu-item": !0,
|
|
1065
1268
|
"data-variant": i,
|
|
1066
|
-
"aria-disabled":
|
|
1269
|
+
"aria-disabled": s || void 0,
|
|
1067
1270
|
tabIndex: -1,
|
|
1068
|
-
className:
|
|
1271
|
+
className: de.item,
|
|
1069
1272
|
onClick: () => {
|
|
1070
|
-
|
|
1273
|
+
s || (n(), a("item-select"));
|
|
1071
1274
|
},
|
|
1072
1275
|
children: e
|
|
1073
1276
|
}
|
|
1074
1277
|
);
|
|
1075
1278
|
}
|
|
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
|
-
},
|
|
1279
|
+
function Ns() {
|
|
1280
|
+
return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className: de.separator });
|
|
1281
|
+
}
|
|
1282
|
+
function $s({ children: e, id: n }) {
|
|
1283
|
+
return /* @__PURE__ */ t("div", { id: n, "data-psi-menu-text": !0, className: de.text, children: e });
|
|
1284
|
+
}
|
|
1285
|
+
const bo = "_table_1maek_3", yo = "_caption_1maek_19", wo = "_captionDetail_1maek_27", xo = "_headerCell_1maek_38", ko = "_cell_1maek_44", No = "_rowHeader_1maek_51", $o = "_sortButton_1maek_62", Bo = "_sortIndicator_1maek_79", So = "_selectCell_1maek_123", Co = "_body_1maek_130", Lo = "_row_1maek_51", jo = "_sticky_1maek_155", N = {
|
|
1286
|
+
table: bo,
|
|
1287
|
+
caption: yo,
|
|
1288
|
+
captionDetail: wo,
|
|
1289
|
+
headerCell: xo,
|
|
1290
|
+
cell: ko,
|
|
1291
|
+
rowHeader: No,
|
|
1292
|
+
sortButton: $o,
|
|
1293
|
+
sortIndicator: Bo,
|
|
1294
|
+
selectCell: So,
|
|
1295
|
+
body: Co,
|
|
1296
|
+
row: Lo,
|
|
1297
|
+
sticky: jo
|
|
1298
|
+
}, De = /* @__PURE__ */ new Set(), oe = U({
|
|
1096
1299
|
size: 40,
|
|
1097
1300
|
sortable: !1,
|
|
1098
1301
|
sort: null,
|
|
1099
1302
|
selectable: !1,
|
|
1100
|
-
selected:
|
|
1101
|
-
}),
|
|
1102
|
-
function
|
|
1103
|
-
return /* @__PURE__ */ t("tbody", { ...
|
|
1303
|
+
selected: De
|
|
1304
|
+
}), We = U([]);
|
|
1305
|
+
function To({ children: e, className: n, ref: i, ...s }) {
|
|
1306
|
+
return /* @__PURE__ */ t("tbody", { ...s, ref: i, className: [N.body, n].filter(Boolean).join(" "), children: e });
|
|
1104
1307
|
}
|
|
1105
|
-
function
|
|
1308
|
+
function Io(e) {
|
|
1106
1309
|
const n = [];
|
|
1107
|
-
let i = !1,
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1110
|
-
if (!
|
|
1111
|
-
if (c.type ===
|
|
1112
|
-
|
|
1310
|
+
let i = !1, s = !1;
|
|
1311
|
+
const a = (o) => {
|
|
1312
|
+
F.forEach(o, function r(c) {
|
|
1313
|
+
if (!te(c)) return;
|
|
1314
|
+
if (c.type === ye) {
|
|
1315
|
+
F.forEach(c.props.children, r);
|
|
1113
1316
|
return;
|
|
1114
1317
|
}
|
|
1115
|
-
const
|
|
1116
|
-
typeof
|
|
1318
|
+
const l = c.props.rowId;
|
|
1319
|
+
typeof l == "string" ? n.push(l) : s = !0;
|
|
1117
1320
|
});
|
|
1118
1321
|
};
|
|
1119
|
-
return
|
|
1120
|
-
if (
|
|
1121
|
-
if (
|
|
1122
|
-
|
|
1322
|
+
return F.forEach(e, function o(r) {
|
|
1323
|
+
if (te(r)) {
|
|
1324
|
+
if (r.type === ye) {
|
|
1325
|
+
F.forEach(r.props.children, o);
|
|
1123
1326
|
return;
|
|
1124
1327
|
}
|
|
1125
|
-
|
|
1328
|
+
r.type === To && (i = !0, a(r.props.children));
|
|
1126
1329
|
}
|
|
1127
|
-
}), { ids: n, sawBody: i, hasRowWithoutId:
|
|
1330
|
+
}), { ids: n, sawBody: i, hasRowWithoutId: s };
|
|
1128
1331
|
}
|
|
1129
|
-
function
|
|
1332
|
+
function Bs({
|
|
1130
1333
|
size: e = 40,
|
|
1131
1334
|
stickyHeader: n,
|
|
1132
1335
|
sortable: i = !1,
|
|
1133
|
-
sort:
|
|
1134
|
-
onSortChange:
|
|
1135
|
-
selectable:
|
|
1136
|
-
selected:
|
|
1336
|
+
sort: s = null,
|
|
1337
|
+
onSortChange: a,
|
|
1338
|
+
selectable: o = !1,
|
|
1339
|
+
selected: r = De,
|
|
1137
1340
|
onSelectionChange: c,
|
|
1138
|
-
children:
|
|
1139
|
-
className:
|
|
1140
|
-
ref:
|
|
1141
|
-
...
|
|
1341
|
+
children: l,
|
|
1342
|
+
className: d,
|
|
1343
|
+
ref: _,
|
|
1344
|
+
...u
|
|
1142
1345
|
}) {
|
|
1143
|
-
const f = [
|
|
1144
|
-
return process.env.NODE_ENV !== "production" && (i && !
|
|
1346
|
+
const f = [N.table, n && N.sticky, d].filter(Boolean).join(" "), { ids: g, sawBody: m, hasRowWithoutId: b } = ge(() => Io(l), [l]);
|
|
1347
|
+
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(oe.Provider, { value: { size: e, sortable: i, sort: s, onSortChange: a, selectable: o, selected: r, onSelectionChange: c }, children: /* @__PURE__ */ t(We.Provider, { value: g, children: /* @__PURE__ */ t("table", { ...u, ref: _, className: f, "data-size": e, children: l }) }) });
|
|
1145
1348
|
}
|
|
1146
|
-
function
|
|
1147
|
-
const { selected: i, onSelectionChange:
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1349
|
+
function zo({ rowId: e, label: n }) {
|
|
1350
|
+
const { selected: i, onSelectionChange: s } = $(oe), a = () => {
|
|
1351
|
+
const o = new Set(i);
|
|
1352
|
+
o.has(e) ? o.delete(e) : o.add(e), s == null || s(o);
|
|
1150
1353
|
};
|
|
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);
|
|
1354
|
+
return /* @__PURE__ */ t("td", { className: `${N.cell} ${N.selectCell}`, children: /* @__PURE__ */ t(qe, { "aria-label": n, checked: i.has(e), onChange: a }) });
|
|
1355
|
+
}
|
|
1356
|
+
function qo() {
|
|
1357
|
+
const { selected: e, onSelectionChange: n } = $(oe), i = $(We), s = i.length > 0 && i.every((r) => e.has(r)), a = i.some((r) => e.has(r)), o = () => {
|
|
1358
|
+
const r = new Set(e);
|
|
1359
|
+
s ? i.forEach((c) => r.delete(c)) : i.forEach((c) => r.add(c)), n == null || n(r);
|
|
1161
1360
|
};
|
|
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
|
-
|
|
1361
|
+
return /* @__PURE__ */ t("th", { scope: "col", className: `${N.headerCell} ${N.selectCell}`, children: /* @__PURE__ */ t(qe, { "aria-label": "Select all rows", checked: s, indeterminate: a && !s, onChange: o }) });
|
|
1362
|
+
}
|
|
1363
|
+
function Ss({ children: e, className: n, ref: i, ...s }) {
|
|
1364
|
+
const { selectable: a } = $(oe);
|
|
1365
|
+
let o = !1;
|
|
1366
|
+
const r = a ? F.map(e, (c) => {
|
|
1367
|
+
if (o || !te(c)) return c;
|
|
1368
|
+
o = !0;
|
|
1369
|
+
const l = c;
|
|
1370
|
+
return pe(
|
|
1371
|
+
l,
|
|
1173
1372
|
void 0,
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */ t(
|
|
1176
|
-
|
|
1373
|
+
/* @__PURE__ */ h(fe, { children: [
|
|
1374
|
+
/* @__PURE__ */ t(qo, {}),
|
|
1375
|
+
l.props.children
|
|
1177
1376
|
] })
|
|
1178
1377
|
);
|
|
1179
1378
|
}) : e;
|
|
1180
|
-
return /* @__PURE__ */ t("thead", { ...
|
|
1379
|
+
return /* @__PURE__ */ t("thead", { ...s, ref: i, className: [N.head, n].filter(Boolean).join(" "), children: r });
|
|
1181
1380
|
}
|
|
1182
|
-
function
|
|
1183
|
-
const { selectable:
|
|
1184
|
-
return /* @__PURE__ */
|
|
1381
|
+
function Cs({ rowId: e, selectLabel: n, children: i, className: s, ref: a, ...o }) {
|
|
1382
|
+
const { selectable: r, selected: c } = $(oe), l = e !== void 0 && c.has(e);
|
|
1383
|
+
return /* @__PURE__ */ h(
|
|
1185
1384
|
"tr",
|
|
1186
1385
|
{
|
|
1187
|
-
...
|
|
1188
|
-
ref:
|
|
1189
|
-
className: [
|
|
1386
|
+
...o,
|
|
1387
|
+
ref: a,
|
|
1388
|
+
className: [N.row, s].filter(Boolean).join(" "),
|
|
1190
1389
|
"data-row-id": e,
|
|
1191
|
-
"data-selected":
|
|
1390
|
+
"data-selected": l || void 0,
|
|
1192
1391
|
children: [
|
|
1193
|
-
|
|
1392
|
+
r && e !== void 0 && /* @__PURE__ */ t(zo, { rowId: e, label: n ?? `Select row ${e}` }),
|
|
1194
1393
|
i
|
|
1195
1394
|
]
|
|
1196
1395
|
}
|
|
1197
1396
|
);
|
|
1198
1397
|
}
|
|
1199
|
-
function
|
|
1200
|
-
const { sortable:
|
|
1398
|
+
function Ls({ sortKey: e, numeric: n, children: i, className: s, ref: a, ...o }) {
|
|
1399
|
+
const { sortable: r, sort: c, onSortChange: l } = $(oe), d = r && e !== void 0, _ = d && (c == null ? void 0 : c.key) === e, u = d ? _ ? c.direction === "asc" ? "ascending" : "descending" : "none" : void 0, f = () => {
|
|
1201
1400
|
if (!e) return;
|
|
1202
|
-
const g =
|
|
1203
|
-
|
|
1401
|
+
const g = _ && c.direction === "asc" ? "desc" : "asc";
|
|
1402
|
+
l == null || l({ key: e, direction: g });
|
|
1204
1403
|
};
|
|
1205
1404
|
return /* @__PURE__ */ t(
|
|
1206
1405
|
"th",
|
|
1207
1406
|
{
|
|
1208
|
-
...
|
|
1209
|
-
ref:
|
|
1407
|
+
...o,
|
|
1408
|
+
ref: a,
|
|
1210
1409
|
scope: "col",
|
|
1211
|
-
className: [
|
|
1410
|
+
className: [N.headerCell, s].filter(Boolean).join(" "),
|
|
1212
1411
|
"data-numeric": n || void 0,
|
|
1213
|
-
"aria-sort":
|
|
1214
|
-
children:
|
|
1412
|
+
"aria-sort": u,
|
|
1413
|
+
children: d ? /* @__PURE__ */ h("button", { type: "button", className: N.sortButton, onClick: f, children: [
|
|
1215
1414
|
i,
|
|
1216
|
-
/* @__PURE__ */ t("span", { className:
|
|
1415
|
+
/* @__PURE__ */ t("span", { className: N.sortIndicator, "aria-hidden": "true", children: _ ? c.direction === "asc" ? "↑" : "↓" : "" })
|
|
1217
1416
|
] }) : i
|
|
1218
1417
|
}
|
|
1219
1418
|
);
|
|
1220
1419
|
}
|
|
1221
|
-
function
|
|
1222
|
-
const c = [
|
|
1223
|
-
return i ? /* @__PURE__ */ t("th", { ...
|
|
1420
|
+
function js({ numeric: e, colSpan: n, rowHeader: i, children: s, className: a, ref: o, ...r }) {
|
|
1421
|
+
const c = [N.cell, i && N.rowHeader, a].filter(Boolean).join(" ");
|
|
1422
|
+
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
1423
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return /* @__PURE__ */
|
|
1424
|
+
function Ts({ children: e, detail: n, className: i, ref: s, ...a }) {
|
|
1425
|
+
return /* @__PURE__ */ h("caption", { ...a, ref: s, className: [N.caption, i].filter(Boolean).join(" "), children: [
|
|
1227
1426
|
e,
|
|
1228
|
-
n != null && /* @__PURE__ */ t("span", { className:
|
|
1427
|
+
n != null && /* @__PURE__ */ t("span", { className: N.captionDetail, children: n })
|
|
1229
1428
|
] });
|
|
1230
1429
|
}
|
|
1231
|
-
const
|
|
1232
|
-
nav:
|
|
1233
|
-
ellipsis:
|
|
1430
|
+
const Mo = "_nav_166vs_6", Eo = "_ellipsis_166vs_12", je = {
|
|
1431
|
+
nav: Mo,
|
|
1432
|
+
ellipsis: Eo
|
|
1234
1433
|
};
|
|
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 [...
|
|
1434
|
+
function ae(e, n) {
|
|
1435
|
+
return Array.from({ length: n - e + 1 }, (i, s) => e + s);
|
|
1436
|
+
}
|
|
1437
|
+
function Do(e, n, i) {
|
|
1438
|
+
const s = Math.max(0, i), a = s * 2 + 1, o = a + 4;
|
|
1439
|
+
if (n <= o)
|
|
1440
|
+
return ae(1, n);
|
|
1441
|
+
const r = Math.max(e - s, 1), c = Math.min(e + s, n), l = r > 3, d = c < n - 2;
|
|
1442
|
+
if (!l && d) {
|
|
1443
|
+
const _ = Math.max(c, a);
|
|
1444
|
+
return [...ae(1, _), "ellipsis", n];
|
|
1246
1445
|
}
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1249
|
-
return [1, "ellipsis", ...
|
|
1446
|
+
if (l && !d) {
|
|
1447
|
+
const _ = Math.min(r, n - a + 1);
|
|
1448
|
+
return [1, "ellipsis", ...ae(_, n)];
|
|
1250
1449
|
}
|
|
1251
|
-
return
|
|
1450
|
+
return l && d ? [1, "ellipsis", ...ae(r, c), "ellipsis", n] : ae(1, n);
|
|
1252
1451
|
}
|
|
1253
|
-
function
|
|
1452
|
+
function Is({
|
|
1254
1453
|
page: e,
|
|
1255
1454
|
pageCount: n,
|
|
1256
1455
|
onPageChange: i,
|
|
1257
|
-
siblingCount:
|
|
1258
|
-
"aria-label":
|
|
1259
|
-
className:
|
|
1456
|
+
siblingCount: s = 1,
|
|
1457
|
+
"aria-label": a = "Pagination",
|
|
1458
|
+
className: o
|
|
1260
1459
|
}) {
|
|
1261
|
-
const
|
|
1262
|
-
process.env.NODE_ENV !== "production" && (!
|
|
1263
|
-
`Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${
|
|
1460
|
+
const r = n >= 1, c = Number.isFinite(e) ? e : 1, l = r ? Math.min(Math.max(c, 1), n) : 0;
|
|
1461
|
+
process.env.NODE_ENV !== "production" && (!r || e !== l) && console.warn(
|
|
1462
|
+
`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
1463
|
);
|
|
1265
|
-
const
|
|
1266
|
-
return /* @__PURE__ */
|
|
1464
|
+
const d = r ? Do(l, n, s) : [];
|
|
1465
|
+
return /* @__PURE__ */ h("nav", { "aria-label": a, className: [je.nav, o].filter(Boolean).join(" "), children: [
|
|
1267
1466
|
/* @__PURE__ */ t(
|
|
1268
|
-
|
|
1467
|
+
le,
|
|
1269
1468
|
{
|
|
1270
1469
|
"aria-label": "Previous page",
|
|
1271
1470
|
size: 32,
|
|
1272
1471
|
variant: "ghost",
|
|
1273
|
-
disabled: !
|
|
1274
|
-
onClick: () => i(
|
|
1472
|
+
disabled: !r || l <= 1,
|
|
1473
|
+
onClick: () => i(l - 1),
|
|
1275
1474
|
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
1475
|
}
|
|
1277
1476
|
),
|
|
1278
|
-
|
|
1279
|
-
(
|
|
1280
|
-
|
|
1477
|
+
d.map(
|
|
1478
|
+
(_, u) => _ === "ellipsis" ? /* @__PURE__ */ t("span", { className: je.ellipsis, "aria-hidden": "true", children: "…" }, `e${u}`) : /* @__PURE__ */ t(
|
|
1479
|
+
ce,
|
|
1281
1480
|
{
|
|
1282
1481
|
size: 32,
|
|
1283
|
-
variant:
|
|
1284
|
-
"aria-current":
|
|
1285
|
-
onClick: () => i(
|
|
1286
|
-
children: String(
|
|
1482
|
+
variant: _ === l ? "accent-subtle" : "ghost",
|
|
1483
|
+
"aria-current": _ === l ? "page" : void 0,
|
|
1484
|
+
onClick: () => i(_),
|
|
1485
|
+
children: String(_)
|
|
1287
1486
|
},
|
|
1288
|
-
|
|
1487
|
+
_
|
|
1289
1488
|
)
|
|
1290
1489
|
),
|
|
1291
1490
|
/* @__PURE__ */ t(
|
|
1292
|
-
|
|
1491
|
+
le,
|
|
1293
1492
|
{
|
|
1294
1493
|
"aria-label": "Next page",
|
|
1295
1494
|
size: 32,
|
|
1296
1495
|
variant: "ghost",
|
|
1297
|
-
disabled: !
|
|
1298
|
-
onClick: () => i(
|
|
1496
|
+
disabled: !r || l >= n,
|
|
1497
|
+
onClick: () => i(l + 1),
|
|
1299
1498
|
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
1499
|
}
|
|
1301
1500
|
)
|
|
1302
1501
|
] });
|
|
1303
1502
|
}
|
|
1304
|
-
const
|
|
1305
|
-
nav:
|
|
1503
|
+
const Wo = "_nav_jbhk1_5", Po = {
|
|
1504
|
+
nav: Wo
|
|
1306
1505
|
};
|
|
1307
|
-
function
|
|
1506
|
+
function zs({
|
|
1308
1507
|
hasPrevious: e,
|
|
1309
1508
|
hasNext: n,
|
|
1310
1509
|
onPrevious: i,
|
|
1311
|
-
onNext:
|
|
1312
|
-
previousLabel:
|
|
1313
|
-
nextLabel:
|
|
1314
|
-
size:
|
|
1510
|
+
onNext: s,
|
|
1511
|
+
previousLabel: a = "Previous",
|
|
1512
|
+
nextLabel: o = "Next",
|
|
1513
|
+
size: r = 32,
|
|
1315
1514
|
"aria-label": c = "Pagination",
|
|
1316
|
-
className:
|
|
1515
|
+
className: l
|
|
1317
1516
|
}) {
|
|
1318
|
-
return /* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
/* @__PURE__ */ t(
|
|
1321
|
-
/* @__PURE__ */ t("span", { children:
|
|
1517
|
+
return /* @__PURE__ */ h("nav", { "aria-label": c, className: [Po.nav, l].filter(Boolean).join(" "), children: [
|
|
1518
|
+
/* @__PURE__ */ h(ce, { variant: "ghost", size: r, disabled: !e, onClick: i, children: [
|
|
1519
|
+
/* @__PURE__ */ t(dt, { size: 16, "aria-hidden": "true" }),
|
|
1520
|
+
/* @__PURE__ */ t("span", { children: a })
|
|
1322
1521
|
] }),
|
|
1323
|
-
/* @__PURE__ */
|
|
1324
|
-
/* @__PURE__ */ t("span", { children:
|
|
1325
|
-
/* @__PURE__ */ t(
|
|
1522
|
+
/* @__PURE__ */ h(ce, { variant: "ghost", size: r, disabled: !n, onClick: s, children: [
|
|
1523
|
+
/* @__PURE__ */ t("span", { children: o }),
|
|
1524
|
+
/* @__PURE__ */ t(lt, { size: 16, "aria-hidden": "true" })
|
|
1326
1525
|
] })
|
|
1327
1526
|
] });
|
|
1328
1527
|
}
|
|
1329
|
-
const
|
|
1330
|
-
neutral:
|
|
1331
|
-
success:
|
|
1332
|
-
warning:
|
|
1333
|
-
danger:
|
|
1334
|
-
},
|
|
1528
|
+
const ke = {
|
|
1529
|
+
neutral: _t,
|
|
1530
|
+
success: ct,
|
|
1531
|
+
warning: ht,
|
|
1532
|
+
danger: ft
|
|
1533
|
+
}, Ao = {
|
|
1335
1534
|
neutral: null,
|
|
1336
1535
|
success: "Success:",
|
|
1337
1536
|
warning: "Warning:",
|
|
1338
1537
|
danger: "Error:"
|
|
1339
1538
|
};
|
|
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:
|
|
1539
|
+
function Ne(e, n) {
|
|
1540
|
+
return n === void 0 ? Ao[e] : n;
|
|
1541
|
+
}
|
|
1542
|
+
const Ro = "_toast_1gxg8_10", Ho = "_icon_1gxg8_39", Vo = "_iconNeutral_1gxg8_44", Oo = "_iconSuccess_1gxg8_45", Ko = "_iconWarning_1gxg8_46", Fo = "_iconDanger_1gxg8_47", Uo = "_body_1gxg8_51", Go = "_action_1gxg8_55", Yo = "_region_1gxg8_61", Zo = "_live_1gxg8_91", M = {
|
|
1543
|
+
toast: Ro,
|
|
1544
|
+
icon: Ho,
|
|
1545
|
+
iconNeutral: Vo,
|
|
1546
|
+
iconSuccess: Oo,
|
|
1547
|
+
iconWarning: Ko,
|
|
1548
|
+
iconDanger: Fo,
|
|
1549
|
+
body: Uo,
|
|
1550
|
+
action: Go,
|
|
1551
|
+
region: Yo,
|
|
1552
|
+
live: Zo
|
|
1553
|
+
}, Xo = {
|
|
1554
|
+
neutral: M.iconNeutral,
|
|
1555
|
+
success: M.iconSuccess,
|
|
1556
|
+
warning: M.iconWarning,
|
|
1557
|
+
danger: M.iconDanger
|
|
1359
1558
|
};
|
|
1360
|
-
function
|
|
1559
|
+
function we({
|
|
1361
1560
|
variant: e = "neutral",
|
|
1362
1561
|
children: n,
|
|
1363
1562
|
action: i,
|
|
1364
|
-
onDismiss:
|
|
1365
|
-
statusLabel:
|
|
1366
|
-
className:
|
|
1367
|
-
ref:
|
|
1563
|
+
onDismiss: s,
|
|
1564
|
+
statusLabel: a,
|
|
1565
|
+
className: o,
|
|
1566
|
+
ref: r
|
|
1368
1567
|
}) {
|
|
1369
|
-
const c =
|
|
1370
|
-
return /* @__PURE__ */
|
|
1371
|
-
/* @__PURE__ */ t("span", { className: [
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
|
|
1568
|
+
const c = ke[e], l = Ne(e, a), d = [M.toast, o].filter(Boolean).join(" ");
|
|
1569
|
+
return /* @__PURE__ */ h("div", { ref: r, className: d, "data-variant": e, "data-psi-toast": !0, children: [
|
|
1570
|
+
/* @__PURE__ */ t("span", { className: [M.icon, Xo[e]].join(" "), children: /* @__PURE__ */ t(c, { size: 20, "aria-hidden": "true" }) }),
|
|
1571
|
+
/* @__PURE__ */ h("div", { className: M.body, children: [
|
|
1572
|
+
l && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: l }),
|
|
1374
1573
|
n
|
|
1375
1574
|
] }),
|
|
1376
|
-
i != null && /* @__PURE__ */ t("div", { className:
|
|
1377
|
-
|
|
1378
|
-
|
|
1575
|
+
i != null && /* @__PURE__ */ t("div", { className: M.action, children: i }),
|
|
1576
|
+
s && /* @__PURE__ */ t(
|
|
1577
|
+
le,
|
|
1379
1578
|
{
|
|
1380
1579
|
variant: "ghost",
|
|
1381
1580
|
size: 32,
|
|
1382
1581
|
"aria-label": "Dismiss notification",
|
|
1383
|
-
onClick:
|
|
1384
|
-
children: /* @__PURE__ */ t(
|
|
1582
|
+
onClick: s,
|
|
1583
|
+
children: /* @__PURE__ */ t(xe, { "aria-hidden": "true" })
|
|
1385
1584
|
}
|
|
1386
1585
|
)
|
|
1387
1586
|
] });
|
|
1388
1587
|
}
|
|
1389
|
-
function
|
|
1588
|
+
function Pe({ children: e }) {
|
|
1390
1589
|
return /* @__PURE__ */ t("div", { className: "psi-sr-only", "data-psi-announcement": !0, children: e });
|
|
1391
1590
|
}
|
|
1392
|
-
const
|
|
1393
|
-
function
|
|
1394
|
-
if (!
|
|
1591
|
+
const Jo = /* @__PURE__ */ new Set(["warning", "danger"]);
|
|
1592
|
+
function Te(e) {
|
|
1593
|
+
if (!te(e) || e.type !== we && e.type !== Pe) return !1;
|
|
1395
1594
|
const { politeness: n, variant: i } = e.props;
|
|
1396
|
-
return n !== void 0 ? n === "assertive" : e.type ===
|
|
1595
|
+
return n !== void 0 ? n === "assertive" : e.type === we && Jo.has(i ?? "neutral");
|
|
1397
1596
|
}
|
|
1398
|
-
function
|
|
1597
|
+
function Qo({
|
|
1399
1598
|
placement: e = "bottom-end",
|
|
1400
1599
|
"aria-label": n = "Notifications",
|
|
1401
1600
|
children: i,
|
|
1402
|
-
className:
|
|
1403
|
-
ref:
|
|
1404
|
-
...
|
|
1601
|
+
className: s,
|
|
1602
|
+
ref: a,
|
|
1603
|
+
...o
|
|
1405
1604
|
}) {
|
|
1406
|
-
const
|
|
1407
|
-
|
|
1605
|
+
const r = B(null), c = (u) => {
|
|
1606
|
+
r.current = u, typeof a == "function" ? a(u) : a && (a.current = u);
|
|
1408
1607
|
};
|
|
1409
|
-
|
|
1608
|
+
z(() => {
|
|
1410
1609
|
var f;
|
|
1411
|
-
const
|
|
1412
|
-
if (
|
|
1413
|
-
return (f =
|
|
1610
|
+
const u = r.current;
|
|
1611
|
+
if (u)
|
|
1612
|
+
return (f = u.showPopover) == null || f.call(u), () => {
|
|
1414
1613
|
var g;
|
|
1415
|
-
(g =
|
|
1614
|
+
(g = u.hidePopover) == null || g.call(u);
|
|
1416
1615
|
};
|
|
1417
1616
|
}, []);
|
|
1418
|
-
const
|
|
1419
|
-
return /* @__PURE__ */
|
|
1617
|
+
const l = F.toArray(i), d = l.filter(Te), _ = l.filter((u) => !Te(u));
|
|
1618
|
+
return /* @__PURE__ */ h(
|
|
1420
1619
|
"div",
|
|
1421
1620
|
{
|
|
1422
|
-
...
|
|
1621
|
+
...o,
|
|
1423
1622
|
ref: c,
|
|
1424
1623
|
role: "region",
|
|
1425
1624
|
popover: "manual",
|
|
1426
1625
|
"aria-label": n,
|
|
1427
1626
|
"data-placement": e,
|
|
1428
1627
|
"data-psi-toast-region": !0,
|
|
1429
|
-
className: [
|
|
1628
|
+
className: [M.region, s].filter(Boolean).join(" "),
|
|
1430
1629
|
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:
|
|
1630
|
+
/* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", "aria-atomic": "false", className: M.live, children: _ }),
|
|
1631
|
+
/* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", "aria-atomic": "false", className: M.live, children: d })
|
|
1433
1632
|
]
|
|
1434
1633
|
}
|
|
1435
1634
|
);
|
|
1436
1635
|
}
|
|
1437
|
-
const
|
|
1438
|
-
function
|
|
1439
|
-
const e =
|
|
1636
|
+
const Ae = U(null);
|
|
1637
|
+
function qs() {
|
|
1638
|
+
const e = $(Ae);
|
|
1440
1639
|
if (!e)
|
|
1441
1640
|
throw new Error(
|
|
1442
1641
|
"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
1642
|
);
|
|
1444
1643
|
return e;
|
|
1445
1644
|
}
|
|
1446
|
-
const
|
|
1447
|
-
function
|
|
1645
|
+
const ei = 1e3;
|
|
1646
|
+
function Ms({
|
|
1448
1647
|
limit: e = 3,
|
|
1449
1648
|
duration: n = 5e3,
|
|
1450
1649
|
actionDuration: i = 1e4,
|
|
1451
|
-
placement:
|
|
1452
|
-
children:
|
|
1453
|
-
...
|
|
1650
|
+
placement: s = "bottom-end",
|
|
1651
|
+
children: a,
|
|
1652
|
+
...o
|
|
1454
1653
|
}) {
|
|
1455
|
-
const [
|
|
1456
|
-
const
|
|
1457
|
-
(
|
|
1458
|
-
}, []),
|
|
1459
|
-
(
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1654
|
+
const [r, c] = re([]), [l, d] = re([]), _ = B(/* @__PURE__ */ new Map()), u = B(!1), f = B(0), g = R(), m = k((v) => {
|
|
1655
|
+
const p = _.current.get(v);
|
|
1656
|
+
(p == null ? void 0 : p.handle) !== void 0 && clearTimeout(p.handle), _.current.delete(v), c((w) => w.some((C) => C.id === v) ? w.filter((C) => C.id !== v) : w), d((w) => w.some((C) => C.id === v) ? w.filter((C) => C.id !== v) : w);
|
|
1657
|
+
}, []), b = k(
|
|
1658
|
+
(v, p) => {
|
|
1659
|
+
const w = u.current ? { handle: void 0, remaining: p, startedAt: void 0 } : { handle: setTimeout(() => m(v), p), remaining: p, startedAt: Date.now() };
|
|
1660
|
+
_.current.set(v, w);
|
|
1462
1661
|
},
|
|
1463
|
-
[
|
|
1464
|
-
),
|
|
1465
|
-
({ variant:
|
|
1466
|
-
const
|
|
1467
|
-
return c((
|
|
1468
|
-
const
|
|
1469
|
-
...
|
|
1470
|
-
{ id:
|
|
1662
|
+
[m]
|
|
1663
|
+
), x = k(
|
|
1664
|
+
({ variant: v = "neutral", message: p, action: w, politeness: C, statusLabel: Oe }) => {
|
|
1665
|
+
const ve = `${g}-${f.current++}`, Be = w != null ? i : n;
|
|
1666
|
+
return c((Ke) => {
|
|
1667
|
+
const be = [
|
|
1668
|
+
...Ke,
|
|
1669
|
+
{ id: ve, variant: v, message: p, action: w, politeness: C, statusLabel: Oe, duration: Be }
|
|
1471
1670
|
];
|
|
1472
|
-
for (;
|
|
1473
|
-
const
|
|
1474
|
-
(
|
|
1671
|
+
for (; be.length > e; ) {
|
|
1672
|
+
const Se = be.shift(), ue = _.current.get(Se.id);
|
|
1673
|
+
(ue == null ? void 0 : ue.handle) !== void 0 && clearTimeout(ue.handle), _.current.delete(Se.id);
|
|
1475
1674
|
}
|
|
1476
|
-
return
|
|
1477
|
-
}),
|
|
1675
|
+
return be;
|
|
1676
|
+
}), b(ve, Be), ve;
|
|
1478
1677
|
},
|
|
1479
|
-
[i,
|
|
1480
|
-
),
|
|
1481
|
-
(
|
|
1482
|
-
const
|
|
1483
|
-
return
|
|
1678
|
+
[i, b, n, g, e]
|
|
1679
|
+
), j = k(
|
|
1680
|
+
(v, { politeness: p = "polite" } = {}) => {
|
|
1681
|
+
const w = `${g}-${f.current++}`;
|
|
1682
|
+
return d((C) => [...C, { id: w, message: v, politeness: p }]), b(w, ei), w;
|
|
1484
1683
|
},
|
|
1485
|
-
[
|
|
1486
|
-
),
|
|
1487
|
-
for (const
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}, []),
|
|
1491
|
-
if (!
|
|
1492
|
-
|
|
1493
|
-
for (const [
|
|
1494
|
-
if (
|
|
1495
|
-
clearTimeout(
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1684
|
+
[b, g]
|
|
1685
|
+
), S = k(() => {
|
|
1686
|
+
for (const v of _.current.values())
|
|
1687
|
+
v.handle !== void 0 && clearTimeout(v.handle);
|
|
1688
|
+
_.current.clear(), c([]), d([]);
|
|
1689
|
+
}, []), T = k(() => {
|
|
1690
|
+
if (!u.current) {
|
|
1691
|
+
u.current = !0;
|
|
1692
|
+
for (const [v, p] of _.current) {
|
|
1693
|
+
if (p.handle === void 0) continue;
|
|
1694
|
+
clearTimeout(p.handle);
|
|
1695
|
+
const w = p.startedAt === void 0 ? 0 : Date.now() - p.startedAt;
|
|
1696
|
+
_.current.set(v, {
|
|
1498
1697
|
handle: void 0,
|
|
1499
|
-
remaining: Math.max(0,
|
|
1698
|
+
remaining: Math.max(0, p.remaining - w),
|
|
1500
1699
|
startedAt: void 0
|
|
1501
1700
|
});
|
|
1502
1701
|
}
|
|
1503
1702
|
}
|
|
1504
|
-
}, []),
|
|
1505
|
-
if (
|
|
1506
|
-
|
|
1507
|
-
for (const [
|
|
1508
|
-
|
|
1509
|
-
handle: setTimeout(() =>
|
|
1510
|
-
remaining:
|
|
1703
|
+
}, []), y = k(() => {
|
|
1704
|
+
if (u.current) {
|
|
1705
|
+
u.current = !1;
|
|
1706
|
+
for (const [v, p] of _.current)
|
|
1707
|
+
p.handle === void 0 && _.current.set(v, {
|
|
1708
|
+
handle: setTimeout(() => m(v), p.remaining),
|
|
1709
|
+
remaining: p.remaining,
|
|
1511
1710
|
startedAt: Date.now()
|
|
1512
1711
|
});
|
|
1513
1712
|
}
|
|
1514
|
-
}, [
|
|
1515
|
-
|
|
1516
|
-
const
|
|
1713
|
+
}, [m]);
|
|
1714
|
+
z(() => {
|
|
1715
|
+
const v = _.current;
|
|
1517
1716
|
return () => {
|
|
1518
|
-
for (const
|
|
1519
|
-
|
|
1520
|
-
|
|
1717
|
+
for (const p of v.values())
|
|
1718
|
+
p.handle !== void 0 && clearTimeout(p.handle);
|
|
1719
|
+
v.clear();
|
|
1521
1720
|
};
|
|
1522
1721
|
}, []);
|
|
1523
|
-
const
|
|
1524
|
-
() => ({ show:
|
|
1525
|
-
[
|
|
1722
|
+
const H = ge(
|
|
1723
|
+
() => ({ show: x, announce: j, dismiss: m, clear: S }),
|
|
1724
|
+
[x, j, m, S]
|
|
1526
1725
|
);
|
|
1527
|
-
return /* @__PURE__ */
|
|
1528
|
-
|
|
1726
|
+
return /* @__PURE__ */ h(Ae.Provider, { value: H, children: [
|
|
1727
|
+
a,
|
|
1529
1728
|
/* @__PURE__ */ t(
|
|
1530
1729
|
"div",
|
|
1531
1730
|
{
|
|
1532
|
-
onPointerEnter:
|
|
1533
|
-
onPointerLeave:
|
|
1534
|
-
onFocusCapture:
|
|
1535
|
-
onBlurCapture:
|
|
1536
|
-
children: /* @__PURE__ */
|
|
1537
|
-
|
|
1538
|
-
|
|
1731
|
+
onPointerEnter: T,
|
|
1732
|
+
onPointerLeave: y,
|
|
1733
|
+
onFocusCapture: T,
|
|
1734
|
+
onBlurCapture: y,
|
|
1735
|
+
children: /* @__PURE__ */ h(Qo, { ...o, placement: s, children: [
|
|
1736
|
+
r.map((v) => /* @__PURE__ */ t(
|
|
1737
|
+
we,
|
|
1539
1738
|
{
|
|
1540
|
-
variant:
|
|
1541
|
-
action:
|
|
1542
|
-
politeness:
|
|
1543
|
-
statusLabel:
|
|
1544
|
-
onDismiss: () =>
|
|
1545
|
-
children:
|
|
1739
|
+
variant: v.variant,
|
|
1740
|
+
action: v.action,
|
|
1741
|
+
politeness: v.politeness,
|
|
1742
|
+
statusLabel: v.statusLabel,
|
|
1743
|
+
onDismiss: () => m(v.id),
|
|
1744
|
+
children: v.message
|
|
1546
1745
|
},
|
|
1547
|
-
|
|
1746
|
+
v.id
|
|
1548
1747
|
)),
|
|
1549
|
-
|
|
1748
|
+
l.map((v) => /* @__PURE__ */ t(Pe, { politeness: v.politeness, children: v.message }, v.id))
|
|
1550
1749
|
] })
|
|
1551
1750
|
}
|
|
1552
1751
|
)
|
|
1553
1752
|
] });
|
|
1554
1753
|
}
|
|
1555
|
-
const
|
|
1556
|
-
banner:
|
|
1557
|
-
icon:
|
|
1558
|
-
iconNeutral:
|
|
1559
|
-
iconSuccess:
|
|
1560
|
-
iconWarning:
|
|
1561
|
-
iconDanger:
|
|
1562
|
-
body:
|
|
1563
|
-
title:
|
|
1564
|
-
action:
|
|
1565
|
-
},
|
|
1566
|
-
neutral:
|
|
1567
|
-
success:
|
|
1568
|
-
warning:
|
|
1569
|
-
danger:
|
|
1754
|
+
const ni = "_banner_15y1f_7", ti = "_icon_15y1f_26", ri = "_iconNeutral_15y1f_31", oi = "_iconSuccess_15y1f_32", ii = "_iconWarning_15y1f_33", si = "_iconDanger_15y1f_34", ai = "_body_15y1f_36", ci = "_title_15y1f_50", li = "_action_15y1f_55", P = {
|
|
1755
|
+
banner: ni,
|
|
1756
|
+
icon: ti,
|
|
1757
|
+
iconNeutral: ri,
|
|
1758
|
+
iconSuccess: oi,
|
|
1759
|
+
iconWarning: ii,
|
|
1760
|
+
iconDanger: si,
|
|
1761
|
+
body: ai,
|
|
1762
|
+
title: ci,
|
|
1763
|
+
action: li
|
|
1764
|
+
}, di = {
|
|
1765
|
+
neutral: P.iconNeutral,
|
|
1766
|
+
success: P.iconSuccess,
|
|
1767
|
+
warning: P.iconWarning,
|
|
1768
|
+
danger: P.iconDanger
|
|
1570
1769
|
};
|
|
1571
|
-
function
|
|
1770
|
+
function Es({
|
|
1572
1771
|
variant: e = "neutral",
|
|
1573
1772
|
title: n,
|
|
1574
1773
|
children: i,
|
|
1575
|
-
action:
|
|
1576
|
-
onDismiss:
|
|
1577
|
-
statusLabel:
|
|
1578
|
-
className:
|
|
1774
|
+
action: s,
|
|
1775
|
+
onDismiss: a,
|
|
1776
|
+
statusLabel: o,
|
|
1777
|
+
className: r,
|
|
1579
1778
|
ref: c,
|
|
1580
|
-
...
|
|
1779
|
+
...l
|
|
1581
1780
|
}) {
|
|
1582
|
-
const
|
|
1583
|
-
return /* @__PURE__ */
|
|
1584
|
-
/* @__PURE__ */ t("span", { className: [
|
|
1585
|
-
/* @__PURE__ */
|
|
1586
|
-
|
|
1587
|
-
n != null && /* @__PURE__ */ t("strong", { className:
|
|
1781
|
+
const d = ke[e], _ = Ne(e, o), u = [P.banner, r].filter(Boolean).join(" ");
|
|
1782
|
+
return /* @__PURE__ */ h("div", { ...l, ref: c, className: u, "data-variant": e, "data-psi-banner": !0, children: [
|
|
1783
|
+
/* @__PURE__ */ t("span", { className: [P.icon, di[e]].join(" "), children: /* @__PURE__ */ t(d, { size: 20, "aria-hidden": "true" }) }),
|
|
1784
|
+
/* @__PURE__ */ h("div", { className: P.body, children: [
|
|
1785
|
+
_ && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: _ }),
|
|
1786
|
+
n != null && /* @__PURE__ */ t("strong", { className: P.title, children: n }),
|
|
1588
1787
|
i
|
|
1589
1788
|
] }),
|
|
1590
|
-
|
|
1591
|
-
|
|
1789
|
+
s != null && /* @__PURE__ */ t("div", { className: P.action, children: s }),
|
|
1790
|
+
a && /* @__PURE__ */ t(le, { variant: "ghost", size: 32, "aria-label": "Dismiss", onClick: a, children: /* @__PURE__ */ t(xe, { "aria-hidden": "true" }) })
|
|
1592
1791
|
] });
|
|
1593
1792
|
}
|
|
1594
|
-
const
|
|
1595
|
-
inlineAlert:
|
|
1596
|
-
icon:
|
|
1597
|
-
iconNeutral:
|
|
1598
|
-
iconSuccess:
|
|
1599
|
-
iconWarning:
|
|
1600
|
-
iconDanger:
|
|
1601
|
-
body:
|
|
1602
|
-
title:
|
|
1603
|
-
action:
|
|
1604
|
-
},
|
|
1793
|
+
const ui = "_inlineAlert_16390_7", _i = "_icon_16390_38", hi = "_iconNeutral_16390_43", fi = "_iconSuccess_16390_44", gi = "_iconWarning_16390_45", pi = "_iconDanger_16390_46", mi = "_body_16390_48", vi = "_title_16390_62", bi = "_action_16390_67", A = {
|
|
1794
|
+
inlineAlert: ui,
|
|
1795
|
+
icon: _i,
|
|
1796
|
+
iconNeutral: hi,
|
|
1797
|
+
iconSuccess: fi,
|
|
1798
|
+
iconWarning: gi,
|
|
1799
|
+
iconDanger: pi,
|
|
1800
|
+
body: mi,
|
|
1801
|
+
title: vi,
|
|
1802
|
+
action: bi
|
|
1803
|
+
}, yi = {
|
|
1605
1804
|
neutral: A.iconNeutral,
|
|
1606
1805
|
success: A.iconSuccess,
|
|
1607
1806
|
warning: A.iconWarning,
|
|
1608
1807
|
danger: A.iconDanger
|
|
1609
1808
|
};
|
|
1610
|
-
function
|
|
1809
|
+
function Ds({
|
|
1611
1810
|
variant: e = "neutral",
|
|
1612
1811
|
title: n,
|
|
1613
1812
|
children: i,
|
|
1614
|
-
action:
|
|
1615
|
-
statusLabel:
|
|
1616
|
-
className:
|
|
1617
|
-
ref:
|
|
1813
|
+
action: s,
|
|
1814
|
+
statusLabel: a,
|
|
1815
|
+
className: o,
|
|
1816
|
+
ref: r,
|
|
1618
1817
|
...c
|
|
1619
1818
|
}) {
|
|
1620
|
-
const
|
|
1621
|
-
return /* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */ t("span", { className: [A.icon,
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
|
|
1819
|
+
const l = ke[e], d = Ne(e, a), _ = [A.inlineAlert, o].filter(Boolean).join(" ");
|
|
1820
|
+
return /* @__PURE__ */ h("div", { ...c, ref: r, className: _, "data-variant": e, "data-psi-inline-alert": !0, children: [
|
|
1821
|
+
/* @__PURE__ */ t("span", { className: [A.icon, yi[e]].join(" "), children: /* @__PURE__ */ t(l, { size: 20, "aria-hidden": "true" }) }),
|
|
1822
|
+
/* @__PURE__ */ h("div", { className: A.body, children: [
|
|
1823
|
+
d && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: d }),
|
|
1625
1824
|
n != null && /* @__PURE__ */ t("strong", { className: A.title, children: n }),
|
|
1626
1825
|
i
|
|
1627
1826
|
] }),
|
|
1628
|
-
|
|
1827
|
+
s != null && /* @__PURE__ */ t("div", { className: A.action, children: s })
|
|
1629
1828
|
] });
|
|
1630
1829
|
}
|
|
1631
|
-
const
|
|
1632
|
-
skeleton:
|
|
1633
|
-
line:
|
|
1830
|
+
const wi = "_skeleton_1yo7t_12", xi = "_line_1yo7t_28", Ie = {
|
|
1831
|
+
skeleton: wi,
|
|
1832
|
+
line: xi
|
|
1634
1833
|
};
|
|
1635
|
-
function
|
|
1834
|
+
function Ws({
|
|
1636
1835
|
variant: e = "text",
|
|
1637
1836
|
lines: n = 1,
|
|
1638
1837
|
size: i = 40,
|
|
1639
|
-
className:
|
|
1640
|
-
ref:
|
|
1641
|
-
...
|
|
1838
|
+
className: s,
|
|
1839
|
+
ref: a,
|
|
1840
|
+
...o
|
|
1642
1841
|
}) {
|
|
1643
|
-
const
|
|
1842
|
+
const r = [Ie.skeleton, s].filter(Boolean).join(" "), c = Math.max(1, Math.floor(n));
|
|
1644
1843
|
return /* @__PURE__ */ t(
|
|
1645
1844
|
"div",
|
|
1646
1845
|
{
|
|
1647
|
-
...
|
|
1648
|
-
ref:
|
|
1649
|
-
className:
|
|
1846
|
+
...o,
|
|
1847
|
+
ref: a,
|
|
1848
|
+
className: r,
|
|
1650
1849
|
"aria-hidden": "true",
|
|
1651
1850
|
"data-psi-skeleton": !0,
|
|
1652
1851
|
"data-variant": e,
|
|
1653
1852
|
"data-size": e === "block" ? i : void 0,
|
|
1654
|
-
children: e === "text" && Array.from({ length: c }, (
|
|
1853
|
+
children: e === "text" && Array.from({ length: c }, (l, d) => /* @__PURE__ */ t("span", { className: Ie.line }, d))
|
|
1655
1854
|
}
|
|
1656
1855
|
);
|
|
1657
1856
|
}
|
|
1658
|
-
function
|
|
1857
|
+
function Ps({
|
|
1659
1858
|
value: e,
|
|
1660
1859
|
label: n = "Copy",
|
|
1661
1860
|
size: i = 32,
|
|
1662
|
-
variant:
|
|
1663
|
-
onCopy:
|
|
1664
|
-
className:
|
|
1861
|
+
variant: s = "ghost",
|
|
1862
|
+
onCopy: a,
|
|
1863
|
+
className: o
|
|
1665
1864
|
}) {
|
|
1666
|
-
return /* @__PURE__ */
|
|
1667
|
-
|
|
1865
|
+
return /* @__PURE__ */ h(
|
|
1866
|
+
ce,
|
|
1668
1867
|
{
|
|
1669
1868
|
type: "button",
|
|
1670
|
-
variant:
|
|
1869
|
+
variant: s,
|
|
1671
1870
|
size: i,
|
|
1672
|
-
className:
|
|
1871
|
+
className: o,
|
|
1673
1872
|
onClick: () => {
|
|
1674
|
-
const
|
|
1675
|
-
if (!(
|
|
1676
|
-
|
|
1873
|
+
const r = typeof navigator < "u" ? navigator.clipboard : void 0;
|
|
1874
|
+
if (!(r != null && r.writeText)) {
|
|
1875
|
+
a == null || a("failed");
|
|
1677
1876
|
return;
|
|
1678
1877
|
}
|
|
1679
|
-
|
|
1680
|
-
() =>
|
|
1681
|
-
() =>
|
|
1878
|
+
r.writeText(e).then(
|
|
1879
|
+
() => a == null ? void 0 : a("copied"),
|
|
1880
|
+
() => a == null ? void 0 : a("failed")
|
|
1682
1881
|
);
|
|
1683
1882
|
},
|
|
1684
1883
|
children: [
|
|
1685
|
-
/* @__PURE__ */ t(
|
|
1884
|
+
/* @__PURE__ */ t(ut, { size: 16, "aria-hidden": "true" }),
|
|
1686
1885
|
/* @__PURE__ */ t("span", { children: n })
|
|
1687
1886
|
]
|
|
1688
1887
|
}
|
|
1689
1888
|
);
|
|
1690
1889
|
}
|
|
1691
|
-
const
|
|
1692
|
-
tabs:
|
|
1693
|
-
list:
|
|
1694
|
-
tab:
|
|
1695
|
-
panel:
|
|
1696
|
-
},
|
|
1697
|
-
function
|
|
1698
|
-
const n =
|
|
1890
|
+
const ki = "_tabs_1x9om_8", Ni = "_list_1x9om_21", $i = "_tab_1x9om_8", Bi = "_panel_1x9om_99", me = {
|
|
1891
|
+
tabs: ki,
|
|
1892
|
+
list: Ni,
|
|
1893
|
+
tab: $i,
|
|
1894
|
+
panel: Bi
|
|
1895
|
+
}, Re = U(null);
|
|
1896
|
+
function $e(e) {
|
|
1897
|
+
const n = $(Re);
|
|
1699
1898
|
if (!n)
|
|
1700
1899
|
throw new Error(
|
|
1701
1900
|
`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
1901
|
);
|
|
1703
1902
|
return n;
|
|
1704
1903
|
}
|
|
1705
|
-
function
|
|
1904
|
+
function As({
|
|
1706
1905
|
value: e,
|
|
1707
1906
|
onValueChange: n,
|
|
1708
1907
|
orientation: i = "horizontal",
|
|
1709
|
-
children:
|
|
1710
|
-
className:
|
|
1711
|
-
ref:
|
|
1908
|
+
children: s,
|
|
1909
|
+
className: a,
|
|
1910
|
+
ref: o
|
|
1712
1911
|
}) {
|
|
1713
|
-
const
|
|
1912
|
+
const r = R(), [c, l] = re([]), d = k((g) => (l((m) => [...m, g]), () => l((m) => m.filter((b) => b !== g))), []), { tabStop: _, unmatched: u } = ge(() => {
|
|
1714
1913
|
if (c.length === 0) return { tabStop: e, unmatched: !1 };
|
|
1715
|
-
if (c.some((
|
|
1914
|
+
if (c.some((b) => b.value === e)) return { tabStop: e, unmatched: !1 };
|
|
1716
1915
|
const g = [...c].sort(
|
|
1717
|
-
(
|
|
1916
|
+
(b, x) => b.el && x.el && b.el !== x.el ? b.el.compareDocumentPosition(x.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1 : 0
|
|
1718
1917
|
);
|
|
1719
|
-
return { tabStop: (g.find((
|
|
1918
|
+
return { tabStop: (g.find((b) => !b.disabled) ?? g[0]).value, unmatched: !0 };
|
|
1720
1919
|
}, [c, e]);
|
|
1721
|
-
|
|
1722
|
-
!
|
|
1920
|
+
z(() => {
|
|
1921
|
+
!u || process.env.NODE_ENV === "production" || console.warn(
|
|
1723
1922
|
`Tabs: value "${e}" matches no tab; the first enabled tab takes the tab stop.`
|
|
1724
1923
|
);
|
|
1725
|
-
}, [
|
|
1726
|
-
const f =
|
|
1727
|
-
() => ({ value: e, onValueChange: n, orientation: i, idPrefix:
|
|
1728
|
-
[e, n, i,
|
|
1924
|
+
}, [u, e]);
|
|
1925
|
+
const f = ge(
|
|
1926
|
+
() => ({ value: e, onValueChange: n, orientation: i, idPrefix: r, tabStop: _, registerTab: d }),
|
|
1927
|
+
[e, n, i, r, _, d]
|
|
1729
1928
|
);
|
|
1730
|
-
return /* @__PURE__ */ t(
|
|
1929
|
+
return /* @__PURE__ */ t(Re.Provider, { value: f, children: /* @__PURE__ */ t(
|
|
1731
1930
|
"div",
|
|
1732
1931
|
{
|
|
1733
|
-
ref:
|
|
1734
|
-
className: [
|
|
1932
|
+
ref: o,
|
|
1933
|
+
className: [me.tabs, a].filter(Boolean).join(" "),
|
|
1735
1934
|
"data-orientation": i,
|
|
1736
|
-
children:
|
|
1935
|
+
children: s
|
|
1737
1936
|
}
|
|
1738
1937
|
) });
|
|
1739
1938
|
}
|
|
1740
|
-
function
|
|
1939
|
+
function He(e, n) {
|
|
1741
1940
|
return `${e}tab-${n}`;
|
|
1742
1941
|
}
|
|
1743
|
-
function
|
|
1942
|
+
function Ve(e, n) {
|
|
1744
1943
|
return `${e}panel-${n}`;
|
|
1745
1944
|
}
|
|
1746
|
-
function
|
|
1747
|
-
const
|
|
1748
|
-
const
|
|
1749
|
-
return
|
|
1750
|
-
|
|
1945
|
+
function Si({ listRef: e, orientation: n, onValueChange: i }) {
|
|
1946
|
+
const s = k(() => {
|
|
1947
|
+
const o = e.current;
|
|
1948
|
+
return o ? Array.from(
|
|
1949
|
+
o.querySelectorAll('[data-psi-tab]:not([aria-disabled="true"])')
|
|
1751
1950
|
) : [];
|
|
1752
|
-
}, [e]),
|
|
1753
|
-
(
|
|
1754
|
-
if (!
|
|
1755
|
-
for (const c of
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1951
|
+
}, [e]), a = k(
|
|
1952
|
+
(o) => {
|
|
1953
|
+
if (!o) return;
|
|
1954
|
+
for (const c of s()) c.tabIndex = c === o ? 0 : -1;
|
|
1955
|
+
o.focus();
|
|
1956
|
+
const r = o.dataset.value;
|
|
1957
|
+
r != null && i(r);
|
|
1759
1958
|
},
|
|
1760
|
-
[
|
|
1959
|
+
[s, i]
|
|
1761
1960
|
);
|
|
1762
|
-
return
|
|
1763
|
-
(
|
|
1764
|
-
const
|
|
1765
|
-
if (
|
|
1766
|
-
const [c,
|
|
1767
|
-
switch (
|
|
1768
|
-
case
|
|
1769
|
-
|
|
1961
|
+
return k(
|
|
1962
|
+
(o) => {
|
|
1963
|
+
const r = s();
|
|
1964
|
+
if (r.length === 0) return;
|
|
1965
|
+
const [c, l] = n === "vertical" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"], d = r.indexOf(document.activeElement);
|
|
1966
|
+
switch (o.key) {
|
|
1967
|
+
case l:
|
|
1968
|
+
o.preventDefault(), a(r[(d + 1 + r.length) % r.length]);
|
|
1770
1969
|
break;
|
|
1771
1970
|
case c:
|
|
1772
|
-
|
|
1971
|
+
o.preventDefault(), a(r[(d - 1 + r.length) % r.length]);
|
|
1773
1972
|
break;
|
|
1774
1973
|
case "Home":
|
|
1775
|
-
|
|
1974
|
+
o.preventDefault(), a(r[0]);
|
|
1776
1975
|
break;
|
|
1777
1976
|
case "End":
|
|
1778
|
-
|
|
1977
|
+
o.preventDefault(), a(r[r.length - 1]);
|
|
1779
1978
|
break;
|
|
1780
1979
|
}
|
|
1781
1980
|
},
|
|
1782
|
-
[
|
|
1981
|
+
[a, s, n]
|
|
1783
1982
|
);
|
|
1784
1983
|
}
|
|
1785
|
-
function
|
|
1786
|
-
const { orientation:
|
|
1787
|
-
|
|
1788
|
-
},
|
|
1984
|
+
function Rs({ "aria-label": e, children: n, className: i, ref: s }) {
|
|
1985
|
+
const { orientation: a, onValueChange: o } = $e("TabList"), r = B(null), c = (d) => {
|
|
1986
|
+
r.current = d, typeof s == "function" ? s(d) : s && (s.current = d);
|
|
1987
|
+
}, l = Si({ listRef: r, orientation: a, onValueChange: o });
|
|
1789
1988
|
return /* @__PURE__ */ t(
|
|
1790
1989
|
"div",
|
|
1791
1990
|
{
|
|
1792
1991
|
ref: c,
|
|
1793
1992
|
role: "tablist",
|
|
1794
1993
|
"aria-label": e,
|
|
1795
|
-
"aria-orientation":
|
|
1796
|
-
className: [
|
|
1797
|
-
onKeyDown:
|
|
1994
|
+
"aria-orientation": a,
|
|
1995
|
+
className: [me.list, i].filter(Boolean).join(" "),
|
|
1996
|
+
onKeyDown: l,
|
|
1798
1997
|
children: n
|
|
1799
1998
|
}
|
|
1800
1999
|
);
|
|
1801
2000
|
}
|
|
1802
|
-
function
|
|
1803
|
-
const
|
|
1804
|
-
c.current =
|
|
2001
|
+
function Hs({ value: e, children: n, disabled: i = !1, className: s, ref: a }) {
|
|
2002
|
+
const o = $e("Tab"), r = o.value === e, c = B(null), { registerTab: l } = o, d = (_) => {
|
|
2003
|
+
c.current = _, typeof a == "function" ? a(_) : a && (a.current = _);
|
|
1805
2004
|
};
|
|
1806
|
-
return
|
|
1807
|
-
() =>
|
|
1808
|
-
[
|
|
2005
|
+
return ze(
|
|
2006
|
+
() => l == null ? void 0 : l({ value: e, disabled: i, el: c.current }),
|
|
2007
|
+
[l, e, i]
|
|
1809
2008
|
), /* @__PURE__ */ t(
|
|
1810
2009
|
"button",
|
|
1811
2010
|
{
|
|
1812
|
-
ref:
|
|
2011
|
+
ref: d,
|
|
1813
2012
|
type: "button",
|
|
1814
2013
|
role: "tab",
|
|
1815
|
-
id:
|
|
2014
|
+
id: He(o.idPrefix, e),
|
|
1816
2015
|
"data-psi-tab": !0,
|
|
1817
2016
|
"data-value": e,
|
|
1818
|
-
"aria-selected":
|
|
1819
|
-
"aria-controls":
|
|
2017
|
+
"aria-selected": r,
|
|
2018
|
+
"aria-controls": Ve(o.idPrefix, e),
|
|
1820
2019
|
"aria-disabled": i || void 0,
|
|
1821
|
-
tabIndex: (
|
|
1822
|
-
className: [
|
|
2020
|
+
tabIndex: (o.tabStop ?? o.value) === e ? 0 : -1,
|
|
2021
|
+
className: [me.tab, s].filter(Boolean).join(" "),
|
|
1823
2022
|
onClick: () => {
|
|
1824
|
-
i ||
|
|
2023
|
+
i || o.onValueChange(e);
|
|
1825
2024
|
},
|
|
1826
2025
|
children: n
|
|
1827
2026
|
}
|
|
1828
2027
|
);
|
|
1829
2028
|
}
|
|
1830
|
-
function
|
|
1831
|
-
const
|
|
2029
|
+
function Vs({ value: e, children: n, className: i, ref: s }) {
|
|
2030
|
+
const a = $e("TabPanel"), o = a.value === e;
|
|
1832
2031
|
return /* @__PURE__ */ t(
|
|
1833
2032
|
"div",
|
|
1834
2033
|
{
|
|
1835
|
-
ref:
|
|
2034
|
+
ref: s,
|
|
1836
2035
|
role: "tabpanel",
|
|
1837
|
-
id:
|
|
1838
|
-
"aria-labelledby":
|
|
1839
|
-
hidden: !
|
|
2036
|
+
id: Ve(a.idPrefix, e),
|
|
2037
|
+
"aria-labelledby": He(a.idPrefix, e),
|
|
2038
|
+
hidden: !o,
|
|
1840
2039
|
tabIndex: 0,
|
|
1841
|
-
className: [
|
|
2040
|
+
className: [me.panel, i].filter(Boolean).join(" "),
|
|
1842
2041
|
children: n
|
|
1843
2042
|
}
|
|
1844
2043
|
);
|
|
1845
2044
|
}
|
|
1846
2045
|
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
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
2046
|
+
Pe as Announcement,
|
|
2047
|
+
Pi as AppShell,
|
|
2048
|
+
Ai as AspectRatio,
|
|
2049
|
+
Es as Banner,
|
|
2050
|
+
ce as Button,
|
|
2051
|
+
ji as Card,
|
|
2052
|
+
qe as Checkbox,
|
|
2053
|
+
Ps as CopyButton,
|
|
2054
|
+
zs as CursorPagination,
|
|
2055
|
+
zi as DescriptionItem,
|
|
2056
|
+
Ii as DescriptionList,
|
|
2057
|
+
ds as Dialog,
|
|
2058
|
+
Ri as Field,
|
|
2059
|
+
G as FieldContext,
|
|
2060
|
+
ft as IconAlertCircle,
|
|
2061
|
+
ht as IconAlertTriangle,
|
|
2062
|
+
es as IconArrowDown,
|
|
2063
|
+
ns as IconArrowUpRight,
|
|
2064
|
+
le as IconButton,
|
|
2065
|
+
ct as IconCheck,
|
|
2066
|
+
Gn as IconChevronDown,
|
|
2067
|
+
dt as IconChevronLeft,
|
|
2068
|
+
lt as IconChevronRight,
|
|
2069
|
+
xe as IconClose,
|
|
2070
|
+
ut as IconCopy,
|
|
2071
|
+
Gi as IconEdit,
|
|
2072
|
+
Zi as IconExternalLink,
|
|
2073
|
+
Xi as IconEye,
|
|
2074
|
+
Ji as IconEyeOff,
|
|
2075
|
+
rs as IconGitHub,
|
|
2076
|
+
_t as IconInfo,
|
|
2077
|
+
is as IconInstagram,
|
|
2078
|
+
ts as IconLinkedIn,
|
|
2079
|
+
Qi as IconLoader,
|
|
2080
|
+
cs as IconLogOut,
|
|
2081
|
+
as as IconMenu,
|
|
2082
|
+
Oi as IconMinus,
|
|
2083
|
+
ss as IconMoreHorizontal,
|
|
2084
|
+
Vi as IconPlus,
|
|
2085
|
+
Ki as IconSearch,
|
|
2086
|
+
Fi as IconSettings,
|
|
2087
|
+
ls as IconSimCard,
|
|
2088
|
+
Yi as IconTrash,
|
|
2089
|
+
Ui as IconUser,
|
|
2090
|
+
os as IconX,
|
|
2091
|
+
Ds as InlineAlert,
|
|
2092
|
+
us as Input,
|
|
2093
|
+
xs as Menu,
|
|
2094
|
+
Ee as MenuContext,
|
|
2095
|
+
ks as MenuItem,
|
|
2096
|
+
Ns as MenuSeparator,
|
|
2097
|
+
$s as MenuText,
|
|
2098
|
+
qi as NavBar,
|
|
2099
|
+
Di as NavGroup,
|
|
2100
|
+
Wi as NavItem,
|
|
2101
|
+
Ei as NavTree,
|
|
2102
|
+
Is as Pagination,
|
|
2103
|
+
Ti as Panel,
|
|
2104
|
+
vs as Radio,
|
|
2105
|
+
ms as RadioGroup,
|
|
2106
|
+
Me as RadioGroupContext,
|
|
2107
|
+
_s as Select,
|
|
2108
|
+
Ws as Skeleton,
|
|
2109
|
+
Mi as SkipLink,
|
|
2110
|
+
fs as Stack,
|
|
2111
|
+
hs as Switch,
|
|
2112
|
+
Hs as Tab,
|
|
2113
|
+
Rs as TabList,
|
|
2114
|
+
Vs as TabPanel,
|
|
2115
|
+
Bs as Table,
|
|
2116
|
+
To as TableBody,
|
|
2117
|
+
Ts as TableCaption,
|
|
2118
|
+
js as TableCell,
|
|
2119
|
+
Ss as TableHead,
|
|
2120
|
+
Ls as TableHeaderCell,
|
|
2121
|
+
Cs as TableRow,
|
|
2122
|
+
As as Tabs,
|
|
2123
|
+
Re as TabsContext,
|
|
2124
|
+
bs as Tag,
|
|
2125
|
+
gs as Text,
|
|
2126
|
+
ps as Textarea,
|
|
2127
|
+
we as Toast,
|
|
2128
|
+
Ae as ToastContext,
|
|
2129
|
+
Ms as ToastProvider,
|
|
2130
|
+
Qo as ToastRegion,
|
|
2131
|
+
ws as Toolbar,
|
|
2132
|
+
ys as Tooltip,
|
|
2133
|
+
Hi as useFieldControl,
|
|
2134
|
+
qs as useToast
|
|
1930
2135
|
};
|