decocms 4.393.2 → 4.394.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 (348) hide show
  1. package/dist/client/assets/{AlertCircle-Bw5IjQll.js → AlertCircle-tzBtBuYO.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CoImiSZ8.js → AreaChart-Bh-oTbuF.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-o7Y-fEOP.js → ArrowLeft-DhWZ9Y7H.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-B9KOH6Mp.js → ArrowRight-CCghDCya.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-siSqnojJ.js → ArrowUp-CDoItcq5.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-B_oczkwR.js → CartesianChart-ByyZujn7.js} +1 -1
  7. package/dist/client/assets/{Check-UJc6KAi4.js → Check-Coc9_TXT.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-BMHJHOxj.js → CheckCircle-DbUfN3SF.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BfOf-CcT.js → ChevronUp-DLnmLSCG.js} +1 -1
  10. package/dist/client/assets/{Copy01-jqAaecgQ.js → Copy01-PdybgPVp.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-CTgYXlxC.js → CreditCard01-DkKDdpUC.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-DtamlI3j.js → DotsVertical-BGUmkpP9.js} +1 -1
  13. package/dist/client/assets/{Download01-BncQoTgS.js → Download01-CqpqLxeG.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-BO0Qz3lQ.js → ErrorBarContext-Dr-5AcA1.js} +1 -1
  15. package/dist/client/assets/{Eye-B7WWrfVK.js → Eye-D0ekeqzm.js} +1 -1
  16. package/dist/client/assets/{Globe04-CvitSAdn.js → Globe04-B4Nr-u9E.js} +1 -1
  17. package/dist/client/assets/{Image01-BcdinLnP.js → Image01-Bg0KCejF.js} +1 -1
  18. package/dist/client/assets/{Key01-DfBLIcDO.js → Key01-1MQrCq6H.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-fyXbrdze.js → LayoutLeft-7Jz4-Mop.js} +1 -1
  20. package/dist/client/assets/{Line-Bve7YiyC.js → Line-BFu2XPNg.js} +1 -1
  21. package/dist/client/assets/{Link01-CUNNOfMo.js → Link01-BjL7DpkW.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-CjlXJ8JK.js → LinkExternal01-DaqiHgPg.js} +1 -1
  23. package/dist/client/assets/{Monitor01-Bgx96mK1.js → Monitor01-BbTRMBeD.js} +1 -1
  24. package/dist/client/assets/{Package-CCyqVpLL.js → Package-D0Bm_Aoy.js} +1 -1
  25. package/dist/client/assets/{Palette-uwPl9fbG.js → Palette-KbvTz9tU.js} +1 -1
  26. package/dist/client/assets/{Plus-DVO5ynNJ.js → Plus-CiwYAI1V.js} +1 -1
  27. package/dist/client/assets/{SearchLg-BuXTAvmm.js → SearchLg-CXapmDmy.js} +1 -1
  28. package/dist/client/assets/{SearchMd-4YJlY5kp.js → SearchMd-BJDTDeyj.js} +1 -1
  29. package/dist/client/assets/{Sector-C0TyewPL.js → Sector-BOdGSItx.js} +1 -1
  30. package/dist/client/assets/{Share07-slK9gs7d.js → Share07-_n_3KSG2.js} +1 -1
  31. package/dist/client/assets/{Stars01-BHCqXxdF.js → Stars01-RpWnWVgk.js} +1 -1
  32. package/dist/client/assets/{Sun-CD9h4ghg.js → Sun-C2rLL6Uq.js} +1 -1
  33. package/dist/client/assets/{Tool01-BGKWFxqT.js → Tool01--hd4usAY.js} +1 -1
  34. package/dist/client/assets/{Trash01-elTVICGJ.js → Trash01-CfqvPc4W.js} +1 -1
  35. package/dist/client/assets/{Upload01-C_pNo17d.js → Upload01-jGvagD9c.js} +1 -1
  36. package/dist/client/assets/{User01-A5ycKGmZ.js → User01-BcXgXcFa.js} +1 -1
  37. package/dist/client/assets/{UserSquare-CjWcARYJ.js → UserSquare-BL2q0kZi.js} +1 -1
  38. package/dist/client/assets/{Users01-CYLXmuWv.js → Users01-CSVSZ1mk.js} +1 -1
  39. package/dist/client/assets/{X-DfL64JB-.js → X-DPpz9jKH.js} +1 -1
  40. package/dist/client/assets/{XCircle-Cn_6vXwx.js → XCircle-DKXrako8.js} +1 -1
  41. package/dist/client/assets/{XClose-B001-Pfs.js → XClose-6Na7xr0S.js} +1 -1
  42. package/dist/client/assets/{Zap-vgIAjKVr.js → Zap-BffDq0Z4.js} +1 -1
  43. package/dist/client/assets/{ZoomOut-DckCENcg.js → ZoomOut-De6LkeB9.js} +1 -1
  44. package/dist/client/assets/{access-gate-0Jk-hZos.js → access-gate-Dhew3pVq.js} +1 -1
  45. package/dist/client/assets/{add-connection-dialog-CXhnysPD.js → add-connection-dialog-Cm10a8FY.js} +1 -1
  46. package/dist/client/assets/{agent-analytics-BhYprSIO.js → agent-analytics-Blq-MWF2.js} +1 -1
  47. package/dist/client/assets/agent-app-IkXb_lpr.js +1 -0
  48. package/dist/client/assets/{agent-assets-CS42OR4f.js → agent-assets-Cw1pczQQ.js} +1 -1
  49. package/dist/client/assets/{agent-automation-D1d7OJUi.js → agent-automation-Bz6KOM1M.js} +1 -1
  50. package/dist/client/assets/{agent-automations-CbaldEol.js → agent-automations-BnjnhLbZ.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-zJfGAKvI.js → agent-connect-sources-BE_dOdpO.js} +1 -1
  52. package/dist/client/assets/agent-deck-D0J6E70W.js +1 -0
  53. package/dist/client/assets/{agent-e2e-BqhXL_2D.js → agent-e2e-BTaOiYT0.js} +1 -1
  54. package/dist/client/assets/{agent-experiments-D0OMBW0K.js → agent-experiments-BH7EksAz.js} +1 -1
  55. package/dist/client/assets/agent-file-CF11BBHb.js +1 -0
  56. package/dist/client/assets/{agent-git-oYCjVN4D.js → agent-git-D3Y63Vm_.js} +1 -1
  57. package/dist/client/assets/{agent-hosting-DYUWky5K.js → agent-hosting-BZfOXzkh.js} +1 -1
  58. package/dist/client/assets/{agent-icon-zd22KZWY.js → agent-icon-B0pYdU7O.js} +1 -1
  59. package/dist/client/assets/agent-library-file-B2CwqFar.js +1 -0
  60. package/dist/client/assets/{agent-monitor-ByQaXaRH.js → agent-monitor-Cga7A7QR.js} +1 -1
  61. package/dist/client/assets/{agent-overview-DIOaHJov.js → agent-overview-B1VFSRC6.js} +1 -1
  62. package/dist/client/assets/agent-settings-5VkiDszl.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-ZmxLibT8.js → agent-site-editor-B4p2CJXY.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-02h6KAQP.js +2 -0
  65. package/dist/client/assets/{agent-site-editor-content-DRt9vlIp.js → agent-site-editor-content-DCY6UuDL.js} +3 -3
  66. package/dist/client/assets/{agent-site-editor-preview-7Z9SMUI4.js → agent-site-editor-preview-BQhCHGGF.js} +3 -3
  67. package/dist/client/assets/agent-view-DVAaHeq-.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-B9HgiZ1B.js → agent-view-guard-D4OQj7u5.js} +1 -1
  69. package/dist/client/assets/{agents-list-DG9VPQx9.js → agents-list-D7sE_B-j.js} +1 -1
  70. package/dist/client/assets/{ai-providers-0H-9yOOS.js → ai-providers-OOqKoNoU.js} +1 -1
  71. package/dist/client/assets/{alert-Buf9oiWa.js → alert-DAnRqUST.js} +1 -1
  72. package/dist/client/assets/{alert-dialog-DG5_wKgz.js → alert-dialog-BnddQdN4.js} +1 -1
  73. package/dist/client/assets/api-keys-DZG1czlY.js +1 -0
  74. package/dist/client/assets/{api-keys-DcivUdvJ.js → api-keys-irX6oqrD.js} +1 -1
  75. package/dist/client/assets/app-editor-DU78LYaX.js +1 -0
  76. package/dist/client/assets/{asset-utils-C3onDFgi.js → asset-utils-RAGzAE_d.js} +1 -1
  77. package/dist/client/assets/{auth-53fyYgiO.js → auth-BIJ1qIQ8.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-DMZWFewT.js → auth-catchall-AEqFZvzv.js} +1 -1
  79. package/dist/client/assets/{auth-entry-CFGe0IMr.js → auth-entry-CSvKAB_7.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-wTIwUQun.js → auth-split-layout-s8-xOgFg.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-l6FFkSS7.js → authenticate-and-persist-oauth-ChX9ckbG.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-DhjFlSDJ.js → automation-list-row-lSBDDKrr.js} +1 -1
  83. package/dist/client/assets/{automation-runs-mbixKpuo.js → automation-runs-WVo1UCLo.js} +1 -1
  84. package/dist/client/assets/{automations-CTADvQov.js → automations-CLZjqEwG.js} +1 -1
  85. package/dist/client/assets/{autosend-DAAxKqft.js → autosend-BPmJALPL.js} +1 -1
  86. package/dist/client/assets/{avatar-DfT409hq.js → avatar-BwreWGWc.js} +1 -1
  87. package/dist/client/assets/{badge-CbxyjOGk.js → badge-_OQtTNcm.js} +1 -1
  88. package/dist/client/assets/{block-document-DbC1itU8.js → block-document-BTt9IrCj.js} +1 -1
  89. package/dist/client/assets/{blocks-preview-workspace-context-B1GaYQuE.js → blocks-preview-workspace-context-DxhMBJiZ.js} +1 -1
  90. package/dist/client/assets/{breadcrumb-DHQJNhJR.js → breadcrumb-eJglg4s2.js} +1 -1
  91. package/dist/client/assets/{buckets-4eM8JDqA.js → buckets-Bnkn07S7.js} +1 -1
  92. package/dist/client/assets/{build-improve-prompt-doc-B9GRKFtg.js → build-improve-prompt-doc-DFqG-z0k.js} +1 -1
  93. package/dist/client/assets/{calendar-BARhOOLs.js → calendar-CfMEWmB7.js} +1 -1
  94. package/dist/client/assets/{capability-load-error-ULojqFhh.js → capability-load-error-CTDYH3A8.js} +1 -1
  95. package/dist/client/assets/{category-editor-Ci_lv1Kn.js → category-editor-DB5r6sXW.js} +1 -1
  96. package/dist/client/assets/{chart-B51bLH2f.js → chart-B_IUL-qi.js} +1 -1
  97. package/dist/client/assets/{chat-context-Biuolo5l.js → chat-context-CyVVH9-g.js} +1 -1
  98. package/dist/client/assets/{chat-draft-DVuLPy-j.js → chat-draft-FhLnuMKh.js} +1 -1
  99. package/dist/client/assets/{checkbox-wlUWF7hx.js → checkbox-qX-pxOmo.js} +1 -1
  100. package/dist/client/assets/{choose-editor-CfaxqMkO.js → choose-editor-C9Fm0faQ.js} +1 -1
  101. package/dist/client/assets/{claim-phase-copy-CCRVAHif.js → claim-phase-copy-B_fwm5Xz.js} +1 -1
  102. package/dist/client/assets/{cli-auth-success-CP3p1uvq.js → cli-auth-success-C1vHEBEf.js} +1 -1
  103. package/dist/client/assets/{client-icons-BR1lKQvc.js → client-icons-D5_DGGB9.js} +1 -1
  104. package/dist/client/assets/{collapsible-CNrrD80N.js → collapsible-CSaCPGN5.js} +1 -1
  105. package/dist/client/assets/{collection-detail-DlQAEEKO.js → collection-detail-DwDWcpUI.js} +1 -1
  106. package/dist/client/assets/{collection-display-button-CYn3y4wE.js → collection-display-button-B7_eHuzg.js} +1 -1
  107. package/dist/client/assets/{collection-search-eq8Jx08C.js → collection-search-CJqwTLOz.js} +1 -1
  108. package/dist/client/assets/{collection-table-wrapper-UUqdFF6D.js → collection-table-wrapper-DVVxXqxq.js} +1 -1
  109. package/dist/client/assets/{collection-tabs-DOg1wSrf.js → collection-tabs-DSK92vd4.js} +1 -1
  110. package/dist/client/assets/{combobox-DjacBfQl.js → combobox-B6d7_L7p.js} +1 -1
  111. package/dist/client/assets/{command-fcrvAs5N.js → command-CTr5OWzL.js} +1 -1
  112. package/dist/client/assets/{companion-mcps-section-BUgcQwu4.js → companion-mcps-section-BoJQkrm8.js} +1 -1
  113. package/dist/client/assets/{connect-CXE8VD1-.js → connect-DqOiVC69.js} +1 -1
  114. package/dist/client/assets/{connect-layout-we_wWtwn.js → connect-layout-CAiGW2dB.js} +1 -1
  115. package/dist/client/assets/{connection-N1n0cOU1.js → connection-DgqoZkkv.js} +1 -1
  116. package/dist/client/assets/{connection-card-CimJ0_Nn.js → connection-card-BFQuU-NM.js} +1 -1
  117. package/dist/client/assets/{connection-detail-DvIWvhqF.js → connection-detail-CqBLkWfH.js} +1 -1
  118. package/dist/client/assets/{connection-form-helpers-B3f1xsmc.js → connection-form-helpers-CCEJhaC4.js} +1 -1
  119. package/dist/client/assets/{connections-3TDgqTMn.js → connections-Db2s9C5z.js} +1 -1
  120. package/dist/client/assets/{context-CebZ2Cct.js → context-CxZMfYg5.js} +1 -1
  121. package/dist/client/assets/{create-organization-dialog-BdCFwYq9.js → create-organization-dialog-DBOgkhBn.js} +1 -1
  122. package/dist/client/assets/{decofile-api-CPs_PsP6.js → decofile-api-BSrAG0ns.js} +1 -1
  123. package/dist/client/assets/{decopilot-4O7tybPz.js → decopilot-C2vbDCZ7.js} +1 -1
  124. package/dist/client/assets/{dialog-Fq0nM2c3.js → dialog-DGPx82gL.js} +1 -1
  125. package/dist/client/assets/{discover-BU5y4Bvv.js → discover-GwN09fXG.js} +1 -1
  126. package/dist/client/assets/{domain-settings-BDx0Eb04.js → domain-settings-BKyjvl6c.js} +1 -1
  127. package/dist/client/assets/{download-app-dialog-B3AxYOeQ.js → download-app-dialog-Dot6GNMe.js} +1 -1
  128. package/dist/client/assets/{drawer-BUmwqcdF.js → drawer-Cxr7l-4e.js} +1 -1
  129. package/dist/client/assets/{editor-DWYOPm_Z.js → editor-lzRy2QZM.js} +1 -1
  130. package/dist/client/assets/{empty-state-yvdmqB8T.js → empty-state-8MXnQ_GK.js} +1 -1
  131. package/dist/client/assets/{empty-state-gX-Wv4YC.js → empty-state-CnG3r8QN.js} +1 -1
  132. package/dist/client/assets/{extract-connection-data-BOVjMhIV.js → extract-connection-data-DKbOi_7e.js} +1 -1
  133. package/dist/client/assets/{feature-gate-CRsogGiy.js → feature-gate-EjKRhlBy.js} +1 -1
  134. package/dist/client/assets/{feature-paywall-CEyVPyUB.js → feature-paywall-Cw-qxgWP.js} +1 -1
  135. package/dist/client/assets/{file-explorer-Bspsi2W2.js → file-explorer-CQi0b9gQ.js} +1 -1
  136. package/dist/client/assets/{file-preview-AD_9B9zi.js → file-preview-DnQmmaOa.js} +1 -1
  137. package/dist/client/assets/{file-share-button-DkWghzVW.js → file-share-button-DR19ydDo.js} +1 -1
  138. package/dist/client/assets/{file-type-icon-Ba6U7kMI.js → file-type-icon-MXiedR-A.js} +1 -1
  139. package/dist/client/assets/{folder-icon-DaSOqQDi.js → folder-icon-DI21rzJF.js} +1 -1
  140. package/dist/client/assets/{form-DwboDCoC.js → form--Hhb1lS2.js} +1 -1
  141. package/dist/client/assets/{gateway-client-U-aebFOp.js → gateway-client-C_HjIRQz.js} +1 -1
  142. package/dist/client/assets/{general-Bu1PxERY.js → general-DujjmMWz.js} +1 -1
  143. package/dist/client/assets/{github-icon-Bczff7w9.js → github-icon-CSGyew3w.js} +1 -1
  144. package/dist/client/assets/{home-CCdzOU8E.js → home-D2POpsk2.js} +1 -1
  145. package/dist/client/assets/{hooks-AXSBDhcZ.js → hooks-CgybLFx3.js} +1 -1
  146. package/dist/client/assets/{icon-button-DN7NI2o6.js → icon-button-0ESyXEBb.js} +1 -1
  147. package/dist/client/assets/{index-jpNIlPuy.js → index-B0qpEaw7.js} +2 -2
  148. package/dist/client/assets/{index-CBBWa_aS.js → index-BGMTeROl.js} +1 -1
  149. package/dist/client/assets/{index-BDb83FE4.js → index-BXMNgzxQ.js} +1 -1
  150. package/dist/client/assets/{index-BMy4NaZ7.js → index-Bef1FK7P.js} +1 -1
  151. package/dist/client/assets/{index-D8J5Sxky.js → index-BfrrNC4t.js} +1 -1
  152. package/dist/client/assets/{index-8CYOhgaG.js → index-BrIBm4v5.js} +1 -1
  153. package/dist/client/assets/{index-ClatepTO.js → index-Bx4GZchl.js} +1 -1
  154. package/dist/client/assets/{index-CDlZjUqm.js → index-D2bT_pHy.js} +1 -1
  155. package/dist/client/assets/{index-C-DpAA_l.js → index-D66cLMGw.js} +1 -1
  156. package/dist/client/assets/{index-BQxAqOiP.js → index-DCRx3N4w.js} +1 -1
  157. package/dist/client/assets/{index-B0qklDzl.js → index-DJcOZus4.js} +1 -1
  158. package/dist/client/assets/{index-C9q3x3zt.js → index-Dl4PPXDo.js} +1 -1
  159. package/dist/client/assets/{index-Bry0pxcS.js → index-eHA0VHjW.js} +1 -1
  160. package/dist/client/assets/{index-CCj1WqkC.js → index-pP_hkW8A.js} +1 -1
  161. package/dist/client/assets/{index-redirect-C6u8gj-W.js → index-redirect-Tt_Hvq1D.js} +1 -1
  162. package/dist/client/assets/{infiniteQueryObserver-Bh_fjXey.js → infiniteQueryObserver-DG_CJ8hp.js} +1 -1
  163. package/dist/client/assets/{infra-billing-CSgHD_R2.js → infra-billing-Xy4pSnZf.js} +1 -1
  164. package/dist/client/assets/{input-AEl9FaSr.js → input-BJL8fEaY.js} +1 -1
  165. package/dist/client/assets/{input-CxmpW7Ek.js → input-CwiRCiUX.js} +1 -1
  166. package/dist/client/assets/{input-B1-dAf6o.js → input-Dsr1V3ga.js} +1 -1
  167. package/dist/client/assets/{integration-icon-D86q1Lsj.js → integration-icon-CaZ_iM2H.js} +1 -1
  168. package/dist/client/assets/{label-oK9z5afE.js → label-DN7QXoMc.js} +1 -1
  169. package/dist/client/assets/{last-preview-page-BZ6mQEgl.js → last-preview-page-EieyNvx0.js} +1 -1
  170. package/dist/client/assets/{layout-rWWMXjrM.js → layout-fdfF1Xhy.js} +1 -1
  171. package/dist/client/assets/{legacy-agents-deep-D75KaBzt.js → legacy-agents-deep-BNLUmgpa.js} +1 -1
  172. package/dist/client/assets/{legacy-main-redirect-BYmbBZTf.js → legacy-main-redirect-DlUVSTQf.js} +1 -1
  173. package/dist/client/assets/{library-LbSkWNn5.js → library-CffZzkF-.js} +1 -1
  174. package/dist/client/assets/{login-C5K6zPK9.js → login-CqoaF6h4.js} +1 -1
  175. package/dist/client/assets/{markdown-DewRRxkR.js → markdown-B7zOg28M.js} +1 -1
  176. package/dist/client/assets/{mcp-app-renderer-B8WWFBjV.js → mcp-app-renderer-BW46jUPV.js} +1 -1
  177. package/dist/client/assets/{mcp-oauth-DF-3wjVL.js → mcp-oauth-2PJs3bnc.js} +1 -1
  178. package/dist/client/assets/{members-gpZjw-0e.js → members-D2i47XFW.js} +1 -1
  179. package/dist/client/assets/{message-templates-CGvvfznj.js → message-templates-EuxR8iU1.js} +1 -1
  180. package/dist/client/assets/{mini-report-page-B18w4HJM.js → mini-report-page-ozfQD8FM.js} +1 -1
  181. package/dist/client/assets/{mock-board-PHDWZ5Rj.js → mock-board-C9Ag12or.js} +3 -3
  182. package/dist/client/assets/{monaco-editor-1VDRMi5Z.js → monaco-editor-CfjOQoC6.js} +1 -1
  183. package/dist/client/assets/{monitoring-stats-row-BTHr4fZ5.js → monitoring-stats-row-Df41L7di.js} +1 -1
  184. package/dist/client/assets/{multi-select-_hBjuZhJ.js → multi-select-jAEZXQKR.js} +1 -1
  185. package/dist/client/assets/{mustache-qkuFcNLb.js → mustache-y4w6Ty5W.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-B1Uai9y4.js → oauth-callback-CbxtOgS2.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider-glRwYBh0.js → oauth-callback-ai-provider-hKNapdmK.js} +1 -1
  188. package/dist/client/assets/{onboarding-DDANr9IQ.js → onboarding-ChItrnlM.js} +1 -1
  189. package/dist/client/assets/{optimistic-project-sidebar-views-DMA4YBZs.js → optimistic-project-sidebar-views-Cfnrr0Jj.js} +1 -1
  190. package/dist/client/assets/{org-file-open-context-CcPURBkR.js → org-file-open-context-CZMYAWQN.js} +1 -1
  191. package/dist/client/assets/{organization-choice-q4iDzxaT.js → organization-choice-CLR69YcJ.js} +1 -1
  192. package/dist/client/assets/{orgs-B2MwX22p.js → orgs-CBeOcuE6.js} +1 -1
  193. package/dist/client/assets/{page-seo-form-DPxJXv8-.js → page-seo-form-CJWclOPZ.js} +1 -1
  194. package/dist/client/assets/{pair-C60j_huQ.js → pair-T-wHtvep.js} +1 -1
  195. package/dist/client/assets/{plan-ladder-DiEGIMNA.js → plan-ladder-DOEcOxTl.js} +1 -1
  196. package/dist/client/assets/{popover-Ddu4iAPr.js → popover-CEtRvN98.js} +1 -1
  197. package/dist/client/assets/{post-calendar-DmX3brDp.js → post-calendar-w7M3thzy.js} +1 -1
  198. package/dist/client/assets/{post-editor-DDpQa9aK.js → post-editor-DwN7K2sF.js} +1 -1
  199. package/dist/client/assets/{preview-content-nP7rYoVp.js → preview-content-BhCmwalD.js} +1 -1
  200. package/dist/client/assets/{preview-dialog-DVTbqSrZ.js → preview-dialog-CCQdIAtq.js} +1 -1
  201. package/dist/client/assets/{profile-DH86JppE.js → profile-DuaABraf.js} +1 -1
  202. package/dist/client/assets/{project-app-view-D1ahOteG.js → project-app-view-y0Nq1nxs.js} +1 -1
  203. package/dist/client/assets/{project-feed-DcdY9b8p.js → project-feed-Cgd25MPj.js} +1 -1
  204. package/dist/client/assets/{project-icon-CE-voYeF.js → project-icon-lm4EjxFa.js} +1 -1
  205. package/dist/client/assets/project-reports-h3ekYg0O.js +1 -0
  206. package/dist/client/assets/project-tasks-C81G2pww.js +1 -0
  207. package/dist/client/assets/{prompts-B0m81b-P.js → prompts-DTHvfyfR.js} +1 -1
  208. package/dist/client/assets/record-editor-BlP3_kO1.js +1 -0
  209. package/dist/client/assets/{redirect-editor-BxGeAe1m.js → redirect-editor-Cc6-KG-_.js} +1 -1
  210. package/dist/client/assets/{reports-BGuoAK-j.js → reports-C5LeibvI.js} +1 -1
  211. package/dist/client/assets/reports-IHIS0CVa.js +1 -0
  212. package/dist/client/assets/{reports-onboarding-BSr5xqLY.js → reports-onboarding-DlkNhy0J.js} +1 -1
  213. package/dist/client/assets/{reports-tab-Dv1b1trN.js → reports-tab-CuQPur1S.js} +2 -2
  214. package/dist/client/assets/{repositories-DhDdUI7t.js → repositories-ChPkf1VH.js} +1 -1
  215. package/dist/client/assets/{repository-import-picker-DQ2X5vYR.js → repository-import-picker-CAOm_Oym.js} +1 -1
  216. package/dist/client/assets/{repository-picker-DuUqRm8X.js → repository-picker-JAha7tU1.js} +1 -1
  217. package/dist/client/assets/{require-capability-DbxXicMT.js → require-capability-CPAWG67A.js} +1 -1
  218. package/dist/client/assets/{required-auth-layout-nM5VBqDv.js → required-auth-layout-DmM8rSvX.js} +1 -1
  219. package/dist/client/assets/{reset-password-B9WOYVDd.js → reset-password-qOr8e39t.js} +1 -1
  220. package/dist/client/assets/{resizable-BAWWm2nK.js → resizable-yJXr71JH.js} +1 -1
  221. package/dist/client/assets/{review-settings-BGS7uQ6I.js → review-settings-BG_xKHzl.js} +1 -1
  222. package/dist/client/assets/{rich-text-link-control-Bdhpb3Zg.js → rich-text-link-control-BjM_fYsh.js} +1 -1
  223. package/dist/client/assets/{roles-V5JoTuaT.js → roles-B3E__h3Z.js} +1 -1
  224. package/dist/client/assets/{route-BqHCYCsv.js → route-BFG1vHpA.js} +1 -1
  225. package/dist/client/assets/{route-ZOU_9LwH.js → route-CHurEa8E.js} +1 -1
  226. package/dist/client/assets/{route-DjwL1Fx5.js → route-CKVQFZYS.js} +1 -1
  227. package/dist/client/assets/{route-page-header-BpBVey10.js → route-page-header-DYiywwTL.js} +1 -1
  228. package/dist/client/assets/{runnable-block-editor-BhysVT_d.js → runnable-block-editor-CkpskHo0.js} +1 -1
  229. package/dist/client/assets/{sandbox-lifecycle-context-MYXX62o9.js → sandbox-lifecycle-context-Bi-Cvlqu.js} +1 -1
  230. package/dist/client/assets/{schema-CbxRw8u0.js → schema-6-aZgjq3.js} +1 -1
  231. package/dist/client/assets/{scroll-area-cGn3a7WI.js → scroll-area-Bwa2YoeY.js} +1 -1
  232. package/dist/client/assets/{search-input-BDrnENeI.js → search-input-DXjnx2PV.js} +1 -1
  233. package/dist/client/assets/{search-toggle-D3OE1eNA.js → search-toggle-BsD71wnQ.js} +1 -1
  234. package/dist/client/assets/{secret-picker-7NmqTvJr.js → secret-picker-Dl6q977M.js} +1 -1
  235. package/dist/client/assets/{secrets-C8RnJX_t.js → secrets-CTE_naXO.js} +1 -1
  236. package/dist/client/assets/{sections-editor-B7HawNxT.js → sections-editor-De8yGlIs.js} +1 -1
  237. package/dist/client/assets/{select-DxhjEfyz.js → select-CNQYFWAD.js} +1 -1
  238. package/dist/client/assets/{select-model-BANyElMS.js → select-model-DHZN7I99.js} +1 -1
  239. package/dist/client/assets/{seo-editor-DfUSXMZj.js → seo-editor-BWK29xHc.js} +1 -1
  240. package/dist/client/assets/{separator-ByET-GLC.js → separator-DBa5HiBG.js} +1 -1
  241. package/dist/client/assets/{settings-tab-XTpgZ69I.js → settings-tab-B8_S8Xh9.js} +1 -1
  242. package/dist/client/assets/{sheet-n9kcgSxF.js → sheet-DEclIhmx.js} +1 -1
  243. package/dist/client/assets/{shell-layout-3Y13kkhL.js → shell-layout-DI0WZ20b.js} +1 -1
  244. package/dist/client/assets/{sidebar-CJTXGZDA.js → sidebar-CtdgbfUp.js} +1 -1
  245. package/dist/client/assets/{skill-preview-By3pB2y3.js → skill-preview-CS53D2GB.js} +1 -1
  246. package/dist/client/assets/{skills-D4_sFwwl.js → skills-DQ7hPQD_.js} +1 -1
  247. package/dist/client/assets/{sso-BYhFmBwz.js → sso-CyW2ImiF.js} +1 -1
  248. package/dist/client/assets/{suggestion-C4rd6y9a.js → suggestion-DEZb-ot_.js} +1 -1
  249. package/dist/client/assets/{switch-DKrCkEm_.js → switch-Dzx4yMpl.js} +1 -1
  250. package/dist/client/assets/{synced-repos-2MrHm3BW.js → synced-repos-B8JDKRf5.js} +1 -1
  251. package/dist/client/assets/{table-CVXiShGi.js → table-BEzNPfEF.js} +1 -1
  252. package/dist/client/assets/{tabs-DZsSgDfP.js → tabs-JiVxVRZf.js} +1 -1
  253. package/dist/client/assets/{task-board-Ny1PbjMW.js → task-board-BT8nYg64.js} +1 -1
  254. package/dist/client/assets/{task-route-9MeQLYQ9.js → task-route-YtNfg9PX.js} +1 -1
  255. package/dist/client/assets/{task-status-DbQ_mzm6.js → task-status-DfXxTFep.js} +1 -1
  256. package/dist/client/assets/{taskboard-analytics-DywDB_Qc.js → taskboard-analytics-DO3fKO0z.js} +1 -1
  257. package/dist/client/assets/tasks-mGWVmJLf.js +1 -0
  258. package/dist/client/assets/{tasks-DEcROjS5.js → tasks-u-rcnf4l.js} +1 -1
  259. package/dist/client/assets/{textarea-DGsUkzqN.js → textarea-jZnqlY-8.js} +1 -1
  260. package/dist/client/assets/{thread-button-PKgxAUks.js → thread-button-Dehb0Nzw.js} +1 -1
  261. package/dist/client/assets/{thread-intent-CDjInTZL.js → thread-intent-CvOfC-EI.js} +1 -1
  262. package/dist/client/assets/{thread-route-CC_31SLX.js → thread-route-Cbbtpvba.js} +1 -1
  263. package/dist/client/assets/{thread-route-D30inKGP.js → thread-route-HgheUsEk.js} +1 -1
  264. package/dist/client/assets/{thread-sheet-body-hFIE9VHn.js → thread-sheet-body-q0yiTkhX.js} +1 -1
  265. package/dist/client/assets/{toggle-group-DPI9Gz2N.js → toggle-group--3-L6Okw.js} +1 -1
  266. package/dist/client/assets/{toolbar-icon-button-BkDKNKtL.js → toolbar-icon-button-BfCfbDcd.js} +1 -1
  267. package/dist/client/assets/{tooltip-CSEjy-r8.js → tooltip-BXYjNwWN.js} +1 -1
  268. package/dist/client/assets/{track-K6tQy-wy.js → track-CuHsKfF2.js} +1 -1
  269. package/dist/client/assets/{types-k3vJw7wx.js → types-DfkVj-zb.js} +1 -1
  270. package/dist/client/assets/{usage-stats-HcbmSz7a.js → usage-stats-D1-4LQv0.js} +1 -1
  271. package/dist/client/assets/{use-ai-providers-CcGxl3Gi.js → use-ai-providers-tFU_3Kqt.js} +1 -1
  272. package/dist/client/assets/{use-automations-CDFazwkf.js → use-automations-Di4jJLJ9.js} +1 -1
  273. package/dist/client/assets/{use-autosave-DsxiIWxA.js → use-autosave-Bq7k0ToN.js} +1 -1
  274. package/dist/client/assets/{use-connect-companion-D6711Opr.js → use-connect-companion-C4XxMYME.js} +1 -1
  275. package/dist/client/assets/{use-connection-CMx-XZiq.js → use-connection-AWw0KhJV.js} +1 -1
  276. package/dist/client/assets/{use-copy-BpzZQl2g.js → use-copy-CEy6MIWt.js} +1 -1
  277. package/dist/client/assets/{use-create-virtual-mcp--ht4Rkm7.js → use-create-virtual-mcp-P81sYEuS.js} +1 -1
  278. package/dist/client/assets/{use-date-fns-locale-BjV4TzBE.js → use-date-fns-locale-Lhw4hTk_.js} +1 -1
  279. package/dist/client/assets/{use-debounced-autosave-CEylLohK.js → use-debounced-autosave-DIvw-LP8.js} +1 -1
  280. package/dist/client/assets/{use-debounced-value-C6okEGbV.js → use-debounced-value-PDlGwlBz.js} +1 -1
  281. package/dist/client/assets/{use-deco-credits-CpqHEICB.js → use-deco-credits-Dl8I9t1l.js} +1 -1
  282. package/dist/client/assets/{use-decopilot-events-Dppj3YU9.js → use-decopilot-events-7bImCsXr.js} +1 -1
  283. package/dist/client/assets/{use-delete-connection-DUW9f2u1.js → use-delete-connection-DKctb_wK.js} +1 -1
  284. package/dist/client/assets/{use-deployment-admin-DshXpxI2.js → use-deployment-admin-Wc4Bv4Jd.js} +1 -1
  285. package/dist/client/assets/{use-entitlements-Ba17FhRN.js → use-entitlements-BuNLYA_N.js} +1 -1
  286. package/dist/client/assets/{use-fast-preview-draft-url-kMKxC_Pw.js → use-fast-preview-draft-url-BBoIAvoY.js} +1 -1
  287. package/dist/client/assets/{use-file-configs-BmEDH0VE.js → use-file-configs-CLQBYz-s.js} +1 -1
  288. package/dist/client/assets/{use-in-settings-YUhZQzYy.js → use-in-settings-CEip7dV0.js} +1 -1
  289. package/dist/client/assets/{use-infinite-scroll-CSRrFY6h.js → use-infinite-scroll-Cmo9kbZs.js} +1 -1
  290. package/dist/client/assets/{use-join-requests-BoS4qMQi.js → use-join-requests-DqdQFWaU.js} +1 -1
  291. package/dist/client/assets/{use-main-panel-tabs-By5S27Gp.js → use-main-panel-tabs-D0j_46cf.js} +1 -1
  292. package/dist/client/assets/{use-mcp-auth-status-CWdlR5O6.js → use-mcp-auth-status-B1JTWIJl.js} +1 -1
  293. package/dist/client/assets/{use-mcp-client-C8DXVUZj.js → use-mcp-client-BhoJGxzx.js} +1 -1
  294. package/dist/client/assets/{use-mcp-prompts-JOWAmkEq.js → use-mcp-prompts-CvlUXTKY.js} +1 -1
  295. package/dist/client/assets/{use-mcp-tools-D-S9SAOh.js → use-mcp-tools-CFBGicIf.js} +1 -1
  296. package/dist/client/assets/{use-members-CAwVsdC4.js → use-members-TtaHQY2O.js} +1 -1
  297. package/dist/client/assets/{use-mobile-BYW51CpD.js → use-mobile-BfqeJPla.js} +1 -1
  298. package/dist/client/assets/{use-navigate-to-agent-ebIYYmYW.js → use-navigate-to-agent-BuXe1295.js} +1 -1
  299. package/dist/client/assets/{use-open-billing-url-i3U-Ki4a.js → use-open-billing-url-B5weCOmy.js} +1 -1
  300. package/dist/client/assets/{use-org-auth-client-D-B1M9Fj.js → use-org-auth-client-BkCncSU0.js} +1 -1
  301. package/dist/client/assets/{use-org-fs-D3EWDZUC.js → use-org-fs-Cq8mW7G-.js} +1 -1
  302. package/dist/client/assets/{use-org-repo-syncs-DmuKbSlB.js → use-org-repo-syncs-DZW3rwR5.js} +1 -1
  303. package/dist/client/assets/{use-org-sso-CzqSMhda.js → use-org-sso-CAeas77s.js} +1 -1
  304. package/dist/client/assets/{use-organization-roles-_GFhEaSJ.js → use-organization-roles-CzDqYbpU.js} +1 -1
  305. package/dist/client/assets/{use-organization-settings-BG_WfOIn.js → use-organization-settings-kSCmGo7y.js} +1 -1
  306. package/dist/client/assets/{use-panel-navigate-DI4UQ_n7.js → use-panel-navigate-Cx4SDaAI.js} +1 -1
  307. package/dist/client/assets/{use-project-native-view-presence-CcjNty9d.js → use-project-native-view-presence-CF9IVQ8f.js} +1 -1
  308. package/dist/client/assets/{use-project-scope-CdVgPS_9.js → use-project-scope-dMloYvYM.js} +1 -1
  309. package/dist/client/assets/{use-releases-D_nd9qj6.js → use-releases-BxdMzP4r.js} +1 -1
  310. package/dist/client/assets/{use-reports-diagnostic-C-GusDUW.js → use-reports-diagnostic-kbn7Jxix.js} +1 -1
  311. package/dist/client/assets/{use-route-default-main-CVXNK-Ds.js → use-route-default-main-Cuf8FdBN.js} +1 -1
  312. package/dist/client/assets/{use-secrets-CKbHXdHu.js → use-secrets-BDBtXHjy.js} +1 -1
  313. package/dist/client/assets/{use-section-preview-base-BHfKu4Be.js → use-section-preview-base--OSG_Cl5.js} +1 -1
  314. package/dist/client/assets/{use-session-runtime-a9Y20Jh0.js → use-session-runtime-zHaG8CSE.js} +1 -1
  315. package/dist/client/assets/{use-tags-BQDPMaYa.js → use-tags-CzIR6yVN.js} +1 -1
  316. package/dist/client/assets/{use-task-board-analytics-dyWG2Jj9.js → use-task-board-analytics-ClmuMQaA.js} +1 -1
  317. package/dist/client/assets/{use-task-metadata-De4dYawr.js → use-task-metadata-D5SUEovW.js} +1 -1
  318. package/dist/client/assets/{use-thread-outputs-CHuFDG4c.js → use-thread-outputs-BmGhlgV-.js} +1 -1
  319. package/dist/client/assets/{use-virtual-mcp-BnIp2YQj.js → use-virtual-mcp-BQ_laDKj.js} +1 -1
  320. package/dist/client/assets/useInfiniteQuery-oZMo0As2.js +1 -0
  321. package/dist/client/assets/{useQueries-DX5YqUyF.js → useQueries-BdRyGqrF.js} +1 -1
  322. package/dist/client/assets/useSuspenseInfiniteQuery-B8ZIE-rd.js +1 -0
  323. package/dist/client/assets/{users-C1JPEsq0.js → users-BVEfChWc.js} +1 -1
  324. package/dist/client/assets/{utils-Dnu7Z_7W.js → utils-DagVDpwm.js} +1 -1
  325. package/dist/client/assets/{variant-calendar-52QBX61v.js → variant-calendar-DjtQmZQy.js} +1 -1
  326. package/dist/client/assets/{variant-matcher-override-G4ZIBzQZ.js → variant-matcher-override-BLHrRJuq.js} +1 -1
  327. package/dist/client/assets/{view-mode-toggle-BHHm82Wa.js → view-mode-toggle-DcWnXcjK.js} +1 -1
  328. package/dist/client/assets/{virtual-mcp-VENiZcwc.js → virtual-mcp-9P5Qrz-a.js} +1 -1
  329. package/dist/client/index.html +1 -1
  330. package/dist/server/cli.js +2 -2
  331. package/dist/server/server.js +2 -2
  332. package/package.json +1 -1
  333. package/dist/client/assets/agent-app-DVQdsoCP.js +0 -1
  334. package/dist/client/assets/agent-deck-DwkEMcun.js +0 -1
  335. package/dist/client/assets/agent-file-kb3kZGOR.js +0 -1
  336. package/dist/client/assets/agent-library-file-B26RhOf0.js +0 -1
  337. package/dist/client/assets/agent-settings-BQ_MplXY.js +0 -1
  338. package/dist/client/assets/agent-site-editor-code-DY_zO3AJ.js +0 -2
  339. package/dist/client/assets/agent-view-BpAqFgTh.js +0 -1
  340. package/dist/client/assets/api-keys-DbPrfCxe.js +0 -1
  341. package/dist/client/assets/app-editor-DuO1pc7m.js +0 -1
  342. package/dist/client/assets/project-reports-BORRGsRz.js +0 -1
  343. package/dist/client/assets/project-tasks-CRStWfOr.js +0 -1
  344. package/dist/client/assets/record-editor-DB5V4dOD.js +0 -1
  345. package/dist/client/assets/reports-bnYiC_GO.js +0 -1
  346. package/dist/client/assets/tasks-Dok3BfRQ.js +0 -1
  347. package/dist/client/assets/useInfiniteQuery-HKtw1Zwv.js +0 -1
  348. package/dist/client/assets/useSuspenseInfiniteQuery-CIYuI7yd.js +0 -1
@@ -1 +1 @@
1
- import{c as z,j as t,B as K,h as Z,ap as tt,aq as ie,b as W,E as Oe,r as D,Z as Fe,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-jpNIlPuy.js";import{E as Le}from"./empty-state-gX-Wv4YC.js";import{u as he}from"./use-mcp-client-C8DXVUZj.js";import{F as re,a as it,b as ae,d as ce}from"./form-DwboDCoC.js";import{I as ue}from"./input-AEl9FaSr.js";import{T as pe}from"./textarea-DGsUkzqN.js";import{D as ge,O as rt,M as at}from"./index-D8J5Sxky.js";import{bc as ct,$ as dt,bm as mt,K as ut,E as pt,F as xt,aG as ft,x as we,al as ht}from"./agent-icon-zd22KZWY.js";import{M as gt}from"./mcp-app-renderer-B8WWFBjV.js";import{g as jt,M as Ce}from"./types-k3vJw7wx.js";import{a as bt,b as Nt,A as vt}from"./alert-Buf9oiWa.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-DxhjEfyz.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-CSEjy-r8.js";import{B as Ue,a as _e,b as G,c as se,d as oe,e as Je}from"./breadcrumb-DHQJNhJR.js";import{i as yt}from"./AlertCircle-Bw5IjQll.js";import{a as wt}from"./Copy01-jqAaecgQ.js";import{i as Ct}from"./Sun-CD9h4ghg.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-CWdlR5O6.js";import{a as Ve,u as qe}from"./use-connection-CMx-XZiq.js";import{u as Pt}from"./use-mcp-tools-D-S9SAOh.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-D86q1Lsj.js";import{f as kt,r as At}from"./chat-context-Biuolo5l.js";import{a as Et}from"./shell-layout-3Y13kkhL.js";import{M as Rt}from"./monaco-editor-1VDRMi5Z.js";import{E as Ot}from"./empty-state-yvdmqB8T.js";import"./auth-53fyYgiO.js";import"./label-oK9z5afE.js";import"./sidebar-CJTXGZDA.js";import"./LayoutLeft-fyXbrdze.js";import"./use-mobile-BYW51CpD.js";import"./sheet-n9kcgSxF.js";import"./X-DfL64JB-.js";import"./Key01-DfBLIcDO.js";import"./extract-connection-data-BOVjMhIV.js";import"./metadata-D72DunRR.js";import"./connection-N1n0cOU1.js";import"./Plus-DVO5ynNJ.js";import"./index-BDb83FE4.js";import"./index-Bry0pxcS.js";import"./index-BQxAqOiP.js";import"./popover-Ddu4iAPr.js";import"./use-virtual-mcp-BnIp2YQj.js";import"./Check-UJc6KAi4.js";import"./SearchMd-4YJlY5kp.js";import"./use-create-virtual-mcp--ht4Rkm7.js";import"./use-navigate-to-agent-ebIYYmYW.js";import"./hooks-AXSBDhcZ.js";import"./backoff-8mStPHYB.js";import"./task-board-Ny1PbjMW.js";import"./schema-CbxRw8u0.js";import"./thread-intent-CDjInTZL.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-BGKWFxqT.js";import"./ArrowUp-siSqnojJ.js";import"./ArrowLeft-o7Y-fEOP.js";import"./ArrowRight-B9KOH6Mp.js";import"./XCircle-Cn_6vXwx.js";import"./ZoomOut-DckCENcg.js";import"./Globe04-CvitSAdn.js";import"./CheckCircle-BMHJHOxj.js";import"./ChevronUp-BfOf-CcT.js";import"./UserSquare-CjWcARYJ.js";import"./CreditCard01-CTgYXlxC.js";import"./DotsVertical-DtamlI3j.js";import"./Download01-BncQoTgS.js";import"./Eye-B7WWrfVK.js";import"./Share07-slK9gs7d.js";import"./XClose-B001-Pfs.js";import"./Image01-BcdinLnP.js";import"./Link01-CUNNOfMo.js";import"./LinkExternal01-CjlXJ8JK.js";import"./Monitor01-Bgx96mK1.js";import"./Package-CCyqVpLL.js";import"./Palette-uwPl9fbG.js";import"./SearchLg-BuXTAvmm.js";import"./Stars01-BHCqXxdF.js";import"./Trash01-elTVICGJ.js";import"./Upload01-C_pNo17d.js";import"./User01-A5ycKGmZ.js";import"./Users01-CYLXmuWv.js";import"./Zap-vgIAjKVr.js";import"./index-BMy4NaZ7.js";import"./badge-CbxyjOGk.js";import"./mcp-oauth-DF-3wjVL.js";import"./use-panel-navigate-DI4UQ_n7.js";import"./thread-route-CC_31SLX.js";import"./use-project-scope-CdVgPS_9.js";import"./autosend-DAAxKqft.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Ba17FhRN.js";import"./use-ai-providers-CcGxl3Gi.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-Dppj3YU9.js";import"./use-organization-settings-BG_WfOIn.js";import"./avatar-DfT409hq.js";import"./download-app-dialog-B3AxYOeQ.js";import"./dialog-Fq0nM2c3.js";import"./command-fcrvAs5N.js";import"./project-icon-CE-voYeF.js";import"./required-auth-layout-nM5VBqDv.js";import"./use-org-sso-CzqSMhda.js";import"./editor-DWYOPm_Z.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(Z,{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 Ft(){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=Fe(),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=Ft(),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(Oe,{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=Fe(),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}))},[O,F]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(F("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],Y=be.length>0,X={};if(Y&&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=Y?{...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.")})();Y&&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,Ze=performance.now(),Xe=Math.round(Ze-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(G,{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(G,{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(G,{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))})]}),Ge=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:Y&&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&&!Y?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")]})})]}),Ye=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:O==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("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:O==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("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&&O==="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(Z,{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(Z,{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:Ge}),Ye]})})]})})}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(Z,{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(G,{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(G,{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(G,{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 O;s[42]!==d||s[43]!==_?(O={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=O):O=s[44];let F;s[45]!==N||s[46]!==E||s[47]!==O?(F=t.jsx(Ot,{icon:R,title:N,description:E,buttonProps:O}),s[45]=N,s[46]=E,s[47]=O,s[48]=F):F=s[48];let Q;return s[49]!==L||s[50]!==F?(Q=t.jsx(ge,{leading:L,children:F}),s[49]=L,s[50]=F,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 Wo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Oe,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Wo as default};
1
+ import{c as z,j as t,B as K,h as Z,ap as tt,aq as ie,b as W,E as Oe,r as D,Z as Fe,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-B0qpEaw7.js";import{E as Le}from"./empty-state-CnG3r8QN.js";import{u as he}from"./use-mcp-client-BhoJGxzx.js";import{F as re,a as it,b as ae,d as ce}from"./form--Hhb1lS2.js";import{I as ue}from"./input-BJL8fEaY.js";import{T as pe}from"./textarea-jZnqlY-8.js";import{D as ge,O as rt,M as at}from"./index-BfrrNC4t.js";import{bc as ct,$ as dt,bm as mt,K as ut,E as pt,F as xt,aG as ft,x as we,al as ht}from"./agent-icon-B0pYdU7O.js";import{M as gt}from"./mcp-app-renderer-BW46jUPV.js";import{g as jt,M as Ce}from"./types-DfkVj-zb.js";import{a as bt,b as Nt,A as vt}from"./alert-DAnRqUST.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-CNQYFWAD.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-BXYjNwWN.js";import{B as Ue,a as _e,b as G,c as se,d as oe,e as Je}from"./breadcrumb-eJglg4s2.js";import{i as yt}from"./AlertCircle-tzBtBuYO.js";import{a as wt}from"./Copy01-PdybgPVp.js";import{i as Ct}from"./Sun-C2rLL6Uq.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-B1JTWIJl.js";import{a as Ve,u as qe}from"./use-connection-AWw0KhJV.js";import{u as Pt}from"./use-mcp-tools-CFBGicIf.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-CaZ_iM2H.js";import{f as kt,r as At}from"./chat-context-CyVVH9-g.js";import{a as Et}from"./shell-layout-DI0WZ20b.js";import{M as Rt}from"./monaco-editor-CfjOQoC6.js";import{E as Ot}from"./empty-state-8MXnQ_GK.js";import"./auth-BIJ1qIQ8.js";import"./label-DN7QXoMc.js";import"./sidebar-CtdgbfUp.js";import"./LayoutLeft-7Jz4-Mop.js";import"./use-mobile-BfqeJPla.js";import"./sheet-DEclIhmx.js";import"./X-DPpz9jKH.js";import"./Key01-1MQrCq6H.js";import"./extract-connection-data-DKbOi_7e.js";import"./metadata-D72DunRR.js";import"./connection-DgqoZkkv.js";import"./Plus-CiwYAI1V.js";import"./index-BXMNgzxQ.js";import"./index-eHA0VHjW.js";import"./index-DCRx3N4w.js";import"./popover-CEtRvN98.js";import"./use-virtual-mcp-BQ_laDKj.js";import"./Check-Coc9_TXT.js";import"./SearchMd-BJDTDeyj.js";import"./use-create-virtual-mcp-P81sYEuS.js";import"./use-navigate-to-agent-BuXe1295.js";import"./hooks-CgybLFx3.js";import"./backoff-8mStPHYB.js";import"./task-board-BT8nYg64.js";import"./schema-6-aZgjq3.js";import"./thread-intent-CvOfC-EI.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01--hd4usAY.js";import"./ArrowUp-CDoItcq5.js";import"./ArrowLeft-DhWZ9Y7H.js";import"./ArrowRight-CCghDCya.js";import"./XCircle-DKXrako8.js";import"./ZoomOut-De6LkeB9.js";import"./Globe04-B4Nr-u9E.js";import"./CheckCircle-DbUfN3SF.js";import"./ChevronUp-DLnmLSCG.js";import"./UserSquare-BL2q0kZi.js";import"./CreditCard01-DkKDdpUC.js";import"./DotsVertical-BGUmkpP9.js";import"./Download01-CqpqLxeG.js";import"./Eye-D0ekeqzm.js";import"./Share07-_n_3KSG2.js";import"./XClose-6Na7xr0S.js";import"./Image01-Bg0KCejF.js";import"./Link01-BjL7DpkW.js";import"./LinkExternal01-DaqiHgPg.js";import"./Monitor01-BbTRMBeD.js";import"./Package-D0Bm_Aoy.js";import"./Palette-KbvTz9tU.js";import"./SearchLg-CXapmDmy.js";import"./Stars01-RpWnWVgk.js";import"./Trash01-CfqvPc4W.js";import"./Upload01-jGvagD9c.js";import"./User01-BcXgXcFa.js";import"./Users01-CSVSZ1mk.js";import"./Zap-BffDq0Z4.js";import"./index-Bef1FK7P.js";import"./badge-_OQtTNcm.js";import"./mcp-oauth-2PJs3bnc.js";import"./use-panel-navigate-Cx4SDaAI.js";import"./thread-route-Cbbtpvba.js";import"./use-project-scope-dMloYvYM.js";import"./autosend-BPmJALPL.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-BuNLYA_N.js";import"./use-ai-providers-tFU_3Kqt.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-7bImCsXr.js";import"./use-organization-settings-kSCmGo7y.js";import"./avatar-BwreWGWc.js";import"./download-app-dialog-Dot6GNMe.js";import"./dialog-DGPx82gL.js";import"./command-CTr5OWzL.js";import"./project-icon-lm4EjxFa.js";import"./required-auth-layout-DmM8rSvX.js";import"./use-org-sso-CAeas77s.js";import"./editor-lzRy2QZM.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(Z,{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 Ft(){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=Fe(),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=Ft(),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(Oe,{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=Fe(),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}))},[O,F]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(F("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],Y=be.length>0,X={};if(Y&&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=Y?{...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.")})();Y&&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,Ze=performance.now(),Xe=Math.round(Ze-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(G,{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(G,{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(G,{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))})]}),Ge=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:Y&&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&&!Y?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")]})})]}),Ye=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:O==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("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:O==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("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&&O==="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(Z,{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(Z,{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:Ge}),Ye]})})]})})}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(Z,{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(G,{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(G,{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(G,{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 O;s[42]!==d||s[43]!==_?(O={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=O):O=s[44];let F;s[45]!==N||s[46]!==E||s[47]!==O?(F=t.jsx(Ot,{icon:R,title:N,description:E,buttonProps:O}),s[45]=N,s[46]=E,s[47]=O,s[48]=F):F=s[48];let Q;return s[49]!==L||s[50]!==F?(Q=t.jsx(ge,{leading:L,children:F}),s[49]=L,s[50]=F,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 Wo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Oe,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Wo 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-jpNIlPuy.js";import{i as I,n as L}from"./ArrowUp-siSqnojJ.js";import{i as F}from"./Check-UJc6KAi4.js";import{a as O,i as P,c as Y}from"./XClose-B001-Pfs.js";import{T as G,a as H,b as K,c as W}from"./tooltip-CSEjy-r8.js";import{V as q}from"./view-mode-toggle-BHHm82Wa.js";import{B as J}from"./badge-CbxyjOGk.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-B0qpEaw7.js";import{i as I,n as L}from"./ArrowUp-CDoItcq5.js";import{i as F}from"./Check-Coc9_TXT.js";import{a as O,i as P,c as Y}from"./XClose-6Na7xr0S.js";import{T as G,a as H,b as K,c as W}from"./tooltip-BXYjNwWN.js";import{V as q}from"./view-mode-toggle-DcWnXcjK.js";import{B as J}from"./badge-_OQtTNcm.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-jpNIlPuy.js";import{i as C}from"./SearchMd-4YJlY5kp.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-B0qpEaw7.js";import{i as C}from"./SearchMd-BJDTDeyj.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-jpNIlPuy.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-CVXiShGi.js";import{i as W,n as z}from"./ArrowUp-siSqnojJ.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-B0qpEaw7.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-BEzNPfEF.js";import{i as W,n as z}from"./ArrowUp-CDoItcq5.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-jpNIlPuy.js";import{B as v}from"./badge-CbxyjOGk.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-B0qpEaw7.js";import{B as v}from"./badge-_OQtTNcm.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-jpNIlPuy.js";import{i as U}from"./Check-UJc6KAi4.js";import{i as V}from"./Tool01-BGKWFxqT.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-fcrvAs5N.js";import{a as se,P as te,b as le}from"./popover-Ddu4iAPr.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-B0qpEaw7.js";import{i as U}from"./Check-Coc9_TXT.js";import{i as V}from"./Tool01--hd4usAY.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-CTr5OWzL.js";import{a as se,P as te,b as le}from"./popover-CEtRvN98.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-jpNIlPuy.js";import{_ as x}from"./index-BQxAqOiP.js";import{D as b,d as w,h as y,c as C,b as z}from"./dialog-Fq0nM2c3.js";import{i as D}from"./SearchMd-4YJlY5kp.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-B0qpEaw7.js";import{_ as x}from"./index-DCRx3N4w.js";import{D as b,d as w,h as y,c as C,b as z}from"./dialog-DGPx82gL.js";import{i as D}from"./SearchMd-BJDTDeyj.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-jpNIlPuy.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-C8DXVUZj.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-D6711Opr.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-B0qpEaw7.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-BhoJGxzx.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-C4XxMYME.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-jpNIlPuy.js";import{a as re,A as ce}from"./alert-Buf9oiWa.js";import{a as de,b as ue,c as V,d as me,S as pe}from"./select-DxhjEfyz.js";import{T as fe,c as xe,a as ge,b as he}from"./tabs-DZsSgDfP.js";import{u as J}from"./use-copy-BpzZQl2g.js";import{i as X}from"./Check-UJc6KAi4.js";import{a as Q}from"./Copy01-jqAaecgQ.js";import{i as ye}from"./Key01-DfBLIcDO.js";import{i as Ce}from"./Link01-CUNNOfMo.js";import{C as je,a as be,b as ve}from"./client-icons-BR1lKQvc.js";import{u as we,a as Ne,A as $e}from"./api-keys-DcivUdvJ.js";import{R as ke}from"./require-capability-DbxXicMT.js";import"./index-BMy4NaZ7.js";import"./ChevronUp-BfOf-CcT.js";import"./AlertCircle-Bw5IjQll.js";import"./Plus-DVO5ynNJ.js";import"./Trash01-elTVICGJ.js";import"./alert-dialog-DG5_wKgz.js";import"./dialog-Fq0nM2c3.js";import"./X-DfL64JB-.js";import"./input-AEl9FaSr.js";import"./label-oK9z5afE.js";import"./use-mcp-client-C8DXVUZj.js";import"./auth-53fyYgiO.js";import"./access-gate-0Jk-hZos.js";import"./capability-load-error-ULojqFhh.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-B0qpEaw7.js";import{a as re,A as ce}from"./alert-DAnRqUST.js";import{a as de,b as ue,c as V,d as me,S as pe}from"./select-CNQYFWAD.js";import{T as fe,c as xe,a as ge,b as he}from"./tabs-JiVxVRZf.js";import{u as J}from"./use-copy-CEy6MIWt.js";import{i as X}from"./Check-Coc9_TXT.js";import{a as Q}from"./Copy01-PdybgPVp.js";import{i as ye}from"./Key01-1MQrCq6H.js";import{i as Ce}from"./Link01-BjL7DpkW.js";import{C as je,a as be,b as ve}from"./client-icons-D5_DGGB9.js";import{u as we,a as Ne,A as $e}from"./api-keys-irX6oqrD.js";import{R as ke}from"./require-capability-CPAWG67A.js";import"./index-Bef1FK7P.js";import"./ChevronUp-DLnmLSCG.js";import"./AlertCircle-tzBtBuYO.js";import"./Plus-CiwYAI1V.js";import"./Trash01-CfqvPc4W.js";import"./alert-dialog-BnddQdN4.js";import"./dialog-DGPx82gL.js";import"./X-DPpz9jKH.js";import"./input-BJL8fEaY.js";import"./label-DN7QXoMc.js";import"./use-mcp-client-BhoJGxzx.js";import"./auth-BIJ1qIQ8.js";import"./access-gate-Dhew3pVq.js";import"./capability-load-error-CTDYH3A8.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-jpNIlPuy.js";import{i as z}from"./X-DfL64JB-.js";import{au as _,am as C}from"./agent-icon-zd22KZWY.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-B0qpEaw7.js";import{i as z}from"./X-DPpz9jKH.js";import{au as _,am as C}from"./agent-icon-B0pYdU7O.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-jpNIlPuy.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-B0qpEaw7.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-jpNIlPuy.js";import{u as O}from"./useInfiniteQuery-HKtw1Zwv.js";import{g as A}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-D86q1Lsj.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-B0qpEaw7.js";import{u as O}from"./useInfiniteQuery-oZMo0As2.js";import{g as A}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-CaZ_iM2H.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};