@epam/ai-dial-ui-kit 0.3.0-rc.45 → 0.3.0-rc.47
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/dial-ui-kit.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i, jsxs as w, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import y from "classnames";
|
|
3
3
|
import { useFloating as Dt, offset as hr, flip as mr, shift as Cr, arrow as vn, autoUpdate as vr, useHover as br, useFocus as bn, useDismiss as St, useRole as Lt, useInteractions as It, useMergeRefs as yr, FloatingPortal as Tt, FloatingArrow as yn, autoPlacement as wn, size as xn, useClick as Dn, FloatingFocusManager as wr, FloatingOverlay as Sn } from "@floating-ui/react";
|
|
4
4
|
import * as E from "react";
|
|
5
|
-
import { createContext as xr, useState as
|
|
5
|
+
import { createContext as xr, useState as $, useRef as le, useMemo as B, useContext as Dr, forwardRef as Sr, isValidElement as Ot, cloneElement as qe, useCallback as A, useEffect as ne, memo as Ln, useLayoutEffect as In, useId as Lr, Children as Tn } from "react";
|
|
6
6
|
import { IconInfoCircle as Ir, IconCircleCheck as On, IconAlertTriangle as En, IconAlertCircle as Nn, IconX as _e, IconMinus as kn, IconCheck as Tr, IconExclamationCircle as Et, IconClipboardX as Or, IconChevronsLeft as Rn, IconChevronsRight as Pn, IconGripVertical as Mn, IconFile as Vn, IconFileTypeZip as Hn, IconFileTypeXml as An, IconFileTypeXls as Fn, IconFileTypeVue as _n, IconFileTypeTxt as zn, IconFileTypeTsx as jn, IconFileTypeTs as Bn, IconFileTypeSvg as Gn, IconFileTypeSql as $n, IconFileTypeRs as Wn, IconFileTypePpt as Un, IconFileTypePng as qn, IconFileTypePhp as Zn, IconFileTypePdf as Xn, IconFileTypeJsx as Yn, IconFileTypeJs as Kn, IconFileTypeJpg as Jn, IconFileTypeHtml as Qn, IconFileTypeDocx as eo, IconFileTypeDoc as to, IconFileTypeCsv as ro, IconFileTypeCss as no, IconFileTypeBmp as oo, IconArrowUpRight as so, IconChevronDown as Er, IconDotsVertical as io, IconChevronRight as ao, IconTrashX as Nr, IconEyeOff as lo, IconEye as co, IconSearch as uo, IconPlus as fo } from "@tabler/icons-react";
|
|
7
7
|
import { createPortal as po } from "react-dom";
|
|
8
|
-
const
|
|
8
|
+
const xe = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "text-error dial-tiny mt-1", children: e }), go = 7, ho = 2, kr = xr(null), Rr = () => {
|
|
9
9
|
const e = Dr(kr);
|
|
10
10
|
if (e == null)
|
|
11
11
|
throw new Error("Tooltip components must be wrapped in <Tooltip />");
|
|
@@ -17,7 +17,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
17
17
|
open: n,
|
|
18
18
|
onOpenChange: o
|
|
19
19
|
} = {}) => {
|
|
20
|
-
const [s, a] =
|
|
20
|
+
const [s, a] = $(e), l = le(null), c = n ?? s, d = o ?? a, u = Dt({
|
|
21
21
|
placement: t,
|
|
22
22
|
open: c,
|
|
23
23
|
onOpenChange: d,
|
|
@@ -39,9 +39,9 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
39
39
|
enabled: n == null,
|
|
40
40
|
mouseOnly: r,
|
|
41
41
|
delay: { open: 500, close: 0 }
|
|
42
|
-
}),
|
|
42
|
+
}), g = bn(u.context, {
|
|
43
43
|
enabled: n == null
|
|
44
|
-
}), f = St(u.context),
|
|
44
|
+
}), f = St(u.context), C = Lt(u.context, { role: "tooltip" }), m = It([p, g, f, C]);
|
|
45
45
|
return B(
|
|
46
46
|
() => ({
|
|
47
47
|
open: c,
|
|
@@ -69,7 +69,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
69
69
|
...t
|
|
70
70
|
},
|
|
71
71
|
...o.getFloatingProps(r),
|
|
72
|
-
className:
|
|
72
|
+
className: y(
|
|
73
73
|
"z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-blackout px-2 py-1 dial-tiny shadow max-w-[300px]",
|
|
74
74
|
o.getFloatingProps(r).className
|
|
75
75
|
),
|
|
@@ -106,7 +106,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
106
106
|
children: t
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
}),
|
|
109
|
+
}), Le = ({
|
|
110
110
|
hideTooltip: e,
|
|
111
111
|
tooltip: t,
|
|
112
112
|
children: r,
|
|
@@ -114,11 +114,11 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
114
114
|
contentClassName: o,
|
|
115
115
|
...s
|
|
116
116
|
}) => /* @__PURE__ */ w(Pr, { ...s, children: [
|
|
117
|
-
/* @__PURE__ */ i(Vr, { className:
|
|
117
|
+
/* @__PURE__ */ i(Vr, { className: y(n, "truncate"), children: r }),
|
|
118
118
|
/* @__PURE__ */ i(
|
|
119
119
|
Mr,
|
|
120
120
|
{
|
|
121
|
-
className:
|
|
121
|
+
className: y(
|
|
122
122
|
"text-primary",
|
|
123
123
|
o,
|
|
124
124
|
"max-w-[300px]",
|
|
@@ -127,7 +127,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
127
127
|
children: t
|
|
128
128
|
}
|
|
129
129
|
)
|
|
130
|
-
] }),
|
|
130
|
+
] }), U = ({ icon: e, className: t }) => e ? /* @__PURE__ */ i("span", { className: y("flex-shrink-0", t), children: e }) : null, ke = ({
|
|
131
131
|
fieldTitle: e,
|
|
132
132
|
htmlFor: t,
|
|
133
133
|
optional: r,
|
|
@@ -137,7 +137,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
137
137
|
}) => e ? /* @__PURE__ */ w(
|
|
138
138
|
"label",
|
|
139
139
|
{
|
|
140
|
-
className:
|
|
140
|
+
className: y(
|
|
141
141
|
"dial-tiny text-secondary flex gap-1",
|
|
142
142
|
o,
|
|
143
143
|
!o?.includes("mb") && "mb-2"
|
|
@@ -146,8 +146,8 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
|
|
|
146
146
|
children: [
|
|
147
147
|
typeof e == "string" ? /* @__PURE__ */ i("span", { className: "min-h-4", children: e }) : e,
|
|
148
148
|
r && /* @__PURE__ */ i("span", { children: n ?? "(Optional)" }),
|
|
149
|
-
s && /* @__PURE__ */ i(
|
|
150
|
-
|
|
149
|
+
s && /* @__PURE__ */ i(Le, { tooltip: s, children: /* @__PURE__ */ i(
|
|
150
|
+
U,
|
|
151
151
|
{
|
|
152
152
|
icon: /* @__PURE__ */ i(Ir, { size: 14, className: "text-secondary" })
|
|
153
153
|
}
|
|
@@ -174,13 +174,13 @@ const Co = {
|
|
|
174
174
|
hideTitleOnMobile: d,
|
|
175
175
|
ariaLabel: u
|
|
176
176
|
}) => {
|
|
177
|
-
const p =
|
|
177
|
+
const p = y(
|
|
178
178
|
"dial-small-semi",
|
|
179
179
|
l ? "mr-2" : "",
|
|
180
180
|
c ? "ml-2" : "",
|
|
181
181
|
d ? "hidden sm:inline" : "inline",
|
|
182
182
|
n
|
|
183
|
-
),
|
|
183
|
+
), g = y(
|
|
184
184
|
t && Co[t],
|
|
185
185
|
r,
|
|
186
186
|
"focus-visible:outline outline-offset-0"
|
|
@@ -190,31 +190,31 @@ const Co = {
|
|
|
190
190
|
{
|
|
191
191
|
ref: o,
|
|
192
192
|
type: "button",
|
|
193
|
-
className:
|
|
193
|
+
className: g,
|
|
194
194
|
onClick: (f) => s?.(f),
|
|
195
195
|
disabled: a,
|
|
196
196
|
"aria-label": e || u,
|
|
197
197
|
children: [
|
|
198
|
-
/* @__PURE__ */ i(
|
|
198
|
+
/* @__PURE__ */ i(U, { icon: c }),
|
|
199
199
|
e && /* @__PURE__ */ i("span", { className: p, children: e }),
|
|
200
|
-
/* @__PURE__ */ i(
|
|
200
|
+
/* @__PURE__ */ i(U, { icon: l })
|
|
201
201
|
]
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
204
|
};
|
|
205
|
-
var
|
|
205
|
+
var Ee = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Error = "error", e))(Ee || {});
|
|
206
206
|
const vo = {
|
|
207
207
|
info: /* @__PURE__ */ i(Ir, { size: 24, stroke: 2 }),
|
|
208
208
|
error: /* @__PURE__ */ i(Nn, { size: 24, stroke: 2 }),
|
|
209
209
|
warning: /* @__PURE__ */ i(En, { size: 24, stroke: 2 }),
|
|
210
210
|
success: /* @__PURE__ */ i(On, { size: 24, stroke: 2 })
|
|
211
211
|
}, bo = {
|
|
212
|
-
[
|
|
213
|
-
[
|
|
214
|
-
[
|
|
215
|
-
[
|
|
212
|
+
[Ee.Info]: "bg-info border-info text-info",
|
|
213
|
+
[Ee.Success]: "bg-success border-success text-success",
|
|
214
|
+
[Ee.Warning]: "bg-warning border-warning text-warning",
|
|
215
|
+
[Ee.Error]: "bg-error border-error text-error"
|
|
216
216
|
}, yo = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", Ba = ({
|
|
217
|
-
variant: e =
|
|
217
|
+
variant: e = Ee.Info,
|
|
218
218
|
message: t,
|
|
219
219
|
cssClass: r,
|
|
220
220
|
closable: n = !1,
|
|
@@ -223,14 +223,14 @@ const vo = {
|
|
|
223
223
|
"div",
|
|
224
224
|
{
|
|
225
225
|
role: "alert",
|
|
226
|
-
className:
|
|
226
|
+
className: y(
|
|
227
227
|
yo,
|
|
228
228
|
bo[e],
|
|
229
229
|
r
|
|
230
230
|
),
|
|
231
231
|
children: [
|
|
232
232
|
/* @__PURE__ */ w("div", { className: "flex items-center gap-2", children: [
|
|
233
|
-
/* @__PURE__ */ i(
|
|
233
|
+
/* @__PURE__ */ i(U, { icon: vo[e] }),
|
|
234
234
|
/* @__PURE__ */ i("div", { className: "text-primary", children: t })
|
|
235
235
|
] }),
|
|
236
236
|
n && /* @__PURE__ */ i(
|
|
@@ -255,219 +255,38 @@ const vo = {
|
|
|
255
255
|
{
|
|
256
256
|
role: "status",
|
|
257
257
|
"aria-label": o,
|
|
258
|
-
className:
|
|
258
|
+
className: y({
|
|
259
259
|
[wo]: !0,
|
|
260
260
|
"w-full h-full": n,
|
|
261
261
|
[t || ""]: !!t
|
|
262
262
|
}),
|
|
263
263
|
children: /* @__PURE__ */ i(
|
|
264
|
-
|
|
264
|
+
U,
|
|
265
265
|
{
|
|
266
266
|
icon: /* @__PURE__ */ i(
|
|
267
267
|
Do,
|
|
268
268
|
{
|
|
269
269
|
width: e,
|
|
270
270
|
height: e,
|
|
271
|
-
className:
|
|
271
|
+
className: y(xo, r),
|
|
272
272
|
role: "img"
|
|
273
273
|
}
|
|
274
274
|
)
|
|
275
275
|
}
|
|
276
276
|
)
|
|
277
277
|
}
|
|
278
|
-
),
|
|
279
|
-
size:
|
|
278
|
+
), Ne = 18, X = {
|
|
279
|
+
size: Ne,
|
|
280
280
|
stroke: 2
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
id: t,
|
|
284
|
-
checked: r,
|
|
285
|
-
indeterminate: n,
|
|
286
|
-
disabled: o,
|
|
287
|
-
ariaLabel: s,
|
|
288
|
-
onChange: a,
|
|
289
|
-
cssClass: l
|
|
290
|
-
}) => {
|
|
291
|
-
const c = A(
|
|
292
|
-
(h) => {
|
|
293
|
-
a?.(h.target.checked, t);
|
|
294
|
-
},
|
|
295
|
-
[a, t]
|
|
296
|
-
), d = b(
|
|
297
|
-
"flex flex-row items-center cursor-pointer text-accent-primary small-medium flex-1 min-w-0",
|
|
298
|
-
`${r || n ? "" : 'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded before:mr-2'}`,
|
|
299
|
-
o ? "pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4" : "",
|
|
300
|
-
l
|
|
301
|
-
), u = b(
|
|
302
|
-
"mr-2 border rounded",
|
|
303
|
-
o ? "bg-layer-4 border-icon-secondary" : ""
|
|
304
|
-
);
|
|
305
|
-
return /* @__PURE__ */ w("label", { className: d, htmlFor: t, children: [
|
|
306
|
-
n ? /* @__PURE__ */ i(kn, { className: u, ...X }) : r ? /* @__PURE__ */ i(Tr, { className: u, ...X }) : null,
|
|
307
|
-
e && (typeof e == "string" ? /* @__PURE__ */ i(ve, { tooltip: e, triggerClassName: "flex-1 min-w-0", children: /* @__PURE__ */ i("span", { className: "text-primary w-full truncate", children: e }) }) : e),
|
|
308
|
-
/* @__PURE__ */ i(
|
|
309
|
-
"input",
|
|
310
|
-
{
|
|
311
|
-
type: "checkbox",
|
|
312
|
-
role: "checkbox",
|
|
313
|
-
name: t,
|
|
314
|
-
onChange: c,
|
|
315
|
-
id: t,
|
|
316
|
-
checked: r,
|
|
317
|
-
"aria-checked": n ? "mixed" : r,
|
|
318
|
-
"aria-disabled": o || void 0,
|
|
319
|
-
"aria-label": e ? void 0 : s,
|
|
320
|
-
className: "invisible w-0 h-0"
|
|
321
|
-
}
|
|
322
|
-
)
|
|
323
|
-
] });
|
|
324
|
-
};
|
|
325
|
-
var ae = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.ERROR = "error", e))(ae || {});
|
|
326
|
-
const So = (e, t) => {
|
|
327
|
-
if (t === e.id)
|
|
328
|
-
switch (e.status) {
|
|
329
|
-
case ae.VALID:
|
|
330
|
-
return "border-accent-secondary text-primary";
|
|
331
|
-
case ae.ERROR:
|
|
332
|
-
return "border-red-900 text-primary";
|
|
333
|
-
default:
|
|
334
|
-
return "border-accent-primary text-primary";
|
|
335
|
-
}
|
|
336
|
-
switch (e.status) {
|
|
337
|
-
case ae.VALID:
|
|
338
|
-
return "border-primary text-white";
|
|
339
|
-
case ae.ERROR:
|
|
340
|
-
return "border-red-900 text-error";
|
|
341
|
-
default:
|
|
342
|
-
return "border-primary text-secondary";
|
|
343
|
-
}
|
|
344
|
-
}, Lo = (e, t) => {
|
|
345
|
-
if (t === e.id)
|
|
346
|
-
switch (e.status) {
|
|
347
|
-
case ae.VALID:
|
|
348
|
-
return "bg-accent-secondary";
|
|
349
|
-
case ae.ERROR:
|
|
350
|
-
return "bg-red-400";
|
|
351
|
-
default:
|
|
352
|
-
return "bg-accent-primary";
|
|
353
|
-
}
|
|
354
|
-
switch (e.status) {
|
|
355
|
-
case ae.VALID:
|
|
356
|
-
return "bg-accent-secondary";
|
|
357
|
-
case ae.ERROR:
|
|
358
|
-
return "bg-red-400";
|
|
359
|
-
default:
|
|
360
|
-
return "bg-layer-4";
|
|
361
|
-
}
|
|
362
|
-
}, Io = ({
|
|
363
|
-
step: e,
|
|
364
|
-
index: t,
|
|
365
|
-
currentStep: r,
|
|
366
|
-
onChangeStep: n
|
|
367
|
-
}) => {
|
|
368
|
-
const o = "h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny border-t-2 cursor-pointer", s = "w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white", a = () => r === e.id && e.status === ae.ERROR ? /* @__PURE__ */ i(Et, { stroke: 2, size: 16 }) : r !== e.id && e.status === ae.VALID ? /* @__PURE__ */ i(Tr, { stroke: 2, size: 16 }) : t + 1;
|
|
369
|
-
return /* @__PURE__ */ w(
|
|
370
|
-
"button",
|
|
371
|
-
{
|
|
372
|
-
className: b(o, So(e, r)),
|
|
373
|
-
onClick: () => n(e.id),
|
|
374
|
-
children: [
|
|
375
|
-
/* @__PURE__ */ i(
|
|
376
|
-
"span",
|
|
377
|
-
{
|
|
378
|
-
className: b(s, Lo(e, r)),
|
|
379
|
-
children: a()
|
|
380
|
-
}
|
|
381
|
-
),
|
|
382
|
-
/* @__PURE__ */ i("span", { children: e.name })
|
|
383
|
-
]
|
|
384
|
-
}
|
|
385
|
-
);
|
|
386
|
-
}, Ga = ({
|
|
387
|
-
steps: e,
|
|
388
|
-
currentStep: t,
|
|
389
|
-
onChangeStep: r
|
|
390
|
-
}) => {
|
|
391
|
-
const n = (o) => {
|
|
392
|
-
const s = e.findIndex((l) => l.id === t), a = e.findIndex((l) => l.id === o);
|
|
393
|
-
(o !== t && e[s].status === ae.VALID || a < s) && r(o);
|
|
394
|
-
};
|
|
395
|
-
return /* @__PURE__ */ i("div", { id: "steps", className: "flex gap-x-3", children: e.map((o, s) => /* @__PURE__ */ i(
|
|
396
|
-
Io,
|
|
397
|
-
{
|
|
398
|
-
currentStep: t,
|
|
399
|
-
onChangeStep: n,
|
|
400
|
-
step: o,
|
|
401
|
-
index: s
|
|
402
|
-
},
|
|
403
|
-
o.id
|
|
404
|
-
)) });
|
|
405
|
-
}, To = ({
|
|
406
|
-
name: e,
|
|
407
|
-
value: t,
|
|
408
|
-
title: r,
|
|
409
|
-
description: n,
|
|
410
|
-
checked: o = !1,
|
|
411
|
-
inputId: s,
|
|
412
|
-
cssClass: a,
|
|
413
|
-
labelCssClass: l,
|
|
414
|
-
disabled: c,
|
|
415
|
-
onChange: d,
|
|
416
|
-
descriptionCssClass: u
|
|
417
|
-
}) => {
|
|
418
|
-
const p = `${s}-desc`, h = b(
|
|
419
|
-
"dial-small cursor-pointer",
|
|
420
|
-
c ? "text-secondary" : "text-primary",
|
|
421
|
-
l
|
|
422
|
-
), f = b(
|
|
423
|
-
"cursor-pointer dial-input-radio",
|
|
424
|
-
r && "mr-2",
|
|
425
|
-
a
|
|
426
|
-
), v = b("flex flex-col", !!n && "mb-2"), m = b(
|
|
427
|
-
"dial-tiny mt-2 ml-[26px] text-secondary",
|
|
428
|
-
u
|
|
429
|
-
);
|
|
430
|
-
return /* @__PURE__ */ w("div", { className: v, children: [
|
|
431
|
-
/* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
432
|
-
/* @__PURE__ */ i(
|
|
433
|
-
"input",
|
|
434
|
-
{
|
|
435
|
-
type: "radio",
|
|
436
|
-
id: s,
|
|
437
|
-
name: e,
|
|
438
|
-
value: t,
|
|
439
|
-
checked: o,
|
|
440
|
-
disabled: c,
|
|
441
|
-
"aria-describedby": o && n ? p : void 0,
|
|
442
|
-
className: f,
|
|
443
|
-
onChange: (L) => {
|
|
444
|
-
c || L.target.checked && d?.(t);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
),
|
|
448
|
-
r ? /* @__PURE__ */ i("label", { className: h, htmlFor: s, children: r }) : null
|
|
449
|
-
] }),
|
|
450
|
-
o && n && /* @__PURE__ */ i("div", { id: p, className: m, children: n })
|
|
451
|
-
] });
|
|
452
|
-
};
|
|
453
|
-
var Ze = /* @__PURE__ */ ((e) => (e.Row = "Row", e.Column = "Column", e))(Ze || {});
|
|
454
|
-
const Oo = "flex", Eo = "pb-1 mt-2", No = {
|
|
455
|
-
[Ze.Column]: "flex-col gap-y-3",
|
|
456
|
-
[Ze.Row]: "flex-row gap-x-6"
|
|
457
|
-
};
|
|
458
|
-
var Xe = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(Xe || {});
|
|
459
|
-
const ko = "w-full flex", Ro = {
|
|
460
|
-
[Xe.Vertical]: "flex-col",
|
|
461
|
-
[Xe.Horizontal]: "flex-row items-end"
|
|
462
|
-
}, Nt = "-", Po = (e) => {
|
|
463
|
-
const t = Vo(e), {
|
|
281
|
+
}, So = "text-primary", Nt = "-", Lo = (e) => {
|
|
282
|
+
const t = To(e), {
|
|
464
283
|
conflictingClassGroups: r,
|
|
465
284
|
conflictingClassGroupModifiers: n
|
|
466
285
|
} = e;
|
|
467
286
|
return {
|
|
468
287
|
getClassGroupId: (a) => {
|
|
469
288
|
const l = a.split(Nt);
|
|
470
|
-
return l[0] === "" && l.length !== 1 && l.shift(), Ar(l, t) ||
|
|
289
|
+
return l[0] === "" && l.length !== 1 && l.shift(), Ar(l, t) || Io(a);
|
|
471
290
|
},
|
|
472
291
|
getConflictingClassGroupIds: (a, l) => {
|
|
473
292
|
const c = r[a] || [];
|
|
@@ -486,13 +305,13 @@ const ko = "w-full flex", Ro = {
|
|
|
486
305
|
return t.validators.find(({
|
|
487
306
|
validator: a
|
|
488
307
|
}) => a(s))?.classGroupId;
|
|
489
|
-
},
|
|
490
|
-
if (
|
|
491
|
-
const t =
|
|
308
|
+
}, Bt = /^\[(.+)\]$/, Io = (e) => {
|
|
309
|
+
if (Bt.test(e)) {
|
|
310
|
+
const t = Bt.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
492
311
|
if (r)
|
|
493
312
|
return "arbitrary.." + r;
|
|
494
313
|
}
|
|
495
|
-
},
|
|
314
|
+
}, To = (e) => {
|
|
496
315
|
const {
|
|
497
316
|
theme: t,
|
|
498
317
|
classGroups: r
|
|
@@ -506,12 +325,12 @@ const ko = "w-full flex", Ro = {
|
|
|
506
325
|
}, pt = (e, t, r, n) => {
|
|
507
326
|
e.forEach((o) => {
|
|
508
327
|
if (typeof o == "string") {
|
|
509
|
-
const s = o === "" ? t :
|
|
328
|
+
const s = o === "" ? t : Gt(t, o);
|
|
510
329
|
s.classGroupId = r;
|
|
511
330
|
return;
|
|
512
331
|
}
|
|
513
332
|
if (typeof o == "function") {
|
|
514
|
-
if (
|
|
333
|
+
if (Oo(o)) {
|
|
515
334
|
pt(o(n), t, r, n);
|
|
516
335
|
return;
|
|
517
336
|
}
|
|
@@ -522,10 +341,10 @@ const ko = "w-full flex", Ro = {
|
|
|
522
341
|
return;
|
|
523
342
|
}
|
|
524
343
|
Object.entries(o).forEach(([s, a]) => {
|
|
525
|
-
pt(a,
|
|
344
|
+
pt(a, Gt(t, s), r, n);
|
|
526
345
|
});
|
|
527
346
|
});
|
|
528
|
-
},
|
|
347
|
+
}, Gt = (e, t) => {
|
|
529
348
|
let r = e;
|
|
530
349
|
return t.split(Nt).forEach((n) => {
|
|
531
350
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
@@ -533,7 +352,7 @@ const ko = "w-full flex", Ro = {
|
|
|
533
352
|
validators: []
|
|
534
353
|
}), r = r.nextPart.get(n);
|
|
535
354
|
}), r;
|
|
536
|
-
},
|
|
355
|
+
}, Oo = (e) => e.isThemeGetter, Eo = (e) => {
|
|
537
356
|
if (e < 1)
|
|
538
357
|
return {
|
|
539
358
|
get: () => {
|
|
@@ -557,7 +376,7 @@ const ko = "w-full flex", Ro = {
|
|
|
557
376
|
r.has(s) ? r.set(s, a) : o(s, a);
|
|
558
377
|
}
|
|
559
378
|
};
|
|
560
|
-
}, gt = "!", ht = ":",
|
|
379
|
+
}, gt = "!", ht = ":", No = ht.length, ko = (e) => {
|
|
561
380
|
const {
|
|
562
381
|
prefix: t,
|
|
563
382
|
experimentalParseClassName: r
|
|
@@ -565,24 +384,24 @@ const ko = "w-full flex", Ro = {
|
|
|
565
384
|
let n = (o) => {
|
|
566
385
|
const s = [];
|
|
567
386
|
let a = 0, l = 0, c = 0, d;
|
|
568
|
-
for (let
|
|
569
|
-
let m = o[
|
|
387
|
+
for (let C = 0; C < o.length; C++) {
|
|
388
|
+
let m = o[C];
|
|
570
389
|
if (a === 0 && l === 0) {
|
|
571
390
|
if (m === ht) {
|
|
572
|
-
s.push(o.slice(c,
|
|
391
|
+
s.push(o.slice(c, C)), c = C + No;
|
|
573
392
|
continue;
|
|
574
393
|
}
|
|
575
394
|
if (m === "/") {
|
|
576
|
-
d =
|
|
395
|
+
d = C;
|
|
577
396
|
continue;
|
|
578
397
|
}
|
|
579
398
|
}
|
|
580
399
|
m === "[" ? a++ : m === "]" ? a-- : m === "(" ? l++ : m === ")" && l--;
|
|
581
400
|
}
|
|
582
|
-
const u = s.length === 0 ? o : o.substring(c), p =
|
|
401
|
+
const u = s.length === 0 ? o : o.substring(c), p = Ro(u), g = p !== u, f = d && d > c ? d - c : void 0;
|
|
583
402
|
return {
|
|
584
403
|
modifiers: s,
|
|
585
|
-
hasImportantModifier:
|
|
404
|
+
hasImportantModifier: g,
|
|
586
405
|
baseClassName: p,
|
|
587
406
|
maybePostfixModifierPosition: f
|
|
588
407
|
};
|
|
@@ -605,7 +424,7 @@ const ko = "w-full flex", Ro = {
|
|
|
605
424
|
});
|
|
606
425
|
}
|
|
607
426
|
return n;
|
|
608
|
-
},
|
|
427
|
+
}, Ro = (e) => e.endsWith(gt) ? e.substring(0, e.length - 1) : e.startsWith(gt) ? e.substring(1) : e, Po = (e) => {
|
|
609
428
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((n) => [n, !0]));
|
|
610
429
|
return (n) => {
|
|
611
430
|
if (n.length <= 1)
|
|
@@ -616,57 +435,57 @@ const ko = "w-full flex", Ro = {
|
|
|
616
435
|
a[0] === "[" || t[a] ? (o.push(...s.sort(), a), s = []) : s.push(a);
|
|
617
436
|
}), o.push(...s.sort()), o;
|
|
618
437
|
};
|
|
619
|
-
},
|
|
620
|
-
cache:
|
|
621
|
-
parseClassName:
|
|
622
|
-
sortModifiers:
|
|
623
|
-
...
|
|
624
|
-
}),
|
|
438
|
+
}, Mo = (e) => ({
|
|
439
|
+
cache: Eo(e.cacheSize),
|
|
440
|
+
parseClassName: ko(e),
|
|
441
|
+
sortModifiers: Po(e),
|
|
442
|
+
...Lo(e)
|
|
443
|
+
}), Vo = /\s+/, Ho = (e, t) => {
|
|
625
444
|
const {
|
|
626
445
|
parseClassName: r,
|
|
627
446
|
getClassGroupId: n,
|
|
628
447
|
getConflictingClassGroupIds: o,
|
|
629
448
|
sortModifiers: s
|
|
630
|
-
} = t, a = [], l = e.trim().split(
|
|
449
|
+
} = t, a = [], l = e.trim().split(Vo);
|
|
631
450
|
let c = "";
|
|
632
451
|
for (let d = l.length - 1; d >= 0; d -= 1) {
|
|
633
452
|
const u = l[d], {
|
|
634
453
|
isExternal: p,
|
|
635
|
-
modifiers:
|
|
454
|
+
modifiers: g,
|
|
636
455
|
hasImportantModifier: f,
|
|
637
|
-
baseClassName:
|
|
456
|
+
baseClassName: C,
|
|
638
457
|
maybePostfixModifierPosition: m
|
|
639
458
|
} = r(u);
|
|
640
459
|
if (p) {
|
|
641
460
|
c = u + (c.length > 0 ? " " + c : c);
|
|
642
461
|
continue;
|
|
643
462
|
}
|
|
644
|
-
let x = !!m, L = n(x ?
|
|
463
|
+
let x = !!m, L = n(x ? C.substring(0, m) : C);
|
|
645
464
|
if (!L) {
|
|
646
465
|
if (!x) {
|
|
647
466
|
c = u + (c.length > 0 ? " " + c : c);
|
|
648
467
|
continue;
|
|
649
468
|
}
|
|
650
|
-
if (L = n(
|
|
469
|
+
if (L = n(C), !L) {
|
|
651
470
|
c = u + (c.length > 0 ? " " + c : c);
|
|
652
471
|
continue;
|
|
653
472
|
}
|
|
654
473
|
x = !1;
|
|
655
474
|
}
|
|
656
|
-
const
|
|
475
|
+
const v = s(g).join(":"), b = f ? v + gt : v, O = b + L;
|
|
657
476
|
if (a.includes(O))
|
|
658
477
|
continue;
|
|
659
478
|
a.push(O);
|
|
660
479
|
const R = o(L, x);
|
|
661
480
|
for (let P = 0; P < R.length; ++P) {
|
|
662
|
-
const
|
|
663
|
-
a.push(
|
|
481
|
+
const W = R[P];
|
|
482
|
+
a.push(b + W);
|
|
664
483
|
}
|
|
665
484
|
c = u + (c.length > 0 ? " " + c : c);
|
|
666
485
|
}
|
|
667
486
|
return c;
|
|
668
487
|
};
|
|
669
|
-
function
|
|
488
|
+
function Ao() {
|
|
670
489
|
let e = 0, t, r, n = "";
|
|
671
490
|
for (; e < arguments.length; )
|
|
672
491
|
(t = arguments[e++]) && (r = Fr(t)) && (n && (n += " "), n += r);
|
|
@@ -680,39 +499,39 @@ const Fr = (e) => {
|
|
|
680
499
|
e[n] && (t = Fr(e[n])) && (r && (r += " "), r += t);
|
|
681
500
|
return r;
|
|
682
501
|
};
|
|
683
|
-
function
|
|
502
|
+
function Fo(e, ...t) {
|
|
684
503
|
let r, n, o, s = a;
|
|
685
504
|
function a(c) {
|
|
686
505
|
const d = t.reduce((u, p) => p(u), e());
|
|
687
|
-
return r =
|
|
506
|
+
return r = Mo(d), n = r.cache.get, o = r.cache.set, s = l, l(c);
|
|
688
507
|
}
|
|
689
508
|
function l(c) {
|
|
690
509
|
const d = n(c);
|
|
691
510
|
if (d)
|
|
692
511
|
return d;
|
|
693
|
-
const u =
|
|
512
|
+
const u = Ho(c, r);
|
|
694
513
|
return o(c, u), u;
|
|
695
514
|
}
|
|
696
515
|
return function() {
|
|
697
|
-
return s(
|
|
516
|
+
return s(Ao.apply(null, arguments));
|
|
698
517
|
};
|
|
699
518
|
}
|
|
700
|
-
const
|
|
519
|
+
const Z = (e) => {
|
|
701
520
|
const t = (r) => r[e] || [];
|
|
702
521
|
return t.isThemeGetter = !0, t;
|
|
703
|
-
}, _r = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zr = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
522
|
+
}, _r = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, _o = /^\d+\/\d+$/, zo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Bo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Go = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $o = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ie = (e) => _o.test(e), k = (e) => !!e && !Number.isNaN(Number(e)), me = (e) => !!e && Number.isInteger(Number(e)), ot = (e) => e.endsWith("%") && k(e.slice(0, -1)), fe = (e) => zo.test(e), Wo = () => !0, Uo = (e) => (
|
|
704
523
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
705
524
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
706
525
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
707
|
-
|
|
708
|
-
), jr = () => !1,
|
|
526
|
+
jo.test(e) && !Bo.test(e)
|
|
527
|
+
), jr = () => !1, qo = (e) => Go.test(e), Zo = (e) => $o.test(e), Xo = (e) => !D(e) && !S(e), Yo = (e) => Re(e, $r, jr), D = (e) => _r.test(e), be = (e) => Re(e, Wr, Uo), st = (e) => Re(e, ts, k), $t = (e) => Re(e, Br, jr), Ko = (e) => Re(e, Gr, Zo), Be = (e) => Re(e, Ur, qo), S = (e) => zr.test(e), Ve = (e) => Pe(e, Wr), Jo = (e) => Pe(e, rs), Wt = (e) => Pe(e, Br), Qo = (e) => Pe(e, $r), es = (e) => Pe(e, Gr), Ge = (e) => Pe(e, Ur, !0), Re = (e, t, r) => {
|
|
709
528
|
const n = _r.exec(e);
|
|
710
529
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
711
530
|
}, Pe = (e, t, r = !1) => {
|
|
712
531
|
const n = zr.exec(e);
|
|
713
532
|
return n ? n[1] ? t(n[1]) : r : !1;
|
|
714
|
-
}, Br = (e) => e === "position" || e === "percentage", Gr = (e) => e === "image" || e === "url", $r = (e) => e === "length" || e === "size" || e === "bg-size", Wr = (e) => e === "length",
|
|
715
|
-
const e =
|
|
533
|
+
}, Br = (e) => e === "position" || e === "percentage", Gr = (e) => e === "image" || e === "url", $r = (e) => e === "length" || e === "size" || e === "bg-size", Wr = (e) => e === "length", ts = (e) => e === "number", rs = (e) => e === "family-name", Ur = (e) => e === "shadow", ns = () => {
|
|
534
|
+
const e = Z("color"), t = Z("font"), r = Z("text"), n = Z("font-weight"), o = Z("tracking"), s = Z("leading"), a = Z("breakpoint"), l = Z("container"), c = Z("spacing"), d = Z("radius"), u = Z("shadow"), p = Z("inset-shadow"), g = Z("text-shadow"), f = Z("drop-shadow"), C = Z("blur"), m = Z("perspective"), x = Z("aspect"), L = Z("ease"), v = Z("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
716
535
|
"center",
|
|
717
536
|
"top",
|
|
718
537
|
"bottom",
|
|
@@ -730,15 +549,15 @@ const q = (e) => {
|
|
|
730
549
|
"bottom-left",
|
|
731
550
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
732
551
|
"left-bottom"
|
|
733
|
-
], R = () => [...O(), S, D], P = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
552
|
+
], R = () => [...O(), S, D], P = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], I = () => [S, D, c], j = () => [Ie, "full", "auto", ...I()], _ = () => [me, "none", "subgrid", S, D], M = () => ["auto", {
|
|
734
553
|
span: ["full", me, S, D]
|
|
735
|
-
}, me, S, D], V = () => [me, "auto", S, D], ee = () => ["auto", "min", "max", "fr", S, D], de = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], te = () => ["auto", ...I()], re = () => [
|
|
554
|
+
}, me, S, D], V = () => [me, "auto", S, D], ee = () => ["auto", "min", "max", "fr", S, D], de = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], te = () => ["auto", ...I()], re = () => [Ie, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], T = () => [e, S, D], ue = () => [...O(), Wt, $t, {
|
|
736
555
|
position: [S, D]
|
|
737
556
|
}], ge = () => ["no-repeat", {
|
|
738
557
|
repeat: ["", "x", "y", "space", "round"]
|
|
739
|
-
}], he = () => ["auto", "cover", "contain",
|
|
558
|
+
}], he = () => ["auto", "cover", "contain", Qo, Yo, {
|
|
740
559
|
size: [S, D]
|
|
741
|
-
}], oe = () => [ot, Ve,
|
|
560
|
+
}], oe = () => [ot, Ve, be], q = () => [
|
|
742
561
|
// Deprecated since Tailwind CSS v4.0.0
|
|
743
562
|
"",
|
|
744
563
|
"none",
|
|
@@ -746,14 +565,14 @@ const q = (e) => {
|
|
|
746
565
|
d,
|
|
747
566
|
S,
|
|
748
567
|
D
|
|
749
|
-
], K = () => ["", k, Ve,
|
|
568
|
+
], K = () => ["", k, Ve, be], h = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [k, ot, Wt, $t], ce = () => [
|
|
750
569
|
// Deprecated since Tailwind CSS v4.0.0
|
|
751
570
|
"",
|
|
752
571
|
"none",
|
|
753
|
-
|
|
572
|
+
C,
|
|
754
573
|
S,
|
|
755
574
|
D
|
|
756
|
-
],
|
|
575
|
+
], ve = () => ["none", k, S, D], ze = () => ["none", k, S, D], nt = () => [k, S, D], je = () => [Ie, "full", ...I()];
|
|
757
576
|
return {
|
|
758
577
|
cacheSize: 500,
|
|
759
578
|
theme: {
|
|
@@ -761,11 +580,11 @@ const q = (e) => {
|
|
|
761
580
|
aspect: ["video"],
|
|
762
581
|
blur: [fe],
|
|
763
582
|
breakpoint: [fe],
|
|
764
|
-
color: [
|
|
583
|
+
color: [Wo],
|
|
765
584
|
container: [fe],
|
|
766
585
|
"drop-shadow": [fe],
|
|
767
586
|
ease: ["in", "out", "in-out"],
|
|
768
|
-
font: [
|
|
587
|
+
font: [Xo],
|
|
769
588
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
770
589
|
"inset-shadow": [fe],
|
|
771
590
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -786,7 +605,7 @@ const q = (e) => {
|
|
|
786
605
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
787
606
|
*/
|
|
788
607
|
aspect: [{
|
|
789
|
-
aspect: ["auto", "square",
|
|
608
|
+
aspect: ["auto", "square", Ie, D, S, x]
|
|
790
609
|
}],
|
|
791
610
|
/**
|
|
792
611
|
* Container
|
|
@@ -806,14 +625,14 @@ const q = (e) => {
|
|
|
806
625
|
* @see https://tailwindcss.com/docs/break-after
|
|
807
626
|
*/
|
|
808
627
|
"break-after": [{
|
|
809
|
-
"break-after":
|
|
628
|
+
"break-after": b()
|
|
810
629
|
}],
|
|
811
630
|
/**
|
|
812
631
|
* Break Before
|
|
813
632
|
* @see https://tailwindcss.com/docs/break-before
|
|
814
633
|
*/
|
|
815
634
|
"break-before": [{
|
|
816
|
-
"break-before":
|
|
635
|
+
"break-before": b()
|
|
817
636
|
}],
|
|
818
637
|
/**
|
|
819
638
|
* Break Inside
|
|
@@ -905,21 +724,21 @@ const q = (e) => {
|
|
|
905
724
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
906
725
|
*/
|
|
907
726
|
overscroll: [{
|
|
908
|
-
overscroll:
|
|
727
|
+
overscroll: W()
|
|
909
728
|
}],
|
|
910
729
|
/**
|
|
911
730
|
* Overscroll Behavior X
|
|
912
731
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
913
732
|
*/
|
|
914
733
|
"overscroll-x": [{
|
|
915
|
-
"overscroll-x":
|
|
734
|
+
"overscroll-x": W()
|
|
916
735
|
}],
|
|
917
736
|
/**
|
|
918
737
|
* Overscroll Behavior Y
|
|
919
738
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
920
739
|
*/
|
|
921
740
|
"overscroll-y": [{
|
|
922
|
-
"overscroll-y":
|
|
741
|
+
"overscroll-y": W()
|
|
923
742
|
}],
|
|
924
743
|
/**
|
|
925
744
|
* Position
|
|
@@ -1009,7 +828,7 @@ const q = (e) => {
|
|
|
1009
828
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1010
829
|
*/
|
|
1011
830
|
basis: [{
|
|
1012
|
-
basis: [
|
|
831
|
+
basis: [Ie, "full", "auto", l, ...I()]
|
|
1013
832
|
}],
|
|
1014
833
|
/**
|
|
1015
834
|
* Flex Direction
|
|
@@ -1030,7 +849,7 @@ const q = (e) => {
|
|
|
1030
849
|
* @see https://tailwindcss.com/docs/flex
|
|
1031
850
|
*/
|
|
1032
851
|
flex: [{
|
|
1033
|
-
flex: [k,
|
|
852
|
+
flex: [k, Ie, "auto", "initial", "none", D]
|
|
1034
853
|
}],
|
|
1035
854
|
/**
|
|
1036
855
|
* Flex Grow
|
|
@@ -1446,7 +1265,7 @@ const q = (e) => {
|
|
|
1446
1265
|
* @see https://tailwindcss.com/docs/font-size
|
|
1447
1266
|
*/
|
|
1448
1267
|
"font-size": [{
|
|
1449
|
-
text: ["base", r, Ve,
|
|
1268
|
+
text: ["base", r, Ve, be]
|
|
1450
1269
|
}],
|
|
1451
1270
|
/**
|
|
1452
1271
|
* Font Smoothing
|
|
@@ -1477,7 +1296,7 @@ const q = (e) => {
|
|
|
1477
1296
|
* @see https://tailwindcss.com/docs/font-family
|
|
1478
1297
|
*/
|
|
1479
1298
|
"font-family": [{
|
|
1480
|
-
font: [
|
|
1299
|
+
font: [Jo, D, t]
|
|
1481
1300
|
}],
|
|
1482
1301
|
/**
|
|
1483
1302
|
* Font Variant Numeric
|
|
@@ -1587,14 +1406,14 @@ const q = (e) => {
|
|
|
1587
1406
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1588
1407
|
*/
|
|
1589
1408
|
"text-decoration-style": [{
|
|
1590
|
-
decoration: [...
|
|
1409
|
+
decoration: [...h(), "wavy"]
|
|
1591
1410
|
}],
|
|
1592
1411
|
/**
|
|
1593
1412
|
* Text Decoration Thickness
|
|
1594
1413
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1595
1414
|
*/
|
|
1596
1415
|
"text-decoration-thickness": [{
|
|
1597
|
-
decoration: [k, "from-font", "auto", S,
|
|
1416
|
+
decoration: [k, "from-font", "auto", S, be]
|
|
1598
1417
|
}],
|
|
1599
1418
|
/**
|
|
1600
1419
|
* Text Decoration Color
|
|
@@ -1732,7 +1551,7 @@ const q = (e) => {
|
|
|
1732
1551
|
}, me, S, D],
|
|
1733
1552
|
radial: ["", S, D],
|
|
1734
1553
|
conic: [me, S, D]
|
|
1735
|
-
},
|
|
1554
|
+
}, es, Ko]
|
|
1736
1555
|
}],
|
|
1737
1556
|
/**
|
|
1738
1557
|
* Background Color
|
|
@@ -1791,105 +1610,105 @@ const q = (e) => {
|
|
|
1791
1610
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1792
1611
|
*/
|
|
1793
1612
|
rounded: [{
|
|
1794
|
-
rounded:
|
|
1613
|
+
rounded: q()
|
|
1795
1614
|
}],
|
|
1796
1615
|
/**
|
|
1797
1616
|
* Border Radius Start
|
|
1798
1617
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1799
1618
|
*/
|
|
1800
1619
|
"rounded-s": [{
|
|
1801
|
-
"rounded-s":
|
|
1620
|
+
"rounded-s": q()
|
|
1802
1621
|
}],
|
|
1803
1622
|
/**
|
|
1804
1623
|
* Border Radius End
|
|
1805
1624
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1806
1625
|
*/
|
|
1807
1626
|
"rounded-e": [{
|
|
1808
|
-
"rounded-e":
|
|
1627
|
+
"rounded-e": q()
|
|
1809
1628
|
}],
|
|
1810
1629
|
/**
|
|
1811
1630
|
* Border Radius Top
|
|
1812
1631
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1813
1632
|
*/
|
|
1814
1633
|
"rounded-t": [{
|
|
1815
|
-
"rounded-t":
|
|
1634
|
+
"rounded-t": q()
|
|
1816
1635
|
}],
|
|
1817
1636
|
/**
|
|
1818
1637
|
* Border Radius Right
|
|
1819
1638
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1820
1639
|
*/
|
|
1821
1640
|
"rounded-r": [{
|
|
1822
|
-
"rounded-r":
|
|
1641
|
+
"rounded-r": q()
|
|
1823
1642
|
}],
|
|
1824
1643
|
/**
|
|
1825
1644
|
* Border Radius Bottom
|
|
1826
1645
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1827
1646
|
*/
|
|
1828
1647
|
"rounded-b": [{
|
|
1829
|
-
"rounded-b":
|
|
1648
|
+
"rounded-b": q()
|
|
1830
1649
|
}],
|
|
1831
1650
|
/**
|
|
1832
1651
|
* Border Radius Left
|
|
1833
1652
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1834
1653
|
*/
|
|
1835
1654
|
"rounded-l": [{
|
|
1836
|
-
"rounded-l":
|
|
1655
|
+
"rounded-l": q()
|
|
1837
1656
|
}],
|
|
1838
1657
|
/**
|
|
1839
1658
|
* Border Radius Start Start
|
|
1840
1659
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1841
1660
|
*/
|
|
1842
1661
|
"rounded-ss": [{
|
|
1843
|
-
"rounded-ss":
|
|
1662
|
+
"rounded-ss": q()
|
|
1844
1663
|
}],
|
|
1845
1664
|
/**
|
|
1846
1665
|
* Border Radius Start End
|
|
1847
1666
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1848
1667
|
*/
|
|
1849
1668
|
"rounded-se": [{
|
|
1850
|
-
"rounded-se":
|
|
1669
|
+
"rounded-se": q()
|
|
1851
1670
|
}],
|
|
1852
1671
|
/**
|
|
1853
1672
|
* Border Radius End End
|
|
1854
1673
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1855
1674
|
*/
|
|
1856
1675
|
"rounded-ee": [{
|
|
1857
|
-
"rounded-ee":
|
|
1676
|
+
"rounded-ee": q()
|
|
1858
1677
|
}],
|
|
1859
1678
|
/**
|
|
1860
1679
|
* Border Radius End Start
|
|
1861
1680
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1862
1681
|
*/
|
|
1863
1682
|
"rounded-es": [{
|
|
1864
|
-
"rounded-es":
|
|
1683
|
+
"rounded-es": q()
|
|
1865
1684
|
}],
|
|
1866
1685
|
/**
|
|
1867
1686
|
* Border Radius Top Left
|
|
1868
1687
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1869
1688
|
*/
|
|
1870
1689
|
"rounded-tl": [{
|
|
1871
|
-
"rounded-tl":
|
|
1690
|
+
"rounded-tl": q()
|
|
1872
1691
|
}],
|
|
1873
1692
|
/**
|
|
1874
1693
|
* Border Radius Top Right
|
|
1875
1694
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1876
1695
|
*/
|
|
1877
1696
|
"rounded-tr": [{
|
|
1878
|
-
"rounded-tr":
|
|
1697
|
+
"rounded-tr": q()
|
|
1879
1698
|
}],
|
|
1880
1699
|
/**
|
|
1881
1700
|
* Border Radius Bottom Right
|
|
1882
1701
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1883
1702
|
*/
|
|
1884
1703
|
"rounded-br": [{
|
|
1885
|
-
"rounded-br":
|
|
1704
|
+
"rounded-br": q()
|
|
1886
1705
|
}],
|
|
1887
1706
|
/**
|
|
1888
1707
|
* Border Radius Bottom Left
|
|
1889
1708
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1890
1709
|
*/
|
|
1891
1710
|
"rounded-bl": [{
|
|
1892
|
-
"rounded-bl":
|
|
1711
|
+
"rounded-bl": q()
|
|
1893
1712
|
}],
|
|
1894
1713
|
/**
|
|
1895
1714
|
* Border Width
|
|
@@ -1983,14 +1802,14 @@ const q = (e) => {
|
|
|
1983
1802
|
* @see https://tailwindcss.com/docs/border-style
|
|
1984
1803
|
*/
|
|
1985
1804
|
"border-style": [{
|
|
1986
|
-
border: [...
|
|
1805
|
+
border: [...h(), "hidden", "none"]
|
|
1987
1806
|
}],
|
|
1988
1807
|
/**
|
|
1989
1808
|
* Divide Style
|
|
1990
1809
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1991
1810
|
*/
|
|
1992
1811
|
"divide-style": [{
|
|
1993
|
-
divide: [...
|
|
1812
|
+
divide: [...h(), "hidden", "none"]
|
|
1994
1813
|
}],
|
|
1995
1814
|
/**
|
|
1996
1815
|
* Border Color
|
|
@@ -2067,7 +1886,7 @@ const q = (e) => {
|
|
|
2067
1886
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2068
1887
|
*/
|
|
2069
1888
|
"outline-style": [{
|
|
2070
|
-
outline: [...
|
|
1889
|
+
outline: [...h(), "none", "hidden"]
|
|
2071
1890
|
}],
|
|
2072
1891
|
/**
|
|
2073
1892
|
* Outline Offset
|
|
@@ -2081,7 +1900,7 @@ const q = (e) => {
|
|
|
2081
1900
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2082
1901
|
*/
|
|
2083
1902
|
"outline-w": [{
|
|
2084
|
-
outline: ["", k, Ve,
|
|
1903
|
+
outline: ["", k, Ve, be]
|
|
2085
1904
|
}],
|
|
2086
1905
|
/**
|
|
2087
1906
|
* Outline Color
|
|
@@ -2156,7 +1975,7 @@ const q = (e) => {
|
|
|
2156
1975
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2157
1976
|
*/
|
|
2158
1977
|
"ring-offset-w": [{
|
|
2159
|
-
"ring-offset": [k,
|
|
1978
|
+
"ring-offset": [k, be]
|
|
2160
1979
|
}],
|
|
2161
1980
|
/**
|
|
2162
1981
|
* Ring Offset Color
|
|
@@ -2186,7 +2005,7 @@ const q = (e) => {
|
|
|
2186
2005
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2187
2006
|
*/
|
|
2188
2007
|
"text-shadow": [{
|
|
2189
|
-
"text-shadow": ["none",
|
|
2008
|
+
"text-shadow": ["none", g, Ge, Be]
|
|
2190
2009
|
}],
|
|
2191
2010
|
/**
|
|
2192
2011
|
* Text Shadow Color
|
|
@@ -2669,7 +2488,7 @@ const q = (e) => {
|
|
|
2669
2488
|
* @see https://tailwindcss.com/docs/animation
|
|
2670
2489
|
*/
|
|
2671
2490
|
animate: [{
|
|
2672
|
-
animate: ["none",
|
|
2491
|
+
animate: ["none", v, S, D]
|
|
2673
2492
|
}],
|
|
2674
2493
|
// ------------------
|
|
2675
2494
|
// --- Transforms ---
|
|
@@ -2700,28 +2519,28 @@ const q = (e) => {
|
|
|
2700
2519
|
* @see https://tailwindcss.com/docs/rotate
|
|
2701
2520
|
*/
|
|
2702
2521
|
rotate: [{
|
|
2703
|
-
rotate:
|
|
2522
|
+
rotate: ve()
|
|
2704
2523
|
}],
|
|
2705
2524
|
/**
|
|
2706
2525
|
* Rotate X
|
|
2707
2526
|
* @see https://tailwindcss.com/docs/rotate
|
|
2708
2527
|
*/
|
|
2709
2528
|
"rotate-x": [{
|
|
2710
|
-
"rotate-x":
|
|
2529
|
+
"rotate-x": ve()
|
|
2711
2530
|
}],
|
|
2712
2531
|
/**
|
|
2713
2532
|
* Rotate Y
|
|
2714
2533
|
* @see https://tailwindcss.com/docs/rotate
|
|
2715
2534
|
*/
|
|
2716
2535
|
"rotate-y": [{
|
|
2717
|
-
"rotate-y":
|
|
2536
|
+
"rotate-y": ve()
|
|
2718
2537
|
}],
|
|
2719
2538
|
/**
|
|
2720
2539
|
* Rotate Z
|
|
2721
2540
|
* @see https://tailwindcss.com/docs/rotate
|
|
2722
2541
|
*/
|
|
2723
2542
|
"rotate-z": [{
|
|
2724
|
-
"rotate-z":
|
|
2543
|
+
"rotate-z": ve()
|
|
2725
2544
|
}],
|
|
2726
2545
|
/**
|
|
2727
2546
|
* Scale
|
|
@@ -3106,7 +2925,7 @@ const q = (e) => {
|
|
|
3106
2925
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3107
2926
|
*/
|
|
3108
2927
|
"stroke-w": [{
|
|
3109
|
-
stroke: [k, Ve,
|
|
2928
|
+
stroke: [k, Ve, be, st]
|
|
3110
2929
|
}],
|
|
3111
2930
|
/**
|
|
3112
2931
|
* Stroke
|
|
@@ -3181,56 +3000,296 @@ const q = (e) => {
|
|
|
3181
3000
|
},
|
|
3182
3001
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3183
3002
|
};
|
|
3184
|
-
},
|
|
3185
|
-
function
|
|
3186
|
-
return
|
|
3003
|
+
}, os = /* @__PURE__ */ Fo(ns);
|
|
3004
|
+
function G(...e) {
|
|
3005
|
+
return os(y(e));
|
|
3187
3006
|
}
|
|
3188
|
-
const
|
|
3007
|
+
const De = ({
|
|
3008
|
+
text: e,
|
|
3009
|
+
cssClass: t,
|
|
3010
|
+
contentClassName: r,
|
|
3011
|
+
hideTooltip: n,
|
|
3012
|
+
...o
|
|
3013
|
+
}) => {
|
|
3014
|
+
const s = le(null), [a, l] = $(!1), [c, d] = $(""), u = le(null), p = () => {
|
|
3015
|
+
const m = s.current;
|
|
3016
|
+
if (!m) return;
|
|
3017
|
+
d(m.textContent ?? "");
|
|
3018
|
+
const x = m.clientWidth, L = m.scrollWidth, v = Math.ceil(m.getBoundingClientRect().width);
|
|
3019
|
+
l(L > x || L > v);
|
|
3020
|
+
}, g = A(() => {
|
|
3021
|
+
u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(p);
|
|
3022
|
+
}, []);
|
|
3023
|
+
ne(() => {
|
|
3024
|
+
g();
|
|
3025
|
+
const m = () => g();
|
|
3026
|
+
window.addEventListener("resize", m);
|
|
3027
|
+
let x = null;
|
|
3028
|
+
return "ResizeObserver" in window && s.current && (x = new ResizeObserver(() => g()), x.observe(s.current)), () => {
|
|
3029
|
+
window.removeEventListener("resize", m), x && x.disconnect(), u.current && cancelAnimationFrame(u.current);
|
|
3030
|
+
};
|
|
3031
|
+
}, [e, g]);
|
|
3032
|
+
const f = B(
|
|
3033
|
+
() => typeof e == "string" ? e : c,
|
|
3034
|
+
[c, e]
|
|
3035
|
+
), C = B(() => n ? "" : a ? f : "", [f, n, a]);
|
|
3036
|
+
return /* @__PURE__ */ w(Pr, { ...o, children: [
|
|
3037
|
+
/* @__PURE__ */ i(
|
|
3038
|
+
Vr,
|
|
3039
|
+
{
|
|
3040
|
+
asChild: !0,
|
|
3041
|
+
ref: s,
|
|
3042
|
+
onMouseEnter: g,
|
|
3043
|
+
onFocusCapture: g,
|
|
3044
|
+
children: /* @__PURE__ */ i(
|
|
3045
|
+
"span",
|
|
3046
|
+
{
|
|
3047
|
+
className: G(
|
|
3048
|
+
"block truncate min-w-0 max-w-full",
|
|
3049
|
+
t
|
|
3050
|
+
),
|
|
3051
|
+
"aria-label": a ? f : void 0,
|
|
3052
|
+
onMouseEnter: g,
|
|
3053
|
+
onFocus: g,
|
|
3054
|
+
children: e
|
|
3055
|
+
}
|
|
3056
|
+
)
|
|
3057
|
+
}
|
|
3058
|
+
),
|
|
3059
|
+
/* @__PURE__ */ i(
|
|
3060
|
+
Mr,
|
|
3061
|
+
{
|
|
3062
|
+
className: G(
|
|
3063
|
+
So,
|
|
3064
|
+
r,
|
|
3065
|
+
!C && "hidden"
|
|
3066
|
+
),
|
|
3067
|
+
children: C
|
|
3068
|
+
}
|
|
3069
|
+
)
|
|
3070
|
+
] });
|
|
3071
|
+
}, Ut = ({
|
|
3072
|
+
label: e,
|
|
3073
|
+
id: t,
|
|
3074
|
+
checked: r,
|
|
3075
|
+
indeterminate: n,
|
|
3076
|
+
disabled: o,
|
|
3077
|
+
ariaLabel: s,
|
|
3078
|
+
onChange: a,
|
|
3079
|
+
cssClass: l
|
|
3080
|
+
}) => {
|
|
3081
|
+
const c = A(
|
|
3082
|
+
(g) => {
|
|
3083
|
+
a?.(g.target.checked, t);
|
|
3084
|
+
},
|
|
3085
|
+
[a, t]
|
|
3086
|
+
), d = y(
|
|
3087
|
+
"flex flex-row items-center cursor-pointer text-accent-primary small-medium flex-1 min-w-0",
|
|
3088
|
+
`${r || n ? "" : 'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded before:mr-2'}`,
|
|
3089
|
+
o ? "pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4" : "",
|
|
3090
|
+
l
|
|
3091
|
+
), u = y(
|
|
3092
|
+
"mr-2 border rounded",
|
|
3093
|
+
o ? "bg-layer-4 border-icon-secondary" : ""
|
|
3094
|
+
);
|
|
3095
|
+
return /* @__PURE__ */ w("label", { className: d, htmlFor: t, children: [
|
|
3096
|
+
n ? /* @__PURE__ */ i(kn, { className: u, ...X }) : r ? /* @__PURE__ */ i(Tr, { className: u, ...X }) : null,
|
|
3097
|
+
e && (typeof e == "string" ? /* @__PURE__ */ i(De, { text: e }) : e),
|
|
3098
|
+
/* @__PURE__ */ i(
|
|
3099
|
+
"input",
|
|
3100
|
+
{
|
|
3101
|
+
type: "checkbox",
|
|
3102
|
+
role: "checkbox",
|
|
3103
|
+
name: t,
|
|
3104
|
+
onChange: c,
|
|
3105
|
+
id: t,
|
|
3106
|
+
checked: r,
|
|
3107
|
+
"aria-checked": n ? "mixed" : r,
|
|
3108
|
+
"aria-disabled": o || void 0,
|
|
3109
|
+
"aria-label": e ? void 0 : s,
|
|
3110
|
+
className: "invisible w-0 h-0"
|
|
3111
|
+
}
|
|
3112
|
+
)
|
|
3113
|
+
] });
|
|
3114
|
+
};
|
|
3115
|
+
var ae = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.ERROR = "error", e))(ae || {});
|
|
3116
|
+
const ss = (e, t) => {
|
|
3117
|
+
if (t === e.id)
|
|
3118
|
+
switch (e.status) {
|
|
3119
|
+
case ae.VALID:
|
|
3120
|
+
return "border-accent-secondary text-primary";
|
|
3121
|
+
case ae.ERROR:
|
|
3122
|
+
return "border-red-900 text-primary";
|
|
3123
|
+
default:
|
|
3124
|
+
return "border-accent-primary text-primary";
|
|
3125
|
+
}
|
|
3126
|
+
switch (e.status) {
|
|
3127
|
+
case ae.VALID:
|
|
3128
|
+
return "border-primary text-white";
|
|
3129
|
+
case ae.ERROR:
|
|
3130
|
+
return "border-red-900 text-error";
|
|
3131
|
+
default:
|
|
3132
|
+
return "border-primary text-secondary";
|
|
3133
|
+
}
|
|
3134
|
+
}, is = (e, t) => {
|
|
3135
|
+
if (t === e.id)
|
|
3136
|
+
switch (e.status) {
|
|
3137
|
+
case ae.VALID:
|
|
3138
|
+
return "bg-accent-secondary";
|
|
3139
|
+
case ae.ERROR:
|
|
3140
|
+
return "bg-red-400";
|
|
3141
|
+
default:
|
|
3142
|
+
return "bg-accent-primary";
|
|
3143
|
+
}
|
|
3144
|
+
switch (e.status) {
|
|
3145
|
+
case ae.VALID:
|
|
3146
|
+
return "bg-accent-secondary";
|
|
3147
|
+
case ae.ERROR:
|
|
3148
|
+
return "bg-red-400";
|
|
3149
|
+
default:
|
|
3150
|
+
return "bg-layer-4";
|
|
3151
|
+
}
|
|
3152
|
+
}, as = ({
|
|
3153
|
+
step: e,
|
|
3154
|
+
index: t,
|
|
3155
|
+
currentStep: r,
|
|
3156
|
+
onChangeStep: n
|
|
3157
|
+
}) => {
|
|
3158
|
+
const o = "h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny border-t-2 cursor-pointer", s = "w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white", a = () => r === e.id && e.status === ae.ERROR ? /* @__PURE__ */ i(Et, { stroke: 2, size: 16 }) : r !== e.id && e.status === ae.VALID ? /* @__PURE__ */ i(Tr, { stroke: 2, size: 16 }) : t + 1;
|
|
3159
|
+
return /* @__PURE__ */ w(
|
|
3160
|
+
"button",
|
|
3161
|
+
{
|
|
3162
|
+
className: y(o, ss(e, r)),
|
|
3163
|
+
onClick: () => n(e.id),
|
|
3164
|
+
children: [
|
|
3165
|
+
/* @__PURE__ */ i(
|
|
3166
|
+
"span",
|
|
3167
|
+
{
|
|
3168
|
+
className: y(s, is(e, r)),
|
|
3169
|
+
children: a()
|
|
3170
|
+
}
|
|
3171
|
+
),
|
|
3172
|
+
/* @__PURE__ */ i("span", { children: e.name })
|
|
3173
|
+
]
|
|
3174
|
+
}
|
|
3175
|
+
);
|
|
3176
|
+
}, Ga = ({
|
|
3177
|
+
steps: e,
|
|
3178
|
+
currentStep: t,
|
|
3179
|
+
onChangeStep: r
|
|
3180
|
+
}) => {
|
|
3181
|
+
const n = (o) => {
|
|
3182
|
+
const s = e.findIndex((l) => l.id === t), a = e.findIndex((l) => l.id === o);
|
|
3183
|
+
(o !== t && e[s].status === ae.VALID || a < s) && r(o);
|
|
3184
|
+
};
|
|
3185
|
+
return /* @__PURE__ */ i("div", { id: "steps", className: "flex gap-x-3", children: e.map((o, s) => /* @__PURE__ */ i(
|
|
3186
|
+
as,
|
|
3187
|
+
{
|
|
3188
|
+
currentStep: t,
|
|
3189
|
+
onChangeStep: n,
|
|
3190
|
+
step: o,
|
|
3191
|
+
index: s
|
|
3192
|
+
},
|
|
3193
|
+
o.id
|
|
3194
|
+
)) });
|
|
3195
|
+
}, ls = ({
|
|
3196
|
+
name: e,
|
|
3197
|
+
value: t,
|
|
3198
|
+
title: r,
|
|
3199
|
+
description: n,
|
|
3200
|
+
checked: o = !1,
|
|
3201
|
+
inputId: s,
|
|
3202
|
+
cssClass: a,
|
|
3203
|
+
labelCssClass: l,
|
|
3204
|
+
disabled: c,
|
|
3205
|
+
onChange: d,
|
|
3206
|
+
descriptionCssClass: u
|
|
3207
|
+
}) => {
|
|
3208
|
+
const p = `${s}-desc`, g = y(
|
|
3209
|
+
"dial-small cursor-pointer",
|
|
3210
|
+
c ? "text-secondary" : "text-primary",
|
|
3211
|
+
l
|
|
3212
|
+
), f = y(
|
|
3213
|
+
"cursor-pointer dial-input-radio",
|
|
3214
|
+
r && "mr-2",
|
|
3215
|
+
a
|
|
3216
|
+
), C = y("flex flex-col", !!n && "mb-2"), m = y(
|
|
3217
|
+
"dial-tiny mt-2 ml-[26px] text-secondary",
|
|
3218
|
+
u
|
|
3219
|
+
);
|
|
3220
|
+
return /* @__PURE__ */ w("div", { className: C, children: [
|
|
3221
|
+
/* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
3222
|
+
/* @__PURE__ */ i(
|
|
3223
|
+
"input",
|
|
3224
|
+
{
|
|
3225
|
+
type: "radio",
|
|
3226
|
+
id: s,
|
|
3227
|
+
name: e,
|
|
3228
|
+
value: t,
|
|
3229
|
+
checked: o,
|
|
3230
|
+
disabled: c,
|
|
3231
|
+
"aria-describedby": o && n ? p : void 0,
|
|
3232
|
+
className: f,
|
|
3233
|
+
onChange: (L) => {
|
|
3234
|
+
c || L.target.checked && d?.(t);
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3237
|
+
),
|
|
3238
|
+
r ? /* @__PURE__ */ i("label", { className: g, htmlFor: s, children: r }) : null
|
|
3239
|
+
] }),
|
|
3240
|
+
o && n && /* @__PURE__ */ i("div", { id: p, className: m, children: n })
|
|
3241
|
+
] });
|
|
3242
|
+
};
|
|
3243
|
+
var Ze = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(Ze || {});
|
|
3244
|
+
const cs = "w-full flex", ds = {
|
|
3245
|
+
[Ze.Vertical]: "flex-col",
|
|
3246
|
+
[Ze.Horizontal]: "flex-row items-end"
|
|
3247
|
+
}, kt = ({
|
|
3189
3248
|
elementId: e,
|
|
3190
3249
|
label: t,
|
|
3191
3250
|
optional: r,
|
|
3192
3251
|
optionalText: n,
|
|
3193
3252
|
description: o,
|
|
3194
3253
|
error: s,
|
|
3195
|
-
orientation: a =
|
|
3254
|
+
orientation: a = Ze.Vertical,
|
|
3196
3255
|
labelVisuallyHidden: l = !1,
|
|
3197
3256
|
cssClass: c,
|
|
3198
3257
|
labelCssClass: d,
|
|
3199
3258
|
errorCssClass: u,
|
|
3200
3259
|
captionDescription: p,
|
|
3201
|
-
readonly:
|
|
3260
|
+
readonly: g,
|
|
3202
3261
|
value: f,
|
|
3203
|
-
defaultEmptyText:
|
|
3262
|
+
defaultEmptyText: C,
|
|
3204
3263
|
children: m
|
|
3205
3264
|
}) => {
|
|
3206
|
-
const x = `${e}-label`, L = o ? `${e}-desc` : void 0,
|
|
3265
|
+
const x = `${e}-label`, L = o ? `${e}-desc` : void 0, v = s ? `${e}-err` : void 0, b = `${e}-caption-desc`, O = [L, v].filter(Boolean).join(" ") || void 0, R = A(() => typeof s == "boolean" ? null : typeof s == "string" || typeof s > "u" ? s ? /* @__PURE__ */ i(
|
|
3207
3266
|
"div",
|
|
3208
3267
|
{
|
|
3209
|
-
id:
|
|
3268
|
+
id: v,
|
|
3210
3269
|
role: "alert",
|
|
3211
3270
|
"aria-live": "polite",
|
|
3212
3271
|
className: u,
|
|
3213
|
-
children: /* @__PURE__ */ i(
|
|
3272
|
+
children: /* @__PURE__ */ i(xe, { errorText: s })
|
|
3214
3273
|
}
|
|
3215
3274
|
) : null : /* @__PURE__ */ i(
|
|
3216
3275
|
"div",
|
|
3217
3276
|
{
|
|
3218
|
-
id:
|
|
3277
|
+
id: v,
|
|
3219
3278
|
role: "alert",
|
|
3220
3279
|
"aria-live": "polite",
|
|
3221
3280
|
className: u,
|
|
3222
3281
|
children: s
|
|
3223
3282
|
}
|
|
3224
|
-
), [s, u,
|
|
3283
|
+
), [s, u, v]), P = A(() => f ? typeof f == "string" || typeof f == "number" ? /* @__PURE__ */ i("span", { "aria-readonly": "true", children: f }) : f : /* @__PURE__ */ i("span", { "aria-readonly": "true", children: C ?? "None" }), [f, C]);
|
|
3225
3284
|
return /* @__PURE__ */ w(
|
|
3226
3285
|
"div",
|
|
3227
3286
|
{
|
|
3228
3287
|
role: "group",
|
|
3229
3288
|
"aria-labelledby": t ? x : void 0,
|
|
3230
3289
|
"aria-describedby": O,
|
|
3231
|
-
className:
|
|
3232
|
-
|
|
3233
|
-
|
|
3290
|
+
className: G(
|
|
3291
|
+
cs,
|
|
3292
|
+
ds[a],
|
|
3234
3293
|
c
|
|
3235
3294
|
),
|
|
3236
3295
|
children: [
|
|
@@ -3238,7 +3297,7 @@ const kt = ({
|
|
|
3238
3297
|
"div",
|
|
3239
3298
|
{
|
|
3240
3299
|
id: x,
|
|
3241
|
-
className:
|
|
3300
|
+
className: G(a === "horizontal" && "shrink-0"),
|
|
3242
3301
|
children: /* @__PURE__ */ i(
|
|
3243
3302
|
ke,
|
|
3244
3303
|
{
|
|
@@ -3246,7 +3305,7 @@ const kt = ({
|
|
|
3246
3305
|
fieldTitle: t,
|
|
3247
3306
|
optional: r,
|
|
3248
3307
|
optionalText: n,
|
|
3249
|
-
cssClass:
|
|
3308
|
+
cssClass: G(
|
|
3250
3309
|
l && "sr-only",
|
|
3251
3310
|
d
|
|
3252
3311
|
),
|
|
@@ -3256,12 +3315,12 @@ const kt = ({
|
|
|
3256
3315
|
}
|
|
3257
3316
|
),
|
|
3258
3317
|
/* @__PURE__ */ w("div", { className: "min-w-0 w-full", children: [
|
|
3259
|
-
|
|
3318
|
+
g ? /* @__PURE__ */ i("div", { className: "dial-input px-3 py-2", children: P() }) : m,
|
|
3260
3319
|
p && /* @__PURE__ */ i(
|
|
3261
3320
|
"div",
|
|
3262
3321
|
{
|
|
3263
|
-
id:
|
|
3264
|
-
className:
|
|
3322
|
+
id: b,
|
|
3323
|
+
className: G({
|
|
3265
3324
|
"dial-tiny text-secondary mt-1": !0,
|
|
3266
3325
|
"text-error": !!s
|
|
3267
3326
|
}),
|
|
@@ -3273,53 +3332,84 @@ const kt = ({
|
|
|
3273
3332
|
]
|
|
3274
3333
|
}
|
|
3275
3334
|
);
|
|
3276
|
-
}
|
|
3335
|
+
};
|
|
3336
|
+
var Xe = /* @__PURE__ */ ((e) => (e.Row = "Row", e.Column = "Column", e))(Xe || {});
|
|
3337
|
+
const us = "flex", fs = "pb-1 mt-2", ps = {
|
|
3338
|
+
[Xe.Column]: "flex-col gap-y-3",
|
|
3339
|
+
[Xe.Row]: "flex-row gap-x-6"
|
|
3340
|
+
}, gs = ({
|
|
3277
3341
|
fieldTitle: e,
|
|
3278
3342
|
radioCssClass: t,
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3343
|
+
containerCssClass: r,
|
|
3344
|
+
selectedItemCssClass: n,
|
|
3345
|
+
selectedLabelCssClass: o,
|
|
3346
|
+
radioGroupCssClass: s,
|
|
3347
|
+
inputContainerCssClass: a,
|
|
3348
|
+
labelCssClass: l,
|
|
3349
|
+
disabled: c,
|
|
3350
|
+
elementId: d,
|
|
3351
|
+
radioButtons: u,
|
|
3352
|
+
activeRadioButton: p,
|
|
3353
|
+
orientation: g,
|
|
3354
|
+
onChange: f
|
|
3286
3355
|
}) => /* @__PURE__ */ i(
|
|
3287
3356
|
kt,
|
|
3288
3357
|
{
|
|
3289
|
-
elementId:
|
|
3358
|
+
elementId: d,
|
|
3290
3359
|
label: e,
|
|
3291
|
-
labelCssClass:
|
|
3360
|
+
labelCssClass: l,
|
|
3361
|
+
cssClass: r,
|
|
3292
3362
|
children: /* @__PURE__ */ i(
|
|
3293
3363
|
"div",
|
|
3294
3364
|
{
|
|
3295
3365
|
role: "radiogroup",
|
|
3296
3366
|
"aria-label": e,
|
|
3297
|
-
"aria-disabled":
|
|
3298
|
-
className:
|
|
3299
|
-
|
|
3300
|
-
|
|
3367
|
+
"aria-disabled": c || void 0,
|
|
3368
|
+
className: G(
|
|
3369
|
+
us,
|
|
3370
|
+
ps[g],
|
|
3371
|
+
s
|
|
3301
3372
|
),
|
|
3302
|
-
children:
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3373
|
+
children: u.map((C) => /* @__PURE__ */ w(
|
|
3374
|
+
"div",
|
|
3375
|
+
{
|
|
3376
|
+
className: G("flex flex-col", a),
|
|
3377
|
+
children: [
|
|
3378
|
+
/* @__PURE__ */ i(
|
|
3379
|
+
ls,
|
|
3380
|
+
{
|
|
3381
|
+
name: d,
|
|
3382
|
+
value: C.id,
|
|
3383
|
+
inputId: C.id,
|
|
3384
|
+
disabled: c,
|
|
3385
|
+
cssClass: t,
|
|
3386
|
+
labelCssClass: G(
|
|
3387
|
+
l,
|
|
3388
|
+
C.id === p && o
|
|
3389
|
+
),
|
|
3390
|
+
title: C.name,
|
|
3391
|
+
checked: C.id === p,
|
|
3392
|
+
onChange: () => f(C.id)
|
|
3393
|
+
}
|
|
3394
|
+
),
|
|
3395
|
+
C.id === p && C.content ? /* @__PURE__ */ i(
|
|
3396
|
+
"div",
|
|
3397
|
+
{
|
|
3398
|
+
className: G(
|
|
3399
|
+
fs,
|
|
3400
|
+
n
|
|
3401
|
+
),
|
|
3402
|
+
children: C.content
|
|
3403
|
+
}
|
|
3404
|
+
) : null
|
|
3405
|
+
]
|
|
3406
|
+
},
|
|
3407
|
+
C.id
|
|
3408
|
+
))
|
|
3319
3409
|
}
|
|
3320
3410
|
)
|
|
3321
3411
|
}
|
|
3322
|
-
),
|
|
3412
|
+
), hs = ({
|
|
3323
3413
|
icon: e,
|
|
3324
3414
|
title: t,
|
|
3325
3415
|
description: r
|
|
@@ -3327,29 +3417,29 @@ const kt = ({
|
|
|
3327
3417
|
e || /* @__PURE__ */ i(Or, { width: 60, height: 60 }),
|
|
3328
3418
|
/* @__PURE__ */ i("span", { className: "dial-small mt-2 text-primary", children: t }),
|
|
3329
3419
|
r && /* @__PURE__ */ i("span", { className: "mt-1 text-primary", children: r })
|
|
3330
|
-
] }),
|
|
3420
|
+
] }), ms = 60, $a = ({
|
|
3331
3421
|
containerCssClass: e,
|
|
3332
3422
|
children: t,
|
|
3333
3423
|
width: r,
|
|
3334
3424
|
title: n,
|
|
3335
|
-
iconSize: o =
|
|
3425
|
+
iconSize: o = Ne,
|
|
3336
3426
|
titleCssClass: s,
|
|
3337
3427
|
additionalButtons: a
|
|
3338
3428
|
}) => {
|
|
3339
|
-
const [l, c] =
|
|
3429
|
+
const [l, c] = $(r), [d, u] = $(!0), p = y([
|
|
3340
3430
|
"transform rotate-180 [writing-mode:tb-rl]",
|
|
3341
3431
|
d && "hidden",
|
|
3342
3432
|
s
|
|
3343
|
-
]),
|
|
3433
|
+
]), g = y([
|
|
3344
3434
|
"flex flex-row gap-2 cursor-pointer text-secondary",
|
|
3345
3435
|
d ? "justify-end" : "justify-center"
|
|
3346
3436
|
]), f = () => {
|
|
3347
|
-
c(d ?
|
|
3437
|
+
c(d ? ms : r), u(!d);
|
|
3348
3438
|
};
|
|
3349
3439
|
return /* @__PURE__ */ w(
|
|
3350
3440
|
"div",
|
|
3351
3441
|
{
|
|
3352
|
-
className:
|
|
3442
|
+
className: y([
|
|
3353
3443
|
"rounded p-4 flex flex-col justify-between overflow-y-auto flex-shrink-0",
|
|
3354
3444
|
e
|
|
3355
3445
|
]),
|
|
@@ -3358,7 +3448,7 @@ const kt = ({
|
|
|
3358
3448
|
/* @__PURE__ */ i(
|
|
3359
3449
|
"div",
|
|
3360
3450
|
{
|
|
3361
|
-
className:
|
|
3451
|
+
className: y([
|
|
3362
3452
|
"flex-1 min-h-0 overflow-auto",
|
|
3363
3453
|
!d && "hidden"
|
|
3364
3454
|
]),
|
|
@@ -3366,7 +3456,7 @@ const kt = ({
|
|
|
3366
3456
|
}
|
|
3367
3457
|
),
|
|
3368
3458
|
/* @__PURE__ */ i("div", { className: p, children: n }),
|
|
3369
|
-
/* @__PURE__ */ w("div", { className:
|
|
3459
|
+
/* @__PURE__ */ w("div", { className: g, children: [
|
|
3370
3460
|
d && a,
|
|
3371
3461
|
/* @__PURE__ */ i(
|
|
3372
3462
|
Q,
|
|
@@ -3400,84 +3490,20 @@ const kt = ({
|
|
|
3400
3490
|
}) => /* @__PURE__ */ w(
|
|
3401
3491
|
"div",
|
|
3402
3492
|
{
|
|
3403
|
-
className:
|
|
3493
|
+
className: y("flex flex-col", r ? "" : "max-w-[200px]"),
|
|
3404
3494
|
children: [
|
|
3405
3495
|
/* @__PURE__ */ i("label", { className: "dial-tiny mb-2 text-secondary", children: e }),
|
|
3406
3496
|
r || /* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
3407
|
-
/* @__PURE__ */ i(
|
|
3497
|
+
/* @__PURE__ */ i(Le, { triggerClassName: "text-primary", tooltip: t, children: t }),
|
|
3408
3498
|
n || null
|
|
3409
3499
|
] })
|
|
3410
3500
|
]
|
|
3411
3501
|
}
|
|
3412
3502
|
);
|
|
3413
3503
|
var Rt = /* @__PURE__ */ ((e) => (e.Default = "default", e))(Rt || {});
|
|
3414
|
-
const
|
|
3504
|
+
const Cs = {
|
|
3415
3505
|
[Rt.Default]: "border-icon-secondary bg-layer-3"
|
|
3416
3506
|
// TODO: Add other variants here once they are finalized with the UI/UX team
|
|
3417
|
-
}, Cs = "text-primary", Ne = ({
|
|
3418
|
-
text: e,
|
|
3419
|
-
cssClass: t,
|
|
3420
|
-
contentClassName: r,
|
|
3421
|
-
hideTooltip: n,
|
|
3422
|
-
...o
|
|
3423
|
-
}) => {
|
|
3424
|
-
const s = le(null), [a, l] = G(!1), [c, d] = G(""), u = le(null), p = () => {
|
|
3425
|
-
const m = s.current;
|
|
3426
|
-
if (!m) return;
|
|
3427
|
-
d(m.textContent ?? "");
|
|
3428
|
-
const x = m.clientWidth, L = m.scrollWidth, C = Math.ceil(m.getBoundingClientRect().width);
|
|
3429
|
-
l(L > x || L > C);
|
|
3430
|
-
}, h = A(() => {
|
|
3431
|
-
u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(p);
|
|
3432
|
-
}, []);
|
|
3433
|
-
ne(() => {
|
|
3434
|
-
h();
|
|
3435
|
-
const m = () => h();
|
|
3436
|
-
window.addEventListener("resize", m);
|
|
3437
|
-
let x = null;
|
|
3438
|
-
return "ResizeObserver" in window && s.current && (x = new ResizeObserver(() => h()), x.observe(s.current)), () => {
|
|
3439
|
-
window.removeEventListener("resize", m), x && x.disconnect(), u.current && cancelAnimationFrame(u.current);
|
|
3440
|
-
};
|
|
3441
|
-
}, [e, h]);
|
|
3442
|
-
const f = B(
|
|
3443
|
-
() => typeof e == "string" ? e : c,
|
|
3444
|
-
[c, e]
|
|
3445
|
-
), v = B(() => n ? "" : a ? f : "", [f, n, a]);
|
|
3446
|
-
return /* @__PURE__ */ w(Pr, { ...o, children: [
|
|
3447
|
-
/* @__PURE__ */ i(
|
|
3448
|
-
Vr,
|
|
3449
|
-
{
|
|
3450
|
-
asChild: !0,
|
|
3451
|
-
ref: s,
|
|
3452
|
-
onMouseEnter: h,
|
|
3453
|
-
onFocusCapture: h,
|
|
3454
|
-
children: /* @__PURE__ */ i(
|
|
3455
|
-
"span",
|
|
3456
|
-
{
|
|
3457
|
-
className: Z(
|
|
3458
|
-
"block truncate min-w-0 max-w-full",
|
|
3459
|
-
t
|
|
3460
|
-
),
|
|
3461
|
-
"aria-label": a ? f : void 0,
|
|
3462
|
-
onMouseEnter: h,
|
|
3463
|
-
onFocus: h,
|
|
3464
|
-
children: e
|
|
3465
|
-
}
|
|
3466
|
-
)
|
|
3467
|
-
}
|
|
3468
|
-
),
|
|
3469
|
-
/* @__PURE__ */ i(
|
|
3470
|
-
Mr,
|
|
3471
|
-
{
|
|
3472
|
-
className: Z(
|
|
3473
|
-
Cs,
|
|
3474
|
-
r,
|
|
3475
|
-
!v && "hidden"
|
|
3476
|
-
),
|
|
3477
|
-
children: v
|
|
3478
|
-
}
|
|
3479
|
-
)
|
|
3480
|
-
] });
|
|
3481
3507
|
}, Pt = ({
|
|
3482
3508
|
tag: e,
|
|
3483
3509
|
cssClass: t,
|
|
@@ -3486,15 +3512,15 @@ const ms = {
|
|
|
3486
3512
|
iconBefore: o,
|
|
3487
3513
|
bordered: s = !0
|
|
3488
3514
|
}) => {
|
|
3489
|
-
const a =
|
|
3515
|
+
const a = Cs[n], l = G(
|
|
3490
3516
|
"flex items-center gap-1 dial-tiny rounded p-1 h-[22px] text-primary",
|
|
3491
3517
|
a,
|
|
3492
3518
|
s ? "border" : "border-transparent",
|
|
3493
3519
|
t
|
|
3494
3520
|
);
|
|
3495
3521
|
return /* @__PURE__ */ w("div", { className: l, children: [
|
|
3496
|
-
/* @__PURE__ */ i(
|
|
3497
|
-
/* @__PURE__ */ i(
|
|
3522
|
+
/* @__PURE__ */ i(U, { icon: o }),
|
|
3523
|
+
/* @__PURE__ */ i(De, { text: e }),
|
|
3498
3524
|
r && /* @__PURE__ */ i(
|
|
3499
3525
|
Q,
|
|
3500
3526
|
{
|
|
@@ -3559,7 +3585,7 @@ function ws(e) {
|
|
|
3559
3585
|
function xs(e) {
|
|
3560
3586
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
3561
3587
|
}
|
|
3562
|
-
function
|
|
3588
|
+
function Te(e) {
|
|
3563
3589
|
var t = typeof e;
|
|
3564
3590
|
return process.env.NODE_ENV !== "production" && (t = bs(e)), t;
|
|
3565
3591
|
}
|
|
@@ -3569,11 +3595,11 @@ function Zr(e, t, r) {
|
|
|
3569
3595
|
throw new Error(process.env.NODE_ENV === "production" ? se(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
3570
3596
|
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
3571
3597
|
if (typeof r != "function")
|
|
3572
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(1) : "Expected the enhancer to be a function. Instead, received: '" +
|
|
3598
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(1) : "Expected the enhancer to be a function. Instead, received: '" + Te(r) + "'");
|
|
3573
3599
|
return r(Zr)(e, t);
|
|
3574
3600
|
}
|
|
3575
3601
|
if (typeof e != "function")
|
|
3576
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(2) : "Expected the root reducer to be a function. Instead, received: '" +
|
|
3602
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(2) : "Expected the root reducer to be a function. Instead, received: '" + Te(e) + "'");
|
|
3577
3603
|
var o = e, s = t, a = [], l = a, c = !1;
|
|
3578
3604
|
function d() {
|
|
3579
3605
|
l === a && (l = a.slice());
|
|
@@ -3585,7 +3611,7 @@ function Zr(e, t, r) {
|
|
|
3585
3611
|
}
|
|
3586
3612
|
function p(m) {
|
|
3587
3613
|
if (typeof m != "function")
|
|
3588
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(4) : "Expected the listener to be a function. Instead, received: '" +
|
|
3614
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(4) : "Expected the listener to be a function. Instead, received: '" + Te(m) + "'");
|
|
3589
3615
|
if (c)
|
|
3590
3616
|
throw new Error(process.env.NODE_ENV === "production" ? se(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3591
3617
|
var x = !0;
|
|
@@ -3594,14 +3620,14 @@ function Zr(e, t, r) {
|
|
|
3594
3620
|
if (c)
|
|
3595
3621
|
throw new Error(process.env.NODE_ENV === "production" ? se(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3596
3622
|
x = !1, d();
|
|
3597
|
-
var
|
|
3598
|
-
l.splice(
|
|
3623
|
+
var v = l.indexOf(m);
|
|
3624
|
+
l.splice(v, 1), a = null;
|
|
3599
3625
|
}
|
|
3600
3626
|
};
|
|
3601
3627
|
}
|
|
3602
|
-
function
|
|
3628
|
+
function g(m) {
|
|
3603
3629
|
if (!vs(m))
|
|
3604
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(7) : "Actions must be plain objects. Instead, the actual type was: '" +
|
|
3630
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(7) : "Actions must be plain objects. Instead, the actual type was: '" + Te(m) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
3605
3631
|
if (typeof m.type > "u")
|
|
3606
3632
|
throw new Error(process.env.NODE_ENV === "production" ? se(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
3607
3633
|
if (c)
|
|
@@ -3612,19 +3638,19 @@ function Zr(e, t, r) {
|
|
|
3612
3638
|
c = !1;
|
|
3613
3639
|
}
|
|
3614
3640
|
for (var x = a = l, L = 0; L < x.length; L++) {
|
|
3615
|
-
var
|
|
3616
|
-
|
|
3641
|
+
var v = x[L];
|
|
3642
|
+
v();
|
|
3617
3643
|
}
|
|
3618
3644
|
return m;
|
|
3619
3645
|
}
|
|
3620
3646
|
function f(m) {
|
|
3621
3647
|
if (typeof m != "function")
|
|
3622
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(10) : "Expected the nextReducer to be a function. Instead, received: '" +
|
|
3623
|
-
o = m,
|
|
3648
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(10) : "Expected the nextReducer to be a function. Instead, received: '" + Te(m));
|
|
3649
|
+
o = m, g({
|
|
3624
3650
|
type: Xt.REPLACE
|
|
3625
3651
|
});
|
|
3626
3652
|
}
|
|
3627
|
-
function
|
|
3653
|
+
function C() {
|
|
3628
3654
|
var m, x = p;
|
|
3629
3655
|
return m = {
|
|
3630
3656
|
/**
|
|
@@ -3635,14 +3661,14 @@ function Zr(e, t, r) {
|
|
|
3635
3661
|
* be used to unsubscribe the observable from the store, and prevent further
|
|
3636
3662
|
* emission of values from the observable.
|
|
3637
3663
|
*/
|
|
3638
|
-
subscribe: function(
|
|
3639
|
-
if (typeof
|
|
3640
|
-
throw new Error(process.env.NODE_ENV === "production" ? se(11) : "Expected the observer to be an object. Instead, received: '" +
|
|
3641
|
-
function
|
|
3642
|
-
|
|
3664
|
+
subscribe: function(v) {
|
|
3665
|
+
if (typeof v != "object" || v === null)
|
|
3666
|
+
throw new Error(process.env.NODE_ENV === "production" ? se(11) : "Expected the observer to be an object. Instead, received: '" + Te(v) + "'");
|
|
3667
|
+
function b() {
|
|
3668
|
+
v.next && v.next(u());
|
|
3643
3669
|
}
|
|
3644
|
-
|
|
3645
|
-
var O = x(
|
|
3670
|
+
b();
|
|
3671
|
+
var O = x(b);
|
|
3646
3672
|
return {
|
|
3647
3673
|
unsubscribe: O
|
|
3648
3674
|
};
|
|
@@ -3651,14 +3677,14 @@ function Zr(e, t, r) {
|
|
|
3651
3677
|
return this;
|
|
3652
3678
|
}, m;
|
|
3653
3679
|
}
|
|
3654
|
-
return
|
|
3680
|
+
return g({
|
|
3655
3681
|
type: Xt.INIT
|
|
3656
3682
|
}), n = {
|
|
3657
|
-
dispatch:
|
|
3683
|
+
dispatch: g,
|
|
3658
3684
|
subscribe: p,
|
|
3659
3685
|
getState: u,
|
|
3660
3686
|
replaceReducer: f
|
|
3661
|
-
}, n[qt] =
|
|
3687
|
+
}, n[qt] = C, n;
|
|
3662
3688
|
}
|
|
3663
3689
|
function N(e, t, ...r) {
|
|
3664
3690
|
if (Ds() && t === void 0)
|
|
@@ -3743,16 +3769,16 @@ function Es(e) {
|
|
|
3743
3769
|
ks(a), u = a(d);
|
|
3744
3770
|
}
|
|
3745
3771
|
e.dispatch(Yt(s, u));
|
|
3746
|
-
const
|
|
3747
|
-
if (
|
|
3772
|
+
const g = c.getSource(d).beginDrag(l, d);
|
|
3773
|
+
if (g == null)
|
|
3748
3774
|
return;
|
|
3749
|
-
Rs(
|
|
3775
|
+
Rs(g), c.pinSource(d);
|
|
3750
3776
|
const f = c.getSourceType(d);
|
|
3751
3777
|
return {
|
|
3752
3778
|
type: Je,
|
|
3753
3779
|
payload: {
|
|
3754
3780
|
itemType: f,
|
|
3755
|
-
item:
|
|
3781
|
+
item: g,
|
|
3756
3782
|
sourceId: d,
|
|
3757
3783
|
clientOffset: s || null,
|
|
3758
3784
|
sourceClientOffset: u || null,
|
|
@@ -4423,7 +4449,7 @@ function Ii(e, t, r) {
|
|
|
4423
4449
|
writable: !0
|
|
4424
4450
|
}) : e[t] = r, e;
|
|
4425
4451
|
}
|
|
4426
|
-
function
|
|
4452
|
+
function Oe(e) {
|
|
4427
4453
|
for (var t = 1; t < arguments.length; t++) {
|
|
4428
4454
|
var r = arguments[t] != null ? arguments[t] : {}, n = Object.keys(r);
|
|
4429
4455
|
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(o) {
|
|
@@ -4447,7 +4473,7 @@ function Oi(e = Ti, t) {
|
|
|
4447
4473
|
const { payload: r } = t;
|
|
4448
4474
|
switch (t.type) {
|
|
4449
4475
|
case Je:
|
|
4450
|
-
return
|
|
4476
|
+
return Oe({}, e, {
|
|
4451
4477
|
itemType: r.itemType,
|
|
4452
4478
|
item: r.item,
|
|
4453
4479
|
sourceId: r.sourceId,
|
|
@@ -4456,25 +4482,25 @@ function Oi(e = Ti, t) {
|
|
|
4456
4482
|
didDrop: !1
|
|
4457
4483
|
});
|
|
4458
4484
|
case Vt:
|
|
4459
|
-
return
|
|
4485
|
+
return Oe({}, e, {
|
|
4460
4486
|
isSourcePublic: !0
|
|
4461
4487
|
});
|
|
4462
4488
|
case Qe:
|
|
4463
|
-
return
|
|
4489
|
+
return Oe({}, e, {
|
|
4464
4490
|
targetIds: r.targetIds
|
|
4465
4491
|
});
|
|
4466
4492
|
case rt:
|
|
4467
|
-
return e.targetIds.indexOf(r.targetId) === -1 ? e :
|
|
4493
|
+
return e.targetIds.indexOf(r.targetId) === -1 ? e : Oe({}, e, {
|
|
4468
4494
|
targetIds: Ls(e.targetIds, r.targetId)
|
|
4469
4495
|
});
|
|
4470
4496
|
case et:
|
|
4471
|
-
return
|
|
4497
|
+
return Oe({}, e, {
|
|
4472
4498
|
dropResult: r.dropResult,
|
|
4473
4499
|
didDrop: !0,
|
|
4474
4500
|
targetIds: []
|
|
4475
4501
|
});
|
|
4476
4502
|
case tt:
|
|
4477
|
-
return
|
|
4503
|
+
return Oe({}, e, {
|
|
4478
4504
|
itemType: null,
|
|
4479
4505
|
item: null,
|
|
4480
4506
|
sourceId: null,
|
|
@@ -4639,7 +4665,7 @@ function Bi() {
|
|
|
4639
4665
|
var Gi = Bi();
|
|
4640
4666
|
const $i = /* @__PURE__ */ ji(Gi), Se = typeof window < "u" ? In : ne;
|
|
4641
4667
|
function Wi(e, t, r) {
|
|
4642
|
-
const [n, o] =
|
|
4668
|
+
const [n, o] = $(
|
|
4643
4669
|
() => t(e)
|
|
4644
4670
|
), s = A(() => {
|
|
4645
4671
|
const a = t(e);
|
|
@@ -5251,34 +5277,34 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5251
5277
|
type: or,
|
|
5252
5278
|
item: { id: e, originalIndex: c },
|
|
5253
5279
|
collect: (f) => {
|
|
5254
|
-
const
|
|
5280
|
+
const C = f.getItem();
|
|
5255
5281
|
return {
|
|
5256
|
-
isDragging: f.isDragging() &&
|
|
5282
|
+
isDragging: f.isDragging() && C?.id === e
|
|
5257
5283
|
};
|
|
5258
5284
|
},
|
|
5259
|
-
end: (f,
|
|
5285
|
+
end: (f, C) => {
|
|
5260
5286
|
if (!f) return;
|
|
5261
|
-
!
|
|
5287
|
+
!C.didDrop() && typeof o == "function" && f.originalIndex > -1 && o(f.id, f.originalIndex);
|
|
5262
5288
|
}
|
|
5263
5289
|
}),
|
|
5264
5290
|
[e, c, o]
|
|
5265
|
-
), [,
|
|
5291
|
+
), [, g] = on(
|
|
5266
5292
|
() => ({
|
|
5267
5293
|
accept: or,
|
|
5268
5294
|
hover: (f) => {
|
|
5269
5295
|
if (!(!f || f.id === e) && typeof n == "function" && typeof o == "function") {
|
|
5270
|
-
const
|
|
5271
|
-
o(f.id,
|
|
5296
|
+
const C = n(e);
|
|
5297
|
+
o(f.id, C);
|
|
5272
5298
|
}
|
|
5273
5299
|
}
|
|
5274
5300
|
}),
|
|
5275
5301
|
[n, o, e]
|
|
5276
5302
|
);
|
|
5277
|
-
return p(
|
|
5303
|
+
return p(g(l)), u(a), /* @__PURE__ */ w(
|
|
5278
5304
|
"div",
|
|
5279
5305
|
{
|
|
5280
5306
|
ref: l,
|
|
5281
|
-
className:
|
|
5307
|
+
className: G(v1, r),
|
|
5282
5308
|
style: { opacity: d ? 0 : 1 },
|
|
5283
5309
|
"aria-roledescription": "Draggable item",
|
|
5284
5310
|
children: [
|
|
@@ -5302,7 +5328,7 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5302
5328
|
stroke: t.stroke ?? X.stroke,
|
|
5303
5329
|
className: t.className
|
|
5304
5330
|
}
|
|
5305
|
-
),
|
|
5331
|
+
), ye = (e, t) => /* @__PURE__ */ i(
|
|
5306
5332
|
e,
|
|
5307
5333
|
{
|
|
5308
5334
|
width: Number(t.size ?? X.size),
|
|
@@ -5311,25 +5337,25 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5311
5337
|
}
|
|
5312
5338
|
), sr = {
|
|
5313
5339
|
".bmp": (e) => z(oo, e),
|
|
5314
|
-
".cpp": (e) =>
|
|
5315
|
-
".c": (e) =>
|
|
5316
|
-
".cs": (e) =>
|
|
5340
|
+
".cpp": (e) => ye(y1, e),
|
|
5341
|
+
".c": (e) => ye(w1, e),
|
|
5342
|
+
".cs": (e) => ye(x1, e),
|
|
5317
5343
|
".css": (e) => z(no, e),
|
|
5318
5344
|
".csv": (e) => z(ro, e),
|
|
5319
5345
|
".doc": (e) => z(to, e),
|
|
5320
5346
|
".docx": (e) => z(eo, e),
|
|
5321
5347
|
".html": (e) => z(Qn, e),
|
|
5322
|
-
".ini": (e) =>
|
|
5348
|
+
".ini": (e) => ye(D1, e),
|
|
5323
5349
|
".jpg": (e) => z(Jn, e),
|
|
5324
5350
|
".js": (e) => z(Kn, e),
|
|
5325
|
-
".json": (e) =>
|
|
5351
|
+
".json": (e) => ye(S1, e),
|
|
5326
5352
|
".jsx": (e) => z(Yn, e),
|
|
5327
|
-
".md": (e) =>
|
|
5353
|
+
".md": (e) => ye(L1, e),
|
|
5328
5354
|
".pdf": (e) => z(Xn, e),
|
|
5329
5355
|
".php": (e) => z(Zn, e),
|
|
5330
5356
|
".png": (e) => z(qn, e),
|
|
5331
5357
|
".ppt": (e) => z(Un, e),
|
|
5332
|
-
".py": (e) =>
|
|
5358
|
+
".py": (e) => ye(I1, e),
|
|
5333
5359
|
".rs": (e) => z(Wn, e),
|
|
5334
5360
|
".sql": (e) => z($n, e),
|
|
5335
5361
|
".svg": (e) => z(Gn, e),
|
|
@@ -5360,10 +5386,10 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5360
5386
|
return /* @__PURE__ */ w(
|
|
5361
5387
|
"span",
|
|
5362
5388
|
{
|
|
5363
|
-
className:
|
|
5389
|
+
className: y("inline-flex relative", n),
|
|
5364
5390
|
...o ? { "aria-hidden": !0 } : { role: "img", "aria-label": u },
|
|
5365
5391
|
children: [
|
|
5366
|
-
/* @__PURE__ */ i(
|
|
5392
|
+
/* @__PURE__ */ i(U, { icon: d, className: "inline-block align-middle" }),
|
|
5367
5393
|
a && /* @__PURE__ */ i("span", { className: "absolute -bottom-0.5 -left-0.5", children: a })
|
|
5368
5394
|
]
|
|
5369
5395
|
}
|
|
@@ -5374,9 +5400,9 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5374
5400
|
cssClass: r,
|
|
5375
5401
|
stroke: n = 2
|
|
5376
5402
|
}) => /* @__PURE__ */ i(
|
|
5377
|
-
|
|
5403
|
+
U,
|
|
5378
5404
|
{
|
|
5379
|
-
className:
|
|
5405
|
+
className: G("text-accent-primary", r),
|
|
5380
5406
|
label: "Shared entity indicator",
|
|
5381
5407
|
icon: /* @__PURE__ */ i(
|
|
5382
5408
|
so,
|
|
@@ -5395,7 +5421,7 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5395
5421
|
shared: r = !1
|
|
5396
5422
|
}) => {
|
|
5397
5423
|
const n = e.includes(".") ? e.split(".").pop() : null;
|
|
5398
|
-
return /* @__PURE__ */ w("div", { className:
|
|
5424
|
+
return /* @__PURE__ */ w("div", { className: G("flex items-center gap-2 w-full", t), children: [
|
|
5399
5425
|
n && /* @__PURE__ */ i(
|
|
5400
5426
|
T1,
|
|
5401
5427
|
{
|
|
@@ -5406,7 +5432,7 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5406
5432
|
}
|
|
5407
5433
|
),
|
|
5408
5434
|
/* @__PURE__ */ i(
|
|
5409
|
-
|
|
5435
|
+
De,
|
|
5410
5436
|
{
|
|
5411
5437
|
cssClass: "text-primary dial-small flex-1 min-w-0",
|
|
5412
5438
|
text: e
|
|
@@ -5416,20 +5442,20 @@ const or = "column", v1 = "flex items-center", b1 = "mr-3 cursor-move text-secon
|
|
|
5416
5442
|
};
|
|
5417
5443
|
var yt = /* @__PURE__ */ ((e) => (e.Horizontal = "horizontal", e.Vertical = "vertical", e))(yt || {});
|
|
5418
5444
|
const ir = () => typeof window < "u" && window.innerWidth < 1024, E1 = () => {
|
|
5419
|
-
const [e, t] =
|
|
5445
|
+
const [e, t] = $(ir());
|
|
5420
5446
|
return ne(() => {
|
|
5421
5447
|
const r = () => t(ir());
|
|
5422
5448
|
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
5423
5449
|
}, []), e;
|
|
5424
5450
|
};
|
|
5425
|
-
var N1 = /* @__PURE__ */ ((e) => (e.Dropdown = "dropdown", e.Menu = "menu", e))(N1 || {}),
|
|
5426
|
-
const k1 =
|
|
5451
|
+
var N1 = /* @__PURE__ */ ((e) => (e.Dropdown = "dropdown", e.Menu = "menu", e))(N1 || {}), we = /* @__PURE__ */ ((e) => (e.Click = "click", e.Hover = "hover", e.ContextMenu = "contextMenu", e))(we || {}), sn = /* @__PURE__ */ ((e) => (e.Item = "item", e.Divider = "divider", e))(sn || {});
|
|
5452
|
+
const k1 = y(
|
|
5427
5453
|
"flex items-center gap-2 align-middle",
|
|
5428
5454
|
"h-auto px-0 bg-transparent border-0"
|
|
5429
|
-
), R1 =
|
|
5455
|
+
), R1 = y(
|
|
5430
5456
|
"z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none",
|
|
5431
5457
|
"w-max"
|
|
5432
|
-
), P1 =
|
|
5458
|
+
), P1 = y(
|
|
5433
5459
|
"flex w-full cursor-pointer items-center gap-3",
|
|
5434
5460
|
"focus-visible:border-none focus-visible:outline-none",
|
|
5435
5461
|
"hover:bg-accent-primary-alpha px-3",
|
|
@@ -5443,7 +5469,7 @@ const k1 = b(
|
|
|
5443
5469
|
Q,
|
|
5444
5470
|
{
|
|
5445
5471
|
ariaLabel: e,
|
|
5446
|
-
cssClass:
|
|
5472
|
+
cssClass: G("text-secondary hover:text-accent-primary", t),
|
|
5447
5473
|
onClick: n,
|
|
5448
5474
|
iconBefore: /* @__PURE__ */ i(_e, { size: r })
|
|
5449
5475
|
}
|
|
@@ -5451,7 +5477,7 @@ const k1 = b(
|
|
|
5451
5477
|
children: e,
|
|
5452
5478
|
menu: t,
|
|
5453
5479
|
renderOverlay: r,
|
|
5454
|
-
trigger: n = [
|
|
5480
|
+
trigger: n = [we.Click],
|
|
5455
5481
|
placement: o,
|
|
5456
5482
|
disabled: s = !1,
|
|
5457
5483
|
open: a,
|
|
@@ -5460,19 +5486,19 @@ const k1 = b(
|
|
|
5460
5486
|
closable: d = !1,
|
|
5461
5487
|
onClose: u,
|
|
5462
5488
|
cssClass: p,
|
|
5463
|
-
listClassName:
|
|
5489
|
+
listClassName: g,
|
|
5464
5490
|
outsidePressIgnoreRef: f,
|
|
5465
|
-
outsideClosable:
|
|
5491
|
+
outsideClosable: C = !0,
|
|
5466
5492
|
allowedPlacements: m,
|
|
5467
5493
|
anchorToMouse: x = !1,
|
|
5468
5494
|
matchReferenceWidth: L = !0
|
|
5469
5495
|
}) => {
|
|
5470
|
-
const [
|
|
5471
|
-
(
|
|
5472
|
-
O ||
|
|
5496
|
+
const [v, b] = $(l), O = a !== void 0, R = O ? !!a : v, P = A(
|
|
5497
|
+
(h) => {
|
|
5498
|
+
O || b(h), c?.(h);
|
|
5473
5499
|
},
|
|
5474
5500
|
[O, c]
|
|
5475
|
-
),
|
|
5501
|
+
), W = Lr(), I = o === void 0, j = (h) => h ? "clientWidth" in h ? h.clientWidth : h.getBoundingClientRect?.()?.width ?? 0 : 0, { refs: _, floatingStyles: M, context: V } = Dt({
|
|
5476
5502
|
placement: o,
|
|
5477
5503
|
open: R,
|
|
5478
5504
|
onOpenChange: P,
|
|
@@ -5488,31 +5514,31 @@ const k1 = b(
|
|
|
5488
5514
|
Cr({ padding: He }),
|
|
5489
5515
|
xn({
|
|
5490
5516
|
padding: He,
|
|
5491
|
-
apply({ availableWidth:
|
|
5492
|
-
const ce = F.floating,
|
|
5517
|
+
apply({ availableWidth: h, availableHeight: H, elements: F }) {
|
|
5518
|
+
const ce = F.floating, ve = j(F.reference);
|
|
5493
5519
|
ce.style.setProperty(
|
|
5494
5520
|
"--fui-available-height",
|
|
5495
5521
|
`${Math.floor(H)}px`
|
|
5496
5522
|
), ce.style.setProperty(
|
|
5497
5523
|
"--reference-width",
|
|
5498
|
-
L ? `${Math.round(
|
|
5499
|
-
), L ? ce.style.minWidth = `${Math.round(
|
|
5524
|
+
L ? `${Math.round(ve)}px` : "0px"
|
|
5525
|
+
), L ? ce.style.minWidth = `${Math.round(ve)}px` : ce.style.removeProperty("min-width"), ce.style.maxWidth = `${Math.floor(h)}px`, ce.style.maxHeight = `${Math.floor(H)}px`;
|
|
5500
5526
|
}
|
|
5501
5527
|
})
|
|
5502
5528
|
]
|
|
5503
5529
|
}), ee = Dn(V, {
|
|
5504
|
-
enabled: n.includes(
|
|
5530
|
+
enabled: n.includes(we.Click) && !s
|
|
5505
5531
|
}), de = br(V, {
|
|
5506
|
-
enabled: n.includes(
|
|
5532
|
+
enabled: n.includes(we.Hover) && !s,
|
|
5507
5533
|
move: !1,
|
|
5508
5534
|
restMs: 40,
|
|
5509
5535
|
delay: { open: 80, close: 80 }
|
|
5510
5536
|
}), Y = St(V, {
|
|
5511
5537
|
bubbles: !0,
|
|
5512
5538
|
referencePress: !1,
|
|
5513
|
-
outsidePress: (
|
|
5514
|
-
if (!
|
|
5515
|
-
const H =
|
|
5539
|
+
outsidePress: (h) => {
|
|
5540
|
+
if (!C) return !1;
|
|
5541
|
+
const H = h.target;
|
|
5516
5542
|
return !(f?.current && H instanceof Node && f.current.contains(H));
|
|
5517
5543
|
}
|
|
5518
5544
|
}), te = Lt(V, { role: "menu" }), { getReferenceProps: re, getFloatingProps: T } = It([
|
|
@@ -5521,29 +5547,29 @@ const k1 = b(
|
|
|
5521
5547
|
Y,
|
|
5522
5548
|
te
|
|
5523
5549
|
]), ue = A(
|
|
5524
|
-
(
|
|
5550
|
+
(h, H) => {
|
|
5525
5551
|
_.setPositionReference({
|
|
5526
5552
|
getBoundingClientRect: () => ({
|
|
5527
5553
|
width: 0,
|
|
5528
5554
|
height: 0,
|
|
5529
|
-
x:
|
|
5555
|
+
x: h,
|
|
5530
5556
|
y: H,
|
|
5531
5557
|
top: H,
|
|
5532
|
-
left:
|
|
5533
|
-
right:
|
|
5558
|
+
left: h,
|
|
5559
|
+
right: h,
|
|
5534
5560
|
bottom: H
|
|
5535
5561
|
})
|
|
5536
5562
|
});
|
|
5537
5563
|
},
|
|
5538
5564
|
[_]
|
|
5539
5565
|
), ge = A(
|
|
5540
|
-
(
|
|
5541
|
-
!n.includes(
|
|
5566
|
+
(h) => {
|
|
5567
|
+
!n.includes(we.ContextMenu) || s || (h.preventDefault(), x && ue(h.clientX, h.clientY), P(!0));
|
|
5542
5568
|
},
|
|
5543
5569
|
[x, s, P, ue, n]
|
|
5544
5570
|
), he = A(
|
|
5545
|
-
(
|
|
5546
|
-
!x || s || ue(
|
|
5571
|
+
(h) => {
|
|
5572
|
+
!x || s || ue(h.clientX, h.clientY);
|
|
5547
5573
|
},
|
|
5548
5574
|
[x, s, ue]
|
|
5549
5575
|
);
|
|
@@ -5551,57 +5577,57 @@ const k1 = b(
|
|
|
5551
5577
|
s && R && P(!1);
|
|
5552
5578
|
}, [s, R, P]);
|
|
5553
5579
|
const oe = A(
|
|
5554
|
-
(
|
|
5555
|
-
|
|
5580
|
+
(h) => (H) => {
|
|
5581
|
+
h.disabled || (h.onClick?.({ key: h.key, domEvent: H }), t?.onClick?.({ key: h.key, domEvent: H }), P(!1));
|
|
5556
5582
|
},
|
|
5557
5583
|
[t, P]
|
|
5558
|
-
),
|
|
5584
|
+
), q = B(() => r ? r() : t ? /* @__PURE__ */ w(pe, { children: [
|
|
5559
5585
|
t.header && /* @__PURE__ */ i(pe, { children: typeof t.header == "function" ? t.header() : t.header }),
|
|
5560
|
-
/* @__PURE__ */ i("div", { role: "none", className: "py-1", children: t.items.map((
|
|
5586
|
+
/* @__PURE__ */ i("div", { role: "none", className: "py-1", children: t.items.map((h) => h.type === sn.Divider ? /* @__PURE__ */ i(
|
|
5561
5587
|
"div",
|
|
5562
5588
|
{
|
|
5563
5589
|
role: "separator",
|
|
5564
5590
|
className: H1
|
|
5565
5591
|
},
|
|
5566
|
-
|
|
5592
|
+
h.key
|
|
5567
5593
|
) : /* @__PURE__ */ w(
|
|
5568
5594
|
"button",
|
|
5569
5595
|
{
|
|
5570
5596
|
role: "menuitem",
|
|
5571
5597
|
type: "button",
|
|
5572
|
-
"aria-disabled": !!
|
|
5573
|
-
className:
|
|
5598
|
+
"aria-disabled": !!h.disabled,
|
|
5599
|
+
className: y(
|
|
5574
5600
|
P1,
|
|
5575
|
-
|
|
5576
|
-
|
|
5601
|
+
h.disabled && M1,
|
|
5602
|
+
h.danger && V1
|
|
5577
5603
|
),
|
|
5578
|
-
disabled:
|
|
5579
|
-
onClick: oe(
|
|
5604
|
+
disabled: h.disabled,
|
|
5605
|
+
onClick: oe(h),
|
|
5580
5606
|
children: [
|
|
5581
|
-
|
|
5607
|
+
h.icon && /* @__PURE__ */ i(
|
|
5582
5608
|
"span",
|
|
5583
5609
|
{
|
|
5584
|
-
className:
|
|
5585
|
-
|
|
5586
|
-
|
|
5610
|
+
className: y(
|
|
5611
|
+
h.danger && "text-error",
|
|
5612
|
+
h.disabled && "text-secondary"
|
|
5587
5613
|
),
|
|
5588
|
-
children: /* @__PURE__ */ i(
|
|
5614
|
+
children: /* @__PURE__ */ i(U, { icon: h.icon })
|
|
5589
5615
|
}
|
|
5590
5616
|
),
|
|
5591
5617
|
/* @__PURE__ */ i(
|
|
5592
5618
|
"span",
|
|
5593
5619
|
{
|
|
5594
|
-
className:
|
|
5620
|
+
className: y(
|
|
5595
5621
|
"flex-1 truncate text-left",
|
|
5596
|
-
|
|
5597
|
-
|
|
5622
|
+
h.danger && "text-error",
|
|
5623
|
+
h.disabled && "text-secondary"
|
|
5598
5624
|
),
|
|
5599
|
-
children:
|
|
5625
|
+
children: h.label
|
|
5600
5626
|
}
|
|
5601
5627
|
)
|
|
5602
5628
|
]
|
|
5603
5629
|
},
|
|
5604
|
-
|
|
5630
|
+
h.key
|
|
5605
5631
|
)) }),
|
|
5606
5632
|
t.footer && /* @__PURE__ */ i(pe, { children: typeof t.footer == "function" ? t.footer() : t.footer })
|
|
5607
5633
|
] }) : null, [oe, t, r]), K = re({
|
|
@@ -5613,14 +5639,14 @@ const k1 = b(
|
|
|
5613
5639
|
"span",
|
|
5614
5640
|
{
|
|
5615
5641
|
ref: _.setReference,
|
|
5616
|
-
className:
|
|
5642
|
+
className: y(
|
|
5617
5643
|
k1,
|
|
5618
5644
|
s && "!cursor-not-allowed opacity-75",
|
|
5619
5645
|
p
|
|
5620
5646
|
),
|
|
5621
5647
|
"aria-haspopup": "menu",
|
|
5622
5648
|
"aria-expanded": R,
|
|
5623
|
-
"aria-controls":
|
|
5649
|
+
"aria-controls": W,
|
|
5624
5650
|
...K,
|
|
5625
5651
|
children: e
|
|
5626
5652
|
}
|
|
@@ -5635,13 +5661,13 @@ const k1 = b(
|
|
|
5635
5661
|
children: /* @__PURE__ */ w(
|
|
5636
5662
|
"div",
|
|
5637
5663
|
{
|
|
5638
|
-
id:
|
|
5664
|
+
id: W,
|
|
5639
5665
|
ref: _.setFloating,
|
|
5640
5666
|
style: M,
|
|
5641
|
-
className:
|
|
5667
|
+
className: y(
|
|
5642
5668
|
R1,
|
|
5643
5669
|
!L && "w-max",
|
|
5644
|
-
|
|
5670
|
+
g
|
|
5645
5671
|
),
|
|
5646
5672
|
...T(),
|
|
5647
5673
|
children: [
|
|
@@ -5649,12 +5675,12 @@ const k1 = b(
|
|
|
5649
5675
|
an,
|
|
5650
5676
|
{
|
|
5651
5677
|
ariaLabel: "Close dropdown",
|
|
5652
|
-
onClose: (
|
|
5653
|
-
u?.(
|
|
5678
|
+
onClose: (h) => {
|
|
5679
|
+
u?.(h), P(!1);
|
|
5654
5680
|
}
|
|
5655
5681
|
}
|
|
5656
5682
|
) }),
|
|
5657
|
-
|
|
5683
|
+
q
|
|
5658
5684
|
]
|
|
5659
5685
|
}
|
|
5660
5686
|
)
|
|
@@ -5670,7 +5696,7 @@ const k1 = b(
|
|
|
5670
5696
|
horizontal: s,
|
|
5671
5697
|
onClick: a
|
|
5672
5698
|
}) => {
|
|
5673
|
-
const c =
|
|
5699
|
+
const c = G(
|
|
5674
5700
|
"rounded px-3 py-2 flex flex-row gap-2 h-[32px] cursor-pointer dial-small leading-4 hover:text-accent-primary",
|
|
5675
5701
|
{
|
|
5676
5702
|
"bg-layer-4": s,
|
|
@@ -5691,7 +5717,7 @@ const k1 = b(
|
|
|
5691
5717
|
disabled: r,
|
|
5692
5718
|
children: [
|
|
5693
5719
|
/* @__PURE__ */ i(
|
|
5694
|
-
|
|
5720
|
+
De,
|
|
5695
5721
|
{
|
|
5696
5722
|
text: e.name,
|
|
5697
5723
|
contentClassName: "max-w-[200px]",
|
|
@@ -5708,50 +5734,50 @@ const k1 = b(
|
|
|
5708
5734
|
onClick: r,
|
|
5709
5735
|
orientation: n = yt.Horizontal
|
|
5710
5736
|
}) => {
|
|
5711
|
-
const [o, s] =
|
|
5712
|
-
() =>
|
|
5737
|
+
const [o, s] = $(!1), [a, l] = $(!1), [c, d] = $(!1), u = E1(), p = n === yt.Horizontal, g = le(null), f = le(null), C = le(null), m = e.find((v) => v.id === t), x = B(
|
|
5738
|
+
() => y(
|
|
5713
5739
|
"flex gap-3",
|
|
5714
5740
|
p ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
|
|
5715
5741
|
),
|
|
5716
5742
|
[p]
|
|
5717
5743
|
), L = A(() => {
|
|
5718
|
-
const
|
|
5719
|
-
|
|
5744
|
+
const v = f.current;
|
|
5745
|
+
v && d(v.scrollWidth > v.clientWidth);
|
|
5720
5746
|
}, []);
|
|
5721
5747
|
return ne(() => {
|
|
5722
5748
|
L();
|
|
5723
|
-
const
|
|
5724
|
-
return
|
|
5749
|
+
const v = new ResizeObserver(L), b = f.current;
|
|
5750
|
+
return b && v.observe(b), () => v.disconnect();
|
|
5725
5751
|
}, [e, L]), ne(() => {
|
|
5726
|
-
const
|
|
5727
|
-
if (!
|
|
5728
|
-
const O =
|
|
5729
|
-
O < P ?
|
|
5752
|
+
const v = C.current, b = f.current;
|
|
5753
|
+
if (!v || !b) return;
|
|
5754
|
+
const O = v.offsetLeft, R = O + v.offsetWidth, P = b.scrollLeft, W = P + b.clientWidth;
|
|
5755
|
+
O < P ? b.scrollTo({
|
|
5730
5756
|
left: O - ar,
|
|
5731
5757
|
behavior: "smooth"
|
|
5732
|
-
}) : R >
|
|
5733
|
-
left: R -
|
|
5758
|
+
}) : R > W && b.scrollTo({
|
|
5759
|
+
left: R - b.clientWidth + ar,
|
|
5734
5760
|
behavior: "smooth"
|
|
5735
5761
|
});
|
|
5736
5762
|
}, [t]), u ? /* @__PURE__ */ i("div", { className: "h-11 flex items-center bg-layer-3 px-4", children: /* @__PURE__ */ i(
|
|
5737
5763
|
wt,
|
|
5738
5764
|
{
|
|
5739
|
-
trigger: [
|
|
5765
|
+
trigger: [we.Click],
|
|
5740
5766
|
open: o,
|
|
5741
5767
|
onOpenChange: s,
|
|
5742
5768
|
placement: "bottom-start",
|
|
5743
5769
|
allowedPlacements: ["bottom-start", "top-start"],
|
|
5744
|
-
renderOverlay: () => e.map((
|
|
5770
|
+
renderOverlay: () => e.map((v) => /* @__PURE__ */ i(
|
|
5745
5771
|
$e,
|
|
5746
5772
|
{
|
|
5747
|
-
tab:
|
|
5748
|
-
active:
|
|
5749
|
-
onClick: (
|
|
5750
|
-
r(
|
|
5773
|
+
tab: v,
|
|
5774
|
+
active: v.id === t,
|
|
5775
|
+
onClick: (b) => {
|
|
5776
|
+
r(b), s(!1);
|
|
5751
5777
|
},
|
|
5752
5778
|
cssClass: "w-full rounded-none h-11 items-center px-6"
|
|
5753
5779
|
},
|
|
5754
|
-
|
|
5780
|
+
v.id
|
|
5755
5781
|
)),
|
|
5756
5782
|
children: /* @__PURE__ */ w("div", { className: "flex gap-2 items-center h-11 cursor-pointer", children: [
|
|
5757
5783
|
/* @__PURE__ */ i(
|
|
@@ -5765,10 +5791,10 @@ const k1 = b(
|
|
|
5765
5791
|
t
|
|
5766
5792
|
),
|
|
5767
5793
|
/* @__PURE__ */ i(
|
|
5768
|
-
|
|
5794
|
+
U,
|
|
5769
5795
|
{
|
|
5770
5796
|
icon: /* @__PURE__ */ i(Er, { size: 16 }),
|
|
5771
|
-
className:
|
|
5797
|
+
className: y(
|
|
5772
5798
|
"text-primary transition-transform",
|
|
5773
5799
|
o && "rotate-180"
|
|
5774
5800
|
)
|
|
@@ -5778,49 +5804,49 @@ const k1 = b(
|
|
|
5778
5804
|
}
|
|
5779
5805
|
) }) : (
|
|
5780
5806
|
// Desktop
|
|
5781
|
-
/* @__PURE__ */ w("div", { ref:
|
|
5782
|
-
/* @__PURE__ */ i("div", { ref: f, className: x, children: e.map((
|
|
5807
|
+
/* @__PURE__ */ w("div", { ref: g, className: "flex w-full items-start", children: [
|
|
5808
|
+
/* @__PURE__ */ i("div", { ref: f, className: x, children: e.map((v) => /* @__PURE__ */ i(
|
|
5783
5809
|
"div",
|
|
5784
5810
|
{
|
|
5785
|
-
ref: t ===
|
|
5811
|
+
ref: t === v.id ? C : void 0,
|
|
5786
5812
|
className: "w-full",
|
|
5787
5813
|
children: /* @__PURE__ */ i(
|
|
5788
5814
|
$e,
|
|
5789
5815
|
{
|
|
5790
|
-
tab:
|
|
5791
|
-
active: t ===
|
|
5816
|
+
tab: v,
|
|
5817
|
+
active: t === v.id,
|
|
5792
5818
|
onClick: r,
|
|
5793
5819
|
horizontal: p,
|
|
5794
5820
|
cssClass: "w-full"
|
|
5795
5821
|
}
|
|
5796
5822
|
)
|
|
5797
5823
|
},
|
|
5798
|
-
|
|
5824
|
+
v.id
|
|
5799
5825
|
)) }),
|
|
5800
5826
|
c && /* @__PURE__ */ i("div", { className: "flex items-center ml-2", children: /* @__PURE__ */ i(
|
|
5801
5827
|
wt,
|
|
5802
5828
|
{
|
|
5803
|
-
trigger: [
|
|
5829
|
+
trigger: [we.Click],
|
|
5804
5830
|
open: a,
|
|
5805
5831
|
onOpenChange: l,
|
|
5806
5832
|
placement: "bottom-end",
|
|
5807
|
-
renderOverlay: () => e.map((
|
|
5833
|
+
renderOverlay: () => e.map((v) => /* @__PURE__ */ i(
|
|
5808
5834
|
$e,
|
|
5809
5835
|
{
|
|
5810
|
-
tab:
|
|
5811
|
-
active:
|
|
5812
|
-
onClick: (
|
|
5813
|
-
r(
|
|
5836
|
+
tab: v,
|
|
5837
|
+
active: v.id === t,
|
|
5838
|
+
onClick: (b) => {
|
|
5839
|
+
r(b), l(!1);
|
|
5814
5840
|
},
|
|
5815
5841
|
cssClass: "w-full rounded-none h-[32px] items-center px-3 py-2"
|
|
5816
5842
|
},
|
|
5817
|
-
|
|
5843
|
+
v.id
|
|
5818
5844
|
)),
|
|
5819
5845
|
children: /* @__PURE__ */ i(
|
|
5820
5846
|
Q,
|
|
5821
5847
|
{
|
|
5822
5848
|
iconBefore: /* @__PURE__ */ i(io, { size: 18 }),
|
|
5823
|
-
cssClass:
|
|
5849
|
+
cssClass: y(
|
|
5824
5850
|
"w-8 h-8 flex items-center justify-center rounded border",
|
|
5825
5851
|
a ? "bg-layer-4 border-transparent" : "border-primary"
|
|
5826
5852
|
)
|
|
@@ -5841,12 +5867,12 @@ const k1 = b(
|
|
|
5841
5867
|
iconBefore: l,
|
|
5842
5868
|
titleCssClass: c
|
|
5843
5869
|
}) => {
|
|
5844
|
-
const d =
|
|
5870
|
+
const d = G(_1, a), u = !!t && !o && !n, p = typeof e == "string" ? /* @__PURE__ */ i(De, { text: e }) : e;
|
|
5845
5871
|
return /* @__PURE__ */ w("li", { className: d, children: [
|
|
5846
5872
|
u ? /* @__PURE__ */ w(
|
|
5847
5873
|
"a",
|
|
5848
5874
|
{
|
|
5849
|
-
className:
|
|
5875
|
+
className: G(
|
|
5850
5876
|
lr,
|
|
5851
5877
|
z1,
|
|
5852
5878
|
c
|
|
@@ -5861,7 +5887,7 @@ const k1 = b(
|
|
|
5861
5887
|
) : /* @__PURE__ */ w(
|
|
5862
5888
|
"span",
|
|
5863
5889
|
{
|
|
5864
|
-
className:
|
|
5890
|
+
className: G(
|
|
5865
5891
|
lr,
|
|
5866
5892
|
j1,
|
|
5867
5893
|
n && "pointer-events-none opacity-75",
|
|
@@ -5906,7 +5932,7 @@ const k1 = b(
|
|
|
5906
5932
|
"nav",
|
|
5907
5933
|
{
|
|
5908
5934
|
"aria-label": r,
|
|
5909
|
-
className:
|
|
5935
|
+
className: G(A1, n),
|
|
5910
5936
|
children: /* @__PURE__ */ i("ol", { className: F1, children: a })
|
|
5911
5937
|
}
|
|
5912
5938
|
);
|
|
@@ -5931,10 +5957,10 @@ const k1 = b(
|
|
|
5931
5957
|
disableTooltip: c,
|
|
5932
5958
|
onChange: d
|
|
5933
5959
|
}) => /* @__PURE__ */ i(
|
|
5934
|
-
|
|
5960
|
+
Le,
|
|
5935
5961
|
{
|
|
5936
5962
|
tooltip: c ? null : e,
|
|
5937
|
-
triggerClassName:
|
|
5963
|
+
triggerClassName: G("flex", o),
|
|
5938
5964
|
children: /* @__PURE__ */ i(
|
|
5939
5965
|
"textarea",
|
|
5940
5966
|
{
|
|
@@ -5942,7 +5968,7 @@ const k1 = b(
|
|
|
5942
5968
|
placeholder: r,
|
|
5943
5969
|
value: e || "",
|
|
5944
5970
|
disabled: s,
|
|
5945
|
-
className:
|
|
5971
|
+
className: y(
|
|
5946
5972
|
"dial-textarea dial-input px-3 py-2",
|
|
5947
5973
|
a ? "dial-input-error" : "",
|
|
5948
5974
|
s && "dial-input-disable",
|
|
@@ -5998,25 +6024,25 @@ const k1 = b(
|
|
|
5998
6024
|
type: d = "text",
|
|
5999
6025
|
disabled: u,
|
|
6000
6026
|
readonly: p,
|
|
6001
|
-
invalid:
|
|
6027
|
+
invalid: g,
|
|
6002
6028
|
onChange: f,
|
|
6003
|
-
min:
|
|
6029
|
+
min: C,
|
|
6004
6030
|
max: m,
|
|
6005
6031
|
prefix: x,
|
|
6006
6032
|
suffix: L,
|
|
6007
|
-
textBeforeInput:
|
|
6008
|
-
textAfterInput:
|
|
6033
|
+
textBeforeInput: v,
|
|
6034
|
+
textAfterInput: b,
|
|
6009
6035
|
onBlur: O,
|
|
6010
6036
|
defaultValue: R,
|
|
6011
6037
|
tooltipText: P
|
|
6012
6038
|
}) => {
|
|
6013
|
-
const
|
|
6014
|
-
q1(M, d,
|
|
6039
|
+
const W = (M) => M.target.blur(), I = d === "number" || C !== void 0 || m !== void 0, j = (M) => {
|
|
6040
|
+
q1(M, d, C, m);
|
|
6015
6041
|
}, _ = (M) => {
|
|
6016
6042
|
const V = M.currentTarget.value;
|
|
6017
6043
|
if (I && V !== "") {
|
|
6018
6044
|
const ee = parseFloat(V);
|
|
6019
|
-
if (isNaN(ee) && V !== "-" && V !== "." || !isNaN(ee) && (
|
|
6045
|
+
if (isNaN(ee) && V !== "-" && V !== "." || !isNaN(ee) && (C !== void 0 && ee < C || m !== void 0 && ee > m))
|
|
6020
6046
|
return;
|
|
6021
6047
|
}
|
|
6022
6048
|
f?.(V || void 0);
|
|
@@ -6024,38 +6050,38 @@ const k1 = b(
|
|
|
6024
6050
|
return /* @__PURE__ */ w(
|
|
6025
6051
|
"div",
|
|
6026
6052
|
{
|
|
6027
|
-
className:
|
|
6053
|
+
className: y(
|
|
6028
6054
|
"dial-input-field flex flex-row items-center justify-between py-2",
|
|
6029
6055
|
r ? "dial-input-no-border" : "dial-input",
|
|
6030
|
-
|
|
6056
|
+
g && "dial-input-error",
|
|
6031
6057
|
u && "dial-input-disable",
|
|
6032
6058
|
p && "dial-input-readonly",
|
|
6033
|
-
!
|
|
6034
|
-
!
|
|
6059
|
+
!v && "pl-3",
|
|
6060
|
+
!b && "pr-3",
|
|
6035
6061
|
l
|
|
6036
6062
|
),
|
|
6037
6063
|
children: [
|
|
6038
|
-
|
|
6064
|
+
v && /* @__PURE__ */ i("div", { className: "mr-2", children: /* @__PURE__ */ i(
|
|
6039
6065
|
Fe,
|
|
6040
6066
|
{
|
|
6041
6067
|
hideBorder: !0,
|
|
6042
6068
|
containerCssClass: "rounded-r-none border-r-0",
|
|
6043
6069
|
cssClass: "overflow-hidden overflow-ellipsis dial-small",
|
|
6044
|
-
value:
|
|
6070
|
+
value: v,
|
|
6045
6071
|
disabled: !0,
|
|
6046
|
-
elementId:
|
|
6072
|
+
elementId: v + "textBefore"
|
|
6047
6073
|
}
|
|
6048
6074
|
) }),
|
|
6049
6075
|
x && /* @__PURE__ */ w("p", { className: "text-secondary dial-small mr-2", children: [
|
|
6050
6076
|
" ",
|
|
6051
6077
|
x
|
|
6052
6078
|
] }),
|
|
6053
|
-
/* @__PURE__ */ i(
|
|
6079
|
+
/* @__PURE__ */ i(U, { icon: e }),
|
|
6054
6080
|
/* @__PURE__ */ i(
|
|
6055
|
-
|
|
6081
|
+
Le,
|
|
6056
6082
|
{
|
|
6057
6083
|
tooltip: P || n,
|
|
6058
|
-
triggerClassName:
|
|
6084
|
+
triggerClassName: y(c, "flex-1"),
|
|
6059
6085
|
children: /* @__PURE__ */ i(
|
|
6060
6086
|
"input",
|
|
6061
6087
|
{
|
|
@@ -6065,31 +6091,34 @@ const k1 = b(
|
|
|
6065
6091
|
placeholder: s,
|
|
6066
6092
|
value: R ? void 0 : n ?? "",
|
|
6067
6093
|
disabled: u,
|
|
6068
|
-
className:
|
|
6094
|
+
className: y(
|
|
6095
|
+
"border-0 bg-transparent w-full truncate",
|
|
6096
|
+
a
|
|
6097
|
+
),
|
|
6069
6098
|
onChange: (M) => !p && _?.(M),
|
|
6070
6099
|
onKeyDown: j,
|
|
6071
|
-
onWheel:
|
|
6100
|
+
onWheel: W,
|
|
6072
6101
|
onBlur: O,
|
|
6073
|
-
min:
|
|
6102
|
+
min: C,
|
|
6074
6103
|
max: m,
|
|
6075
6104
|
defaultValue: R
|
|
6076
6105
|
}
|
|
6077
6106
|
)
|
|
6078
6107
|
}
|
|
6079
6108
|
),
|
|
6080
|
-
/* @__PURE__ */ i(
|
|
6109
|
+
/* @__PURE__ */ i(U, { icon: t }),
|
|
6081
6110
|
L && /* @__PURE__ */ w("p", { className: "text-secondary dial-small ml-2", children: [
|
|
6082
6111
|
" ",
|
|
6083
6112
|
L
|
|
6084
6113
|
] }),
|
|
6085
|
-
|
|
6114
|
+
b && /* @__PURE__ */ i("div", { className: "ml-2", children: /* @__PURE__ */ i(
|
|
6086
6115
|
Fe,
|
|
6087
6116
|
{
|
|
6088
6117
|
hideBorder: !0,
|
|
6089
6118
|
containerCssClass: "rounded-l-none border-l-0",
|
|
6090
|
-
value:
|
|
6119
|
+
value: b,
|
|
6091
6120
|
disabled: !0,
|
|
6092
|
-
elementId:
|
|
6121
|
+
elementId: b + "textAfter"
|
|
6093
6122
|
}
|
|
6094
6123
|
) })
|
|
6095
6124
|
]
|
|
@@ -6167,7 +6196,7 @@ const k1 = b(
|
|
|
6167
6196
|
elementContainerCssClass: s,
|
|
6168
6197
|
errorText: a,
|
|
6169
6198
|
...l
|
|
6170
|
-
}) => /* @__PURE__ */ w("div", { className:
|
|
6199
|
+
}) => /* @__PURE__ */ w("div", { className: G("flex flex-col", o), children: [
|
|
6171
6200
|
/* @__PURE__ */ i(
|
|
6172
6201
|
ke,
|
|
6173
6202
|
{
|
|
@@ -6185,7 +6214,7 @@ const k1 = b(
|
|
|
6185
6214
|
...l
|
|
6186
6215
|
}
|
|
6187
6216
|
),
|
|
6188
|
-
/* @__PURE__ */ i(
|
|
6217
|
+
/* @__PURE__ */ i(xe, { errorText: a })
|
|
6189
6218
|
] }), Qa = ({
|
|
6190
6219
|
title: e,
|
|
6191
6220
|
switchId: t,
|
|
@@ -6193,7 +6222,7 @@ const k1 = b(
|
|
|
6193
6222
|
disabled: n,
|
|
6194
6223
|
onChange: o
|
|
6195
6224
|
}) => {
|
|
6196
|
-
const s =
|
|
6225
|
+
const s = y(
|
|
6197
6226
|
"flex w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",
|
|
6198
6227
|
r ? "flex-row-reverse" : "flex-row",
|
|
6199
6228
|
n ? "pointer-events-none" : "",
|
|
@@ -6219,7 +6248,7 @@ const k1 = b(
|
|
|
6219
6248
|
/* @__PURE__ */ i("label", { htmlFor: t, className: s, children: /* @__PURE__ */ i(
|
|
6220
6249
|
"span",
|
|
6221
6250
|
{
|
|
6222
|
-
className:
|
|
6251
|
+
className: y(
|
|
6223
6252
|
"size-3 rounded-full",
|
|
6224
6253
|
n ? r ? "bg-layer-4" : "bg-controls-disable" : "bg-controls-enable-primary"
|
|
6225
6254
|
)
|
|
@@ -6246,25 +6275,25 @@ const Y1 = "z-[52] flex items-center justify-center bg-blackout md:p-4", K1 = "d
|
|
|
6246
6275
|
onClose: d,
|
|
6247
6276
|
size: u = Ce.Md
|
|
6248
6277
|
}) => {
|
|
6249
|
-
const { refs: p, context:
|
|
6278
|
+
const { refs: p, context: g } = Dt({
|
|
6250
6279
|
open: e,
|
|
6251
|
-
onOpenChange: (
|
|
6252
|
-
|
|
6280
|
+
onOpenChange: (v) => {
|
|
6281
|
+
v || d?.(null);
|
|
6253
6282
|
}
|
|
6254
|
-
}), f = Lt(
|
|
6283
|
+
}), f = Lt(g, { role: "dialog" }), C = St(g, { outsidePress: !0 }), { getFloatingProps: m } = It([f, C]);
|
|
6255
6284
|
if (!e) return null;
|
|
6256
|
-
const x = typeof t == "string" ? "dial-popup-heading" : void 0, L = (
|
|
6285
|
+
const x = typeof t == "string" ? "dial-popup-heading" : void 0, L = (v) => v ? typeof v == "string" ? /* @__PURE__ */ i(
|
|
6257
6286
|
"h3",
|
|
6258
6287
|
{
|
|
6259
6288
|
id: x,
|
|
6260
|
-
className:
|
|
6289
|
+
className: y(
|
|
6261
6290
|
"flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",
|
|
6262
6291
|
s
|
|
6263
6292
|
),
|
|
6264
|
-
children: /* @__PURE__ */ i(
|
|
6293
|
+
children: /* @__PURE__ */ i(Le, { tooltip: v, children: v })
|
|
6265
6294
|
}
|
|
6266
|
-
) :
|
|
6267
|
-
return /* @__PURE__ */ i(Tt, { id: r, children: /* @__PURE__ */ i(Sn, { className:
|
|
6295
|
+
) : v : /* @__PURE__ */ i("span", {});
|
|
6296
|
+
return /* @__PURE__ */ i(Tt, { id: r, children: /* @__PURE__ */ i(Sn, { className: y(Y1, o), children: /* @__PURE__ */ i(wr, { context: g, children: /* @__PURE__ */ w(
|
|
6268
6297
|
"div",
|
|
6269
6298
|
{
|
|
6270
6299
|
ref: p.setFloating,
|
|
@@ -6272,7 +6301,7 @@ const Y1 = "z-[52] flex items-center justify-center bg-blackout md:p-4", K1 = "d
|
|
|
6272
6301
|
role: "dialog",
|
|
6273
6302
|
"aria-modal": "true",
|
|
6274
6303
|
"aria-labelledby": x,
|
|
6275
|
-
className:
|
|
6304
|
+
className: y(
|
|
6276
6305
|
"dial-popup",
|
|
6277
6306
|
Q1[u],
|
|
6278
6307
|
a && K1,
|
|
@@ -6285,7 +6314,7 @@ const Y1 = "z-[52] flex items-center justify-center bg-blackout md:p-4", K1 = "d
|
|
|
6285
6314
|
an,
|
|
6286
6315
|
{
|
|
6287
6316
|
ariaLabel: "Close dialog",
|
|
6288
|
-
onClose: (
|
|
6317
|
+
onClose: (v) => d?.(v)
|
|
6289
6318
|
}
|
|
6290
6319
|
)
|
|
6291
6320
|
] }),
|
|
@@ -6319,20 +6348,20 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6319
6348
|
confirmClassName: d,
|
|
6320
6349
|
onClose: u,
|
|
6321
6350
|
onConfirm: p,
|
|
6322
|
-
onCancel:
|
|
6351
|
+
onCancel: g,
|
|
6323
6352
|
children: f,
|
|
6324
|
-
dividers:
|
|
6353
|
+
dividers: C = !1,
|
|
6325
6354
|
variant: m = Ye.Info,
|
|
6326
6355
|
size: x = Ce.Sm,
|
|
6327
6356
|
footer: L
|
|
6328
6357
|
}) => {
|
|
6329
|
-
const
|
|
6358
|
+
const v = a ? null : /* @__PURE__ */ w("div", { className: ea, children: [
|
|
6330
6359
|
/* @__PURE__ */ i(
|
|
6331
6360
|
Q,
|
|
6332
6361
|
{
|
|
6333
6362
|
variant: J.Secondary,
|
|
6334
6363
|
title: s,
|
|
6335
|
-
onClick: () =>
|
|
6364
|
+
onClick: () => g ? g() : u?.()
|
|
6336
6365
|
}
|
|
6337
6366
|
),
|
|
6338
6367
|
/* @__PURE__ */ i(
|
|
@@ -6345,10 +6374,10 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6345
6374
|
onClick: () => p()
|
|
6346
6375
|
}
|
|
6347
6376
|
)
|
|
6348
|
-
] }),
|
|
6377
|
+
] }), b = A(() => a ? /* @__PURE__ */ i("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ i(Hr, { size: 50 }) }) : f ?? (t ? /* @__PURE__ */ i(
|
|
6349
6378
|
"div",
|
|
6350
6379
|
{
|
|
6351
|
-
className:
|
|
6380
|
+
className: y(ta, r),
|
|
6352
6381
|
children: t
|
|
6353
6382
|
}
|
|
6354
6383
|
) : null), [f, t, a, r]);
|
|
@@ -6357,27 +6386,27 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6357
6386
|
{
|
|
6358
6387
|
open: n,
|
|
6359
6388
|
title: e,
|
|
6360
|
-
cssClass:
|
|
6361
|
-
dividers:
|
|
6389
|
+
cssClass: y(cr[m].container, c),
|
|
6390
|
+
dividers: C,
|
|
6362
6391
|
onClose: () => u?.(),
|
|
6363
|
-
footer: L ??
|
|
6392
|
+
footer: L ?? v,
|
|
6364
6393
|
size: x,
|
|
6365
|
-
children:
|
|
6394
|
+
children: b()
|
|
6366
6395
|
}
|
|
6367
6396
|
);
|
|
6368
6397
|
}, dn = ({ selectedItems: e, listCssClass: t, listElementCssClass: r }) => !!e?.length && /* @__PURE__ */ i(
|
|
6369
6398
|
"ul",
|
|
6370
6399
|
{
|
|
6371
|
-
className:
|
|
6400
|
+
className: y(
|
|
6372
6401
|
"flex-row items-center truncate flex-wrap",
|
|
6373
6402
|
"flex gap-x-2 gap-y-1",
|
|
6374
6403
|
t
|
|
6375
6404
|
),
|
|
6376
|
-
children: e?.map((n) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
6405
|
+
children: e?.map((n) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(Le, { tooltip: n, children: /* @__PURE__ */ i(
|
|
6377
6406
|
Pt,
|
|
6378
6407
|
{
|
|
6379
6408
|
tag: n,
|
|
6380
|
-
cssClass:
|
|
6409
|
+
cssClass: y([r])
|
|
6381
6410
|
}
|
|
6382
6411
|
) }) }, n))
|
|
6383
6412
|
}
|
|
@@ -6393,26 +6422,26 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6393
6422
|
errorText: c,
|
|
6394
6423
|
emptyValueText: d
|
|
6395
6424
|
}) => {
|
|
6396
|
-
const u = Array.isArray(n) && n.length > 0, p = typeof n == "string" && !!n.trim(),
|
|
6425
|
+
const u = Array.isArray(n) && n.length > 0, p = typeof n == "string" && !!n.trim(), g = u || p ? n : d, f = r ? void 0 : a;
|
|
6397
6426
|
return /* @__PURE__ */ w(pe, { children: [
|
|
6398
6427
|
u ? /* @__PURE__ */ i("div", { className: "w-full", onClick: f, children: /* @__PURE__ */ w(
|
|
6399
6428
|
"div",
|
|
6400
6429
|
{
|
|
6401
|
-
className:
|
|
6430
|
+
className: y(
|
|
6402
6431
|
"dial-input px-3 py-2 flex flex-row items-center w-full justify-between",
|
|
6403
6432
|
r && "dial-input-disable"
|
|
6404
6433
|
),
|
|
6405
6434
|
children: [
|
|
6406
|
-
/* @__PURE__ */ i(dn, { selectedItems:
|
|
6435
|
+
/* @__PURE__ */ i(dn, { selectedItems: g }),
|
|
6407
6436
|
!r && /* @__PURE__ */ i("div", { className: "ml-1", children: /* @__PURE__ */ i(
|
|
6408
|
-
|
|
6437
|
+
U,
|
|
6409
6438
|
{
|
|
6410
6439
|
icon: /* @__PURE__ */ i(
|
|
6411
6440
|
dr,
|
|
6412
6441
|
{
|
|
6413
6442
|
role: "img",
|
|
6414
|
-
width:
|
|
6415
|
-
height:
|
|
6443
|
+
width: Ne,
|
|
6444
|
+
height: Ne
|
|
6416
6445
|
}
|
|
6417
6446
|
)
|
|
6418
6447
|
}
|
|
@@ -6431,23 +6460,23 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6431
6460
|
children: /* @__PURE__ */ w(
|
|
6432
6461
|
"div",
|
|
6433
6462
|
{
|
|
6434
|
-
className:
|
|
6463
|
+
className: y(
|
|
6435
6464
|
"dial-input px-3 py-2 dial-input-field flex flex-row items-center w-full justify-between",
|
|
6436
6465
|
s,
|
|
6437
6466
|
r && "dial-input-disable",
|
|
6438
6467
|
c && "dial-input-error"
|
|
6439
6468
|
),
|
|
6440
6469
|
children: [
|
|
6441
|
-
/* @__PURE__ */ i(
|
|
6470
|
+
/* @__PURE__ */ i(Le, { tooltip: String(g), children: /* @__PURE__ */ i("span", { className: o, children: g }) }),
|
|
6442
6471
|
!r && /* @__PURE__ */ i("div", { className: "flex-shrink-0", children: /* @__PURE__ */ i(
|
|
6443
|
-
|
|
6472
|
+
U,
|
|
6444
6473
|
{
|
|
6445
6474
|
icon: /* @__PURE__ */ i(
|
|
6446
6475
|
dr,
|
|
6447
6476
|
{
|
|
6448
6477
|
role: "img",
|
|
6449
|
-
width:
|
|
6450
|
-
height:
|
|
6478
|
+
width: Ne,
|
|
6479
|
+
height: Ne
|
|
6451
6480
|
}
|
|
6452
6481
|
)
|
|
6453
6482
|
}
|
|
@@ -6457,7 +6486,7 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6457
6486
|
)
|
|
6458
6487
|
}
|
|
6459
6488
|
),
|
|
6460
|
-
c && /* @__PURE__ */ i(
|
|
6489
|
+
c && /* @__PURE__ */ i(xe, { errorText: c })
|
|
6461
6490
|
] }),
|
|
6462
6491
|
t && po(e, document.body)
|
|
6463
6492
|
] });
|
|
@@ -6474,22 +6503,22 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6474
6503
|
onClose: d,
|
|
6475
6504
|
title: u,
|
|
6476
6505
|
portalId: p,
|
|
6477
|
-
onApply:
|
|
6506
|
+
onApply: g,
|
|
6478
6507
|
cancelButtonTitle: f = "Cancel",
|
|
6479
|
-
applyButtonTitle:
|
|
6508
|
+
applyButtonTitle: C = "Apply",
|
|
6480
6509
|
isValid: m,
|
|
6481
6510
|
selectedRadioValue: x,
|
|
6482
6511
|
onChangeRadioField: L,
|
|
6483
|
-
id:
|
|
6484
|
-
size:
|
|
6512
|
+
id: v,
|
|
6513
|
+
size: b = Ce.Md
|
|
6485
6514
|
}) => {
|
|
6486
|
-
const [O, R] =
|
|
6515
|
+
const [O, R] = $(!1), P = A(() => {
|
|
6487
6516
|
r || R(!0);
|
|
6488
|
-
}, [r]),
|
|
6517
|
+
}, [r]), W = A(() => {
|
|
6489
6518
|
R(!1), d?.();
|
|
6490
6519
|
}, [d]), I = A(() => {
|
|
6491
|
-
|
|
6492
|
-
}, [
|
|
6520
|
+
g(), W();
|
|
6521
|
+
}, [g, W]);
|
|
6493
6522
|
return /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
|
|
6494
6523
|
/* @__PURE__ */ i(ke, { fieldTitle: e, htmlFor: t }),
|
|
6495
6524
|
/* @__PURE__ */ i(
|
|
@@ -6499,45 +6528,45 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6499
6528
|
open: O,
|
|
6500
6529
|
selectedValue: s ?? o.find((j) => j.id === n)?.name,
|
|
6501
6530
|
valueCssClasses: a,
|
|
6502
|
-
inputCssClasses:
|
|
6531
|
+
inputCssClasses: y(l, "py-2", "px-3"),
|
|
6503
6532
|
emptyValueText: c,
|
|
6504
6533
|
onOpen: P,
|
|
6505
6534
|
children: /* @__PURE__ */ i(
|
|
6506
6535
|
zt,
|
|
6507
6536
|
{
|
|
6508
6537
|
open: O,
|
|
6509
|
-
onClose:
|
|
6538
|
+
onClose: W,
|
|
6510
6539
|
title: u,
|
|
6511
6540
|
portalId: p,
|
|
6512
|
-
size:
|
|
6541
|
+
size: b,
|
|
6513
6542
|
footer: /* @__PURE__ */ w("div", { className: "flex flex-row items-center justify-end gap-2 px-6 py-4", children: [
|
|
6514
6543
|
/* @__PURE__ */ i(
|
|
6515
6544
|
Q,
|
|
6516
6545
|
{
|
|
6517
6546
|
variant: J.Secondary,
|
|
6518
6547
|
title: f,
|
|
6519
|
-
onClick:
|
|
6548
|
+
onClick: W
|
|
6520
6549
|
}
|
|
6521
6550
|
),
|
|
6522
6551
|
/* @__PURE__ */ i(
|
|
6523
6552
|
Q,
|
|
6524
6553
|
{
|
|
6525
6554
|
variant: J.Primary,
|
|
6526
|
-
title:
|
|
6555
|
+
title: C,
|
|
6527
6556
|
onClick: I,
|
|
6528
6557
|
disable: !m
|
|
6529
6558
|
}
|
|
6530
6559
|
)
|
|
6531
6560
|
] }),
|
|
6532
6561
|
children: /* @__PURE__ */ i("div", { className: "px-6 py-4", children: /* @__PURE__ */ i(
|
|
6533
|
-
|
|
6562
|
+
gs,
|
|
6534
6563
|
{
|
|
6535
6564
|
radioButtons: o,
|
|
6536
6565
|
labelCssClass: "dial-small",
|
|
6537
6566
|
activeRadioButton: x,
|
|
6538
6567
|
onChange: L,
|
|
6539
|
-
elementId:
|
|
6540
|
-
orientation:
|
|
6568
|
+
elementId: v,
|
|
6569
|
+
orientation: Xe.Column
|
|
6541
6570
|
}
|
|
6542
6571
|
) })
|
|
6543
6572
|
}
|
|
@@ -6558,9 +6587,9 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6558
6587
|
onSubmit: d,
|
|
6559
6588
|
onCancel: u,
|
|
6560
6589
|
children: p,
|
|
6561
|
-
dividers:
|
|
6590
|
+
dividers: g = !0,
|
|
6562
6591
|
size: f = Ce.Md,
|
|
6563
|
-
footer:
|
|
6592
|
+
footer: C
|
|
6564
6593
|
}) => {
|
|
6565
6594
|
const m = o ? null : /* @__PURE__ */ w("div", { className: aa, children: [
|
|
6566
6595
|
/* @__PURE__ */ i(
|
|
@@ -6588,9 +6617,9 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6588
6617
|
open: t,
|
|
6589
6618
|
title: e,
|
|
6590
6619
|
cssClass: a,
|
|
6591
|
-
dividers:
|
|
6620
|
+
dividers: g,
|
|
6592
6621
|
onClose: () => c?.(),
|
|
6593
|
-
footer:
|
|
6622
|
+
footer: C ?? m,
|
|
6594
6623
|
size: f,
|
|
6595
6624
|
children: x()
|
|
6596
6625
|
}
|
|
@@ -6614,7 +6643,7 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6614
6643
|
"aria-label": "show"
|
|
6615
6644
|
}
|
|
6616
6645
|
), da = ({ ...e }) => {
|
|
6617
|
-
const [t, r] =
|
|
6646
|
+
const [t, r] = $(!1), n = A((o) => {
|
|
6618
6647
|
r(o);
|
|
6619
6648
|
}, []);
|
|
6620
6649
|
return /* @__PURE__ */ i(
|
|
@@ -6650,7 +6679,7 @@ const ea = "flex justify-end gap-2 px-6 py-4", ta = "text-secondary dial-small-1
|
|
|
6650
6679
|
...s
|
|
6651
6680
|
}
|
|
6652
6681
|
),
|
|
6653
|
-
/* @__PURE__ */ i(
|
|
6682
|
+
/* @__PURE__ */ i(xe, { errorText: o })
|
|
6654
6683
|
] });
|
|
6655
6684
|
var Ke = /* @__PURE__ */ ((e) => (e.Small = "small", e.Base = "base", e))(Ke || {});
|
|
6656
6685
|
const ua = {
|
|
@@ -6678,22 +6707,22 @@ const ua = {
|
|
|
6678
6707
|
onChange: c,
|
|
6679
6708
|
size: d = Ke.Base
|
|
6680
6709
|
}) => {
|
|
6681
|
-
const [u, p] =
|
|
6710
|
+
const [u, p] = $(t || "");
|
|
6682
6711
|
ne(() => {
|
|
6683
6712
|
p(t || "");
|
|
6684
6713
|
}, [t]);
|
|
6685
|
-
const
|
|
6714
|
+
const g = A(
|
|
6686
6715
|
(m) => {
|
|
6687
6716
|
p(m), c?.(m);
|
|
6688
6717
|
},
|
|
6689
6718
|
[c]
|
|
6690
|
-
), f = ua[d],
|
|
6691
|
-
|
|
6692
|
-
}, [
|
|
6719
|
+
), f = ua[d], C = A(() => {
|
|
6720
|
+
g("");
|
|
6721
|
+
}, [g]);
|
|
6693
6722
|
return /* @__PURE__ */ w(
|
|
6694
6723
|
"div",
|
|
6695
6724
|
{
|
|
6696
|
-
className:
|
|
6725
|
+
className: y(
|
|
6697
6726
|
"dial-input flex flex-row items-center justify-between",
|
|
6698
6727
|
s && "dial-input-error",
|
|
6699
6728
|
n && "dial-input-disable",
|
|
@@ -6703,9 +6732,9 @@ const ua = {
|
|
|
6703
6732
|
),
|
|
6704
6733
|
children: [
|
|
6705
6734
|
/* @__PURE__ */ i(
|
|
6706
|
-
|
|
6735
|
+
U,
|
|
6707
6736
|
{
|
|
6708
|
-
className:
|
|
6737
|
+
className: y(n ? "text-secondary" : "text-primary"),
|
|
6709
6738
|
icon: /* @__PURE__ */ i(
|
|
6710
6739
|
uo,
|
|
6711
6740
|
{
|
|
@@ -6725,16 +6754,16 @@ const ua = {
|
|
|
6725
6754
|
value: u ?? "",
|
|
6726
6755
|
disabled: n,
|
|
6727
6756
|
readOnly: o,
|
|
6728
|
-
className:
|
|
6757
|
+
className: y(
|
|
6729
6758
|
"border-0 bg-transparent w-full",
|
|
6730
6759
|
a,
|
|
6731
6760
|
f.textClass
|
|
6732
6761
|
),
|
|
6733
|
-
onChange: (m) => !o &&
|
|
6762
|
+
onChange: (m) => !o && g(m.currentTarget.value)
|
|
6734
6763
|
}
|
|
6735
6764
|
),
|
|
6736
6765
|
u && !o && !n && /* @__PURE__ */ i(
|
|
6737
|
-
|
|
6766
|
+
U,
|
|
6738
6767
|
{
|
|
6739
6768
|
className: "text-primary cursor-pointer",
|
|
6740
6769
|
icon: /* @__PURE__ */ i(
|
|
@@ -6742,7 +6771,7 @@ const ua = {
|
|
|
6742
6771
|
{
|
|
6743
6772
|
size: f.iconSize,
|
|
6744
6773
|
stroke: f.iconStroke,
|
|
6745
|
-
onClick:
|
|
6774
|
+
onClick: C,
|
|
6746
6775
|
"aria-label": "Clear search",
|
|
6747
6776
|
role: "button"
|
|
6748
6777
|
}
|
|
@@ -6761,7 +6790,7 @@ const ua = {
|
|
|
6761
6790
|
containerCssClass: s,
|
|
6762
6791
|
inputCssClass: a
|
|
6763
6792
|
}) => {
|
|
6764
|
-
const [l, c] =
|
|
6793
|
+
const [l, c] = $(""), d = A(
|
|
6765
6794
|
(p) => {
|
|
6766
6795
|
p.key === "Enter" && (r([...t, p.currentTarget.value]), c("")), (p.key === "Backspace" || p.key === "Delete") && t.length && !l && r(t.slice(0, -1));
|
|
6767
6796
|
},
|
|
@@ -6775,7 +6804,7 @@ const ua = {
|
|
|
6775
6804
|
return /* @__PURE__ */ w(
|
|
6776
6805
|
"div",
|
|
6777
6806
|
{
|
|
6778
|
-
className:
|
|
6807
|
+
className: y([
|
|
6779
6808
|
"dial-input px-3 py-2 flex flex-row items-center flex-wrap w-fit gap-2",
|
|
6780
6809
|
s
|
|
6781
6810
|
]),
|
|
@@ -6793,7 +6822,7 @@ const ua = {
|
|
|
6793
6822
|
{
|
|
6794
6823
|
type: "text",
|
|
6795
6824
|
value: l,
|
|
6796
|
-
className:
|
|
6825
|
+
className: y(["border-0 bg-transparent p-0", a]),
|
|
6797
6826
|
placeholder: t?.length ? "" : e,
|
|
6798
6827
|
onKeyDown: d,
|
|
6799
6828
|
onChange: u
|
|
@@ -6813,27 +6842,27 @@ const ua = {
|
|
|
6813
6842
|
disabled: l,
|
|
6814
6843
|
onChange: c
|
|
6815
6844
|
}) => {
|
|
6816
|
-
const d = le(null), [u, p] =
|
|
6817
|
-
const O =
|
|
6845
|
+
const d = le(null), [u, p] = $(e), [g, f] = $(""), [C, m] = $(!1), x = (b) => {
|
|
6846
|
+
const O = b.trim().replace(/,$/, "");
|
|
6818
6847
|
if (O && !u.includes(O)) {
|
|
6819
6848
|
const R = [O, ...u];
|
|
6820
6849
|
p(R), c?.(R);
|
|
6821
6850
|
}
|
|
6822
|
-
}, L = (
|
|
6823
|
-
(
|
|
6824
|
-
},
|
|
6825
|
-
const O = u.filter((R, P) => P !==
|
|
6851
|
+
}, L = (b) => {
|
|
6852
|
+
(b.key === "," || b.key === "Enter") && (b.preventDefault(), x(g), f(""));
|
|
6853
|
+
}, v = (b) => {
|
|
6854
|
+
const O = u.filter((R, P) => P !== b);
|
|
6826
6855
|
p(O), c?.(O);
|
|
6827
6856
|
};
|
|
6828
6857
|
return ne(() => {
|
|
6829
|
-
const
|
|
6858
|
+
const b = new ResizeObserver(() => {
|
|
6830
6859
|
if (d.current) {
|
|
6831
6860
|
const O = d.current.scrollHeight > d.current.clientHeight + 10;
|
|
6832
6861
|
m(O);
|
|
6833
6862
|
}
|
|
6834
6863
|
});
|
|
6835
|
-
return d.current &&
|
|
6836
|
-
}, [u]), /* @__PURE__ */ w("div", { className:
|
|
6864
|
+
return d.current && b.observe(d.current), () => b.disconnect();
|
|
6865
|
+
}, [u]), /* @__PURE__ */ w("div", { className: y("flex flex-col w-full"), children: [
|
|
6837
6866
|
/* @__PURE__ */ i(
|
|
6838
6867
|
ke,
|
|
6839
6868
|
{
|
|
@@ -6845,7 +6874,7 @@ const ua = {
|
|
|
6845
6874
|
/* @__PURE__ */ i(
|
|
6846
6875
|
"div",
|
|
6847
6876
|
{
|
|
6848
|
-
className:
|
|
6877
|
+
className: y(
|
|
6849
6878
|
"dial-input min-h-[38px] p-[6px]",
|
|
6850
6879
|
a && "dial-input-error",
|
|
6851
6880
|
l && "dial-input-disable"
|
|
@@ -6854,27 +6883,27 @@ const ua = {
|
|
|
6854
6883
|
"div",
|
|
6855
6884
|
{
|
|
6856
6885
|
ref: d,
|
|
6857
|
-
className:
|
|
6886
|
+
className: y(
|
|
6858
6887
|
"flex flex-wrap gap-2 items-center",
|
|
6859
|
-
|
|
6888
|
+
C ? "flex-col-reverse" : "flex-row"
|
|
6860
6889
|
),
|
|
6861
6890
|
children: [
|
|
6862
|
-
u.map((
|
|
6891
|
+
u.map((b, O) => /* @__PURE__ */ i(
|
|
6863
6892
|
Pt,
|
|
6864
6893
|
{
|
|
6865
|
-
tag:
|
|
6866
|
-
remove: l ? void 0 : () =>
|
|
6894
|
+
tag: b,
|
|
6895
|
+
remove: l ? void 0 : () => v(O)
|
|
6867
6896
|
},
|
|
6868
|
-
|
|
6897
|
+
b + O
|
|
6869
6898
|
)),
|
|
6870
6899
|
/* @__PURE__ */ i(
|
|
6871
6900
|
"input",
|
|
6872
6901
|
{
|
|
6873
6902
|
type: "text",
|
|
6874
|
-
value:
|
|
6875
|
-
onChange: (
|
|
6903
|
+
value: g,
|
|
6904
|
+
onChange: (b) => f(b.target.value),
|
|
6876
6905
|
onKeyDown: L,
|
|
6877
|
-
className:
|
|
6906
|
+
className: y(
|
|
6878
6907
|
"dial-input-no-border outline-none border-none w-full min-w-[100px] flex-1 p-1"
|
|
6879
6908
|
),
|
|
6880
6909
|
placeholder: o,
|
|
@@ -6886,7 +6915,7 @@ const ua = {
|
|
|
6886
6915
|
)
|
|
6887
6916
|
}
|
|
6888
6917
|
),
|
|
6889
|
-
/* @__PURE__ */ i(
|
|
6918
|
+
/* @__PURE__ */ i(xe, { errorText: s })
|
|
6890
6919
|
] });
|
|
6891
6920
|
}, pa = "dial-input flex px-3 py-2 w-full items-center justify-between gap-2 dial-small min-h-[38px]", ga = "w-full rounded", dt = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none", ha = "bg-accent-primary-alpha", ma = "bg-accent-primary-alpha border-l border-accent-primary border-1", ur = "opacity-75", Ca = /* @__PURE__ */ i(Er, { size: 16 }), un = ({
|
|
6892
6921
|
options: e,
|
|
@@ -6899,7 +6928,7 @@ const ua = {
|
|
|
6899
6928
|
{
|
|
6900
6929
|
tag: o,
|
|
6901
6930
|
remove: (a) => r?.(a, n),
|
|
6902
|
-
iconBefore: s ? /* @__PURE__ */ i(
|
|
6931
|
+
iconBefore: s ? /* @__PURE__ */ i(U, { icon: s }) : null,
|
|
6903
6932
|
cssClass: "max-w-full"
|
|
6904
6933
|
},
|
|
6905
6934
|
n
|
|
@@ -6917,33 +6946,33 @@ const ua = {
|
|
|
6917
6946
|
emptyStateTitle: d = "No options available",
|
|
6918
6947
|
emptyStateDescription: u,
|
|
6919
6948
|
emptyStateIcon: p,
|
|
6920
|
-
disabled:
|
|
6949
|
+
disabled: g = !1,
|
|
6921
6950
|
cssClass: f,
|
|
6922
|
-
closable:
|
|
6951
|
+
closable: C = !1,
|
|
6923
6952
|
onClose: m,
|
|
6924
6953
|
onChange: x
|
|
6925
6954
|
}) => {
|
|
6926
|
-
const [L,
|
|
6927
|
-
const
|
|
6928
|
-
return
|
|
6929
|
-
}, [e,
|
|
6955
|
+
const [L, v] = $(!1), [b, O] = $(""), R = Lr(), P = r !== void 0, [W, I] = $(n), j = P ? r : W, _ = B(() => t ? Array.isArray(j) ? j : [] : typeof j == "string" ? [j] : [], [j, t]), M = B(() => {
|
|
6956
|
+
const h = b.trim().toLowerCase();
|
|
6957
|
+
return h ? e.filter((H) => H.label.toLowerCase().includes(h)) : e;
|
|
6958
|
+
}, [e, b]);
|
|
6930
6959
|
ne(() => {
|
|
6931
6960
|
L || O("");
|
|
6932
6961
|
}, [L]);
|
|
6933
6962
|
const V = A(
|
|
6934
|
-
(
|
|
6935
|
-
P || I(
|
|
6963
|
+
(h) => {
|
|
6964
|
+
P || I(h), x?.(h);
|
|
6936
6965
|
},
|
|
6937
6966
|
[P, x]
|
|
6938
|
-
), ee = (
|
|
6967
|
+
), ee = (h) => {
|
|
6939
6968
|
if (t) {
|
|
6940
6969
|
const H = new Set(_);
|
|
6941
|
-
H.has(
|
|
6970
|
+
H.has(h) ? H.delete(h) : H.add(h), V(Array.from(H));
|
|
6942
6971
|
} else
|
|
6943
|
-
V(
|
|
6972
|
+
V(h), v(!1);
|
|
6944
6973
|
}, de = A(
|
|
6945
|
-
(
|
|
6946
|
-
if (
|
|
6974
|
+
(h, H) => {
|
|
6975
|
+
if (h.stopPropagation(), !t) {
|
|
6947
6976
|
V("");
|
|
6948
6977
|
return;
|
|
6949
6978
|
}
|
|
@@ -6952,41 +6981,41 @@ const ua = {
|
|
|
6952
6981
|
},
|
|
6953
6982
|
[t, _, V]
|
|
6954
6983
|
), Y = B(
|
|
6955
|
-
() => M.filter((
|
|
6984
|
+
() => M.filter((h) => !h.disabled),
|
|
6956
6985
|
[M]
|
|
6957
6986
|
), te = B(
|
|
6958
|
-
() => Y.filter((
|
|
6987
|
+
() => Y.filter((h) => _.includes(h.value)).length,
|
|
6959
6988
|
[Y, _]
|
|
6960
6989
|
), re = Y.length > 0 && te === Y.length, T = te > 0 && !re, ue = () => {
|
|
6961
6990
|
if (!(!t || Y.length === 0))
|
|
6962
6991
|
if (re) {
|
|
6963
|
-
const
|
|
6992
|
+
const h = new Set(Y.map((F) => F.value)), H = _.filter((F) => !h.has(F));
|
|
6964
6993
|
V(H);
|
|
6965
6994
|
} else {
|
|
6966
|
-
const
|
|
6967
|
-
Y.forEach((H) =>
|
|
6995
|
+
const h = new Set(_);
|
|
6996
|
+
Y.forEach((H) => h.add(H.value)), V(Array.from(h));
|
|
6968
6997
|
}
|
|
6969
6998
|
}, ge = _.length > 0, he = !t && ge ? _[0] : void 0, oe = B(
|
|
6970
|
-
() => he ? e.find((
|
|
6999
|
+
() => he ? e.find((h) => h.value === he) : void 0,
|
|
6971
7000
|
[e, he]
|
|
6972
|
-
),
|
|
7001
|
+
), q = A(() => !t || _.length === 0 ? null : /* @__PURE__ */ i(
|
|
6973
7002
|
un,
|
|
6974
7003
|
{
|
|
6975
7004
|
options: e,
|
|
6976
7005
|
selectedValues: _,
|
|
6977
7006
|
handleRemoveTag: de
|
|
6978
7007
|
}
|
|
6979
|
-
), [t, e, _, de]), K = A(() => t ? ge ?
|
|
6980
|
-
oe.icon && /* @__PURE__ */ i(
|
|
6981
|
-
/* @__PURE__ */ i(
|
|
6982
|
-
] }) : /* @__PURE__ */ i("span", { className: "text-secondary truncate", children: o }), [ge, t, o,
|
|
7008
|
+
), [t, e, _, de]), K = A(() => t ? ge ? q() : /* @__PURE__ */ i("span", { className: "text-secondary truncate", children: o }) : oe ? /* @__PURE__ */ w(pe, { children: [
|
|
7009
|
+
oe.icon && /* @__PURE__ */ i(U, { icon: oe.icon }),
|
|
7010
|
+
/* @__PURE__ */ i(De, { text: oe.label })
|
|
7011
|
+
] }) : /* @__PURE__ */ i("span", { className: "text-secondary truncate", children: o }), [ge, t, o, q, oe]);
|
|
6983
7012
|
return /* @__PURE__ */ i(
|
|
6984
7013
|
wt,
|
|
6985
7014
|
{
|
|
6986
7015
|
open: L,
|
|
6987
|
-
onOpenChange:
|
|
6988
|
-
disabled:
|
|
6989
|
-
closable:
|
|
7016
|
+
onOpenChange: v,
|
|
7017
|
+
disabled: g,
|
|
7018
|
+
closable: C,
|
|
6990
7019
|
onClose: m,
|
|
6991
7020
|
placement: "bottom-start",
|
|
6992
7021
|
allowedPlacements: ["bottom-start", "top-start"],
|
|
@@ -6998,30 +7027,30 @@ const ua = {
|
|
|
6998
7027
|
"aria-multiselectable": t || void 0,
|
|
6999
7028
|
className: ga,
|
|
7000
7029
|
children: [
|
|
7001
|
-
(s ||
|
|
7030
|
+
(s || C) && /* @__PURE__ */ w("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
|
|
7002
7031
|
s && /* @__PURE__ */ i(
|
|
7003
7032
|
fa,
|
|
7004
7033
|
{
|
|
7005
7034
|
placeholder: a,
|
|
7006
7035
|
onChange: O,
|
|
7007
|
-
value:
|
|
7036
|
+
value: b,
|
|
7008
7037
|
elementId: `search-${R}`
|
|
7009
7038
|
}
|
|
7010
7039
|
),
|
|
7011
|
-
|
|
7040
|
+
C && /* @__PURE__ */ i(
|
|
7012
7041
|
Q,
|
|
7013
7042
|
{
|
|
7014
7043
|
ariaLabel: "Close select",
|
|
7015
7044
|
cssClass: "shrink-0",
|
|
7016
7045
|
iconBefore: /* @__PURE__ */ i(_e, { size: 16 }),
|
|
7017
|
-
onClick: (
|
|
7018
|
-
m?.(
|
|
7046
|
+
onClick: (h) => {
|
|
7047
|
+
m?.(h), v(!1);
|
|
7019
7048
|
}
|
|
7020
7049
|
}
|
|
7021
7050
|
)
|
|
7022
7051
|
] }),
|
|
7023
|
-
t && l && Y.length > 0 && /* @__PURE__ */ i("div", { className:
|
|
7024
|
-
|
|
7052
|
+
t && l && Y.length > 0 && /* @__PURE__ */ i("div", { className: y(dt, "mt-2"), children: /* @__PURE__ */ i(
|
|
7053
|
+
Ut,
|
|
7025
7054
|
{
|
|
7026
7055
|
id: `${R}-selectAll`,
|
|
7027
7056
|
label: c,
|
|
@@ -7032,59 +7061,59 @@ const ua = {
|
|
|
7032
7061
|
}
|
|
7033
7062
|
) }),
|
|
7034
7063
|
/* @__PURE__ */ i("div", { className: "overflow-y-auto py-1", children: M.length === 0 ? /* @__PURE__ */ i("div", { className: "px-2 py-3", children: /* @__PURE__ */ i(
|
|
7035
|
-
|
|
7064
|
+
hs,
|
|
7036
7065
|
{
|
|
7037
7066
|
icon: p ?? /* @__PURE__ */ i(Or, { size: 24 }),
|
|
7038
7067
|
title: d,
|
|
7039
7068
|
description: u
|
|
7040
7069
|
}
|
|
7041
|
-
) }) : M.map((
|
|
7042
|
-
const H = _.includes(
|
|
7070
|
+
) }) : M.map((h) => {
|
|
7071
|
+
const H = _.includes(h.value);
|
|
7043
7072
|
return t ? /* @__PURE__ */ i(
|
|
7044
7073
|
"div",
|
|
7045
7074
|
{
|
|
7046
|
-
className:
|
|
7075
|
+
className: y(
|
|
7047
7076
|
dt,
|
|
7048
7077
|
H && ha,
|
|
7049
|
-
|
|
7078
|
+
h.disabled && ur,
|
|
7050
7079
|
"w-full"
|
|
7051
7080
|
),
|
|
7052
7081
|
children: /* @__PURE__ */ i(
|
|
7053
|
-
|
|
7082
|
+
Ut,
|
|
7054
7083
|
{
|
|
7055
|
-
id: `${R}-${
|
|
7084
|
+
id: `${R}-${h.value}`,
|
|
7056
7085
|
label: /* @__PURE__ */ w("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
|
|
7057
|
-
|
|
7058
|
-
/* @__PURE__ */ i("span", { className: "truncate", children:
|
|
7086
|
+
h.icon && /* @__PURE__ */ i(U, { icon: h.icon }),
|
|
7087
|
+
/* @__PURE__ */ i("span", { className: "truncate", children: h.label })
|
|
7059
7088
|
] }),
|
|
7060
7089
|
checked: H,
|
|
7061
|
-
disabled:
|
|
7062
|
-
onChange: () => !
|
|
7063
|
-
ariaLabel:
|
|
7090
|
+
disabled: h.disabled,
|
|
7091
|
+
onChange: () => !h.disabled && ee(h.value),
|
|
7092
|
+
ariaLabel: h.label
|
|
7064
7093
|
}
|
|
7065
7094
|
)
|
|
7066
7095
|
},
|
|
7067
|
-
|
|
7096
|
+
h.value
|
|
7068
7097
|
) : /* @__PURE__ */ i(
|
|
7069
7098
|
"button",
|
|
7070
7099
|
{
|
|
7071
7100
|
role: "option",
|
|
7072
7101
|
type: "button",
|
|
7073
7102
|
"aria-selected": H,
|
|
7074
|
-
"aria-disabled": !!
|
|
7075
|
-
disabled:
|
|
7076
|
-
className:
|
|
7103
|
+
"aria-disabled": !!h.disabled,
|
|
7104
|
+
disabled: h.disabled,
|
|
7105
|
+
className: y(
|
|
7077
7106
|
dt,
|
|
7078
7107
|
H && ma,
|
|
7079
|
-
|
|
7108
|
+
h.disabled && ur
|
|
7080
7109
|
),
|
|
7081
|
-
onClick: () => !
|
|
7110
|
+
onClick: () => !h.disabled && ee(h.value),
|
|
7082
7111
|
children: /* @__PURE__ */ w("div", { className: "flex items-center gap-2 w-full", children: [
|
|
7083
|
-
|
|
7084
|
-
/* @__PURE__ */ i(
|
|
7112
|
+
h.icon && /* @__PURE__ */ i(U, { icon: h.icon }),
|
|
7113
|
+
/* @__PURE__ */ i(De, { text: h.label })
|
|
7085
7114
|
] })
|
|
7086
7115
|
},
|
|
7087
|
-
|
|
7116
|
+
h.value
|
|
7088
7117
|
);
|
|
7089
7118
|
}) })
|
|
7090
7119
|
]
|
|
@@ -7097,19 +7126,19 @@ const ua = {
|
|
|
7097
7126
|
"aria-haspopup": "listbox",
|
|
7098
7127
|
"aria-expanded": L,
|
|
7099
7128
|
"aria-controls": R,
|
|
7100
|
-
className:
|
|
7129
|
+
className: G(
|
|
7101
7130
|
pa,
|
|
7102
|
-
|
|
7131
|
+
g && "opacity-75 !cursor-not-allowed",
|
|
7103
7132
|
f
|
|
7104
7133
|
),
|
|
7105
|
-
onClick: () => !
|
|
7134
|
+
onClick: () => !g && v((h) => !h),
|
|
7106
7135
|
children: [
|
|
7107
7136
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: K() }),
|
|
7108
7137
|
/* @__PURE__ */ i(
|
|
7109
|
-
|
|
7138
|
+
U,
|
|
7110
7139
|
{
|
|
7111
7140
|
icon: Ca,
|
|
7112
|
-
className:
|
|
7141
|
+
className: y("text-primary", L && "rotate-180")
|
|
7113
7142
|
}
|
|
7114
7143
|
)
|
|
7115
7144
|
]
|
|
@@ -7131,7 +7160,7 @@ const ua = {
|
|
|
7131
7160
|
defaultEmptyText: u,
|
|
7132
7161
|
...p
|
|
7133
7162
|
}) => {
|
|
7134
|
-
const
|
|
7163
|
+
const g = A(() => {
|
|
7135
7164
|
if (!d || Array.isArray(d) && d.length === 0)
|
|
7136
7165
|
return u ?? "None";
|
|
7137
7166
|
if (Array.isArray(d))
|
|
@@ -7144,7 +7173,7 @@ const ua = {
|
|
|
7144
7173
|
);
|
|
7145
7174
|
{
|
|
7146
7175
|
const f = p.options?.find(
|
|
7147
|
-
(
|
|
7176
|
+
(C) => C.value === d
|
|
7148
7177
|
);
|
|
7149
7178
|
return /* @__PURE__ */ i("span", { "aria-readonly": !0, className: "text-primary", children: f?.label || d });
|
|
7150
7179
|
}
|
|
@@ -7160,7 +7189,7 @@ const ua = {
|
|
|
7160
7189
|
captionDescription: r,
|
|
7161
7190
|
cssClass: n,
|
|
7162
7191
|
readonly: c,
|
|
7163
|
-
value:
|
|
7192
|
+
value: g(),
|
|
7164
7193
|
defaultEmptyText: u,
|
|
7165
7194
|
children: /* @__PURE__ */ i(
|
|
7166
7195
|
va,
|
|
@@ -7346,15 +7375,15 @@ class pr {
|
|
|
7346
7375
|
return n[u];
|
|
7347
7376
|
}
|
|
7348
7377
|
l = Math.max(0, d);
|
|
7349
|
-
const p = t - r[l],
|
|
7350
|
-
return n[l] + o[l] * p + s[l] *
|
|
7378
|
+
const p = t - r[l], g = p * p;
|
|
7379
|
+
return n[l] + o[l] * p + s[l] * g + a[l] * p * g;
|
|
7351
7380
|
}
|
|
7352
7381
|
constructor(t, r) {
|
|
7353
7382
|
const { length: n } = t, o = [];
|
|
7354
7383
|
for (let f = 0; f < n; f++)
|
|
7355
7384
|
o.push(f);
|
|
7356
7385
|
o.sort(
|
|
7357
|
-
(f,
|
|
7386
|
+
(f, C) => t[f] < t[C] ? -1 : 1
|
|
7358
7387
|
);
|
|
7359
7388
|
const s = [], a = [];
|
|
7360
7389
|
let l, c;
|
|
@@ -7364,22 +7393,22 @@ class pr {
|
|
|
7364
7393
|
a[0]
|
|
7365
7394
|
];
|
|
7366
7395
|
for (let f = 0; f < s.length - 1; f++) {
|
|
7367
|
-
const
|
|
7368
|
-
if (
|
|
7396
|
+
const C = a[f], m = a[f + 1];
|
|
7397
|
+
if (C * m <= 0)
|
|
7369
7398
|
d.push(0);
|
|
7370
7399
|
else {
|
|
7371
7400
|
l = s[f];
|
|
7372
7401
|
const x = s[f + 1], L = l + x;
|
|
7373
|
-
d.push(3 * L / ((L + x) /
|
|
7402
|
+
d.push(3 * L / ((L + x) / C + (L + l) / m));
|
|
7374
7403
|
}
|
|
7375
7404
|
}
|
|
7376
7405
|
d.push(a[a.length - 1]);
|
|
7377
7406
|
const u = [], p = [];
|
|
7378
|
-
let
|
|
7407
|
+
let g;
|
|
7379
7408
|
for (let f = 0; f < d.length - 1; f++) {
|
|
7380
|
-
|
|
7381
|
-
const
|
|
7382
|
-
u.push((
|
|
7409
|
+
g = a[f];
|
|
7410
|
+
const C = d[f], m = 1 / s[f], x = C + d[f + 1] - g - g;
|
|
7411
|
+
u.push((g - C - x) * m), p.push(x * m * m);
|
|
7383
7412
|
}
|
|
7384
7413
|
this.xs = t, this.ys = r, this.c1s = d, this.c2s = u, this.c3s = p;
|
|
7385
7414
|
}
|
|
@@ -7416,7 +7445,7 @@ function Oa(e, t, r, n, o) {
|
|
|
7416
7445
|
const s = Ia(t), l = Cn(s ? e : t), c = {
|
|
7417
7446
|
x: r.x - l.x,
|
|
7418
7447
|
y: r.y - l.y
|
|
7419
|
-
}, { offsetWidth: d, offsetHeight: u } = e, { anchorX: p, anchorY:
|
|
7448
|
+
}, { offsetWidth: d, offsetHeight: u } = e, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: f, dragPreviewHeight: C } = Ta(s, t, d, u), m = () => {
|
|
7420
7449
|
let P = new pr([
|
|
7421
7450
|
0,
|
|
7422
7451
|
0.5,
|
|
@@ -7425,11 +7454,11 @@ function Oa(e, t, r, n, o) {
|
|
|
7425
7454
|
// Dock to the top
|
|
7426
7455
|
c.y,
|
|
7427
7456
|
// Align at the center
|
|
7428
|
-
c.y / u *
|
|
7457
|
+
c.y / u * C,
|
|
7429
7458
|
// Dock to the bottom
|
|
7430
|
-
c.y +
|
|
7431
|
-
]).interpolate(
|
|
7432
|
-
return mn() && s && (P += (window.devicePixelRatio - 1) *
|
|
7459
|
+
c.y + C - u
|
|
7460
|
+
]).interpolate(g);
|
|
7461
|
+
return mn() && s && (P += (window.devicePixelRatio - 1) * C), P;
|
|
7433
7462
|
}, x = () => new pr([
|
|
7434
7463
|
0,
|
|
7435
7464
|
0.5,
|
|
@@ -7441,10 +7470,10 @@ function Oa(e, t, r, n, o) {
|
|
|
7441
7470
|
c.x / d * f,
|
|
7442
7471
|
// Dock to the right
|
|
7443
7472
|
c.x + f - d
|
|
7444
|
-
]).interpolate(p), { offsetX: L, offsetY:
|
|
7473
|
+
]).interpolate(p), { offsetX: L, offsetY: v } = o, b = L === 0 || L, O = v === 0 || v;
|
|
7445
7474
|
return {
|
|
7446
|
-
x:
|
|
7447
|
-
y: O ?
|
|
7475
|
+
x: b ? L : x(),
|
|
7476
|
+
y: O ? v : m()
|
|
7448
7477
|
};
|
|
7449
7478
|
}
|
|
7450
7479
|
class Ea {
|
|
@@ -7645,16 +7674,16 @@ class ka {
|
|
|
7645
7674
|
const { dataTransfer: l } = o, c = ft(l);
|
|
7646
7675
|
if (this.monitor.isDragging()) {
|
|
7647
7676
|
if (l && typeof l.setDragImage == "function") {
|
|
7648
|
-
const u = this.monitor.getSourceId(), p = this.sourceNodes.get(u),
|
|
7649
|
-
if (
|
|
7650
|
-
const { anchorX: f, anchorY:
|
|
7677
|
+
const u = this.monitor.getSourceId(), p = this.sourceNodes.get(u), g = this.sourcePreviewNodes.get(u) || p;
|
|
7678
|
+
if (g) {
|
|
7679
|
+
const { anchorX: f, anchorY: C, offsetX: m, offsetY: x } = this.getCurrentSourcePreviewNodeOptions(), b = Oa(p, g, a, {
|
|
7651
7680
|
anchorX: f,
|
|
7652
|
-
anchorY:
|
|
7681
|
+
anchorY: C
|
|
7653
7682
|
}, {
|
|
7654
7683
|
offsetX: m,
|
|
7655
7684
|
offsetY: x
|
|
7656
7685
|
});
|
|
7657
|
-
l.setDragImage(
|
|
7686
|
+
l.setDragImage(g, b.x, b.y);
|
|
7658
7687
|
}
|
|
7659
7688
|
}
|
|
7660
7689
|
try {
|
|
@@ -7746,7 +7775,7 @@ const Ra = function(t, r, n) {
|
|
|
7746
7775
|
fileCountError: c,
|
|
7747
7776
|
getIsFileFormatError: d
|
|
7748
7777
|
}) => {
|
|
7749
|
-
const u = le(null), p = le(null), [
|
|
7778
|
+
const u = le(null), p = le(null), [g, f] = $([]), [C, m] = $(!1), x = A(
|
|
7750
7779
|
(M) => {
|
|
7751
7780
|
const V = M.target.files;
|
|
7752
7781
|
if (V && V.length > 0) {
|
|
@@ -7758,18 +7787,18 @@ const Ra = function(t, r, n) {
|
|
|
7758
7787
|
), L = A(
|
|
7759
7788
|
(M) => s && M?.length > s,
|
|
7760
7789
|
[s]
|
|
7761
|
-
),
|
|
7790
|
+
), v = B(() => C || L(g), [C, g, L]), b = () => {
|
|
7762
7791
|
f([]), m(!1);
|
|
7763
7792
|
};
|
|
7764
7793
|
ne(() => {
|
|
7765
|
-
|
|
7794
|
+
b();
|
|
7766
7795
|
}, [o]);
|
|
7767
7796
|
const [{ isOver: O, canDrop: R }, P] = on(
|
|
7768
7797
|
() => ({
|
|
7769
7798
|
accept: [jt],
|
|
7770
7799
|
drop(M) {
|
|
7771
7800
|
const V = M.files;
|
|
7772
|
-
!d?.(V) && !L(V) && e(V),
|
|
7801
|
+
!d?.(V) && !L(V) && e(V), b();
|
|
7773
7802
|
},
|
|
7774
7803
|
collect: (M) => ({
|
|
7775
7804
|
isOver: M.isOver(),
|
|
@@ -7777,19 +7806,19 @@ const Ra = function(t, r, n) {
|
|
|
7777
7806
|
})
|
|
7778
7807
|
}),
|
|
7779
7808
|
[x]
|
|
7780
|
-
),
|
|
7809
|
+
), W = (M) => {
|
|
7781
7810
|
(M.key === "Enter" || M.key === "Space") && (M.preventDefault(), p.current?.click());
|
|
7782
7811
|
}, I = (M) => {
|
|
7783
7812
|
M?.preventDefault();
|
|
7784
7813
|
const V = Array.from(M.dataTransfer?.items ?? []);
|
|
7785
7814
|
m(!!d?.(V)), f(V);
|
|
7786
7815
|
}, j = (M) => {
|
|
7787
|
-
M.target === M.currentTarget &&
|
|
7788
|
-
}, _ =
|
|
7816
|
+
M.target === M.currentTarget && b();
|
|
7817
|
+
}, _ = y(
|
|
7789
7818
|
"border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
|
|
7790
|
-
!R && !
|
|
7819
|
+
!R && !v && "border-primary",
|
|
7791
7820
|
R && (O ? "border-accent-primary" : "border-hover"),
|
|
7792
|
-
|
|
7821
|
+
v && "border-error"
|
|
7793
7822
|
);
|
|
7794
7823
|
return P(u), /* @__PURE__ */ w(pe, { children: [
|
|
7795
7824
|
/* @__PURE__ */ w(
|
|
@@ -7805,7 +7834,7 @@ const Ra = function(t, r, n) {
|
|
|
7805
7834
|
{
|
|
7806
7835
|
htmlFor: "file",
|
|
7807
7836
|
tabIndex: 0,
|
|
7808
|
-
onKeyDown:
|
|
7837
|
+
onKeyDown: W,
|
|
7809
7838
|
className: "flex flex-col items-center cursor-pointer h-full w-full text-secondary dial-tiny justify-center",
|
|
7810
7839
|
children: [
|
|
7811
7840
|
t && /* @__PURE__ */ i("p", { className: "mb-1", children: t }),
|
|
@@ -7836,7 +7865,7 @@ const Ra = function(t, r, n) {
|
|
|
7836
7865
|
]
|
|
7837
7866
|
}
|
|
7838
7867
|
),
|
|
7839
|
-
/* @__PURE__ */ i(pe, { children:
|
|
7868
|
+
/* @__PURE__ */ i(pe, { children: C ? /* @__PURE__ */ i(xe, { errorText: l }) : L(g) && /* @__PURE__ */ i(xe, { errorText: c }) })
|
|
7840
7869
|
] });
|
|
7841
7870
|
}, Ma = ({
|
|
7842
7871
|
iconBefore: e,
|
|
@@ -7851,7 +7880,7 @@ const Ra = function(t, r, n) {
|
|
|
7851
7880
|
...n,
|
|
7852
7881
|
iconBefore: /* @__PURE__ */ i("div", { className: "mr-2", children: o ? /* @__PURE__ */ i(Et, { ...X, className: "text-error" }) : e }),
|
|
7853
7882
|
tooltipTriggerClassName: "flex-1 min-w-0",
|
|
7854
|
-
cssClass:
|
|
7883
|
+
cssClass: y(o ? "text-error" : "", t),
|
|
7855
7884
|
tooltipText: o && r ? r : void 0,
|
|
7856
7885
|
hideBorder: !0
|
|
7857
7886
|
}
|
|
@@ -7865,18 +7894,18 @@ const Ra = function(t, r, n) {
|
|
|
7865
7894
|
isInvalid: s,
|
|
7866
7895
|
errorText: a,
|
|
7867
7896
|
removeButtonAriaLabel: l
|
|
7868
|
-
} = e, c = (p,
|
|
7869
|
-
p.stopPropagation(), o(t?.filter((f) => f.name !==
|
|
7897
|
+
} = e, c = (p, g) => {
|
|
7898
|
+
p.stopPropagation(), o(t?.filter((f) => f.name !== g) || []);
|
|
7870
7899
|
}, d = (p) => /* @__PURE__ */ i(
|
|
7871
7900
|
$1,
|
|
7872
7901
|
{
|
|
7873
7902
|
ariaLabel: l,
|
|
7874
|
-
onClick: (
|
|
7903
|
+
onClick: (g) => c(g, p)
|
|
7875
7904
|
}
|
|
7876
7905
|
), u = (p) => {
|
|
7877
7906
|
o(p);
|
|
7878
7907
|
};
|
|
7879
|
-
return !t || t.length === 0 ? /* @__PURE__ */ i(Fi, { backend: Ra, children: /* @__PURE__ */ i(Pa, { ...e, onChange: u }) }) : /* @__PURE__ */ i("div", { className: "flex-1 min-h-0 border border-solid border-primary rounded", children: t && t.length > 0 && /* @__PURE__ */ i("div", { className: "max-h-full overflow-y-auto", children: t.map((p,
|
|
7908
|
+
return !t || t.length === 0 ? /* @__PURE__ */ i(Fi, { backend: Ra, children: /* @__PURE__ */ i(Pa, { ...e, onChange: u }) }) : /* @__PURE__ */ i("div", { className: "flex-1 min-h-0 border border-solid border-primary rounded", children: t && t.length > 0 && /* @__PURE__ */ i("div", { className: "max-h-full overflow-y-auto", children: t.map((p, g) => /* @__PURE__ */ i(
|
|
7880
7909
|
Ma,
|
|
7881
7910
|
{
|
|
7882
7911
|
elementId: p.name,
|
|
@@ -7886,7 +7915,7 @@ const Ra = function(t, r, n) {
|
|
|
7886
7915
|
invalid: s?.(p),
|
|
7887
7916
|
errorText: a
|
|
7888
7917
|
},
|
|
7889
|
-
p.name +
|
|
7918
|
+
p.name + g
|
|
7890
7919
|
)) }) });
|
|
7891
7920
|
}, al = ({
|
|
7892
7921
|
onChange: e,
|
|
@@ -7902,19 +7931,19 @@ const Ra = function(t, r, n) {
|
|
|
7902
7931
|
addButtonLabel: u,
|
|
7903
7932
|
...p
|
|
7904
7933
|
}) => {
|
|
7905
|
-
const
|
|
7934
|
+
const g = le(null), f = () => g.current?.click(), C = () => {
|
|
7906
7935
|
e([]);
|
|
7907
7936
|
}, m = A(
|
|
7908
7937
|
(L) => L?.some(
|
|
7909
|
-
(
|
|
7938
|
+
(v) => v.type === "" || !(c === "/" || c?.toLowerCase()?.includes(v?.type?.toLowerCase()))
|
|
7910
7939
|
),
|
|
7911
7940
|
[c]
|
|
7912
7941
|
), x = A(
|
|
7913
7942
|
(L) => {
|
|
7914
|
-
const
|
|
7915
|
-
if (
|
|
7916
|
-
const
|
|
7917
|
-
m(
|
|
7943
|
+
const v = L.target.files;
|
|
7944
|
+
if (v && v.length > 0) {
|
|
7945
|
+
const b = Array.from(v);
|
|
7946
|
+
m(b) || e([...n || [], ...b]);
|
|
7918
7947
|
}
|
|
7919
7948
|
},
|
|
7920
7949
|
[e, n, m]
|
|
@@ -7936,7 +7965,7 @@ const Ra = function(t, r, n) {
|
|
|
7936
7965
|
cssClass: "!text-error",
|
|
7937
7966
|
iconBefore: /* @__PURE__ */ i(Nr, { ...X }),
|
|
7938
7967
|
title: d,
|
|
7939
|
-
onClick:
|
|
7968
|
+
onClick: C
|
|
7940
7969
|
}
|
|
7941
7970
|
),
|
|
7942
7971
|
(o ? o > n?.length : !0) && /* @__PURE__ */ i(
|
|
@@ -7956,7 +7985,7 @@ const Ra = function(t, r, n) {
|
|
|
7956
7985
|
id: "file",
|
|
7957
7986
|
type: "file",
|
|
7958
7987
|
multiple: l,
|
|
7959
|
-
ref:
|
|
7988
|
+
ref: g,
|
|
7960
7989
|
hidden: !0,
|
|
7961
7990
|
accept: c,
|
|
7962
7991
|
onChange: x
|
|
@@ -7979,7 +8008,7 @@ const Ra = function(t, r, n) {
|
|
|
7979
8008
|
] });
|
|
7980
8009
|
};
|
|
7981
8010
|
export {
|
|
7982
|
-
|
|
8011
|
+
Ee as AlertVariant,
|
|
7983
8012
|
J as ButtonVariant,
|
|
7984
8013
|
Ye as ConfirmationPopupVariant,
|
|
7985
8014
|
Ba as DialAlert,
|
|
@@ -7988,32 +8017,32 @@ export {
|
|
|
7988
8017
|
Xa as DialBreadcrumb,
|
|
7989
8018
|
G1 as DialBreadcrumbItem,
|
|
7990
8019
|
Q as DialButton,
|
|
7991
|
-
|
|
8020
|
+
Ut as DialCheckbox,
|
|
7992
8021
|
an as DialCloseButton,
|
|
7993
8022
|
$a as DialCollapsibleSidebar,
|
|
7994
8023
|
el as DialConfirmationPopup,
|
|
7995
8024
|
Ua as DialDraggableItem,
|
|
7996
8025
|
wt as DialDropdown,
|
|
7997
|
-
|
|
7998
|
-
|
|
8026
|
+
De as DialEllipsisTooltip,
|
|
8027
|
+
xe as DialErrorText,
|
|
7999
8028
|
ke as DialFieldLabel,
|
|
8000
8029
|
T1 as DialFileIcon,
|
|
8001
8030
|
qa as DialFileName,
|
|
8002
8031
|
kt as DialFormItem,
|
|
8003
8032
|
rl as DialFormPopup,
|
|
8004
|
-
|
|
8033
|
+
U as DialIcon,
|
|
8005
8034
|
Fe as DialInput,
|
|
8006
8035
|
oa as DialInputPopup,
|
|
8007
8036
|
Wa as DialLabelledText,
|
|
8008
8037
|
al as DialLoadFileAreaField,
|
|
8009
8038
|
Hr as DialLoader,
|
|
8010
|
-
|
|
8039
|
+
hs as DialNoDataContent,
|
|
8011
8040
|
Ya as DialNumberInputField,
|
|
8012
8041
|
da as DialPasswordInput,
|
|
8013
8042
|
nl as DialPasswordInputField,
|
|
8014
8043
|
zt as DialPopup,
|
|
8015
|
-
|
|
8016
|
-
|
|
8044
|
+
ls as DialRadioButton,
|
|
8045
|
+
gs as DialRadioGroup,
|
|
8017
8046
|
tl as DialRadioGroupPopupField,
|
|
8018
8047
|
$1 as DialRemoveButton,
|
|
8019
8048
|
fa as DialSearch,
|
|
@@ -8029,14 +8058,14 @@ export {
|
|
|
8029
8058
|
Ja as DialTextAreaField,
|
|
8030
8059
|
Ka as DialTextInputField,
|
|
8031
8060
|
W1 as DialTextarea,
|
|
8032
|
-
|
|
8061
|
+
Le as DialTooltip,
|
|
8033
8062
|
N1 as DropdownType,
|
|
8034
|
-
|
|
8063
|
+
Ze as FormItemOrientation,
|
|
8035
8064
|
Ce as PopupSize,
|
|
8036
|
-
|
|
8065
|
+
Xe as RadioGroupOrientation,
|
|
8037
8066
|
Ke as SearchSize,
|
|
8038
8067
|
ae as StepStatus,
|
|
8039
8068
|
yt as TabOrientation,
|
|
8040
8069
|
Rt as TagVariant,
|
|
8041
|
-
|
|
8070
|
+
G as mergeClasses
|
|
8042
8071
|
};
|