@pstdio/ui 0.25.0 → 0.35.0

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