@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b
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/components/forms/field-renderer.cjs +120 -69
- package/dist/components/forms/field-renderer.js +120 -69
- package/dist/components/forms/form-designer.cjs +2352 -1488
- package/dist/components/forms/form-designer.js +2353 -1489
- package/dist/components/forms/form-examples.cjs +10 -10
- package/dist/components/forms/form-examples.js +10 -10
- package/dist/components/forms/form-state-viewer.cjs +988 -433
- package/dist/components/forms/form-state-viewer.js +988 -433
- package/dist/components/forms/metadata-form.cjs +446 -170
- package/dist/components/forms/metadata-form.js +446 -170
- package/dist/components/forms/schema-viewer.cjs +173 -80
- package/dist/components/forms/schema-viewer.js +173 -80
- package/dist/components/ui/accordion.cjs +131 -27
- package/dist/components/ui/accordion.js +131 -27
- package/dist/components/ui/alert-dialog.cjs +273 -45
- package/dist/components/ui/alert-dialog.js +273 -45
- package/dist/components/ui/alert.cjs +106 -17
- package/dist/components/ui/alert.js +106 -17
- package/dist/components/ui/avatar.cjs +100 -15
- package/dist/components/ui/avatar.js +100 -15
- package/dist/components/ui/badge.cjs +36 -6
- package/dist/components/ui/badge.js +36 -6
- package/dist/components/ui/breadcrumb.cjs +258 -52
- package/dist/components/ui/breadcrumb.js +258 -52
- package/dist/components/ui/button-group.cjs +119 -19
- package/dist/components/ui/button-group.js +119 -19
- package/dist/components/ui/button.cjs +48 -8
- package/dist/components/ui/button.js +48 -8
- package/dist/components/ui/calendar.cjs +88 -30
- package/dist/components/ui/calendar.js +88 -30
- package/dist/components/ui/card.cjs +199 -30
- package/dist/components/ui/card.js +199 -30
- package/dist/components/ui/checkbox.cjs +42 -8
- package/dist/components/ui/checkbox.js +42 -8
- package/dist/components/ui/combobox.cjs +150 -53
- package/dist/components/ui/combobox.js +150 -53
- package/dist/components/ui/command.cjs +291 -53
- package/dist/components/ui/command.js +291 -53
- package/dist/components/ui/context-menu.cjs +370 -72
- package/dist/components/ui/context-menu.js +370 -72
- package/dist/components/ui/data-table.cjs +76 -39
- package/dist/components/ui/data-table.js +76 -39
- package/dist/components/ui/date-picker.cjs +179 -68
- package/dist/components/ui/date-picker.js +179 -68
- package/dist/components/ui/datetime-picker.cjs +225 -104
- package/dist/components/ui/datetime-picker.js +225 -104
- package/dist/components/ui/dialog.cjs +290 -78
- package/dist/components/ui/dialog.js +290 -78
- package/dist/components/ui/drawer.cjs +220 -39
- package/dist/components/ui/drawer.js +220 -39
- package/dist/components/ui/dropdown-menu.cjs +376 -73
- package/dist/components/ui/dropdown-menu.js +376 -73
- package/dist/components/ui/editable-cell.cjs +106 -42
- package/dist/components/ui/editable-cell.js +106 -42
- package/dist/components/ui/empty-state.cjs +106 -33
- package/dist/components/ui/empty-state.js +106 -33
- package/dist/components/ui/file-upload.cjs +405 -187
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +405 -187
- package/dist/components/ui/hover-card.cjs +46 -7
- package/dist/components/ui/hover-card.js +46 -7
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/input.cjs +39 -6
- package/dist/components/ui/input.js +39 -6
- package/dist/components/ui/label.cjs +34 -5
- package/dist/components/ui/label.js +34 -5
- package/dist/components/ui/layout/column.cjs +209 -41
- package/dist/components/ui/layout/column.js +209 -41
- package/dist/components/ui/layout/grid.cjs +275 -60
- package/dist/components/ui/layout/grid.js +275 -60
- package/dist/components/ui/layout/row.cjs +209 -41
- package/dist/components/ui/layout/row.js +209 -41
- package/dist/components/ui/menubar.cjs +540 -106
- package/dist/components/ui/menubar.js +540 -106
- package/dist/components/ui/multi-select.cjs +289 -135
- package/dist/components/ui/multi-select.js +289 -135
- package/dist/components/ui/navigation-menu.cjs +244 -47
- package/dist/components/ui/navigation-menu.js +244 -47
- package/dist/components/ui/pagination.cjs +301 -65
- package/dist/components/ui/pagination.js +301 -65
- package/dist/components/ui/popover.cjs +48 -9
- package/dist/components/ui/popover.js +48 -9
- package/dist/components/ui/progress.cjs +48 -8
- package/dist/components/ui/progress.js +48 -8
- package/dist/components/ui/radio-group.cjs +74 -12
- package/dist/components/ui/radio-group.js +74 -12
- package/dist/components/ui/resizable.cjs +75 -10
- package/dist/components/ui/resizable.js +75 -10
- package/dist/components/ui/scroll-area.cjs +113 -21
- package/dist/components/ui/scroll-area.js +113 -21
- package/dist/components/ui/search.cjs +280 -98
- package/dist/components/ui/search.js +280 -98
- package/dist/components/ui/select.cjs +334 -68
- package/dist/components/ui/select.js +334 -68
- package/dist/components/ui/separator.cjs +48 -7
- package/dist/components/ui/separator.js +48 -7
- package/dist/components/ui/sheet.cjs +236 -50
- package/dist/components/ui/sheet.js +236 -50
- package/dist/components/ui/skeleton.cjs +31 -5
- package/dist/components/ui/skeleton.js +31 -5
- package/dist/components/ui/slider.cjs +71 -21
- package/dist/components/ui/slider.js +71 -21
- package/dist/components/ui/sonner.cjs +43 -15
- package/dist/components/ui/sonner.js +43 -15
- package/dist/components/ui/spinner.cjs +83 -21
- package/dist/components/ui/spinner.js +83 -21
- package/dist/components/ui/stats-card.cjs +169 -60
- package/dist/components/ui/stats-card.js +169 -60
- package/dist/components/ui/stepper.cjs +126 -57
- package/dist/components/ui/stepper.js +126 -57
- package/dist/components/ui/switch.cjs +42 -8
- package/dist/components/ui/switch.js +42 -8
- package/dist/components/ui/table.cjs +267 -42
- package/dist/components/ui/table.js +267 -42
- package/dist/components/ui/tabs.cjs +100 -15
- package/dist/components/ui/tabs.js +100 -15
- package/dist/components/ui/textarea.cjs +34 -5
- package/dist/components/ui/textarea.js +34 -5
- package/dist/components/ui/toggle-group.cjs +112 -19
- package/dist/components/ui/toggle-group.js +112 -19
- package/dist/components/ui/toggle.cjs +43 -6
- package/dist/components/ui/toggle.js +43 -6
- package/dist/components/ui/tooltip.cjs +40 -6
- package/dist/components/ui/tooltip.js +40 -6
- package/dist/examples/admin-layout-example.cjs +879 -347
- package/dist/examples/admin-layout-example.js +879 -347
- package/dist/examples/app-shell-example.cjs +14 -14
- package/dist/examples/app-shell-example.js +14 -14
- package/dist/examples/dashboard-example.cjs +495 -334
- package/dist/examples/dashboard-example.js +495 -334
- package/dist/examples/data-management-example.cjs +501 -303
- package/dist/examples/data-management-example.js +502 -304
- package/dist/examples/flow-editor-layout-example.cjs +435 -231
- package/dist/examples/flow-editor-layout-example.js +436 -232
- package/dist/examples/flow-start-example.cjs +508 -251
- package/dist/examples/flow-start-example.js +509 -252
- package/dist/examples/form-builder-example.cjs +1006 -602
- package/dist/examples/form-builder-example.js +1007 -603
- package/dist/examples/new-project-example.cjs +806 -474
- package/dist/examples/new-project-example.js +807 -475
- package/dist/examples/settings-example.cjs +792 -704
- package/dist/examples/settings-example.js +792 -704
- package/dist/examples/vscode-example.cjs +731 -236
- package/dist/examples/vscode-example.js +731 -236
- package/package.json +4 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c as compiler_runtime_c } from "react/compiler-runtime";
|
|
2
3
|
import { ArrowUp, Plus, Search, X } from "lucide-react";
|
|
3
|
-
import {
|
|
4
|
+
import { useState } from "react";
|
|
4
5
|
import { Button } from "../components/ui/button.js";
|
|
5
6
|
import { Checkbox } from "../components/ui/checkbox.js";
|
|
6
7
|
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle } from "../components/ui/drawer.js";
|
|
@@ -9,508 +10,839 @@ import { Label } from "../components/ui/label.js";
|
|
|
9
10
|
import { Textarea } from "../components/ui/textarea.js";
|
|
10
11
|
import { cn } from "../lib/index.js";
|
|
11
12
|
import { Column, Grid, Row } from "../components/ui/layout/index.js";
|
|
12
|
-
function NewProjectExample({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
]
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
13
|
+
function NewProjectExample(t0) {
|
|
14
|
+
const $ = compiler_runtime_c(109);
|
|
15
|
+
const { className, title: t1, subtitle: t2, templates: t3, categories: t4, tools: t5, autopilot, onCreateBlank } = t0;
|
|
16
|
+
const title = void 0 === t1 ? "Let's create an agentic process" : t1;
|
|
17
|
+
const subtitle = void 0 === t2 ? "Design and orchestrate end-to-end processes with AI agents, robots, and people using BPMN-based diagrams." : t2;
|
|
18
|
+
let t6;
|
|
19
|
+
if ($[0] !== t3) {
|
|
20
|
+
t6 = void 0 === t3 ? [
|
|
21
|
+
{
|
|
22
|
+
id: "1",
|
|
23
|
+
name: "Invoice processing",
|
|
24
|
+
description: "Automate the end-to-end process of capturing, validating, and approving invoices.",
|
|
25
|
+
usageCount: 3400,
|
|
26
|
+
category: "financial",
|
|
27
|
+
tools: [
|
|
28
|
+
"office365",
|
|
29
|
+
"maestro"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "2",
|
|
34
|
+
name: "Loan processing",
|
|
35
|
+
description: "Optimize the evaluation, approval, and disbursement of loans.",
|
|
36
|
+
usageCount: 1700,
|
|
37
|
+
category: "financial",
|
|
38
|
+
tools: [
|
|
39
|
+
"google",
|
|
40
|
+
"maestro"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "3",
|
|
45
|
+
name: "Supplier onboarding",
|
|
46
|
+
description: "Coordinate the registration, verification, and integration of new suppliers.",
|
|
47
|
+
usageCount: 1200,
|
|
48
|
+
category: "other",
|
|
49
|
+
tools: [
|
|
50
|
+
"office365",
|
|
51
|
+
"maestro"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
] : t3;
|
|
55
|
+
$[0] = t3;
|
|
56
|
+
$[1] = t6;
|
|
57
|
+
} else t6 = $[1];
|
|
58
|
+
const templates = t6;
|
|
59
|
+
let t7;
|
|
60
|
+
if ($[2] !== t4) {
|
|
61
|
+
t7 = void 0 === t4 ? [
|
|
62
|
+
{
|
|
63
|
+
id: "financial",
|
|
64
|
+
label: "Financial"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "healthcare",
|
|
68
|
+
label: "Healthcare"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "other",
|
|
72
|
+
label: "Other"
|
|
73
|
+
}
|
|
74
|
+
] : t4;
|
|
75
|
+
$[2] = t4;
|
|
76
|
+
$[3] = t7;
|
|
77
|
+
} else t7 = $[3];
|
|
78
|
+
const categories = t7;
|
|
79
|
+
let t8;
|
|
80
|
+
if ($[4] !== t5) {
|
|
81
|
+
t8 = void 0 === t5 ? [
|
|
82
|
+
{
|
|
83
|
+
id: "office365",
|
|
84
|
+
label: "Office365"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "jira",
|
|
88
|
+
label: "Jira"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: "sap-concur",
|
|
92
|
+
label: "SAP Concur"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "slack",
|
|
96
|
+
label: "Slack"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "docusign",
|
|
100
|
+
label: "DocuSign"
|
|
101
|
+
}
|
|
102
|
+
] : t5;
|
|
103
|
+
$[4] = t5;
|
|
104
|
+
$[5] = t8;
|
|
105
|
+
} else t8 = $[5];
|
|
106
|
+
const tools = t8;
|
|
107
|
+
const [autopilotPrompt, setAutopilotPrompt] = useState("");
|
|
82
108
|
const [drawerOpen, setDrawerOpen] = useState(false);
|
|
83
|
-
const [searchQuery, setSearchQuery] = useState(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
};
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
variant: "outline",
|
|
159
|
-
size: "sm",
|
|
160
|
-
className: "h-9 w-full",
|
|
161
|
-
onClick: template.onUse,
|
|
162
|
-
children: "Use"
|
|
163
|
-
})
|
|
164
|
-
]
|
|
165
|
-
});
|
|
166
|
-
return /*#__PURE__*/ jsxs(Fragment, {
|
|
167
|
-
children: [
|
|
168
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
169
|
-
minH: "screen",
|
|
170
|
-
gap: 8,
|
|
171
|
-
className: cn('bg-background px-8 py-16 md:px-16 md:py-20', className),
|
|
109
|
+
const [searchQuery, setSearchQuery] = useState("");
|
|
110
|
+
let t9;
|
|
111
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
112
|
+
t9 = [];
|
|
113
|
+
$[6] = t9;
|
|
114
|
+
} else t9 = $[6];
|
|
115
|
+
const [selectedCategories, setSelectedCategories] = useState(t9);
|
|
116
|
+
let t10;
|
|
117
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
118
|
+
t10 = [];
|
|
119
|
+
$[7] = t10;
|
|
120
|
+
} else t10 = $[7];
|
|
121
|
+
const [selectedTools, setSelectedTools] = useState(t10);
|
|
122
|
+
let t11;
|
|
123
|
+
if ($[8] !== autopilot || $[9] !== autopilotPrompt) {
|
|
124
|
+
t11 = ()=>{
|
|
125
|
+
if (autopilot?.onSubmit && autopilotPrompt.trim()) autopilot.onSubmit(autopilotPrompt);
|
|
126
|
+
};
|
|
127
|
+
$[8] = autopilot;
|
|
128
|
+
$[9] = autopilotPrompt;
|
|
129
|
+
$[10] = t11;
|
|
130
|
+
} else t11 = $[10];
|
|
131
|
+
const handleAutopilotSubmit = t11;
|
|
132
|
+
const formatUsageCount = _temp;
|
|
133
|
+
let t12;
|
|
134
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
135
|
+
t12 = (categoryId)=>{
|
|
136
|
+
setSelectedCategories((prev)=>prev.includes(categoryId) ? prev.filter((c)=>c !== categoryId) : [
|
|
137
|
+
...prev,
|
|
138
|
+
categoryId
|
|
139
|
+
]);
|
|
140
|
+
};
|
|
141
|
+
$[11] = t12;
|
|
142
|
+
} else t12 = $[11];
|
|
143
|
+
const toggleCategory = t12;
|
|
144
|
+
let t13;
|
|
145
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
146
|
+
t13 = (toolId)=>{
|
|
147
|
+
setSelectedTools((prev_0)=>prev_0.includes(toolId) ? prev_0.filter((t)=>t !== toolId) : [
|
|
148
|
+
...prev_0,
|
|
149
|
+
toolId
|
|
150
|
+
]);
|
|
151
|
+
};
|
|
152
|
+
$[12] = t13;
|
|
153
|
+
} else t13 = $[12];
|
|
154
|
+
const toggleTool = t13;
|
|
155
|
+
let t14;
|
|
156
|
+
if ($[13] !== searchQuery || $[14] !== selectedCategories || $[15] !== selectedTools || $[16] !== templates) {
|
|
157
|
+
let t15;
|
|
158
|
+
if ($[18] !== searchQuery || $[19] !== selectedCategories || $[20] !== selectedTools) {
|
|
159
|
+
t15 = (template)=>{
|
|
160
|
+
const matchesSearch = "" === searchQuery || template.name.toLowerCase().includes(searchQuery.toLowerCase()) || template.description.toLowerCase().includes(searchQuery.toLowerCase());
|
|
161
|
+
const matchesCategory = 0 === selectedCategories.length || template.category && selectedCategories.includes(template.category);
|
|
162
|
+
const matchesTools = 0 === selectedTools.length || template.tools && template.tools.some((tool)=>selectedTools.includes(tool));
|
|
163
|
+
return matchesSearch && matchesCategory && matchesTools;
|
|
164
|
+
};
|
|
165
|
+
$[18] = searchQuery;
|
|
166
|
+
$[19] = selectedCategories;
|
|
167
|
+
$[20] = selectedTools;
|
|
168
|
+
$[21] = t15;
|
|
169
|
+
} else t15 = $[21];
|
|
170
|
+
t14 = templates.filter(t15);
|
|
171
|
+
$[13] = searchQuery;
|
|
172
|
+
$[14] = selectedCategories;
|
|
173
|
+
$[15] = selectedTools;
|
|
174
|
+
$[16] = templates;
|
|
175
|
+
$[17] = t14;
|
|
176
|
+
} else t14 = $[17];
|
|
177
|
+
const filteredExamples = t14;
|
|
178
|
+
let t15;
|
|
179
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
180
|
+
t15 = (t16)=>{
|
|
181
|
+
const { template: template_0 } = t16;
|
|
182
|
+
return /*#__PURE__*/ jsxs(Column, {
|
|
183
|
+
className: "group rounded-lg border border-border/30 bg-card p-8 transition-all hover:border-border/60 hover:shadow-sm",
|
|
172
184
|
children: [
|
|
173
|
-
/*#__PURE__*/
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
gap: 8,
|
|
178
|
-
children: [
|
|
179
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
180
|
-
flex: 1,
|
|
181
|
-
children: [
|
|
182
|
-
/*#__PURE__*/ jsx("h1", {
|
|
183
|
-
className: "text-3xl font-bold tracking-tight",
|
|
184
|
-
children: title
|
|
185
|
-
}),
|
|
186
|
-
/*#__PURE__*/ jsx("p", {
|
|
187
|
-
className: "mt-4 text-base text-muted-foreground",
|
|
188
|
-
children: subtitle
|
|
189
|
-
})
|
|
190
|
-
]
|
|
191
|
-
}),
|
|
192
|
-
/*#__PURE__*/ jsx(Button, {
|
|
193
|
-
variant: "link",
|
|
194
|
-
onClick: ()=>setDrawerOpen(true),
|
|
195
|
-
className: "shrink-0",
|
|
196
|
-
children: "Explore templates"
|
|
197
|
-
})
|
|
198
|
-
]
|
|
199
|
-
})
|
|
200
|
-
}),
|
|
201
|
-
/*#__PURE__*/ jsxs(Grid, {
|
|
202
|
-
gap: 8,
|
|
203
|
-
cols: 1,
|
|
204
|
-
className: "sm:grid-cols-2 lg:grid-cols-4",
|
|
185
|
+
/*#__PURE__*/ jsxs(Column, {
|
|
186
|
+
gap: 4,
|
|
187
|
+
flex: 1,
|
|
188
|
+
className: "mb-8",
|
|
205
189
|
children: [
|
|
206
|
-
/*#__PURE__*/
|
|
207
|
-
className: "
|
|
208
|
-
|
|
209
|
-
children: [
|
|
210
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
211
|
-
gap: 4,
|
|
212
|
-
w: "full",
|
|
213
|
-
children: [
|
|
214
|
-
/*#__PURE__*/ jsx("h3", {
|
|
215
|
-
className: "text-base font-semibold",
|
|
216
|
-
children: "Blank agentic process"
|
|
217
|
-
}),
|
|
218
|
-
/*#__PURE__*/ jsx("p", {
|
|
219
|
-
className: "text-sm text-muted-foreground",
|
|
220
|
-
children: "Start building without a template."
|
|
221
|
-
})
|
|
222
|
-
]
|
|
223
|
-
}),
|
|
224
|
-
/*#__PURE__*/ jsx("div", {
|
|
225
|
-
className: "mt-8 flex h-20 w-20 items-center justify-center rounded-lg border-2 border-dashed border-border/50",
|
|
226
|
-
children: /*#__PURE__*/ jsx(Plus, {
|
|
227
|
-
className: "h-8 w-8 text-primary"
|
|
228
|
-
})
|
|
229
|
-
})
|
|
230
|
-
]
|
|
190
|
+
/*#__PURE__*/ jsx("h3", {
|
|
191
|
+
className: "text-base font-semibold leading-tight",
|
|
192
|
+
children: template_0.name
|
|
231
193
|
}),
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
]
|
|
236
|
-
}),
|
|
237
|
-
autopilot && /*#__PURE__*/ jsxs("div", {
|
|
238
|
-
className: "mx-auto w-full max-w-3xl",
|
|
239
|
-
children: [
|
|
240
|
-
/*#__PURE__*/ jsx("h2", {
|
|
241
|
-
className: "mb-6 text-lg font-semibold",
|
|
242
|
-
children: "Autopilot"
|
|
194
|
+
/*#__PURE__*/ jsx("p", {
|
|
195
|
+
className: "text-sm text-muted-foreground leading-relaxed",
|
|
196
|
+
children: template_0.description
|
|
243
197
|
}),
|
|
244
|
-
/*#__PURE__*/ jsxs(
|
|
245
|
-
|
|
198
|
+
/*#__PURE__*/ jsxs(Row, {
|
|
199
|
+
gap: 1.5,
|
|
200
|
+
align: "center",
|
|
201
|
+
className: "text-xs text-muted-foreground",
|
|
246
202
|
children: [
|
|
247
|
-
/*#__PURE__*/
|
|
248
|
-
className: "
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
handleAutopilotSubmit();
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}),
|
|
262
|
-
/*#__PURE__*/ jsxs("div", {
|
|
263
|
-
className: "absolute bottom-6 left-6 right-6 flex items-center justify-between",
|
|
264
|
-
children: [
|
|
265
|
-
/*#__PURE__*/ jsx(Button, {
|
|
266
|
-
variant: "ghost",
|
|
267
|
-
size: "icon",
|
|
268
|
-
className: "h-8 w-8",
|
|
269
|
-
onClick: ()=>setAutopilotPrompt(''),
|
|
270
|
-
disabled: !autopilotPrompt,
|
|
271
|
-
"aria-label": "Clear prompt",
|
|
272
|
-
children: /*#__PURE__*/ jsx(Plus, {
|
|
273
|
-
className: "h-4 w-4"
|
|
274
|
-
})
|
|
275
|
-
}),
|
|
276
|
-
/*#__PURE__*/ jsx(Button, {
|
|
277
|
-
variant: "ghost",
|
|
278
|
-
size: "icon",
|
|
279
|
-
className: "h-8 w-8",
|
|
280
|
-
onClick: handleAutopilotSubmit,
|
|
281
|
-
disabled: !autopilotPrompt.trim(),
|
|
282
|
-
"aria-label": "Submit prompt",
|
|
283
|
-
children: /*#__PURE__*/ jsx(ArrowUp, {
|
|
284
|
-
className: "h-4 w-4"
|
|
285
|
-
})
|
|
286
|
-
})
|
|
287
|
-
]
|
|
288
|
-
})
|
|
289
|
-
]
|
|
290
|
-
}),
|
|
291
|
-
autopilot.disclaimer && /*#__PURE__*/ jsx("div", {
|
|
292
|
-
className: "border-t border-border/20 px-6 py-3 text-center",
|
|
293
|
-
children: /*#__PURE__*/ jsx("p", {
|
|
294
|
-
className: "text-xs text-muted-foreground",
|
|
295
|
-
children: autopilot.disclaimer
|
|
203
|
+
/*#__PURE__*/ jsx("svg", {
|
|
204
|
+
className: "h-3.5 w-3.5",
|
|
205
|
+
fill: "none",
|
|
206
|
+
stroke: "currentColor",
|
|
207
|
+
viewBox: "0 0 24 24",
|
|
208
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
209
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
210
|
+
strokeLinecap: "round",
|
|
211
|
+
strokeLinejoin: "round",
|
|
212
|
+
strokeWidth: 2,
|
|
213
|
+
d: "M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"
|
|
296
214
|
})
|
|
215
|
+
}),
|
|
216
|
+
/*#__PURE__*/ jsx("span", {
|
|
217
|
+
children: formatUsageCount(template_0.usageCount)
|
|
297
218
|
})
|
|
298
219
|
]
|
|
299
220
|
})
|
|
300
221
|
]
|
|
222
|
+
}),
|
|
223
|
+
/*#__PURE__*/ jsx(Button, {
|
|
224
|
+
variant: "outline",
|
|
225
|
+
size: "sm",
|
|
226
|
+
className: "h-9 w-full",
|
|
227
|
+
onClick: template_0.onUse,
|
|
228
|
+
children: "Use"
|
|
301
229
|
})
|
|
302
230
|
]
|
|
303
|
-
})
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
$[22] = t15;
|
|
234
|
+
} else t15 = $[22];
|
|
235
|
+
const ExampleCard = t15;
|
|
236
|
+
let t16;
|
|
237
|
+
if ($[23] !== className) {
|
|
238
|
+
t16 = cn("bg-background px-8 py-16 md:px-16 md:py-20", className);
|
|
239
|
+
$[23] = className;
|
|
240
|
+
$[24] = t16;
|
|
241
|
+
} else t16 = $[24];
|
|
242
|
+
let t17;
|
|
243
|
+
if ($[25] !== title) {
|
|
244
|
+
t17 = /*#__PURE__*/ jsx("h1", {
|
|
245
|
+
className: "text-3xl font-bold tracking-tight",
|
|
246
|
+
children: title
|
|
247
|
+
});
|
|
248
|
+
$[25] = title;
|
|
249
|
+
$[26] = t17;
|
|
250
|
+
} else t17 = $[26];
|
|
251
|
+
let t18;
|
|
252
|
+
if ($[27] !== subtitle) {
|
|
253
|
+
t18 = /*#__PURE__*/ jsx("p", {
|
|
254
|
+
className: "mt-4 text-base text-muted-foreground",
|
|
255
|
+
children: subtitle
|
|
256
|
+
});
|
|
257
|
+
$[27] = subtitle;
|
|
258
|
+
$[28] = t18;
|
|
259
|
+
} else t18 = $[28];
|
|
260
|
+
let t19;
|
|
261
|
+
if ($[29] !== t17 || $[30] !== t18) {
|
|
262
|
+
t19 = /*#__PURE__*/ jsxs(Column, {
|
|
263
|
+
flex: 1,
|
|
264
|
+
children: [
|
|
265
|
+
t17,
|
|
266
|
+
t18
|
|
267
|
+
]
|
|
268
|
+
});
|
|
269
|
+
$[29] = t17;
|
|
270
|
+
$[30] = t18;
|
|
271
|
+
$[31] = t19;
|
|
272
|
+
} else t19 = $[31];
|
|
273
|
+
let t20;
|
|
274
|
+
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
275
|
+
t20 = /*#__PURE__*/ jsx(Button, {
|
|
276
|
+
variant: "link",
|
|
277
|
+
onClick: ()=>setDrawerOpen(true),
|
|
278
|
+
className: "shrink-0",
|
|
279
|
+
children: "Explore templates"
|
|
280
|
+
});
|
|
281
|
+
$[32] = t20;
|
|
282
|
+
} else t20 = $[32];
|
|
283
|
+
let t21;
|
|
284
|
+
if ($[33] !== t19) {
|
|
285
|
+
t21 = /*#__PURE__*/ jsx("div", {
|
|
286
|
+
children: /*#__PURE__*/ jsxs(Row, {
|
|
287
|
+
justify: "between",
|
|
288
|
+
align: "start",
|
|
289
|
+
gap: 8,
|
|
290
|
+
children: [
|
|
291
|
+
t19,
|
|
292
|
+
t20
|
|
293
|
+
]
|
|
294
|
+
})
|
|
295
|
+
});
|
|
296
|
+
$[33] = t19;
|
|
297
|
+
$[34] = t21;
|
|
298
|
+
} else t21 = $[34];
|
|
299
|
+
let t22;
|
|
300
|
+
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
301
|
+
t22 = /*#__PURE__*/ jsxs(Column, {
|
|
302
|
+
gap: 4,
|
|
303
|
+
w: "full",
|
|
304
|
+
children: [
|
|
305
|
+
/*#__PURE__*/ jsx("h3", {
|
|
306
|
+
className: "text-base font-semibold",
|
|
307
|
+
children: "Blank agentic process"
|
|
308
|
+
}),
|
|
309
|
+
/*#__PURE__*/ jsx("p", {
|
|
310
|
+
className: "text-sm text-muted-foreground",
|
|
311
|
+
children: "Start building without a template."
|
|
312
|
+
})
|
|
313
|
+
]
|
|
314
|
+
});
|
|
315
|
+
$[35] = t22;
|
|
316
|
+
} else t22 = $[35];
|
|
317
|
+
let t23;
|
|
318
|
+
if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
|
|
319
|
+
t23 = /*#__PURE__*/ jsx("div", {
|
|
320
|
+
className: "mt-8 flex h-20 w-20 items-center justify-center rounded-lg border-2 border-dashed border-border/50",
|
|
321
|
+
children: /*#__PURE__*/ jsx(Plus, {
|
|
322
|
+
className: "h-8 w-8 text-primary"
|
|
323
|
+
})
|
|
324
|
+
});
|
|
325
|
+
$[36] = t23;
|
|
326
|
+
} else t23 = $[36];
|
|
327
|
+
let t24;
|
|
328
|
+
if ($[37] !== onCreateBlank) {
|
|
329
|
+
t24 = /*#__PURE__*/ jsxs("button", {
|
|
330
|
+
className: "group flex cursor-pointer flex-col items-center justify-between rounded-lg border border-dashed border-border/40 bg-card p-8 text-center transition-all hover:border-border/70 hover:shadow-sm",
|
|
331
|
+
onClick: onCreateBlank,
|
|
332
|
+
children: [
|
|
333
|
+
t22,
|
|
334
|
+
t23
|
|
335
|
+
]
|
|
336
|
+
});
|
|
337
|
+
$[37] = onCreateBlank;
|
|
338
|
+
$[38] = t24;
|
|
339
|
+
} else t24 = $[38];
|
|
340
|
+
let t25;
|
|
341
|
+
if ($[39] !== templates) {
|
|
342
|
+
let t26;
|
|
343
|
+
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
344
|
+
t26 = (template_1)=>/*#__PURE__*/ jsx(ExampleCard, {
|
|
345
|
+
template: template_1
|
|
346
|
+
}, template_1.id);
|
|
347
|
+
$[41] = t26;
|
|
348
|
+
} else t26 = $[41];
|
|
349
|
+
t25 = templates.slice(0, 3).map(t26);
|
|
350
|
+
$[39] = templates;
|
|
351
|
+
$[40] = t25;
|
|
352
|
+
} else t25 = $[40];
|
|
353
|
+
let t26;
|
|
354
|
+
if ($[42] !== t24 || $[43] !== t25) {
|
|
355
|
+
t26 = /*#__PURE__*/ jsxs(Grid, {
|
|
356
|
+
gap: 8,
|
|
357
|
+
cols: 1,
|
|
358
|
+
className: "sm:grid-cols-2 lg:grid-cols-4",
|
|
359
|
+
children: [
|
|
360
|
+
t24,
|
|
361
|
+
t25
|
|
362
|
+
]
|
|
363
|
+
});
|
|
364
|
+
$[42] = t24;
|
|
365
|
+
$[43] = t25;
|
|
366
|
+
$[44] = t26;
|
|
367
|
+
} else t26 = $[44];
|
|
368
|
+
let t27;
|
|
369
|
+
if ($[45] !== autopilot || $[46] !== autopilotPrompt || $[47] !== handleAutopilotSubmit) {
|
|
370
|
+
t27 = autopilot && /*#__PURE__*/ jsxs("div", {
|
|
371
|
+
className: "mx-auto w-full max-w-3xl",
|
|
372
|
+
children: [
|
|
373
|
+
/*#__PURE__*/ jsx("h2", {
|
|
374
|
+
className: "mb-6 text-lg font-semibold",
|
|
375
|
+
children: "Autopilot"
|
|
376
|
+
}),
|
|
377
|
+
/*#__PURE__*/ jsxs("div", {
|
|
378
|
+
className: "rounded-lg border border-border/30 bg-card",
|
|
309
379
|
children: [
|
|
310
|
-
/*#__PURE__*/
|
|
311
|
-
className: "
|
|
312
|
-
children: /*#__PURE__*/ jsxs(Row, {
|
|
313
|
-
justify: "between",
|
|
314
|
-
align: "start",
|
|
315
|
-
children: [
|
|
316
|
-
/*#__PURE__*/ jsxs("div", {
|
|
317
|
-
children: [
|
|
318
|
-
/*#__PURE__*/ jsx(DrawerTitle, {
|
|
319
|
-
className: "text-base md:text-lg",
|
|
320
|
-
children: "Explore templates"
|
|
321
|
-
}),
|
|
322
|
-
/*#__PURE__*/ jsx(DrawerDescription, {
|
|
323
|
-
className: "text-xs md:text-sm",
|
|
324
|
-
children: "Build, customise and deploy an Agentic Process starting from a template."
|
|
325
|
-
})
|
|
326
|
-
]
|
|
327
|
-
}),
|
|
328
|
-
/*#__PURE__*/ jsx(DrawerClose, {
|
|
329
|
-
asChild: true,
|
|
330
|
-
children: /*#__PURE__*/ jsxs(Button, {
|
|
331
|
-
variant: "ghost",
|
|
332
|
-
size: "icon",
|
|
333
|
-
className: "h-7 w-7 md:h-8 md:w-8 shrink-0",
|
|
334
|
-
children: [
|
|
335
|
-
/*#__PURE__*/ jsx(X, {
|
|
336
|
-
className: "h-3 w-3 md:h-4 md:w-4"
|
|
337
|
-
}),
|
|
338
|
-
/*#__PURE__*/ jsx("span", {
|
|
339
|
-
className: "sr-only",
|
|
340
|
-
children: "Close"
|
|
341
|
-
})
|
|
342
|
-
]
|
|
343
|
-
})
|
|
344
|
-
})
|
|
345
|
-
]
|
|
346
|
-
})
|
|
347
|
-
}),
|
|
348
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
349
|
-
overflow: "hidden",
|
|
350
|
-
className: "h-[calc(75vh-80px)]",
|
|
380
|
+
/*#__PURE__*/ jsxs("div", {
|
|
381
|
+
className: "relative p-6",
|
|
351
382
|
children: [
|
|
352
|
-
/*#__PURE__*/
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
/*#__PURE__*/ jsx(Input, {
|
|
364
|
-
placeholder: "Search",
|
|
365
|
-
value: searchQuery,
|
|
366
|
-
onChange: (e)=>setSearchQuery(e.target.value),
|
|
367
|
-
className: "h-8 pl-7 text-xs"
|
|
368
|
-
})
|
|
369
|
-
]
|
|
370
|
-
})
|
|
371
|
-
}),
|
|
372
|
-
/*#__PURE__*/ jsxs(Column, {
|
|
373
|
-
gap: 3,
|
|
374
|
-
children: [
|
|
375
|
-
/*#__PURE__*/ jsxs("div", {
|
|
376
|
-
children: [
|
|
377
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
378
|
-
justify: "between",
|
|
379
|
-
align: "center",
|
|
380
|
-
className: "mb-1.5",
|
|
381
|
-
children: [
|
|
382
|
-
/*#__PURE__*/ jsx("h4", {
|
|
383
|
-
className: "text-xs font-semibold",
|
|
384
|
-
children: "Category"
|
|
385
|
-
}),
|
|
386
|
-
/*#__PURE__*/ jsx(Button, {
|
|
387
|
-
variant: "ghost",
|
|
388
|
-
size: "sm",
|
|
389
|
-
className: "h-auto p-0 text-[10px]",
|
|
390
|
-
onClick: ()=>setSelectedCategories([]),
|
|
391
|
-
children: "Clear"
|
|
392
|
-
})
|
|
393
|
-
]
|
|
394
|
-
}),
|
|
395
|
-
/*#__PURE__*/ jsx(Column, {
|
|
396
|
-
gap: 1.5,
|
|
397
|
-
children: categories.map((category)=>/*#__PURE__*/ jsxs(Row, {
|
|
398
|
-
gap: 2,
|
|
399
|
-
align: "center",
|
|
400
|
-
children: [
|
|
401
|
-
/*#__PURE__*/ jsx(Checkbox, {
|
|
402
|
-
id: `category-${category.id}`,
|
|
403
|
-
checked: selectedCategories.includes(category.id),
|
|
404
|
-
onCheckedChange: ()=>toggleCategory(category.id),
|
|
405
|
-
className: "h-3 w-3"
|
|
406
|
-
}),
|
|
407
|
-
/*#__PURE__*/ jsx(Label, {
|
|
408
|
-
htmlFor: `category-${category.id}`,
|
|
409
|
-
className: "cursor-pointer text-xs font-normal",
|
|
410
|
-
children: category.label
|
|
411
|
-
})
|
|
412
|
-
]
|
|
413
|
-
}, category.id))
|
|
414
|
-
})
|
|
415
|
-
]
|
|
416
|
-
}),
|
|
417
|
-
/*#__PURE__*/ jsxs("div", {
|
|
418
|
-
children: [
|
|
419
|
-
/*#__PURE__*/ jsxs(Row, {
|
|
420
|
-
justify: "between",
|
|
421
|
-
align: "center",
|
|
422
|
-
className: "mb-1.5",
|
|
423
|
-
children: [
|
|
424
|
-
/*#__PURE__*/ jsx("h4", {
|
|
425
|
-
className: "text-xs font-semibold",
|
|
426
|
-
children: "Tool"
|
|
427
|
-
}),
|
|
428
|
-
/*#__PURE__*/ jsx(Button, {
|
|
429
|
-
variant: "ghost",
|
|
430
|
-
size: "sm",
|
|
431
|
-
className: "h-auto p-0 text-[10px]",
|
|
432
|
-
onClick: ()=>setSelectedTools([]),
|
|
433
|
-
children: "Clear"
|
|
434
|
-
})
|
|
435
|
-
]
|
|
436
|
-
}),
|
|
437
|
-
/*#__PURE__*/ jsx(Column, {
|
|
438
|
-
gap: 1.5,
|
|
439
|
-
children: tools.map((tool)=>/*#__PURE__*/ jsxs(Row, {
|
|
440
|
-
gap: 2,
|
|
441
|
-
align: "center",
|
|
442
|
-
children: [
|
|
443
|
-
/*#__PURE__*/ jsx(Checkbox, {
|
|
444
|
-
id: `tool-${tool.id}`,
|
|
445
|
-
checked: selectedTools.includes(tool.id),
|
|
446
|
-
onCheckedChange: ()=>toggleTool(tool.id),
|
|
447
|
-
className: "h-3 w-3"
|
|
448
|
-
}),
|
|
449
|
-
/*#__PURE__*/ jsx(Label, {
|
|
450
|
-
htmlFor: `tool-${tool.id}`,
|
|
451
|
-
className: "cursor-pointer text-xs font-normal",
|
|
452
|
-
children: tool.label
|
|
453
|
-
})
|
|
454
|
-
]
|
|
455
|
-
}, tool.id))
|
|
456
|
-
})
|
|
457
|
-
]
|
|
458
|
-
}),
|
|
459
|
-
/*#__PURE__*/ jsx(Button, {
|
|
460
|
-
variant: "link",
|
|
461
|
-
size: "sm",
|
|
462
|
-
className: "h-auto p-0 text-[10px]",
|
|
463
|
-
children: "Show more"
|
|
464
|
-
})
|
|
465
|
-
]
|
|
466
|
-
})
|
|
467
|
-
]
|
|
383
|
+
/*#__PURE__*/ jsx(Textarea, {
|
|
384
|
+
placeholder: autopilot.placeholder,
|
|
385
|
+
value: autopilotPrompt,
|
|
386
|
+
onChange: (e)=>setAutopilotPrompt(e.target.value),
|
|
387
|
+
className: "min-h-[120px] resize-none border-0 p-0 pb-12 text-sm placeholder:text-muted-foreground/50 focus-visible:ring-0",
|
|
388
|
+
onKeyDown: (e_0)=>{
|
|
389
|
+
if ("Enter" === e_0.key && (e_0.metaKey || e_0.ctrlKey)) {
|
|
390
|
+
e_0.preventDefault();
|
|
391
|
+
handleAutopilotSubmit();
|
|
392
|
+
}
|
|
393
|
+
}
|
|
468
394
|
}),
|
|
469
395
|
/*#__PURE__*/ jsxs("div", {
|
|
470
|
-
className: "
|
|
396
|
+
className: "absolute bottom-6 left-6 right-6 flex items-center justify-between",
|
|
471
397
|
children: [
|
|
472
|
-
/*#__PURE__*/ jsx(
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
placeholder: "Search",
|
|
482
|
-
value: searchQuery,
|
|
483
|
-
onChange: (e)=>setSearchQuery(e.target.value),
|
|
484
|
-
className: "pl-8 text-sm"
|
|
485
|
-
})
|
|
486
|
-
]
|
|
398
|
+
/*#__PURE__*/ jsx(Button, {
|
|
399
|
+
variant: "ghost",
|
|
400
|
+
size: "icon",
|
|
401
|
+
className: "h-8 w-8",
|
|
402
|
+
onClick: ()=>setAutopilotPrompt(""),
|
|
403
|
+
disabled: !autopilotPrompt,
|
|
404
|
+
"aria-label": "Clear prompt",
|
|
405
|
+
children: /*#__PURE__*/ jsx(Plus, {
|
|
406
|
+
className: "h-4 w-4"
|
|
487
407
|
})
|
|
488
408
|
}),
|
|
489
|
-
/*#__PURE__*/ jsx(
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
className: "
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
h: 32,
|
|
499
|
-
justify: "center",
|
|
500
|
-
align: "center",
|
|
501
|
-
children: /*#__PURE__*/ jsx("p", {
|
|
502
|
-
className: "text-sm text-muted-foreground",
|
|
503
|
-
children: "No templates found"
|
|
409
|
+
/*#__PURE__*/ jsx(Button, {
|
|
410
|
+
variant: "ghost",
|
|
411
|
+
size: "icon",
|
|
412
|
+
className: "h-8 w-8",
|
|
413
|
+
onClick: handleAutopilotSubmit,
|
|
414
|
+
disabled: !autopilotPrompt.trim(),
|
|
415
|
+
"aria-label": "Submit prompt",
|
|
416
|
+
children: /*#__PURE__*/ jsx(ArrowUp, {
|
|
417
|
+
className: "h-4 w-4"
|
|
504
418
|
})
|
|
505
419
|
})
|
|
506
420
|
]
|
|
507
421
|
})
|
|
508
422
|
]
|
|
423
|
+
}),
|
|
424
|
+
autopilot.disclaimer && /*#__PURE__*/ jsx("div", {
|
|
425
|
+
className: "border-t border-border/20 px-6 py-3 text-center",
|
|
426
|
+
children: /*#__PURE__*/ jsx("p", {
|
|
427
|
+
className: "text-xs text-muted-foreground",
|
|
428
|
+
children: autopilot.disclaimer
|
|
429
|
+
})
|
|
430
|
+
})
|
|
431
|
+
]
|
|
432
|
+
})
|
|
433
|
+
]
|
|
434
|
+
});
|
|
435
|
+
$[45] = autopilot;
|
|
436
|
+
$[46] = autopilotPrompt;
|
|
437
|
+
$[47] = handleAutopilotSubmit;
|
|
438
|
+
$[48] = t27;
|
|
439
|
+
} else t27 = $[48];
|
|
440
|
+
let t28;
|
|
441
|
+
if ($[49] !== t16 || $[50] !== t21 || $[51] !== t26 || $[52] !== t27) {
|
|
442
|
+
t28 = /*#__PURE__*/ jsxs(Column, {
|
|
443
|
+
minH: "screen",
|
|
444
|
+
gap: 8,
|
|
445
|
+
className: t16,
|
|
446
|
+
children: [
|
|
447
|
+
t21,
|
|
448
|
+
t26,
|
|
449
|
+
t27
|
|
450
|
+
]
|
|
451
|
+
});
|
|
452
|
+
$[49] = t16;
|
|
453
|
+
$[50] = t21;
|
|
454
|
+
$[51] = t26;
|
|
455
|
+
$[52] = t27;
|
|
456
|
+
$[53] = t28;
|
|
457
|
+
} else t28 = $[53];
|
|
458
|
+
let t29;
|
|
459
|
+
if ($[54] === Symbol.for("react.memo_cache_sentinel")) {
|
|
460
|
+
t29 = /*#__PURE__*/ jsxs("div", {
|
|
461
|
+
children: [
|
|
462
|
+
/*#__PURE__*/ jsx(DrawerTitle, {
|
|
463
|
+
className: "text-base md:text-lg",
|
|
464
|
+
children: "Explore templates"
|
|
465
|
+
}),
|
|
466
|
+
/*#__PURE__*/ jsx(DrawerDescription, {
|
|
467
|
+
className: "text-xs md:text-sm",
|
|
468
|
+
children: "Build, customise and deploy an Agentic Process starting from a template."
|
|
469
|
+
})
|
|
470
|
+
]
|
|
471
|
+
});
|
|
472
|
+
$[54] = t29;
|
|
473
|
+
} else t29 = $[54];
|
|
474
|
+
let t30;
|
|
475
|
+
if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
|
|
476
|
+
t30 = /*#__PURE__*/ jsx(DrawerHeader, {
|
|
477
|
+
className: "border-b px-4 py-2 md:px-6 md:py-3",
|
|
478
|
+
children: /*#__PURE__*/ jsxs(Row, {
|
|
479
|
+
justify: "between",
|
|
480
|
+
align: "start",
|
|
481
|
+
children: [
|
|
482
|
+
t29,
|
|
483
|
+
/*#__PURE__*/ jsx(DrawerClose, {
|
|
484
|
+
asChild: true,
|
|
485
|
+
children: /*#__PURE__*/ jsxs(Button, {
|
|
486
|
+
variant: "ghost",
|
|
487
|
+
size: "icon",
|
|
488
|
+
className: "h-7 w-7 md:h-8 md:w-8 shrink-0",
|
|
489
|
+
children: [
|
|
490
|
+
/*#__PURE__*/ jsx(X, {
|
|
491
|
+
className: "h-3 w-3 md:h-4 md:w-4"
|
|
492
|
+
}),
|
|
493
|
+
/*#__PURE__*/ jsx("span", {
|
|
494
|
+
className: "sr-only",
|
|
495
|
+
children: "Close"
|
|
496
|
+
})
|
|
497
|
+
]
|
|
498
|
+
})
|
|
499
|
+
})
|
|
500
|
+
]
|
|
501
|
+
})
|
|
502
|
+
});
|
|
503
|
+
$[55] = t30;
|
|
504
|
+
} else t30 = $[55];
|
|
505
|
+
let t31;
|
|
506
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
507
|
+
t31 = /*#__PURE__*/ jsx(Search, {
|
|
508
|
+
className: "absolute left-2 top-1/2 h-3 w-3 -translate-y-1/2 text-muted-foreground"
|
|
509
|
+
});
|
|
510
|
+
$[56] = t31;
|
|
511
|
+
} else t31 = $[56];
|
|
512
|
+
let t32;
|
|
513
|
+
if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
|
|
514
|
+
t32 = (e_1)=>setSearchQuery(e_1.target.value);
|
|
515
|
+
$[57] = t32;
|
|
516
|
+
} else t32 = $[57];
|
|
517
|
+
let t33;
|
|
518
|
+
if ($[58] !== searchQuery) {
|
|
519
|
+
t33 = /*#__PURE__*/ jsx("div", {
|
|
520
|
+
className: "mb-3",
|
|
521
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
522
|
+
className: "relative",
|
|
523
|
+
children: [
|
|
524
|
+
t31,
|
|
525
|
+
/*#__PURE__*/ jsx(Input, {
|
|
526
|
+
placeholder: "Search",
|
|
527
|
+
value: searchQuery,
|
|
528
|
+
onChange: t32,
|
|
529
|
+
className: "h-8 pl-7 text-xs"
|
|
530
|
+
})
|
|
531
|
+
]
|
|
532
|
+
})
|
|
533
|
+
});
|
|
534
|
+
$[58] = searchQuery;
|
|
535
|
+
$[59] = t33;
|
|
536
|
+
} else t33 = $[59];
|
|
537
|
+
let t34;
|
|
538
|
+
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
539
|
+
t34 = /*#__PURE__*/ jsx("h4", {
|
|
540
|
+
className: "text-xs font-semibold",
|
|
541
|
+
children: "Category"
|
|
542
|
+
});
|
|
543
|
+
$[60] = t34;
|
|
544
|
+
} else t34 = $[60];
|
|
545
|
+
let t35;
|
|
546
|
+
if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
|
|
547
|
+
t35 = /*#__PURE__*/ jsxs(Row, {
|
|
548
|
+
justify: "between",
|
|
549
|
+
align: "center",
|
|
550
|
+
className: "mb-1.5",
|
|
551
|
+
children: [
|
|
552
|
+
t34,
|
|
553
|
+
/*#__PURE__*/ jsx(Button, {
|
|
554
|
+
variant: "ghost",
|
|
555
|
+
size: "sm",
|
|
556
|
+
className: "h-auto p-0 text-[10px]",
|
|
557
|
+
onClick: ()=>setSelectedCategories([]),
|
|
558
|
+
children: "Clear"
|
|
559
|
+
})
|
|
560
|
+
]
|
|
561
|
+
});
|
|
562
|
+
$[61] = t35;
|
|
563
|
+
} else t35 = $[61];
|
|
564
|
+
let t36;
|
|
565
|
+
if ($[62] !== categories || $[63] !== selectedCategories) {
|
|
566
|
+
let t37;
|
|
567
|
+
if ($[65] !== selectedCategories) {
|
|
568
|
+
t37 = (category)=>/*#__PURE__*/ jsxs(Row, {
|
|
569
|
+
gap: 2,
|
|
570
|
+
align: "center",
|
|
571
|
+
children: [
|
|
572
|
+
/*#__PURE__*/ jsx(Checkbox, {
|
|
573
|
+
id: `category-${category.id}`,
|
|
574
|
+
checked: selectedCategories.includes(category.id),
|
|
575
|
+
onCheckedChange: ()=>toggleCategory(category.id),
|
|
576
|
+
className: "h-3 w-3"
|
|
577
|
+
}),
|
|
578
|
+
/*#__PURE__*/ jsx(Label, {
|
|
579
|
+
htmlFor: `category-${category.id}`,
|
|
580
|
+
className: "cursor-pointer text-xs font-normal",
|
|
581
|
+
children: category.label
|
|
582
|
+
})
|
|
583
|
+
]
|
|
584
|
+
}, category.id);
|
|
585
|
+
$[65] = selectedCategories;
|
|
586
|
+
$[66] = t37;
|
|
587
|
+
} else t37 = $[66];
|
|
588
|
+
t36 = categories.map(t37);
|
|
589
|
+
$[62] = categories;
|
|
590
|
+
$[63] = selectedCategories;
|
|
591
|
+
$[64] = t36;
|
|
592
|
+
} else t36 = $[64];
|
|
593
|
+
let t37;
|
|
594
|
+
if ($[67] !== t36) {
|
|
595
|
+
t37 = /*#__PURE__*/ jsxs("div", {
|
|
596
|
+
children: [
|
|
597
|
+
t35,
|
|
598
|
+
/*#__PURE__*/ jsx(Column, {
|
|
599
|
+
gap: 1.5,
|
|
600
|
+
children: t36
|
|
601
|
+
})
|
|
602
|
+
]
|
|
603
|
+
});
|
|
604
|
+
$[67] = t36;
|
|
605
|
+
$[68] = t37;
|
|
606
|
+
} else t37 = $[68];
|
|
607
|
+
let t38;
|
|
608
|
+
if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
|
|
609
|
+
t38 = /*#__PURE__*/ jsx("h4", {
|
|
610
|
+
className: "text-xs font-semibold",
|
|
611
|
+
children: "Tool"
|
|
612
|
+
});
|
|
613
|
+
$[69] = t38;
|
|
614
|
+
} else t38 = $[69];
|
|
615
|
+
let t39;
|
|
616
|
+
if ($[70] === Symbol.for("react.memo_cache_sentinel")) {
|
|
617
|
+
t39 = /*#__PURE__*/ jsxs(Row, {
|
|
618
|
+
justify: "between",
|
|
619
|
+
align: "center",
|
|
620
|
+
className: "mb-1.5",
|
|
621
|
+
children: [
|
|
622
|
+
t38,
|
|
623
|
+
/*#__PURE__*/ jsx(Button, {
|
|
624
|
+
variant: "ghost",
|
|
625
|
+
size: "sm",
|
|
626
|
+
className: "h-auto p-0 text-[10px]",
|
|
627
|
+
onClick: ()=>setSelectedTools([]),
|
|
628
|
+
children: "Clear"
|
|
629
|
+
})
|
|
630
|
+
]
|
|
631
|
+
});
|
|
632
|
+
$[70] = t39;
|
|
633
|
+
} else t39 = $[70];
|
|
634
|
+
let t40;
|
|
635
|
+
if ($[71] !== selectedTools || $[72] !== tools) {
|
|
636
|
+
let t41;
|
|
637
|
+
if ($[74] !== selectedTools) {
|
|
638
|
+
t41 = (tool_0)=>/*#__PURE__*/ jsxs(Row, {
|
|
639
|
+
gap: 2,
|
|
640
|
+
align: "center",
|
|
641
|
+
children: [
|
|
642
|
+
/*#__PURE__*/ jsx(Checkbox, {
|
|
643
|
+
id: `tool-${tool_0.id}`,
|
|
644
|
+
checked: selectedTools.includes(tool_0.id),
|
|
645
|
+
onCheckedChange: ()=>toggleTool(tool_0.id),
|
|
646
|
+
className: "h-3 w-3"
|
|
647
|
+
}),
|
|
648
|
+
/*#__PURE__*/ jsx(Label, {
|
|
649
|
+
htmlFor: `tool-${tool_0.id}`,
|
|
650
|
+
className: "cursor-pointer text-xs font-normal",
|
|
651
|
+
children: tool_0.label
|
|
509
652
|
})
|
|
510
653
|
]
|
|
654
|
+
}, tool_0.id);
|
|
655
|
+
$[74] = selectedTools;
|
|
656
|
+
$[75] = t41;
|
|
657
|
+
} else t41 = $[75];
|
|
658
|
+
t40 = tools.map(t41);
|
|
659
|
+
$[71] = selectedTools;
|
|
660
|
+
$[72] = tools;
|
|
661
|
+
$[73] = t40;
|
|
662
|
+
} else t40 = $[73];
|
|
663
|
+
let t41;
|
|
664
|
+
if ($[76] !== t40) {
|
|
665
|
+
t41 = /*#__PURE__*/ jsxs("div", {
|
|
666
|
+
children: [
|
|
667
|
+
t39,
|
|
668
|
+
/*#__PURE__*/ jsx(Column, {
|
|
669
|
+
gap: 1.5,
|
|
670
|
+
children: t40
|
|
511
671
|
})
|
|
672
|
+
]
|
|
673
|
+
});
|
|
674
|
+
$[76] = t40;
|
|
675
|
+
$[77] = t41;
|
|
676
|
+
} else t41 = $[77];
|
|
677
|
+
let t42;
|
|
678
|
+
if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
|
|
679
|
+
t42 = /*#__PURE__*/ jsx(Button, {
|
|
680
|
+
variant: "link",
|
|
681
|
+
size: "sm",
|
|
682
|
+
className: "h-auto p-0 text-[10px]",
|
|
683
|
+
children: "Show more"
|
|
684
|
+
});
|
|
685
|
+
$[78] = t42;
|
|
686
|
+
} else t42 = $[78];
|
|
687
|
+
let t43;
|
|
688
|
+
if ($[79] !== t37 || $[80] !== t41) {
|
|
689
|
+
t43 = /*#__PURE__*/ jsxs(Column, {
|
|
690
|
+
gap: 3,
|
|
691
|
+
children: [
|
|
692
|
+
t37,
|
|
693
|
+
t41,
|
|
694
|
+
t42
|
|
695
|
+
]
|
|
696
|
+
});
|
|
697
|
+
$[79] = t37;
|
|
698
|
+
$[80] = t41;
|
|
699
|
+
$[81] = t43;
|
|
700
|
+
} else t43 = $[81];
|
|
701
|
+
let t44;
|
|
702
|
+
if ($[82] !== t33 || $[83] !== t43) {
|
|
703
|
+
t44 = /*#__PURE__*/ jsxs("div", {
|
|
704
|
+
className: "hidden w-56 border-r bg-muted/20 p-3 md:block",
|
|
705
|
+
children: [
|
|
706
|
+
t33,
|
|
707
|
+
t43
|
|
708
|
+
]
|
|
709
|
+
});
|
|
710
|
+
$[82] = t33;
|
|
711
|
+
$[83] = t43;
|
|
712
|
+
$[84] = t44;
|
|
713
|
+
} else t44 = $[84];
|
|
714
|
+
let t45;
|
|
715
|
+
if ($[85] === Symbol.for("react.memo_cache_sentinel")) {
|
|
716
|
+
t45 = /*#__PURE__*/ jsx(Search, {
|
|
717
|
+
className: "absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"
|
|
718
|
+
});
|
|
719
|
+
$[85] = t45;
|
|
720
|
+
} else t45 = $[85];
|
|
721
|
+
let t46;
|
|
722
|
+
if ($[86] === Symbol.for("react.memo_cache_sentinel")) {
|
|
723
|
+
t46 = (e_2)=>setSearchQuery(e_2.target.value);
|
|
724
|
+
$[86] = t46;
|
|
725
|
+
} else t46 = $[86];
|
|
726
|
+
let t47;
|
|
727
|
+
if ($[87] !== searchQuery) {
|
|
728
|
+
t47 = /*#__PURE__*/ jsx("div", {
|
|
729
|
+
className: "mb-3 md:hidden",
|
|
730
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
731
|
+
className: "relative",
|
|
732
|
+
children: [
|
|
733
|
+
t45,
|
|
734
|
+
/*#__PURE__*/ jsx(Input, {
|
|
735
|
+
placeholder: "Search",
|
|
736
|
+
value: searchQuery,
|
|
737
|
+
onChange: t46,
|
|
738
|
+
className: "pl-8 text-sm"
|
|
739
|
+
})
|
|
740
|
+
]
|
|
512
741
|
})
|
|
513
|
-
|
|
514
|
-
|
|
742
|
+
});
|
|
743
|
+
$[87] = searchQuery;
|
|
744
|
+
$[88] = t47;
|
|
745
|
+
} else t47 = $[88];
|
|
746
|
+
let t48;
|
|
747
|
+
if ($[89] !== filteredExamples) {
|
|
748
|
+
let t49;
|
|
749
|
+
if ($[91] === Symbol.for("react.memo_cache_sentinel")) {
|
|
750
|
+
t49 = (template_2)=>/*#__PURE__*/ jsx(ExampleCard, {
|
|
751
|
+
template: template_2
|
|
752
|
+
}, template_2.id);
|
|
753
|
+
$[91] = t49;
|
|
754
|
+
} else t49 = $[91];
|
|
755
|
+
t48 = filteredExamples.map(t49);
|
|
756
|
+
$[89] = filteredExamples;
|
|
757
|
+
$[90] = t48;
|
|
758
|
+
} else t48 = $[90];
|
|
759
|
+
let t49;
|
|
760
|
+
if ($[92] !== t48) {
|
|
761
|
+
t49 = /*#__PURE__*/ jsx(Grid, {
|
|
762
|
+
gap: 3,
|
|
763
|
+
cols: 1,
|
|
764
|
+
className: "sm:grid-cols-2 lg:grid-cols-3",
|
|
765
|
+
children: t48
|
|
766
|
+
});
|
|
767
|
+
$[92] = t48;
|
|
768
|
+
$[93] = t49;
|
|
769
|
+
} else t49 = $[93];
|
|
770
|
+
let t50;
|
|
771
|
+
if ($[94] !== filteredExamples.length) {
|
|
772
|
+
t50 = 0 === filteredExamples.length && /*#__PURE__*/ jsx(Row, {
|
|
773
|
+
h: 32,
|
|
774
|
+
justify: "center",
|
|
775
|
+
align: "center",
|
|
776
|
+
children: /*#__PURE__*/ jsx("p", {
|
|
777
|
+
className: "text-sm text-muted-foreground",
|
|
778
|
+
children: "No templates found"
|
|
779
|
+
})
|
|
780
|
+
});
|
|
781
|
+
$[94] = filteredExamples.length;
|
|
782
|
+
$[95] = t50;
|
|
783
|
+
} else t50 = $[95];
|
|
784
|
+
let t51;
|
|
785
|
+
if ($[96] !== t47 || $[97] !== t49 || $[98] !== t50) {
|
|
786
|
+
t51 = /*#__PURE__*/ jsxs("div", {
|
|
787
|
+
className: "flex-1 overflow-y-auto p-3 md:p-4",
|
|
788
|
+
children: [
|
|
789
|
+
t47,
|
|
790
|
+
t49,
|
|
791
|
+
t50
|
|
792
|
+
]
|
|
793
|
+
});
|
|
794
|
+
$[96] = t47;
|
|
795
|
+
$[97] = t49;
|
|
796
|
+
$[98] = t50;
|
|
797
|
+
$[99] = t51;
|
|
798
|
+
} else t51 = $[99];
|
|
799
|
+
let t52;
|
|
800
|
+
if ($[100] !== t44 || $[101] !== t51) {
|
|
801
|
+
t52 = /*#__PURE__*/ jsxs(DrawerContent, {
|
|
802
|
+
className: "max-h-[75vh]",
|
|
803
|
+
children: [
|
|
804
|
+
t30,
|
|
805
|
+
/*#__PURE__*/ jsxs(Row, {
|
|
806
|
+
overflow: "hidden",
|
|
807
|
+
className: "h-[calc(75vh-80px)]",
|
|
808
|
+
children: [
|
|
809
|
+
t44,
|
|
810
|
+
t51
|
|
811
|
+
]
|
|
812
|
+
})
|
|
813
|
+
]
|
|
814
|
+
});
|
|
815
|
+
$[100] = t44;
|
|
816
|
+
$[101] = t51;
|
|
817
|
+
$[102] = t52;
|
|
818
|
+
} else t52 = $[102];
|
|
819
|
+
let t53;
|
|
820
|
+
if ($[103] !== drawerOpen || $[104] !== t52) {
|
|
821
|
+
t53 = /*#__PURE__*/ jsx(Drawer, {
|
|
822
|
+
open: drawerOpen,
|
|
823
|
+
onOpenChange: setDrawerOpen,
|
|
824
|
+
children: t52
|
|
825
|
+
});
|
|
826
|
+
$[103] = drawerOpen;
|
|
827
|
+
$[104] = t52;
|
|
828
|
+
$[105] = t53;
|
|
829
|
+
} else t53 = $[105];
|
|
830
|
+
let t54;
|
|
831
|
+
if ($[106] !== t28 || $[107] !== t53) {
|
|
832
|
+
t54 = /*#__PURE__*/ jsxs(Fragment, {
|
|
833
|
+
children: [
|
|
834
|
+
t28,
|
|
835
|
+
t53
|
|
836
|
+
]
|
|
837
|
+
});
|
|
838
|
+
$[106] = t28;
|
|
839
|
+
$[107] = t53;
|
|
840
|
+
$[108] = t54;
|
|
841
|
+
} else t54 = $[108];
|
|
842
|
+
return t54;
|
|
843
|
+
}
|
|
844
|
+
function _temp(count) {
|
|
845
|
+
if (count >= 1000) return `${(count / 1000).toFixed(1)}k`;
|
|
846
|
+
return count.toString();
|
|
515
847
|
}
|
|
516
848
|
export { NewProjectExample };
|