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