@pstdio/ui 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MermaidComponent-BCMQqPqu.js → MermaidComponent-BPiVFNYK.js} +2 -2
- package/dist/{MermaidComponent-BCMQqPqu.js.map → MermaidComponent-BPiVFNYK.js.map} +1 -1
- package/dist/chat-ui.js +941 -899
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/chat-ui/components/chat-message-list-items.d.ts +17 -0
- package/dist/components/chat-ui/components/message-types.d.ts +1 -0
- package/dist/components/chat-ui/components/timeline.d.ts +2 -0
- package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +1 -0
- package/dist/components/chat-ui/tool-rendering/shared.d.ts +3 -2
- package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +1 -0
- package/dist/components/data-table/data-table-column-menu.d.ts +4 -1
- package/dist/components/data-table/data-table-header.d.ts +0 -8
- package/dist/components/data-table/data-table-skeleton.d.ts +13 -0
- package/dist/components/data-table/editable-cells-story.d.ts +9 -0
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/diff-viewer/code-editor.d.ts +2 -0
- package/dist/components/diff-viewer/index.d.ts +1 -1
- package/dist/components/diff-viewer/monaco-browser.d.ts +1 -0
- package/dist/components/overlays/dialog-accept-shortcut.d.ts +12 -0
- package/dist/components/overlays/index.d.ts +1 -0
- package/dist/components/overlays/searchable-menu-input.d.ts +9 -0
- package/dist/components/param-editor/index.d.ts +7 -2
- package/dist/components/param-editor/inputs/action-input.d.ts +1 -0
- package/dist/components/param-editor/inputs/boolean-input.d.ts +13 -0
- package/dist/components/param-editor/inputs/color-input.d.ts +1 -0
- package/dist/components/param-editor/inputs/date-input.d.ts +1 -0
- package/dist/components/param-editor/inputs/file-upload-input.d.ts +15 -0
- package/dist/components/param-editor/inputs/file-upload-value.d.ts +7 -0
- package/dist/components/param-editor/inputs/horizontal-text-input.d.ts +1 -0
- package/dist/components/param-editor/inputs/markdown-input.d.ts +13 -0
- package/dist/components/param-editor/inputs/number-input.d.ts +1 -0
- package/dist/components/param-editor/inputs/range-input.d.ts +1 -0
- package/dist/components/param-editor/inputs/resource-input.d.ts +2 -0
- package/dist/components/param-editor/inputs/segmented-input.d.ts +1 -0
- package/dist/components/param-editor/inputs/selection-input.d.ts +6 -0
- package/dist/components/param-editor/inputs/selection-menu.d.ts +10 -0
- package/dist/components/param-editor/inputs/text-input.d.ts +1 -0
- package/dist/components/param-editor/param-editor-advanced-field.d.ts +14 -0
- package/dist/components/param-editor/param-editor-control-fixtures.d.ts +24 -0
- package/dist/components/param-editor/param-editor-field.d.ts +2 -0
- package/dist/components/param-editor/param-editor-horizontal.d.ts +2 -2
- package/dist/components/param-editor/param-editor-label.d.ts +1 -0
- package/dist/components/param-editor/param-editor-presentation.d.ts +3 -0
- package/dist/components/param-editor/param-editor-row.d.ts +17 -0
- package/dist/components/param-editor/param-editor.types.d.ts +43 -13
- package/dist/components/param-editor/resolve-param-value.d.ts +2 -0
- package/dist/components/primitives/chip.d.ts +4 -0
- package/dist/components/primitives/glyph-icon.d.ts +16 -0
- package/dist/components/primitives/icon-color-picker.d.ts +3 -13
- package/dist/components/primitives/icon-options.d.ts +301 -0
- package/dist/components/primitives/index.d.ts +12 -3
- package/dist/components/primitives/resource-badge.d.ts +12 -10
- package/dist/components/primitives/segmented-control.d.ts +20 -0
- package/dist/components/primitives/tag-swatch.d.ts +10 -0
- package/dist/components/rich-text/index.d.ts +1 -0
- package/dist/components/rich-text/lazy-markdown-editor.d.ts +2 -0
- package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
- package/dist/components/tag-editor/index.d.ts +4 -0
- package/dist/components/tag-editor/tag-editor-heading.d.ts +11 -0
- package/dist/components/tag-editor/tag-editor-row.d.ts +1 -1
- package/dist/components/tag-editor/tag-editor-save-bar.d.ts +13 -0
- package/dist/components/tag-editor/tag-editor.types.d.ts +11 -11
- package/dist/components/tag-editor/tag-settings-panel.d.ts +3 -1
- package/dist/data-table.js +1018 -926
- package/dist/data-table.js.map +1 -1
- package/dist/dialog-accept-shortcut-DAEBsoWW.js +7 -0
- package/dist/dialog-accept-shortcut-DAEBsoWW.js.map +1 -0
- package/dist/diff.js +370 -366
- package/dist/diff.js.map +1 -1
- package/dist/font/css/prompt-studio-icons.css +720 -0
- package/dist/font/prompt-studio-icons.eot +0 -0
- package/dist/font/prompt-studio-icons.svg +1 -0
- package/dist/font/prompt-studio-icons.ttf +0 -0
- package/dist/font/prompt-studio-icons.woff +0 -0
- package/dist/font/prompt-studio-icons.woff2 +0 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1958 -1744
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-B9ro-9z1.js → kanban-renderer-toolbar-Bcj_N1qr.js} +66 -66
- package/dist/kanban-renderer-toolbar-Bcj_N1qr.js.map +1 -0
- package/dist/kanban-renderer.js +834 -817
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/lazy-markdown-editor-DwhqQ-NN.js +26 -0
- package/dist/lazy-markdown-editor-DwhqQ-NN.js.map +1 -0
- package/dist/list-row-BtoVJpFs.js +821 -0
- package/dist/list-row-BtoVJpFs.js.map +1 -0
- package/dist/markdown-DDd2ESoH.js +743 -0
- package/dist/markdown-DDd2ESoH.js.map +1 -0
- package/dist/markdown-editor-CYVkzt8t.js +741 -0
- package/dist/markdown-editor-CYVkzt8t.js.map +1 -0
- package/dist/monaco-browser-CO0NxK_Z.js +19 -0
- package/dist/monaco-browser-CO0NxK_Z.js.map +1 -0
- package/dist/param-editor-XRjSu6MT.js +161 -0
- package/dist/param-editor-XRjSu6MT.js.map +1 -0
- package/dist/param-editor-field-B9lEPq8c.js +3028 -0
- package/dist/param-editor-field-B9lEPq8c.js.map +1 -0
- package/dist/resource-badge-CuItchgL.js +98 -0
- package/dist/resource-badge-CuItchgL.js.map +1 -0
- package/dist/rich-message--eRzjWYK.js +730 -0
- package/dist/rich-message--eRzjWYK.js.map +1 -0
- package/dist/rich-text.js +114 -827
- package/dist/rich-text.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/primitives/fonts.d.ts +3 -0
- package/dist/theme/primitives/sizes.d.ts +59 -0
- package/dist/theme/recipes/badge.d.ts +8 -0
- package/dist/theme/recipes/color-picker.d.ts +18 -1
- package/dist/theme/recipes/segmented-control.d.ts +22 -0
- package/dist/theme/recipes/switch.d.ts +18 -0
- package/dist/theme/recipes/tabs.d.ts +11 -0
- package/dist/{theme-CNhnbvcE.js → theme-7PDdD9OD.js} +403 -195
- package/dist/theme-7PDdD9OD.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-CZHLAURU.js → tree-list-B2L0cTj2.js} +2 -2
- package/dist/{tree-list-CZHLAURU.js.map → tree-list-B2L0cTj2.js.map} +1 -1
- package/package.json +3 -2
- package/dist/components/param-editor/inputs/file-accept.d.ts +0 -22
- package/dist/components/param-editor/inputs/file-drop-input.d.ts +0 -14
- package/dist/kanban-renderer-toolbar-B9ro-9z1.js.map +0 -1
- package/dist/list-row-YRUxEcy3.js +0 -808
- package/dist/list-row-YRUxEcy3.js.map +0 -1
- package/dist/param-editor-CYZJbmKu.js +0 -933
- package/dist/param-editor-CYZJbmKu.js.map +0 -1
- package/dist/param-editor-read-only-field-DgtLqcFa.js +0 -925
- package/dist/param-editor-read-only-field-DgtLqcFa.js.map +0 -1
- package/dist/prism-BXb57lxL.js +0 -125
- package/dist/prism-BXb57lxL.js.map +0 -1
- package/dist/resource-badge-qCWHP-wQ.js +0 -99
- package/dist/resource-badge-qCWHP-wQ.js.map +0 -1
- package/dist/rich-message-DBf_5YlW.js +0 -1450
- package/dist/rich-message-DBf_5YlW.js.map +0 -1
- package/dist/theme-CNhnbvcE.js.map +0 -1
|
@@ -1,933 +0,0 @@
|
|
|
1
|
-
import { jsx as f, jsxs as z } from "react/jsx-runtime";
|
|
2
|
-
import { c as F } from "react/compiler-runtime";
|
|
3
|
-
import { Button as ce, Flex as D, IconButton as ke, Box as A, Grid as Le, Text as H, Icon as ie, Wrap as Oe, Group as _e, Input as he, Textarea as ze, Collapsible as ge, Stack as de } from "@chakra-ui/react";
|
|
4
|
-
import { X as Ee, Upload as Fe, Plus as Ae, ChevronDown as Ne } from "lucide-react";
|
|
5
|
-
import { useState as K, useEffect as Y, useRef as me } from "react";
|
|
6
|
-
import { e as G, a as J, f as Pe, g as Te, h as De, P as q, N as Re, C as Be, D as Me, S as Ue, b as je } from "./param-editor-read-only-field-DgtLqcFa.js";
|
|
7
|
-
import { R as Ke } from "./resource-badge-qCWHP-wQ.js";
|
|
8
|
-
const Ge = (o) => {
|
|
9
|
-
const e = F(21), {
|
|
10
|
-
id: t,
|
|
11
|
-
name: l,
|
|
12
|
-
description: n,
|
|
13
|
-
defaultValue: a,
|
|
14
|
-
options: s,
|
|
15
|
-
onChange: u,
|
|
16
|
-
readOnly: h
|
|
17
|
-
} = o, [p, d] = K(a);
|
|
18
|
-
let c, m;
|
|
19
|
-
e[0] !== a ? (c = () => {
|
|
20
|
-
d(a);
|
|
21
|
-
}, m = [a], e[0] = a, e[1] = c, e[2] = m) : (c = e[1], m = e[2]), Y(c, m);
|
|
22
|
-
let i;
|
|
23
|
-
e[3] !== t || e[4] !== u ? (i = (y) => {
|
|
24
|
-
d(y), u(t, y);
|
|
25
|
-
}, e[3] = t, e[4] = u, e[5] = i) : i = e[5];
|
|
26
|
-
const r = i;
|
|
27
|
-
let x;
|
|
28
|
-
if (e[6] !== p || e[7] !== s || e[8] !== h || e[9] !== r) {
|
|
29
|
-
let y;
|
|
30
|
-
e[11] !== p || e[12] !== h || e[13] !== r ? (y = (b) => /* @__PURE__ */ f(ce, { size: "xs", variant: p === b.id ? "subtle" : "outline", disabled: b.disabled || h, _hover: {
|
|
31
|
-
bg: "bg.hover",
|
|
32
|
-
borderColor: "border.accent-light"
|
|
33
|
-
}, _active: {
|
|
34
|
-
bg: "bg.active",
|
|
35
|
-
borderColor: "border.accent-light"
|
|
36
|
-
}, _focusVisible: {
|
|
37
|
-
borderColor: "border.accent-light",
|
|
38
|
-
outline: "none",
|
|
39
|
-
boxShadow: "none"
|
|
40
|
-
}, onClick: () => r(b.id), children: b.name }, b.id), e[11] = p, e[12] = h, e[13] = r, e[14] = y) : y = e[14], x = s.map(y), e[6] = p, e[7] = s, e[8] = h, e[9] = r, e[10] = x;
|
|
41
|
-
} else
|
|
42
|
-
x = e[10];
|
|
43
|
-
let g;
|
|
44
|
-
e[15] !== x ? (g = /* @__PURE__ */ f(D, { gap: "xs", wrap: "wrap", children: x }), e[15] = x, e[16] = g) : g = e[16];
|
|
45
|
-
const V = g;
|
|
46
|
-
let S;
|
|
47
|
-
return e[17] !== n || e[18] !== l || e[19] !== V ? (S = /* @__PURE__ */ f(G, { name: l, description: n, orientation: "stacked", children: V }), e[17] = n, e[18] = l, e[19] = V, e[20] = S) : S = e[20], S;
|
|
48
|
-
}, Ie = ["top-left", "top", "top-right", "left", "center", "right", "bottom-left", "bottom", "bottom-right"], Wt = (o) => typeof o == "string" && Ie.includes(o), He = (o) => {
|
|
49
|
-
const e = F(23), {
|
|
50
|
-
id: t,
|
|
51
|
-
name: l,
|
|
52
|
-
description: n,
|
|
53
|
-
defaultValue: a,
|
|
54
|
-
onChange: s,
|
|
55
|
-
readOnly: u,
|
|
56
|
-
fullWidth: h
|
|
57
|
-
} = o, [p, d] = K(a);
|
|
58
|
-
let c, m;
|
|
59
|
-
e[0] !== a ? (c = () => {
|
|
60
|
-
d(a);
|
|
61
|
-
}, m = [a], e[0] = a, e[1] = c, e[2] = m) : (c = e[1], m = e[2]), Y(c, m);
|
|
62
|
-
let i;
|
|
63
|
-
e[3] !== t || e[4] !== s ? (i = (b) => {
|
|
64
|
-
d(b), s(t, b);
|
|
65
|
-
}, e[3] = t, e[4] = s, e[5] = i) : i = e[5];
|
|
66
|
-
const r = i;
|
|
67
|
-
if (u) {
|
|
68
|
-
let b;
|
|
69
|
-
e[6] !== p ? (b = /* @__PURE__ */ f(J, { children: p }), e[6] = p, e[7] = b) : b = e[7];
|
|
70
|
-
let v;
|
|
71
|
-
return e[8] !== n || e[9] !== h || e[10] !== l || e[11] !== b ? (v = /* @__PURE__ */ f(G, { name: l, description: n, fullWidth: h, children: b }), e[8] = n, e[9] = h, e[10] = l, e[11] = b, e[12] = v) : v = e[12], v;
|
|
72
|
-
}
|
|
73
|
-
let x;
|
|
74
|
-
e[13] !== r || e[14] !== p ? (x = Ie.map((b) => {
|
|
75
|
-
const v = b === p;
|
|
76
|
-
return /* @__PURE__ */ f(ke, { "aria-label": b, "aria-pressed": v, size: "2xs", variant: "ghost", bg: v ? "fg" : "bg", _hover: {
|
|
77
|
-
bg: v ? "fg" : "bg.muted"
|
|
78
|
-
}, borderRadius: "0", onClick: () => r(b), children: /* @__PURE__ */ f(A, { boxSize: "0.375rem", borderRadius: "full", bg: v ? "bg" : "fg.muted" }) }, b);
|
|
79
|
-
}), e[13] = r, e[14] = p, e[15] = x) : x = e[15];
|
|
80
|
-
let g;
|
|
81
|
-
e[16] !== x ? (g = /* @__PURE__ */ f(Le, { templateColumns: "repeat(3, 1.5rem)", gap: "1px", width: "fit-content", bg: "border.subtle", p: "1px", borderRadius: "sm", overflow: "hidden", children: x }), e[16] = x, e[17] = g) : g = e[17];
|
|
82
|
-
const V = g, S = h ? "stacked" : "inline";
|
|
83
|
-
let y;
|
|
84
|
-
return e[18] !== n || e[19] !== V || e[20] !== l || e[21] !== S ? (y = /* @__PURE__ */ f(G, { name: l, description: n, orientation: S, children: V }), e[18] = n, e[19] = V, e[20] = l, e[21] = S, e[22] = y) : y = e[22], y;
|
|
85
|
-
}, Xe = (o) => o ? o.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean).map((e) => e.startsWith(".") ? {
|
|
86
|
-
kind: "extension",
|
|
87
|
-
value: e
|
|
88
|
-
} : e.endsWith("/*") ? {
|
|
89
|
-
kind: "wildcard",
|
|
90
|
-
value: e.slice(0, e.indexOf("/"))
|
|
91
|
-
} : {
|
|
92
|
-
kind: "mime",
|
|
93
|
-
value: e
|
|
94
|
-
}) : [], Ye = (o, e) => {
|
|
95
|
-
const t = Xe(e);
|
|
96
|
-
if (t.length === 0) return !0;
|
|
97
|
-
const l = o.name.toLowerCase(), n = o.mimeType?.toLowerCase();
|
|
98
|
-
return t.some((a) => a.kind === "extension" ? l.endsWith(a.value) : a.kind === "wildcard" ? !!n?.startsWith(`${a.value}/`) : n === a.value);
|
|
99
|
-
}, Ze = (o) => ({
|
|
100
|
-
name: o.name,
|
|
101
|
-
mimeType: o.type || void 0,
|
|
102
|
-
size: o.size,
|
|
103
|
-
dataUrl: o.dataUrl
|
|
104
|
-
}), be = (o) => {
|
|
105
|
-
if (o)
|
|
106
|
-
return o < 1024 ? `${o} B` : o < 1024 * 1024 ? `${Math.round(o / 1024)} KB` : `${(o / (1024 * 1024)).toFixed(1)} MB`;
|
|
107
|
-
}, qe = (o) => {
|
|
108
|
-
const e = F(56), {
|
|
109
|
-
id: t,
|
|
110
|
-
name: l,
|
|
111
|
-
description: n,
|
|
112
|
-
defaultValue: a,
|
|
113
|
-
accept: s,
|
|
114
|
-
assetKind: u,
|
|
115
|
-
onChange: h,
|
|
116
|
-
readOnly: p
|
|
117
|
-
} = o, d = u === void 0 ? "file" : u, [c, m] = K(a), [i, r] = K(null), [x, g] = K(!1), V = me(null);
|
|
118
|
-
let S, y;
|
|
119
|
-
e[0] !== a ? (S = () => {
|
|
120
|
-
m(a);
|
|
121
|
-
}, y = [a], e[0] = a, e[1] = S, e[2] = y) : (S = e[1], y = e[2]), Y(S, y);
|
|
122
|
-
let b;
|
|
123
|
-
e[3] !== s || e[4] !== d || e[5] !== t || e[6] !== h ? (b = (P) => {
|
|
124
|
-
if (!P)
|
|
125
|
-
return;
|
|
126
|
-
if (!Ye({
|
|
127
|
-
name: P.name,
|
|
128
|
-
mimeType: P.type
|
|
129
|
-
}, s)) {
|
|
130
|
-
r(`${P.name} is not an accepted ${d}`);
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
r(null);
|
|
134
|
-
const oe = new FileReader();
|
|
135
|
-
oe.onload = () => {
|
|
136
|
-
const We = typeof oe.result == "string" ? oe.result : void 0, pe = Ze({
|
|
137
|
-
name: P.name,
|
|
138
|
-
type: P.type,
|
|
139
|
-
size: P.size,
|
|
140
|
-
dataUrl: We
|
|
141
|
-
});
|
|
142
|
-
m(pe), h(t, pe);
|
|
143
|
-
}, oe.readAsDataURL(P);
|
|
144
|
-
}, e[3] = s, e[4] = d, e[5] = t, e[6] = h, e[7] = b) : b = e[7];
|
|
145
|
-
const v = b;
|
|
146
|
-
let R;
|
|
147
|
-
e[8] !== t || e[9] !== h ? (R = () => {
|
|
148
|
-
m(null), r(null), h(t, null);
|
|
149
|
-
}, e[8] = t, e[9] = h, e[10] = R) : R = e[10];
|
|
150
|
-
const $ = R;
|
|
151
|
-
let C;
|
|
152
|
-
e[11] !== d || e[12] !== $ || e[13] !== p || e[14] !== c ? (C = c ? /* @__PURE__ */ z(D, { alignItems: "center", justifyContent: "space-between", gap: "xs", minW: "0", width: "full", children: [
|
|
153
|
-
/* @__PURE__ */ z(D, { alignItems: "center", gap: "xs", minW: "0", children: [
|
|
154
|
-
d === "image" && c.dataUrl ? /* @__PURE__ */ f(A, { boxSize: "1.75rem", borderRadius: "xs", bgImage: `url(${c.dataUrl})`, bgSize: "cover", flexShrink: 0 }) : null,
|
|
155
|
-
/* @__PURE__ */ z(A, { minW: "0", children: [
|
|
156
|
-
/* @__PURE__ */ f(H, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: c.name }),
|
|
157
|
-
be(c.size) ? /* @__PURE__ */ f(H, { textStyle: "label/XS/regular", color: "fg.muted", children: be(c.size) }) : null
|
|
158
|
-
] })
|
|
159
|
-
] }),
|
|
160
|
-
p ? null : /* @__PURE__ */ f(ce, { size: "2xs", variant: "ghost", onClick: $, children: /* @__PURE__ */ f(Ee, {}) })
|
|
161
|
-
] }) : null, e[11] = d, e[12] = $, e[13] = p, e[14] = c, e[15] = C) : C = e[15];
|
|
162
|
-
const I = C, w = i ? "border.error" : x ? "border.accent-light" : "border", T = x ? "bg.muted" : "bg", W = p ? "default" : "pointer", k = i ? "border.error" : "border.accent-light";
|
|
163
|
-
let L;
|
|
164
|
-
e[16] !== k ? (L = {
|
|
165
|
-
borderColor: k
|
|
166
|
-
}, e[16] = k, e[17] = L) : L = e[17];
|
|
167
|
-
const _ = i ? "border.error" : "border.accent-light";
|
|
168
|
-
let O;
|
|
169
|
-
e[18] !== _ ? (O = {
|
|
170
|
-
borderColor: _
|
|
171
|
-
}, e[18] = _, e[19] = O) : O = e[19];
|
|
172
|
-
const Z = i ? "border.error" : "border.accent-light";
|
|
173
|
-
let M;
|
|
174
|
-
e[20] !== Z ? (M = {
|
|
175
|
-
borderColor: Z,
|
|
176
|
-
boxShadow: "none"
|
|
177
|
-
}, e[20] = Z, e[21] = M) : M = e[21];
|
|
178
|
-
let j, E;
|
|
179
|
-
e[22] !== p ? (j = () => {
|
|
180
|
-
p || V.current?.click();
|
|
181
|
-
}, E = (P) => {
|
|
182
|
-
p || (P.preventDefault(), g(!0));
|
|
183
|
-
}, e[22] = p, e[23] = j, e[24] = E) : (j = e[23], E = e[24]);
|
|
184
|
-
let B;
|
|
185
|
-
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = () => g(!1), e[25] = B) : B = e[25];
|
|
186
|
-
let N;
|
|
187
|
-
e[26] !== v || e[27] !== p ? (N = (P) => {
|
|
188
|
-
p || (P.preventDefault(), g(!1), v(P.dataTransfer.files[0]));
|
|
189
|
-
}, e[26] = v, e[27] = p, e[28] = N) : N = e[28];
|
|
190
|
-
let X;
|
|
191
|
-
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ f(ie, { as: Fe, boxSize: "16px" }), e[29] = X) : X = e[29];
|
|
192
|
-
let Q;
|
|
193
|
-
e[30] !== d ? (Q = /* @__PURE__ */ z(D, { direction: "column", alignItems: "center", gap: "2xs", color: "fg.muted", children: [
|
|
194
|
-
X,
|
|
195
|
-
/* @__PURE__ */ z(H, { textStyle: "label/XS/regular", children: [
|
|
196
|
-
"Drop ",
|
|
197
|
-
d,
|
|
198
|
-
" or click to browse"
|
|
199
|
-
] })
|
|
200
|
-
] }), e[30] = d, e[31] = Q) : Q = e[31];
|
|
201
|
-
let re;
|
|
202
|
-
e[32] !== L || e[33] !== O || e[34] !== M || e[35] !== j || e[36] !== E || e[37] !== N || e[38] !== Q || e[39] !== w || e[40] !== T || e[41] !== W ? (re = /* @__PURE__ */ f(A, { borderWidth: "1px", borderStyle: "dashed", borderColor: w, borderRadius: "sm", bg: T, px: "sm", py: "md", cursor: W, transition: "border-color 0.2s ease-in-out", boxShadow: "none", _hover: L, _active: O, _focusWithin: M, onClick: j, onDragOver: E, onDragLeave: B, onDrop: N, children: Q }), e[32] = L, e[33] = O, e[34] = M, e[35] = j, e[36] = E, e[37] = N, e[38] = Q, e[39] = w, e[40] = T, e[41] = W, e[42] = re) : re = e[42];
|
|
203
|
-
const we = re;
|
|
204
|
-
let ee;
|
|
205
|
-
e[43] !== v ? (ee = (P) => v(P.target.files?.[0]), e[43] = v, e[44] = ee) : ee = e[44];
|
|
206
|
-
let te;
|
|
207
|
-
e[45] !== s || e[46] !== ee ? (te = /* @__PURE__ */ f("input", { ref: V, type: "file", accept: s, hidden: !0, onChange: ee }), e[45] = s, e[46] = ee, e[47] = te) : te = e[47];
|
|
208
|
-
const ue = c ? I : we;
|
|
209
|
-
let le;
|
|
210
|
-
e[48] !== i ? (le = i ? /* @__PURE__ */ f(H, { textStyle: "label/XS/regular", color: "fg.error", mt: "2xs", children: i }) : null, e[48] = i, e[49] = le) : le = e[49];
|
|
211
|
-
let se;
|
|
212
|
-
return e[50] !== n || e[51] !== l || e[52] !== te || e[53] !== ue || e[54] !== le ? (se = /* @__PURE__ */ z(G, { name: l, description: n, orientation: "stacked", children: [
|
|
213
|
-
te,
|
|
214
|
-
ue,
|
|
215
|
-
le
|
|
216
|
-
] }), e[50] = n, e[51] = l, e[52] = te, e[53] = ue, e[54] = le, e[55] = se) : se = e[55], se;
|
|
217
|
-
}, ne = (o, e, t) => {
|
|
218
|
-
const l = Math.min(e, t), n = Math.max(e, t);
|
|
219
|
-
return o < l ? l : o > n ? n : o;
|
|
220
|
-
}, xe = (o, e, t = 0) => {
|
|
221
|
-
if (!(e > 0)) return o;
|
|
222
|
-
const l = Math.round((o - t) / e);
|
|
223
|
-
return t + l * e;
|
|
224
|
-
}, ve = (o, e) => {
|
|
225
|
-
const t = Number.isInteger(o) ? `${o}` : `${Number(o.toFixed(3))}`;
|
|
226
|
-
return e ? `${t}${e}` : t;
|
|
227
|
-
}, ae = (o, e, t, l) => {
|
|
228
|
-
const n = ne(o[0], e, t), a = ne(o[1], e, t);
|
|
229
|
-
let s = Math.min(n, a), u = Math.max(n, a);
|
|
230
|
-
return l && l > 0 && (s = ne(xe(s, l, e), e, t), u = ne(xe(u, l, e), e, t)), [s, u];
|
|
231
|
-
}, Je = (o) => {
|
|
232
|
-
const e = F(4), {
|
|
233
|
-
count: t
|
|
234
|
-
} = o;
|
|
235
|
-
if (!t || t < 2)
|
|
236
|
-
return null;
|
|
237
|
-
let l;
|
|
238
|
-
e[0] !== t ? (l = Array.from({
|
|
239
|
-
length: t
|
|
240
|
-
}, (s, u) => u / (t - 1)), e[0] = t, e[1] = l) : l = e[1];
|
|
241
|
-
const n = l;
|
|
242
|
-
let a;
|
|
243
|
-
return e[2] !== n ? (a = /* @__PURE__ */ f(D, { justifyContent: "space-between", mt: "2xs", "aria-hidden": "true", children: n.map(Qe) }), e[2] = n, e[3] = a) : a = e[3], a;
|
|
244
|
-
};
|
|
245
|
-
function Qe(o) {
|
|
246
|
-
return /* @__PURE__ */ f(A, { width: "1px", height: "0.375rem", bg: "border.subtle" }, o);
|
|
247
|
-
}
|
|
248
|
-
const et = (o) => {
|
|
249
|
-
const e = F(53), {
|
|
250
|
-
id: t,
|
|
251
|
-
name: l,
|
|
252
|
-
description: n,
|
|
253
|
-
defaultValue: a,
|
|
254
|
-
min: s,
|
|
255
|
-
max: u,
|
|
256
|
-
step: h,
|
|
257
|
-
unit: p,
|
|
258
|
-
markerCount: d,
|
|
259
|
-
onChange: c,
|
|
260
|
-
readOnly: m,
|
|
261
|
-
fullWidth: i
|
|
262
|
-
} = o, r = h === void 0 ? 1 : h;
|
|
263
|
-
let x;
|
|
264
|
-
e[0] !== a || e[1] !== u || e[2] !== s || e[3] !== r ? (x = () => ae(a, s, u, r), e[0] = a, e[1] = u, e[2] = s, e[3] = r, e[4] = x) : x = e[4];
|
|
265
|
-
const [g, V] = K(x);
|
|
266
|
-
let S, y;
|
|
267
|
-
e[5] !== a || e[6] !== u || e[7] !== s || e[8] !== r ? (S = () => {
|
|
268
|
-
V(ae(a, s, u, r));
|
|
269
|
-
}, y = [a, s, u, r], e[5] = a, e[6] = u, e[7] = s, e[8] = r, e[9] = S, e[10] = y) : (S = e[9], y = e[10]), Y(S, y);
|
|
270
|
-
let b;
|
|
271
|
-
e[11] !== p || e[12] !== g[0] ? (b = ve(g[0], p), e[11] = p, e[12] = g[0], e[13] = b) : b = e[13];
|
|
272
|
-
let v;
|
|
273
|
-
e[14] !== p || e[15] !== g[1] ? (v = ve(g[1], p), e[14] = p, e[15] = g[1], e[16] = v) : v = e[16];
|
|
274
|
-
const R = `${b} – ${v}`;
|
|
275
|
-
if (m) {
|
|
276
|
-
let _;
|
|
277
|
-
e[17] !== R ? (_ = /* @__PURE__ */ f(J, { children: R }), e[17] = R, e[18] = _) : _ = e[18];
|
|
278
|
-
let O;
|
|
279
|
-
return e[19] !== n || e[20] !== i || e[21] !== l || e[22] !== _ ? (O = /* @__PURE__ */ f(G, { name: l, description: n, fullWidth: i, children: _ }), e[19] = n, e[20] = i, e[21] = l, e[22] = _, e[23] = O) : O = e[23], O;
|
|
280
|
-
}
|
|
281
|
-
let $;
|
|
282
|
-
e[24] !== R ? ($ = /* @__PURE__ */ f(H, { textStyle: "label/S/regular", color: "fg.muted", whiteSpace: "nowrap", children: R }), e[24] = R, e[25] = $) : $ = e[25];
|
|
283
|
-
const C = $;
|
|
284
|
-
let I;
|
|
285
|
-
e[26] !== u || e[27] !== s || e[28] !== r ? (I = (_) => V(ae(_.value, s, u, r)), e[26] = u, e[27] = s, e[28] = r, e[29] = I) : I = e[29];
|
|
286
|
-
let w;
|
|
287
|
-
e[30] !== t || e[31] !== u || e[32] !== s || e[33] !== c || e[34] !== r ? (w = (_) => {
|
|
288
|
-
const O = ae(_.value, s, u, r);
|
|
289
|
-
V(O), c(t, O);
|
|
290
|
-
}, e[30] = t, e[31] = u, e[32] = s, e[33] = c, e[34] = r, e[35] = w) : w = e[35];
|
|
291
|
-
let T;
|
|
292
|
-
e[36] !== u || e[37] !== s || e[38] !== r || e[39] !== I || e[40] !== w || e[41] !== g ? (T = /* @__PURE__ */ f(Pe, { size: "sm", value: g, min: s, max: u, step: r, onValueChange: I, onValueChangeEnd: w }), e[36] = u, e[37] = s, e[38] = r, e[39] = I, e[40] = w, e[41] = g, e[42] = T) : T = e[42];
|
|
293
|
-
let W;
|
|
294
|
-
e[43] !== d ? (W = /* @__PURE__ */ f(Je, { count: d }), e[43] = d, e[44] = W) : W = e[44];
|
|
295
|
-
let k;
|
|
296
|
-
e[45] !== W || e[46] !== T ? (k = /* @__PURE__ */ z(A, { children: [
|
|
297
|
-
T,
|
|
298
|
-
W
|
|
299
|
-
] }), e[45] = W, e[46] = T, e[47] = k) : k = e[47];
|
|
300
|
-
let L;
|
|
301
|
-
return e[48] !== n || e[49] !== l || e[50] !== k || e[51] !== C ? (L = /* @__PURE__ */ f(G, { name: l, description: n, orientation: "stacked", labelTrailing: C, children: k }), e[48] = n, e[49] = l, e[50] = k, e[51] = C, e[52] = L) : L = e[52], L;
|
|
302
|
-
}, tt = (o) => /* @__PURE__ */ f(ie, { as: Te(o.icon), boxSize: "14px", color: o.color ? `${o.color}.500` : "fg.muted" }), lt = (o) => window.open(o, "_blank", "noreferrer"), nt = (o) => {
|
|
303
|
-
navigator.clipboard?.writeText(o).catch(() => {
|
|
304
|
-
});
|
|
305
|
-
}, it = (o) => {
|
|
306
|
-
const e = F(16), {
|
|
307
|
-
option: t,
|
|
308
|
-
onOpenResource: l,
|
|
309
|
-
onRemove: n
|
|
310
|
-
} = o;
|
|
311
|
-
let a;
|
|
312
|
-
e[0] !== l || e[1] !== t.copyText || e[2] !== t.href || e[3] !== t.ref ? (a = t.href && t.href.length > 0 ? () => lt(t.href) : t.ref && l ? () => l(t.ref) : t.copyText ? () => nt(t.copyText) : void 0, e[0] = l, e[1] = t.copyText, e[2] = t.href, e[3] = t.ref, e[4] = a) : a = e[4];
|
|
313
|
-
const s = a, u = t.name;
|
|
314
|
-
let h;
|
|
315
|
-
e[5] !== t ? (h = tt(t), e[5] = t, e[6] = h) : h = e[6];
|
|
316
|
-
let p;
|
|
317
|
-
e[7] !== s ? (p = s ? () => s() : void 0, e[7] = s, e[8] = p) : p = e[8];
|
|
318
|
-
let d;
|
|
319
|
-
e[9] !== n ? (d = n ? () => n() : void 0, e[9] = n, e[10] = d) : d = e[10];
|
|
320
|
-
let c;
|
|
321
|
-
return e[11] !== t.name || e[12] !== h || e[13] !== p || e[14] !== d ? (c = /* @__PURE__ */ f(Ke, { fileName: u, icon: h, size: "sm", onSelect: p, onRemove: d }), e[11] = t.name, e[12] = h, e[13] = p, e[14] = d, e[15] = c) : c = e[15], c;
|
|
322
|
-
}, ye = (o) => {
|
|
323
|
-
const e = F(11), {
|
|
324
|
-
options: t,
|
|
325
|
-
onOpenResource: l,
|
|
326
|
-
onRemove: n,
|
|
327
|
-
emptyText: a
|
|
328
|
-
} = o;
|
|
329
|
-
if (t.length === 0) {
|
|
330
|
-
const h = a ?? "None";
|
|
331
|
-
let p;
|
|
332
|
-
return e[0] !== h ? (p = /* @__PURE__ */ f(H, { textStyle: "label/S/regular", color: "fg.muted", children: h }), e[0] = h, e[1] = p) : p = e[1], p;
|
|
333
|
-
}
|
|
334
|
-
let s;
|
|
335
|
-
if (e[2] !== l || e[3] !== n || e[4] !== t) {
|
|
336
|
-
let h;
|
|
337
|
-
e[6] !== l || e[7] !== n ? (h = (p) => /* @__PURE__ */ f(it, { option: p, onOpenResource: l, onRemove: n ? () => n(p.id) : void 0 }, p.id), e[6] = l, e[7] = n, e[8] = h) : h = e[8], s = t.map(h), e[2] = l, e[3] = n, e[4] = t, e[5] = s;
|
|
338
|
-
} else
|
|
339
|
-
s = e[5];
|
|
340
|
-
let u;
|
|
341
|
-
return e[9] !== s ? (u = /* @__PURE__ */ f(Oe, { gap: "2xs", children: s }), e[9] = s, e[10] = u) : u = e[10], u;
|
|
342
|
-
}, rt = (o) => Array.isArray(o) ? o : o ? [o] : [], st = (o, e) => o.map((t) => e.find((l) => l.id === t)).filter((t) => !!t), fe = (o) => {
|
|
343
|
-
const e = F(8), {
|
|
344
|
-
fullWidth: t,
|
|
345
|
-
label: l,
|
|
346
|
-
control: n
|
|
347
|
-
} = o;
|
|
348
|
-
if (t) {
|
|
349
|
-
let s;
|
|
350
|
-
e[0] !== l ? (s = /* @__PURE__ */ f(A, { mb: "xs", children: l }), e[0] = l, e[1] = s) : s = e[1];
|
|
351
|
-
let u;
|
|
352
|
-
return e[2] !== n || e[3] !== s ? (u = /* @__PURE__ */ z(A, { children: [
|
|
353
|
-
s,
|
|
354
|
-
n
|
|
355
|
-
] }), e[2] = n, e[3] = s, e[4] = u) : u = e[4], u;
|
|
356
|
-
}
|
|
357
|
-
let a;
|
|
358
|
-
return e[5] !== n || e[6] !== l ? (a = /* @__PURE__ */ z(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
359
|
-
l,
|
|
360
|
-
n
|
|
361
|
-
] }), e[5] = n, e[6] = l, e[7] = a) : a = e[7], a;
|
|
362
|
-
}, Ce = (o) => {
|
|
363
|
-
const e = F(6), {
|
|
364
|
-
triggerLabel: t,
|
|
365
|
-
options: l,
|
|
366
|
-
selectedIds: n,
|
|
367
|
-
multiSelect: a,
|
|
368
|
-
onToggle: s
|
|
369
|
-
} = o;
|
|
370
|
-
let u;
|
|
371
|
-
return e[0] !== a || e[1] !== s || e[2] !== l || e[3] !== n || e[4] !== t ? (u = /* @__PURE__ */ f(De, { triggerLabel: t, options: l, selectedIds: n, multiSelect: a, onToggle: s }), e[0] = a, e[1] = s, e[2] = l, e[3] = n, e[4] = t, e[5] = u) : u = e[5], u;
|
|
372
|
-
}, ot = (o) => {
|
|
373
|
-
const e = F(18), {
|
|
374
|
-
id: t,
|
|
375
|
-
name: l,
|
|
376
|
-
description: n,
|
|
377
|
-
defaultValue: a,
|
|
378
|
-
options: s,
|
|
379
|
-
onChange: u,
|
|
380
|
-
onOpenResource: h,
|
|
381
|
-
readOnly: p,
|
|
382
|
-
editable: d,
|
|
383
|
-
multiSelect: c,
|
|
384
|
-
placeholder: m,
|
|
385
|
-
emptyText: i,
|
|
386
|
-
fullWidth: r
|
|
387
|
-
} = o, x = d === void 0 ? !1 : d, g = c === void 0 ? !1 : c, V = r === void 0 ? !1 : r, [S, y] = K(a), b = me(null);
|
|
388
|
-
let v, R;
|
|
389
|
-
e[0] !== a ? (v = () => {
|
|
390
|
-
y(a);
|
|
391
|
-
}, R = [a], e[0] = a, e[1] = v, e[2] = R) : (v = e[1], R = e[2]), Y(v, R);
|
|
392
|
-
const $ = (E) => {
|
|
393
|
-
b.current && clearTimeout(b.current), u(t, E);
|
|
394
|
-
}, C = (E) => {
|
|
395
|
-
b.current && clearTimeout(b.current), b.current = setTimeout(() => u(t, E), 540);
|
|
396
|
-
}, I = rt(S), w = st(I, s), T = x && !p;
|
|
397
|
-
let W;
|
|
398
|
-
e[3] !== n || e[4] !== l ? (W = /* @__PURE__ */ f(q, { name: l, description: n }), e[3] = n, e[4] = l, e[5] = W) : W = e[5];
|
|
399
|
-
const k = W;
|
|
400
|
-
if (!T)
|
|
401
|
-
return /* @__PURE__ */ f(fe, { fullWidth: V, label: k, control: /* @__PURE__ */ f(ye, { options: w, onOpenResource: h, emptyText: i }) });
|
|
402
|
-
const L = (E) => {
|
|
403
|
-
if (g) {
|
|
404
|
-
const N = I.includes(E) ? I.filter((X) => X !== E) : [...I, E];
|
|
405
|
-
y(N), C(N);
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
|
-
const B = I.includes(E) ? "" : E;
|
|
409
|
-
y(B), $(B);
|
|
410
|
-
}, _ = (E) => {
|
|
411
|
-
const B = I.filter((N) => N !== E);
|
|
412
|
-
y(B), C(B);
|
|
413
|
-
};
|
|
414
|
-
if (g) {
|
|
415
|
-
let E;
|
|
416
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ f(ie, { as: Ae, boxSize: "12px" }), e[6] = E) : E = e[6];
|
|
417
|
-
const B = m ?? "Add";
|
|
418
|
-
let N;
|
|
419
|
-
e[7] !== B ? (N = /* @__PURE__ */ z(D, { align: "center", gap: "2xs", children: [
|
|
420
|
-
E,
|
|
421
|
-
B
|
|
422
|
-
] }), e[7] = B, e[8] = N) : N = e[8];
|
|
423
|
-
const X = /* @__PURE__ */ z(D, { direction: "column", gap: "2xs", align: "flex-start", minW: "0", children: [
|
|
424
|
-
w.length > 0 ? /* @__PURE__ */ f(ye, { options: w, onOpenResource: h, onRemove: _, emptyText: i }) : null,
|
|
425
|
-
/* @__PURE__ */ f(Ce, { triggerLabel: N, options: s, selectedIds: I, multiSelect: !0, onToggle: L })
|
|
426
|
-
] });
|
|
427
|
-
return /* @__PURE__ */ f(fe, { fullWidth: V, label: k, control: X });
|
|
428
|
-
}
|
|
429
|
-
const O = w[0], Z = O ? /* @__PURE__ */ z(D, { align: "center", gap: "2xs", minW: "0", children: [
|
|
430
|
-
/* @__PURE__ */ f(ie, { as: Te(O.icon), boxSize: "14px", color: O.color ? `${O.color}.500` : "fg.muted" }),
|
|
431
|
-
O.name
|
|
432
|
-
] }) : m ?? "Select";
|
|
433
|
-
let M;
|
|
434
|
-
e[9] !== s || e[10] !== I || e[11] !== L || e[12] !== Z ? (M = /* @__PURE__ */ f(Ce, { triggerLabel: Z, options: s, selectedIds: I, multiSelect: !1, onToggle: L }), e[9] = s, e[10] = I, e[11] = L, e[12] = Z, e[13] = M) : M = e[13];
|
|
435
|
-
let j;
|
|
436
|
-
return e[14] !== V || e[15] !== k || e[16] !== M ? (j = /* @__PURE__ */ f(fe, { fullWidth: V, label: k, control: M }), e[14] = V, e[15] = k, e[16] = M, e[17] = j) : j = e[17], j;
|
|
437
|
-
}, at = (o) => {
|
|
438
|
-
const e = F(34), {
|
|
439
|
-
id: t,
|
|
440
|
-
name: l,
|
|
441
|
-
description: n,
|
|
442
|
-
defaultValue: a,
|
|
443
|
-
options: s,
|
|
444
|
-
variant: u,
|
|
445
|
-
onChange: h,
|
|
446
|
-
readOnly: p,
|
|
447
|
-
fullWidth: d
|
|
448
|
-
} = o, c = u === void 0 ? "default" : u, [m, i] = K(a);
|
|
449
|
-
let r, x;
|
|
450
|
-
e[0] !== a ? (r = () => {
|
|
451
|
-
i(a);
|
|
452
|
-
}, x = [a], e[0] = a, e[1] = r, e[2] = x) : (r = e[1], x = e[2]), Y(r, x);
|
|
453
|
-
let g;
|
|
454
|
-
e[3] !== t || e[4] !== h ? (g = (T) => {
|
|
455
|
-
i(T), h(t, T);
|
|
456
|
-
}, e[3] = t, e[4] = h, e[5] = g) : g = e[5];
|
|
457
|
-
const V = g;
|
|
458
|
-
let S;
|
|
459
|
-
e[6] !== s || e[7] !== m ? (S = s.find((T) => T.id === m)?.name ?? m, e[6] = s, e[7] = m, e[8] = S) : S = e[8];
|
|
460
|
-
const y = S;
|
|
461
|
-
if (p) {
|
|
462
|
-
let T;
|
|
463
|
-
e[9] !== y ? (T = /* @__PURE__ */ f(J, { children: y }), e[9] = y, e[10] = T) : T = e[10];
|
|
464
|
-
let W;
|
|
465
|
-
return e[11] !== n || e[12] !== d || e[13] !== l || e[14] !== T ? (W = /* @__PURE__ */ f(G, { name: l, description: n, fullWidth: d, children: T }), e[11] = n, e[12] = d, e[13] = l, e[14] = T, e[15] = W) : W = e[15], W;
|
|
466
|
-
}
|
|
467
|
-
let b, v, R;
|
|
468
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
469
|
-
borderColor: "border.accent-light"
|
|
470
|
-
}, v = {
|
|
471
|
-
borderColor: "border.accent-light"
|
|
472
|
-
}, R = {
|
|
473
|
-
borderColor: "border.accent-light",
|
|
474
|
-
boxShadow: "none"
|
|
475
|
-
}, e[16] = b, e[17] = v, e[18] = R) : (b = e[16], v = e[17], R = e[18]);
|
|
476
|
-
let $;
|
|
477
|
-
if (e[19] !== s || e[20] !== V || e[21] !== m || e[22] !== c) {
|
|
478
|
-
let T;
|
|
479
|
-
e[24] !== V || e[25] !== m || e[26] !== c ? (T = (W) => {
|
|
480
|
-
const k = W.id === m;
|
|
481
|
-
return /* @__PURE__ */ z(ce, { flex: "1", size: "xs", variant: k ? "subtle" : "ghost", borderRadius: "0", "aria-pressed": k, onClick: () => V(W.id), children: [
|
|
482
|
-
c === "dots" ? /* @__PURE__ */ f(A, { boxSize: "0.5rem", borderRadius: "full", bg: W.indicatorColor ?? "fg.muted", mr: "1" }) : null,
|
|
483
|
-
W.name
|
|
484
|
-
] }, W.id);
|
|
485
|
-
}, e[24] = V, e[25] = m, e[26] = c, e[27] = T) : T = e[27], $ = s.map(T), e[19] = s, e[20] = V, e[21] = m, e[22] = c, e[23] = $;
|
|
486
|
-
} else
|
|
487
|
-
$ = e[23];
|
|
488
|
-
let C;
|
|
489
|
-
e[28] !== $ ? (C = /* @__PURE__ */ f(_e, { attached: !0, width: "full", borderWidth: "1px", borderColor: "border", borderRadius: "xs", overflow: "hidden", transition: "border-color 0.2s ease-in-out", _hover: b, _active: v, _focusWithin: R, children: $ }), e[28] = $, e[29] = C) : C = e[29];
|
|
490
|
-
const I = C;
|
|
491
|
-
let w;
|
|
492
|
-
return e[30] !== n || e[31] !== I || e[32] !== l ? (w = /* @__PURE__ */ f(G, { name: l, description: n, orientation: "stacked", children: I }), e[30] = n, e[31] = I, e[32] = l, e[33] = w) : w = e[33], w;
|
|
493
|
-
}, ct = (o) => {
|
|
494
|
-
const e = F(34), {
|
|
495
|
-
id: t,
|
|
496
|
-
defaultValue: l,
|
|
497
|
-
name: n,
|
|
498
|
-
onChange: a,
|
|
499
|
-
description: s,
|
|
500
|
-
readOnly: u,
|
|
501
|
-
singleLine: h,
|
|
502
|
-
hideLabel: p,
|
|
503
|
-
fullWidth: d
|
|
504
|
-
} = o, c = h === void 0 ? !0 : h, m = p === void 0 ? !1 : p, i = d === void 0 ? !1 : d, [r, x] = K(l), g = me(null);
|
|
505
|
-
let V;
|
|
506
|
-
e[0] !== t || e[1] !== a ? (V = (C) => {
|
|
507
|
-
g.current && clearTimeout(g.current), g.current = setTimeout(() => a(t, C), 540);
|
|
508
|
-
}, e[0] = t, e[1] = a, e[2] = V) : V = e[2];
|
|
509
|
-
const S = V;
|
|
510
|
-
let y, b;
|
|
511
|
-
e[3] !== l ? (y = () => {
|
|
512
|
-
x(l);
|
|
513
|
-
}, b = [l], e[3] = l, e[4] = y, e[5] = b) : (y = e[4], b = e[5]), Y(y, b);
|
|
514
|
-
let v;
|
|
515
|
-
e[6] !== S ? (v = (C) => {
|
|
516
|
-
x(C), S(C);
|
|
517
|
-
}, e[6] = S, e[7] = v) : v = e[7];
|
|
518
|
-
const R = v;
|
|
519
|
-
if (u) {
|
|
520
|
-
const C = !c;
|
|
521
|
-
let I;
|
|
522
|
-
e[8] !== C || e[9] !== r ? (I = /* @__PURE__ */ f(J, { preserveWhitespace: C, children: r }), e[8] = C, e[9] = r, e[10] = I) : I = e[10];
|
|
523
|
-
const w = I;
|
|
524
|
-
if (c && !i) {
|
|
525
|
-
let k;
|
|
526
|
-
e[11] !== s || e[12] !== m || e[13] !== n ? (k = !m && /* @__PURE__ */ f(q, { name: n, description: s }), e[11] = s, e[12] = m, e[13] = n, e[14] = k) : k = e[14];
|
|
527
|
-
let L;
|
|
528
|
-
return e[15] !== k || e[16] !== w ? (L = /* @__PURE__ */ f(A, { children: /* @__PURE__ */ z(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
529
|
-
k,
|
|
530
|
-
w
|
|
531
|
-
] }) }), e[15] = k, e[16] = w, e[17] = L) : L = e[17], L;
|
|
532
|
-
}
|
|
533
|
-
let T;
|
|
534
|
-
e[18] !== s || e[19] !== m || e[20] !== n ? (T = !m && /* @__PURE__ */ f(A, { mb: "xs", children: /* @__PURE__ */ f(q, { name: n, description: s }) }), e[18] = s, e[19] = m, e[20] = n, e[21] = T) : T = e[21];
|
|
535
|
-
let W;
|
|
536
|
-
return e[22] !== T || e[23] !== w ? (W = /* @__PURE__ */ z(A, { children: [
|
|
537
|
-
T,
|
|
538
|
-
w
|
|
539
|
-
] }), e[22] = T, e[23] = w, e[24] = W) : W = e[24], W;
|
|
540
|
-
}
|
|
541
|
-
let $;
|
|
542
|
-
return e[25] !== s || e[26] !== i || e[27] !== R || e[28] !== m || e[29] !== n || e[30] !== u || e[31] !== c || e[32] !== r ? ($ = /* @__PURE__ */ f(A, { children: c && !i ? /* @__PURE__ */ z(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
543
|
-
!m && /* @__PURE__ */ f(q, { name: n, description: s }),
|
|
544
|
-
/* @__PURE__ */ f(he, { className: "nodrag", readOnly: u, flex: "1", maxW: "12.5rem", size: "sm", type: "text", placeholder: m ? n : void 0, value: r, onChange: (C) => R(C.target.value), onKeyUp: dt })
|
|
545
|
-
] }) : /* @__PURE__ */ z(A, { children: [
|
|
546
|
-
!m && /* @__PURE__ */ f(A, { mb: "xs", children: /* @__PURE__ */ f(q, { name: n, description: s }) }),
|
|
547
|
-
c ? /* @__PURE__ */ f(he, { className: "nodrag", readOnly: u, width: "100%", size: "sm", type: "text", placeholder: m ? n : void 0, value: r, onChange: (C) => R(C.target.value), onKeyUp: ut }) : /* @__PURE__ */ f(ze, { className: "nodrag", readOnly: u, width: "100%", size: "sm", placeholder: m ? n : void 0, value: r, onChange: (C) => R(C.target.value), rows: 3, resize: "vertical" })
|
|
548
|
-
] }) }), e[25] = s, e[26] = i, e[27] = R, e[28] = m, e[29] = n, e[30] = u, e[31] = c, e[32] = r, e[33] = $) : $ = e[33], $;
|
|
549
|
-
};
|
|
550
|
-
function dt(o) {
|
|
551
|
-
o.key === "Enter" && o.currentTarget.blur();
|
|
552
|
-
}
|
|
553
|
-
function ut(o) {
|
|
554
|
-
o.key === "Enter" && o.currentTarget.blur();
|
|
555
|
-
}
|
|
556
|
-
const ft = (o) => {
|
|
557
|
-
const e = F(6);
|
|
558
|
-
let t, l;
|
|
559
|
-
e[0] !== o ? ({
|
|
560
|
-
children: t,
|
|
561
|
-
...l
|
|
562
|
-
} = o, e[0] = o, e[1] = t, e[2] = l) : (t = e[1], l = e[2]);
|
|
563
|
-
let n;
|
|
564
|
-
return e[3] !== t || e[4] !== l ? (n = /* @__PURE__ */ f(D, { alignItems: "center", gap: "xs", minW: "0", ...l, children: t }), e[3] = t, e[4] = l, e[5] = n) : n = e[5], n;
|
|
565
|
-
}, mt = (o, e) => {
|
|
566
|
-
if (e.min === void 0 && e.max === void 0) return o;
|
|
567
|
-
const t = e.min ?? Number.NEGATIVE_INFINITY, l = e.max ?? Number.POSITIVE_INFINITY;
|
|
568
|
-
return ne(o, t, l);
|
|
569
|
-
}, pt = (o, e, t, l = {}) => {
|
|
570
|
-
const n = mt(t, l);
|
|
571
|
-
return e === "x" ? {
|
|
572
|
-
x: n,
|
|
573
|
-
y: o.y
|
|
574
|
-
} : {
|
|
575
|
-
x: o.x,
|
|
576
|
-
y: n
|
|
577
|
-
};
|
|
578
|
-
}, Ve = (o) => {
|
|
579
|
-
const e = F(15), {
|
|
580
|
-
label: t,
|
|
581
|
-
fieldId: l,
|
|
582
|
-
value: n,
|
|
583
|
-
min: a,
|
|
584
|
-
max: s,
|
|
585
|
-
step: u,
|
|
586
|
-
onCommit: h
|
|
587
|
-
} = o;
|
|
588
|
-
let p;
|
|
589
|
-
e[0] !== t ? (p = /* @__PURE__ */ f(H, { textStyle: "label/XS/regular", color: "fg.muted", width: "1rem", flexShrink: 0, children: t }), e[0] = t, e[1] = p) : p = e[1];
|
|
590
|
-
let d;
|
|
591
|
-
e[2] !== h ? (d = (i, r) => h(r), e[2] = h, e[3] = d) : d = e[3];
|
|
592
|
-
let c;
|
|
593
|
-
e[4] !== l || e[5] !== t || e[6] !== s || e[7] !== a || e[8] !== u || e[9] !== d || e[10] !== n ? (c = /* @__PURE__ */ f(Re, { id: l, name: t, description: "", defaultValue: n, min: a, max: s, step: u, hideLabel: !0, hideSlider: !0, fullWidth: !0, onChange: d }), e[4] = l, e[5] = t, e[6] = s, e[7] = a, e[8] = u, e[9] = d, e[10] = n, e[11] = c) : c = e[11];
|
|
594
|
-
let m;
|
|
595
|
-
return e[12] !== p || e[13] !== c ? (m = /* @__PURE__ */ z(D, { alignItems: "center", gap: "1", flex: "1", minW: "0", children: [
|
|
596
|
-
p,
|
|
597
|
-
c
|
|
598
|
-
] }), e[12] = p, e[13] = c, e[14] = m) : m = e[14], m;
|
|
599
|
-
}, ht = (o) => {
|
|
600
|
-
const e = F(42), {
|
|
601
|
-
id: t,
|
|
602
|
-
name: l,
|
|
603
|
-
description: n,
|
|
604
|
-
defaultValue: a,
|
|
605
|
-
xLabel: s,
|
|
606
|
-
yLabel: u,
|
|
607
|
-
min: h,
|
|
608
|
-
max: p,
|
|
609
|
-
step: d,
|
|
610
|
-
onChange: c,
|
|
611
|
-
readOnly: m
|
|
612
|
-
} = o, i = s === void 0 ? "X" : s, r = u === void 0 ? "Y" : u, x = d === void 0 ? 1 : d, [g, V] = K(a);
|
|
613
|
-
let S, y;
|
|
614
|
-
e[0] !== a ? (S = () => {
|
|
615
|
-
V(a);
|
|
616
|
-
}, y = [a], e[0] = a, e[1] = S, e[2] = y) : (S = e[1], y = e[2]), Y(S, y);
|
|
617
|
-
let b;
|
|
618
|
-
e[3] !== t || e[4] !== p || e[5] !== h || e[6] !== c || e[7] !== g ? (b = (L, _) => {
|
|
619
|
-
const O = pt(g, L, _, {
|
|
620
|
-
min: h,
|
|
621
|
-
max: p
|
|
622
|
-
});
|
|
623
|
-
V(O), c(t, O);
|
|
624
|
-
}, e[3] = t, e[4] = p, e[5] = h, e[6] = c, e[7] = g, e[8] = b) : b = e[8];
|
|
625
|
-
const v = b;
|
|
626
|
-
if (m) {
|
|
627
|
-
const L = `${g.x}, ${g.y}`;
|
|
628
|
-
let _;
|
|
629
|
-
e[9] !== L ? (_ = /* @__PURE__ */ f(J, { children: L }), e[9] = L, e[10] = _) : _ = e[10];
|
|
630
|
-
let O;
|
|
631
|
-
return e[11] !== n || e[12] !== l || e[13] !== _ ? (O = /* @__PURE__ */ f(G, { name: l, description: n, children: _ }), e[11] = n, e[12] = l, e[13] = _, e[14] = O) : O = e[14], O;
|
|
632
|
-
}
|
|
633
|
-
const R = `${t}.x`;
|
|
634
|
-
let $;
|
|
635
|
-
e[15] !== v ? ($ = (L) => v("x", L), e[15] = v, e[16] = $) : $ = e[16];
|
|
636
|
-
let C;
|
|
637
|
-
e[17] !== p || e[18] !== h || e[19] !== x || e[20] !== R || e[21] !== $ || e[22] !== g.x || e[23] !== i ? (C = /* @__PURE__ */ f(Ve, { label: i, fieldId: R, value: g.x, min: h, max: p, step: x, onCommit: $ }), e[17] = p, e[18] = h, e[19] = x, e[20] = R, e[21] = $, e[22] = g.x, e[23] = i, e[24] = C) : C = e[24];
|
|
638
|
-
const I = `${t}.y`;
|
|
639
|
-
let w;
|
|
640
|
-
e[25] !== v ? (w = (L) => v("y", L), e[25] = v, e[26] = w) : w = e[26];
|
|
641
|
-
let T;
|
|
642
|
-
e[27] !== p || e[28] !== h || e[29] !== x || e[30] !== w || e[31] !== I || e[32] !== g.y || e[33] !== r ? (T = /* @__PURE__ */ f(Ve, { label: r, fieldId: I, value: g.y, min: h, max: p, step: x, onCommit: w }), e[27] = p, e[28] = h, e[29] = x, e[30] = w, e[31] = I, e[32] = g.y, e[33] = r, e[34] = T) : T = e[34];
|
|
643
|
-
let W;
|
|
644
|
-
e[35] !== T || e[36] !== C ? (W = /* @__PURE__ */ z(ft, { children: [
|
|
645
|
-
C,
|
|
646
|
-
T
|
|
647
|
-
] }), e[35] = T, e[36] = C, e[37] = W) : W = e[37];
|
|
648
|
-
let k;
|
|
649
|
-
return e[38] !== n || e[39] !== l || e[40] !== W ? (k = /* @__PURE__ */ f(G, { name: l, description: n, orientation: "stacked", children: W }), e[38] = n, e[39] = l, e[40] = W, e[41] = k) : k = e[41], k;
|
|
650
|
-
}, U = (o, e, t) => o[e] === void 0 ? t : o[e], gt = (o) => {
|
|
651
|
-
const e = F(16), {
|
|
652
|
-
param: t,
|
|
653
|
-
fullWidth: l
|
|
654
|
-
} = o;
|
|
655
|
-
if (l) {
|
|
656
|
-
let u;
|
|
657
|
-
e[0] !== t.description || e[1] !== t.name ? (u = /* @__PURE__ */ f(A, { mb: "xs", children: /* @__PURE__ */ f(q, { name: t.name, description: t.description }) }), e[0] = t.description, e[1] = t.name, e[2] = u) : u = e[2];
|
|
658
|
-
let h;
|
|
659
|
-
e[3] !== t.value ? (h = /* @__PURE__ */ f(J, { children: t.value }), e[3] = t.value, e[4] = h) : h = e[4];
|
|
660
|
-
let p;
|
|
661
|
-
return e[5] !== u || e[6] !== h ? (p = /* @__PURE__ */ z(A, { children: [
|
|
662
|
-
u,
|
|
663
|
-
h
|
|
664
|
-
] }), e[5] = u, e[6] = h, e[7] = p) : p = e[7], p;
|
|
665
|
-
}
|
|
666
|
-
let n;
|
|
667
|
-
e[8] !== t.description || e[9] !== t.name ? (n = /* @__PURE__ */ f(q, { name: t.name, description: t.description }), e[8] = t.description, e[9] = t.name, e[10] = n) : n = e[10];
|
|
668
|
-
let a;
|
|
669
|
-
e[11] !== t.value ? (a = /* @__PURE__ */ f(J, { children: t.value }), e[11] = t.value, e[12] = a) : a = e[12];
|
|
670
|
-
let s;
|
|
671
|
-
return e[13] !== n || e[14] !== a ? (s = /* @__PURE__ */ z(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
672
|
-
n,
|
|
673
|
-
a
|
|
674
|
-
] }), e[13] = n, e[14] = a, e[15] = s) : s = e[15], s;
|
|
675
|
-
}, bt = (o) => {
|
|
676
|
-
const e = F(151), {
|
|
677
|
-
param: t,
|
|
678
|
-
defaultValues: l,
|
|
679
|
-
onChange: n,
|
|
680
|
-
onOpenResource: a,
|
|
681
|
-
readOnly: s,
|
|
682
|
-
fullWidth: u
|
|
683
|
-
} = o, h = u === void 0 ? !1 : u;
|
|
684
|
-
let p;
|
|
685
|
-
e[0] !== h || e[1] !== n || e[2] !== t.id || e[3] !== s ? (p = {
|
|
686
|
-
id: t.id,
|
|
687
|
-
readOnly: s,
|
|
688
|
-
onChange: n,
|
|
689
|
-
fullWidth: h
|
|
690
|
-
}, e[0] = h, e[1] = n, e[2] = t.id, e[3] = s, e[4] = p) : p = e[4];
|
|
691
|
-
const d = p;
|
|
692
|
-
switch (t.type) {
|
|
693
|
-
case "number": {
|
|
694
|
-
const c = t.name, m = t.description || "";
|
|
695
|
-
let i;
|
|
696
|
-
e[5] !== l || e[6] !== t.defaultValue || e[7] !== t.id ? (i = U(l, t.id, t.defaultValue), e[5] = l, e[6] = t.defaultValue, e[7] = t.id, e[8] = i) : i = e[8];
|
|
697
|
-
let r;
|
|
698
|
-
return e[9] !== d || e[10] !== t.max || e[11] !== t.min || e[12] !== t.name || e[13] !== t.step || e[14] !== m || e[15] !== i ? (r = /* @__PURE__ */ f(Re, { ...d, name: c, description: m, defaultValue: i, min: t.min, max: t.max, step: t.step }), e[9] = d, e[10] = t.max, e[11] = t.min, e[12] = t.name, e[13] = t.step, e[14] = m, e[15] = i, e[16] = r) : r = e[16], r;
|
|
699
|
-
}
|
|
700
|
-
case "text": {
|
|
701
|
-
const c = t.name, m = t.description || "";
|
|
702
|
-
let i;
|
|
703
|
-
e[17] !== l || e[18] !== t.defaultValue || e[19] !== t.id ? (i = U(l, t.id, t.defaultValue), e[17] = l, e[18] = t.defaultValue, e[19] = t.id, e[20] = i) : i = e[20];
|
|
704
|
-
let r;
|
|
705
|
-
return e[21] !== d || e[22] !== t.name || e[23] !== t.singleLine || e[24] !== m || e[25] !== i ? (r = /* @__PURE__ */ f(ct, { ...d, name: c, description: m, defaultValue: i, singleLine: t.singleLine }), e[21] = d, e[22] = t.name, e[23] = t.singleLine, e[24] = m, e[25] = i, e[26] = r) : r = e[26], r;
|
|
706
|
-
}
|
|
707
|
-
case "selection": {
|
|
708
|
-
const c = t.name, m = t.description || "";
|
|
709
|
-
let i;
|
|
710
|
-
e[27] !== l || e[28] !== t.defaultValue || e[29] !== t.id ? (i = U(l, t.id, t.defaultValue), e[27] = l, e[28] = t.defaultValue, e[29] = t.id, e[30] = i) : i = e[30];
|
|
711
|
-
let r;
|
|
712
|
-
return e[31] !== d || e[32] !== t.clearable || e[33] !== t.disabled || e[34] !== t.multiSelect || e[35] !== t.name || e[36] !== t.options || e[37] !== t.placeholder || e[38] !== m || e[39] !== i ? (r = /* @__PURE__ */ f(Ue, { ...d, name: c, description: m, defaultValue: i, options: t.options, multiSelect: t.multiSelect, placeholder: t.placeholder, clearable: t.clearable, disabled: t.disabled }), e[31] = d, e[32] = t.clearable, e[33] = t.disabled, e[34] = t.multiSelect, e[35] = t.name, e[36] = t.options, e[37] = t.placeholder, e[38] = m, e[39] = i, e[40] = r) : r = e[40], r;
|
|
713
|
-
}
|
|
714
|
-
case "date": {
|
|
715
|
-
const c = t.name, m = t.description || "";
|
|
716
|
-
let i;
|
|
717
|
-
e[41] !== l || e[42] !== t.defaultValue || e[43] !== t.id ? (i = U(l, t.id, t.defaultValue), e[41] = l, e[42] = t.defaultValue, e[43] = t.id, e[44] = i) : i = e[44];
|
|
718
|
-
let r;
|
|
719
|
-
return e[45] !== d || e[46] !== t.max || e[47] !== t.min || e[48] !== t.name || e[49] !== m || e[50] !== i ? (r = /* @__PURE__ */ f(Me, { ...d, name: c, description: m, defaultValue: i, min: t.min, max: t.max }), e[45] = d, e[46] = t.max, e[47] = t.min, e[48] = t.name, e[49] = m, e[50] = i, e[51] = r) : r = e[51], r;
|
|
720
|
-
}
|
|
721
|
-
case "color": {
|
|
722
|
-
const c = t.name, m = t.description || "";
|
|
723
|
-
let i;
|
|
724
|
-
e[52] !== l || e[53] !== t.defaultValue || e[54] !== t.id ? (i = U(l, t.id, t.defaultValue), e[52] = l, e[53] = t.defaultValue, e[54] = t.id, e[55] = i) : i = e[55];
|
|
725
|
-
let r;
|
|
726
|
-
return e[56] !== d || e[57] !== t.name || e[58] !== m || e[59] !== i ? (r = /* @__PURE__ */ f(Be, { ...d, name: c, description: m, defaultValue: i }), e[56] = d, e[57] = t.name, e[58] = m, e[59] = i, e[60] = r) : r = e[60], r;
|
|
727
|
-
}
|
|
728
|
-
case "property": {
|
|
729
|
-
let c;
|
|
730
|
-
return e[61] !== h || e[62] !== t ? (c = /* @__PURE__ */ f(gt, { param: t, fullWidth: h }), e[61] = h, e[62] = t, e[63] = c) : c = e[63], c;
|
|
731
|
-
}
|
|
732
|
-
case "readOnly": {
|
|
733
|
-
let c;
|
|
734
|
-
return e[64] !== h || e[65] !== t ? (c = /* @__PURE__ */ f(je, { param: t, fullWidth: h }), e[64] = h, e[65] = t, e[66] = c) : c = e[66], c;
|
|
735
|
-
}
|
|
736
|
-
case "resource": {
|
|
737
|
-
const c = t.name, m = t.description;
|
|
738
|
-
let i;
|
|
739
|
-
e[67] !== l || e[68] !== t.defaultValue || e[69] !== t.id ? (i = U(l, t.id, t.defaultValue), e[67] = l, e[68] = t.defaultValue, e[69] = t.id, e[70] = i) : i = e[70];
|
|
740
|
-
let r;
|
|
741
|
-
return e[71] !== d || e[72] !== a || e[73] !== t.description || e[74] !== t.editable || e[75] !== t.emptyText || e[76] !== t.multiSelect || e[77] !== t.name || e[78] !== t.options || e[79] !== t.placeholder || e[80] !== i ? (r = /* @__PURE__ */ f(ot, { ...d, name: c, description: m, defaultValue: i, options: t.options, multiSelect: t.multiSelect, editable: t.editable, placeholder: t.placeholder, emptyText: t.emptyText, onOpenResource: a }), e[71] = d, e[72] = a, e[73] = t.description, e[74] = t.editable, e[75] = t.emptyText, e[76] = t.multiSelect, e[77] = t.name, e[78] = t.options, e[79] = t.placeholder, e[80] = i, e[81] = r) : r = e[81], r;
|
|
742
|
-
}
|
|
743
|
-
case "range": {
|
|
744
|
-
const c = t.name, m = t.description;
|
|
745
|
-
let i;
|
|
746
|
-
e[82] !== l || e[83] !== t.defaultValue || e[84] !== t.id ? (i = U(l, t.id, t.defaultValue), e[82] = l, e[83] = t.defaultValue, e[84] = t.id, e[85] = i) : i = e[85];
|
|
747
|
-
let r;
|
|
748
|
-
return e[86] !== d || e[87] !== t.description || e[88] !== t.markerCount || e[89] !== t.max || e[90] !== t.min || e[91] !== t.name || e[92] !== t.step || e[93] !== t.unit || e[94] !== i ? (r = /* @__PURE__ */ f(et, { ...d, name: c, description: m, defaultValue: i, min: t.min, max: t.max, step: t.step, unit: t.unit, markerCount: t.markerCount }), e[86] = d, e[87] = t.description, e[88] = t.markerCount, e[89] = t.max, e[90] = t.min, e[91] = t.name, e[92] = t.step, e[93] = t.unit, e[94] = i, e[95] = r) : r = e[95], r;
|
|
749
|
-
}
|
|
750
|
-
case "segmented": {
|
|
751
|
-
const c = t.name, m = t.description;
|
|
752
|
-
let i;
|
|
753
|
-
e[96] !== l || e[97] !== t.defaultValue || e[98] !== t.id ? (i = U(l, t.id, t.defaultValue), e[96] = l, e[97] = t.defaultValue, e[98] = t.id, e[99] = i) : i = e[99];
|
|
754
|
-
let r;
|
|
755
|
-
return e[100] !== d || e[101] !== t.description || e[102] !== t.name || e[103] !== t.options || e[104] !== t.variant || e[105] !== i ? (r = /* @__PURE__ */ f(at, { ...d, name: c, description: m, defaultValue: i, options: t.options, variant: t.variant }), e[100] = d, e[101] = t.description, e[102] = t.name, e[103] = t.options, e[104] = t.variant, e[105] = i, e[106] = r) : r = e[106], r;
|
|
756
|
-
}
|
|
757
|
-
case "actions": {
|
|
758
|
-
const c = t.name, m = t.description;
|
|
759
|
-
let i;
|
|
760
|
-
e[107] !== l || e[108] !== t.defaultValue || e[109] !== t.id ? (i = U(l, t.id, t.defaultValue), e[107] = l, e[108] = t.defaultValue, e[109] = t.id, e[110] = i) : i = e[110];
|
|
761
|
-
let r;
|
|
762
|
-
return e[111] !== d || e[112] !== t.description || e[113] !== t.name || e[114] !== t.options || e[115] !== i ? (r = /* @__PURE__ */ f(Ge, { ...d, name: c, description: m, defaultValue: i, options: t.options }), e[111] = d, e[112] = t.description, e[113] = t.name, e[114] = t.options, e[115] = i, e[116] = r) : r = e[116], r;
|
|
763
|
-
}
|
|
764
|
-
case "anchorGrid": {
|
|
765
|
-
const c = t.name, m = t.description;
|
|
766
|
-
let i;
|
|
767
|
-
e[117] !== l || e[118] !== t.defaultValue || e[119] !== t.id ? (i = U(l, t.id, t.defaultValue), e[117] = l, e[118] = t.defaultValue, e[119] = t.id, e[120] = i) : i = e[120];
|
|
768
|
-
let r;
|
|
769
|
-
return e[121] !== d || e[122] !== t.description || e[123] !== t.name || e[124] !== i ? (r = /* @__PURE__ */ f(He, { ...d, name: c, description: m, defaultValue: i }), e[121] = d, e[122] = t.description, e[123] = t.name, e[124] = i, e[125] = r) : r = e[125], r;
|
|
770
|
-
}
|
|
771
|
-
case "vector": {
|
|
772
|
-
const c = t.name, m = t.description;
|
|
773
|
-
let i;
|
|
774
|
-
e[126] !== l || e[127] !== t.defaultValue || e[128] !== t.id ? (i = U(l, t.id, t.defaultValue), e[126] = l, e[127] = t.defaultValue, e[128] = t.id, e[129] = i) : i = e[129];
|
|
775
|
-
let r;
|
|
776
|
-
return e[130] !== d || e[131] !== t.description || e[132] !== t.max || e[133] !== t.min || e[134] !== t.name || e[135] !== t.step || e[136] !== t.xLabel || e[137] !== t.yLabel || e[138] !== i ? (r = /* @__PURE__ */ f(ht, { ...d, name: c, description: m, defaultValue: i, xLabel: t.xLabel, yLabel: t.yLabel, min: t.min, max: t.max, step: t.step }), e[130] = d, e[131] = t.description, e[132] = t.max, e[133] = t.min, e[134] = t.name, e[135] = t.step, e[136] = t.xLabel, e[137] = t.yLabel, e[138] = i, e[139] = r) : r = e[139], r;
|
|
777
|
-
}
|
|
778
|
-
case "fileDrop": {
|
|
779
|
-
const c = t.name, m = t.description;
|
|
780
|
-
let i;
|
|
781
|
-
e[140] !== l || e[141] !== t.defaultValue || e[142] !== t.id ? (i = U(l, t.id, t.defaultValue), e[140] = l, e[141] = t.defaultValue, e[142] = t.id, e[143] = i) : i = e[143];
|
|
782
|
-
let r;
|
|
783
|
-
return e[144] !== d || e[145] !== t.accept || e[146] !== t.assetKind || e[147] !== t.description || e[148] !== t.name || e[149] !== i ? (r = /* @__PURE__ */ f(qe, { ...d, name: c, description: m, defaultValue: i, accept: t.accept, assetKind: t.assetKind }), e[144] = d, e[145] = t.accept, e[146] = t.assetKind, e[147] = t.description, e[148] = t.name, e[149] = i, e[150] = r) : r = e[150], r;
|
|
784
|
-
}
|
|
785
|
-
default:
|
|
786
|
-
return null;
|
|
787
|
-
}
|
|
788
|
-
}, Se = (o) => {
|
|
789
|
-
const e = F(7), {
|
|
790
|
-
title: t,
|
|
791
|
-
description: l
|
|
792
|
-
} = o;
|
|
793
|
-
let n;
|
|
794
|
-
e[0] !== t ? (n = /* @__PURE__ */ f(H, { textStyle: "label/M/medium", color: "fg", truncate: !0, children: t }), e[0] = t, e[1] = n) : n = e[1];
|
|
795
|
-
let a;
|
|
796
|
-
e[2] !== l ? (a = l ? /* @__PURE__ */ f(H, { textStyle: "label/XS/regular", color: "fg.muted", lineClamp: 2, children: l }) : null, e[2] = l, e[3] = a) : a = e[3];
|
|
797
|
-
let s;
|
|
798
|
-
return e[4] !== n || e[5] !== a ? (s = /* @__PURE__ */ z(de, { gap: "2xs", minW: "0", textAlign: "left", children: [
|
|
799
|
-
n,
|
|
800
|
-
a
|
|
801
|
-
] }), e[4] = n, e[5] = a, e[6] = s) : s = e[6], s;
|
|
802
|
-
}, xt = (o) => {
|
|
803
|
-
const e = F(14), {
|
|
804
|
-
title: t,
|
|
805
|
-
description: l,
|
|
806
|
-
open: n,
|
|
807
|
-
collapsible: a,
|
|
808
|
-
onToggle: s
|
|
809
|
-
} = o;
|
|
810
|
-
if (!a) {
|
|
811
|
-
let m;
|
|
812
|
-
return e[0] !== l || e[1] !== t ? (m = /* @__PURE__ */ f(D, { alignItems: "center", justifyContent: "space-between", minHeight: "2.25rem", px: "sm", py: "xs", children: /* @__PURE__ */ f(Se, { title: t, description: l }) }), e[0] = l, e[1] = t, e[2] = m) : m = e[2], m;
|
|
813
|
-
}
|
|
814
|
-
let u;
|
|
815
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
816
|
-
bg: "transparent"
|
|
817
|
-
}, e[3] = u) : u = e[3];
|
|
818
|
-
let h;
|
|
819
|
-
e[4] !== l || e[5] !== t ? (h = /* @__PURE__ */ f(Se, { title: t, description: l }), e[4] = l, e[5] = t, e[6] = h) : h = e[6];
|
|
820
|
-
const p = n ? "rotate(0deg)" : "rotate(-90deg)";
|
|
821
|
-
let d;
|
|
822
|
-
e[7] !== p ? (d = /* @__PURE__ */ f(ie, { as: Ne, boxSize: "14px", color: "fg.muted", flexShrink: 0, transform: p, transition: "transform 120ms ease" }), e[7] = p, e[8] = d) : d = e[8];
|
|
823
|
-
let c;
|
|
824
|
-
return e[9] !== s || e[10] !== n || e[11] !== h || e[12] !== d ? (c = /* @__PURE__ */ z(ce, { "aria-expanded": n, borderRadius: "0", height: "auto", justifyContent: "space-between", minHeight: "2.25rem", onClick: s, px: "sm", py: "xs", size: "xs", variant: "ghost", width: "full", _expanded: u, children: [
|
|
825
|
-
h,
|
|
826
|
-
d
|
|
827
|
-
] }), e[9] = s, e[10] = n, e[11] = h, e[12] = d, e[13] = c) : c = e[13], c;
|
|
828
|
-
}, vt = (o) => {
|
|
829
|
-
const e = F(18), {
|
|
830
|
-
params: t,
|
|
831
|
-
defaultValues: l,
|
|
832
|
-
onChange: n,
|
|
833
|
-
onOpenResource: a,
|
|
834
|
-
readOnly: s,
|
|
835
|
-
fullWidth: u,
|
|
836
|
-
defaultCollapsed: h,
|
|
837
|
-
isFirst: p,
|
|
838
|
-
variant: d
|
|
839
|
-
} = o;
|
|
840
|
-
let c = h || p ? "2xs" : "xs";
|
|
841
|
-
d === "small" && (c = "none");
|
|
842
|
-
const m = c;
|
|
843
|
-
let i;
|
|
844
|
-
if (e[0] !== l || e[1] !== u || e[2] !== n || e[3] !== a || e[4] !== t || e[5] !== s || e[6] !== d) {
|
|
845
|
-
let x;
|
|
846
|
-
e[8] !== l || e[9] !== u || e[10] !== n || e[11] !== a || e[12] !== s || e[13] !== d ? (x = (g) => /* @__PURE__ */ f(A, { px: "sm", py: d === "small" ? "2xs" : "xs", children: /* @__PURE__ */ f(bt, { param: g, defaultValues: l, onChange: n, onOpenResource: a, readOnly: s, fullWidth: u }) }, g.id), e[8] = l, e[9] = u, e[10] = n, e[11] = a, e[12] = s, e[13] = d, e[14] = x) : x = e[14], i = t.map(x), e[0] = l, e[1] = u, e[2] = n, e[3] = a, e[4] = t, e[5] = s, e[6] = d, e[7] = i;
|
|
847
|
-
} else
|
|
848
|
-
i = e[7];
|
|
849
|
-
let r;
|
|
850
|
-
return e[15] !== c || e[16] !== i ? (r = /* @__PURE__ */ f(de, { gap: "0", py: m, children: i }), e[15] = c, e[16] = i, e[17] = r) : r = e[17], r;
|
|
851
|
-
}, $e = (o) => {
|
|
852
|
-
const e = F(22), {
|
|
853
|
-
title: t,
|
|
854
|
-
description: l,
|
|
855
|
-
params: n,
|
|
856
|
-
defaultValues: a,
|
|
857
|
-
onChange: s,
|
|
858
|
-
onOpenResource: u,
|
|
859
|
-
readOnly: h,
|
|
860
|
-
fullWidth: p,
|
|
861
|
-
collapsible: d,
|
|
862
|
-
defaultCollapsed: c,
|
|
863
|
-
isFirst: m,
|
|
864
|
-
variant: i
|
|
865
|
-
} = o, r = c === void 0 ? !1 : c, x = m === void 0 ? !1 : m, g = i === void 0 ? "default" : i, [V, S] = K(!r), b = !!(!!t && d), v = b ? V : !0, R = x ? "0" : "1px";
|
|
866
|
-
let $;
|
|
867
|
-
e[0] !== b || e[1] !== v || e[2] !== l || e[3] !== t ? ($ = t ? /* @__PURE__ */ f(xt, { title: t, description: l, open: v, collapsible: b, onToggle: () => S(yt) }) : null, e[0] = b, e[1] = v, e[2] = l, e[3] = t, e[4] = $) : $ = e[4];
|
|
868
|
-
let C;
|
|
869
|
-
e[5] !== r || e[6] !== a || e[7] !== p || e[8] !== x || e[9] !== s || e[10] !== u || e[11] !== n || e[12] !== h || e[13] !== g ? (C = /* @__PURE__ */ f(ge.Content, { children: /* @__PURE__ */ f(vt, { params: n, defaultValues: a, onChange: s, onOpenResource: u, readOnly: h, fullWidth: p, defaultCollapsed: r, isFirst: x, variant: g }) }), e[5] = r, e[6] = a, e[7] = p, e[8] = x, e[9] = s, e[10] = u, e[11] = n, e[12] = h, e[13] = g, e[14] = C) : C = e[14];
|
|
870
|
-
let I;
|
|
871
|
-
e[15] !== v || e[16] !== C ? (I = /* @__PURE__ */ f(ge.Root, { open: v, children: C }), e[15] = v, e[16] = C, e[17] = I) : I = e[17];
|
|
872
|
-
let w;
|
|
873
|
-
return e[18] !== R || e[19] !== $ || e[20] !== I ? (w = /* @__PURE__ */ z(de, { as: "section", gap: "0", borderTopWidth: R, borderColor: "border.subtle", minW: "0", children: [
|
|
874
|
-
$,
|
|
875
|
-
I
|
|
876
|
-
] }), e[18] = R, e[19] = $, e[20] = I, e[21] = w) : w = e[21], w;
|
|
877
|
-
};
|
|
878
|
-
function yt(o) {
|
|
879
|
-
return !o;
|
|
880
|
-
}
|
|
881
|
-
const kt = (o) => {
|
|
882
|
-
const e = F(34), {
|
|
883
|
-
params: t,
|
|
884
|
-
groups: l,
|
|
885
|
-
defaultValues: n,
|
|
886
|
-
onChange: a,
|
|
887
|
-
onOpenResource: s,
|
|
888
|
-
readOnly: u,
|
|
889
|
-
fullWidth: h,
|
|
890
|
-
variant: p
|
|
891
|
-
} = o;
|
|
892
|
-
let d;
|
|
893
|
-
e[0] !== t ? (d = t === void 0 ? [] : t, e[0] = t, e[1] = d) : d = e[1];
|
|
894
|
-
const c = d;
|
|
895
|
-
let m;
|
|
896
|
-
e[2] !== l ? (m = l === void 0 ? [] : l, e[2] = l, e[3] = m) : m = e[3];
|
|
897
|
-
const i = m;
|
|
898
|
-
let r;
|
|
899
|
-
e[4] !== n ? (r = n === void 0 ? {} : n, e[4] = n, e[5] = r) : r = e[5];
|
|
900
|
-
const x = r, g = h === void 0 ? !1 : h, V = p === void 0 ? "default" : p, S = a ?? Ct;
|
|
901
|
-
let y;
|
|
902
|
-
e[6] !== x || e[7] !== g || e[8] !== S || e[9] !== s || e[10] !== c || e[11] !== u || e[12] !== V ? (y = c.length > 0 ? /* @__PURE__ */ f($e, { params: c, defaultValues: x, onChange: S, onOpenResource: s, readOnly: u, fullWidth: g, variant: V, isFirst: !0 }) : null, e[6] = x, e[7] = g, e[8] = S, e[9] = s, e[10] = c, e[11] = u, e[12] = V, e[13] = y) : y = e[13];
|
|
903
|
-
let b;
|
|
904
|
-
if (e[14] !== x || e[15] !== g || e[16] !== i || e[17] !== S || e[18] !== s || e[19] !== c.length || e[20] !== u || e[21] !== V) {
|
|
905
|
-
let R;
|
|
906
|
-
e[23] !== x || e[24] !== g || e[25] !== S || e[26] !== s || e[27] !== c.length || e[28] !== u || e[29] !== V ? (R = ($, C) => /* @__PURE__ */ f($e, { title: $.title, description: $.description, params: $.params, defaultValues: x, onChange: S, onOpenResource: s, readOnly: u, fullWidth: g, variant: V, collapsible: $.collapsible, defaultCollapsed: $.defaultCollapsed, isFirst: c.length === 0 && C === 0 }, $.id), e[23] = x, e[24] = g, e[25] = S, e[26] = s, e[27] = c.length, e[28] = u, e[29] = V, e[30] = R) : R = e[30], b = i.map(R), e[14] = x, e[15] = g, e[16] = i, e[17] = S, e[18] = s, e[19] = c.length, e[20] = u, e[21] = V, e[22] = b;
|
|
907
|
-
} else
|
|
908
|
-
b = e[22];
|
|
909
|
-
let v;
|
|
910
|
-
return e[31] !== y || e[32] !== b ? (v = /* @__PURE__ */ z(de, { flex: "1", maxW: "full", gap: "0", children: [
|
|
911
|
-
y,
|
|
912
|
-
b
|
|
913
|
-
] }), e[31] = y, e[32] = b, e[33] = v) : v = e[33], v;
|
|
914
|
-
};
|
|
915
|
-
function Ct() {
|
|
916
|
-
}
|
|
917
|
-
export {
|
|
918
|
-
Ie as A,
|
|
919
|
-
qe as F,
|
|
920
|
-
kt as P,
|
|
921
|
-
et as R,
|
|
922
|
-
at as S,
|
|
923
|
-
ct as T,
|
|
924
|
-
ht as V,
|
|
925
|
-
Ge as a,
|
|
926
|
-
He as b,
|
|
927
|
-
bt as c,
|
|
928
|
-
ft as d,
|
|
929
|
-
$e as e,
|
|
930
|
-
ot as f,
|
|
931
|
-
Wt as i
|
|
932
|
-
};
|
|
933
|
-
//# sourceMappingURL=param-editor-CYZJbmKu.js.map
|