@solostylist/ui-kit 1.0.166 → 1.0.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +2 -0
- package/dist/main.js +73 -71
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +12 -2
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +233 -200
- package/dist/s-pixel-reveal/index.d.ts +2 -0
- package/dist/s-pixel-reveal/index.js +4 -0
- package/dist/s-pixel-reveal/package.json +5 -0
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +13 -0
- package/dist/s-pixel-reveal/s-pixel-reveal.js +151 -0
- package/dist/theme/components/alert.d.ts +52 -52
- package/dist/theme/components/button.d.ts +80 -80
- package/dist/theme/components/chip.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
-
import
|
|
2
|
+
import p, { useEffect as oe, useState as W, useMemo as G, useCallback as v } from "react";
|
|
3
3
|
import { c as L } from "../createSvgIcon-DxwgGAVe.js";
|
|
4
4
|
import { C as se } from "../Close-BRlEKA2Q.js";
|
|
5
|
-
import { D as
|
|
6
|
-
import { TextField as
|
|
5
|
+
import { D as le } from "../Download-UsLvGg3y.js";
|
|
6
|
+
import { TextField as J, Typography as te, Box as t, Slider as ne, alpha as z, Divider as ae, Tooltip as B, IconButton as P, Dialog as ce, DialogTitle as ie, DialogContent as de } from "@mui/material";
|
|
7
7
|
import { createPortal as xe } from "react-dom";
|
|
8
|
-
|
|
8
|
+
import he from "../s-select/s-select.js";
|
|
9
|
+
const me = L(/* @__PURE__ */ e.jsx("path", {
|
|
9
10
|
d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"
|
|
10
|
-
}), "AddPhotoAlternate"),
|
|
11
|
+
}), "AddPhotoAlternate"), fe = L(/* @__PURE__ */ e.jsx("path", {
|
|
11
12
|
d: "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"
|
|
12
|
-
}), "Autorenew"),
|
|
13
|
+
}), "Autorenew"), ue = L(/* @__PURE__ */ e.jsx("path", {
|
|
13
14
|
d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
|
|
14
|
-
}), "InfoOutlined"),
|
|
15
|
+
}), "InfoOutlined"), ye = L(/* @__PURE__ */ e.jsx("path", {
|
|
15
16
|
d: "M8 5v14l11-7z"
|
|
16
|
-
}), "PlayArrow"),
|
|
17
|
-
|
|
17
|
+
}), "PlayArrow"), je = p.memo(({ input: r, value: n, onChange: h, onFocus: l, onBlur: f, disabled: i }) => /* @__PURE__ */ e.jsx(
|
|
18
|
+
J,
|
|
18
19
|
{
|
|
19
|
-
value:
|
|
20
|
-
onChange: (
|
|
21
|
-
onFocus:
|
|
20
|
+
value: n,
|
|
21
|
+
onChange: (d) => h(d.target.value),
|
|
22
|
+
onFocus: l,
|
|
22
23
|
onBlur: f,
|
|
23
|
-
placeholder:
|
|
24
|
-
disabled:
|
|
24
|
+
placeholder: r.placeholder || r.label,
|
|
25
|
+
disabled: i,
|
|
25
26
|
multiline: !0,
|
|
26
|
-
minRows:
|
|
27
|
-
maxRows:
|
|
27
|
+
minRows: r.minRows ?? 2,
|
|
28
|
+
maxRows: r.maxRows ?? 5,
|
|
28
29
|
fullWidth: !0
|
|
29
30
|
}
|
|
30
|
-
)),
|
|
31
|
-
|
|
31
|
+
)), _ = p.memo((r) => /* @__PURE__ */ e.jsx(
|
|
32
|
+
te,
|
|
32
33
|
{
|
|
33
34
|
variant: "caption",
|
|
34
35
|
sx: {
|
|
@@ -39,34 +40,34 @@ const he = L(/* @__PURE__ */ e.jsx("path", {
|
|
|
39
40
|
width: "100% !important",
|
|
40
41
|
textAlign: "center"
|
|
41
42
|
},
|
|
42
|
-
children:
|
|
43
|
+
children: r.label
|
|
43
44
|
}
|
|
44
|
-
)),
|
|
45
|
-
|
|
45
|
+
)), ge = p.memo(({ input: r, value: n, onChange: h, isExpanded: l, onFocus: f, onBlur: i, disabled: d }) => /* @__PURE__ */ e.jsxs(
|
|
46
|
+
t,
|
|
46
47
|
{
|
|
47
48
|
sx: {
|
|
48
|
-
width:
|
|
49
|
+
width: l ? 120 : 60,
|
|
49
50
|
transition: "width 0.3s ease",
|
|
50
51
|
display: "flex",
|
|
51
52
|
flexDirection: "column"
|
|
52
53
|
},
|
|
53
54
|
children: [
|
|
54
|
-
/* @__PURE__ */ e.jsx(
|
|
55
|
+
/* @__PURE__ */ e.jsx(_, { label: r.label }),
|
|
55
56
|
/* @__PURE__ */ e.jsx(
|
|
56
|
-
|
|
57
|
+
J,
|
|
57
58
|
{
|
|
58
59
|
type: "number",
|
|
59
|
-
value:
|
|
60
|
-
onChange: (
|
|
60
|
+
value: n ?? r.defaultValue ?? 0,
|
|
61
|
+
onChange: (u) => h(Number(u.target.value)),
|
|
61
62
|
onFocus: f,
|
|
62
|
-
onBlur:
|
|
63
|
-
disabled:
|
|
63
|
+
onBlur: i,
|
|
64
|
+
disabled: d,
|
|
64
65
|
size: "small",
|
|
65
66
|
slotProps: {
|
|
66
67
|
htmlInput: {
|
|
67
|
-
min:
|
|
68
|
-
max:
|
|
69
|
-
step:
|
|
68
|
+
min: r.min,
|
|
69
|
+
max: r.max,
|
|
70
|
+
step: r.step
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
73
|
sx: {
|
|
@@ -78,87 +79,117 @@ const he = L(/* @__PURE__ */ e.jsx("path", {
|
|
|
78
79
|
)
|
|
79
80
|
]
|
|
80
81
|
}
|
|
81
|
-
)),
|
|
82
|
-
|
|
82
|
+
)), pe = p.memo(({ input: r, value: n, onChange: h, isExpanded: l, onFocus: f, onBlur: i, disabled: d }) => /* @__PURE__ */ e.jsxs(
|
|
83
|
+
t,
|
|
83
84
|
{
|
|
84
85
|
sx: {
|
|
85
|
-
width:
|
|
86
|
+
width: l ? 180 : 80,
|
|
86
87
|
transition: "width 0.3s ease",
|
|
87
88
|
display: "flex",
|
|
88
89
|
flexDirection: "column"
|
|
89
90
|
},
|
|
90
91
|
children: [
|
|
91
|
-
/* @__PURE__ */ e.jsx(
|
|
92
|
-
/* @__PURE__ */ e.
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
/* @__PURE__ */ e.jsx(_, { label: r.label }),
|
|
93
|
+
/* @__PURE__ */ e.jsx(
|
|
94
|
+
he,
|
|
95
|
+
{
|
|
96
|
+
value: n ?? r.defaultValue ?? "",
|
|
97
|
+
onChange: (u) => h(u.target.value),
|
|
98
|
+
onFocus: f,
|
|
99
|
+
onBlur: i,
|
|
100
|
+
disabled: d,
|
|
101
|
+
placeholder: r.placeholder,
|
|
102
|
+
options: r.options || [],
|
|
103
|
+
optionLabel: r.optionLabel,
|
|
104
|
+
optionValue: r.optionValue,
|
|
105
|
+
searchable: r.searchable,
|
|
106
|
+
searchPlaceholder: r.searchPlaceholder,
|
|
107
|
+
size: "small"
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
)), Ie = p.memo(({ input: r, value: n, onChange: h, isExpanded: l, onFocus: f, onBlur: i, disabled: d }) => /* @__PURE__ */ e.jsxs(
|
|
113
|
+
t,
|
|
114
|
+
{
|
|
115
|
+
sx: {
|
|
116
|
+
width: l ? 160 : 60,
|
|
117
|
+
transition: "width 0.3s ease",
|
|
118
|
+
display: "flex",
|
|
119
|
+
flexDirection: "column"
|
|
120
|
+
},
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ e.jsx(_, { label: r.label }),
|
|
123
|
+
/* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", height: 36 }, children: [
|
|
124
|
+
l && /* @__PURE__ */ e.jsx(
|
|
125
|
+
ne,
|
|
95
126
|
{
|
|
96
|
-
value:
|
|
97
|
-
onChange: (
|
|
127
|
+
value: n ?? r.defaultValue ?? r.min ?? 0,
|
|
128
|
+
onChange: (u, k) => h(k),
|
|
98
129
|
onMouseDown: f,
|
|
99
|
-
onMouseUp:
|
|
100
|
-
disabled:
|
|
101
|
-
min:
|
|
102
|
-
max:
|
|
103
|
-
step:
|
|
130
|
+
onMouseUp: i,
|
|
131
|
+
disabled: d,
|
|
132
|
+
min: r.min ?? 0,
|
|
133
|
+
max: r.max ?? 100,
|
|
134
|
+
step: r.step ?? 1,
|
|
104
135
|
size: "small",
|
|
105
136
|
sx: { flex: 1 }
|
|
106
137
|
}
|
|
107
138
|
),
|
|
108
139
|
/* @__PURE__ */ e.jsx(
|
|
109
|
-
|
|
140
|
+
t,
|
|
110
141
|
{
|
|
111
142
|
sx: {
|
|
112
143
|
minWidth: 60,
|
|
113
144
|
textAlign: "center",
|
|
114
145
|
fontWeight: 500,
|
|
115
146
|
fontSize: "0.875rem",
|
|
116
|
-
width:
|
|
147
|
+
width: l ? "auto" : "100%"
|
|
117
148
|
},
|
|
118
|
-
children:
|
|
149
|
+
children: n ?? r.defaultValue ?? r.min ?? 0
|
|
119
150
|
}
|
|
120
151
|
)
|
|
121
152
|
] })
|
|
122
153
|
]
|
|
123
154
|
}
|
|
124
|
-
)),
|
|
125
|
-
const f =
|
|
155
|
+
)), we = p.memo(({ input: r, value: n, onChange: h, disabled: l }) => {
|
|
156
|
+
const f = p.useRef(null), [i, d] = p.useState([]), [u, k] = p.useState(null), w = r.multiple ?? !1, b = r.maxImages ?? 5;
|
|
126
157
|
oe(() => {
|
|
127
|
-
let
|
|
128
|
-
return
|
|
129
|
-
if (!
|
|
130
|
-
const
|
|
131
|
-
return
|
|
158
|
+
let m = [];
|
|
159
|
+
return d(((a) => {
|
|
160
|
+
if (!a) return [];
|
|
161
|
+
const I = Array.isArray(a) ? a : [a], c = [];
|
|
162
|
+
return I.forEach((C) => {
|
|
132
163
|
if (C instanceof File) {
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
} else typeof C == "string" &&
|
|
136
|
-
}),
|
|
137
|
-
})(
|
|
138
|
-
|
|
164
|
+
const M = URL.createObjectURL(C);
|
|
165
|
+
c.push(M), m.push(M);
|
|
166
|
+
} else typeof C == "string" && c.push(C);
|
|
167
|
+
}), c;
|
|
168
|
+
})(n)), () => {
|
|
169
|
+
m.forEach((a) => URL.revokeObjectURL(a));
|
|
139
170
|
};
|
|
140
|
-
}, [
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
if (!(!
|
|
171
|
+
}, [n]);
|
|
172
|
+
const y = (m) => {
|
|
173
|
+
const x = m.target.files;
|
|
174
|
+
if (!(!x || x.length === 0)) {
|
|
144
175
|
if (w) {
|
|
145
|
-
const
|
|
146
|
-
|
|
176
|
+
const a = Array.isArray(n) ? n : n ? [n] : [], I = Array.from(x).slice(0, b - a.length), c = [...a, ...I];
|
|
177
|
+
h(c);
|
|
147
178
|
} else
|
|
148
|
-
|
|
149
|
-
|
|
179
|
+
h(x[0]);
|
|
180
|
+
m.target.value = "";
|
|
150
181
|
}
|
|
151
|
-
},
|
|
152
|
-
if (
|
|
153
|
-
const
|
|
154
|
-
|
|
182
|
+
}, V = (m, x) => {
|
|
183
|
+
if (m.stopPropagation(), w && Array.isArray(n)) {
|
|
184
|
+
const a = n.filter((I, c) => c !== x);
|
|
185
|
+
h(a.length > 0 ? a : null);
|
|
155
186
|
} else
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
return /* @__PURE__ */ e.jsxs(
|
|
187
|
+
h(null);
|
|
188
|
+
}, O = () => {
|
|
189
|
+
var m;
|
|
190
|
+
l || w && i.length >= b || (m = f.current) == null || m.click();
|
|
191
|
+
}, T = w && i.length < b;
|
|
192
|
+
return /* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
|
|
162
193
|
/* @__PURE__ */ e.jsx(
|
|
163
194
|
"input",
|
|
164
195
|
{
|
|
@@ -166,40 +197,40 @@ const he = L(/* @__PURE__ */ e.jsx("path", {
|
|
|
166
197
|
type: "file",
|
|
167
198
|
accept: "image/*",
|
|
168
199
|
multiple: w,
|
|
169
|
-
onChange:
|
|
170
|
-
disabled:
|
|
200
|
+
onChange: y,
|
|
201
|
+
disabled: l,
|
|
171
202
|
style: { display: "none" }
|
|
172
203
|
}
|
|
173
204
|
),
|
|
174
|
-
|
|
175
|
-
|
|
205
|
+
i.map((m, x) => /* @__PURE__ */ e.jsxs(
|
|
206
|
+
t,
|
|
176
207
|
{
|
|
177
|
-
onMouseEnter: () =>
|
|
178
|
-
onMouseLeave: () =>
|
|
208
|
+
onMouseEnter: () => k(x),
|
|
209
|
+
onMouseLeave: () => k(null),
|
|
179
210
|
sx: {
|
|
180
211
|
width: 50,
|
|
181
212
|
height: 50,
|
|
182
213
|
border: 1,
|
|
183
|
-
borderColor:
|
|
214
|
+
borderColor: l ? "action.disabled" : "primary.main",
|
|
184
215
|
borderRadius: 1,
|
|
185
216
|
display: "flex",
|
|
186
217
|
alignItems: "center",
|
|
187
218
|
justifyContent: "center",
|
|
188
|
-
cursor:
|
|
219
|
+
cursor: l ? "not-allowed" : "default",
|
|
189
220
|
position: "relative",
|
|
190
221
|
overflow: "hidden",
|
|
191
222
|
transition: "all 0.2s",
|
|
192
|
-
"&:hover":
|
|
223
|
+
"&:hover": l ? {} : {
|
|
193
224
|
borderColor: "primary.dark"
|
|
194
225
|
}
|
|
195
226
|
},
|
|
196
227
|
children: [
|
|
197
228
|
/* @__PURE__ */ e.jsx(
|
|
198
|
-
|
|
229
|
+
t,
|
|
199
230
|
{
|
|
200
231
|
component: "img",
|
|
201
|
-
src:
|
|
202
|
-
alt: `Preview ${
|
|
232
|
+
src: m,
|
|
233
|
+
alt: `Preview ${x + 1}`,
|
|
203
234
|
sx: {
|
|
204
235
|
width: "100%",
|
|
205
236
|
height: "100%",
|
|
@@ -207,10 +238,10 @@ const he = L(/* @__PURE__ */ e.jsx("path", {
|
|
|
207
238
|
}
|
|
208
239
|
}
|
|
209
240
|
),
|
|
210
|
-
!
|
|
211
|
-
|
|
241
|
+
!l && u === x && /* @__PURE__ */ e.jsx(
|
|
242
|
+
t,
|
|
212
243
|
{
|
|
213
|
-
onClick: (
|
|
244
|
+
onClick: (a) => V(a, x),
|
|
214
245
|
sx: {
|
|
215
246
|
position: "absolute",
|
|
216
247
|
top: 0,
|
|
@@ -240,111 +271,113 @@ const he = L(/* @__PURE__ */ e.jsx("path", {
|
|
|
240
271
|
)
|
|
241
272
|
]
|
|
242
273
|
},
|
|
243
|
-
|
|
274
|
+
x
|
|
244
275
|
)),
|
|
245
|
-
(
|
|
246
|
-
|
|
276
|
+
(i.length === 0 || T) && /* @__PURE__ */ e.jsx(
|
|
277
|
+
t,
|
|
247
278
|
{
|
|
248
|
-
onClick:
|
|
279
|
+
onClick: O,
|
|
249
280
|
sx: {
|
|
250
281
|
width: 50,
|
|
251
282
|
height: 50,
|
|
252
283
|
border: 1,
|
|
253
|
-
borderColor:
|
|
284
|
+
borderColor: l ? "action.disabled" : "divider",
|
|
254
285
|
borderRadius: 1,
|
|
255
286
|
display: "flex",
|
|
256
287
|
alignItems: "center",
|
|
257
288
|
justifyContent: "center",
|
|
258
|
-
cursor:
|
|
289
|
+
cursor: l ? "not-allowed" : "pointer",
|
|
259
290
|
bgcolor: z("#000", 0.02),
|
|
260
291
|
transition: "all 0.2s",
|
|
261
|
-
"&:hover":
|
|
292
|
+
"&:hover": l ? {} : {
|
|
262
293
|
borderColor: "primary.main",
|
|
263
294
|
bgcolor: z("#000", 0.04)
|
|
264
295
|
}
|
|
265
296
|
},
|
|
266
297
|
children: /* @__PURE__ */ e.jsx(
|
|
267
|
-
|
|
298
|
+
me,
|
|
268
299
|
{
|
|
269
300
|
sx: {
|
|
270
301
|
fontSize: 20,
|
|
271
|
-
color:
|
|
302
|
+
color: l ? "action.disabled" : "text.secondary"
|
|
272
303
|
}
|
|
273
304
|
}
|
|
274
305
|
)
|
|
275
306
|
}
|
|
276
307
|
)
|
|
277
308
|
] });
|
|
278
|
-
}), H = (
|
|
279
|
-
switch (
|
|
309
|
+
}), H = (r) => {
|
|
310
|
+
switch (r.input.type) {
|
|
280
311
|
case "textarea":
|
|
281
|
-
return /* @__PURE__ */ e.jsx(
|
|
312
|
+
return /* @__PURE__ */ e.jsx(je, { ...r });
|
|
282
313
|
case "number":
|
|
283
|
-
return /* @__PURE__ */ e.jsx(
|
|
314
|
+
return /* @__PURE__ */ e.jsx(ge, { ...r });
|
|
284
315
|
case "slider":
|
|
285
|
-
return /* @__PURE__ */ e.jsx(
|
|
316
|
+
return /* @__PURE__ */ e.jsx(Ie, { ...r });
|
|
317
|
+
case "select":
|
|
318
|
+
return /* @__PURE__ */ e.jsx(pe, { ...r });
|
|
286
319
|
case "image":
|
|
287
|
-
return /* @__PURE__ */ e.jsx(
|
|
320
|
+
return /* @__PURE__ */ e.jsx(we, { input: r.input, value: r.value, onChange: r.onChange, disabled: r.disabled });
|
|
288
321
|
default:
|
|
289
322
|
return null;
|
|
290
323
|
}
|
|
291
|
-
},
|
|
292
|
-
inputs:
|
|
293
|
-
onProcess:
|
|
294
|
-
onReset:
|
|
295
|
-
onDownload:
|
|
324
|
+
}, Me = ({
|
|
325
|
+
inputs: r = [],
|
|
326
|
+
onProcess: n,
|
|
327
|
+
onReset: h,
|
|
328
|
+
onDownload: l,
|
|
296
329
|
processing: f = !1,
|
|
297
|
-
uploading:
|
|
298
|
-
inputValues:
|
|
299
|
-
onInputChange:
|
|
300
|
-
customActionButtons:
|
|
330
|
+
uploading: i = !1,
|
|
331
|
+
inputValues: d = {},
|
|
332
|
+
onInputChange: u,
|
|
333
|
+
customActionButtons: k,
|
|
301
334
|
hideProcessButton: w = !1,
|
|
302
335
|
processButtonDisabled: b = !1,
|
|
303
|
-
getInputDisabled:
|
|
304
|
-
processTooltip:
|
|
305
|
-
downloadTooltip:
|
|
306
|
-
resetTooltip:
|
|
307
|
-
infoTooltip:
|
|
308
|
-
infoTitle:
|
|
309
|
-
infoContent:
|
|
310
|
-
position:
|
|
311
|
-
relative:
|
|
336
|
+
getInputDisabled: y,
|
|
337
|
+
processTooltip: V = "Process",
|
|
338
|
+
downloadTooltip: O = "Download",
|
|
339
|
+
resetTooltip: T = "Reset",
|
|
340
|
+
infoTooltip: m = "Information",
|
|
341
|
+
infoTitle: x = "Tool Information",
|
|
342
|
+
infoContent: a,
|
|
343
|
+
position: I = "bottom",
|
|
344
|
+
relative: c = !1
|
|
312
345
|
}) => {
|
|
313
|
-
const [C,
|
|
314
|
-
if (!
|
|
315
|
-
const s =
|
|
316
|
-
return
|
|
317
|
-
}), [
|
|
318
|
-
(
|
|
346
|
+
const [C, M] = W(!1), [K, q] = W(!1), [Q, N] = W(!1), A = C || K, D = G(() => r.length === 0 ? !0 : r.every((o) => {
|
|
347
|
+
if (!o.required) return !0;
|
|
348
|
+
const s = d[o.key];
|
|
349
|
+
return o.type === "textarea" ? s && typeof s == "string" && s.trim() !== "" : o.type === "number" || o.type === "slider" ? s != null : o.type === "select" ? s != null && s !== "" : !0;
|
|
350
|
+
}), [r, d]), { imageInputs: E, textareaInputs: X, paramInputs: U } = G(() => r.reduce(
|
|
351
|
+
(o, s) => (s.type === "image" ? o.imageInputs.push(s) : s.type === "textarea" ? o.textareaInputs.push(s) : o.paramInputs.push(s), o),
|
|
319
352
|
{
|
|
320
353
|
imageInputs: [],
|
|
321
354
|
textareaInputs: [],
|
|
322
355
|
paramInputs: []
|
|
323
356
|
}
|
|
324
|
-
), [
|
|
325
|
-
setTimeout(() =>
|
|
326
|
-
}, []),
|
|
327
|
-
(
|
|
328
|
-
|
|
357
|
+
), [r]), Y = v(() => M(!0), []), Z = v(() => M(!1), []), R = v(() => q(!0), []), F = v(() => {
|
|
358
|
+
setTimeout(() => q(!1), 200);
|
|
359
|
+
}, []), S = v(
|
|
360
|
+
(o, s, g) => {
|
|
361
|
+
u == null || u(o, s, g);
|
|
329
362
|
},
|
|
330
|
-
[
|
|
331
|
-
), ee =
|
|
332
|
-
|
|
363
|
+
[u]
|
|
364
|
+
), ee = v(() => N(!0), []), re = v(() => N(!1), []), $ = /* @__PURE__ */ e.jsxs(
|
|
365
|
+
t,
|
|
333
366
|
{
|
|
334
367
|
sx: {
|
|
335
|
-
position:
|
|
336
|
-
[
|
|
337
|
-
left:
|
|
338
|
-
transform:
|
|
339
|
-
zIndex:
|
|
340
|
-
display:
|
|
341
|
-
justifyContent:
|
|
342
|
-
mt:
|
|
343
|
-
mb:
|
|
368
|
+
position: c ? "relative" : "fixed",
|
|
369
|
+
[I]: c ? "auto" : 20,
|
|
370
|
+
left: c ? "auto" : "50%",
|
|
371
|
+
transform: c ? "none" : "translateX(-50%)",
|
|
372
|
+
zIndex: c ? "auto" : 1300,
|
|
373
|
+
display: c ? "flex" : "block",
|
|
374
|
+
justifyContent: c ? "center" : "initial",
|
|
375
|
+
mt: c && I === "top" ? 2 : 0,
|
|
376
|
+
mb: c && I === "bottom" ? 2 : 0
|
|
344
377
|
},
|
|
345
378
|
children: [
|
|
346
379
|
/* @__PURE__ */ e.jsxs(
|
|
347
|
-
|
|
380
|
+
t,
|
|
348
381
|
{
|
|
349
382
|
onMouseEnter: Y,
|
|
350
383
|
onMouseLeave: Z,
|
|
@@ -358,32 +391,32 @@ const he = L(/* @__PURE__ */ e.jsx("path", {
|
|
|
358
391
|
borderColor: "divider"
|
|
359
392
|
},
|
|
360
393
|
children: [
|
|
361
|
-
X.length > 0 && /* @__PURE__ */ e.jsx(
|
|
362
|
-
const s =
|
|
363
|
-
return
|
|
394
|
+
X.length > 0 && /* @__PURE__ */ e.jsx(t, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: X.map((o) => {
|
|
395
|
+
const s = d[o.key], g = (y == null ? void 0 : y(o.key)) ?? !1;
|
|
396
|
+
return o.renderInput ? /* @__PURE__ */ e.jsx(t, { children: o.renderInput({
|
|
364
397
|
value: s,
|
|
365
|
-
onChange: (
|
|
398
|
+
onChange: (j) => S(o.key, j),
|
|
366
399
|
isExpanded: A,
|
|
367
400
|
onFocus: R,
|
|
368
401
|
onBlur: F,
|
|
369
|
-
disabled:
|
|
370
|
-
}) },
|
|
402
|
+
disabled: g
|
|
403
|
+
}) }, o.key) : /* @__PURE__ */ e.jsx(
|
|
371
404
|
H,
|
|
372
405
|
{
|
|
373
|
-
input:
|
|
406
|
+
input: o,
|
|
374
407
|
value: s,
|
|
375
|
-
onChange: (
|
|
408
|
+
onChange: (j) => S(o.key, j),
|
|
376
409
|
isExpanded: A,
|
|
377
410
|
onFocus: R,
|
|
378
411
|
onBlur: F,
|
|
379
|
-
disabled:
|
|
412
|
+
disabled: g
|
|
380
413
|
},
|
|
381
|
-
|
|
414
|
+
o.key
|
|
382
415
|
);
|
|
383
416
|
}) }),
|
|
384
|
-
/* @__PURE__ */ e.jsxs(
|
|
417
|
+
/* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
385
418
|
/* @__PURE__ */ e.jsx(
|
|
386
|
-
|
|
419
|
+
t,
|
|
387
420
|
{
|
|
388
421
|
sx: {
|
|
389
422
|
display: "flex",
|
|
@@ -391,72 +424,72 @@ const he = L(/* @__PURE__ */ e.jsx("path", {
|
|
|
391
424
|
gap: 2,
|
|
392
425
|
flex: 1
|
|
393
426
|
},
|
|
394
|
-
children: (
|
|
395
|
-
|
|
396
|
-
const s =
|
|
397
|
-
return
|
|
427
|
+
children: (E.length > 0 || U.length > 0) && /* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "flex-end", gap: 1.5 }, children: [
|
|
428
|
+
E.map((o) => {
|
|
429
|
+
const s = d[o.key], g = (y == null ? void 0 : y(o.key)) ?? !1;
|
|
430
|
+
return o.renderInput ? /* @__PURE__ */ e.jsx(t, { children: o.renderInput({
|
|
398
431
|
value: s,
|
|
399
|
-
onChange: (
|
|
432
|
+
onChange: (j) => S(o.key, j),
|
|
400
433
|
isExpanded: A,
|
|
401
434
|
onFocus: R,
|
|
402
435
|
onBlur: F,
|
|
403
|
-
disabled:
|
|
404
|
-
}) },
|
|
436
|
+
disabled: g
|
|
437
|
+
}) }, o.key) : /* @__PURE__ */ e.jsx(
|
|
405
438
|
H,
|
|
406
439
|
{
|
|
407
|
-
input:
|
|
440
|
+
input: o,
|
|
408
441
|
value: s,
|
|
409
|
-
onChange: (
|
|
442
|
+
onChange: (j) => S(o.key, j),
|
|
410
443
|
isExpanded: A,
|
|
411
444
|
onFocus: R,
|
|
412
445
|
onBlur: F,
|
|
413
|
-
disabled:
|
|
446
|
+
disabled: g
|
|
414
447
|
},
|
|
415
|
-
|
|
448
|
+
o.key
|
|
416
449
|
);
|
|
417
450
|
}),
|
|
418
|
-
|
|
419
|
-
const s =
|
|
420
|
-
return
|
|
451
|
+
U.map((o) => {
|
|
452
|
+
const s = d[o.key], g = (y == null ? void 0 : y(o.key)) ?? !1;
|
|
453
|
+
return o.renderInput ? /* @__PURE__ */ e.jsx(t, { children: o.renderInput({
|
|
421
454
|
value: s,
|
|
422
|
-
onChange: (
|
|
455
|
+
onChange: (j) => S(o.key, j),
|
|
423
456
|
isExpanded: A,
|
|
424
457
|
onFocus: R,
|
|
425
458
|
onBlur: F,
|
|
426
|
-
disabled:
|
|
427
|
-
}) },
|
|
459
|
+
disabled: g
|
|
460
|
+
}) }, o.key) : /* @__PURE__ */ e.jsx(
|
|
428
461
|
H,
|
|
429
462
|
{
|
|
430
|
-
input:
|
|
463
|
+
input: o,
|
|
431
464
|
value: s,
|
|
432
|
-
onChange: (
|
|
465
|
+
onChange: (j) => S(o.key, j),
|
|
433
466
|
isExpanded: A,
|
|
434
467
|
onFocus: R,
|
|
435
468
|
onBlur: F,
|
|
436
|
-
disabled:
|
|
469
|
+
disabled: g
|
|
437
470
|
},
|
|
438
|
-
|
|
471
|
+
o.key
|
|
439
472
|
);
|
|
440
473
|
})
|
|
441
474
|
] })
|
|
442
475
|
}
|
|
443
476
|
),
|
|
444
|
-
(
|
|
445
|
-
/* @__PURE__ */ e.jsxs(
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
/* @__PURE__ */ e.jsx(B, { title:
|
|
449
|
-
/* @__PURE__ */ e.jsx(B, { title:
|
|
450
|
-
!w && /* @__PURE__ */ e.jsx(B, { title:
|
|
477
|
+
(E.length > 0 || U.length > 0) && /* @__PURE__ */ e.jsx(ae, { orientation: "vertical", flexItem: !0, sx: { mx: 0.5, flexShrink: 0 } }),
|
|
478
|
+
/* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: 0.75, ml: "auto" }, children: [
|
|
479
|
+
k,
|
|
480
|
+
a && /* @__PURE__ */ e.jsx(B, { title: m, children: /* @__PURE__ */ e.jsx(P, { onClick: ee, children: /* @__PURE__ */ e.jsx(ue, {}) }) }),
|
|
481
|
+
/* @__PURE__ */ e.jsx(B, { title: O, children: /* @__PURE__ */ e.jsx(P, { onClick: l, children: /* @__PURE__ */ e.jsx(le, {}) }) }),
|
|
482
|
+
/* @__PURE__ */ e.jsx(B, { title: T, children: /* @__PURE__ */ e.jsx(P, { onClick: h, children: /* @__PURE__ */ e.jsx(fe, {}) }) }),
|
|
483
|
+
!w && /* @__PURE__ */ e.jsx(B, { title: V, children: /* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
|
|
451
484
|
P,
|
|
452
485
|
{
|
|
453
|
-
onClick:
|
|
454
|
-
disabled: b || !
|
|
486
|
+
onClick: n,
|
|
487
|
+
disabled: b || !D || i || f,
|
|
455
488
|
size: "large",
|
|
456
489
|
children: /* @__PURE__ */ e.jsx(
|
|
457
|
-
|
|
490
|
+
ye,
|
|
458
491
|
{
|
|
459
|
-
color: b || !
|
|
492
|
+
color: b || !D || i || f ? "disabled" : "primary"
|
|
460
493
|
}
|
|
461
494
|
)
|
|
462
495
|
}
|
|
@@ -466,15 +499,15 @@ const he = L(/* @__PURE__ */ e.jsx("path", {
|
|
|
466
499
|
]
|
|
467
500
|
}
|
|
468
501
|
),
|
|
469
|
-
|
|
470
|
-
/* @__PURE__ */ e.jsx(ie, { children:
|
|
471
|
-
/* @__PURE__ */ e.jsx(de, { children:
|
|
502
|
+
a && /* @__PURE__ */ e.jsxs(ce, { open: Q, onClose: re, maxWidth: "sm", fullWidth: !0, children: [
|
|
503
|
+
/* @__PURE__ */ e.jsx(ie, { children: x }),
|
|
504
|
+
/* @__PURE__ */ e.jsx(de, { children: a })
|
|
472
505
|
] })
|
|
473
506
|
]
|
|
474
507
|
}
|
|
475
508
|
);
|
|
476
|
-
return !
|
|
509
|
+
return !c && typeof window < "u" ? xe($, document.body) : $;
|
|
477
510
|
};
|
|
478
511
|
export {
|
|
479
|
-
|
|
512
|
+
Me as default
|
|
480
513
|
};
|