@handamade/psi-react 0.21.0 → 0.23.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 +17 -0
- package/dist/Field/Field.d.ts +5 -1
- package/dist/Field/Field.d.ts.map +1 -1
- package/dist/NavTree/NavItem.d.ts +12 -8
- package/dist/NavTree/NavItem.d.ts.map +1 -1
- package/dist/Tabs/Tab.d.ts.map +1 -1
- package/dist/Tabs/Tabs.d.ts +20 -1
- package/dist/Tabs/Tabs.d.ts.map +1 -1
- package/dist/Toast/Announcement.d.ts +12 -4
- package/dist/Toast/Announcement.d.ts.map +1 -1
- package/dist/Toast/ToastProvider.d.ts +27 -4
- package/dist/Toast/ToastProvider.d.ts.map +1 -1
- package/dist/Toast/ToastRegion.d.ts +11 -2
- package/dist/Toast/ToastRegion.d.ts.map +1 -1
- package/dist/Toast/useToast.d.ts +11 -2
- package/dist/Toast/useToast.d.ts.map +1 -1
- package/dist/Toolbar/Toolbar.d.ts +16 -6
- package/dist/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1050 -1015
- package/dist/manifest.json +32 -11
- package/dist/patterns.json +4 -4
- package/dist/styles.css +1 -1
- package/docs/Announcement.md +3 -3
- package/docs/AppShell.md +1 -1
- package/docs/AspectRatio.md +1 -1
- package/docs/Banner.md +1 -1
- package/docs/Button.md +1 -1
- package/docs/Card.md +1 -1
- package/docs/Checkbox.md +1 -1
- package/docs/CopyButton.md +1 -1
- package/docs/CursorPagination.md +1 -1
- package/docs/DescriptionItem.md +1 -1
- package/docs/DescriptionList.md +1 -1
- package/docs/Dialog.md +1 -1
- package/docs/Field.md +2 -2
- package/docs/IconButton.md +1 -1
- package/docs/InlineAlert.md +1 -1
- package/docs/Input.md +1 -1
- package/docs/Menu.md +1 -1
- package/docs/MenuItem.md +1 -1
- package/docs/MenuSeparator.md +1 -1
- package/docs/NavBar.md +1 -1
- package/docs/NavGroup.md +1 -1
- package/docs/NavItem.md +5 -5
- package/docs/NavTree.md +1 -1
- package/docs/Pagination.md +1 -1
- package/docs/Panel.md +1 -1
- package/docs/Select.md +1 -1
- package/docs/Skeleton.md +1 -1
- package/docs/SkipLink.md +1 -1
- package/docs/Switch.md +1 -1
- package/docs/Tab.md +1 -1
- package/docs/TabList.md +1 -1
- package/docs/TabPanel.md +1 -1
- package/docs/Table.md +1 -1
- package/docs/TableBody.md +1 -1
- package/docs/TableCaption.md +1 -1
- package/docs/TableCell.md +1 -1
- package/docs/TableHead.md +1 -1
- package/docs/TableHeaderCell.md +1 -1
- package/docs/TableRow.md +1 -1
- package/docs/Tabs.md +3 -3
- package/docs/Tag.md +1 -1
- package/docs/Toast.md +1 -1
- package/docs/ToastProvider.md +6 -3
- package/docs/ToastRegion.md +4 -4
- package/docs/Toolbar.md +2 -2
- package/docs/Tooltip.md +1 -1
- package/llms.txt +10 -7
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,353 +1,353 @@
|
|
|
1
|
-
import { jsx as t, jsxs as _, Fragment 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 _, Fragment as ie } from "react/jsx-runtime";
|
|
2
|
+
import { Children as q, useId as R, isValidElement as Y, Fragment as pe, cloneElement as de, createContext as Z, useContext as j, useRef as L, useEffect as C, useState as se, useCallback as w, useMemo as ae, useLayoutEffect as qe } from "react";
|
|
3
|
+
const Re = "_button_a3yli_3", He = "_disabled_a3yli_30", Ve = "_size24_a3yli_50", Oe = "_size32_a3yli_63", Fe = "_size40_a3yli_76", Ke = "_size48_a3yli_89", Ue = "_accent_a3yli_105", Ge = "_accentSubtle_a3yli_117", Ye = "_neutral_a3yli_129", Ze = "_neutralSubtle_a3yli_141", Xe = "_ghost_a3yli_153", Je = "_danger_a3yli_165", Qe = "_dangerSubtle_a3yli_177", en = "_outline_a3yli_189", B = {
|
|
4
|
+
button: Re,
|
|
5
|
+
disabled: He,
|
|
6
|
+
size24: Ve,
|
|
7
|
+
size32: Oe,
|
|
8
|
+
size40: Fe,
|
|
9
|
+
size48: Ke,
|
|
10
|
+
accent: Ue,
|
|
11
|
+
accentSubtle: Ge,
|
|
12
|
+
neutral: Ye,
|
|
13
|
+
neutralSubtle: Ze,
|
|
14
|
+
ghost: Xe,
|
|
15
|
+
danger: Je,
|
|
16
|
+
dangerSubtle: Qe,
|
|
17
|
+
outline: en
|
|
18
|
+
}, nn = {
|
|
19
|
+
accent: B.accent,
|
|
20
|
+
"accent-subtle": B.accentSubtle,
|
|
21
|
+
neutral: B.neutral,
|
|
22
|
+
"neutral-subtle": B.neutralSubtle,
|
|
23
|
+
ghost: B.ghost,
|
|
24
|
+
danger: B.danger,
|
|
25
|
+
"danger-subtle": B.dangerSubtle,
|
|
26
|
+
outline: B.outline
|
|
27
|
+
}, tn = {
|
|
28
|
+
24: B.size24,
|
|
29
|
+
32: B.size32,
|
|
30
|
+
40: B.size40,
|
|
31
|
+
48: B.size48
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function ce({
|
|
34
34
|
variant: e = "neutral",
|
|
35
35
|
size: n = 32,
|
|
36
|
-
href:
|
|
36
|
+
href: i,
|
|
37
37
|
target: a,
|
|
38
38
|
rel: s,
|
|
39
|
-
disabled:
|
|
39
|
+
disabled: r,
|
|
40
40
|
className: o,
|
|
41
41
|
onClick: c,
|
|
42
|
-
ref:
|
|
43
|
-
...
|
|
42
|
+
ref: d,
|
|
43
|
+
...l
|
|
44
44
|
}) {
|
|
45
45
|
const u = [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
B.button,
|
|
47
|
+
nn[e],
|
|
48
|
+
tn[n],
|
|
49
|
+
i !== void 0 && r ? B.disabled : void 0,
|
|
50
50
|
o
|
|
51
51
|
].filter(Boolean).join(" ");
|
|
52
|
-
return
|
|
52
|
+
return i !== void 0 ? /* @__PURE__ */ t(
|
|
53
53
|
"a",
|
|
54
54
|
{
|
|
55
|
-
ref:
|
|
55
|
+
ref: d,
|
|
56
56
|
className: u,
|
|
57
|
-
href:
|
|
57
|
+
href: r ? void 0 : i,
|
|
58
58
|
target: a,
|
|
59
59
|
rel: s,
|
|
60
|
-
"aria-disabled":
|
|
61
|
-
onClick:
|
|
62
|
-
...
|
|
60
|
+
"aria-disabled": r || void 0,
|
|
61
|
+
onClick: r ? void 0 : c,
|
|
62
|
+
...l
|
|
63
63
|
}
|
|
64
64
|
) : /* @__PURE__ */ t(
|
|
65
65
|
"button",
|
|
66
66
|
{
|
|
67
|
-
ref:
|
|
67
|
+
ref: d,
|
|
68
68
|
className: u,
|
|
69
|
-
disabled:
|
|
69
|
+
disabled: r,
|
|
70
70
|
onClick: c,
|
|
71
|
-
...
|
|
71
|
+
...l
|
|
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 on = "_iconButton_1q4hx_3", rn = "_disabled_1q4hx_29", sn = "_size24_1q4hx_37", an = "_size32_1q4hx_42", cn = "_size40_1q4hx_47", ln = "_size48_1q4hx_52", dn = "_accent_1q4hx_60", un = "_neutral_1q4hx_72", hn = "_ghost_1q4hx_84", _n = "_danger_1q4hx_96", E = {
|
|
76
|
+
iconButton: on,
|
|
77
|
+
disabled: rn,
|
|
78
|
+
size24: sn,
|
|
79
|
+
size32: an,
|
|
80
|
+
size40: cn,
|
|
81
|
+
size48: ln,
|
|
82
|
+
accent: dn,
|
|
83
|
+
neutral: un,
|
|
84
|
+
ghost: hn,
|
|
85
|
+
danger: _n
|
|
86
|
+
}, fn = {
|
|
87
|
+
accent: E.accent,
|
|
88
|
+
neutral: E.neutral,
|
|
89
|
+
ghost: E.ghost,
|
|
90
|
+
danger: E.danger
|
|
91
|
+
}, pn = {
|
|
92
|
+
24: E.size24,
|
|
93
|
+
32: E.size32,
|
|
94
|
+
40: E.size40,
|
|
95
|
+
48: E.size48
|
|
96
96
|
};
|
|
97
|
-
function
|
|
97
|
+
function te({
|
|
98
98
|
variant: e = "neutral",
|
|
99
99
|
size: n = 32,
|
|
100
|
-
href:
|
|
100
|
+
href: i,
|
|
101
101
|
target: a,
|
|
102
102
|
rel: s,
|
|
103
|
-
disabled:
|
|
103
|
+
disabled: r,
|
|
104
104
|
className: o,
|
|
105
105
|
onClick: c,
|
|
106
|
-
ref:
|
|
107
|
-
...
|
|
106
|
+
ref: d,
|
|
107
|
+
...l
|
|
108
108
|
}) {
|
|
109
109
|
const u = [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
E.iconButton,
|
|
111
|
+
fn[e],
|
|
112
|
+
pn[n],
|
|
113
|
+
i !== void 0 && r ? E.disabled : void 0,
|
|
114
114
|
o
|
|
115
115
|
].filter(Boolean).join(" ");
|
|
116
|
-
return
|
|
116
|
+
return i !== void 0 ? /* @__PURE__ */ t(
|
|
117
117
|
"a",
|
|
118
118
|
{
|
|
119
|
-
ref:
|
|
119
|
+
ref: d,
|
|
120
120
|
className: u,
|
|
121
|
-
href:
|
|
121
|
+
href: r ? void 0 : i,
|
|
122
122
|
target: a,
|
|
123
123
|
rel: s,
|
|
124
|
-
"aria-disabled":
|
|
125
|
-
onClick:
|
|
126
|
-
...
|
|
124
|
+
"aria-disabled": r || void 0,
|
|
125
|
+
onClick: r ? void 0 : c,
|
|
126
|
+
...l
|
|
127
127
|
}
|
|
128
128
|
) : /* @__PURE__ */ t(
|
|
129
129
|
"button",
|
|
130
130
|
{
|
|
131
|
-
ref:
|
|
131
|
+
ref: d,
|
|
132
132
|
className: u,
|
|
133
|
-
disabled:
|
|
133
|
+
disabled: r,
|
|
134
134
|
onClick: c,
|
|
135
|
-
...
|
|
135
|
+
...l
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
card:
|
|
141
|
-
stacked:
|
|
142
|
-
featured:
|
|
143
|
-
media:
|
|
144
|
-
body:
|
|
145
|
-
hoverLift:
|
|
139
|
+
const gn = "_card_1btb3_1", mn = "_stacked_1btb3_8", bn = "_featured_1btb3_10", vn = "_media_1btb3_22", yn = "_body_1btb3_23", wn = "_hoverLift_1btb3_31", H = {
|
|
140
|
+
card: gn,
|
|
141
|
+
stacked: mn,
|
|
142
|
+
featured: bn,
|
|
143
|
+
media: vn,
|
|
144
|
+
body: yn,
|
|
145
|
+
hoverLift: wn
|
|
146
146
|
};
|
|
147
|
-
function
|
|
147
|
+
function Or({
|
|
148
148
|
variant: e = "stacked",
|
|
149
149
|
media: n,
|
|
150
|
-
hoverLift:
|
|
150
|
+
hoverLift: i = !1,
|
|
151
151
|
className: a,
|
|
152
152
|
children: s,
|
|
153
|
-
ref:
|
|
153
|
+
ref: r,
|
|
154
154
|
...o
|
|
155
155
|
}) {
|
|
156
156
|
const c = [
|
|
157
|
-
|
|
158
|
-
e === "featured" ?
|
|
159
|
-
|
|
157
|
+
H.card,
|
|
158
|
+
e === "featured" ? H.featured : H.stacked,
|
|
159
|
+
i ? H.hoverLift : void 0,
|
|
160
160
|
a
|
|
161
161
|
].filter(Boolean).join(" ");
|
|
162
|
-
return /* @__PURE__ */ _("div", { ref:
|
|
163
|
-
n != null && /* @__PURE__ */ t("div", { className:
|
|
164
|
-
/* @__PURE__ */ t("div", { className:
|
|
162
|
+
return /* @__PURE__ */ _("div", { ref: r, className: c, ...o, children: [
|
|
163
|
+
n != null && /* @__PURE__ */ t("div", { className: H.media, children: n }),
|
|
164
|
+
/* @__PURE__ */ t("div", { className: H.body, children: s })
|
|
165
165
|
] });
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
panel:
|
|
169
|
-
padding16:
|
|
167
|
+
const xn = "_panel_jn8w4_1", kn = "_padding16_jn8w4_8", ke = {
|
|
168
|
+
panel: xn,
|
|
169
|
+
padding16: kn
|
|
170
170
|
};
|
|
171
|
-
function
|
|
172
|
-
const
|
|
173
|
-
return /* @__PURE__ */ t("div", { ref: a, className:
|
|
174
|
-
}
|
|
175
|
-
const
|
|
176
|
-
list:
|
|
177
|
-
item:
|
|
178
|
-
term:
|
|
179
|
-
value:
|
|
171
|
+
function Fr({ padding: e = 24, className: n, children: i, ref: a, ...s }) {
|
|
172
|
+
const r = [ke.panel, e === 16 ? ke.padding16 : void 0, n].filter(Boolean).join(" ");
|
|
173
|
+
return /* @__PURE__ */ t("div", { ref: a, className: r, ...s, children: i });
|
|
174
|
+
}
|
|
175
|
+
const Nn = "_list_1lh3q_8", $n = "_item_1lh3q_26", Bn = "_term_1lh3q_44", Ln = "_value_1lh3q_50", re = {
|
|
176
|
+
list: Nn,
|
|
177
|
+
item: $n,
|
|
178
|
+
term: Bn,
|
|
179
|
+
value: Ln
|
|
180
180
|
};
|
|
181
|
-
function
|
|
181
|
+
function Kr({
|
|
182
182
|
layout: e = "stacked",
|
|
183
183
|
gap: n = 12,
|
|
184
|
-
className:
|
|
184
|
+
className: i,
|
|
185
185
|
children: a,
|
|
186
186
|
ref: s,
|
|
187
|
-
...
|
|
187
|
+
...r
|
|
188
188
|
}) {
|
|
189
189
|
return /* @__PURE__ */ t(
|
|
190
190
|
"dl",
|
|
191
191
|
{
|
|
192
192
|
ref: s,
|
|
193
|
-
className: [
|
|
193
|
+
className: [re.list, i].filter(Boolean).join(" "),
|
|
194
194
|
"data-layout": e,
|
|
195
195
|
"data-gap": n,
|
|
196
|
-
...
|
|
196
|
+
...r,
|
|
197
197
|
children: a
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return /* @__PURE__ */ _("div", { ref: a, className: [
|
|
203
|
-
/* @__PURE__ */ t("dt", { className:
|
|
204
|
-
/* @__PURE__ */ t("dd", { className:
|
|
201
|
+
function Ur({ term: e, className: n, children: i, ref: a, ...s }) {
|
|
202
|
+
return /* @__PURE__ */ _("div", { ref: a, className: [re.item, n].filter(Boolean).join(" "), ...s, children: [
|
|
203
|
+
/* @__PURE__ */ t("dt", { className: re.term, children: e }),
|
|
204
|
+
/* @__PURE__ */ t("dd", { className: re.value, children: i })
|
|
205
205
|
] });
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
navbar:
|
|
209
|
-
inner:
|
|
210
|
-
fluid:
|
|
211
|
-
brand:
|
|
212
|
-
links:
|
|
213
|
-
actions:
|
|
207
|
+
const Cn = "_navbar_1w24e_1", Sn = "_inner_1w24e_12", jn = "_fluid_1w24e_20", Tn = "_brand_1w24e_22", zn = "_links_1w24e_23", In = "_actions_1w24e_53", V = {
|
|
208
|
+
navbar: Cn,
|
|
209
|
+
inner: Sn,
|
|
210
|
+
fluid: jn,
|
|
211
|
+
brand: Tn,
|
|
212
|
+
links: zn,
|
|
213
|
+
actions: In
|
|
214
214
|
};
|
|
215
|
-
function
|
|
216
|
-
const
|
|
217
|
-
return /* @__PURE__ */ t("header", { ref: o, className:
|
|
218
|
-
e != null && /* @__PURE__ */ t("div", { className:
|
|
219
|
-
|
|
220
|
-
n != null && /* @__PURE__ */ t("div", { className:
|
|
215
|
+
function Gr({ brand: e, actions: n, children: i, navLabel: a, fluid: s = !1, className: r, ref: o, ...c }) {
|
|
216
|
+
const d = [V.navbar, r].filter(Boolean).join(" "), l = q.toArray(i).length > 0;
|
|
217
|
+
return /* @__PURE__ */ t("header", { ref: o, className: d, ...c, children: /* @__PURE__ */ _("div", { className: `${s ? V.fluid : "psi-container"} ${V.inner}`, children: [
|
|
218
|
+
e != null && /* @__PURE__ */ t("div", { className: V.brand, children: e }),
|
|
219
|
+
l && /* @__PURE__ */ t("nav", { className: V.links, "aria-label": a, children: i }),
|
|
220
|
+
n != null && /* @__PURE__ */ t("div", { className: V.actions, children: n })
|
|
221
221
|
] }) });
|
|
222
222
|
}
|
|
223
|
-
const
|
|
224
|
-
skipLink:
|
|
223
|
+
const En = "_skipLink_1fn0y_4", An = {
|
|
224
|
+
skipLink: En
|
|
225
225
|
};
|
|
226
|
-
function
|
|
227
|
-
const s = [
|
|
228
|
-
return /* @__PURE__ */ t("a", { ref: n, className: s, ...a, children:
|
|
229
|
-
}
|
|
230
|
-
const
|
|
231
|
-
navTree:
|
|
232
|
-
list:
|
|
233
|
-
groupList:
|
|
234
|
-
item:
|
|
235
|
-
groupButton:
|
|
236
|
-
groupLabel:
|
|
237
|
-
chevron:
|
|
226
|
+
function Yr({ className: e, ref: n, children: i, ...a }) {
|
|
227
|
+
const s = [An.skipLink, e].filter(Boolean).join(" ");
|
|
228
|
+
return /* @__PURE__ */ t("a", { ref: n, className: s, ...a, children: i });
|
|
229
|
+
}
|
|
230
|
+
const Mn = "_navTree_y5m3t_7", Wn = "_list_y5m3t_11", Dn = "_groupList_y5m3t_12", Pn = "_item_y5m3t_23", qn = "_groupButton_y5m3t_70", Rn = "_groupLabel_y5m3t_99", Hn = "_chevron_y5m3t_103", D = {
|
|
231
|
+
navTree: Mn,
|
|
232
|
+
list: Wn,
|
|
233
|
+
groupList: Dn,
|
|
234
|
+
item: Pn,
|
|
235
|
+
groupButton: qn,
|
|
236
|
+
groupLabel: Rn,
|
|
237
|
+
chevron: Hn
|
|
238
238
|
};
|
|
239
|
-
function
|
|
240
|
-
const s = [
|
|
241
|
-
return /* @__PURE__ */ t("nav", { ref:
|
|
239
|
+
function Zr({ children: e, className: n, ref: i, ...a }) {
|
|
240
|
+
const s = [D.navTree, n].filter(Boolean).join(" ");
|
|
241
|
+
return /* @__PURE__ */ t("nav", { ref: i, className: s, ...a, children: /* @__PURE__ */ t("ul", { className: D.list, children: e }) });
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Vn({ 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
|
|
246
|
+
function Xr({ label: e, open: n, onOpenChange: i, children: a, className: s }) {
|
|
247
|
+
const r = R(), o = [D.group, s].filter(Boolean).join(" ");
|
|
248
248
|
return /* @__PURE__ */ _("li", { className: o, children: [
|
|
249
249
|
/* @__PURE__ */ _(
|
|
250
250
|
"button",
|
|
251
251
|
{
|
|
252
252
|
type: "button",
|
|
253
|
-
className:
|
|
253
|
+
className: D.groupButton,
|
|
254
254
|
"aria-expanded": n,
|
|
255
|
-
"aria-controls":
|
|
256
|
-
onClick: () =>
|
|
255
|
+
"aria-controls": r,
|
|
256
|
+
onClick: () => i(!n),
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */ t("span", { className:
|
|
259
|
-
/* @__PURE__ */ t(
|
|
258
|
+
/* @__PURE__ */ t("span", { className: D.groupLabel, children: e }),
|
|
259
|
+
/* @__PURE__ */ t(Vn, { size: 16, className: D.chevron, "aria-hidden": "true" })
|
|
260
260
|
]
|
|
261
261
|
}
|
|
262
262
|
),
|
|
263
|
-
/* @__PURE__ */ t("ul", { id:
|
|
263
|
+
/* @__PURE__ */ t("ul", { id: r, className: D.groupList, hidden: !n, children: a })
|
|
264
264
|
] });
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const o = [
|
|
268
|
-
return /* @__PURE__ */ t("li", { ref: s, className: o, ...
|
|
266
|
+
function Jr({ children: e, href: n, current: i, className: a, ref: s, ...r }) {
|
|
267
|
+
const o = [D.item, a].filter(Boolean).join(" "), c = n === void 0 && i && Y(e) && e.type !== pe ? e : null;
|
|
268
|
+
return /* @__PURE__ */ t("li", { ref: s, className: o, ...r, children: n !== void 0 ? /* @__PURE__ */ t("a", { href: n, "aria-current": i ? "page" : void 0, children: e }) : c ? de(c, { "aria-current": "page" }) : e });
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
appShell:
|
|
272
|
-
sidebarClosed:
|
|
273
|
-
header:
|
|
274
|
-
sidebar:
|
|
275
|
-
main:
|
|
270
|
+
const On = "_appShell_i1tds_10", Fn = "_sidebarClosed_i1tds_18", Kn = "_header_i1tds_22", Un = "_sidebar_i1tds_18", Gn = "_main_i1tds_45", Q = {
|
|
271
|
+
appShell: On,
|
|
272
|
+
sidebarClosed: Fn,
|
|
273
|
+
header: Kn,
|
|
274
|
+
sidebar: Un,
|
|
275
|
+
main: Gn
|
|
276
276
|
};
|
|
277
|
-
function
|
|
277
|
+
function Qr({
|
|
278
278
|
skipLink: e,
|
|
279
279
|
header: n,
|
|
280
|
-
sidebar:
|
|
280
|
+
sidebar: i,
|
|
281
281
|
children: a,
|
|
282
282
|
sidebarOpen: s = !0,
|
|
283
|
-
sidebarTheme:
|
|
283
|
+
sidebarTheme: r,
|
|
284
284
|
sidebarId: o = "sidebar",
|
|
285
285
|
mainId: c = "main",
|
|
286
|
-
className:
|
|
287
|
-
ref:
|
|
286
|
+
className: d,
|
|
287
|
+
ref: l,
|
|
288
288
|
...u
|
|
289
289
|
}) {
|
|
290
|
-
const h = s &&
|
|
291
|
-
return /* @__PURE__ */ _("div", { ref:
|
|
290
|
+
const h = s && i != null, f = [Q.appShell, !h && Q.sidebarClosed, d].filter(Boolean).join(" ");
|
|
291
|
+
return /* @__PURE__ */ _("div", { ref: l, className: f, ...u, children: [
|
|
292
292
|
e,
|
|
293
|
-
n != null && /* @__PURE__ */ t("div", { className:
|
|
294
|
-
/* @__PURE__ */ t("div", { id: o, className:
|
|
295
|
-
/* @__PURE__ */ t("main", { id: c, className:
|
|
293
|
+
n != null && /* @__PURE__ */ t("div", { className: Q.header, children: n }),
|
|
294
|
+
/* @__PURE__ */ t("div", { id: o, className: Q.sidebar, hidden: !h, "data-psi-theme": r, children: i }),
|
|
295
|
+
/* @__PURE__ */ t("main", { id: c, className: Q.main, tabIndex: -1, children: a })
|
|
296
296
|
] });
|
|
297
297
|
}
|
|
298
|
-
const
|
|
299
|
-
frame:
|
|
298
|
+
const Yn = "_frame_et4fc_1", Zn = {
|
|
299
|
+
frame: Yn
|
|
300
300
|
};
|
|
301
|
-
function
|
|
302
|
-
const o = [
|
|
303
|
-
return /* @__PURE__ */ t("div", { ref: s, className: o, style: { aspectRatio: String(e), ...
|
|
304
|
-
}
|
|
305
|
-
const
|
|
306
|
-
field:
|
|
307
|
-
label:
|
|
308
|
-
marker:
|
|
309
|
-
requiredText:
|
|
310
|
-
message:
|
|
311
|
-
invalid:
|
|
312
|
-
},
|
|
313
|
-
function
|
|
301
|
+
function ei({ ratio: e, className: n, style: i, children: a, ref: s, ...r }) {
|
|
302
|
+
const o = [Zn.frame, n].filter(Boolean).join(" ");
|
|
303
|
+
return /* @__PURE__ */ t("div", { ref: s, className: o, style: { aspectRatio: String(e), ...i }, ...r, children: a });
|
|
304
|
+
}
|
|
305
|
+
const Xn = "_field_x989o_1", Jn = "_label_x989o_10", Qn = "_marker_x989o_19", et = "_requiredText_x989o_25", nt = "_message_x989o_30", tt = "_invalid_x989o_36", P = {
|
|
306
|
+
field: Xn,
|
|
307
|
+
label: Jn,
|
|
308
|
+
marker: Qn,
|
|
309
|
+
requiredText: et,
|
|
310
|
+
message: nt,
|
|
311
|
+
invalid: tt
|
|
312
|
+
}, ue = Z(null);
|
|
313
|
+
function ni({
|
|
314
314
|
label: e,
|
|
315
315
|
description: n,
|
|
316
|
-
error:
|
|
316
|
+
error: i,
|
|
317
317
|
required: a = !1,
|
|
318
318
|
requiredText: s,
|
|
319
|
-
group:
|
|
319
|
+
group: r = !1,
|
|
320
320
|
htmlFor: o,
|
|
321
321
|
announce: c = !0,
|
|
322
|
-
className:
|
|
323
|
-
children:
|
|
322
|
+
className: d,
|
|
323
|
+
children: l,
|
|
324
324
|
ref: u,
|
|
325
325
|
...h
|
|
326
326
|
}) {
|
|
327
|
-
const
|
|
327
|
+
const f = R(), g = o ?? f, b = !!i, v = b ? i : n, N = v != null && v !== !1 ? `${g}-message` : void 0, y = e != null && !r ? `${g}-label` : void 0, x = [P.field, b && P.invalid, d].filter(Boolean).join(" "), A = e != null ? /* @__PURE__ */ _(ie, { children: [
|
|
328
328
|
e,
|
|
329
|
-
a && (s !== void 0 ? /* @__PURE__ */ _("span", { "aria-hidden": "true", className:
|
|
329
|
+
a && (s !== void 0 ? /* @__PURE__ */ _("span", { "aria-hidden": "true", className: P.requiredText, children: [
|
|
330
330
|
" ",
|
|
331
331
|
s
|
|
332
|
-
] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className:
|
|
333
|
-
] }) : null,
|
|
334
|
-
|
|
335
|
-
/* @__PURE__ */ t(
|
|
336
|
-
|
|
332
|
+
] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: P.marker, children: " *" }))
|
|
333
|
+
] }) : null, J = /* @__PURE__ */ _(ie, { children: [
|
|
334
|
+
A != null && (r ? /* @__PURE__ */ t("legend", { className: P.label, children: A }) : /* @__PURE__ */ t("label", { id: y, className: P.label, htmlFor: g, children: A })),
|
|
335
|
+
/* @__PURE__ */ t(ue.Provider, { value: { id: g, labelId: y, describedBy: N, invalid: b, required: a }, children: l }),
|
|
336
|
+
N && /* @__PURE__ */ t("p", { id: N, className: P.message, "aria-live": c ? "polite" : void 0, children: v })
|
|
337
337
|
] });
|
|
338
|
-
return
|
|
338
|
+
return r ? /* @__PURE__ */ t(
|
|
339
339
|
"fieldset",
|
|
340
340
|
{
|
|
341
341
|
ref: u,
|
|
342
|
-
className:
|
|
343
|
-
"aria-describedby":
|
|
342
|
+
className: x,
|
|
343
|
+
"aria-describedby": N,
|
|
344
344
|
...h,
|
|
345
|
-
children:
|
|
345
|
+
children: J
|
|
346
346
|
}
|
|
347
|
-
) : /* @__PURE__ */ t("div", { ref: u, className:
|
|
347
|
+
) : /* @__PURE__ */ t("div", { ref: u, className: x, ...h, children: J });
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
const e =
|
|
349
|
+
function ti() {
|
|
350
|
+
const e = j(ue);
|
|
351
351
|
return e ? {
|
|
352
352
|
id: e.id,
|
|
353
353
|
...e.labelId ? { "aria-labelledby": e.labelId } : {},
|
|
@@ -356,80 +356,80 @@ function Yi() {
|
|
|
356
356
|
...e.required ? { "aria-required": !0, required: !0 } : {}
|
|
357
357
|
} : {};
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function oi({ size: e = 20, ...n }) {
|
|
360
360
|
return /* @__PURE__ */ _("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 ri({ 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
|
|
368
|
+
function me({ size: e = 20, ...n }) {
|
|
369
369
|
return /* @__PURE__ */ _("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 ot({ 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 rt({ 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 it({ 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
|
|
383
|
+
function ii({ size: e = 20, ...n }) {
|
|
384
384
|
return /* @__PURE__ */ _("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
|
|
389
|
+
function si({ size: e = 20, ...n }) {
|
|
390
390
|
return /* @__PURE__ */ _("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
|
|
395
|
+
function ai({ size: e = 20, ...n }) {
|
|
396
396
|
return /* @__PURE__ */ _("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
|
|
401
|
+
function ci({ size: e = 20, ...n }) {
|
|
402
402
|
return /* @__PURE__ */ _("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
|
|
407
|
+
function li({ size: e = 20, ...n }) {
|
|
408
408
|
return /* @__PURE__ */ _("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
|
|
413
|
+
function st({ size: e = 20, ...n }) {
|
|
414
414
|
return /* @__PURE__ */ _("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
|
|
419
|
+
function di({ size: e = 20, ...n }) {
|
|
420
420
|
return /* @__PURE__ */ _("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
|
|
426
|
+
function ui({ size: e = 20, ...n }) {
|
|
427
427
|
return /* @__PURE__ */ _("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
|
|
432
|
+
function hi({ size: e = 20, ...n }) {
|
|
433
433
|
return /* @__PURE__ */ _("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" }),
|
|
@@ -437,7 +437,7 @@ function ir({ size: e = 20, ...n }) {
|
|
|
437
437
|
/* @__PURE__ */ t("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
|
|
438
438
|
] });
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function _i({ size: e = 20, ...n }) {
|
|
441
441
|
return /* @__PURE__ */ _("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" }),
|
|
@@ -449,341 +449,341 @@ function rr({ 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
|
|
452
|
+
function fi({ size: e = 20, ...n }) {
|
|
453
453
|
return /* @__PURE__ */ _("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
|
|
458
|
+
function pi({ size: e = 20, ...n }) {
|
|
459
459
|
return /* @__PURE__ */ _("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 gi({ 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 mi({ 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 bi({ 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
|
|
473
|
+
function vi({ size: e = 20, ...n }) {
|
|
474
474
|
return /* @__PURE__ */ _("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
|
|
480
|
+
function at({ size: e = 20, ...n }) {
|
|
481
481
|
return /* @__PURE__ */ _("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
|
|
487
|
+
function ct({ size: e = 20, ...n }) {
|
|
488
488
|
return /* @__PURE__ */ _("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
|
|
494
|
+
function lt({ size: e = 20, ...n }) {
|
|
495
495
|
return /* @__PURE__ */ _("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
|
|
501
|
+
function yi({ size: e = 20, ...n }) {
|
|
502
502
|
return /* @__PURE__ */ _("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
|
|
508
|
+
function wi({ size: e = 20, ...n }) {
|
|
509
509
|
return /* @__PURE__ */ _("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
|
|
515
|
+
function xi({ size: e = 20, ...n }) {
|
|
516
516
|
return /* @__PURE__ */ _("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
|
|
522
|
+
function ki({ size: e = 20, ...n }) {
|
|
523
523
|
return /* @__PURE__ */ _("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 dt = "_dialog_qg38y_2", ut = "_panel_qg38y_20", ht = "_center_qg38y_42", _t = "_inlineStart_qg38y_50", ft = "_inlineEnd_qg38y_51", pt = "_w400_qg38y_100", gt = "_w560_qg38y_101", mt = "_w720_qg38y_102", bt = "_header_qg38y_124", vt = "_title_qg38y_131", yt = "_footer_qg38y_137", z = {
|
|
530
|
+
dialog: dt,
|
|
531
|
+
panel: ut,
|
|
532
|
+
center: ht,
|
|
533
|
+
inlineStart: _t,
|
|
534
|
+
inlineEnd: ft,
|
|
535
|
+
w400: pt,
|
|
536
|
+
w560: gt,
|
|
537
|
+
w720: mt,
|
|
538
|
+
header: bt,
|
|
539
|
+
title: vt,
|
|
540
|
+
footer: yt
|
|
541
|
+
}, wt = {
|
|
542
|
+
400: z.w400,
|
|
543
|
+
560: z.w560,
|
|
544
|
+
720: z.w720
|
|
545
|
+
}, xt = {
|
|
546
|
+
center: z.center,
|
|
547
|
+
"inline-start": z.inlineStart,
|
|
548
|
+
"inline-end": z.inlineEnd
|
|
549
549
|
};
|
|
550
|
-
function
|
|
550
|
+
function Ni({
|
|
551
551
|
open: e,
|
|
552
552
|
onClose: n,
|
|
553
|
-
title:
|
|
553
|
+
title: i,
|
|
554
554
|
footer: a,
|
|
555
555
|
width: s = 560,
|
|
556
|
-
placement:
|
|
556
|
+
placement: r = "center",
|
|
557
557
|
dismissible: o = !0,
|
|
558
558
|
className: c,
|
|
559
|
-
children:
|
|
560
|
-
ref:
|
|
559
|
+
children: d,
|
|
560
|
+
ref: l,
|
|
561
561
|
...u
|
|
562
562
|
}) {
|
|
563
|
-
const h =
|
|
564
|
-
h.current =
|
|
563
|
+
const h = L(null), f = R(), g = (y) => {
|
|
564
|
+
h.current = y, typeof l == "function" ? l(y) : l && (l.current = y);
|
|
565
565
|
};
|
|
566
566
|
C(() => {
|
|
567
|
-
const
|
|
568
|
-
|
|
567
|
+
const y = h.current;
|
|
568
|
+
y && (e && !y.open ? y.showModal() : !e && y.open && y.close());
|
|
569
569
|
}, [e]), C(() => {
|
|
570
570
|
if (!e) return;
|
|
571
|
-
const
|
|
571
|
+
const y = document.body.style.overflow;
|
|
572
572
|
return document.body.style.overflow = "hidden", () => {
|
|
573
|
-
document.body.style.overflow =
|
|
573
|
+
document.body.style.overflow = y;
|
|
574
574
|
};
|
|
575
575
|
}, [e]);
|
|
576
|
-
const
|
|
577
|
-
|
|
578
|
-
},
|
|
579
|
-
o &&
|
|
580
|
-
},
|
|
576
|
+
const b = (y) => {
|
|
577
|
+
y.preventDefault(), o && n("esc");
|
|
578
|
+
}, v = (y) => {
|
|
579
|
+
o && y.target === h.current && n("backdrop");
|
|
580
|
+
}, N = [z.dialog, wt[s], xt[r], c].filter(Boolean).join(" ");
|
|
581
581
|
return /* @__PURE__ */ t(
|
|
582
582
|
"dialog",
|
|
583
583
|
{
|
|
584
|
-
ref:
|
|
585
|
-
className:
|
|
586
|
-
"data-placement":
|
|
587
|
-
"aria-labelledby":
|
|
588
|
-
onCancel:
|
|
589
|
-
onClick:
|
|
584
|
+
ref: g,
|
|
585
|
+
className: N,
|
|
586
|
+
"data-placement": r,
|
|
587
|
+
"aria-labelledby": i != null ? f : void 0,
|
|
588
|
+
onCancel: b,
|
|
589
|
+
onClick: v,
|
|
590
590
|
...u,
|
|
591
|
-
children: /* @__PURE__ */ _("div", { className:
|
|
592
|
-
(
|
|
593
|
-
|
|
591
|
+
children: /* @__PURE__ */ _("div", { className: z.panel, children: [
|
|
592
|
+
(i != null || o) && /* @__PURE__ */ _("div", { className: z.header, children: [
|
|
593
|
+
i != null && /* @__PURE__ */ t("h2", { id: f, className: z.title, children: i }),
|
|
594
594
|
o && /* @__PURE__ */ t(
|
|
595
|
-
|
|
595
|
+
te,
|
|
596
596
|
{
|
|
597
597
|
variant: "ghost",
|
|
598
598
|
size: 32,
|
|
599
599
|
"aria-label": "Close dialog",
|
|
600
600
|
onClick: () => n("close-button"),
|
|
601
|
-
children: /* @__PURE__ */ t(
|
|
601
|
+
children: /* @__PURE__ */ t(me, { "aria-hidden": "true" })
|
|
602
602
|
}
|
|
603
603
|
)
|
|
604
604
|
] }),
|
|
605
|
-
|
|
606
|
-
a != null && /* @__PURE__ */ t("div", { className:
|
|
605
|
+
d,
|
|
606
|
+
a != null && /* @__PURE__ */ t("div", { className: z.footer, children: a })
|
|
607
607
|
] })
|
|
608
608
|
}
|
|
609
609
|
);
|
|
610
610
|
}
|
|
611
|
-
const
|
|
612
|
-
input:
|
|
613
|
-
size24:
|
|
614
|
-
size32:
|
|
615
|
-
size40:
|
|
616
|
-
size48:
|
|
617
|
-
error:
|
|
618
|
-
},
|
|
619
|
-
24:
|
|
620
|
-
32:
|
|
621
|
-
40:
|
|
622
|
-
48:
|
|
611
|
+
const kt = "_input_pmr7w_3", Nt = "_size24_pmr7w_43", $t = "_size32_pmr7w_49", Bt = "_size40_pmr7w_55", Lt = "_size48_pmr7w_61", Ct = "_error_pmr7w_69", F = {
|
|
612
|
+
input: kt,
|
|
613
|
+
size24: Nt,
|
|
614
|
+
size32: $t,
|
|
615
|
+
size40: Bt,
|
|
616
|
+
size48: Lt,
|
|
617
|
+
error: Ct
|
|
618
|
+
}, St = {
|
|
619
|
+
24: F.size24,
|
|
620
|
+
32: F.size32,
|
|
621
|
+
40: F.size40,
|
|
622
|
+
48: F.size48
|
|
623
623
|
};
|
|
624
|
-
function
|
|
625
|
-
const o =
|
|
624
|
+
function $i({ size: e = 32, error: n = !1, type: i = "text", className: a, ref: s, ...r }) {
|
|
625
|
+
const o = j(ue), c = n || ((o == null ? void 0 : o.invalid) ?? !1), d = [o == null ? void 0 : o.describedBy, r["aria-describedby"]].filter(Boolean).join(" ") || void 0, l = [F.input, St[e], c && F.error, a].filter(Boolean).join(" ");
|
|
626
626
|
return /* @__PURE__ */ t(
|
|
627
627
|
"input",
|
|
628
628
|
{
|
|
629
629
|
ref: s,
|
|
630
|
-
className:
|
|
631
|
-
id:
|
|
632
|
-
required:
|
|
630
|
+
className: l,
|
|
631
|
+
id: r.id ?? (o == null ? void 0 : o.id),
|
|
632
|
+
required: r.required ?? ((o == null ? void 0 : o.required) || void 0),
|
|
633
633
|
"aria-invalid": (o == null ? void 0 : o.invalid) || void 0,
|
|
634
|
-
type:
|
|
635
|
-
...
|
|
636
|
-
"aria-describedby":
|
|
634
|
+
type: i,
|
|
635
|
+
...r,
|
|
636
|
+
"aria-describedby": d
|
|
637
637
|
}
|
|
638
638
|
);
|
|
639
639
|
}
|
|
640
|
-
const
|
|
641
|
-
select:
|
|
642
|
-
size24:
|
|
643
|
-
size32:
|
|
644
|
-
size40:
|
|
645
|
-
size48:
|
|
646
|
-
error:
|
|
647
|
-
},
|
|
648
|
-
24:
|
|
649
|
-
32:
|
|
650
|
-
40:
|
|
651
|
-
48:
|
|
640
|
+
const jt = "_select_1eqz1_3", Tt = "_size24_1eqz1_57", zt = "_size32_1eqz1_67", It = "_size40_1eqz1_77", Et = "_size48_1eqz1_87", At = "_error_1eqz1_99", K = {
|
|
641
|
+
select: jt,
|
|
642
|
+
size24: Tt,
|
|
643
|
+
size32: zt,
|
|
644
|
+
size40: It,
|
|
645
|
+
size48: Et,
|
|
646
|
+
error: At
|
|
647
|
+
}, Mt = {
|
|
648
|
+
24: K.size24,
|
|
649
|
+
32: K.size32,
|
|
650
|
+
40: K.size40,
|
|
651
|
+
48: K.size48
|
|
652
652
|
};
|
|
653
|
-
function
|
|
653
|
+
function Bi({
|
|
654
654
|
size: e = 32,
|
|
655
655
|
error: n = !1,
|
|
656
|
-
className:
|
|
656
|
+
className: i,
|
|
657
657
|
ref: a,
|
|
658
658
|
children: s,
|
|
659
|
-
...
|
|
659
|
+
...r
|
|
660
660
|
}) {
|
|
661
|
-
const o =
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
c &&
|
|
665
|
-
|
|
661
|
+
const o = j(ue), c = n || ((o == null ? void 0 : o.invalid) ?? !1), d = [o == null ? void 0 : o.describedBy, r["aria-describedby"]].filter(Boolean).join(" ") || void 0, l = [
|
|
662
|
+
K.select,
|
|
663
|
+
Mt[e],
|
|
664
|
+
c && K.error,
|
|
665
|
+
i
|
|
666
666
|
].filter(Boolean).join(" ");
|
|
667
667
|
return /* @__PURE__ */ t(
|
|
668
668
|
"select",
|
|
669
669
|
{
|
|
670
670
|
ref: a,
|
|
671
|
-
className:
|
|
672
|
-
id:
|
|
673
|
-
required:
|
|
671
|
+
className: l,
|
|
672
|
+
id: r.id ?? (o == null ? void 0 : o.id),
|
|
673
|
+
required: r.required ?? ((o == null ? void 0 : o.required) || void 0),
|
|
674
674
|
"aria-invalid": (o == null ? void 0 : o.invalid) || void 0,
|
|
675
|
-
...
|
|
676
|
-
"aria-describedby":
|
|
675
|
+
...r,
|
|
676
|
+
"aria-describedby": d,
|
|
677
677
|
children: s
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
680
|
}
|
|
681
|
-
const
|
|
682
|
-
label:
|
|
683
|
-
disabled:
|
|
684
|
-
indicator:
|
|
685
|
-
input:
|
|
686
|
-
text:
|
|
681
|
+
const Wt = "_label_1jm35_3", Dt = "_disabled_1jm35_13", Pt = "_indicator_1jm35_26", qt = "_input_1jm35_42", Rt = "_text_1jm35_67", ee = {
|
|
682
|
+
label: Wt,
|
|
683
|
+
disabled: Dt,
|
|
684
|
+
indicator: Pt,
|
|
685
|
+
input: qt,
|
|
686
|
+
text: Rt
|
|
687
687
|
};
|
|
688
|
-
function
|
|
688
|
+
function Ce({
|
|
689
689
|
children: e,
|
|
690
690
|
className: n,
|
|
691
|
-
disabled:
|
|
691
|
+
disabled: i,
|
|
692
692
|
ref: a,
|
|
693
693
|
...s
|
|
694
694
|
}) {
|
|
695
|
-
const
|
|
696
|
-
return /* @__PURE__ */ _("label", { className:
|
|
695
|
+
const r = [ee.label, i && ee.disabled, n].filter(Boolean).join(" ");
|
|
696
|
+
return /* @__PURE__ */ _("label", { className: r, children: [
|
|
697
697
|
/* @__PURE__ */ t(
|
|
698
698
|
"input",
|
|
699
699
|
{
|
|
700
700
|
ref: a,
|
|
701
701
|
type: "checkbox",
|
|
702
|
-
className: `psi-sr-only ${
|
|
703
|
-
disabled:
|
|
702
|
+
className: `psi-sr-only ${ee.input}`,
|
|
703
|
+
disabled: i,
|
|
704
704
|
...s
|
|
705
705
|
}
|
|
706
706
|
),
|
|
707
|
-
/* @__PURE__ */ t("span", { className:
|
|
708
|
-
e && /* @__PURE__ */ t("span", { className:
|
|
707
|
+
/* @__PURE__ */ t("span", { className: ee.indicator, "aria-hidden": "true" }),
|
|
708
|
+
e && /* @__PURE__ */ t("span", { className: ee.text, children: e })
|
|
709
709
|
] });
|
|
710
710
|
}
|
|
711
|
-
const
|
|
712
|
-
label:
|
|
713
|
-
disabled:
|
|
714
|
-
track:
|
|
715
|
-
input:
|
|
716
|
-
thumb:
|
|
717
|
-
text:
|
|
711
|
+
const Ht = "_label_yv464_3", Vt = "_disabled_yv464_13", Ot = "_track_yv464_26", Ft = "_input_yv464_38", Kt = "_thumb_yv464_50", Ut = "_text_yv464_67", O = {
|
|
712
|
+
label: Ht,
|
|
713
|
+
disabled: Vt,
|
|
714
|
+
track: Ot,
|
|
715
|
+
input: Ft,
|
|
716
|
+
thumb: Kt,
|
|
717
|
+
text: Ut
|
|
718
718
|
};
|
|
719
|
-
function
|
|
719
|
+
function Li({
|
|
720
720
|
children: e,
|
|
721
721
|
className: n,
|
|
722
|
-
disabled:
|
|
722
|
+
disabled: i,
|
|
723
723
|
ref: a,
|
|
724
724
|
...s
|
|
725
725
|
}) {
|
|
726
|
-
const
|
|
727
|
-
return /* @__PURE__ */ _("label", { className:
|
|
726
|
+
const r = [O.label, i && O.disabled, n].filter(Boolean).join(" ");
|
|
727
|
+
return /* @__PURE__ */ _("label", { className: r, children: [
|
|
728
728
|
/* @__PURE__ */ t(
|
|
729
729
|
"input",
|
|
730
730
|
{
|
|
731
731
|
ref: a,
|
|
732
732
|
type: "checkbox",
|
|
733
733
|
role: "switch",
|
|
734
|
-
className: `psi-sr-only ${
|
|
735
|
-
disabled:
|
|
734
|
+
className: `psi-sr-only ${O.input}`,
|
|
735
|
+
disabled: i,
|
|
736
736
|
...s
|
|
737
737
|
}
|
|
738
738
|
),
|
|
739
|
-
/* @__PURE__ */ t("span", { className:
|
|
740
|
-
e && /* @__PURE__ */ t("span", { className:
|
|
739
|
+
/* @__PURE__ */ t("span", { className: O.track, "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: O.thumb }) }),
|
|
740
|
+
e && /* @__PURE__ */ t("span", { className: O.text, children: e })
|
|
741
741
|
] });
|
|
742
742
|
}
|
|
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:
|
|
743
|
+
const Gt = "_tag_1r2xw_3", Yt = "_dismiss_1r2xw_17", Zt = "_neutral_1r2xw_43", Xt = "_accent_1r2xw_48", Jt = "_success_1r2xw_53", Qt = "_warning_1r2xw_58", eo = "_danger_1r2xw_63", no = "_neutralSubtle_1r2xw_70", to = "_accentSubtle_1r2xw_75", oo = "_successSubtle_1r2xw_80", ro = "_warningSubtle_1r2xw_85", io = "_dangerSubtle_1r2xw_90", S = {
|
|
744
|
+
tag: Gt,
|
|
745
|
+
dismiss: Yt,
|
|
746
|
+
neutral: Zt,
|
|
747
|
+
accent: Xt,
|
|
748
|
+
success: Jt,
|
|
749
|
+
warning: Qt,
|
|
750
|
+
danger: eo,
|
|
751
|
+
neutralSubtle: no,
|
|
752
|
+
accentSubtle: to,
|
|
753
|
+
successSubtle: oo,
|
|
754
|
+
warningSubtle: ro,
|
|
755
|
+
dangerSubtle: io
|
|
756
|
+
}, so = {
|
|
757
|
+
neutral: S.neutral,
|
|
758
|
+
accent: S.accent,
|
|
759
|
+
success: S.success,
|
|
760
|
+
warning: S.warning,
|
|
761
|
+
danger: S.danger
|
|
762
|
+
}, ao = {
|
|
763
|
+
neutral: S.neutralSubtle,
|
|
764
|
+
accent: S.accentSubtle,
|
|
765
|
+
success: S.successSubtle,
|
|
766
|
+
warning: S.warningSubtle,
|
|
767
|
+
danger: S.dangerSubtle
|
|
768
768
|
};
|
|
769
|
-
function
|
|
769
|
+
function Ci({
|
|
770
770
|
variant: e = "neutral",
|
|
771
771
|
subtle: n = !1,
|
|
772
|
-
onDismiss:
|
|
772
|
+
onDismiss: i,
|
|
773
773
|
className: a,
|
|
774
774
|
children: s,
|
|
775
|
-
ref:
|
|
775
|
+
ref: r,
|
|
776
776
|
...o
|
|
777
777
|
}) {
|
|
778
|
-
const c = n ?
|
|
779
|
-
return /* @__PURE__ */ _("span", { ref:
|
|
778
|
+
const c = n ? ao : so, d = [S.tag, c[e], a].filter(Boolean).join(" ");
|
|
779
|
+
return /* @__PURE__ */ _("span", { ref: r, className: d, ...o, children: [
|
|
780
780
|
s,
|
|
781
|
-
|
|
781
|
+
i && /* @__PURE__ */ t(
|
|
782
782
|
"button",
|
|
783
783
|
{
|
|
784
784
|
type: "button",
|
|
785
|
-
className:
|
|
786
|
-
onClick:
|
|
785
|
+
className: S.dismiss,
|
|
786
|
+
onClick: i,
|
|
787
787
|
"aria-label": "Dismiss",
|
|
788
788
|
children: /* @__PURE__ */ _(
|
|
789
789
|
"svg",
|
|
@@ -807,83 +807,88 @@ function yr({
|
|
|
807
807
|
)
|
|
808
808
|
] });
|
|
809
809
|
}
|
|
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
|
|
810
|
+
const co = "_wrapper_1eu6z_3", lo = "_tooltip_1eu6z_10", uo = "_top_1eu6z_24", ho = "_bottom_1eu6z_31", _o = "_left_1eu6z_38", fo = "_right_1eu6z_45", U = {
|
|
811
|
+
wrapper: co,
|
|
812
|
+
tooltip: lo,
|
|
813
|
+
top: uo,
|
|
814
|
+
bottom: ho,
|
|
815
|
+
left: _o,
|
|
816
|
+
right: fo
|
|
817
|
+
}, po = {
|
|
818
|
+
top: U.top,
|
|
819
|
+
bottom: U.bottom,
|
|
820
|
+
left: U.left,
|
|
821
|
+
right: U.right
|
|
822
|
+
}, go = 150;
|
|
823
|
+
function Si({
|
|
824
824
|
content: e,
|
|
825
825
|
children: n,
|
|
826
|
-
placement:
|
|
826
|
+
placement: i = "top"
|
|
827
827
|
}) {
|
|
828
|
-
const [a, s] =
|
|
828
|
+
const [a, s] = se(!1), r = R(), o = L(void 0), c = w(() => {
|
|
829
829
|
o.current !== void 0 && (window.clearTimeout(o.current), o.current = void 0);
|
|
830
|
-
}, []),
|
|
830
|
+
}, []), d = w(() => s(!0), []), l = w(() => s(!1), []);
|
|
831
831
|
C(() => c, [c]), C(() => {
|
|
832
832
|
if (!a) return;
|
|
833
|
-
const h = (
|
|
834
|
-
|
|
833
|
+
const h = (f) => {
|
|
834
|
+
f.key === "Escape" && l();
|
|
835
835
|
};
|
|
836
836
|
return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
|
|
837
|
-
}, [a,
|
|
837
|
+
}, [a, l]);
|
|
838
838
|
const u = de(n, {
|
|
839
|
-
"aria-describedby": a ?
|
|
839
|
+
"aria-describedby": a ? r : void 0,
|
|
840
840
|
onMouseEnter: (h) => {
|
|
841
|
-
c(), o.current = window.setTimeout(
|
|
842
|
-
const
|
|
843
|
-
|
|
841
|
+
c(), o.current = window.setTimeout(d, go);
|
|
842
|
+
const f = n.props.onMouseEnter;
|
|
843
|
+
f == null || f(h);
|
|
844
844
|
},
|
|
845
845
|
onMouseLeave: (h) => {
|
|
846
|
-
c(),
|
|
847
|
-
const
|
|
848
|
-
|
|
846
|
+
c(), l();
|
|
847
|
+
const f = n.props.onMouseLeave;
|
|
848
|
+
f == null || f(h);
|
|
849
849
|
},
|
|
850
850
|
onFocus: (h) => {
|
|
851
|
-
|
|
852
|
-
const
|
|
853
|
-
|
|
851
|
+
d();
|
|
852
|
+
const f = n.props.onFocus;
|
|
853
|
+
f == null || f(h);
|
|
854
854
|
},
|
|
855
855
|
onBlur: (h) => {
|
|
856
|
-
c(),
|
|
857
|
-
const
|
|
858
|
-
|
|
856
|
+
c(), l();
|
|
857
|
+
const f = n.props.onBlur;
|
|
858
|
+
f == null || f(h);
|
|
859
859
|
}
|
|
860
860
|
});
|
|
861
|
-
return /* @__PURE__ */ _("span", { className:
|
|
861
|
+
return /* @__PURE__ */ _("span", { className: U.wrapper, children: [
|
|
862
862
|
u,
|
|
863
863
|
a && /* @__PURE__ */ t(
|
|
864
864
|
"span",
|
|
865
865
|
{
|
|
866
|
-
id:
|
|
866
|
+
id: r,
|
|
867
867
|
role: "tooltip",
|
|
868
|
-
className: [
|
|
868
|
+
className: [U.tooltip, po[i]].filter(Boolean).join(" "),
|
|
869
869
|
children: e
|
|
870
870
|
}
|
|
871
871
|
)
|
|
872
872
|
] });
|
|
873
873
|
}
|
|
874
|
-
const
|
|
875
|
-
toolbar:
|
|
876
|
-
gap8:
|
|
877
|
-
gap12:
|
|
878
|
-
gap16:
|
|
879
|
-
alignEnd:
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
874
|
+
const mo = "_toolbar_8bwkv_1", bo = "_gap8_8bwkv_7", vo = "_gap12_8bwkv_8", yo = "_gap16_8bwkv_9", wo = "_alignEnd_8bwkv_13", xo = "_alignStart_8bwkv_19", G = {
|
|
875
|
+
toolbar: mo,
|
|
876
|
+
gap8: bo,
|
|
877
|
+
gap12: vo,
|
|
878
|
+
gap16: yo,
|
|
879
|
+
alignEnd: wo,
|
|
880
|
+
alignStart: xo
|
|
881
|
+
}, ko = { 8: G.gap8, 12: G.gap12, 16: G.gap16 }, No = {
|
|
882
|
+
center: void 0,
|
|
883
|
+
end: G.alignEnd,
|
|
884
|
+
start: G.alignStart
|
|
885
|
+
};
|
|
886
|
+
function ji({ gap: e = 8, align: n = "center", as: i = "div", className: a, children: s, ref: r, ...o }) {
|
|
887
|
+
const c = [G.toolbar, ko[e], No[n], a].filter(Boolean).join(" ");
|
|
888
|
+
return i === "form" ? /* @__PURE__ */ t("form", { ref: r, className: c, ...o, children: s }) : /* @__PURE__ */ t(
|
|
884
889
|
"div",
|
|
885
890
|
{
|
|
886
|
-
ref:
|
|
891
|
+
ref: r,
|
|
887
892
|
role: o["aria-label"] != null ? "group" : void 0,
|
|
888
893
|
className: c,
|
|
889
894
|
...o,
|
|
@@ -891,175 +896,175 @@ function xr({ gap: e = 8, align: n = "center", as: r = "div", className: a, chil
|
|
|
891
896
|
}
|
|
892
897
|
);
|
|
893
898
|
}
|
|
894
|
-
const
|
|
895
|
-
trigger:
|
|
896
|
-
menu:
|
|
897
|
-
item:
|
|
898
|
-
separator:
|
|
899
|
-
},
|
|
900
|
-
function
|
|
901
|
-
const s =
|
|
902
|
-
const
|
|
903
|
-
return
|
|
904
|
-
|
|
899
|
+
const $o = "_trigger_uxpyi_4", Bo = "_menu_uxpyi_16", Lo = "_item_uxpyi_37", Co = "_separator_uxpyi_82", le = {
|
|
900
|
+
trigger: $o,
|
|
901
|
+
menu: Bo,
|
|
902
|
+
item: Lo,
|
|
903
|
+
separator: Co
|
|
904
|
+
}, So = 500;
|
|
905
|
+
function jo({ popoverRef: e, triggerRef: n, open: i, onEsc: a }) {
|
|
906
|
+
const s = L(""), r = L(0), o = w(() => {
|
|
907
|
+
const l = e.current;
|
|
908
|
+
return l ? Array.from(
|
|
909
|
+
l.querySelectorAll('[data-psi-menu-item]:not([aria-disabled="true"])')
|
|
905
910
|
) : [];
|
|
906
|
-
}, [e]), c =
|
|
907
|
-
(
|
|
908
|
-
if (
|
|
909
|
-
for (const u of o()) u.tabIndex = u ===
|
|
910
|
-
|
|
911
|
+
}, [e]), c = w(
|
|
912
|
+
(l) => {
|
|
913
|
+
if (l) {
|
|
914
|
+
for (const u of o()) u.tabIndex = u === l ? 0 : -1;
|
|
915
|
+
l.focus();
|
|
911
916
|
}
|
|
912
917
|
},
|
|
913
918
|
[o]
|
|
914
|
-
),
|
|
919
|
+
), d = w(() => {
|
|
915
920
|
var u;
|
|
916
|
-
const
|
|
917
|
-
|
|
921
|
+
const l = (u = n.current) == null ? void 0 : u.querySelector("button, a, [tabindex]");
|
|
922
|
+
l == null || l.focus();
|
|
918
923
|
}, [n]);
|
|
919
924
|
return C(() => {
|
|
920
|
-
if (!
|
|
921
|
-
const
|
|
922
|
-
return c(
|
|
925
|
+
if (!i) return;
|
|
926
|
+
const l = o();
|
|
927
|
+
return c(l[0]), () => {
|
|
923
928
|
var u;
|
|
924
|
-
(u = e.current) != null && u.contains(document.activeElement) &&
|
|
929
|
+
(u = e.current) != null && u.contains(document.activeElement) && d();
|
|
925
930
|
};
|
|
926
|
-
}, [
|
|
927
|
-
(
|
|
928
|
-
if (
|
|
929
|
-
|
|
931
|
+
}, [i, e, o, c, d]), w(
|
|
932
|
+
(l) => {
|
|
933
|
+
if (l.key === "Escape") {
|
|
934
|
+
l.preventDefault(), a();
|
|
930
935
|
return;
|
|
931
936
|
}
|
|
932
937
|
const u = o();
|
|
933
938
|
if (u.length === 0) return;
|
|
934
939
|
const h = u.indexOf(document.activeElement);
|
|
935
|
-
switch (
|
|
940
|
+
switch (l.key) {
|
|
936
941
|
case "ArrowDown":
|
|
937
|
-
|
|
942
|
+
l.preventDefault(), c(u[(h + 1 + u.length) % u.length]);
|
|
938
943
|
return;
|
|
939
944
|
case "ArrowUp":
|
|
940
|
-
|
|
945
|
+
l.preventDefault(), c(u[h <= 0 ? u.length - 1 : h - 1]);
|
|
941
946
|
return;
|
|
942
947
|
case "Home":
|
|
943
|
-
|
|
948
|
+
l.preventDefault(), c(u[0]);
|
|
944
949
|
return;
|
|
945
950
|
case "End":
|
|
946
|
-
|
|
951
|
+
l.preventDefault(), c(u[u.length - 1]);
|
|
947
952
|
return;
|
|
948
953
|
}
|
|
949
|
-
if (
|
|
950
|
-
const
|
|
951
|
-
s.current =
|
|
952
|
-
const
|
|
953
|
-
(
|
|
954
|
+
if (l.key.length !== 1 || l.metaKey || l.ctrlKey || l.altKey) return;
|
|
955
|
+
const f = Date.now();
|
|
956
|
+
s.current = f - r.current > So ? l.key.toLowerCase() : s.current + l.key.toLowerCase(), r.current = f;
|
|
957
|
+
const g = u.find(
|
|
958
|
+
(b) => (b.textContent ?? "").trim().toLowerCase().startsWith(s.current)
|
|
954
959
|
);
|
|
955
|
-
|
|
960
|
+
g && (l.preventDefault(), c(g));
|
|
956
961
|
},
|
|
957
962
|
[o, c, a]
|
|
958
963
|
);
|
|
959
964
|
}
|
|
960
|
-
function
|
|
965
|
+
function To() {
|
|
961
966
|
return typeof CSS < "u" && CSS.supports("anchor-name", "--x");
|
|
962
967
|
}
|
|
963
|
-
function
|
|
968
|
+
function zo({ popoverRef: e, triggerRef: n, open: i, placement: a, anchorName: s }) {
|
|
964
969
|
C(() => {
|
|
965
|
-
const
|
|
966
|
-
!
|
|
970
|
+
const r = n.current, o = e.current;
|
|
971
|
+
!r || !o || (r.style.setProperty("anchor-name", s), o.style.setProperty("position-anchor", s));
|
|
967
972
|
}, [e, n, s]), C(() => {
|
|
968
|
-
if (!
|
|
969
|
-
const
|
|
970
|
-
if (!
|
|
973
|
+
if (!i || To()) return;
|
|
974
|
+
const r = n.current, o = e.current;
|
|
975
|
+
if (!r || !o) return;
|
|
971
976
|
const c = () => {
|
|
972
|
-
const
|
|
973
|
-
o.style.position = "fixed", o.style.top =
|
|
977
|
+
const d = r.getBoundingClientRect(), l = a.startsWith("bottom"), u = a.endsWith("end"), h = getComputedStyle(r).direction === "rtl", f = u !== h;
|
|
978
|
+
o.style.position = "fixed", o.style.top = l ? `${d.bottom}px` : "", o.style.bottom = l ? "" : `${window.innerHeight - d.top}px`, o.style.left = f ? "" : `${d.left}px`, o.style.right = f ? `${window.innerWidth - d.right}px` : "";
|
|
974
979
|
};
|
|
975
980
|
return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), () => {
|
|
976
981
|
window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c);
|
|
977
982
|
};
|
|
978
|
-
}, [
|
|
983
|
+
}, [i, a, e, n]);
|
|
979
984
|
}
|
|
980
|
-
const
|
|
985
|
+
const Se = Z({ close: () => {
|
|
981
986
|
} });
|
|
982
|
-
function
|
|
987
|
+
function Ne(e) {
|
|
983
988
|
return e.hasAttribute("data-open") || e.matches(":popover-open");
|
|
984
989
|
}
|
|
985
|
-
function
|
|
990
|
+
function Ti({
|
|
986
991
|
open: e,
|
|
987
992
|
onClose: n,
|
|
988
|
-
trigger:
|
|
993
|
+
trigger: i,
|
|
989
994
|
placement: a = "bottom-start",
|
|
990
995
|
children: s,
|
|
991
|
-
className:
|
|
996
|
+
className: r,
|
|
992
997
|
ref: o,
|
|
993
998
|
...c
|
|
994
999
|
}) {
|
|
995
|
-
const
|
|
996
|
-
|
|
997
|
-
const
|
|
998
|
-
|
|
1000
|
+
const d = L(null), l = L(null), u = L(!1), h = `--psi-menu-${R().replace(/:/g, "")}`;
|
|
1001
|
+
zo({ popoverRef: d, triggerRef: l, open: e, placement: a, anchorName: h });
|
|
1002
|
+
const f = (x) => {
|
|
1003
|
+
d.current = x, typeof o == "function" ? o(x) : o && (o.current = x);
|
|
999
1004
|
};
|
|
1000
1005
|
C(() => {
|
|
1001
|
-
const
|
|
1002
|
-
if (!
|
|
1003
|
-
const
|
|
1004
|
-
e && !
|
|
1006
|
+
const x = d.current;
|
|
1007
|
+
if (!x) return;
|
|
1008
|
+
const A = Ne(x);
|
|
1009
|
+
e && !A ? x.showPopover() : !e && A && (u.current = !0, x.hidePopover());
|
|
1005
1010
|
}, [e]);
|
|
1006
|
-
const
|
|
1007
|
-
const
|
|
1008
|
-
if (
|
|
1011
|
+
const g = w(() => {
|
|
1012
|
+
const x = d.current;
|
|
1013
|
+
if (x) {
|
|
1009
1014
|
if (u.current) {
|
|
1010
1015
|
u.current = !1;
|
|
1011
1016
|
return;
|
|
1012
1017
|
}
|
|
1013
|
-
|
|
1018
|
+
Ne(x) || e && n("outside");
|
|
1014
1019
|
}
|
|
1015
|
-
}, [n, e]),
|
|
1016
|
-
popoverRef:
|
|
1017
|
-
triggerRef:
|
|
1020
|
+
}, [n, e]), b = jo({
|
|
1021
|
+
popoverRef: d,
|
|
1022
|
+
triggerRef: l,
|
|
1018
1023
|
open: e,
|
|
1019
1024
|
onEsc: () => n("esc")
|
|
1020
|
-
}),
|
|
1021
|
-
(
|
|
1022
|
-
n(
|
|
1025
|
+
}), v = w(
|
|
1026
|
+
(x) => {
|
|
1027
|
+
n(x);
|
|
1023
1028
|
},
|
|
1024
1029
|
[n]
|
|
1025
|
-
),
|
|
1030
|
+
), N = Y(i);
|
|
1026
1031
|
C(() => {
|
|
1027
|
-
|
|
1032
|
+
N || console.warn(
|
|
1028
1033
|
"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."
|
|
1029
1034
|
);
|
|
1030
|
-
}, [
|
|
1031
|
-
const
|
|
1032
|
-
return /* @__PURE__ */ _(
|
|
1033
|
-
/* @__PURE__ */ t("div", { ref:
|
|
1035
|
+
}, [N]);
|
|
1036
|
+
const y = N ? de(i, { "aria-haspopup": "menu", "aria-expanded": e }) : i;
|
|
1037
|
+
return /* @__PURE__ */ _(ie, { children: [
|
|
1038
|
+
/* @__PURE__ */ t("div", { ref: l, className: le.trigger, "data-psi-menu-trigger": !0, children: y }),
|
|
1034
1039
|
/* @__PURE__ */ t(
|
|
1035
1040
|
"div",
|
|
1036
1041
|
{
|
|
1037
1042
|
...c,
|
|
1038
|
-
ref:
|
|
1043
|
+
ref: f,
|
|
1039
1044
|
popover: "auto",
|
|
1040
1045
|
role: "menu",
|
|
1041
1046
|
"data-psi-menu": !0,
|
|
1042
1047
|
"data-placement": a,
|
|
1043
|
-
className: [
|
|
1044
|
-
onToggle:
|
|
1045
|
-
onKeyDown:
|
|
1046
|
-
children: /* @__PURE__ */ t(
|
|
1048
|
+
className: [le.menu, r].filter(Boolean).join(" "),
|
|
1049
|
+
onToggle: g,
|
|
1050
|
+
onKeyDown: b,
|
|
1051
|
+
children: /* @__PURE__ */ t(Se.Provider, { value: { close: v }, children: s })
|
|
1047
1052
|
}
|
|
1048
1053
|
)
|
|
1049
1054
|
] });
|
|
1050
1055
|
}
|
|
1051
|
-
function
|
|
1052
|
-
const { close: s } =
|
|
1056
|
+
function zi({ children: e, onSelect: n, variant: i = "neutral", disabled: a = !1 }) {
|
|
1057
|
+
const { close: s } = j(Se);
|
|
1053
1058
|
return /* @__PURE__ */ t(
|
|
1054
1059
|
"button",
|
|
1055
1060
|
{
|
|
1056
1061
|
type: "button",
|
|
1057
1062
|
role: "menuitem",
|
|
1058
1063
|
"data-psi-menu-item": !0,
|
|
1059
|
-
"data-variant":
|
|
1064
|
+
"data-variant": i,
|
|
1060
1065
|
"aria-disabled": a || void 0,
|
|
1061
1066
|
tabIndex: -1,
|
|
1062
|
-
className:
|
|
1067
|
+
className: le.item,
|
|
1063
1068
|
onClick: () => {
|
|
1064
1069
|
a || (n(), s("item-select"));
|
|
1065
1070
|
},
|
|
@@ -1067,588 +1072,600 @@ function Nr({ children: e, onSelect: n, variant: r = "neutral", disabled: a = !1
|
|
|
1067
1072
|
}
|
|
1068
1073
|
);
|
|
1069
1074
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className:
|
|
1072
|
-
}
|
|
1073
|
-
const
|
|
1074
|
-
table:
|
|
1075
|
-
caption:
|
|
1076
|
-
captionDetail:
|
|
1077
|
-
headerCell:
|
|
1078
|
-
cell:
|
|
1079
|
-
rowHeader:
|
|
1080
|
-
sortButton:
|
|
1081
|
-
sortIndicator:
|
|
1082
|
-
selectCell:
|
|
1083
|
-
body:
|
|
1084
|
-
row:
|
|
1085
|
-
sticky:
|
|
1086
|
-
},
|
|
1075
|
+
function Ii() {
|
|
1076
|
+
return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className: le.separator });
|
|
1077
|
+
}
|
|
1078
|
+
const Io = "_table_1maek_3", Eo = "_caption_1maek_19", Ao = "_captionDetail_1maek_27", Mo = "_headerCell_1maek_38", Wo = "_cell_1maek_44", Do = "_rowHeader_1maek_51", Po = "_sortButton_1maek_62", qo = "_sortIndicator_1maek_79", Ro = "_selectCell_1maek_123", Ho = "_body_1maek_130", Vo = "_row_1maek_51", Oo = "_sticky_1maek_155", $ = {
|
|
1079
|
+
table: Io,
|
|
1080
|
+
caption: Eo,
|
|
1081
|
+
captionDetail: Ao,
|
|
1082
|
+
headerCell: Mo,
|
|
1083
|
+
cell: Wo,
|
|
1084
|
+
rowHeader: Do,
|
|
1085
|
+
sortButton: Po,
|
|
1086
|
+
sortIndicator: qo,
|
|
1087
|
+
selectCell: Ro,
|
|
1088
|
+
body: Ho,
|
|
1089
|
+
row: Vo,
|
|
1090
|
+
sticky: Oo
|
|
1091
|
+
}, je = /* @__PURE__ */ new Set(), X = Z({
|
|
1087
1092
|
size: 40,
|
|
1088
1093
|
sortable: !1,
|
|
1089
1094
|
sort: null,
|
|
1090
1095
|
selectable: !1,
|
|
1091
|
-
selected:
|
|
1092
|
-
}),
|
|
1093
|
-
function
|
|
1094
|
-
return /* @__PURE__ */ t("tbody", { ...a, ref:
|
|
1096
|
+
selected: je
|
|
1097
|
+
}), Te = Z([]);
|
|
1098
|
+
function Fo({ children: e, className: n, ref: i, ...a }) {
|
|
1099
|
+
return /* @__PURE__ */ t("tbody", { ...a, ref: i, className: [$.body, n].filter(Boolean).join(" "), children: e });
|
|
1095
1100
|
}
|
|
1096
|
-
function
|
|
1101
|
+
function Ko(e) {
|
|
1097
1102
|
const n = [];
|
|
1098
|
-
let
|
|
1099
|
-
const s = (
|
|
1100
|
-
|
|
1101
|
-
if (!
|
|
1102
|
-
if (c.type ===
|
|
1103
|
-
|
|
1103
|
+
let i = !1, a = !1;
|
|
1104
|
+
const s = (r) => {
|
|
1105
|
+
q.forEach(r, function o(c) {
|
|
1106
|
+
if (!Y(c)) return;
|
|
1107
|
+
if (c.type === pe) {
|
|
1108
|
+
q.forEach(c.props.children, o);
|
|
1104
1109
|
return;
|
|
1105
1110
|
}
|
|
1106
|
-
const
|
|
1107
|
-
typeof
|
|
1111
|
+
const d = c.props.rowId;
|
|
1112
|
+
typeof d == "string" ? n.push(d) : a = !0;
|
|
1108
1113
|
});
|
|
1109
1114
|
};
|
|
1110
|
-
return
|
|
1111
|
-
if (
|
|
1112
|
-
if (o.type ===
|
|
1113
|
-
|
|
1115
|
+
return q.forEach(e, function r(o) {
|
|
1116
|
+
if (Y(o)) {
|
|
1117
|
+
if (o.type === pe) {
|
|
1118
|
+
q.forEach(o.props.children, r);
|
|
1114
1119
|
return;
|
|
1115
1120
|
}
|
|
1116
|
-
o.type ===
|
|
1121
|
+
o.type === Fo && (i = !0, s(o.props.children));
|
|
1117
1122
|
}
|
|
1118
|
-
}), { ids: n, sawBody:
|
|
1123
|
+
}), { ids: n, sawBody: i, hasRowWithoutId: a };
|
|
1119
1124
|
}
|
|
1120
|
-
function
|
|
1125
|
+
function Ei({
|
|
1121
1126
|
size: e = 40,
|
|
1122
1127
|
stickyHeader: n,
|
|
1123
|
-
sortable:
|
|
1128
|
+
sortable: i = !1,
|
|
1124
1129
|
sort: a = null,
|
|
1125
1130
|
onSortChange: s,
|
|
1126
|
-
selectable:
|
|
1127
|
-
selected: o =
|
|
1131
|
+
selectable: r = !1,
|
|
1132
|
+
selected: o = je,
|
|
1128
1133
|
onSelectionChange: c,
|
|
1129
|
-
children:
|
|
1130
|
-
className:
|
|
1134
|
+
children: d,
|
|
1135
|
+
className: l,
|
|
1131
1136
|
ref: u,
|
|
1132
1137
|
...h
|
|
1133
1138
|
}) {
|
|
1134
|
-
const
|
|
1135
|
-
return process.env.NODE_ENV !== "production" && (
|
|
1139
|
+
const f = [$.table, n && $.sticky, l].filter(Boolean).join(" "), { ids: g, sawBody: b, hasRowWithoutId: v } = ae(() => Ko(d), [d]);
|
|
1140
|
+
return process.env.NODE_ENV !== "production" && (i && !s && console.warn("Psi Table: `sortable` is set without `onSortChange`; sorting will not respond."), r && !c && console.warn("Psi Table: `selectable` is set without `onSelectionChange`; selection will not respond."), r && !b && 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."), r && v && 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(X.Provider, { value: { size: e, sortable: i, sort: a, onSortChange: s, selectable: r, selected: o, onSelectionChange: c }, children: /* @__PURE__ */ t(Te.Provider, { value: g, children: /* @__PURE__ */ t("table", { ...h, ref: u, className: f, "data-size": e, children: d }) }) });
|
|
1136
1141
|
}
|
|
1137
|
-
function
|
|
1138
|
-
const { selected:
|
|
1139
|
-
const
|
|
1140
|
-
|
|
1142
|
+
function Uo({ rowId: e, label: n }) {
|
|
1143
|
+
const { selected: i, onSelectionChange: a } = j(X), s = () => {
|
|
1144
|
+
const r = new Set(i);
|
|
1145
|
+
r.has(e) ? r.delete(e) : r.add(e), a == null || a(r);
|
|
1141
1146
|
};
|
|
1142
|
-
return /* @__PURE__ */ t("td", { className: `${
|
|
1147
|
+
return /* @__PURE__ */ t("td", { className: `${$.cell} ${$.selectCell}`, children: /* @__PURE__ */ t(Ce, { "aria-label": n, checked: i.has(e), onChange: s }) });
|
|
1143
1148
|
}
|
|
1144
|
-
function
|
|
1145
|
-
const { selected: e, onSelectionChange: n } =
|
|
1149
|
+
function Go() {
|
|
1150
|
+
const { selected: e, onSelectionChange: n } = j(X), i = j(Te), a = L(null), s = i.length > 0 && i.every((c) => e.has(c)), r = i.some((c) => e.has(c));
|
|
1146
1151
|
C(() => {
|
|
1147
|
-
a.current && (a.current.indeterminate =
|
|
1148
|
-
}, [
|
|
1152
|
+
a.current && (a.current.indeterminate = r && !s);
|
|
1153
|
+
}, [r, s]);
|
|
1149
1154
|
const o = () => {
|
|
1150
1155
|
const c = new Set(e);
|
|
1151
|
-
s ?
|
|
1156
|
+
s ? i.forEach((d) => c.delete(d)) : i.forEach((d) => c.add(d)), n == null || n(c);
|
|
1152
1157
|
};
|
|
1153
|
-
return /* @__PURE__ */ t("th", { scope: "col", className: `${
|
|
1154
|
-
}
|
|
1155
|
-
function
|
|
1156
|
-
const { selectable: s } =
|
|
1157
|
-
let
|
|
1158
|
-
const o = s ?
|
|
1159
|
-
if (
|
|
1160
|
-
|
|
1161
|
-
const
|
|
1158
|
+
return /* @__PURE__ */ t("th", { scope: "col", className: `${$.headerCell} ${$.selectCell}`, children: /* @__PURE__ */ t(Ce, { ref: a, "aria-label": "Select all rows", checked: s, onChange: o }) });
|
|
1159
|
+
}
|
|
1160
|
+
function Ai({ children: e, className: n, ref: i, ...a }) {
|
|
1161
|
+
const { selectable: s } = j(X);
|
|
1162
|
+
let r = !1;
|
|
1163
|
+
const o = s ? q.map(e, (c) => {
|
|
1164
|
+
if (r || !Y(c)) return c;
|
|
1165
|
+
r = !0;
|
|
1166
|
+
const d = c;
|
|
1162
1167
|
return de(
|
|
1163
|
-
|
|
1168
|
+
d,
|
|
1164
1169
|
void 0,
|
|
1165
|
-
/* @__PURE__ */ _(
|
|
1166
|
-
/* @__PURE__ */ t(
|
|
1167
|
-
|
|
1170
|
+
/* @__PURE__ */ _(ie, { children: [
|
|
1171
|
+
/* @__PURE__ */ t(Go, {}),
|
|
1172
|
+
d.props.children
|
|
1168
1173
|
] })
|
|
1169
1174
|
);
|
|
1170
1175
|
}) : e;
|
|
1171
|
-
return /* @__PURE__ */ t("thead", { ...a, ref:
|
|
1176
|
+
return /* @__PURE__ */ t("thead", { ...a, ref: i, className: [$.head, n].filter(Boolean).join(" "), children: o });
|
|
1172
1177
|
}
|
|
1173
|
-
function
|
|
1174
|
-
const { selectable: o, selected: c } =
|
|
1178
|
+
function Mi({ rowId: e, selectLabel: n, children: i, className: a, ref: s, ...r }) {
|
|
1179
|
+
const { selectable: o, selected: c } = j(X), d = e !== void 0 && c.has(e);
|
|
1175
1180
|
return /* @__PURE__ */ _(
|
|
1176
1181
|
"tr",
|
|
1177
1182
|
{
|
|
1178
|
-
...
|
|
1183
|
+
...r,
|
|
1179
1184
|
ref: s,
|
|
1180
|
-
className: [
|
|
1185
|
+
className: [$.row, a].filter(Boolean).join(" "),
|
|
1181
1186
|
"data-row-id": e,
|
|
1182
|
-
"data-selected":
|
|
1187
|
+
"data-selected": d || void 0,
|
|
1183
1188
|
children: [
|
|
1184
|
-
o && e !== void 0 && /* @__PURE__ */ t(
|
|
1185
|
-
|
|
1189
|
+
o && e !== void 0 && /* @__PURE__ */ t(Uo, { rowId: e, label: n ?? `Select row ${e}` }),
|
|
1190
|
+
i
|
|
1186
1191
|
]
|
|
1187
1192
|
}
|
|
1188
1193
|
);
|
|
1189
1194
|
}
|
|
1190
|
-
function
|
|
1191
|
-
const { sortable: o, sort: c, onSortChange:
|
|
1195
|
+
function Wi({ sortKey: e, numeric: n, children: i, className: a, ref: s, ...r }) {
|
|
1196
|
+
const { sortable: o, sort: c, onSortChange: d } = j(X), l = o && e !== void 0, u = l && (c == null ? void 0 : c.key) === e, h = l ? u ? c.direction === "asc" ? "ascending" : "descending" : "none" : void 0, f = () => {
|
|
1192
1197
|
if (!e) return;
|
|
1193
|
-
const
|
|
1194
|
-
|
|
1198
|
+
const g = u && c.direction === "asc" ? "desc" : "asc";
|
|
1199
|
+
d == null || d({ key: e, direction: g });
|
|
1195
1200
|
};
|
|
1196
1201
|
return /* @__PURE__ */ t(
|
|
1197
1202
|
"th",
|
|
1198
1203
|
{
|
|
1199
|
-
...
|
|
1204
|
+
...r,
|
|
1200
1205
|
ref: s,
|
|
1201
1206
|
scope: "col",
|
|
1202
|
-
className: [
|
|
1207
|
+
className: [$.headerCell, a].filter(Boolean).join(" "),
|
|
1203
1208
|
"data-numeric": n || void 0,
|
|
1204
1209
|
"aria-sort": h,
|
|
1205
|
-
children:
|
|
1206
|
-
|
|
1207
|
-
/* @__PURE__ */ t("span", { className:
|
|
1208
|
-
] }) :
|
|
1210
|
+
children: l ? /* @__PURE__ */ _("button", { type: "button", className: $.sortButton, onClick: f, children: [
|
|
1211
|
+
i,
|
|
1212
|
+
/* @__PURE__ */ t("span", { className: $.sortIndicator, "aria-hidden": "true", children: u ? c.direction === "asc" ? "↑" : "↓" : "" })
|
|
1213
|
+
] }) : i
|
|
1209
1214
|
}
|
|
1210
1215
|
);
|
|
1211
1216
|
}
|
|
1212
|
-
function
|
|
1213
|
-
const c = [
|
|
1214
|
-
return
|
|
1217
|
+
function Di({ numeric: e, colSpan: n, rowHeader: i, children: a, className: s, ref: r, ...o }) {
|
|
1218
|
+
const c = [$.cell, i && $.rowHeader, s].filter(Boolean).join(" ");
|
|
1219
|
+
return i ? /* @__PURE__ */ t("th", { ...o, ref: r, scope: "row", colSpan: n, className: c, "data-numeric": e || void 0, children: a }) : /* @__PURE__ */ t("td", { ...o, ref: r, colSpan: n, className: c, "data-numeric": e || void 0, children: a });
|
|
1215
1220
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return /* @__PURE__ */ _("caption", { ...s, ref: a, className: [
|
|
1221
|
+
function Pi({ children: e, detail: n, className: i, ref: a, ...s }) {
|
|
1222
|
+
return /* @__PURE__ */ _("caption", { ...s, ref: a, className: [$.caption, i].filter(Boolean).join(" "), children: [
|
|
1218
1223
|
e,
|
|
1219
|
-
n != null && /* @__PURE__ */ t("span", { className:
|
|
1224
|
+
n != null && /* @__PURE__ */ t("span", { className: $.captionDetail, children: n })
|
|
1220
1225
|
] });
|
|
1221
1226
|
}
|
|
1222
|
-
const
|
|
1223
|
-
nav:
|
|
1224
|
-
ellipsis:
|
|
1227
|
+
const Yo = "_nav_166vs_6", Zo = "_ellipsis_166vs_12", $e = {
|
|
1228
|
+
nav: Yo,
|
|
1229
|
+
ellipsis: Zo
|
|
1225
1230
|
};
|
|
1226
|
-
function
|
|
1227
|
-
return Array.from({ length: n - e + 1 }, (
|
|
1228
|
-
}
|
|
1229
|
-
function
|
|
1230
|
-
const a = Math.max(0,
|
|
1231
|
-
if (n <=
|
|
1232
|
-
return
|
|
1233
|
-
const o = Math.max(e - a, 1), c = Math.min(e + a, n),
|
|
1234
|
-
if (!
|
|
1231
|
+
function ne(e, n) {
|
|
1232
|
+
return Array.from({ length: n - e + 1 }, (i, a) => e + a);
|
|
1233
|
+
}
|
|
1234
|
+
function Xo(e, n, i) {
|
|
1235
|
+
const a = Math.max(0, i), s = a * 2 + 1, r = s + 4;
|
|
1236
|
+
if (n <= r)
|
|
1237
|
+
return ne(1, n);
|
|
1238
|
+
const o = Math.max(e - a, 1), c = Math.min(e + a, n), d = o > 3, l = c < n - 2;
|
|
1239
|
+
if (!d && l) {
|
|
1235
1240
|
const u = Math.max(c, s);
|
|
1236
|
-
return [...
|
|
1241
|
+
return [...ne(1, u), "ellipsis", n];
|
|
1237
1242
|
}
|
|
1238
|
-
if (
|
|
1243
|
+
if (d && !l) {
|
|
1239
1244
|
const u = Math.min(o, n - s + 1);
|
|
1240
|
-
return [1, "ellipsis", ...
|
|
1245
|
+
return [1, "ellipsis", ...ne(u, n)];
|
|
1241
1246
|
}
|
|
1242
|
-
return
|
|
1247
|
+
return d && l ? [1, "ellipsis", ...ne(o, c), "ellipsis", n] : ne(1, n);
|
|
1243
1248
|
}
|
|
1244
|
-
function
|
|
1249
|
+
function qi({
|
|
1245
1250
|
page: e,
|
|
1246
1251
|
pageCount: n,
|
|
1247
|
-
onPageChange:
|
|
1252
|
+
onPageChange: i,
|
|
1248
1253
|
siblingCount: a = 1,
|
|
1249
1254
|
"aria-label": s = "Pagination",
|
|
1250
|
-
className:
|
|
1255
|
+
className: r
|
|
1251
1256
|
}) {
|
|
1252
|
-
const o = n >= 1, c = Number.isFinite(e) ? e : 1,
|
|
1253
|
-
process.env.NODE_ENV !== "production" && (!o || e !==
|
|
1254
|
-
`Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${o ?
|
|
1257
|
+
const o = n >= 1, c = Number.isFinite(e) ? e : 1, d = o ? Math.min(Math.max(c, 1), n) : 0;
|
|
1258
|
+
process.env.NODE_ENV !== "production" && (!o || e !== d) && console.warn(
|
|
1259
|
+
`Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${o ? d : "none"}. Clamp \`page\` when \`pageCount\` shrinks — e.g. after filtering.`
|
|
1255
1260
|
);
|
|
1256
|
-
const
|
|
1257
|
-
return /* @__PURE__ */ _("nav", { "aria-label": s, className: [
|
|
1261
|
+
const l = o ? Xo(d, n, a) : [];
|
|
1262
|
+
return /* @__PURE__ */ _("nav", { "aria-label": s, className: [$e.nav, r].filter(Boolean).join(" "), children: [
|
|
1258
1263
|
/* @__PURE__ */ t(
|
|
1259
|
-
|
|
1264
|
+
te,
|
|
1260
1265
|
{
|
|
1261
1266
|
"aria-label": "Previous page",
|
|
1262
1267
|
size: 32,
|
|
1263
1268
|
variant: "ghost",
|
|
1264
|
-
disabled: !o ||
|
|
1265
|
-
onClick: () =>
|
|
1269
|
+
disabled: !o || d <= 1,
|
|
1270
|
+
onClick: () => i(d - 1),
|
|
1266
1271
|
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" }) })
|
|
1267
1272
|
}
|
|
1268
1273
|
),
|
|
1269
|
-
|
|
1270
|
-
(u, h) => u === "ellipsis" ? /* @__PURE__ */ t("span", { className:
|
|
1271
|
-
|
|
1274
|
+
l.map(
|
|
1275
|
+
(u, h) => u === "ellipsis" ? /* @__PURE__ */ t("span", { className: $e.ellipsis, "aria-hidden": "true", children: "…" }, `e${h}`) : /* @__PURE__ */ t(
|
|
1276
|
+
ce,
|
|
1272
1277
|
{
|
|
1273
1278
|
size: 32,
|
|
1274
|
-
variant: u ===
|
|
1275
|
-
"aria-current": u ===
|
|
1276
|
-
onClick: () =>
|
|
1279
|
+
variant: u === d ? "accent-subtle" : "ghost",
|
|
1280
|
+
"aria-current": u === d ? "page" : void 0,
|
|
1281
|
+
onClick: () => i(u),
|
|
1277
1282
|
children: String(u)
|
|
1278
1283
|
},
|
|
1279
1284
|
u
|
|
1280
1285
|
)
|
|
1281
1286
|
),
|
|
1282
1287
|
/* @__PURE__ */ t(
|
|
1283
|
-
|
|
1288
|
+
te,
|
|
1284
1289
|
{
|
|
1285
1290
|
"aria-label": "Next page",
|
|
1286
1291
|
size: 32,
|
|
1287
1292
|
variant: "ghost",
|
|
1288
|
-
disabled: !o ||
|
|
1289
|
-
onClick: () =>
|
|
1293
|
+
disabled: !o || d >= n,
|
|
1294
|
+
onClick: () => i(d + 1),
|
|
1290
1295
|
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" }) })
|
|
1291
1296
|
}
|
|
1292
1297
|
)
|
|
1293
1298
|
] });
|
|
1294
1299
|
}
|
|
1295
|
-
const
|
|
1296
|
-
nav:
|
|
1300
|
+
const Jo = "_nav_jbhk1_5", Qo = {
|
|
1301
|
+
nav: Jo
|
|
1297
1302
|
};
|
|
1298
|
-
function
|
|
1303
|
+
function Ri({
|
|
1299
1304
|
hasPrevious: e,
|
|
1300
1305
|
hasNext: n,
|
|
1301
|
-
onPrevious:
|
|
1306
|
+
onPrevious: i,
|
|
1302
1307
|
onNext: a,
|
|
1303
1308
|
previousLabel: s = "Previous",
|
|
1304
|
-
nextLabel:
|
|
1309
|
+
nextLabel: r = "Next",
|
|
1305
1310
|
size: o = 32,
|
|
1306
1311
|
"aria-label": c = "Pagination",
|
|
1307
|
-
className:
|
|
1312
|
+
className: d
|
|
1308
1313
|
}) {
|
|
1309
|
-
return /* @__PURE__ */ _("nav", { "aria-label": c, className: [
|
|
1310
|
-
/* @__PURE__ */ _(
|
|
1311
|
-
/* @__PURE__ */ t(
|
|
1314
|
+
return /* @__PURE__ */ _("nav", { "aria-label": c, className: [Qo.nav, d].filter(Boolean).join(" "), children: [
|
|
1315
|
+
/* @__PURE__ */ _(ce, { variant: "ghost", size: o, disabled: !e, onClick: i, children: [
|
|
1316
|
+
/* @__PURE__ */ t(it, { size: 16, "aria-hidden": "true" }),
|
|
1312
1317
|
/* @__PURE__ */ t("span", { children: s })
|
|
1313
1318
|
] }),
|
|
1314
|
-
/* @__PURE__ */ _(
|
|
1315
|
-
/* @__PURE__ */ t("span", { children:
|
|
1316
|
-
/* @__PURE__ */ t(
|
|
1319
|
+
/* @__PURE__ */ _(ce, { variant: "ghost", size: o, disabled: !n, onClick: a, children: [
|
|
1320
|
+
/* @__PURE__ */ t("span", { children: r }),
|
|
1321
|
+
/* @__PURE__ */ t(rt, { size: 16, "aria-hidden": "true" })
|
|
1317
1322
|
] })
|
|
1318
1323
|
] });
|
|
1319
1324
|
}
|
|
1320
|
-
const
|
|
1321
|
-
neutral:
|
|
1322
|
-
success:
|
|
1323
|
-
warning:
|
|
1324
|
-
danger:
|
|
1325
|
-
},
|
|
1325
|
+
const be = {
|
|
1326
|
+
neutral: at,
|
|
1327
|
+
success: ot,
|
|
1328
|
+
warning: ct,
|
|
1329
|
+
danger: lt
|
|
1330
|
+
}, er = {
|
|
1326
1331
|
neutral: null,
|
|
1327
1332
|
success: "Success:",
|
|
1328
1333
|
warning: "Warning:",
|
|
1329
1334
|
danger: "Error:"
|
|
1330
1335
|
};
|
|
1331
|
-
function
|
|
1332
|
-
return n === void 0 ?
|
|
1333
|
-
}
|
|
1334
|
-
const
|
|
1335
|
-
toast:
|
|
1336
|
-
icon:
|
|
1337
|
-
iconNeutral:
|
|
1338
|
-
iconSuccess:
|
|
1339
|
-
iconWarning:
|
|
1340
|
-
iconDanger:
|
|
1341
|
-
body:
|
|
1342
|
-
action:
|
|
1343
|
-
region:
|
|
1344
|
-
live:
|
|
1345
|
-
},
|
|
1346
|
-
neutral:
|
|
1347
|
-
success:
|
|
1348
|
-
warning:
|
|
1349
|
-
danger:
|
|
1336
|
+
function ve(e, n) {
|
|
1337
|
+
return n === void 0 ? er[e] : n;
|
|
1338
|
+
}
|
|
1339
|
+
const nr = "_toast_1gxg8_10", tr = "_icon_1gxg8_39", or = "_iconNeutral_1gxg8_44", rr = "_iconSuccess_1gxg8_45", ir = "_iconWarning_1gxg8_46", sr = "_iconDanger_1gxg8_47", ar = "_body_1gxg8_51", cr = "_action_1gxg8_55", lr = "_region_1gxg8_61", dr = "_live_1gxg8_91", I = {
|
|
1340
|
+
toast: nr,
|
|
1341
|
+
icon: tr,
|
|
1342
|
+
iconNeutral: or,
|
|
1343
|
+
iconSuccess: rr,
|
|
1344
|
+
iconWarning: ir,
|
|
1345
|
+
iconDanger: sr,
|
|
1346
|
+
body: ar,
|
|
1347
|
+
action: cr,
|
|
1348
|
+
region: lr,
|
|
1349
|
+
live: dr
|
|
1350
|
+
}, ur = {
|
|
1351
|
+
neutral: I.iconNeutral,
|
|
1352
|
+
success: I.iconSuccess,
|
|
1353
|
+
warning: I.iconWarning,
|
|
1354
|
+
danger: I.iconDanger
|
|
1350
1355
|
};
|
|
1351
|
-
function
|
|
1356
|
+
function ge({
|
|
1352
1357
|
variant: e = "neutral",
|
|
1353
1358
|
children: n,
|
|
1354
|
-
action:
|
|
1359
|
+
action: i,
|
|
1355
1360
|
onDismiss: a,
|
|
1356
1361
|
statusLabel: s,
|
|
1357
|
-
className:
|
|
1362
|
+
className: r,
|
|
1358
1363
|
ref: o
|
|
1359
1364
|
}) {
|
|
1360
|
-
const c =
|
|
1361
|
-
return /* @__PURE__ */ _("div", { ref: o, className:
|
|
1362
|
-
/* @__PURE__ */ t("span", { className: [
|
|
1363
|
-
/* @__PURE__ */ _("div", { className:
|
|
1364
|
-
|
|
1365
|
+
const c = be[e], d = ve(e, s), l = [I.toast, r].filter(Boolean).join(" ");
|
|
1366
|
+
return /* @__PURE__ */ _("div", { ref: o, className: l, "data-variant": e, "data-psi-toast": !0, children: [
|
|
1367
|
+
/* @__PURE__ */ t("span", { className: [I.icon, ur[e]].join(" "), children: /* @__PURE__ */ t(c, { size: 20, "aria-hidden": "true" }) }),
|
|
1368
|
+
/* @__PURE__ */ _("div", { className: I.body, children: [
|
|
1369
|
+
d && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: d }),
|
|
1365
1370
|
n
|
|
1366
1371
|
] }),
|
|
1367
|
-
|
|
1372
|
+
i != null && /* @__PURE__ */ t("div", { className: I.action, children: i }),
|
|
1368
1373
|
a && /* @__PURE__ */ t(
|
|
1369
|
-
|
|
1374
|
+
te,
|
|
1370
1375
|
{
|
|
1371
1376
|
variant: "ghost",
|
|
1372
1377
|
size: 32,
|
|
1373
1378
|
"aria-label": "Dismiss notification",
|
|
1374
1379
|
onClick: a,
|
|
1375
|
-
children: /* @__PURE__ */ t(
|
|
1380
|
+
children: /* @__PURE__ */ t(me, { "aria-hidden": "true" })
|
|
1376
1381
|
}
|
|
1377
1382
|
)
|
|
1378
1383
|
] });
|
|
1379
1384
|
}
|
|
1380
|
-
function
|
|
1385
|
+
function ze({ children: e }) {
|
|
1381
1386
|
return /* @__PURE__ */ t("div", { className: "psi-sr-only", "data-psi-announcement": !0, children: e });
|
|
1382
1387
|
}
|
|
1383
|
-
const
|
|
1384
|
-
function
|
|
1385
|
-
if (!
|
|
1386
|
-
const { politeness: n, variant:
|
|
1387
|
-
return n !== void 0 ? n === "assertive" : e.type ===
|
|
1388
|
+
const hr = /* @__PURE__ */ new Set(["warning", "danger"]);
|
|
1389
|
+
function Be(e) {
|
|
1390
|
+
if (!Y(e) || e.type !== ge && e.type !== ze) return !1;
|
|
1391
|
+
const { politeness: n, variant: i } = e.props;
|
|
1392
|
+
return n !== void 0 ? n === "assertive" : e.type === ge && hr.has(i ?? "neutral");
|
|
1388
1393
|
}
|
|
1389
|
-
function
|
|
1394
|
+
function _r({
|
|
1390
1395
|
placement: e = "bottom-end",
|
|
1391
1396
|
"aria-label": n = "Notifications",
|
|
1392
|
-
children:
|
|
1397
|
+
children: i,
|
|
1393
1398
|
className: a,
|
|
1394
1399
|
ref: s,
|
|
1395
|
-
...
|
|
1400
|
+
...r
|
|
1396
1401
|
}) {
|
|
1397
|
-
const o =
|
|
1402
|
+
const o = L(null), c = (h) => {
|
|
1398
1403
|
o.current = h, typeof s == "function" ? s(h) : s && (s.current = h);
|
|
1399
1404
|
};
|
|
1400
1405
|
C(() => {
|
|
1401
|
-
var
|
|
1406
|
+
var f;
|
|
1402
1407
|
const h = o.current;
|
|
1403
1408
|
if (h)
|
|
1404
|
-
return (
|
|
1405
|
-
var
|
|
1406
|
-
(
|
|
1409
|
+
return (f = h.showPopover) == null || f.call(h), () => {
|
|
1410
|
+
var g;
|
|
1411
|
+
(g = h.hidePopover) == null || g.call(h);
|
|
1407
1412
|
};
|
|
1408
1413
|
}, []);
|
|
1409
|
-
const
|
|
1414
|
+
const d = q.toArray(i), l = d.filter(Be), u = d.filter((h) => !Be(h));
|
|
1410
1415
|
return /* @__PURE__ */ _(
|
|
1411
1416
|
"div",
|
|
1412
1417
|
{
|
|
1413
|
-
...
|
|
1418
|
+
...r,
|
|
1414
1419
|
ref: c,
|
|
1420
|
+
role: "region",
|
|
1415
1421
|
popover: "manual",
|
|
1416
1422
|
"aria-label": n,
|
|
1417
1423
|
"data-placement": e,
|
|
1418
1424
|
"data-psi-toast-region": !0,
|
|
1419
|
-
className: [
|
|
1425
|
+
className: [I.region, a].filter(Boolean).join(" "),
|
|
1420
1426
|
children: [
|
|
1421
|
-
/* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className:
|
|
1422
|
-
/* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", className:
|
|
1427
|
+
/* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", "aria-atomic": "false", className: I.live, children: u }),
|
|
1428
|
+
/* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", "aria-atomic": "false", className: I.live, children: l })
|
|
1423
1429
|
]
|
|
1424
1430
|
}
|
|
1425
1431
|
);
|
|
1426
1432
|
}
|
|
1427
|
-
const
|
|
1428
|
-
function
|
|
1429
|
-
const e =
|
|
1433
|
+
const Ie = Z(null);
|
|
1434
|
+
function Hi() {
|
|
1435
|
+
const e = j(Ie);
|
|
1430
1436
|
if (!e)
|
|
1431
1437
|
throw new Error(
|
|
1432
1438
|
"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."
|
|
1433
1439
|
);
|
|
1434
1440
|
return e;
|
|
1435
1441
|
}
|
|
1436
|
-
|
|
1442
|
+
const fr = 1e3;
|
|
1443
|
+
function Vi({
|
|
1437
1444
|
limit: e = 3,
|
|
1438
1445
|
duration: n = 5e3,
|
|
1439
|
-
actionDuration:
|
|
1446
|
+
actionDuration: i = 1e4,
|
|
1440
1447
|
placement: a = "bottom-end",
|
|
1441
|
-
children: s
|
|
1448
|
+
children: s,
|
|
1449
|
+
...r
|
|
1442
1450
|
}) {
|
|
1443
|
-
const [
|
|
1444
|
-
const
|
|
1445
|
-
(
|
|
1446
|
-
}, []),
|
|
1447
|
-
(
|
|
1448
|
-
const
|
|
1449
|
-
|
|
1451
|
+
const [o, c] = se([]), [d, l] = se([]), u = L(/* @__PURE__ */ new Map()), h = L(!1), f = L(0), g = R(), b = w((p) => {
|
|
1452
|
+
const m = u.current.get(p);
|
|
1453
|
+
(m == null ? void 0 : m.handle) !== void 0 && clearTimeout(m.handle), u.current.delete(p), c((k) => k.some((T) => T.id === p) ? k.filter((T) => T.id !== p) : k), l((k) => k.some((T) => T.id === p) ? k.filter((T) => T.id !== p) : k);
|
|
1454
|
+
}, []), v = w(
|
|
1455
|
+
(p, m) => {
|
|
1456
|
+
const k = h.current ? { handle: void 0, remaining: m, startedAt: void 0 } : { handle: setTimeout(() => b(p), m), remaining: m, startedAt: Date.now() };
|
|
1457
|
+
u.current.set(p, k);
|
|
1450
1458
|
},
|
|
1451
|
-
[
|
|
1452
|
-
),
|
|
1453
|
-
({ variant:
|
|
1454
|
-
const
|
|
1455
|
-
return
|
|
1456
|
-
const
|
|
1457
|
-
...
|
|
1458
|
-
{ id:
|
|
1459
|
+
[b]
|
|
1460
|
+
), N = w(
|
|
1461
|
+
({ variant: p = "neutral", message: m, action: k, politeness: T, statusLabel: De }) => {
|
|
1462
|
+
const _e = `${g}-${f.current++}`, we = k != null ? i : n;
|
|
1463
|
+
return c((Pe) => {
|
|
1464
|
+
const fe = [
|
|
1465
|
+
...Pe,
|
|
1466
|
+
{ id: _e, variant: p, message: m, action: k, politeness: T, statusLabel: De, duration: we }
|
|
1459
1467
|
];
|
|
1460
|
-
for (;
|
|
1461
|
-
const
|
|
1462
|
-
(
|
|
1468
|
+
for (; fe.length > e; ) {
|
|
1469
|
+
const xe = fe.shift(), oe = u.current.get(xe.id);
|
|
1470
|
+
(oe == null ? void 0 : oe.handle) !== void 0 && clearTimeout(oe.handle), u.current.delete(xe.id);
|
|
1463
1471
|
}
|
|
1464
|
-
return
|
|
1465
|
-
}),
|
|
1472
|
+
return fe;
|
|
1473
|
+
}), v(_e, we), _e;
|
|
1474
|
+
},
|
|
1475
|
+
[i, v, n, g, e]
|
|
1476
|
+
), y = w(
|
|
1477
|
+
(p, { politeness: m = "polite" } = {}) => {
|
|
1478
|
+
const k = `${g}-${f.current++}`;
|
|
1479
|
+
return l((T) => [...T, { id: k, message: p, politeness: m }]), v(k, fr), k;
|
|
1466
1480
|
},
|
|
1467
|
-
[
|
|
1468
|
-
),
|
|
1469
|
-
for (const
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
}, []),
|
|
1473
|
-
if (!
|
|
1474
|
-
|
|
1475
|
-
for (const [
|
|
1476
|
-
if (
|
|
1477
|
-
clearTimeout(
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1481
|
+
[v, g]
|
|
1482
|
+
), x = w(() => {
|
|
1483
|
+
for (const p of u.current.values())
|
|
1484
|
+
p.handle !== void 0 && clearTimeout(p.handle);
|
|
1485
|
+
u.current.clear(), c([]), l([]);
|
|
1486
|
+
}, []), A = w(() => {
|
|
1487
|
+
if (!h.current) {
|
|
1488
|
+
h.current = !0;
|
|
1489
|
+
for (const [p, m] of u.current) {
|
|
1490
|
+
if (m.handle === void 0) continue;
|
|
1491
|
+
clearTimeout(m.handle);
|
|
1492
|
+
const k = m.startedAt === void 0 ? 0 : Date.now() - m.startedAt;
|
|
1493
|
+
u.current.set(p, {
|
|
1480
1494
|
handle: void 0,
|
|
1481
|
-
remaining: Math.max(0,
|
|
1495
|
+
remaining: Math.max(0, m.remaining - k),
|
|
1482
1496
|
startedAt: void 0
|
|
1483
1497
|
});
|
|
1484
1498
|
}
|
|
1485
1499
|
}
|
|
1486
|
-
}, []),
|
|
1487
|
-
if (
|
|
1488
|
-
|
|
1489
|
-
for (const [
|
|
1490
|
-
|
|
1491
|
-
handle: setTimeout(() =>
|
|
1492
|
-
remaining:
|
|
1500
|
+
}, []), J = w(() => {
|
|
1501
|
+
if (h.current) {
|
|
1502
|
+
h.current = !1;
|
|
1503
|
+
for (const [p, m] of u.current)
|
|
1504
|
+
m.handle === void 0 && u.current.set(p, {
|
|
1505
|
+
handle: setTimeout(() => b(p), m.remaining),
|
|
1506
|
+
remaining: m.remaining,
|
|
1493
1507
|
startedAt: Date.now()
|
|
1494
1508
|
});
|
|
1495
1509
|
}
|
|
1496
|
-
}, [
|
|
1510
|
+
}, [b]);
|
|
1497
1511
|
C(() => {
|
|
1498
|
-
const
|
|
1512
|
+
const p = u.current;
|
|
1499
1513
|
return () => {
|
|
1500
|
-
for (const
|
|
1501
|
-
|
|
1502
|
-
|
|
1514
|
+
for (const m of p.values())
|
|
1515
|
+
m.handle !== void 0 && clearTimeout(m.handle);
|
|
1516
|
+
p.clear();
|
|
1503
1517
|
};
|
|
1504
1518
|
}, []);
|
|
1505
|
-
const
|
|
1506
|
-
() => ({ show:
|
|
1507
|
-
[
|
|
1519
|
+
const We = ae(
|
|
1520
|
+
() => ({ show: N, announce: y, dismiss: b, clear: x }),
|
|
1521
|
+
[N, y, b, x]
|
|
1508
1522
|
);
|
|
1509
|
-
return /* @__PURE__ */ _(
|
|
1523
|
+
return /* @__PURE__ */ _(Ie.Provider, { value: We, children: [
|
|
1510
1524
|
s,
|
|
1511
1525
|
/* @__PURE__ */ t(
|
|
1512
1526
|
"div",
|
|
1513
1527
|
{
|
|
1514
|
-
onPointerEnter:
|
|
1515
|
-
onPointerLeave:
|
|
1516
|
-
onFocusCapture:
|
|
1517
|
-
onBlurCapture:
|
|
1518
|
-
children: /* @__PURE__ */
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1528
|
+
onPointerEnter: A,
|
|
1529
|
+
onPointerLeave: J,
|
|
1530
|
+
onFocusCapture: A,
|
|
1531
|
+
onBlurCapture: J,
|
|
1532
|
+
children: /* @__PURE__ */ _(_r, { ...r, placement: a, children: [
|
|
1533
|
+
o.map((p) => /* @__PURE__ */ t(
|
|
1534
|
+
ge,
|
|
1535
|
+
{
|
|
1536
|
+
variant: p.variant,
|
|
1537
|
+
action: p.action,
|
|
1538
|
+
politeness: p.politeness,
|
|
1539
|
+
statusLabel: p.statusLabel,
|
|
1540
|
+
onDismiss: () => b(p.id),
|
|
1541
|
+
children: p.message
|
|
1542
|
+
},
|
|
1543
|
+
p.id
|
|
1544
|
+
)),
|
|
1545
|
+
d.map((p) => /* @__PURE__ */ t(ze, { politeness: p.politeness, children: p.message }, p.id))
|
|
1546
|
+
] })
|
|
1530
1547
|
}
|
|
1531
1548
|
)
|
|
1532
1549
|
] });
|
|
1533
1550
|
}
|
|
1534
|
-
const
|
|
1535
|
-
banner:
|
|
1536
|
-
icon:
|
|
1537
|
-
iconNeutral:
|
|
1538
|
-
iconSuccess:
|
|
1539
|
-
iconWarning:
|
|
1540
|
-
iconDanger:
|
|
1541
|
-
body:
|
|
1542
|
-
title:
|
|
1543
|
-
action:
|
|
1544
|
-
},
|
|
1545
|
-
neutral:
|
|
1546
|
-
success:
|
|
1547
|
-
warning:
|
|
1548
|
-
danger:
|
|
1551
|
+
const pr = "_banner_pco49_7", gr = "_icon_pco49_26", mr = "_iconNeutral_pco49_31", br = "_iconSuccess_pco49_32", vr = "_iconWarning_pco49_33", yr = "_iconDanger_pco49_34", wr = "_body_pco49_36", xr = "_title_pco49_40", kr = "_action_pco49_45", M = {
|
|
1552
|
+
banner: pr,
|
|
1553
|
+
icon: gr,
|
|
1554
|
+
iconNeutral: mr,
|
|
1555
|
+
iconSuccess: br,
|
|
1556
|
+
iconWarning: vr,
|
|
1557
|
+
iconDanger: yr,
|
|
1558
|
+
body: wr,
|
|
1559
|
+
title: xr,
|
|
1560
|
+
action: kr
|
|
1561
|
+
}, Nr = {
|
|
1562
|
+
neutral: M.iconNeutral,
|
|
1563
|
+
success: M.iconSuccess,
|
|
1564
|
+
warning: M.iconWarning,
|
|
1565
|
+
danger: M.iconDanger
|
|
1549
1566
|
};
|
|
1550
|
-
function
|
|
1567
|
+
function Oi({
|
|
1551
1568
|
variant: e = "neutral",
|
|
1552
1569
|
title: n,
|
|
1553
|
-
children:
|
|
1570
|
+
children: i,
|
|
1554
1571
|
action: a,
|
|
1555
1572
|
onDismiss: s,
|
|
1556
|
-
statusLabel:
|
|
1573
|
+
statusLabel: r,
|
|
1557
1574
|
className: o,
|
|
1558
1575
|
ref: c,
|
|
1559
|
-
...
|
|
1576
|
+
...d
|
|
1560
1577
|
}) {
|
|
1561
|
-
const
|
|
1562
|
-
return /* @__PURE__ */ _("div", { ...
|
|
1563
|
-
/* @__PURE__ */ t("span", { className: [
|
|
1564
|
-
/* @__PURE__ */ _("div", { className:
|
|
1578
|
+
const l = be[e], u = ve(e, r), h = [M.banner, o].filter(Boolean).join(" ");
|
|
1579
|
+
return /* @__PURE__ */ _("div", { ...d, ref: c, className: h, "data-variant": e, "data-psi-banner": !0, children: [
|
|
1580
|
+
/* @__PURE__ */ t("span", { className: [M.icon, Nr[e]].join(" "), children: /* @__PURE__ */ t(l, { size: 20, "aria-hidden": "true" }) }),
|
|
1581
|
+
/* @__PURE__ */ _("div", { className: M.body, children: [
|
|
1565
1582
|
u && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: u }),
|
|
1566
|
-
n != null && /* @__PURE__ */ t("strong", { className:
|
|
1567
|
-
|
|
1583
|
+
n != null && /* @__PURE__ */ t("strong", { className: M.title, children: n }),
|
|
1584
|
+
i
|
|
1568
1585
|
] }),
|
|
1569
|
-
a != null && /* @__PURE__ */ t("div", { className:
|
|
1570
|
-
s && /* @__PURE__ */ t(
|
|
1586
|
+
a != null && /* @__PURE__ */ t("div", { className: M.action, children: a }),
|
|
1587
|
+
s && /* @__PURE__ */ t(te, { variant: "ghost", size: 32, "aria-label": "Dismiss", onClick: s, children: /* @__PURE__ */ t(me, { "aria-hidden": "true" }) })
|
|
1571
1588
|
] });
|
|
1572
1589
|
}
|
|
1573
|
-
const
|
|
1574
|
-
inlineAlert:
|
|
1575
|
-
icon:
|
|
1576
|
-
iconNeutral:
|
|
1577
|
-
iconSuccess:
|
|
1578
|
-
iconWarning:
|
|
1579
|
-
iconDanger:
|
|
1580
|
-
body:
|
|
1581
|
-
title:
|
|
1582
|
-
action:
|
|
1583
|
-
},
|
|
1584
|
-
neutral:
|
|
1585
|
-
success:
|
|
1586
|
-
warning:
|
|
1587
|
-
danger:
|
|
1590
|
+
const $r = "_inlineAlert_1tt2h_7", Br = "_icon_1tt2h_38", Lr = "_iconNeutral_1tt2h_43", Cr = "_iconSuccess_1tt2h_44", Sr = "_iconWarning_1tt2h_45", jr = "_iconDanger_1tt2h_46", Tr = "_body_1tt2h_48", zr = "_title_1tt2h_52", Ir = "_action_1tt2h_57", W = {
|
|
1591
|
+
inlineAlert: $r,
|
|
1592
|
+
icon: Br,
|
|
1593
|
+
iconNeutral: Lr,
|
|
1594
|
+
iconSuccess: Cr,
|
|
1595
|
+
iconWarning: Sr,
|
|
1596
|
+
iconDanger: jr,
|
|
1597
|
+
body: Tr,
|
|
1598
|
+
title: zr,
|
|
1599
|
+
action: Ir
|
|
1600
|
+
}, Er = {
|
|
1601
|
+
neutral: W.iconNeutral,
|
|
1602
|
+
success: W.iconSuccess,
|
|
1603
|
+
warning: W.iconWarning,
|
|
1604
|
+
danger: W.iconDanger
|
|
1588
1605
|
};
|
|
1589
|
-
function
|
|
1606
|
+
function Fi({
|
|
1590
1607
|
variant: e = "neutral",
|
|
1591
1608
|
title: n,
|
|
1592
|
-
children:
|
|
1609
|
+
children: i,
|
|
1593
1610
|
action: a,
|
|
1594
1611
|
statusLabel: s,
|
|
1595
|
-
className:
|
|
1612
|
+
className: r,
|
|
1596
1613
|
ref: o,
|
|
1597
1614
|
...c
|
|
1598
1615
|
}) {
|
|
1599
|
-
const
|
|
1616
|
+
const d = be[e], l = ve(e, s), u = [W.inlineAlert, r].filter(Boolean).join(" ");
|
|
1600
1617
|
return /* @__PURE__ */ _("div", { ...c, ref: o, className: u, "data-variant": e, "data-psi-inline-alert": !0, children: [
|
|
1601
|
-
/* @__PURE__ */ t("span", { className: [
|
|
1602
|
-
/* @__PURE__ */ _("div", { className:
|
|
1603
|
-
|
|
1604
|
-
n != null && /* @__PURE__ */ t("strong", { className:
|
|
1605
|
-
|
|
1618
|
+
/* @__PURE__ */ t("span", { className: [W.icon, Er[e]].join(" "), children: /* @__PURE__ */ t(d, { size: 20, "aria-hidden": "true" }) }),
|
|
1619
|
+
/* @__PURE__ */ _("div", { className: W.body, children: [
|
|
1620
|
+
l && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: l }),
|
|
1621
|
+
n != null && /* @__PURE__ */ t("strong", { className: W.title, children: n }),
|
|
1622
|
+
i
|
|
1606
1623
|
] }),
|
|
1607
|
-
a != null && /* @__PURE__ */ t("div", { className:
|
|
1624
|
+
a != null && /* @__PURE__ */ t("div", { className: W.action, children: a })
|
|
1608
1625
|
] });
|
|
1609
1626
|
}
|
|
1610
|
-
const
|
|
1611
|
-
skeleton:
|
|
1612
|
-
line:
|
|
1627
|
+
const Ar = "_skeleton_1yo7t_12", Mr = "_line_1yo7t_28", Le = {
|
|
1628
|
+
skeleton: Ar,
|
|
1629
|
+
line: Mr
|
|
1613
1630
|
};
|
|
1614
|
-
function
|
|
1631
|
+
function Ki({
|
|
1615
1632
|
variant: e = "text",
|
|
1616
1633
|
lines: n = 1,
|
|
1617
|
-
size:
|
|
1634
|
+
size: i = 40,
|
|
1618
1635
|
className: a,
|
|
1619
1636
|
ref: s,
|
|
1620
|
-
...
|
|
1637
|
+
...r
|
|
1621
1638
|
}) {
|
|
1622
|
-
const o = [
|
|
1639
|
+
const o = [Le.skeleton, a].filter(Boolean).join(" "), c = Math.max(1, Math.floor(n));
|
|
1623
1640
|
return /* @__PURE__ */ t(
|
|
1624
1641
|
"div",
|
|
1625
1642
|
{
|
|
1626
|
-
...
|
|
1643
|
+
...r,
|
|
1627
1644
|
ref: s,
|
|
1628
1645
|
className: o,
|
|
1629
1646
|
"aria-hidden": "true",
|
|
1630
1647
|
"data-psi-skeleton": !0,
|
|
1631
1648
|
"data-variant": e,
|
|
1632
|
-
"data-size": e === "block" ?
|
|
1633
|
-
children: e === "text" && Array.from({ length: c }, (
|
|
1649
|
+
"data-size": e === "block" ? i : void 0,
|
|
1650
|
+
children: e === "text" && Array.from({ length: c }, (d, l) => /* @__PURE__ */ t("span", { className: Le.line }, l))
|
|
1634
1651
|
}
|
|
1635
1652
|
);
|
|
1636
1653
|
}
|
|
1637
|
-
function
|
|
1654
|
+
function Ui({
|
|
1638
1655
|
value: e,
|
|
1639
1656
|
label: n = "Copy",
|
|
1640
|
-
size:
|
|
1657
|
+
size: i = 32,
|
|
1641
1658
|
variant: a = "ghost",
|
|
1642
1659
|
onCopy: s,
|
|
1643
|
-
className:
|
|
1660
|
+
className: r
|
|
1644
1661
|
}) {
|
|
1645
1662
|
return /* @__PURE__ */ _(
|
|
1646
|
-
|
|
1663
|
+
ce,
|
|
1647
1664
|
{
|
|
1648
1665
|
type: "button",
|
|
1649
1666
|
variant: a,
|
|
1650
|
-
size:
|
|
1651
|
-
className:
|
|
1667
|
+
size: i,
|
|
1668
|
+
className: r,
|
|
1652
1669
|
onClick: () => {
|
|
1653
1670
|
const o = typeof navigator < "u" ? navigator.clipboard : void 0;
|
|
1654
1671
|
if (!(o != null && o.writeText)) {
|
|
@@ -1661,97 +1678,110 @@ function Pr({
|
|
|
1661
1678
|
);
|
|
1662
1679
|
},
|
|
1663
1680
|
children: [
|
|
1664
|
-
/* @__PURE__ */ t(
|
|
1681
|
+
/* @__PURE__ */ t(st, { size: 16, "aria-hidden": "true" }),
|
|
1665
1682
|
/* @__PURE__ */ t("span", { children: n })
|
|
1666
1683
|
]
|
|
1667
1684
|
}
|
|
1668
1685
|
);
|
|
1669
1686
|
}
|
|
1670
|
-
const
|
|
1671
|
-
tabs:
|
|
1672
|
-
list:
|
|
1673
|
-
tab:
|
|
1674
|
-
panel:
|
|
1675
|
-
},
|
|
1676
|
-
function
|
|
1677
|
-
const n =
|
|
1687
|
+
const Wr = "_tabs_1x9om_8", Dr = "_list_1x9om_21", Pr = "_tab_1x9om_8", qr = "_panel_1x9om_99", he = {
|
|
1688
|
+
tabs: Wr,
|
|
1689
|
+
list: Dr,
|
|
1690
|
+
tab: Pr,
|
|
1691
|
+
panel: qr
|
|
1692
|
+
}, Ee = Z(null);
|
|
1693
|
+
function ye(e) {
|
|
1694
|
+
const n = j(Ee);
|
|
1678
1695
|
if (!n)
|
|
1679
1696
|
throw new Error(
|
|
1680
1697
|
`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.`
|
|
1681
1698
|
);
|
|
1682
1699
|
return n;
|
|
1683
1700
|
}
|
|
1684
|
-
function
|
|
1701
|
+
function Gi({
|
|
1685
1702
|
value: e,
|
|
1686
1703
|
onValueChange: n,
|
|
1687
|
-
orientation:
|
|
1704
|
+
orientation: i = "horizontal",
|
|
1688
1705
|
children: a,
|
|
1689
1706
|
className: s,
|
|
1690
|
-
ref:
|
|
1707
|
+
ref: r
|
|
1691
1708
|
}) {
|
|
1692
|
-
const o =
|
|
1693
|
-
()
|
|
1694
|
-
|
|
1709
|
+
const o = R(), [c, d] = se([]), l = w((g) => (d((b) => [...b, g]), () => d((b) => b.filter((v) => v !== g))), []), { tabStop: u, unmatched: h } = ae(() => {
|
|
1710
|
+
if (c.length === 0) return { tabStop: e, unmatched: !1 };
|
|
1711
|
+
if (c.some((v) => v.value === e)) return { tabStop: e, unmatched: !1 };
|
|
1712
|
+
const g = [...c].sort(
|
|
1713
|
+
(v, N) => v.el && N.el && v.el !== N.el ? v.el.compareDocumentPosition(N.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1 : 0
|
|
1714
|
+
);
|
|
1715
|
+
return { tabStop: (g.find((v) => !v.disabled) ?? g[0]).value, unmatched: !0 };
|
|
1716
|
+
}, [c, e]);
|
|
1717
|
+
C(() => {
|
|
1718
|
+
!h || process.env.NODE_ENV === "production" || console.warn(
|
|
1719
|
+
`Tabs: value "${e}" matches no tab; the first enabled tab takes the tab stop.`
|
|
1720
|
+
);
|
|
1721
|
+
}, [h, e]);
|
|
1722
|
+
const f = ae(
|
|
1723
|
+
() => ({ value: e, onValueChange: n, orientation: i, idPrefix: o, tabStop: u, registerTab: l }),
|
|
1724
|
+
[e, n, i, o, u, l]
|
|
1695
1725
|
);
|
|
1696
|
-
return /* @__PURE__ */ t(
|
|
1726
|
+
return /* @__PURE__ */ t(Ee.Provider, { value: f, children: /* @__PURE__ */ t(
|
|
1697
1727
|
"div",
|
|
1698
1728
|
{
|
|
1699
|
-
ref:
|
|
1700
|
-
className: [
|
|
1701
|
-
"data-orientation":
|
|
1729
|
+
ref: r,
|
|
1730
|
+
className: [he.tabs, s].filter(Boolean).join(" "),
|
|
1731
|
+
"data-orientation": i,
|
|
1702
1732
|
children: a
|
|
1703
1733
|
}
|
|
1704
1734
|
) });
|
|
1705
1735
|
}
|
|
1706
|
-
function
|
|
1736
|
+
function Ae(e, n) {
|
|
1707
1737
|
return `${e}tab-${n}`;
|
|
1708
1738
|
}
|
|
1709
|
-
function
|
|
1739
|
+
function Me(e, n) {
|
|
1710
1740
|
return `${e}panel-${n}`;
|
|
1711
1741
|
}
|
|
1712
|
-
function
|
|
1713
|
-
const a =
|
|
1714
|
-
const
|
|
1715
|
-
return
|
|
1716
|
-
|
|
1742
|
+
function Rr({ listRef: e, orientation: n, onValueChange: i }) {
|
|
1743
|
+
const a = w(() => {
|
|
1744
|
+
const r = e.current;
|
|
1745
|
+
return r ? Array.from(
|
|
1746
|
+
r.querySelectorAll('[data-psi-tab]:not([aria-disabled="true"])')
|
|
1717
1747
|
) : [];
|
|
1718
|
-
}, [e]), s =
|
|
1719
|
-
(
|
|
1720
|
-
if (!
|
|
1721
|
-
for (const c of a()) c.tabIndex = c ===
|
|
1722
|
-
|
|
1723
|
-
const o =
|
|
1724
|
-
o != null &&
|
|
1748
|
+
}, [e]), s = w(
|
|
1749
|
+
(r) => {
|
|
1750
|
+
if (!r) return;
|
|
1751
|
+
for (const c of a()) c.tabIndex = c === r ? 0 : -1;
|
|
1752
|
+
r.focus();
|
|
1753
|
+
const o = r.dataset.value;
|
|
1754
|
+
o != null && i(o);
|
|
1725
1755
|
},
|
|
1726
|
-
[a,
|
|
1756
|
+
[a, i]
|
|
1727
1757
|
);
|
|
1728
|
-
return
|
|
1729
|
-
(
|
|
1758
|
+
return w(
|
|
1759
|
+
(r) => {
|
|
1730
1760
|
const o = a();
|
|
1731
1761
|
if (o.length === 0) return;
|
|
1732
|
-
const [c,
|
|
1733
|
-
switch (
|
|
1734
|
-
case
|
|
1735
|
-
|
|
1762
|
+
const [c, d] = n === "vertical" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"], l = o.indexOf(document.activeElement);
|
|
1763
|
+
switch (r.key) {
|
|
1764
|
+
case d:
|
|
1765
|
+
r.preventDefault(), s(o[(l + 1 + o.length) % o.length]);
|
|
1736
1766
|
break;
|
|
1737
1767
|
case c:
|
|
1738
|
-
|
|
1768
|
+
r.preventDefault(), s(o[(l - 1 + o.length) % o.length]);
|
|
1739
1769
|
break;
|
|
1740
1770
|
case "Home":
|
|
1741
|
-
|
|
1771
|
+
r.preventDefault(), s(o[0]);
|
|
1742
1772
|
break;
|
|
1743
1773
|
case "End":
|
|
1744
|
-
|
|
1774
|
+
r.preventDefault(), s(o[o.length - 1]);
|
|
1745
1775
|
break;
|
|
1746
1776
|
}
|
|
1747
1777
|
},
|
|
1748
1778
|
[s, a, n]
|
|
1749
1779
|
);
|
|
1750
1780
|
}
|
|
1751
|
-
function
|
|
1752
|
-
const { orientation: s, onValueChange:
|
|
1753
|
-
o.current =
|
|
1754
|
-
},
|
|
1781
|
+
function Yi({ "aria-label": e, children: n, className: i, ref: a }) {
|
|
1782
|
+
const { orientation: s, onValueChange: r } = ye("TabList"), o = L(null), c = (l) => {
|
|
1783
|
+
o.current = l, typeof a == "function" ? a(l) : a && (a.current = l);
|
|
1784
|
+
}, d = Rr({ listRef: o, orientation: s, onValueChange: r });
|
|
1755
1785
|
return /* @__PURE__ */ t(
|
|
1756
1786
|
"div",
|
|
1757
1787
|
{
|
|
@@ -1759,132 +1789,137 @@ function Rr({ "aria-label": e, children: n, className: r, ref: a }) {
|
|
|
1759
1789
|
role: "tablist",
|
|
1760
1790
|
"aria-label": e,
|
|
1761
1791
|
"aria-orientation": s,
|
|
1762
|
-
className: [
|
|
1763
|
-
onKeyDown:
|
|
1792
|
+
className: [he.list, i].filter(Boolean).join(" "),
|
|
1793
|
+
onKeyDown: d,
|
|
1764
1794
|
children: n
|
|
1765
1795
|
}
|
|
1766
1796
|
);
|
|
1767
1797
|
}
|
|
1768
|
-
function
|
|
1769
|
-
const
|
|
1770
|
-
|
|
1798
|
+
function Zi({ value: e, children: n, disabled: i = !1, className: a, ref: s }) {
|
|
1799
|
+
const r = ye("Tab"), o = r.value === e, c = L(null), { registerTab: d } = r, l = (u) => {
|
|
1800
|
+
c.current = u, typeof s == "function" ? s(u) : s && (s.current = u);
|
|
1801
|
+
};
|
|
1802
|
+
return qe(
|
|
1803
|
+
() => d == null ? void 0 : d({ value: e, disabled: i, el: c.current }),
|
|
1804
|
+
[d, e, i]
|
|
1805
|
+
), /* @__PURE__ */ t(
|
|
1771
1806
|
"button",
|
|
1772
1807
|
{
|
|
1773
|
-
ref:
|
|
1808
|
+
ref: l,
|
|
1774
1809
|
type: "button",
|
|
1775
1810
|
role: "tab",
|
|
1776
|
-
id:
|
|
1811
|
+
id: Ae(r.idPrefix, e),
|
|
1777
1812
|
"data-psi-tab": !0,
|
|
1778
1813
|
"data-value": e,
|
|
1779
1814
|
"aria-selected": o,
|
|
1780
|
-
"aria-controls":
|
|
1781
|
-
"aria-disabled":
|
|
1782
|
-
tabIndex:
|
|
1783
|
-
className: [
|
|
1815
|
+
"aria-controls": Me(r.idPrefix, e),
|
|
1816
|
+
"aria-disabled": i || void 0,
|
|
1817
|
+
tabIndex: (r.tabStop ?? r.value) === e ? 0 : -1,
|
|
1818
|
+
className: [he.tab, a].filter(Boolean).join(" "),
|
|
1784
1819
|
onClick: () => {
|
|
1785
|
-
|
|
1820
|
+
i || r.onValueChange(e);
|
|
1786
1821
|
},
|
|
1787
1822
|
children: n
|
|
1788
1823
|
}
|
|
1789
1824
|
);
|
|
1790
1825
|
}
|
|
1791
|
-
function
|
|
1792
|
-
const s =
|
|
1826
|
+
function Xi({ value: e, children: n, className: i, ref: a }) {
|
|
1827
|
+
const s = ye("TabPanel"), r = s.value === e;
|
|
1793
1828
|
return /* @__PURE__ */ t(
|
|
1794
1829
|
"div",
|
|
1795
1830
|
{
|
|
1796
1831
|
ref: a,
|
|
1797
1832
|
role: "tabpanel",
|
|
1798
|
-
id:
|
|
1799
|
-
"aria-labelledby":
|
|
1800
|
-
hidden: !
|
|
1833
|
+
id: Me(s.idPrefix, e),
|
|
1834
|
+
"aria-labelledby": Ae(s.idPrefix, e),
|
|
1835
|
+
hidden: !r,
|
|
1801
1836
|
tabIndex: 0,
|
|
1802
|
-
className: [
|
|
1837
|
+
className: [he.panel, i].filter(Boolean).join(" "),
|
|
1803
1838
|
children: n
|
|
1804
1839
|
}
|
|
1805
1840
|
);
|
|
1806
1841
|
}
|
|
1807
1842
|
export {
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
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
|
-
|
|
1843
|
+
ze as Announcement,
|
|
1844
|
+
Qr as AppShell,
|
|
1845
|
+
ei as AspectRatio,
|
|
1846
|
+
Oi as Banner,
|
|
1847
|
+
ce as Button,
|
|
1848
|
+
Or as Card,
|
|
1849
|
+
Ce as Checkbox,
|
|
1850
|
+
Ui as CopyButton,
|
|
1851
|
+
Ri as CursorPagination,
|
|
1852
|
+
Ur as DescriptionItem,
|
|
1853
|
+
Kr as DescriptionList,
|
|
1854
|
+
Ni as Dialog,
|
|
1855
|
+
ni as Field,
|
|
1856
|
+
ue as FieldContext,
|
|
1857
|
+
lt as IconAlertCircle,
|
|
1858
|
+
ct as IconAlertTriangle,
|
|
1859
|
+
fi as IconArrowDown,
|
|
1860
|
+
pi as IconArrowUpRight,
|
|
1861
|
+
te as IconButton,
|
|
1862
|
+
ot as IconCheck,
|
|
1863
|
+
Vn as IconChevronDown,
|
|
1864
|
+
it as IconChevronLeft,
|
|
1865
|
+
rt as IconChevronRight,
|
|
1866
|
+
me as IconClose,
|
|
1867
|
+
st as IconCopy,
|
|
1868
|
+
ci as IconEdit,
|
|
1869
|
+
di as IconExternalLink,
|
|
1870
|
+
ui as IconEye,
|
|
1871
|
+
hi as IconEyeOff,
|
|
1872
|
+
mi as IconGitHub,
|
|
1873
|
+
at as IconInfo,
|
|
1874
|
+
vi as IconInstagram,
|
|
1875
|
+
gi as IconLinkedIn,
|
|
1876
|
+
_i as IconLoader,
|
|
1877
|
+
xi as IconLogOut,
|
|
1878
|
+
wi as IconMenu,
|
|
1879
|
+
ri as IconMinus,
|
|
1880
|
+
yi as IconMoreHorizontal,
|
|
1881
|
+
oi as IconPlus,
|
|
1882
|
+
ii as IconSearch,
|
|
1883
|
+
si as IconSettings,
|
|
1884
|
+
ki as IconSimCard,
|
|
1885
|
+
li as IconTrash,
|
|
1886
|
+
ai as IconUser,
|
|
1887
|
+
bi as IconX,
|
|
1888
|
+
Fi as InlineAlert,
|
|
1889
|
+
$i as Input,
|
|
1890
|
+
Ti as Menu,
|
|
1891
|
+
Se as MenuContext,
|
|
1892
|
+
zi as MenuItem,
|
|
1893
|
+
Ii as MenuSeparator,
|
|
1894
|
+
Gr as NavBar,
|
|
1895
|
+
Xr as NavGroup,
|
|
1896
|
+
Jr as NavItem,
|
|
1897
|
+
Zr as NavTree,
|
|
1898
|
+
qi as Pagination,
|
|
1899
|
+
Fr as Panel,
|
|
1900
|
+
Bi as Select,
|
|
1901
|
+
Ki as Skeleton,
|
|
1902
|
+
Yr as SkipLink,
|
|
1903
|
+
Li as Switch,
|
|
1904
|
+
Zi as Tab,
|
|
1905
|
+
Yi as TabList,
|
|
1906
|
+
Xi as TabPanel,
|
|
1907
|
+
Ei as Table,
|
|
1908
|
+
Fo as TableBody,
|
|
1909
|
+
Pi as TableCaption,
|
|
1910
|
+
Di as TableCell,
|
|
1911
|
+
Ai as TableHead,
|
|
1912
|
+
Wi as TableHeaderCell,
|
|
1913
|
+
Mi as TableRow,
|
|
1914
|
+
Gi as Tabs,
|
|
1915
|
+
Ee as TabsContext,
|
|
1916
|
+
Ci as Tag,
|
|
1917
|
+
ge as Toast,
|
|
1918
|
+
Ie as ToastContext,
|
|
1919
|
+
Vi as ToastProvider,
|
|
1920
|
+
_r as ToastRegion,
|
|
1921
|
+
ji as Toolbar,
|
|
1922
|
+
Si as Tooltip,
|
|
1923
|
+
ti as useFieldControl,
|
|
1924
|
+
Hi as useToast
|
|
1890
1925
|
};
|