decocms 4.574.10 → 4.575.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 (407) hide show
  1. package/dist/client/assets/{AlertCircle-JrI6GhX-.js → AlertCircle-B9jzXYca.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BCQgd1R0.js → AreaChart-iov00wo5.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BY3YUYmg.js → ArrowLeft-CZ3DAg0q.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Dbd0DsFj.js → ArrowUp-Besm0IZ2.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-D-__q6zo.js → CartesianChart-C3iUwk_u.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-CGbYI81w.js → CategoricalChart-O0wXlREH.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-Lk0BK653.js → CheckCircle-Bg_9Wlgi.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-D-Hk_1B6.js → ChevronSelectorVertical-UvFeI9z1.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-CypYcouh.js → ChevronUp-CM8EW0Js.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-D4hEMIBc.js → CreditCard01-Bhqkelsq.js} +1 -1
  11. package/dist/client/assets/{Globe04-BSIf8tfY.js → Globe04-DFEQkAAl.js} +1 -1
  12. package/dist/client/assets/{Key01-CCkW71V8.js → Key01-BfEZ7hLZ.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-dVGcDCd1.js → LinkBroken01-BSh2E4ld.js} +1 -1
  14. package/dist/client/assets/{Minus-B6bCcC1a.js → Minus-Ctt_tNjY.js} +1 -1
  15. package/dist/client/assets/{Monitor01-B1R4t9_g.js → Monitor01-Cp5O9jEx.js} +1 -1
  16. package/dist/client/assets/{Play-nrEhEYaX.js → Play-DqrEB0p_.js} +1 -1
  17. package/dist/client/assets/{Plus-CXFgI-7S.js → Plus-BF39I64m.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-9SV0TNSu.js → ReferenceLine-y99E66AQ.js} +1 -1
  19. package/dist/client/assets/{SearchMd-BgyEwNMN.js → SearchMd-BCaWPluh.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-C8w58xcy.js → ShoppingBag01-WYt5uke3.js} +1 -1
  21. package/dist/client/assets/{Sun-BbLelrLi.js → Sun-Dniq03T7.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-BKQGE_Gz.js → SwitchHorizontal01-CStChVS2.js} +1 -1
  23. package/dist/client/assets/{Tool01-3EDhR0eh.js → Tool01-wiKWLRCc.js} +1 -1
  24. package/dist/client/assets/{Tooltip-BvsEJkNR.js → Tooltip-BOp5DpDI.js} +1 -1
  25. package/dist/client/assets/{Trash01-Cc7bOGxh.js → Trash01-DR_ZbB22.js} +1 -1
  26. package/dist/client/assets/{Upload01-CUdaL1MP.js → Upload01-BNm-Yhgs.js} +1 -1
  27. package/dist/client/assets/{UserSquare-CgD5WRTE.js → UserSquare-CoAnLSHH.js} +1 -1
  28. package/dist/client/assets/{Users01-D_DratJd.js → Users01-BKvz85-q.js} +1 -1
  29. package/dist/client/assets/{XClose-Ba9vOcHg.js → XClose-BH2b2x6k.js} +1 -1
  30. package/dist/client/assets/{Zap-CGLJP1Pm.js → Zap-C46fglVd.js} +1 -1
  31. package/dist/client/assets/{access-gate-BkmPTKhe.js → access-gate-CJaU-ahh.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-CfkDdpLR.js → add-connection-dialog-Es48OMbQ.js} +1 -1
  33. package/dist/client/assets/agent-app-CgaBp78a.js +1 -0
  34. package/dist/client/assets/{agent-assets-CMHlV0cw.js → agent-assets-rGrpA13N.js} +1 -1
  35. package/dist/client/assets/{agent-automation-D1d_SA1s.js → agent-automation-BgcUa34j.js} +1 -1
  36. package/dist/client/assets/{agent-automations-0O6U_BaC.js → agent-automations-BgScBsF6.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-B5sssWfz.js → agent-calendar-lX-y2EdU.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-Re3Rcd9U.js → agent-capabilities-BOswsmnU.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-CEVb5ZQC.js → agent-connect-sources-Bwre-hne.js} +1 -1
  40. package/dist/client/assets/agent-deck-C5kx-WNw.js +1 -0
  41. package/dist/client/assets/{agent-e2e-DfU5GcgW.js → agent-e2e-DsGMzDFD.js} +1 -1
  42. package/dist/client/assets/agent-experiments-gaiUmFF7.js +1 -0
  43. package/dist/client/assets/agent-file-CXpwIQY7.js +1 -0
  44. package/dist/client/assets/{agent-hosting-BIVmahmR.js → agent-hosting-IG9OvJxO.js} +1 -1
  45. package/dist/client/assets/{agent-icon-De2MEsoK.js → agent-icon-B9ymJOYy.js} +1 -1
  46. package/dist/client/assets/agent-library-B-aIakkE.js +1 -0
  47. package/dist/client/assets/agent-library-file-DdeRXubH.js +1 -0
  48. package/dist/client/assets/agent-overview-Cd2TI_CO.js +1 -0
  49. package/dist/client/assets/{agent-releases-C0fMyr3d.js → agent-releases-6VNqQXqs.js} +1 -1
  50. package/dist/client/assets/agent-settings-tnifGDI-.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-CA2ft33p.js → agent-site-editor-71l5SHI7.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-ust0ErKY.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-DmOFTD5k.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-Cr4OmiKF.js +1 -0
  55. package/dist/client/assets/agent-view-BUyaEcso.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-DYNxqeX8.js → agent-view-guard-p3JMpL2i.js} +1 -1
  57. package/dist/client/assets/{ai-providers-BCNCtdBa.js → ai-providers-CO7GyDpT.js} +1 -1
  58. package/dist/client/assets/{alert-uAfMA0iM.js → alert-CQeq0vZr.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-CNoqcvsB.js → analytics-sections-C-EwM79i.js} +1 -1
  60. package/dist/client/assets/{api-keys-B5T8tqGJ.js → api-keys-BQO3VvIl.js} +1 -1
  61. package/dist/client/assets/api-keys-DqZ1Dcsm.js +1 -0
  62. package/dist/client/assets/app-editor-PmWZjr_j.js +1 -0
  63. package/dist/client/assets/{asset-utils-JtmKNz_N.js → asset-utils-DuLZkUyR.js} +1 -1
  64. package/dist/client/assets/{auth-eTld9LX2.js → auth-DYk3j3P5.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-Dzg-edmQ.js → auth-catchall-N-2cp0nv.js} +1 -1
  66. package/dist/client/assets/{auth-entry-BMj8fL-s.js → auth-entry-DcODwlvz.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-Cc8hsshw.js → auth-split-layout-DMz1KnE0.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-CIIpordz.js → authenticate-and-persist-oauth-XzlChMFG.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-DzzZLBM9.js → automation-list-row-ldXN7Wg6.js} +1 -1
  70. package/dist/client/assets/{automation-runs-85Ff33Cw.js → automation-runs-Dmq-RKIH.js} +1 -1
  71. package/dist/client/assets/{automations-BEURwcUG.js → automations-CDBea8A_.js} +1 -1
  72. package/dist/client/assets/{autosend-C7zfiAZa.js → autosend-DPIl8Ow-.js} +1 -1
  73. package/dist/client/assets/{badge-Dmw39gk8.js → badge-sWV0Lz9X.js} +1 -1
  74. package/dist/client/assets/{block-document-BJPvsr5R.js → block-document-CX5LKakr.js} +3 -3
  75. package/dist/client/assets/{blocks-preview-workspace-context-DHCuGpRF.js → blocks-preview-workspace-context-C6uAIZcB.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-UGg2OTih.js → blocks-tab-states-CWrGlMnv.js} +1 -1
  77. package/dist/client/assets/{blog-schema-BCoxbBJ-.js → blog-schema-CAFArFfZ.js} +1 -1
  78. package/dist/client/assets/{buckets-BHmMQmes.js → buckets-CHiB8kSO.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-CtCZmE42.js → build-improve-prompt-doc-DWCL4Usp.js} +1 -1
  80. package/dist/client/assets/{calendar-lV1do84b.js → calendar-Doh9vx1Y.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-J4cHUY10.js → capability-load-error-DAHIgRW0.js} +1 -1
  82. package/dist/client/assets/category-editor-DmF8nidy.js +1 -0
  83. package/dist/client/assets/{chart-CqpI550f.js → chart-CTBX1xJ8.js} +1 -1
  84. package/dist/client/assets/{chat-context-CkHIxm7-.js → chat-context-CMznzxL2.js} +2 -2
  85. package/dist/client/assets/{chat-draft-BiuP1YLO.js → chat-draft-8vQyW9tQ.js} +1 -1
  86. package/dist/client/assets/{checkbox-CTcmxKf9.js → checkbox-BR7eeNRm.js} +1 -1
  87. package/dist/client/assets/{choose-editor-BMMl2UBw.js → choose-editor-DsoM6Awe.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-DzTdo4Jo.js → cli-auth-success-Dc-_DzP0.js} +1 -1
  89. package/dist/client/assets/{client-icons-CO1vrTp-.js → client-icons-DkHG_2rG.js} +1 -1
  90. package/dist/client/assets/cms-settings-editor-CZhxfLk6.js +1 -0
  91. package/dist/client/assets/{cms-store-drafts-Te00tOIa.js → cms-store-drafts-DAUHqZGa.js} +1 -1
  92. package/dist/client/assets/{collapsible-Cef981-n.js → collapsible-BzRZ6mh6.js} +1 -1
  93. package/dist/client/assets/{collection-detail-CimaYbt8.js → collection-detail-of5InSbt.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-DIAxsEaA.js → collection-display-button-DzdTSCUS.js} +1 -1
  95. package/dist/client/assets/{collection-search-RPq6faeR.js → collection-search-CnHLg8Vx.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-CFc_pRSp.js → collection-table-wrapper-BmuSLoPK.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-DZtyDg8t.js → collection-tabs-7Ya9gAB2.js} +1 -1
  98. package/dist/client/assets/{combobox-C7gjhmEU.js → combobox-B41se5lV.js} +1 -1
  99. package/dist/client/assets/{command-D_vABNVv.js → command-CG66jyhm.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-lJWCKZlX.js → companion-mcps-section-mNALQnmz.js} +1 -1
  101. package/dist/client/assets/{config-e0Nvtw2Y.js → config-Bebmx21W.js} +1 -1
  102. package/dist/client/assets/{connect-DZp46x-D.js → connect-BOxbOowz.js} +3 -3
  103. package/dist/client/assets/{connect-layout-DV6kyauB.js → connect-layout-CRU0oD9B.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-DePhFcrr.js → connect-source-dialog-Do1Ol7Lc.js} +1 -1
  105. package/dist/client/assets/{connection-BvqfkXwo.js → connection-CyPXBq-_.js} +1 -1
  106. package/dist/client/assets/{connection-card-BDFmpEai.js → connection-card-DxMw_ATi.js} +1 -1
  107. package/dist/client/assets/{connection-detail-CAgTUs6Z.js → connection-detail-BQWnbjuT.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-EN5T3lTJ.js → connection-form-helpers-C2XDuc-v.js} +1 -1
  109. package/dist/client/assets/{connection-slug-CfDyadIo.js → connection-slug-s2iYHyhO.js} +1 -1
  110. package/dist/client/assets/{connections-BANTiWC_.js → connections-pYRqnGDq.js} +1 -1
  111. package/dist/client/assets/content-tab-DVwMjYF_.js +25 -0
  112. package/dist/client/assets/context-CRiBUcdZ.js +1 -0
  113. package/dist/client/assets/{context-menu-BFsADuow.js → context-menu-DUt7Fb0Z.js} +1 -1
  114. package/dist/client/assets/{context-shell-CdL8192k.js → context-shell-o6BvAn5f.js} +3 -3
  115. package/dist/client/assets/{core.esm-OJgsJB-k.js → core.esm-Cdwuvp6V.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-DULZI-ch.js → create-organization-dialog-CRr0zMDH.js} +1 -1
  117. package/dist/client/assets/{device-hint-B4h7argX.js → device-hint-CzI0Cxwe.js} +1 -1
  118. package/dist/client/assets/{discover-BJlgFEIL.js → discover-DV2xyl-v.js} +1 -1
  119. package/dist/client/assets/{domain-settings-CT--UdMT.js → domain-settings-BpStC20M.js} +1 -1
  120. package/dist/client/assets/{drawer-B-H4hfQm.js → drawer-Bl-xKJR_.js} +1 -1
  121. package/dist/client/assets/{editor-CsGz7SqJ.js → editor-CozvZeDY.js} +1 -1
  122. package/dist/client/assets/{editor-classes-_nt7TZ0L.js → editor-classes-C0VdDFt2.js} +1 -1
  123. package/dist/client/assets/{empty-state-BMJVmWPT.js → empty-state-BY5AuJfU.js} +1 -1
  124. package/dist/client/assets/{empty-state-B9Q-olZe.js → empty-state-DjPM3fy8.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-rmEY3th7.js → experiments-tab-choice-DxHtCgvZ.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-CWUwzdyr.js → extract-connection-data-CzRa4dsB.js} +1 -1
  127. package/dist/client/assets/{feature-gate-Cd7EozQO.js → feature-gate-CecpbIeh.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-XlPt677B.js → feature-paywall-AuKILmgq.js} +1 -1
  129. package/dist/client/assets/{file-explorer-BOVoci0C.js → file-explorer-Djczlqyv.js} +1 -1
  130. package/dist/client/assets/{file-preview-DMLj4MCU.js → file-preview-BoSukKv4.js} +1 -1
  131. package/dist/client/assets/{file-share-button-CvkBxFom.js → file-share-button-BipY8VKx.js} +2 -2
  132. package/dist/client/assets/{file-type-icon-g9-x3_cf.js → file-type-icon-BKtgVCvA.js} +1 -1
  133. package/dist/client/assets/{folder-icon-CA-yyvjC.js → folder-icon-B6Pmbu2w.js} +1 -1
  134. package/dist/client/assets/{form-D9ocAu49.js → form-BcinmXce.js} +1 -1
  135. package/dist/client/assets/{general-BVROjYSK.js → general-Cfumen7X.js} +1 -1
  136. package/dist/client/assets/{github-icon-BuHFJx0u.js → github-icon-lmZhrKkb.js} +1 -1
  137. package/dist/client/assets/{home-CZO-BAxK.js → home-BXszjMgA.js} +1 -1
  138. package/dist/client/assets/{home-overview-Dgo7cAUD.js → home-overview-CBvIMZLG.js} +1 -1
  139. package/dist/client/assets/{hosted-reconcile-CiKTWXGS.js → hosted-reconcile-BwRf3Rhf.js} +1 -1
  140. package/dist/client/assets/{icon-button-cmhhff3C.js → icon-button-BKgqvpeC.js} +1 -1
  141. package/dist/client/assets/index-69S-cBsb.css +1 -0
  142. package/dist/client/assets/index-B-8lp_z-.js +69 -0
  143. package/dist/client/assets/{index-CpKrWBFM.js → index-B1ZvlDM_.js} +37 -37
  144. package/dist/client/assets/{index-BqpQ0Oz6.js → index-BjRujN3I.js} +1 -1
  145. package/dist/client/assets/index-Bmgq1LY9.js +1 -0
  146. package/dist/client/assets/{index-CERqFrvp.js → index-BpS3zp32.js} +1 -1
  147. package/dist/client/assets/{index-DIv66EvA.js → index-BrNhih9e.js} +1 -1
  148. package/dist/client/assets/index-C521Vo2d.js +15 -0
  149. package/dist/client/assets/{index-BvcpEDRp.js → index-CE2oWWvQ.js} +1 -1
  150. package/dist/client/assets/{index-Cu0X1Ryu.js → index-CtHyBR3B.js} +1 -1
  151. package/dist/client/assets/{index-Xu3sMDdX.js → index-CuAzu2ov.js} +3 -3
  152. package/dist/client/assets/{index-DfCff2zl.js → index-Ddc_z0Ej.js} +1 -1
  153. package/dist/client/assets/{index-CCr5d-bq.js → index-DnYGmBYM.js} +1 -1
  154. package/dist/client/assets/{index-BgS_wSN7.js → index-Dodcj-Mw.js} +1 -1
  155. package/dist/client/assets/{index-BWVe-okg.js → index-dh7qVpYI.js} +1 -1
  156. package/dist/client/assets/{index-B2f89yTC.js → index-mDEdivEJ.js} +1 -1
  157. package/dist/client/assets/{index-BH-yAxyT.js → index-rTnBA7ms.js} +1 -1
  158. package/dist/client/assets/{index-redirect-3g0WbUIU.js → index-redirect-BDzsF49E.js} +1 -1
  159. package/dist/client/assets/{index-DYOJSKNv.js → index-zu23C60L.js} +1 -1
  160. package/dist/client/assets/{infiniteQueryObserver-DB_1TZXQ.js → infiniteQueryObserver-CmW3uI_C.js} +1 -1
  161. package/dist/client/assets/{infra-billing-BkNwG0At.js → infra-billing-Xe-QR_aA.js} +1 -1
  162. package/dist/client/assets/{input-CetABZ1t.js → input-BWMKGiG7.js} +1 -1
  163. package/dist/client/assets/{input-BFegQsoJ.js → input-DKvkNLxc.js} +3 -3
  164. package/dist/client/assets/{integration-icon-B40Wh7Yg.js → integration-icon-UdqaK4j5.js} +1 -1
  165. package/dist/client/assets/{jira-icon-DRT1LjUg.js → jira-icon-BXLlnoMi.js} +1 -1
  166. package/dist/client/assets/{label-BfDWtWVd.js → label-PfhFwXDB.js} +1 -1
  167. package/dist/client/assets/{layout-D6GIbXPf.js → layout-LjvCD25R.js} +1 -1
  168. package/dist/client/assets/{legacy-admin-welcome-dialog-CWnygl8t.js → legacy-admin-welcome-dialog-F7XO8XgZ.js} +1 -1
  169. package/dist/client/assets/{legacy-agents-deep-BON-Uap3.js → legacy-agents-deep-Ch8Xa93t.js} +1 -1
  170. package/dist/client/assets/{legacy-main-redirect-7K4gzdWJ.js → legacy-main-redirect-BPNo4KOA.js} +1 -1
  171. package/dist/client/assets/library-DmUN8KJK.js +1 -0
  172. package/dist/client/assets/{library-tab-cPvE59qy.js → library-tab-BSfDHVvp.js} +1 -1
  173. package/dist/client/assets/{login-B1LerdGj.js → login-CoFOfP_J.js} +1 -1
  174. package/dist/client/assets/{markdown-76gpdRfx.js → markdown-Mrho5aZm.js} +7 -7
  175. package/dist/client/assets/{mcp-app-renderer-D2ApozFH.js → mcp-app-renderer-OepBm0xf.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-Ciaq70yo.js → mcp-oauth-CPNuaTw2.js} +1 -1
  177. package/dist/client/assets/{mcp-oauth-Cv9nCTWQ.js → mcp-oauth-D2A3WCc8.js} +1 -1
  178. package/dist/client/assets/{members-DhpI2yjO.js → members-BUCQXk_Z.js} +1 -1
  179. package/dist/client/assets/{memory-C2cklx-U.js → memory-BvgLbCaa.js} +1 -1
  180. package/dist/client/assets/{mock-board-DMtyKhZF.js → mock-board-CkAh1xfR.js} +3 -3
  181. package/dist/client/assets/{monaco-editor-B1sfLlbf.js → monaco-editor-g0g8FNXa.js} +1 -1
  182. package/dist/client/assets/{monitoring-Cko11Af4.js → monitoring-C21z2Ky6.js} +1 -1
  183. package/dist/client/assets/{monitoring-stats-row-CNgZcKxB.js → monitoring-stats-row-CVBzJu2Z.js} +1 -1
  184. package/dist/client/assets/{multi-select-C403rRdD.js → multi-select-BAtpYbAh.js} +1 -1
  185. package/dist/client/assets/{mustache-e4HtHwg-.js → mustache-D54jyG9D.js} +3 -3
  186. package/dist/client/assets/{named-rule-view-Cc1641XV.js → named-rule-view-CT0WGqZQ.js} +1 -1
  187. package/dist/client/assets/{new-project-dialog-CBKXLl_5.js → new-project-dialog-C3_nj5Ml.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-B-w7X7CW.js → oauth-callback-CBi7ICt6.js} +1 -1
  189. package/dist/client/assets/{oauth-callback-ai-provider-BAYGboHu.js → oauth-callback-ai-provider-Dk0zoYp5.js} +1 -1
  190. package/dist/client/assets/{oauth-consent-CoxfO_xS.js → oauth-consent-CuhoZHL3.js} +1 -1
  191. package/dist/client/assets/{onboarding-7GiDV_a-.js → onboarding-Cng8wY1E.js} +1 -1
  192. package/dist/client/assets/{openai-conversation-CWwnbl62.js → openai-conversation-DiGdZuyX.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-BktmZYTP.js → optimistic-project-sidebar-views-BOc7d1-I.js} +1 -1
  194. package/dist/client/assets/{order-monitor-day-DCrwQKXh.js → order-monitor-day-DvvGpgk-.js} +1 -1
  195. package/dist/client/assets/{organization-choice--RCqz3ju.js → organization-choice-DNs_V-xg.js} +1 -1
  196. package/dist/client/assets/{orgs-tCNrRFKw.js → orgs-BLLV0cjQ.js} +1 -1
  197. package/dist/client/assets/{own-accounts-section-ChZriIwH.js → own-accounts-section-C_JhIm_f.js} +1 -1
  198. package/dist/client/assets/{pair-tmC6PpOp.js → pair-BZWd7l8i.js} +7 -7
  199. package/dist/client/assets/parse-sections-Chh4kibB.js +20 -0
  200. package/dist/client/assets/plan-C2Rwz4yq.js +1 -0
  201. package/dist/client/assets/{plan-ladder-DK7Z5wEN.js → plan-ladder-C_hexrUw.js} +1 -1
  202. package/dist/client/assets/{plan-usage-card-DHkPqm05.js → plan-usage-card-BoQTuswG.js} +1 -1
  203. package/dist/client/assets/{popover-DsnoY7gE.js → popover-Bmr7L36n.js} +1 -1
  204. package/dist/client/assets/post-calendar-DMhH6lZl.js +1 -0
  205. package/dist/client/assets/post-editor-BXvu8EpI.js +2 -0
  206. package/dist/client/assets/{preview-content-W28O7oBF.js → preview-content-DYnkU4UJ.js} +1 -1
  207. package/dist/client/assets/{preview-dialog-DS-Ukev2.js → preview-dialog-DNx4X2e9.js} +1 -1
  208. package/dist/client/assets/{preview-panel-CtHwojzA.js → preview-panel-CvviPuHY.js} +1 -1
  209. package/dist/client/assets/{preview-tab-B7WKX_jB.js → preview-tab-BNjaDwVm.js} +3 -3
  210. package/dist/client/assets/{product-picker-dialog-DbnA1q8B.js → product-picker-dialog-H-c7S_y6.js} +1 -1
  211. package/dist/client/assets/{profile-6j9OcP2L.js → profile-CIr-8Y5O.js} +1 -1
  212. package/dist/client/assets/{project-app-view-TULDeLlR.js → project-app-view-AO2FGSd6.js} +1 -1
  213. package/dist/client/assets/{project-apps-B8XrqASg.js → project-apps-DBCPlxgH.js} +1 -1
  214. package/dist/client/assets/{project-icon-SG6bYAhL.js → project-icon-CmnD7zSI.js} +1 -1
  215. package/dist/client/assets/{project-index-CKqx4tH5.js → project-index-DSLcGnuq.js} +1 -1
  216. package/dist/client/assets/project-reports-S-kufFKe.js +1 -0
  217. package/dist/client/assets/project-tasks-wzF7Jhs-.js +1 -0
  218. package/dist/client/assets/{projects-ZPSZzS-2.js → projects-ChZ6VlDP.js} +1 -1
  219. package/dist/client/assets/{projects-empty-state-D0MMQ8sq.js → projects-empty-state-DAlIDaDL.js} +1 -1
  220. package/dist/client/assets/{prompts-9qkglIAd.js → prompts-Bvb1OOOC.js} +1 -1
  221. package/dist/client/assets/record-editor-N9NTN0AS.js +1 -0
  222. package/dist/client/assets/redirect-editor-Cr2marAT.js +1 -0
  223. package/dist/client/assets/{reports-DCT8OLXu.js → reports-BXChVA2M.js} +1 -1
  224. package/dist/client/assets/{reports-onboarding-Co5Q5X1T.js → reports-onboarding-mCk-w7k-.js} +1 -1
  225. package/dist/client/assets/reports-sZEBLifc.js +1 -0
  226. package/dist/client/assets/{reports-tab-CUX0tKBD.js → reports-tab-DE8i-fZN.js} +2 -2
  227. package/dist/client/assets/repositories-BgBZ-sk3.js +1 -0
  228. package/dist/client/assets/{repositories-BN38EwkA.js → repositories-DBxw960j.js} +1 -1
  229. package/dist/client/assets/{repository-binding-FcrTKkLc.js → repository-binding-CoMozV78.js} +1 -1
  230. package/dist/client/assets/{repository-picker-uDInunvt.js → repository-picker-Ds67iMZ7.js} +1 -1
  231. package/dist/client/assets/{require-capability-CLtIqMdo.js → require-capability-C9oBXOPC.js} +1 -1
  232. package/dist/client/assets/{required-auth-layout-DYY0v5vc.js → required-auth-layout-BZsZN7yA.js} +1 -1
  233. package/dist/client/assets/{reset-password-DXzM6d6N.js → reset-password-7T8Amd8g.js} +1 -1
  234. package/dist/client/assets/{resizable-Cwvumcp8.js → resizable-CMMESj2f.js} +1 -1
  235. package/dist/client/assets/{resolve-tab-icon-CpKqYylc.js → resolve-tab-icon-CWFgluny.js} +1 -1
  236. package/dist/client/assets/{review-settings-DhXUecFY.js → review-settings-CcRoafom.js} +1 -1
  237. package/dist/client/assets/{role-color-Bmggoorj.js → role-color-BGMgsms5.js} +1 -1
  238. package/dist/client/assets/{roles-CDov6Epa.js → roles-D_ANLmLE.js} +1 -1
  239. package/dist/client/assets/route-Bl9oqEzn.js +1 -0
  240. package/dist/client/assets/{route-ByenP2AC.js → route-CVEfwKUb.js} +1 -1
  241. package/dist/client/assets/route-OcK1C2mu.js +1 -0
  242. package/dist/client/assets/{sandbox-lifecycle-context-CWyZPDgB.js → sandbox-lifecycle-context-Df97dN_A.js} +1 -1
  243. package/dist/client/assets/{schema-BzPNqisL.js → schema-C8mn4zzt.js} +1 -1
  244. package/dist/client/assets/{schema-BtgOmeu0.js → schema-PUU_l55-.js} +1 -1
  245. package/dist/client/assets/{scroll-area-BetFFhjH.js → scroll-area-DPYxTk2f.js} +1 -1
  246. package/dist/client/assets/{search-input-B143wE4b.js → search-input-CxiWeJ7M.js} +1 -1
  247. package/dist/client/assets/{search-toggle-B60V5fY3.js → search-toggle-B2er_d2D.js} +1 -1
  248. package/dist/client/assets/{secret-picker-0dwjcuZ2.js → secret-picker-BGN25hQY.js} +1 -1
  249. package/dist/client/assets/{secrets-CaFiB2gJ.js → secrets-CdS0pLko.js} +1 -1
  250. package/dist/client/assets/{section-array-field-BGVc7GN5.js → section-array-field-CP-WbNwo.js} +1 -1
  251. package/dist/client/assets/{sections-7hWvDZxF.js → sections-B2VbhORA.js} +1 -1
  252. package/dist/client/assets/{sections-editor-DV62ul9c.js → sections-editor-DrJZD-K0.js} +1 -1
  253. package/dist/client/assets/{select-CynqC93H.js → select-DwKpuPDv.js} +1 -1
  254. package/dist/client/assets/{select-model-pbBNqCJO.js → select-model-CYqVBHX-.js} +1 -1
  255. package/dist/client/assets/{seo-editor-D_-BHzsC.js → seo-editor-BZHEYA-M.js} +1 -1
  256. package/dist/client/assets/{separator-BstUCndM.js → separator-ygeWiuaT.js} +1 -1
  257. package/dist/client/assets/settings-tab-DAogag92.js +1 -0
  258. package/dist/client/assets/{sheet-DRzohuTq.js → sheet-Xug5hLAu.js} +1 -1
  259. package/dist/client/assets/{shell-layout-yWlnACBx.js → shell-layout-DP2VC2TO.js} +1 -1
  260. package/dist/client/assets/{site-draft-actions-CezwaYzG.js → site-draft-actions-CwKZJ4xP.js} +1 -1
  261. package/dist/client/assets/{site-draft-view-D3ax_gON.js → site-draft-view-DqJzkrit.js} +1 -1
  262. package/dist/client/assets/site-editor-DBJLt6gM.js +1 -0
  263. package/dist/client/assets/{site-editor-toast-BzBdZBKk.js → site-editor-toast-C2KJeS5V.js} +1 -1
  264. package/dist/client/assets/{skills-BVynzZAe.js → skills-KjFJGU5i.js} +1 -1
  265. package/dist/client/assets/{slider-CVqkGq0u.js → slider-B0Ygf2_6.js} +1 -1
  266. package/dist/client/assets/{sortable.esm-CLb-zEUc.js → sortable.esm-b0bgkepL.js} +1 -1
  267. package/dist/client/assets/{sso-D3L3bPHO.js → sso-BRHmZu4z.js} +1 -1
  268. package/dist/client/assets/{suggestion-ZPwpaecb.js → suggestion-x1hGwkT4.js} +2 -2
  269. package/dist/client/assets/{super-agent-icon-CYwYFCF-.js → super-agent-icon-DVvWAvfT.js} +1 -1
  270. package/dist/client/assets/{switch-DVFRbC37.js → switch-B89m7bUN.js} +1 -1
  271. package/dist/client/assets/{synced-repos-CvJMz8IM.js → synced-repos-GWj1dwBE.js} +1 -1
  272. package/dist/client/assets/{tab-icon-glyph-CSVQlnge.js → tab-icon-glyph-izlIxfMt.js} +1 -1
  273. package/dist/client/assets/{table-B7g6T_zR.js → table-lum-yHpJ.js} +1 -1
  274. package/dist/client/assets/{tabs-_i5AcyEU.js → tabs-qmDGzXtn.js} +1 -1
  275. package/dist/client/assets/{task-board-CwSJI_Nh.js → task-board-CITA4beV.js} +1 -1
  276. package/dist/client/assets/{task-route-DHnjMT6H.js → task-route-DLxggJ7K.js} +1 -1
  277. package/dist/client/assets/{task-status-CoCBESax.js → task-status-DDIH9CGS.js} +1 -1
  278. package/dist/client/assets/{taskboard-analytics-CkN-nZww.js → taskboard-analytics-B4G_sBgg.js} +1 -1
  279. package/dist/client/assets/{tasks-CvuI8Qsn.js → tasks-DbElIgy9.js} +1 -1
  280. package/dist/client/assets/tasks-Df6DY3du.js +1 -0
  281. package/dist/client/assets/{textarea-BJYFhWH0.js → textarea-BYx7yH8o.js} +1 -1
  282. package/dist/client/assets/{thread-analytics-CDKp0-KR.js → thread-analytics-D3o9NsHQ.js} +1 -1
  283. package/dist/client/assets/{thread-intent-CaOco8G4.js → thread-intent-BMcVCMdR.js} +1 -1
  284. package/dist/client/assets/{thread-route-Ddday1Ur.js → thread-route-BX8g4tw-.js} +1 -1
  285. package/dist/client/assets/{thread-route-J75JIOlK.js → thread-route-jIR4gAI_.js} +1 -1
  286. package/dist/client/assets/{thread-sheet-body-BRKc6pTX.js → thread-sheet-body-BaVm1ZBO.js} +1 -1
  287. package/dist/client/assets/{time-range-picker-DFFd7aW8.js → time-range-picker-EQi5kb2q.js} +1 -1
  288. package/dist/client/assets/{toggle-group-u9Wi3ddU.js → toggle-group-6Dx2ZnVa.js} +1 -1
  289. package/dist/client/assets/{tool-namespace-MYfklNim.js → tool-namespace-C8tIomG8.js} +1 -1
  290. package/dist/client/assets/{tool-set-selector-ByaGzWxc.js → tool-set-selector-Dzh4gju3.js} +1 -1
  291. package/dist/client/assets/{toolbar-icon-button-DWFGDofy.js → toolbar-icon-button-qX2Q8Vi7.js} +1 -1
  292. package/dist/client/assets/{tooltip-BN1ul0v0.js → tooltip-D2vb17oX.js} +1 -1
  293. package/dist/client/assets/{tooltipContext-DYJdhWXE.js → tooltipContext-bN8koyv-.js} +1 -1
  294. package/dist/client/assets/{track-BvwOMvDA.js → track-Bx9-uk2h.js} +1 -1
  295. package/dist/client/assets/{types-CZmkZk5S.js → types-Dynv4Wt5.js} +1 -1
  296. package/dist/client/assets/{url-slug-yKaykGVx.js → url-slug-Dqg9nWvP.js} +1 -1
  297. package/dist/client/assets/{usage-stats-B-U2im7t.js → usage-stats-BxAReiDs.js} +32 -32
  298. package/dist/client/assets/{use-ai-providers-DMerS0dR.js → use-ai-providers-CtG5BelZ.js} +1 -1
  299. package/dist/client/assets/{use-apply-named-rule-B_pcj1fJ.js → use-apply-named-rule-DHBY1E38.js} +1 -1
  300. package/dist/client/assets/use-ask-in-chat-B2dGYQPJ.js +1 -0
  301. package/dist/client/assets/{use-automations-CotbuTIN.js → use-automations-TW0JJdqx.js} +1 -1
  302. package/dist/client/assets/{use-autosave-BMHCMWOG.js → use-autosave-BezOS47T.js} +1 -1
  303. package/dist/client/assets/use-blocks-v8-project-Dx_FWHJP.js +1 -0
  304. package/dist/client/assets/{use-chat-layout-state-CKlzZSFB.js → use-chat-layout-state-CakVfv2a.js} +1 -1
  305. package/dist/client/assets/{use-cms-publish-actions-B18WgFwx.js → use-cms-publish-actions-DPLfPXzl.js} +1 -1
  306. package/dist/client/assets/{use-connect-companion-CP2lbL5p.js → use-connect-companion-xyuasG3f.js} +1 -1
  307. package/dist/client/assets/{use-connection-Yeg3sQ-l.js → use-connection-DYtXLDpf.js} +1 -1
  308. package/dist/client/assets/{use-content-sync-DEW9pHRa.js → use-content-sync-BpVEjJ5G.js} +1 -1
  309. package/dist/client/assets/{use-copy-m2oUJF7G.js → use-copy-B1cnS_xX.js} +1 -1
  310. package/dist/client/assets/{use-date-fns-locale-7jMzA5l2.js → use-date-fns-locale-DEbdWDOa.js} +1 -1
  311. package/dist/client/assets/{use-debounced-autosave-C-UsjeaV.js → use-debounced-autosave-CvHwbalF.js} +1 -1
  312. package/dist/client/assets/{use-debounced-value-BlVaTHev.js → use-debounced-value-Z34m5Fyz.js} +1 -1
  313. package/dist/client/assets/{use-deco-credits-BvPiIPxy.js → use-deco-credits-DCZQcwBn.js} +1 -1
  314. package/dist/client/assets/{use-decopilot-events-B0PBK1Av.js → use-decopilot-events-_iazqvpf.js} +1 -1
  315. package/dist/client/assets/{use-delete-connection-DExrJh9G.js → use-delete-connection-M267X1bS.js} +1 -1
  316. package/dist/client/assets/{use-deployment-admin-CRigQkc2.js → use-deployment-admin-DOzhh6sJ.js} +1 -1
  317. package/dist/client/assets/{use-entitlements-Bn1lpTMW.js → use-entitlements-DZIIouH3.js} +1 -1
  318. package/dist/client/assets/{use-fast-preview-draft-url-kLM5HS2Q.js → use-fast-preview-draft-url-DSbBc_J-.js} +1 -1
  319. package/dist/client/assets/{use-file-configs-D7MvTYxK.js → use-file-configs-hDEnq4hr.js} +1 -1
  320. package/dist/client/assets/{use-id-selection-BA3JsAi6.js → use-id-selection-CcHW6d6u.js} +1 -1
  321. package/dist/client/assets/{use-inbox-feed-DwHoJq6j.js → use-inbox-feed-BQSYPM61.js} +1 -1
  322. package/dist/client/assets/{use-infinite-scroll-C87qe8Wa.js → use-infinite-scroll-lJK8P9ZI.js} +1 -1
  323. package/dist/client/assets/{use-join-requests-qfP8I5hc.js → use-join-requests-sJWVcnYg.js} +1 -1
  324. package/dist/client/assets/{use-main-panel-tabs-CPwSHrEE.js → use-main-panel-tabs-C788lFWw.js} +1 -1
  325. package/dist/client/assets/{use-mcp-auth-status-BqFL1hj_.js → use-mcp-auth-status-CgZY_gyC.js} +1 -1
  326. package/dist/client/assets/{use-mcp-client-sJ5tYuZ0.js → use-mcp-client-C_baTEme.js} +1 -1
  327. package/dist/client/assets/{use-mcp-prompts-CLTd7fVx.js → use-mcp-prompts-DpQotIu-.js} +1 -1
  328. package/dist/client/assets/{use-mcp-tools-Ds_pRYTC.js → use-mcp-tools-CVQwrVGE.js} +1 -1
  329. package/dist/client/assets/{use-mobile-Ca0mzlkS.js → use-mobile-CzZEBajI.js} +1 -1
  330. package/dist/client/assets/{use-move-blocks-C4yvAsmR.js → use-move-blocks-CeecxxS_.js} +1 -1
  331. package/dist/client/assets/{use-navigate-to-agent-Cxr48619.js → use-navigate-to-agent-BMQllV2g.js} +1 -1
  332. package/dist/client/assets/{use-org-fs-noLXcqcI.js → use-org-fs-hvIlZzgN.js} +1 -1
  333. package/dist/client/assets/{use-org-repo-syncs-PTxVSrm9.js → use-org-repo-syncs-C0ZbZ18y.js} +1 -1
  334. package/dist/client/assets/{use-org-sso-29QrT10j.js → use-org-sso-C9hOcGok.js} +1 -1
  335. package/dist/client/assets/{use-organization-settings-DEeoFtSz.js → use-organization-settings-D9HfcuG0.js} +1 -1
  336. package/dist/client/assets/{use-project-native-view-presence-BO67nAre.js → use-project-native-view-presence-FcTxBNIu.js} +1 -1
  337. package/dist/client/assets/{use-project-scope-BXftze_e.js → use-project-scope-yhiZWd6i.js} +1 -1
  338. package/dist/client/assets/{use-recent-apps-CIrhZcWD.js → use-recent-apps-CtwsvbPj.js} +1 -1
  339. package/dist/client/assets/{use-reports-diagnostic-oIW-vWNT.js → use-reports-diagnostic-BP7gBCmu.js} +1 -1
  340. package/dist/client/assets/{use-sandbox-events-BG3ieUWQ.js → use-sandbox-events-rlHOSL_u.js} +1 -1
  341. package/dist/client/assets/{use-secrets-DkEnO-x0.js → use-secrets-CjzhxUFP.js} +1 -1
  342. package/dist/client/assets/{use-section-preview-base-BjAgfXf5.js → use-section-preview-base-BRTpm92u.js} +1 -1
  343. package/dist/client/assets/{use-sidebar-collapsed-CvNtqVy2.js → use-sidebar-collapsed-DTqL_ZOd.js} +1 -1
  344. package/dist/client/assets/{use-tags-BHiGxU75.js → use-tags-v5mP3DFy.js} +1 -1
  345. package/dist/client/assets/{use-task-board-analytics-Ckz7K9Sk.js → use-task-board-analytics-CXbWAJgx.js} +1 -1
  346. package/dist/client/assets/{use-task-board-events-N3Hmav6X.js → use-task-board-events-Do0ZxHPd.js} +1 -1
  347. package/dist/client/assets/{use-task-board-item-prs-BrW26Cl1.js → use-task-board-item-prs-DjTo2SIU.js} +1 -1
  348. package/dist/client/assets/{use-task-board-items-Boto1WTW.js → use-task-board-items-8MOWqSEt.js} +1 -1
  349. package/dist/client/assets/{use-task-board-prompts-BU1x5m9R.js → use-task-board-prompts-ECSdw-Pb.js} +1 -1
  350. package/dist/client/assets/{use-task-metadata-BB2iYALn.js → use-task-metadata-X9Mil_QT.js} +1 -1
  351. package/dist/client/assets/{use-thread-outputs-BUT_Bu11.js → use-thread-outputs-Dmf6zhrt.js} +1 -1
  352. package/dist/client/assets/{use-voice-input-BlXyivEI.js → use-voice-input-BJwAU8da.js} +1 -1
  353. package/dist/client/assets/useInfiniteQuery-CvokX1at.js +1 -0
  354. package/dist/client/assets/{useQueries-B4AI0K7c.js → useQueries-DOrZn37R.js} +1 -1
  355. package/dist/client/assets/useSuspenseInfiniteQuery-BiaFhRxh.js +1 -0
  356. package/dist/client/assets/{users-BJUWBQrO.js → users-Daf6ssOQ.js} +1 -1
  357. package/dist/client/assets/{utils-Cwe-foul.js → utils-DfZ0Z1Cp.js} +2 -2
  358. package/dist/client/assets/{variant-calendar-DTdamyQ9.js → variant-calendar-C_C-crL9.js} +1 -1
  359. package/dist/client/assets/{variant-matcher-override-Ve07uZhZ.js → variant-matcher-override-DNI0CzKx.js} +1 -1
  360. package/dist/client/assets/{view-header-CcqynLIn.js → view-header-B99QN9EG.js} +1 -1
  361. package/dist/client/assets/virtual-mcp-CbvCEWCq.js +1 -0
  362. package/dist/client/assets/{watch-sse-pool-C6-OWpzA.js → watch-sse-pool-D0y06VhU.js} +1 -1
  363. package/dist/client/index.html +2 -2
  364. package/dist/server/server.js +2 -2
  365. package/package.json +1 -1
  366. package/dist/client/assets/agent-app-DIOn_zxU.js +0 -1
  367. package/dist/client/assets/agent-deck-D8sIhHcl.js +0 -1
  368. package/dist/client/assets/agent-experiments-CTwWI_LC.js +0 -1
  369. package/dist/client/assets/agent-file-tQpTdSLO.js +0 -1
  370. package/dist/client/assets/agent-library-C8-K4C_A.js +0 -1
  371. package/dist/client/assets/agent-library-file-CUAfUV8b.js +0 -1
  372. package/dist/client/assets/agent-overview-BA99Kh7t.js +0 -1
  373. package/dist/client/assets/agent-settings-BLtzbihE.js +0 -1
  374. package/dist/client/assets/agent-site-editor-code-Cz02M8Vo.js +0 -2
  375. package/dist/client/assets/agent-site-editor-content-BR1zYqRC.js +0 -1
  376. package/dist/client/assets/agent-site-editor-preview-DmnTxDaZ.js +0 -1
  377. package/dist/client/assets/agent-view-zCDPmtYP.js +0 -1
  378. package/dist/client/assets/api-keys-JGOPVjRU.js +0 -1
  379. package/dist/client/assets/app-editor-DToZlbxJ.js +0 -1
  380. package/dist/client/assets/category-editor-DCkmHYcQ.js +0 -1
  381. package/dist/client/assets/cms-settings-editor-CBpfvEej.js +0 -1
  382. package/dist/client/assets/content-tab-Df3tIOmt.js +0 -25
  383. package/dist/client/assets/context-C2o5DQEj.js +0 -1
  384. package/dist/client/assets/index-BYag0D9X.js +0 -83
  385. package/dist/client/assets/index-BkJtJQz4.css +0 -1
  386. package/dist/client/assets/index-Bu4stMck.js +0 -1
  387. package/dist/client/assets/library-DSOuf5_0.js +0 -1
  388. package/dist/client/assets/parse-sections-3ze3XXop.js +0 -20
  389. package/dist/client/assets/plan-BbVPxdYG.js +0 -1
  390. package/dist/client/assets/post-calendar-kAnC_2Hm.js +0 -1
  391. package/dist/client/assets/post-editor-DJ3OH6KB.js +0 -2
  392. package/dist/client/assets/project-reports-DBO5X-h0.js +0 -1
  393. package/dist/client/assets/project-tasks-CfmD3VHL.js +0 -1
  394. package/dist/client/assets/record-editor-BnGOXmOt.js +0 -1
  395. package/dist/client/assets/redirect-editor-OjmSo149.js +0 -1
  396. package/dist/client/assets/reports-DoGHDSe5.js +0 -1
  397. package/dist/client/assets/repositories-btzaY915.js +0 -1
  398. package/dist/client/assets/route-f2InXsa9.js +0 -1
  399. package/dist/client/assets/route-t1xHDXK-.js +0 -1
  400. package/dist/client/assets/settings-tab-CPJwJyA3.js +0 -1
  401. package/dist/client/assets/site-editor-cTg-Jmis.js +0 -1
  402. package/dist/client/assets/tasks-DZsRgr7r.js +0 -1
  403. package/dist/client/assets/use-ask-in-chat-DO48HVtQ.js +0 -1
  404. package/dist/client/assets/use-blocks-v8-project-2aeIHOAc.js +0 -1
  405. package/dist/client/assets/useInfiniteQuery-Dn6_bz5e.js +0 -1
  406. package/dist/client/assets/useSuspenseInfiniteQuery-FPhi-YvF.js +0 -1
  407. package/dist/client/assets/virtual-mcp-DvDiWLao.js +0 -1
@@ -1 +1 @@
1
- import{c as E,j as t,B as K,h as Z,aE as Xe,aF as re,b as W,R as Ee,r as A,a4 as fe,en as Ze,ep as Oe,aD as et,n as Re,I as pe,m as G,cx as tt,ar as st,u as ot,L as se,t as lt,f as he,da as Fe}from"./index-CpKrWBFM.js";import{E as Me}from"./empty-state-B9Q-olZe.js";import{u as ge}from"./use-mcp-client-sJ5tYuZ0.js";import{F as ae,a as nt,b as ce,d as de}from"./form-D9ocAu49.js";import{T as xe}from"./textarea-BJYFhWH0.js";import{D as je,O as it,M as rt}from"./index-CCr5d-bq.js";import{bJ as at,ab as ct,bT as dt,S as mt,aJ as ut,T as pt,aO as xt,Y as ye,e as ft}from"./agent-icon-De2MEsoK.js";import{M as ht}from"./mcp-app-renderer-D2ApozFH.js";import{g as gt,M as we}from"./types-CZmkZk5S.js";import{A as jt,a as bt,b as Nt}from"./alert-uAfMA0iM.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-CynqC93H.js";import{b as vt,c as Pe,T as De,a as ke}from"./tooltip-BN1ul0v0.js";import{i as St}from"./AlertCircle-JrI6GhX-.js";import{i as yt}from"./Play-nrEhEYaX.js";import{g as wt}from"./connection-slug-CfDyadIo.js";import{u as Ct,T as It}from"./use-mcp-auth-status-BqFL1hj_.js";import{a as ze,u as Be}from"./use-connection-Yeg3sQ-l.js";import{u as Tt}from"./use-mcp-tools-Ds_pRYTC.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-B40Wh7Yg.js";import{f as Pt,y as Dt}from"./chat-context-CkHIxm7-.js";import{g as kt}from"./shell-layout-yWlnACBx.js";import{MonacoCodeEditor as At}from"./monaco-editor-B1sfLlbf.js";import{E as Et}from"./empty-state-BMJVmWPT.js";import{n as Ot}from"./LinkBroken01-dVGcDCd1.js";import"./auth-eTld9LX2.js";import"./label-BfDWtWVd.js";import"./Key01-CCkW71V8.js";import"./extract-connection-data-CWUwzdyr.js";import"./metadata-D72DunRR.js";import"./connection-BvqfkXwo.js";import"./url-slug-yKaykGVx.js";import"./Plus-CXFgI-7S.js";import"./index-BH-yAxyT.js";import"./index-BvcpEDRp.js";import"./index-BWVe-okg.js";import"./index-BdQq_4o_.js";import"./index-Cu0X1Ryu.js";import"./popover-DsnoY7gE.js";import"./repository-binding-FcrTKkLc.js";import"./SearchMd-BgyEwNMN.js";import"./use-mobile-Ca0mzlkS.js";import"./use-navigate-to-agent-Cxr48619.js";import"./thread-intent-CaOco8G4.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C6-OWpzA.js";import"./task-board-CwSJI_Nh.js";import"./schema-BtgOmeu0.js";import"./schema-BzPNqisL.js";import"./Tool01-3EDhR0eh.js";import"./ArrowUp-Dbd0DsFj.js";import"./ArrowLeft-BY3YUYmg.js";import"./ShoppingBag01-C8w58xcy.js";import"./Globe04-BSIf8tfY.js";import"./CheckCircle-Lk0BK653.js";import"./ChevronUp-CypYcouh.js";import"./ChevronSelectorVertical-D-Hk_1B6.js";import"./UserSquare-CgD5WRTE.js";import"./CreditCard01-D4hEMIBc.js";import"./SwitchHorizontal01-BKQGE_Gz.js";import"./Minus-B6bCcC1a.js";import"./Monitor01-B1R4t9_g.js";import"./Sun-BbLelrLi.js";import"./Trash01-Cc7bOGxh.js";import"./Upload01-CUdaL1MP.js";import"./Users01-D_DratJd.js";import"./XClose-Ba9vOcHg.js";import"./Zap-CGLJP1Pm.js";import"./index-BqpQ0Oz6.js";import"./badge-Dmw39gk8.js";import"./mcp-oauth-Ciaq70yo.js";import"./autosend-C7zfiAZa.js";import"./thread-route-Ddday1Ur.js";import"./use-project-scope-BXftze_e.js";import"./use-entitlements-Bn1lpTMW.js";import"./use-ai-providers-DMerS0dR.js";import"./use-decopilot-events-B0PBK1Av.js";import"./use-organization-settings-DEeoFtSz.js";import"./use-deployment-admin-CRigQkc2.js";import"./admin-fetch-BhTJlAsX.js";import"./command-D_vABNVv.js";import"./project-icon-SG6bYAhL.js";import"./use-debounced-value-BlVaTHev.js";import"./new-project-dialog-CBKXLl_5.js";import"./repository-picker-uDInunvt.js";import"./github-icon-BuHFJx0u.js";import"./useInfiniteQuery-Dn6_bz5e.js";import"./infiniteQueryObserver-DB_1TZXQ.js";import"./collection-search-RPq6faeR.js";import"./legacy-admin-welcome-dialog-CWnygl8t.js";import"./drawer-B-H4hfQm.js";import"./required-auth-layout-DYY0v5vc.js";import"./use-org-sso-29QrT10j.js";import"./editor-CsGz7SqJ.js";function Rt(s){const e=E.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==o||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":r,children:[x,r]}),e[1]=i,e[2]=o,e[3]=r,e[4]=h):h=e[4];let u;e[5]!==i?(u=i?t.jsx(Z,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(g=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[u,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=u,e[11]=g):g=e[11];let p;return e[12]!==h||e[13]!==g?(p=t.jsxs(t.Fragment,{children:[h,g]}),e[12]=h,e[13]=g,e[14]=p):p=e[14],p}Xe({title:re().min(1),description:re().nullable(),body:re()});function ue(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(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Mt(s){const e=E.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let g;e[22]!==u?(g=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=g):g=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=C=>{const{field:b}=C;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("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]=o,e[29]=N):N=e[29];let v;e[30]!==n.control||e[31]!==N?(v=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=v):v=e[32];let y;e[33]!==g||e[34]!==j||e[35]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-2",children:[g,j,v]}),e[33]=g,e[34]=j,e[35]=v,e[36]=y):y=e[36];let w;e[37]!==y||e[38]!==h?(w=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,y]}),e[37]=y,e[38]=h,e[39]=w):w=e[39];let P;return e[40]!==n||e[41]!==w?(P=t.jsx(nt,{...n,children:w}),e[40]=n,e[41]=w,e[42]=P):P=e[42],P}function zt(s){const e=E.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Ze(n,"PROMPT",o,d),x=Oe(n,"PROMPT",d),h=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let g;e[6]!==u?(g={values:u},e[6]=u,e[7]=g):g=e[7];const p=et(g);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let v;e[11]!==x.update||e[12]!==p||e[13]!==o?(v=p.handleSubmit(async I=>{const T=await x.update.mutateAsync({id:o,data:{title:I.title,description:I.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:I.body}}]}});p.reset({title:T.title,description:T.description??null,body:ue(T)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=v):v=e[14];const y=v;if(!r){let I;e[15]!==l?(I=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=I):I=e[16];let T;e[17]!==l?(T=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=T):T=e[18];let R;return e[19]!==I||e[20]!==T?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:I,description:T})}),e[19]=I,e[20]=T,e[21]=R):R=e[21],R}let w;e[22]!==y?(w=()=>{y()},e[22]=y,e[23]=w):w=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==h||e[26]!==N||e[27]!==w?(P=t.jsx(Rt,{onSave:w,onUndo:N,isDirty:p.formState.isDirty,isSaving:h}),e[24]=p.formState.isDirty,e[25]=h,e[26]=N,e[27]=w,e[28]=P):P=e[28];let C;e[29]!==r.title||e[30]!==P?(C=t.jsx(Re.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=C):C=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let D;e[34]!==b||e[35]!==C?(D=t.jsxs(t.Fragment,{children:[C,b]}),e[34]=b,e[35]=C,e[36]=D):D=e[36];let k;e[37]!==p?(k=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:p})}),e[37]=p,e[38]=k):k=e[38];let O;return e[39]!==D||e[40]!==k?(O=t.jsxs(je,{children:[D,k]}),e[39]=D,e[40]=k,e[41]=O):O=e[41],O}function Bt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ft(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("min-w-0 overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Ue(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden text-muted-foreground",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Y(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function oe(s){const e=E.c(10);let n,o,l;e[0]!==s?({asChild:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);const i=n?tt:"a";let a;e[4]!==o?(a=G("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==l||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function _e(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("text-foreground font-medium truncate",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function le(s){const e=E.c(12);let n,o,l;e[0]!==s?({children:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);let i;e[4]!==o?(i=G("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=E.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=W();let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const r=Ct(d);if(!r.isAuthenticated){let u;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==c?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(it,{onAuthenticate:()=>a(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=c,e[5]=u):u=e[5],u}const x=`${o}:${n}`;let h;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(h=t.jsx(_t,{toolName:n,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=W(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,f=sessionStorage.getItem(m);if(!f)return null;sessionStorage.removeItem(m);try{return JSON.parse(f)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[f,$]of Object.entries(a))$!==null&&typeof $=="object"?m[f]=JSON.stringify($,null,2):m[f]=$;return m})(),[d,r]=A.useState(c??{}),[x,h]=A.useState(a?JSON.stringify(a,null,2):"{}"),[u,g]=A.useState(null),[p,j]=A.useState(null),[N,v]=A.useState(null),[y,w]=A.useState(null),[P,C]=A.useState(!1),[b,D]=A.useState(null),{org:k}=fe(),O=ze(e),I=Pt(),T=Dt(),{openSidePanel:R}=kt(),U=`${e}:${s}`,M=ge({connectionId:e,orgId:k.id,orgSlug:k.slug}),_=Tt({client:M}),S=_.data?.tools?.find(m=>m.name===s),F=gt(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(R(),I.sendMessage({tiptapDoc:f}))},[z,B]=A.useState("json"),[q,Q]=A.useState(!1);F&&!q&&(B("ui"),Q(!0));const J=S?.inputSchema?.properties,be=J?Object.keys(J):[],X=be.length>0,ee={};if(X&&S?.inputSchema?.properties)for(const m of be)ee[m]=S.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{C(!0),w(null),g(null),j(null),v(null),D(null);const m=performance.now();try{if(!M)throw new Error("MCP client is not available");const f=X?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const H=JSON.parse(L);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();X&&S?.inputSchema?.properties&&Object.entries(S.inputSchema.properties).forEach(([L,H])=>{if((H.type==="object"||H.type==="array")&&typeof f[L]=="string")try{f[L]=JSON.parse(f[L])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof f[L]=="string"&&f[L]!==""){const Se=Number(f[L]);Number.isNaN(Se)||(f[L]=Se)}});const $=await M.callTool({name:s,arguments:f}),te=$.structuredContent??$,Qe=performance.now(),Ye=Math.round(Qe-m);g(te),j($),v(f);const Ge=JSON.stringify(te),ve=new TextEncoder().encode(Ge).length;D({duration:`${Ye}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(f){const $=f instanceof Error?f.message:String(f);w($||"Unknown error occurred");const te=performance.now();D({duration:`${Math.round(te-m)}ms`})}finally{C(!1)}},ie=(m,f)=>{r($=>({...$,[m]:f}))},Ve=()=>{g(null),j(null),v(null),w(null),D(null)},qe=S?.name??Lt(s),He=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:k.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:wt(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(Y,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{size:"sm",className:"w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),Ke=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",children:l("details.tool.parameters")}),S?.inputSchema?.required&&S.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:X&&S?.inputSchema?.properties?Object.entries(S.inputSchema.properties).map(([m,f])=>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:[m,S.inputSchema?.required?.includes(m)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:f.type})]}),f.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:f.description}),f.type==="object"||f.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):f.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:$=>ie(m,$==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):S?.inputSchema&&!X?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:m=>h(m.target.value),placeholder:l("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:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{variant:"destructive",className:"gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{variant:"default",className:"gap-2",onClick:Je,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),We=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",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&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(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&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:b.tokens})]}),b.bytes&&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:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),F&&t.jsx(vt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="ui"?"secondary":"ghost",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(ke,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="json"?"secondary":"ghost",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(ke,{children:l("details.tool.jsonView")})]})]})})]})]}),y&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(jt,{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(St,{className:"h-4 w-4"}),t.jsx(bt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(Nt,{className:"text-xs text-destructive",children:y})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&z==="ui"&&M?t.jsx(A.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:l("details.tool.loadingApp")})]})}),children:t.jsx(ht,{resourceURI:F,toolInfo:S?{tool:S}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:M,onMessage:V,onUpdateModelContext:m=>T?.setAppContext(U,m),onTeardown:()=>T?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(At,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"outline",className:"absolute top-4 right-4",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(ft,{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(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:He,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(Ae,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Re.Title,{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:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.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:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:S?.annotations,_meta:S?._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:S?.description||"No description available"})]}),n.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:l("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:Ke}),We]})})]})})}function Jt(s){const e=E.c(21),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=A.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(p=>p.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let p;e[3]!==i?(p=i("details.tool.connectionNotFound"),e[3]=i,e[4]=p):p=e[4];let j;e[5]!==p?(j=t.jsx("h3",{className:"text-lg font-semibold",children:p}),e[5]=p,e[6]=j):j=e[6];let N;e[7]!==i?(N=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=N):N=e[8];let v;e[9]!==N?(v=t.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[9]=N,e[10]=v):v=e[10];let y;return e[11]!==j||e[12]!==v?(y=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,v]})}),e[11]=j,e[12]=v,e[13]=y):y=e[13],y}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 u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=p=>A.startTransition(()=>c(p)),e[15]=u):u=e[15];let g;return e[16]!==r||e[17]!==l||e[18]!==o||e[19]!==n?(g=t.jsx(A.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:u,onBack:l})}),e[16]=r,e[17]=l,e[18]=o,e[19]=n,e[20]=g):g=e[20],g}const Vt={prompt:Bt};function qt(){const s=E.c(9),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}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=E.c(52),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,g=u?.id??"",p=g||"no-connection",j=g??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const v=ge(N),y=Oe(p,i,v);let w;s[9]!==y||s[10]!==a?(w=async J=>{a&&await y.update.mutateAsync({id:a,data:J})},s[9]=y,s[10]=a,s[11]=w):w=s[11];const P=w;let C;s[12]!==i?(C=i?.toLowerCase(),s[12]=i,s[13]=C):C=s[13];const b=C,D=b&&Vt[b];let k;s[14]!==i?(k=Kt(i),s[14]=i,s[15]=k):k=s[15];const O=k;let I;s[16]!==r.slug?(I=t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=I):I=s[17];let T;s[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(le,{}),s[18]=T):T=s[18];let R;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(R=u&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(Y,{children:t.jsx(_e,{children:O})}),s[24]=O,s[25]=U):U=s[25];let M;s[26]!==R||s[27]!==U||s[28]!==I?(M=t.jsx(Le,{children:t.jsxs(Ue,{children:[I,T,R,U]})}),s[26]=R,s[27]=U,s[28]=I,s[29]=M):M=s[29];const _=M;if(D){let J;return s[30]!==D||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(D,{itemId:a,onBack:d,onUpdate:P}),s[30]=D,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let S;s[35]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=S):S=s[35];let F;s[36]!==l?(F=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=F):F=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let B;s[42]!==d||s[43]!==z?(B={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=B):B=s[44];let q;s[45]!==F||s[46]!==V||s[47]!==B?(q=t.jsx(Et,{icon:S,title:F,description:V,buttonProps:B}),s[45]=F,s[46]=V,s[47]=B,s[48]=q):q=s[48];let Q;return s[49]!==_||s[50]!==q?(Q=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=Q):Q=s[51],Q}function Qt(){const s=E.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 n=he(e);if(decodeURIComponent(n.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 i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function zo(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(A.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{zo as default};
1
+ import{c as E,j as t,B as H,h as Z,aE as Xe,aF as re,b as W,R as Ee,r as A,a4 as fe,en as Ze,ep as Re,aD as et,n as Oe,I as pe,m as G,cx as tt,ar as st,u as ot,L as se,t as lt,f as he,da as Fe}from"./index-B1ZvlDM_.js";import{E as Me}from"./empty-state-DjPM3fy8.js";import{u as ge}from"./use-mcp-client-C_baTEme.js";import{F as ae,a as nt,b as ce,d as de}from"./form-BcinmXce.js";import{T as xe}from"./textarea-BYx7yH8o.js";import{D as je,O as it,M as rt}from"./index-DnYGmBYM.js";import{bK as at,ab as ct,bU as dt,S as mt,aK as ut,T as pt,aS as xt,Y as ye,e as ft}from"./agent-icon-B9ymJOYy.js";import{M as ht}from"./mcp-app-renderer-OepBm0xf.js";import{g as gt,M as we}from"./types-Dynv4Wt5.js";import{A as jt,a as bt,b as Nt}from"./alert-CQeq0vZr.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-DwKpuPDv.js";import{b as vt,c as Pe,T as De,a as ke}from"./tooltip-D2vb17oX.js";import{i as St}from"./AlertCircle-B9jzXYca.js";import{i as yt}from"./Play-DqrEB0p_.js";import{g as wt}from"./connection-slug-s2iYHyhO.js";import{u as Ct,T as It}from"./use-mcp-auth-status-CgZY_gyC.js";import{a as ze,u as Be}from"./use-connection-DYtXLDpf.js";import{u as Tt}from"./use-mcp-tools-CVQwrVGE.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-UdqaK4j5.js";import{f as Pt,B as Dt}from"./chat-context-CMznzxL2.js";import{g as kt}from"./shell-layout-DP2VC2TO.js";import{MonacoCodeEditor as At}from"./monaco-editor-g0g8FNXa.js";import{E as Et}from"./empty-state-BY5AuJfU.js";import{n as Rt}from"./LinkBroken01-BSh2E4ld.js";import"./auth-DYk3j3P5.js";import"./label-PfhFwXDB.js";import"./Key01-BfEZ7hLZ.js";import"./extract-connection-data-CzRa4dsB.js";import"./metadata-D72DunRR.js";import"./connection-CyPXBq-_.js";import"./url-slug-Dqg9nWvP.js";import"./Plus-BF39I64m.js";import"./index-rTnBA7ms.js";import"./index-CE2oWWvQ.js";import"./index-dh7qVpYI.js";import"./index-BdQq_4o_.js";import"./index-CtHyBR3B.js";import"./popover-Bmr7L36n.js";import"./repository-binding-CoMozV78.js";import"./SearchMd-BCaWPluh.js";import"./use-mobile-CzZEBajI.js";import"./use-navigate-to-agent-BMQllV2g.js";import"./thread-intent-BMcVCMdR.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D0y06VhU.js";import"./task-board-CITA4beV.js";import"./schema-PUU_l55-.js";import"./schema-C8mn4zzt.js";import"./Tool01-wiKWLRCc.js";import"./ArrowUp-Besm0IZ2.js";import"./ArrowLeft-CZ3DAg0q.js";import"./ShoppingBag01-WYt5uke3.js";import"./Globe04-DFEQkAAl.js";import"./CheckCircle-Bg_9Wlgi.js";import"./ChevronUp-CM8EW0Js.js";import"./ChevronSelectorVertical-UvFeI9z1.js";import"./UserSquare-CoAnLSHH.js";import"./CreditCard01-Bhqkelsq.js";import"./SwitchHorizontal01-CStChVS2.js";import"./Minus-Ctt_tNjY.js";import"./Monitor01-Cp5O9jEx.js";import"./Sun-Dniq03T7.js";import"./Trash01-DR_ZbB22.js";import"./Upload01-BNm-Yhgs.js";import"./Users01-BKvz85-q.js";import"./XClose-BH2b2x6k.js";import"./Zap-C46fglVd.js";import"./index-BjRujN3I.js";import"./badge-sWV0Lz9X.js";import"./mcp-oauth-CPNuaTw2.js";import"./autosend-DPIl8Ow-.js";import"./thread-route-BX8g4tw-.js";import"./use-project-scope-yhiZWd6i.js";import"./use-entitlements-DZIIouH3.js";import"./use-ai-providers-CtG5BelZ.js";import"./use-decopilot-events-_iazqvpf.js";import"./use-organization-settings-D9HfcuG0.js";import"./use-deployment-admin-DOzhh6sJ.js";import"./admin-fetch-BhTJlAsX.js";import"./command-CG66jyhm.js";import"./project-icon-CmnD7zSI.js";import"./use-debounced-value-Z34m5Fyz.js";import"./new-project-dialog-C3_nj5Ml.js";import"./repository-picker-Ds67iMZ7.js";import"./github-icon-lmZhrKkb.js";import"./useInfiniteQuery-CvokX1at.js";import"./infiniteQueryObserver-CmW3uI_C.js";import"./collection-search-CnHLg8Vx.js";import"./legacy-admin-welcome-dialog-F7XO8XgZ.js";import"./drawer-Bl-xKJR_.js";import"./required-auth-layout-BZsZN7yA.js";import"./use-org-sso-C9hOcGok.js";import"./editor-CozvZeDY.js";function Ot(s){const e=E.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==o||e[3]!==r?(h=t.jsxs(H,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":r,children:[x,r]}),e[1]=i,e[2]=o,e[3]=r,e[4]=h):h=e[4];let u;e[5]!==i?(u=i?t.jsx(Z,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(g=t.jsxs(H,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[u,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=u,e[11]=g):g=e[11];let p;return e[12]!==h||e[13]!==g?(p=t.jsxs(t.Fragment,{children:[h,g]}),e[12]=h,e[13]=g,e[14]=p):p=e[14],p}Xe({title:re().min(1),description:re().nullable(),body:re()});function ue(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(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Mt(s){const e=E.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let g;e[22]!==u?(g=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=g):g=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=C=>{const{field:b}=C;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("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]=o,e[29]=N):N=e[29];let v;e[30]!==n.control||e[31]!==N?(v=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=v):v=e[32];let y;e[33]!==g||e[34]!==j||e[35]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-2",children:[g,j,v]}),e[33]=g,e[34]=j,e[35]=v,e[36]=y):y=e[36];let w;e[37]!==y||e[38]!==h?(w=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,y]}),e[37]=y,e[38]=h,e[39]=w):w=e[39];let P;return e[40]!==n||e[41]!==w?(P=t.jsx(nt,{...n,children:w}),e[40]=n,e[41]=w,e[42]=P):P=e[42],P}function zt(s){const e=E.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Ze(n,"PROMPT",o,d),x=Re(n,"PROMPT",d),h=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let g;e[6]!==u?(g={values:u},e[6]=u,e[7]=g):g=e[7];const p=et(g);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let v;e[11]!==x.update||e[12]!==p||e[13]!==o?(v=p.handleSubmit(async I=>{const T=await x.update.mutateAsync({id:o,data:{title:I.title,description:I.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:I.body}}]}});p.reset({title:T.title,description:T.description??null,body:ue(T)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=v):v=e[14];const y=v;if(!r){let I;e[15]!==l?(I=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=I):I=e[16];let T;e[17]!==l?(T=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=T):T=e[18];let O;return e[19]!==I||e[20]!==T?(O=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:I,description:T})}),e[19]=I,e[20]=T,e[21]=O):O=e[21],O}let w;e[22]!==y?(w=()=>{y()},e[22]=y,e[23]=w):w=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==h||e[26]!==N||e[27]!==w?(P=t.jsx(Ot,{onSave:w,onUndo:N,isDirty:p.formState.isDirty,isSaving:h}),e[24]=p.formState.isDirty,e[25]=h,e[26]=N,e[27]=w,e[28]=P):P=e[28];let C;e[29]!==r.title||e[30]!==P?(C=t.jsx(Oe.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=C):C=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let D;e[34]!==b||e[35]!==C?(D=t.jsxs(t.Fragment,{children:[C,b]}),e[34]=b,e[35]=C,e[36]=D):D=e[36];let k;e[37]!==p?(k=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:p})}),e[37]=p,e[38]=k):k=e[38];let R;return e[39]!==D||e[40]!==k?(R=t.jsxs(je,{children:[D,k]}),e[39]=D,e[40]=k,e[41]=R):R=e[41],R}function Bt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ft(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("min-w-0 overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Ue(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden text-muted-foreground",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Y(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function oe(s){const e=E.c(10);let n,o,l;e[0]!==s?({asChild:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);const i=n?tt:"a";let a;e[4]!==o?(a=G("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==l||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function _e(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("text-foreground font-medium truncate",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function le(s){const e=E.c(12);let n,o,l;e[0]!==s?({children:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);let i;e[4]!==o?(i=G("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=E.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=W();let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const r=Ct(d);if(!r.isAuthenticated){let u;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==c?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(it,{onAuthenticate:()=>a(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=c,e[5]=u):u=e[5],u}const x=`${o}:${n}`;let h;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(h=t.jsx(_t,{toolName:n,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=W(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,f=sessionStorage.getItem(m);if(!f)return null;sessionStorage.removeItem(m);try{return JSON.parse(f)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[f,$]of Object.entries(a))$!==null&&typeof $=="object"?m[f]=JSON.stringify($,null,2):m[f]=$;return m})(),[d,r]=A.useState(c??{}),[x,h]=A.useState(a?JSON.stringify(a,null,2):"{}"),[u,g]=A.useState(null),[p,j]=A.useState(null),[N,v]=A.useState(null),[y,w]=A.useState(null),[P,C]=A.useState(!1),[b,D]=A.useState(null),{org:k}=fe(),R=ze(e),I=Pt(),T=Dt(),{openSidePanel:O}=kt(),U=`${e}:${s}`,M=ge({connectionId:e,orgId:k.id,orgSlug:k.slug}),_=Tt({client:M}),S=_.data?.tools?.find(m=>m.name===s),F=gt(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(O(),I.sendMessage({tiptapDoc:f}))},[z,B]=A.useState("json"),[q,Q]=A.useState(!1);F&&!q&&(B("ui"),Q(!0));const J=S?.inputSchema?.properties,be=J?Object.keys(J):[],X=be.length>0,ee={};if(X&&S?.inputSchema?.properties)for(const m of be)ee[m]=S.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{C(!0),w(null),g(null),j(null),v(null),D(null);const m=performance.now();try{if(!M)throw new Error("MCP client is not available");const f=X?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const K=JSON.parse(L);if(K&&typeof K=="object")return K;throw new Error("Raw JSON input must be an object.")})();X&&S?.inputSchema?.properties&&Object.entries(S.inputSchema.properties).forEach(([L,K])=>{if((K.type==="object"||K.type==="array")&&typeof f[L]=="string")try{f[L]=JSON.parse(f[L])}catch{}else if((K.type==="number"||K.type==="integer")&&typeof f[L]=="string"&&f[L]!==""){const Se=Number(f[L]);Number.isNaN(Se)||(f[L]=Se)}});const $=await M.callTool({name:s,arguments:f}),te=$.structuredContent??$,Qe=performance.now(),Ye=Math.round(Qe-m);g(te),j($),v(f);const Ge=JSON.stringify(te),ve=new TextEncoder().encode(Ge).length;D({duration:`${Ye}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(f){const $=f instanceof Error?f.message:String(f);w($||"Unknown error occurred");const te=performance.now();D({duration:`${Math.round(te-m)}ms`})}finally{C(!1)}},ie=(m,f)=>{r($=>({...$,[m]:f}))},Ve=()=>{g(null),j(null),v(null),w(null),D(null)},qe=S?.name??Lt(s),Ke=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:k.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),R&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:wt(R)},search:{tab:"tools"},children:R.title})})}),t.jsx(le,{})]}),t.jsx(Y,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{size:"sm",className:"w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),He=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",children:l("details.tool.parameters")}),S?.inputSchema?.required&&S.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:X&&S?.inputSchema?.properties?Object.entries(S.inputSchema.properties).map(([m,f])=>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:[m,S.inputSchema?.required?.includes(m)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:f.type})]}),f.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:f.description}),f.type==="object"||f.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):f.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:$=>ie(m,$==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):S?.inputSchema&&!X?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:m=>h(m.target.value),placeholder:l("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:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(H,{variant:"destructive",className:"gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(H,{variant:"default",className:"gap-2",onClick:Je,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),We=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",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&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(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&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:b.tokens})]}),b.bytes&&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:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),F&&t.jsx(vt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(H,{size:"icon",variant:z==="ui"?"secondary":"ghost",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(ke,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(H,{size:"icon",variant:z==="json"?"secondary":"ghost",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(ke,{children:l("details.tool.jsonView")})]})]})})]})]}),y&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(jt,{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(St,{className:"h-4 w-4"}),t.jsx(bt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(Nt,{className:"text-xs text-destructive",children:y})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&z==="ui"&&M?t.jsx(A.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:l("details.tool.loadingApp")})]})}),children:t.jsx(ht,{resourceURI:F,toolInfo:S?{tool:S}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:M,onMessage:V,onUpdateModelContext:m=>T?.setAppContext(U,m),onTeardown:()=>T?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(At,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(H,{size:"icon",variant:"outline",className:"absolute top-4 right-4",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(ft,{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(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:Ke,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(Ae,{icon:R?.icon||null,name:R?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Oe.Title,{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:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.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:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:S?.annotations,_meta:S?._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:S?.description||"No description available"})]}),n.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:l("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:He}),We]})})]})})}function Jt(s){const e=E.c(21),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=A.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(p=>p.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let p;e[3]!==i?(p=i("details.tool.connectionNotFound"),e[3]=i,e[4]=p):p=e[4];let j;e[5]!==p?(j=t.jsx("h3",{className:"text-lg font-semibold",children:p}),e[5]=p,e[6]=j):j=e[6];let N;e[7]!==i?(N=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=N):N=e[8];let v;e[9]!==N?(v=t.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[9]=N,e[10]=v):v=e[10];let y;return e[11]!==j||e[12]!==v?(y=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,v]})}),e[11]=j,e[12]=v,e[13]=y):y=e[13],y}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 u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=p=>A.startTransition(()=>c(p)),e[15]=u):u=e[15];let g;return e[16]!==r||e[17]!==l||e[18]!==o||e[19]!==n?(g=t.jsx(A.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:u,onBack:l})}),e[16]=r,e[17]=l,e[18]=o,e[19]=n,e[20]=g):g=e[20],g}const Vt={prompt:Bt};function qt(){const s=E.c(9),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Kt;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Kt(s){return Promise.resolve()}function Ht(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=E.c(52),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,g=u?.id??"",p=g||"no-connection",j=g??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const v=ge(N),y=Re(p,i,v);let w;s[9]!==y||s[10]!==a?(w=async J=>{a&&await y.update.mutateAsync({id:a,data:J})},s[9]=y,s[10]=a,s[11]=w):w=s[11];const P=w;let C;s[12]!==i?(C=i?.toLowerCase(),s[12]=i,s[13]=C):C=s[13];const b=C,D=b&&Vt[b];let k;s[14]!==i?(k=Ht(i),s[14]=i,s[15]=k):k=s[15];const R=k;let I;s[16]!==r.slug?(I=t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=I):I=s[17];let T;s[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(le,{}),s[18]=T):T=s[18];let O;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(O=u&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=O):O=s[23];let U;s[24]!==R?(U=t.jsx(Y,{children:t.jsx(_e,{children:R})}),s[24]=R,s[25]=U):U=s[25];let M;s[26]!==O||s[27]!==U||s[28]!==I?(M=t.jsx(Le,{children:t.jsxs(Ue,{children:[I,T,O,U]})}),s[26]=O,s[27]=U,s[28]=I,s[29]=M):M=s[29];const _=M;if(D){let J;return s[30]!==D||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(D,{itemId:a,onBack:d,onUpdate:P}),s[30]=D,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let S;s[35]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Rt,{size:36,className:"text-muted-foreground"}),s[35]=S):S=s[35];let F;s[36]!==l?(F=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=F):F=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let B;s[42]!==d||s[43]!==z?(B={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=B):B=s[44];let q;s[45]!==F||s[46]!==V||s[47]!==B?(q=t.jsx(Et,{icon:S,title:F,description:V,buttonProps:B}),s[45]=F,s[46]=V,s[47]=B,s[48]=q):q=s[48];let Q;return s[49]!==_||s[50]!==q?(Q=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=Q):Q=s[51],Q}function Qt(){const s=E.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 n=he(e);if(decodeURIComponent(n.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 i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function zo(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(A.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{zo as default};
@@ -1 +1 @@
1
- import{c as V,b as _,j as s,Y as A,by as R,m as S,X as $,B as E,Z as F,_ as Y}from"./index-CpKrWBFM.js";import{i as G,n as I}from"./ArrowUp-Dbd0DsFj.js";import{i as L,c as O,b as P}from"./SwitchHorizontal01-BKQGE_Gz.js";import{T as K,a as X,b as Z,c as q}from"./tooltip-BN1ul0v0.js";import{a as H,T as z}from"./toggle-group-u9Wi3ddU.js";import{B as J}from"./badge-Dmw39gk8.js";const M=[];function oe(t){const e=V.c(36),{viewMode:i,onViewModeChange:j,sortKey:B,sortDirection:g,onSort:b,sortOptions:D,filters:k}=t,v=D===void 0?M:D,a=k===void 0?M:k,l=_();let N;e[0]!==a?(N=a.filter(U),e[0]=a,e[1]=N):N=e[1];const y=N.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(P,{size:16}),e[4]=w):w=e[4];let n;e[5]!==y?(n=y>0&&s.jsx(J,{variant:"default",size:"sm",className:"absolute -top-1.5 -right-1.5 min-w-4",children:y}),e[5]=y,e[6]=n):n=e[6];let c;e[7]!==r||e[8]!==n?(c=s.jsx(K,{asChild:!0,children:s.jsx($,{asChild:!0,children:s.jsxs(E,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=c):c=e[9];let d;e[10]!==l?(d=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=d):d=e[11];let m;e[12]!==d?(m=s.jsx(X,{children:d}),e[12]=d,e[13]=m):m=e[13];let x;e[14]!==c||e[15]!==m?(x=s.jsx(Z,{children:s.jsxs(q,{children:[c,m]})}),e[14]=c,e[15]=m,e[16]=x):x=e[16];let p;e[17]!==j||e[18]!==l||e[19]!==i?(p=j&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsxs(H,{type:"single",variant:"segmented",size:"sm",className:"w-full",value:i,onValueChange:o=>{(o==="table"||o==="cards")&&j(o)},children:[s.jsx(z,{value:"table",tooltip:l("collections.collectionDisplayButton.tableView"),className:"flex-1",children:s.jsx(L,{})}),s.jsx(z,{value:"cards",tooltip:l("collections.collectionDisplayButton.cardsView"),className:"flex-1",children:s.jsx(O,{})})]})}),e[17]=j,e[18]=l,e[19]=i,e[20]=p):p=e[20];let u;e[21]!==b||e[22]!==g||e[23]!==B||e[24]!==v||e[25]!==l?(u=v.length>0&&b&&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 font-normal text-meta",children:l("collections.collectionDisplayButton.sortBy")}),v.map(o=>{const T=B===o.id;return s.jsx(A,{onClick:()=>b(o.id),className:S("h-8 px-2 py-0 cursor-pointer",T&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[T&&s.jsx(R,{size:16,className:"text-foreground shrink-0"}),!T&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:o.label}),T&&g&&(g==="asc"?s.jsx(G,{size:16,className:"text-foreground shrink-0"}):s.jsx(I,{size:16,className:"text-foreground shrink-0"}))]})},o.id)})]}),e[21]=b,e[22]=g,e[23]=B,e[24]=v,e[25]=l,e[26]=u):u=e[26];let f;e[27]!==a?(f=a.map(Q),e[27]=a,e[28]=f):f=e[28];let h;e[29]!==p||e[30]!==u||e[31]!==f?(h=s.jsxs(F,{align:"end",className:"w-[200px] p-0 gap-0",children:[p,u,f]}),e[29]=p,e[30]=u,e[31]=f,e[32]=h):h=e[32];let C;return e[33]!==x||e[34]!==h?(C=s.jsxs(Y,{children:[x,h]}),e[33]=x,e[34]=h,e[35]=C):C=e[35],C}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 font-normal text-meta",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(A,{onClick:()=>t.onChange(e.id),className:S("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(R,{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 V,b as _,j as s,Y as A,by as R,m as S,X as $,B as E,Z as F,_ as Y}from"./index-B1ZvlDM_.js";import{i as G,n as I}from"./ArrowUp-Besm0IZ2.js";import{i as L,c as O,b as P}from"./SwitchHorizontal01-CStChVS2.js";import{T as K,a as X,b as Z,c as q}from"./tooltip-D2vb17oX.js";import{a as H,T as z}from"./toggle-group-6Dx2ZnVa.js";import{B as J}from"./badge-sWV0Lz9X.js";const M=[];function oe(t){const e=V.c(36),{viewMode:i,onViewModeChange:j,sortKey:B,sortDirection:g,onSort:b,sortOptions:D,filters:k}=t,v=D===void 0?M:D,a=k===void 0?M:k,l=_();let N;e[0]!==a?(N=a.filter(U),e[0]=a,e[1]=N):N=e[1];const y=N.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(P,{size:16}),e[4]=w):w=e[4];let n;e[5]!==y?(n=y>0&&s.jsx(J,{variant:"default",size:"sm",className:"absolute -top-1.5 -right-1.5 min-w-4",children:y}),e[5]=y,e[6]=n):n=e[6];let c;e[7]!==r||e[8]!==n?(c=s.jsx(K,{asChild:!0,children:s.jsx($,{asChild:!0,children:s.jsxs(E,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=c):c=e[9];let d;e[10]!==l?(d=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=d):d=e[11];let m;e[12]!==d?(m=s.jsx(X,{children:d}),e[12]=d,e[13]=m):m=e[13];let x;e[14]!==c||e[15]!==m?(x=s.jsx(Z,{children:s.jsxs(q,{children:[c,m]})}),e[14]=c,e[15]=m,e[16]=x):x=e[16];let p;e[17]!==j||e[18]!==l||e[19]!==i?(p=j&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsxs(H,{type:"single",variant:"segmented",size:"sm",className:"w-full",value:i,onValueChange:o=>{(o==="table"||o==="cards")&&j(o)},children:[s.jsx(z,{value:"table",tooltip:l("collections.collectionDisplayButton.tableView"),className:"flex-1",children:s.jsx(L,{})}),s.jsx(z,{value:"cards",tooltip:l("collections.collectionDisplayButton.cardsView"),className:"flex-1",children:s.jsx(O,{})})]})}),e[17]=j,e[18]=l,e[19]=i,e[20]=p):p=e[20];let u;e[21]!==b||e[22]!==g||e[23]!==B||e[24]!==v||e[25]!==l?(u=v.length>0&&b&&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 font-normal text-meta",children:l("collections.collectionDisplayButton.sortBy")}),v.map(o=>{const T=B===o.id;return s.jsx(A,{onClick:()=>b(o.id),className:S("h-8 px-2 py-0 cursor-pointer",T&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[T&&s.jsx(R,{size:16,className:"text-foreground shrink-0"}),!T&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:o.label}),T&&g&&(g==="asc"?s.jsx(G,{size:16,className:"text-foreground shrink-0"}):s.jsx(I,{size:16,className:"text-foreground shrink-0"}))]})},o.id)})]}),e[21]=b,e[22]=g,e[23]=B,e[24]=v,e[25]=l,e[26]=u):u=e[26];let f;e[27]!==a?(f=a.map(Q),e[27]=a,e[28]=f):f=e[28];let h;e[29]!==p||e[30]!==u||e[31]!==f?(h=s.jsxs(F,{align:"end",className:"w-[200px] p-0 gap-0",children:[p,u,f]}),e[29]=p,e[30]=u,e[31]=f,e[32]=h):h=e[32];let C;return e[33]!==x||e[34]!==h?(C=s.jsxs(Y,{children:[x,h]}),e[33]=x,e[34]=h,e[35]=C):C=e[35],C}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 font-normal text-meta",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(A,{onClick:()=>t.onChange(e.id),className:S("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(R,{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,m as b,j as a,h as w}from"./index-CpKrWBFM.js";import{i as C}from"./SearchMd-BgyEwNMN.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 r;e[4]!==f?(r=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]=r):r=e[5];let l;e[6]!==m?(l=N=>m(N.target.value),e[6]=m,e[7]=l):l=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==l||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:l,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]=l,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==r||e[16]!==o?(n=a.jsxs("label",{className:s,children:[r,o]}),e[14]=s,e[15]=r,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,m as b,j as a,h as w}from"./index-B1ZvlDM_.js";import{i as C}from"./SearchMd-BCaWPluh.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 r;e[4]!==f?(r=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]=r):r=e[5];let l;e[6]!==m?(l=N=>m(N.target.value),e[6]=m,e[7]=l):l=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==l||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:l,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]=l,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==r||e[16]!==o?(n=a.jsxs("label",{className:s,children:[r,o]}),e[14]=s,e[15]=r,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 D,j as r,m as T,b as I}from"./index-CpKrWBFM.js";import{T as E,a as H,b as R,c as K,d as W,e as z}from"./table-B7g6T_zR.js";import{i as L,n as $}from"./ArrowUp-Dbd0DsFj.js";function A(S){const e=D.c(33),{columns:a,data:b,sortKey:h,sortDirection:l,onSort:i,onRowClick:m,rowClassName:u,isRowClickable:x}=S;let v;e[0]!==l?(v=function(t,j){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:j&&l&&(l==="asc"?r.jsx(L,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx($,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=l,e[1]=v):v=e[1];const p=v;let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=function(t,j){let w="px-4 py-2 text-left font-normal text-meta h-9";return t===j-1&&(w="px-4 py-2 text-left font-normal text-meta h-9 w-8"),w},e[2]=y):y=e[2];const g=y;let c;if(e[3]!==a||e[4]!==i||e[5]!==p||e[6]!==l||e[7]!==h){let d;e[9]!==a.length||e[10]!==i||e[11]!==p||e[12]!==l||e[13]!==h?(d=(t,j)=>{const w=h===t.id,N=t.sortable&&i;return r.jsx(E,{className:T(g(j,a.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":w&&l?l==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:N?"button":void 0,tabIndex:N?0:void 0,onClick:N?()=>i(t.id):void 0,onKeyDown:N?f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(t.id))}:void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&p(t.id,w)]})},t.id)},e[9]=a.length,e[10]=i,e[11]=p,e[12]=l,e[13]=h,e[14]=d):d=e[14],c=a.map(d),e[3]=a,e[4]=i,e[5]=p,e[6]=l,e[7]=h,e[8]=c}else c=e[8];let s;e[15]!==c?(s=r.jsx(H,{className:"border-b-0",children:r.jsx(R,{className:"h-9 hover:bg-transparent border-b border-border",children:c})}),e[15]=c,e[16]=s):s=e[16];let n;if(e[17]!==a||e[18]!==b||e[19]!==x||e[20]!==m||e[21]!==u){let d;e[23]!==a||e[24]!==x||e[25]!==m||e[26]!==u?(d=(t,j)=>{const w=u?.(t),N=x?.(t)??!0,f=m&&N?()=>m(t):void 0;return r.jsx(R,{"data-row-index":j,className:T("group/data-row transition-colors border-b-0",N&&"hover:bg-accent",f?"cursor-pointer":"",w),role:f?"button":void 0,tabIndex:f?0:void 0,onClick:f,onKeyDown:f?o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),f())}:void 0,children:a.map(o=>r.jsx(K,{className:T("px-5 py-4 h-16 align-middle text-sm text-foreground",o.cellClassName,o.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:T(o.wrap?"w-full":"min-w-0",!o.wrap&&"-m-0.5 truncate overflow-hidden whitespace-nowrap p-0.5"),children:o.render?o.render(t):o.accessor?o.accessor(t):null})},o.id))},j)},e[23]=a,e[24]=x,e[25]=m,e[26]=u,e[27]=d):d=e[27],n=b.map(d),e[17]=a,e[18]=b,e[19]=x,e[20]=m,e[21]=u,e[22]=n}else n=e[22];let C;e[28]!==n?(C=r.jsx(W,{children:n}),e[28]=n,e[29]=C):C=e[29];let k;return e[30]!==s||e[31]!==C?(k=r.jsxs(z,{className:"w-full border-collapse",children:[s,C]}),e[30]=s,e[31]=C,e[32]=k):k=e[32],k}function G(S){const e=D.c(18),{columns:a,data:b,isLoading:h,sortKey:l,sortDirection:i,onSort:m,onRowClick:u,rowClassName:x,isRowClickable:v,emptyState:p}=S,y=h===void 0?!1:h,g=I();if(y){let s;e[0]!==g?(s=g("collections.collectionTableWrapper.loading"),e[0]=g,e[1]=s):s=e[1];let n;return e[2]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=n):n=e[3],n}if(b.length===0){let s;e[4]!==p||e[5]!==g?(s=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:g("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=g,e[6]=s):s=e[6];let n;return e[7]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=n):n=e[8],n}let c;return e[9]!==a||e[10]!==b||e[11]!==v||e[12]!==u||e[13]!==m||e[14]!==x||e[15]!==i||e[16]!==l?(c=r.jsx("div",{className:"flex-1",children:r.jsx(A,{columns:a,data:b,sortKey:l,sortDirection:i,onSort:m,onRowClick:u,rowClassName:x,isRowClickable:v})}),e[9]=a,e[10]=b,e[11]=v,e[12]=u,e[13]=m,e[14]=x,e[15]=i,e[16]=l,e[17]=c):c=e[17],c}export{G as C};
1
+ import{c as D,j as r,m as T,b as I}from"./index-B1ZvlDM_.js";import{T as E,a as H,b as R,c as K,d as W,e as z}from"./table-lum-yHpJ.js";import{i as L,n as $}from"./ArrowUp-Besm0IZ2.js";function A(S){const e=D.c(33),{columns:a,data:b,sortKey:h,sortDirection:l,onSort:i,onRowClick:m,rowClassName:u,isRowClickable:x}=S;let v;e[0]!==l?(v=function(t,j){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:j&&l&&(l==="asc"?r.jsx(L,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx($,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=l,e[1]=v):v=e[1];const p=v;let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=function(t,j){let w="px-4 py-2 text-left font-normal text-meta h-9";return t===j-1&&(w="px-4 py-2 text-left font-normal text-meta h-9 w-8"),w},e[2]=y):y=e[2];const g=y;let c;if(e[3]!==a||e[4]!==i||e[5]!==p||e[6]!==l||e[7]!==h){let d;e[9]!==a.length||e[10]!==i||e[11]!==p||e[12]!==l||e[13]!==h?(d=(t,j)=>{const w=h===t.id,N=t.sortable&&i;return r.jsx(E,{className:T(g(j,a.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":w&&l?l==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:N?"button":void 0,tabIndex:N?0:void 0,onClick:N?()=>i(t.id):void 0,onKeyDown:N?f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(t.id))}:void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&p(t.id,w)]})},t.id)},e[9]=a.length,e[10]=i,e[11]=p,e[12]=l,e[13]=h,e[14]=d):d=e[14],c=a.map(d),e[3]=a,e[4]=i,e[5]=p,e[6]=l,e[7]=h,e[8]=c}else c=e[8];let s;e[15]!==c?(s=r.jsx(H,{className:"border-b-0",children:r.jsx(R,{className:"h-9 hover:bg-transparent border-b border-border",children:c})}),e[15]=c,e[16]=s):s=e[16];let n;if(e[17]!==a||e[18]!==b||e[19]!==x||e[20]!==m||e[21]!==u){let d;e[23]!==a||e[24]!==x||e[25]!==m||e[26]!==u?(d=(t,j)=>{const w=u?.(t),N=x?.(t)??!0,f=m&&N?()=>m(t):void 0;return r.jsx(R,{"data-row-index":j,className:T("group/data-row transition-colors border-b-0",N&&"hover:bg-accent",f?"cursor-pointer":"",w),role:f?"button":void 0,tabIndex:f?0:void 0,onClick:f,onKeyDown:f?o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),f())}:void 0,children:a.map(o=>r.jsx(K,{className:T("px-5 py-4 h-16 align-middle text-sm text-foreground",o.cellClassName,o.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:T(o.wrap?"w-full":"min-w-0",!o.wrap&&"-m-0.5 truncate overflow-hidden whitespace-nowrap p-0.5"),children:o.render?o.render(t):o.accessor?o.accessor(t):null})},o.id))},j)},e[23]=a,e[24]=x,e[25]=m,e[26]=u,e[27]=d):d=e[27],n=b.map(d),e[17]=a,e[18]=b,e[19]=x,e[20]=m,e[21]=u,e[22]=n}else n=e[22];let C;e[28]!==n?(C=r.jsx(W,{children:n}),e[28]=n,e[29]=C):C=e[29];let k;return e[30]!==s||e[31]!==C?(k=r.jsxs(z,{className:"w-full border-collapse",children:[s,C]}),e[30]=s,e[31]=C,e[32]=k):k=e[32],k}function G(S){const e=D.c(18),{columns:a,data:b,isLoading:h,sortKey:l,sortDirection:i,onSort:m,onRowClick:u,rowClassName:x,isRowClickable:v,emptyState:p}=S,y=h===void 0?!1:h,g=I();if(y){let s;e[0]!==g?(s=g("collections.collectionTableWrapper.loading"),e[0]=g,e[1]=s):s=e[1];let n;return e[2]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=n):n=e[3],n}if(b.length===0){let s;e[4]!==p||e[5]!==g?(s=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:g("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=g,e[6]=s):s=e[6];let n;return e[7]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=n):n=e[8],n}let c;return e[9]!==a||e[10]!==b||e[11]!==v||e[12]!==u||e[13]!==m||e[14]!==x||e[15]!==i||e[16]!==l?(c=r.jsx("div",{className:"flex-1",children:r.jsx(A,{columns:a,data:b,sortKey:l,sortDirection:i,onSort:m,onRowClick:u,rowClassName:x,isRowClickable:v})}),e[9]=a,e[10]=b,e[11]=v,e[12]=u,e[13]=m,e[14]=x,e[15]=i,e[16]=l,e[17]=c):c=e[17],c}export{G as C};
@@ -1 +1 @@
1
- import{c as b,j as r,n as p,P as j,m as h}from"./index-CpKrWBFM.js";import{B as v}from"./badge-Dmw39gk8.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-2xs font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
1
+ import{c as b,j as r,n as p,P as j,m as h}from"./index-B1ZvlDM_.js";import{B as v}from"./badge-sWV0Lz9X.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-2xs font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
@@ -1 +1 @@
1
- import{c as U,r as W,j as s,m as S,B as X,by as Y}from"./index-CpKrWBFM.js";import{i as Z}from"./ChevronSelectorVertical-D-Hk_1B6.js";import{a as _,C as ee,b as se,e as te,c as ae,f as le}from"./command-D_vABNVv.js";import{a as re,P as oe,b as ne}from"./popover-DsnoY7gE.js";function he(z){const e=U.c(48),{options:C,value:a,onChange:j,placeholder:$,triggerClassName:A,contentClassName:w,width:F,renderTrigger:G,renderItem:o,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n,ariaLabel:D}=z,H=$===void 0?"Select...":$,J=F===void 0?"w-[200px]":F,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==a?(g=l=>l.value===a,e[0]=a,e[1]=g):g=e[1];const I=C.find(g),[B,K]=W.useState(!1);let b;e[2]!==n?(b=l=>{K(l),l||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,L=oe,M=re,Q=!0,R=G?s.jsx("div",{className:S("cursor-pointer",A),children:G(I)}):s.jsxs(X,{variant:"outline",role:"combobox","aria-label":D,className:S("justify-between rounded-[var(--studio-control-radius,var(--radius-lg))]",J,A),children:[I?I.label:H,s.jsx(Z,{className:"opacity-50"})]});let i;e[4]!==M||e[5]!==R?(i=s.jsx(M,{asChild:Q,children:R}),e[4]=M,e[5]=R,e[6]=i):i=e[6];let c;e[7]!==w?(c=S("p-0",w),e[7]=w,e[8]=c):c=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let d;e[10]!==E||e[11]!==t?(d=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=d):d=e[12];let m;e[13]!==n||e[14]!==T||e[15]!==d?(m=s.jsx(_,{placeholder:T,className:"h-9",onValueChange:n,action:d}),e[13]=n,e[14]=T,e[15]=d,e[16]=m):m=e[16];let h;e[17]!==O?(h=s.jsx(ee,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==o||e[22]!==t||e[23]!==a){let l;e[25]!==j||e[26]!==o||e[27]!==t||e[28]!==a?(l=r=>{const q=a===r.value;return s.jsx(se,{value:r.label,onSelect:()=>{j(r.value===a?"":r.value),t(!1)},children:o?o(r,q):s.jsxs(s.Fragment,{children:[r.label,s.jsx(Y,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},r.value)},e[25]=j,e[26]=o,e[27]=t,e[28]=a,e[29]=l):l=e[29],f=C.map(l),e[19]=j,e[20]=C,e[21]=o,e[22]=t,e[23]=a,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(te,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(ae,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==m||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[m,u]}),e[35]=P,e[36]=m,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==c||e[40]!==x?(v=s.jsx(ne,{className:c,style:y,children:x}),e[39]=c,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==L||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==i?(N=s.jsxs(L,{open:B,onOpenChange:t,children:[i,v]}),e[42]=L,e[43]=B,e[44]=t,e[45]=v,e[46]=i,e[47]=N):N=e[47],N}export{he as C};
1
+ import{c as U,r as W,j as s,m as S,B as X,by as Y}from"./index-B1ZvlDM_.js";import{i as Z}from"./ChevronSelectorVertical-UvFeI9z1.js";import{a as _,C as ee,b as se,e as te,c as ae,f as le}from"./command-CG66jyhm.js";import{a as re,P as oe,b as ne}from"./popover-Bmr7L36n.js";function he(z){const e=U.c(48),{options:C,value:a,onChange:j,placeholder:$,triggerClassName:A,contentClassName:w,width:F,renderTrigger:G,renderItem:o,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n,ariaLabel:D}=z,H=$===void 0?"Select...":$,J=F===void 0?"w-[200px]":F,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==a?(g=l=>l.value===a,e[0]=a,e[1]=g):g=e[1];const I=C.find(g),[B,K]=W.useState(!1);let b;e[2]!==n?(b=l=>{K(l),l||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,L=oe,M=re,Q=!0,R=G?s.jsx("div",{className:S("cursor-pointer",A),children:G(I)}):s.jsxs(X,{variant:"outline",role:"combobox","aria-label":D,className:S("justify-between rounded-[var(--studio-control-radius,var(--radius-lg))]",J,A),children:[I?I.label:H,s.jsx(Z,{className:"opacity-50"})]});let i;e[4]!==M||e[5]!==R?(i=s.jsx(M,{asChild:Q,children:R}),e[4]=M,e[5]=R,e[6]=i):i=e[6];let c;e[7]!==w?(c=S("p-0",w),e[7]=w,e[8]=c):c=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let d;e[10]!==E||e[11]!==t?(d=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=d):d=e[12];let m;e[13]!==n||e[14]!==T||e[15]!==d?(m=s.jsx(_,{placeholder:T,className:"h-9",onValueChange:n,action:d}),e[13]=n,e[14]=T,e[15]=d,e[16]=m):m=e[16];let h;e[17]!==O?(h=s.jsx(ee,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==o||e[22]!==t||e[23]!==a){let l;e[25]!==j||e[26]!==o||e[27]!==t||e[28]!==a?(l=r=>{const q=a===r.value;return s.jsx(se,{value:r.label,onSelect:()=>{j(r.value===a?"":r.value),t(!1)},children:o?o(r,q):s.jsxs(s.Fragment,{children:[r.label,s.jsx(Y,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},r.value)},e[25]=j,e[26]=o,e[27]=t,e[28]=a,e[29]=l):l=e[29],f=C.map(l),e[19]=j,e[20]=C,e[21]=o,e[22]=t,e[23]=a,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(te,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(ae,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==m||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[m,u]}),e[35]=P,e[36]=m,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==c||e[40]!==x?(v=s.jsx(ne,{className:c,style:y,children:x}),e[39]=c,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==L||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==i?(N=s.jsxs(L,{open:B,onOpenChange:t,children:[i,v]}),e[42]=L,e[43]=B,e[44]=t,e[45]=v,e[46]=i,e[47]=N):N=e[47],N}export{he as C};
@@ -1 +1 @@
1
- import{c as v,j as r,m as h,cy as b,D as j,x as w,aS as y,w as C,v as z}from"./index-CpKrWBFM.js";import{_ as k}from"./index-Cu0X1Ryu.js";import{i as D}from"./SearchMd-BgyEwNMN.js";function $(a){const e=v.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 o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,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]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.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 o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=v.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=r.jsx(k.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 F(a){const e=v.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 o;e[3]!==t?(o=h("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]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=v.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 o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex 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"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function P(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{B as C,R as a,P as b,V as c,L as d,F as e,$ as f,I as g,H as h};
1
+ import{c as v,j as r,m as h,cy as b,D as j,x as w,aS as y,w as C,v as z}from"./index-B1ZvlDM_.js";import{_ as k}from"./index-CtHyBR3B.js";import{i as D}from"./SearchMd-BCaWPluh.js";function $(a){const e=v.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 o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,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]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.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 o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=v.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=r.jsx(k.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 F(a){const e=v.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 o;e[3]!==t?(o=h("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]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=v.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 o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex 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"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function P(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{B as C,R as a,P as b,V as c,L as d,F as e,$ as f,I as g,H as h};
@@ -1 +1 @@
1
- import{c as _,r as U,m as Q,j as s,Q as Y,R as Z,b as z,a as ee,T as te,B as ne}from"./index-CpKrWBFM.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-sJ5tYuZ0.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-CP2lbL5p.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=U.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=z();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=z();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:"surface 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(U.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=z(),{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),[T,D]=U.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==T||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:T,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]=T,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 U,m as Q,j as s,Q as Y,R as Z,b as z,a as ee,T as te,B as ne}from"./index-B1ZvlDM_.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-C_baTEme.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-xyuasG3f.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=U.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=z();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=z();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:"surface 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(U.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=z(),{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),[T,D]=U.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==T||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:T,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]=T,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 +1 @@
1
- import{p as x,m as k}from"./core.esm-OJgsJB-k.js";import{i as _}from"./AlertCircle-JrI6GhX-.js";import{t as v,b1 as K,b2 as B,aR as w,a6 as A,b3 as S,l as I,b4 as L,b5 as T,b6 as O,b7 as m,b8 as D}from"./agent-icon-De2MEsoK.js";import{bl as E,aT as R,ei as y,a8 as P}from"./index-CpKrWBFM.js";import{i as M}from"./CheckCircle-Lk0BK653.js";import{s as $}from"./Tool01-3EDhR0eh.js";import{D as F,C as f}from"./task-board-CwSJI_Nh.js";const U=E("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),j=["ended_after_delivery","superseded"];function H(e){return!!e&&j.includes(e)}function se(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function oe(e){return e.failureKind!=="superseded"}function p(e){return e.threads.some(t=>t.status==="requires_action")}function ie(e){return e.status==="in_review"&&!e.assigneeId}function ce(e){return p(e)}function d(e){return e.status==="done"||e.status==="archived"?!1:e.priority==="urgent"||e.type==="security"||p(e)||q(e)==="failed"}const C="critical:";function W(e){return e!=="done"&&e!=="archived"}function le({overId:e,itemOf:t,fromStatus:n,toStatus:a,dragged:s=[]}){if(e===void 0||!W(a))return null;const r=String(e);if(r.startsWith(C))return"critical";if(s.includes(r)){const i=t(s[0]);return i&&d(i)?"critical":n===a?"improvements":null}if(n!==a)return null;if(r.startsWith(b))return"improvements";const o=t(r);return o?d(o)?"critical":"improvements":null}function ue(e,t){const n=d(e);return t==="critical"?n?null:"urgent":n?d({...e,priority:"high"})?null:"high":null}function de(e){return e.status==="in_progress"&&p(e)?"text-warning animate-pulse":N(e.status).iconClassName}function q(e){return e.threads.some(n=>n.status==="in_progress")?"running":e.threads.some(n=>n.status==="failed"&&!H(n.failureKind))?"failed":null}function fe(e,t,n){const a=e.findIndex(c=>c.id===n),s=t===n?e[a+1]?.id??null:t,r=e.filter(c=>c.id!==n),o=s?r.findIndex(c=>c.id===s):-1,i=o===-1?r.length:o,l=r[i-1],u=r[i];return l&&u?(l.sortOrder+u.sortOrder)/2:l?l.sortOrder+1:u?u.sortOrder-1:0}function pe(e,t){return Array.from({length:t},(n,a)=>e-(t-1-a)*1e-4)}const G=["archived"],h={triage:{labelKey:"taskBoard.config.statusBacklog",icon:_,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:y,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:A,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:$,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:w,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:B,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:K,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:v,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:M,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:R,iconClassName:"text-muted-foreground"}},V={icon:y,iconClassName:"text-muted-foreground"},Y=h;function N(e){return Y[e]??V}function me(e,t){const n=h[e];return{label:n?t(n.labelKey):e,visual:N(e)}}const ge=["bug","feature","chore","spike","security"],ye={bug:{labelKey:"taskBoard.config.typeBug",icon:U,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:L,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:I,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:S,iconClassName:"text-brand-yellow"},security:{labelKey:"taskBoard.config.typeSecurity",icon:P,iconClassName:"text-project-purple"}};function g(e,t){return t[e]??!G.includes(e)}function Ce(e){return{lanes:f.filter(t=>g(t,e)),hidden:f.filter(t=>!g(t,e))}}const z=44;function he({lanes:e,collapsed:t,hasHiddenTail:n}){const a=e.map(s=>t.includes(s)?`${z}px`:"minmax(280px, 1fr)");return n&&a.push("280px"),a.join(" ")}const b="lane:",Ne=e=>{const t=x(e);if(t.length>0)return t;const n=e.pointerCoordinates,a=n?e.droppableContainers.filter(s=>{const r=e.droppableRects.get(s.id);return r!==void 0&&n.x>=r.left&&n.x<=r.right}):[];return k(a.length>0?{...e,droppableContainers:a}:e)};function X(e){return f.includes(e)}function be({overId:e,statusOf:t}){if(e===void 0)return null;const n=String(e),a=[b,C].find(r=>n.startsWith(r)),s=a?n.slice(a.length):t(n);return s!==void 0&&X(s)?s:null}function xe(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ke=["none","low","medium","high","urgent"],_e={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:m,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:D,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-project-blue",dotClassName:"bg-project-blue",icon:m,iconClassName:"text-project-blue"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:O,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:T,iconClassName:"text-destructive"}};function ve(e,t=Date.now()){const n=new Date(e).getTime();return Number.isNaN(n)?null:n<t?"overdue":n-t<=Q*864e5?"soon":null}const Q=3;function Ke(e){return`color-mix(in oklab, ${e??F} var(--user-color-strength), transparent)`}export{C,G as H,b as L,_e as P,h as S,ye as T,q as a,ie as b,d as c,N as d,oe as e,ge as f,ke as g,se as h,p as i,H as j,g as k,me as l,Ce as m,he as n,Ne as o,ce as p,ue as q,pe as r,de as s,Ke as t,fe as u,W as v,be as w,le as x,ve as y,xe as z};
1
+ import{p as x,m as k}from"./core.esm-Cdwuvp6V.js";import{i as _}from"./AlertCircle-B9jzXYca.js";import{t as v,b2 as K,b3 as B,aV as w,a6 as A,b4 as S,l as I,b5 as L,b6 as T,b7 as O,b8 as m,b9 as D}from"./agent-icon-B9ymJOYy.js";import{bl as E,aT as R,ei as y,a8 as P}from"./index-B1ZvlDM_.js";import{i as M}from"./CheckCircle-Bg_9Wlgi.js";import{s as $}from"./Tool01-wiKWLRCc.js";import{D as F,C as f}from"./task-board-CITA4beV.js";const U=E("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),j=["ended_after_delivery","superseded"];function H(e){return!!e&&j.includes(e)}function se(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function oe(e){return e.failureKind!=="superseded"}function p(e){return e.threads.some(t=>t.status==="requires_action")}function ie(e){return e.status==="in_review"&&!e.assigneeId}function ce(e){return p(e)}function d(e){return e.status==="done"||e.status==="archived"?!1:e.priority==="urgent"||e.type==="security"||p(e)||V(e)==="failed"}const C="critical:";function W(e){return e!=="done"&&e!=="archived"}function le({overId:e,itemOf:t,fromStatus:n,toStatus:a,dragged:s=[]}){if(e===void 0||!W(a))return null;const r=String(e);if(r.startsWith(C))return"critical";if(s.includes(r)){const i=t(s[0]);return i&&d(i)?"critical":n===a?"improvements":null}if(n!==a)return null;if(r.startsWith(b))return"improvements";const o=t(r);return o?d(o)?"critical":"improvements":null}function ue(e,t){const n=d(e);return t==="critical"?n?null:"urgent":n?d({...e,priority:"high"})?null:"high":null}function de(e){return e.status==="in_progress"&&p(e)?"text-warning animate-pulse":N(e.status).iconClassName}function V(e){return e.threads.some(n=>n.status==="in_progress")?"running":e.threads.some(n=>n.status==="failed"&&!H(n.failureKind))?"failed":null}function fe(e,t,n){const a=e.findIndex(c=>c.id===n),s=t===n?e[a+1]?.id??null:t,r=e.filter(c=>c.id!==n),o=s?r.findIndex(c=>c.id===s):-1,i=o===-1?r.length:o,l=r[i-1],u=r[i];return l&&u?(l.sortOrder+u.sortOrder)/2:l?l.sortOrder+1:u?u.sortOrder-1:0}function pe(e,t){return Array.from({length:t},(n,a)=>e-(t-1-a)*1e-4)}const q=["archived"],h={triage:{labelKey:"taskBoard.config.statusBacklog",icon:_,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:y,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:A,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:$,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:w,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:B,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:K,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:v,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:M,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:R,iconClassName:"text-muted-foreground"}},G={icon:y,iconClassName:"text-muted-foreground"},Y=h;function N(e){return Y[e]??G}function me(e,t){const n=h[e];return{label:n?t(n.labelKey):e,visual:N(e)}}const ge=["bug","feature","chore","spike","security"],ye={bug:{labelKey:"taskBoard.config.typeBug",icon:U,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:L,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:I,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:S,iconClassName:"text-brand-yellow"},security:{labelKey:"taskBoard.config.typeSecurity",icon:P,iconClassName:"text-project-purple"}};function g(e,t){return t[e]??!q.includes(e)}function Ce(e){return{lanes:f.filter(t=>g(t,e)),hidden:f.filter(t=>!g(t,e))}}const z=44;function he({lanes:e,collapsed:t,hasHiddenTail:n}){const a=e.map(s=>t.includes(s)?`${z}px`:"minmax(280px, 1fr)");return n&&a.push("280px"),a.join(" ")}const b="lane:",Ne=e=>{const t=x(e);if(t.length>0)return t;const n=e.pointerCoordinates,a=n?e.droppableContainers.filter(s=>{const r=e.droppableRects.get(s.id);return r!==void 0&&n.x>=r.left&&n.x<=r.right}):[];return k(a.length>0?{...e,droppableContainers:a}:e)};function X(e){return f.includes(e)}function be({overId:e,statusOf:t}){if(e===void 0)return null;const n=String(e),a=[b,C].find(r=>n.startsWith(r)),s=a?n.slice(a.length):t(n);return s!==void 0&&X(s)?s:null}function xe(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ke=["none","low","medium","high","urgent"],_e={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:m,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:D,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-project-blue",dotClassName:"bg-project-blue",icon:m,iconClassName:"text-project-blue"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:O,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:T,iconClassName:"text-destructive"}};function ve(e,t=Date.now()){const n=new Date(e).getTime();return Number.isNaN(n)?null:n<t?"overdue":n-t<=Q*864e5?"soon":null}const Q=3;function Ke(e){return`color-mix(in oklab, ${e??F} var(--user-color-strength), transparent)`}export{C,q as H,b as L,_e as P,h as S,ye as T,V as a,ie as b,d as c,N as d,oe as e,ge as f,ke as g,se as h,p as i,H as j,g as k,me as l,Ce as m,he as n,Ne as o,ce as p,ue as q,pe as r,de as s,Ke as t,fe as u,W as v,be as w,le as x,ve as y,xe as z};
@@ -1,9 +1,9 @@
1
- import{c as k,j as s,b as _,r as J,m as Ce,by as ue,hW as be,a4 as ve,ap as Ne,a5 as ke,B as le,t as pe,gv as fe,gL as we,ar as Se}from"./index-CpKrWBFM.js";import{A as $e,b as _e}from"./alert-uAfMA0iM.js";import{B as Ke}from"./badge-Dmw39gk8.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-CynqC93H.js";import{b as se,T as oe,a as xe,c as ae}from"./tabs-_i5AcyEU.js";import{u as ge}from"./use-copy-m2oUJF7G.js";import{e as he,aU as Le}from"./agent-icon-De2MEsoK.js";import{i as Oe}from"./Key01-CCkW71V8.js";import{C as De,a as Me,b as Ee}from"./client-icons-CO1vrTp-.js";import{u as Be,a as He,A as Pe}from"./api-keys-B5T8tqGJ.js";import{R as Ge}from"./require-capability-CLtIqMdo.js";import"./index-BdQq_4o_.js";import"./index-BqpQ0Oz6.js";import"./ChevronUp-CypYcouh.js";import"./active-indicator-CCMhAsc_.js";import"./AlertCircle-JrI6GhX-.js";import"./Tool01-3EDhR0eh.js";import"./ArrowUp-Dbd0DsFj.js";import"./ArrowLeft-BY3YUYmg.js";import"./LinkBroken01-dVGcDCd1.js";import"./ShoppingBag01-C8w58xcy.js";import"./Globe04-BSIf8tfY.js";import"./CheckCircle-Lk0BK653.js";import"./ChevronSelectorVertical-D-Hk_1B6.js";import"./UserSquare-CgD5WRTE.js";import"./CreditCard01-D4hEMIBc.js";import"./SwitchHorizontal01-BKQGE_Gz.js";import"./Minus-B6bCcC1a.js";import"./Monitor01-B1R4t9_g.js";import"./Sun-BbLelrLi.js";import"./Play-nrEhEYaX.js";import"./Plus-CXFgI-7S.js";import"./SearchMd-BgyEwNMN.js";import"./Trash01-Cc7bOGxh.js";import"./Upload01-CUdaL1MP.js";import"./Users01-D_DratJd.js";import"./XClose-Ba9vOcHg.js";import"./Zap-CGLJP1Pm.js";import"./empty-state-BMJVmWPT.js";import"./label-BfDWtWVd.js";import"./index-BvcpEDRp.js";import"./use-mcp-client-sJ5tYuZ0.js";import"./auth-eTld9LX2.js";import"./use-mcp-tools-Ds_pRYTC.js";import"./checkbox-CTcmxKf9.js";import"./search-input-B143wE4b.js";import"./integration-icon-B40Wh7Yg.js";import"./tool-set-selector-ByaGzWxc.js";import"./use-infinite-scroll-C87qe8Wa.js";import"./useSuspenseInfiniteQuery-FPhi-YvF.js";import"./infiniteQueryObserver-DB_1TZXQ.js";import"./collection-search-RPq6faeR.js";import"./connection-BvqfkXwo.js";import"./url-slug-yKaykGVx.js";import"./use-connection-Yeg3sQ-l.js";import"./access-gate-BkmPTKhe.js";import"./capability-load-error-J4cHUY10.js";function Re(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ue(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function Ve({client:t,mode:e,url:l,apiKey:o}){const n=o??"<paste-your-api-key>",c=Re();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${l}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${l} \\
1
+ import{c as k,j as s,b as _,r as q,m as Ce,by as ue,hW as be,a4 as ve,ap as Ne,a5 as ke,B as le,t as pe,gv as fe,gL as we,ar as Se}from"./index-B1ZvlDM_.js";import{A as $e,b as _e}from"./alert-CQeq0vZr.js";import{B as Ke}from"./badge-sWV0Lz9X.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-DwKpuPDv.js";import{b as se,T as oe,a as xe,c as ae}from"./tabs-qmDGzXtn.js";import{u as ge}from"./use-copy-B1cnS_xX.js";import{e as he,aY as Le}from"./agent-icon-B9ymJOYy.js";import{i as Oe}from"./Key01-BfEZ7hLZ.js";import{C as De,a as Me,b as Ee}from"./client-icons-DkHG_2rG.js";import{u as Be,a as He,A as Pe}from"./api-keys-BQO3VvIl.js";import{R as Ge}from"./require-capability-C9oBXOPC.js";import"./index-BdQq_4o_.js";import"./index-BjRujN3I.js";import"./ChevronUp-CM8EW0Js.js";import"./active-indicator-CCMhAsc_.js";import"./AlertCircle-B9jzXYca.js";import"./Tool01-wiKWLRCc.js";import"./ArrowUp-Besm0IZ2.js";import"./ArrowLeft-CZ3DAg0q.js";import"./LinkBroken01-BSh2E4ld.js";import"./ShoppingBag01-WYt5uke3.js";import"./Globe04-DFEQkAAl.js";import"./CheckCircle-Bg_9Wlgi.js";import"./ChevronSelectorVertical-UvFeI9z1.js";import"./UserSquare-CoAnLSHH.js";import"./CreditCard01-Bhqkelsq.js";import"./SwitchHorizontal01-CStChVS2.js";import"./Minus-Ctt_tNjY.js";import"./Monitor01-Cp5O9jEx.js";import"./Sun-Dniq03T7.js";import"./Play-DqrEB0p_.js";import"./Plus-BF39I64m.js";import"./SearchMd-BCaWPluh.js";import"./Trash01-DR_ZbB22.js";import"./Upload01-BNm-Yhgs.js";import"./Users01-BKvz85-q.js";import"./XClose-BH2b2x6k.js";import"./Zap-C46fglVd.js";import"./empty-state-BY5AuJfU.js";import"./label-PfhFwXDB.js";import"./index-CE2oWWvQ.js";import"./use-mcp-client-C_baTEme.js";import"./auth-DYk3j3P5.js";import"./use-mcp-tools-CVQwrVGE.js";import"./checkbox-BR7eeNRm.js";import"./search-input-CxiWeJ7M.js";import"./integration-icon-UdqaK4j5.js";import"./tool-set-selector-Dzh4gju3.js";import"./use-infinite-scroll-lJK8P9ZI.js";import"./useSuspenseInfiniteQuery-BiaFhRxh.js";import"./infiniteQueryObserver-CmW3uI_C.js";import"./collection-search-CnHLg8Vx.js";import"./connection-CyPXBq-_.js";import"./url-slug-Dqg9nWvP.js";import"./use-connection-DYtXLDpf.js";import"./access-gate-CJaU-ahh.js";import"./capability-load-error-DAHIgRW0.js";function Re(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ve(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function We({client:t,mode:e,url:l,apiKey:o}){const n=o??"<paste-your-api-key>",c=Re();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${l}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${l} \\
2
2
  --header "Authorization: Bearer ${n}"`};if(t==="cursor"){const i={url:l};return e==="api-key"&&(i.headers={Authorization:`Bearer ${n}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[c]:i}},null,2)}}if(t==="codex"){const i=[`[mcp_servers.${c}]`,`url = "${l}"`];return e==="api-key"&&i.push(`http_headers = { "Authorization" = "Bearer ${n}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:i.join(`
3
3
  `)}}return e==="oauth"?{language:"text",code:`${l}
4
4
 
5
5
  # OAuth: clients that support MCP OAuth 2.1 will discover
6
6
  # the auth flow via the WWW-Authenticate header on 401.`}:{language:"text",code:`${l}
7
7
 
8
- Authorization: Bearer ${n}`}}function We(t){const e=k.c(8),{client:l,mode:o,url:n,apiKey:c}=t;let i;e[0]!==c||e[1]!==l||e[2]!==o||e[3]!==n?(i=Ve({client:l,mode:o,url:n,apiKey:c}),e[0]=c,e[1]=l,e[2]=o,e[3]=n,e[4]=i):i=e[4];const a=i,r=a.pathHint??a.language;let d;return e[5]!==a.code||e[6]!==r?(d=s.jsx(re,{label:r,code:a.code}),e[5]=a.code,e[6]=r,e[7]=d):d=e[7],d}function re(t){const e=k.c(27),{label:l,code:o}=t,n=_(),{handleCopy:c,copied:i}=ge(),a=J.useId(),r=J.useId();let d;e[0]!==o||e[1]!==c?(d=()=>c(o),e[0]=o,e[1]=c,e[2]=d):d=e[2];const m=`${a} ${r}`;let u;e[3]!==n?(u=n("settings.connectClients.copy"),e[3]=n,e[4]=u):u=e[4];let p;e[5]!==a||e[6]!==u?(p=s.jsx("span",{id:a,className:"sr-only",children:u}),e[5]=a,e[6]=u,e[7]=p):p=e[7];let f;e[8]!==l?(f=s.jsx("span",{className:"min-w-0 truncate font-mono text-2xs leading-none text-muted-foreground",children:l}),e[8]=l,e[9]=f):f=e[9];const j=i?"text-success":"group-hover:border-foreground/30 group-hover:text-foreground";let x;e[10]!==j?(x=Ce("flex size-6 shrink-0 items-center justify-center self-start rounded-md border border-border text-muted-foreground transition-colors",j),e[10]=j,e[11]=x):x=e[11];let g;e[12]!==i?(g=i?s.jsx(ue,{size:13}):s.jsx(he,{size:13}),e[12]=i,e[13]=g):g=e[13];let h;e[14]!==x||e[15]!==g?(h=s.jsx("span",{"aria-hidden":"true",className:x,children:g}),e[14]=x,e[15]=g,e[16]=h):h=e[16];let C;e[17]!==o||e[18]!==r?(C=s.jsx("pre",{className:"overflow-x-auto pt-2 font-mono text-xs leading-relaxed",children:s.jsx("code",{id:r,children:o})}),e[17]=o,e[18]=r,e[19]=C):C=e[19];let y;return e[20]!==d||e[21]!==C||e[22]!==m||e[23]!==p||e[24]!==f||e[25]!==h?(y=s.jsxs("button",{type:"button",onClick:d,"aria-labelledby":m,className:"group relative grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3 rounded-lg p-3 text-left transition-colors hover:bg-accent focus-ring",children:[p,f,h,C]}),e[20]=d,e[21]=C,e[22]=m,e[23]=p,e[24]=f,e[25]=h,e[26]=y):y=e[26],y}const Fe="https://studio.decocms.com",ie="npx skills add decocms/studio --skill decocms-studio -g";function qe(t){switch(t){case"claude-code":return["claude plugin marketplace add decocms/studio","claude plugin install decocms-studio@decocms"].join(`
9
- `);case"cursor":return`${ie} -a cursor`;case"codex":return`${ie} -a codex`;case"raw":return ie}}function Je(t){return t===Fe?"bunx decocms@latest auth login":`bunx decocms@latest auth login --target ${t}`}const me="Connect: ",X=[{id:"claude-code",label:"Claude",Icon:De},{id:"cursor",label:"Cursor",Icon:Me},{id:"codex",label:"Codex",Icon:Ee},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Le}];function je(t){return X.find(e=>e.id===t)?.label??t}function Xe(){return typeof window>"u"?"unknown":window.location.hostname}function Ye(t){const e=k.c(11),{text:l}=t,o=_(),{handleCopy:n,copied:c}=ge();let i;e[0]!==n||e[1]!==l?(i=()=>n(l),e[0]=n,e[1]=l,e[2]=i):i=e[2];let a;e[3]!==o?(a=o("settings.connectClients.copy"),e[3]=o,e[4]=a):a=e[4];let r;e[5]!==c?(r=c?s.jsx(ue,{size:14}):s.jsx(he,{size:14}),e[5]=c,e[6]=r):r=e[6];let d;return e[7]!==i||e[8]!==a||e[9]!==r?(d=s.jsx(le,{variant:"ghost",size:"icon-sm",className:"shrink-0",onClick:i,"aria-label":a,children:r}),e[7]=i,e[8]=a,e[9]=r,e[10]=d):d=e[10],d}function Qe(t){const e=k.c(17),{url:l}=t,o=_(),n=`${l}/.well-known/oauth-protected-resource`;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Se,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=c):c=e[0];let i;e[1]!==o?(i=o("settings.connectClients.oauthDiscoveryDetails"),e[1]=o,e[2]=i):i=e[2];let a;e[3]!==i?(a=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[c,i]}),e[3]=i,e[4]=a):a=e[4];let r;e[5]!==o?(r=o("settings.connectClients.oauthMetadataHint"),e[5]=o,e[6]=r):r=e[6];let d;e[7]!==r?(d=s.jsx("p",{children:r}),e[7]=r,e[8]=d):d=e[8];let m;e[9]!==n?(m=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-2xs",children:n}),s.jsx(Ye,{text:n})]}),e[9]=n,e[10]=m):m=e[10];let u;e[11]!==d||e[12]!==m?(u=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[d,m]}),e[11]=d,e[12]=m,e[13]=u):u=e[13];let p;return e[14]!==a||e[15]!==u?(p=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[a,u]}),e[14]=a,e[15]=u,e[16]=p):p=e[16],p}function Ze(t){const e=k.c(23),{mode:l,onModeChange:o}=t,n=_();let c;e[0]!==o?(c=x=>{(x==="oauth"||x==="api-key")&&o(x)},e[0]=o,e[1]=c):c=e[1];let i;e[2]!==n?(i=n("settings.connectClients.installMethod"),e[2]=n,e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ae,{}),e[4]=a):a=e[4];let r;e[5]!==i?(r=s.jsx(Ie,{size:"sm","aria-label":i,children:a}),e[5]=i,e[6]=r):r=e[6];let d;e[7]!==n?(d=n("settings.connectClients.oauthOption"),e[7]=n,e[8]=d):d=e[8];let m;e[9]!==d?(m=s.jsx(de,{value:"oauth",className:"text-xs",children:d}),e[9]=d,e[10]=m):m=e[10];let u;e[11]!==n?(u=n("settings.connectClients.apiKeyOption"),e[11]=n,e[12]=u):u=e[12];let p;e[13]!==u?(p=s.jsx(de,{value:"api-key",className:"text-xs",children:u}),e[13]=u,e[14]=p):p=e[14];let f;e[15]!==m||e[16]!==p?(f=s.jsxs(ze,{children:[m,p]}),e[15]=m,e[16]=p,e[17]=f):f=e[17];let j;return e[18]!==l||e[19]!==c||e[20]!==r||e[21]!==f?(j=s.jsxs(Te,{value:l,onValueChange:c,children:[r,f]}),e[18]=l,e[19]=c,e[20]=r,e[21]=f,e[22]=j):j=e[22],j}function et(t){const e=k.c(26),{client:l,url:o,mode:n,newKey:c,canManageKeys:i,onGenerate:a,isGenerating:r,onClearNewKey:d}=t,m=_(),u=n==="api-key"&&c!==null,p=l==="raw";let f;e[0]!==u||e[1]!==m?(f=u&&s.jsxs($e,{variant:"warning",className:"text-xs",children:[s.jsx(ke,{}),s.jsx(_e,{children:m("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=u,e[1]=m,e[2]=f):f=e[2];const j=u&&c?c:void 0;let x;e[3]!==l||e[4]!==n||e[5]!==j||e[6]!==o?(x=s.jsx(We,{client:l,mode:n,url:o,apiKey:j}),e[3]=l,e[4]=n,e[5]=j,e[6]=o,e[7]=x):x=e[7];let g;e[8]!==p||e[9]!==o?(g=p&&s.jsx(Qe,{url:o}),e[8]=p,e[9]=o,e[10]=g):g=e[10];let h;e[11]!==i||e[12]!==l||e[13]!==r||e[14]!==p||e[15]!==n||e[16]!==d||e[17]!==a||e[18]!==u||e[19]!==m?(h=n==="api-key"&&i&&s.jsx("div",{children:u?s.jsx(le,{variant:"ghost",size:"sm",onClick:d,children:m("settings.connectClients.doneHideKey")}):s.jsxs(le,{size:"sm",onClick:a,disabled:r,className:"gap-1.5",children:[s.jsx(Oe,{size:14}),r?m("settings.connectClients.generatingKey"):p?m("settings.connectClients.generateKey"):m("settings.connectClients.generateKeyFor",{client:je(l)})]})}),e[11]=i,e[12]=l,e[13]=r,e[14]=p,e[15]=n,e[16]=d,e[17]=a,e[18]=u,e[19]=m,e[20]=h):h=e[20];let C;return e[21]!==f||e[22]!==x||e[23]!==g||e[24]!==h?(C=s.jsxs("div",{className:"flex flex-col gap-3",children:[f,x,g,h]}),e[21]=f,e[22]=x,e[23]=g,e[24]=h,e[25]=C):C=e[25],C}function ye(){const t=k.c(4),e=_();let l;t[0]!==e?(l=X.map(n=>{const{id:c,label:i,labelKey:a,Icon:r}=n;return s.jsxs(oe,{value:c,variant:"underline",className:"gap-2",children:[s.jsx(r,{size:16}),a?e(a):i]},c)}),t[0]=e,t[1]=l):l=t[1];let o;return t[2]!==l?(o=s.jsx(xe,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:l}),t[2]=l,t[3]=o):o=t[3],o}function tt(t){const e=k.c(39),{client:l,onClientChange:o}=t,n=_(),c=typeof window>"u"?"":window.location.origin;let i;e[0]!==n?(i=n("settings.connectClients.skillDescription"),e[0]=n,e[1]=i):i=e[1];let a;e[2]!==i?(a=s.jsx("p",{className:"px-4 text-sm leading-snug text-muted-foreground",children:i}),e[2]=i,e[3]=a):a=e[3];let r;e[4]!==n?(r=n("settings.connectClients.skillInstallStep"),e[4]=n,e[5]=r):r=e[5];let d;e[6]!==r?(d=s.jsx("h3",{className:"px-5 pt-4 text-sm font-medium",children:r}),e[6]=r,e[7]=d):d=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"flex px-3 py-1",children:s.jsx(ye,{})}),e[8]=m):m=e[8];let u;e[9]!==n?(u=X.map(A=>{const{id:S}=A;return s.jsxs(se,{value:S,className:"flex flex-col p-2",children:[s.jsx(re,{label:"bash",code:qe(S)}),S==="raw"&&s.jsx("p",{className:"px-3 pb-2 text-xs leading-snug text-muted-foreground",children:n("settings.connectClients.skillOtherAgentsHint")})]},S)}),e[9]=n,e[10]=u):u=e[10];let p;e[11]!==l||e[12]!==o||e[13]!==d||e[14]!==u?(p=s.jsxs(ae,{value:l,onValueChange:o,variant:"underline",className:"gap-0",children:[d,m,u]}),e[11]=l,e[12]=o,e[13]=d,e[14]=u,e[15]=p):p=e[15];let f;e[16]!==n?(f=n("settings.connectClients.skillLoginStep"),e[16]=n,e[17]=f):f=e[17];let j;e[18]!==f?(j=s.jsx("h3",{className:"px-3 pt-2 text-sm font-medium",children:f}),e[18]=f,e[19]=j):j=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(re,{label:"bash",code:Je(c)}),e[20]=x):x=e[20];let g;e[21]!==j?(g=s.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[j,x]}),e[21]=j,e[22]=g):g=e[22];let h;e[23]!==g||e[24]!==p?(h=s.jsxs(fe,{className:"gap-0 divide-y divide-border overflow-hidden p-0",children:[p,g]}),e[23]=g,e[24]=p,e[25]=h):h=e[25];let C;e[26]!==n?(C=n("settings.connectClients.skillNeedsBun"),e[26]=n,e[27]=C):C=e[27];let y;e[28]!==C?(y=s.jsx("a",{href:"https://bun.com",target:"_blank",rel:"noreferrer",className:"text-foreground underline underline-offset-2 hover:no-underline",children:C}),e[28]=C,e[29]=y):y=e[29];let w;e[30]!==n?(w=n("settings.connectClients.skillLoginHint"),e[30]=n,e[31]=w):w=e[31];let N;e[32]!==y||e[33]!==w?(N=s.jsxs("p",{className:"px-4 text-xs leading-snug text-muted-foreground",children:[y," ",w]}),e[32]=y,e[33]=w,e[34]=N):N=e[34];let K;return e[35]!==h||e[36]!==N||e[37]!==a?(K=s.jsxs("div",{className:"flex flex-col gap-3",children:[a,h,N]}),e[35]=h,e[36]=N,e[37]=a,e[38]=K):K=e[38],K}function st(){const t=k.c(74),e=_(),{org:l}=ve();let o;t[0]!==l.slug?(o=Ue(l.slug),t[0]=l.slug,t[1]=o):o=t[1];const n=o,c=Be(),{granted:i}=Ne("api-keys:manage");let a;t[2]!==i?(a={enabled:i},t[2]=i,t[3]=a):a=t[3];const{data:r,dataUpdatedAt:d}=He(a),[m,u]=J.useState("oauth");let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p={},t[4]=p):p=t[4];const[f,j]=J.useState(p);let x;t[5]!==d||t[6]!==f||t[7]!==l.id||t[8]!==r?(x=v=>{const b=f[v];return!b||b.orgId!==l.id?null:!r||d<b.at||r.some($=>$.id===b.id)?b.key:null},t[5]=d,t[6]=f,t[7]=l.id,t[8]=r,t[9]=x):x=t[9];const g=x,[h,C]=J.useState("skill"),[y,w]=J.useState("claude-code");let N;t[10]===Symbol.for("react.memo_cache_sentinel")?(N=v=>{const b=X.find($=>$.id===v);b&&w(b.id)},t[10]=N):N=t[10];const K=N;let A;t[11]!==c||t[12]!==l.id||t[13]!==e?(A=v=>{const b=`${me}${je(v)} on ${Xe()}`;c.mutate({name:b,permissions:{"*":["*"]}},{onSuccess:$=>{j(ne=>({...ne,[v]:{id:$.id,key:$.key,at:Date.now(),orgId:l.id}})),pe.success(e("settings.connectClients.keyCreated"))},onError:nt})},t[11]=c,t[12]=l.id,t[13]=e,t[14]=A):A=t[14];const S=A;let I;t[15]!==e?(I=e("settings.connectClients.skillTitle"),t[15]=e,t[16]=I):I=t[16];let Y;t[17]===Symbol.for("react.memo_cache_sentinel")?(Y=v=>{(v==="skill"||v==="mcp")&&C(v)},t[17]=Y):Y=t[17];let z;t[18]!==e?(z=e("settings.connectClients.skillTab"),t[18]=e,t[19]=z):z=t[19];let T;t[20]!==e?(T=e("settings.connectClients.recommended"),t[20]=e,t[21]=T):T=t[21];let L;t[22]!==T?(L=s.jsx(Ke,{variant:"muted",children:T}),t[22]=T,t[23]=L):L=t[23];let O;t[24]!==L||t[25]!==z?(O=s.jsxs(oe,{value:"skill",className:"gap-2",children:[z,L]}),t[24]=L,t[25]=z,t[26]=O):O=t[26];let Q;t[27]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(oe,{value:"mcp",children:"MCP"}),t[27]=Q):Q=t[27];let D;t[28]!==O?(D=s.jsx("div",{className:"px-4",children:s.jsxs(xe,{children:[O,Q]})}),t[28]=O,t[29]=D):D=t[29];let M;t[30]!==y?(M=s.jsx(se,{value:"skill",children:s.jsx(tt,{client:y,onClientChange:K})}),t[30]=y,t[31]=M):M=t[31];let E;t[32]!==e?(E=e("settings.connectClients.mcpDescription"),t[32]=e,t[33]=E):E=t[33];let B;t[34]!==E?(B=s.jsx("p",{className:"px-4 text-sm leading-snug text-muted-foreground",children:E}),t[34]=E,t[35]=B):B=t[35];let Z;t[36]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(ye,{}),t[36]=Z):Z=t[36];let H;t[37]!==m?(H=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[Z,s.jsx(Ze,{mode:m,onModeChange:u})]}),t[37]=m,t[38]=H):H=t[38];let P;t[39]!==i||t[40]!==c||t[41]!==S||t[42]!==g||t[43]!==m||t[44]!==n?(P=X.map(v=>{const{id:b,label:$}=v;return s.jsx(se,{value:b,className:"p-2",children:s.jsx(et,{client:b,url:n,mode:m,newKey:g(b),canManageKeys:i,onGenerate:()=>S(b),isGenerating:c.isPending&&c.variables?.name?.startsWith(`${me}${$}`)===!0,onClearNewKey:()=>j(ne=>{const ce={...ne};return delete ce[b],ce})})},b)}),t[39]=i,t[40]=c,t[41]=S,t[42]=g,t[43]=m,t[44]=n,t[45]=P):P=t[45];let G;t[46]!==y||t[47]!==H||t[48]!==P?(G=s.jsx(fe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(ae,{value:y,onValueChange:K,variant:"underline",className:"gap-0",children:[H,P]})}),t[46]=y,t[47]=H,t[48]=P,t[49]=G):G=t[49];let R;t[50]!==m||t[51]!==e?(R=e(m==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[50]=m,t[51]=e,t[52]=R):R=t[52];let U;t[53]!==R?(U=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:R}),t[53]=R,t[54]=U):U=t[54];let V;t[55]!==y||t[56]!==e?(V=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[55]=y,t[56]=e,t[57]=V):V=t[57];let W;t[58]!==B||t[59]!==G||t[60]!==U||t[61]!==V?(W=s.jsxs(se,{value:"mcp",className:"flex flex-col gap-3",children:[B,G,U,V]}),t[58]=B,t[59]=G,t[60]=U,t[61]=V,t[62]=W):W=t[62];let F;t[63]!==D||t[64]!==M||t[65]!==W||t[66]!==h?(F=s.jsxs(ae,{value:h,onValueChange:Y,className:"gap-3",children:[D,M,W]}),t[63]=D,t[64]=M,t[65]=W,t[66]=h,t[67]=F):F=t[67];let q;t[68]!==F||t[69]!==I?(q=s.jsx(we,{title:I,children:F}),t[68]=F,t[69]=I,t[70]=q):q=t[70];let ee;t[71]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ge,{capability:"api-keys:manage",area:"api-keys",children:s.jsx(Pe,{})}),t[71]=ee):ee=t[71];let te;return t[72]!==q?(te=s.jsxs(s.Fragment,{children:[q,ee]}),t[72]=q,t[73]=te):te=t[73],te}function nt(t){return pe.error(t.message)}function it(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(be,{group:"connect",children:s.jsx(st,{})}),t[0]=e):e=t[0],e}function rs(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(it,{}),t[0]=e):e=t[0],e}export{rs as default};
8
+ Authorization: Bearer ${n}`}}function Ue(t){const e=k.c(8),{client:l,mode:o,url:n,apiKey:c}=t;let i;e[0]!==c||e[1]!==l||e[2]!==o||e[3]!==n?(i=We({client:l,mode:o,url:n,apiKey:c}),e[0]=c,e[1]=l,e[2]=o,e[3]=n,e[4]=i):i=e[4];const a=i,r=a.pathHint??a.language;let d;return e[5]!==a.code||e[6]!==r?(d=s.jsx(re,{label:r,code:a.code}),e[5]=a.code,e[6]=r,e[7]=d):d=e[7],d}function re(t){const e=k.c(27),{label:l,code:o}=t,n=_(),{handleCopy:c,copied:i}=ge(),a=q.useId(),r=q.useId();let d;e[0]!==o||e[1]!==c?(d=()=>c(o),e[0]=o,e[1]=c,e[2]=d):d=e[2];const m=`${a} ${r}`;let u;e[3]!==n?(u=n("settings.connectClients.copy"),e[3]=n,e[4]=u):u=e[4];let p;e[5]!==a||e[6]!==u?(p=s.jsx("span",{id:a,className:"sr-only",children:u}),e[5]=a,e[6]=u,e[7]=p):p=e[7];let f;e[8]!==l?(f=s.jsx("span",{className:"min-w-0 truncate font-mono text-2xs leading-none text-muted-foreground",children:l}),e[8]=l,e[9]=f):f=e[9];const j=i?"text-success":"group-hover:border-foreground/30 group-hover:text-foreground";let x;e[10]!==j?(x=Ce("flex size-6 shrink-0 items-center justify-center self-start rounded-md border border-border text-muted-foreground transition-colors",j),e[10]=j,e[11]=x):x=e[11];let g;e[12]!==i?(g=i?s.jsx(ue,{size:13}):s.jsx(he,{size:13}),e[12]=i,e[13]=g):g=e[13];let h;e[14]!==x||e[15]!==g?(h=s.jsx("span",{"aria-hidden":"true",className:x,children:g}),e[14]=x,e[15]=g,e[16]=h):h=e[16];let C;e[17]!==o||e[18]!==r?(C=s.jsx("pre",{className:"overflow-x-auto pt-2 font-mono text-xs leading-relaxed",children:s.jsx("code",{id:r,children:o})}),e[17]=o,e[18]=r,e[19]=C):C=e[19];let y;return e[20]!==d||e[21]!==C||e[22]!==m||e[23]!==p||e[24]!==f||e[25]!==h?(y=s.jsxs("button",{type:"button",onClick:d,"aria-labelledby":m,className:"group relative grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3 rounded-lg p-3 text-left transition-colors hover:bg-accent focus-ring",children:[p,f,h,C]}),e[20]=d,e[21]=C,e[22]=m,e[23]=p,e[24]=f,e[25]=h,e[26]=y):y=e[26],y}const Fe="https://studio.decocms.com",ie="npx skills add decocms/studio --skill decocms-studio -g";function Ye(t){switch(t){case"claude-code":return["claude plugin marketplace add decocms/studio","claude plugin install decocms-studio@decocms"].join(`
9
+ `);case"cursor":return`${ie} -a cursor`;case"codex":return`${ie} -a codex`;case"raw":return ie}}function qe(t){return t===Fe?"bunx decocms@latest auth login":`bunx decocms@latest auth login --target ${t}`}const me="Connect: ",J=[{id:"claude-code",label:"Claude",Icon:De},{id:"cursor",label:"Cursor",Icon:Me},{id:"codex",label:"Codex",Icon:Ee},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Le}];function je(t){return J.find(e=>e.id===t)?.label??t}function Je(){return typeof window>"u"?"unknown":window.location.hostname}function Xe(t){const e=k.c(11),{text:l}=t,o=_(),{handleCopy:n,copied:c}=ge();let i;e[0]!==n||e[1]!==l?(i=()=>n(l),e[0]=n,e[1]=l,e[2]=i):i=e[2];let a;e[3]!==o?(a=o("settings.connectClients.copy"),e[3]=o,e[4]=a):a=e[4];let r;e[5]!==c?(r=c?s.jsx(ue,{size:14}):s.jsx(he,{size:14}),e[5]=c,e[6]=r):r=e[6];let d;return e[7]!==i||e[8]!==a||e[9]!==r?(d=s.jsx(le,{variant:"ghost",size:"icon-sm",className:"shrink-0",onClick:i,"aria-label":a,children:r}),e[7]=i,e[8]=a,e[9]=r,e[10]=d):d=e[10],d}function Qe(t){const e=k.c(17),{url:l}=t,o=_(),n=`${l}/.well-known/oauth-protected-resource`;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Se,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=c):c=e[0];let i;e[1]!==o?(i=o("settings.connectClients.oauthDiscoveryDetails"),e[1]=o,e[2]=i):i=e[2];let a;e[3]!==i?(a=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[c,i]}),e[3]=i,e[4]=a):a=e[4];let r;e[5]!==o?(r=o("settings.connectClients.oauthMetadataHint"),e[5]=o,e[6]=r):r=e[6];let d;e[7]!==r?(d=s.jsx("p",{children:r}),e[7]=r,e[8]=d):d=e[8];let m;e[9]!==n?(m=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-2xs",children:n}),s.jsx(Xe,{text:n})]}),e[9]=n,e[10]=m):m=e[10];let u;e[11]!==d||e[12]!==m?(u=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[d,m]}),e[11]=d,e[12]=m,e[13]=u):u=e[13];let p;return e[14]!==a||e[15]!==u?(p=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[a,u]}),e[14]=a,e[15]=u,e[16]=p):p=e[16],p}function Ze(t){const e=k.c(23),{mode:l,onModeChange:o}=t,n=_();let c;e[0]!==o?(c=x=>{(x==="oauth"||x==="api-key")&&o(x)},e[0]=o,e[1]=c):c=e[1];let i;e[2]!==n?(i=n("settings.connectClients.installMethod"),e[2]=n,e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ae,{}),e[4]=a):a=e[4];let r;e[5]!==i?(r=s.jsx(Ie,{size:"sm","aria-label":i,children:a}),e[5]=i,e[6]=r):r=e[6];let d;e[7]!==n?(d=n("settings.connectClients.oauthOption"),e[7]=n,e[8]=d):d=e[8];let m;e[9]!==d?(m=s.jsx(de,{value:"oauth",className:"text-xs",children:d}),e[9]=d,e[10]=m):m=e[10];let u;e[11]!==n?(u=n("settings.connectClients.apiKeyOption"),e[11]=n,e[12]=u):u=e[12];let p;e[13]!==u?(p=s.jsx(de,{value:"api-key",className:"text-xs",children:u}),e[13]=u,e[14]=p):p=e[14];let f;e[15]!==m||e[16]!==p?(f=s.jsxs(ze,{children:[m,p]}),e[15]=m,e[16]=p,e[17]=f):f=e[17];let j;return e[18]!==l||e[19]!==c||e[20]!==r||e[21]!==f?(j=s.jsxs(Te,{value:l,onValueChange:c,children:[r,f]}),e[18]=l,e[19]=c,e[20]=r,e[21]=f,e[22]=j):j=e[22],j}function et(t){const e=k.c(26),{client:l,url:o,mode:n,newKey:c,canManageKeys:i,onGenerate:a,isGenerating:r,onClearNewKey:d}=t,m=_(),u=n==="api-key"&&c!==null,p=l==="raw";let f;e[0]!==u||e[1]!==m?(f=u&&s.jsxs($e,{variant:"warning",className:"text-xs",children:[s.jsx(ke,{}),s.jsx(_e,{children:m("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=u,e[1]=m,e[2]=f):f=e[2];const j=u&&c?c:void 0;let x;e[3]!==l||e[4]!==n||e[5]!==j||e[6]!==o?(x=s.jsx(Ue,{client:l,mode:n,url:o,apiKey:j}),e[3]=l,e[4]=n,e[5]=j,e[6]=o,e[7]=x):x=e[7];let g;e[8]!==p||e[9]!==o?(g=p&&s.jsx(Qe,{url:o}),e[8]=p,e[9]=o,e[10]=g):g=e[10];let h;e[11]!==i||e[12]!==l||e[13]!==r||e[14]!==p||e[15]!==n||e[16]!==d||e[17]!==a||e[18]!==u||e[19]!==m?(h=n==="api-key"&&i&&s.jsx("div",{children:u?s.jsx(le,{variant:"ghost",size:"sm",onClick:d,children:m("settings.connectClients.doneHideKey")}):s.jsxs(le,{size:"sm",onClick:a,disabled:r,className:"gap-1.5",children:[s.jsx(Oe,{size:14}),r?m("settings.connectClients.generatingKey"):p?m("settings.connectClients.generateKey"):m("settings.connectClients.generateKeyFor",{client:je(l)})]})}),e[11]=i,e[12]=l,e[13]=r,e[14]=p,e[15]=n,e[16]=d,e[17]=a,e[18]=u,e[19]=m,e[20]=h):h=e[20];let C;return e[21]!==f||e[22]!==x||e[23]!==g||e[24]!==h?(C=s.jsxs("div",{className:"flex flex-col gap-3",children:[f,x,g,h]}),e[21]=f,e[22]=x,e[23]=g,e[24]=h,e[25]=C):C=e[25],C}function ye(){const t=k.c(4),e=_();let l;t[0]!==e?(l=J.map(n=>{const{id:c,label:i,labelKey:a,Icon:r}=n;return s.jsxs(oe,{value:c,variant:"underline",className:"gap-2",children:[s.jsx(r,{size:16}),a?e(a):i]},c)}),t[0]=e,t[1]=l):l=t[1];let o;return t[2]!==l?(o=s.jsx(xe,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:l}),t[2]=l,t[3]=o):o=t[3],o}function tt(t){const e=k.c(39),{client:l,onClientChange:o}=t,n=_(),c=typeof window>"u"?"":window.location.origin;let i;e[0]!==n?(i=n("settings.connectClients.skillDescription"),e[0]=n,e[1]=i):i=e[1];let a;e[2]!==i?(a=s.jsx("p",{className:"px-4 text-sm leading-snug text-muted-foreground",children:i}),e[2]=i,e[3]=a):a=e[3];let r;e[4]!==n?(r=n("settings.connectClients.skillInstallStep"),e[4]=n,e[5]=r):r=e[5];let d;e[6]!==r?(d=s.jsx("h3",{className:"px-5 pt-4 text-sm font-medium",children:r}),e[6]=r,e[7]=d):d=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"flex px-3 py-1",children:s.jsx(ye,{})}),e[8]=m):m=e[8];let u;e[9]!==n?(u=J.map(A=>{const{id:S}=A;return s.jsxs(se,{value:S,className:"flex flex-col p-2",children:[s.jsx(re,{label:"bash",code:Ye(S)}),S==="raw"&&s.jsx("p",{className:"px-3 pb-2 text-xs leading-snug text-muted-foreground",children:n("settings.connectClients.skillOtherAgentsHint")})]},S)}),e[9]=n,e[10]=u):u=e[10];let p;e[11]!==l||e[12]!==o||e[13]!==d||e[14]!==u?(p=s.jsxs(ae,{value:l,onValueChange:o,variant:"underline",className:"gap-0",children:[d,m,u]}),e[11]=l,e[12]=o,e[13]=d,e[14]=u,e[15]=p):p=e[15];let f;e[16]!==n?(f=n("settings.connectClients.skillLoginStep"),e[16]=n,e[17]=f):f=e[17];let j;e[18]!==f?(j=s.jsx("h3",{className:"px-3 pt-2 text-sm font-medium",children:f}),e[18]=f,e[19]=j):j=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(re,{label:"bash",code:qe(c)}),e[20]=x):x=e[20];let g;e[21]!==j?(g=s.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[j,x]}),e[21]=j,e[22]=g):g=e[22];let h;e[23]!==g||e[24]!==p?(h=s.jsxs(fe,{className:"gap-0 divide-y divide-border overflow-hidden p-0",children:[p,g]}),e[23]=g,e[24]=p,e[25]=h):h=e[25];let C;e[26]!==n?(C=n("settings.connectClients.skillNeedsBun"),e[26]=n,e[27]=C):C=e[27];let y;e[28]!==C?(y=s.jsx("a",{href:"https://bun.com",target:"_blank",rel:"noreferrer",className:"text-foreground underline underline-offset-2 hover:no-underline",children:C}),e[28]=C,e[29]=y):y=e[29];let w;e[30]!==n?(w=n("settings.connectClients.skillLoginHint"),e[30]=n,e[31]=w):w=e[31];let N;e[32]!==y||e[33]!==w?(N=s.jsxs("p",{className:"px-4 text-xs leading-snug text-muted-foreground",children:[y," ",w]}),e[32]=y,e[33]=w,e[34]=N):N=e[34];let K;return e[35]!==h||e[36]!==N||e[37]!==a?(K=s.jsxs("div",{className:"flex flex-col gap-3",children:[a,h,N]}),e[35]=h,e[36]=N,e[37]=a,e[38]=K):K=e[38],K}function st(){const t=k.c(74),e=_(),{org:l}=ve();let o;t[0]!==l.slug?(o=Ve(l.slug),t[0]=l.slug,t[1]=o):o=t[1];const n=o,c=Be(),{granted:i}=Ne("api-keys:manage");let a;t[2]!==i?(a={enabled:i},t[2]=i,t[3]=a):a=t[3];const{data:r,dataUpdatedAt:d}=He(a),[m,u]=q.useState("oauth");let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p={},t[4]=p):p=t[4];const[f,j]=q.useState(p);let x;t[5]!==d||t[6]!==f||t[7]!==l.id||t[8]!==r?(x=v=>{const b=f[v];return!b||b.orgId!==l.id?null:!r||d<b.at||r.some($=>$.id===b.id)?b.key:null},t[5]=d,t[6]=f,t[7]=l.id,t[8]=r,t[9]=x):x=t[9];const g=x,[h,C]=q.useState("skill"),[y,w]=q.useState("claude-code");let N;t[10]===Symbol.for("react.memo_cache_sentinel")?(N=v=>{const b=J.find($=>$.id===v);b&&w(b.id)},t[10]=N):N=t[10];const K=N;let A;t[11]!==c||t[12]!==l.id||t[13]!==e?(A=v=>{const b=`${me}${je(v)} on ${Je()}`;c.mutate({name:b,permissions:{"*":["*"]}},{onSuccess:$=>{j(ne=>({...ne,[v]:{id:$.id,key:$.key,at:Date.now(),orgId:l.id}})),pe.success(e("settings.connectClients.keyCreated"))},onError:nt})},t[11]=c,t[12]=l.id,t[13]=e,t[14]=A):A=t[14];const S=A;let I;t[15]!==e?(I=e("settings.connectClients.skillTitle"),t[15]=e,t[16]=I):I=t[16];let X;t[17]===Symbol.for("react.memo_cache_sentinel")?(X=v=>{(v==="skill"||v==="mcp")&&C(v)},t[17]=X):X=t[17];let z;t[18]!==e?(z=e("settings.connectClients.skillTab"),t[18]=e,t[19]=z):z=t[19];let T;t[20]!==e?(T=e("settings.connectClients.recommended"),t[20]=e,t[21]=T):T=t[21];let L;t[22]!==T?(L=s.jsx(Ke,{variant:"muted",children:T}),t[22]=T,t[23]=L):L=t[23];let O;t[24]!==L||t[25]!==z?(O=s.jsxs(oe,{value:"skill",className:"gap-2",children:[z,L]}),t[24]=L,t[25]=z,t[26]=O):O=t[26];let Q;t[27]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(oe,{value:"mcp",children:"MCP"}),t[27]=Q):Q=t[27];let D;t[28]!==O?(D=s.jsx("div",{className:"px-4",children:s.jsxs(xe,{children:[O,Q]})}),t[28]=O,t[29]=D):D=t[29];let M;t[30]!==y?(M=s.jsx(se,{value:"skill",children:s.jsx(tt,{client:y,onClientChange:K})}),t[30]=y,t[31]=M):M=t[31];let E;t[32]!==e?(E=e("settings.connectClients.mcpDescription"),t[32]=e,t[33]=E):E=t[33];let B;t[34]!==E?(B=s.jsx("p",{className:"px-4 text-sm leading-snug text-muted-foreground",children:E}),t[34]=E,t[35]=B):B=t[35];let Z;t[36]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(ye,{}),t[36]=Z):Z=t[36];let H;t[37]!==m?(H=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[Z,s.jsx(Ze,{mode:m,onModeChange:u})]}),t[37]=m,t[38]=H):H=t[38];let P;t[39]!==i||t[40]!==c||t[41]!==S||t[42]!==g||t[43]!==m||t[44]!==n?(P=J.map(v=>{const{id:b,label:$}=v;return s.jsx(se,{value:b,className:"p-2",children:s.jsx(et,{client:b,url:n,mode:m,newKey:g(b),canManageKeys:i,onGenerate:()=>S(b),isGenerating:c.isPending&&c.variables?.name?.startsWith(`${me}${$}`)===!0,onClearNewKey:()=>j(ne=>{const ce={...ne};return delete ce[b],ce})})},b)}),t[39]=i,t[40]=c,t[41]=S,t[42]=g,t[43]=m,t[44]=n,t[45]=P):P=t[45];let G;t[46]!==y||t[47]!==H||t[48]!==P?(G=s.jsx(fe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(ae,{value:y,onValueChange:K,variant:"underline",className:"gap-0",children:[H,P]})}),t[46]=y,t[47]=H,t[48]=P,t[49]=G):G=t[49];let R;t[50]!==m||t[51]!==e?(R=e(m==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[50]=m,t[51]=e,t[52]=R):R=t[52];let V;t[53]!==R?(V=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:R}),t[53]=R,t[54]=V):V=t[54];let W;t[55]!==y||t[56]!==e?(W=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[55]=y,t[56]=e,t[57]=W):W=t[57];let U;t[58]!==B||t[59]!==G||t[60]!==V||t[61]!==W?(U=s.jsxs(se,{value:"mcp",className:"flex flex-col gap-3",children:[B,G,V,W]}),t[58]=B,t[59]=G,t[60]=V,t[61]=W,t[62]=U):U=t[62];let F;t[63]!==D||t[64]!==M||t[65]!==U||t[66]!==h?(F=s.jsxs(ae,{value:h,onValueChange:X,className:"gap-3",children:[D,M,U]}),t[63]=D,t[64]=M,t[65]=U,t[66]=h,t[67]=F):F=t[67];let Y;t[68]!==F||t[69]!==I?(Y=s.jsx(we,{title:I,children:F}),t[68]=F,t[69]=I,t[70]=Y):Y=t[70];let ee;t[71]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ge,{capability:"api-keys:manage",area:"api-keys",children:s.jsx(Pe,{})}),t[71]=ee):ee=t[71];let te;return t[72]!==Y?(te=s.jsxs(s.Fragment,{children:[Y,ee]}),t[72]=Y,t[73]=te):te=t[73],te}function nt(t){return pe.error(t.message)}function it(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(be,{group:"connect",children:s.jsx(st,{})}),t[0]=e):e=t[0],e}function rs(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(it,{}),t[0]=e):e=t[0],e}export{rs as default};
@@ -1 +1 @@
1
- import{c as v,b as N,j as s,af as w,b1 as k,ar as y,B as z}from"./index-CpKrWBFM.js";import{b9 as _,aB as C}from"./agent-icon-De2MEsoK.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 c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=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:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}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 c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=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 a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;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-sm leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function R(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=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(k,{size:18})}),e[0]=o,e[1]=r,e[2]=a):a=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(y,{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-base 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]!==c||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,c,g]}),e[12]=c,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]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function A(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(z,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{R as C,A as a};
1
+ import{c as v,b as N,j as s,af as w,b1 as k,ar as y,B as z}from"./index-B1ZvlDM_.js";import{ba as _,aC as C}from"./agent-icon-B9ymJOYy.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 c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=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:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}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 c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=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 a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;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-sm leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function R(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=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(k,{size:18})}),e[0]=o,e[1]=r,e[2]=a):a=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(y,{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-base 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]!==c||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,c,g]}),e[12]=c,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]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function A(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(z,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{R as C,A as a};
@@ -1 +1 @@
1
- import{c as y,b as w,j as n,r as M,R as L,a4 as V,W,T as Y,a as q,x as K,B as G,w as U,v as z,D as A,h as J}from"./index-CpKrWBFM.js";import{s as Q}from"./site-url-en5df9c-.js";import{u as X}from"./use-mcp-client-sJ5tYuZ0.js";import{I as Z}from"./integration-icon-B40Wh7Yg.js";import{c as ee,u as te,a as se,P as ne,d as le,S as ie}from"./use-connect-companion-CP2lbL5p.js";function k(b){const e=y.c(12),{onClose:l,children:s}=b,r=w();let t;e[0]!==l?(t=g=>!g&&l(),e[0]=l,e[1]=t):t=e[1];let d;e[2]!==r?(d=r("reportsOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=d):d=e[3];let o;e[4]!==d?(o=n.jsx(U,{children:n.jsx(K,{children:d})}),e[4]=d,e[5]=o):o=e[5];let x;e[6]!==s||e[7]!==o?(x=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[o,s]}),e[6]=s,e[7]=o,e[8]=x):x=e[8];let i;return e[9]!==t||e[10]!==x?(i=n.jsx(A,{open:!0,onOpenChange:t,children:x}),e[9]=t,e[10]=x,e[11]=i):i=e[11],i}function $(b){const e=y.c(3),{label:l}=b;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(J,{className:"size-4"}),e[0]=s):s=e[0];let r;return e[1]!==l?(r=n.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[s,n.jsx("span",{children:l})]}),e[1]=l,e[2]=r):r=e[2],r}function xe(b){const e=y.c(19),{field:l,onClose:s}=b,r=w();let t;e[0]!==s||e[1]!==r?(t=()=>n.jsx(k,{onClose:s,children:n.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.reportsOnboarding.connectModal.loadError")})}),e[0]=s,e[1]=r,e[2]=t):t=e[2];let d;e[3]!==r?(d=r("reportsOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=d):d=e[4];let o;e[5]!==d?(o=n.jsx($,{label:d}),e[5]=d,e[6]=o):o=e[6];let x;e[7]!==s||e[8]!==o?(x=n.jsx(k,{onClose:s,children:o}),e[7]=s,e[8]=o,e[9]=x):x=e[9];let i;e[10]!==l||e[11]!==s?(i=n.jsx(oe,{field:l,onClose:s}),e[10]=l,e[11]=s,e[12]=i):i=e[12];let g;e[13]!==x||e[14]!==i?(g=n.jsx(M.Suspense,{fallback:x,children:i}),e[13]=x,e[14]=i,e[15]=g):g=e[15];let p;return e[16]!==t||e[17]!==g?(p=n.jsx(L,{fallback:t,children:g}),e[16]=t,e[17]=g,e[18]=p):p=e[18],p}function oe(b){const e=y.c(75),{field:l,onClose:s}=b,r=w(),{org:t}=V();let d;e[0]!==t.id?(d=W.REPORTS(t.id),e[0]=t.id,e[1]=d):d=e[1];const o=d;let x;e[2]!==t.id||e[3]!==t.slug?(x={connectionId:Y,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=x):x=e[4];const i=X(x),{data:g}=q.useSession(),p=g?.user?.id??"";let j;e[5]!==o||e[6]!==t||e[7]!==i?(j={selfClient:i,org:t,cdConnectionId:o},e[5]=o,e[6]=t,e[7]=i,e[8]=j):j=e[8];const f=ee(j);let h;e[9]!==o||e[10]!==t||e[11]!==i||e[12]!==f?(h={selfClient:i,org:t,cdConnectionId:o,siteUrl:f},e[9]=o,e[10]=t,e[11]=i,e[12]=f,e[13]=h):h=e[13];const{cards:S}=te(h);let C;e[14]!==f?(C=Q(f)??void 0,e[14]=f,e[15]=C):C=e[15];let I;e[16]!==o||e[17]!==t||e[18]!==i||e[19]!==f||e[20]!==C||e[21]!==p?(I={selfClient:i,org:t,userId:p,cdConnectionId:o,domain:C,siteUrl:f},e[16]=o,e[17]=t,e[18]=i,e[19]=f,e[20]=C,e[21]=p,e[22]=I):I=e[22];const{connect:O,connectingFieldKey:F,error:T}=se(I);let E;if(e[23]!==S||e[24]!==l){let c;e[26]!==l?(c=u=>u.fieldKey===l,e[26]=l,e[27]=c):c=e[27],E=S.find(c),e[23]=S,e[24]=l,e[25]=E}else E=e[25];const a=E;if(!a){let c;e[28]!==r?(c=r("routes.reportsOnboarding.connectModal.loadError"),e[28]=r,e[29]=c):c=e[29];let u;e[30]!==c?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[30]=c,e[31]=u):u=e[31];let m;return e[32]!==s||e[33]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[32]=s,e[33]=u,e[34]=m):m=e[34],m}const R=ne[a.bindingType];if(R&&a.boundVia!=="oauth"){let c;e[35]!==s?(c=D=>!D&&s(),e[35]=s,e[36]=c):c=e[36];let u;e[37]!==a||e[38]!==O?(u=a.satisfied?void 0:()=>{O(a)},e[37]=a,e[38]=O,e[39]=u):u=e[39];let m;return e[40]!==a||e[41]!==t||e[42]!==R||e[43]!==i||e[44]!==f||e[45]!==c||e[46]!==u?(m=n.jsx(ie,{card:a,provider:R,org:t,selfClient:i,siteUrl:f,open:!0,onOpenChange:c,onOAuthInstead:u}),e[40]=a,e[41]=t,e[42]=R,e[43]=i,e[44]=f,e[45]=c,e[46]=u,e[47]=m):m=e[47],m}if(a.satisfied&&a.linkedConnectionId){let c;e[48]!==r?(c=r("reportsOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=c):c=e[49];let u;e[50]!==c?(u=n.jsx($,{label:c}),e[50]=c,e[51]=u):u=e[51];let m;e[52]!==s||e[53]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[52]=s,e[53]=u,e[54]=m):m=e[54];let D;e[55]!==s?(D=H=>!H&&s(),e[55]=s,e[56]=D):D=e[56];let v;e[57]!==a||e[58]!==t||e[59]!==i||e[60]!==f||e[61]!==D?(v=n.jsx(le,{card:a,org:t,selfClient:i,connectionId:a.linkedConnectionId,contextSiteUrl:f,open:!0,onOpenChange:D}),e[57]=a,e[58]=t,e[59]=i,e[60]=f,e[61]=D,e[62]=v):v=e[62];let _;return e[63]!==m||e[64]!==v?(_=n.jsx(M.Suspense,{fallback:m,children:v}),e[63]=m,e[64]=v,e[65]=_):_=e[65],_}const B=F===a.fieldKey;let N;e[66]!==a||e[67]!==O?(N=()=>{O(a)},e[66]=a,e[67]=O,e[68]=N):N=e[68];let P;return e[69]!==a||e[70]!==T||e[71]!==s||e[72]!==B||e[73]!==N?(P=n.jsx(re,{card:a,connecting:B,error:T,onConnect:N,onClose:s}),e[69]=a,e[70]=T,e[71]=s,e[72]=B,e[73]=N,e[74]=P):P=e[74],P}function re(b){const e=y.c(22),{card:l,connecting:s,error:r,onConnect:t,onClose:d}=b,o=w(),[x,i]=M.useState(!1);x||(i(!0),queueMicrotask(t));let g;e[0]!==s||e[1]!==d?(g=I=>{!I&&s||I||d()},e[0]=s,e[1]=d,e[2]=g):g=e[2];let p;e[3]!==l.icon||e[4]!==l.title?(p=n.jsx(Z,{icon:l.icon,name:l.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=l.icon,e[4]=l.title,e[5]=p):p=e[5];let j;e[6]!==l.title?(j=n.jsx(K,{className:"min-w-0 flex-1",children:l.title}),e[6]=l.title,e[7]=j):j=e[7];let f;e[8]!==p||e[9]!==j?(f=n.jsxs(U,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[p,j]}),e[8]=p,e[9]=j,e[10]=f):f=e[10];let h;e[11]!==l.title||e[12]!==r||e[13]!==t||e[14]!==o?(h=r?n.jsxs("div",{className:"flex flex-col gap-3",children:[n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),n.jsx(G,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:o("routes.reportsOnboarding.companionSection.retry")})]}):n.jsx($,{label:o("reportsOnboarding.connectSourceDialog.connecting",{title:l.title})}),e[11]=l.title,e[12]=r,e[13]=t,e[14]=o,e[15]=h):h=e[15];let S;e[16]!==f||e[17]!==h?(S=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[f,h]}),e[16]=f,e[17]=h,e[18]=S):S=e[18];let C;return e[19]!==g||e[20]!==S?(C=n.jsx(A,{open:!0,onOpenChange:g,children:S}),e[19]=g,e[20]=S,e[21]=C):C=e[21],C}export{xe as C};
1
+ import{c as y,b as w,j as n,r as M,R as L,a4 as V,W,T as Y,a as q,x as K,B as G,w as U,v as z,D as A,h as J}from"./index-B1ZvlDM_.js";import{s as Q}from"./site-url-en5df9c-.js";import{u as X}from"./use-mcp-client-C_baTEme.js";import{I as Z}from"./integration-icon-UdqaK4j5.js";import{c as ee,u as te,a as se,P as ne,d as le,S as ie}from"./use-connect-companion-xyuasG3f.js";function k(b){const e=y.c(12),{onClose:l,children:s}=b,r=w();let t;e[0]!==l?(t=g=>!g&&l(),e[0]=l,e[1]=t):t=e[1];let d;e[2]!==r?(d=r("reportsOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=d):d=e[3];let o;e[4]!==d?(o=n.jsx(U,{children:n.jsx(K,{children:d})}),e[4]=d,e[5]=o):o=e[5];let x;e[6]!==s||e[7]!==o?(x=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[o,s]}),e[6]=s,e[7]=o,e[8]=x):x=e[8];let i;return e[9]!==t||e[10]!==x?(i=n.jsx(A,{open:!0,onOpenChange:t,children:x}),e[9]=t,e[10]=x,e[11]=i):i=e[11],i}function $(b){const e=y.c(3),{label:l}=b;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(J,{className:"size-4"}),e[0]=s):s=e[0];let r;return e[1]!==l?(r=n.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[s,n.jsx("span",{children:l})]}),e[1]=l,e[2]=r):r=e[2],r}function xe(b){const e=y.c(19),{field:l,onClose:s}=b,r=w();let t;e[0]!==s||e[1]!==r?(t=()=>n.jsx(k,{onClose:s,children:n.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.reportsOnboarding.connectModal.loadError")})}),e[0]=s,e[1]=r,e[2]=t):t=e[2];let d;e[3]!==r?(d=r("reportsOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=d):d=e[4];let o;e[5]!==d?(o=n.jsx($,{label:d}),e[5]=d,e[6]=o):o=e[6];let x;e[7]!==s||e[8]!==o?(x=n.jsx(k,{onClose:s,children:o}),e[7]=s,e[8]=o,e[9]=x):x=e[9];let i;e[10]!==l||e[11]!==s?(i=n.jsx(oe,{field:l,onClose:s}),e[10]=l,e[11]=s,e[12]=i):i=e[12];let g;e[13]!==x||e[14]!==i?(g=n.jsx(M.Suspense,{fallback:x,children:i}),e[13]=x,e[14]=i,e[15]=g):g=e[15];let p;return e[16]!==t||e[17]!==g?(p=n.jsx(L,{fallback:t,children:g}),e[16]=t,e[17]=g,e[18]=p):p=e[18],p}function oe(b){const e=y.c(75),{field:l,onClose:s}=b,r=w(),{org:t}=V();let d;e[0]!==t.id?(d=W.REPORTS(t.id),e[0]=t.id,e[1]=d):d=e[1];const o=d;let x;e[2]!==t.id||e[3]!==t.slug?(x={connectionId:Y,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=x):x=e[4];const i=X(x),{data:g}=q.useSession(),p=g?.user?.id??"";let j;e[5]!==o||e[6]!==t||e[7]!==i?(j={selfClient:i,org:t,cdConnectionId:o},e[5]=o,e[6]=t,e[7]=i,e[8]=j):j=e[8];const f=ee(j);let h;e[9]!==o||e[10]!==t||e[11]!==i||e[12]!==f?(h={selfClient:i,org:t,cdConnectionId:o,siteUrl:f},e[9]=o,e[10]=t,e[11]=i,e[12]=f,e[13]=h):h=e[13];const{cards:S}=te(h);let C;e[14]!==f?(C=Q(f)??void 0,e[14]=f,e[15]=C):C=e[15];let I;e[16]!==o||e[17]!==t||e[18]!==i||e[19]!==f||e[20]!==C||e[21]!==p?(I={selfClient:i,org:t,userId:p,cdConnectionId:o,domain:C,siteUrl:f},e[16]=o,e[17]=t,e[18]=i,e[19]=f,e[20]=C,e[21]=p,e[22]=I):I=e[22];const{connect:O,connectingFieldKey:F,error:T}=se(I);let E;if(e[23]!==S||e[24]!==l){let c;e[26]!==l?(c=u=>u.fieldKey===l,e[26]=l,e[27]=c):c=e[27],E=S.find(c),e[23]=S,e[24]=l,e[25]=E}else E=e[25];const a=E;if(!a){let c;e[28]!==r?(c=r("routes.reportsOnboarding.connectModal.loadError"),e[28]=r,e[29]=c):c=e[29];let u;e[30]!==c?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[30]=c,e[31]=u):u=e[31];let m;return e[32]!==s||e[33]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[32]=s,e[33]=u,e[34]=m):m=e[34],m}const R=ne[a.bindingType];if(R&&a.boundVia!=="oauth"){let c;e[35]!==s?(c=D=>!D&&s(),e[35]=s,e[36]=c):c=e[36];let u;e[37]!==a||e[38]!==O?(u=a.satisfied?void 0:()=>{O(a)},e[37]=a,e[38]=O,e[39]=u):u=e[39];let m;return e[40]!==a||e[41]!==t||e[42]!==R||e[43]!==i||e[44]!==f||e[45]!==c||e[46]!==u?(m=n.jsx(ie,{card:a,provider:R,org:t,selfClient:i,siteUrl:f,open:!0,onOpenChange:c,onOAuthInstead:u}),e[40]=a,e[41]=t,e[42]=R,e[43]=i,e[44]=f,e[45]=c,e[46]=u,e[47]=m):m=e[47],m}if(a.satisfied&&a.linkedConnectionId){let c;e[48]!==r?(c=r("reportsOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=c):c=e[49];let u;e[50]!==c?(u=n.jsx($,{label:c}),e[50]=c,e[51]=u):u=e[51];let m;e[52]!==s||e[53]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[52]=s,e[53]=u,e[54]=m):m=e[54];let D;e[55]!==s?(D=H=>!H&&s(),e[55]=s,e[56]=D):D=e[56];let v;e[57]!==a||e[58]!==t||e[59]!==i||e[60]!==f||e[61]!==D?(v=n.jsx(le,{card:a,org:t,selfClient:i,connectionId:a.linkedConnectionId,contextSiteUrl:f,open:!0,onOpenChange:D}),e[57]=a,e[58]=t,e[59]=i,e[60]=f,e[61]=D,e[62]=v):v=e[62];let _;return e[63]!==m||e[64]!==v?(_=n.jsx(M.Suspense,{fallback:m,children:v}),e[63]=m,e[64]=v,e[65]=_):_=e[65],_}const B=F===a.fieldKey;let N;e[66]!==a||e[67]!==O?(N=()=>{O(a)},e[66]=a,e[67]=O,e[68]=N):N=e[68];let P;return e[69]!==a||e[70]!==T||e[71]!==s||e[72]!==B||e[73]!==N?(P=n.jsx(re,{card:a,connecting:B,error:T,onConnect:N,onClose:s}),e[69]=a,e[70]=T,e[71]=s,e[72]=B,e[73]=N,e[74]=P):P=e[74],P}function re(b){const e=y.c(22),{card:l,connecting:s,error:r,onConnect:t,onClose:d}=b,o=w(),[x,i]=M.useState(!1);x||(i(!0),queueMicrotask(t));let g;e[0]!==s||e[1]!==d?(g=I=>{!I&&s||I||d()},e[0]=s,e[1]=d,e[2]=g):g=e[2];let p;e[3]!==l.icon||e[4]!==l.title?(p=n.jsx(Z,{icon:l.icon,name:l.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=l.icon,e[4]=l.title,e[5]=p):p=e[5];let j;e[6]!==l.title?(j=n.jsx(K,{className:"min-w-0 flex-1",children:l.title}),e[6]=l.title,e[7]=j):j=e[7];let f;e[8]!==p||e[9]!==j?(f=n.jsxs(U,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[p,j]}),e[8]=p,e[9]=j,e[10]=f):f=e[10];let h;e[11]!==l.title||e[12]!==r||e[13]!==t||e[14]!==o?(h=r?n.jsxs("div",{className:"flex flex-col gap-3",children:[n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),n.jsx(G,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:o("routes.reportsOnboarding.companionSection.retry")})]}):n.jsx($,{label:o("reportsOnboarding.connectSourceDialog.connecting",{title:l.title})}),e[11]=l.title,e[12]=r,e[13]=t,e[14]=o,e[15]=h):h=e[15];let S;e[16]!==f||e[17]!==h?(S=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[f,h]}),e[16]=f,e[17]=h,e[18]=S):S=e[18];let C;return e[19]!==g||e[20]!==S?(C=n.jsx(A,{open:!0,onOpenChange:g,children:S}),e[19]=g,e[20]=S,e[21]=C):C=e[21],C}export{xe as C};
@@ -1 +1 @@
1
- import{U as b}from"./url-slug-yKaykGVx.js";import{aE as o,cZ as a,ba as t,aF as e,e8 as i,e6 as r,ec as h,eS as m,e7 as _,cY as g}from"./index-CpKrWBFM.js";const f=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:h("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),S=m.extend({inputSchema:s,outputSchema:s.optional()}),T=o({headers:i(e(),e()).optional()}),y=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)")}),l=256*1024;function d(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=l,{message:`${n} must serialize to at most ${l} bytes`})}const u=4096,p=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"),url_slug:e().nullable().optional().describe("Name of the connection in Studio URLs, unique in the organization. Set it to rename the URL; the old one keeps redirecting."),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().optional().describe("Authentication token (for HTTP connections). Write-only: tool responses never include it."),has_connection_token:g().optional().describe("Whether a connection_token is stored. Set on tool responses."),connection_headers:_([y,T]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:f.nullable().describe("OAuth configuration"),configuration_state:d("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:d("metadata").describe("Additional metadata (includes repository info)"),tools:t(S).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});p.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0,has_connection_token:!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(),connection_token:e().max(u).nullish()});p.omit({has_connection_token:!0}).partial().extend({url_slug:b.nullish(),connection_token:e().max(u).nullish()});function E(n){return n!=null&&"command"in n}function I(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{f as O,E as i,I as p};
1
+ import{U as b}from"./url-slug-Dqg9nWvP.js";import{aE as o,cZ as a,ba as t,aF as e,e8 as i,e6 as r,ec as h,eS as m,e7 as _,cY as g}from"./index-B1ZvlDM_.js";const f=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:h("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),S=m.extend({inputSchema:s,outputSchema:s.optional()}),T=o({headers:i(e(),e()).optional()}),y=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)")}),l=256*1024;function d(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=l,{message:`${n} must serialize to at most ${l} bytes`})}const u=4096,p=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"),url_slug:e().nullable().optional().describe("Name of the connection in Studio URLs, unique in the organization. Set it to rename the URL; the old one keeps redirecting."),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().optional().describe("Authentication token (for HTTP connections). Write-only: tool responses never include it."),has_connection_token:g().optional().describe("Whether a connection_token is stored. Set on tool responses."),connection_headers:_([y,T]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:f.nullable().describe("OAuth configuration"),configuration_state:d("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:d("metadata").describe("Additional metadata (includes repository info)"),tools:t(S).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});p.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0,has_connection_token:!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(),connection_token:e().max(u).nullish()});p.omit({has_connection_token:!0}).partial().extend({url_slug:b.nullish(),connection_token:e().max(u).nullish()});function E(n){return n!=null&&"command"in n}function I(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{f as O,E as i,I as p};