@opengeni/react 6.36.0 → 6.36.1-canary.45113772604001

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 (1087) hide show
  1. package/dist/app/app-state.js +10 -10
  2. package/dist/app/components/Composer.js +19 -19
  3. package/dist/app/components/agent/agent-capability-picker.js +6 -6
  4. package/dist/app/components/agents/agent-can-use.js +21 -20
  5. package/dist/app/components/agents/agent-form-page.js +69 -65
  6. package/dist/app/components/agents/agent-form-page.js.map +1 -1
  7. package/dist/app/components/agents/agent-page.js +68 -64
  8. package/dist/app/components/agents/agent-setup-sections.js +40 -36
  9. package/dist/app/components/agents/agent-skills.js +5 -5
  10. package/dist/app/components/agents/agent-trigger-chat-field.js +4 -4
  11. package/dist/app/components/agents/agent-trigger-dialog.js +20 -17
  12. package/dist/app/components/agents/agent-trigger-model.d.ts +14 -0
  13. package/dist/app/components/agents/agent-trigger-picker.js +6 -5
  14. package/dist/app/components/agents/agent-trigger-repositories.d.ts +9 -0
  15. package/dist/app/components/agents/agent-trigger-repositories.js +31 -0
  16. package/dist/app/components/agents/agents-page.css +1905 -0
  17. package/dist/app/components/agents/agents-page.css.map +1 -0
  18. package/dist/app/components/agents/agents-page.js +106 -61
  19. package/dist/app/components/agents/agents-page.js.map +1 -1
  20. package/dist/app/components/agents/composer-agent-chip.js +29 -29
  21. package/dist/app/components/agents/session-agent-chip.js +29 -29
  22. package/dist/app/components/artifacts/app-package.js +3 -3
  23. package/dist/app/components/artifacts/app-server-status.d.ts +22 -0
  24. package/dist/app/components/artifacts/app-server-status.js +13 -0
  25. package/dist/app/components/artifacts/artifact-library.css +1905 -0
  26. package/dist/app/components/artifacts/artifact-library.css.map +1 -0
  27. package/dist/app/components/artifacts/artifact-library.js +8 -8
  28. package/dist/app/components/artifacts/artifact-viewer.css +1905 -0
  29. package/dist/app/components/artifacts/artifact-viewer.css.map +1 -0
  30. package/dist/app/components/artifacts/artifact-viewer.js +30 -30
  31. package/dist/app/components/artifacts/chat-interactive-block.js +16 -16
  32. package/dist/app/components/artifacts/file-reach-dialog.js +6 -6
  33. package/dist/app/components/artifacts/inline-chat-image.js +28 -28
  34. package/dist/app/components/artifacts/ready-made-apps.css +1905 -0
  35. package/dist/app/components/artifacts/ready-made-apps.css.map +1 -0
  36. package/dist/app/components/artifacts/ready-made-apps.d.ts +3 -0
  37. package/dist/app/components/artifacts/ready-made-apps.js +40 -0
  38. package/dist/app/components/artifacts/retained-file-preview.js +30 -30
  39. package/dist/app/components/artifacts/retained-text-preview.js +3 -3
  40. package/dist/app/components/artifacts/site-actions.js +1 -1
  41. package/dist/app/components/artifacts/site-audience.js +3 -3
  42. package/dist/app/components/artifacts/site-conversations.js +15 -15
  43. package/dist/app/components/artifacts/site-data.js +11 -11
  44. package/dist/app/components/artifacts/site-publishing-page.js +32 -32
  45. package/dist/app/components/artifacts/site-publishing.js +24 -24
  46. package/dist/app/components/artifacts/site-settings.js +31 -31
  47. package/dist/app/components/artifacts/site-version-menu.js +4 -4
  48. package/dist/app/components/billing-class-mark.js +3 -3
  49. package/dist/app/components/capabilities/capability-detail-sheet.js +7 -7
  50. package/dist/app/components/capabilities/capability-logo-source.js +15 -14
  51. package/dist/app/components/capabilities/connector-tool-permissions.js +4 -4
  52. package/dist/app/components/capabilities/native-connect-setup.js +16 -15
  53. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +3 -3
  54. package/dist/app/components/capabilities/perform-capability-action.js +1 -1
  55. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -16
  56. package/dist/app/components/capabilities/session-capability-card.js +70 -69
  57. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  58. package/dist/app/components/capabilities/session-chrome-card.js +22 -22
  59. package/dist/app/components/capabilities/session-connect-inputs-card.js +16 -15
  60. package/dist/app/components/capabilities/session-custom-mcp-card.js +18 -17
  61. package/dist/app/components/capabilities/session-github-card.js +19 -18
  62. package/dist/app/components/capabilities/session-machine-card.js +21 -21
  63. package/dist/app/components/capabilities/session-personal-github-card.js +16 -15
  64. package/dist/app/components/capabilities/session-plugin-card.js +9 -9
  65. package/dist/app/components/capabilities/use-connection-accounts.js +1 -1
  66. package/dist/app/components/command-menu/chat-status.js +18 -18
  67. package/dist/app/components/command-menu/chat-switcher.js +47 -47
  68. package/dist/app/components/command-menu/command-menu.js +58 -58
  69. package/dist/app/components/command-menu/shortcut-sheet.js +15 -15
  70. package/dist/app/components/composer-capabilities-menu-body.js +4 -4
  71. package/dist/app/components/composer-mobile-plus-panel.js +9 -9
  72. package/dist/app/components/composer-mobile-plus.js +1 -1
  73. package/dist/app/components/credit-required-gate.js +1 -1
  74. package/dist/app/components/credit-required-prompt.js +11 -11
  75. package/dist/app/components/credits/checkout-credits-celebration.js +2 -2
  76. package/dist/app/components/credits/checkout-return.js +2 -2
  77. package/dist/app/components/credits/credit-refusal-notice.js +2 -2
  78. package/dist/app/components/desktop/app-shots.js +7 -7
  79. package/dist/app/components/desktop/computer-use.js +2 -2
  80. package/dist/app/components/desktop/this-computer.js +5 -5
  81. package/dist/app/components/feedback.js +3 -3
  82. package/dist/app/components/follow-up-repository-menu-body.js +2 -2
  83. package/dist/app/components/follow-up-repository-picker.js +1 -1
  84. package/dist/app/components/github-app-connect-launcher.js +1 -1
  85. package/dist/app/components/machines/connect-machine-dialog.js +11 -11
  86. package/dist/app/components/markdown.js +7 -7
  87. package/dist/app/components/models/models-ui.js +6 -6
  88. package/dist/app/components/models/subscription-usage.js +5 -5
  89. package/dist/app/components/my-things.js +4 -4
  90. package/dist/app/components/own-where-it-works.js +3 -3
  91. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  92. package/dist/app/components/pickers.js +6 -6
  93. package/dist/app/components/rail/channel-create-dialog.js +3 -3
  94. package/dist/app/components/rail/project-glyph.js +29 -29
  95. package/dist/app/components/rail/project-profile.js +36 -36
  96. package/dist/app/components/rail/rail-context.js +1 -1
  97. package/dist/app/components/rail/rail-sections.js +80 -80
  98. package/dist/app/components/rail/session-header.js +64 -64
  99. package/dist/app/components/rail/session-list.js +78 -78
  100. package/dist/app/components/rail/session-row-content.js +4 -4
  101. package/dist/app/components/rail/session-row-hover-details.js +20 -20
  102. package/dist/app/components/rail/session-shell.js +102 -102
  103. package/dist/app/components/rail/site-session-group-heading.js +14 -14
  104. package/dist/app/components/repository-picker.js +2 -2
  105. package/dist/app/components/session/agent-configuration-panel.js +16 -16
  106. package/dist/app/components/session/artifact-session-page.js +1 -1
  107. package/dist/app/components/session/banners.js +9 -9
  108. package/dist/app/components/session/chat-avatar.js +29 -29
  109. package/dist/app/components/session/console-new-conversation.js +51 -51
  110. package/dist/app/components/session/descendant-requests.js +46 -46
  111. package/dist/app/components/session/editable-artifacts-workspace.css +1905 -0
  112. package/dist/app/components/session/editable-artifacts-workspace.css.map +1 -0
  113. package/dist/app/components/session/editable-artifacts-workspace.js +22 -22
  114. package/dist/app/components/session/failed-session-banner.js +10 -10
  115. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  116. package/dist/app/components/session/human-input-delegation-record.js +2 -2
  117. package/dist/app/components/session/human-input.js +42 -42
  118. package/dist/app/components/session/inspector.js +56 -56
  119. package/dist/app/components/session/linked-panel.js +3 -3
  120. package/dist/app/components/session/message-actions.js +3 -3
  121. package/dist/app/components/session/model-recovery-notice.js +3 -3
  122. package/dist/app/components/session/new-session-settings-menu.js +11 -11
  123. package/dist/app/components/session/new-session-setup-strip.js +30 -30
  124. package/dist/app/components/session/pull-request-panel.js +11 -11
  125. package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
  126. package/dist/app/components/session/sandbox-switcher.js +8 -8
  127. package/dist/app/components/session/sandbox-workspace.js +58 -58
  128. package/dist/app/components/session/search-markdown-highlight.js +8 -8
  129. package/dist/app/components/session/search-results-view.js +9 -9
  130. package/dist/app/components/session/session-admin-access.js +4 -4
  131. package/dist/app/components/session/session-admission-notice.js +4 -4
  132. package/dist/app/components/session/session-avatar-picker.js +30 -30
  133. package/dist/app/components/session/session-avatar.js +28 -28
  134. package/dist/app/components/session/session-machine-access-notice.js +4 -4
  135. package/dist/app/components/session/session-profile-dialog.js +34 -34
  136. package/dist/app/components/session/session-profile-editor.js +35 -35
  137. package/dist/app/components/session/session-retention.js +4 -4
  138. package/dist/app/components/session/session-search-dialog.js +9 -9
  139. package/dist/app/components/session/session-tenancy-control.js +8 -8
  140. package/dist/app/components/session/session-usage-limit-section.js +4 -4
  141. package/dist/app/components/session/share-chat-dialog.js +6 -6
  142. package/dist/app/components/session/subagents.js +13 -13
  143. package/dist/app/components/session/subscription-account-indicator.js +11 -11
  144. package/dist/app/components/session/subscription-account-menu.js +6 -6
  145. package/dist/app/components/settings/row-select.js +4 -4
  146. package/dist/app/components/toaster.js +2 -2
  147. package/dist/app/components/transcription-settings.js +6 -6
  148. package/dist/app/components/ui/destructive-confirm.js +5 -5
  149. package/dist/app/components/usage/usage-entry.js +3 -3
  150. package/dist/app/components/window-bar.js +13 -13
  151. package/dist/app/components/workspace-composer-plus.js +18 -17
  152. package/dist/app/components/workspace-reach.js +4 -4
  153. package/dist/app/embed/session-app.js +241 -240
  154. package/dist/app/lib/actions/actions-provider.js +12 -12
  155. package/dist/app/lib/agent-capabilities.js +3 -3
  156. package/dist/app/lib/app-connect-card.js +9 -9
  157. package/dist/app/lib/app-shared-key-dialog.js +4 -4
  158. package/dist/app/lib/app-sync-opt-in.js +3 -3
  159. package/dist/app/lib/codex-usage-query.js +2 -2
  160. package/dist/app/lib/composer-connectors.js +16 -15
  161. package/dist/app/lib/console-site.js +5 -5
  162. package/dist/app/lib/console-text.js +2 -2
  163. package/dist/app/lib/events.js +18 -18
  164. package/dist/app/lib/failed-session-copy.js +3 -3
  165. package/dist/app/lib/model-access-onboarding.js +3 -3
  166. package/dist/app/lib/move-chat-to-machine.js +3 -3
  167. package/dist/app/lib/needs-you.d.ts +2 -1
  168. package/dist/app/lib/needs-you.js +1 -1
  169. package/dist/app/lib/ready-made-apps.d.ts +14 -0
  170. package/dist/app/lib/ready-made-apps.js +8 -0
  171. package/dist/app/lib/session-branch-cache.js +13 -13
  172. package/dist/app/lib/session-capabilities.js +1 -1
  173. package/dist/app/lib/session-create.js +4 -4
  174. package/dist/app/lib/session-group-pagination.js +13 -13
  175. package/dist/app/lib/session-hover-facts.js +17 -17
  176. package/dist/app/lib/session-list-dirty-scopes.js +14 -14
  177. package/dist/app/lib/session-model.js +2 -2
  178. package/dist/app/lib/session-rail.js +10 -10
  179. package/dist/app/lib/session-rename.js +3 -3
  180. package/dist/app/lib/sessions-group.js +12 -12
  181. package/dist/app/lib/site-tool-consent-dialog.js +8 -8
  182. package/dist/app/lib/site-tool-consent.js +1 -1
  183. package/dist/app/lib/turn-failure-analytics.js +4 -4
  184. package/dist/app/lib/use-follow-up-repositories.js +3 -3
  185. package/dist/app/lib/use-workspace-machines.js +4 -4
  186. package/dist/app/lib/use-workspace-model-catalog.js +3 -3
  187. package/dist/app/lib/use-workspace-rigs.js +2 -2
  188. package/dist/app/lib/workspace-navigation-preference.js +4 -4
  189. package/dist/app/lib/workspace-scope-context.js +3 -3
  190. package/dist/app/routes/app-page-view.js +10 -10
  191. package/dist/app/routes/app-page.js +1 -1
  192. package/dist/app/routes/artifacts.css +1905 -0
  193. package/dist/app/routes/artifacts.css.map +1 -0
  194. package/dist/app/routes/artifacts.js +105 -94
  195. package/dist/app/routes/artifacts.js.map +1 -1
  196. package/dist/app/routes/retained-artifact.js +47 -47
  197. package/dist/app/routes/session-unavailable.js +2 -2
  198. package/dist/app/routes/session.js +131 -130
  199. package/dist/app/routes/sessions-index-hydration.js +5 -5
  200. package/dist/app/routes/sessions-index.js +108 -107
  201. package/dist/app/routes/site-view.js +107 -95
  202. package/dist/app/routes/site-view.js.map +1 -1
  203. package/dist/approval-review-model.js +2 -2
  204. package/dist/artifacts-document.js +4 -4
  205. package/dist/artifacts-presentation.js +5 -5
  206. package/dist/artifacts-spreadsheet.js +4 -4
  207. package/dist/artifacts.js +15 -15
  208. package/dist/automation-model.js +5 -5
  209. package/dist/automations.d.ts +1 -0
  210. package/dist/automations.js +29 -22
  211. package/dist/automations.js.map +1 -1
  212. package/dist/browser-viewer-EPGAK2W6.js +23 -0
  213. package/dist/chat-interactive-block-65YU6TMO.js +22 -0
  214. package/dist/chunk-25ODMMHH.js +403 -0
  215. package/dist/chunk-266ZPUMH.js +400 -0
  216. package/dist/chunk-2A7SB7UR.js +168 -0
  217. package/dist/chunk-2EU4Y7A7.js +100 -0
  218. package/dist/chunk-2F7VSGRS.js +1177 -0
  219. package/dist/chunk-2F7VSGRS.js.map +1 -0
  220. package/dist/chunk-2L6B6766.js +5915 -0
  221. package/dist/chunk-2L6B6766.js.map +1 -0
  222. package/dist/chunk-2LBYEHBH.js +570 -0
  223. package/dist/chunk-2MHIIF4N.js +141 -0
  224. package/dist/chunk-2SHWGDAA.js +283 -0
  225. package/dist/chunk-2VX42S4W.js +773 -0
  226. package/dist/chunk-2WGJQ4XK.js +311 -0
  227. package/dist/chunk-2XSF44TY.js +15 -0
  228. package/dist/chunk-33HUZMNE.js +639 -0
  229. package/dist/chunk-36IKHM4Q.js +148 -0
  230. package/dist/chunk-3JVQZAXQ.js +4480 -0
  231. package/dist/chunk-3SDESU6U.js +287 -0
  232. package/dist/chunk-3VXZFBP6.js +292 -0
  233. package/dist/chunk-3WDNCSVU.js +197 -0
  234. package/dist/chunk-3WDNCSVU.js.map +1 -0
  235. package/dist/chunk-3YKED2ZV.js +307 -0
  236. package/dist/chunk-3ZNOKD3S.js +1019 -0
  237. package/dist/chunk-45SB4UK3.js +2580 -0
  238. package/dist/chunk-47BETTVA.js +133 -0
  239. package/dist/chunk-4BTQ473O.js +274 -0
  240. package/dist/chunk-4JQRWJVR.js +249 -0
  241. package/dist/chunk-4NGIKV2W.js +316 -0
  242. package/dist/chunk-4NGIKV2W.js.map +1 -0
  243. package/dist/chunk-4R6WFQKZ.js +202 -0
  244. package/dist/chunk-4WEPVL7X.js +283 -0
  245. package/dist/chunk-4YWHOAB4.js +201 -0
  246. package/dist/chunk-52XGYRVS.js +155 -0
  247. package/dist/chunk-5G6UHUJZ.js +43 -0
  248. package/dist/chunk-5HFITPHH.js +229 -0
  249. package/dist/chunk-5LVVN2K7.js +650 -0
  250. package/dist/chunk-5PVXFVIT.js +48 -0
  251. package/dist/chunk-5WFGW7B7.js +187 -0
  252. package/dist/chunk-5YMSLKJP.js +92 -0
  253. package/dist/chunk-5YMSLKJP.js.map +1 -0
  254. package/dist/chunk-66M7RVM6.js +3070 -0
  255. package/dist/chunk-6AGNZI2W.js +437 -0
  256. package/dist/chunk-6ENO634Y.js +373 -0
  257. package/dist/chunk-6LQ5KEMP.js +200 -0
  258. package/dist/chunk-6QGIWLH5.js +428 -0
  259. package/dist/chunk-6WEDWD4N.js +170 -0
  260. package/dist/chunk-6YCYPXDA.js +114 -0
  261. package/dist/chunk-6YTNMDFP.js +318 -0
  262. package/dist/chunk-73O7NO3F.js +50 -0
  263. package/dist/chunk-76VXLTQF.js +251 -0
  264. package/dist/chunk-7EJ7PSZT.js +93 -0
  265. package/dist/chunk-7GS2MGFU.js +27 -0
  266. package/dist/chunk-7MF6MFHS.js +406 -0
  267. package/dist/chunk-7N35XBSC.js +386 -0
  268. package/dist/chunk-7ND2VMKV.js +270 -0
  269. package/dist/chunk-7RVJLO3N.js +154 -0
  270. package/dist/chunk-7VAILBP6.js +353 -0
  271. package/dist/chunk-7VSJQWFO.js +37 -0
  272. package/dist/chunk-7YKUIKGH.js +335 -0
  273. package/dist/chunk-A7DS77WC.js +138 -0
  274. package/dist/chunk-ABGHRGID.js +376 -0
  275. package/dist/chunk-ABGHRGID.js.map +1 -0
  276. package/dist/chunk-AEH34OOU.js +298 -0
  277. package/dist/chunk-ANWMRO2G.js +554 -0
  278. package/dist/chunk-APGUIORF.js +247 -0
  279. package/dist/chunk-ASCVQJB4.js +1309 -0
  280. package/dist/chunk-AVYFJKQS.js +10044 -0
  281. package/dist/chunk-AVYFJKQS.js.map +1 -0
  282. package/dist/chunk-AY4XH73V.js +1333 -0
  283. package/dist/chunk-B6AH43UQ.js +2434 -0
  284. package/dist/chunk-BBZUHH4F.js +154 -0
  285. package/dist/chunk-BBZUHH4F.js.map +1 -0
  286. package/dist/chunk-BGT43KDL.js +42 -0
  287. package/dist/chunk-BHS4KW4W.js +3851 -0
  288. package/dist/chunk-BJUDGPOD.js +1803 -0
  289. package/dist/chunk-BJUDGPOD.js.map +1 -0
  290. package/dist/chunk-BNWO72C2.js +851 -0
  291. package/dist/chunk-BSPIASSQ.js +2551 -0
  292. package/dist/chunk-BVWJEZXG.js +230 -0
  293. package/dist/chunk-BZ47G3VP.js +366 -0
  294. package/dist/chunk-C6KI5P3H.js +72 -0
  295. package/dist/chunk-CLERWAEA.js +2317 -0
  296. package/dist/chunk-CNRFFCAE.js +572 -0
  297. package/dist/chunk-CPC6CYVW.js +236 -0
  298. package/dist/chunk-D23UAPXK.js +107 -0
  299. package/dist/chunk-DAPZEB4R.js +29 -0
  300. package/dist/chunk-DEDEA3WS.js +205 -0
  301. package/dist/chunk-DHVA3T3K.js +271 -0
  302. package/dist/chunk-DJQ6TKIP.js +391 -0
  303. package/dist/chunk-DK2CDAMR.js +33 -0
  304. package/dist/chunk-DPOB6MUS.js +278 -0
  305. package/dist/chunk-DSO7S6PZ.js +137 -0
  306. package/dist/chunk-DV3OECO6.js +333 -0
  307. package/dist/chunk-DW2IQRMB.js +1187 -0
  308. package/dist/chunk-DWLPQTDL.js +134 -0
  309. package/dist/chunk-DXMKECFR.js +3176 -0
  310. package/dist/chunk-DYQRNIID.js +73 -0
  311. package/dist/chunk-DZLWO73N.js +129 -0
  312. package/dist/chunk-DZZSFPMW.js +66 -0
  313. package/dist/chunk-DZZSFPMW.js.map +1 -0
  314. package/dist/chunk-E2GNUL64.js +107 -0
  315. package/dist/chunk-E7XU2KHD.js +192 -0
  316. package/dist/chunk-ENYULVQW.js +114 -0
  317. package/dist/chunk-EWHQ3DFM.js +41 -0
  318. package/dist/chunk-F2T4J7CK.js +4957 -0
  319. package/dist/chunk-F2T4J7CK.js.map +1 -0
  320. package/dist/chunk-F3LIUDXN.js +738 -0
  321. package/dist/chunk-F5C7DTVR.js +103 -0
  322. package/dist/chunk-F5NFGBIN.js +391 -0
  323. package/dist/chunk-F6XJLGOV.js +175 -0
  324. package/dist/chunk-F7T2STMX.js +158 -0
  325. package/dist/chunk-FAEVOM6B.js +371 -0
  326. package/dist/chunk-FCFAXQDM.js +276 -0
  327. package/dist/chunk-FEQVCQMK.js +138 -0
  328. package/dist/chunk-FLD4VOJW.js +4565 -0
  329. package/dist/chunk-FLD4VOJW.js.map +1 -0
  330. package/dist/chunk-FLDF2Z44.js +396 -0
  331. package/dist/chunk-GADABL3P.js +772 -0
  332. package/dist/chunk-GFUDB3SA.js +140 -0
  333. package/dist/chunk-GGPZPBHS.js +215 -0
  334. package/dist/chunk-GIEGIEMT.js +311 -0
  335. package/dist/chunk-GKWFQEO3.js +187 -0
  336. package/dist/chunk-GMMB4NCN.js +250 -0
  337. package/dist/chunk-GN4FOL2G.js +269 -0
  338. package/dist/chunk-GQJAMANY.js +469 -0
  339. package/dist/chunk-H7F4ANJQ.js +379 -0
  340. package/dist/chunk-HEPFJ3XQ.js +3110 -0
  341. package/dist/chunk-HLRAQITA.js +234 -0
  342. package/dist/chunk-HXYSZKCC.js +117 -0
  343. package/dist/chunk-I5Q6FVHP.js +828 -0
  344. package/dist/chunk-I7M5BYJU.js +265 -0
  345. package/dist/chunk-IH3J7VWW.js +85 -0
  346. package/dist/chunk-IMMDXSZ4.js +178 -0
  347. package/dist/chunk-IOMZDY5D.js +199 -0
  348. package/dist/chunk-IQTCUUDF.js +1236 -0
  349. package/dist/chunk-ISR6KXWT.js +898 -0
  350. package/dist/chunk-IWPPGXUZ.js +3321 -0
  351. package/dist/chunk-IYKO6BBK.js +3854 -0
  352. package/dist/chunk-IYKO6BBK.js.map +1 -0
  353. package/dist/chunk-IYUZPNMU.js +79 -0
  354. package/dist/chunk-IYUZPNMU.js.map +1 -0
  355. package/dist/chunk-JNPCRNPA.js +84 -0
  356. package/dist/chunk-JSJGGP32.js +505 -0
  357. package/dist/chunk-JZZUEJYD.js +56 -0
  358. package/dist/chunk-K5XFZKK5.js +270 -0
  359. package/dist/chunk-K6GRTSEA.js +65 -0
  360. package/dist/chunk-KA4PZU3Q.js +103 -0
  361. package/dist/chunk-KGZ35ESO.js +83 -0
  362. package/dist/chunk-KRM4PW5N.js +1021 -0
  363. package/dist/chunk-KSNKF6FE.js +551 -0
  364. package/dist/chunk-KSNKF6FE.js.map +1 -0
  365. package/dist/chunk-LEZGGRDQ.js +1095 -0
  366. package/dist/chunk-LFWMFFKT.js +144 -0
  367. package/dist/chunk-LKSPUZPH.js +849 -0
  368. package/dist/chunk-LLX4S6BI.js +401 -0
  369. package/dist/chunk-M4WEF4DZ.js +850 -0
  370. package/dist/chunk-MATYGLUT.js +121 -0
  371. package/dist/chunk-MDI6SH7B.js +27 -0
  372. package/dist/chunk-MQO7MSA6.js +43 -0
  373. package/dist/chunk-MQO7MSA6.js.map +1 -0
  374. package/dist/chunk-MQTYIBY6.js +263 -0
  375. package/dist/chunk-MRKY2GL5.js +1185 -0
  376. package/dist/chunk-MSIQ42IY.js +794 -0
  377. package/dist/chunk-MVGU7BET.js +357 -0
  378. package/dist/chunk-MWY4TBDY.js +404 -0
  379. package/dist/chunk-NGQCWCD6.js +234 -0
  380. package/dist/chunk-NKXMIOYN.js +538 -0
  381. package/dist/chunk-NMVRFFCR.js +256 -0
  382. package/dist/chunk-NNTDIKJP.js +407 -0
  383. package/dist/chunk-NQXCPP4G.js +98 -0
  384. package/dist/chunk-NYGS6FNV.js +132 -0
  385. package/dist/chunk-O3LOQDTI.js +176 -0
  386. package/dist/chunk-O5HRZ2KG.js +818 -0
  387. package/dist/chunk-O5PZRVQR.js +214 -0
  388. package/dist/chunk-O6KR5SN7.js +399 -0
  389. package/dist/chunk-OBKDRV2H.js +259 -0
  390. package/dist/chunk-OBKKUBGL.js +107 -0
  391. package/dist/chunk-OFYXDB6I.js +52 -0
  392. package/dist/chunk-OLMWJGSJ.js +50 -0
  393. package/dist/chunk-OO7N6APA.js +598 -0
  394. package/dist/chunk-OO7N6APA.js.map +1 -0
  395. package/dist/chunk-ORRACKLB.js +1263 -0
  396. package/dist/chunk-P426WWAB.js +351 -0
  397. package/dist/chunk-P4GOY3ZL.js +177 -0
  398. package/dist/chunk-P4KVJLUC.js +129 -0
  399. package/dist/chunk-P4N7ZS6W.js +56 -0
  400. package/dist/chunk-P6LSLNSL.js +209 -0
  401. package/dist/chunk-P7MQCSML.js +77 -0
  402. package/dist/chunk-P7MQCSML.js.map +1 -0
  403. package/dist/chunk-PAFSIDM2.js +111 -0
  404. package/dist/chunk-PC2JAIAH.js +117 -0
  405. package/dist/chunk-PGSXT5OY.js +207 -0
  406. package/dist/chunk-QDMGUTOU.js +2984 -0
  407. package/dist/chunk-QEMDQKQT.js +1356 -0
  408. package/dist/chunk-QK7VU5N3.js +2412 -0
  409. package/dist/chunk-QL4Q332Z.js +12 -0
  410. package/dist/chunk-QL5227KT.js +1184 -0
  411. package/dist/chunk-QREYGVWO.js +297 -0
  412. package/dist/chunk-QREYGVWO.js.map +1 -0
  413. package/dist/chunk-QUFCZMHG.js +114 -0
  414. package/dist/chunk-QXPKUKOV.js +227 -0
  415. package/dist/chunk-QZE3KD34.js +441 -0
  416. package/dist/chunk-RAIUIXCY.js +166 -0
  417. package/dist/chunk-RDLS6IZY.js +723 -0
  418. package/dist/chunk-RKPETJDJ.js +175 -0
  419. package/dist/chunk-RMDLTRLI.js +372 -0
  420. package/dist/chunk-RR6DQN4X.js +523 -0
  421. package/dist/chunk-RVPH6BB7.js +218 -0
  422. package/dist/chunk-RVXLSVJH.js +931 -0
  423. package/dist/chunk-RVY5EZNU.js +246 -0
  424. package/dist/chunk-RWHBX4MN.js +1024 -0
  425. package/dist/chunk-RWHDMGFG.js +214 -0
  426. package/dist/chunk-RYB3WBMZ.js +113 -0
  427. package/dist/chunk-S7EO77EE.js +449 -0
  428. package/dist/chunk-S7J4HBPP.js +584 -0
  429. package/dist/chunk-SA3XI7FB.js +108 -0
  430. package/dist/chunk-SKRTCSUL.js +196 -0
  431. package/dist/chunk-SUWDILUY.js +5089 -0
  432. package/dist/chunk-SWTPVMR4.js +251 -0
  433. package/dist/chunk-T5BYEE66.js +191 -0
  434. package/dist/chunk-T652Q4R6.js +48 -0
  435. package/dist/chunk-TBUOHK6R.js +608 -0
  436. package/dist/chunk-TCUAGCAX.js +1628 -0
  437. package/dist/chunk-TLWH4E3P.js +126 -0
  438. package/dist/chunk-TNHGSWG3.js +1152 -0
  439. package/dist/chunk-TO6VBJI3.js +383 -0
  440. package/dist/chunk-TOL7MOAN.js +162 -0
  441. package/dist/chunk-U243CBVZ.js +2553 -0
  442. package/dist/chunk-U2CEPRDH.js +46 -0
  443. package/dist/chunk-UAZPXKPH.js +3996 -0
  444. package/dist/chunk-UHRGUMLJ.js +412 -0
  445. package/dist/chunk-UNDSD6UA.js +131 -0
  446. package/dist/chunk-USU2SS4V.js +3690 -0
  447. package/dist/chunk-USWA5GQQ.js +340 -0
  448. package/dist/chunk-UXGTI4HR.js +184 -0
  449. package/dist/chunk-UZKAHEQO.js +172 -0
  450. package/dist/chunk-VALESBNH.js +113 -0
  451. package/dist/chunk-VMSMVWCJ.js +515 -0
  452. package/dist/chunk-VPERSFGV.js +158 -0
  453. package/dist/chunk-VVW2CBWK.js +21 -0
  454. package/dist/chunk-VVW2CBWK.js.map +1 -0
  455. package/dist/chunk-VXPY2GF3.js +124 -0
  456. package/dist/chunk-W7RKXZDV.js +112 -0
  457. package/dist/chunk-WEGZPK4I.js +532 -0
  458. package/dist/chunk-WPKY3BGG.js +380 -0
  459. package/dist/chunk-X3T3N6W5.js +1022 -0
  460. package/dist/chunk-X4OGMBY6.js +110 -0
  461. package/dist/chunk-X7ZHIJEI.js +82 -0
  462. package/dist/chunk-XR7Y2HPZ.js +67 -0
  463. package/dist/chunk-Y2NMKJ7F.js +57 -0
  464. package/dist/chunk-Y2QYPJDN.js +26 -0
  465. package/dist/chunk-Y47EPVCD.js +211 -0
  466. package/dist/chunk-Y5Q4ETIW.js +162 -0
  467. package/dist/chunk-YMQVVFXI.js +105 -0
  468. package/dist/chunk-YQ6FP33X.js +378 -0
  469. package/dist/chunk-YUA42N5A.js +406 -0
  470. package/dist/chunk-YXFNW64N.js +91 -0
  471. package/dist/chunk-Z76RJPZF.js +389 -0
  472. package/dist/chunk-ZD67RM6G.js +60 -0
  473. package/dist/chunk-ZE4RD7U5.js +231 -0
  474. package/dist/chunk-ZGR7LNXC.js +432 -0
  475. package/dist/chunk-ZNA65Q6Y.js +20 -0
  476. package/dist/chunk-ZRNK6FK6.js +188 -0
  477. package/dist/chunk-ZVAIKQMC.js +296 -0
  478. package/dist/chunk-ZZ3KNGTJ.js +246 -0
  479. package/dist/components/automations/pasted-webhook-steps.d.ts +29 -0
  480. package/dist/components/browser-viewer.d.ts +4 -1
  481. package/dist/components/human-input-form.d.ts +3 -4
  482. package/dist/components/use-fit-browser-viewport.d.ts +10 -0
  483. package/dist/composer.js +8 -8
  484. package/dist/computer-viewer-M5N3GWBR.js +21 -0
  485. package/dist/connect.js +17 -15
  486. package/dist/connection-step-up-CNVFVWYO.js +146 -0
  487. package/dist/connection-step-up-CNVFVWYO.js.map +1 -0
  488. package/dist/desktop-dictation.js +8 -8
  489. package/dist/desktop.js +2 -2
  490. package/dist/editor.js +2 -2
  491. package/dist/embedded-new-voice-QZJG5DZ3.js +25 -0
  492. package/dist/embedded-voice-7KOQNGKU.js +25 -0
  493. package/dist/fleet-decision-row-FJPAWNOQ.js +361 -0
  494. package/dist/in-chat-connect-model.js +5 -5
  495. package/dist/index.js +65 -65
  496. package/dist/interaction.js +5 -5
  497. package/dist/latest-question-F3VPDR7U.js +124 -0
  498. package/dist/machines.js +3 -3
  499. package/dist/meetings-recorder.js +1 -1
  500. package/dist/meetings.js +20 -20
  501. package/dist/messages/en.d.ts +1 -1
  502. package/dist/messages.js +1 -1
  503. package/dist/model-policy-picker-menu-UNI5B6N6.js +23 -0
  504. package/dist/model-policy-picker-menu-UNI5B6N6.js.map +1 -0
  505. package/dist/payment-page-card-HZJVN3F4.js +226 -0
  506. package/dist/platform-activity-row-NPEGG2VE.js +156 -0
  507. package/dist/queue-surface-implementation-RTCTPF5T.js +932 -0
  508. package/dist/realtime.js +4 -4
  509. package/dist/recorder-host-YPWPLMS6.js +80 -0
  510. package/dist/recordings.js +3 -3
  511. package/dist/sandbox-files-BJKCREOU.js +28 -0
  512. package/dist/sandbox-files-BJKCREOU.js.map +1 -0
  513. package/dist/session-app.js +242 -241
  514. package/dist/session-connect-cards-DK3UJZRY.js +27 -0
  515. package/dist/session-connect-cards-DK3UJZRY.js.map +1 -0
  516. package/dist/session-list-model.js +2 -2
  517. package/dist/session-realtime-AKDUKFY4.js +30 -0
  518. package/dist/session-realtime-AKDUKFY4.js.map +1 -0
  519. package/dist/session-realtime.js +2 -2
  520. package/dist/session-ui.js +42 -42
  521. package/dist/session.js +11 -11
  522. package/dist/sites.js +2 -2
  523. package/dist/terminal.js +2 -2
  524. package/dist/this-computer.js +3 -3
  525. package/dist/timeline-annotation-markers-7QSYK22C.js +157 -0
  526. package/dist/timeline-annotation-selection-XYNMESWL.js +208 -0
  527. package/dist/timeline-annotations-dialog-WSI6L2CP.js +283 -0
  528. package/dist/timeline-model.js +26 -26
  529. package/dist/ui/access-list.js +5 -5
  530. package/dist/ui/cadence-picker.js +5 -5
  531. package/dist/ui/choice-cards.js +3 -3
  532. package/dist/ui/confirm-dialog.js +2 -2
  533. package/dist/ui/copy-field.js +3 -3
  534. package/dist/ui/detail-page.js +2 -2
  535. package/dist/ui/detail-sheet.js +2 -2
  536. package/dist/ui/disclosure.js +3 -3
  537. package/dist/ui/email-chips-input.js +3 -3
  538. package/dist/ui/field.js +2 -2
  539. package/dist/ui/flush-form-page.js +3 -3
  540. package/dist/ui/form-dialog.js +2 -2
  541. package/dist/ui/list-row.js +4 -4
  542. package/dist/ui/relative-time.js +3 -3
  543. package/dist/ui/revision-history.js +5 -5
  544. package/dist/ui/role-select.js +5 -5
  545. package/dist/ui/select-menu.js +3 -3
  546. package/dist/ui/usage-meter.js +4 -4
  547. package/dist/usage.js +2 -2
  548. package/dist/workbench.js +4 -4
  549. package/package.json +6 -5
  550. package/src/app/components/agents/agent-skills.tsx +21 -18
  551. package/src/app/components/agents/agent-trigger-dialog.tsx +80 -119
  552. package/src/app/components/agents/agent-trigger-model.ts +47 -0
  553. package/src/app/components/agents/agent-trigger-repositories.tsx +88 -0
  554. package/src/app/components/agents/agents-page.tsx +118 -38
  555. package/src/app/components/artifacts/app-server-status.test.tsx +33 -0
  556. package/src/app/components/artifacts/app-server-status.tsx +93 -0
  557. package/src/app/components/artifacts/ready-made-apps.tsx +84 -0
  558. package/src/app/lib/codex-model-switch.ts +1 -0
  559. package/src/app/lib/needs-you.test.ts +8 -0
  560. package/src/app/lib/needs-you.tsx +3 -1
  561. package/src/app/lib/ready-made-apps.tsx +42 -0
  562. package/src/app/lib/session-capabilities.tsx +1 -0
  563. package/src/app/routes/artifacts.tsx +11 -0
  564. package/src/app/routes/site-view.tsx +9 -0
  565. package/src/automations.ts +8 -2
  566. package/src/components/automations/pasted-webhook-steps.tsx +89 -0
  567. package/src/components/browser-viewer.tsx +49 -7
  568. package/src/components/human-input-form.tsx +16 -5
  569. package/src/components/secret-question-field.tsx +42 -32
  570. package/src/components/use-fit-browser-viewport.ts +84 -0
  571. package/src/messages/en.ts +1 -1
  572. package/src/timeline/projection.ts +5 -2
  573. package/src/timeline/tool-steps.ts +2 -0
  574. package/dist/browser-viewer-EIEMRVFF.js +0 -23
  575. package/dist/chat-interactive-block-FV37LWYZ.js +0 -22
  576. package/dist/chunk-2COBAJC7.js +0 -818
  577. package/dist/chunk-2HS3IUXE.js +0 -170
  578. package/dist/chunk-2JTMFYCT.js +0 -296
  579. package/dist/chunk-2JXKP4M6.js +0 -114
  580. package/dist/chunk-2P5K7CBH.js +0 -269
  581. package/dist/chunk-2XGRHMRI.js +0 -250
  582. package/dist/chunk-332BYSAZ.js +0 -65
  583. package/dist/chunk-3EM5GTP3.js +0 -158
  584. package/dist/chunk-3L5ATO4A.js +0 -52
  585. package/dist/chunk-3S3PJB7J.js +0 -107
  586. package/dist/chunk-3SBKYPNM.js +0 -270
  587. package/dist/chunk-3Z7VA6ET.js +0 -114
  588. package/dist/chunk-43BRJBEV.js +0 -207
  589. package/dist/chunk-46LZO4ZO.js +0 -188
  590. package/dist/chunk-4AH4EEHE.js +0 -298
  591. package/dist/chunk-4D3YJNVN.js +0 -270
  592. package/dist/chunk-4E5QVAT4.js +0 -4480
  593. package/dist/chunk-4I4RTI4D.js +0 -37
  594. package/dist/chunk-4KASGJTF.js +0 -287
  595. package/dist/chunk-4RUKLIOF.js +0 -1263
  596. package/dist/chunk-4UU7FN3I.js +0 -650
  597. package/dist/chunk-4ZRNASBF.js +0 -2551
  598. package/dist/chunk-5EJBPQI2.js +0 -41
  599. package/dist/chunk-5G4IGG7F.js +0 -209
  600. package/dist/chunk-5JAYZOAW.js +0 -131
  601. package/dist/chunk-5JOKVDSR.js +0 -789
  602. package/dist/chunk-5JOKVDSR.js.map +0 -1
  603. package/dist/chunk-5MP3G7ZV.js +0 -1236
  604. package/dist/chunk-5OVRMKP5.js +0 -42
  605. package/dist/chunk-5SGTRULO.js +0 -1184
  606. package/dist/chunk-5SOL4INY.js +0 -572
  607. package/dist/chunk-5Y34P32B.js +0 -27
  608. package/dist/chunk-62HIKJ5F.js +0 -72
  609. package/dist/chunk-63VNZRLY.js +0 -386
  610. package/dist/chunk-63WDQV5X.js +0 -148
  611. package/dist/chunk-6DOIINY4.js +0 -201
  612. package/dist/chunk-6DQBUKGJ.js +0 -112
  613. package/dist/chunk-6SETNFNH.js +0 -1399
  614. package/dist/chunk-6SETNFNH.js.map +0 -1
  615. package/dist/chunk-6XYFMHNT.js +0 -56
  616. package/dist/chunk-6YU3WV2P.js +0 -33
  617. package/dist/chunk-6YUHDFOZ.js +0 -351
  618. package/dist/chunk-72EOXOR7.js +0 -1185
  619. package/dist/chunk-72ND4ALI.js +0 -532
  620. package/dist/chunk-757LE32E.js +0 -283
  621. package/dist/chunk-7S2S4MXR.js +0 -138
  622. package/dist/chunk-7SYCHMXS.js +0 -200
  623. package/dist/chunk-7TVAPQOV.js +0 -5089
  624. package/dist/chunk-7UDLRDHK.js +0 -214
  625. package/dist/chunk-7YLQCMZP.js +0 -357
  626. package/dist/chunk-A5GX3CAE.js +0 -849
  627. package/dist/chunk-A7EBV2EB.js +0 -318
  628. package/dist/chunk-AB5SPXUR.js +0 -114
  629. package/dist/chunk-AHVQGL5A.js +0 -202
  630. package/dist/chunk-AI77ZKEV.js +0 -26
  631. package/dist/chunk-AIX2D6RB.js +0 -1019
  632. package/dist/chunk-AVSIHP7Q.js +0 -192
  633. package/dist/chunk-AWK23Q32.js +0 -107
  634. package/dist/chunk-AYM3UFP2.js +0 -43
  635. package/dist/chunk-AYM3UFP2.js.map +0 -1
  636. package/dist/chunk-AYVWA6KD.js +0 -432
  637. package/dist/chunk-AYVWA6KD.js.map +0 -1
  638. package/dist/chunk-AYZXE4IM.js +0 -2553
  639. package/dist/chunk-AZGGSPTE.js +0 -124
  640. package/dist/chunk-B45TB4HY.js +0 -931
  641. package/dist/chunk-BC7PTVXW.js +0 -140
  642. package/dist/chunk-BIUJHNVR.js +0 -46
  643. package/dist/chunk-BJUOKUE5.js +0 -234
  644. package/dist/chunk-BMT5IXQW.js +0 -154
  645. package/dist/chunk-BMT5IXQW.js.map +0 -1
  646. package/dist/chunk-BPEEVMKH.js +0 -292
  647. package/dist/chunk-BXMND6YU.js +0 -307
  648. package/dist/chunk-C6OM2SRG.js +0 -117
  649. package/dist/chunk-CIRCUDKF.js +0 -1309
  650. package/dist/chunk-CLKR4UG3.js +0 -403
  651. package/dist/chunk-CPX6BHER.js +0 -554
  652. package/dist/chunk-CVC4RO7D.js +0 -155
  653. package/dist/chunk-D3YJAQGK.js +0 -103
  654. package/dist/chunk-DFQ72BLS.js +0 -1024
  655. package/dist/chunk-DG65PJOZ.js +0 -4564
  656. package/dist/chunk-DG65PJOZ.js.map +0 -1
  657. package/dist/chunk-DNAXAS5R.js +0 -406
  658. package/dist/chunk-DO247ITS.js +0 -175
  659. package/dist/chunk-DONBARLL.js +0 -154
  660. package/dist/chunk-DTLXQ3ZU.js +0 -373
  661. package/dist/chunk-EAXTACI4.js +0 -274
  662. package/dist/chunk-EDPH7AJH.js +0 -412
  663. package/dist/chunk-EER3B3G5.js +0 -10036
  664. package/dist/chunk-EER3B3G5.js.map +0 -1
  665. package/dist/chunk-EFKQHCGJ.js +0 -276
  666. package/dist/chunk-EILSPMVD.js +0 -133
  667. package/dist/chunk-EMWT6GOK.js +0 -437
  668. package/dist/chunk-EO22NST7.js +0 -259
  669. package/dist/chunk-ER5MYLIE.js +0 -256
  670. package/dist/chunk-ES5HKVQF.js +0 -234
  671. package/dist/chunk-EXRQ5ATC.js +0 -738
  672. package/dist/chunk-F26YBYAZ.js +0 -111
  673. package/dist/chunk-F6QP4GSK.js +0 -515
  674. package/dist/chunk-F7QEO7M2.js +0 -851
  675. package/dist/chunk-FJFGDLXB.js +0 -12
  676. package/dist/chunk-FLLJ2WXW.js +0 -113
  677. package/dist/chunk-FMBJKMT4.js +0 -107
  678. package/dist/chunk-FPN4I4CG.js +0 -3690
  679. package/dist/chunk-FUXFJTXL.js +0 -3070
  680. package/dist/chunk-FZI4QOAV.js +0 -3996
  681. package/dist/chunk-G6SSSX5R.js +0 -158
  682. package/dist/chunk-GBGCMHBB.js +0 -608
  683. package/dist/chunk-GJ4GTYOD.js +0 -372
  684. package/dist/chunk-GLSDWNFV.js +0 -432
  685. package/dist/chunk-GMGAW3T6.js +0 -278
  686. package/dist/chunk-GNGI6XFN.js +0 -43
  687. package/dist/chunk-GSW4YHZE.js +0 -229
  688. package/dist/chunk-GUC6IWEY.js +0 -407
  689. package/dist/chunk-GWAY3SO5.js +0 -15
  690. package/dist/chunk-GXOTNT5D.js +0 -168
  691. package/dist/chunk-GZZCVF76.js +0 -3851
  692. package/dist/chunk-H4VMHFOX.js +0 -214
  693. package/dist/chunk-HA5RFQAF.js +0 -110
  694. package/dist/chunk-HJLHGXWL.js +0 -103
  695. package/dist/chunk-HKNMNL7B.js +0 -2984
  696. package/dist/chunk-HT7MBHLY.js +0 -1021
  697. package/dist/chunk-I5FSUZVW.js +0 -584
  698. package/dist/chunk-II376XH3.js +0 -117
  699. package/dist/chunk-IINQO425.js +0 -246
  700. package/dist/chunk-IIXNEOK4.js +0 -1022
  701. package/dist/chunk-IM3WA5AL.js +0 -311
  702. package/dist/chunk-IX4P4OGR.js +0 -399
  703. package/dist/chunk-IX5VHZYS.js +0 -129
  704. package/dist/chunk-J7QHW2KS.js +0 -549
  705. package/dist/chunk-J7QHW2KS.js.map +0 -1
  706. package/dist/chunk-JB3TSUZO.js +0 -263
  707. package/dist/chunk-JD6LHU26.js +0 -3852
  708. package/dist/chunk-JD6LHU26.js.map +0 -1
  709. package/dist/chunk-JIC6RLUB.js +0 -27
  710. package/dist/chunk-JNJIZCTN.js +0 -172
  711. package/dist/chunk-JNV5ZPUV.js +0 -828
  712. package/dist/chunk-JPQFVR24.js +0 -50
  713. package/dist/chunk-JPZVMXDP.js +0 -1333
  714. package/dist/chunk-JVPF34MX.js +0 -215
  715. package/dist/chunk-KED67KAF.js +0 -85
  716. package/dist/chunk-KJ72GMZ2.js +0 -378
  717. package/dist/chunk-KVPQUADA.js +0 -5915
  718. package/dist/chunk-KVPQUADA.js.map +0 -1
  719. package/dist/chunk-KXBLLFOO.js +0 -249
  720. package/dist/chunk-LIOZ2MXJ.js +0 -380
  721. package/dist/chunk-LPEFULJY.js +0 -73
  722. package/dist/chunk-LRMGPO7E.js +0 -98
  723. package/dist/chunk-LVKTKORH.js +0 -121
  724. package/dist/chunk-MFVUNNFN.js +0 -205
  725. package/dist/chunk-MIUJ3EH5.js +0 -60
  726. package/dist/chunk-MIUMNTIJ.js +0 -175
  727. package/dist/chunk-ML46TXRM.js +0 -113
  728. package/dist/chunk-MQRHTOQ2.js +0 -218
  729. package/dist/chunk-NIPON7YB.js +0 -850
  730. package/dist/chunk-NPBEUU22.js +0 -196
  731. package/dist/chunk-NSXKGS2K.js +0 -178
  732. package/dist/chunk-NUEFORM6.js +0 -2317
  733. package/dist/chunk-NZOFNQNC.js +0 -176
  734. package/dist/chunk-OATXCLTY.js +0 -211
  735. package/dist/chunk-OG3ELROW.js +0 -538
  736. package/dist/chunk-OI4WS7FW.js +0 -162
  737. package/dist/chunk-OITGZUDC.js +0 -82
  738. package/dist/chunk-OKD2LBMK.js +0 -333
  739. package/dist/chunk-OSA4CGST.js +0 -134
  740. package/dist/chunk-OXYAKUFU.js +0 -401
  741. package/dist/chunk-OYMSMU5O.js +0 -396
  742. package/dist/chunk-P4NZ72KY.js +0 -162
  743. package/dist/chunk-PBYL2VIM.js +0 -379
  744. package/dist/chunk-PDW3OOSZ.js +0 -505
  745. package/dist/chunk-PGRKTQIW.js +0 -523
  746. package/dist/chunk-Q273Q33U.js +0 -166
  747. package/dist/chunk-Q4CLS2HL.js +0 -340
  748. package/dist/chunk-QFOBUA2J.js +0 -428
  749. package/dist/chunk-QLIM4D56.js +0 -1095
  750. package/dist/chunk-QMQF5U2D.js +0 -20
  751. package/dist/chunk-QPOUPVPD.js +0 -144
  752. package/dist/chunk-QTJAQ6DS.js +0 -48
  753. package/dist/chunk-QUOFP3G7.js +0 -404
  754. package/dist/chunk-QVOTPOXK.js +0 -29
  755. package/dist/chunk-QYZ5RVGM.js +0 -184
  756. package/dist/chunk-R7CVDKRN.js +0 -2580
  757. package/dist/chunk-RB7MXNZD.js +0 -639
  758. package/dist/chunk-RDZQFZOQ.js +0 -187
  759. package/dist/chunk-RIHKEGWS.js +0 -194
  760. package/dist/chunk-RIHKEGWS.js.map +0 -1
  761. package/dist/chunk-ROSB7GF6.js +0 -57
  762. package/dist/chunk-RP3YMYCX.js +0 -723
  763. package/dist/chunk-RPHXJHNX.js +0 -271
  764. package/dist/chunk-RVC3M66H.js +0 -191
  765. package/dist/chunk-S3OTJAAC.js +0 -283
  766. package/dist/chunk-SBWPMVRN.js +0 -56
  767. package/dist/chunk-SERECSAR.js +0 -138
  768. package/dist/chunk-SHSEF3GJ.js +0 -187
  769. package/dist/chunk-SMS2M3RG.js +0 -772
  770. package/dist/chunk-SRDHDIRQ.js +0 -177
  771. package/dist/chunk-SXRYA7NN.js +0 -389
  772. package/dist/chunk-SYA3WYG4.js +0 -1187
  773. package/dist/chunk-T2QDSTBH.js +0 -371
  774. package/dist/chunk-TFSCGFYV.js +0 -251
  775. package/dist/chunk-TGCKZOSX.js +0 -246
  776. package/dist/chunk-THILLYQM.js +0 -132
  777. package/dist/chunk-TI6LGUEZ.js +0 -2412
  778. package/dist/chunk-TSY6YZL2.js +0 -366
  779. package/dist/chunk-TW2RHTLH.js +0 -3321
  780. package/dist/chunk-TWA5G277.js +0 -141
  781. package/dist/chunk-TZZ2S4XI.js +0 -247
  782. package/dist/chunk-UECD27LX.js +0 -251
  783. package/dist/chunk-UFJDETKG.js +0 -108
  784. package/dist/chunk-UHBIXNRW.js +0 -100
  785. package/dist/chunk-UHCFYX4I.js +0 -570
  786. package/dist/chunk-UHTURYJO.js +0 -898
  787. package/dist/chunk-UJH63JT3.js +0 -67
  788. package/dist/chunk-UMLPIMGW.js +0 -105
  789. package/dist/chunk-UOLDS6S5.js +0 -1152
  790. package/dist/chunk-UUE3OGXI.js +0 -84
  791. package/dist/chunk-UUNJ2E57.js +0 -391
  792. package/dist/chunk-UYQVWRAH.js +0 -199
  793. package/dist/chunk-UYWWUEL4.js +0 -126
  794. package/dist/chunk-V4CQKX5H.js +0 -48
  795. package/dist/chunk-V4QM7GDQ.js +0 -3176
  796. package/dist/chunk-V5Y74WII.js +0 -91
  797. package/dist/chunk-VGGZLUQK.js +0 -129
  798. package/dist/chunk-VGX636MB.js +0 -311
  799. package/dist/chunk-VGZLFQO2.js +0 -773
  800. package/dist/chunk-VJWZATNF.js +0 -137
  801. package/dist/chunk-VMWCIC2N.js +0 -50
  802. package/dist/chunk-VPWKTIU5.js +0 -227
  803. package/dist/chunk-VXOLG6YB.js +0 -469
  804. package/dist/chunk-W2NAU5VB.js +0 -1628
  805. package/dist/chunk-WGORKMR3.js +0 -353
  806. package/dist/chunk-WMIDELSJ.js +0 -391
  807. package/dist/chunk-WSOSGL2G.js +0 -383
  808. package/dist/chunk-WXUUOM4X.js +0 -400
  809. package/dist/chunk-WZ74QHLE.js +0 -4863
  810. package/dist/chunk-WZ74QHLE.js.map +0 -1
  811. package/dist/chunk-X2OWM2ME.js +0 -1870
  812. package/dist/chunk-X2OWM2ME.js.map +0 -1
  813. package/dist/chunk-XDXKB25W.js +0 -93
  814. package/dist/chunk-XE4PHI74.js +0 -231
  815. package/dist/chunk-XLJ4SQFS.js +0 -230
  816. package/dist/chunk-XOD4FX6M.js +0 -2434
  817. package/dist/chunk-XODQ2GPF.js +0 -3110
  818. package/dist/chunk-XT54RTAM.js +0 -441
  819. package/dist/chunk-YDQHFJM2.js +0 -83
  820. package/dist/chunk-YH6O6OQ6.js +0 -1356
  821. package/dist/chunk-YIKPC2QP.js +0 -794
  822. package/dist/chunk-ZD7PKYC4.js +0 -335
  823. package/dist/chunk-ZEQYHEWP.js +0 -406
  824. package/dist/chunk-ZRVUCTSI.js +0 -265
  825. package/dist/chunk-ZSI3ITRK.js +0 -449
  826. package/dist/chunk-ZZMEQCIZ.js +0 -236
  827. package/dist/computer-viewer-ZBY3BPYW.js +0 -21
  828. package/dist/connection-step-up-JQ4OFSQN.js +0 -145
  829. package/dist/connection-step-up-JQ4OFSQN.js.map +0 -1
  830. package/dist/embedded-new-voice-ZB5XLKLU.js +0 -25
  831. package/dist/embedded-voice-MZJISDCS.js +0 -25
  832. package/dist/fleet-decision-row-LG3SYVR3.js +0 -361
  833. package/dist/latest-question-QWJTXMFA.js +0 -124
  834. package/dist/model-policy-picker-menu-5Y72PLNF.js +0 -23
  835. package/dist/payment-page-card-YPSXRHBA.js +0 -226
  836. package/dist/platform-activity-row-ZU4MEBNK.js +0 -156
  837. package/dist/queue-surface-implementation-6Q25RPH6.js +0 -932
  838. package/dist/recorder-host-JD4GWJ2Z.js +0 -80
  839. package/dist/sandbox-files-HCLEEJMU.js +0 -28
  840. package/dist/session-connect-cards-DRKEN3Z4.js +0 -27
  841. package/dist/session-realtime-IZOTTRH6.js +0 -30
  842. package/dist/timeline-annotation-markers-WWXNJOXI.js +0 -157
  843. package/dist/timeline-annotation-selection-ZKRIQFIQ.js +0 -208
  844. package/dist/timeline-annotations-dialog-4IMKTOXJ.js +0 -283
  845. /package/dist/{browser-viewer-EIEMRVFF.js.map → app/components/agents/agent-trigger-repositories.js.map} +0 -0
  846. /package/dist/{chat-interactive-block-FV37LWYZ.js.map → app/components/artifacts/app-server-status.js.map} +0 -0
  847. /package/dist/{computer-viewer-ZBY3BPYW.js.map → app/components/artifacts/ready-made-apps.js.map} +0 -0
  848. /package/dist/{embedded-new-voice-ZB5XLKLU.js.map → app/lib/ready-made-apps.js.map} +0 -0
  849. /package/dist/{embedded-voice-MZJISDCS.js.map → browser-viewer-EPGAK2W6.js.map} +0 -0
  850. /package/dist/{model-policy-picker-menu-5Y72PLNF.js.map → chat-interactive-block-65YU6TMO.js.map} +0 -0
  851. /package/dist/{chunk-CLKR4UG3.js.map → chunk-25ODMMHH.js.map} +0 -0
  852. /package/dist/{chunk-WXUUOM4X.js.map → chunk-266ZPUMH.js.map} +0 -0
  853. /package/dist/{chunk-GXOTNT5D.js.map → chunk-2A7SB7UR.js.map} +0 -0
  854. /package/dist/{chunk-UHBIXNRW.js.map → chunk-2EU4Y7A7.js.map} +0 -0
  855. /package/dist/{chunk-UHCFYX4I.js.map → chunk-2LBYEHBH.js.map} +0 -0
  856. /package/dist/{chunk-TWA5G277.js.map → chunk-2MHIIF4N.js.map} +0 -0
  857. /package/dist/{chunk-757LE32E.js.map → chunk-2SHWGDAA.js.map} +0 -0
  858. /package/dist/{chunk-VGZLFQO2.js.map → chunk-2VX42S4W.js.map} +0 -0
  859. /package/dist/{chunk-VGX636MB.js.map → chunk-2WGJQ4XK.js.map} +0 -0
  860. /package/dist/{chunk-GWAY3SO5.js.map → chunk-2XSF44TY.js.map} +0 -0
  861. /package/dist/{chunk-RB7MXNZD.js.map → chunk-33HUZMNE.js.map} +0 -0
  862. /package/dist/{chunk-63WDQV5X.js.map → chunk-36IKHM4Q.js.map} +0 -0
  863. /package/dist/{chunk-4E5QVAT4.js.map → chunk-3JVQZAXQ.js.map} +0 -0
  864. /package/dist/{chunk-4KASGJTF.js.map → chunk-3SDESU6U.js.map} +0 -0
  865. /package/dist/{chunk-BPEEVMKH.js.map → chunk-3VXZFBP6.js.map} +0 -0
  866. /package/dist/{chunk-BXMND6YU.js.map → chunk-3YKED2ZV.js.map} +0 -0
  867. /package/dist/{chunk-AIX2D6RB.js.map → chunk-3ZNOKD3S.js.map} +0 -0
  868. /package/dist/{chunk-R7CVDKRN.js.map → chunk-45SB4UK3.js.map} +0 -0
  869. /package/dist/{chunk-EILSPMVD.js.map → chunk-47BETTVA.js.map} +0 -0
  870. /package/dist/{chunk-EAXTACI4.js.map → chunk-4BTQ473O.js.map} +0 -0
  871. /package/dist/{chunk-KXBLLFOO.js.map → chunk-4JQRWJVR.js.map} +0 -0
  872. /package/dist/{chunk-AHVQGL5A.js.map → chunk-4R6WFQKZ.js.map} +0 -0
  873. /package/dist/{chunk-S3OTJAAC.js.map → chunk-4WEPVL7X.js.map} +0 -0
  874. /package/dist/{chunk-6DOIINY4.js.map → chunk-4YWHOAB4.js.map} +0 -0
  875. /package/dist/{chunk-CVC4RO7D.js.map → chunk-52XGYRVS.js.map} +0 -0
  876. /package/dist/{chunk-GNGI6XFN.js.map → chunk-5G6UHUJZ.js.map} +0 -0
  877. /package/dist/{chunk-GSW4YHZE.js.map → chunk-5HFITPHH.js.map} +0 -0
  878. /package/dist/{chunk-4UU7FN3I.js.map → chunk-5LVVN2K7.js.map} +0 -0
  879. /package/dist/{chunk-V4CQKX5H.js.map → chunk-5PVXFVIT.js.map} +0 -0
  880. /package/dist/{chunk-RDZQFZOQ.js.map → chunk-5WFGW7B7.js.map} +0 -0
  881. /package/dist/{chunk-FUXFJTXL.js.map → chunk-66M7RVM6.js.map} +0 -0
  882. /package/dist/{chunk-EMWT6GOK.js.map → chunk-6AGNZI2W.js.map} +0 -0
  883. /package/dist/{chunk-DTLXQ3ZU.js.map → chunk-6ENO634Y.js.map} +0 -0
  884. /package/dist/{chunk-7SYCHMXS.js.map → chunk-6LQ5KEMP.js.map} +0 -0
  885. /package/dist/{chunk-QFOBUA2J.js.map → chunk-6QGIWLH5.js.map} +0 -0
  886. /package/dist/{chunk-2HS3IUXE.js.map → chunk-6WEDWD4N.js.map} +0 -0
  887. /package/dist/{chunk-AB5SPXUR.js.map → chunk-6YCYPXDA.js.map} +0 -0
  888. /package/dist/{chunk-A7EBV2EB.js.map → chunk-6YTNMDFP.js.map} +0 -0
  889. /package/dist/{chunk-JPQFVR24.js.map → chunk-73O7NO3F.js.map} +0 -0
  890. /package/dist/{chunk-UECD27LX.js.map → chunk-76VXLTQF.js.map} +0 -0
  891. /package/dist/{chunk-XDXKB25W.js.map → chunk-7EJ7PSZT.js.map} +0 -0
  892. /package/dist/{chunk-JIC6RLUB.js.map → chunk-7GS2MGFU.js.map} +0 -0
  893. /package/dist/{chunk-DNAXAS5R.js.map → chunk-7MF6MFHS.js.map} +0 -0
  894. /package/dist/{chunk-63VNZRLY.js.map → chunk-7N35XBSC.js.map} +0 -0
  895. /package/dist/{chunk-3SBKYPNM.js.map → chunk-7ND2VMKV.js.map} +0 -0
  896. /package/dist/{chunk-DONBARLL.js.map → chunk-7RVJLO3N.js.map} +0 -0
  897. /package/dist/{chunk-WGORKMR3.js.map → chunk-7VAILBP6.js.map} +0 -0
  898. /package/dist/{chunk-4I4RTI4D.js.map → chunk-7VSJQWFO.js.map} +0 -0
  899. /package/dist/{chunk-ZD7PKYC4.js.map → chunk-7YKUIKGH.js.map} +0 -0
  900. /package/dist/{chunk-SERECSAR.js.map → chunk-A7DS77WC.js.map} +0 -0
  901. /package/dist/{chunk-4AH4EEHE.js.map → chunk-AEH34OOU.js.map} +0 -0
  902. /package/dist/{chunk-CPX6BHER.js.map → chunk-ANWMRO2G.js.map} +0 -0
  903. /package/dist/{chunk-TZZ2S4XI.js.map → chunk-APGUIORF.js.map} +0 -0
  904. /package/dist/{chunk-CIRCUDKF.js.map → chunk-ASCVQJB4.js.map} +0 -0
  905. /package/dist/{chunk-JPZVMXDP.js.map → chunk-AY4XH73V.js.map} +0 -0
  906. /package/dist/{chunk-XOD4FX6M.js.map → chunk-B6AH43UQ.js.map} +0 -0
  907. /package/dist/{chunk-5OVRMKP5.js.map → chunk-BGT43KDL.js.map} +0 -0
  908. /package/dist/{chunk-GZZCVF76.js.map → chunk-BHS4KW4W.js.map} +0 -0
  909. /package/dist/{chunk-F7QEO7M2.js.map → chunk-BNWO72C2.js.map} +0 -0
  910. /package/dist/{chunk-4ZRNASBF.js.map → chunk-BSPIASSQ.js.map} +0 -0
  911. /package/dist/{chunk-XLJ4SQFS.js.map → chunk-BVWJEZXG.js.map} +0 -0
  912. /package/dist/{chunk-TSY6YZL2.js.map → chunk-BZ47G3VP.js.map} +0 -0
  913. /package/dist/{chunk-62HIKJ5F.js.map → chunk-C6KI5P3H.js.map} +0 -0
  914. /package/dist/{chunk-NUEFORM6.js.map → chunk-CLERWAEA.js.map} +0 -0
  915. /package/dist/{chunk-5SOL4INY.js.map → chunk-CNRFFCAE.js.map} +0 -0
  916. /package/dist/{chunk-ZZMEQCIZ.js.map → chunk-CPC6CYVW.js.map} +0 -0
  917. /package/dist/{chunk-FMBJKMT4.js.map → chunk-D23UAPXK.js.map} +0 -0
  918. /package/dist/{chunk-QVOTPOXK.js.map → chunk-DAPZEB4R.js.map} +0 -0
  919. /package/dist/{chunk-MFVUNNFN.js.map → chunk-DEDEA3WS.js.map} +0 -0
  920. /package/dist/{chunk-RPHXJHNX.js.map → chunk-DHVA3T3K.js.map} +0 -0
  921. /package/dist/{chunk-UUNJ2E57.js.map → chunk-DJQ6TKIP.js.map} +0 -0
  922. /package/dist/{chunk-6YU3WV2P.js.map → chunk-DK2CDAMR.js.map} +0 -0
  923. /package/dist/{chunk-GMGAW3T6.js.map → chunk-DPOB6MUS.js.map} +0 -0
  924. /package/dist/{chunk-VJWZATNF.js.map → chunk-DSO7S6PZ.js.map} +0 -0
  925. /package/dist/{chunk-OKD2LBMK.js.map → chunk-DV3OECO6.js.map} +0 -0
  926. /package/dist/{chunk-SYA3WYG4.js.map → chunk-DW2IQRMB.js.map} +0 -0
  927. /package/dist/{chunk-OSA4CGST.js.map → chunk-DWLPQTDL.js.map} +0 -0
  928. /package/dist/{chunk-V4QM7GDQ.js.map → chunk-DXMKECFR.js.map} +0 -0
  929. /package/dist/{chunk-LPEFULJY.js.map → chunk-DYQRNIID.js.map} +0 -0
  930. /package/dist/{chunk-VGGZLUQK.js.map → chunk-DZLWO73N.js.map} +0 -0
  931. /package/dist/{chunk-AWK23Q32.js.map → chunk-E2GNUL64.js.map} +0 -0
  932. /package/dist/{chunk-AVSIHP7Q.js.map → chunk-E7XU2KHD.js.map} +0 -0
  933. /package/dist/{chunk-2JXKP4M6.js.map → chunk-ENYULVQW.js.map} +0 -0
  934. /package/dist/{chunk-5EJBPQI2.js.map → chunk-EWHQ3DFM.js.map} +0 -0
  935. /package/dist/{chunk-EXRQ5ATC.js.map → chunk-F3LIUDXN.js.map} +0 -0
  936. /package/dist/{chunk-D3YJAQGK.js.map → chunk-F5C7DTVR.js.map} +0 -0
  937. /package/dist/{chunk-WMIDELSJ.js.map → chunk-F5NFGBIN.js.map} +0 -0
  938. /package/dist/{chunk-DO247ITS.js.map → chunk-F6XJLGOV.js.map} +0 -0
  939. /package/dist/{chunk-G6SSSX5R.js.map → chunk-F7T2STMX.js.map} +0 -0
  940. /package/dist/{chunk-T2QDSTBH.js.map → chunk-FAEVOM6B.js.map} +0 -0
  941. /package/dist/{chunk-EFKQHCGJ.js.map → chunk-FCFAXQDM.js.map} +0 -0
  942. /package/dist/{chunk-7S2S4MXR.js.map → chunk-FEQVCQMK.js.map} +0 -0
  943. /package/dist/{chunk-OYMSMU5O.js.map → chunk-FLDF2Z44.js.map} +0 -0
  944. /package/dist/{chunk-SMS2M3RG.js.map → chunk-GADABL3P.js.map} +0 -0
  945. /package/dist/{chunk-BC7PTVXW.js.map → chunk-GFUDB3SA.js.map} +0 -0
  946. /package/dist/{chunk-JVPF34MX.js.map → chunk-GGPZPBHS.js.map} +0 -0
  947. /package/dist/{chunk-IM3WA5AL.js.map → chunk-GIEGIEMT.js.map} +0 -0
  948. /package/dist/{chunk-SHSEF3GJ.js.map → chunk-GKWFQEO3.js.map} +0 -0
  949. /package/dist/{chunk-2XGRHMRI.js.map → chunk-GMMB4NCN.js.map} +0 -0
  950. /package/dist/{chunk-2P5K7CBH.js.map → chunk-GN4FOL2G.js.map} +0 -0
  951. /package/dist/{chunk-VXOLG6YB.js.map → chunk-GQJAMANY.js.map} +0 -0
  952. /package/dist/{chunk-PBYL2VIM.js.map → chunk-H7F4ANJQ.js.map} +0 -0
  953. /package/dist/{chunk-XODQ2GPF.js.map → chunk-HEPFJ3XQ.js.map} +0 -0
  954. /package/dist/{chunk-ES5HKVQF.js.map → chunk-HLRAQITA.js.map} +0 -0
  955. /package/dist/{chunk-II376XH3.js.map → chunk-HXYSZKCC.js.map} +0 -0
  956. /package/dist/{chunk-JNV5ZPUV.js.map → chunk-I5Q6FVHP.js.map} +0 -0
  957. /package/dist/{chunk-ZRVUCTSI.js.map → chunk-I7M5BYJU.js.map} +0 -0
  958. /package/dist/{chunk-KED67KAF.js.map → chunk-IH3J7VWW.js.map} +0 -0
  959. /package/dist/{chunk-NSXKGS2K.js.map → chunk-IMMDXSZ4.js.map} +0 -0
  960. /package/dist/{chunk-UYQVWRAH.js.map → chunk-IOMZDY5D.js.map} +0 -0
  961. /package/dist/{chunk-5MP3G7ZV.js.map → chunk-IQTCUUDF.js.map} +0 -0
  962. /package/dist/{chunk-UHTURYJO.js.map → chunk-ISR6KXWT.js.map} +0 -0
  963. /package/dist/{chunk-TW2RHTLH.js.map → chunk-IWPPGXUZ.js.map} +0 -0
  964. /package/dist/{chunk-UUE3OGXI.js.map → chunk-JNPCRNPA.js.map} +0 -0
  965. /package/dist/{chunk-PDW3OOSZ.js.map → chunk-JSJGGP32.js.map} +0 -0
  966. /package/dist/{chunk-SBWPMVRN.js.map → chunk-JZZUEJYD.js.map} +0 -0
  967. /package/dist/{chunk-4D3YJNVN.js.map → chunk-K5XFZKK5.js.map} +0 -0
  968. /package/dist/{chunk-332BYSAZ.js.map → chunk-K6GRTSEA.js.map} +0 -0
  969. /package/dist/{chunk-HJLHGXWL.js.map → chunk-KA4PZU3Q.js.map} +0 -0
  970. /package/dist/{chunk-YDQHFJM2.js.map → chunk-KGZ35ESO.js.map} +0 -0
  971. /package/dist/{chunk-HT7MBHLY.js.map → chunk-KRM4PW5N.js.map} +0 -0
  972. /package/dist/{chunk-QLIM4D56.js.map → chunk-LEZGGRDQ.js.map} +0 -0
  973. /package/dist/{chunk-QPOUPVPD.js.map → chunk-LFWMFFKT.js.map} +0 -0
  974. /package/dist/{chunk-A5GX3CAE.js.map → chunk-LKSPUZPH.js.map} +0 -0
  975. /package/dist/{chunk-OXYAKUFU.js.map → chunk-LLX4S6BI.js.map} +0 -0
  976. /package/dist/{chunk-NIPON7YB.js.map → chunk-M4WEF4DZ.js.map} +0 -0
  977. /package/dist/{chunk-LVKTKORH.js.map → chunk-MATYGLUT.js.map} +0 -0
  978. /package/dist/{chunk-5Y34P32B.js.map → chunk-MDI6SH7B.js.map} +0 -0
  979. /package/dist/{chunk-JB3TSUZO.js.map → chunk-MQTYIBY6.js.map} +0 -0
  980. /package/dist/{chunk-72EOXOR7.js.map → chunk-MRKY2GL5.js.map} +0 -0
  981. /package/dist/{chunk-YIKPC2QP.js.map → chunk-MSIQ42IY.js.map} +0 -0
  982. /package/dist/{chunk-7YLQCMZP.js.map → chunk-MVGU7BET.js.map} +0 -0
  983. /package/dist/{chunk-QUOFP3G7.js.map → chunk-MWY4TBDY.js.map} +0 -0
  984. /package/dist/{chunk-BJUOKUE5.js.map → chunk-NGQCWCD6.js.map} +0 -0
  985. /package/dist/{chunk-OG3ELROW.js.map → chunk-NKXMIOYN.js.map} +0 -0
  986. /package/dist/{chunk-ER5MYLIE.js.map → chunk-NMVRFFCR.js.map} +0 -0
  987. /package/dist/{chunk-GUC6IWEY.js.map → chunk-NNTDIKJP.js.map} +0 -0
  988. /package/dist/{chunk-LRMGPO7E.js.map → chunk-NQXCPP4G.js.map} +0 -0
  989. /package/dist/{chunk-THILLYQM.js.map → chunk-NYGS6FNV.js.map} +0 -0
  990. /package/dist/{chunk-NZOFNQNC.js.map → chunk-O3LOQDTI.js.map} +0 -0
  991. /package/dist/{chunk-2COBAJC7.js.map → chunk-O5HRZ2KG.js.map} +0 -0
  992. /package/dist/{chunk-H4VMHFOX.js.map → chunk-O5PZRVQR.js.map} +0 -0
  993. /package/dist/{chunk-IX4P4OGR.js.map → chunk-O6KR5SN7.js.map} +0 -0
  994. /package/dist/{chunk-EO22NST7.js.map → chunk-OBKDRV2H.js.map} +0 -0
  995. /package/dist/{chunk-3S3PJB7J.js.map → chunk-OBKKUBGL.js.map} +0 -0
  996. /package/dist/{chunk-3L5ATO4A.js.map → chunk-OFYXDB6I.js.map} +0 -0
  997. /package/dist/{chunk-VMWCIC2N.js.map → chunk-OLMWJGSJ.js.map} +0 -0
  998. /package/dist/{chunk-4RUKLIOF.js.map → chunk-ORRACKLB.js.map} +0 -0
  999. /package/dist/{chunk-6YUHDFOZ.js.map → chunk-P426WWAB.js.map} +0 -0
  1000. /package/dist/{chunk-SRDHDIRQ.js.map → chunk-P4GOY3ZL.js.map} +0 -0
  1001. /package/dist/{chunk-IX5VHZYS.js.map → chunk-P4KVJLUC.js.map} +0 -0
  1002. /package/dist/{chunk-6XYFMHNT.js.map → chunk-P4N7ZS6W.js.map} +0 -0
  1003. /package/dist/{chunk-5G4IGG7F.js.map → chunk-P6LSLNSL.js.map} +0 -0
  1004. /package/dist/{chunk-F26YBYAZ.js.map → chunk-PAFSIDM2.js.map} +0 -0
  1005. /package/dist/{chunk-C6OM2SRG.js.map → chunk-PC2JAIAH.js.map} +0 -0
  1006. /package/dist/{chunk-43BRJBEV.js.map → chunk-PGSXT5OY.js.map} +0 -0
  1007. /package/dist/{chunk-HKNMNL7B.js.map → chunk-QDMGUTOU.js.map} +0 -0
  1008. /package/dist/{chunk-YH6O6OQ6.js.map → chunk-QEMDQKQT.js.map} +0 -0
  1009. /package/dist/{chunk-TI6LGUEZ.js.map → chunk-QK7VU5N3.js.map} +0 -0
  1010. /package/dist/{chunk-FJFGDLXB.js.map → chunk-QL4Q332Z.js.map} +0 -0
  1011. /package/dist/{chunk-5SGTRULO.js.map → chunk-QL5227KT.js.map} +0 -0
  1012. /package/dist/{chunk-3Z7VA6ET.js.map → chunk-QUFCZMHG.js.map} +0 -0
  1013. /package/dist/{chunk-VPWKTIU5.js.map → chunk-QXPKUKOV.js.map} +0 -0
  1014. /package/dist/{chunk-XT54RTAM.js.map → chunk-QZE3KD34.js.map} +0 -0
  1015. /package/dist/{chunk-Q273Q33U.js.map → chunk-RAIUIXCY.js.map} +0 -0
  1016. /package/dist/{chunk-RP3YMYCX.js.map → chunk-RDLS6IZY.js.map} +0 -0
  1017. /package/dist/{chunk-MIUMNTIJ.js.map → chunk-RKPETJDJ.js.map} +0 -0
  1018. /package/dist/{chunk-GJ4GTYOD.js.map → chunk-RMDLTRLI.js.map} +0 -0
  1019. /package/dist/{chunk-PGRKTQIW.js.map → chunk-RR6DQN4X.js.map} +0 -0
  1020. /package/dist/{chunk-MQRHTOQ2.js.map → chunk-RVPH6BB7.js.map} +0 -0
  1021. /package/dist/{chunk-B45TB4HY.js.map → chunk-RVXLSVJH.js.map} +0 -0
  1022. /package/dist/{chunk-IINQO425.js.map → chunk-RVY5EZNU.js.map} +0 -0
  1023. /package/dist/{chunk-DFQ72BLS.js.map → chunk-RWHBX4MN.js.map} +0 -0
  1024. /package/dist/{chunk-7UDLRDHK.js.map → chunk-RWHDMGFG.js.map} +0 -0
  1025. /package/dist/{chunk-FLLJ2WXW.js.map → chunk-RYB3WBMZ.js.map} +0 -0
  1026. /package/dist/{chunk-ZSI3ITRK.js.map → chunk-S7EO77EE.js.map} +0 -0
  1027. /package/dist/{chunk-I5FSUZVW.js.map → chunk-S7J4HBPP.js.map} +0 -0
  1028. /package/dist/{chunk-UFJDETKG.js.map → chunk-SA3XI7FB.js.map} +0 -0
  1029. /package/dist/{chunk-NPBEUU22.js.map → chunk-SKRTCSUL.js.map} +0 -0
  1030. /package/dist/{chunk-7TVAPQOV.js.map → chunk-SUWDILUY.js.map} +0 -0
  1031. /package/dist/{chunk-TFSCGFYV.js.map → chunk-SWTPVMR4.js.map} +0 -0
  1032. /package/dist/{chunk-RVC3M66H.js.map → chunk-T5BYEE66.js.map} +0 -0
  1033. /package/dist/{chunk-QTJAQ6DS.js.map → chunk-T652Q4R6.js.map} +0 -0
  1034. /package/dist/{chunk-GBGCMHBB.js.map → chunk-TBUOHK6R.js.map} +0 -0
  1035. /package/dist/{chunk-W2NAU5VB.js.map → chunk-TCUAGCAX.js.map} +0 -0
  1036. /package/dist/{chunk-UYWWUEL4.js.map → chunk-TLWH4E3P.js.map} +0 -0
  1037. /package/dist/{chunk-UOLDS6S5.js.map → chunk-TNHGSWG3.js.map} +0 -0
  1038. /package/dist/{chunk-WSOSGL2G.js.map → chunk-TO6VBJI3.js.map} +0 -0
  1039. /package/dist/{chunk-OI4WS7FW.js.map → chunk-TOL7MOAN.js.map} +0 -0
  1040. /package/dist/{chunk-AYZXE4IM.js.map → chunk-U243CBVZ.js.map} +0 -0
  1041. /package/dist/{chunk-BIUJHNVR.js.map → chunk-U2CEPRDH.js.map} +0 -0
  1042. /package/dist/{chunk-FZI4QOAV.js.map → chunk-UAZPXKPH.js.map} +0 -0
  1043. /package/dist/{chunk-EDPH7AJH.js.map → chunk-UHRGUMLJ.js.map} +0 -0
  1044. /package/dist/{chunk-5JAYZOAW.js.map → chunk-UNDSD6UA.js.map} +0 -0
  1045. /package/dist/{chunk-FPN4I4CG.js.map → chunk-USU2SS4V.js.map} +0 -0
  1046. /package/dist/{chunk-Q4CLS2HL.js.map → chunk-USWA5GQQ.js.map} +0 -0
  1047. /package/dist/{chunk-QYZ5RVGM.js.map → chunk-UXGTI4HR.js.map} +0 -0
  1048. /package/dist/{chunk-JNJIZCTN.js.map → chunk-UZKAHEQO.js.map} +0 -0
  1049. /package/dist/{chunk-ML46TXRM.js.map → chunk-VALESBNH.js.map} +0 -0
  1050. /package/dist/{chunk-F6QP4GSK.js.map → chunk-VMSMVWCJ.js.map} +0 -0
  1051. /package/dist/{chunk-3EM5GTP3.js.map → chunk-VPERSFGV.js.map} +0 -0
  1052. /package/dist/{chunk-AZGGSPTE.js.map → chunk-VXPY2GF3.js.map} +0 -0
  1053. /package/dist/{chunk-6DQBUKGJ.js.map → chunk-W7RKXZDV.js.map} +0 -0
  1054. /package/dist/{chunk-72ND4ALI.js.map → chunk-WEGZPK4I.js.map} +0 -0
  1055. /package/dist/{chunk-LIOZ2MXJ.js.map → chunk-WPKY3BGG.js.map} +0 -0
  1056. /package/dist/{chunk-IIXNEOK4.js.map → chunk-X3T3N6W5.js.map} +0 -0
  1057. /package/dist/{chunk-HA5RFQAF.js.map → chunk-X4OGMBY6.js.map} +0 -0
  1058. /package/dist/{chunk-OITGZUDC.js.map → chunk-X7ZHIJEI.js.map} +0 -0
  1059. /package/dist/{chunk-UJH63JT3.js.map → chunk-XR7Y2HPZ.js.map} +0 -0
  1060. /package/dist/{chunk-ROSB7GF6.js.map → chunk-Y2NMKJ7F.js.map} +0 -0
  1061. /package/dist/{chunk-AI77ZKEV.js.map → chunk-Y2QYPJDN.js.map} +0 -0
  1062. /package/dist/{chunk-OATXCLTY.js.map → chunk-Y47EPVCD.js.map} +0 -0
  1063. /package/dist/{chunk-P4NZ72KY.js.map → chunk-Y5Q4ETIW.js.map} +0 -0
  1064. /package/dist/{chunk-UMLPIMGW.js.map → chunk-YMQVVFXI.js.map} +0 -0
  1065. /package/dist/{chunk-KJ72GMZ2.js.map → chunk-YQ6FP33X.js.map} +0 -0
  1066. /package/dist/{chunk-ZEQYHEWP.js.map → chunk-YUA42N5A.js.map} +0 -0
  1067. /package/dist/{chunk-V5Y74WII.js.map → chunk-YXFNW64N.js.map} +0 -0
  1068. /package/dist/{chunk-SXRYA7NN.js.map → chunk-Z76RJPZF.js.map} +0 -0
  1069. /package/dist/{chunk-MIUJ3EH5.js.map → chunk-ZD67RM6G.js.map} +0 -0
  1070. /package/dist/{chunk-XE4PHI74.js.map → chunk-ZE4RD7U5.js.map} +0 -0
  1071. /package/dist/{chunk-GLSDWNFV.js.map → chunk-ZGR7LNXC.js.map} +0 -0
  1072. /package/dist/{chunk-QMQF5U2D.js.map → chunk-ZNA65Q6Y.js.map} +0 -0
  1073. /package/dist/{chunk-46LZO4ZO.js.map → chunk-ZRNK6FK6.js.map} +0 -0
  1074. /package/dist/{chunk-2JTMFYCT.js.map → chunk-ZVAIKQMC.js.map} +0 -0
  1075. /package/dist/{chunk-TGCKZOSX.js.map → chunk-ZZ3KNGTJ.js.map} +0 -0
  1076. /package/dist/{sandbox-files-HCLEEJMU.js.map → computer-viewer-M5N3GWBR.js.map} +0 -0
  1077. /package/dist/{session-connect-cards-DRKEN3Z4.js.map → embedded-new-voice-QZJG5DZ3.js.map} +0 -0
  1078. /package/dist/{session-realtime-IZOTTRH6.js.map → embedded-voice-7KOQNGKU.js.map} +0 -0
  1079. /package/dist/{fleet-decision-row-LG3SYVR3.js.map → fleet-decision-row-FJPAWNOQ.js.map} +0 -0
  1080. /package/dist/{latest-question-QWJTXMFA.js.map → latest-question-F3VPDR7U.js.map} +0 -0
  1081. /package/dist/{payment-page-card-YPSXRHBA.js.map → payment-page-card-HZJVN3F4.js.map} +0 -0
  1082. /package/dist/{platform-activity-row-ZU4MEBNK.js.map → platform-activity-row-NPEGG2VE.js.map} +0 -0
  1083. /package/dist/{queue-surface-implementation-6Q25RPH6.js.map → queue-surface-implementation-RTCTPF5T.js.map} +0 -0
  1084. /package/dist/{recorder-host-JD4GWJ2Z.js.map → recorder-host-YPWPLMS6.js.map} +0 -0
  1085. /package/dist/{timeline-annotation-markers-WWXNJOXI.js.map → timeline-annotation-markers-7QSYK22C.js.map} +0 -0
  1086. /package/dist/{timeline-annotation-selection-ZKRIQFIQ.js.map → timeline-annotation-selection-XYNMESWL.js.map} +0 -0
  1087. /package/dist/{timeline-annotations-dialog-4IMKTOXJ.js.map → timeline-annotations-dialog-WSI6L2CP.js.map} +0 -0
@@ -0,0 +1,1095 @@
1
+ "use client";
2
+ import {
3
+ payerShortLabel
4
+ } from "./chunk-APGUIORF.js";
5
+ import {
6
+ showUndoToast
7
+ } from "./chunk-7VAILBP6.js";
8
+ import {
9
+ ACCESS_CHOICES,
10
+ SPEND_PERIOD_OPTIONS,
11
+ abuseCategoryLabel,
12
+ availabilityMessage,
13
+ domainFromHostname,
14
+ draftFromPublication,
15
+ hasOutsideViewers,
16
+ invitedEmailProblem,
17
+ labelProblemMessage,
18
+ normalizeLabelInput,
19
+ outsideLimitsFromDraft,
20
+ outsideUsageLine,
21
+ platformRefusal,
22
+ publicationRequest,
23
+ readinessTitle,
24
+ sentence,
25
+ siteErrorCode,
26
+ sitePublicationLoadFromError,
27
+ splitReadinessWarnings,
28
+ suggestedLabel,
29
+ suspendedByLabel,
30
+ viewAsVisitorUrl
31
+ } from "./chunk-WNHVBU6P.js";
32
+ import {
33
+ Disclosure
34
+ } from "./chunk-4WEPVL7X.js";
35
+ import {
36
+ EmailChipsInput
37
+ } from "./chunk-W7RKXZDV.js";
38
+ import {
39
+ useWorkspaceModelCatalog
40
+ } from "./chunk-C6KI5P3H.js";
41
+ import {
42
+ ModelPicker
43
+ } from "./chunk-IMMDXSZ4.js";
44
+ import {
45
+ toast
46
+ } from "./chunk-O4EA4F3W.js";
47
+ import {
48
+ useCopyToClipboard
49
+ } from "./chunk-DHVA3T3K.js";
50
+ import {
51
+ cn
52
+ } from "./chunk-A3MTTRCX.js";
53
+ import {
54
+ ListRow,
55
+ RowList
56
+ } from "./chunk-O5HRZ2KG.js";
57
+ import {
58
+ StatusBadge
59
+ } from "./chunk-HIPM3BEC.js";
60
+ import {
61
+ LogoTile
62
+ } from "./chunk-KYUYKACJ.js";
63
+ import {
64
+ FormDialog,
65
+ FormInline,
66
+ FormPage
67
+ } from "./chunk-CNRFFCAE.js";
68
+ import {
69
+ userErrorText
70
+ } from "./chunk-UJQMDNZ5.js";
71
+ import {
72
+ SelectMenu
73
+ } from "./chunk-RVXLSVJH.js";
74
+ import {
75
+ Switch
76
+ } from "./chunk-7V5REBCP.js";
77
+ import {
78
+ RelativeTime
79
+ } from "./chunk-PC2JAIAH.js";
80
+ import {
81
+ CheckboxField,
82
+ Field,
83
+ FieldStack,
84
+ TextArea,
85
+ TextInput
86
+ } from "./chunk-GMMB4NCN.js";
87
+ import {
88
+ SettingRow
89
+ } from "./chunk-YNF2OC54.js";
90
+ import {
91
+ Notice
92
+ } from "./chunk-FSOQDUCG.js";
93
+ import {
94
+ DropdownMenuItem
95
+ } from "./chunk-GM3LG6BG.js";
96
+ import {
97
+ Button,
98
+ buttonVariants
99
+ } from "./chunk-7QQN3KNP.js";
100
+
101
+ // src/app/components/artifacts/site-publishing.tsx
102
+ import {
103
+ CheckIcon,
104
+ CopyIcon,
105
+ ExternalLinkIcon,
106
+ FlagIcon,
107
+ GlobeIcon,
108
+ LoaderCircleIcon,
109
+ PlusIcon,
110
+ RotateCcwIcon,
111
+ UsersIcon,
112
+ XIcon
113
+ } from "lucide-react";
114
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
115
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
116
+ function useSitePublication({
117
+ client,
118
+ workspaceId,
119
+ siteId,
120
+ enabled
121
+ }) {
122
+ const [load, setLoad] = useState({ state: "loading" });
123
+ const abortRef = useRef(null);
124
+ const reload = useCallback(async () => {
125
+ abortRef.current?.abort();
126
+ if (!enabled) return;
127
+ const abort = new AbortController();
128
+ abortRef.current = abort;
129
+ try {
130
+ const publication = await client.getSitePublication(workspaceId, siteId, {
131
+ signal: abort.signal
132
+ });
133
+ if (!abort.signal.aborted) setLoad({ state: "ready", publication });
134
+ } catch (error) {
135
+ if (!abort.signal.aborted) setLoad(sitePublicationLoadFromError(error));
136
+ }
137
+ }, [client, enabled, siteId, workspaceId]);
138
+ useEffect(() => {
139
+ setLoad({ state: "loading" });
140
+ void reload();
141
+ return () => abortRef.current?.abort();
142
+ }, [reload]);
143
+ const setPublication = useCallback(
144
+ (publication) => setLoad({ state: "ready", publication }),
145
+ []
146
+ );
147
+ return { load, reload, setPublication };
148
+ }
149
+ function livePublication(load) {
150
+ return load.state === "ready" && load.publication.status === "active" ? load.publication : null;
151
+ }
152
+ function SitePublishButton({
153
+ load,
154
+ onOpen
155
+ }) {
156
+ if (load.state === "unavailable" || load.state === "forbidden") return null;
157
+ if (load.state === "ready" && load.publication.status !== "unpublished") return null;
158
+ return /* @__PURE__ */ jsxs(
159
+ Button,
160
+ {
161
+ type: "button",
162
+ size: "sm",
163
+ variant: "outline",
164
+ onClick: onOpen,
165
+ title: "Publish",
166
+ className: "rounded-[10px] pointer-coarse:h-11 max-sm:px-2.5 pointer-coarse:max-sm:w-11",
167
+ children: [
168
+ /* @__PURE__ */ jsx(GlobeIcon, { "aria-hidden": "true" }),
169
+ /* @__PURE__ */ jsx("span", { className: "max-sm:sr-only", children: "Publish" })
170
+ ]
171
+ }
172
+ );
173
+ }
174
+ function sitePublicationHeader(load) {
175
+ const live = livePublication(load);
176
+ const suspended = load.state === "ready" && load.publication.status === "suspended";
177
+ return {
178
+ meta: live ? /* @__PURE__ */ jsx(
179
+ "a",
180
+ {
181
+ href: live.url,
182
+ target: "_blank",
183
+ rel: "noreferrer",
184
+ className: "relative z-10 font-medium og-link text-fg-muted",
185
+ children: live.hostname
186
+ },
187
+ "publication"
188
+ ) : null,
189
+ chip: suspended ? /* @__PURE__ */ jsx(StatusBadge, { tone: "danger", icon: "auto", children: "Taken down" }) : null
190
+ };
191
+ }
192
+ function useHostnameAvailability(client, workspaceId, label, skip) {
193
+ const [availability, setAvailability] = useState({ state: "idle" });
194
+ useEffect(() => {
195
+ if (skip || labelProblemMessage(label)) {
196
+ setAvailability({ state: "idle" });
197
+ return;
198
+ }
199
+ setAvailability({ state: "checking", label });
200
+ const abort = new AbortController();
201
+ const timer = setTimeout(() => {
202
+ client.checkSiteHostname(workspaceId, label, { signal: abort.signal }).then((result) => {
203
+ if (!abort.signal.aborted) setAvailability({ state: "done", label, result });
204
+ }).catch(() => {
205
+ if (!abort.signal.aborted) setAvailability({ state: "failed", label });
206
+ });
207
+ }, 350);
208
+ return () => {
209
+ clearTimeout(timer);
210
+ abort.abort();
211
+ };
212
+ }, [client, label, skip, workspaceId]);
213
+ return availability;
214
+ }
215
+ function PublishFrame({
216
+ layout = "page",
217
+ back,
218
+ ...props
219
+ }) {
220
+ return layout === "panel" ? /* @__PURE__ */ jsx(FormInline, { plain: true, ...props }) : /* @__PURE__ */ jsx(FormPage, { back, ...props });
221
+ }
222
+ function SitePublishPage(props) {
223
+ const { load, site, onBack, layout } = props;
224
+ const back = { label: site.title, onClick: onBack };
225
+ const blocked = (title, body, action) => /* @__PURE__ */ jsx(
226
+ PublishFrame,
227
+ {
228
+ layout,
229
+ back,
230
+ title: "Publish to web",
231
+ submitLabel: "Publish",
232
+ footer: false,
233
+ children: /* @__PURE__ */ jsx(Notice, { title, action, actionLayout: "responsive", children: body })
234
+ }
235
+ );
236
+ if (!props.canManage || load.state === "forbidden")
237
+ return blocked(
238
+ "You can't publish this app",
239
+ "You need permission to publish artifacts in this workspace."
240
+ );
241
+ if (load.state === "unavailable")
242
+ return blocked(
243
+ "Publishing isn't set up on this server",
244
+ "An administrator sets a Sites domain to turn it on."
245
+ );
246
+ if (site.visibility === "private" && load.state !== "ready")
247
+ return blocked(
248
+ "Share this app with the workspace first",
249
+ "An app that only you can see can't be published.",
250
+ props.onShareWithWorkspace ? /* @__PURE__ */ jsxs(Button, { type: "button", size: "sm", onClick: props.onShareWithWorkspace, children: [
251
+ /* @__PURE__ */ jsx(UsersIcon, { "aria-hidden": "true" }),
252
+ "Share with workspace"
253
+ ] }) : void 0
254
+ );
255
+ if (load.state === "error")
256
+ return blocked(
257
+ "Couldn't load publishing",
258
+ userErrorText(load.error),
259
+ /* @__PURE__ */ jsxs(Button, { type: "button", size: "sm", variant: "outline", onClick: props.onReload, children: [
260
+ /* @__PURE__ */ jsx(RotateCcwIcon, { "aria-hidden": "true" }),
261
+ "Retry"
262
+ ] })
263
+ );
264
+ if (load.state === "loading")
265
+ return /* @__PURE__ */ jsx(
266
+ PublishFrame,
267
+ {
268
+ layout,
269
+ back,
270
+ title: "Publish to web",
271
+ submitLabel: "Publish",
272
+ loading: true,
273
+ loadingFields: 4
274
+ }
275
+ );
276
+ return /* @__PURE__ */ jsx(
277
+ SitePublishForm,
278
+ {
279
+ ...props,
280
+ saved: load.state === "ready" ? load.publication : null
281
+ },
282
+ load.state === "ready" ? load.publication.updatedAt : "new"
283
+ );
284
+ }
285
+ function SitePublishForm({
286
+ client,
287
+ workspaceId,
288
+ workspaceName,
289
+ site,
290
+ saved,
291
+ onPublication,
292
+ onBack,
293
+ sites,
294
+ labelSuffix,
295
+ isAdmin,
296
+ layout = "page",
297
+ onSubmitted
298
+ }) {
299
+ const forceNoindex = sites.forceNoindex === true;
300
+ const [draft, setDraft] = useState(
301
+ () => draftFromPublication(saved, suggestedLabel(site.title, labelSuffix), forceNoindex)
302
+ );
303
+ const [labelError, setLabelError] = useState(null);
304
+ const [emailError, setEmailError] = useState(null);
305
+ const [limitError, setLimitError] = useState(null);
306
+ const [agentError, setAgentError] = useState(null);
307
+ const [refusal, setRefusal] = useState(null);
308
+ const [busy, setBusy] = useState(null);
309
+ const [takedownOpen, setTakedownOpen] = useState(false);
310
+ const update = (patch) => setDraft((current) => ({ ...current, ...patch }));
311
+ const discard = () => {
312
+ setLabelError(null);
313
+ setEmailError(null);
314
+ setLimitError(null);
315
+ setAgentError(null);
316
+ setDraft(draftFromPublication(saved, suggestedLabel(site.title, labelSuffix), forceNoindex));
317
+ };
318
+ const labelUnchanged = saved?.label === draft.label;
319
+ const suspended = saved?.status === "suspended";
320
+ const availability = useHostnameAvailability(client, workspaceId, draft.label, labelUnchanged);
321
+ const reportedDomain = sites.domain ?? domainFromHostname(saved?.hostname, saved?.label ?? "") ?? (availability.state === "done" ? domainFromHostname(availability.result.hostname, availability.label) : null);
322
+ const [lastDomain, setLastDomain] = useState(reportedDomain);
323
+ if (reportedDomain && reportedDomain !== lastDomain) setLastDomain(reportedDomain);
324
+ const domain = reportedDomain ?? lastDomain;
325
+ const localProblem = labelProblemMessage(draft.label);
326
+ const remoteProblem = availability.state === "done" && availability.label === draft.label ? availabilityMessage(availability.result) : null;
327
+ const shownLabelError = labelError ?? localProblem ?? remoteProblem;
328
+ const publishing = !saved || saved.status === "unpublished";
329
+ const request = publicationRequest(draft, saved, {
330
+ publish: publishing,
331
+ canChangeLimits: isAdmin
332
+ });
333
+ const dirty = Object.keys(request).length > 0;
334
+ const outsideViewers = hasOutsideViewers(draft.access);
335
+ const publicDisabled = sites.publicEnabled === false;
336
+ const warnings = saved?.status === "active" && saved.access === draft.access ? saved.warnings : [];
337
+ const openReports = saved?.moderation.openReports ?? 0;
338
+ const moreSummary = openReports > 0 ? `${openReports} open ${openReports === 1 ? "report" : "reports"}` : void 0;
339
+ const submit = async () => {
340
+ setLabelError(null);
341
+ setAgentError(null);
342
+ if (localProblem || remoteProblem) return false;
343
+ if (availability.state === "checking" && !labelUnchanged) return false;
344
+ const badEmail = draft.access === "invited" ? draft.invitedEmails.find(invitedEmailProblem) : void 0;
345
+ if (badEmail) {
346
+ setEmailError(`${badEmail} isn't an email address.`);
347
+ return false;
348
+ }
349
+ setEmailError(null);
350
+ if (outsideViewers && isAdmin && "invalid" in outsideLimitsFromDraft(draft)) {
351
+ setLimitError("Use dollar amounts like 10 or 0.50.");
352
+ return false;
353
+ }
354
+ setLimitError(null);
355
+ setRefusal(null);
356
+ try {
357
+ const next = await client.updateSitePublication(workspaceId, site.id, request);
358
+ onPublication(next);
359
+ toast.success(publishing ? "App published" : "Changes saved", {
360
+ ...publishing ? { description: next.hostname } : {}
361
+ });
362
+ return true;
363
+ } catch (error) {
364
+ const code = siteErrorCode(error);
365
+ if (code === "site_hostname_taken") {
366
+ setLabelError("Another app uses this name.");
367
+ return false;
368
+ }
369
+ if (code === "site_admin_required") {
370
+ if (request.limitProfile) setLimitError("Only a workspace admin can change limits.");
371
+ else setAgentError("Only a workspace admin can make this change.");
372
+ return false;
373
+ }
374
+ const platform = platformRefusal(error);
375
+ if (platform) {
376
+ setRefusal(platform);
377
+ return false;
378
+ }
379
+ throw error;
380
+ }
381
+ };
382
+ const applyFix = async (fix) => {
383
+ try {
384
+ onPublication(await client.applySitePublicationFix(workspaceId, site.id, fix));
385
+ toast.success("Fixed");
386
+ } catch (error) {
387
+ toast.error("Couldn't apply the fix", { description: userErrorText(error) });
388
+ }
389
+ };
390
+ const unpublish = async () => {
391
+ if (!saved) return;
392
+ setBusy("unpublish");
393
+ try {
394
+ const next = await client.unpublishSite(workspaceId, site.id);
395
+ onPublication(next);
396
+ showUndoToast({
397
+ title: "App unpublished",
398
+ description: `${saved.hostname} stays reserved for this workspace.`,
399
+ onUndo: () => void client.updateSitePublication(workspaceId, site.id, { status: "active" }).then(onPublication).catch(
400
+ (error) => toast.error("Couldn't publish again", { description: userErrorText(error) })
401
+ )
402
+ });
403
+ } catch (error) {
404
+ toast.error("Couldn't unpublish", { description: userErrorText(error) });
405
+ } finally {
406
+ setBusy(null);
407
+ }
408
+ };
409
+ const restore = async () => {
410
+ setBusy("restore");
411
+ try {
412
+ onPublication(await client.restoreSite(workspaceId, site.id));
413
+ toast.success("App restored");
414
+ } catch (error) {
415
+ toast.error("Couldn't restore the app", { description: userErrorText(error) });
416
+ } finally {
417
+ setBusy(null);
418
+ }
419
+ };
420
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
421
+ /* @__PURE__ */ jsx(
422
+ PublishFrame,
423
+ {
424
+ layout,
425
+ back: { label: site.title, onClick: onBack },
426
+ title: publishing ? "Publish to web" : "Web address",
427
+ description: publishing ? `Give \u201C${site.title}\u201D its own address on the web.` : void 0,
428
+ submitLabel: publishing ? "Publish" : "Save changes",
429
+ pendingLabel: publishing ? "Publishing\u2026" : "Saving\u2026",
430
+ onSubmit: submit,
431
+ ...onSubmitted ? { onSubmitted } : {},
432
+ ...layout === "panel" ? dirty && !publishing ? { cancelLabel: "Discard", onCancel: discard } : { cancelLabel: null } : { onCancel: onBack },
433
+ footer: publishing || dirty ? void 0 : false,
434
+ children: /* @__PURE__ */ jsxs(FieldStack, { children: [
435
+ refusal ? /* @__PURE__ */ jsx(Notice, { tone: "failed", title: refusal.title, children: refusal.body }) : null,
436
+ saved ? /* @__PURE__ */ jsx(
437
+ PublicationStatus,
438
+ {
439
+ publication: saved,
440
+ isAdmin,
441
+ busy,
442
+ onUnpublish: () => void unpublish(),
443
+ onRestore: () => void restore()
444
+ }
445
+ ) : null,
446
+ /* @__PURE__ */ jsx(
447
+ Field,
448
+ {
449
+ label: "Address",
450
+ error: shownLabelError,
451
+ hint: suspended ? "Restore the app to change its address." : /* @__PURE__ */ jsx(
452
+ AvailabilityHint,
453
+ {
454
+ availability,
455
+ label: draft.label,
456
+ domain,
457
+ unchanged: labelUnchanged
458
+ }
459
+ ),
460
+ children: /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1", children: [
461
+ /* @__PURE__ */ jsx(
462
+ TextInput,
463
+ {
464
+ value: draft.label,
465
+ disabled: suspended,
466
+ onChange: (event) => {
467
+ setLabelError(null);
468
+ update({ label: normalizeLabelInput(event.target.value) });
469
+ },
470
+ suppressAutofill: true,
471
+ spellCheck: false,
472
+ autoCapitalize: "off",
473
+ maxLength: 63,
474
+ className: "w-auto min-w-0 flex-1 basis-56 font-mono text-[13px]"
475
+ }
476
+ ),
477
+ domain ? /* @__PURE__ */ jsxs("span", { className: "min-w-0 truncate font-mono text-xs text-fg-muted", children: [
478
+ ".",
479
+ domain
480
+ ] }) : null
481
+ ] })
482
+ }
483
+ ),
484
+ /* @__PURE__ */ jsx(
485
+ Field,
486
+ {
487
+ label: "Who can open it",
488
+ hint: ACCESS_CHOICES.find((choice) => choice.value === draft.access)?.description({
489
+ workspaceName,
490
+ loginOnly: sites.loginOnly === true
491
+ }),
492
+ children: /* @__PURE__ */ jsx(
493
+ SelectMenu,
494
+ {
495
+ value: draft.access,
496
+ onValueChange: (value) => update({ access: value }),
497
+ options: ACCESS_CHOICES.map((choice) => ({
498
+ value: choice.value,
499
+ label: choice.title,
500
+ description: choice.description({
501
+ workspaceName,
502
+ loginOnly: sites.loginOnly === true
503
+ }),
504
+ ...choice.value === "public" && publicDisabled ? {
505
+ disabled: true,
506
+ disabledReason: "Public apps are turned off on this server."
507
+ } : {}
508
+ })),
509
+ className: "w-full max-w-80"
510
+ }
511
+ )
512
+ }
513
+ ),
514
+ draft.access === "invited" ? /* @__PURE__ */ jsx(
515
+ Field,
516
+ {
517
+ label: "Invited people",
518
+ hint: "They open the app after signing in with this email.",
519
+ error: emailError,
520
+ children: /* @__PURE__ */ jsx(
521
+ EmailChipsInput,
522
+ {
523
+ chips: draft.invitedEmails.map((value) => ({
524
+ value,
525
+ ...invitedEmailProblem(value) ? { problem: invitedEmailProblem(value) } : {}
526
+ })),
527
+ onChange: (invitedEmails) => {
528
+ setEmailError(null);
529
+ update({ invitedEmails });
530
+ },
531
+ placeholder: "name@example.com"
532
+ }
533
+ )
534
+ }
535
+ ) : null,
536
+ warnings.length > 0 ? /* @__PURE__ */ jsx(SiteReadiness, { warnings, access: draft.access, onFix: applyFix }) : null,
537
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-4", children: [
538
+ /* @__PURE__ */ jsx(
539
+ CheckboxField,
540
+ {
541
+ label: "Let people chat with the app's agent",
542
+ description: "The app's own chat uses it. Ask the agent to add one if the app has none.",
543
+ checked: draft.agentEnabled,
544
+ onCheckedChange: (agentEnabled) => update({ agentEnabled })
545
+ }
546
+ ),
547
+ draft.agentEnabled ? /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-4 pl-7", children: [
548
+ /* @__PURE__ */ jsx(
549
+ SiteAgentModelField,
550
+ {
551
+ workspaceId,
552
+ model: draft.agentModel,
553
+ allowed: saved?.effectiveLimits.agentModels ?? null,
554
+ onChange: (agentModel) => update({ agentModel })
555
+ }
556
+ ),
557
+ outsideViewers ? /* @__PURE__ */ jsx(
558
+ OutsideAgentSection,
559
+ {
560
+ workspaceId,
561
+ draft,
562
+ saved,
563
+ isAdmin,
564
+ error: limitError ?? agentError,
565
+ onChange: (patch) => {
566
+ setLimitError(null);
567
+ update(patch);
568
+ }
569
+ }
570
+ ) : agentError ? /* @__PURE__ */ jsx("p", { className: "text-sm text-danger", children: agentError }) : null
571
+ ] }) : null
572
+ ] }),
573
+ /* @__PURE__ */ jsxs(
574
+ PublishMore,
575
+ {
576
+ title: "Search engines and reports",
577
+ summary: moreSummary,
578
+ defaultOpen: openReports > 0,
579
+ children: [
580
+ /* @__PURE__ */ jsx(
581
+ CheckboxField,
582
+ {
583
+ label: "Hide from search engines",
584
+ checked: draft.noindex,
585
+ disabled: forceNoindex,
586
+ disabledReason: "Always on for this server.",
587
+ onCheckedChange: (noindex) => update({ noindex })
588
+ }
589
+ ),
590
+ saved ? /* @__PURE__ */ jsx(
591
+ SiteReports,
592
+ {
593
+ client,
594
+ workspaceId,
595
+ siteId: site.id,
596
+ publication: saved,
597
+ onTakeDown: () => setTakedownOpen(true)
598
+ }
599
+ ) : null
600
+ ]
601
+ }
602
+ )
603
+ ] })
604
+ }
605
+ ),
606
+ saved ? /* @__PURE__ */ jsx(
607
+ TakedownDialog,
608
+ {
609
+ open: takedownOpen,
610
+ onOpenChange: setTakedownOpen,
611
+ hostname: saved.hostname,
612
+ onTakeDown: async (reason) => {
613
+ const next = await client.takeDownSite(workspaceId, site.id, { reason });
614
+ onPublication(next);
615
+ toast.success("App taken down", {
616
+ description: "Visitors see a takedown notice."
617
+ });
618
+ }
619
+ }
620
+ ) : null
621
+ ] });
622
+ }
623
+ function PublishMore({
624
+ title = "More",
625
+ summary,
626
+ defaultOpen,
627
+ children
628
+ }) {
629
+ return /* @__PURE__ */ jsx(Disclosure, { title, summary, defaultOpen, children: /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-col gap-4 pt-2", children }) });
630
+ }
631
+ function AvailabilityHint({
632
+ availability,
633
+ label,
634
+ domain,
635
+ unchanged
636
+ }) {
637
+ if (unchanged) return "Changing it breaks the old address.";
638
+ if (availability.state === "checking" || availability.state !== "idle" && availability.label !== label)
639
+ return /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5", children: [
640
+ /* @__PURE__ */ jsx(LoaderCircleIcon, { "aria-hidden": "true", className: "size-3.5 motion-safe:animate-spin" }),
641
+ "Checking\u2026"
642
+ ] });
643
+ if (availability.state === "failed")
644
+ return "Couldn't check this name. It's checked again when you publish.";
645
+ if (availability.state === "done" && availability.result.available)
646
+ return /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 text-status-idle", children: [
647
+ /* @__PURE__ */ jsx(CheckIcon, { "aria-hidden": "true", className: "size-3.5" }),
648
+ domain ? `${label}.${domain}` : label,
649
+ " is available"
650
+ ] });
651
+ return "Lowercase letters, digits and hyphens.";
652
+ }
653
+ function PublicationStatus({
654
+ publication,
655
+ isAdmin,
656
+ busy,
657
+ onUnpublish,
658
+ onRestore
659
+ }) {
660
+ const { state: copied, copy } = useCopyToClipboard();
661
+ const viewAs = viewAsVisitorUrl(publication);
662
+ if (publication.status === "suspended") {
663
+ const { suspendedAt, suspendedBy, suspendedReason } = publication.moderation;
664
+ const byPlatform = suspendedBy === "platform";
665
+ const adminOnly = suspendedBy === "admin" && !isAdmin;
666
+ return /* @__PURE__ */ jsxs(
667
+ Notice,
668
+ {
669
+ tone: "failed",
670
+ title: "Taken down",
671
+ actionLayout: "responsive",
672
+ action: byPlatform || adminOnly ? void 0 : /* @__PURE__ */ jsxs(Button, { type: "button", size: "sm", disabled: busy !== null, onClick: onRestore, children: [
673
+ /* @__PURE__ */ jsx(RotateCcwIcon, { "aria-hidden": "true" }),
674
+ busy === "restore" ? "Restoring\u2026" : "Restore"
675
+ ] }),
676
+ children: [
677
+ "By ",
678
+ suspendedByLabel(suspendedBy),
679
+ suspendedAt ? /* @__PURE__ */ jsxs(Fragment, { children: [
680
+ " ",
681
+ /* @__PURE__ */ jsx(RelativeTime, { date: suspendedAt, inSentence: true })
682
+ ] }) : null,
683
+ ". ",
684
+ suspendedReason ? `${sentence(suspendedReason)} ` : null,
685
+ "Visitors to",
686
+ " ",
687
+ publication.hostname,
688
+ " see a takedown notice.",
689
+ byPlatform ? " Contact support to restore it." : null,
690
+ adminOnly ? " A workspace admin can restore it." : null
691
+ ]
692
+ }
693
+ );
694
+ }
695
+ if (publication.status === "unpublished")
696
+ return /* @__PURE__ */ jsxs(Notice, { title: "Not published", children: [
697
+ publication.hostname,
698
+ " stays reserved for this workspace. Publish to put it back online."
699
+ ] });
700
+ return /* @__PURE__ */ jsxs(
701
+ "div",
702
+ {
703
+ "data-site-publication-status": "",
704
+ className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 text-sm",
705
+ children: [
706
+ /* @__PURE__ */ jsxs("span", { className: "inline-flex min-w-0 flex-1 basis-56 flex-wrap items-center gap-x-3 gap-y-1", children: [
707
+ /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 text-fg-muted", children: [
708
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "size-1.5 rounded-full bg-status-idle" }),
709
+ "Published"
710
+ ] }),
711
+ /* @__PURE__ */ jsxs(
712
+ "a",
713
+ {
714
+ href: publication.url,
715
+ target: "_blank",
716
+ rel: "noreferrer",
717
+ className: "inline-flex min-w-0 max-w-full items-center gap-1 font-medium og-link",
718
+ children: [
719
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: publication.hostname }),
720
+ /* @__PURE__ */ jsx(ExternalLinkIcon, { "aria-hidden": "true", className: "size-3.5 shrink-0" })
721
+ ]
722
+ }
723
+ ),
724
+ viewAs ? /* @__PURE__ */ jsx("a", { href: viewAs, target: "_blank", rel: "noreferrer", className: "text-fg-muted og-link", children: "View as visitor" }) : null
725
+ ] }),
726
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
727
+ /* @__PURE__ */ jsxs(
728
+ Button,
729
+ {
730
+ type: "button",
731
+ size: "sm",
732
+ variant: "outline",
733
+ onClick: () => void copy(publication.url),
734
+ className: "rounded-[10px] pointer-coarse:h-11",
735
+ children: [
736
+ copied === "copied" ? /* @__PURE__ */ jsx(CheckIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx(CopyIcon, { "aria-hidden": "true" }),
737
+ copied === "copied" ? "Copied" : "Copy link"
738
+ ]
739
+ }
740
+ ),
741
+ /* @__PURE__ */ jsx(
742
+ Button,
743
+ {
744
+ type: "button",
745
+ size: "sm",
746
+ variant: "outline",
747
+ disabled: busy !== null,
748
+ onClick: onUnpublish,
749
+ className: "rounded-[10px] pointer-coarse:h-11",
750
+ children: busy === "unpublish" ? "Unpublishing\u2026" : "Unpublish"
751
+ }
752
+ )
753
+ ] })
754
+ ]
755
+ }
756
+ );
757
+ }
758
+ function SiteAgentModelField({
759
+ workspaceId,
760
+ model,
761
+ allowed,
762
+ onChange
763
+ }) {
764
+ const catalog = useWorkspaceModelCatalog(workspaceId);
765
+ const rows = useMemo(
766
+ () => allowed ? catalog.rows.filter((row) => allowed.includes(row.id)) : catalog.rows,
767
+ [allowed, catalog.rows]
768
+ );
769
+ const fallback = catalog.defaultSelection?.model ?? rows[0]?.id ?? "";
770
+ const shown = model ?? fallback;
771
+ const selected = rows.find((row) => row.id === shown);
772
+ return /* @__PURE__ */ jsx(Field, { label: "Model", hint: model === null ? "Uses the workspace default." : void 0, children: /* @__PURE__ */ jsx(
773
+ ModelPicker,
774
+ {
775
+ rows,
776
+ model: shown,
777
+ effort: catalog.defaultSelection?.reasoningEffort ?? "medium",
778
+ latencyMode: "standard",
779
+ allowLatencyMode: false,
780
+ allowModelOptions: false,
781
+ loading: catalog.loading,
782
+ error: catalog.error,
783
+ messages: { label: "Agent model" },
784
+ triggerStyle: "field",
785
+ triggerMeta: selected ? payerShortLabel(selected) : null,
786
+ className: cn(
787
+ buttonVariants({ variant: "outline", size: "sm" }),
788
+ "max-w-full min-w-[180px] justify-start gap-2 self-start rounded-[10px] px-2.5 pointer-coarse:h-11"
789
+ ),
790
+ onModelChange: (next) => onChange(next),
791
+ onEffortChange: () => {
792
+ },
793
+ onLatencyModeChange: () => {
794
+ }
795
+ }
796
+ ) });
797
+ }
798
+ var reportRowLeading = (size) => /* @__PURE__ */ jsx(LogoTile, { size, icon: /* @__PURE__ */ jsx(FlagIcon, {}), name: "Report" });
799
+ function OutsideAgentSection({
800
+ workspaceId,
801
+ draft,
802
+ saved,
803
+ isAdmin,
804
+ error,
805
+ onChange
806
+ }) {
807
+ const locked = !isAdmin;
808
+ const savedHere = saved?.status === "active" && saved.access === draft.access ? saved : null;
809
+ return /* @__PURE__ */ jsx(
810
+ SettingRow,
811
+ {
812
+ variant: "control-right",
813
+ label: "Agent for people outside the workspace",
814
+ description: "People outside the workspace can only use this app's own data.",
815
+ hint: locked ? "Only workspace admins change this." : void 0,
816
+ error,
817
+ control: /* @__PURE__ */ jsx(
818
+ Switch,
819
+ {
820
+ checked: draft.outsideAgent,
821
+ disabled: locked,
822
+ disabledReason: "Only workspace admins change this.",
823
+ onCheckedChange: (outsideAgent) => onChange({ outsideAgent })
824
+ }
825
+ ),
826
+ className: "border-0 px-0",
827
+ children: draft.outsideAgent ? /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-3 pt-1", children: [
828
+ savedHere?.outsideAgentModel && savedHere.agent.model === draft.agentModel ? /* @__PURE__ */ jsx(OutsideModelLine, { workspaceId, model: savedHere.outsideAgentModel }) : null,
829
+ /* @__PURE__ */ jsx(
830
+ SpendLimitLine,
831
+ {
832
+ label: "Limit",
833
+ amount: draft.siteLimit,
834
+ period: draft.sitePeriod,
835
+ disabled: locked,
836
+ onAmountChange: (siteLimit) => onChange({ siteLimit }),
837
+ onPeriodChange: (sitePeriod) => onChange({ sitePeriod })
838
+ }
839
+ ),
840
+ draft.personLimitOn ? /* @__PURE__ */ jsx(
841
+ SpendLimitLine,
842
+ {
843
+ label: "Per person",
844
+ amount: draft.personLimit,
845
+ period: draft.personPeriod,
846
+ disabled: locked,
847
+ onAmountChange: (personLimit) => onChange({ personLimit }),
848
+ onPeriodChange: (personPeriod) => onChange({ personPeriod }),
849
+ onRemove: () => onChange({ personLimitOn: false, personLimit: "" })
850
+ }
851
+ ) : locked ? null : /* @__PURE__ */ jsxs(
852
+ "button",
853
+ {
854
+ type: "button",
855
+ onClick: () => onChange({ personLimitOn: true, personLimit: "1", personPeriod: "day" }),
856
+ className: "inline-flex items-center gap-1 self-start text-sm font-medium og-link",
857
+ children: [
858
+ /* @__PURE__ */ jsx(PlusIcon, { "aria-hidden": "true", className: "size-3.5" }),
859
+ "Limit per person"
860
+ ]
861
+ }
862
+ ),
863
+ savedHere ? /* @__PURE__ */ jsx("p", { className: "text-xs text-fg-muted", children: outsideUsageLine(savedHere) }) : null
864
+ ] }) : null
865
+ }
866
+ );
867
+ }
868
+ function SpendLimitLine({
869
+ label,
870
+ amount,
871
+ period,
872
+ disabled,
873
+ onAmountChange,
874
+ onPeriodChange,
875
+ onRemove
876
+ }) {
877
+ return /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-2 text-sm", children: [
878
+ /* @__PURE__ */ jsx("span", { className: "w-20 shrink-0 text-fg-muted max-sm:w-auto", children: label }),
879
+ /* @__PURE__ */ jsxs("div", { className: "relative w-24 shrink-0", children: [
880
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-fg-muted", children: "$" }),
881
+ /* @__PURE__ */ jsx(
882
+ TextInput,
883
+ {
884
+ "aria-label": `${label} amount`,
885
+ inputMode: "decimal",
886
+ placeholder: "None",
887
+ value: amount,
888
+ disabled,
889
+ onChange: (event) => onAmountChange(event.target.value),
890
+ className: "pl-6"
891
+ }
892
+ )
893
+ ] }),
894
+ /* @__PURE__ */ jsx("span", { className: "text-fg-muted", children: "per" }),
895
+ /* @__PURE__ */ jsx(
896
+ SelectMenu,
897
+ {
898
+ "aria-label": `${label} period`,
899
+ options: SPEND_PERIOD_OPTIONS,
900
+ value: period,
901
+ disabled,
902
+ onValueChange: onPeriodChange,
903
+ className: "w-28"
904
+ }
905
+ ),
906
+ onRemove && !disabled ? /* @__PURE__ */ jsx(
907
+ Button,
908
+ {
909
+ type: "button",
910
+ size: "icon-sm",
911
+ variant: "ghost",
912
+ "aria-label": `Remove the ${label.toLowerCase()} limit`,
913
+ onClick: onRemove,
914
+ children: /* @__PURE__ */ jsx(XIcon, { "aria-hidden": "true" })
915
+ }
916
+ ) : null
917
+ ] });
918
+ }
919
+ function OutsideModelLine({ workspaceId, model }) {
920
+ const catalog = useWorkspaceModelCatalog(workspaceId);
921
+ const label = catalog.rows.find((row) => row.id === model)?.label ?? model;
922
+ return /* @__PURE__ */ jsxs("p", { className: "text-xs text-fg-muted", children: [
923
+ "People outside the workspace use ",
924
+ label,
925
+ " (paid with credits)."
926
+ ] });
927
+ }
928
+ function SiteReadiness({
929
+ warnings,
930
+ access,
931
+ onFix
932
+ }) {
933
+ const [fixing, setFixing] = useState(null);
934
+ const { notices, problems } = splitReadinessWarnings(warnings);
935
+ return /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-3", children: [
936
+ notices.map((notice) => /* @__PURE__ */ jsxs(Notice, { children: [
937
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-fg", children: notice.message }),
938
+ /* @__PURE__ */ jsx("p", { className: "text-xs leading-[18px]", children: notice.suggestion })
939
+ ] }, `${notice.code}:${notice.message}`)),
940
+ problems.length > 0 ? /* @__PURE__ */ jsx(Disclosure, { title: readinessTitle(problems, access), children: /* @__PURE__ */ jsx("ul", { className: "flex min-w-0 flex-col gap-3 pt-1", children: problems.map((warning, index) => /* @__PURE__ */ jsxs(
941
+ "li",
942
+ {
943
+ className: "flex min-w-0 items-start justify-between gap-3",
944
+ children: [
945
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
946
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-fg", children: warning.message }),
947
+ /* @__PURE__ */ jsx("p", { className: "text-xs leading-[18px] text-fg-muted", children: warning.suggestion })
948
+ ] }),
949
+ warning.fix ? /* @__PURE__ */ jsx(
950
+ Button,
951
+ {
952
+ type: "button",
953
+ size: "sm",
954
+ variant: "outline",
955
+ disabled: fixing !== null,
956
+ onClick: () => {
957
+ setFixing(index);
958
+ void onFix(warning.fix).finally(() => setFixing(null));
959
+ },
960
+ className: "shrink-0 rounded-[10px] pointer-coarse:h-11",
961
+ children: fixing === index ? "Fixing\u2026" : "Fix"
962
+ }
963
+ ) : null
964
+ ]
965
+ },
966
+ `${warning.code}:${warning.message}`
967
+ )) }) }) : null
968
+ ] });
969
+ }
970
+ function SiteReports({
971
+ client,
972
+ workspaceId,
973
+ siteId,
974
+ publication,
975
+ onTakeDown
976
+ }) {
977
+ const [reports, setReports] = useState(null);
978
+ const [failed, setFailed] = useState(false);
979
+ const openReports = publication.moderation.openReports;
980
+ useEffect(() => {
981
+ const abort = new AbortController();
982
+ setFailed(false);
983
+ client.listSiteAbuseReports(workspaceId, siteId, { signal: abort.signal }).then((response) => {
984
+ if (!abort.signal.aborted) setReports(response.reports.filter((r) => r.status === "open"));
985
+ }).catch(() => {
986
+ if (!abort.signal.aborted) setFailed(true);
987
+ });
988
+ return () => abort.abort();
989
+ }, [client, openReports, siteId, workspaceId]);
990
+ const close = async (report, status) => {
991
+ try {
992
+ await client.updateSiteAbuseReport(workspaceId, siteId, report.id, { status });
993
+ setReports((current) => current?.filter((item) => item.id !== report.id) ?? null);
994
+ toast.success(status === "dismissed" ? "Report dismissed" : "Report marked as handled");
995
+ } catch (error) {
996
+ toast.error("Couldn't update the report", { description: userErrorText(error) });
997
+ }
998
+ };
999
+ return /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-2", children: [
1000
+ /* @__PURE__ */ jsx(
1001
+ SettingRow,
1002
+ {
1003
+ label: "Reports",
1004
+ description: failed ? "Couldn't load reports." : reports === null ? "Loading reports\u2026" : reports.length === 0 ? "No open reports." : `${reports.length} open`,
1005
+ control: publication.status === "suspended" ? void 0 : /* @__PURE__ */ jsx(
1006
+ Button,
1007
+ {
1008
+ type: "button",
1009
+ size: "sm",
1010
+ variant: "outline",
1011
+ onClick: onTakeDown,
1012
+ className: "rounded-[10px] text-danger hover:text-danger pointer-coarse:h-11",
1013
+ children: "Take down\u2026"
1014
+ }
1015
+ )
1016
+ }
1017
+ ),
1018
+ reports && reports.length > 0 ? /* @__PURE__ */ jsx(RowList, { label: "Open reports", flush: true, children: reports.map((report) => /* @__PURE__ */ jsx(
1019
+ ListRow,
1020
+ {
1021
+ leading: reportRowLeading,
1022
+ title: abuseCategoryLabel(report.category),
1023
+ description: report.message || void 0,
1024
+ meta: [
1025
+ report.contactEmail ?? "Anonymous",
1026
+ /* @__PURE__ */ jsx(RelativeTime, { date: report.createdAt }, "created")
1027
+ ],
1028
+ menuLabel: `Actions for the ${abuseCategoryLabel(report.category)} report`,
1029
+ menu: /* @__PURE__ */ jsxs(Fragment, { children: [
1030
+ /* @__PURE__ */ jsxs(DropdownMenuItem, { onSelect: () => void close(report, "actioned"), children: [
1031
+ /* @__PURE__ */ jsx(CheckIcon, {}),
1032
+ "Mark as handled"
1033
+ ] }),
1034
+ /* @__PURE__ */ jsx(DropdownMenuItem, { onSelect: () => void close(report, "dismissed"), children: "Dismiss" })
1035
+ ] })
1036
+ },
1037
+ report.id
1038
+ )) }) : null
1039
+ ] });
1040
+ }
1041
+ function TakedownDialog({
1042
+ open,
1043
+ onOpenChange,
1044
+ hostname,
1045
+ onTakeDown
1046
+ }) {
1047
+ const [reason, setReason] = useState("");
1048
+ const [error, setError] = useState(null);
1049
+ useEffect(() => {
1050
+ if (open) {
1051
+ setReason("");
1052
+ setError(null);
1053
+ }
1054
+ }, [open]);
1055
+ return /* @__PURE__ */ jsx(
1056
+ FormDialog,
1057
+ {
1058
+ open,
1059
+ onOpenChange,
1060
+ size: "sm",
1061
+ title: "Take this app down?",
1062
+ description: `${hostname} shows a takedown notice right away. You can restore it later.`,
1063
+ submitLabel: "Take down",
1064
+ pendingLabel: "Taking down\u2026",
1065
+ tone: "destructive",
1066
+ onSubmit: async () => {
1067
+ if (!reason.trim()) {
1068
+ setError("Say why, for the record.");
1069
+ return false;
1070
+ }
1071
+ await onTakeDown(reason.trim());
1072
+ },
1073
+ children: /* @__PURE__ */ jsx(Field, { label: "Reason", error, children: /* @__PURE__ */ jsx(
1074
+ TextArea,
1075
+ {
1076
+ value: reason,
1077
+ maxLength: 2e3,
1078
+ onChange: (event) => {
1079
+ setError(null);
1080
+ setReason(event.target.value);
1081
+ }
1082
+ }
1083
+ ) })
1084
+ }
1085
+ );
1086
+ }
1087
+
1088
+ export {
1089
+ useSitePublication,
1090
+ SitePublishButton,
1091
+ sitePublicationHeader,
1092
+ SitePublishPage,
1093
+ PublishMore
1094
+ };
1095
+ //# sourceMappingURL=chunk-LEZGGRDQ.js.map