decocms 4.389.3 → 4.390.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/dist/client/assets/{AlertCircle-CZgJU8hk.js → AlertCircle-DIleECAO.js} +1 -1
  2. package/dist/client/assets/{AreaChart-4r4BNLYX.js → AreaChart-Dcvvxh7Y.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DhxCKHos.js → ArrowLeft-BQdhx2Mc.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-_xtmiHEF.js → ArrowRight-C0GCvnPO.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BwaH-bh6.js → ArrowUp-BMtV26Mz.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-BMUOPwI_.js → CartesianChart-fEiWB8Dp.js} +1 -1
  7. package/dist/client/assets/{Check-CtmIaXgC.js → Check-DRrZD4Sq.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-D2P1mu3F.js → CheckCircle-Bo8c4lL0.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-CyyD7MJn.js → ChevronUp-BN0TeZdP.js} +1 -1
  10. package/dist/client/assets/{Copy01-B3IMMOKh.js → Copy01-BT6z7ZQQ.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-md1P0gzk.js → CreditCard01-DVV_ZsCa.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-CCR-YCOc.js → DotsVertical-DfMw3lkW.js} +1 -1
  13. package/dist/client/assets/{Download01-DvdgweoY.js → Download01-BmFUB2xE.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-kTZLTiOh.js → ErrorBarContext-DMVbXYkP.js} +1 -1
  15. package/dist/client/assets/{Eye-tQWA9lCZ.js → Eye-DXw_s1Cm.js} +1 -1
  16. package/dist/client/assets/{Globe04-D2iVj_TG.js → Globe04-ugZLbuIE.js} +1 -1
  17. package/dist/client/assets/{Image01-CwALg1a4.js → Image01-DDFibjE3.js} +1 -1
  18. package/dist/client/assets/{Key01-CGZM8V37.js → Key01-BPjkSgKb.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft--CSq68Va.js → LayoutLeft-B94Wve5b.js} +1 -1
  20. package/dist/client/assets/{Line-x5_dqhML.js → Line-C_3dc8Fz.js} +1 -1
  21. package/dist/client/assets/{Link01-CpHtaXY6.js → Link01-O7jcIMgL.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-JGVFU9rY.js → LinkExternal01-B1unTZnq.js} +1 -1
  23. package/dist/client/assets/{Monitor01-B4CSzOr6.js → Monitor01-a2J2JKd5.js} +1 -1
  24. package/dist/client/assets/{Package-B-4JMCkY.js → Package-CdoCtMvg.js} +1 -1
  25. package/dist/client/assets/{Palette-B4w2mE4d.js → Palette-CycMgJho.js} +1 -1
  26. package/dist/client/assets/{Plus-DOI9wakW.js → Plus-D1cZZn8U.js} +1 -1
  27. package/dist/client/assets/{SearchLg-0fHGMTGh.js → SearchLg-O_9EykPH.js} +1 -1
  28. package/dist/client/assets/{SearchMd-BoetaL4Y.js → SearchMd-DrIRniNc.js} +1 -1
  29. package/dist/client/assets/{Sector-Cvr3MZNh.js → Sector-T4EO3BRZ.js} +1 -1
  30. package/dist/client/assets/{Share07-Dx4iZESB.js → Share07-CveFLZ1M.js} +1 -1
  31. package/dist/client/assets/{Stars01-Dm3CFp2u.js → Stars01-Did1svMN.js} +1 -1
  32. package/dist/client/assets/{Sun-Bq352qjl.js → Sun-32REGP_l.js} +1 -1
  33. package/dist/client/assets/{Tool01-4DAbUoNs.js → Tool01-CfuRDLuO.js} +1 -1
  34. package/dist/client/assets/{Trash01-BiPmRbe2.js → Trash01-UuilHlOp.js} +1 -1
  35. package/dist/client/assets/{Upload01-DL0grgTa.js → Upload01-DWdtMUnK.js} +1 -1
  36. package/dist/client/assets/{User01-jL_Upcq0.js → User01-BH-9UAFf.js} +1 -1
  37. package/dist/client/assets/{UserSquare-CG9zonIL.js → UserSquare-DNofESoQ.js} +1 -1
  38. package/dist/client/assets/{Users01-BZ_Cu-tk.js → Users01-88zgeg9Z.js} +1 -1
  39. package/dist/client/assets/{X-BXzWjoaJ.js → X-B9qowSuy.js} +1 -1
  40. package/dist/client/assets/{XCircle-D-Aq9OMT.js → XCircle-BaLe-WrJ.js} +1 -1
  41. package/dist/client/assets/{XClose-ZnbMEO-2.js → XClose-CZ8QMEvw.js} +1 -1
  42. package/dist/client/assets/{Zap-D8xM5bbr.js → Zap-B_Jp5KVu.js} +1 -1
  43. package/dist/client/assets/{ZoomOut-CEOwwH34.js → ZoomOut-B1ZE8qec.js} +1 -1
  44. package/dist/client/assets/{access-gate-gTVIdkvk.js → access-gate-DscR-bsQ.js} +1 -1
  45. package/dist/client/assets/{add-connection-dialog-B_OoIhEU.js → add-connection-dialog-QXnYSLA7.js} +1 -1
  46. package/dist/client/assets/{agent-analytics-BVuZU0kp.js → agent-analytics-Dzc2ZAZd.js} +1 -1
  47. package/dist/client/assets/agent-app-Ce-w0zKY.js +1 -0
  48. package/dist/client/assets/{agent-assets-DunxHoUt.js → agent-assets-B6nLETiH.js} +1 -1
  49. package/dist/client/assets/{agent-automation-itWhmy47.js → agent-automation-Cn5vrcNs.js} +1 -1
  50. package/dist/client/assets/{agent-automations-B_iqWE-s.js → agent-automations-CgWEH9q3.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-DJiZA-eT.js → agent-connect-sources-BLb45__q.js} +1 -1
  52. package/dist/client/assets/agent-deck-DLPNS7GA.js +1 -0
  53. package/dist/client/assets/{agent-e2e-C6_2yKrt.js → agent-e2e-TmVf9IYe.js} +1 -1
  54. package/dist/client/assets/{agent-experiments-B-KHbmuz.js → agent-experiments-Liv-zbXM.js} +1 -1
  55. package/dist/client/assets/agent-file-D6Zh386o.js +1 -0
  56. package/dist/client/assets/{agent-git-CtPSRwK-.js → agent-git-C2HJviFO.js} +1 -1
  57. package/dist/client/assets/{agent-hosting-CDmmWeCe.js → agent-hosting-Bg_TtJeb.js} +1 -1
  58. package/dist/client/assets/{agent-icon-lfrVH-OK.js → agent-icon-BXDfHtVM.js} +1 -1
  59. package/dist/client/assets/agent-library-file-CH6771FT.js +1 -0
  60. package/dist/client/assets/{agent-monitor-DAUmzJS6.js → agent-monitor-qJHIu9n-.js} +1 -1
  61. package/dist/client/assets/{agent-overview-CIAbKs8U.js → agent-overview-Dd76Hmnc.js} +1 -1
  62. package/dist/client/assets/agent-settings-CRbKxksO.js +1 -0
  63. package/dist/client/assets/agent-site-editor-9Y3R_xpF.js +24 -0
  64. package/dist/client/assets/agent-site-editor-code-_YVH4S1b.js +2 -0
  65. package/dist/client/assets/{agent-site-editor-content-B3_V1yDe.js → agent-site-editor-content-DpMCNbyj.js} +2 -2
  66. package/dist/client/assets/agent-site-editor-preview-CmLpHkzD.js +518 -0
  67. package/dist/client/assets/agent-view-Do6pchh4.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-BKjvc_rQ.js → agent-view-guard-B4f7H4-v.js} +1 -1
  69. package/dist/client/assets/{agents-list-CtZRmfpt.js → agents-list-Cr-Kq4ri.js} +1 -1
  70. package/dist/client/assets/{ai-providers-NVm8dOEA.js → ai-providers-w2Ei6Gov.js} +1 -1
  71. package/dist/client/assets/{alert-IyATCOkZ.js → alert-CAeIKgsg.js} +1 -1
  72. package/dist/client/assets/{alert-dialog-C09wZ9of.js → alert-dialog-BQ7YDqVG.js} +1 -1
  73. package/dist/client/assets/{api-keys-EG9PbK9N.js → api-keys-BvXXeUsu.js} +1 -1
  74. package/dist/client/assets/api-keys-DHEfnLkb.js +1 -0
  75. package/dist/client/assets/app-editor-BXR-njir.js +1 -0
  76. package/dist/client/assets/{asset-utils-C6cJmK0c.js → asset-utils-C9X-Z7A6.js} +1 -1
  77. package/dist/client/assets/{auth-wbn4hkw_.js → auth-BnlPL6eu.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-BRxbWGOj.js → auth-catchall-C-aCQhS4.js} +1 -1
  79. package/dist/client/assets/{auth-entry-DHjilC9Z.js → auth-entry-D9wUFcoV.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-BvLbYHT9.js → auth-split-layout-WiP6i-LQ.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-B3tNLMug.js → authenticate-and-persist-oauth-iiuO4guj.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-D1K6muCb.js → automation-list-row-C-XwD7WY.js} +1 -1
  83. package/dist/client/assets/{automation-runs-DNXERnn5.js → automation-runs-2c2OE9Nu.js} +1 -1
  84. package/dist/client/assets/{automations-CHbvpFyN.js → automations-EdtP3Z09.js} +1 -1
  85. package/dist/client/assets/{autosend-YcrMa2dL.js → autosend-Cg2v6B4Z.js} +1 -1
  86. package/dist/client/assets/{avatar-BGUOlD6Z.js → avatar-BQNxscJa.js} +1 -1
  87. package/dist/client/assets/{badge-B0klsi-0.js → badge-BwVbjdvl.js} +1 -1
  88. package/dist/client/assets/{block-document-Dl37vVpL.js → block-document-DCky20wU.js} +1 -1
  89. package/dist/client/assets/{blocks-preview-workspace-context-PuE-5QVF.js → blocks-preview-workspace-context-B2yuR6jc.js} +1 -1
  90. package/dist/client/assets/{breadcrumb-Ccg4yCGn.js → breadcrumb-NkW-PGNe.js} +1 -1
  91. package/dist/client/assets/{buckets-DY7b2y6B.js → buckets-_QRhoG0L.js} +1 -1
  92. package/dist/client/assets/{build-improve-prompt-doc-CGLnUwL5.js → build-improve-prompt-doc-Bl7SRn0M.js} +1 -1
  93. package/dist/client/assets/{bulk-category-panel-D24OMSIK.js → bulk-category-panel-COyTAhey.js} +1 -1
  94. package/dist/client/assets/{calendar-DObs1MgB.js → calendar-CB1zm3q3.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-BaSTFNnb.js → capability-load-error-a5Vi87rX.js} +1 -1
  96. package/dist/client/assets/{category-editor-DUbNzg8f.js → category-editor-DuIz6r3J.js} +1 -1
  97. package/dist/client/assets/{chart-pGd0wMOK.js → chart-C00MAPcg.js} +1 -1
  98. package/dist/client/assets/{chat-context-D_-xGMp5.js → chat-context-BCloL478.js} +6 -6
  99. package/dist/client/assets/{chat-draft-BhXkcd-9.js → chat-draft-D4RLSZai.js} +1 -1
  100. package/dist/client/assets/{checkbox-CmtLPtxw.js → checkbox-C6TuRBhm.js} +1 -1
  101. package/dist/client/assets/{choose-editor-XS5QyhMo.js → choose-editor-DoxQsH9F.js} +1 -1
  102. package/dist/client/assets/claim-phase-copy-BrfTfUkY.js +1 -0
  103. package/dist/client/assets/{cli-auth-success--H9V4y3S.js → cli-auth-success-CbhZdN7_.js} +1 -1
  104. package/dist/client/assets/{client-icons-DFwFvPlp.js → client-icons-C_XzNrl0.js} +1 -1
  105. package/dist/client/assets/{collapsible-B4ohHlAo.js → collapsible-fDF6O7Qh.js} +1 -1
  106. package/dist/client/assets/{collection-detail-CzRYOslO.js → collection-detail-DFwFjmQm.js} +1 -1
  107. package/dist/client/assets/{collection-display-button-CLhaDLux.js → collection-display-button-UjSGWnur.js} +1 -1
  108. package/dist/client/assets/{collection-search-DORJq6xs.js → collection-search-BBLgZGH_.js} +1 -1
  109. package/dist/client/assets/{collection-table-wrapper-DJCXLoEN.js → collection-table-wrapper-DuiXZpDA.js} +1 -1
  110. package/dist/client/assets/{collection-tabs-B28RcavJ.js → collection-tabs-CDbg0gxV.js} +1 -1
  111. package/dist/client/assets/{combobox-DaZGX68U.js → combobox-DrG06POx.js} +1 -1
  112. package/dist/client/assets/{command-DBTJz5xT.js → command-DbXMp-zX.js} +1 -1
  113. package/dist/client/assets/{companion-mcps-section-BgVGYduQ.js → companion-mcps-section-DjhCGdN7.js} +1 -1
  114. package/dist/client/assets/{connect-C2kiAMas.js → connect-CS03cs0S.js} +1 -1
  115. package/dist/client/assets/{connect-layout-B1XKesPQ.js → connect-layout-DrxsZ_Kp.js} +1 -1
  116. package/dist/client/assets/{connection-BQDj1IIX.js → connection-Bh_KNjcC.js} +1 -1
  117. package/dist/client/assets/{connection-card-B_7fwBDU.js → connection-card-D4W0euzL.js} +1 -1
  118. package/dist/client/assets/{connection-detail-BET8tkPI.js → connection-detail-DQLpxW1H.js} +1 -1
  119. package/dist/client/assets/{connection-form-helpers-Dw-dC2Mh.js → connection-form-helpers--Om_HgOd.js} +1 -1
  120. package/dist/client/assets/{connections-DajVIO20.js → connections-CRYBNaFW.js} +1 -1
  121. package/dist/client/assets/{create-organization-dialog-6sXTaltD.js → create-organization-dialog-BNFSXECP.js} +1 -1
  122. package/dist/client/assets/{decofile-api-DajycMLz.js → decofile-api-DjA_ep2W.js} +1 -1
  123. package/dist/client/assets/{decopilot-BlfgUUGT.js → decopilot-CFOirYff.js} +1 -1
  124. package/dist/client/assets/{dialog-kum5ViQ6.js → dialog-CoPZcZvZ.js} +1 -1
  125. package/dist/client/assets/{discover-CdnCzK0t.js → discover-Dp0lLVuP.js} +1 -1
  126. package/dist/client/assets/{domain-settings-Cp82M0VS.js → domain-settings-Dk6tS1Ge.js} +1 -1
  127. package/dist/client/assets/{download-app-dialog-DkOZub51.js → download-app-dialog-ASxiCVBK.js} +1 -1
  128. package/dist/client/assets/{drawer-48frnv4M.js → drawer-yj-3Wmq7.js} +1 -1
  129. package/dist/client/assets/{editor-CII3_h7L.js → editor-HOIPs2p0.js} +1 -1
  130. package/dist/client/assets/{empty-state-ClB_soQ9.js → empty-state-B-udIfuU.js} +1 -1
  131. package/dist/client/assets/{empty-state-Cqqx2czS.js → empty-state-BLD4BbT5.js} +1 -1
  132. package/dist/client/assets/{extract-connection-data-iZD-iMqD.js → extract-connection-data-BzpEGbr4.js} +1 -1
  133. package/dist/client/assets/{feature-gate-6ADR60zr.js → feature-gate-BakylUBw.js} +1 -1
  134. package/dist/client/assets/{feature-paywall-DlJm-QYo.js → feature-paywall-CXCuIyTC.js} +1 -1
  135. package/dist/client/assets/{file-explorer-BVi3hxRi.js → file-explorer-25MWkjJR.js} +1 -1
  136. package/dist/client/assets/{file-preview-BNa_FqIH.js → file-preview-Bm_PoMVX.js} +1 -1
  137. package/dist/client/assets/{file-share-button-K_cIesJO.js → file-share-button-C6jErFPW.js} +1 -1
  138. package/dist/client/assets/{file-type-icon-9fuGMe23.js → file-type-icon-CbcYnV8z.js} +1 -1
  139. package/dist/client/assets/{folder-icon-DxjYTKMQ.js → folder-icon-CRvZWqsn.js} +1 -1
  140. package/dist/client/assets/{form-09c7do_j.js → form-BDgKH2cq.js} +1 -1
  141. package/dist/client/assets/{gateway-client-DKjtU5zk.js → gateway-client-WQKWr_oj.js} +1 -1
  142. package/dist/client/assets/{general-ChUWdZ51.js → general-C2eNiDBv.js} +1 -1
  143. package/dist/client/assets/{github-icon-D9PaNh_w.js → github-icon-DGq1LUIO.js} +1 -1
  144. package/dist/client/assets/{home-Dwq6GRIZ.js → home-C4n_K9Tw.js} +1 -1
  145. package/dist/client/assets/{hooks-CG4YUOnh.js → hooks-BEvLe8iO.js} +1 -1
  146. package/dist/client/assets/{hooks-0UwJeoRz.js → hooks-D6Fhyr-1.js} +1 -1
  147. package/dist/client/assets/{icon-button-Dxgka1SG.js → icon-button-ByKq6hZV.js} +1 -1
  148. package/dist/client/assets/{index-BzW7m_Q3.js → index--lqKO6Xr.js} +1 -1
  149. package/dist/client/assets/{index-ekfvnFP1.js → index-BU8SPACW.js} +1 -1
  150. package/dist/client/assets/{index-BQlthii9.js → index-BVKEwYqd.js} +1 -1
  151. package/dist/client/assets/{index-DaVnrnUl.js → index-BlyOa4OJ.js} +1 -1
  152. package/dist/client/assets/{index-55En7ztP.js → index-BrgfjVMm.js} +5 -5
  153. package/dist/client/assets/{index-CwAQ_Jyl.js → index-C6QhwzBW.js} +1 -1
  154. package/dist/client/assets/{index-C8QVc4YQ.js → index-CBwF-MmM.js} +1 -1
  155. package/dist/client/assets/{index-Cpb95l7m.js → index-CQlW-Wjq.js} +1 -1
  156. package/dist/client/assets/{index-3QjKRG5m.js → index-DAOhRawo.js} +1 -1
  157. package/dist/client/assets/{index-BEGGXvaS.js → index-DHKUv2tb.js} +1 -1
  158. package/dist/client/assets/{index-CkSi5n2n.js → index-FY1Y-vNV.js} +1 -1
  159. package/dist/client/assets/{index-AKCMPzOF.js → index-bKUiQGmM.js} +1 -1
  160. package/dist/client/assets/{index-DwODaveX.js → index-k01YNVxK.js} +1 -1
  161. package/dist/client/assets/{index-BTCIcCLc.js → index-plsXo8Nf.js} +1 -1
  162. package/dist/client/assets/{index-redirect-BfRleCFQ.js → index-redirect-B-719u6E.js} +1 -1
  163. package/dist/client/assets/{infiniteQueryObserver-fVH2Dw3y.js → infiniteQueryObserver-CxlBrBav.js} +1 -1
  164. package/dist/client/assets/{infra-billing-Dc0HtmBi.js → infra-billing-CjRSOrP0.js} +1 -1
  165. package/dist/client/assets/{input-CXnRgD2G.js → input-B7CzAD4A.js} +1 -1
  166. package/dist/client/assets/{input-Bj2zRNKL.js → input-BBx6QcTy.js} +1 -1
  167. package/dist/client/assets/{input-DgRtooZL.js → input-DoDcn4Oa.js} +1 -1
  168. package/dist/client/assets/{integration-icon-CaSnOIi_.js → integration-icon-EpYn4ywU.js} +1 -1
  169. package/dist/client/assets/{label-BepsqMnw.js → label-oKE-JKCp.js} +1 -1
  170. package/dist/client/assets/{last-preview-page-DOgw82fm.js → last-preview-page-Cc4Ym6RB.js} +1 -1
  171. package/dist/client/assets/{layout-DYo6Qlq2.js → layout-CuwYS5iG.js} +1 -1
  172. package/dist/client/assets/{legacy-agents-deep-2pwHmCG2.js → legacy-agents-deep-W4CULte7.js} +1 -1
  173. package/dist/client/assets/{legacy-main-redirect-D4nvpeVi.js → legacy-main-redirect-DvOkkI-9.js} +1 -1
  174. package/dist/client/assets/{library-NDPchOoX.js → library-Du7aP9ab.js} +1 -1
  175. package/dist/client/assets/{login-B3dyclR0.js → login-C6o8E5Gx.js} +1 -1
  176. package/dist/client/assets/{markdown-qaw6jPt8.js → markdown-CMmcIMuG.js} +1 -1
  177. package/dist/client/assets/{mcp-app-renderer-BgUDujTC.js → mcp-app-renderer-CSgBYpWQ.js} +1 -1
  178. package/dist/client/assets/{mcp-oauth-D6HBYDLd.js → mcp-oauth-Ck4K80JQ.js} +1 -1
  179. package/dist/client/assets/{members-Cz7UTuaA.js → members-BXYPHyZl.js} +1 -1
  180. package/dist/client/assets/{message-templates-2orH35QR.js → message-templates-CofSWui8.js} +1 -1
  181. package/dist/client/assets/{mini-report-page-B2C8igIJ.js → mini-report-page-DA_m7gUn.js} +1 -1
  182. package/dist/client/assets/{mock-board-C5DMkSqP.js → mock-board-CIhU-pLr.js} +3 -3
  183. package/dist/client/assets/{monaco-editor-v2aLs7Br.js → monaco-editor-COmvGX00.js} +1 -1
  184. package/dist/client/assets/{monitoring-stats-row-B3qZ-HwL.js → monitoring-stats-row-zGcKxoaO.js} +1 -1
  185. package/dist/client/assets/{multi-select-gZtCAbvo.js → multi-select-Cjbu02fk.js} +1 -1
  186. package/dist/client/assets/{mustache-BT1EOW0h.js → mustache-AusOr2G7.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-z4PNptQ8.js → oauth-callback-YbJ6w3tz.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-ai-provider-Cr6puX-Q.js → oauth-callback-ai-provider-Bh5e0eL5.js} +1 -1
  189. package/dist/client/assets/{onboarding-HOit4zEm.js → onboarding-DeIWJUIk.js} +1 -1
  190. package/dist/client/assets/{optimistic-project-sidebar-views-DqMQv58w.js → optimistic-project-sidebar-views-CSpV1PYs.js} +1 -1
  191. package/dist/client/assets/{org-file-open-context-KDqfp9le.js → org-file-open-context-DtguTW2M.js} +1 -1
  192. package/dist/client/assets/{organization-choice-odzJfMK6.js → organization-choice-3GQF-2Bb.js} +1 -1
  193. package/dist/client/assets/{orgs-CIDSoW6d.js → orgs-C_tHFmcZ.js} +1 -1
  194. package/dist/client/assets/{page-seo-form-DHROvvdF.js → page-seo-form-C3J0sk3-.js} +1 -1
  195. package/dist/client/assets/{pair-CZkvDIZx.js → pair-B_E-hb3r.js} +1 -1
  196. package/dist/client/assets/{plan-ladder-j_b5lpk5.js → plan-ladder-Bszl-ys6.js} +1 -1
  197. package/dist/client/assets/{popover-pc7q2SI0.js → popover-Cwq-F3vl.js} +1 -1
  198. package/dist/client/assets/{post-calendar-BJSAtZmf.js → post-calendar-DQYHE3Nh.js} +1 -1
  199. package/dist/client/assets/{post-editor-CNsN05tS.js → post-editor-DnkSlyHR.js} +1 -1
  200. package/dist/client/assets/{preview-content-C3fgMWjf.js → preview-content-BoYJe_7h.js} +1 -1
  201. package/dist/client/assets/{preview-dialog-B6BYSj3U.js → preview-dialog-z6N6ouNl.js} +1 -1
  202. package/dist/client/assets/{primitives-DZxO5Qxs.js → primitives-t91zENNC.js} +1 -1
  203. package/dist/client/assets/{profile-_NJFJY29.js → profile-eImNDdTy.js} +1 -1
  204. package/dist/client/assets/{project-app-view-DQbgmbUs.js → project-app-view-BYJkyb_c.js} +1 -1
  205. package/dist/client/assets/{project-feed-DEP9hHr5.js → project-feed-B-I0fPIu.js} +1 -1
  206. package/dist/client/assets/{project-icon-DubTvgka.js → project-icon-C2OHTgfV.js} +1 -1
  207. package/dist/client/assets/project-reports-Dy4BB8vp.js +1 -0
  208. package/dist/client/assets/project-tasks-B-UjiYHE.js +1 -0
  209. package/dist/client/assets/{prompts-BePqJf1K.js → prompts-CWvC6THk.js} +1 -1
  210. package/dist/client/assets/record-editor-Cs7FEG1a.js +1 -0
  211. package/dist/client/assets/redirect-editor-BF7iTO_7.js +1 -0
  212. package/dist/client/assets/reports-D-OGcMpS.js +1 -0
  213. package/dist/client/assets/{reports-Ck-7VKvR.js → reports-OiTIgU_P.js} +1 -1
  214. package/dist/client/assets/{reports-onboarding-BVMnkqvF.js → reports-onboarding-DvV1L9mk.js} +1 -1
  215. package/dist/client/assets/{reports-tab-ByVgNc4C.js → reports-tab-VlkWO_eI.js} +2 -2
  216. package/dist/client/assets/{repositories-D__oH-ow.js → repositories-Ds-D0ZV_.js} +1 -1
  217. package/dist/client/assets/{repository-import-picker-C8WVxDC5.js → repository-import-picker-Bb-cM2jZ.js} +1 -1
  218. package/dist/client/assets/{repository-picker-Y34qL3TL.js → repository-picker-Bnx8U6PV.js} +1 -1
  219. package/dist/client/assets/{require-capability-B5oQvqNV.js → require-capability-DW8CuaB_.js} +1 -1
  220. package/dist/client/assets/{required-auth-layout-DnKdwzJB.js → required-auth-layout-BskWaDcO.js} +1 -1
  221. package/dist/client/assets/{reset-password-DENZExd1.js → reset-password-CfSOYcZN.js} +1 -1
  222. package/dist/client/assets/{resizable-CkTcbT7d.js → resizable-u5ZPWzxP.js} +1 -1
  223. package/dist/client/assets/{review-settings-C9sa13P0.js → review-settings-B1Xgo_eg.js} +1 -1
  224. package/dist/client/assets/{rich-text-link-control-BeQAyGLm.js → rich-text-link-control-CDOF3pGO.js} +1 -1
  225. package/dist/client/assets/{roles-Duw5_ecT.js → roles-BNtiAGZJ.js} +1 -1
  226. package/dist/client/assets/{route-lutBopBm.js → route-BwMVq_-V.js} +1 -1
  227. package/dist/client/assets/{route-DkNnjECu.js → route-DF9rTtAl.js} +1 -1
  228. package/dist/client/assets/{route-page-header-B6MAx63Q.js → route-page-header-BUANMI6P.js} +1 -1
  229. package/dist/client/assets/{route-B8JZ5d0m.js → route-yVxRc46E.js} +1 -1
  230. package/dist/client/assets/{runnable-block-editor-Dx2trdx_.js → runnable-block-editor-BnvgMObN.js} +4 -4
  231. package/dist/client/assets/{sandbox-lifecycle-context-UujXRAe9.js → sandbox-lifecycle-context-DjYBSKDf.js} +1 -1
  232. package/dist/client/assets/{schema-Di8O1fzp.js → schema--qI-6j1O.js} +1 -1
  233. package/dist/client/assets/{scroll-area-UewHMYBQ.js → scroll-area-DuY7fxFW.js} +1 -1
  234. package/dist/client/assets/{search-input-M4nbN9Zq.js → search-input-CBCVX3eV.js} +1 -1
  235. package/dist/client/assets/{search-toggle-n2DhDitt.js → search-toggle-Cw4tE4HV.js} +1 -1
  236. package/dist/client/assets/{secret-picker-Cq0CTh5L.js → secret-picker-CUPNAGhK.js} +1 -1
  237. package/dist/client/assets/{secrets-DjT_tWBd.js → secrets-Bf7-cFVq.js} +1 -1
  238. package/dist/client/assets/{sections-editor-BXoS4qpd.js → sections-editor-Dqex_kiD.js} +1 -1
  239. package/dist/client/assets/{select-CfMWBPIY.js → select-BAj8GDmF.js} +1 -1
  240. package/dist/client/assets/{select-model-CSrQiEM7.js → select-model-BKT2mXow.js} +1 -1
  241. package/dist/client/assets/{seo-editor-Cyyy8cxJ.js → seo-editor--WzhnEwD.js} +1 -1
  242. package/dist/client/assets/{separator-Cwe0WWDx.js → separator-DVzSnA7b.js} +1 -1
  243. package/dist/client/assets/{settings-tab-7IoSTW3Q.js → settings-tab-RuDovaRa.js} +1 -1
  244. package/dist/client/assets/{sheet-DbGZdyBF.js → sheet-SUCO-1Zs.js} +1 -1
  245. package/dist/client/assets/{shell-layout-BaG46qK7.js → shell-layout-DQ3b0lWe.js} +1 -1
  246. package/dist/client/assets/{sidebar-D4j5YraK.js → sidebar-DVrzkoEH.js} +1 -1
  247. package/dist/client/assets/{skill-preview-o_wxsmRr.js → skill-preview-CFM4rZU7.js} +1 -1
  248. package/dist/client/assets/{skills-Cv2g9fxx.js → skills-Cm46QsJv.js} +1 -1
  249. package/dist/client/assets/{sso-DOLQj3tc.js → sso-8oyCIxbf.js} +1 -1
  250. package/dist/client/assets/{switch-Cl6BoZlN.js → switch-D2AGp3q0.js} +1 -1
  251. package/dist/client/assets/{synced-repos-CmKn7pi4.js → synced-repos-CD_WTV4s.js} +1 -1
  252. package/dist/client/assets/{table-D9BGz2ED.js → table-WeehGDhl.js} +1 -1
  253. package/dist/client/assets/{tabs-wqWmr8FS.js → tabs-5x2EsLv4.js} +1 -1
  254. package/dist/client/assets/{task-board-BMNympDy.js → task-board-C50ImE2y.js} +1 -1
  255. package/dist/client/assets/{task-route-DEUopKQn.js → task-route-CkyJIDOx.js} +1 -1
  256. package/dist/client/assets/{task-status-CZomK1I7.js → task-status-UHslF33v.js} +1 -1
  257. package/dist/client/assets/{taskboard-analytics-Cc5fJo76.js → taskboard-analytics-DSSLMdFb.js} +1 -1
  258. package/dist/client/assets/{tasks-CyeL5eYk.js → tasks-DHYecYax.js} +1 -1
  259. package/dist/client/assets/tasks-DjWeZ1IA.js +1 -0
  260. package/dist/client/assets/{textarea-loJj3FNw.js → textarea-BnU6QmoE.js} +1 -1
  261. package/dist/client/assets/{thread-button-D9hEh4sJ.js → thread-button-B3xx0VtU.js} +1 -1
  262. package/dist/client/assets/{thread-intent-CkzD5zg6.js → thread-intent-C6XSh_D3.js} +1 -1
  263. package/dist/client/assets/{thread-route-BYtQhHIh.js → thread-route-BmzRXaVx.js} +1 -1
  264. package/dist/client/assets/{thread-route-CYWfWYe4.js → thread-route-CJrLA-ee.js} +1 -1
  265. package/dist/client/assets/{thread-sheet-body-DCqWZI77.js → thread-sheet-body-D0E1gQpO.js} +1 -1
  266. package/dist/client/assets/{toggle-group-BlcpLDIu.js → toggle-group-JO1JgH5a.js} +1 -1
  267. package/dist/client/assets/{toolbar-icon-button-BIut-xjk.js → toolbar-icon-button-DXNOeW_z.js} +1 -1
  268. package/dist/client/assets/{tooltip-DMVFyQ4S.js → tooltip-WzWLbyZq.js} +1 -1
  269. package/dist/client/assets/{track-D6dTuuTR.js → track-D7IKOGBR.js} +1 -1
  270. package/dist/client/assets/{types-CDh5aMDK.js → types-RaQT_IEX.js} +1 -1
  271. package/dist/client/assets/{usage-stats-iZJwd_tX.js → usage-stats-BaxngK_D.js} +1 -1
  272. package/dist/client/assets/{use-ai-providers-Cv_1DCZ7.js → use-ai-providers-Dq0Ep_3l.js} +1 -1
  273. package/dist/client/assets/{use-automations-BcyiJnyn.js → use-automations-COX0fcgz.js} +1 -1
  274. package/dist/client/assets/{use-autosave-BRI-zN8N.js → use-autosave-BERNHhO9.js} +1 -1
  275. package/dist/client/assets/{use-connect-companion-CBFf90_T.js → use-connect-companion-D_BJZumX.js} +1 -1
  276. package/dist/client/assets/{use-connection-Cu39vpqH.js → use-connection-B11x8Y5V.js} +1 -1
  277. package/dist/client/assets/{use-copy-BEeiF0AV.js → use-copy-DwTK-qVh.js} +1 -1
  278. package/dist/client/assets/{use-create-virtual-mcp-DgYCB3bn.js → use-create-virtual-mcp-BRTcRrPf.js} +1 -1
  279. package/dist/client/assets/{use-date-fns-locale-DaYGwzEJ.js → use-date-fns-locale-nt6p03GG.js} +1 -1
  280. package/dist/client/assets/{use-debounced-autosave-Dw8B_54l.js → use-debounced-autosave-BpSPbeao.js} +1 -1
  281. package/dist/client/assets/{use-debounced-value-D6zpu8Hv.js → use-debounced-value-CjsHq8Vl.js} +1 -1
  282. package/dist/client/assets/{use-deco-credits-oTQTNk97.js → use-deco-credits-DXfzxvoO.js} +1 -1
  283. package/dist/client/assets/{use-decopilot-events-CdxW1w8H.js → use-decopilot-events-64DqQFG6.js} +1 -1
  284. package/dist/client/assets/{use-delete-connection-DeSRt0JP.js → use-delete-connection-8S4pYk4a.js} +1 -1
  285. package/dist/client/assets/{use-deployment-admin-CNnh-Kkd.js → use-deployment-admin-CCJWqCfM.js} +1 -1
  286. package/dist/client/assets/{use-entitlements-z6xQqbdd.js → use-entitlements-g7KOEkrp.js} +1 -1
  287. package/dist/client/assets/{use-fast-preview-draft-url-1t1weqx-.js → use-fast-preview-draft-url-DCCeUHpe.js} +1 -1
  288. package/dist/client/assets/{use-file-configs-69h6r6L4.js → use-file-configs-BD0IRTDw.js} +1 -1
  289. package/dist/client/assets/{use-in-settings-BSMhLH6O.js → use-in-settings-GUedr1XF.js} +1 -1
  290. package/dist/client/assets/{use-infinite-scroll-RAuxlSZ2.js → use-infinite-scroll-vxoiRb7T.js} +1 -1
  291. package/dist/client/assets/{use-join-requests-D6i8ToOA.js → use-join-requests-BuoeDzuz.js} +1 -1
  292. package/dist/client/assets/{use-main-panel-tabs-B6vDMnVR.js → use-main-panel-tabs-BQ8rOQGV.js} +1 -1
  293. package/dist/client/assets/{use-mcp-auth-status-BhesqFqQ.js → use-mcp-auth-status-8HzRdmmW.js} +1 -1
  294. package/dist/client/assets/{use-mcp-client-Cms886Jn.js → use-mcp-client-Db5zI8Z3.js} +1 -1
  295. package/dist/client/assets/{use-mcp-prompts-BBWdCqCu.js → use-mcp-prompts-CqP9Y1Vz.js} +1 -1
  296. package/dist/client/assets/{use-mcp-tools-CjaqPJIF.js → use-mcp-tools-BdsJuvQS.js} +1 -1
  297. package/dist/client/assets/{use-members-th9IwsK9.js → use-members-xI_s8ZPd.js} +1 -1
  298. package/dist/client/assets/{use-mobile-Dn9gA5u7.js → use-mobile-COTn4qeO.js} +1 -1
  299. package/dist/client/assets/{use-navigate-to-agent-DuSknbWt.js → use-navigate-to-agent-Hc1nbYTr.js} +1 -1
  300. package/dist/client/assets/{use-open-billing-url-DxXFNXWq.js → use-open-billing-url-BkxX6uwx.js} +1 -1
  301. package/dist/client/assets/{use-org-auth-client-djm1iguw.js → use-org-auth-client-BiZspqgA.js} +1 -1
  302. package/dist/client/assets/{use-org-fs-lSldslaf.js → use-org-fs-Di8X4LFM.js} +1 -1
  303. package/dist/client/assets/{use-org-repo-syncs-CEGNAE63.js → use-org-repo-syncs-RBKt533u.js} +1 -1
  304. package/dist/client/assets/{use-org-sso-CjKBHTz5.js → use-org-sso-BotkztEO.js} +1 -1
  305. package/dist/client/assets/{use-organization-roles-B0boiYIQ.js → use-organization-roles-CTBz_OMd.js} +1 -1
  306. package/dist/client/assets/{use-organization-settings-l5kLl_Rb.js → use-organization-settings-DeroNipc.js} +1 -1
  307. package/dist/client/assets/{use-panel-navigate-DnMcaOE4.js → use-panel-navigate-CHXWRsa2.js} +1 -1
  308. package/dist/client/assets/{use-project-native-view-presence-DdJNWqKh.js → use-project-native-view-presence-B42AMjjw.js} +1 -1
  309. package/dist/client/assets/{use-project-scope-anVSXtPA.js → use-project-scope-Cboqds94.js} +1 -1
  310. package/dist/client/assets/{use-releases-DqroGUSq.js → use-releases-yOjVhqYk.js} +1 -1
  311. package/dist/client/assets/{use-reports-diagnostic-Weuz2RQY.js → use-reports-diagnostic-ChAtElJm.js} +1 -1
  312. package/dist/client/assets/{use-route-default-main-ecqvw_nG.js → use-route-default-main-kOms9vXt.js} +1 -1
  313. package/dist/client/assets/{use-secrets-CO2Ng5ro.js → use-secrets-C5liL9o_.js} +1 -1
  314. package/dist/client/assets/use-section-preview-base-BA6oFsyg.js +1 -0
  315. package/dist/client/assets/{use-session-runtime-DCV4jSue.js → use-session-runtime-DCYLvb6V.js} +1 -1
  316. package/dist/client/assets/{use-tags-OS8YpN_d.js → use-tags-CgoYqsxT.js} +1 -1
  317. package/dist/client/assets/{use-task-board-analytics-x4yi31c7.js → use-task-board-analytics-D9300BWY.js} +1 -1
  318. package/dist/client/assets/{use-task-metadata-uvO1hPiJ.js → use-task-metadata-BYwpD1kd.js} +1 -1
  319. package/dist/client/assets/{use-thread-outputs-BrSxP-rL.js → use-thread-outputs-BpKQ7Zo1.js} +1 -1
  320. package/dist/client/assets/{use-virtual-mcp-JkVFc3Nc.js → use-virtual-mcp-Dtuvom2e.js} +1 -1
  321. package/dist/client/assets/useInfiniteQuery-D679Q3IA.js +1 -0
  322. package/dist/client/assets/{useQueries-D_O3UpnN.js → useQueries-BnlFxjw5.js} +1 -1
  323. package/dist/client/assets/useSuspenseInfiniteQuery-zdGPgEpV.js +1 -0
  324. package/dist/client/assets/{users-CkxFGFKM.js → users-Du6MU5ru.js} +1 -1
  325. package/dist/client/assets/{utils-zN7F5jln.js → utils-DsrrQ-SY.js} +1 -1
  326. package/dist/client/assets/{variant-calendar-CrJC2OUE.js → variant-calendar-DAhQEdUF.js} +1 -1
  327. package/dist/client/assets/{variant-matcher-override-CfKcmjaW.js → variant-matcher-override-DA3Efdln.js} +1 -1
  328. package/dist/client/assets/{view-mode-toggle-ByVPlcgG.js → view-mode-toggle-1hCOtltg.js} +1 -1
  329. package/dist/client/assets/{virtual-mcp-BQxhkmTI.js → virtual-mcp-BTvprhOr.js} +1 -1
  330. package/dist/client/index.html +1 -1
  331. package/dist/server/cli.js +1 -1
  332. package/dist/server/server.js +1 -1
  333. package/package.json +1 -1
  334. package/dist/client/assets/agent-app-BXB3XN3v.js +0 -1
  335. package/dist/client/assets/agent-deck-CzLJRubt.js +0 -1
  336. package/dist/client/assets/agent-file-VZhv6TvC.js +0 -1
  337. package/dist/client/assets/agent-library-file-D5Og66K3.js +0 -1
  338. package/dist/client/assets/agent-settings-DwVrYhYt.js +0 -1
  339. package/dist/client/assets/agent-site-editor-code-BgSRUkKU.js +0 -2
  340. package/dist/client/assets/agent-site-editor-preview-Bq8zCN6_.js +0 -518
  341. package/dist/client/assets/agent-site-editor-xOue0iMF.js +0 -24
  342. package/dist/client/assets/agent-view-DAVUldzg.js +0 -1
  343. package/dist/client/assets/api-keys-BdE9rbFS.js +0 -1
  344. package/dist/client/assets/app-editor-BZ3EuDKB.js +0 -1
  345. package/dist/client/assets/claim-phase-copy-njXeDF0h.js +0 -1
  346. package/dist/client/assets/project-reports-CDxQFME9.js +0 -1
  347. package/dist/client/assets/project-tasks-BAb79xXs.js +0 -1
  348. package/dist/client/assets/record-editor-XjmYcMaR.js +0 -1
  349. package/dist/client/assets/redirect-editor-ByXGFOJi.js +0 -1
  350. package/dist/client/assets/reports-CuuyZeE7.js +0 -1
  351. package/dist/client/assets/tasks-DVlOtz5d.js +0 -1
  352. package/dist/client/assets/use-section-preview-base-BTzlqbB_.js +0 -1
  353. package/dist/client/assets/useInfiniteQuery-CwWQ4nTA.js +0 -1
  354. package/dist/client/assets/useSuspenseInfiniteQuery-C8z5Z2Bp.js +0 -1
@@ -1 +1 @@
1
- import{c as z,j as t,B as K,h as G,ap as tt,aq as ie,b as W,E as Fe,r as D,Z as Oe,a0 as xe,d9 as st,d8 as Me,ao as ot,n as ze,P as ye,u as nt,L as te,t as lt,f as fe,c0 as Be}from"./index-55En7ztP.js";import{E as Le}from"./empty-state-ClB_soQ9.js";import{u as he}from"./use-mcp-client-Cms886Jn.js";import{F as re,a as it,b as ae,d as ce}from"./form-09c7do_j.js";import{I as ue}from"./input-CXnRgD2G.js";import{T as pe}from"./textarea-loJj3FNw.js";import{D as ge,O as rt,M as at}from"./index-BzW7m_Q3.js";import{bb as ct,U as dt,bl as mt,ae as ut,E as pt,F as xt,aF as ft,x as we,aj as ht}from"./agent-icon-lfrVH-OK.js";import{M as gt}from"./mcp-app-renderer-BgUDujTC.js";import{g as jt,M as Ce}from"./types-CDh5aMDK.js";import{a as bt,b as Nt,A as vt}from"./alert-IyATCOkZ.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-CfMWBPIY.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-DMVFyQ4S.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-Ccg4yCGn.js";import{i as yt}from"./AlertCircle-CZgJU8hk.js";import{a as wt}from"./Copy01-B3IMMOKh.js";import{i as Ct}from"./Sun-Bq352qjl.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-BhesqFqQ.js";import{a as Ve,u as qe}from"./use-connection-Cu39vpqH.js";import{u as Pt}from"./use-mcp-tools-CjaqPJIF.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-CaSnOIi_.js";import{f as kt,r as At}from"./chat-context-D_-xGMp5.js";import{a as Et}from"./shell-layout-BaG46qK7.js";import{M as Rt}from"./monaco-editor-v2aLs7Br.js";import{E as Ft}from"./empty-state-Cqqx2czS.js";import"./auth-wbn4hkw_.js";import"./label-BepsqMnw.js";import"./sidebar-D4j5YraK.js";import"./LayoutLeft--CSq68Va.js";import"./use-mobile-Dn9gA5u7.js";import"./sheet-DbGZdyBF.js";import"./X-BXzWjoaJ.js";import"./Key01-CGZM8V37.js";import"./extract-connection-data-iZD-iMqD.js";import"./metadata-D72DunRR.js";import"./connection-BQDj1IIX.js";import"./Plus-DOI9wakW.js";import"./index-Cpb95l7m.js";import"./index-3QjKRG5m.js";import"./index-CkSi5n2n.js";import"./index-BQlthii9.js";import"./popover-pc7q2SI0.js";import"./use-virtual-mcp-JkVFc3Nc.js";import"./Check-CtmIaXgC.js";import"./SearchMd-BoetaL4Y.js";import"./use-create-virtual-mcp-DgYCB3bn.js";import"./use-navigate-to-agent-DuSknbWt.js";import"./hooks-0UwJeoRz.js";import"./backoff-8mStPHYB.js";import"./task-board-BMNympDy.js";import"./schema-Di8O1fzp.js";import"./thread-intent-CkzD5zg6.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-4DAbUoNs.js";import"./ArrowUp-BwaH-bh6.js";import"./ArrowLeft-DhxCKHos.js";import"./ArrowRight-_xtmiHEF.js";import"./XCircle-D-Aq9OMT.js";import"./ZoomOut-CEOwwH34.js";import"./Globe04-D2iVj_TG.js";import"./CheckCircle-D2P1mu3F.js";import"./ChevronUp-CyyD7MJn.js";import"./UserSquare-CG9zonIL.js";import"./CreditCard01-md1P0gzk.js";import"./DotsVertical-CCR-YCOc.js";import"./Download01-DvdgweoY.js";import"./Eye-tQWA9lCZ.js";import"./Share07-Dx4iZESB.js";import"./XClose-ZnbMEO-2.js";import"./Image01-CwALg1a4.js";import"./Link01-CpHtaXY6.js";import"./LinkExternal01-JGVFU9rY.js";import"./Monitor01-B4CSzOr6.js";import"./Package-B-4JMCkY.js";import"./Palette-B4w2mE4d.js";import"./SearchLg-0fHGMTGh.js";import"./Stars01-Dm3CFp2u.js";import"./Trash01-BiPmRbe2.js";import"./Upload01-DL0grgTa.js";import"./User01-jL_Upcq0.js";import"./Users01-BZ_Cu-tk.js";import"./Zap-D8xM5bbr.js";import"./index-C8QVc4YQ.js";import"./badge-B0klsi-0.js";import"./mcp-oauth-D6HBYDLd.js";import"./use-panel-navigate-DnMcaOE4.js";import"./thread-route-BYtQhHIh.js";import"./use-project-scope-anVSXtPA.js";import"./autosend-YcrMa2dL.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-z6xQqbdd.js";import"./use-ai-providers-Cv_1DCZ7.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CdxW1w8H.js";import"./use-organization-settings-l5kLl_Rb.js";import"./avatar-BGUOlD6Z.js";import"./download-app-dialog-DkOZub51.js";import"./dialog-kum5ViQ6.js";import"./command-DBTJz5xT.js";import"./project-icon-DubTvgka.js";import"./required-auth-layout-DnKdwzJB.js";import"./use-org-sso-CjKBHTz5.js";import"./editor-CII3_h7L.js";function Re(s){const e=z.c(15),{onSave:l,onUndo:n,isDirty:m,isSaving:o,saveLabel:a,undoLabel:u}=s,d=a===void 0?"Save":a,r=u===void 0?"Undo":u;if(!m)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ct,{size:14}),e[0]=i):i=e[0];let h;e[1]!==o||e[2]!==n||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:n,disabled:o,"aria-label":r,children:[i,r]}),e[1]=o,e[2]=n,e[3]=r,e[4]=h):h=e[4];let p;e[5]!==o?(p=o?t.jsx(G,{className:"size-3.5"}):t.jsx(dt,{size:14}),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d||e[10]!==p?(x=t.jsxs(K,{variant:"default",size:"sm",onClick:l,disabled:o,"aria-label":d,children:[p,d]}),e[7]=o,e[8]=l,e[9]=d,e[10]=p,e[11]=x):x=e[11];let j;return e[12]!==h||e[13]!==x?(j=t.jsxs(t.Fragment,{children:[h,x]}),e[12]=h,e[13]=x,e[14]=j):j=e[14],j}tt({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ot(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),l=e>=0?s[e+1]:void 0;return l?decodeURIComponent(l):void 0}function Mt(s){const e=z.c(43),{form:l}=s,n=W();let m;e[0]!==n?(m=n("details.prompt.details"),e[0]=n,e[1]=m):m=e[1];let o;e[2]!==m?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[2]=m,e[3]=o):o=e[3];let a;e[4]!==n?(a=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...$,placeholder:n("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=n,e[5]=a):a=e[5];let u;e[6]!==l.control||e[7]!==a?(u=t.jsx(re,{control:l.control,name:"title",render:a}),e[6]=l.control,e[7]=a,e[8]=u):u=e[8];let d;e[9]!==n?(d=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...$,value:$.value??"",placeholder:n("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=n,e[10]=d):d=e[10];let r;e[11]!==l.control||e[12]!==d?(r=t.jsx(re,{control:l.control,name:"description",render:d}),e[11]=l.control,e[12]=d,e[13]=r):r=e[13];let i;e[14]!==u||e[15]!==r?(i=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,r]}),e[14]=u,e[15]=r,e[16]=i):i=e[16];let h;e[17]!==o||e[18]!==i?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,i]}),e[17]=o,e[18]=i,e[19]=h):h=e[19];let p;e[20]!==n?(p=n("details.prompt.message"),e[20]=n,e[21]=p):p=e[21];let x;e[22]!==p?(x=t.jsx("div",{className:"text-sm font-medium text-foreground",children:p}),e[22]=p,e[23]=x):x=e[23];let j;e[24]!==n?(j=n("details.prompt.messageDescription"),e[24]=n,e[25]=j):j=e[25];let f;e[26]!==j?(f=t.jsx("div",{className:"text-xs text-muted-foreground",children:j}),e[26]=j,e[27]=f):f=e[27];let b;e[28]!==n?(b=T=>{const{field:$}=T;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...$,value:$.value??"",placeholder:n("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=n,e[29]=b):b=e[29];let S;e[30]!==l.control||e[31]!==b?(S=t.jsx(re,{control:l.control,name:"body",render:b}),e[30]=l.control,e[31]=b,e[32]=S):S=e[32];let w;e[33]!==x||e[34]!==f||e[35]!==S?(w=t.jsxs("div",{className:"flex flex-col gap-2",children:[x,f,S]}),e[33]=x,e[34]=f,e[35]=S,e[36]=w):w=e[36];let C;e[37]!==w||e[38]!==h?(C=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,w]}),e[37]=w,e[38]=h,e[39]=C):C=e[39];let I;return e[40]!==l||e[41]!==C?(I=t.jsx(it,{...l,children:C}),e[40]=l,e[41]=C,e[42]=I):I=e[42],I}function zt(s){const e=z.c(35),{providerId:l,promptId:n}=s,m=Oe(),o=W(),{org:a}=xe(),u=l||null;let d;e[0]!==a.id||e[1]!==a.slug||e[2]!==u?(d={connectionId:u,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=u,e[3]=d):d=e[3];const r=he(d),i=st(l,"PROMPT",n,r),h=Me(l,"PROMPT",r),p=h.update.isPending;let x;e[4]!==i?(x=i?{title:i.title,description:i.description??null,body:me(i)}:void 0,e[4]=i,e[5]=x):x=e[5];let j;e[6]!==x?(j={values:x},e[6]=x,e[7]=j):j=e[7];const f=ot(j);let b;e[8]!==f||e[9]!==i?(b=()=>{i&&f.reset({title:i.title,description:i.description??null,body:me(i)})},e[8]=f,e[9]=i,e[10]=b):b=e[10];const S=b;let w;e[11]!==h.update||e[12]!==f||e[13]!==n?(w=f.handleSubmit(async v=>{const y=await h.update.mutateAsync({id:n,data:{title:v.title,description:v.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:v.body}}]}});f.reset({title:y.title,description:y.description??null,body:me(y)})}),e[11]=h.update,e[12]=f,e[13]=n,e[14]=w):w=e[14];const C=w;if(!i){let v;e[15]!==o?(v=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=v):v=e[16];let y;e[17]!==o?(y=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=y):y=e[18];let k;return e[19]!==v||e[20]!==y?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:v,description:y})}),e[19]=v,e[20]=y,e[21]=k):k=e[21],k}let I;e[22]!==m||e[23]!==f.formState.isDirty||e[24]!==p||e[25]!==i.description||e[26]!==i.title||e[27]!==S||e[28]!==C?(I=m?t.jsxs(t.Fragment,{children:[t.jsx(ze.Title,{actions:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p}),children:i.title}),i.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:i.description})]}):t.jsxs(t.Fragment,{children:[t.jsx(ye.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null]})}),t.jsx(ye.Topbar.Right.Portal,{children:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p})})]}),e[22]=m,e[23]=f.formState.isDirty,e[24]=p,e[25]=i.description,e[26]=i.title,e[27]=S,e[28]=C,e[29]=I):I=e[29];let T;e[30]!==f?(T=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:f})}),e[30]=f,e[31]=T):T=e[31];let $;return e[32]!==I||e[33]!==T?($=t.jsxs(ge,{children:[I,T]}),e[32]=I,e[33]=T,e[34]=$):$=e[34],$}function Bt(s){const e=z.c(10),{itemId:l}=s,n=W();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=Ot(),e[0]=m):m=e[0];const o=m;if(!o){let u;e[1]!==n?(u=n("details.prompt.notFoundTitle"),e[1]=n,e[2]=u):u=e[2];let d;e[3]!==n?(d=n("details.prompt.missingConnectionDescription"),e[3]=n,e[4]=d):d=e[4];let r;return e[5]!==u||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:u,description:d})}),e[5]=u,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==l?(a=t.jsx(Fe,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(zt,{providerId:o,promptId:l})})}),e[8]=l,e[9]=a):a=e[9],a}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=z.c(12),{toolName:l,connectionId:n,siblings:m,onSelectInstance:o,onBack:a}=s,u=W();let d;e[0]!==n?(d={connectionId:n},e[0]=n,e[1]=d):d=e[1];const r=Tt(d);if(!r.isAuthenticated){let p;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==u?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(rt,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(at,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=u,e[5]=p):p=e[5],p}const i=`${n}:${l}`;let h;return e[6]!==n||e[7]!==o||e[8]!==m||e[9]!==i||e[10]!==l?(h=t.jsx(_t,{toolName:l,connectionId:n,siblings:m,onSelectInstance:o},i),e[6]=n,e[7]=o,e[8]=m,e[9]=i,e[10]=l,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:l,onSelectInstance:n}){const m=Oe(),o=W(),{replayId:a}=nt({strict:!1}),u=(()=>{if(!a)return null;const c=`replay-${a}`,g=sessionStorage.getItem(c);if(!g)return null;sessionStorage.removeItem(c);try{return JSON.parse(g)}catch{return null}})(),d=(()=>{if(!u)return null;const c={};for(const[g,P]of Object.entries(u))P!==null&&typeof P=="object"?c[g]=JSON.stringify(P,null,2):c[g]=P;return c})(),[r,i]=D.useState(d??{}),[h,p]=D.useState(u?JSON.stringify(u,null,2):"{}"),[x,j]=D.useState(null),[f,b]=D.useState(null),[S,w]=D.useState(null),[C,I]=D.useState(null),[T,$]=D.useState(!1),[v,y]=D.useState(null),{org:k}=xe(),A=Ve(e),q=kt(),B=At(),{openSidePanel:U}=Et(),H=`${e}:${s}`,L=he({connectionId:e,orgId:k.id,orgSlug:k.slug}),R=Pt({client:L}),N=R.data?.tools?.find(c=>c.name===s),E=jt(N?._meta),_=c=>{if(!q)return;const g=Dt(c.content);g.content.length>0&&(U(),q.sendMessage({tiptapDoc:g}))},[F,O]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(O("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],Z=be.length>0,X={};if(Z&&N?.inputSchema?.properties)for(const c of be)X[c]=N.inputSchema.required?.includes(c)?"":void 0;const ne=c=>Object.prototype.hasOwnProperty.call(r,c),He=async()=>{$(!0),I(null),j(null),b(null),w(null),y(null);const c=performance.now();try{if(!L)throw new Error("MCP client is not available");const g=Z?{...X,...r}:(()=>{const M=h.trim();if(!M)return{};const V=JSON.parse(M);if(V&&typeof V=="object")return V;throw new Error("Raw JSON input must be an object.")})();Z&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([M,V])=>{if((V.type==="object"||V.type==="array")&&typeof g[M]=="string")try{g[M]=JSON.parse(g[M])}catch{}else if((V.type==="number"||V.type==="integer")&&typeof g[M]=="string"&&g[M]!==""){const Se=Number(g[M]);Number.isNaN(Se)||(g[M]=Se)}});const P=await L.callTool({name:s,arguments:g}),ee=P.structuredContent??P,Ge=performance.now(),Xe=Math.round(Ge-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(g){const P=g instanceof Error?g.message:String(g);I(P||"Unknown error occurred");const ee=performance.now();y({duration:`${Math.round(ee-c)}ms`})}finally{$(!1)}},le=(c,g)=>{i(P=>({...P,[c]:g}))},Ke=()=>{j(null),b(null),w(null),I(null),y(null)},We=N?.name??Lt(s),Qe=t.jsx(Ue,{children:t.jsxs(_e,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:k.slug},children:o("details.tool.connections")})})}),t.jsx(oe,{}),A&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:It(A)},search:{tab:"tools"},children:A.title})})}),t.jsx(oe,{})]}),t.jsx(Y,{children:t.jsx(Je,{children:We})})]})}),Ne=l.length>1&&t.jsxs(Ie,{value:e,onValueChange:n,children:[t.jsx(Te,{className:"h-8 w-auto min-w-[200px]",children:t.jsx($e,{})}),t.jsx(Pe,{children:l.map(c=>t.jsx(de,{value:c.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ee,{icon:c.icon,name:c.title,size:"xs",className:"shrink-0"}),c.title]})},c.id))})]}),Ye=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:o("details.tool.parameters")}),N?.inputSchema?.required&&N.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:Z&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([c,g])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[c,N.inputSchema?.required?.includes(c)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:g.type})]}),g.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:g.description}),g.type==="object"||g.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enterAsJson",{key:c}),rows:3}):g.type==="boolean"?t.jsxs(Ie,{value:ne(c)?String(r[c]??""):"",onValueChange:P=>le(c,P==="true"),children:[t.jsx(Te,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Pe,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!Z?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:h,onChange:c=>p(c.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:T?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ke,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:He,children:[t.jsx(Ct,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ze=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.duration})]}),v.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.tokens})]}),v.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.bytes})]}),v.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:v.cost})})]}),E&&t.jsx(St,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>O("ui"),children:t.jsx(ft,{size:14})})}),t.jsx(Ae,{children:o("details.tool.interactiveView")})]}),t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>O("json"),children:t.jsx(we,{size:14})})}),t.jsx(Ae,{children:o("details.tool.jsonView")})]})]})})]})]}),C&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(bt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(yt,{className:"h-4 w-4"}),t.jsx(Nt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(vt,{className:"text-xs text-destructive",children:C})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&F==="ui"&&L?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(G,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(gt,{resourceURI:E,toolInfo:N?{tool:N}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ce.view.minHeight,maxHeight:Ce.view.maxHeight,client:L,onMessage:_,onUpdateModelContext:c=>B?.setAppContext(H,c),onTeardown:()=>B?.clearAppContext(H),className:"h-full"})}):x?t.jsxs(t.Fragment,{children:[t.jsx(Rt,{code:JSON.stringify(x,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(x,null,2)),lt.success(o("details.tool.copiedToClipboard"))},children:t.jsx(wt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(we,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{leading:Qe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ee,{icon:A?.icon||null,name:A?.title||s,size:"xl",className:"shrink-0"}),m?t.jsx(ze.Title,{children:s}):t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[R.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):R.isLoading?t.jsx(G,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:R.isSuccess?"ready":R.isLoading?"connecting":"error"})]}),t.jsx($t,{annotations:N?.annotations,_meta:N?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?.description||"No description available"})]}),l.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:o("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ye}),Ze]})})]})})}function Jt(s){const e=z.c(20),{itemId:l,siblings:n,onBack:m}=s,o=W(),[a,u]=D.useState(n[0]?.id??"");let d;e[0]!==a||e[1]!==n?(d=n.find(x=>x.id===a)?.id??n[0]?.id??"",e[0]=a,e[1]=n,e[2]=d):d=e[2];const r=d;if(!Ve(r||void 0)||!r){let x;e[3]!==o?(x=o("details.tool.connectionNotFound"),e[3]=o,e[4]=x):x=e[4];let j;e[5]!==x?(j=t.jsx("h3",{className:"text-lg font-semibold",children:x}),e[5]=x,e[6]=j):j=e[6];let f;e[7]!==o?(f=o("details.tool.connectionNotFoundMessage"),e[7]=o,e[8]=f):f=e[8];let b;e[9]!==f?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[9]=f,e[10]=b):b=e[10];let S;return e[11]!==j||e[12]!==b?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,b]})}),e[11]=j,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let p;return e[15]!==r||e[16]!==m||e[17]!==n||e[18]!==l?(p=t.jsx(D.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:l,connectionId:r,siblings:n,onSelectInstance:u,onBack:m})}),e[15]=r,e[16]=m,e[17]=n,e[18]=l,e[19]=p):p=e[19],p}const Vt={prompt:Bt};function qt(){const s=z.c(9),e=Be();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=decodeURIComponent(n.itemId);let o;s[1]!==n.appSlug?(o={slug:n.appSlug},s[1]=n.appSlug,s[2]=o):o=s[2];const a=qe(o);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const d=u,r=Ht;let i;return s[5]!==d||s[6]!==m||s[7]!==a?(i=t.jsx(Jt,{itemId:m,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=m,s[7]=a,s[8]=i):i=s[8],i}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=z.c(52),e=Be();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=W(),o=decodeURIComponent(n.collectionName),a=decodeURIComponent(n.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const d=u,{org:r}=xe();let i;s[3]!==n.appSlug?(i={slug:n.appSlug},s[3]=n.appSlug,s[4]=i):i=s[4];const p=qe(i)[0]??null,x=p?.id??"",j=x||"no-connection",f=x??null;let b;s[5]!==r.id||s[6]!==r.slug||s[7]!==f?(b={connectionId:f,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=f,s[8]=b):b=s[8];const S=he(b),w=Me(j,o,S);let C;s[9]!==w||s[10]!==a?(C=async J=>{a&&await w.update.mutateAsync({id:a,data:J})},s[9]=w,s[10]=a,s[11]=C):C=s[11];const I=C;let T;s[12]!==o?(T=o?.toLowerCase(),s[12]=o,s[13]=T):T=s[13];const $=T,v=$&&Vt[$];let y;s[14]!==o?(y=Kt(o),s[14]=o,s[15]=y):y=s[15];const k=y;let A;s[16]!==r.slug?(A=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=A):A=s[17];let q;s[18]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(oe,{}),s[18]=q):q=s[18];let B;s[19]!==o||s[20]!==p||s[21]!==r.slug||s[22]!==n.appSlug?(B=p&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:n.appSlug},search:{tab:o},children:p.title})})}),t.jsx(oe,{})]}),s[19]=o,s[20]=p,s[21]=r.slug,s[22]=n.appSlug,s[23]=B):B=s[23];let U;s[24]!==k?(U=t.jsx(Y,{children:t.jsx(Je,{children:k})}),s[24]=k,s[25]=U):U=s[25];let H;s[26]!==B||s[27]!==U||s[28]!==A?(H=t.jsx(Ue,{children:t.jsxs(_e,{children:[A,q,B,U]})}),s[26]=B,s[27]=U,s[28]=A,s[29]=H):H=s[29];const L=H;if(v){let J;return s[30]!==v||s[31]!==d||s[32]!==I||s[33]!==a?(J=t.jsx(v,{itemId:a,onBack:d,onUpdate:I}),s[30]=v,s[31]=d,s[32]=I,s[33]=a,s[34]=J):J=s[34],J}let R;s[35]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ht,{size:36,className:"text-muted-foreground"}),s[35]=R):R=s[35];let N;s[36]!==m?(N=m("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=m,s[37]=N):N=s[37];let E;s[38]!==m?(E=m("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=m,s[39]=E):E=s[39];let _;s[40]!==m?(_=m("orgs.collectionDetail.goBackButton"),s[40]=m,s[41]=_):_=s[41];let F;s[42]!==d||s[43]!==_?(F={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=F):F=s[44];let O;s[45]!==N||s[46]!==E||s[47]!==F?(O=t.jsx(Ft,{icon:R,title:N,description:E,buttonProps:F}),s[45]=N,s[46]=E,s[47]=F,s[48]=O):O=s[48];let Q;return s[49]!==L||s[50]!==O?(Q=t.jsx(ge,{leading:L,children:O}),s[49]=L,s[50]=O,s[51]=Q):Q=s[51],Q}function Qt(){const s=z.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const l=fe(e);if(decodeURIComponent(l.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let o;return s[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Wt,{}),s[2]=o):o=s[2],o}function Qo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Fe,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Qo as default};
1
+ import{c as z,j as t,B as K,h as G,ap as tt,aq as ie,b as W,E as Fe,r as D,Z as Oe,a0 as xe,d9 as st,d8 as Me,ao as ot,n as ze,P as ye,u as nt,L as te,t as lt,f as fe,c0 as Be}from"./index-BrgfjVMm.js";import{E as Le}from"./empty-state-B-udIfuU.js";import{u as he}from"./use-mcp-client-Db5zI8Z3.js";import{F as re,a as it,b as ae,d as ce}from"./form-BDgKH2cq.js";import{I as ue}from"./input-B7CzAD4A.js";import{T as pe}from"./textarea-BnU6QmoE.js";import{D as ge,O as rt,M as at}from"./index--lqKO6Xr.js";import{bb as ct,U as dt,bl as mt,ae as ut,E as pt,F as xt,aF as ft,x as we,aj as ht}from"./agent-icon-BXDfHtVM.js";import{M as gt}from"./mcp-app-renderer-CSgBYpWQ.js";import{g as jt,M as Ce}from"./types-RaQT_IEX.js";import{a as bt,b as Nt,A as vt}from"./alert-CAeIKgsg.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-BAj8GDmF.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-WzWLbyZq.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-NkW-PGNe.js";import{i as yt}from"./AlertCircle-DIleECAO.js";import{a as wt}from"./Copy01-BT6z7ZQQ.js";import{i as Ct}from"./Sun-32REGP_l.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-8HzRdmmW.js";import{a as Ve,u as qe}from"./use-connection-B11x8Y5V.js";import{u as Pt}from"./use-mcp-tools-BdsJuvQS.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-EpYn4ywU.js";import{f as kt,r as At}from"./chat-context-BCloL478.js";import{a as Et}from"./shell-layout-DQ3b0lWe.js";import{M as Rt}from"./monaco-editor-COmvGX00.js";import{E as Ft}from"./empty-state-BLD4BbT5.js";import"./auth-BnlPL6eu.js";import"./label-oKE-JKCp.js";import"./sidebar-DVrzkoEH.js";import"./LayoutLeft-B94Wve5b.js";import"./use-mobile-COTn4qeO.js";import"./sheet-SUCO-1Zs.js";import"./X-B9qowSuy.js";import"./Key01-BPjkSgKb.js";import"./extract-connection-data-BzpEGbr4.js";import"./metadata-D72DunRR.js";import"./connection-Bh_KNjcC.js";import"./Plus-D1cZZn8U.js";import"./index-CQlW-Wjq.js";import"./index-DAOhRawo.js";import"./index-FY1Y-vNV.js";import"./index-BVKEwYqd.js";import"./popover-Cwq-F3vl.js";import"./use-virtual-mcp-Dtuvom2e.js";import"./Check-DRrZD4Sq.js";import"./SearchMd-DrIRniNc.js";import"./use-create-virtual-mcp-BRTcRrPf.js";import"./use-navigate-to-agent-Hc1nbYTr.js";import"./hooks-D6Fhyr-1.js";import"./backoff-8mStPHYB.js";import"./task-board-C50ImE2y.js";import"./schema--qI-6j1O.js";import"./thread-intent-C6XSh_D3.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-CfuRDLuO.js";import"./ArrowUp-BMtV26Mz.js";import"./ArrowLeft-BQdhx2Mc.js";import"./ArrowRight-C0GCvnPO.js";import"./XCircle-BaLe-WrJ.js";import"./ZoomOut-B1ZE8qec.js";import"./Globe04-ugZLbuIE.js";import"./CheckCircle-Bo8c4lL0.js";import"./ChevronUp-BN0TeZdP.js";import"./UserSquare-DNofESoQ.js";import"./CreditCard01-DVV_ZsCa.js";import"./DotsVertical-DfMw3lkW.js";import"./Download01-BmFUB2xE.js";import"./Eye-DXw_s1Cm.js";import"./Share07-CveFLZ1M.js";import"./XClose-CZ8QMEvw.js";import"./Image01-DDFibjE3.js";import"./Link01-O7jcIMgL.js";import"./LinkExternal01-B1unTZnq.js";import"./Monitor01-a2J2JKd5.js";import"./Package-CdoCtMvg.js";import"./Palette-CycMgJho.js";import"./SearchLg-O_9EykPH.js";import"./Stars01-Did1svMN.js";import"./Trash01-UuilHlOp.js";import"./Upload01-DWdtMUnK.js";import"./User01-BH-9UAFf.js";import"./Users01-88zgeg9Z.js";import"./Zap-B_Jp5KVu.js";import"./index-CBwF-MmM.js";import"./badge-BwVbjdvl.js";import"./mcp-oauth-Ck4K80JQ.js";import"./use-panel-navigate-CHXWRsa2.js";import"./thread-route-BmzRXaVx.js";import"./use-project-scope-Cboqds94.js";import"./autosend-Cg2v6B4Z.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-g7KOEkrp.js";import"./use-ai-providers-Dq0Ep_3l.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-64DqQFG6.js";import"./use-organization-settings-DeroNipc.js";import"./avatar-BQNxscJa.js";import"./download-app-dialog-ASxiCVBK.js";import"./dialog-CoPZcZvZ.js";import"./command-DbXMp-zX.js";import"./project-icon-C2OHTgfV.js";import"./required-auth-layout-BskWaDcO.js";import"./use-org-sso-BotkztEO.js";import"./editor-HOIPs2p0.js";function Re(s){const e=z.c(15),{onSave:l,onUndo:n,isDirty:m,isSaving:o,saveLabel:a,undoLabel:u}=s,d=a===void 0?"Save":a,r=u===void 0?"Undo":u;if(!m)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ct,{size:14}),e[0]=i):i=e[0];let h;e[1]!==o||e[2]!==n||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:n,disabled:o,"aria-label":r,children:[i,r]}),e[1]=o,e[2]=n,e[3]=r,e[4]=h):h=e[4];let p;e[5]!==o?(p=o?t.jsx(G,{className:"size-3.5"}):t.jsx(dt,{size:14}),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d||e[10]!==p?(x=t.jsxs(K,{variant:"default",size:"sm",onClick:l,disabled:o,"aria-label":d,children:[p,d]}),e[7]=o,e[8]=l,e[9]=d,e[10]=p,e[11]=x):x=e[11];let j;return e[12]!==h||e[13]!==x?(j=t.jsxs(t.Fragment,{children:[h,x]}),e[12]=h,e[13]=x,e[14]=j):j=e[14],j}tt({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ot(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),l=e>=0?s[e+1]:void 0;return l?decodeURIComponent(l):void 0}function Mt(s){const e=z.c(43),{form:l}=s,n=W();let m;e[0]!==n?(m=n("details.prompt.details"),e[0]=n,e[1]=m):m=e[1];let o;e[2]!==m?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[2]=m,e[3]=o):o=e[3];let a;e[4]!==n?(a=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...$,placeholder:n("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=n,e[5]=a):a=e[5];let u;e[6]!==l.control||e[7]!==a?(u=t.jsx(re,{control:l.control,name:"title",render:a}),e[6]=l.control,e[7]=a,e[8]=u):u=e[8];let d;e[9]!==n?(d=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...$,value:$.value??"",placeholder:n("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=n,e[10]=d):d=e[10];let r;e[11]!==l.control||e[12]!==d?(r=t.jsx(re,{control:l.control,name:"description",render:d}),e[11]=l.control,e[12]=d,e[13]=r):r=e[13];let i;e[14]!==u||e[15]!==r?(i=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,r]}),e[14]=u,e[15]=r,e[16]=i):i=e[16];let h;e[17]!==o||e[18]!==i?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,i]}),e[17]=o,e[18]=i,e[19]=h):h=e[19];let p;e[20]!==n?(p=n("details.prompt.message"),e[20]=n,e[21]=p):p=e[21];let x;e[22]!==p?(x=t.jsx("div",{className:"text-sm font-medium text-foreground",children:p}),e[22]=p,e[23]=x):x=e[23];let j;e[24]!==n?(j=n("details.prompt.messageDescription"),e[24]=n,e[25]=j):j=e[25];let f;e[26]!==j?(f=t.jsx("div",{className:"text-xs text-muted-foreground",children:j}),e[26]=j,e[27]=f):f=e[27];let b;e[28]!==n?(b=T=>{const{field:$}=T;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...$,value:$.value??"",placeholder:n("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=n,e[29]=b):b=e[29];let S;e[30]!==l.control||e[31]!==b?(S=t.jsx(re,{control:l.control,name:"body",render:b}),e[30]=l.control,e[31]=b,e[32]=S):S=e[32];let w;e[33]!==x||e[34]!==f||e[35]!==S?(w=t.jsxs("div",{className:"flex flex-col gap-2",children:[x,f,S]}),e[33]=x,e[34]=f,e[35]=S,e[36]=w):w=e[36];let C;e[37]!==w||e[38]!==h?(C=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,w]}),e[37]=w,e[38]=h,e[39]=C):C=e[39];let I;return e[40]!==l||e[41]!==C?(I=t.jsx(it,{...l,children:C}),e[40]=l,e[41]=C,e[42]=I):I=e[42],I}function zt(s){const e=z.c(35),{providerId:l,promptId:n}=s,m=Oe(),o=W(),{org:a}=xe(),u=l||null;let d;e[0]!==a.id||e[1]!==a.slug||e[2]!==u?(d={connectionId:u,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=u,e[3]=d):d=e[3];const r=he(d),i=st(l,"PROMPT",n,r),h=Me(l,"PROMPT",r),p=h.update.isPending;let x;e[4]!==i?(x=i?{title:i.title,description:i.description??null,body:me(i)}:void 0,e[4]=i,e[5]=x):x=e[5];let j;e[6]!==x?(j={values:x},e[6]=x,e[7]=j):j=e[7];const f=ot(j);let b;e[8]!==f||e[9]!==i?(b=()=>{i&&f.reset({title:i.title,description:i.description??null,body:me(i)})},e[8]=f,e[9]=i,e[10]=b):b=e[10];const S=b;let w;e[11]!==h.update||e[12]!==f||e[13]!==n?(w=f.handleSubmit(async v=>{const y=await h.update.mutateAsync({id:n,data:{title:v.title,description:v.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:v.body}}]}});f.reset({title:y.title,description:y.description??null,body:me(y)})}),e[11]=h.update,e[12]=f,e[13]=n,e[14]=w):w=e[14];const C=w;if(!i){let v;e[15]!==o?(v=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=v):v=e[16];let y;e[17]!==o?(y=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=y):y=e[18];let k;return e[19]!==v||e[20]!==y?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:v,description:y})}),e[19]=v,e[20]=y,e[21]=k):k=e[21],k}let I;e[22]!==m||e[23]!==f.formState.isDirty||e[24]!==p||e[25]!==i.description||e[26]!==i.title||e[27]!==S||e[28]!==C?(I=m?t.jsxs(t.Fragment,{children:[t.jsx(ze.Title,{actions:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p}),children:i.title}),i.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:i.description})]}):t.jsxs(t.Fragment,{children:[t.jsx(ye.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null]})}),t.jsx(ye.Topbar.Right.Portal,{children:t.jsx(Re,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p})})]}),e[22]=m,e[23]=f.formState.isDirty,e[24]=p,e[25]=i.description,e[26]=i.title,e[27]=S,e[28]=C,e[29]=I):I=e[29];let T;e[30]!==f?(T=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:f})}),e[30]=f,e[31]=T):T=e[31];let $;return e[32]!==I||e[33]!==T?($=t.jsxs(ge,{children:[I,T]}),e[32]=I,e[33]=T,e[34]=$):$=e[34],$}function Bt(s){const e=z.c(10),{itemId:l}=s,n=W();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=Ot(),e[0]=m):m=e[0];const o=m;if(!o){let u;e[1]!==n?(u=n("details.prompt.notFoundTitle"),e[1]=n,e[2]=u):u=e[2];let d;e[3]!==n?(d=n("details.prompt.missingConnectionDescription"),e[3]=n,e[4]=d):d=e[4];let r;return e[5]!==u||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:u,description:d})}),e[5]=u,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==l?(a=t.jsx(Fe,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(zt,{providerId:o,promptId:l})})}),e[8]=l,e[9]=a):a=e[9],a}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=z.c(12),{toolName:l,connectionId:n,siblings:m,onSelectInstance:o,onBack:a}=s,u=W();let d;e[0]!==n?(d={connectionId:n},e[0]=n,e[1]=d):d=e[1];const r=Tt(d);if(!r.isAuthenticated){let p;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==u?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(rt,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(at,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=u,e[5]=p):p=e[5],p}const i=`${n}:${l}`;let h;return e[6]!==n||e[7]!==o||e[8]!==m||e[9]!==i||e[10]!==l?(h=t.jsx(_t,{toolName:l,connectionId:n,siblings:m,onSelectInstance:o},i),e[6]=n,e[7]=o,e[8]=m,e[9]=i,e[10]=l,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:l,onSelectInstance:n}){const m=Oe(),o=W(),{replayId:a}=nt({strict:!1}),u=(()=>{if(!a)return null;const c=`replay-${a}`,g=sessionStorage.getItem(c);if(!g)return null;sessionStorage.removeItem(c);try{return JSON.parse(g)}catch{return null}})(),d=(()=>{if(!u)return null;const c={};for(const[g,P]of Object.entries(u))P!==null&&typeof P=="object"?c[g]=JSON.stringify(P,null,2):c[g]=P;return c})(),[r,i]=D.useState(d??{}),[h,p]=D.useState(u?JSON.stringify(u,null,2):"{}"),[x,j]=D.useState(null),[f,b]=D.useState(null),[S,w]=D.useState(null),[C,I]=D.useState(null),[T,$]=D.useState(!1),[v,y]=D.useState(null),{org:k}=xe(),A=Ve(e),q=kt(),B=At(),{openSidePanel:U}=Et(),H=`${e}:${s}`,L=he({connectionId:e,orgId:k.id,orgSlug:k.slug}),R=Pt({client:L}),N=R.data?.tools?.find(c=>c.name===s),E=jt(N?._meta),_=c=>{if(!q)return;const g=Dt(c.content);g.content.length>0&&(U(),q.sendMessage({tiptapDoc:g}))},[F,O]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(O("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],Z=be.length>0,X={};if(Z&&N?.inputSchema?.properties)for(const c of be)X[c]=N.inputSchema.required?.includes(c)?"":void 0;const ne=c=>Object.prototype.hasOwnProperty.call(r,c),He=async()=>{$(!0),I(null),j(null),b(null),w(null),y(null);const c=performance.now();try{if(!L)throw new Error("MCP client is not available");const g=Z?{...X,...r}:(()=>{const M=h.trim();if(!M)return{};const V=JSON.parse(M);if(V&&typeof V=="object")return V;throw new Error("Raw JSON input must be an object.")})();Z&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([M,V])=>{if((V.type==="object"||V.type==="array")&&typeof g[M]=="string")try{g[M]=JSON.parse(g[M])}catch{}else if((V.type==="number"||V.type==="integer")&&typeof g[M]=="string"&&g[M]!==""){const Se=Number(g[M]);Number.isNaN(Se)||(g[M]=Se)}});const P=await L.callTool({name:s,arguments:g}),ee=P.structuredContent??P,Ge=performance.now(),Xe=Math.round(Ge-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(g){const P=g instanceof Error?g.message:String(g);I(P||"Unknown error occurred");const ee=performance.now();y({duration:`${Math.round(ee-c)}ms`})}finally{$(!1)}},le=(c,g)=>{i(P=>({...P,[c]:g}))},Ke=()=>{j(null),b(null),w(null),I(null),y(null)},We=N?.name??Lt(s),Qe=t.jsx(Ue,{children:t.jsxs(_e,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:k.slug},children:o("details.tool.connections")})})}),t.jsx(oe,{}),A&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:It(A)},search:{tab:"tools"},children:A.title})})}),t.jsx(oe,{})]}),t.jsx(Y,{children:t.jsx(Je,{children:We})})]})}),Ne=l.length>1&&t.jsxs(Ie,{value:e,onValueChange:n,children:[t.jsx(Te,{className:"h-8 w-auto min-w-[200px]",children:t.jsx($e,{})}),t.jsx(Pe,{children:l.map(c=>t.jsx(de,{value:c.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ee,{icon:c.icon,name:c.title,size:"xs",className:"shrink-0"}),c.title]})},c.id))})]}),Ye=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:o("details.tool.parameters")}),N?.inputSchema?.required&&N.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:Z&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([c,g])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[c,N.inputSchema?.required?.includes(c)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:g.type})]}),g.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:g.description}),g.type==="object"||g.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enterAsJson",{key:c}),rows:3}):g.type==="boolean"?t.jsxs(Ie,{value:ne(c)?String(r[c]??""):"",onValueChange:P=>le(c,P==="true"),children:[t.jsx(Te,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Pe,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(c)?r[c]??"":X[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!Z?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:h,onChange:c=>p(c.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:T?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ke,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:He,children:[t.jsx(Ct,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ze=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.duration})]}),v.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.tokens})]}),v.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.bytes})]}),v.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:v.cost})})]}),E&&t.jsx(St,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>O("ui"),children:t.jsx(ft,{size:14})})}),t.jsx(Ae,{children:o("details.tool.interactiveView")})]}),t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>O("json"),children:t.jsx(we,{size:14})})}),t.jsx(Ae,{children:o("details.tool.jsonView")})]})]})})]})]}),C&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(bt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(yt,{className:"h-4 w-4"}),t.jsx(Nt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(vt,{className:"text-xs text-destructive",children:C})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&F==="ui"&&L?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(G,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(gt,{resourceURI:E,toolInfo:N?{tool:N}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ce.view.minHeight,maxHeight:Ce.view.maxHeight,client:L,onMessage:_,onUpdateModelContext:c=>B?.setAppContext(H,c),onTeardown:()=>B?.clearAppContext(H),className:"h-full"})}):x?t.jsxs(t.Fragment,{children:[t.jsx(Rt,{code:JSON.stringify(x,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(x,null,2)),lt.success(o("details.tool.copiedToClipboard"))},children:t.jsx(wt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(we,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{leading:Qe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ee,{icon:A?.icon||null,name:A?.title||s,size:"xl",className:"shrink-0"}),m?t.jsx(ze.Title,{children:s}):t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[R.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):R.isLoading?t.jsx(G,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:R.isSuccess?"ready":R.isLoading?"connecting":"error"})]}),t.jsx($t,{annotations:N?.annotations,_meta:N?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?.description||"No description available"})]}),l.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:o("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ye}),Ze]})})]})})}function Jt(s){const e=z.c(20),{itemId:l,siblings:n,onBack:m}=s,o=W(),[a,u]=D.useState(n[0]?.id??"");let d;e[0]!==a||e[1]!==n?(d=n.find(x=>x.id===a)?.id??n[0]?.id??"",e[0]=a,e[1]=n,e[2]=d):d=e[2];const r=d;if(!Ve(r||void 0)||!r){let x;e[3]!==o?(x=o("details.tool.connectionNotFound"),e[3]=o,e[4]=x):x=e[4];let j;e[5]!==x?(j=t.jsx("h3",{className:"text-lg font-semibold",children:x}),e[5]=x,e[6]=j):j=e[6];let f;e[7]!==o?(f=o("details.tool.connectionNotFoundMessage"),e[7]=o,e[8]=f):f=e[8];let b;e[9]!==f?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[9]=f,e[10]=b):b=e[10];let S;return e[11]!==j||e[12]!==b?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,b]})}),e[11]=j,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let p;return e[15]!==r||e[16]!==m||e[17]!==n||e[18]!==l?(p=t.jsx(D.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:l,connectionId:r,siblings:n,onSelectInstance:u,onBack:m})}),e[15]=r,e[16]=m,e[17]=n,e[18]=l,e[19]=p):p=e[19],p}const Vt={prompt:Bt};function qt(){const s=z.c(9),e=Be();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=decodeURIComponent(n.itemId);let o;s[1]!==n.appSlug?(o={slug:n.appSlug},s[1]=n.appSlug,s[2]=o):o=s[2];const a=qe(o);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const d=u,r=Ht;let i;return s[5]!==d||s[6]!==m||s[7]!==a?(i=t.jsx(Jt,{itemId:m,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=m,s[7]=a,s[8]=i):i=s[8],i}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=z.c(52),e=Be();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=W(),o=decodeURIComponent(n.collectionName),a=decodeURIComponent(n.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const d=u,{org:r}=xe();let i;s[3]!==n.appSlug?(i={slug:n.appSlug},s[3]=n.appSlug,s[4]=i):i=s[4];const p=qe(i)[0]??null,x=p?.id??"",j=x||"no-connection",f=x??null;let b;s[5]!==r.id||s[6]!==r.slug||s[7]!==f?(b={connectionId:f,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=f,s[8]=b):b=s[8];const S=he(b),w=Me(j,o,S);let C;s[9]!==w||s[10]!==a?(C=async J=>{a&&await w.update.mutateAsync({id:a,data:J})},s[9]=w,s[10]=a,s[11]=C):C=s[11];const I=C;let T;s[12]!==o?(T=o?.toLowerCase(),s[12]=o,s[13]=T):T=s[13];const $=T,v=$&&Vt[$];let y;s[14]!==o?(y=Kt(o),s[14]=o,s[15]=y):y=s[15];const k=y;let A;s[16]!==r.slug?(A=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=A):A=s[17];let q;s[18]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(oe,{}),s[18]=q):q=s[18];let B;s[19]!==o||s[20]!==p||s[21]!==r.slug||s[22]!==n.appSlug?(B=p&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:n.appSlug},search:{tab:o},children:p.title})})}),t.jsx(oe,{})]}),s[19]=o,s[20]=p,s[21]=r.slug,s[22]=n.appSlug,s[23]=B):B=s[23];let U;s[24]!==k?(U=t.jsx(Y,{children:t.jsx(Je,{children:k})}),s[24]=k,s[25]=U):U=s[25];let H;s[26]!==B||s[27]!==U||s[28]!==A?(H=t.jsx(Ue,{children:t.jsxs(_e,{children:[A,q,B,U]})}),s[26]=B,s[27]=U,s[28]=A,s[29]=H):H=s[29];const L=H;if(v){let J;return s[30]!==v||s[31]!==d||s[32]!==I||s[33]!==a?(J=t.jsx(v,{itemId:a,onBack:d,onUpdate:I}),s[30]=v,s[31]=d,s[32]=I,s[33]=a,s[34]=J):J=s[34],J}let R;s[35]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ht,{size:36,className:"text-muted-foreground"}),s[35]=R):R=s[35];let N;s[36]!==m?(N=m("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=m,s[37]=N):N=s[37];let E;s[38]!==m?(E=m("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=m,s[39]=E):E=s[39];let _;s[40]!==m?(_=m("orgs.collectionDetail.goBackButton"),s[40]=m,s[41]=_):_=s[41];let F;s[42]!==d||s[43]!==_?(F={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=F):F=s[44];let O;s[45]!==N||s[46]!==E||s[47]!==F?(O=t.jsx(Ft,{icon:R,title:N,description:E,buttonProps:F}),s[45]=N,s[46]=E,s[47]=F,s[48]=O):O=s[48];let Q;return s[49]!==L||s[50]!==O?(Q=t.jsx(ge,{leading:L,children:O}),s[49]=L,s[50]=O,s[51]=Q):Q=s[51],Q}function Qt(){const s=z.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const l=fe(e);if(decodeURIComponent(l.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let o;return s[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Wt,{}),s[2]=o):o=s[2],o}function Qo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Fe,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Qo as default};
@@ -1 +1 @@
1
- import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-55En7ztP.js";import{i as I,n as L}from"./ArrowUp-BwaH-bh6.js";import{i as F}from"./Check-CtmIaXgC.js";import{a as O,i as P,c as Y}from"./XClose-ZnbMEO-2.js";import{T as G,a as H,b as K,c as W}from"./tooltip-DMVFyQ4S.js";import{V as q}from"./view-mode-toggle-ByVPlcgG.js";import{B as J}from"./badge-B0klsi-0.js";const M=[];function oe(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:T,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(U),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(O,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(J,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(G,{asChild:!0,children:s.jsx(V,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(H,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(K,{children:s.jsxs(W,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let m;e[17]!==h||e[18]!==i?(m=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(P,{})},{value:"cards",icon:s.jsx(Y,{})}]})}),e[17]=h,e[18]=i,e[19]=m):m=e[19];let p;e[20]!==j||e[21]!==g||e[22]!==T||e[23]!==b||e[24]!==l?(p=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const k=T===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:A("h-8 px-2 py-0 cursor-pointer",k&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[k&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!k&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),k&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=T,e[23]=b,e[24]=l,e[25]=p):p=e[25];let u;e[26]!==o?(u=o.map(Q),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==m||e[29]!==p||e[30]!==u?(f=s.jsxs(E,{align:"end",className:"w-[200px] p-0 gap-0",children:[m,p,u]}),e[28]=m,e[29]=p,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:A("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{oe as C};
1
+ import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-BrgfjVMm.js";import{i as I,n as L}from"./ArrowUp-BMtV26Mz.js";import{i as F}from"./Check-DRrZD4Sq.js";import{a as O,i as P,c as Y}from"./XClose-CZ8QMEvw.js";import{T as G,a as H,b as K,c as W}from"./tooltip-WzWLbyZq.js";import{V as q}from"./view-mode-toggle-1hCOtltg.js";import{B as J}from"./badge-BwVbjdvl.js";const M=[];function oe(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:T,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(U),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(O,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(J,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(G,{asChild:!0,children:s.jsx(V,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(H,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(K,{children:s.jsxs(W,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let m;e[17]!==h||e[18]!==i?(m=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(P,{})},{value:"cards",icon:s.jsx(Y,{})}]})}),e[17]=h,e[18]=i,e[19]=m):m=e[19];let p;e[20]!==j||e[21]!==g||e[22]!==T||e[23]!==b||e[24]!==l?(p=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const k=T===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:A("h-8 px-2 py-0 cursor-pointer",k&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[k&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!k&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),k&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=T,e[23]=b,e[24]=l,e[25]=p):p=e[25];let u;e[26]!==o?(u=o.map(Q),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==m||e[29]!==p||e[30]!==u?(f=s.jsxs(E,{align:"end",className:"w-[200px] p-0 gap-0",children:[m,p,u]}),e[28]=m,e[29]=p,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:A("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{oe as C};
@@ -1 +1 @@
1
- import{c as v,l as b,j as a,h as w}from"./index-55En7ztP.js";import{i as C}from"./SearchMd-BoetaL4Y.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
1
+ import{c as v,l as b,j as a,h as w}from"./index-BrgfjVMm.js";import{i as C}from"./SearchMd-DrIRniNc.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
@@ -1 +1 @@
1
- import{c as S,j as n,l as y,b as D}from"./index-55En7ztP.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-D9BGz2ED.js";import{i as W,n as z}from"./ArrowUp-BwaH-bh6.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
1
+ import{c as S,j as n,l as y,b as D}from"./index-BrgfjVMm.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-WeehGDhl.js";import{i as W,n as z}from"./ArrowUp-BMtV26Mz.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
@@ -1 +1 @@
1
- import{c as g,Z as j,j as u,n as h,P as T,b as C,l as b}from"./index-55En7ztP.js";import{B as v}from"./badge-B0klsi-0.js";function y(f){const e=g.c(13),{tabs:o,activeTab:t,onTabChange:s,className:m,placement:x}=f,i=x===void 0?"inline":x;let n;if(e[0]!==t||e[1]!==s||e[2]!==o){let l;e[4]!==t||e[5]!==s?(l=c=>{const p=t===c.id;return u.jsxs(h.Tab,{active:p,onClick:()=>s(c.id),children:[c.label,c.count!==void 0&&u.jsx(v,{variant:"secondary",className:b("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",p?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:c.count})]},c.id)},e[4]=t,e[5]=s,e[6]=l):l=e[6],n=o.map(l),e[0]=t,e[1]=s,e[2]=o,e[3]=n}else n=e[3];let r;e[7]!==m||e[8]!==n?(r=u.jsx(h.Tabs,{className:m,children:n}),e[7]=m,e[8]=n,e[9]=r):r=e[9];const a=r;let d;return e[10]!==a||e[11]!==i?(d=i==="page"?u.jsx(T.Toolbar.Left.Portal,{fallback:a,children:a}):a,e[10]=a,e[11]=i,e[12]=d):d=e[12],d}function N(f){const e=g.c(15),{tabs:o,activeTab:t,onTabChange:s,className:m}=f,x=C();let i;e[0]!==x?(i=x("collections.collectionTabs.tabList"),e[0]=x,e[1]=i):i=e[1];let n;e[2]!==m?(n=b("flex items-center gap-2 overflow-x-auto no-scrollbar",m),e[2]=m,e[3]=n):n=e[3];let r;if(e[4]!==t||e[5]!==s||e[6]!==o){let d;e[8]!==t||e[9]!==s?(d=l=>{const c=t===l.id;return u.jsxs("button",{type:"button","aria-pressed":c,onClick:()=>s(l.id),className:b("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",c&&"bg-accent border-border text-foreground",!c&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[l.label,l.count!==void 0&&u.jsx(v,{variant:"secondary",className:b("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",c?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:l.count})]},l.id)},e[8]=t,e[9]=s,e[10]=d):d=e[10],r=o.map(d),e[4]=t,e[5]=s,e[6]=o,e[7]=r}else r=e[7];let a;return e[11]!==i||e[12]!==n||e[13]!==r?(a=u.jsx("nav",{"aria-label":i,className:n,children:r}),e[11]=i,e[12]=n,e[13]=r,e[14]=a):a=e[14],a}function w(f){const e=g.c(3),o=j();let t;return e[0]!==o||e[1]!==f?(t=o?u.jsx(y,{...f}):u.jsx(N,{...f}),e[0]=o,e[1]=f,e[2]=t):t=e[2],t}export{w as C};
1
+ import{c as g,Z as j,j as u,n as h,P as T,b as C,l as b}from"./index-BrgfjVMm.js";import{B as v}from"./badge-BwVbjdvl.js";function y(f){const e=g.c(13),{tabs:o,activeTab:t,onTabChange:s,className:m,placement:x}=f,i=x===void 0?"inline":x;let n;if(e[0]!==t||e[1]!==s||e[2]!==o){let l;e[4]!==t||e[5]!==s?(l=c=>{const p=t===c.id;return u.jsxs(h.Tab,{active:p,onClick:()=>s(c.id),children:[c.label,c.count!==void 0&&u.jsx(v,{variant:"secondary",className:b("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",p?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:c.count})]},c.id)},e[4]=t,e[5]=s,e[6]=l):l=e[6],n=o.map(l),e[0]=t,e[1]=s,e[2]=o,e[3]=n}else n=e[3];let r;e[7]!==m||e[8]!==n?(r=u.jsx(h.Tabs,{className:m,children:n}),e[7]=m,e[8]=n,e[9]=r):r=e[9];const a=r;let d;return e[10]!==a||e[11]!==i?(d=i==="page"?u.jsx(T.Toolbar.Left.Portal,{fallback:a,children:a}):a,e[10]=a,e[11]=i,e[12]=d):d=e[12],d}function N(f){const e=g.c(15),{tabs:o,activeTab:t,onTabChange:s,className:m}=f,x=C();let i;e[0]!==x?(i=x("collections.collectionTabs.tabList"),e[0]=x,e[1]=i):i=e[1];let n;e[2]!==m?(n=b("flex items-center gap-2 overflow-x-auto no-scrollbar",m),e[2]=m,e[3]=n):n=e[3];let r;if(e[4]!==t||e[5]!==s||e[6]!==o){let d;e[8]!==t||e[9]!==s?(d=l=>{const c=t===l.id;return u.jsxs("button",{type:"button","aria-pressed":c,onClick:()=>s(l.id),className:b("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",c&&"bg-accent border-border text-foreground",!c&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[l.label,l.count!==void 0&&u.jsx(v,{variant:"secondary",className:b("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",c?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:l.count})]},l.id)},e[8]=t,e[9]=s,e[10]=d):d=e[10],r=o.map(d),e[4]=t,e[5]=s,e[6]=o,e[7]=r}else r=e[7];let a;return e[11]!==i||e[12]!==n||e[13]!==r?(a=u.jsx("nav",{"aria-label":i,className:n,children:r}),e[11]=i,e[12]=n,e[13]=r,e[14]=a):a=e[14],a}function w(f){const e=g.c(3),o=j();let t;return e[0]!==o||e[1]!==f?(t=o?u.jsx(y,{...f}):u.jsx(N,{...f}),e[0]=o,e[1]=f,e[2]=t):t=e[2],t}export{w as C};
@@ -1 +1 @@
1
- import{c as J,r as K,j as s,l as y,B as Q}from"./index-55En7ztP.js";import{i as U}from"./Check-CtmIaXgC.js";import{i as V}from"./Tool01-4DAbUoNs.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-DBTJz5xT.js";import{a as se,P as te,b as le}from"./popover-pc7q2SI0.js";function ne(q){const e=J.c(45),{options:j,value:l,onChange:v,placeholder:R,triggerClassName:$,contentClassName:N,width:A,renderTrigger:F,renderItem:r,emptyMessage:G,searchPlaceholder:L,filter:S,renderSearchAction:w}=q,z=R===void 0?"Select...":R,D=A===void 0?"w-[200px]":A,P=G===void 0?"No results found.":G,E=L===void 0?"Search...":L;let C;e[0]!==l?(C=x=>x.value===l,e[0]=l,e[1]=C):C=e[1];const T=j.find(C),[I,t]=K.useState(!1),O=te,B=se,H=!0,M=F?s.jsx("div",{className:y("cursor-pointer",$),children:F(T)}):s.jsxs(Q,{variant:"outline",role:"combobox",className:y("justify-between",D,$),children:[T?T.label:z,s.jsx(V,{className:"opacity-50"})]});let o;e[2]!==B||e[3]!==M?(o=s.jsx(B,{asChild:H,children:M}),e[2]=B,e[3]=M,e[4]=o):o=e[4];let i;e[5]!==N?(i=y("p-0",N),e[5]=N,e[6]=i):i=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[7]=g):g=e[7];let c;e[8]!==w||e[9]!==t?(c=w?.(()=>t(!1)),e[8]=w,e[9]=t,e[10]=c):c=e[10];let n;e[11]!==E||e[12]!==c?(n=s.jsx(W,{placeholder:E,className:"h-9",action:c}),e[11]=E,e[12]=c,e[13]=n):n=e[13];let m;e[14]!==P?(m=s.jsx(X,{children:P}),e[14]=P,e[15]=m):m=e[15];let d;if(e[16]!==v||e[17]!==j||e[18]!==r||e[19]!==t||e[20]!==l){let x;e[22]!==v||e[23]!==r||e[24]!==t||e[25]!==l?(x=a=>{const k=l===a.value;return s.jsx(Y,{value:a.label,onSelect:()=>{v(a.value===l?"":a.value),t(!1)},children:r?r(a,k):s.jsxs(s.Fragment,{children:[a.label,s.jsx(U,{className:y("ml-auto",k?"opacity-100":"opacity-0")})]})},a.value)},e[22]=v,e[23]=r,e[24]=t,e[25]=l,e[26]=x):x=e[26],d=j.map(x),e[16]=v,e[17]=j,e[18]=r,e[19]=t,e[20]=l,e[21]=d}else d=e[21];let h;e[27]!==d?(h=s.jsx(Z,{children:d}),e[27]=d,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=s.jsxs(_,{children:[m,h]}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let f;e[32]!==S||e[33]!==n||e[34]!==p?(f=s.jsxs(ee,{filter:S,children:[n,p]}),e[32]=S,e[33]=n,e[34]=p,e[35]=f):f=e[35];let u;e[36]!==f||e[37]!==i?(u=s.jsx(le,{className:i,style:g,children:f}),e[36]=f,e[37]=i,e[38]=u):u=e[38];let b;return e[39]!==O||e[40]!==I||e[41]!==t||e[42]!==u||e[43]!==o?(b=s.jsxs(O,{open:I,onOpenChange:t,children:[o,u]}),e[39]=O,e[40]=I,e[41]=t,e[42]=u,e[43]=o,e[44]=b):b=e[44],b}export{ne as C};
1
+ import{c as J,r as K,j as s,l as y,B as Q}from"./index-BrgfjVMm.js";import{i as U}from"./Check-DRrZD4Sq.js";import{i as V}from"./Tool01-CfuRDLuO.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-DbXMp-zX.js";import{a as se,P as te,b as le}from"./popover-Cwq-F3vl.js";function ne(q){const e=J.c(45),{options:j,value:l,onChange:v,placeholder:R,triggerClassName:$,contentClassName:N,width:A,renderTrigger:F,renderItem:r,emptyMessage:G,searchPlaceholder:L,filter:S,renderSearchAction:w}=q,z=R===void 0?"Select...":R,D=A===void 0?"w-[200px]":A,P=G===void 0?"No results found.":G,E=L===void 0?"Search...":L;let C;e[0]!==l?(C=x=>x.value===l,e[0]=l,e[1]=C):C=e[1];const T=j.find(C),[I,t]=K.useState(!1),O=te,B=se,H=!0,M=F?s.jsx("div",{className:y("cursor-pointer",$),children:F(T)}):s.jsxs(Q,{variant:"outline",role:"combobox",className:y("justify-between",D,$),children:[T?T.label:z,s.jsx(V,{className:"opacity-50"})]});let o;e[2]!==B||e[3]!==M?(o=s.jsx(B,{asChild:H,children:M}),e[2]=B,e[3]=M,e[4]=o):o=e[4];let i;e[5]!==N?(i=y("p-0",N),e[5]=N,e[6]=i):i=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[7]=g):g=e[7];let c;e[8]!==w||e[9]!==t?(c=w?.(()=>t(!1)),e[8]=w,e[9]=t,e[10]=c):c=e[10];let n;e[11]!==E||e[12]!==c?(n=s.jsx(W,{placeholder:E,className:"h-9",action:c}),e[11]=E,e[12]=c,e[13]=n):n=e[13];let m;e[14]!==P?(m=s.jsx(X,{children:P}),e[14]=P,e[15]=m):m=e[15];let d;if(e[16]!==v||e[17]!==j||e[18]!==r||e[19]!==t||e[20]!==l){let x;e[22]!==v||e[23]!==r||e[24]!==t||e[25]!==l?(x=a=>{const k=l===a.value;return s.jsx(Y,{value:a.label,onSelect:()=>{v(a.value===l?"":a.value),t(!1)},children:r?r(a,k):s.jsxs(s.Fragment,{children:[a.label,s.jsx(U,{className:y("ml-auto",k?"opacity-100":"opacity-0")})]})},a.value)},e[22]=v,e[23]=r,e[24]=t,e[25]=l,e[26]=x):x=e[26],d=j.map(x),e[16]=v,e[17]=j,e[18]=r,e[19]=t,e[20]=l,e[21]=d}else d=e[21];let h;e[27]!==d?(h=s.jsx(Z,{children:d}),e[27]=d,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=s.jsxs(_,{children:[m,h]}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let f;e[32]!==S||e[33]!==n||e[34]!==p?(f=s.jsxs(ee,{filter:S,children:[n,p]}),e[32]=S,e[33]=n,e[34]=p,e[35]=f):f=e[35];let u;e[36]!==f||e[37]!==i?(u=s.jsx(le,{className:i,style:g,children:f}),e[36]=f,e[37]=i,e[38]=u):u=e[38];let b;return e[39]!==O||e[40]!==I||e[41]!==t||e[42]!==u||e[43]!==o?(b=s.jsxs(O,{open:I,onOpenChange:t,children:[o,u]}),e[39]=O,e[40]=I,e[41]=t,e[42]=u,e[43]=o,e[44]=b):b=e[44],b}export{ne as C};
@@ -1 +1 @@
1
- import{c as f,l as u,j as n,aE as j}from"./index-55En7ztP.js";import{_ as x}from"./index-BQlthii9.js";import{D as b,d as w,h as y,c as C,b as z}from"./dialog-kum5ViQ6.js";import{i as D}from"./SearchMd-BoetaL4Y.js";function $(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function R(a){const e=f.c(28);let t,s,l,o,g,i,d;e[0]!==a?({title:i,description:d,children:t,className:s,filter:l,shouldFilter:g,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=g,e[6]=i,e[7]=d):(t=e[1],s=e[2],l=e[3],o=e[4],g=e[5],i=e[6],d=e[7]);const p=i===void 0?"Command Palette":i,m=d===void 0?"Search for a command to run...":d;let r;e[8]!==p?(r=n.jsx(w,{children:p}),e[8]=p,e[9]=r):r=e[9];let c;e[10]!==m?(c=n.jsx(y,{children:m}),e[10]=m,e[11]=c):c=e[11];let h;e[12]!==r||e[13]!==c?(h=n.jsxs(C,{className:"sr-only",children:[r,c]}),e[12]=r,e[13]=c,e[14]=h):h=e[14];let _;e[15]!==s?(_=u("overflow-hidden p-0",s),e[15]=s,e[16]=_):_=e[16];let v;e[17]!==t||e[18]!==l||e[19]!==g?(v=n.jsx($,{filter:l,shouldFilter:g,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=l,e[19]=g,e[20]=v):v=e[20];let k;e[21]!==_||e[22]!==v?(k=n.jsx(z,{className:_,closeButtonClassName:"hidden",children:v}),e[21]=_,e[22]=v,e[23]=k):k=e[23];let N;return e[24]!==o||e[25]!==h||e[26]!==k?(N=n.jsxs(b,{...o,children:[h,k]}),e[24]=o,e[25]=h,e[26]=k,e[27]=N):N=e[27],N}function V(a){const e=f.c(18);let t,s,l,o;e[0]!==a?({className:s,size:o,action:t,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);const i=(o===void 0?"default":o)==="sm"?"h-9":"h-10";let d;e[5]!==i?(d=u("flex items-center gap-2 border-b px-3",i),e[5]=i,e[6]=d):d=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=p):p=e[7];let m;e[8]!==s||e[9]!==i?(m=u("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent classic:py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",i,s),e[8]=s,e[9]=i,e[10]=m):m=e[10];let r;e[11]!==l||e[12]!==m?(r=n.jsx(x.Input,{"data-slot":"command-input",className:m,...l}),e[11]=l,e[12]=m,e[13]=r):r=e[13];let c;return e[14]!==t||e[15]!==d||e[16]!==r?(c=n.jsxs("div",{"data-slot":"command-input-wrapper",className:d,children:[p,r,t]}),e[14]=t,e[15]=d,e[16]=r,e[17]=c):c=e[17],c}function B(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function F(a){const e=f.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(x.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function H(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Group,{"data-slot":"command-group",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function P(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("bg-border -mx-1 h-px",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Separator,{"data-slot":"command-separator",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}const E=j("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex compact:min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{highlight:"selected"}});function T(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u(E(),t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Item,{"data-slot":"command-item",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}export{F as C,H as a,T as b,B as c,$ as d,V as e,R as f,E as g,P as h};
1
+ import{c as f,l as u,j as n,aE as j}from"./index-BrgfjVMm.js";import{_ as x}from"./index-BVKEwYqd.js";import{D as b,d as w,h as y,c as C,b as z}from"./dialog-CoPZcZvZ.js";import{i as D}from"./SearchMd-DrIRniNc.js";function $(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function R(a){const e=f.c(28);let t,s,l,o,g,i,d;e[0]!==a?({title:i,description:d,children:t,className:s,filter:l,shouldFilter:g,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=g,e[6]=i,e[7]=d):(t=e[1],s=e[2],l=e[3],o=e[4],g=e[5],i=e[6],d=e[7]);const p=i===void 0?"Command Palette":i,m=d===void 0?"Search for a command to run...":d;let r;e[8]!==p?(r=n.jsx(w,{children:p}),e[8]=p,e[9]=r):r=e[9];let c;e[10]!==m?(c=n.jsx(y,{children:m}),e[10]=m,e[11]=c):c=e[11];let h;e[12]!==r||e[13]!==c?(h=n.jsxs(C,{className:"sr-only",children:[r,c]}),e[12]=r,e[13]=c,e[14]=h):h=e[14];let _;e[15]!==s?(_=u("overflow-hidden p-0",s),e[15]=s,e[16]=_):_=e[16];let v;e[17]!==t||e[18]!==l||e[19]!==g?(v=n.jsx($,{filter:l,shouldFilter:g,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=l,e[19]=g,e[20]=v):v=e[20];let k;e[21]!==_||e[22]!==v?(k=n.jsx(z,{className:_,closeButtonClassName:"hidden",children:v}),e[21]=_,e[22]=v,e[23]=k):k=e[23];let N;return e[24]!==o||e[25]!==h||e[26]!==k?(N=n.jsxs(b,{...o,children:[h,k]}),e[24]=o,e[25]=h,e[26]=k,e[27]=N):N=e[27],N}function V(a){const e=f.c(18);let t,s,l,o;e[0]!==a?({className:s,size:o,action:t,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);const i=(o===void 0?"default":o)==="sm"?"h-9":"h-10";let d;e[5]!==i?(d=u("flex items-center gap-2 border-b px-3",i),e[5]=i,e[6]=d):d=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=p):p=e[7];let m;e[8]!==s||e[9]!==i?(m=u("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent classic:py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",i,s),e[8]=s,e[9]=i,e[10]=m):m=e[10];let r;e[11]!==l||e[12]!==m?(r=n.jsx(x.Input,{"data-slot":"command-input",className:m,...l}),e[11]=l,e[12]=m,e[13]=r):r=e[13];let c;return e[14]!==t||e[15]!==d||e[16]!==r?(c=n.jsxs("div",{"data-slot":"command-input-wrapper",className:d,children:[p,r,t]}),e[14]=t,e[15]=d,e[16]=r,e[17]=c):c=e[17],c}function B(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function F(a){const e=f.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(x.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function H(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Group,{"data-slot":"command-group",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function P(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u("bg-border -mx-1 h-px",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Separator,{"data-slot":"command-separator",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}const E=j("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex compact:min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{highlight:"selected"}});function T(a){const e=f.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=u(E(),t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Item,{"data-slot":"command-item",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}export{F as C,H as a,T as b,B as c,$ as d,V as e,R as f,E as g,P as h};
@@ -1 +1 @@
1
- import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-55En7ztP.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-Cms886Jn.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-CBFf90_T.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[z,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==z||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:z,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=z,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
1
+ import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-BrgfjVMm.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-Db5zI8Z3.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-D_BJZumX.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[z,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==z||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:z,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=z,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
@@ -1,4 +1,4 @@
1
- import{c as _,b as D,r as G,l as ee,j as s,fs as te,a0 as se,ae as ne,T as ie,B as F,t as q,eM as oe,dY as le,am as ae}from"./index-55En7ztP.js";import{a as re,A as ce}from"./alert-IyATCOkZ.js";import{a as de,b as ue,c as V,d as me,S as pe}from"./select-CfMWBPIY.js";import{T as fe,c as xe,a as ge,b as he}from"./tabs-wqWmr8FS.js";import{u as J}from"./use-copy-BEeiF0AV.js";import{i as X}from"./Check-CtmIaXgC.js";import{a as Q}from"./Copy01-B3IMMOKh.js";import{i as ye}from"./Key01-CGZM8V37.js";import{i as Ce}from"./Link01-CpHtaXY6.js";import{C as je,a as be,b as ve}from"./client-icons-DFwFvPlp.js";import{u as we,a as Ne,A as $e}from"./api-keys-EG9PbK9N.js";import{R as ke}from"./require-capability-B5oQvqNV.js";import"./index-C8QVc4YQ.js";import"./ChevronUp-CyyD7MJn.js";import"./AlertCircle-CZgJU8hk.js";import"./Plus-DOI9wakW.js";import"./Trash01-BiPmRbe2.js";import"./alert-dialog-C09wZ9of.js";import"./dialog-kum5ViQ6.js";import"./X-BXzWjoaJ.js";import"./input-CXnRgD2G.js";import"./label-BepsqMnw.js";import"./use-mcp-client-Cms886Jn.js";import"./auth-wbn4hkw_.js";import"./access-gate-gTVIdkvk.js";import"./capability-load-error-BaSTFNnb.js";function Se(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ke(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function _e({client:t,mode:e,url:r,apiKey:c}){const i=c??"<paste-your-api-key>",a=Se();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r} \\
1
+ import{c as _,b as D,r as G,l as ee,j as s,fs as te,a0 as se,ae as ne,T as ie,B as F,t as q,eM as oe,dY as le,am as ae}from"./index-BrgfjVMm.js";import{a as re,A as ce}from"./alert-CAeIKgsg.js";import{a as de,b as ue,c as V,d as me,S as pe}from"./select-BAj8GDmF.js";import{T as fe,c as xe,a as ge,b as he}from"./tabs-5x2EsLv4.js";import{u as J}from"./use-copy-DwTK-qVh.js";import{i as X}from"./Check-DRrZD4Sq.js";import{a as Q}from"./Copy01-BT6z7ZQQ.js";import{i as ye}from"./Key01-BPjkSgKb.js";import{i as Ce}from"./Link01-O7jcIMgL.js";import{C as je,a as be,b as ve}from"./client-icons-C_XzNrl0.js";import{u as we,a as Ne,A as $e}from"./api-keys-BvXXeUsu.js";import{R as ke}from"./require-capability-DW8CuaB_.js";import"./index-CBwF-MmM.js";import"./ChevronUp-BN0TeZdP.js";import"./AlertCircle-DIleECAO.js";import"./Plus-D1cZZn8U.js";import"./Trash01-UuilHlOp.js";import"./alert-dialog-BQ7YDqVG.js";import"./dialog-CoPZcZvZ.js";import"./X-B9qowSuy.js";import"./input-B7CzAD4A.js";import"./label-oKE-JKCp.js";import"./use-mcp-client-Db5zI8Z3.js";import"./auth-BnlPL6eu.js";import"./access-gate-DscR-bsQ.js";import"./capability-load-error-a5Vi87rX.js";function Se(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ke(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function _e({client:t,mode:e,url:r,apiKey:c}){const i=c??"<paste-your-api-key>",a=Se();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r} \\
2
2
  --header "Authorization: Bearer ${i}"`};if(t==="cursor"){const n={url:r};return e==="api-key"&&(n.headers={Authorization:`Bearer ${i}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[a]:n}},null,2)}}if(t==="codex"){const n=[`[mcp_servers.${a}]`,`url = "${r}"`];return e==="api-key"&&n.push(`http_headers = { "Authorization" = "Bearer ${i}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:n.join(`
3
3
  `)}}return e==="oauth"?{language:"text",code:`${r}
4
4
 
@@ -1 +1 @@
1
- import{c as v,b as N,j as s,R as w,am as k,B as y}from"./index-55En7ztP.js";import{i as z}from"./X-BXzWjoaJ.js";import{at as _,ak as C}from"./agent-icon-lfrVH-OK.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=a):a=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[a,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let c;return t[10]!==o||t[11]!==i?(c=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=c):c=t[12],c}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let a;t[6]!==o?(a={Icon:w,label:o},t[6]=o,t[7]=a):a=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let c;t[12]!==n||t[13]!==a||t[14]!==i?(c=[n,a,i],t[12]=n,t[13]=a,t[14]=i,t[15]=c):c=t[15];const m=c;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function A(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:a}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let c;e[0]!==o||e[1]!==r?(c=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(z,{size:18})}),e[0]=o,e[1]=r,e[2]=c):c=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(k,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==a||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,a,g]}),e[12]=a,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==c||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[c,h,p]}),e[19]=c,e[20]=h,e[21]=j):j=e[21],j}function I(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:a,children:r}=t,i=n||!l,c=l&&!n?r:null;let m;return e[0]!==o||e[1]!==a||e[2]!==i||e[3]!==c?(m=s.jsxs(y,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal classic:rounded-lg py-3 text-center text-base font-medium leading-tight",onClick:a,disabled:i,children:[o,c]}),e[0]=o,e[1]=a,e[2]=i,e[3]=c,e[4]=m):m=e[4],m}export{A as C,I as a};
1
+ import{c as v,b as N,j as s,R as w,am as k,B as y}from"./index-BrgfjVMm.js";import{i as z}from"./X-B9qowSuy.js";import{at as _,ak as C}from"./agent-icon-BXDfHtVM.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=a):a=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[a,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let c;return t[10]!==o||t[11]!==i?(c=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=c):c=t[12],c}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let a;t[6]!==o?(a={Icon:w,label:o},t[6]=o,t[7]=a):a=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let c;t[12]!==n||t[13]!==a||t[14]!==i?(c=[n,a,i],t[12]=n,t[13]=a,t[14]=i,t[15]=c):c=t[15];const m=c;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function A(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:a}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let c;e[0]!==o||e[1]!==r?(c=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(z,{size:18})}),e[0]=o,e[1]=r,e[2]=c):c=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(k,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==a||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,a,g]}),e[12]=a,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==c||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[c,h,p]}),e[19]=c,e[20]=h,e[21]=j):j=e[21],j}function I(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:a,children:r}=t,i=n||!l,c=l&&!n?r:null;let m;return e[0]!==o||e[1]!==a||e[2]!==i||e[3]!==c?(m=s.jsxs(y,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal classic:rounded-lg py-3 text-center text-base font-medium leading-tight",onClick:a,disabled:i,children:[o,c]}),e[0]=o,e[1]=a,e[2]=i,e[3]=c,e[4]=m):m=e[4],m}export{A as C,I as a};
@@ -1 +1 @@
1
- import{ap as o,bO as a,bP as t,aq as e,bQ as i,bR as r,cX as p,dC as b,cT as m}from"./index-55En7ztP.js";const h=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:p("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),_=b.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(_).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});u.partial();function T(n){return n!=null&&"command"in n}function y(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{h as O,T as i,y as p};
1
+ import{ap as o,bO as a,bP as t,aq as e,bQ as i,bR as r,cX as p,dC as b,cT as m}from"./index-BrgfjVMm.js";const h=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:p("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),_=b.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(_).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});u.partial();function T(n){return n!=null&&"command"in n}function y(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{h as O,T as i,y as p};
@@ -1 +1 @@
1
- import{c as D,a0 as S,a6 as $,K as F,a8 as R,b as K,l as T,j as c,eM as q}from"./index-55En7ztP.js";import{u as O}from"./useInfiniteQuery-CwWQ4nTA.js";import{g as A}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-CaSnOIi_.js";function X(t){const e=D.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:z,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(Y)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function Y(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=A(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=A(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=D.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),f=o&&"cursor-pointer hover:bg-muted/50";let d;e[0]!==a||e[1]!==f?(d=T("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,_=o?0:void 0,M=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(V,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:T("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==M||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":M,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=M,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
1
+ import{c as D,a0 as S,a6 as $,K as F,a8 as R,b as K,l as T,j as c,eM as q}from"./index-BrgfjVMm.js";import{u as O}from"./useInfiniteQuery-D679Q3IA.js";import{g as A}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-EpYn4ywU.js";function X(t){const e=D.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:z,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(Y)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function Y(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=A(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=A(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=D.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),f=o&&"cursor-pointer hover:bg-muted/50";let d;e[0]!==a||e[1]!==f?(d=T("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,_=o?0:void 0,M=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(V,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:T("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==M||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":M,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=M,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};