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