@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.
@@ -1,34 +1,35 @@
1
1
  import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import I, { useEffect as oe, useState as W, useMemo as D, useCallback as k } from "react";
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 te } from "../Download-UsLvGg3y.js";
6
- import { TextField as G, Typography as ne, Box as n, Slider as le, alpha as z, Divider as ae, Tooltip as B, IconButton as P, Dialog as ce, DialogTitle as ie, DialogContent as de } from "@mui/material";
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
- const he = L(/* @__PURE__ */ e.jsx("path", {
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"), me = L(/* @__PURE__ */ e.jsx("path", {
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"), fe = L(/* @__PURE__ */ e.jsx("path", {
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"), ue = L(/* @__PURE__ */ e.jsx("path", {
15
+ }), "InfoOutlined"), ye = L(/* @__PURE__ */ e.jsx("path", {
15
16
  d: "M8 5v14l11-7z"
16
- }), "PlayArrow"), ye = I.memo(({ input: o, value: c, onChange: m, onFocus: t, onBlur: f, disabled: x }) => /* @__PURE__ */ e.jsx(
17
- G,
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: c,
20
- onChange: (h) => m(h.target.value),
21
- onFocus: t,
20
+ value: n,
21
+ onChange: (d) => h(d.target.value),
22
+ onFocus: l,
22
23
  onBlur: f,
23
- placeholder: o.placeholder || o.label,
24
- disabled: x,
24
+ placeholder: r.placeholder || r.label,
25
+ disabled: i,
25
26
  multiline: !0,
26
- minRows: o.minRows ?? 2,
27
- maxRows: o.maxRows ?? 5,
27
+ minRows: r.minRows ?? 2,
28
+ maxRows: r.maxRows ?? 5,
28
29
  fullWidth: !0
29
30
  }
30
- )), J = I.memo((o) => /* @__PURE__ */ e.jsx(
31
- ne,
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: o.label
43
+ children: r.label
43
44
  }
44
- )), je = I.memo(({ input: o, value: c, onChange: m, isExpanded: t, onFocus: f, onBlur: x, disabled: h }) => /* @__PURE__ */ e.jsxs(
45
- n,
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: t ? 120 : 60,
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(J, { label: o.label }),
55
+ /* @__PURE__ */ e.jsx(_, { label: r.label }),
55
56
  /* @__PURE__ */ e.jsx(
56
- G,
57
+ J,
57
58
  {
58
59
  type: "number",
59
- value: c ?? o.defaultValue ?? 0,
60
- onChange: (g) => m(Number(g.target.value)),
60
+ value: n ?? r.defaultValue ?? 0,
61
+ onChange: (u) => h(Number(u.target.value)),
61
62
  onFocus: f,
62
- onBlur: x,
63
- disabled: h,
63
+ onBlur: i,
64
+ disabled: d,
64
65
  size: "small",
65
66
  slotProps: {
66
67
  htmlInput: {
67
- min: o.min,
68
- max: o.max,
69
- step: o.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
- )), ge = I.memo(({ input: o, value: c, onChange: m, isExpanded: t, onFocus: f, onBlur: x, disabled: h }) => /* @__PURE__ */ e.jsxs(
82
- n,
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: t ? 160 : 60,
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(J, { label: o.label }),
92
- /* @__PURE__ */ e.jsxs(n, { sx: { display: "flex", alignItems: "center", height: 36 }, children: [
93
- t && /* @__PURE__ */ e.jsx(
94
- le,
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: c ?? o.defaultValue ?? o.min ?? 0,
97
- onChange: (g, v) => m(v),
127
+ value: n ?? r.defaultValue ?? r.min ?? 0,
128
+ onChange: (u, k) => h(k),
98
129
  onMouseDown: f,
99
- onMouseUp: x,
100
- disabled: h,
101
- min: o.min ?? 0,
102
- max: o.max ?? 100,
103
- step: o.step ?? 1,
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
- n,
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: t ? "auto" : "100%"
147
+ width: l ? "auto" : "100%"
117
148
  },
118
- children: c ?? o.defaultValue ?? o.min ?? 0
149
+ children: n ?? r.defaultValue ?? r.min ?? 0
119
150
  }
120
151
  )
121
152
  ] })
122
153
  ]
123
154
  }
124
- )), pe = I.memo(({ input: o, value: c, onChange: m, disabled: t }) => {
125
- const f = I.useRef(null), [x, h] = I.useState([]), [g, v] = I.useState(null), w = o.multiple ?? !1, b = o.maxImages ?? 5;
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 d = [];
128
- return h(((l) => {
129
- if (!l) return [];
130
- const p = Array.isArray(l) ? l : [l], a = [];
131
- return p.forEach((C) => {
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 S = URL.createObjectURL(C);
134
- a.push(S), d.push(S);
135
- } else typeof C == "string" && a.push(C);
136
- }), a;
137
- })(c)), () => {
138
- d.forEach((l) => URL.revokeObjectURL(l));
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
- }, [c]);
141
- const u = (d) => {
142
- const i = d.target.files;
143
- if (!(!i || i.length === 0)) {
171
+ }, [n]);
172
+ const y = (m) => {
173
+ const x = m.target.files;
174
+ if (!(!x || x.length === 0)) {
144
175
  if (w) {
145
- const l = Array.isArray(c) ? c : c ? [c] : [], p = Array.from(i).slice(0, b - l.length), a = [...l, ...p];
146
- m(a);
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
- m(i[0]);
149
- d.target.value = "";
179
+ h(x[0]);
180
+ m.target.value = "";
150
181
  }
151
- }, O = (d, i) => {
152
- if (d.stopPropagation(), w && Array.isArray(c)) {
153
- const l = c.filter((p, a) => a !== i);
154
- m(l.length > 0 ? l : null);
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
- m(null);
157
- }, T = () => {
158
- var d;
159
- t || w && x.length >= b || (d = f.current) == null || d.click();
160
- }, E = w && x.length < b;
161
- return /* @__PURE__ */ e.jsxs(n, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
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: u,
170
- disabled: t,
200
+ onChange: y,
201
+ disabled: l,
171
202
  style: { display: "none" }
172
203
  }
173
204
  ),
174
- x.map((d, i) => /* @__PURE__ */ e.jsxs(
175
- n,
205
+ i.map((m, x) => /* @__PURE__ */ e.jsxs(
206
+ t,
176
207
  {
177
- onMouseEnter: () => v(i),
178
- onMouseLeave: () => v(null),
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: t ? "action.disabled" : "primary.main",
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: t ? "not-allowed" : "default",
219
+ cursor: l ? "not-allowed" : "default",
189
220
  position: "relative",
190
221
  overflow: "hidden",
191
222
  transition: "all 0.2s",
192
- "&:hover": t ? {} : {
223
+ "&:hover": l ? {} : {
193
224
  borderColor: "primary.dark"
194
225
  }
195
226
  },
196
227
  children: [
197
228
  /* @__PURE__ */ e.jsx(
198
- n,
229
+ t,
199
230
  {
200
231
  component: "img",
201
- src: d,
202
- alt: `Preview ${i + 1}`,
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
- !t && g === i && /* @__PURE__ */ e.jsx(
211
- n,
241
+ !l && u === x && /* @__PURE__ */ e.jsx(
242
+ t,
212
243
  {
213
- onClick: (l) => O(l, i),
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
- i
274
+ x
244
275
  )),
245
- (x.length === 0 || E) && /* @__PURE__ */ e.jsx(
246
- n,
276
+ (i.length === 0 || T) && /* @__PURE__ */ e.jsx(
277
+ t,
247
278
  {
248
- onClick: T,
279
+ onClick: O,
249
280
  sx: {
250
281
  width: 50,
251
282
  height: 50,
252
283
  border: 1,
253
- borderColor: t ? "action.disabled" : "divider",
284
+ borderColor: l ? "action.disabled" : "divider",
254
285
  borderRadius: 1,
255
286
  display: "flex",
256
287
  alignItems: "center",
257
288
  justifyContent: "center",
258
- cursor: t ? "not-allowed" : "pointer",
289
+ cursor: l ? "not-allowed" : "pointer",
259
290
  bgcolor: z("#000", 0.02),
260
291
  transition: "all 0.2s",
261
- "&:hover": t ? {} : {
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
- he,
298
+ me,
268
299
  {
269
300
  sx: {
270
301
  fontSize: 20,
271
- color: t ? "action.disabled" : "text.secondary"
302
+ color: l ? "action.disabled" : "text.secondary"
272
303
  }
273
304
  }
274
305
  )
275
306
  }
276
307
  )
277
308
  ] });
278
- }), H = (o) => {
279
- switch (o.input.type) {
309
+ }), H = (r) => {
310
+ switch (r.input.type) {
280
311
  case "textarea":
281
- return /* @__PURE__ */ e.jsx(ye, { ...o });
312
+ return /* @__PURE__ */ e.jsx(je, { ...r });
282
313
  case "number":
283
- return /* @__PURE__ */ e.jsx(je, { ...o });
314
+ return /* @__PURE__ */ e.jsx(ge, { ...r });
284
315
  case "slider":
285
- return /* @__PURE__ */ e.jsx(ge, { ...o });
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(pe, { input: o.input, value: o.value, onChange: o.onChange, disabled: o.disabled });
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
- }, Re = ({
292
- inputs: o = [],
293
- onProcess: c,
294
- onReset: m,
295
- onDownload: t,
324
+ }, Me = ({
325
+ inputs: r = [],
326
+ onProcess: n,
327
+ onReset: h,
328
+ onDownload: l,
296
329
  processing: f = !1,
297
- uploading: x = !1,
298
- inputValues: h = {},
299
- onInputChange: g,
300
- customActionButtons: v,
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: u,
304
- processTooltip: O = "Process",
305
- downloadTooltip: T = "Download",
306
- resetTooltip: E = "Reset",
307
- infoTooltip: d = "Information",
308
- infoTitle: i = "Tool Information",
309
- infoContent: l,
310
- position: p = "bottom",
311
- relative: a = !1
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, S] = W(!1), [K, _] = W(!1), [Q, q] = W(!1), A = C || K, N = D(() => o.length === 0 ? !0 : o.every((r) => {
314
- if (!r.required) return !0;
315
- const s = h[r.key];
316
- return r.type === "textarea" ? s && typeof s == "string" && s.trim() !== "" : r.type === "number" || r.type === "slider" ? s != null : !0;
317
- }), [o, h]), { imageInputs: U, textareaInputs: X, paramInputs: V } = D(() => o.reduce(
318
- (r, s) => (s.type === "image" ? r.imageInputs.push(s) : s.type === "textarea" ? r.textareaInputs.push(s) : r.paramInputs.push(s), r),
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
- ), [o]), Y = k(() => S(!0), []), Z = k(() => S(!1), []), R = k(() => _(!0), []), F = k(() => {
325
- setTimeout(() => _(!1), 200);
326
- }, []), M = k(
327
- (r, s, j) => {
328
- g == null || g(r, s, j);
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
- [g]
331
- ), ee = k(() => q(!0), []), re = k(() => q(!1), []), $ = /* @__PURE__ */ e.jsxs(
332
- n,
363
+ [u]
364
+ ), ee = v(() => N(!0), []), re = v(() => N(!1), []), $ = /* @__PURE__ */ e.jsxs(
365
+ t,
333
366
  {
334
367
  sx: {
335
- position: a ? "relative" : "fixed",
336
- [p]: a ? "auto" : 20,
337
- left: a ? "auto" : "50%",
338
- transform: a ? "none" : "translateX(-50%)",
339
- zIndex: a ? "auto" : 1300,
340
- display: a ? "flex" : "block",
341
- justifyContent: a ? "center" : "initial",
342
- mt: a && p === "top" ? 2 : 0,
343
- mb: a && p === "bottom" ? 2 : 0
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
- n,
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(n, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: X.map((r) => {
362
- const s = h[r.key], j = (u == null ? void 0 : u(r.key)) ?? !1;
363
- return r.renderInput ? /* @__PURE__ */ e.jsx(n, { children: r.renderInput({
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: (y) => M(r.key, y),
398
+ onChange: (j) => S(o.key, j),
366
399
  isExpanded: A,
367
400
  onFocus: R,
368
401
  onBlur: F,
369
- disabled: j
370
- }) }, r.key) : /* @__PURE__ */ e.jsx(
402
+ disabled: g
403
+ }) }, o.key) : /* @__PURE__ */ e.jsx(
371
404
  H,
372
405
  {
373
- input: r,
406
+ input: o,
374
407
  value: s,
375
- onChange: (y) => M(r.key, y),
408
+ onChange: (j) => S(o.key, j),
376
409
  isExpanded: A,
377
410
  onFocus: R,
378
411
  onBlur: F,
379
- disabled: j
412
+ disabled: g
380
413
  },
381
- r.key
414
+ o.key
382
415
  );
383
416
  }) }),
384
- /* @__PURE__ */ e.jsxs(n, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
417
+ /* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
385
418
  /* @__PURE__ */ e.jsx(
386
- n,
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: (U.length > 0 || V.length > 0) && /* @__PURE__ */ e.jsxs(n, { sx: { display: "flex", alignItems: "flex-end", gap: 1.5 }, children: [
395
- U.map((r) => {
396
- const s = h[r.key], j = (u == null ? void 0 : u(r.key)) ?? !1;
397
- return r.renderInput ? /* @__PURE__ */ e.jsx(n, { children: r.renderInput({
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: (y) => M(r.key, y),
432
+ onChange: (j) => S(o.key, j),
400
433
  isExpanded: A,
401
434
  onFocus: R,
402
435
  onBlur: F,
403
- disabled: j
404
- }) }, r.key) : /* @__PURE__ */ e.jsx(
436
+ disabled: g
437
+ }) }, o.key) : /* @__PURE__ */ e.jsx(
405
438
  H,
406
439
  {
407
- input: r,
440
+ input: o,
408
441
  value: s,
409
- onChange: (y) => M(r.key, y),
442
+ onChange: (j) => S(o.key, j),
410
443
  isExpanded: A,
411
444
  onFocus: R,
412
445
  onBlur: F,
413
- disabled: j
446
+ disabled: g
414
447
  },
415
- r.key
448
+ o.key
416
449
  );
417
450
  }),
418
- V.map((r) => {
419
- const s = h[r.key], j = (u == null ? void 0 : u(r.key)) ?? !1;
420
- return r.renderInput ? /* @__PURE__ */ e.jsx(n, { children: r.renderInput({
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: (y) => M(r.key, y),
455
+ onChange: (j) => S(o.key, j),
423
456
  isExpanded: A,
424
457
  onFocus: R,
425
458
  onBlur: F,
426
- disabled: j
427
- }) }, r.key) : /* @__PURE__ */ e.jsx(
459
+ disabled: g
460
+ }) }, o.key) : /* @__PURE__ */ e.jsx(
428
461
  H,
429
462
  {
430
- input: r,
463
+ input: o,
431
464
  value: s,
432
- onChange: (y) => M(r.key, y),
465
+ onChange: (j) => S(o.key, j),
433
466
  isExpanded: A,
434
467
  onFocus: R,
435
468
  onBlur: F,
436
- disabled: j
469
+ disabled: g
437
470
  },
438
- r.key
471
+ o.key
439
472
  );
440
473
  })
441
474
  ] })
442
475
  }
443
476
  ),
444
- (U.length > 0 || V.length > 0) && /* @__PURE__ */ e.jsx(ae, { orientation: "vertical", flexItem: !0, sx: { mx: 0.5, flexShrink: 0 } }),
445
- /* @__PURE__ */ e.jsxs(n, { sx: { display: "flex", alignItems: "center", gap: 0.75, ml: "auto" }, children: [
446
- v,
447
- l && /* @__PURE__ */ e.jsx(B, { title: d, children: /* @__PURE__ */ e.jsx(P, { onClick: ee, children: /* @__PURE__ */ e.jsx(fe, {}) }) }),
448
- /* @__PURE__ */ e.jsx(B, { title: T, children: /* @__PURE__ */ e.jsx(P, { onClick: t, children: /* @__PURE__ */ e.jsx(te, {}) }) }),
449
- /* @__PURE__ */ e.jsx(B, { title: E, children: /* @__PURE__ */ e.jsx(P, { onClick: m, children: /* @__PURE__ */ e.jsx(me, {}) }) }),
450
- !w && /* @__PURE__ */ e.jsx(B, { title: O, children: /* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
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: c,
454
- disabled: b || !N || x || f,
486
+ onClick: n,
487
+ disabled: b || !D || i || f,
455
488
  size: "large",
456
489
  children: /* @__PURE__ */ e.jsx(
457
- ue,
490
+ ye,
458
491
  {
459
- color: b || !N || x || f ? "disabled" : "primary"
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
- l && /* @__PURE__ */ e.jsxs(ce, { open: Q, onClose: re, maxWidth: "sm", fullWidth: !0, children: [
470
- /* @__PURE__ */ e.jsx(ie, { children: i }),
471
- /* @__PURE__ */ e.jsx(de, { children: l })
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 !a && typeof window < "u" ? xe($, document.body) : $;
509
+ return !c && typeof window < "u" ? xe($, document.body) : $;
477
510
  };
478
511
  export {
479
- Re as default
512
+ Me as default
480
513
  };