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