@pstdio/ui 0.20.1 → 0.22.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-BVMyKttu.js → MermaidComponent-D92GMhht.js} +3 -3
- package/dist/{MermaidComponent-BVMyKttu.js.map → MermaidComponent-D92GMhht.js.map} +1 -1
- package/dist/chat-ui.d.ts +2 -0
- package/dist/chat-ui.js +3 -7
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/data-table/build-columns.d.ts +2 -0
- package/dist/components/data-table/data-table-column-menu.d.ts +2 -0
- package/dist/components/data-table/data-table-row-display.d.ts +11 -0
- package/dist/components/data-table/data-table-table-parts.d.ts +1 -0
- package/dist/components/data-table/edit-mode-data-table-body.d.ts +1 -0
- package/dist/components/data-table/edit-mode-data-table-cell.d.ts +1 -0
- package/dist/components/data-table/edit-mode-data-table-header.d.ts +1 -0
- package/dist/components/data-table/types.d.ts +1 -0
- package/dist/components/diff-viewer/code-editor.d.ts +8 -2
- package/dist/components/diff-viewer/index.d.ts +1 -0
- package/dist/components/kanban-renderer/collection-badge.d.ts +7 -0
- package/dist/components/kanban-renderer/index.d.ts +1 -1
- package/dist/components/kanban-renderer/kanban-renderer-helpers.d.ts +2 -1
- package/dist/components/kanban-renderer/types.d.ts +20 -1
- package/dist/components/list-row/list-row-content.d.ts +1 -0
- package/dist/components/param-editor/param-editor-presentation.d.ts +1 -1
- package/dist/components/param-editor/param-editor.types.d.ts +5 -193
- package/dist/components/rich-text/shared/markdown-ast.d.ts +1 -0
- package/dist/components/rich-text/shared/markdown-source-document.d.ts +7 -0
- package/dist/components/rich-text/shared/markdown-source-links.d.ts +11 -0
- package/dist/components/rich-text/shared/markdown-source-map.d.ts +10 -0
- package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
- package/dist/components/tag-editor/tag-editor-row.d.ts +2 -1
- package/dist/components/tag-editor/tag-editor.types.d.ts +13 -0
- package/dist/components/tag-editor/tag-settings-panel.d.ts +1 -1
- package/dist/components/tree-list/tree-list-drag-provider.d.ts +13 -0
- package/dist/components/tree-list/tree-list-order.store.d.ts +4 -1
- package/dist/components/tree-list/tree-list-reorder.d.ts +14 -3
- package/dist/components/tree-list/tree-list-sortable.d.ts +2 -0
- package/dist/components/tree-list/tree-list-visibility-filter.d.ts +2 -2
- package/dist/components/tree-list/tree-list.d.ts +3 -0
- package/dist/components/tree-list/tree-list.types.d.ts +4 -0
- package/dist/data-table.d.ts +2 -0
- package/dist/data-table.js +740 -704
- package/dist/data-table.js.map +1 -1
- package/dist/diff.d.ts +2 -0
- package/dist/diff.js +532 -533
- package/dist/diff.js.map +1 -1
- package/dist/edit-mode-data-table-DGgRuSW3.js +846 -0
- package/dist/edit-mode-data-table-DGgRuSW3.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1603 -1492
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-CpegGbwq.js → kanban-renderer-toolbar-Bl8xXdwU.js} +527 -469
- package/dist/kanban-renderer-toolbar-Bl8xXdwU.js.map +1 -0
- package/dist/kanban-renderer.d.ts +2 -0
- package/dist/kanban-renderer.js +21 -21
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/lazy-markdown-editor-CCOchoJX.js +235 -0
- package/dist/lazy-markdown-editor-CCOchoJX.js.map +1 -0
- package/dist/list-row-DCgdza1i.js +812 -0
- package/dist/list-row-DCgdza1i.js.map +1 -0
- package/dist/markdown-CASvn1Z2.js +1643 -0
- package/dist/markdown-CASvn1Z2.js.map +1 -0
- package/dist/markdown-editor-C4GCyebp.js +1019 -0
- package/dist/markdown-editor-C4GCyebp.js.map +1 -0
- package/dist/{mermaid-renderer-H3IhLqnQ.js → mermaid-renderer-CVnuKs-A.js} +2 -2
- package/dist/{mermaid-renderer-H3IhLqnQ.js.map → mermaid-renderer-CVnuKs-A.js.map} +1 -1
- package/dist/mermaid.d.ts +2 -0
- package/dist/mermaid.js +1 -1
- package/dist/monaco-browser-CgvlArN7.js +21 -0
- package/dist/monaco-browser-CgvlArN7.js.map +1 -0
- package/dist/{param-editor-B8Ff9Nm8.js → param-editor-CkDq623X.js} +2 -2
- package/dist/{param-editor-B8Ff9Nm8.js.map → param-editor-CkDq623X.js.map} +1 -1
- package/dist/param-editor-field-DRgbnL7-.js +2809 -0
- package/dist/param-editor-field-DRgbnL7-.js.map +1 -0
- package/dist/rich-message-DARuDVOX.js +628 -0
- package/dist/{rich-message-DdFYRzTo.js.map → rich-message-DARuDVOX.js.map} +1 -1
- package/dist/rich-text.d.ts +2 -0
- package/dist/rich-text.js +48 -47
- package/dist/rich-text.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/terminal.d.ts +2 -0
- package/dist/terminal.js +1 -1
- package/dist/terminal.js.map +1 -1
- package/dist/theme/primitives/sizes.d.ts +9 -0
- package/dist/{theme-BH4fSst9.js → theme-B-l5_a6F.js} +69 -50
- package/dist/theme-B-l5_a6F.js.map +1 -0
- package/dist/theme-preference-Bpobguh4.js +114 -0
- package/dist/theme-preference-Bpobguh4.js.map +1 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +1 -1
- package/dist/tree-list-AlO5ZmxQ.js +1262 -0
- package/dist/tree-list-AlO5ZmxQ.js.map +1 -0
- package/dist/utils/theme-preference.d.ts +4 -1
- package/dist/workspace-badge-BR_GgsAG.js +175 -0
- package/dist/workspace-badge-BR_GgsAG.js.map +1 -0
- package/package.json +5 -42
- package/dist/dialog-accept-shortcut-DAEBsoWW.js +0 -7
- package/dist/dialog-accept-shortcut-DAEBsoWW.js.map +0 -1
- package/dist/edit-mode-data-table-D6NeiDJx.js +0 -775
- package/dist/edit-mode-data-table-D6NeiDJx.js.map +0 -1
- package/dist/editor-config-D9OksZ93.js +0 -2416
- package/dist/editor-config-D9OksZ93.js.map +0 -1
- package/dist/kanban-renderer-toolbar-CpegGbwq.js.map +0 -1
- package/dist/lazy-markdown-editor-B7uP2ALS.js +0 -26
- package/dist/lazy-markdown-editor-B7uP2ALS.js.map +0 -1
- package/dist/list-row-9oxy-F0v.js +0 -796
- package/dist/list-row-9oxy-F0v.js.map +0 -1
- package/dist/monaco-browser-CO0NxK_Z.js +0 -19
- package/dist/monaco-browser-CO0NxK_Z.js.map +0 -1
- package/dist/number-input-WUfejtNx.js +0 -343
- package/dist/number-input-WUfejtNx.js.map +0 -1
- package/dist/param-editor-field-Cu4pto_a.js +0 -2845
- package/dist/param-editor-field-Cu4pto_a.js.map +0 -1
- package/dist/rich-message-DdFYRzTo.js +0 -658
- package/dist/theme-BH4fSst9.js.map +0 -1
- package/dist/theme-preference-DyymrYpR.js +0 -123
- package/dist/theme-preference-DyymrYpR.js.map +0 -1
- package/dist/tree-list-uV4UFj0x.js +0 -1116
- package/dist/tree-list-uV4UFj0x.js.map +0 -1
|
@@ -0,0 +1,2809 @@
|
|
|
1
|
+
import { jsx as l, jsxs as _, Fragment as at } from "react/jsx-runtime";
|
|
2
|
+
import { c as j } from "react/compiler-runtime";
|
|
3
|
+
import { Text as ye, Popover as xe, chakra as Ze, Image as Qe, IconButton as Be, Badge as Fe, Icon as pe, HStack as He, Flex as G, Box as N, Menu as Se, Portal as ct, Button as Ie, Grid as st, parseColor as dt, ColorPicker as ce, Input as $e, Stack as Te, Wrap as Je, Spinner as ft, Textarea as et, Slider as ze, Group as ut } from "@chakra-ui/react";
|
|
4
|
+
import * as bt from "react";
|
|
5
|
+
import { useState as J, useEffect as ne, useRef as ge } from "react";
|
|
6
|
+
import { S as mt, L as ht, a as Ge, N as Ue, R as pt } from "./lazy-markdown-editor-CCOchoJX.js";
|
|
7
|
+
import { X as gt, CircleHelp as vt, Ban as xt, Flag as yt, Bug as St, Sparkles as Ct, BookOpen as wt, Wrench as kt, Zap as Vt, Feather as $t, Scale as zt, Layers as Lt, Star as It, Flame as Tt, Lightbulb as Wt, Shield as Rt, Eye as Ot, Timer as Et, Tag as _t, Code as Nt, Rocket as Pt, Heart as At, Bookmark as Ht, Target as jt, Bell as Bt, Hash as Ft, Ticket as Gt, GitBranch as Ut, Bot as qt, Puzzle as Mt, Workflow as Dt, Kanban as Kt, MessageSquare as Xt, Folder as Yt, FileText as Zt, History as Qt, Play as Jt, Terminal as en, Cpu as tn, Users as nn, Component as on, SquareKanban as ln, GitCommitHorizontal as rn, Inbox as an, ListChecks as cn, Archive as sn, Link as dn, Settings as fn, Circle as un, ChevronDown as tt, SquareCheck as bn, Square as mn, Check as hn, Paperclip as pn, CircleAlert as gn, CircleCheck as vn, Clock3 as xn, Plus as yn } from "lucide-react";
|
|
8
|
+
import { T as Sn } from "./browser-storage-DPtOQJx0.js";
|
|
9
|
+
import { L as Pe, b as Cn } from "./list-row-DCgdza1i.js";
|
|
10
|
+
import "./empty-state-Bo4HVrgr.js";
|
|
11
|
+
const wn = (a) => a.type.startsWith("image/"), kn = (a) => a < 1024 ? `${a.toString()} B` : a < 1024 * 1024 ? `${Math.round(a / 1024).toString()} KB` : `${(a / (1024 * 1024)).toFixed(1)} MB`, Vn = (a) => {
|
|
12
|
+
const e = j(22), {
|
|
13
|
+
file: t,
|
|
14
|
+
removeLabel: n,
|
|
15
|
+
disabled: o,
|
|
16
|
+
onRemove: c
|
|
17
|
+
} = a, [i, r] = J(null);
|
|
18
|
+
let s, f;
|
|
19
|
+
e[0] !== t ? (s = () => {
|
|
20
|
+
if (!wn(t))
|
|
21
|
+
return;
|
|
22
|
+
const k = URL.createObjectURL(t);
|
|
23
|
+
return r(k), () => URL.revokeObjectURL(k);
|
|
24
|
+
}, f = [t], e[0] = t, e[1] = s, e[2] = f) : (s = e[1], f = e[2]), ne(s, f);
|
|
25
|
+
let b;
|
|
26
|
+
e[3] !== t.name ? (b = /* @__PURE__ */ l(ye, { as: "span", textStyle: "label/XS/medium", lineClamp: 1, maxW: "180px", children: t.name }), e[3] = t.name, e[4] = b) : b = e[4];
|
|
27
|
+
const m = b;
|
|
28
|
+
let S;
|
|
29
|
+
e[5] !== t.name || e[6] !== m || e[7] !== i ? (S = i ? /* @__PURE__ */ _(xe.Root, { positioning: {
|
|
30
|
+
placement: "top"
|
|
31
|
+
}, children: [
|
|
32
|
+
/* @__PURE__ */ l(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ l(Ze.button, { type: "button", cursor: "pointer", minW: "0", display: "inline-flex", children: m }) }),
|
|
33
|
+
/* @__PURE__ */ l(xe.Positioner, { children: /* @__PURE__ */ l(xe.Content, { w: "auto", p: "2xs", bg: "bg", children: /* @__PURE__ */ l(Qe, { src: i, alt: t.name, maxW: "240px", maxH: "240px", borderRadius: "sm" }) }) })
|
|
34
|
+
] }) : m, e[5] = t.name, e[6] = m, e[7] = i, e[8] = S) : S = e[8];
|
|
35
|
+
let u;
|
|
36
|
+
e[9] !== t.size ? (u = kn(t.size), e[9] = t.size, e[10] = u) : u = e[10];
|
|
37
|
+
let h;
|
|
38
|
+
e[11] !== u ? (h = /* @__PURE__ */ l(ye, { as: "span", textStyle: "label/XS/regular", color: "fg.subtle", children: u }), e[11] = u, e[12] = h) : h = e[12];
|
|
39
|
+
let d;
|
|
40
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ l(gt, { size: 12 }), e[13] = d) : d = e[13];
|
|
41
|
+
let v;
|
|
42
|
+
e[14] !== o || e[15] !== c || e[16] !== n ? (v = /* @__PURE__ */ l(Be, { size: "2xs", variant: "ghost", "aria-label": n, disabled: o, onClick: c, children: d }), e[14] = o, e[15] = c, e[16] = n, e[17] = v) : v = e[17];
|
|
43
|
+
let L;
|
|
44
|
+
return e[18] !== S || e[19] !== h || e[20] !== v ? (L = /* @__PURE__ */ _(Fe, { variant: "chip", gap: "2xs", pr: "2xs", children: [
|
|
45
|
+
S,
|
|
46
|
+
h,
|
|
47
|
+
v
|
|
48
|
+
] }), e[18] = S, e[19] = h, e[20] = v, e[21] = L) : L = e[21], L;
|
|
49
|
+
}, M = (a) => {
|
|
50
|
+
const e = j(10), {
|
|
51
|
+
name: t,
|
|
52
|
+
description: n,
|
|
53
|
+
compact: o
|
|
54
|
+
} = a, c = o === void 0 ? !1 : o, i = c ? "label/XS/medium" : "label/S/medium", r = c ? "0.08em" : void 0, s = c ? "uppercase" : void 0;
|
|
55
|
+
let f;
|
|
56
|
+
e[0] !== t || e[1] !== i || e[2] !== r || e[3] !== s ? (f = /* @__PURE__ */ l(ye, { textStyle: i, color: "fg.muted", letterSpacing: r, textTransform: s, truncate: !0, children: t }), e[0] = t, e[1] = i, e[2] = r, e[3] = s, e[4] = f) : f = e[4];
|
|
57
|
+
let b;
|
|
58
|
+
e[5] !== n ? (b = n ? /* @__PURE__ */ l(Sn, { content: n, children: /* @__PURE__ */ l(pe, { as: vt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help", flexShrink: 0 }) }) : null, e[5] = n, e[6] = b) : b = e[6];
|
|
59
|
+
let m;
|
|
60
|
+
return e[7] !== f || e[8] !== b ? (m = /* @__PURE__ */ _(He, { gap: "1", alignItems: "center", minW: "0", children: [
|
|
61
|
+
f,
|
|
62
|
+
b
|
|
63
|
+
] }), e[7] = f, e[8] = b, e[9] = m) : m = e[9], m;
|
|
64
|
+
}, se = (a) => {
|
|
65
|
+
const e = j(17), {
|
|
66
|
+
name: t,
|
|
67
|
+
description: n,
|
|
68
|
+
hideLabel: o,
|
|
69
|
+
fullWidth: c,
|
|
70
|
+
orientation: i,
|
|
71
|
+
labelTrailing: r,
|
|
72
|
+
children: s
|
|
73
|
+
} = a, f = o === void 0 ? !1 : o, b = c === void 0 ? !1 : c, m = i === void 0 ? "auto" : i;
|
|
74
|
+
let S;
|
|
75
|
+
e[0] !== n || e[1] !== f || e[2] !== t ? (S = f || !t ? null : /* @__PURE__ */ l(M, { name: t, description: n }), e[0] = n, e[1] = f, e[2] = t, e[3] = S) : S = e[3];
|
|
76
|
+
const u = S;
|
|
77
|
+
if ((m === "auto" ? b ? "stacked" : "inline" : m) === "stacked") {
|
|
78
|
+
const L = u || r;
|
|
79
|
+
let k;
|
|
80
|
+
e[4] !== L || e[5] !== u || e[6] !== r ? (k = L ? /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", gap: "xs", mb: "xs", minW: "0", children: [
|
|
81
|
+
u,
|
|
82
|
+
r
|
|
83
|
+
] }) : null, e[4] = L, e[5] = u, e[6] = r, e[7] = k) : k = e[7];
|
|
84
|
+
let w;
|
|
85
|
+
return e[8] !== s || e[9] !== k ? (w = /* @__PURE__ */ _(N, { minW: "0", children: [
|
|
86
|
+
k,
|
|
87
|
+
s
|
|
88
|
+
] }), e[8] = s, e[9] = k, e[10] = w) : w = e[10], w;
|
|
89
|
+
}
|
|
90
|
+
let d;
|
|
91
|
+
e[11] !== s || e[12] !== r ? (d = /* @__PURE__ */ _(G, { alignItems: "center", gap: "xs", minW: "0", children: [
|
|
92
|
+
r,
|
|
93
|
+
s
|
|
94
|
+
] }), e[11] = s, e[12] = r, e[13] = d) : d = e[13];
|
|
95
|
+
let v;
|
|
96
|
+
return e[14] !== u || e[15] !== d ? (v = /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", minW: "0", children: [
|
|
97
|
+
u,
|
|
98
|
+
d
|
|
99
|
+
] }), e[14] = u, e[15] = d, e[16] = v) : v = e[16], v;
|
|
100
|
+
}, $n = (a) => {
|
|
101
|
+
const e = j(2);
|
|
102
|
+
let t;
|
|
103
|
+
return e[0] !== a ? (t = /* @__PURE__ */ l(Fe, { size: "sm", variant: "chip", ...a }), e[0] = a, e[1] = t) : t = e[1], t;
|
|
104
|
+
}, zn = `@font-face {
|
|
105
|
+
font-family: "prompt-studio-icons";
|
|
106
|
+
src: url("$fonts/prompt-studio-icons.eot?959122fb");
|
|
107
|
+
src:
|
|
108
|
+
url("$fonts/prompt-studio-icons.eot?959122fb#iefix") format("embedded-opentype"),
|
|
109
|
+
url("$fonts/prompt-studio-icons.woff2?959122fb") format("woff2"),
|
|
110
|
+
url("$fonts/prompt-studio-icons.woff?959122fb") format("woff"),
|
|
111
|
+
url("$fonts/prompt-studio-icons.ttf?959122fb") format("truetype"),
|
|
112
|
+
url("$fonts/prompt-studio-icons.svg?959122fb#prompt-studio-icons") format("svg");
|
|
113
|
+
font-weight: normal;
|
|
114
|
+
font-style: normal;
|
|
115
|
+
font-display: block;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[class^="icon-"]::before,
|
|
119
|
+
[class*=" icon-"]::before {
|
|
120
|
+
font-family: "prompt-studio-icons", sans-serif;
|
|
121
|
+
font-style: normal;
|
|
122
|
+
font-weight: normal;
|
|
123
|
+
speak: never;
|
|
124
|
+
display: inline-block;
|
|
125
|
+
text-decoration: inherit;
|
|
126
|
+
width: 1em;
|
|
127
|
+
margin-right: 0.2em;
|
|
128
|
+
text-align: center;
|
|
129
|
+
font-variant: normal;
|
|
130
|
+
text-transform: none;
|
|
131
|
+
line-height: 1em;
|
|
132
|
+
margin-left: 0.2em;
|
|
133
|
+
-webkit-font-smoothing: antialiased;
|
|
134
|
+
-moz-osx-font-smoothing: grayscale;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.icon-cloud-add::before {
|
|
138
|
+
content: "\\e800";
|
|
139
|
+
}
|
|
140
|
+
.icon-credit-usage-50::before {
|
|
141
|
+
content: "\\e801";
|
|
142
|
+
}
|
|
143
|
+
.icon-history::before {
|
|
144
|
+
content: "\\e802";
|
|
145
|
+
}
|
|
146
|
+
.icon-data-string::before {
|
|
147
|
+
content: "\\e803";
|
|
148
|
+
}
|
|
149
|
+
.icon-data-object::before {
|
|
150
|
+
content: "\\e804";
|
|
151
|
+
}
|
|
152
|
+
.icon-data-integer::before {
|
|
153
|
+
content: "\\e805";
|
|
154
|
+
}
|
|
155
|
+
.icon-data-double::before {
|
|
156
|
+
content: "\\e806";
|
|
157
|
+
}
|
|
158
|
+
.icon-add::before {
|
|
159
|
+
content: "\\e807";
|
|
160
|
+
}
|
|
161
|
+
.icon-add-circle::before {
|
|
162
|
+
content: "\\e808";
|
|
163
|
+
}
|
|
164
|
+
.icon-data-boolean::before {
|
|
165
|
+
content: "\\e809";
|
|
166
|
+
}
|
|
167
|
+
.icon-add-square::before {
|
|
168
|
+
content: "\\e80a";
|
|
169
|
+
}
|
|
170
|
+
.icon-data-array::before {
|
|
171
|
+
content: "\\e80b";
|
|
172
|
+
}
|
|
173
|
+
.icon-status-backlog::before {
|
|
174
|
+
content: "\\e80c";
|
|
175
|
+
}
|
|
176
|
+
.icon-metrics::before {
|
|
177
|
+
content: "\\e80d";
|
|
178
|
+
}
|
|
179
|
+
.icon-pie-donut::before {
|
|
180
|
+
content: "\\e80e";
|
|
181
|
+
}
|
|
182
|
+
.icon-area-plot::before {
|
|
183
|
+
content: "\\e80f";
|
|
184
|
+
}
|
|
185
|
+
.icon-treemap::before {
|
|
186
|
+
content: "\\e810";
|
|
187
|
+
}
|
|
188
|
+
.icon-align-bottom::before {
|
|
189
|
+
content: "\\e811";
|
|
190
|
+
}
|
|
191
|
+
.icon-align-horizontally::before {
|
|
192
|
+
content: "\\e812";
|
|
193
|
+
}
|
|
194
|
+
.icon-align-left::before {
|
|
195
|
+
content: "\\e813";
|
|
196
|
+
}
|
|
197
|
+
.icon-align-right::before {
|
|
198
|
+
content: "\\e814";
|
|
199
|
+
}
|
|
200
|
+
.icon-align-vertically::before {
|
|
201
|
+
content: "\\e815";
|
|
202
|
+
}
|
|
203
|
+
.icon-radar-column-chart::before {
|
|
204
|
+
content: "\\e816";
|
|
205
|
+
}
|
|
206
|
+
.icon-pie-full::before {
|
|
207
|
+
content: "\\e817";
|
|
208
|
+
}
|
|
209
|
+
.icon-archive-1::before {
|
|
210
|
+
content: "\\e818";
|
|
211
|
+
}
|
|
212
|
+
.icon-archive-2::before {
|
|
213
|
+
content: "\\e819";
|
|
214
|
+
}
|
|
215
|
+
.icon-archive-add::before {
|
|
216
|
+
content: "\\e81a";
|
|
217
|
+
}
|
|
218
|
+
.icon-ct::before {
|
|
219
|
+
content: "\\e81b";
|
|
220
|
+
}
|
|
221
|
+
.icon-archive-minus::before {
|
|
222
|
+
content: "\\e81c";
|
|
223
|
+
}
|
|
224
|
+
.icon-archive-slash::before {
|
|
225
|
+
content: "\\e81d";
|
|
226
|
+
}
|
|
227
|
+
.icon-archive-tick::before {
|
|
228
|
+
content: "\\e81e";
|
|
229
|
+
}
|
|
230
|
+
.icon-min::before {
|
|
231
|
+
content: "\\e81f";
|
|
232
|
+
}
|
|
233
|
+
.icon-ctd::before {
|
|
234
|
+
content: "\\e820";
|
|
235
|
+
}
|
|
236
|
+
.icon-std::before {
|
|
237
|
+
content: "\\e821";
|
|
238
|
+
}
|
|
239
|
+
.icon-var::before {
|
|
240
|
+
content: "\\e822";
|
|
241
|
+
}
|
|
242
|
+
.icon-max::before {
|
|
243
|
+
content: "\\e823";
|
|
244
|
+
}
|
|
245
|
+
.icon-sum::before {
|
|
246
|
+
content: "\\e824";
|
|
247
|
+
}
|
|
248
|
+
.icon-status-todo::before {
|
|
249
|
+
content: "\\e825";
|
|
250
|
+
}
|
|
251
|
+
.icon-status-progress::before {
|
|
252
|
+
content: "\\e826";
|
|
253
|
+
}
|
|
254
|
+
.icon-status-review::before {
|
|
255
|
+
content: "\\e827";
|
|
256
|
+
}
|
|
257
|
+
.icon-status-done::before {
|
|
258
|
+
content: "\\e828";
|
|
259
|
+
}
|
|
260
|
+
.icon-status-canceled::before {
|
|
261
|
+
content: "\\e829";
|
|
262
|
+
}
|
|
263
|
+
.icon-level-low::before {
|
|
264
|
+
content: "\\e82a";
|
|
265
|
+
}
|
|
266
|
+
.icon-arrow-down::before {
|
|
267
|
+
content: "\\e82b";
|
|
268
|
+
}
|
|
269
|
+
.icon-arrow-down-1::before {
|
|
270
|
+
content: "\\e82c";
|
|
271
|
+
}
|
|
272
|
+
.icon-level-mid::before {
|
|
273
|
+
content: "\\e82d";
|
|
274
|
+
}
|
|
275
|
+
.icon-arrow-left::before {
|
|
276
|
+
content: "\\e82e";
|
|
277
|
+
}
|
|
278
|
+
.icon-level-high::before {
|
|
279
|
+
content: "\\e82f";
|
|
280
|
+
}
|
|
281
|
+
.icon-arrow-left-2::before {
|
|
282
|
+
content: "\\e830";
|
|
283
|
+
}
|
|
284
|
+
.icon-level-xhigh::before {
|
|
285
|
+
content: "\\e831";
|
|
286
|
+
}
|
|
287
|
+
.icon-arrow-right::before {
|
|
288
|
+
content: "\\e832";
|
|
289
|
+
}
|
|
290
|
+
.icon-arrow-right-1::before {
|
|
291
|
+
content: "\\e833";
|
|
292
|
+
}
|
|
293
|
+
.icon-arrow-right-3::before {
|
|
294
|
+
content: "\\e835";
|
|
295
|
+
}
|
|
296
|
+
.icon-arrow-right-4::before {
|
|
297
|
+
content: "\\e836";
|
|
298
|
+
}
|
|
299
|
+
.icon-arrow-square-down::before {
|
|
300
|
+
content: "\\e838";
|
|
301
|
+
}
|
|
302
|
+
.icon-arrow-square-left::before {
|
|
303
|
+
content: "\\e839";
|
|
304
|
+
}
|
|
305
|
+
.icon-arrow-square-up::before {
|
|
306
|
+
content: "\\e83a";
|
|
307
|
+
}
|
|
308
|
+
.icon-arrow-up-2::before {
|
|
309
|
+
content: "\\e83f";
|
|
310
|
+
}
|
|
311
|
+
.icon-arrow-up-3::before {
|
|
312
|
+
content: "\\e840";
|
|
313
|
+
}
|
|
314
|
+
.icon-book::before {
|
|
315
|
+
content: "\\e868";
|
|
316
|
+
}
|
|
317
|
+
.icon-book-1::before {
|
|
318
|
+
content: "\\e869";
|
|
319
|
+
}
|
|
320
|
+
.icon-box::before {
|
|
321
|
+
content: "\\e86e";
|
|
322
|
+
}
|
|
323
|
+
.icon-pointing-arrow::before {
|
|
324
|
+
content: "\\e87d";
|
|
325
|
+
}
|
|
326
|
+
.icon-data-structure::before {
|
|
327
|
+
content: "\\e87e";
|
|
328
|
+
}
|
|
329
|
+
.icon-brush-4::before {
|
|
330
|
+
content: "\\e87f";
|
|
331
|
+
}
|
|
332
|
+
.icon-folder::before {
|
|
333
|
+
content: "\\e880";
|
|
334
|
+
}
|
|
335
|
+
.icon-import-2::before {
|
|
336
|
+
content: "\\e881";
|
|
337
|
+
}
|
|
338
|
+
.icon-refresh::before {
|
|
339
|
+
content: "\\e882";
|
|
340
|
+
}
|
|
341
|
+
.icon-message-text-1::before {
|
|
342
|
+
content: "\\e883";
|
|
343
|
+
}
|
|
344
|
+
.icon-messages-2::before {
|
|
345
|
+
content: "\\e884";
|
|
346
|
+
}
|
|
347
|
+
.icon-global::before {
|
|
348
|
+
content: "\\e885";
|
|
349
|
+
}
|
|
350
|
+
.icon-briefcase::before {
|
|
351
|
+
content: "\\e886";
|
|
352
|
+
}
|
|
353
|
+
.icon-row-vertical::before {
|
|
354
|
+
content: "\\e887";
|
|
355
|
+
}
|
|
356
|
+
.icon-format-square::before {
|
|
357
|
+
content: "\\e888";
|
|
358
|
+
}
|
|
359
|
+
.icon-document-copy::before {
|
|
360
|
+
content: "\\e889";
|
|
361
|
+
}
|
|
362
|
+
.icon-document-forward::before {
|
|
363
|
+
content: "\\e88a";
|
|
364
|
+
}
|
|
365
|
+
.icon-tick-circle-1::before {
|
|
366
|
+
content: "\\e88b";
|
|
367
|
+
}
|
|
368
|
+
.icon-data-timestamp::before {
|
|
369
|
+
content: "\\e88c";
|
|
370
|
+
}
|
|
371
|
+
.icon-more-2::before {
|
|
372
|
+
content: "\\e88d";
|
|
373
|
+
}
|
|
374
|
+
.icon-notification::before {
|
|
375
|
+
content: "\\e88e";
|
|
376
|
+
}
|
|
377
|
+
.icon-search-normal-1::before {
|
|
378
|
+
content: "\\e890";
|
|
379
|
+
}
|
|
380
|
+
.icon-home-1::before {
|
|
381
|
+
content: "\\e891";
|
|
382
|
+
}
|
|
383
|
+
.icon-brush-1::before {
|
|
384
|
+
content: "\\e892";
|
|
385
|
+
}
|
|
386
|
+
.icon-paperclip-2::before {
|
|
387
|
+
content: "\\e893";
|
|
388
|
+
}
|
|
389
|
+
.icon-grid-4::before {
|
|
390
|
+
content: "\\e894";
|
|
391
|
+
}
|
|
392
|
+
.icon-mouse-circle::before {
|
|
393
|
+
content: "\\e895";
|
|
394
|
+
}
|
|
395
|
+
.icon-message-question::before {
|
|
396
|
+
content: "\\e896";
|
|
397
|
+
}
|
|
398
|
+
.icon-saving::before {
|
|
399
|
+
content: "\\e898";
|
|
400
|
+
}
|
|
401
|
+
.icon-chevron-double::before {
|
|
402
|
+
content: "\\e899";
|
|
403
|
+
}
|
|
404
|
+
.icon-close::before {
|
|
405
|
+
content: "\\e89a";
|
|
406
|
+
}
|
|
407
|
+
.icon-more-info::before {
|
|
408
|
+
content: "\\e89b";
|
|
409
|
+
}
|
|
410
|
+
.icon-arrow-up::before {
|
|
411
|
+
content: "\\e89c";
|
|
412
|
+
}
|
|
413
|
+
.icon-reorder::before {
|
|
414
|
+
content: "\\e89d";
|
|
415
|
+
}
|
|
416
|
+
.icon-refresh-1::before {
|
|
417
|
+
content: "\\e89e";
|
|
418
|
+
}
|
|
419
|
+
.icon-text-variable::before {
|
|
420
|
+
content: "\\e89f";
|
|
421
|
+
}
|
|
422
|
+
.icon-header-horizontal::before {
|
|
423
|
+
content: "\\e8a0";
|
|
424
|
+
}
|
|
425
|
+
.icon-edit-1::before {
|
|
426
|
+
content: "\\e8a1";
|
|
427
|
+
}
|
|
428
|
+
.icon-credit-usage-0::before {
|
|
429
|
+
content: "\\e8a2";
|
|
430
|
+
}
|
|
431
|
+
.icon-credit-usage-25::before {
|
|
432
|
+
content: "\\e8a3";
|
|
433
|
+
}
|
|
434
|
+
.icon-credit-usage-75::before {
|
|
435
|
+
content: "\\e8a4";
|
|
436
|
+
}
|
|
437
|
+
.icon-card::before {
|
|
438
|
+
content: "\\e8a5";
|
|
439
|
+
}
|
|
440
|
+
.icon-credit-usage-100::before {
|
|
441
|
+
content: "\\e8a6";
|
|
442
|
+
}
|
|
443
|
+
.icon-coding-language::before {
|
|
444
|
+
content: "\\e8ab";
|
|
445
|
+
}
|
|
446
|
+
.icon-table::before {
|
|
447
|
+
content: "\\e8ad";
|
|
448
|
+
}
|
|
449
|
+
.icon-check::before {
|
|
450
|
+
content: "\\e8ae";
|
|
451
|
+
}
|
|
452
|
+
.icon-logo-google::before {
|
|
453
|
+
content: "\\e8af";
|
|
454
|
+
}
|
|
455
|
+
.icon-data-date::before {
|
|
456
|
+
content: "\\e8b0";
|
|
457
|
+
}
|
|
458
|
+
.icon-llms::before {
|
|
459
|
+
content: "\\e8b1";
|
|
460
|
+
}
|
|
461
|
+
.icon-logo-openai::before {
|
|
462
|
+
content: "\\e8b2";
|
|
463
|
+
}
|
|
464
|
+
.icon-logo-anthropic::before {
|
|
465
|
+
content: "\\e8b3";
|
|
466
|
+
}
|
|
467
|
+
.icon-logo-meta::before {
|
|
468
|
+
content: "\\e8b4";
|
|
469
|
+
}
|
|
470
|
+
.icon-data-variant::before {
|
|
471
|
+
content: "\\e8b5";
|
|
472
|
+
}
|
|
473
|
+
.icon-chart-1::before {
|
|
474
|
+
content: "\\e8b6";
|
|
475
|
+
}
|
|
476
|
+
.icon-schema::before {
|
|
477
|
+
content: "\\e8b7";
|
|
478
|
+
}
|
|
479
|
+
.icon-ascending::before {
|
|
480
|
+
content: "\\e8b8";
|
|
481
|
+
}
|
|
482
|
+
.icon-bar-chart-100stacked::before {
|
|
483
|
+
content: "\\e8ba";
|
|
484
|
+
}
|
|
485
|
+
.icon-results::before {
|
|
486
|
+
content: "\\e8bc";
|
|
487
|
+
}
|
|
488
|
+
.icon-bar-chart::before {
|
|
489
|
+
content: "\\e8be";
|
|
490
|
+
}
|
|
491
|
+
.icon-descending::before {
|
|
492
|
+
content: "\\e8bf";
|
|
493
|
+
}
|
|
494
|
+
.icon-bar-chart-vertical::before {
|
|
495
|
+
content: "\\e8c0";
|
|
496
|
+
}
|
|
497
|
+
.icon-step-before-points::before {
|
|
498
|
+
content: "\\e8c4";
|
|
499
|
+
}
|
|
500
|
+
.icon-step-after-points::before {
|
|
501
|
+
content: "\\e8c6";
|
|
502
|
+
}
|
|
503
|
+
.icon-line-rounded::before {
|
|
504
|
+
content: "\\e8c9";
|
|
505
|
+
}
|
|
506
|
+
.icon-line-sharp::before {
|
|
507
|
+
content: "\\e8cb";
|
|
508
|
+
}
|
|
509
|
+
.icon-bar-chart-simple::before {
|
|
510
|
+
content: "\\e8cc";
|
|
511
|
+
}
|
|
512
|
+
.icon-pie-chart::before {
|
|
513
|
+
content: "\\e8cd";
|
|
514
|
+
}
|
|
515
|
+
.icon-bar-chart-stacked::before {
|
|
516
|
+
content: "\\e8ce";
|
|
517
|
+
}
|
|
518
|
+
.icon-map::before {
|
|
519
|
+
content: "\\e8cf";
|
|
520
|
+
}
|
|
521
|
+
.icon-radar-bar-chart::before {
|
|
522
|
+
content: "\\e8d0";
|
|
523
|
+
}
|
|
524
|
+
.icon-radar-chart::before {
|
|
525
|
+
content: "\\e8d1";
|
|
526
|
+
}
|
|
527
|
+
.icon-metric::before {
|
|
528
|
+
content: "\\e8d2";
|
|
529
|
+
}
|
|
530
|
+
.icon-area-plot-1::before {
|
|
531
|
+
content: "\\e8d3";
|
|
532
|
+
}
|
|
533
|
+
.icon-avg::before {
|
|
534
|
+
content: "\\e8d4";
|
|
535
|
+
}
|
|
536
|
+
.icon-area-plot-stacked100::before {
|
|
537
|
+
content: "\\e8d5";
|
|
538
|
+
}
|
|
539
|
+
.icon-scatter-bubbles::before {
|
|
540
|
+
content: "\\e8d6";
|
|
541
|
+
}
|
|
542
|
+
.icon-code::before {
|
|
543
|
+
content: "\\e8d7";
|
|
544
|
+
}
|
|
545
|
+
.icon-code-1::before {
|
|
546
|
+
content: "\\e8d8";
|
|
547
|
+
}
|
|
548
|
+
.icon-code-circle::before {
|
|
549
|
+
content: "\\e8d9";
|
|
550
|
+
}
|
|
551
|
+
.icon-scatter-plot::before {
|
|
552
|
+
content: "\\e8db";
|
|
553
|
+
}
|
|
554
|
+
.icon-scatter-dots::before {
|
|
555
|
+
content: "\\e8dc";
|
|
556
|
+
}
|
|
557
|
+
.icon-med::before {
|
|
558
|
+
content: "\\e8dd";
|
|
559
|
+
}
|
|
560
|
+
.icon-command-square::before {
|
|
561
|
+
content: "\\e8e1";
|
|
562
|
+
}
|
|
563
|
+
.icon-component::before {
|
|
564
|
+
content: "\\e8e2";
|
|
565
|
+
}
|
|
566
|
+
.icon-copy::before {
|
|
567
|
+
content: "\\e8e9";
|
|
568
|
+
}
|
|
569
|
+
.icon-danger::before {
|
|
570
|
+
content: "\\e8f5";
|
|
571
|
+
}
|
|
572
|
+
.icon-visualization::before {
|
|
573
|
+
content: "\\e8fc";
|
|
574
|
+
}
|
|
575
|
+
.icon-document-1::before {
|
|
576
|
+
content: "\\e911";
|
|
577
|
+
}
|
|
578
|
+
.icon-document-code::before {
|
|
579
|
+
content: "\\e913";
|
|
580
|
+
}
|
|
581
|
+
.icon-document-download::before {
|
|
582
|
+
content: "\\e916";
|
|
583
|
+
}
|
|
584
|
+
.icon-document-text-1::before {
|
|
585
|
+
content: "\\e91f";
|
|
586
|
+
}
|
|
587
|
+
.icon-document-upload::before {
|
|
588
|
+
content: "\\e920";
|
|
589
|
+
}
|
|
590
|
+
.icon-edit::before {
|
|
591
|
+
content: "\\e927";
|
|
592
|
+
}
|
|
593
|
+
.icon-edit-2::before {
|
|
594
|
+
content: "\\e928";
|
|
595
|
+
}
|
|
596
|
+
.icon-eraser-1::before {
|
|
597
|
+
content: "\\e939";
|
|
598
|
+
}
|
|
599
|
+
.icon-export-1::before {
|
|
600
|
+
content: "\\e93b";
|
|
601
|
+
}
|
|
602
|
+
.icon-export-3::before {
|
|
603
|
+
content: "\\e93d";
|
|
604
|
+
}
|
|
605
|
+
.icon-eye::before {
|
|
606
|
+
content: "\\e93f";
|
|
607
|
+
}
|
|
608
|
+
.icon-eye-slash::before {
|
|
609
|
+
content: "\\e940";
|
|
610
|
+
}
|
|
611
|
+
.icon-flash-1::before {
|
|
612
|
+
content: "\\e950";
|
|
613
|
+
}
|
|
614
|
+
.icon-folder-2::before {
|
|
615
|
+
content: "\\e955";
|
|
616
|
+
}
|
|
617
|
+
.icon-glass::before {
|
|
618
|
+
content: "\\e97c";
|
|
619
|
+
}
|
|
620
|
+
.icon-home-2::before {
|
|
621
|
+
content: "\\e9aa";
|
|
622
|
+
}
|
|
623
|
+
.icon-import-1::before {
|
|
624
|
+
content: "\\e9b5";
|
|
625
|
+
}
|
|
626
|
+
.icon-info-circle::before {
|
|
627
|
+
content: "\\e9b7";
|
|
628
|
+
}
|
|
629
|
+
.icon-key::before {
|
|
630
|
+
content: "\\e9bc";
|
|
631
|
+
}
|
|
632
|
+
.icon-data::before {
|
|
633
|
+
content: "\\e9c7";
|
|
634
|
+
}
|
|
635
|
+
.icon-link-2::before {
|
|
636
|
+
content: "\\e9d1";
|
|
637
|
+
}
|
|
638
|
+
.icon-location::before {
|
|
639
|
+
content: "\\e9d5";
|
|
640
|
+
}
|
|
641
|
+
.icon-location-slash::before {
|
|
642
|
+
content: "\\e9d9";
|
|
643
|
+
}
|
|
644
|
+
.icon-login-1::before {
|
|
645
|
+
content: "\\e9e0";
|
|
646
|
+
}
|
|
647
|
+
.icon-logout-1::before {
|
|
648
|
+
content: "\\e9e2";
|
|
649
|
+
}
|
|
650
|
+
.icon-magicpen::before {
|
|
651
|
+
content: "\\e9e4";
|
|
652
|
+
}
|
|
653
|
+
.icon-maximize-2::before {
|
|
654
|
+
content: "\\e9f0";
|
|
655
|
+
}
|
|
656
|
+
.icon-maximize-4::before {
|
|
657
|
+
content: "\\e9f2";
|
|
658
|
+
}
|
|
659
|
+
.icon-maximize-21::before {
|
|
660
|
+
content: "\\e9f3";
|
|
661
|
+
}
|
|
662
|
+
.icon-menu-1::before {
|
|
663
|
+
content: "\\e9f8";
|
|
664
|
+
}
|
|
665
|
+
.icon-message::before {
|
|
666
|
+
content: "\\e9fa";
|
|
667
|
+
}
|
|
668
|
+
.icon-messages::before {
|
|
669
|
+
content: "\\ea06";
|
|
670
|
+
}
|
|
671
|
+
.icon-microphone-2::before {
|
|
672
|
+
content: "\\ea11";
|
|
673
|
+
}
|
|
674
|
+
.icon-minus-cirlce::before {
|
|
675
|
+
content: "\\ea18";
|
|
676
|
+
}
|
|
677
|
+
.icon-moon::before {
|
|
678
|
+
content: "\\ea2e";
|
|
679
|
+
}
|
|
680
|
+
.icon-more::before {
|
|
681
|
+
content: "\\ea2f";
|
|
682
|
+
}
|
|
683
|
+
.icon-note::before {
|
|
684
|
+
content: "\\ea44";
|
|
685
|
+
}
|
|
686
|
+
.icon-paperclip::before {
|
|
687
|
+
content: "\\ea56";
|
|
688
|
+
}
|
|
689
|
+
.icon-play::before {
|
|
690
|
+
content: "\\ea6a";
|
|
691
|
+
}
|
|
692
|
+
.icon-presention-chart::before {
|
|
693
|
+
content: "\\ea6f";
|
|
694
|
+
}
|
|
695
|
+
.icon-redo::before {
|
|
696
|
+
content: "\\ea9c";
|
|
697
|
+
}
|
|
698
|
+
.icon-rotate-left::before {
|
|
699
|
+
content: "\\eaa8";
|
|
700
|
+
}
|
|
701
|
+
.icon-rotate-right::before {
|
|
702
|
+
content: "\\eaaa";
|
|
703
|
+
}
|
|
704
|
+
.icon-search-zoom-in-1::before {
|
|
705
|
+
content: "\\eac8";
|
|
706
|
+
}
|
|
707
|
+
.icon-search-zoom-out::before {
|
|
708
|
+
content: "\\eac9";
|
|
709
|
+
}
|
|
710
|
+
.icon-send-1::before {
|
|
711
|
+
content: "\\ead1";
|
|
712
|
+
}
|
|
713
|
+
.icon-setting-2::before {
|
|
714
|
+
content: "\\ead6";
|
|
715
|
+
}
|
|
716
|
+
.icon-setting-4::before {
|
|
717
|
+
content: "\\ead8";
|
|
718
|
+
}
|
|
719
|
+
.icon-setting-5::before {
|
|
720
|
+
content: "\\ead9";
|
|
721
|
+
}
|
|
722
|
+
.icon-shuffle::before {
|
|
723
|
+
content: "\\eae9";
|
|
724
|
+
}
|
|
725
|
+
.icon-sidebar-bottom::before {
|
|
726
|
+
content: "\\eaea";
|
|
727
|
+
}
|
|
728
|
+
.icon-sidebar-left::before {
|
|
729
|
+
content: "\\eaeb";
|
|
730
|
+
}
|
|
731
|
+
.icon-sidebar-right::before {
|
|
732
|
+
content: "\\eaec";
|
|
733
|
+
}
|
|
734
|
+
.icon-sidebar-top::before {
|
|
735
|
+
content: "\\eaed";
|
|
736
|
+
}
|
|
737
|
+
.icon-slash::before {
|
|
738
|
+
content: "\\eaf3";
|
|
739
|
+
}
|
|
740
|
+
.icon-smallcaps::before {
|
|
741
|
+
content: "\\eaf9";
|
|
742
|
+
}
|
|
743
|
+
.icon-sms::before {
|
|
744
|
+
content: "\\eafd";
|
|
745
|
+
}
|
|
746
|
+
.icon-star::before {
|
|
747
|
+
content: "\\eb07";
|
|
748
|
+
}
|
|
749
|
+
.icon-stop::before {
|
|
750
|
+
content: "\\eb0e";
|
|
751
|
+
}
|
|
752
|
+
.icon-sun-1::before {
|
|
753
|
+
content: "\\eb15";
|
|
754
|
+
}
|
|
755
|
+
.icon-tag-cross::before {
|
|
756
|
+
content: "\\eb19";
|
|
757
|
+
}
|
|
758
|
+
.icon-task::before {
|
|
759
|
+
content: "\\eb1c";
|
|
760
|
+
}
|
|
761
|
+
.icon-task-square::before {
|
|
762
|
+
content: "\\eb1d";
|
|
763
|
+
}
|
|
764
|
+
.icon-teacher::before {
|
|
765
|
+
content: "\\eb1e";
|
|
766
|
+
}
|
|
767
|
+
.icon-text::before {
|
|
768
|
+
content: "\\eb1f";
|
|
769
|
+
}
|
|
770
|
+
.icon-textalign-center::before {
|
|
771
|
+
content: "\\eb20";
|
|
772
|
+
}
|
|
773
|
+
.icon-textalign-justifycenter::before {
|
|
774
|
+
content: "\\eb21";
|
|
775
|
+
}
|
|
776
|
+
.icon-textalign-left::before {
|
|
777
|
+
content: "\\eb24";
|
|
778
|
+
}
|
|
779
|
+
.icon-textalign-right::before {
|
|
780
|
+
content: "\\eb25";
|
|
781
|
+
}
|
|
782
|
+
.icon-text-block::before {
|
|
783
|
+
content: "\\eb26";
|
|
784
|
+
}
|
|
785
|
+
.icon-text-bold::before {
|
|
786
|
+
content: "\\eb27";
|
|
787
|
+
}
|
|
788
|
+
.icon-text-italic::before {
|
|
789
|
+
content: "\\eb28";
|
|
790
|
+
}
|
|
791
|
+
.icon-text-underline::before {
|
|
792
|
+
content: "\\eb29";
|
|
793
|
+
}
|
|
794
|
+
.icon-tick-circle::before {
|
|
795
|
+
content: "\\eb2a";
|
|
796
|
+
}
|
|
797
|
+
.icon-timer-1::before {
|
|
798
|
+
content: "\\eb32";
|
|
799
|
+
}
|
|
800
|
+
.icon-trash::before {
|
|
801
|
+
content: "\\eb3c";
|
|
802
|
+
}
|
|
803
|
+
.icon-undo::before {
|
|
804
|
+
content: "\\eb47";
|
|
805
|
+
}
|
|
806
|
+
.icon-user::before {
|
|
807
|
+
content: "\\eb4a";
|
|
808
|
+
}
|
|
809
|
+
.icon-video-vertical::before {
|
|
810
|
+
content: "\\eb61";
|
|
811
|
+
}
|
|
812
|
+
.icon-wallet-2::before {
|
|
813
|
+
content: "\\eb6d";
|
|
814
|
+
}
|
|
815
|
+
.icon-wifi::before {
|
|
816
|
+
content: "\\eb7b";
|
|
817
|
+
}
|
|
818
|
+
.icon-stockholm::before {
|
|
819
|
+
content: "\\eb81";
|
|
820
|
+
}
|
|
821
|
+
.icon-perplexity-ai::before {
|
|
822
|
+
content: "\\eb82";
|
|
823
|
+
}
|
|
824
|
+
`, Ln = /\.icon-([\w-]+)::before\s*\{\s*content:\s*"(\\[0-9a-f]+)"/g, In = new Map(Array.from(zn.matchAll(Ln), ([, a, e]) => [a, e])), Tn = 89.5, Wn = "0.209em", Rn = Ze("span"), On = (a, e) => ({
|
|
825
|
+
position: "relative",
|
|
826
|
+
display: "inline-block",
|
|
827
|
+
verticalAlign: "middle",
|
|
828
|
+
flexShrink: 0,
|
|
829
|
+
boxSize: "1em",
|
|
830
|
+
lineHeight: 1,
|
|
831
|
+
containerType: "size",
|
|
832
|
+
"&::before": {
|
|
833
|
+
content: a,
|
|
834
|
+
fontSize: e,
|
|
835
|
+
position: "absolute",
|
|
836
|
+
inset: 0,
|
|
837
|
+
fontFamily: '"prompt-studio-icons", sans-serif',
|
|
838
|
+
fontStyle: "normal",
|
|
839
|
+
fontWeight: "normal",
|
|
840
|
+
lineHeight: "100cqmin",
|
|
841
|
+
textAlign: "center",
|
|
842
|
+
transform: `translateY(${Wn})`
|
|
843
|
+
}
|
|
844
|
+
}), nt = (a, e = {}) => {
|
|
845
|
+
const t = On(`"${In.get(a) ?? ""}"`, `${(Tn * (e.scale ?? 1)).toFixed(1)}cqmin`), n = (o) => {
|
|
846
|
+
const c = j(2);
|
|
847
|
+
let i;
|
|
848
|
+
return c[0] !== o ? (i = /* @__PURE__ */ l(Rn, { "aria-hidden": !0, ...o, css: t }), c[0] = o, c[1] = i) : i = c[1], i;
|
|
849
|
+
};
|
|
850
|
+
return n.displayName = `GlyphIcon(${a})`, n;
|
|
851
|
+
}, No = ["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"], ke = (a, e) => ({
|
|
852
|
+
value: a,
|
|
853
|
+
label: e,
|
|
854
|
+
icon: nt(a)
|
|
855
|
+
}), Ee = (a, e) => ({
|
|
856
|
+
value: a,
|
|
857
|
+
label: e,
|
|
858
|
+
icon: nt(a, {
|
|
859
|
+
scale: 0.82
|
|
860
|
+
})
|
|
861
|
+
}), En = [
|
|
862
|
+
{
|
|
863
|
+
value: null,
|
|
864
|
+
label: "none",
|
|
865
|
+
icon: xt
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
value: "flag",
|
|
869
|
+
label: "flag",
|
|
870
|
+
icon: yt
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
value: "bug",
|
|
874
|
+
label: "bug",
|
|
875
|
+
icon: St
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
value: "sparkles",
|
|
879
|
+
label: "sparkles",
|
|
880
|
+
icon: Ct
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
value: "book-open",
|
|
884
|
+
label: "book open",
|
|
885
|
+
icon: wt
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
value: "wrench",
|
|
889
|
+
label: "wrench",
|
|
890
|
+
icon: kt
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
value: "zap",
|
|
894
|
+
label: "zap",
|
|
895
|
+
icon: Vt
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
value: "feather",
|
|
899
|
+
label: "feather",
|
|
900
|
+
icon: $t
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
value: "scale",
|
|
904
|
+
label: "scale",
|
|
905
|
+
icon: zt
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
value: "layers",
|
|
909
|
+
label: "layers",
|
|
910
|
+
icon: Lt
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
value: "star",
|
|
914
|
+
label: "star",
|
|
915
|
+
icon: It
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
value: "flame",
|
|
919
|
+
label: "flame",
|
|
920
|
+
icon: Tt
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
value: "lightbulb",
|
|
924
|
+
label: "lightbulb",
|
|
925
|
+
icon: Wt
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
value: "shield",
|
|
929
|
+
label: "shield",
|
|
930
|
+
icon: Rt
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
value: "eye",
|
|
934
|
+
label: "eye",
|
|
935
|
+
icon: Ot
|
|
936
|
+
},
|
|
937
|
+
// The design draws the clock cell with lucide's timer.
|
|
938
|
+
{
|
|
939
|
+
value: "clock",
|
|
940
|
+
label: "clock",
|
|
941
|
+
icon: Et
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
value: "tag",
|
|
945
|
+
label: "tag",
|
|
946
|
+
icon: _t
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
value: "code",
|
|
950
|
+
label: "code",
|
|
951
|
+
icon: Nt
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
value: "rocket",
|
|
955
|
+
label: "rocket",
|
|
956
|
+
icon: Pt
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
value: "heart",
|
|
960
|
+
label: "heart",
|
|
961
|
+
icon: At
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
value: "bookmark",
|
|
965
|
+
label: "bookmark",
|
|
966
|
+
icon: Ht
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
value: "target",
|
|
970
|
+
label: "target",
|
|
971
|
+
icon: jt
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
value: "bell",
|
|
975
|
+
label: "bell",
|
|
976
|
+
icon: Bt
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
value: "hash",
|
|
980
|
+
label: "hash",
|
|
981
|
+
icon: Ft
|
|
982
|
+
},
|
|
983
|
+
ke("status-backlog", "status backlog"),
|
|
984
|
+
ke("status-todo", "status todo"),
|
|
985
|
+
ke("status-progress", "status in progress"),
|
|
986
|
+
ke("status-review", "status in review"),
|
|
987
|
+
ke("status-done", "status done"),
|
|
988
|
+
ke("status-canceled", "status canceled"),
|
|
989
|
+
{
|
|
990
|
+
value: "ticket",
|
|
991
|
+
label: "ticket",
|
|
992
|
+
icon: Gt
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
value: "git-branch",
|
|
996
|
+
label: "git branch",
|
|
997
|
+
icon: Ut
|
|
998
|
+
},
|
|
999
|
+
Ee("level-low", "level low"),
|
|
1000
|
+
Ee("level-mid", "level medium"),
|
|
1001
|
+
Ee("level-high", "level high"),
|
|
1002
|
+
Ee("level-xhigh", "level very high"),
|
|
1003
|
+
{
|
|
1004
|
+
value: "bot",
|
|
1005
|
+
label: "bot",
|
|
1006
|
+
icon: qt
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
value: "puzzle",
|
|
1010
|
+
label: "puzzle",
|
|
1011
|
+
icon: Mt
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
value: "workflow",
|
|
1015
|
+
label: "workflow",
|
|
1016
|
+
icon: Dt
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
value: "kanban",
|
|
1020
|
+
label: "kanban",
|
|
1021
|
+
icon: Kt
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
value: "message-square",
|
|
1025
|
+
label: "message square",
|
|
1026
|
+
icon: Xt
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
value: "folder",
|
|
1030
|
+
label: "folder",
|
|
1031
|
+
icon: Yt
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
value: "file-text",
|
|
1035
|
+
label: "file text",
|
|
1036
|
+
icon: Zt
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
value: "history",
|
|
1040
|
+
label: "history",
|
|
1041
|
+
icon: Qt
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
value: "play",
|
|
1045
|
+
label: "play",
|
|
1046
|
+
icon: Jt
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
value: "terminal",
|
|
1050
|
+
label: "terminal",
|
|
1051
|
+
icon: en
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
value: "cpu",
|
|
1055
|
+
label: "CPU",
|
|
1056
|
+
icon: tn
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
value: "users",
|
|
1060
|
+
label: "users",
|
|
1061
|
+
icon: nn
|
|
1062
|
+
},
|
|
1063
|
+
// Prompt Studio concepts: the icons its own tickets, boards, workspaces and
|
|
1064
|
+
// notifications are drawn with.
|
|
1065
|
+
{
|
|
1066
|
+
value: "component",
|
|
1067
|
+
label: "ticket",
|
|
1068
|
+
icon: on
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
value: "square-kanban",
|
|
1072
|
+
label: "board",
|
|
1073
|
+
icon: ln
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
value: "git-commit-horizontal",
|
|
1077
|
+
label: "workspace",
|
|
1078
|
+
icon: rn
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
value: "inbox",
|
|
1082
|
+
label: "notifications",
|
|
1083
|
+
icon: an
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
value: "list-checks",
|
|
1087
|
+
label: "checklist",
|
|
1088
|
+
icon: cn
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
value: "archive",
|
|
1092
|
+
label: "archive",
|
|
1093
|
+
icon: sn
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
value: "link",
|
|
1097
|
+
label: "link",
|
|
1098
|
+
icon: dn
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
value: "settings",
|
|
1102
|
+
label: "settings",
|
|
1103
|
+
icon: fn
|
|
1104
|
+
}
|
|
1105
|
+
], Ve = (a, e = En) => {
|
|
1106
|
+
const t = (a ?? "circle").replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([a-zA-Z])([0-9])/g, "$1-$2").toLowerCase();
|
|
1107
|
+
return e.find((o) => o.value === t)?.icon ?? un;
|
|
1108
|
+
}, _n = (a, e) => a ? /* @__PURE__ */ l(pe, { as: e ? bn : mn, boxSize: "14px", color: e ? "fg" : "fg.muted" }) : e ? /* @__PURE__ */ l(pe, { as: hn, boxSize: "14px", color: "fg" }) : null, ot = (a, e) => a ? /* @__PURE__ */ l(pe, { as: Ve(a.icon ?? null), boxSize: e, color: a.color ? `${a.color}.500` : "fg.muted" }) : null, Ne = (a) => {
|
|
1109
|
+
const e = j(42), {
|
|
1110
|
+
triggerLabel: t,
|
|
1111
|
+
options: n,
|
|
1112
|
+
selectedIds: o,
|
|
1113
|
+
multiSelect: c,
|
|
1114
|
+
disabled: i,
|
|
1115
|
+
searchable: r,
|
|
1116
|
+
searchPlaceholder: s,
|
|
1117
|
+
emptyText: f,
|
|
1118
|
+
group: b,
|
|
1119
|
+
fullWidth: m,
|
|
1120
|
+
triggerVariant: S,
|
|
1121
|
+
triggerAriaLabel: u,
|
|
1122
|
+
size: h,
|
|
1123
|
+
onToggle: d,
|
|
1124
|
+
onGroupChange: v
|
|
1125
|
+
} = a, L = r === void 0 ? !1 : r, k = s === void 0 ? "Search options…" : s, w = f === void 0 ? "No options found" : f, g = S === void 0 ? "button" : S, p = h === void 0 ? "sm" : h;
|
|
1126
|
+
let x;
|
|
1127
|
+
e[0] !== i || e[1] !== m || e[2] !== p || e[3] !== u || e[4] !== t || e[5] !== g ? (x = g === "icon" ? /* @__PURE__ */ l(Be, { "aria-label": u ?? "Open options", size: "2xs", variant: "ghost", disabled: i, children: t }) : /* @__PURE__ */ l(Ie, { size: p, borderWidth: "1px", borderStyle: "solid", borderColor: "border", disabled: i, textStyle: p === "xs" ? "label/XS" : "label/S/regular", width: m ? "100%" : void 0, _hover: {
|
|
1128
|
+
bg: "bg.hover",
|
|
1129
|
+
borderColor: "border.accent-light"
|
|
1130
|
+
}, _active: {
|
|
1131
|
+
bg: "bg.active",
|
|
1132
|
+
borderColor: "border.accent-light"
|
|
1133
|
+
}, _expanded: {
|
|
1134
|
+
bg: "bg.active",
|
|
1135
|
+
borderColor: "border.accent-light"
|
|
1136
|
+
}, _focusVisible: {
|
|
1137
|
+
borderColor: "border.accent-light",
|
|
1138
|
+
outline: "none",
|
|
1139
|
+
boxShadow: "none"
|
|
1140
|
+
}, children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", gap: "xs", w: m ? "full" : void 0, children: [
|
|
1141
|
+
/* @__PURE__ */ l(G, { alignItems: "center", gap: "xs", children: t }),
|
|
1142
|
+
/* @__PURE__ */ l(tt, { size: 14 })
|
|
1143
|
+
] }) }), e[0] = i, e[1] = m, e[2] = p, e[3] = u, e[4] = t, e[5] = g, e[6] = x) : x = e[6];
|
|
1144
|
+
const y = x;
|
|
1145
|
+
if (L || b) {
|
|
1146
|
+
let R;
|
|
1147
|
+
if (e[7] !== d || e[8] !== n || e[9] !== o) {
|
|
1148
|
+
let O;
|
|
1149
|
+
e[11] !== d || e[12] !== o ? (O = (E) => ({
|
|
1150
|
+
id: E.id,
|
|
1151
|
+
label: E.name,
|
|
1152
|
+
searchText: [E.id, E.description].filter(Boolean).join(" "),
|
|
1153
|
+
secondaryLabel: E.description,
|
|
1154
|
+
icon: Ve(E.icon),
|
|
1155
|
+
isDisabled: E.disabled,
|
|
1156
|
+
isSelected: o.includes(E.id),
|
|
1157
|
+
onSelect: () => d(E.id)
|
|
1158
|
+
}), e[11] = d, e[12] = o, e[13] = O) : O = e[13], R = n.map(O), e[7] = d, e[8] = n, e[9] = o, e[10] = R;
|
|
1159
|
+
} else
|
|
1160
|
+
R = e[10];
|
|
1161
|
+
const C = R;
|
|
1162
|
+
let z;
|
|
1163
|
+
if (e[14] !== w || e[15] !== b || e[16] !== C || e[17] !== c || e[18] !== v || e[19] !== k || e[20] !== L || e[21] !== y) {
|
|
1164
|
+
const O = b?.options.find((P) => P.id === b.defaultValue);
|
|
1165
|
+
let E;
|
|
1166
|
+
e[23] !== w ? (E = /* @__PURE__ */ l(Se.Item, { value: "empty", disabled: !0, asChild: !0, children: /* @__PURE__ */ l(Pe, { asChild: !0, variant: "full-width", id: "empty", label: w, disabled: !0 }) }), e[23] = w, e[24] = E) : E = e[24], z = /* @__PURE__ */ l(Cn, { trigger: y, items: C, listId: b?.defaultValue, showSearch: L, searchPlaceholder: k, closeOnSelect: !c, emptyState: E, parentList: b ? {
|
|
1167
|
+
items: b.options.map((P) => ({
|
|
1168
|
+
id: P.id,
|
|
1169
|
+
label: P.name,
|
|
1170
|
+
searchText: [P.id, P.description].filter(Boolean).join(" "),
|
|
1171
|
+
secondaryLabel: P.description,
|
|
1172
|
+
icon: Ve(P.icon),
|
|
1173
|
+
isDisabled: P.disabled,
|
|
1174
|
+
isSelected: P.id === b.defaultValue
|
|
1175
|
+
})),
|
|
1176
|
+
selectedLabel: O?.name ?? b.placeholder ?? `Select ${b.name.toLowerCase()}`,
|
|
1177
|
+
selectedIcon: O ? Ve(O.icon) : void 0,
|
|
1178
|
+
ariaLabel: b.name,
|
|
1179
|
+
disabled: b.disabled || b.options.length <= 1,
|
|
1180
|
+
showSearch: b.searchable,
|
|
1181
|
+
searchPlaceholder: b.searchPlaceholder ?? `Search ${b.name.toLowerCase()}…`,
|
|
1182
|
+
emptyState: /* @__PURE__ */ l(Se.Item, { value: "group-empty", disabled: !0, asChild: !0, children: /* @__PURE__ */ l(Pe, { asChild: !0, variant: "full-width", id: "group-empty", label: b.emptyText ?? `No ${b.name.toLowerCase()} found`, disabled: !0 }) }),
|
|
1183
|
+
onSelect: (P) => v?.(P.id)
|
|
1184
|
+
} : void 0 }), e[14] = w, e[15] = b, e[16] = C, e[17] = c, e[18] = v, e[19] = k, e[20] = L, e[21] = y, e[22] = z;
|
|
1185
|
+
} else
|
|
1186
|
+
z = e[22];
|
|
1187
|
+
return z;
|
|
1188
|
+
}
|
|
1189
|
+
const V = !c;
|
|
1190
|
+
let T;
|
|
1191
|
+
e[25] !== y ? (T = /* @__PURE__ */ l(Se.Trigger, { asChild: !0, children: y }), e[25] = y, e[26] = T) : T = e[26];
|
|
1192
|
+
let $;
|
|
1193
|
+
if (e[27] !== c || e[28] !== d || e[29] !== n || e[30] !== o) {
|
|
1194
|
+
let R;
|
|
1195
|
+
e[32] !== c || e[33] !== d || e[34] !== o ? (R = (C) => {
|
|
1196
|
+
const z = o.includes(C.id);
|
|
1197
|
+
return /* @__PURE__ */ l(Se.Item, { value: C.id, disabled: C.disabled, asChild: !0, children: /* @__PURE__ */ l(Pe, { asChild: !0, variant: "full-width", role: c ? "menuitemcheckbox" : "menuitemradio", "aria-checked": z, id: C.id, label: C.name, icon: ot(C, "16px"), tooltip: C.description, disabled: C.disabled, isSelected: z, endContent: _n(c, z), onActivate: () => d(C.id) }) }, C.id);
|
|
1198
|
+
}, e[32] = c, e[33] = d, e[34] = o, e[35] = R) : R = e[35], $ = n.map(R), e[27] = c, e[28] = d, e[29] = n, e[30] = o, e[31] = $;
|
|
1199
|
+
} else
|
|
1200
|
+
$ = e[31];
|
|
1201
|
+
let I;
|
|
1202
|
+
e[36] !== $ ? (I = /* @__PURE__ */ l(ct, { children: /* @__PURE__ */ l(Se.Positioner, { children: /* @__PURE__ */ l(Se.Content, { children: $ }) }) }), e[36] = $, e[37] = I) : I = e[37];
|
|
1203
|
+
let W;
|
|
1204
|
+
return e[38] !== V || e[39] !== T || e[40] !== I ? (W = /* @__PURE__ */ _(Se.Root, { closeOnSelect: V, children: [
|
|
1205
|
+
T,
|
|
1206
|
+
I
|
|
1207
|
+
] }), e[38] = V, e[39] = T, e[40] = I, e[41] = W) : W = e[41], W;
|
|
1208
|
+
}, Nn = (a) => {
|
|
1209
|
+
const e = j(33), {
|
|
1210
|
+
id: t,
|
|
1211
|
+
name: n,
|
|
1212
|
+
description: o,
|
|
1213
|
+
defaultValue: c,
|
|
1214
|
+
options: i,
|
|
1215
|
+
onChange: r,
|
|
1216
|
+
readOnly: s,
|
|
1217
|
+
presentation: f
|
|
1218
|
+
} = a, b = f === void 0 ? "stacked" : f, [m, S] = J(c);
|
|
1219
|
+
let u, h;
|
|
1220
|
+
e[0] !== c ? (u = () => {
|
|
1221
|
+
S(c);
|
|
1222
|
+
}, h = [c], e[0] = c, e[1] = u, e[2] = h) : (u = e[1], h = e[2]), ne(u, h);
|
|
1223
|
+
let d;
|
|
1224
|
+
e[3] !== t || e[4] !== r ? (d = (V) => {
|
|
1225
|
+
S(V), r(t, V);
|
|
1226
|
+
}, e[3] = t, e[4] = r, e[5] = d) : d = e[5];
|
|
1227
|
+
const v = d, L = b === "horizontal";
|
|
1228
|
+
let k;
|
|
1229
|
+
e[6] !== m || e[7] !== n || e[8] !== i ? (k = i.find((V) => V.id === m)?.name ?? n, e[6] = m, e[7] = n, e[8] = i, e[9] = k) : k = e[9];
|
|
1230
|
+
const w = k;
|
|
1231
|
+
if (L) {
|
|
1232
|
+
let V;
|
|
1233
|
+
e[10] !== m ? (V = m ? [m] : [], e[10] = m, e[11] = V) : V = e[11];
|
|
1234
|
+
let T;
|
|
1235
|
+
return e[12] !== i || e[13] !== s || e[14] !== v || e[15] !== w || e[16] !== V ? (T = /* @__PURE__ */ l(Ne, { triggerLabel: w, options: i, selectedIds: V, multiSelect: !1, disabled: s, onToggle: v }), e[12] = i, e[13] = s, e[14] = v, e[15] = w, e[16] = V, e[17] = T) : T = e[17], T;
|
|
1236
|
+
}
|
|
1237
|
+
let g;
|
|
1238
|
+
if (e[18] !== m || e[19] !== i || e[20] !== s || e[21] !== v) {
|
|
1239
|
+
let V;
|
|
1240
|
+
e[23] !== m || e[24] !== s || e[25] !== v ? (V = (T) => /* @__PURE__ */ l(Ie, { size: "xs", variant: m === T.id ? "subtle" : "outline", disabled: T.disabled || s, _hover: {
|
|
1241
|
+
bg: "bg.hover",
|
|
1242
|
+
borderColor: "border.accent-light"
|
|
1243
|
+
}, _active: {
|
|
1244
|
+
bg: "bg.active",
|
|
1245
|
+
borderColor: "border.accent-light"
|
|
1246
|
+
}, _focusVisible: {
|
|
1247
|
+
borderColor: "border.accent-light",
|
|
1248
|
+
outline: "none",
|
|
1249
|
+
boxShadow: "none"
|
|
1250
|
+
}, onClick: () => v(T.id), children: T.name }, T.id), e[23] = m, e[24] = s, e[25] = v, e[26] = V) : V = e[26], g = i.map(V), e[18] = m, e[19] = i, e[20] = s, e[21] = v, e[22] = g;
|
|
1251
|
+
} else
|
|
1252
|
+
g = e[22];
|
|
1253
|
+
let p;
|
|
1254
|
+
e[27] !== g ? (p = /* @__PURE__ */ l(G, { gap: "xs", wrap: "wrap", children: g }), e[27] = g, e[28] = p) : p = e[28];
|
|
1255
|
+
const x = p;
|
|
1256
|
+
let y;
|
|
1257
|
+
return e[29] !== o || e[30] !== n || e[31] !== x ? (y = /* @__PURE__ */ l(se, { name: n, description: o, orientation: "stacked", children: x }), e[29] = o, e[30] = n, e[31] = x, e[32] = y) : y = e[32], y;
|
|
1258
|
+
}, lt = ["top-left", "top", "top-right", "left", "center", "right", "bottom-left", "bottom", "bottom-right"], Po = (a) => typeof a == "string" && lt.includes(a), te = (a) => {
|
|
1259
|
+
const e = j(8);
|
|
1260
|
+
let t, n, o;
|
|
1261
|
+
e[0] !== a ? ({
|
|
1262
|
+
children: n,
|
|
1263
|
+
preserveWhitespace: o,
|
|
1264
|
+
...t
|
|
1265
|
+
} = a, e[0] = a, e[1] = t, e[2] = n, e[3] = o) : (t = e[1], n = e[2], o = e[3]);
|
|
1266
|
+
const i = (o === void 0 ? !1 : o) ? "pre-wrap" : void 0;
|
|
1267
|
+
let r;
|
|
1268
|
+
return e[4] !== t || e[5] !== n || e[6] !== i ? (r = /* @__PURE__ */ l(N, { minW: "0", textStyle: "label/S/regular", whiteSpace: i, ...t, children: n }), e[4] = t, e[5] = n, e[6] = i, e[7] = r) : r = e[7], r;
|
|
1269
|
+
}, Pn = (a) => {
|
|
1270
|
+
const e = j(23), {
|
|
1271
|
+
id: t,
|
|
1272
|
+
name: n,
|
|
1273
|
+
description: o,
|
|
1274
|
+
defaultValue: c,
|
|
1275
|
+
onChange: i,
|
|
1276
|
+
readOnly: r,
|
|
1277
|
+
fullWidth: s
|
|
1278
|
+
} = a, [f, b] = J(c);
|
|
1279
|
+
let m, S;
|
|
1280
|
+
e[0] !== c ? (m = () => {
|
|
1281
|
+
b(c);
|
|
1282
|
+
}, S = [c], e[0] = c, e[1] = m, e[2] = S) : (m = e[1], S = e[2]), ne(m, S);
|
|
1283
|
+
let u;
|
|
1284
|
+
e[3] !== t || e[4] !== i ? (u = (g) => {
|
|
1285
|
+
b(g), i(t, g);
|
|
1286
|
+
}, e[3] = t, e[4] = i, e[5] = u) : u = e[5];
|
|
1287
|
+
const h = u;
|
|
1288
|
+
if (r) {
|
|
1289
|
+
let g;
|
|
1290
|
+
e[6] !== f ? (g = /* @__PURE__ */ l(te, { children: f }), e[6] = f, e[7] = g) : g = e[7];
|
|
1291
|
+
let p;
|
|
1292
|
+
return e[8] !== o || e[9] !== s || e[10] !== n || e[11] !== g ? (p = /* @__PURE__ */ l(se, { name: n, description: o, fullWidth: s, children: g }), e[8] = o, e[9] = s, e[10] = n, e[11] = g, e[12] = p) : p = e[12], p;
|
|
1293
|
+
}
|
|
1294
|
+
let d;
|
|
1295
|
+
e[13] !== h || e[14] !== f ? (d = lt.map((g) => {
|
|
1296
|
+
const p = g === f;
|
|
1297
|
+
return /* @__PURE__ */ l(Be, { "aria-label": g, "aria-pressed": p, size: "2xs", variant: "ghost", bg: p ? "fg" : "bg", _hover: {
|
|
1298
|
+
bg: p ? "fg" : "bg.muted"
|
|
1299
|
+
}, borderRadius: "0", onClick: () => h(g), children: /* @__PURE__ */ l(N, { boxSize: "0.375rem", borderRadius: "full", bg: p ? "bg" : "fg.muted" }) }, g);
|
|
1300
|
+
}), e[13] = h, e[14] = f, e[15] = d) : d = e[15];
|
|
1301
|
+
let v;
|
|
1302
|
+
e[16] !== d ? (v = /* @__PURE__ */ l(st, { templateColumns: "repeat(3, 1.5rem)", gap: "1px", width: "fit-content", bg: "border.subtle", p: "1px", borderRadius: "sm", overflow: "hidden", children: d }), e[16] = d, e[17] = v) : v = e[17];
|
|
1303
|
+
const L = v, k = s ? "stacked" : "inline";
|
|
1304
|
+
let w;
|
|
1305
|
+
return e[18] !== o || e[19] !== L || e[20] !== n || e[21] !== k ? (w = /* @__PURE__ */ l(se, { name: n, description: o, orientation: k, children: L }), e[18] = o, e[19] = L, e[20] = n, e[21] = k, e[22] = w) : w = e[22], w;
|
|
1306
|
+
}, An = (a) => {
|
|
1307
|
+
const e = j(27), {
|
|
1308
|
+
id: t,
|
|
1309
|
+
name: n,
|
|
1310
|
+
description: o,
|
|
1311
|
+
defaultValue: c,
|
|
1312
|
+
onChange: i,
|
|
1313
|
+
readOnly: r,
|
|
1314
|
+
hideLabel: s,
|
|
1315
|
+
fullWidth: f,
|
|
1316
|
+
size: b
|
|
1317
|
+
} = a, m = b === void 0 ? "sm" : b, [S, u] = J(c);
|
|
1318
|
+
let h, d;
|
|
1319
|
+
if (e[0] !== c ? (h = () => {
|
|
1320
|
+
u(c);
|
|
1321
|
+
}, d = [c], e[0] = c, e[1] = h, e[2] = d) : (h = e[1], d = e[2]), ne(h, d), r) {
|
|
1322
|
+
const g = String(S);
|
|
1323
|
+
let p;
|
|
1324
|
+
e[3] !== g ? (p = /* @__PURE__ */ l(te, { children: g }), e[3] = g, e[4] = p) : p = e[4];
|
|
1325
|
+
let x;
|
|
1326
|
+
return e[5] !== o || e[6] !== f || e[7] !== s || e[8] !== n || e[9] !== p ? (x = /* @__PURE__ */ l(se, { name: n, description: o, hideLabel: s, fullWidth: f, orientation: "inline", children: p }), e[5] = o, e[6] = f, e[7] = s, e[8] = n, e[9] = p, e[10] = x) : x = e[10], x;
|
|
1327
|
+
}
|
|
1328
|
+
let v;
|
|
1329
|
+
e[11] !== n ? (v = {
|
|
1330
|
+
"aria-label": n
|
|
1331
|
+
}, e[11] = n, e[12] = v) : v = e[12];
|
|
1332
|
+
let L;
|
|
1333
|
+
e[13] !== t || e[14] !== i ? (L = (g) => {
|
|
1334
|
+
u(g.checked), i(t, g.checked);
|
|
1335
|
+
}, e[13] = t, e[14] = i, e[15] = L) : L = e[15];
|
|
1336
|
+
let k;
|
|
1337
|
+
e[16] !== m || e[17] !== v || e[18] !== L || e[19] !== S ? (k = /* @__PURE__ */ l(mt, { size: m, checked: S, inputProps: v, onCheckedChange: L }), e[16] = m, e[17] = v, e[18] = L, e[19] = S, e[20] = k) : k = e[20];
|
|
1338
|
+
let w;
|
|
1339
|
+
return e[21] !== o || e[22] !== f || e[23] !== s || e[24] !== n || e[25] !== k ? (w = /* @__PURE__ */ l(se, { name: n, description: o, hideLabel: s, fullWidth: f, orientation: "inline", children: k }), e[21] = o, e[22] = f, e[23] = s, e[24] = n, e[25] = k, e[26] = w) : w = e[26], w;
|
|
1340
|
+
}, Hn = (a) => {
|
|
1341
|
+
const e = j(69), {
|
|
1342
|
+
id: t,
|
|
1343
|
+
defaultValue: n,
|
|
1344
|
+
name: o,
|
|
1345
|
+
onChange: c,
|
|
1346
|
+
description: i,
|
|
1347
|
+
readOnly: r,
|
|
1348
|
+
hideLabel: s,
|
|
1349
|
+
fullWidth: f,
|
|
1350
|
+
size: b
|
|
1351
|
+
} = a, m = s === void 0 ? !1 : s, S = f === void 0 ? !1 : f, u = b === void 0 ? "sm" : b, [h, d] = J(n), [v, L] = J(!1), k = ge(null), w = ge(null), g = ge(null);
|
|
1352
|
+
let p;
|
|
1353
|
+
e[0] !== t || e[1] !== c ? (p = (Y) => {
|
|
1354
|
+
g.current && clearTimeout(g.current), g.current = setTimeout(() => c(t, Y), 540);
|
|
1355
|
+
}, e[0] = t, e[1] = c, e[2] = p) : p = e[2];
|
|
1356
|
+
const x = p;
|
|
1357
|
+
let y, V;
|
|
1358
|
+
e[3] !== n ? (y = () => {
|
|
1359
|
+
d(n);
|
|
1360
|
+
}, V = [n], e[3] = n, e[4] = y, e[5] = V) : (y = e[4], V = e[5]), ne(y, V);
|
|
1361
|
+
let T, $;
|
|
1362
|
+
e[6] !== v ? (T = () => {
|
|
1363
|
+
if (!v)
|
|
1364
|
+
return;
|
|
1365
|
+
const Y = (oe) => {
|
|
1366
|
+
const fe = oe;
|
|
1367
|
+
return k.current?.contains(fe) || w.current?.contains(fe);
|
|
1368
|
+
}, Q = (oe) => {
|
|
1369
|
+
Y(oe.target) || L(!1);
|
|
1370
|
+
};
|
|
1371
|
+
return document.addEventListener("focusin", Q, !0), document.addEventListener("pointerdown", Q, !0), document.addEventListener("click", Q, !0), () => {
|
|
1372
|
+
document.removeEventListener("focusin", Q, !0), document.removeEventListener("pointerdown", Q, !0), document.removeEventListener("click", Q, !0);
|
|
1373
|
+
};
|
|
1374
|
+
}, $ = [v], e[6] = v, e[7] = T, e[8] = $) : (T = e[7], $ = e[8]), ne(T, $);
|
|
1375
|
+
let I;
|
|
1376
|
+
e[9] !== x ? (I = (Y) => {
|
|
1377
|
+
d(Y), x(Y);
|
|
1378
|
+
}, e[9] = x, e[10] = I) : I = e[10];
|
|
1379
|
+
const W = I;
|
|
1380
|
+
let R;
|
|
1381
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = (Y) => {
|
|
1382
|
+
const Q = Y.currentTarget;
|
|
1383
|
+
setTimeout(() => {
|
|
1384
|
+
Q.contains(Q.ownerDocument.activeElement) || L(!1);
|
|
1385
|
+
});
|
|
1386
|
+
}, e[11] = R) : R = e[11];
|
|
1387
|
+
const C = R;
|
|
1388
|
+
if (r) {
|
|
1389
|
+
let Y;
|
|
1390
|
+
e[12] !== h ? (Y = /* @__PURE__ */ l(te, { children: /* @__PURE__ */ _(G, { alignItems: "center", gap: "xs", children: [
|
|
1391
|
+
/* @__PURE__ */ l(N, { boxSize: "0.75rem", borderRadius: "xs", bg: h }),
|
|
1392
|
+
/* @__PURE__ */ l(N, { as: "span", children: h })
|
|
1393
|
+
] }) }), e[12] = h, e[13] = Y) : Y = e[13];
|
|
1394
|
+
const Q = Y;
|
|
1395
|
+
if (S) {
|
|
1396
|
+
let B;
|
|
1397
|
+
e[14] !== i || e[15] !== m || e[16] !== o ? (B = !m && /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: o, description: i }) }), e[14] = i, e[15] = m, e[16] = o, e[17] = B) : B = e[17];
|
|
1398
|
+
let ee;
|
|
1399
|
+
return e[18] !== B || e[19] !== Q ? (ee = /* @__PURE__ */ _(N, { children: [
|
|
1400
|
+
B,
|
|
1401
|
+
Q
|
|
1402
|
+
] }), e[18] = B, e[19] = Q, e[20] = ee) : ee = e[20], ee;
|
|
1403
|
+
}
|
|
1404
|
+
let oe;
|
|
1405
|
+
e[21] !== i || e[22] !== m || e[23] !== o ? (oe = !m && /* @__PURE__ */ l(M, { name: o, description: i }), e[21] = i, e[22] = m, e[23] = o, e[24] = oe) : oe = e[24];
|
|
1406
|
+
let fe;
|
|
1407
|
+
return e[25] !== oe || e[26] !== Q ? (fe = /* @__PURE__ */ l(N, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
1408
|
+
oe,
|
|
1409
|
+
Q
|
|
1410
|
+
] }) }), e[25] = oe, e[26] = Q, e[27] = fe) : fe = e[27], fe;
|
|
1411
|
+
}
|
|
1412
|
+
let z;
|
|
1413
|
+
e[28] !== h ? (z = dt(h), e[28] = h, e[29] = z) : z = e[29];
|
|
1414
|
+
let O, E, P;
|
|
1415
|
+
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (Y) => L(Y.open), E = () => L(!1), P = () => L(!1), e[30] = O, e[31] = E, e[32] = P) : (O = e[30], E = e[31], P = e[32]);
|
|
1416
|
+
let H;
|
|
1417
|
+
e[33] !== W ? (H = (Y) => W(Y.value.toString("hex")), e[33] = W, e[34] = H) : H = e[34];
|
|
1418
|
+
let U;
|
|
1419
|
+
e[35] !== v || e[36] !== r || e[37] !== z || e[38] !== H ? (U = {
|
|
1420
|
+
value: z,
|
|
1421
|
+
open: v,
|
|
1422
|
+
onOpenChange: O,
|
|
1423
|
+
onFocusOutside: E,
|
|
1424
|
+
onInteractOutside: P,
|
|
1425
|
+
onBlur: C,
|
|
1426
|
+
onValueChange: H,
|
|
1427
|
+
disabled: r
|
|
1428
|
+
}, e[35] = v, e[36] = r, e[37] = z, e[38] = H, e[39] = U) : U = e[39];
|
|
1429
|
+
const A = U, D = S ? "100%" : "8.75rem";
|
|
1430
|
+
let q;
|
|
1431
|
+
e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ l(ce.HiddenInput, {}), e[40] = q) : q = e[40];
|
|
1432
|
+
let Z;
|
|
1433
|
+
e[41] !== o ? (Z = /* @__PURE__ */ l(ce.Label, { srOnly: !0, children: o }), e[41] = o, e[42] = Z) : Z = e[42];
|
|
1434
|
+
let F;
|
|
1435
|
+
e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = () => L(!1), e[43] = F) : F = e[43];
|
|
1436
|
+
let K;
|
|
1437
|
+
e[44] !== r ? (K = /* @__PURE__ */ l(ce.Input, { readOnly: r, onFocus: F }), e[44] = r, e[45] = K) : K = e[45];
|
|
1438
|
+
let ie;
|
|
1439
|
+
e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ l(ce.Trigger, {}), e[46] = ie) : ie = e[46];
|
|
1440
|
+
let re;
|
|
1441
|
+
e[47] !== K ? (re = /* @__PURE__ */ _(ce.Control, { children: [
|
|
1442
|
+
K,
|
|
1443
|
+
ie
|
|
1444
|
+
] }), e[47] = K, e[48] = re) : re = e[48];
|
|
1445
|
+
let ve, ue;
|
|
1446
|
+
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ l(ce.Area, {}), ue = /* @__PURE__ */ l(ce.Sliders, {}), e[49] = ve, e[50] = ue) : (ve = e[49], ue = e[50]);
|
|
1447
|
+
let X;
|
|
1448
|
+
e[51] !== h ? (X = /* @__PURE__ */ l(ce.Swatch, { value: h }), e[51] = h, e[52] = X) : X = e[52];
|
|
1449
|
+
let ae;
|
|
1450
|
+
e[53] !== X || e[54] !== h ? (ae = /* @__PURE__ */ l(ce.Positioner, { children: /* @__PURE__ */ _(ce.Content, { ref: w, onBlur: C, children: [
|
|
1451
|
+
ve,
|
|
1452
|
+
ue,
|
|
1453
|
+
/* @__PURE__ */ l(ce.SwatchGroup, { children: /* @__PURE__ */ l(ce.SwatchTrigger, { value: h, children: X }) })
|
|
1454
|
+
] }) }), e[53] = X, e[54] = h, e[55] = ae) : ae = e[55];
|
|
1455
|
+
let de;
|
|
1456
|
+
e[56] !== A || e[57] !== u || e[58] !== D || e[59] !== Z || e[60] !== re || e[61] !== ae ? (de = /* @__PURE__ */ _(ce.Root, { ref: k, ...A, size: u, width: D, maxW: "100%", children: [
|
|
1457
|
+
q,
|
|
1458
|
+
Z,
|
|
1459
|
+
re,
|
|
1460
|
+
ae
|
|
1461
|
+
] }), e[56] = A, e[57] = u, e[58] = D, e[59] = Z, e[60] = re, e[61] = ae, e[62] = de) : de = e[62];
|
|
1462
|
+
const be = de;
|
|
1463
|
+
let me;
|
|
1464
|
+
return e[63] !== i || e[64] !== S || e[65] !== m || e[66] !== o || e[67] !== be ? (me = /* @__PURE__ */ l(N, { children: S ? /* @__PURE__ */ _(N, { children: [
|
|
1465
|
+
!m && /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: o, description: i }) }),
|
|
1466
|
+
be
|
|
1467
|
+
] }) : /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
1468
|
+
!m && /* @__PURE__ */ l(M, { name: o, description: i }),
|
|
1469
|
+
be
|
|
1470
|
+
] }) }), e[63] = i, e[64] = S, e[65] = m, e[66] = o, e[67] = be, e[68] = me) : me = e[68], me;
|
|
1471
|
+
}, jn = (a) => {
|
|
1472
|
+
const e = j(35), {
|
|
1473
|
+
id: t,
|
|
1474
|
+
defaultValue: n,
|
|
1475
|
+
name: o,
|
|
1476
|
+
min: c,
|
|
1477
|
+
max: i,
|
|
1478
|
+
onChange: r,
|
|
1479
|
+
description: s,
|
|
1480
|
+
readOnly: f,
|
|
1481
|
+
hideLabel: b,
|
|
1482
|
+
fullWidth: m,
|
|
1483
|
+
size: S
|
|
1484
|
+
} = a, u = b === void 0 ? !1 : b, h = m === void 0 ? !1 : m, d = S === void 0 ? "sm" : S, [v, L] = J(n), k = ge(null);
|
|
1485
|
+
let w;
|
|
1486
|
+
e[0] !== t || e[1] !== r ? (w = ($) => {
|
|
1487
|
+
k.current && clearTimeout(k.current), k.current = setTimeout(() => r(t, $), 540);
|
|
1488
|
+
}, e[0] = t, e[1] = r, e[2] = w) : w = e[2];
|
|
1489
|
+
const g = w;
|
|
1490
|
+
let p, x;
|
|
1491
|
+
e[3] !== n ? (p = () => {
|
|
1492
|
+
L(n);
|
|
1493
|
+
}, x = [n], e[3] = n, e[4] = p, e[5] = x) : (p = e[4], x = e[5]), ne(p, x);
|
|
1494
|
+
let y;
|
|
1495
|
+
e[6] !== g ? (y = ($) => {
|
|
1496
|
+
L($), g($);
|
|
1497
|
+
}, e[6] = g, e[7] = y) : y = e[7];
|
|
1498
|
+
const V = y;
|
|
1499
|
+
if (f) {
|
|
1500
|
+
let $;
|
|
1501
|
+
e[8] !== v ? ($ = /* @__PURE__ */ l(te, { children: v }), e[8] = v, e[9] = $) : $ = e[9];
|
|
1502
|
+
const I = $;
|
|
1503
|
+
if (h) {
|
|
1504
|
+
let C;
|
|
1505
|
+
e[10] !== s || e[11] !== u || e[12] !== o ? (C = !u && /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: o, description: s }) }), e[10] = s, e[11] = u, e[12] = o, e[13] = C) : C = e[13];
|
|
1506
|
+
let z;
|
|
1507
|
+
return e[14] !== C || e[15] !== I ? (z = /* @__PURE__ */ _(N, { children: [
|
|
1508
|
+
C,
|
|
1509
|
+
I
|
|
1510
|
+
] }), e[14] = C, e[15] = I, e[16] = z) : z = e[16], z;
|
|
1511
|
+
}
|
|
1512
|
+
let W;
|
|
1513
|
+
e[17] !== s || e[18] !== u || e[19] !== o ? (W = !u && /* @__PURE__ */ l(M, { name: o, description: s }), e[17] = s, e[18] = u, e[19] = o, e[20] = W) : W = e[20];
|
|
1514
|
+
let R;
|
|
1515
|
+
return e[21] !== W || e[22] !== I ? (R = /* @__PURE__ */ l(N, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
1516
|
+
W,
|
|
1517
|
+
I
|
|
1518
|
+
] }) }), e[21] = W, e[22] = I, e[23] = R) : R = e[23], R;
|
|
1519
|
+
}
|
|
1520
|
+
let T;
|
|
1521
|
+
return e[24] !== s || e[25] !== h || e[26] !== V || e[27] !== u || e[28] !== i || e[29] !== c || e[30] !== o || e[31] !== f || e[32] !== d || e[33] !== v ? (T = /* @__PURE__ */ l(N, { children: h ? /* @__PURE__ */ _(N, { children: [
|
|
1522
|
+
!u && /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: o, description: s }) }),
|
|
1523
|
+
/* @__PURE__ */ l($e, { className: "nodrag", readOnly: f, width: "100%", size: d, type: "date", placeholder: u ? o : void 0, value: v, min: c, max: i, onChange: ($) => V($.target.value), onKeyUp: Bn })
|
|
1524
|
+
] }) : /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
1525
|
+
!u && /* @__PURE__ */ l(M, { name: o, description: s }),
|
|
1526
|
+
/* @__PURE__ */ l($e, { className: "nodrag", readOnly: f, width: "8.75rem", size: d, type: "date", placeholder: u ? o : void 0, value: v, min: c, max: i, onChange: ($) => V($.target.value), onKeyUp: Fn })
|
|
1527
|
+
] }) }), e[24] = s, e[25] = h, e[26] = V, e[27] = u, e[28] = i, e[29] = c, e[30] = o, e[31] = f, e[32] = d, e[33] = v, e[34] = T) : T = e[34], T;
|
|
1528
|
+
};
|
|
1529
|
+
function Bn(a) {
|
|
1530
|
+
a.key === "Enter" && a.currentTarget.blur();
|
|
1531
|
+
}
|
|
1532
|
+
function Fn(a) {
|
|
1533
|
+
a.key === "Enter" && a.currentTarget.blur();
|
|
1534
|
+
}
|
|
1535
|
+
const Gn = (a, e) => `${a.name}-${a.size.toString()}-${a.lastModified.toString()}-${e.toString()}`, Un = (a, e, t) => {
|
|
1536
|
+
const n = t ? e.length : 0, o = a.map((c, i) => ({
|
|
1537
|
+
id: Gn(c, n + i),
|
|
1538
|
+
file: c,
|
|
1539
|
+
status: "queued"
|
|
1540
|
+
}));
|
|
1541
|
+
return t ? [...e, ...o] : o.slice(0, 1);
|
|
1542
|
+
}, qn = (a) => {
|
|
1543
|
+
const t = ["uploading", "error", "queued", "complete"].find((o) => a.some((c) => c.status === o)) ?? "empty", n = t === "empty" ? 0 : a.filter((o) => o.status === t).length;
|
|
1544
|
+
return {
|
|
1545
|
+
state: t,
|
|
1546
|
+
count: n
|
|
1547
|
+
};
|
|
1548
|
+
}, Mn = (a) => {
|
|
1549
|
+
const e = j(21), {
|
|
1550
|
+
values: t
|
|
1551
|
+
} = a;
|
|
1552
|
+
let n, o, c, i, r, s, f;
|
|
1553
|
+
if (e[0] !== t) {
|
|
1554
|
+
f = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
1555
|
+
e: {
|
|
1556
|
+
if (o = qn(t), o.state === "empty") {
|
|
1557
|
+
f = null;
|
|
1558
|
+
break e;
|
|
1559
|
+
}
|
|
1560
|
+
n = o.count === 1 ? "file" : "files", i = `${o.count.toString()} ${n} queued`, r = `Uploading ${o.count.toString()} ${n}`, s = `${o.count.toString()} ${n} uploaded`, c = o.count.toString();
|
|
1561
|
+
}
|
|
1562
|
+
e[0] = t, e[1] = n, e[2] = o, e[3] = c, e[4] = i, e[5] = r, e[6] = s, e[7] = f;
|
|
1563
|
+
} else
|
|
1564
|
+
n = e[1], o = e[2], c = e[3], i = e[4], r = e[5], s = e[6], f = e[7];
|
|
1565
|
+
if (f !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
1566
|
+
return f;
|
|
1567
|
+
const b = `${c} ${n} failed`;
|
|
1568
|
+
let m;
|
|
1569
|
+
e[8] !== i || e[9] !== r || e[10] !== s || e[11] !== b ? (m = {
|
|
1570
|
+
queued: i,
|
|
1571
|
+
uploading: r,
|
|
1572
|
+
complete: s,
|
|
1573
|
+
error: b,
|
|
1574
|
+
empty: ""
|
|
1575
|
+
}, e[8] = i, e[9] = r, e[10] = s, e[11] = b, e[12] = m) : m = e[12];
|
|
1576
|
+
const S = m;
|
|
1577
|
+
let u;
|
|
1578
|
+
e[13] !== o.state ? (u = o.state === "uploading" ? /* @__PURE__ */ l(ft, { boxSize: "12px", borderWidth: "1px" }) : /* @__PURE__ */ l(pe, { as: o.state === "error" ? gn : o.state === "complete" ? vn : xn, boxSize: "12px" }), e[13] = o.state, e[14] = u) : u = e[14];
|
|
1579
|
+
const h = u, d = o.state === "error" ? "fg.error" : "fg.muted", v = S[o.state];
|
|
1580
|
+
let L;
|
|
1581
|
+
e[15] !== v ? (L = /* @__PURE__ */ l(ye, { textStyle: "label/XS/medium", children: v }), e[15] = v, e[16] = L) : L = e[16];
|
|
1582
|
+
let k;
|
|
1583
|
+
return e[17] !== h || e[18] !== L || e[19] !== d ? (k = /* @__PURE__ */ _(G, { alignItems: "center", gap: "2xs", color: d, children: [
|
|
1584
|
+
h,
|
|
1585
|
+
L
|
|
1586
|
+
] }), e[17] = h, e[18] = L, e[19] = d, e[20] = k) : k = e[20], k;
|
|
1587
|
+
}, qe = (a) => {
|
|
1588
|
+
const e = j(14), {
|
|
1589
|
+
readOnly: t,
|
|
1590
|
+
values: n,
|
|
1591
|
+
onRemove: o
|
|
1592
|
+
} = a;
|
|
1593
|
+
if (n.length === 0)
|
|
1594
|
+
return null;
|
|
1595
|
+
let c;
|
|
1596
|
+
e[0] !== n ? (c = /* @__PURE__ */ l(Mn, { values: n }), e[0] = n, e[1] = c) : c = e[1];
|
|
1597
|
+
let i;
|
|
1598
|
+
if (e[2] !== o || e[3] !== t || e[4] !== n) {
|
|
1599
|
+
let f;
|
|
1600
|
+
e[6] !== o || e[7] !== t ? (f = (b) => /* @__PURE__ */ l(Vn, { file: b.file, disabled: t, removeLabel: `Remove ${b.file.name}`, onRemove: () => o(b.id) }, b.id), e[6] = o, e[7] = t, e[8] = f) : f = e[8], i = n.map(f), e[2] = o, e[3] = t, e[4] = n, e[5] = i;
|
|
1601
|
+
} else
|
|
1602
|
+
i = e[5];
|
|
1603
|
+
let r;
|
|
1604
|
+
e[9] !== i ? (r = /* @__PURE__ */ l(Je, { gap: "2xs", children: i }), e[9] = i, e[10] = r) : r = e[10];
|
|
1605
|
+
let s;
|
|
1606
|
+
return e[11] !== c || e[12] !== r ? (s = /* @__PURE__ */ _(Te, { gap: "2xs", minW: "0", children: [
|
|
1607
|
+
c,
|
|
1608
|
+
r
|
|
1609
|
+
] }), e[11] = c, e[12] = r, e[13] = s) : s = e[13], s;
|
|
1610
|
+
}, Dn = (a) => {
|
|
1611
|
+
const e = j(40), {
|
|
1612
|
+
id: t,
|
|
1613
|
+
name: n,
|
|
1614
|
+
description: o,
|
|
1615
|
+
defaultValue: c,
|
|
1616
|
+
accept: i,
|
|
1617
|
+
multiple: r,
|
|
1618
|
+
uploadLabel: s,
|
|
1619
|
+
onChange: f,
|
|
1620
|
+
readOnly: b,
|
|
1621
|
+
presentation: m
|
|
1622
|
+
} = a, S = r === void 0 ? !0 : r, u = s === void 0 ? "Attach files" : s, h = m === void 0 ? "stacked" : m, [d, v] = J(c), L = ge(null);
|
|
1623
|
+
let k, w;
|
|
1624
|
+
e[0] !== c ? (k = () => {
|
|
1625
|
+
v(c);
|
|
1626
|
+
}, w = [c], e[0] = c, e[1] = k, e[2] = w) : (k = e[1], w = e[2]), ne(k, w);
|
|
1627
|
+
let g;
|
|
1628
|
+
e[3] !== t || e[4] !== f ? (g = (O) => {
|
|
1629
|
+
v(O), f(t, O);
|
|
1630
|
+
}, e[3] = t, e[4] = f, e[5] = g) : g = e[5];
|
|
1631
|
+
const p = g;
|
|
1632
|
+
let x;
|
|
1633
|
+
e[6] !== p || e[7] !== d ? (x = (O) => p(d.filter((E) => E.id !== O)), e[6] = p, e[7] = d, e[8] = x) : x = e[8];
|
|
1634
|
+
const y = x;
|
|
1635
|
+
let V;
|
|
1636
|
+
e[9] !== b || e[10] !== u ? (V = b ? null : /* @__PURE__ */ _(Ie, { size: "xs", variant: "ghost", flexShrink: 0, onClick: () => L.current?.click(), children: [
|
|
1637
|
+
/* @__PURE__ */ l(pe, { as: pn, boxSize: "14px" }),
|
|
1638
|
+
u
|
|
1639
|
+
] }), e[9] = b, e[10] = u, e[11] = V) : V = e[11];
|
|
1640
|
+
const T = V;
|
|
1641
|
+
let $;
|
|
1642
|
+
e[12] !== p || e[13] !== S || e[14] !== d ? ($ = (O) => {
|
|
1643
|
+
p(Un(Array.from(O.currentTarget.files ?? []), d, S)), O.currentTarget.value = "";
|
|
1644
|
+
}, e[12] = p, e[13] = S, e[14] = d, e[15] = $) : $ = e[15];
|
|
1645
|
+
let I;
|
|
1646
|
+
e[16] !== i || e[17] !== S || e[18] !== $ ? (I = /* @__PURE__ */ l("input", { ref: L, hidden: !0, type: "file", accept: i, multiple: S, onChange: $ }), e[16] = i, e[17] = S, e[18] = $, e[19] = I) : I = e[19];
|
|
1647
|
+
const W = I;
|
|
1648
|
+
if (h === "horizontal") {
|
|
1649
|
+
let O;
|
|
1650
|
+
e[20] !== b || e[21] !== y || e[22] !== d ? (O = /* @__PURE__ */ l(qe, { readOnly: b, values: d, onRemove: y }), e[20] = b, e[21] = y, e[22] = d, e[23] = O) : O = e[23];
|
|
1651
|
+
let E;
|
|
1652
|
+
return e[24] !== T || e[25] !== W || e[26] !== O ? (E = /* @__PURE__ */ _(G, { alignItems: "center", gap: "sm", minW: "0", width: "full", children: [
|
|
1653
|
+
W,
|
|
1654
|
+
T,
|
|
1655
|
+
O
|
|
1656
|
+
] }), e[24] = T, e[25] = W, e[26] = O, e[27] = E) : E = e[27], E;
|
|
1657
|
+
}
|
|
1658
|
+
let R;
|
|
1659
|
+
e[28] !== b || e[29] !== y || e[30] !== d ? (R = /* @__PURE__ */ l(qe, { readOnly: b, values: d, onRemove: y }), e[28] = b, e[29] = y, e[30] = d, e[31] = R) : R = e[31];
|
|
1660
|
+
let C;
|
|
1661
|
+
e[32] !== T || e[33] !== W || e[34] !== R ? (C = /* @__PURE__ */ _(Te, { alignItems: "start", gap: "xs", minW: "0", children: [
|
|
1662
|
+
W,
|
|
1663
|
+
T,
|
|
1664
|
+
R
|
|
1665
|
+
] }), e[32] = T, e[33] = W, e[34] = R, e[35] = C) : C = e[35];
|
|
1666
|
+
let z;
|
|
1667
|
+
return e[36] !== o || e[37] !== n || e[38] !== C ? (z = /* @__PURE__ */ l(se, { name: n, description: o, orientation: "stacked", children: C }), e[36] = o, e[37] = n, e[38] = C, e[39] = z) : z = e[39], z;
|
|
1668
|
+
}, Kn = (a) => {
|
|
1669
|
+
const e = j(33), {
|
|
1670
|
+
id: t,
|
|
1671
|
+
defaultValue: n,
|
|
1672
|
+
name: o,
|
|
1673
|
+
onChange: c,
|
|
1674
|
+
description: i,
|
|
1675
|
+
readOnly: r,
|
|
1676
|
+
hideLabel: s,
|
|
1677
|
+
size: f
|
|
1678
|
+
} = a, b = s === void 0 ? !1 : s, m = f === void 0 ? "sm" : f, [S, u] = J(n), [h, d] = J(!1), v = ge(null);
|
|
1679
|
+
let L;
|
|
1680
|
+
e[0] !== t || e[1] !== c ? (L = (C) => {
|
|
1681
|
+
v.current && clearTimeout(v.current), v.current = setTimeout(() => c(t, C), 540);
|
|
1682
|
+
}, e[0] = t, e[1] = c, e[2] = L) : L = e[2];
|
|
1683
|
+
const k = L;
|
|
1684
|
+
let w, g;
|
|
1685
|
+
e[3] !== n ? (w = () => {
|
|
1686
|
+
u(n);
|
|
1687
|
+
}, g = [n], e[3] = n, e[4] = w, e[5] = g) : (w = e[4], g = e[5]), ne(w, g);
|
|
1688
|
+
let p;
|
|
1689
|
+
e[6] !== k ? (p = (C) => {
|
|
1690
|
+
u(C), k(C);
|
|
1691
|
+
}, e[6] = k, e[7] = p) : p = e[7];
|
|
1692
|
+
const x = p;
|
|
1693
|
+
let y;
|
|
1694
|
+
e[8] !== r ? (y = () => {
|
|
1695
|
+
r || d(!0);
|
|
1696
|
+
}, e[8] = r, e[9] = y) : y = e[9];
|
|
1697
|
+
const V = y;
|
|
1698
|
+
let T;
|
|
1699
|
+
e[10] !== S ? (T = () => {
|
|
1700
|
+
S.trim().length === 0 && d(!1);
|
|
1701
|
+
}, e[10] = S, e[11] = T) : T = e[11];
|
|
1702
|
+
const $ = T;
|
|
1703
|
+
let I;
|
|
1704
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (C) => {
|
|
1705
|
+
C.key === "Escape" && (d(!1), C.preventDefault());
|
|
1706
|
+
}, e[12] = I) : I = e[12];
|
|
1707
|
+
const W = I;
|
|
1708
|
+
if (r) {
|
|
1709
|
+
let C;
|
|
1710
|
+
e[13] !== i || e[14] !== b || e[15] !== o ? (C = !b && /* @__PURE__ */ l(M, { name: o, description: i }), e[13] = i, e[14] = b, e[15] = o, e[16] = C) : C = e[16];
|
|
1711
|
+
let z;
|
|
1712
|
+
e[17] !== S ? (z = /* @__PURE__ */ l(te, { preserveWhitespace: !0, children: S }), e[17] = S, e[18] = z) : z = e[18];
|
|
1713
|
+
let O;
|
|
1714
|
+
return e[19] !== z || e[20] !== C ? (O = /* @__PURE__ */ l(N, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
1715
|
+
C,
|
|
1716
|
+
z
|
|
1717
|
+
] }) }), e[19] = z, e[20] = C, e[21] = O) : O = e[21], O;
|
|
1718
|
+
}
|
|
1719
|
+
let R;
|
|
1720
|
+
return e[22] !== i || e[23] !== $ || e[24] !== x || e[25] !== V || e[26] !== b || e[27] !== h || e[28] !== o || e[29] !== r || e[30] !== m || e[31] !== S ? (R = /* @__PURE__ */ l(N, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ l(N, { position: "relative", minHeight: "2rem", children: h ? /* @__PURE__ */ _(N, { position: "absolute", top: "0", left: "0", right: "0", zIndex: "10", bg: "bg", borderWidth: "1px", borderStyle: "solid", borderColor: "border", borderRadius: "lg", p: "2", transition: "border-color 0.2s ease-in-out", boxShadow: "none", _hover: {
|
|
1721
|
+
borderColor: "border.accent-light"
|
|
1722
|
+
}, _active: {
|
|
1723
|
+
borderColor: "border.accent-light"
|
|
1724
|
+
}, _focusWithin: {
|
|
1725
|
+
borderColor: "border.accent-light",
|
|
1726
|
+
boxShadow: "none"
|
|
1727
|
+
}, children: [
|
|
1728
|
+
!b && /* @__PURE__ */ l(N, { mb: "sm", children: /* @__PURE__ */ l(M, { name: o, description: i }) }),
|
|
1729
|
+
/* @__PURE__ */ l(et, { "aria-label": o, className: "nodrag", readOnly: r, width: "100%", size: m, placeholder: b ? o : void 0, value: S, onChange: (C) => x(C.target.value), onBlur: $, onKeyDown: W, rows: 3, resize: "vertical", autoFocus: !0 })
|
|
1730
|
+
] }) : /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", height: "2rem", gap: "xs", children: [
|
|
1731
|
+
!b && /* @__PURE__ */ l(M, { name: o, description: i }),
|
|
1732
|
+
/* @__PURE__ */ l($e, { "aria-label": o, className: "nodrag", readOnly: r, flex: "1", maxW: "12.5rem", size: m, type: "text", placeholder: b ? o : void 0, value: S, onClick: V, onChange: (C) => x(C.target.value), onKeyUp: Xn })
|
|
1733
|
+
] }) }) }), e[22] = i, e[23] = $, e[24] = x, e[25] = V, e[26] = b, e[27] = h, e[28] = o, e[29] = r, e[30] = m, e[31] = S, e[32] = R) : R = e[32], R;
|
|
1734
|
+
};
|
|
1735
|
+
function Xn(a) {
|
|
1736
|
+
a.key === "Enter" && a.currentTarget.blur();
|
|
1737
|
+
}
|
|
1738
|
+
const Yn = (a) => {
|
|
1739
|
+
const e = j(28), {
|
|
1740
|
+
id: t,
|
|
1741
|
+
name: n,
|
|
1742
|
+
description: o,
|
|
1743
|
+
defaultValue: c,
|
|
1744
|
+
placeholder: i,
|
|
1745
|
+
onChange: r,
|
|
1746
|
+
readOnly: s,
|
|
1747
|
+
presentation: f,
|
|
1748
|
+
size: b
|
|
1749
|
+
} = a, m = f === void 0 ? "stacked" : f, S = b === void 0 ? "sm" : b, [u, h] = J(c), [d, v] = J(!1);
|
|
1750
|
+
let L, k;
|
|
1751
|
+
e[0] !== c ? (L = () => {
|
|
1752
|
+
h(c);
|
|
1753
|
+
}, k = [c], e[0] = c, e[1] = L, e[2] = k) : (L = e[1], k = e[2]), ne(L, k);
|
|
1754
|
+
let w;
|
|
1755
|
+
e[3] !== t || e[4] !== r ? (w = (I) => {
|
|
1756
|
+
h(I), r(t, I);
|
|
1757
|
+
}, e[3] = t, e[4] = r, e[5] = w) : w = e[5];
|
|
1758
|
+
const g = w;
|
|
1759
|
+
let p;
|
|
1760
|
+
e[6] !== g || e[7] !== i || e[8] !== s ? (p = (I) => /* @__PURE__ */ l(N, { borderWidth: "1px", borderColor: "border", borderRadius: "xs", minH: "7rem", minW: "0", overflow: "visible", width: "full", children: /* @__PURE__ */ l(ht, { defaultState: I, isEditable: !s, placeholder: i, scrollable: !1, onChange: g }) }), e[6] = g, e[7] = i, e[8] = s, e[9] = p) : p = e[9];
|
|
1761
|
+
const x = p;
|
|
1762
|
+
let y;
|
|
1763
|
+
e[10] !== o || e[11] !== n ? (y = /* @__PURE__ */ l(M, { name: n, description: o }), e[10] = o, e[11] = n, e[12] = y) : y = e[12];
|
|
1764
|
+
const V = y;
|
|
1765
|
+
if (m === "horizontal") {
|
|
1766
|
+
if (s) {
|
|
1767
|
+
let W;
|
|
1768
|
+
return e[13] !== u ? (W = /* @__PURE__ */ l(N, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ l(G, { alignItems: "center", minHeight: "2rem", children: /* @__PURE__ */ l(te, { preserveWhitespace: !0, children: u }) }) }), e[13] = u, e[14] = W) : W = e[14], W;
|
|
1769
|
+
}
|
|
1770
|
+
let I;
|
|
1771
|
+
return e[15] !== g || e[16] !== x || e[17] !== d || e[18] !== n || e[19] !== S || e[20] !== u ? (I = /* @__PURE__ */ l(N, { position: "relative", flex: "1", minW: "12.5rem", children: /* @__PURE__ */ l(N, { position: "relative", minHeight: "2rem", children: d ? /* @__PURE__ */ l(N, { position: "absolute", top: "0", left: "0", right: "0", zIndex: "10", bg: "bg", borderWidth: "1px", borderColor: "border", borderRadius: "lg", p: "2", transition: "border-color 0.2s ease-in-out", _hover: {
|
|
1772
|
+
borderColor: "border.accent-light"
|
|
1773
|
+
}, _focusWithin: {
|
|
1774
|
+
borderColor: "border.accent-light"
|
|
1775
|
+
}, onKeyDown: (W) => {
|
|
1776
|
+
W.key === "Escape" && (v(!1), W.preventDefault());
|
|
1777
|
+
}, children: x(u) }) : /* @__PURE__ */ l($e, { className: "nodrag", flex: "1", maxW: "12.5rem", size: S, type: "text", placeholder: n, value: u, onClick: () => {
|
|
1778
|
+
v(!0);
|
|
1779
|
+
}, onChange: (W) => g(W.target.value) }) }) }), e[15] = g, e[16] = x, e[17] = d, e[18] = n, e[19] = S, e[20] = u, e[21] = I) : I = e[21], I;
|
|
1780
|
+
}
|
|
1781
|
+
let T;
|
|
1782
|
+
e[22] !== x || e[23] !== u ? (T = x(u), e[22] = x, e[23] = u, e[24] = T) : T = e[24];
|
|
1783
|
+
let $;
|
|
1784
|
+
return e[25] !== V || e[26] !== T ? ($ = /* @__PURE__ */ _(Te, { gap: "xs", minW: "0", width: "full", children: [
|
|
1785
|
+
V,
|
|
1786
|
+
T
|
|
1787
|
+
] }), e[25] = V, e[26] = T, e[27] = $) : $ = e[27], $;
|
|
1788
|
+
}, it = bt.forwardRef(function(e, t) {
|
|
1789
|
+
const n = j(9);
|
|
1790
|
+
let o, c;
|
|
1791
|
+
n[0] !== e ? ({
|
|
1792
|
+
children: o,
|
|
1793
|
+
...c
|
|
1794
|
+
} = e, n[0] = e, n[1] = o, n[2] = c) : (o = n[1], c = n[2]);
|
|
1795
|
+
let i;
|
|
1796
|
+
n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(ze.Track, { height: "2px", borderRadius: "0", bg: "bg.muted", children: /* @__PURE__ */ l(ze.Range, { bg: "fg" }) }), n[3] = i) : i = n[3];
|
|
1797
|
+
let r;
|
|
1798
|
+
n[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ _(ze.Control, { children: [
|
|
1799
|
+
i,
|
|
1800
|
+
/* @__PURE__ */ l(ze.Thumbs, { boxSize: "0.5rem", bg: "fg", borderWidth: "1px", borderColor: "bg", borderRadius: "none", boxShadow: "none", transition: "width 0.12s ease, height 0.12s ease, border-color 0.2s ease-in-out", _hover: {
|
|
1801
|
+
boxSize: "0.75rem",
|
|
1802
|
+
borderColor: "border.accent-light"
|
|
1803
|
+
}, _active: {
|
|
1804
|
+
boxSize: "0.875rem",
|
|
1805
|
+
borderColor: "border.accent-light"
|
|
1806
|
+
}, _focusVisible: {
|
|
1807
|
+
borderColor: "border.accent-light",
|
|
1808
|
+
outline: "none",
|
|
1809
|
+
boxShadow: "none"
|
|
1810
|
+
} })
|
|
1811
|
+
] }), n[4] = r) : r = n[4];
|
|
1812
|
+
let s;
|
|
1813
|
+
return n[5] !== o || n[6] !== t || n[7] !== c ? (s = /* @__PURE__ */ _(ze.Root, { ref: t, variant: "solid", ...c, children: [
|
|
1814
|
+
r,
|
|
1815
|
+
o
|
|
1816
|
+
] }), n[5] = o, n[6] = t, n[7] = c, n[8] = s) : s = n[8], s;
|
|
1817
|
+
}), rt = (a) => {
|
|
1818
|
+
const e = j(46), {
|
|
1819
|
+
id: t,
|
|
1820
|
+
defaultValue: n,
|
|
1821
|
+
name: o,
|
|
1822
|
+
step: c,
|
|
1823
|
+
min: i,
|
|
1824
|
+
max: r,
|
|
1825
|
+
onChange: s,
|
|
1826
|
+
description: f,
|
|
1827
|
+
readOnly: b,
|
|
1828
|
+
hideLabel: m,
|
|
1829
|
+
hideSlider: S,
|
|
1830
|
+
fullWidth: u,
|
|
1831
|
+
size: h
|
|
1832
|
+
} = a, d = c === void 0 ? 1 : c, v = m === void 0 ? !1 : m, L = S === void 0 ? !1 : S, k = u === void 0 ? !1 : u, w = h === void 0 ? "sm" : h, [g, p] = J(n), y = i !== void 0 && r !== void 0 && !L, V = k && !y, T = ge(null);
|
|
1833
|
+
let $;
|
|
1834
|
+
e[0] !== t || e[1] !== s ? ($ = (E) => {
|
|
1835
|
+
T.current && clearTimeout(T.current), T.current = setTimeout(() => s(t, E), 540);
|
|
1836
|
+
}, e[0] = t, e[1] = s, e[2] = $) : $ = e[2];
|
|
1837
|
+
const I = $;
|
|
1838
|
+
let W, R;
|
|
1839
|
+
if (e[3] !== n ? (W = () => {
|
|
1840
|
+
p(n);
|
|
1841
|
+
}, R = [n], e[3] = n, e[4] = W, e[5] = R) : (W = e[4], R = e[5]), ne(W, R), b) {
|
|
1842
|
+
let E;
|
|
1843
|
+
e[6] !== g ? (E = /* @__PURE__ */ l(te, { children: g }), e[6] = g, e[7] = E) : E = e[7];
|
|
1844
|
+
const P = E;
|
|
1845
|
+
if (k) {
|
|
1846
|
+
let A;
|
|
1847
|
+
e[8] !== f || e[9] !== v || e[10] !== o ? (A = !v && /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: o, description: f }) }), e[8] = f, e[9] = v, e[10] = o, e[11] = A) : A = e[11];
|
|
1848
|
+
let D;
|
|
1849
|
+
return e[12] !== A || e[13] !== P ? (D = /* @__PURE__ */ _(N, { children: [
|
|
1850
|
+
A,
|
|
1851
|
+
P
|
|
1852
|
+
] }), e[12] = A, e[13] = P, e[14] = D) : D = e[14], D;
|
|
1853
|
+
}
|
|
1854
|
+
let H;
|
|
1855
|
+
e[15] !== f || e[16] !== v || e[17] !== o ? (H = !v && /* @__PURE__ */ l(M, { name: o, description: f }), e[15] = f, e[16] = v, e[17] = o, e[18] = H) : H = e[18];
|
|
1856
|
+
let U;
|
|
1857
|
+
return e[19] !== H || e[20] !== P ? (U = /* @__PURE__ */ l(N, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
1858
|
+
H,
|
|
1859
|
+
P
|
|
1860
|
+
] }) }), e[19] = H, e[20] = P, e[21] = U) : U = e[21], U;
|
|
1861
|
+
}
|
|
1862
|
+
let C;
|
|
1863
|
+
e[22] !== f || e[23] !== v || e[24] !== r || e[25] !== i || e[26] !== o || e[27] !== b || e[28] !== I || e[29] !== w || e[30] !== d || e[31] !== V || e[32] !== g ? (C = V ? /* @__PURE__ */ _(N, { children: [
|
|
1864
|
+
!v && /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: o, description: f }) }),
|
|
1865
|
+
/* @__PURE__ */ l(Ge, { disabled: b, width: "100%", size: w, value: `${g}`, step: d, min: i, max: r, onValueChange: (E) => {
|
|
1866
|
+
const P = Number.isNaN(E.valueAsNumber) ? i ?? 0 : E.valueAsNumber;
|
|
1867
|
+
p(P), I(P);
|
|
1868
|
+
}, children: /* @__PURE__ */ l(Ue, { className: "nodrag", readOnly: b, placeholder: v ? o : void 0, onKeyUp: Zn }) })
|
|
1869
|
+
] }) : /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
1870
|
+
!v && /* @__PURE__ */ l(M, { name: o, description: f }),
|
|
1871
|
+
/* @__PURE__ */ l(Ge, { disabled: b, width: "5rem", size: w, value: `${g}`, step: d, min: i, max: r, onValueChange: (E) => {
|
|
1872
|
+
const P = Number.isNaN(E.valueAsNumber) ? i ?? 0 : E.valueAsNumber;
|
|
1873
|
+
p(P), I(P);
|
|
1874
|
+
}, children: /* @__PURE__ */ l(Ue, { className: "nodrag", readOnly: b, placeholder: v ? o : void 0, onKeyUp: Qn }) })
|
|
1875
|
+
] }), e[22] = f, e[23] = v, e[24] = r, e[25] = i, e[26] = o, e[27] = b, e[28] = I, e[29] = w, e[30] = d, e[31] = V, e[32] = g, e[33] = C) : C = e[33];
|
|
1876
|
+
let z;
|
|
1877
|
+
e[34] !== t || e[35] !== r || e[36] !== i || e[37] !== s || e[38] !== b || e[39] !== y || e[40] !== d || e[41] !== g ? (z = y && /* @__PURE__ */ l(it, { disabled: b, value: [g], step: d, min: i, max: r, onValueChange: (E) => {
|
|
1878
|
+
p(E.value[0]);
|
|
1879
|
+
}, onValueChangeEnd: (E) => {
|
|
1880
|
+
s(t, E.value[0]);
|
|
1881
|
+
} }), e[34] = t, e[35] = r, e[36] = i, e[37] = s, e[38] = b, e[39] = y, e[40] = d, e[41] = g, e[42] = z) : z = e[42];
|
|
1882
|
+
let O;
|
|
1883
|
+
return e[43] !== C || e[44] !== z ? (O = /* @__PURE__ */ _(N, { children: [
|
|
1884
|
+
C,
|
|
1885
|
+
z
|
|
1886
|
+
] }), e[43] = C, e[44] = z, e[45] = O) : O = e[45], O;
|
|
1887
|
+
};
|
|
1888
|
+
function Zn(a) {
|
|
1889
|
+
a.key === "Enter" && a.currentTarget.blur();
|
|
1890
|
+
}
|
|
1891
|
+
function Qn(a) {
|
|
1892
|
+
a.key === "Enter" && a.currentTarget.blur();
|
|
1893
|
+
}
|
|
1894
|
+
const Le = (a, e, t) => {
|
|
1895
|
+
const n = Math.min(e, t), o = Math.max(e, t);
|
|
1896
|
+
return a < n ? n : a > o ? o : a;
|
|
1897
|
+
}, Me = (a, e, t = 0) => {
|
|
1898
|
+
if (!(e > 0)) return a;
|
|
1899
|
+
const n = Math.round((a - t) / e);
|
|
1900
|
+
return t + n * e;
|
|
1901
|
+
}, De = (a, e) => {
|
|
1902
|
+
const t = Number.isInteger(a) ? `${a}` : `${Number(a.toFixed(3))}`;
|
|
1903
|
+
return e ? `${t}${e}` : t;
|
|
1904
|
+
}, _e = (a, e, t, n) => {
|
|
1905
|
+
const o = Le(a[0], e, t), c = Le(a[1], e, t);
|
|
1906
|
+
let i = Math.min(o, c), r = Math.max(o, c);
|
|
1907
|
+
return n && n > 0 && (i = Le(Me(i, n, e), e, t), r = Le(Me(r, n, e), e, t)), [i, r];
|
|
1908
|
+
}, Jn = (a) => {
|
|
1909
|
+
const e = j(4), {
|
|
1910
|
+
count: t
|
|
1911
|
+
} = a;
|
|
1912
|
+
if (!t || t < 2)
|
|
1913
|
+
return null;
|
|
1914
|
+
let n;
|
|
1915
|
+
e[0] !== t ? (n = Array.from({
|
|
1916
|
+
length: t
|
|
1917
|
+
}, (i, r) => r / (t - 1)), e[0] = t, e[1] = n) : n = e[1];
|
|
1918
|
+
const o = n;
|
|
1919
|
+
let c;
|
|
1920
|
+
return e[2] !== o ? (c = /* @__PURE__ */ l(G, { justifyContent: "space-between", mt: "2xs", "aria-hidden": "true", children: o.map(eo) }), e[2] = o, e[3] = c) : c = e[3], c;
|
|
1921
|
+
};
|
|
1922
|
+
function eo(a) {
|
|
1923
|
+
return /* @__PURE__ */ l(N, { width: "1px", height: "0.375rem", bg: "border.subtle" }, a);
|
|
1924
|
+
}
|
|
1925
|
+
const to = (a) => {
|
|
1926
|
+
const e = j(71), {
|
|
1927
|
+
id: t,
|
|
1928
|
+
name: n,
|
|
1929
|
+
description: o,
|
|
1930
|
+
defaultValue: c,
|
|
1931
|
+
min: i,
|
|
1932
|
+
max: r,
|
|
1933
|
+
step: s,
|
|
1934
|
+
unit: f,
|
|
1935
|
+
markerCount: b,
|
|
1936
|
+
onChange: m,
|
|
1937
|
+
readOnly: S,
|
|
1938
|
+
fullWidth: u,
|
|
1939
|
+
presentation: h
|
|
1940
|
+
} = a, d = s === void 0 ? 1 : s, v = h === void 0 ? "stacked" : h;
|
|
1941
|
+
let L;
|
|
1942
|
+
e[0] !== c || e[1] !== r || e[2] !== i || e[3] !== d ? (L = () => _e(c, i, r, d), e[0] = c, e[1] = r, e[2] = i, e[3] = d, e[4] = L) : L = e[4];
|
|
1943
|
+
const [k, w] = J(L);
|
|
1944
|
+
let g, p;
|
|
1945
|
+
e[5] !== c || e[6] !== r || e[7] !== i || e[8] !== d ? (g = () => {
|
|
1946
|
+
w(_e(c, i, r, d));
|
|
1947
|
+
}, p = [c, i, r, d], e[5] = c, e[6] = r, e[7] = i, e[8] = d, e[9] = g, e[10] = p) : (g = e[9], p = e[10]), ne(g, p);
|
|
1948
|
+
let x;
|
|
1949
|
+
e[11] !== f || e[12] !== k[0] ? (x = De(k[0], f), e[11] = f, e[12] = k[0], e[13] = x) : x = e[13];
|
|
1950
|
+
let y;
|
|
1951
|
+
e[14] !== f || e[15] !== k[1] ? (y = De(k[1], f), e[14] = f, e[15] = k[1], e[16] = y) : y = e[16];
|
|
1952
|
+
const V = `${x} – ${y}`, T = v === "horizontal";
|
|
1953
|
+
if (S) {
|
|
1954
|
+
if (T) {
|
|
1955
|
+
let A;
|
|
1956
|
+
return e[17] !== V ? (A = /* @__PURE__ */ l(te, { children: V }), e[17] = V, e[18] = A) : A = e[18], A;
|
|
1957
|
+
}
|
|
1958
|
+
let H;
|
|
1959
|
+
e[19] !== V ? (H = /* @__PURE__ */ l(te, { children: V }), e[19] = V, e[20] = H) : H = e[20];
|
|
1960
|
+
let U;
|
|
1961
|
+
return e[21] !== o || e[22] !== u || e[23] !== n || e[24] !== H ? (U = /* @__PURE__ */ l(se, { name: n, description: o, fullWidth: u, children: H }), e[21] = o, e[22] = u, e[23] = n, e[24] = H, e[25] = U) : U = e[25], U;
|
|
1962
|
+
}
|
|
1963
|
+
let $;
|
|
1964
|
+
e[26] !== V ? ($ = /* @__PURE__ */ l(ye, { textStyle: "label/S/regular", color: "fg.muted", whiteSpace: "nowrap", children: V }), e[26] = V, e[27] = $) : $ = e[27];
|
|
1965
|
+
const I = $;
|
|
1966
|
+
let W;
|
|
1967
|
+
e[28] !== r || e[29] !== i || e[30] !== d ? (W = (H) => w(_e(H.value, i, r, d)), e[28] = r, e[29] = i, e[30] = d, e[31] = W) : W = e[31];
|
|
1968
|
+
let R;
|
|
1969
|
+
e[32] !== t || e[33] !== r || e[34] !== i || e[35] !== m || e[36] !== d ? (R = (H) => {
|
|
1970
|
+
const U = _e(H.value, i, r, d);
|
|
1971
|
+
w(U), m(t, U);
|
|
1972
|
+
}, e[32] = t, e[33] = r, e[34] = i, e[35] = m, e[36] = d, e[37] = R) : R = e[37];
|
|
1973
|
+
let C;
|
|
1974
|
+
e[38] !== r || e[39] !== i || e[40] !== d || e[41] !== W || e[42] !== R || e[43] !== k ? (C = /* @__PURE__ */ l(it, { size: "sm", value: k, min: i, max: r, step: d, onValueChange: W, onValueChangeEnd: R }), e[38] = r, e[39] = i, e[40] = d, e[41] = W, e[42] = R, e[43] = k, e[44] = C) : C = e[44];
|
|
1975
|
+
let z;
|
|
1976
|
+
e[45] !== b ? (z = /* @__PURE__ */ l(Jn, { count: b }), e[45] = b, e[46] = z) : z = e[46];
|
|
1977
|
+
let O;
|
|
1978
|
+
e[47] !== C || e[48] !== z ? (O = /* @__PURE__ */ _(N, { children: [
|
|
1979
|
+
C,
|
|
1980
|
+
z
|
|
1981
|
+
] }), e[47] = C, e[48] = z, e[49] = O) : O = e[49];
|
|
1982
|
+
const E = O;
|
|
1983
|
+
if (T) {
|
|
1984
|
+
let H;
|
|
1985
|
+
e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
|
|
1986
|
+
placement: "bottom-start",
|
|
1987
|
+
offset: {
|
|
1988
|
+
mainAxis: 4
|
|
1989
|
+
}
|
|
1990
|
+
}, e[50] = H) : H = e[50];
|
|
1991
|
+
const U = `${n}: ${V}`;
|
|
1992
|
+
let A;
|
|
1993
|
+
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ l(pe, { as: tt, boxSize: "14px" }), e[51] = A) : A = e[51];
|
|
1994
|
+
let D;
|
|
1995
|
+
e[52] !== V || e[53] !== U ? (D = /* @__PURE__ */ l(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ _(Ie, { size: "xs", variant: "ghost", "aria-label": U, children: [
|
|
1996
|
+
V,
|
|
1997
|
+
A
|
|
1998
|
+
] }) }), e[52] = V, e[53] = U, e[54] = D) : D = e[54];
|
|
1999
|
+
let q;
|
|
2000
|
+
e[55] !== n ? (q = /* @__PURE__ */ l(ye, { textStyle: "label/S/medium", children: n }), e[55] = n, e[56] = q) : q = e[56];
|
|
2001
|
+
let Z;
|
|
2002
|
+
e[57] !== q || e[58] !== I ? (Z = /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
|
|
2003
|
+
q,
|
|
2004
|
+
I
|
|
2005
|
+
] }), e[57] = q, e[58] = I, e[59] = Z) : Z = e[59];
|
|
2006
|
+
let F;
|
|
2007
|
+
e[60] !== E || e[61] !== Z ? (F = /* @__PURE__ */ l(xe.Positioner, { children: /* @__PURE__ */ l(xe.Content, { width: "60", padding: "sm", background: "bg", children: /* @__PURE__ */ _(Te, { gap: "xs", children: [
|
|
2008
|
+
Z,
|
|
2009
|
+
E
|
|
2010
|
+
] }) }) }), e[60] = E, e[61] = Z, e[62] = F) : F = e[62];
|
|
2011
|
+
let K;
|
|
2012
|
+
return e[63] !== D || e[64] !== F ? (K = /* @__PURE__ */ _(xe.Root, { positioning: H, children: [
|
|
2013
|
+
D,
|
|
2014
|
+
F
|
|
2015
|
+
] }), e[63] = D, e[64] = F, e[65] = K) : K = e[65], K;
|
|
2016
|
+
}
|
|
2017
|
+
let P;
|
|
2018
|
+
return e[66] !== o || e[67] !== n || e[68] !== E || e[69] !== I ? (P = /* @__PURE__ */ l(se, { name: n, description: o, orientation: "stacked", labelTrailing: I, children: E }), e[66] = o, e[67] = n, e[68] = E, e[69] = I, e[70] = P) : P = e[70], P;
|
|
2019
|
+
}, no = (a) => /* @__PURE__ */ l(pe, { as: Ve(a.icon), boxSize: "14px", color: a.color ? `${a.color}.500` : "fg.muted" }), oo = (a) => window.open(a, "_blank", "noreferrer"), lo = (a) => {
|
|
2020
|
+
navigator.clipboard?.writeText(a).catch(() => {
|
|
2021
|
+
});
|
|
2022
|
+
}, io = (a) => {
|
|
2023
|
+
const e = j(18), {
|
|
2024
|
+
option: t,
|
|
2025
|
+
onOpenResource: n,
|
|
2026
|
+
onRemove: o
|
|
2027
|
+
} = a;
|
|
2028
|
+
if (!!!(t.href || t.ref || t.copyText)) {
|
|
2029
|
+
let u;
|
|
2030
|
+
return e[0] !== t.name ? (u = /* @__PURE__ */ l($n, { children: t.name }), e[0] = t.name, e[1] = u) : u = e[1], u;
|
|
2031
|
+
}
|
|
2032
|
+
let i;
|
|
2033
|
+
e[2] !== n || e[3] !== t.copyText || e[4] !== t.href || e[5] !== t.ref ? (i = t.href && t.href.length > 0 ? () => oo(t.href) : t.ref && n ? () => n(t.ref) : t.copyText ? () => lo(t.copyText) : void 0, e[2] = n, e[3] = t.copyText, e[4] = t.href, e[5] = t.ref, e[6] = i) : i = e[6];
|
|
2034
|
+
const r = i, s = t.name;
|
|
2035
|
+
let f;
|
|
2036
|
+
e[7] !== t ? (f = no(t), e[7] = t, e[8] = f) : f = e[8];
|
|
2037
|
+
let b;
|
|
2038
|
+
e[9] !== r ? (b = r ? () => r() : void 0, e[9] = r, e[10] = b) : b = e[10];
|
|
2039
|
+
let m;
|
|
2040
|
+
e[11] !== o ? (m = o ? () => o() : void 0, e[11] = o, e[12] = m) : m = e[12];
|
|
2041
|
+
let S;
|
|
2042
|
+
return e[13] !== t.name || e[14] !== f || e[15] !== b || e[16] !== m ? (S = /* @__PURE__ */ l(pt, { fileName: s, icon: f, size: "md", onSelect: b, onRemove: m }), e[13] = t.name, e[14] = f, e[15] = b, e[16] = m, e[17] = S) : S = e[17], S;
|
|
2043
|
+
}, Ke = (a) => {
|
|
2044
|
+
const e = j(11), {
|
|
2045
|
+
options: t,
|
|
2046
|
+
onOpenResource: n,
|
|
2047
|
+
onRemove: o,
|
|
2048
|
+
emptyText: c
|
|
2049
|
+
} = a;
|
|
2050
|
+
if (t.length === 0) {
|
|
2051
|
+
const s = c ?? "None";
|
|
2052
|
+
let f;
|
|
2053
|
+
return e[0] !== s ? (f = /* @__PURE__ */ l(ye, { textStyle: "label/S/regular", color: "fg.muted", children: s }), e[0] = s, e[1] = f) : f = e[1], f;
|
|
2054
|
+
}
|
|
2055
|
+
let i;
|
|
2056
|
+
if (e[2] !== n || e[3] !== o || e[4] !== t) {
|
|
2057
|
+
let s;
|
|
2058
|
+
e[6] !== n || e[7] !== o ? (s = (f) => /* @__PURE__ */ l(io, { option: f, onOpenResource: n, onRemove: o ? () => o(f.id) : void 0 }, f.id), e[6] = n, e[7] = o, e[8] = s) : s = e[8], i = t.map(s), e[2] = n, e[3] = o, e[4] = t, e[5] = i;
|
|
2059
|
+
} else
|
|
2060
|
+
i = e[5];
|
|
2061
|
+
let r;
|
|
2062
|
+
return e[9] !== i ? (r = /* @__PURE__ */ l(Je, { gap: "2xs", children: i }), e[9] = i, e[10] = r) : r = e[10], r;
|
|
2063
|
+
}, ro = (a) => Array.isArray(a) ? a : a ? [a] : [], ao = (a, e) => a.map((t) => e.find((n) => n.id === t)).filter((t) => !!t), Ae = (a) => {
|
|
2064
|
+
const e = j(11), {
|
|
2065
|
+
fullWidth: t,
|
|
2066
|
+
label: n,
|
|
2067
|
+
control: o,
|
|
2068
|
+
presentation: c
|
|
2069
|
+
} = a;
|
|
2070
|
+
if (c === "horizontal") {
|
|
2071
|
+
let r;
|
|
2072
|
+
return e[0] !== o || e[1] !== n ? (r = /* @__PURE__ */ _(Te, { gap: "2xs", alignItems: "start", minW: "0", children: [
|
|
2073
|
+
n,
|
|
2074
|
+
o
|
|
2075
|
+
] }), e[0] = o, e[1] = n, e[2] = r) : r = e[2], r;
|
|
2076
|
+
}
|
|
2077
|
+
if (t) {
|
|
2078
|
+
let r;
|
|
2079
|
+
e[3] !== n ? (r = /* @__PURE__ */ l(N, { mb: "xs", children: n }), e[3] = n, e[4] = r) : r = e[4];
|
|
2080
|
+
let s;
|
|
2081
|
+
return e[5] !== o || e[6] !== r ? (s = /* @__PURE__ */ _(N, { children: [
|
|
2082
|
+
r,
|
|
2083
|
+
o
|
|
2084
|
+
] }), e[5] = o, e[6] = r, e[7] = s) : s = e[7], s;
|
|
2085
|
+
}
|
|
2086
|
+
let i;
|
|
2087
|
+
return e[8] !== o || e[9] !== n ? (i = /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
2088
|
+
n,
|
|
2089
|
+
o
|
|
2090
|
+
] }), e[8] = o, e[9] = n, e[10] = i) : i = e[10], i;
|
|
2091
|
+
}, Xe = (a) => {
|
|
2092
|
+
const e = j(9), {
|
|
2093
|
+
triggerLabel: t,
|
|
2094
|
+
options: n,
|
|
2095
|
+
selectedIds: o,
|
|
2096
|
+
multiSelect: c,
|
|
2097
|
+
triggerVariant: i,
|
|
2098
|
+
triggerAriaLabel: r,
|
|
2099
|
+
size: s,
|
|
2100
|
+
onToggle: f
|
|
2101
|
+
} = a;
|
|
2102
|
+
let b;
|
|
2103
|
+
return e[0] !== c || e[1] !== f || e[2] !== n || e[3] !== o || e[4] !== s || e[5] !== r || e[6] !== t || e[7] !== i ? (b = /* @__PURE__ */ l(Ne, { triggerLabel: t, options: n, selectedIds: o, multiSelect: c, triggerVariant: i, triggerAriaLabel: r, size: s, onToggle: f }), e[0] = c, e[1] = f, e[2] = n, e[3] = o, e[4] = s, e[5] = r, e[6] = t, e[7] = i, e[8] = b) : b = e[8], b;
|
|
2104
|
+
}, co = (a) => {
|
|
2105
|
+
const e = j(19), {
|
|
2106
|
+
id: t,
|
|
2107
|
+
name: n,
|
|
2108
|
+
description: o,
|
|
2109
|
+
defaultValue: c,
|
|
2110
|
+
options: i,
|
|
2111
|
+
onChange: r,
|
|
2112
|
+
onOpenResource: s,
|
|
2113
|
+
readOnly: f,
|
|
2114
|
+
editable: b,
|
|
2115
|
+
multiSelect: m,
|
|
2116
|
+
placeholder: S,
|
|
2117
|
+
emptyText: u,
|
|
2118
|
+
fullWidth: h,
|
|
2119
|
+
presentation: d,
|
|
2120
|
+
size: v
|
|
2121
|
+
} = a, L = b === void 0 ? !1 : b, k = m === void 0 ? !1 : m, w = h === void 0 ? !1 : h, g = d === void 0 ? "stacked" : d, p = v === void 0 ? "sm" : v, [x, y] = J(c), V = ge(null);
|
|
2122
|
+
let T, $;
|
|
2123
|
+
e[0] !== c ? (T = () => {
|
|
2124
|
+
y(c);
|
|
2125
|
+
}, $ = [c], e[0] = c, e[1] = T, e[2] = $) : (T = e[1], $ = e[2]), ne(T, $);
|
|
2126
|
+
const I = (F) => {
|
|
2127
|
+
V.current && clearTimeout(V.current), r(t, F);
|
|
2128
|
+
}, W = (F) => {
|
|
2129
|
+
V.current && clearTimeout(V.current), V.current = setTimeout(() => r(t, F), 540);
|
|
2130
|
+
}, R = ro(x), C = ao(R, i), z = L && !f, O = g === "horizontal";
|
|
2131
|
+
let E;
|
|
2132
|
+
e[3] !== o || e[4] !== n || e[5] !== O ? (E = /* @__PURE__ */ l(M, { name: n, description: o, compact: O }), e[3] = o, e[4] = n, e[5] = O, e[6] = E) : E = e[6];
|
|
2133
|
+
const P = E;
|
|
2134
|
+
if (!z)
|
|
2135
|
+
return /* @__PURE__ */ l(Ae, { fullWidth: w, label: P, presentation: g, control: /* @__PURE__ */ l(Ke, { options: C, onOpenResource: s, emptyText: u }) });
|
|
2136
|
+
const H = (F) => {
|
|
2137
|
+
if (k) {
|
|
2138
|
+
const ie = R.includes(F) ? R.filter((re) => re !== F) : [...R, F];
|
|
2139
|
+
y(ie), W(ie);
|
|
2140
|
+
return;
|
|
2141
|
+
}
|
|
2142
|
+
const K = R.includes(F) ? "" : F;
|
|
2143
|
+
y(K), I(K);
|
|
2144
|
+
}, U = (F) => {
|
|
2145
|
+
const K = R.filter((ie) => ie !== F);
|
|
2146
|
+
y(K), W(K);
|
|
2147
|
+
};
|
|
2148
|
+
if (k) {
|
|
2149
|
+
let F;
|
|
2150
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ l(pe, { as: yn, boxSize: "12px" }), e[7] = F) : F = e[7];
|
|
2151
|
+
const K = /* @__PURE__ */ _(G, { gap: "2xs", alignItems: "center", flexWrap: "wrap", minW: "0", children: [
|
|
2152
|
+
C.length > 0 ? /* @__PURE__ */ l(Ke, { options: C, onOpenResource: s, onRemove: U, emptyText: u }) : null,
|
|
2153
|
+
/* @__PURE__ */ l(Xe, { triggerLabel: F, options: i, selectedIds: R, multiSelect: !0, triggerVariant: "icon", triggerAriaLabel: S ?? `Add ${n}`, size: p, onToggle: H })
|
|
2154
|
+
] });
|
|
2155
|
+
return /* @__PURE__ */ l(Ae, { fullWidth: w, label: P, control: K, presentation: g });
|
|
2156
|
+
}
|
|
2157
|
+
const A = C[0], D = A ? /* @__PURE__ */ _(G, { align: "center", gap: "2xs", minW: "0", children: [
|
|
2158
|
+
/* @__PURE__ */ l(pe, { as: Ve(A.icon), boxSize: "14px", color: A.color ? `${A.color}.500` : "fg.muted" }),
|
|
2159
|
+
A.name
|
|
2160
|
+
] }) : S ?? "Select";
|
|
2161
|
+
let q;
|
|
2162
|
+
e[8] !== i || e[9] !== R || e[10] !== p || e[11] !== H || e[12] !== D ? (q = /* @__PURE__ */ l(Xe, { triggerLabel: D, options: i, selectedIds: R, multiSelect: !1, size: p, onToggle: H }), e[8] = i, e[9] = R, e[10] = p, e[11] = H, e[12] = D, e[13] = q) : q = e[13];
|
|
2163
|
+
let Z;
|
|
2164
|
+
return e[14] !== w || e[15] !== P || e[16] !== g || e[17] !== q ? (Z = /* @__PURE__ */ l(Ae, { fullWidth: w, label: P, presentation: g, control: q }), e[14] = w, e[15] = P, e[16] = g, e[17] = q, e[18] = Z) : Z = e[18], Z;
|
|
2165
|
+
}, so = (a) => {
|
|
2166
|
+
const e = j(42), {
|
|
2167
|
+
id: t,
|
|
2168
|
+
name: n,
|
|
2169
|
+
description: o,
|
|
2170
|
+
defaultValue: c,
|
|
2171
|
+
options: i,
|
|
2172
|
+
variant: r,
|
|
2173
|
+
onChange: s,
|
|
2174
|
+
readOnly: f,
|
|
2175
|
+
fullWidth: b,
|
|
2176
|
+
presentation: m
|
|
2177
|
+
} = a, S = r === void 0 ? "default" : r, u = m === void 0 ? "stacked" : m, [h, d] = J(c);
|
|
2178
|
+
let v, L;
|
|
2179
|
+
e[0] !== c ? (v = () => {
|
|
2180
|
+
d(c);
|
|
2181
|
+
}, L = [c], e[0] = c, e[1] = v, e[2] = L) : (v = e[1], L = e[2]), ne(v, L);
|
|
2182
|
+
let k;
|
|
2183
|
+
e[3] !== t || e[4] !== s ? (k = (C) => {
|
|
2184
|
+
d(C), s(t, C);
|
|
2185
|
+
}, e[3] = t, e[4] = s, e[5] = k) : k = e[5];
|
|
2186
|
+
const w = k;
|
|
2187
|
+
let g;
|
|
2188
|
+
e[6] !== i || e[7] !== h ? (g = i.find((C) => C.id === h)?.name ?? h, e[6] = i, e[7] = h, e[8] = g) : g = e[8];
|
|
2189
|
+
const p = g, x = u === "horizontal";
|
|
2190
|
+
if (f) {
|
|
2191
|
+
let C;
|
|
2192
|
+
e[9] !== p ? (C = /* @__PURE__ */ l(te, { children: p }), e[9] = p, e[10] = C) : C = e[10];
|
|
2193
|
+
let z;
|
|
2194
|
+
return e[11] !== o || e[12] !== b || e[13] !== x || e[14] !== n || e[15] !== C ? (z = /* @__PURE__ */ l(se, { name: n, description: o, hideLabel: x, fullWidth: b, children: C }), e[11] = o, e[12] = b, e[13] = x, e[14] = n, e[15] = C, e[16] = z) : z = e[16], z;
|
|
2195
|
+
}
|
|
2196
|
+
if (x) {
|
|
2197
|
+
let C;
|
|
2198
|
+
e[17] !== h ? (C = [h], e[17] = h, e[18] = C) : C = e[18];
|
|
2199
|
+
let z;
|
|
2200
|
+
return e[19] !== i || e[20] !== w || e[21] !== p || e[22] !== C ? (z = /* @__PURE__ */ l(Ne, { triggerLabel: p, options: i, selectedIds: C, multiSelect: !1, onToggle: w }), e[19] = i, e[20] = w, e[21] = p, e[22] = C, e[23] = z) : z = e[23], z;
|
|
2201
|
+
}
|
|
2202
|
+
let y, V, T;
|
|
2203
|
+
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
2204
|
+
borderColor: "border.accent-light"
|
|
2205
|
+
}, V = {
|
|
2206
|
+
borderColor: "border.accent-light"
|
|
2207
|
+
}, T = {
|
|
2208
|
+
borderColor: "border.accent-light",
|
|
2209
|
+
boxShadow: "none"
|
|
2210
|
+
}, e[24] = y, e[25] = V, e[26] = T) : (y = e[24], V = e[25], T = e[26]);
|
|
2211
|
+
let $;
|
|
2212
|
+
if (e[27] !== i || e[28] !== w || e[29] !== h || e[30] !== S) {
|
|
2213
|
+
let C;
|
|
2214
|
+
e[32] !== w || e[33] !== h || e[34] !== S ? (C = (z) => {
|
|
2215
|
+
const O = z.id === h;
|
|
2216
|
+
return /* @__PURE__ */ _(Ie, { flex: "1", size: "xs", variant: O ? "subtle" : "ghost", borderRadius: "0", "aria-pressed": O, onClick: () => w(z.id), children: [
|
|
2217
|
+
S === "dots" ? /* @__PURE__ */ l(N, { boxSize: "0.5rem", borderRadius: "full", bg: z.indicatorColor ?? "fg.muted", mr: "1" }) : null,
|
|
2218
|
+
z.name
|
|
2219
|
+
] }, z.id);
|
|
2220
|
+
}, e[32] = w, e[33] = h, e[34] = S, e[35] = C) : C = e[35], $ = i.map(C), e[27] = i, e[28] = w, e[29] = h, e[30] = S, e[31] = $;
|
|
2221
|
+
} else
|
|
2222
|
+
$ = e[31];
|
|
2223
|
+
let I;
|
|
2224
|
+
e[36] !== $ ? (I = /* @__PURE__ */ l(ut, { attached: !0, width: "full", borderWidth: "1px", borderColor: "border", borderRadius: "xs", overflow: "hidden", transition: "border-color 0.2s ease-in-out", _hover: y, _active: V, _focusWithin: T, children: $ }), e[36] = $, e[37] = I) : I = e[37];
|
|
2225
|
+
const W = I;
|
|
2226
|
+
let R;
|
|
2227
|
+
return e[38] !== o || e[39] !== W || e[40] !== n ? (R = /* @__PURE__ */ l(se, { name: n, description: o, orientation: "stacked", children: W }), e[38] = o, e[39] = W, e[40] = n, e[41] = R) : R = e[41], R;
|
|
2228
|
+
}, fo = (a) => {
|
|
2229
|
+
const e = j(86), {
|
|
2230
|
+
id: t,
|
|
2231
|
+
defaultValue: n,
|
|
2232
|
+
name: o,
|
|
2233
|
+
options: c,
|
|
2234
|
+
onChange: i,
|
|
2235
|
+
description: r,
|
|
2236
|
+
readOnly: s,
|
|
2237
|
+
hideLabel: f,
|
|
2238
|
+
multiSelect: b,
|
|
2239
|
+
placeholder: m,
|
|
2240
|
+
fullWidth: S,
|
|
2241
|
+
clearable: u,
|
|
2242
|
+
disabled: h,
|
|
2243
|
+
searchable: d,
|
|
2244
|
+
searchPlaceholder: v,
|
|
2245
|
+
emptyText: L,
|
|
2246
|
+
group: k,
|
|
2247
|
+
size: w
|
|
2248
|
+
} = a, g = f === void 0 ? !1 : f, p = b === void 0 ? !1 : b, x = S === void 0 ? !1 : S, y = u === void 0 ? !1 : u, V = h === void 0 ? !1 : h, T = d === void 0 ? !1 : d, $ = w === void 0 ? "sm" : w, [I, W] = J(n), [R, C] = J(k?.defaultValue ?? "");
|
|
2249
|
+
let z, O;
|
|
2250
|
+
e[0] !== n ? (z = () => {
|
|
2251
|
+
W(n);
|
|
2252
|
+
}, O = [n], e[0] = n, e[1] = z, e[2] = O) : (z = e[1], O = e[2]), ne(z, O);
|
|
2253
|
+
let E;
|
|
2254
|
+
e[3] !== k?.defaultValue ? (E = () => {
|
|
2255
|
+
C(k?.defaultValue ?? "");
|
|
2256
|
+
}, e[3] = k?.defaultValue, e[4] = E) : E = e[4];
|
|
2257
|
+
const P = k?.defaultValue;
|
|
2258
|
+
let H;
|
|
2259
|
+
e[5] !== P ? (H = [P], e[5] = P, e[6] = H) : H = e[6], ne(E, H);
|
|
2260
|
+
let U;
|
|
2261
|
+
e[7] !== p || e[8] !== I ? (U = p ? Array.isArray(I) ? I : [] : typeof I == "string" && I ? [I] : [], e[7] = p, e[8] = I, e[9] = U) : U = e[9];
|
|
2262
|
+
const A = U;
|
|
2263
|
+
let D;
|
|
2264
|
+
e[10] !== c || e[11] !== m || e[12] !== A ? (D = () => {
|
|
2265
|
+
const B = A.map((ee) => c.find((he) => he.id === ee)?.name).filter(uo);
|
|
2266
|
+
return B.length === 0 ? m || "Select" : B.length <= 3 ? B.join(", ") : `${B.slice(0, 3).join(", ")} +${(B.length - 3).toString()}`;
|
|
2267
|
+
}, e[10] = c, e[11] = m, e[12] = A, e[13] = D) : D = e[13];
|
|
2268
|
+
const q = D;
|
|
2269
|
+
let Z;
|
|
2270
|
+
e[14] !== t || e[15] !== i ? (Z = (B) => {
|
|
2271
|
+
W(B), i(t, B);
|
|
2272
|
+
}, e[14] = t, e[15] = i, e[16] = Z) : Z = e[16];
|
|
2273
|
+
const F = Z;
|
|
2274
|
+
let K;
|
|
2275
|
+
e[17] !== y || e[18] !== F || e[19] !== p || e[20] !== A ? (K = (B) => {
|
|
2276
|
+
if (!p) {
|
|
2277
|
+
F(y && A.includes(B) ? "" : B);
|
|
2278
|
+
return;
|
|
2279
|
+
}
|
|
2280
|
+
F(A.includes(B) ? A.filter((ee) => ee !== B) : [...A, B]);
|
|
2281
|
+
}, e[17] = y, e[18] = F, e[19] = p, e[20] = A, e[21] = K) : K = e[21];
|
|
2282
|
+
const ie = K;
|
|
2283
|
+
let re;
|
|
2284
|
+
e[22] !== k || e[23] !== R || e[24] !== i ? (re = (B) => {
|
|
2285
|
+
!k || B === R || (C(B), i(k.id, B));
|
|
2286
|
+
}, e[22] = k, e[23] = R, e[24] = i, e[25] = re) : re = e[25];
|
|
2287
|
+
const ve = re;
|
|
2288
|
+
let ue, X, ae, de;
|
|
2289
|
+
if (e[26] !== r || e[27] !== x || e[28] !== q || e[29] !== g || e[30] !== o || e[31] !== c || e[32] !== s || e[33] !== A[0] || e[34] !== A.length) {
|
|
2290
|
+
de = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
2291
|
+
e: {
|
|
2292
|
+
const B = A.length === 1 ? c.find((he) => he.id === A[0]) : void 0;
|
|
2293
|
+
let ee;
|
|
2294
|
+
if (e[39] !== r || e[40] !== g || e[41] !== o ? (ee = g ? null : /* @__PURE__ */ l(M, { name: o, description: r }), e[39] = r, e[40] = g, e[41] = o, e[42] = ee) : ee = e[42], X = ee, s) {
|
|
2295
|
+
let he;
|
|
2296
|
+
e[43] !== q ? (he = q(), e[43] = q, e[44] = he) : he = e[44];
|
|
2297
|
+
let We;
|
|
2298
|
+
e[45] !== he ? (We = /* @__PURE__ */ l(te, { children: he }), e[45] = he, e[46] = We) : We = e[46];
|
|
2299
|
+
const Ce = We;
|
|
2300
|
+
if (x) {
|
|
2301
|
+
let we;
|
|
2302
|
+
e[47] !== X ? (we = X ? /* @__PURE__ */ l(N, { mb: "xs", children: X }) : null, e[47] = X, e[48] = we) : we = e[48];
|
|
2303
|
+
let Oe;
|
|
2304
|
+
e[49] !== we || e[50] !== Ce ? (Oe = /* @__PURE__ */ _(N, { children: [
|
|
2305
|
+
we,
|
|
2306
|
+
Ce
|
|
2307
|
+
] }), e[49] = we, e[50] = Ce, e[51] = Oe) : Oe = e[51], de = Oe;
|
|
2308
|
+
break e;
|
|
2309
|
+
}
|
|
2310
|
+
let Re;
|
|
2311
|
+
e[52] !== X || e[53] !== Ce ? (Re = /* @__PURE__ */ l(N, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
2312
|
+
X,
|
|
2313
|
+
Ce
|
|
2314
|
+
] }) }), e[52] = X, e[53] = Ce, e[54] = Re) : Re = e[54], de = Re;
|
|
2315
|
+
break e;
|
|
2316
|
+
}
|
|
2317
|
+
ue = Ne, ae = ot(B, "14px");
|
|
2318
|
+
}
|
|
2319
|
+
e[26] = r, e[27] = x, e[28] = q, e[29] = g, e[30] = o, e[31] = c, e[32] = s, e[33] = A[0], e[34] = A.length, e[35] = ue, e[36] = X, e[37] = ae, e[38] = de;
|
|
2320
|
+
} else
|
|
2321
|
+
ue = e[35], X = e[36], ae = e[37], de = e[38];
|
|
2322
|
+
if (de !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
2323
|
+
return de;
|
|
2324
|
+
let be;
|
|
2325
|
+
e[55] !== q ? (be = q(), e[55] = q, e[56] = be) : be = e[56];
|
|
2326
|
+
let me;
|
|
2327
|
+
e[57] !== ae || e[58] !== be ? (me = /* @__PURE__ */ _(at, { children: [
|
|
2328
|
+
ae,
|
|
2329
|
+
be
|
|
2330
|
+
] }), e[57] = ae, e[58] = be, e[59] = me) : me = e[59];
|
|
2331
|
+
let Y;
|
|
2332
|
+
e[60] !== k || e[61] !== R ? (Y = k ? {
|
|
2333
|
+
...k,
|
|
2334
|
+
defaultValue: R
|
|
2335
|
+
} : void 0, e[60] = k, e[61] = R, e[62] = Y) : Y = e[62];
|
|
2336
|
+
let Q;
|
|
2337
|
+
e[63] !== ue || e[64] !== V || e[65] !== L || e[66] !== x || e[67] !== ve || e[68] !== ie || e[69] !== p || e[70] !== c || e[71] !== v || e[72] !== T || e[73] !== A || e[74] !== $ || e[75] !== me || e[76] !== Y ? (Q = /* @__PURE__ */ l(ue, { triggerLabel: me, options: c, selectedIds: A, multiSelect: p, disabled: V, searchable: T, searchPlaceholder: v, emptyText: L, group: Y, fullWidth: x, size: $, onToggle: ie, onGroupChange: ve }), e[63] = ue, e[64] = V, e[65] = L, e[66] = x, e[67] = ve, e[68] = ie, e[69] = p, e[70] = c, e[71] = v, e[72] = T, e[73] = A, e[74] = $, e[75] = me, e[76] = Y, e[77] = Q) : Q = e[77];
|
|
2338
|
+
const oe = Q;
|
|
2339
|
+
if (x) {
|
|
2340
|
+
let B;
|
|
2341
|
+
e[78] !== X ? (B = X ? /* @__PURE__ */ l(N, { mb: "xs", children: X }) : null, e[78] = X, e[79] = B) : B = e[79];
|
|
2342
|
+
let ee;
|
|
2343
|
+
return e[80] !== oe || e[81] !== B ? (ee = /* @__PURE__ */ _(N, { children: [
|
|
2344
|
+
B,
|
|
2345
|
+
oe
|
|
2346
|
+
] }), e[80] = oe, e[81] = B, e[82] = ee) : ee = e[82], ee;
|
|
2347
|
+
}
|
|
2348
|
+
let fe;
|
|
2349
|
+
return e[83] !== X || e[84] !== oe ? (fe = /* @__PURE__ */ l(N, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
2350
|
+
X,
|
|
2351
|
+
oe
|
|
2352
|
+
] }) }), e[83] = X, e[84] = oe, e[85] = fe) : fe = e[85], fe;
|
|
2353
|
+
};
|
|
2354
|
+
function uo(a) {
|
|
2355
|
+
return !!a;
|
|
2356
|
+
}
|
|
2357
|
+
const bo = (a) => {
|
|
2358
|
+
const e = j(40), {
|
|
2359
|
+
id: t,
|
|
2360
|
+
defaultValue: n,
|
|
2361
|
+
name: o,
|
|
2362
|
+
onChange: c,
|
|
2363
|
+
description: i,
|
|
2364
|
+
readOnly: r,
|
|
2365
|
+
singleLine: s,
|
|
2366
|
+
hideLabel: f,
|
|
2367
|
+
fullWidth: b,
|
|
2368
|
+
size: m
|
|
2369
|
+
} = a, S = s === void 0 ? !0 : s, u = f === void 0 ? !1 : f, h = b === void 0 ? !1 : b, d = m === void 0 ? "sm" : m, [v, L] = J(n), k = ge(null);
|
|
2370
|
+
let w;
|
|
2371
|
+
e[0] !== t || e[1] !== c ? (w = (W) => {
|
|
2372
|
+
k.current && clearTimeout(k.current), k.current = setTimeout(() => c(t, W), 540);
|
|
2373
|
+
}, e[0] = t, e[1] = c, e[2] = w) : w = e[2];
|
|
2374
|
+
const g = w;
|
|
2375
|
+
let p, x;
|
|
2376
|
+
e[3] !== n ? (p = () => {
|
|
2377
|
+
L(n);
|
|
2378
|
+
}, x = [n], e[3] = n, e[4] = p, e[5] = x) : (p = e[4], x = e[5]), ne(p, x);
|
|
2379
|
+
let y;
|
|
2380
|
+
e[6] !== g ? (y = (W) => {
|
|
2381
|
+
L(W), g(W);
|
|
2382
|
+
}, e[6] = g, e[7] = y) : y = e[7];
|
|
2383
|
+
const V = y;
|
|
2384
|
+
let T;
|
|
2385
|
+
e[8] !== t || e[9] !== c || e[10] !== v ? (T = () => {
|
|
2386
|
+
k.current && (clearTimeout(k.current), k.current = null, c(t, v));
|
|
2387
|
+
}, e[8] = t, e[9] = c, e[10] = v, e[11] = T) : T = e[11];
|
|
2388
|
+
const $ = T;
|
|
2389
|
+
if (r) {
|
|
2390
|
+
const W = !S;
|
|
2391
|
+
let R;
|
|
2392
|
+
e[12] !== W || e[13] !== v ? (R = /* @__PURE__ */ l(te, { preserveWhitespace: W, children: v }), e[12] = W, e[13] = v, e[14] = R) : R = e[14];
|
|
2393
|
+
const C = R;
|
|
2394
|
+
if (S && !h) {
|
|
2395
|
+
let E;
|
|
2396
|
+
e[15] !== i || e[16] !== u || e[17] !== o ? (E = !u && /* @__PURE__ */ l(M, { name: o, description: i }), e[15] = i, e[16] = u, e[17] = o, e[18] = E) : E = e[18];
|
|
2397
|
+
let P;
|
|
2398
|
+
return e[19] !== E || e[20] !== C ? (P = /* @__PURE__ */ l(N, { children: /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
2399
|
+
E,
|
|
2400
|
+
C
|
|
2401
|
+
] }) }), e[19] = E, e[20] = C, e[21] = P) : P = e[21], P;
|
|
2402
|
+
}
|
|
2403
|
+
let z;
|
|
2404
|
+
e[22] !== i || e[23] !== u || e[24] !== o ? (z = !u && /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: o, description: i }) }), e[22] = i, e[23] = u, e[24] = o, e[25] = z) : z = e[25];
|
|
2405
|
+
let O;
|
|
2406
|
+
return e[26] !== z || e[27] !== C ? (O = /* @__PURE__ */ _(N, { children: [
|
|
2407
|
+
z,
|
|
2408
|
+
C
|
|
2409
|
+
] }), e[26] = z, e[27] = C, e[28] = O) : O = e[28], O;
|
|
2410
|
+
}
|
|
2411
|
+
let I;
|
|
2412
|
+
return e[29] !== i || e[30] !== h || e[31] !== $ || e[32] !== V || e[33] !== u || e[34] !== o || e[35] !== r || e[36] !== S || e[37] !== d || e[38] !== v ? (I = /* @__PURE__ */ l(N, { children: S && !h ? /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
2413
|
+
!u && /* @__PURE__ */ l(M, { name: o, description: i }),
|
|
2414
|
+
/* @__PURE__ */ l($e, { "aria-label": o, className: "nodrag", readOnly: r, flex: "1", maxW: "12.5rem", size: d, type: "text", placeholder: u ? o : void 0, value: v, onChange: (W) => V(W.target.value), onBlur: $, onKeyUp: mo })
|
|
2415
|
+
] }) : /* @__PURE__ */ _(N, { children: [
|
|
2416
|
+
!u && /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: o, description: i }) }),
|
|
2417
|
+
S ? /* @__PURE__ */ l($e, { "aria-label": o, className: "nodrag", readOnly: r, width: "100%", size: d, type: "text", placeholder: u ? o : void 0, value: v, onChange: (W) => V(W.target.value), onBlur: $, onKeyUp: ho }) : /* @__PURE__ */ l(et, { "aria-label": o, className: "nodrag", readOnly: r, width: "100%", size: d, placeholder: u ? o : void 0, value: v, onChange: (W) => V(W.target.value), onBlur: $, rows: 3, resize: "vertical" })
|
|
2418
|
+
] }) }), e[29] = i, e[30] = h, e[31] = $, e[32] = V, e[33] = u, e[34] = o, e[35] = r, e[36] = S, e[37] = d, e[38] = v, e[39] = I) : I = e[39], I;
|
|
2419
|
+
};
|
|
2420
|
+
function mo(a) {
|
|
2421
|
+
a.key === "Enter" && a.currentTarget.blur();
|
|
2422
|
+
}
|
|
2423
|
+
function ho(a) {
|
|
2424
|
+
a.key === "Enter" && a.currentTarget.blur();
|
|
2425
|
+
}
|
|
2426
|
+
const po = (a) => {
|
|
2427
|
+
const e = j(6);
|
|
2428
|
+
let t, n;
|
|
2429
|
+
e[0] !== a ? ({
|
|
2430
|
+
children: t,
|
|
2431
|
+
...n
|
|
2432
|
+
} = a, e[0] = a, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2433
|
+
let o;
|
|
2434
|
+
return e[3] !== t || e[4] !== n ? (o = /* @__PURE__ */ l(G, { alignItems: "center", gap: "xs", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
2435
|
+
}, go = (a, e) => {
|
|
2436
|
+
if (e.min === void 0 && e.max === void 0) return a;
|
|
2437
|
+
const t = e.min ?? Number.NEGATIVE_INFINITY, n = e.max ?? Number.POSITIVE_INFINITY;
|
|
2438
|
+
return Le(a, t, n);
|
|
2439
|
+
}, vo = (a, e, t, n = {}) => {
|
|
2440
|
+
const o = go(t, n);
|
|
2441
|
+
return e === "x" ? {
|
|
2442
|
+
x: o,
|
|
2443
|
+
y: a.y
|
|
2444
|
+
} : {
|
|
2445
|
+
x: a.x,
|
|
2446
|
+
y: o
|
|
2447
|
+
};
|
|
2448
|
+
}, Ye = (a) => {
|
|
2449
|
+
const e = j(15), {
|
|
2450
|
+
label: t,
|
|
2451
|
+
fieldId: n,
|
|
2452
|
+
value: o,
|
|
2453
|
+
min: c,
|
|
2454
|
+
max: i,
|
|
2455
|
+
step: r,
|
|
2456
|
+
onCommit: s
|
|
2457
|
+
} = a;
|
|
2458
|
+
let f;
|
|
2459
|
+
e[0] !== t ? (f = /* @__PURE__ */ l(ye, { textStyle: "label/XS/regular", color: "fg.muted", width: "1rem", flexShrink: 0, children: t }), e[0] = t, e[1] = f) : f = e[1];
|
|
2460
|
+
let b;
|
|
2461
|
+
e[2] !== s ? (b = (u, h) => s(h), e[2] = s, e[3] = b) : b = e[3];
|
|
2462
|
+
let m;
|
|
2463
|
+
e[4] !== n || e[5] !== t || e[6] !== i || e[7] !== c || e[8] !== r || e[9] !== b || e[10] !== o ? (m = /* @__PURE__ */ l(rt, { id: n, name: t, description: "", defaultValue: o, min: c, max: i, step: r, hideLabel: !0, hideSlider: !0, onChange: b }), e[4] = n, e[5] = t, e[6] = i, e[7] = c, e[8] = r, e[9] = b, e[10] = o, e[11] = m) : m = e[11];
|
|
2464
|
+
let S;
|
|
2465
|
+
return e[12] !== f || e[13] !== m ? (S = /* @__PURE__ */ _(G, { alignItems: "center", gap: "1", flexShrink: 0, children: [
|
|
2466
|
+
f,
|
|
2467
|
+
m
|
|
2468
|
+
] }), e[12] = f, e[13] = m, e[14] = S) : S = e[14], S;
|
|
2469
|
+
}, xo = (a) => {
|
|
2470
|
+
const e = j(42), {
|
|
2471
|
+
id: t,
|
|
2472
|
+
name: n,
|
|
2473
|
+
description: o,
|
|
2474
|
+
defaultValue: c,
|
|
2475
|
+
xLabel: i,
|
|
2476
|
+
yLabel: r,
|
|
2477
|
+
min: s,
|
|
2478
|
+
max: f,
|
|
2479
|
+
step: b,
|
|
2480
|
+
onChange: m,
|
|
2481
|
+
readOnly: S
|
|
2482
|
+
} = a, u = i === void 0 ? "X" : i, h = r === void 0 ? "Y" : r, d = b === void 0 ? 1 : b, [v, L] = J(c);
|
|
2483
|
+
let k, w;
|
|
2484
|
+
e[0] !== c ? (k = () => {
|
|
2485
|
+
L(c);
|
|
2486
|
+
}, w = [c], e[0] = c, e[1] = k, e[2] = w) : (k = e[1], w = e[2]), ne(k, w);
|
|
2487
|
+
let g;
|
|
2488
|
+
e[3] !== t || e[4] !== f || e[5] !== s || e[6] !== m || e[7] !== v ? (g = (C, z) => {
|
|
2489
|
+
const O = vo(v, C, z, {
|
|
2490
|
+
min: s,
|
|
2491
|
+
max: f
|
|
2492
|
+
});
|
|
2493
|
+
L(O), m(t, O);
|
|
2494
|
+
}, e[3] = t, e[4] = f, e[5] = s, e[6] = m, e[7] = v, e[8] = g) : g = e[8];
|
|
2495
|
+
const p = g;
|
|
2496
|
+
if (S) {
|
|
2497
|
+
const C = `${v.x}, ${v.y}`;
|
|
2498
|
+
let z;
|
|
2499
|
+
e[9] !== C ? (z = /* @__PURE__ */ l(te, { children: C }), e[9] = C, e[10] = z) : z = e[10];
|
|
2500
|
+
let O;
|
|
2501
|
+
return e[11] !== o || e[12] !== n || e[13] !== z ? (O = /* @__PURE__ */ l(se, { name: n, description: o, children: z }), e[11] = o, e[12] = n, e[13] = z, e[14] = O) : O = e[14], O;
|
|
2502
|
+
}
|
|
2503
|
+
const x = `${t}.x`;
|
|
2504
|
+
let y;
|
|
2505
|
+
e[15] !== p ? (y = (C) => p("x", C), e[15] = p, e[16] = y) : y = e[16];
|
|
2506
|
+
let V;
|
|
2507
|
+
e[17] !== f || e[18] !== s || e[19] !== d || e[20] !== x || e[21] !== y || e[22] !== v.x || e[23] !== u ? (V = /* @__PURE__ */ l(Ye, { label: u, fieldId: x, value: v.x, min: s, max: f, step: d, onCommit: y }), e[17] = f, e[18] = s, e[19] = d, e[20] = x, e[21] = y, e[22] = v.x, e[23] = u, e[24] = V) : V = e[24];
|
|
2508
|
+
const T = `${t}.y`;
|
|
2509
|
+
let $;
|
|
2510
|
+
e[25] !== p ? ($ = (C) => p("y", C), e[25] = p, e[26] = $) : $ = e[26];
|
|
2511
|
+
let I;
|
|
2512
|
+
e[27] !== f || e[28] !== s || e[29] !== d || e[30] !== $ || e[31] !== T || e[32] !== v.y || e[33] !== h ? (I = /* @__PURE__ */ l(Ye, { label: h, fieldId: T, value: v.y, min: s, max: f, step: d, onCommit: $ }), e[27] = f, e[28] = s, e[29] = d, e[30] = $, e[31] = T, e[32] = v.y, e[33] = h, e[34] = I) : I = e[34];
|
|
2513
|
+
let W;
|
|
2514
|
+
e[35] !== I || e[36] !== V ? (W = /* @__PURE__ */ _(po, { children: [
|
|
2515
|
+
V,
|
|
2516
|
+
I
|
|
2517
|
+
] }), e[35] = I, e[36] = V, e[37] = W) : W = e[37];
|
|
2518
|
+
let R;
|
|
2519
|
+
return e[38] !== o || e[39] !== n || e[40] !== W ? (R = /* @__PURE__ */ l(se, { name: n, description: o, orientation: "stacked", children: W }), e[38] = o, e[39] = n, e[40] = W, e[41] = R) : R = e[41], R;
|
|
2520
|
+
}, le = (a, e, t) => a[e] === void 0 ? t : a[e], yo = (a) => {
|
|
2521
|
+
const e = j(81), {
|
|
2522
|
+
param: t,
|
|
2523
|
+
defaultValues: n,
|
|
2524
|
+
onChange: o,
|
|
2525
|
+
readOnly: c,
|
|
2526
|
+
fullWidth: i,
|
|
2527
|
+
presentation: r
|
|
2528
|
+
} = a, s = c || t.readOnly, f = r === "horizontal" ? !1 : i;
|
|
2529
|
+
let b;
|
|
2530
|
+
e[0] !== o || e[1] !== t.id || e[2] !== s || e[3] !== f ? (b = {
|
|
2531
|
+
id: t.id,
|
|
2532
|
+
readOnly: s,
|
|
2533
|
+
onChange: o,
|
|
2534
|
+
fullWidth: f
|
|
2535
|
+
}, e[0] = o, e[1] = t.id, e[2] = s, e[3] = f, e[4] = b) : b = e[4];
|
|
2536
|
+
const m = b;
|
|
2537
|
+
switch (t.type) {
|
|
2538
|
+
case "range": {
|
|
2539
|
+
const S = t.name, u = t.description;
|
|
2540
|
+
let h;
|
|
2541
|
+
e[5] !== n || e[6] !== t.defaultValue || e[7] !== t.id ? (h = le(n, t.id, t.defaultValue), e[5] = n, e[6] = t.defaultValue, e[7] = t.id, e[8] = h) : h = e[8];
|
|
2542
|
+
let d;
|
|
2543
|
+
return e[9] !== m || e[10] !== t.description || e[11] !== t.markerCount || e[12] !== t.max || e[13] !== t.min || e[14] !== t.name || e[15] !== t.step || e[16] !== t.unit || e[17] !== r || e[18] !== h ? (d = /* @__PURE__ */ l(to, { ...m, name: S, description: u, defaultValue: h, min: t.min, max: t.max, step: t.step, unit: t.unit, markerCount: t.markerCount, presentation: r }), e[9] = m, e[10] = t.description, e[11] = t.markerCount, e[12] = t.max, e[13] = t.min, e[14] = t.name, e[15] = t.step, e[16] = t.unit, e[17] = r, e[18] = h, e[19] = d) : d = e[19], d;
|
|
2544
|
+
}
|
|
2545
|
+
case "segmented": {
|
|
2546
|
+
const S = t.name, u = t.description;
|
|
2547
|
+
let h;
|
|
2548
|
+
e[20] !== n || e[21] !== t.defaultValue || e[22] !== t.id ? (h = le(n, t.id, t.defaultValue), e[20] = n, e[21] = t.defaultValue, e[22] = t.id, e[23] = h) : h = e[23];
|
|
2549
|
+
let d;
|
|
2550
|
+
return e[24] !== m || e[25] !== t.description || e[26] !== t.name || e[27] !== t.options || e[28] !== t.variant || e[29] !== r || e[30] !== h ? (d = /* @__PURE__ */ l(so, { ...m, name: S, description: u, defaultValue: h, options: t.options, variant: t.variant, presentation: r }), e[24] = m, e[25] = t.description, e[26] = t.name, e[27] = t.options, e[28] = t.variant, e[29] = r, e[30] = h, e[31] = d) : d = e[31], d;
|
|
2551
|
+
}
|
|
2552
|
+
case "actions": {
|
|
2553
|
+
const S = t.name, u = t.description;
|
|
2554
|
+
let h;
|
|
2555
|
+
e[32] !== n || e[33] !== t.defaultValue || e[34] !== t.id ? (h = le(n, t.id, t.defaultValue), e[32] = n, e[33] = t.defaultValue, e[34] = t.id, e[35] = h) : h = e[35];
|
|
2556
|
+
let d;
|
|
2557
|
+
return e[36] !== m || e[37] !== t.description || e[38] !== t.name || e[39] !== t.options || e[40] !== r || e[41] !== h ? (d = /* @__PURE__ */ l(Nn, { ...m, name: S, description: u, defaultValue: h, options: t.options, presentation: r }), e[36] = m, e[37] = t.description, e[38] = t.name, e[39] = t.options, e[40] = r, e[41] = h, e[42] = d) : d = e[42], d;
|
|
2558
|
+
}
|
|
2559
|
+
case "anchorGrid": {
|
|
2560
|
+
if (r === "horizontal")
|
|
2561
|
+
return null;
|
|
2562
|
+
const S = t.name, u = t.description;
|
|
2563
|
+
let h;
|
|
2564
|
+
e[43] !== n || e[44] !== t.defaultValue || e[45] !== t.id ? (h = le(n, t.id, t.defaultValue), e[43] = n, e[44] = t.defaultValue, e[45] = t.id, e[46] = h) : h = e[46];
|
|
2565
|
+
let d;
|
|
2566
|
+
return e[47] !== m || e[48] !== t.description || e[49] !== t.name || e[50] !== h ? (d = /* @__PURE__ */ l(Pn, { ...m, name: S, description: u, defaultValue: h }), e[47] = m, e[48] = t.description, e[49] = t.name, e[50] = h, e[51] = d) : d = e[51], d;
|
|
2567
|
+
}
|
|
2568
|
+
case "vector": {
|
|
2569
|
+
const S = t.name, u = t.description;
|
|
2570
|
+
let h;
|
|
2571
|
+
e[52] !== n || e[53] !== t.defaultValue || e[54] !== t.id ? (h = le(n, t.id, t.defaultValue), e[52] = n, e[53] = t.defaultValue, e[54] = t.id, e[55] = h) : h = e[55];
|
|
2572
|
+
let d;
|
|
2573
|
+
return e[56] !== m || e[57] !== t.description || e[58] !== t.max || e[59] !== t.min || e[60] !== t.name || e[61] !== t.step || e[62] !== t.xLabel || e[63] !== t.yLabel || e[64] !== h ? (d = /* @__PURE__ */ l(xo, { ...m, name: S, description: u, defaultValue: h, xLabel: t.xLabel, yLabel: t.yLabel, min: t.min, max: t.max, step: t.step }), e[56] = m, e[57] = t.description, e[58] = t.max, e[59] = t.min, e[60] = t.name, e[61] = t.step, e[62] = t.xLabel, e[63] = t.yLabel, e[64] = h, e[65] = d) : d = e[65], d;
|
|
2574
|
+
}
|
|
2575
|
+
case "fileUpload": {
|
|
2576
|
+
const S = t.id, u = t.name, h = t.description;
|
|
2577
|
+
let d;
|
|
2578
|
+
e[66] !== n || e[67] !== t.defaultValue || e[68] !== t.id ? (d = le(n, t.id, t.defaultValue), e[66] = n, e[67] = t.defaultValue, e[68] = t.id, e[69] = d) : d = e[69];
|
|
2579
|
+
let v;
|
|
2580
|
+
return e[70] !== m.readOnly || e[71] !== o || e[72] !== t.accept || e[73] !== t.description || e[74] !== t.id || e[75] !== t.multiple || e[76] !== t.name || e[77] !== t.uploadLabel || e[78] !== r || e[79] !== d ? (v = /* @__PURE__ */ l(Dn, { id: S, name: u, description: h, defaultValue: d, accept: t.accept, multiple: t.multiple, uploadLabel: t.uploadLabel, readOnly: m.readOnly, presentation: r, onChange: o }), e[70] = m.readOnly, e[71] = o, e[72] = t.accept, e[73] = t.description, e[74] = t.id, e[75] = t.multiple, e[76] = t.name, e[77] = t.uploadLabel, e[78] = r, e[79] = d, e[80] = v) : v = e[80], v;
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
}, So = (a) => a.type === "fileUpload", Ao = (a) => a.type !== "anchorGrid", je = (a) => a === null || a === "" ? "Not provided" : String(a), Co = (a) => {
|
|
2584
|
+
const e = j(23), {
|
|
2585
|
+
value: t
|
|
2586
|
+
} = a;
|
|
2587
|
+
if (Array.isArray(t)) {
|
|
2588
|
+
if (t.length === 0) {
|
|
2589
|
+
let s;
|
|
2590
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ l(te, { color: "fg.muted", children: "None" }), e[0] = s) : s = e[0], s;
|
|
2591
|
+
}
|
|
2592
|
+
let i;
|
|
2593
|
+
e[1] !== t ? (i = t.map(ko), e[1] = t, e[2] = i) : i = e[2];
|
|
2594
|
+
let r;
|
|
2595
|
+
return e[3] !== i ? (r = /* @__PURE__ */ l(He, { gap: "2xs", flexWrap: "wrap", children: i }), e[3] = i, e[4] = r) : r = e[4], r;
|
|
2596
|
+
}
|
|
2597
|
+
if (typeof t == "object" && t !== null) {
|
|
2598
|
+
let i;
|
|
2599
|
+
e[5] !== t.alt || e[6] !== t.images || e[7] !== t.src || e[8] !== t.type ? (i = t.type === "image" ? [{
|
|
2600
|
+
src: t.src,
|
|
2601
|
+
alt: t.alt
|
|
2602
|
+
}] : t.images, e[5] = t.alt, e[6] = t.images, e[7] = t.src, e[8] = t.type, e[9] = i) : i = e[9];
|
|
2603
|
+
const r = i;
|
|
2604
|
+
let s;
|
|
2605
|
+
e[10] !== r ? (s = r.map(Vo), e[10] = r, e[11] = s) : s = e[11];
|
|
2606
|
+
let f;
|
|
2607
|
+
return e[12] !== s ? (f = /* @__PURE__ */ l(He, { gap: "2xs", flexWrap: "wrap", children: s }), e[12] = s, e[13] = f) : f = e[13], f;
|
|
2608
|
+
}
|
|
2609
|
+
if (typeof t == "boolean") {
|
|
2610
|
+
let i;
|
|
2611
|
+
e[14] !== t ? (i = je(t), e[14] = t, e[15] = i) : i = e[15];
|
|
2612
|
+
let r;
|
|
2613
|
+
return e[16] !== i ? (r = /* @__PURE__ */ l(te, { children: i }), e[16] = i, e[17] = r) : r = e[17], r;
|
|
2614
|
+
}
|
|
2615
|
+
const n = t === null || t === "" ? "fg.muted" : "fg";
|
|
2616
|
+
let o;
|
|
2617
|
+
e[18] !== t ? (o = je(t), e[18] = t, e[19] = o) : o = e[19];
|
|
2618
|
+
let c;
|
|
2619
|
+
return e[20] !== n || e[21] !== o ? (c = /* @__PURE__ */ l(te, { color: n, children: o }), e[20] = n, e[21] = o, e[22] = c) : c = e[22], c;
|
|
2620
|
+
}, wo = (a) => {
|
|
2621
|
+
const e = j(7), {
|
|
2622
|
+
param: t,
|
|
2623
|
+
fullWidth: n
|
|
2624
|
+
} = a;
|
|
2625
|
+
let o;
|
|
2626
|
+
e[0] !== t.value ? (o = /* @__PURE__ */ l(Co, { value: t.value }), e[0] = t.value, e[1] = o) : o = e[1];
|
|
2627
|
+
let c;
|
|
2628
|
+
return e[2] !== n || e[3] !== t.description || e[4] !== t.name || e[5] !== o ? (c = /* @__PURE__ */ l(se, { name: t.name, description: t.description, fullWidth: n, children: o }), e[2] = n, e[3] = t.description, e[4] = t.name, e[5] = o, e[6] = c) : c = e[6], c;
|
|
2629
|
+
};
|
|
2630
|
+
function ko(a, e) {
|
|
2631
|
+
return /* @__PURE__ */ l(Fe, { variant: "subtle", colorPalette: "gray", children: je(a) }, `${String(a)}-${e}`);
|
|
2632
|
+
}
|
|
2633
|
+
function Vo(a) {
|
|
2634
|
+
return /* @__PURE__ */ l(Qe, { src: a.src, alt: a.alt, width: "96px", height: "72px", borderRadius: "sm", borderWidth: "1px", borderColor: "border.subtle", objectFit: "cover" }, `${a.src}-${a.alt}`);
|
|
2635
|
+
}
|
|
2636
|
+
const $o = (a) => {
|
|
2637
|
+
const e = j(16), {
|
|
2638
|
+
param: t,
|
|
2639
|
+
fullWidth: n
|
|
2640
|
+
} = a;
|
|
2641
|
+
if (n) {
|
|
2642
|
+
let r;
|
|
2643
|
+
e[0] !== t.description || e[1] !== t.name ? (r = /* @__PURE__ */ l(N, { mb: "xs", children: /* @__PURE__ */ l(M, { name: t.name, description: t.description }) }), e[0] = t.description, e[1] = t.name, e[2] = r) : r = e[2];
|
|
2644
|
+
let s;
|
|
2645
|
+
e[3] !== t.value ? (s = /* @__PURE__ */ l(te, { children: t.value }), e[3] = t.value, e[4] = s) : s = e[4];
|
|
2646
|
+
let f;
|
|
2647
|
+
return e[5] !== r || e[6] !== s ? (f = /* @__PURE__ */ _(N, { children: [
|
|
2648
|
+
r,
|
|
2649
|
+
s
|
|
2650
|
+
] }), e[5] = r, e[6] = s, e[7] = f) : f = e[7], f;
|
|
2651
|
+
}
|
|
2652
|
+
let o;
|
|
2653
|
+
e[8] !== t.description || e[9] !== t.name ? (o = /* @__PURE__ */ l(M, { name: t.name, description: t.description }), e[8] = t.description, e[9] = t.name, e[10] = o) : o = e[10];
|
|
2654
|
+
let c;
|
|
2655
|
+
e[11] !== t.value ? (c = /* @__PURE__ */ l(te, { children: t.value }), e[11] = t.value, e[12] = c) : c = e[12];
|
|
2656
|
+
let i;
|
|
2657
|
+
return e[13] !== o || e[14] !== c ? (i = /* @__PURE__ */ _(G, { alignItems: "center", justifyContent: "space-between", minHeight: "2rem", gap: "xs", children: [
|
|
2658
|
+
o,
|
|
2659
|
+
c
|
|
2660
|
+
] }), e[13] = o, e[14] = c, e[15] = i) : i = e[15], i;
|
|
2661
|
+
}, Ho = (a) => {
|
|
2662
|
+
const e = j(137), {
|
|
2663
|
+
param: t,
|
|
2664
|
+
defaultValues: n,
|
|
2665
|
+
onChange: o,
|
|
2666
|
+
onOpenResource: c,
|
|
2667
|
+
readOnly: i,
|
|
2668
|
+
fullWidth: r,
|
|
2669
|
+
presentation: s,
|
|
2670
|
+
size: f
|
|
2671
|
+
} = a, b = r === void 0 ? !1 : r, m = s === void 0 ? "stacked" : s, S = f === void 0 ? "sm" : f, u = m === "horizontal";
|
|
2672
|
+
let h;
|
|
2673
|
+
e[0] !== t ? (h = So(t), e[0] = t, e[1] = h) : h = e[1];
|
|
2674
|
+
const d = h, v = i || t.readOnly, L = u ? d : b;
|
|
2675
|
+
let k;
|
|
2676
|
+
e[2] !== o || e[3] !== t.id || e[4] !== S || e[5] !== v || e[6] !== L ? (k = {
|
|
2677
|
+
id: t.id,
|
|
2678
|
+
readOnly: v,
|
|
2679
|
+
onChange: o,
|
|
2680
|
+
fullWidth: L,
|
|
2681
|
+
size: S
|
|
2682
|
+
}, e[2] = o, e[3] = t.id, e[4] = S, e[5] = v, e[6] = L, e[7] = k) : k = e[7];
|
|
2683
|
+
const w = k;
|
|
2684
|
+
switch (t.type) {
|
|
2685
|
+
case "number": {
|
|
2686
|
+
const g = t.name, p = t.description || "";
|
|
2687
|
+
let x;
|
|
2688
|
+
e[8] !== n || e[9] !== t.defaultValue || e[10] !== t.id ? (x = le(n, t.id, t.defaultValue), e[8] = n, e[9] = t.defaultValue, e[10] = t.id, e[11] = x) : x = e[11];
|
|
2689
|
+
let y;
|
|
2690
|
+
return e[12] !== w || e[13] !== u || e[14] !== t.max || e[15] !== t.min || e[16] !== t.name || e[17] !== t.step || e[18] !== p || e[19] !== x ? (y = /* @__PURE__ */ l(rt, { ...w, name: g, description: p, defaultValue: x, min: t.min, max: t.max, step: t.step, hideLabel: u, hideSlider: u }), e[12] = w, e[13] = u, e[14] = t.max, e[15] = t.min, e[16] = t.name, e[17] = t.step, e[18] = p, e[19] = x, e[20] = y) : y = e[20], y;
|
|
2691
|
+
}
|
|
2692
|
+
case "boolean": {
|
|
2693
|
+
const g = t.name, p = t.description;
|
|
2694
|
+
let x;
|
|
2695
|
+
e[21] !== n || e[22] !== t.defaultValue || e[23] !== t.id ? (x = le(n, t.id, t.defaultValue), e[21] = n, e[22] = t.defaultValue, e[23] = t.id, e[24] = x) : x = e[24];
|
|
2696
|
+
let y;
|
|
2697
|
+
return e[25] !== w || e[26] !== u || e[27] !== t.description || e[28] !== t.name || e[29] !== x ? (y = /* @__PURE__ */ l(An, { ...w, name: g, description: p, defaultValue: x, hideLabel: u }), e[25] = w, e[26] = u, e[27] = t.description, e[28] = t.name, e[29] = x, e[30] = y) : y = e[30], y;
|
|
2698
|
+
}
|
|
2699
|
+
case "text": {
|
|
2700
|
+
if (u) {
|
|
2701
|
+
const V = t.name, T = t.description || "";
|
|
2702
|
+
let $;
|
|
2703
|
+
e[31] !== n || e[32] !== t.defaultValue || e[33] !== t.id ? ($ = le(n, t.id, t.defaultValue), e[31] = n, e[32] = t.defaultValue, e[33] = t.id, e[34] = $) : $ = e[34];
|
|
2704
|
+
let I;
|
|
2705
|
+
return e[35] !== w || e[36] !== t.name || e[37] !== T || e[38] !== $ ? (I = /* @__PURE__ */ l(Kn, { ...w, name: V, description: T, defaultValue: $, hideLabel: !0 }), e[35] = w, e[36] = t.name, e[37] = T, e[38] = $, e[39] = I) : I = e[39], I;
|
|
2706
|
+
}
|
|
2707
|
+
const g = t.name, p = t.description || "";
|
|
2708
|
+
let x;
|
|
2709
|
+
e[40] !== n || e[41] !== t.defaultValue || e[42] !== t.id ? (x = le(n, t.id, t.defaultValue), e[40] = n, e[41] = t.defaultValue, e[42] = t.id, e[43] = x) : x = e[43];
|
|
2710
|
+
let y;
|
|
2711
|
+
return e[44] !== w || e[45] !== t.name || e[46] !== t.singleLine || e[47] !== p || e[48] !== x ? (y = /* @__PURE__ */ l(bo, { ...w, name: g, description: p, defaultValue: x, singleLine: t.singleLine }), e[44] = w, e[45] = t.name, e[46] = t.singleLine, e[47] = p, e[48] = x, e[49] = y) : y = e[49], y;
|
|
2712
|
+
}
|
|
2713
|
+
case "markdown": {
|
|
2714
|
+
const g = t.id, p = t.name, x = t.description;
|
|
2715
|
+
let y;
|
|
2716
|
+
e[50] !== n || e[51] !== t.defaultValue || e[52] !== t.id ? (y = le(n, t.id, t.defaultValue), e[50] = n, e[51] = t.defaultValue, e[52] = t.id, e[53] = y) : y = e[53];
|
|
2717
|
+
let V;
|
|
2718
|
+
return e[54] !== w.readOnly || e[55] !== o || e[56] !== t.description || e[57] !== t.id || e[58] !== t.name || e[59] !== t.placeholder || e[60] !== m || e[61] !== S || e[62] !== y ? (V = /* @__PURE__ */ l(Yn, { id: g, name: p, description: x, defaultValue: y, placeholder: t.placeholder, readOnly: w.readOnly, presentation: m, size: S, onChange: o }), e[54] = w.readOnly, e[55] = o, e[56] = t.description, e[57] = t.id, e[58] = t.name, e[59] = t.placeholder, e[60] = m, e[61] = S, e[62] = y, e[63] = V) : V = e[63], V;
|
|
2719
|
+
}
|
|
2720
|
+
case "selection": {
|
|
2721
|
+
const g = t.name, p = t.description || "";
|
|
2722
|
+
let x;
|
|
2723
|
+
e[64] !== n || e[65] !== t.defaultValue || e[66] !== t.id ? (x = le(n, t.id, t.defaultValue), e[64] = n, e[65] = t.defaultValue, e[66] = t.id, e[67] = x) : x = e[67];
|
|
2724
|
+
let y;
|
|
2725
|
+
e[68] !== n || e[69] !== t.group ? (y = t.group ? {
|
|
2726
|
+
...t.group,
|
|
2727
|
+
defaultValue: le(n, t.group.id, t.group.defaultValue)
|
|
2728
|
+
} : void 0, e[68] = n, e[69] = t.group, e[70] = y) : y = e[70];
|
|
2729
|
+
let V;
|
|
2730
|
+
return e[71] !== w || e[72] !== u || e[73] !== t.clearable || e[74] !== t.disabled || e[75] !== t.emptyText || e[76] !== t.multiSelect || e[77] !== t.name || e[78] !== t.options || e[79] !== t.placeholder || e[80] !== t.searchPlaceholder || e[81] !== t.searchable || e[82] !== y || e[83] !== p || e[84] !== x ? (V = /* @__PURE__ */ l(fo, { ...w, name: g, description: p, defaultValue: x, options: t.options, multiSelect: t.multiSelect, placeholder: t.placeholder, clearable: t.clearable, disabled: t.disabled, searchable: t.searchable, searchPlaceholder: t.searchPlaceholder, emptyText: t.emptyText, group: y, hideLabel: u }), e[71] = w, e[72] = u, e[73] = t.clearable, e[74] = t.disabled, e[75] = t.emptyText, e[76] = t.multiSelect, e[77] = t.name, e[78] = t.options, e[79] = t.placeholder, e[80] = t.searchPlaceholder, e[81] = t.searchable, e[82] = y, e[83] = p, e[84] = x, e[85] = V) : V = e[85], V;
|
|
2731
|
+
}
|
|
2732
|
+
case "date": {
|
|
2733
|
+
const g = t.name, p = t.description || "";
|
|
2734
|
+
let x;
|
|
2735
|
+
e[86] !== n || e[87] !== t.defaultValue || e[88] !== t.id ? (x = le(n, t.id, t.defaultValue), e[86] = n, e[87] = t.defaultValue, e[88] = t.id, e[89] = x) : x = e[89];
|
|
2736
|
+
let y;
|
|
2737
|
+
return e[90] !== w || e[91] !== u || e[92] !== t.max || e[93] !== t.min || e[94] !== t.name || e[95] !== p || e[96] !== x ? (y = /* @__PURE__ */ l(jn, { ...w, name: g, description: p, defaultValue: x, min: t.min, max: t.max, hideLabel: u }), e[90] = w, e[91] = u, e[92] = t.max, e[93] = t.min, e[94] = t.name, e[95] = p, e[96] = x, e[97] = y) : y = e[97], y;
|
|
2738
|
+
}
|
|
2739
|
+
case "color": {
|
|
2740
|
+
const g = t.name, p = t.description || "";
|
|
2741
|
+
let x;
|
|
2742
|
+
e[98] !== n || e[99] !== t.defaultValue || e[100] !== t.id ? (x = le(n, t.id, t.defaultValue), e[98] = n, e[99] = t.defaultValue, e[100] = t.id, e[101] = x) : x = e[101];
|
|
2743
|
+
let y;
|
|
2744
|
+
return e[102] !== w || e[103] !== u || e[104] !== t.name || e[105] !== p || e[106] !== x ? (y = /* @__PURE__ */ l(Hn, { ...w, name: g, description: p, defaultValue: x, hideLabel: u }), e[102] = w, e[103] = u, e[104] = t.name, e[105] = p, e[106] = x, e[107] = y) : y = e[107], y;
|
|
2745
|
+
}
|
|
2746
|
+
case "property": {
|
|
2747
|
+
const g = u ? !1 : b;
|
|
2748
|
+
let p;
|
|
2749
|
+
return e[108] !== t || e[109] !== g ? (p = /* @__PURE__ */ l($o, { param: t, fullWidth: g }), e[108] = t, e[109] = g, e[110] = p) : p = e[110], p;
|
|
2750
|
+
}
|
|
2751
|
+
case "readOnly": {
|
|
2752
|
+
const g = u ? !1 : b;
|
|
2753
|
+
let p;
|
|
2754
|
+
return e[111] !== t || e[112] !== g ? (p = /* @__PURE__ */ l(wo, { param: t, fullWidth: g }), e[111] = t, e[112] = g, e[113] = p) : p = e[113], p;
|
|
2755
|
+
}
|
|
2756
|
+
case "resource": {
|
|
2757
|
+
const g = t.name, p = t.description;
|
|
2758
|
+
let x;
|
|
2759
|
+
e[114] !== n || e[115] !== t.defaultValue || e[116] !== t.id ? (x = le(n, t.id, t.defaultValue), e[114] = n, e[115] = t.defaultValue, e[116] = t.id, e[117] = x) : x = e[117];
|
|
2760
|
+
let y;
|
|
2761
|
+
return e[118] !== w || e[119] !== c || e[120] !== t.description || e[121] !== t.editable || e[122] !== t.emptyText || e[123] !== t.multiSelect || e[124] !== t.name || e[125] !== t.options || e[126] !== t.placeholder || e[127] !== m || e[128] !== x ? (y = /* @__PURE__ */ l(co, { ...w, name: g, description: p, defaultValue: x, options: t.options, multiSelect: t.multiSelect, editable: t.editable, placeholder: t.placeholder, emptyText: t.emptyText, onOpenResource: c, presentation: m }), e[118] = w, e[119] = c, e[120] = t.description, e[121] = t.editable, e[122] = t.emptyText, e[123] = t.multiSelect, e[124] = t.name, e[125] = t.options, e[126] = t.placeholder, e[127] = m, e[128] = x, e[129] = y) : y = e[129], y;
|
|
2762
|
+
}
|
|
2763
|
+
case "range":
|
|
2764
|
+
case "segmented":
|
|
2765
|
+
case "actions":
|
|
2766
|
+
case "anchorGrid":
|
|
2767
|
+
case "vector":
|
|
2768
|
+
case "fileUpload": {
|
|
2769
|
+
let g;
|
|
2770
|
+
return e[130] !== n || e[131] !== b || e[132] !== o || e[133] !== t || e[134] !== m || e[135] !== i ? (g = /* @__PURE__ */ l(yo, { param: t, defaultValues: n, onChange: o, readOnly: i, fullWidth: b, presentation: m }), e[130] = n, e[131] = b, e[132] = o, e[133] = t, e[134] = m, e[135] = i, e[136] = g) : g = e[136], g;
|
|
2771
|
+
}
|
|
2772
|
+
default:
|
|
2773
|
+
return null;
|
|
2774
|
+
}
|
|
2775
|
+
};
|
|
2776
|
+
export {
|
|
2777
|
+
Vn as A,
|
|
2778
|
+
An as B,
|
|
2779
|
+
$n as C,
|
|
2780
|
+
jn as D,
|
|
2781
|
+
Dn as F,
|
|
2782
|
+
Kn as H,
|
|
2783
|
+
Yn as M,
|
|
2784
|
+
rt as N,
|
|
2785
|
+
Ho as P,
|
|
2786
|
+
to as R,
|
|
2787
|
+
fo as S,
|
|
2788
|
+
bo as T,
|
|
2789
|
+
xo as V,
|
|
2790
|
+
So as a,
|
|
2791
|
+
No as b,
|
|
2792
|
+
lt as c,
|
|
2793
|
+
Nn as d,
|
|
2794
|
+
Pn as e,
|
|
2795
|
+
Hn as f,
|
|
2796
|
+
Ve as g,
|
|
2797
|
+
se as h,
|
|
2798
|
+
Ao as i,
|
|
2799
|
+
M as j,
|
|
2800
|
+
po as k,
|
|
2801
|
+
wo as l,
|
|
2802
|
+
te as m,
|
|
2803
|
+
co as n,
|
|
2804
|
+
En as o,
|
|
2805
|
+
so as p,
|
|
2806
|
+
nt as q,
|
|
2807
|
+
Po as r
|
|
2808
|
+
};
|
|
2809
|
+
//# sourceMappingURL=param-editor-field-DRgbnL7-.js.map
|