decocms 4.540.1 → 4.542.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 (454) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-ClFvSa3l.js → ActiveShapeUtils-ppN64tl0.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-Cxr7gZFk.js → AlertCircle-RV4AM_8y.js} +1 -1
  3. package/dist/client/assets/{AreaChart-DgmDRfhz.js → AreaChart-B5eHYCMZ.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-5wkW-hEo.js → ArrowLeft-XO66B9Td.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-ze_LLfn6.js → ArrowUp-DpQ-09y4.js} +1 -1
  6. package/dist/client/assets/{BarChart-Toa6_kFI.js → BarChart-rvb3yNLn.js} +1 -1
  7. package/dist/client/assets/{Building02-D7vWgCSn.js → Building02-NRzC_IEp.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-DPKynmNL.js → CartesianChart-BVsrzbFJ.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-8cAW3ovr.js → CategoricalChart-64zykerQ.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-Dap6CDoz.js → CheckCircle-CfYD_Bi6.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-BOIt7T3u.js → ChevronSelectorVertical-C5MARPJN.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-B635wgc1.js → ChevronUp-xR4eZngE.js} +1 -1
  13. package/dist/client/assets/{Copy01-D5FEj5_l.js → Copy01-Dy1KrWO0.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-CwcYwmjF.js → CreditCard01-DVN26JVZ.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-BlJdlZxy.js → DotsVertical-CncVW4wJ.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-VBsMY4mL.js → ErrorBarContext-C5dp8Quc.js} +1 -1
  17. package/dist/client/assets/{Globe04-BvpBdv-m.js → Globe04-BxFc3HLH.js} +1 -1
  18. package/dist/client/assets/{Image01-aiwVgEhl.js → Image01-CaawlkVR.js} +1 -1
  19. package/dist/client/assets/{Key01-Bxg4WT0j.js → Key01-FaGRi3tG.js} +1 -1
  20. package/dist/client/assets/{Link01-CcXDwgg2.js → Link01-B_YWUHoH.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-CAGHvVZ6.js → LinkBroken01-z_Mm0CSf.js} +1 -1
  22. package/dist/client/assets/{Minus-Dsn0b7GK.js → Minus-yAYwM_Ty.js} +1 -1
  23. package/dist/client/assets/{Monitor01-DKCvSUp5.js → Monitor01-Bl7f7T5L.js} +1 -1
  24. package/dist/client/assets/{Play-vsKk_Jz0.js → Play-OByKGnTy.js} +1 -1
  25. package/dist/client/assets/{Plus-Bra09L11.js → Plus-Ccck99Do.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-CaDDFuom.js → ReferenceLine-BxNBuCjR.js} +1 -1
  27. package/dist/client/assets/{SearchMd-CcaPghb6.js → SearchMd-BAGHgvYw.js} +1 -1
  28. package/dist/client/assets/{Sector-Dgqo2T4d.js → Sector-BCmuavOw.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-CLHHYXzS.js → ShoppingBag01-BhoOjVkp.js} +1 -1
  30. package/dist/client/assets/{Sun-D80Oomy0.js → Sun-CZRF_565.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-CucWWNd0.js → SwitchHorizontal01-Ce37vA9c.js} +1 -1
  32. package/dist/client/assets/{Tool01-Btqju7fM.js → Tool01-CHLDtlIL.js} +1 -1
  33. package/dist/client/assets/{Trash01-BrSYsLgM.js → Trash01-BQBP0tUM.js} +1 -1
  34. package/dist/client/assets/{Upload01-DRsgvg8v.js → Upload01-D_q00M49.js} +1 -1
  35. package/dist/client/assets/{UserSquare-D2LgcI23.js → UserSquare-BSsT3MHy.js} +1 -1
  36. package/dist/client/assets/{Users01-YRcnRYKP.js → Users01-C6bE7RDt.js} +1 -1
  37. package/dist/client/assets/{XClose-CjCoL-G7.js → XClose-BjZnEBvF.js} +1 -1
  38. package/dist/client/assets/Zap-CHuT8W6R.js +1 -0
  39. package/dist/client/assets/{ZoomOut-CLslRLDT.js → ZoomOut-CBOWQYet.js} +1 -1
  40. package/dist/client/assets/{access-gate-NRvGMpYz.js → access-gate-BU0Til0A.js} +1 -1
  41. package/dist/client/assets/{add-connection-dialog-ArB48aBC.js → add-connection-dialog-BB5lDWHR.js} +1 -1
  42. package/dist/client/assets/agent-analytics-DvRSJxx0.js +2 -0
  43. package/dist/client/assets/agent-app-B0uhmcWv.js +1 -0
  44. package/dist/client/assets/agent-assets-DtVY4a5g.js +1 -0
  45. package/dist/client/assets/{agent-automation-F4Fj9gGm.js → agent-automation-DcUA7Zto.js} +2 -2
  46. package/dist/client/assets/agent-automations-C9tGxGRj.js +1 -0
  47. package/dist/client/assets/agent-calendar-D4_LWZH3.js +1 -0
  48. package/dist/client/assets/agent-connect-sources-BJ3ZDaf3.js +1 -0
  49. package/dist/client/assets/agent-deck-CACa1iZR.js +1 -0
  50. package/dist/client/assets/agent-e2e-Cn5SS6MS.js +1 -0
  51. package/dist/client/assets/agent-experiments-TwOhraCy.js +1 -0
  52. package/dist/client/assets/agent-file-W_Lb3P1H.js +1 -0
  53. package/dist/client/assets/agent-hosting-CP_GZV0j.js +1 -0
  54. package/dist/client/assets/agent-icon-nQ1AH9dU.js +1 -0
  55. package/dist/client/assets/agent-library-BvH-Q75b.js +1 -0
  56. package/dist/client/assets/agent-library-file-BC8zk1Dl.js +1 -0
  57. package/dist/client/assets/agent-monitor-UYQNblqG.js +1 -0
  58. package/dist/client/assets/agent-overview-BlaBQIjD.js +1 -0
  59. package/dist/client/assets/{agent-releases-B4WDlEVB.js → agent-releases-CAYqdnuz.js} +2 -2
  60. package/dist/client/assets/agent-settings-Lu1EqGNe.js +1 -0
  61. package/dist/client/assets/agent-site-editor-code-BAyfkSPu.js +2 -0
  62. package/dist/client/assets/agent-site-editor-content-CKgCOX3-.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-CqKZe72W.js → agent-site-editor-dBOL06nH.js} +2 -2
  64. package/dist/client/assets/agent-site-editor-preview-B9oFLAt2.js +1 -0
  65. package/dist/client/assets/agent-view-D-sscasX.js +1 -0
  66. package/dist/client/assets/{agent-view-guard-2IDv_f14.js → agent-view-guard-B4NqxjMv.js} +1 -1
  67. package/dist/client/assets/agents-list-DYMJQcr6.js +1 -0
  68. package/dist/client/assets/{ai-providers-D42POTOI.js → ai-providers-Ci2k4cWf.js} +1 -1
  69. package/dist/client/assets/{alert-sh_9lE1j.js → alert-Bsjmz-OK.js} +1 -1
  70. package/dist/client/assets/{analytics-sections-DOBmjBqZ.js → analytics-sections-Nw_65a4t.js} +1 -1
  71. package/dist/client/assets/{api-keys-E7GGN-1o.js → api-keys-D4BF_tKg.js} +1 -1
  72. package/dist/client/assets/api-keys-D_tuzPJP.js +1 -0
  73. package/dist/client/assets/app-editor-hRLD7Ehq.js +1 -0
  74. package/dist/client/assets/{asset-utils-BGF2krWn.js → asset-utils-BSDCnt-j.js} +1 -1
  75. package/dist/client/assets/{auth-BaCW7whq.js → auth-CK6AyRu5.js} +1 -1
  76. package/dist/client/assets/{auth-catchall-WqLBMkpk.js → auth-catchall-CJTrtQsq.js} +1 -1
  77. package/dist/client/assets/{auth-entry-Df4qDDi6.js → auth-entry-CPeTN7o5.js} +1 -1
  78. package/dist/client/assets/{auth-split-layout-QrwyfUaa.js → auth-split-layout-BGf8-EnP.js} +1 -1
  79. package/dist/client/assets/{authenticate-and-persist-oauth-DVw-HHUy.js → authenticate-and-persist-oauth-Bb8BBbsA.js} +1 -1
  80. package/dist/client/assets/automation-list-row-B9IR9kWn.js +1 -0
  81. package/dist/client/assets/{automation-runs-Dzosp28H.js → automation-runs-DnR9pxm5.js} +1 -1
  82. package/dist/client/assets/automations-Bxg30h3H.js +1 -0
  83. package/dist/client/assets/{autosend-Cyz0grx9.js → autosend-DTWIjCgK.js} +1 -1
  84. package/dist/client/assets/{badge-DXrGf1RH.js → badge-BV7rxTvN.js} +1 -1
  85. package/dist/client/assets/{block-document-DZsMfWjg.js → block-document-CQARMaA2.js} +3 -3
  86. package/dist/client/assets/{blocks-preview-workspace-context-oDr51QB4.js → blocks-preview-workspace-context-C2nnj0H9.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-8ODefLbh.js → blocks-tab-states-DhR3pyff.js} +1 -1
  88. package/dist/client/assets/{blog-schema--tzgaEDh.js → blog-schema-YJUL-tEX.js} +1 -1
  89. package/dist/client/assets/{buckets-D4zl2kA5.js → buckets-C4JU-8qW.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-B9gVIbTl.js → build-improve-prompt-doc-Bv3kayMV.js} +2 -2
  91. package/dist/client/assets/{calendar-_mtTQBPC.js → calendar-ym6zGcEl.js} +1 -1
  92. package/dist/client/assets/{capability-load-error-CODEJJ02.js → capability-load-error-7V5aWr5c.js} +1 -1
  93. package/dist/client/assets/category-editor-CdId4wR5.js +1 -0
  94. package/dist/client/assets/{cdn-tab-CYZVXn7M.js → cdn-tab-2DyF7VRR.js} +1 -1
  95. package/dist/client/assets/{chart-DciC8HyE.js → chart-eh3rIFzp.js} +1 -1
  96. package/dist/client/assets/{chat-context-q7TqJ1C-.js → chat-context-kqrW-XPR.js} +5 -5
  97. package/dist/client/assets/{chat-draft-DA1-_rtX.js → chat-draft-CRTo5XoS.js} +1 -1
  98. package/dist/client/assets/{checkbox-oUIybZae.js → checkbox-aDQexY19.js} +1 -1
  99. package/dist/client/assets/choose-editor-D9t0sU_N.js +1 -0
  100. package/dist/client/assets/{cli-auth-success-XAbb0SQg.js → cli-auth-success-BSvz1123.js} +1 -1
  101. package/dist/client/assets/{client-icons-Ct-9O-sI.js → client-icons-DGnfsAP4.js} +1 -1
  102. package/dist/client/assets/cms-settings-editor-BCSWQ-Po.js +1 -0
  103. package/dist/client/assets/{collapsible-CF6QTwAQ.js → collapsible-Cx6KFD5C.js} +1 -1
  104. package/dist/client/assets/collection-detail-ZxhaHEpw.js +1 -0
  105. package/dist/client/assets/{collection-display-button-DtZ_r2fC.js → collection-display-button-Bswg3uCR.js} +1 -1
  106. package/dist/client/assets/{collection-search-cs3sNNIu.js → collection-search-B3vfcK1n.js} +1 -1
  107. package/dist/client/assets/{collection-table-wrapper-BvylNn6r.js → collection-table-wrapper-Cs4FMkXQ.js} +1 -1
  108. package/dist/client/assets/{collection-tabs-CS3-Zvq6.js → collection-tabs-BdhCjBRd.js} +1 -1
  109. package/dist/client/assets/{combobox-CpjBTDRG.js → combobox-DXDZmm8e.js} +1 -1
  110. package/dist/client/assets/{command-ChermTHn.js → command-De9pJLwH.js} +1 -1
  111. package/dist/client/assets/{companion-mcps-section-bNAA5L8t.js → companion-mcps-section-B-ueLE1c.js} +1 -1
  112. package/dist/client/assets/{config-D9RpcTcN.js → config-Bakd4Y8w.js} +1 -1
  113. package/dist/client/assets/{connect-BEDMehlu.js → connect-BMYdSTT8.js} +1 -1
  114. package/dist/client/assets/{connect-layout-DLeNmrtI.js → connect-layout-BpMetD5F.js} +1 -1
  115. package/dist/client/assets/{connect-source-dialog-wF7gjtEV.js → connect-source-dialog-BkUskMwn.js} +1 -1
  116. package/dist/client/assets/{connection-lIRd-x5L.js → connection-C-NllGni.js} +1 -1
  117. package/dist/client/assets/{connection-card-BJPC2LD1.js → connection-card-DZD_rAWh.js} +1 -1
  118. package/dist/client/assets/connection-detail-BRz9FZ83.js +1 -0
  119. package/dist/client/assets/{connection-form-helpers-9iSTOC_0.js → connection-form-helpers-DmavsUyJ.js} +1 -1
  120. package/dist/client/assets/connections-Cj6HJEn1.js +1 -0
  121. package/dist/client/assets/{content-tab-CMOs3pI-.js → content-tab-DkKuIDyy.js} +9 -9
  122. package/dist/client/assets/context-C2r290S4.js +1 -0
  123. package/dist/client/assets/{context-menu-BjIhJNTh.js → context-menu-CiH3Gj0R.js} +1 -1
  124. package/dist/client/assets/context-shell-BwT70eIn.js +36 -0
  125. package/dist/client/assets/{core.esm-pg4Fq_TB.js → core.esm-DQyn-kJS.js} +1 -1
  126. package/dist/client/assets/{create-organization-dialog-Cvs1ExBM.js → create-organization-dialog-CiZys2Ku.js} +1 -1
  127. package/dist/client/assets/{daily-pulse-CBbiZh0k.js → daily-pulse-CMy69HGI.js} +1 -1
  128. package/dist/client/assets/discover-DQ9dXI7n.js +1 -0
  129. package/dist/client/assets/{domain-settings-C-gJGQ4j.js → domain-settings-5g_MWfwe.js} +1 -1
  130. package/dist/client/assets/{drawer-Bqg0yBDx.js → drawer-DDmudFbW.js} +1 -1
  131. package/dist/client/assets/{editor-mPZ0kVNv.js → editor-BqqnxL88.js} +1 -1
  132. package/dist/client/assets/{editor-classes-BpwwAF3C.js → editor-classes-D-ez-qBv.js} +1 -1
  133. package/dist/client/assets/{empty-state-B9oIyVIp.js → empty-state-C7LII3ZM.js} +1 -1
  134. package/dist/client/assets/{empty-state-C79vgg_z.js → empty-state-iEpXVBwd.js} +1 -1
  135. package/dist/client/assets/{experiments-tab-DPfc6GOy.js → experiments-tab-DGo_lvyv.js} +1 -1
  136. package/dist/client/assets/{experiments-tab-choice-8xzKkZlX.js → experiments-tab-choice-B_rL9_Nx.js} +1 -1
  137. package/dist/client/assets/{extract-connection-data-D9hWJKHz.js → extract-connection-data-DYwFbKkm.js} +1 -1
  138. package/dist/client/assets/{feature-gate-BtqZg2be.js → feature-gate-E1LoWMx3.js} +1 -1
  139. package/dist/client/assets/{feature-paywall-D6hFCms_.js → feature-paywall-CDMJv8wq.js} +1 -1
  140. package/dist/client/assets/file-explorer-CsD267WS.js +2 -0
  141. package/dist/client/assets/{file-preview-B1hazn-f.js → file-preview-Cj5pBQv2.js} +1 -1
  142. package/dist/client/assets/{file-share-button-CWVL8de8.js → file-share-button-DOup2WzD.js} +1 -1
  143. package/dist/client/assets/{file-type-icon-CszJOHRP.js → file-type-icon-BgzyV542.js} +1 -1
  144. package/dist/client/assets/folder-icon-DY3kBxQc.js +1 -0
  145. package/dist/client/assets/{form-CpJsHKNZ.js → form-gDNfP07W.js} +1 -1
  146. package/dist/client/assets/{general-CQlaDytM.js → general-CWpdg4Hl.js} +1 -1
  147. package/dist/client/assets/{github-icon-CtxsZ4zj.js → github-icon-DAxkwypb.js} +1 -1
  148. package/dist/client/assets/{held-block-view-CqquZXR8.js → held-block-view-C3Ird9F-.js} +3 -3
  149. package/dist/client/assets/home-TaMnsEq5.js +1 -0
  150. package/dist/client/assets/{hosted-publish-feedback-CutWUEfr.js → hosted-publish-feedback-CVQKURab.js} +1 -1
  151. package/dist/client/assets/{icon-button-i_FWnpGN.js → icon-button-CTmBGRaQ.js} +1 -1
  152. package/dist/client/assets/{index-Du1V-xNi.js → index-15xKR9ar.js} +1 -1
  153. package/dist/client/assets/{index-COnziA0Z.js → index-BWpKrclg.js} +33 -33
  154. package/dist/client/assets/{index-CUvxA4QU.js → index-C-GH7ZUH.js} +1 -1
  155. package/dist/client/assets/{index-BdKCEpsg.js → index-CFDA2Gyk.js} +1 -1
  156. package/dist/client/assets/{index-_xgP5c6W.js → index-CXhEXTV0.js} +1 -1
  157. package/dist/client/assets/{index-Duw_6D72.js → index-Cbe7caeT.js} +1 -1
  158. package/dist/client/assets/{index-Bb3_Vv2S.js → index-Cjtut9JA.js} +1 -1
  159. package/dist/client/assets/{index-Dpy3WDHU.js → index-CzqNFJgA.js} +1 -1
  160. package/dist/client/assets/index-D3fuewCp.js +4 -0
  161. package/dist/client/assets/{index-Bm91KVNh.js → index-DGoeX32I.js} +1 -1
  162. package/dist/client/assets/{index-CmmBgJe2.js → index-DKRm_nGH.js} +2 -2
  163. package/dist/client/assets/{index-BMsnE8rU.js → index-G8_ivZDF.js} +1 -1
  164. package/dist/client/assets/{index-N3lvHn2Z.js → index-Qn_AZuwz.js} +1 -1
  165. package/dist/client/assets/index-_wqQ3Hkr.css +1 -0
  166. package/dist/client/assets/{index-CVG6lJ_v.js → index-lchr3O79.js} +1 -1
  167. package/dist/client/assets/{index-redirect-CWUepeSE.js → index-redirect-COc2iMJs.js} +1 -1
  168. package/dist/client/assets/{index-yKC5LgkM.js → index-ylByMMZI.js} +1 -1
  169. package/dist/client/assets/{infiniteQueryObserver-Bj3tjA3X.js → infiniteQueryObserver-CbIPWgZj.js} +1 -1
  170. package/dist/client/assets/{infra-billing-CeYZXwq2.js → infra-billing-gMBDswwS.js} +1 -1
  171. package/dist/client/assets/{input-BCYkWTfH.js → input-Cf50b9sU.js} +3 -3
  172. package/dist/client/assets/{input-C2ECoWjM.js → input-CgS5sNmj.js} +1 -1
  173. package/dist/client/assets/{integration-icon-DfwU4DVr.js → integration-icon-BQ9jVlvt.js} +1 -1
  174. package/dist/client/assets/{jira-icon-BoR-oDVU.js → jira-icon-CzGOnWKo.js} +1 -1
  175. package/dist/client/assets/{label-BGevM5Zb.js → label-DzRNwB_s.js} +1 -1
  176. package/dist/client/assets/{layout-30w4Crds.js → layout-d2_2jbV9.js} +1 -1
  177. package/dist/client/assets/{legacy-agents-deep-Bg1OmBvu.js → legacy-agents-deep-CyFzwt79.js} +1 -1
  178. package/dist/client/assets/{legacy-main-redirect-C51h-pXK.js → legacy-main-redirect-B0hY-Z0B.js} +1 -1
  179. package/dist/client/assets/library-CS74d8fl.js +1 -0
  180. package/dist/client/assets/library-tab-cQd24fFO.js +162 -0
  181. package/dist/client/assets/{login-BGcTYLxc.js → login-BB7FreRC.js} +1 -1
  182. package/dist/client/assets/{markdown-DGqjdf2p.js → markdown-CkZaCBow.js} +1 -1
  183. package/dist/client/assets/{mcp-app-renderer-CPV0UyxX.js → mcp-app-renderer-BVLr3WK6.js} +1 -1
  184. package/dist/client/assets/{mcp-oauth-Byx9hV1d.js → mcp-oauth-DWlxkjKx.js} +1 -1
  185. package/dist/client/assets/{mcp-oauth-we2DqBn9.js → mcp-oauth-KJGfGjkD.js} +1 -1
  186. package/dist/client/assets/{members-Cg4UJ7N1.js → members-BvQ1xqU5.js} +1 -1
  187. package/dist/client/assets/{memory-CphWYQkc.js → memory-_Oguj4if.js} +1 -1
  188. package/dist/client/assets/{mini-report-page-O_faAMnc.js → mini-report-page-BC7L0ipE.js} +1 -1
  189. package/dist/client/assets/mock-board-BC3rEvaU.js +81 -0
  190. package/dist/client/assets/{monaco-editor-CS14LLrn.js → monaco-editor-zzUPRyBn.js} +1 -1
  191. package/dist/client/assets/monitoring-ilB7hU6H.js +1 -0
  192. package/dist/client/assets/{monitoring-stats-row--haENI5d.js → monitoring-stats-row-DZ9HvRuy.js} +1 -1
  193. package/dist/client/assets/{multi-select-B-zuXpH9.js → multi-select-D2pKycte.js} +1 -1
  194. package/dist/client/assets/{mustache-CQoqMaLT.js → mustache-BBgPaDqo.js} +1 -1
  195. package/dist/client/assets/{named-rule-uses-BFiLyzQ0.js → named-rule-uses-8PEXqP7W.js} +1 -1
  196. package/dist/client/assets/{new-project-dialog-aU8scugU.js → new-project-dialog-Dd5pVssc.js} +1 -1
  197. package/dist/client/assets/{oauth-callback-DKy_B6sS.js → oauth-callback-DIj2YLwh.js} +1 -1
  198. package/dist/client/assets/{oauth-callback-ai-provider-B1IhX-iu.js → oauth-callback-ai-provider-zp6PPNfP.js} +1 -1
  199. package/dist/client/assets/{onboarding-BJKtDuRG.js → onboarding-CSUeJ8OK.js} +1 -1
  200. package/dist/client/assets/openai-conversation-CT9LWWrS.js +3 -0
  201. package/dist/client/assets/{optimistic-project-sidebar-views-ynymb8s7.js → optimistic-project-sidebar-views-BhoNMrVo.js} +1 -1
  202. package/dist/client/assets/{order-monitor-day-DWL08pAX.js → order-monitor-day-D-Ti4NDE.js} +1 -1
  203. package/dist/client/assets/{organization-choice-DUcNXaGm.js → organization-choice-Bs2Llr3r.js} +1 -1
  204. package/dist/client/assets/{orgs-H9UBPKXM.js → orgs-Bs_15YVG.js} +1 -1
  205. package/dist/client/assets/{page-seo-form-DO9Vic5L.js → page-seo-form-DizfAl8r.js} +1 -1
  206. package/dist/client/assets/{pair-BIX6BY2B.js → pair-BFVxcKKp.js} +1 -1
  207. package/dist/client/assets/{parse-sections-BLo4hVcc.js → parse-sections-BVn3AvAz.js} +1 -1
  208. package/dist/client/assets/plan-_57doTJd.js +1 -0
  209. package/dist/client/assets/{plan-ladder-CjIFfgE3.js → plan-ladder-DVSwNgR2.js} +1 -1
  210. package/dist/client/assets/{plan-usage-card-BaLOCqds.js → plan-usage-card-B64WjIMI.js} +1 -1
  211. package/dist/client/assets/{popover-CDni3562.js → popover-ClEv7Zyf.js} +1 -1
  212. package/dist/client/assets/post-calendar-CMHuZuip.js +1 -0
  213. package/dist/client/assets/{post-editor-Bpl8R1AD.js → post-editor-CqgW2_fW.js} +2 -2
  214. package/dist/client/assets/{preview-content-D6Uu7-0I.js → preview-content-BSsfQ6ZE.js} +1 -1
  215. package/dist/client/assets/{preview-dialog-BirKakH8.js → preview-dialog-DBnDC8gE.js} +1 -1
  216. package/dist/client/assets/{preview-panel-pMNaSC76.js → preview-panel-DQBuS4_f.js} +1 -1
  217. package/dist/client/assets/{preview-tab-86IcFjhE.js → preview-tab-_86kIh0E.js} +3 -3
  218. package/dist/client/assets/{product-picker-dialog-QF0K31fY.js → product-picker-dialog-C8oMVTn6.js} +1 -1
  219. package/dist/client/assets/{profile-CeSI4XH9.js → profile-Bsx5sLNH.js} +1 -1
  220. package/dist/client/assets/project-app-view-C5QghQe6.js +1 -0
  221. package/dist/client/assets/project-apps-oe6VMb11.js +1 -0
  222. package/dist/client/assets/{project-feed-WkJFdN5v.js → project-feed-DAjFP_Ib.js} +1 -1
  223. package/dist/client/assets/{project-icon-BjJ8vKrn.js → project-icon-BKeF243f.js} +1 -1
  224. package/dist/client/assets/project-reports-uzkOMqSE.js +1 -0
  225. package/dist/client/assets/project-tasks-jNTlksUk.js +1 -0
  226. package/dist/client/assets/projects-BaKJExhs.js +1 -0
  227. package/dist/client/assets/{projects-empty-state-BfLeCdxn.js → projects-empty-state-B_kHw_MZ.js} +1 -1
  228. package/dist/client/assets/{prompts-CEZb6CxD.js → prompts-Br3MvaH9.js} +1 -1
  229. package/dist/client/assets/record-editor-B5oAS_5D.js +1 -0
  230. package/dist/client/assets/redirect-editor-CSg_SJ3I.js +1 -0
  231. package/dist/client/assets/{releases-api-ByaSp1jR.js → releases-api-DwHPczFb.js} +1 -1
  232. package/dist/client/assets/reports-CL4pYm69.js +1 -0
  233. package/dist/client/assets/{reports-U2_3nuZM.js → reports-iqRQlH1z.js} +1 -1
  234. package/dist/client/assets/reports-onboarding-Bm9Wvkaq.js +1 -0
  235. package/dist/client/assets/reports-tab-DesQ1SQx.js +2 -0
  236. package/dist/client/assets/repositories-C-WO-gxz.js +1 -0
  237. package/dist/client/assets/{repositories-CpQ7e-w5.js → repositories-DUBWep32.js} +1 -1
  238. package/dist/client/assets/{repository-binding-BGeZ0DuT.js → repository-binding-Bpq6heaQ.js} +1 -1
  239. package/dist/client/assets/{repository-import-picker-_KegTBCz.js → repository-import-picker-DxJJpcCz.js} +1 -1
  240. package/dist/client/assets/{repository-picker-CU40xoJ7.js → repository-picker-P8Asvsk4.js} +1 -1
  241. package/dist/client/assets/{require-capability-B4rUwk-N.js → require-capability-B-uxpRvL.js} +1 -1
  242. package/dist/client/assets/{required-auth-layout-C2OmldxX.js → required-auth-layout-DYZU5vk_.js} +1 -1
  243. package/dist/client/assets/{reset-password-DcH680r3.js → reset-password-Bs_JmNWK.js} +1 -1
  244. package/dist/client/assets/{resizable-GdeSoBXC.js → resizable-vbjrp9Su.js} +1 -1
  245. package/dist/client/assets/{resolve-tab-icon-DyiyXAmc.js → resolve-tab-icon-CzFxm7IQ.js} +1 -1
  246. package/dist/client/assets/{review-settings-DWVxOdsw.js → review-settings-CsHCgNLm.js} +1 -1
  247. package/dist/client/assets/roles-C-6Op6OQ.js +1 -0
  248. package/dist/client/assets/route-Bdui6QXz.js +1 -0
  249. package/dist/client/assets/route-BlJ-TDEK.js +1 -0
  250. package/dist/client/assets/route-Cr42SuLO.js +1 -0
  251. package/dist/client/assets/{sandbox-lifecycle-context-D2UA9HUf.js → sandbox-lifecycle-context-D9eDp86x.js} +1 -1
  252. package/dist/client/assets/{schema-CB4Vxu7L.js → schema-Cd1llToh.js} +1 -1
  253. package/dist/client/assets/{schema-BYBruCaH.js → schema-DzZBw0EW.js} +1 -1
  254. package/dist/client/assets/{scroll-area-BUyfS5TA.js → scroll-area-CwuazZb5.js} +1 -1
  255. package/dist/client/assets/{search-input-T7tfUlv8.js → search-input-D2iQ_3lu.js} +1 -1
  256. package/dist/client/assets/{search-toggle-DL7-awnb.js → search-toggle-Cw7hl_Xx.js} +1 -1
  257. package/dist/client/assets/{secret-picker-BslDVKKv.js → secret-picker-Ct1DoTR9.js} +1 -1
  258. package/dist/client/assets/{secrets-Bqd4jPVf.js → secrets-CBPyw7ba.js} +1 -1
  259. package/dist/client/assets/{section-array-field-BWV4uW6Z.js → section-array-field-BXLl3jB0.js} +1 -1
  260. package/dist/client/assets/sections-DRD1aU5D.js +1 -0
  261. package/dist/client/assets/sections-editor-B628EbZ4.js +1 -0
  262. package/dist/client/assets/{select-BaNSHFfS.js → select-BMteQTWS.js} +1 -1
  263. package/dist/client/assets/{select-model-DvLnkRjD.js → select-model-ujDDmA_R.js} +1 -1
  264. package/dist/client/assets/seo-editor-nXgc_X38.js +1 -0
  265. package/dist/client/assets/{separator-D-a0pq5E.js → separator-l2LsOpLi.js} +1 -1
  266. package/dist/client/assets/settings-tab-Cj4D3Abl.js +1 -0
  267. package/dist/client/assets/{sheet-DvSGxi5a.js → sheet-BW-FxyJZ.js} +1 -1
  268. package/dist/client/assets/shell-layout-BbFvnpcf.js +1 -0
  269. package/dist/client/assets/{site-draft-actions-Cy4yCAlU.js → site-draft-actions-9GNFURGo.js} +1 -1
  270. package/dist/client/assets/{site-draft-view-C07YNlzV.js → site-draft-view-DhCorNAk.js} +2 -2
  271. package/dist/client/assets/site-editor-8rMP2pUf.js +1 -0
  272. package/dist/client/assets/{site-editor-toast-CH9jUz3L.js → site-editor-toast-QHleRFN5.js} +1 -1
  273. package/dist/client/assets/skill-md-ChfVs4uF.js +2 -0
  274. package/dist/client/assets/skills-ApZ_uT4M.js +1 -0
  275. package/dist/client/assets/{slider-eIUNwmro.js → slider-DtzvJZ1j.js} +1 -1
  276. package/dist/client/assets/{sortable.esm-ChXVP1eQ.js → sortable.esm-DNzjY6xb.js} +1 -1
  277. package/dist/client/assets/{sso-DdFStQXx.js → sso-Con6Y9JD.js} +1 -1
  278. package/dist/client/assets/{suggestion-s4BFDhSc.js → suggestion-BgdlUdcB.js} +1 -1
  279. package/dist/client/assets/{switch-C0t-igJf.js → switch-Bv0wLEBx.js} +1 -1
  280. package/dist/client/assets/{symbol-BT27QHWj.js → symbol-CJoI4vsX.js} +1 -1
  281. package/dist/client/assets/{synced-repos-CqoJDfXB.js → synced-repos-Bdx0Lzti.js} +1 -1
  282. package/dist/client/assets/{tab-icon-glyph-BWPb5Xfp.js → tab-icon-glyph-CSlj-TVq.js} +1 -1
  283. package/dist/client/assets/{table-KCysjL80.js → table-CheWM6KL.js} +1 -1
  284. package/dist/client/assets/{tabs-CoLoYhlT.js → tabs-CjWwohzM.js} +1 -1
  285. package/dist/client/assets/{task-assignee-avatar-DAh0DA3d.js → task-assignee-avatar-DwSiTsoy.js} +1 -1
  286. package/dist/client/assets/{task-board-CrNZ__0e.js → task-board-L6ZGzY-s.js} +1 -1
  287. package/dist/client/assets/{task-route-DKvZDUIz.js → task-route-D7Tzzgt_.js} +1 -1
  288. package/dist/client/assets/{task-status-Ra7_uhYM.js → task-status-FHJjKh4u.js} +1 -1
  289. package/dist/client/assets/taskboard-analytics-kV8i_37N.js +1 -0
  290. package/dist/client/assets/{tasks-CUiZakj6.js → tasks-3fvPlwxK.js} +3 -3
  291. package/dist/client/assets/tasks-BImUOCfZ.js +1 -0
  292. package/dist/client/assets/{textarea-C_fBPqU6.js → textarea-BNvvIWSZ.js} +1 -1
  293. package/dist/client/assets/thread-analytics-DOn_63z0.js +1 -0
  294. package/dist/client/assets/{thread-intent-4tNJ-MPs.js → thread-intent-DjvP3GsU.js} +1 -1
  295. package/dist/client/assets/thread-route-B3uNqVbb.js +1 -0
  296. package/dist/client/assets/{thread-route-Bnw3gplh.js → thread-route-BOOkt7de.js} +1 -1
  297. package/dist/client/assets/{thread-sheet-body-BwIWxLs3.js → thread-sheet-body-sjcfE700.js} +1 -1
  298. package/dist/client/assets/{time-range-picker-DXIxiKEP.js → time-range-picker-BostqQTB.js} +1 -1
  299. package/dist/client/assets/{toggle-group-ythhcZKM.js → toggle-group-BAFBdL9F.js} +1 -1
  300. package/dist/client/assets/{tool-namespace-BTv6Xybs.js → tool-namespace-CG1Oreso.js} +1 -1
  301. package/dist/client/assets/{toolbar-icon-button-dgGE6Jet.js → toolbar-icon-button-CnXJyVJt.js} +1 -1
  302. package/dist/client/assets/{tooltip-D8ZXcwhe.js → tooltip-D2ANqV2w.js} +1 -1
  303. package/dist/client/assets/{tooltipContext-DziaRNob.js → tooltipContext-DvKfbID4.js} +1 -1
  304. package/dist/client/assets/{track-D30a8sx3.js → track-BA-6upge.js} +1 -1
  305. package/dist/client/assets/{types-CofNWIMh.js → types-BNmsSext.js} +1 -1
  306. package/dist/client/assets/{url-slug-se91w2Rf.js → url-slug-DcB6_J0W.js} +1 -1
  307. package/dist/client/assets/{usage-stats-B8cFnQJA.js → usage-stats-I2nqy87E.js} +1 -1
  308. package/dist/client/assets/{use-ai-providers-DTLn4WND.js → use-ai-providers-BcLfhqAn.js} +1 -1
  309. package/dist/client/assets/{use-apply-named-rule-HLQawGs9.js → use-apply-named-rule-CdtINk0A.js} +1 -1
  310. package/dist/client/assets/{use-automations-BgkyRpI7.js → use-automations-DX8SlLEI.js} +1 -1
  311. package/dist/client/assets/{use-autosave-Bdhhmkhm.js → use-autosave-c4cGzjJa.js} +1 -1
  312. package/dist/client/assets/{use-chat-layout-state-DNSQAhNn.js → use-chat-layout-state-CyqukwDV.js} +1 -1
  313. package/dist/client/assets/{use-clock-tick-CRkdqRFq.js → use-clock-tick-CXtcWsca.js} +1 -1
  314. package/dist/client/assets/{use-cms-publish-actions-ijHf3SXF.js → use-cms-publish-actions-BDOdjoX5.js} +1 -1
  315. package/dist/client/assets/{use-connect-companion-CrnfY-x7.js → use-connect-companion-pjD5dMZl.js} +1 -1
  316. package/dist/client/assets/{use-connection-BOMkN6q_.js → use-connection-CZNQu-z2.js} +1 -1
  317. package/dist/client/assets/{use-copy-D-ZLjAxF.js → use-copy-Bq-mz0ld.js} +1 -1
  318. package/dist/client/assets/{use-create-virtual-mcp-BTQTbo6V.js → use-create-virtual-mcp-BVwiobb2.js} +1 -1
  319. package/dist/client/assets/{use-date-fns-locale-B5UxfCyN.js → use-date-fns-locale-CLYhNSnw.js} +1 -1
  320. package/dist/client/assets/{use-debounced-autosave-CSj5KwPH.js → use-debounced-autosave-Cxe8yde_.js} +1 -1
  321. package/dist/client/assets/{use-debounced-value-tZ4DXPdN.js → use-debounced-value-CqLWq6L2.js} +1 -1
  322. package/dist/client/assets/{use-deco-credits-C0z_exCV.js → use-deco-credits-C26dK60_.js} +1 -1
  323. package/dist/client/assets/{use-decopilot-events-CsyvAJLs.js → use-decopilot-events-Dg011Qgn.js} +1 -1
  324. package/dist/client/assets/{use-delete-connection-fTuP_lVU.js → use-delete-connection-DzeFDNj4.js} +1 -1
  325. package/dist/client/assets/{use-deployment-admin-_9kJl1R4.js → use-deployment-admin-COukxauw.js} +1 -1
  326. package/dist/client/assets/{use-entitlements-Bek8GQfU.js → use-entitlements-Bxptpo8e.js} +1 -1
  327. package/dist/client/assets/{use-fast-preview-draft-url-TbXAala5.js → use-fast-preview-draft-url-DWrGmO4E.js} +1 -1
  328. package/dist/client/assets/{use-file-configs-BPOIBiEJ.js → use-file-configs-DAoix9gu.js} +1 -1
  329. package/dist/client/assets/{use-inbox-feed-CEGPGrQS.js → use-inbox-feed-CEHyMhUC.js} +1 -1
  330. package/dist/client/assets/{use-infinite-scroll-BK7m1Rbc.js → use-infinite-scroll-CojsIRJO.js} +1 -1
  331. package/dist/client/assets/{use-join-requests-DSY52QIf.js → use-join-requests-GMVGPaSk.js} +1 -1
  332. package/dist/client/assets/{use-main-panel-tabs-DKwC6O2O.js → use-main-panel-tabs-DXx3VvH2.js} +1 -1
  333. package/dist/client/assets/{use-mcp-auth-status-DZTmNHLl.js → use-mcp-auth-status-CvV54_ol.js} +1 -1
  334. package/dist/client/assets/{use-mcp-client-CNQ2UmVO.js → use-mcp-client-zIBQco5Q.js} +1 -1
  335. package/dist/client/assets/{use-mcp-prompts-DDgSZA70.js → use-mcp-prompts-XayY9yfQ.js} +1 -1
  336. package/dist/client/assets/{use-mcp-tools-F7OlrZvj.js → use-mcp-tools-BmZF8fTN.js} +1 -1
  337. package/dist/client/assets/{use-mobile-DccFwPqc.js → use-mobile-CoPLJ8cu.js} +1 -1
  338. package/dist/client/assets/{use-move-blocks-ClZ1itdH.js → use-move-blocks-Ck5rS_vn.js} +1 -1
  339. package/dist/client/assets/{use-navigate-to-agent-D_4FOoK_.js → use-navigate-to-agent-DqWY18b4.js} +1 -1
  340. package/dist/client/assets/{use-org-fs-DlkRCXe3.js → use-org-fs-B4wvUwJj.js} +1 -1
  341. package/dist/client/assets/{use-org-repo-syncs-Cr5sGILp.js → use-org-repo-syncs-D-0WnIj6.js} +1 -1
  342. package/dist/client/assets/{use-org-sso-_0yCR_2x.js → use-org-sso-sTi3oL5_.js} +1 -1
  343. package/dist/client/assets/{use-organization-roles-DjEiTO-o.js → use-organization-roles-DXXkhsvq.js} +1 -1
  344. package/dist/client/assets/{use-organization-settings-DApKHEhs.js → use-organization-settings-D_5fr-OI.js} +1 -1
  345. package/dist/client/assets/{use-panel-navigate-DEzceHY3.js → use-panel-navigate-nriEb2Qz.js} +1 -1
  346. package/dist/client/assets/{use-project-native-view-presence-CzFo9pRQ.js → use-project-native-view-presence-Bdl4n5BM.js} +1 -1
  347. package/dist/client/assets/use-project-scope-CdqclLu1.js +1 -0
  348. package/dist/client/assets/{use-recent-apps-BJGzapK6.js → use-recent-apps-6oU0G5sy.js} +1 -1
  349. package/dist/client/assets/{use-releases-CRrtlof1.js → use-releases-CjPNvHz7.js} +1 -1
  350. package/dist/client/assets/{use-reports-diagnostic-kKOlKnuD.js → use-reports-diagnostic-CbLn3JeW.js} +1 -1
  351. package/dist/client/assets/{use-sandbox-events-CBidgN1S.js → use-sandbox-events-C3mgE5Ut.js} +1 -1
  352. package/dist/client/assets/{use-secrets-CF7cOK-X.js → use-secrets-DMgYR7J2.js} +1 -1
  353. package/dist/client/assets/{use-section-preview-base-aV2rnRKl.js → use-section-preview-base-CJSLbEeV.js} +1 -1
  354. package/dist/client/assets/{use-session-runtime-DAUgnVml.js → use-session-runtime-HJpkQoy0.js} +1 -1
  355. package/dist/client/assets/{use-sidebar-collapsed-BWB98fPF.js → use-sidebar-collapsed-DGKLEITN.js} +1 -1
  356. package/dist/client/assets/{use-tags-C9Y_8zUq.js → use-tags-C5S50qhF.js} +1 -1
  357. package/dist/client/assets/{use-task-board-analytics-D0U09TNC.js → use-task-board-analytics-BhLHNvA-.js} +1 -1
  358. package/dist/client/assets/{use-task-board-events-BnMcxz87.js → use-task-board-events-CWQQpnEy.js} +1 -1
  359. package/dist/client/assets/{use-task-board-item-prs-Cm4keV8Q.js → use-task-board-item-prs-a7ezuDRL.js} +1 -1
  360. package/dist/client/assets/use-task-board-prompts-DonCfR5m.js +1 -0
  361. package/dist/client/assets/{use-task-metadata-OcqiZ2kJ.js → use-task-metadata-MAOPH7xT.js} +1 -1
  362. package/dist/client/assets/use-thread-analytics-B2fKyMxQ.js +1 -0
  363. package/dist/client/assets/{use-thread-outputs-ozdLQUlC.js → use-thread-outputs-vH0sJUqm.js} +1 -1
  364. package/dist/client/assets/useInfiniteQuery-CFafSHXd.js +1 -0
  365. package/dist/client/assets/{useQueries-TfPC02wF.js → useQueries-Qve4MUYw.js} +1 -1
  366. package/dist/client/assets/useSuspenseInfiniteQuery-D_oVQ9bL.js +1 -0
  367. package/dist/client/assets/{users-CM3rnXWW.js → users-DHtbHEKw.js} +1 -1
  368. package/dist/client/assets/{utils-CsFkMYtG.js → utils-BoR7m7ir.js} +1 -1
  369. package/dist/client/assets/variant-calendar-DSZCP6Sl.js +1 -0
  370. package/dist/client/assets/{variant-matcher-override-CbINPKEm.js → variant-matcher-override-Cvh79vYa.js} +1 -1
  371. package/dist/client/assets/{view-header-CZ36cUo3.js → view-header-DTW0kjf6.js} +1 -1
  372. package/dist/client/assets/{virtual-mcp-C73-2MCU.js → virtual-mcp-RiqyMxQd.js} +1 -1
  373. package/dist/client/assets/{watch-sse-pool-CbGDmnzl.js → watch-sse-pool-6veZzsu7.js} +1 -1
  374. package/dist/client/index.html +2 -2
  375. package/dist/server/server.js +1 -1
  376. package/package.json +1 -1
  377. package/dist/client/assets/agent-analytics-BcCIFcf5.js +0 -2
  378. package/dist/client/assets/agent-app-BTGawEAl.js +0 -1
  379. package/dist/client/assets/agent-assets-BJxi96mC.js +0 -1
  380. package/dist/client/assets/agent-automations-DPdxPC74.js +0 -1
  381. package/dist/client/assets/agent-calendar-DmZ4-S9J.js +0 -1
  382. package/dist/client/assets/agent-connect-sources-DiS5leUi.js +0 -1
  383. package/dist/client/assets/agent-deck-oywJhoOr.js +0 -1
  384. package/dist/client/assets/agent-e2e-Ckvaovne.js +0 -1
  385. package/dist/client/assets/agent-experiments-CDSby3Jb.js +0 -1
  386. package/dist/client/assets/agent-file-Bi6WzPE2.js +0 -1
  387. package/dist/client/assets/agent-hosting-DwY3IDTG.js +0 -1
  388. package/dist/client/assets/agent-icon-r8Z1kQx0.js +0 -1
  389. package/dist/client/assets/agent-library-Bo9r99Ao.js +0 -1
  390. package/dist/client/assets/agent-library-file-BD-Hx5H6.js +0 -1
  391. package/dist/client/assets/agent-monitor-B6G8_tf4.js +0 -1
  392. package/dist/client/assets/agent-overview-BNTC3CuC.js +0 -1
  393. package/dist/client/assets/agent-settings-DrwNvgfn.js +0 -1
  394. package/dist/client/assets/agent-site-editor-code-epc2EIGV.js +0 -2
  395. package/dist/client/assets/agent-site-editor-content-DErZLUCZ.js +0 -1
  396. package/dist/client/assets/agent-site-editor-preview-CvNjulHl.js +0 -1
  397. package/dist/client/assets/agent-view-5PmLTSLw.js +0 -1
  398. package/dist/client/assets/agents-list-D0i0UyzK.js +0 -1
  399. package/dist/client/assets/api-keys-DZ0ezHTq.js +0 -1
  400. package/dist/client/assets/app-editor-BmJSiobK.js +0 -1
  401. package/dist/client/assets/automation-list-row-CdYjXTyX.js +0 -1
  402. package/dist/client/assets/automations-C4dbgmbr.js +0 -1
  403. package/dist/client/assets/category-editor-BLrXoVj7.js +0 -1
  404. package/dist/client/assets/choose-editor-CN33p2Cz.js +0 -1
  405. package/dist/client/assets/cms-settings-editor-DB-2MJgt.js +0 -1
  406. package/dist/client/assets/collection-detail-QFm_ohuF.js +0 -1
  407. package/dist/client/assets/column-rules-B3scTGJn.js +0 -3
  408. package/dist/client/assets/connection-detail-BQIiIdK2.js +0 -1
  409. package/dist/client/assets/connections-omwMleY5.js +0 -1
  410. package/dist/client/assets/context-BPegQD0y.js +0 -1
  411. package/dist/client/assets/context-shell-OvxUfcFS.js +0 -197
  412. package/dist/client/assets/discover-CA-2TqxK.js +0 -1
  413. package/dist/client/assets/file-explorer-EUveJAIL.js +0 -2
  414. package/dist/client/assets/folder-icon-BrFOzh35.js +0 -2
  415. package/dist/client/assets/home-xrjnwP6i.js +0 -1
  416. package/dist/client/assets/index-Bwvnt-S2.js +0 -4
  417. package/dist/client/assets/index-By_-wb1N.css +0 -1
  418. package/dist/client/assets/library-b-ntlbXh.js +0 -1
  419. package/dist/client/assets/mock-board-CQktgxk_.js +0 -81
  420. package/dist/client/assets/monitoring-C3Ch6Teo.js +0 -1
  421. package/dist/client/assets/openai-conversation-BZT74_io.js +0 -3
  422. package/dist/client/assets/plan-DKLSpJYQ.js +0 -1
  423. package/dist/client/assets/post-calendar-Ds_fWL4E.js +0 -1
  424. package/dist/client/assets/project-app-view-D0bkuBLc.js +0 -1
  425. package/dist/client/assets/project-apps-lRXyFM1r.js +0 -1
  426. package/dist/client/assets/project-reports-W6KiESHB.js +0 -1
  427. package/dist/client/assets/project-tasks-CH9CIFPr.js +0 -1
  428. package/dist/client/assets/projects-BTP5sS_F.js +0 -1
  429. package/dist/client/assets/record-editor-BMrHZfpJ.js +0 -1
  430. package/dist/client/assets/redirect-editor-BF11laHA.js +0 -1
  431. package/dist/client/assets/reports-C5TYz7EY.js +0 -1
  432. package/dist/client/assets/reports-onboarding-Bruf-fyJ.js +0 -1
  433. package/dist/client/assets/reports-tab-Da3H-8PE.js +0 -2
  434. package/dist/client/assets/repositories-hb3vgifj.js +0 -1
  435. package/dist/client/assets/roles-tNHszeml.js +0 -1
  436. package/dist/client/assets/route-BYeuiauO.js +0 -1
  437. package/dist/client/assets/route-B_J7kzlG.js +0 -1
  438. package/dist/client/assets/route-C-s8klhs.js +0 -1
  439. package/dist/client/assets/sections-editor-DfuqBfpL.js +0 -1
  440. package/dist/client/assets/sections-q5OYq_j5.js +0 -1
  441. package/dist/client/assets/seo-editor-kIki17wn.js +0 -1
  442. package/dist/client/assets/settings-tab-D43TggxT.js +0 -1
  443. package/dist/client/assets/shell-layout-Dbb1xZ69.js +0 -1
  444. package/dist/client/assets/site-editor-Do8tzkEW.js +0 -1
  445. package/dist/client/assets/skills-DguxwEpq.js +0 -1
  446. package/dist/client/assets/taskboard-analytics-Cym7TppR.js +0 -1
  447. package/dist/client/assets/tasks-ChcFyM82.js +0 -1
  448. package/dist/client/assets/thread-analytics-D22kre4r.js +0 -1
  449. package/dist/client/assets/thread-route-DJDdAJyj.js +0 -1
  450. package/dist/client/assets/use-project-scope-DlZ3hr3v.js +0 -1
  451. package/dist/client/assets/use-thread-analytics-DCAQaEKg.js +0 -1
  452. package/dist/client/assets/useInfiniteQuery-CyMRSsxy.js +0 -1
  453. package/dist/client/assets/useSuspenseInfiniteQuery-CwcJeHZI.js +0 -1
  454. package/dist/client/assets/variant-calendar-CZfhcIKG.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as E,j as t,B as K,h as Z,aK as Xe,aL as re,b as W,M as Ee,r as A,a4 as fe,eh as Ze,eg as Oe,aJ as et,n as Re,I as pe,l as G,cr as tt,ax as st,u as ot,L as se,t as lt,f as he,d4 as Me}from"./index-BWpKrclg.js";import{E as Fe}from"./empty-state-C7LII3ZM.js";import{u as ge}from"./use-mcp-client-zIBQco5Q.js";import{F as ae,a as nt,b as ce,d as de}from"./form-gDNfP07W.js";import{T as xe}from"./textarea-BNvvIWSZ.js";import{D as je,O as it,M as rt}from"./index-CXhEXTV0.js";import{by as at,ad as ct,bH as dt,V as mt,aI as ut,W as pt,aL as xt,$ as ye}from"./agent-icon-nQ1AH9dU.js";import{M as ft}from"./mcp-app-renderer-BVLr3WK6.js";import{g as ht,M as we}from"./types-BNmsSext.js";import{A as gt,a as jt,b as bt}from"./alert-Bsjmz-OK.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-BMteQTWS.js";import{b as Nt,c as Pe,T as De,a as ke}from"./tooltip-D2ANqV2w.js";import{i as vt}from"./AlertCircle-RV4AM_8y.js";import{a as St}from"./Copy01-Dy1KrWO0.js";import{i as yt}from"./Play-OByKGnTy.js";import{g as wt}from"./connection-slug-CITJ0kGN.js";import{u as Ct,T as It}from"./use-mcp-auth-status-CvV54_ol.js";import{a as Le,u as ze}from"./use-connection-CZNQu-z2.js";import{u as Tt}from"./use-mcp-tools-BmZF8fTN.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-BQ9jVlvt.js";import{f as Pt,o as Dt}from"./chat-context-kqrW-XPR.js";import{a as kt}from"./shell-layout-BbFvnpcf.js";import{MonacoCodeEditor as At}from"./monaco-editor-zzUPRyBn.js";import{E as Et}from"./empty-state-iEpXVBwd.js";import{n as Ot}from"./LinkBroken01-z_Mm0CSf.js";import"./auth-CK6AyRu5.js";import"./label-DzRNwB_s.js";import"./Key01-FaGRi3tG.js";import"./extract-connection-data-DYwFbKkm.js";import"./metadata-D72DunRR.js";import"./connection-C-NllGni.js";import"./url-slug-DcB6_J0W.js";import"./Plus-Ccck99Do.js";import"./index-15xKR9ar.js";import"./index-Cjtut9JA.js";import"./index-BdQq_4o_.js";import"./index-C-GH7ZUH.js";import"./popover-ClEv7Zyf.js";import"./repository-binding-Bpq6heaQ.js";import"./SearchMd-BAGHgvYw.js";import"./use-mobile-CoPLJ8cu.js";import"./use-create-virtual-mcp-BVwiobb2.js";import"./use-navigate-to-agent-DqWY18b4.js";import"./thread-intent-DjvP3GsU.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-6veZzsu7.js";import"./task-board-L6ZGzY-s.js";import"./schema-DzZBw0EW.js";import"./slugify-CEUa2lfQ.js";import"./schema-Cd1llToh.js";import"./Tool01-CHLDtlIL.js";import"./ArrowUp-DpQ-09y4.js";import"./ArrowLeft-XO66B9Td.js";import"./ShoppingBag01-BhoOjVkp.js";import"./ZoomOut-CBOWQYet.js";import"./Building02-NRzC_IEp.js";import"./CheckCircle-CfYD_Bi6.js";import"./ChevronUp-xR4eZngE.js";import"./ChevronSelectorVertical-C5MARPJN.js";import"./UserSquare-BSsT3MHy.js";import"./CreditCard01-DVN26JVZ.js";import"./DotsVertical-CncVW4wJ.js";import"./Image01-CaawlkVR.js";import"./Globe04-BxFc3HLH.js";import"./SwitchHorizontal01-Ce37vA9c.js";import"./Link01-B_YWUHoH.js";import"./Minus-yAYwM_Ty.js";import"./Monitor01-Bl7f7T5L.js";import"./Sun-CZRF_565.js";import"./Trash01-BQBP0tUM.js";import"./Upload01-D_q00M49.js";import"./Users01-C6bE7RDt.js";import"./XClose-BjZnEBvF.js";import"./Zap-CHuT8W6R.js";import"./index-lchr3O79.js";import"./badge-BV7rxTvN.js";import"./mcp-oauth-DWlxkjKx.js";import"./use-panel-navigate-nriEb2Qz.js";import"./thread-route-BOOkt7de.js";import"./use-project-scope-CdqclLu1.js";import"./autosend-DTWIjCgK.js";import"./use-entitlements-Bxptpo8e.js";import"./use-ai-providers-BcLfhqAn.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-Dg011Qgn.js";import"./use-organization-settings-D_5fr-OI.js";import"./use-deployment-admin-COukxauw.js";import"./admin-fetch-BhTJlAsX.js";import"./use-clock-tick-CXtcWsca.js";import"./command-De9pJLwH.js";import"./project-icon-BKeF243f.js";import"./new-project-dialog-Dd5pVssc.js";import"./repository-import-picker-DxJJpcCz.js";import"./repository-picker-P8Asvsk4.js";import"./github-icon-DAxkwypb.js";import"./useInfiniteQuery-CFafSHXd.js";import"./infiniteQueryObserver-CbIPWgZj.js";import"./collection-search-B3vfcK1n.js";import"./use-debounced-value-CqLWq6L2.js";import"./required-auth-layout-DYZU5vk_.js";import"./use-org-sso-sTi3oL5_.js";import"./editor-BqqnxL88.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 Mt(){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 Ft(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 Lt(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(Fe,{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(Ft,{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 zt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Mt(),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(Fe,{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(Lt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Be(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 Bt=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=Le(e),I=Pt(),T=Dt(),{openSidePanel:R}=kt(),U=`${e}:${s}`,F=ge({connectionId:e,orgId:k.id,orgSlug:k.slug}),_=Tt({client:F}),S=_.data?.tools?.find(m=>m.name===s),M=ht(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(R(),I.sendMessage({tiptapDoc:f}))},[L,z]=A.useState("json"),[q,Q]=A.useState(!1);M&&!q&&(z("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(!F)throw new Error("MCP client is not available");const f=X?{...ee,...d}:(()=>{const B=x.trim();if(!B)return{};const H=JSON.parse(B);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(([B,H])=>{if((H.type==="object"||H.type==="array")&&typeof f[B]=="string")try{f[B]=JSON.parse(f[B])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof f[B]=="string"&&f[B]!==""){const Se=Number(f[B]);Number.isNaN(Se)||(f[B]=Se)}});const $=await F.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??Bt(s),He=t.jsx(Be,{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})})]}),M&&t.jsx(Nt,{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:L==="ui"?"secondary":"ghost",onClick:()=>z("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:L==="json"?"secondary":"ghost",onClick:()=>z("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(gt,{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(vt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(bt,{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:M&&L==="ui"&&F?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(ft,{resourceURI:M,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:F,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(St,{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(!Le(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:zt};function qt(){const s=E.c(9),e=Me();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=ze(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=Me();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=ze(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 F;s[26]!==R||s[27]!==U||s[28]!==I?(F=t.jsx(Be,{children:t.jsxs(Ue,{children:[I,T,R,U]})}),s[26]=R,s[27]=U,s[28]=I,s[29]=F):F=s[29];const _=F;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 M;s[36]!==l?(M=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=M):M=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let L;s[40]!==l?(L=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=L):L=s[41];let z;s[42]!==d||s[43]!==L?(z={onClick:d,children:L},s[42]=d,s[43]=L,s[44]=z):z=s[44];let q;s[45]!==M||s[46]!==V||s[47]!==z?(q=t.jsx(Et,{icon:S,title:M,description:V,buttonProps:z}),s[45]=M,s[46]=V,s[47]=z,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 Ko(){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{Ko as default};
@@ -1 +1 @@
1
- import{c as S,b as $,j as s,X as A,ai as V,l as R,V as E,B as F,Y,Z as _}from"./index-COnziA0Z.js";import{i as G,n as I}from"./ArrowUp-ze_LLfn6.js";import{i as L,c as O,a as P}from"./SwitchHorizontal01-CucWWNd0.js";import{T as K,a as X,b as Z,c as q}from"./tooltip-D8ZXcwhe.js";import{a as H,T as z}from"./toggle-group-ythhcZKM.js";import{B as J}from"./badge-DXrGf1RH.js";const M=[];function ae(t){const e=S.c(36),{viewMode:i,onViewModeChange:j,sortKey:B,sortDirection:g,onSort:b,sortOptions:D,filters:k}=t,v=D===void 0?M:D,o=k===void 0?M:k,l=$();let N;e[0]!==o?(N=o.filter(U),e[0]=o,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(E,{asChild:!0,children:s.jsxs(F,{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:a=>{(a==="table"||a==="cards")&&j(a)},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(a=>{const T=B===a.id;return s.jsx(A,{onClick:()=>b(a.id),className:R("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(V,{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:a.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"}))]})},a.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]!==o?(f=o.map(Q),e[27]=o,e[28]=f):f=e[28];let h;e[29]!==p||e[30]!==u||e[31]!==f?(h=s.jsxs(Y,{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(_,{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:R("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(V,{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{ae as C};
1
+ import{c as S,b as $,j as s,X as A,ai as V,l as R,V as E,B as F,Y,Z as _}from"./index-BWpKrclg.js";import{i as G,n as I}from"./ArrowUp-DpQ-09y4.js";import{i as L,c as O,a as P}from"./SwitchHorizontal01-Ce37vA9c.js";import{T as K,a as X,b as Z,c as q}from"./tooltip-D2ANqV2w.js";import{a as H,T as z}from"./toggle-group-BAFBdL9F.js";import{B as J}from"./badge-BV7rxTvN.js";const M=[];function ae(t){const e=S.c(36),{viewMode:i,onViewModeChange:j,sortKey:B,sortDirection:g,onSort:b,sortOptions:D,filters:k}=t,v=D===void 0?M:D,o=k===void 0?M:k,l=$();let N;e[0]!==o?(N=o.filter(U),e[0]=o,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(E,{asChild:!0,children:s.jsxs(F,{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:a=>{(a==="table"||a==="cards")&&j(a)},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(a=>{const T=B===a.id;return s.jsx(A,{onClick:()=>b(a.id),className:R("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(V,{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:a.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"}))]})},a.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]!==o?(f=o.map(Q),e[27]=o,e[28]=f):f=e[28];let h;e[29]!==p||e[30]!==u||e[31]!==f?(h=s.jsxs(Y,{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(_,{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:R("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(V,{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{ae as C};
@@ -1 +1 @@
1
- import{c as v,l as b,j as a,h as w}from"./index-COnziA0Z.js";import{i as C}from"./SearchMd-CcaPghb6.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
1
+ import{c as v,l as b,j as a,h as w}from"./index-BWpKrclg.js";import{i as C}from"./SearchMd-BAGHgvYw.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
@@ -1 +1 @@
1
- import{c as D,j as r,l as T,b as I}from"./index-COnziA0Z.js";import{T as E,a as H,b as R,c as K,d as W,e as z}from"./table-KCysjL80.js";import{i as L,n as $}from"./ArrowUp-ze_LLfn6.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,l as T,b as I}from"./index-BWpKrclg.js";import{T as E,a as H,b as R,c as K,d as W,e as z}from"./table-CheWM6KL.js";import{i as L,n as $}from"./ArrowUp-DpQ-09y4.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,l as h}from"./index-COnziA0Z.js";import{B as v}from"./badge-DXrGf1RH.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,l as h}from"./index-BWpKrclg.js";import{B as v}from"./badge-BV7rxTvN.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 Q,r as U,j as s,l as S,B as W,ai as X}from"./index-COnziA0Z.js";import{i as Y}from"./ChevronSelectorVertical-BOIt7T3u.js";import{e as Z,C as _,b as ee,a as se,c as te,d as le}from"./command-ChermTHn.js";import{a as ae,P as re,b as oe}from"./popover-CDni3562.js";function me(z){const e=Q.c(48),{options:C,value:l,onChange:j,placeholder:A,triggerClassName:F,contentClassName:w,width:G,renderTrigger:L,renderItem:o,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n}=z,D=A===void 0?"Select...":A,H=G===void 0?"w-[200px]":G,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==l?(g=a=>a.value===l,e[0]=l,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=a=>{J(a),a||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,M=re,R=ae,K=!0,$=L?s.jsx("div",{className:S("cursor-pointer",F),children:L(I)}):s.jsxs(W,{variant:"outline",role:"combobox",className:S("justify-between rounded-[var(--studio-control-radius,var(--radius-lg))]",H,F),children:[I?I.label:D,s.jsx(Y,{className:"opacity-50"})]});let i;e[4]!==R||e[5]!==$?(i=s.jsx(R,{asChild:K,children:$}),e[4]=R,e[5]=$,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(Z,{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(_,{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]!==l){let a;e[25]!==j||e[26]!==o||e[27]!==t||e[28]!==l?(a=r=>{const q=l===r.value;return s.jsx(ee,{value:r.label,onSelect:()=>{j(r.value===l?"":r.value),t(!1)},children:o?o(r,q):s.jsxs(s.Fragment,{children:[r.label,s.jsx(X,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},r.value)},e[25]=j,e[26]=o,e[27]=t,e[28]=l,e[29]=a):a=e[29],f=C.map(a),e[19]=j,e[20]=C,e[21]=o,e[22]=t,e[23]=l,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(se,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(te,{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(oe,{className:c,style:y,children:x}),e[39]=c,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==M||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==i?(N=s.jsxs(M,{open:B,onOpenChange:t,children:[i,v]}),e[42]=M,e[43]=B,e[44]=t,e[45]=v,e[46]=i,e[47]=N):N=e[47],N}export{me as C};
1
+ import{c as Q,r as U,j as s,l as S,B as W,ai as X}from"./index-BWpKrclg.js";import{i as Y}from"./ChevronSelectorVertical-C5MARPJN.js";import{e as Z,C as _,b as ee,a as se,c as te,d as le}from"./command-De9pJLwH.js";import{a as ae,P as re,b as oe}from"./popover-ClEv7Zyf.js";function me(z){const e=Q.c(48),{options:C,value:l,onChange:j,placeholder:A,triggerClassName:F,contentClassName:w,width:G,renderTrigger:L,renderItem:o,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n}=z,D=A===void 0?"Select...":A,H=G===void 0?"w-[200px]":G,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==l?(g=a=>a.value===l,e[0]=l,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=a=>{J(a),a||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,M=re,R=ae,K=!0,$=L?s.jsx("div",{className:S("cursor-pointer",F),children:L(I)}):s.jsxs(W,{variant:"outline",role:"combobox",className:S("justify-between rounded-[var(--studio-control-radius,var(--radius-lg))]",H,F),children:[I?I.label:D,s.jsx(Y,{className:"opacity-50"})]});let i;e[4]!==R||e[5]!==$?(i=s.jsx(R,{asChild:K,children:$}),e[4]=R,e[5]=$,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(Z,{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(_,{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]!==l){let a;e[25]!==j||e[26]!==o||e[27]!==t||e[28]!==l?(a=r=>{const q=l===r.value;return s.jsx(ee,{value:r.label,onSelect:()=>{j(r.value===l?"":r.value),t(!1)},children:o?o(r,q):s.jsxs(s.Fragment,{children:[r.label,s.jsx(X,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},r.value)},e[25]=j,e[26]=o,e[27]=t,e[28]=l,e[29]=a):a=e[29],f=C.map(a),e[19]=j,e[20]=C,e[21]=o,e[22]=t,e[23]=l,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(se,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(te,{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(oe,{className:c,style:y,children:x}),e[39]=c,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==M||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==i?(N=s.jsxs(M,{open:B,onOpenChange:t,children:[i,v]}),e[42]=M,e[43]=B,e[44]=t,e[45]=v,e[46]=i,e[47]=N):N=e[47],N}export{me as C};
@@ -1 +1 @@
1
- import{c as v,j as r,l as h,cs as b,D as j,x as w,aY as y,w as C,v as z}from"./index-COnziA0Z.js";import{_ as k}from"./index-CUvxA4QU.js";import{i as D}from"./SearchMd-CcaPghb6.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 l;e[3]!==t?(l=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=r.jsx(k,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function L(a){const e=v.c(28);let t,s,l,o,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:l,shouldFilter:n,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],l=e[3],o=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]!==l||e[19]!==n?(m=r.jsx($,{filter:l,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]=l,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]!==o||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...o,children:[d,p]}),e[24]=o,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,l,o,n;e[0]!==a?({className:s,size:o,variant:n,action:t,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5]);const _=o===void 0?"default":o,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]!==l||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...l}),e[14]=l,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 l;e[3]!==t?(l=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=r.jsx(k.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}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 l;e[3]!==t?(l=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]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=r.jsx(k.Group,{"data-slot":"command-group",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}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 l;e[3]!==t?(l=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=r.jsx(k.Separator,{"data-slot":"command-separator",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}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,l;e[0]!==a?({className:t,size:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==t||e[5]!==l?(o=h(I({size:l}),t),e[4]=t,e[5]=l,e[6]=o):o=e[6];let n;return e[7]!==s||e[8]!==o?(n=r.jsx(k.Item,{"data-slot":"command-item",className:o,...s}),e[7]=s,e[8]=o,e[9]=n):n=e[9],n}export{B as C,F as a,P as b,V as c,$ as d,R as e,L as f,I as g,H as h};
1
+ import{c as v,j as r,l as h,cs as b,D as j,x as w,aY as y,w as C,v as z}from"./index-BWpKrclg.js";import{_ as k}from"./index-C-GH7ZUH.js";import{i as D}from"./SearchMd-BAGHgvYw.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 l;e[3]!==t?(l=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=r.jsx(k,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function L(a){const e=v.c(28);let t,s,l,o,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:l,shouldFilter:n,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],l=e[3],o=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]!==l||e[19]!==n?(m=r.jsx($,{filter:l,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]=l,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]!==o||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...o,children:[d,p]}),e[24]=o,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,l,o,n;e[0]!==a?({className:s,size:o,variant:n,action:t,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5]);const _=o===void 0?"default":o,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]!==l||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...l}),e[14]=l,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 l;e[3]!==t?(l=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=r.jsx(k.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}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 l;e[3]!==t?(l=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]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=r.jsx(k.Group,{"data-slot":"command-group",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}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 l;e[3]!==t?(l=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=r.jsx(k.Separator,{"data-slot":"command-separator",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}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,l;e[0]!==a?({className:t,size:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==t||e[5]!==l?(o=h(I({size:l}),t),e[4]=t,e[5]=l,e[6]=o):o=e[6];let n;return e[7]!==s||e[8]!==o?(n=r.jsx(k.Item,{"data-slot":"command-item",className:o,...s}),e[7]=s,e[8]=o,e[9]=n):n=e[9],n}export{B as C,F as a,P as b,V as c,$ as d,R as e,L as f,I as g,H as h};
@@ -1 +1 @@
1
- import{c as _,r as U,l as Q,j as s,Q as Y,M as Z,b as z,a as ee,R as te,B as ne}from"./index-COnziA0Z.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-CNQ2UmVO.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-CrnfY-x7.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 M=r?se(r):null;if(M?.ok)try{l=new URL(M.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:$,error:N}=le(u),[F,D]=U.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==F||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==$||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=m.filter(ge),G=m.filter(xe),J=g||(M.length>0?M.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||$!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:$===h.fieldKey,disabled:V&&b!==h.fieldKey&&$!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:F,onAutoOpenConfigHandled:()=>D(T=>T===h.fieldKey?null:T),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=[...M,...G].map(W)}e[17]=F,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=$,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 L;return e[56]!==R||e[57]!==C||e[58]!==B?(L=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=L):L=e[59],L}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,l as Q,j as s,Q as Y,M as Z,b as z,a as ee,R as te,B as ne}from"./index-BWpKrclg.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-zIBQco5Q.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-pjD5dMZl.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 M=r?se(r):null;if(M?.ok)try{l=new URL(M.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:$,error:N}=le(u),[F,D]=U.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==F||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==$||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=m.filter(ge),G=m.filter(xe),J=g||(M.length>0?M.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||$!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:$===h.fieldKey,disabled:V&&b!==h.fieldKey&&$!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:F,onAutoOpenConfigHandled:()=>D(T=>T===h.fieldKey?null:T),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=[...M,...G].map(W)}e[17]=F,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=$,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 L;return e[56]!==R||e[57]!==C||e[58]!==B?(L=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=L):L=e[59],L}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 b,m as k}from"./core.esm-pg4Fq_TB.js";import{i as _}from"./AlertCircle-Cxr7gZFk.js";import{aW as v,aX as B,aY as g,aZ as K,B as S,F as w,a_ as A,t as O,a$ as I,b0 as L,aO as T,a8 as E}from"./agent-icon-r8Z1kQx0.js";import{bo as D,a8 as R,aZ as P,ea as y}from"./index-COnziA0Z.js";import{i as $}from"./CheckCircle-Dap6CDoz.js";import{s as M}from"./Image01-aiwVgEhl.js";import{e as F,C as l}from"./task-board-CrNZ__0e.js";const U=D("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"}]]),W=["ended_after_delivery","superseded"];function j(e){return!!e&&W.includes(e)}function re(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function oe(e){return e.failureKind!=="superseded"}function d(e){return e.threads.some(t=>t.status==="requires_action")}function ie(e){return e.status==="in_review"&&!e.assigneeId}function ce(e){return d(e)}function u(e){return e.status==="done"||e.status==="archived"?!1:e.priority==="urgent"||e.type==="security"||d(e)||Y(e)==="failed"}const C="critical:";function H(e){return e!=="done"&&e!=="archived"}function le({overId:e,itemOf:t,fromStatus:a,toStatus:n}){if(e===void 0||!H(n))return null;const s=String(e);if(s.startsWith(C))return"critical";if(a!==n)return null;if(s.startsWith(x))return"improvements";const r=t(s);return r?u(r)?"critical":"improvements":null}function ue(e,t){const a=u(e);return t==="critical"?a?null:"urgent":a?u({...e,priority:"high"})?null:"high":null}function de(e){return e.status==="in_progress"&&d(e)?"text-warning animate-pulse":h(e.status).iconClassName}function Y(e){return e.threads.some(a=>a.status==="in_progress")?"running":e.threads.some(a=>a.status==="failed"&&!j(a.failureKind))?"failed":null}function fe(e,t,a){const n=e.findIndex(o=>o.id===a),s=t===a?e[n+1]?.id??null:t,r=e.filter(o=>o.id!==a),f=s?r.findIndex(o=>o.id===s):-1,m=f===-1?r.length:f,i=r[m-1],c=r[m];return i&&c?(i.sortOrder+c.sortOrder)/2:i?i.sortOrder+1:c?c.sortOrder-1:0}function me(e,t){return Array.from({length:t},(a,n)=>e-(t-1-n)*1e-4)}const q=["archived"],N={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:E,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:M,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:T,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:L,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:I,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:O,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:$,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:P,iconClassName:"text-muted-foreground"}},G={icon:y,iconClassName:"text-muted-foreground"},V=N;function h(e){return V[e]??G}function ge(e,t){const a=N[e];return{label:a?t(a.labelKey):e,visual:h(e)}}const pe=["bug","feature","chore","spike","security"],ye={bug:{labelKey:"taskBoard.config.typeBug",icon:U,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:A,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:w,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:S,iconClassName:"text-brand-yellow"},security:{labelKey:"taskBoard.config.typeSecurity",icon:R,iconClassName:"text-project-purple"}};function p(e,t){return t[e]??!q.includes(e)}function Ce(e){return{lanes:l.filter(t=>p(t,e)),hidden:l.filter(t=>!p(t,e))}}const z=44;function Ne({lanes:e,collapsed:t,hasHiddenTail:a}){const n=e.map(s=>t.includes(s)?`${z}px`:"minmax(280px, 1fr)");return a&&n.push("280px"),n.join(" ")}const x="lane:",he=e=>{const t=b(e);return t.length>0?t:k(e)};function X(e){return l.includes(e)}function xe({overId:e,statusOf:t}){if(e===void 0)return null;const a=String(e),n=[x,C].find(r=>a.startsWith(r)),s=n?a.slice(n.length):t(a);return s!==void 0&&X(s)?s:null}function be(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:g,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:K,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-project-blue",dotClassName:"bg-project-blue",icon:g,iconClassName:"text-project-blue"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:B,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:v,iconClassName:"text-destructive"}};function ve(e,t=Date.now()){const a=new Date(e).getTime();return Number.isNaN(a)?null:a<t?"overdue":a-t<=Z*864e5?"soon":null}const Z=3;function Be(e){return`color-mix(in oklab, ${e??F} var(--user-color-strength), transparent)`}export{C,q as H,x as L,ke as P,N as S,pe as T,ie as a,_e as b,ye as c,Y as d,u as e,h as f,oe as g,re as h,d as i,j,p as k,ge as l,Ce as m,Ne as n,he as o,ce as p,ue as q,me as r,de as s,Be as t,fe as u,H as v,xe as w,le as x,ve as y,be as z};
1
+ import{p as x,m as b}from"./core.esm-DQyn-kJS.js";import{i as _}from"./AlertCircle-RV4AM_8y.js";import{aW as v,aX as K,aY as g,aZ as B,C as S,k as w,a_ as A,t as O,a$ as I,b0 as L,aO as T,a8 as E}from"./agent-icon-nQ1AH9dU.js";import{bo as D,a8 as R,aZ as P,ea as y}from"./index-BWpKrclg.js";import{i as $}from"./CheckCircle-CfYD_Bi6.js";import{s as M}from"./Image01-CaawlkVR.js";import{e as F,C as l}from"./task-board-L6ZGzY-s.js";const U=D("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"}]]),W=["ended_after_delivery","superseded"];function j(e){return!!e&&W.includes(e)}function re(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function oe(e){return e.failureKind!=="superseded"}function d(e){return e.threads.some(t=>t.status==="requires_action")}function ie(e){return e.status==="in_review"&&!e.assigneeId}function ce(e){return d(e)}function u(e){return e.status==="done"||e.status==="archived"?!1:e.priority==="urgent"||e.type==="security"||d(e)||Y(e)==="failed"}const C="critical:";function H(e){return e!=="done"&&e!=="archived"}function le({overId:e,itemOf:t,fromStatus:a,toStatus:n}){if(e===void 0||!H(n))return null;const s=String(e);if(s.startsWith(C))return"critical";if(a!==n)return null;if(s.startsWith(k))return"improvements";const r=t(s);return r?u(r)?"critical":"improvements":null}function ue(e,t){const a=u(e);return t==="critical"?a?null:"urgent":a?u({...e,priority:"high"})?null:"high":null}function de(e){return e.status==="in_progress"&&d(e)?"text-warning animate-pulse":h(e.status).iconClassName}function Y(e){return e.threads.some(a=>a.status==="in_progress")?"running":e.threads.some(a=>a.status==="failed"&&!j(a.failureKind))?"failed":null}function fe(e,t,a){const n=e.findIndex(o=>o.id===a),s=t===a?e[n+1]?.id??null:t,r=e.filter(o=>o.id!==a),f=s?r.findIndex(o=>o.id===s):-1,m=f===-1?r.length:f,i=r[m-1],c=r[m];return i&&c?(i.sortOrder+c.sortOrder)/2:i?i.sortOrder+1:c?c.sortOrder-1:0}function me(e,t){return Array.from({length:t},(a,n)=>e-(t-1-n)*1e-4)}const q=["archived"],N={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:E,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:M,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:T,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:L,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:I,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:O,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:$,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:P,iconClassName:"text-muted-foreground"}},G={icon:y,iconClassName:"text-muted-foreground"},V=N;function h(e){return V[e]??G}function ge(e,t){const a=N[e];return{label:a?t(a.labelKey):e,visual:h(e)}}const pe=["bug","feature","chore","spike","security"],ye={bug:{labelKey:"taskBoard.config.typeBug",icon:U,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:A,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:w,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:S,iconClassName:"text-brand-yellow"},security:{labelKey:"taskBoard.config.typeSecurity",icon:R,iconClassName:"text-project-purple"}};function p(e,t){return t[e]??!q.includes(e)}function Ce(e){return{lanes:l.filter(t=>p(t,e)),hidden:l.filter(t=>!p(t,e))}}const z=44;function Ne({lanes:e,collapsed:t,hasHiddenTail:a}){const n=e.map(s=>t.includes(s)?`${z}px`:"minmax(280px, 1fr)");return a&&n.push("280px"),n.join(" ")}const k="lane:",he=e=>{const t=x(e);return t.length>0?t:b(e)};function X(e){return l.includes(e)}function ke({overId:e,statusOf:t}){if(e===void 0)return null;const a=String(e),n=[k,C].find(r=>a.startsWith(r)),s=n?a.slice(n.length):t(a);return s!==void 0&&X(s)?s:null}function xe(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const be=["none","low","medium","high","urgent"],_e={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:g,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:B,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-project-blue",dotClassName:"bg-project-blue",icon:g,iconClassName:"text-project-blue"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:K,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:v,iconClassName:"text-destructive"}};function ve(e,t=Date.now()){const a=new Date(e).getTime();return Number.isNaN(a)?null:a<t?"overdue":a-t<=Z*864e5?"soon":null}const Z=3;function Ke(e){return`color-mix(in oklab, ${e??F} var(--user-color-strength), transparent)`}export{C,q as H,k as L,be as P,N as S,pe as T,ie as a,_e as b,ye as c,Y as d,u as e,h as f,oe as g,re as h,d as i,j,p as k,ge as l,Ce as m,Ne as n,he as o,ce as p,ue as q,me as r,de as s,Ke as t,fe as u,H as v,ke as w,le as x,ve as y,xe as z};
@@ -1,4 +1,4 @@
1
- import{c as k,j as s,b as _,r as J,l as Ce,ai as me,hH as be,a4 as ve,ap as Ne,a5 as ke,B as ie,t as fe,gm as pe,h6 as we,ay as Se}from"./index-COnziA0Z.js";import{A as $e,b as _e}from"./alert-sh_9lE1j.js";import{B as Ke}from"./badge-DXrGf1RH.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-BaNSHFfS.js";import{b as se,T as oe,a as xe,c as ae}from"./tabs-CoLoYhlT.js";import{u as ge}from"./use-copy-D-ZLjAxF.js";import{a as he}from"./Copy01-D5FEj5_l.js";import{i as Le}from"./Key01-Bxg4WT0j.js";import{i as Oe}from"./Link01-CcXDwgg2.js";import{C as De,a as Me,b as Ee}from"./client-icons-Ct-9O-sI.js";import{u as He,a as Be,A as Pe}from"./api-keys-E7GGN-1o.js";import{R as Ge}from"./require-capability-B4rUwk-N.js";import"./index-BdQq_4o_.js";import"./index-CVG6lJ_v.js";import"./ChevronUp-B635wgc1.js";import"./active-indicator-CCMhAsc_.js";import"./AlertCircle-Cxr7gZFk.js";import"./Plus-Bra09L11.js";import"./Trash01-BrSYsLgM.js";import"./empty-state-C79vgg_z.js";import"./label-BGevM5Zb.js";import"./use-mcp-client-CNQ2UmVO.js";import"./auth-BaCW7whq.js";import"./access-gate-NRvGMpYz.js";import"./capability-load-error-CODEJJ02.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 Ue({client:t,mode:e,url:i,apiKey:o}){const n=o??"<paste-your-api-key>",r=Re();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i} \\
1
+ import{c as k,j as s,b as _,r as J,l as Ce,ai as me,hH as be,a4 as ve,ao as Ne,a5 as ke,B as ie,t as fe,gm as pe,h8 as we,ax as Se}from"./index-BWpKrclg.js";import{A as $e,b as _e}from"./alert-Bsjmz-OK.js";import{B as Ke}from"./badge-BV7rxTvN.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-BMteQTWS.js";import{b as se,T as oe,a as xe,c as ae}from"./tabs-CjWwohzM.js";import{u as ge}from"./use-copy-Bq-mz0ld.js";import{a as he}from"./Copy01-Dy1KrWO0.js";import{i as Le}from"./Key01-FaGRi3tG.js";import{i as Oe}from"./Link01-B_YWUHoH.js";import{C as De,a as Me,b as Ee}from"./client-icons-DGnfsAP4.js";import{u as He,a as Be,A as Pe}from"./api-keys-D4BF_tKg.js";import{R as Ge}from"./require-capability-B-uxpRvL.js";import"./index-BdQq_4o_.js";import"./index-lchr3O79.js";import"./ChevronUp-xR4eZngE.js";import"./active-indicator-CCMhAsc_.js";import"./AlertCircle-RV4AM_8y.js";import"./Plus-Ccck99Do.js";import"./Trash01-BQBP0tUM.js";import"./empty-state-iEpXVBwd.js";import"./label-DzRNwB_s.js";import"./use-mcp-client-zIBQco5Q.js";import"./auth-CK6AyRu5.js";import"./access-gate-BU0Til0A.js";import"./capability-load-error-7V5aWr5c.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 Ue({client:t,mode:e,url:i,apiKey:o}){const n=o??"<paste-your-api-key>",r=Re();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i} \\
2
2
  --header "Authorization: Bearer ${n}"`};if(t==="cursor"){const l={url:i};return e==="api-key"&&(l.headers={Authorization:`Bearer ${n}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[r]:l}},null,2)}}if(t==="codex"){const l=[`[mcp_servers.${r}]`,`url = "${i}"`];return e==="api-key"&&l.push(`http_headers = { "Authorization" = "Bearer ${n}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:l.join(`
3
3
  `)}}return e==="oauth"?{language:"text",code:`${i}
4
4
 
@@ -1 +1 @@
1
- import{c as v,b as N,j as s,ag as w,b7 as k,ay as y,B as z}from"./index-COnziA0Z.js";import{b1 as _,aB as C}from"./agent-icon-r8Z1kQx0.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,ag as w,b7 as k,ax as y,B as z}from"./index-BWpKrclg.js";import{b1 as _,aB as C}from"./agent-icon-nQ1AH9dU.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 T,M as L,a4 as V,W,R 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-COnziA0Z.js";import{s as Q}from"./site-url-en5df9c-.js";import{u as X}from"./use-mcp-client-CNQ2UmVO.js";import{I as Z}from"./integration-icon-DfwU4DVr.js";import{c as ee,u as te,a as se,P as ne,d as le,S as ie}from"./use-connect-companion-CrnfY-x7.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(T.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:M}=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(T.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]!==M||e[71]!==s||e[72]!==B||e[73]!==N?(P=n.jsx(re,{card:a,connecting:B,error:M,onConnect:N,onClose:s}),e[69]=a,e[70]=M,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]=T.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 T,M as L,a4 as V,W,R 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-BWpKrclg.js";import{s as Q}from"./site-url-en5df9c-.js";import{u as X}from"./use-mcp-client-zIBQco5Q.js";import{I as Z}from"./integration-icon-BQ9jVlvt.js";import{c as ee,u as te,a as se,P as ne,d as le,S as ie}from"./use-connect-companion-pjD5dMZl.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(T.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:M}=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(T.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]!==M||e[71]!==s||e[72]!==B||e[73]!==N?(P=n.jsx(re,{card:a,connecting:B,error:M,onConnect:N,onClose:s}),e[69]=a,e[70]=M,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]=T.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-se91w2Rf.js";import{aK as o,cT as a,cU as t,aL as e,dZ as i,dX as r,e1 as m,eM as h,dY as _}from"./index-COnziA0Z.js";const g=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:m("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),f=h.extend({inputSchema:s,outputSchema:s.optional()}),S=o({headers:i(e(),e()).optional()}),T=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().describe("Authentication token (for HTTP connections)"),connection_headers:_([T,S]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:g.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(f).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}).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.partial().extend({url_slug:b.nullish(),connection_token:e().max(u).nullish()});function C(n){return n!=null&&"command"in n}function I(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{g as O,C as i,I as p};
1
+ import{U as b}from"./url-slug-DcB6_J0W.js";import{aK as o,cT as a,cU as t,aL as e,dZ as i,dX as r,e1 as m,eM as h,dY as _}from"./index-BWpKrclg.js";const g=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:m("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),f=h.extend({inputSchema:s,outputSchema:s.optional()}),S=o({headers:i(e(),e()).optional()}),T=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().describe("Authentication token (for HTTP connections)"),connection_headers:_([T,S]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:g.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(f).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}).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.partial().extend({url_slug:b.nullish(),connection_token:e().max(u).nullish()});function C(n){return n!=null&&"command"in n}function I(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{g as O,C as i,I as p};
@@ -1 +1 @@
1
- import{c as M,a4 as S,aq as $,K as F,ah as R,b as q,l as A,j as c,gm as K}from"./index-COnziA0Z.js";import{u as O}from"./useInfiniteQuery-CyMRSsxy.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as z}from"./integration-icon-DfwU4DVr.js";function X(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:Y,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(V)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function V(t){return t.items}function Y(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=q(),f=o&&"cursor-pointer hover:bg-accent";let d;e[0]!==a||e[1]!==f?(d=A("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,_=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(z,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-edge",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(K,{size:"flush",className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
1
+ import{c as M,a4 as S,ap as $,K as F,ah as R,b as K,l as A,j as c,gm as q}from"./index-BWpKrclg.js";import{u as O}from"./useInfiniteQuery-CFafSHXd.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as z}from"./integration-icon-BQ9jVlvt.js";function X(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:Y,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(V)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function V(t){return t.items}function Y(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),f=o&&"cursor-pointer hover:bg-accent";let d;e[0]!==a||e[1]!==f?(d=A("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,_=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(z,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-edge",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{size:"flush",className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
@@ -0,0 +1 @@
1
+ import{aK as Ne,dZ as Me,dX as ze,aL as de,cU as Ee,c as U,b as V,j as t,h as Se,B,r as Q,l as ye,a4 as te,ap as Re,U as me,K as ee,d as se,z as _e,ax as Ce,gm as Ue,bB as Fe,n as Ve,hd as ue,a3 as Le,I as J,Z as Be,V as qe,Y as Ge,X as xe,M as He,f as Ke,hv as Xe,q as Qe,gS as We,aJ as Ye,aI as Je,o as Ze,t as Y}from"./index-BWpKrclg.js";import{g as et}from"./extract-connection-data-DYwFbKkm.js";import{E as we}from"./empty-state-C7LII3ZM.js";import{E as tt,r as st,b as nt,c as it}from"./connection-form-helpers-DmavsUyJ.js";import{c as ot,S as at,D as lt}from"./index-CXhEXTV0.js";import{u as Ie,T as rt}from"./use-mcp-auth-status-CvV54_ol.js";import{a as ct}from"./mcp-oauth-KJGfGjkD.js";import{I as ae}from"./integration-icon-BQ9jVlvt.js";import{s as dt}from"./Plus-Ccck99Do.js";import{bj as mt,aB as ut,ax as xt,w as ne}from"./agent-icon-nQ1AH9dU.js";import{a as ke,d as pt,s as ft}from"./Tool01-CHLDtlIL.js";import{s as re}from"./Trash01-BQBP0tUM.js";import{b as ht,a as gt,c as jt,S as vt,d as bt}from"./sheet-BW-FxyJZ.js";import{F as G,b as H,c as K,d as L,f as X,e as pe,a as Nt}from"./form-gDNfP07W.js";import{a as Te,b as Ae,u as St}from"./use-connection-CZNQu-z2.js";import{u as Pe}from"./use-mcp-client-zIBQco5Q.js";import{u as yt}from"./use-mcp-tools-BmZF8fTN.js";import{a as _t}from"./use-mcp-prompts-XayY9yfQ.js";import{i as Ct}from"./mcp-oauth-DWlxkjKx.js";import{u as wt,D as It}from"./use-delete-connection-DzeFDNj4.js";import{c as kt}from"./monitoring-stats-row-DZ9HvRuy.js";import{b as Tt,C as At,a as Pt}from"./chart-eh3rIFzp.js";import{a as Dt,B as $t}from"./BarChart-rvb3yNLn.js";import{C as Ot}from"./tooltipContext-DvKfbID4.js";import{b as Mt}from"./repository-binding-Bpq6heaQ.js";import{T as ie,a as zt,b as oe,c as Et}from"./tabs-CjWwohzM.js";import{g as De}from"./connection-slug-CITJ0kGN.js";import{n as Rt}from"./ShoppingBag01-BhoOjVkp.js";import{g as ce}from"./types-BNmsSext.js";import{M as Ut}from"./mcp-app-renderer-BVLr3WK6.js";import{C as Ft}from"./collection-search-B3vfcK1n.js";import{B as Vt}from"./badge-BV7rxTvN.js";import{S as fe,b as he,a as ge,d as je,c as q}from"./select-BMteQTWS.js";import{i as Lt}from"./CheckCircle-CfYD_Bi6.js";import{t as Bt}from"./ChevronUp-xR4eZngE.js";import{n as qt}from"./LinkBroken01-z_Mm0CSf.js";import{c as Gt}from"./UserSquare-BSsT3MHy.js";import{s as Ht}from"./XClose-BjZnEBvF.js";import{p as Kt,i as Xt}from"./connection-C-NllGni.js";import{c as Qt}from"./schema-Cd1llToh.js";import"./metadata-D72DunRR.js";import"./Key01-FaGRi3tG.js";import"./auth-CK6AyRu5.js";import"./index-15xKR9ar.js";import"./index-Cjtut9JA.js";import"./index-BdQq_4o_.js";import"./index-C-GH7ZUH.js";import"./popover-ClEv7Zyf.js";import"./tooltip-D2ANqV2w.js";import"./index-lchr3O79.js";import"./SearchMd-BAGHgvYw.js";import"./use-mobile-CoPLJ8cu.js";import"./use-create-virtual-mcp-BVwiobb2.js";import"./use-navigate-to-agent-DqWY18b4.js";import"./thread-intent-DjvP3GsU.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-6veZzsu7.js";import"./task-board-L6ZGzY-s.js";import"./schema-DzZBw0EW.js";import"./slugify-CEUa2lfQ.js";import"./Image01-CaawlkVR.js";import"./AlertCircle-RV4AM_8y.js";import"./ArrowUp-DpQ-09y4.js";import"./ArrowLeft-XO66B9Td.js";import"./ZoomOut-CBOWQYet.js";import"./Building02-NRzC_IEp.js";import"./ChevronSelectorVertical-C5MARPJN.js";import"./Copy01-Dy1KrWO0.js";import"./CreditCard01-DVN26JVZ.js";import"./DotsVertical-CncVW4wJ.js";import"./Globe04-BxFc3HLH.js";import"./SwitchHorizontal01-Ce37vA9c.js";import"./Link01-B_YWUHoH.js";import"./Minus-yAYwM_Ty.js";import"./Monitor01-Bl7f7T5L.js";import"./Sun-CZRF_565.js";import"./Play-OByKGnTy.js";import"./Upload01-D_q00M49.js";import"./Users01-C6bE7RDt.js";import"./Zap-CHuT8W6R.js";import"./label-DzRNwB_s.js";import"./CartesianChart-BVsrzbFJ.js";import"./CategoricalChart-64zykerQ.js";import"./AreaChart-B5eHYCMZ.js";import"./symbol-CJoI4vsX.js";import"./ActiveShapeUtils-ppN64tl0.js";import"./Sector-BCmuavOw.js";import"./ErrorBarContext-C5dp8Quc.js";import"./active-indicator-CCMhAsc_.js";import"./url-slug-DcB6_J0W.js";const Wt=Ne({scopes:Ee(de()).describe("List of scopes available"),stateSchema:Me(de(),ze()).describe("JSON Schema (draft-07) defining the state structure")}),Yt=[{name:"MCP_CONFIGURATION",inputSchema:Ne({}),outputSchema:Wt}];function Jt(s){const e=U.c(61),{instance:n,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l}=s,a=V();let r;e[0]!==n.id?(r={connectionId:n.id},e[0]=n.id,e[1]=r):r=e[1];const d=Ie(r),x=!(n.connection_type==="VIRTUAL")&&d.supportsOAuth&&!d.isAuthenticated,f=n.status!=="active",m=x||f?"border-destructive/50 bg-destructive/5":"border-transparent";let h;e[2]!==m?(h=ye("flex items-center gap-3 rounded-lg border px-4 py-2.5 transition-colors",m),e[2]=m,e[3]=h):h=e[3];let g;e[4]!==n.icon||e[5]!==n.title?(g=t.jsx(ae,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[4]=n.icon,e[5]=n.title,e[6]=g):g=e[6];let j;e[7]!==n.title?(j=t.jsx("p",{className:"text-sm font-medium truncate",children:n.title}),e[7]=n.title,e[8]=j):j=e[8];let N;e[9]!==n.status||e[10]!==f||e[11]!==x||e[12]!==a?(N=x?t.jsx("span",{className:"text-xs text-destructive font-medium",children:a("details.connectionInstancesPanel.needsAuthorization")}):f?t.jsx("span",{className:"text-xs text-destructive font-medium",children:n.status==="error"?a("details.connectionInstancesPanel.disabledError"):a("details.connectionInstancesPanel.disabled")}):null,e[9]=n.status,e[10]=f,e[11]=x,e[12]=a,e[13]=N):N=e[13];let _;e[14]!==j||e[15]!==N?(_=t.jsxs("div",{className:"flex-1 min-w-0",children:[j,N]}),e[14]=j,e[15]=N,e[16]=_):_=e[16];let y;e[17]!==n||e[18]!==x||e[19]!==o||e[20]!==a?(y=x&&t.jsx(B,{variant:"outline",size:"sm",onClick:()=>o(n),children:a("details.connectionInstancesPanel.authorize")}),e[17]=n,e[18]=x,e[19]=o,e[20]=a,e[21]=y):y=e[21];let C;e[22]!==n||e[23]!==f||e[24]!==l||e[25]!==a?(C=f?t.jsxs(B,{variant:"outline",size:"sm",className:"gap-1.5",onClick:()=>l(n,"active"),children:[t.jsx(mt,{size:13}),a("details.connectionInstancesPanel.enable")]}):t.jsx(B,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground",onClick:()=>l(n,"inactive"),title:a("details.connectionInstancesPanel.disable"),"aria-label":a("details.connectionInstancesPanel.disable"),children:t.jsx(ut,{size:13})}),e[22]=n,e[23]=f,e[24]=l,e[25]=a,e[26]=C):C=e[26];let D;e[27]!==n||e[28]!==c?(D=()=>c(n),e[27]=n,e[28]=c,e[29]=D):D=e[29];let w;e[30]!==a?(w=a("details.connectionInstancesPanel.configure"),e[30]=a,e[31]=w):w=e[31];let $;e[32]!==a?($=a("details.connectionInstancesPanel.configure"),e[32]=a,e[33]=$):$=e[33];let O;e[34]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(ke,{size:13}),e[34]=O):O=e[34];let P;e[35]!==D||e[36]!==w||e[37]!==$?(P=t.jsx(B,{variant:"ghost",size:"icon-sm",onClick:D,title:w,"aria-label":$,children:O}),e[35]=D,e[36]=w,e[37]=$,e[38]=P):P=e[38];let T;e[39]!==n||e[40]!==i?(T=()=>i(n),e[39]=n,e[40]=i,e[41]=T):T=e[41];let S;e[42]!==a?(S=a("details.connectionInstancesPanel.delete"),e[42]=a,e[43]=S):S=e[43];let v;e[44]!==a?(v=a("details.connectionInstancesPanel.delete"),e[44]=a,e[45]=v):v=e[45];let z;e[46]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(re,{size:13}),e[46]=z):z=e[46];let E;e[47]!==T||e[48]!==S||e[49]!==v?(E=t.jsx(B,{variant:"ghost-destructive",size:"icon-sm",onClick:T,title:S,"aria-label":v,children:z}),e[47]=T,e[48]=S,e[49]=v,e[50]=E):E=e[50];let M;e[51]!==P||e[52]!==E||e[53]!==y||e[54]!==C?(M=t.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[y,C,P,E]}),e[51]=P,e[52]=E,e[53]=y,e[54]=C,e[55]=M):M=e[55];let A;return e[56]!==M||e[57]!==h||e[58]!==g||e[59]!==_?(A=t.jsxs("div",{className:h,children:[g,_,M]}),e[56]=M,e[57]=h,e[58]=g,e[59]=_,e[60]=A):A=e[60],A}function Zt(s){const e=U.c(21),{instance:n,onConfigure:c}=s,o=V();let i;e[0]!==n.icon||e[1]!==n.title?(i=t.jsx(ae,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[0]=n.icon,e[1]=n.title,e[2]=i):i=e[2];let l;e[3]!==n.title?(l=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium truncate",children:n.title})}),e[3]=n.title,e[4]=l):l=e[4];let a;e[5]!==n||e[6]!==c?(a=()=>c(n),e[5]=n,e[6]=c,e[7]=a):a=e[7];let r;e[8]!==o?(r=o("details.connectionInstancesPanel.configure"),e[8]=o,e[9]=r):r=e[9];let d;e[10]!==o?(d=o("details.connectionInstancesPanel.configure"),e[10]=o,e[11]=d):d=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(ke,{size:13}),e[12]=u):u=e[12];let x;e[13]!==a||e[14]!==r||e[15]!==d?(x=t.jsx("div",{className:"flex items-center gap-1 shrink-0",children:t.jsx(B,{variant:"ghost",size:"icon-sm",onClick:a,title:r,"aria-label":d,children:u})}),e[13]=a,e[14]=r,e[15]=d,e[16]=x):x=e[16];let f;return e[17]!==i||e[18]!==l||e[19]!==x?(f=t.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-transparent px-4 py-2.5 transition-colors",children:[i,l,x]}),e[17]=i,e[18]=l,e[19]=x,e[20]=f):f=e[20],f}function es(s){const e=U.c(33),{instances:n,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l,onAdd:a,isAdding:r}=s,d=V();if(n.length===0)return null;let u;e[0]!==n.length||e[1]!==d?(u=n.length===1?d("details.connectionInstancesPanel.instance"):d("details.connectionInstancesPanel.instances"),e[0]=n.length,e[1]=d,e[2]=u):u=e[2];let x;e[3]!==u?(x=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:u}),e[3]=u,e[4]=x):x=e[4];let f;e[5]!==r?(f=r?t.jsx(Se,{className:"size-[13px]"}):t.jsx(dt,{size:13}),e[5]=r,e[6]=f):f=e[6];let m;e[7]!==d?(m=d("details.connectionInstancesPanel.addInstance"),e[7]=d,e[8]=m):m=e[8];let h;e[9]!==r||e[10]!==a||e[11]!==f||e[12]!==m?(h=t.jsxs(B,{variant:"default",size:"sm",className:"gap-1.5",onClick:a,disabled:r,children:[f,m]}),e[9]=r,e[10]=a,e[11]=f,e[12]=m,e[13]=h):h=e[13];let g;e[14]!==x||e[15]!==h?(g=t.jsxs("div",{className:"px-5 py-4 border-b border-border flex items-center justify-between",children:[x,h]}),e[14]=x,e[15]=h,e[16]=g):g=e[16];let j;if(e[17]!==n||e[18]!==o||e[19]!==c||e[20]!==i||e[21]!==l){let y;e[23]!==o||e[24]!==c||e[25]!==i||e[26]!==l?(y=C=>t.jsx(Q.Suspense,{fallback:t.jsx(Zt,{instance:C,onConfigure:c}),children:t.jsx(Jt,{instance:C,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l})},C.id),e[23]=o,e[24]=c,e[25]=i,e[26]=l,e[27]=y):y=e[27],j=n.map(y),e[17]=n,e[18]=o,e[19]=c,e[20]=i,e[21]=l,e[22]=j}else j=e[22];let N;e[28]!==j?(N=t.jsx("div",{className:"p-2 flex flex-col gap-1",children:j}),e[28]=j,e[29]=N):N=e[29];let _;return e[30]!==g||e[31]!==N?(_=t.jsxs("div",{className:"surface overflow-hidden",children:[g,N]}),e[30]=g,e[31]=N,e[32]=_):_=e[32],_}function ts(s,e=3){const n=new Map;for(const c of s){if(!c.isError)continue;const o=(c.errorMessage??"").trim()||"Unknown error";n.set(o,(n.get(o)??0)+1)}return[...n.entries()].map(([c,o])=>({message:c,count:o})).sort((c,o)=>o.count-c.count).slice(0,e)}const ss=[{value:"7d",label:"7d"},{value:"14d",label:"14d"},{value:"30d",label:"30d"}];function ns(s){const e=new Date,n=new Date(e);return s==="7d"?n.setDate(n.getDate()-7):s==="14d"?n.setDate(n.getDate()-14):n.setDate(n.getDate()-30),{startDate:n,endDate:e}}const is={calls:{label:"Tool calls"},errors:{label:"Errors"}};function os(s){const e=U.c(4),{connectionId:n,orgId:c,timeframe:o}=s,i=V(),l=Re(),a=ns(o),{data:r}=me({queryKey:ee.connectionActivity(n,o,c),queryFn:async()=>await l.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,limit:2e3,offset:0}),staleTime:3e5}),{data:d}=me({queryKey:ee.connectionActivityErrors(n,o,c),queryFn:async()=>await l.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,isError:!0,limit:1,offset:0}),staleTime:3e5}),u=kt(r?.logs??[],a,void 0,r?.total,d?.total),x=u.data,f=u.totalCalls>0,m=ts(r?.logs??[]),h=u.totalCalls>0?Math.round(u.totalErrors/u.totalCalls*100):0;let g;e[0]!==i?(g=i("details.connectionActivity.toolCalls"),e[0]=i,e[1]=g):g=e[1];let j;return e[2]!==g?(j=t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:g}),e[2]=g,e[3]=j):j=e[3],t.jsxs("div",{children:[t.jsxs("div",{className:"flex gap-6 px-5 pb-4",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-semibold text-foreground tabular-nums",children:u.totalCalls.toLocaleString()}),j]}),u.totalErrors>0&&t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-semibold text-destructive tabular-nums",children:u.totalErrors.toLocaleString()}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("details.connectionActivity.errors")})]}),u.avgDurationMs>0&&t.jsxs("div",{children:[t.jsxs("p",{className:"text-2xl font-semibold text-foreground tabular-nums",children:[Math.round(u.avgDurationMs),"ms"]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("details.connectionActivity.avgLatency")})]})]}),f?t.jsxs("div",{children:[t.jsx(Tt,{config:is,className:"h-16 w-full",children:t.jsxs(Dt,{data:x,barCategoryGap:"4%",children:[t.jsx(At,{content:t.jsx(Pt,{labelFormatter:rs}),cursor:{fill:"var(--muted)"}}),t.jsx($t,{dataKey:"calls",radius:[2,2,0,0],minPointSize:1,children:x.map(ls)})]})}),t.jsxs("div",{className:"flex justify-between px-3 mt-1 pb-3",children:[t.jsx("span",{className:"text-2xs text-muted-foreground",children:x[0]?.label}),t.jsx("span",{className:"text-2xs text-muted-foreground",children:x[x.length-1]?.label})]})]}):t.jsx("div",{className:"h-20 flex items-center justify-center",children:t.jsx("p",{className:"text-sm text-muted-foreground/60",children:i("details.connectionActivity.noActivityInThisPeriod")})}),m.length>0&&t.jsxs("div",{className:"px-5 py-4 border-t border-border",children:[t.jsxs("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:[i("details.connectionActivity.topErrors"),h>0?` · ${i("details.connectionActivity.errorRatePercentage",{errorRate:h.toString()})}`:""]}),t.jsx("ul",{className:"space-y-1.5",children:m.map(as)})]})]})}function as(s){return t.jsxs("li",{className:"flex items-start gap-2 text-xs",children:[t.jsxs("span",{className:"tabular-nums text-destructive font-medium shrink-0",children:[s.count.toLocaleString(),"×"]}),t.jsx("span",{className:"text-muted-foreground truncate",title:s.message,children:s.message})]},s.message)}function ls(s,e){return t.jsx(Ot,{fill:s.errorRate>50?"var(--destructive)":"var(--chart-1)",fillOpacity:s.calls===0?.2:s.errorRate>50?.7:.85},`cell-${e}`)}function rs(s,e){const n=Array.isArray(e)?e[0]:void 0;return n&&typeof n=="object"&&"payload"in n?n.payload?.label??"":""}function cs(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{children:[t.jsx("div",{className:"flex gap-6 px-5 pb-4",children:t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("div",{className:"h-7 w-16 rounded-md bg-muted animate-pulse"}),t.jsx("div",{className:"h-3 w-14 rounded bg-muted animate-pulse"})]})}),t.jsx("div",{className:"h-20 w-full rounded-md bg-muted animate-pulse"})]}),s[0]=e):e=s[0],e}function ds(s){const e=U.c(22),{connectionId:n}=s,c=V(),[o,i]=Q.useState("14d"),{org:l}=te();let a;e[0]!==c?(a=c("details.connectionActivity.activity"),e[0]=c,e[1]=a):a=e[1];let r;e[2]!==a?(r=t.jsx("div",{children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:a})}),e[2]=a,e[3]=r):r=e[3];let d;e[4]!==c?(d=c("details.connectionActivity.timeframe"),e[4]=c,e[5]=d):d=e[5];let u;e[6]!==o?(u=ss.map(j=>t.jsx("button",{type:"button","aria-pressed":o===j.value,onClick:()=>i(j.value),className:ye("px-2.5 py-1 text-xs font-medium rounded-lg transition-colors",o===j.value?"bg-card text-foreground shadow-edge":"text-muted-foreground hover:text-foreground"),children:j.label},j.value)),e[6]=o,e[7]=u):u=e[7];let x;e[8]!==d||e[9]!==u?(x=t.jsx("div",{role:"group","aria-label":d,className:"flex items-center gap-0.5 bg-muted rounded-lg p-0.5",children:u}),e[8]=d,e[9]=u,e[10]=x):x=e[10];let f;e[11]!==r||e[12]!==x?(f=t.jsxs("div",{className:"px-5 py-4 flex items-center justify-between",children:[r,x]}),e[11]=r,e[12]=x,e[13]=f):f=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(cs,{}),e[14]=m):m=e[14];let h;e[15]!==n||e[16]!==l.id||e[17]!==o?(h=t.jsx(Q.Suspense,{fallback:m,children:t.jsx(os,{connectionId:n,orgId:l.id,timeframe:o})}),e[15]=n,e[16]=l.id,e[17]=o,e[18]=h):h=e[18];let g;return e[19]!==f||e[20]!==h?(g=t.jsxs("div",{className:"surface overflow-hidden",children:[f,h]}),e[19]=f,e[20]=h,e[21]=g):g=e[21],g}function ms(s){const e=U.c(15),{virtualMcp:n,org:c}=s,o=se();let i;e[0]!==o||e[1]!==c||e[2]!==n.id?(i=()=>{const x=crypto.randomUUID();o({to:"/$org/projects/$agentId",params:{org:c,agentId:n.id},search:{thread:x}})},e[0]=o,e[1]=c,e[2]=n.id,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_e,{size:16}),e[4]=l):l=e[4];let a;e[5]!==n.icon||e[6]!==n.title?(a=t.jsx(ae,{icon:n.icon,name:n.title,size:"xs",fallbackIcon:l}),e[5]=n.icon,e[6]=n.title,e[7]=a):a=e[7];let r;e[8]!==n.title?(r=t.jsx("span",{className:"flex-1 text-sm font-medium text-foreground truncate",children:n.title}),e[8]=n.title,e[9]=r):r=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(Ce,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors shrink-0"}),e[10]=d):d=e[10];let u;return e[11]!==i||e[12]!==a||e[13]!==r?(u=t.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-lg hover:bg-accent transition-colors group text-left w-full",children:[a,r,d]}),e[11]=i,e[12]=a,e[13]=r,e[14]=u):u=e[14],u}function us(s){const e=U.c(7),{virtualMcps:n,org:c}=s;let o;if(e[0]!==c||e[1]!==n){let l;e[3]!==c?(l=a=>t.jsx(ms,{virtualMcp:a,org:c},a.id),e[3]=c,e[4]=l):l=e[4],o=n.map(l),e[0]=c,e[1]=n,e[2]=o}else o=e[2];let i;return e[5]!==o?(i=t.jsx("div",{className:"flex flex-col gap-3",children:t.jsx("div",{className:"flex flex-col gap-2",children:o})}),e[5]=o,e[6]=i):i=e[6],i}function xs(s){const e=U.c(13),{connection:n}=s,c=V(),{org:o}=te();let i;e[0]!==n.id?(i={filters:[{column:"connection_id",value:n.id}]},e[0]=n.id,e[1]=i):i=e[1];const l=Mt(i);if(!(l.length>0)){let f;return e[2]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(t.Fragment,{}),e[2]=f):f=e[2],f}let r;e[3]!==c?(r=c("details.connectionAgentsPanel.usedByAgents"),e[3]=c,e[4]=r):r=e[4];let d;e[5]!==r?(d=t.jsx("div",{className:"px-5 py-4 border-b border-border",children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:r})}),e[5]=r,e[6]=d):d=e[6];let u;e[7]!==o.slug||e[8]!==l?(u=t.jsx("div",{className:"px-5 py-4",children:t.jsx(us,{virtualMcps:l,org:o.slug})}),e[7]=o.slug,e[8]=l,e[9]=u):u=e[9];let x;return e[10]!==d||e[11]!==u?(x=t.jsxs("div",{className:"surface overflow-hidden",children:[d,u]}),e[10]=d,e[11]=u,e[12]=x):x=e[12],x}function ps(s){const e=U.c(35),{tools:n,connectionId:c,org:o}=s,i=V(),l=se(),{org:a}=te();let r;e[0]!==c||e[1]!==a.id||e[2]!==a.slug?(r={connectionId:c,orgId:a.id,orgSlug:a.slug},e[0]=c,e[1]=a.id,e[2]=a.slug,e[3]=r):r=e[3];const d=Pe(r),u=Te(c);let x;e[4]!==u||e[5]!==c?(x=u?De(u):c,e[4]=u,e[5]=c,e[6]=x):x=e[6];const f=x,[m,h]=Q.useState("");let g,j,N,_;if(e[7]!==f||e[8]!==d||e[9]!==l||e[10]!==o||e[11]!==m||e[12]!==i||e[13]!==n){const D=(n??[]).filter(fs),w=m.toLowerCase().trim(),$=w?D.filter(v=>v.name.toLowerCase().includes(w)||v.description&&v.description.toLowerCase().includes(w)):D;let O;e[18]!==f||e[19]!==l||e[20]!==o?(O=v=>{l({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:o,appSlug:f,collectionName:"tools",itemId:encodeURIComponent(v.name)}})},e[18]=f,e[19]=l,e[20]=o,e[21]=O):O=e[21];const P=O;N="flex flex-col h-full overflow-hidden";let T;e[22]!==i?(T=i("details.connectionUiTab.searchAppsPlaceholder"),e[22]=i,e[23]=T):T=e[23];let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=v=>{v.key==="Escape"&&(h(""),v.target.blur())},e[24]=S):S=e[24],e[25]!==m||e[26]!==T?(_=t.jsx(Ft,{value:m,onChange:h,placeholder:T,onKeyDown:S}),e[25]=m,e[26]=T,e[27]=_):_=e[27],g="flex-1 overflow-auto p-5",j=$.length===0?t.jsx(we,{image:null,title:i(m?"details.connectionUiTab.noAppsFound":"details.connectionUiTab.noAppsAvailable"),description:i(m?"details.connectionUiTab.adjustSearchTerms":"details.connectionUiTab.noInteractiveUis")}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(320px,1fr))] gap-4",children:$.map(v=>{const z=ce(v._meta);return t.jsxs(Ue,{size:"flush",className:"cursor-pointer transition-colors overflow-hidden gap-0",onClick:()=>P(v),children:[t.jsx("div",{className:"h-[200px] overflow-hidden border-b border-border",children:t.jsx(Q.Suspense,{fallback:t.jsx(Fe,{className:"h-full w-full"}),children:t.jsx(Ut,{resourceURI:z,toolInfo:{tool:v},displayMode:"inline",minHeight:200,maxHeight:200,client:d})})}),t.jsxs("div",{className:"flex flex-col gap-2 p-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:v.annotations?.title??v.name}),t.jsx(rt,{annotations:v.annotations,_meta:v._meta})]}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:v.description})]})]},v.name)})}),e[7]=f,e[8]=d,e[9]=l,e[10]=o,e[11]=m,e[12]=i,e[13]=n,e[14]=g,e[15]=j,e[16]=N,e[17]=_}else g=e[14],j=e[15],N=e[16],_=e[17];let y;e[28]!==g||e[29]!==j?(y=t.jsx("div",{className:g,children:j}),e[28]=g,e[29]=j,e[30]=y):y=e[30];let C;return e[31]!==N||e[32]!==_||e[33]!==y?(C=t.jsxs("div",{className:N,children:[_,y]}),e[31]=N,e[32]=_,e[33]=y,e[34]=C):C=e[34],C}function fs(s){return!!ce(s._meta)}const ve=[];function $e(s){const e=s.replace(/[._]/g," ").trim().split(/\s+/),n=l=>l.charAt(0).toUpperCase()+l.slice(1),c=new Set(["list","create","get","update","delete","fetch","search","run","trigger","review","send","check"]),o=e.map(n),i=e[e.length-1];return o.length>=2&&i&&c.has(i)?[o.pop(),...o].join(" "):o.join(" ")}function le(s){const e=U.c(5),{label:n}=s,c=V();let o;e[0]!==n||e[1]!==c?(o=c("details.connectionCapabilities.noItemsAvailable",{item:n}),e[0]=n,e[1]=c,e[2]=o):o=e[2];let i;return e[3]!==o?(i=t.jsx("div",{className:"px-5 py-8 text-center",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o})}),e[3]=o,e[4]=i):i=e[4],i}function hs(s){const e=U.c(68),{tools:n,prompts:c,resources:o,connectionId:i,org:l}=s,a=c===void 0?ve:c,r=o===void 0?ve:o,d=V(),u=se(),x=Te(i??"");let f;e[0]!==x||e[1]!==i?(f=x?De(x):i,e[0]=x,e[1]=i,e[2]=f):f=e[2];const m=f;let h;e[3]!==m||e[4]!==i||e[5]!==u||e[6]!==l?(h=function(I){!i||!l||u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:m,collectionName:"tools",itemId:encodeURIComponent(I)}})},e[3]=m,e[4]=i,e[5]=u,e[6]=l,e[7]=h):h=e[7];const g=h;let j;e[8]!==i||e[9]!==l||e[10]!==n?(j=i&&l&&n.some(vs),e[8]=i,e[9]=l,e[10]=n,e[11]=j):j=e[11];const N=j;if(n.length+a.length+r.length===0){let b;e[12]!==d?(b=d("details.connectionCapabilities.capabilities"),e[12]=d,e[13]=b):b=e[13];let I;e[14]!==b?(I=t.jsx("h3",{className:"text-sm font-semibold text-foreground mb-1",children:b}),e[14]=b,e[15]=I):I=e[15];let k;e[16]!==d?(k=d("details.connectionCapabilities.noCapabilitiesDiscovered"),e[16]=d,e[17]=k):k=e[17];let F;e[18]!==k?(F=t.jsx("p",{className:"text-sm text-muted-foreground",children:k}),e[18]=k,e[19]=F):F=e[19];let W;return e[20]!==I||e[21]!==F?(W=t.jsxs("div",{className:"surface p-5",children:[I,F]}),e[20]=I,e[21]=F,e[22]=W):W=e[22],W}let y;e[23]!==d||e[24]!==n.length?(y=d("details.connectionCapabilities.toolsTab",{count:n.length}),e[23]=d,e[24]=n.length,e[25]=y):y=e[25];let C;e[26]!==y?(C=t.jsx(ie,{value:"tools",variant:"underline",children:y}),e[26]=y,e[27]=C):C=e[27];let D;e[28]!==N||e[29]!==d?(D=N&&t.jsx(ie,{value:"apps",variant:"underline",children:d("details.connectionCapabilities.uiTab")}),e[28]=N,e[29]=d,e[30]=D):D=e[30];let w;e[31]!==d?(w=d("details.connectionCapabilities.promptsTab"),e[31]=d,e[32]=w):w=e[32];let $;e[33]!==w?($=t.jsx(ie,{value:"prompts",variant:"underline",children:w}),e[33]=w,e[34]=$):$=e[34];let O;e[35]!==d?(O=d("details.connectionCapabilities.resourcesTab"),e[35]=d,e[36]=O):O=e[36];let P;e[37]!==O?(P=t.jsx(ie,{value:"resources",variant:"underline",children:O}),e[37]=O,e[38]=P):P=e[38];let T;e[39]!==$||e[40]!==P||e[41]!==C||e[42]!==D?(T=t.jsx("div",{className:"px-5 flex items-center justify-between border-b border-border",children:t.jsxs(zt,{variant:"underline",className:"gap-1",children:[C,D,$,P]})}),e[39]=$,e[40]=P,e[41]=C,e[42]=D,e[43]=T):T=e[43];let S;e[44]!==g||e[45]!==n?(S=n.length>0?n.map(b=>t.jsxs("button",{type:"button",className:"w-full flex items-start gap-3 px-5 py-3 text-left hover:bg-accent transition-colors cursor-pointer",onClick:()=>g(b.name),children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(pt,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:$e(b.name)}),b.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:b.description})]}),t.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0 mt-0.5"})]},b.name)):t.jsx(le,{label:"tools"}),e[44]=g,e[45]=n,e[46]=S):S=e[46];let v;e[47]!==S?(v=t.jsx(oe,{value:"tools",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:S})}),e[47]=S,e[48]=v):v=e[48];let z;e[49]!==i||e[50]!==N||e[51]!==l||e[52]!==n?(z=N&&t.jsx(oe,{value:"apps",className:"h-auto min-h-[200px]",children:t.jsx(ps,{tools:n,connectionId:i,org:l})}),e[49]=i,e[50]=N,e[51]=l,e[52]=n,e[53]=z):z=e[53];let E;e[54]!==a?(E=a.length>0?a.map(js):t.jsx(le,{label:"prompts"}),e[54]=a,e[55]=E):E=e[55];let M;e[56]!==E?(M=t.jsx(oe,{value:"prompts",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:E})}),e[56]=E,e[57]=M):M=e[57];let A;e[58]!==r?(A=r.length>0?r.map(gs):t.jsx(le,{label:"resources"}),e[58]=r,e[59]=A):A=e[59];let R;e[60]!==A?(R=t.jsx(oe,{value:"resources",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:A})}),e[60]=A,e[61]=R):R=e[61];let p;return e[62]!==T||e[63]!==v||e[64]!==z||e[65]!==M||e[66]!==R?(p=t.jsx("div",{className:"surface overflow-hidden",children:t.jsxs(Et,{defaultValue:"tools",variant:"underline",children:[T,v,z,M,R]})}),e[62]=T,e[63]=v,e[64]=z,e[65]=M,e[66]=R,e[67]=p):p=e[67],p}function gs(s){return t.jsxs("div",{className:"flex items-start gap-3 px-5 py-3",children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(xt,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:s.name}),s.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:s.description}),s.uri&&t.jsx("div",{className:"text-xs text-muted-foreground/60 font-mono mt-0.5 truncate",children:s.uri})]})]},s.uri??s.name)}function js(s){return t.jsxs("div",{className:"flex items-start gap-3 px-5 py-3",children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(Rt,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:$e(s.name)}),s.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:s.description})]})]},s.name)}function vs(s){return ce(s._meta)}function bs(s){const e=U.c(13),{connection:n,displayTitle:c}=s,o=c??n.title;let i;e[0]!==n.icon||e[1]!==o?(i=t.jsx(ae,{icon:n.icon,name:o,size:"md",className:"shrink-0"}),e[0]=n.icon,e[1]=o,e[2]=i):i=e[2];let l;e[3]!==o?(l=t.jsx(Ve.Title,{children:o}),e[3]=o,e[4]=l):l=e[4];let a;e[5]!==n.description?(a=n.description&&t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-2",children:n.description}),e[5]=n.description,e[6]=a):a=e[6];let r;e[7]!==l||e[8]!==a?(r=t.jsxs("div",{className:"flex-1 min-w-0",children:[l,a]}),e[7]=l,e[8]=a,e[9]=r):r=e[9];let d;return e[10]!==i||e[11]!==r?(d=t.jsxs("div",{className:"flex items-center px-4 md:px-8 bg-background border-b border-border shrink-0 gap-3 py-4",children:[i,r]}),e[10]=i,e[11]=r,e[12]=d):d=e[12],d}function Ns({form:s,connection:e,hasOAuthToken:n,onReauthenticate:c,onRemoveOAuth:o}){const i=V(),l=ue({control:s.control,name:"ui_type"}),a=ue({control:s.control,name:"connection_url"}),{stdioEnabled:r}=Le(),d=(()=>{if(typeof a!="string"||!a)return!1;try{const m=new URL(a);return m.hostname==="api.githubcopilot.com"&&m.pathname.replace(/\/+$/,"")==="/mcp"}catch{return!1}})(),u=r||e.connection_type==="STDIO",x=e.connection_type==="VIRTUAL",f=x?Kt(e.connection_url):null;return x?t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.type")}),t.jsxs("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:[t.jsx(_e,{className:"w-4 h-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:i("details.connectionSidebar.virtualMcp")})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.virtualMcpDescription")})]}),f&&t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.virtualMcpId")}),t.jsx("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:t.jsx("code",{className:"text-sm text-muted-foreground",children:f})})]})]}):t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx(G,{control:s.control,name:"ui_type",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.connection")}),l!=="NPX"&&l!=="STDIO"?t.jsxs("div",{className:"flex items-stretch rounded-lg border border-border overflow-hidden",children:[t.jsxs(fe,{value:m.value,onValueChange:m.onChange,children:[t.jsx(L,{children:t.jsxs(he,{className:"h-full! w-auto min-w-[90px] border-0 rounded-none bg-muted/50 focus:ring-0 focus:ring-offset-0",children:[t.jsx(ne,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t.jsx(ge,{})]})}),t.jsxs(je,{children:[t.jsx(q,{value:"HTTP",children:i("details.connectionSidebar.http")}),t.jsx(q,{value:"SSE",children:i("details.connectionSidebar.sse")}),t.jsx(q,{value:"Websocket",children:i("details.connectionSidebar.websocket")}),u&&t.jsxs(t.Fragment,{children:[t.jsx(q,{value:"NPX",children:i("details.connectionSidebar.npxPackage")}),t.jsx(q,{value:"STDIO",children:i("details.connectionSidebar.customCommand")})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(G,{control:s.control,name:"connection_url",render:({field:h})=>t.jsx(H,{className:"flex-1 min-w-0",children:t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.urlPlaceholder"),...h,value:h.value??"",className:"h-10 border-0 rounded-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent"})})})})]}):t.jsxs(fe,{value:m.value,onValueChange:m.onChange,children:[t.jsx(L,{children:t.jsx(he,{className:"h-10",children:t.jsx(ge,{})})}),t.jsxs(je,{children:[t.jsx(q,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.http")]})}),t.jsx(q,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.sse")]})}),t.jsx(q,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.websocket")]})}),u&&t.jsxs(t.Fragment,{children:[t.jsx(q,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(qt,{className:"w-4 h-4"}),i("details.connectionSidebar.npxPackage")]})}),t.jsx(q,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Gt,{className:"w-4 h-4"}),i("details.connectionSidebar.customCommand")]})})]})]})]}),t.jsx(X,{})]})}),l==="NPX"&&t.jsx(G,{control:s.control,name:"npx_package",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.npmPackage")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.npmPackagePlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})}),l==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(G,{control:s.control,name:"stdio_command",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.command")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.commandPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})}),t.jsx(G,{control:s.control,name:"stdio_args",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.arguments")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.argumentsPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.spaceSeparatedArguments")}),t.jsx(X,{})]})})]}),t.jsx(G,{control:s.control,name:"stdio_cwd",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.workingDirectory")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.workingDirectoryPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})})]}),(l==="NPX"||l==="STDIO")&&t.jsx(G,{control:s.control,name:"env_vars",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.environmentVariables")}),t.jsx(L,{children:t.jsx(tt,{value:m.value??[],onChange:m.onChange})}),t.jsx(X,{})]})}),l!=="NPX"&&l!=="STDIO"&&t.jsx(G,{control:s.control,name:"connection_token",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i(d?"details.connectionSidebar.githubPersonalAccessToken":"details.connectionSidebar.token")}),n?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(Be,{children:[t.jsx(qe,{asChild:!0,children:t.jsx("button",{type:"button",className:"inline-flex items-center gap-1.5 cursor-pointer",children:t.jsxs(Vt,{variant:"success",className:"gap-1.5",children:[t.jsx(Lt,{size:12}),i("details.connectionSidebar.authenticatedViaOAuth"),t.jsx(Bt,{size:12})]})})}),t.jsxs(Ge,{align:"start",children:[t.jsxs(xe,{onClick:c,children:[t.jsx(ft,{size:16}),i("details.connectionSidebar.reauthenticate")]}),t.jsxs(xe,{variant:"destructive",onClick:o,children:[t.jsx(re,{size:16}),i("details.connectionSidebar.removeOAuth")]})]})]})}):e.connection_token&&m.value===null?t.jsxs("div",{className:"relative group",children:[t.jsx("div",{className:"h-10 px-3 flex items-center rounded-lg border border-border bg-muted/50 text-muted-foreground font-mono text-sm",children:"••••••••••••••••"}),t.jsx("button",{type:"button",onClick:()=>m.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-accent opacity-0 group-hover:opacity-100 transition-opacity rounded-lg",title:i("details.connectionSidebar.clearAndReplaceToken"),"aria-label":i("details.connectionSidebar.clearAndReplaceToken"),children:t.jsx(Ht,{size:14,className:"text-muted-foreground"})})]}):t.jsxs(t.Fragment,{children:[t.jsx(L,{children:t.jsx(J,{type:"password",placeholder:i(d?"details.connectionSidebar.pasteYourGitHubPat":"details.connectionSidebar.enterAccessToken"),...m,value:m.value||"",className:"h-10"})}),d?t.jsxs(pe,{children:[i("details.connectionSidebar.createAPatAt")," ",t.jsx("a",{href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"github.com/settings/personal-access-tokens"})]}):t.jsx(pe,{children:i("details.connectionSidebar.tokenSchemeHint")})]}),t.jsx(X,{})]})})]})}function Ss(s){return s.command==="npx"}function ys(s){return s.args?.find(e=>!e.startsWith("-"))??""}function _s(s){return{command:s.command,args:s.args?.join(" ")??"",cwd:s.cwd??""}}function be(s,e){const n={title:s.title,description:s.description??"",icon:s.icon??null,configuration_state:s.configuration_state??{},configuration_scopes:s.configuration_scopes||[]};if(s.connection_type==="STDIO"&&Xt(s.connection_headers)){const c=s.connection_headers,o=st(c.envVars);if(Ss(c)){const l=ys(c);return{...n,ui_type:"NPX",connection_url:"",connection_token:null,npx_package:l,stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:o}}const i=_s(c);return{...n,ui_type:"STDIO",connection_url:"",connection_token:null,npx_package:"",stdio_command:i.command,stdio_args:i.args,stdio_cwd:i.cwd,env_vars:o}}return{...n,ui_type:s.connection_type,connection_url:s.connection_url??"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}function Cs(s){let e,n=null,c=!1,o=null,i=null;return s.ui_type==="NPX"?(e="STDIO",n="",i=nt(s.npx_package||"",s.env_vars||[])):s.ui_type==="STDIO"?(e="STDIO",n="",i=it(s.stdio_command||"",s.stdio_args||"",s.stdio_cwd,s.env_vars||[])):(e=s.ui_type,n=s.connection_url||"",c=s.connection_token!==null&&s.connection_token!==void 0,o=s.connection_token||null),{title:s.title,description:s.description||null,icon:s.icon??null,connection_type:e,connection_url:n,...c&&{connection_token:o},...i&&{connection_headers:i},configuration_state:s.configuration_state??null,configuration_scopes:s.configuration_scopes??null}}function ws({connection:s,connectionId:e,org:n,isUpdating:c,tools:o,prompts:i,resources:l,siblings:a}){const r=V(),d=se({from:"/$org/settings/connections/$appSlug"}),u=Qe(),x=Ae(),{org:f}=te(),m=wt({onSuccess:()=>{a.length<=1&&d({to:"/$org/settings/connections",params:{org:n}})}}),[h,g]=Q.useState(null),[j,N]=Q.useState(!1),_=Ie({connectionId:e}),{data:y}=We(),C=y?.data?.members??[],D=h??s,w=C.find(p=>p.userId===D.created_by),O=s?.connection_type==="VIRTUAL"||_.isAuthenticated,P={...s,tools:o},T=ot(P,Yt),S=Ye({resolver:Je(Qt),values:be(h??s)}),v=S.formState.isDirty,z=async()=>{if(!await S.trigger())return;const b=S.getValues(),I=Cs(b),k=h?.id??e;await x.update.mutateAsync({id:k,data:I}),S.reset(b)},E=()=>{S.reset(be(h??s))},M=async p=>{const b=s.configuration_scopes?.length?s.configuration_scopes.join(" "):void 0,{token:I,tokenInfo:k,error:F}=await ct({connectionId:p,orgSlug:f.slug,...b?{scope:b}:{}});if(F||!I){Y.error(r("details.connection.authFailed",{error:F??""}));return}if(k)try{const Z=await fetch(`/api/${f.slug}/connections/${p}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:k.accessToken,refreshToken:k.refreshToken,expiresIn:k.expiresIn,scope:k.scope,clientId:k.clientId,clientSecret:k.clientSecret,tokenEndpoint:k.tokenEndpoint})});if(!Z.ok)console.error("Failed to save OAuth token:",await Z.text()),await x.update.mutateAsync({id:p,data:{connection_token:I}});else try{await x.update.mutateAsync({id:p,data:{}})}catch(Oe){console.warn("Failed to refresh connection tools after OAuth:",Oe)}}catch(Z){console.error("Error saving OAuth token:",Z),await x.update.mutateAsync({id:p,data:{connection_token:I}})}else await x.update.mutateAsync({id:p,data:{connection_token:I}});const W=new URL(`/api/${f.slug}/mcp/${p}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(W.href,null)}),await u.invalidateQueries({queryKey:ee.mcpClientPrefix()}),Y.success(r("details.connection.authSuccess"))},A=()=>M(s.id),R=async()=>{try{const p=await fetch(`/api/${f.slug}/connections/${s.id}/oauth-token`,{method:"DELETE",credentials:"include"});if(!p.ok){const I=await p.text();Y.error(r("details.connection.failedRemoveOAuth",{error:I}));return}const b=new URL(`/api/${f.slug}/mcp/${s.id}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(b.href,null)}),Y.success(r("details.connection.oauthRemoved"))}catch(p){console.error("Error removing OAuth token:",p),Y.error(r("details.connection.failedRemoveOAuthError"))}};return t.jsxs(t.Fragment,{children:[t.jsx(It,{...m}),t.jsx(ht,{open:h!==null,onOpenChange:p=>{p||g(null)},children:t.jsxs(gt,{side:"right",className:"sm:max-w-[520px] p-0 flex flex-col gap-0 overflow-hidden",children:[t.jsxs(jt,{className:"px-4 py-3 md:px-6 md:py-4 border-b border-border shrink-0",children:[t.jsx(vt,{className:"text-base",children:h?.title??s.title}),t.jsx(bt,{className:"text-xs",children:r("details.connection.settingsDescription")}),w&&t.jsxs("div",{className:"flex items-center gap-1.5 pt-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground",children:r("details.connection.connectedBy")}),t.jsx(Ze,{url:w.user?.image??void 0,fallback:w.user?.name??w.user?.email??"?",size:"3xs",shape:"circle"}),t.jsx("span",{className:"text-xs font-medium text-foreground",children:w.user?.name||w.user?.email})]})]}),t.jsxs(Nt,{...S,children:[t.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-3 md:px-6 md:py-5 flex flex-col gap-4 md:gap-6",children:[t.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[t.jsx(G,{control:S.control,name:"title",render:({field:p})=>t.jsxs(H,{children:[t.jsx(K,{children:r("details.connection.nameLabel")}),t.jsx(L,{children:t.jsx(J,{...p})}),t.jsx(X,{})]})}),t.jsx(G,{control:S.control,name:"description",render:({field:p})=>t.jsxs(H,{children:[t.jsx(K,{children:r("details.connection.descriptionLabel")}),t.jsx(L,{children:t.jsx(J,{...p,value:p.value||""})}),t.jsx(X,{})]})})]}),t.jsx(Ns,{form:S,connection:h??s,hasOAuthToken:_.hasOAuthToken,onReauthenticate:A,onRemoveOAuth:R}),t.jsx(at,{connection:h??s,form:S,hasMcpBinding:T,isMCPAuthenticated:O,supportsOAuth:_.supportsOAuth,isServerError:_.isServerError,onAuthenticate:A,onViewReadme:void 0})]}),t.jsxs("div",{className:"px-6 py-4 border-t border-border flex gap-2 shrink-0",children:[t.jsx(B,{onClick:z,disabled:!v||c,className:"flex-1",children:r(c?"details.connection.savingButton":"details.connection.saveButton")}),v&&t.jsx(B,{variant:"outline",onClick:E,children:r("details.connection.undoButton")}),t.jsxs(B,{variant:"outline",className:"gap-2 text-muted-foreground hover:text-destructive",onClick:()=>{const p=h??s;g(null),m.requestDelete(p)},children:[t.jsx(re,{size:15}),r("details.connection.deleteButton")]})]})]},h?.id??s.id)]})}),t.jsx(lt,{children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[t.jsx(bs,{connection:s,displayTitle:(()=>{const p=a[0]??s;return p.app_name?p.title.replace(/\s*\(\d+\)\s*$/,""):p.title})()}),t.jsx("div",{className:"flex-1 overflow-auto @container",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-2 gap-5 p-6",children:[t.jsx(ds,{connectionId:e}),t.jsxs("div",{className:"flex flex-col gap-5",children:[t.jsx(es,{instances:a,onConfigure:p=>g(p),onAuthenticate:p=>M(p.id),onDelete:p=>m.requestDelete(p),onToggleStatus:async(p,b)=>{try{await x.update.mutateAsync({id:p.id,data:{status:b}}),Y.success(r(b==="active"?"details.connection.connectionEnabled":"details.connection.connectionDisabled"))}catch{Y.error(r("details.connection.failedUpdateConnection"))}},isAdding:j,onAdd:async()=>{N(!0);try{const p=a[0]??s,b=p.title.replace(/\s*\(\d+\)\s*$/,""),I=a.length+1,k=`${b} (${I})`,F=et("conn");await x.create.mutateAsync({id:F,title:k,description:p.description??null,connection_type:p.connection_type,connection_url:p.connection_url??null,connection_token:null,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:p.created_by,organization_id:p.organization_id,icon:p.icon??null,app_name:p.app_name??null,app_id:p.app_id??null,connection_headers:p.connection_headers??null,oauth_config:null,configuration_state:p.configuration_state??null,metadata:null,tools:null,bindings:null});const W=new URL(`/api/${f.slug}/mcp/${F}`,window.location.origin),Z=await Ct({url:W.href,token:null,orgId:f.id});Z.supportsOAuth&&!Z.isAuthenticated&&await M(F)}catch(p){console.error("Failed to add connection instance:",p),Y.error(r("details.connection.failedAddInstance"))}finally{N(!1)}}}),t.jsx(xs,{connection:s})]}),t.jsx("div",{className:"@3xl:col-span-2",children:t.jsx(hs,{tools:o,prompts:i,resources:l,connectionId:e,org:n})})]})})]})})]})}function Is(){const s=U.c(43),e=V();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/$org/settings/connections/$appSlug"},s[0]=n):n=s[0];const c=se(n);let o;s[1]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug"},s[1]=o):o=s[1];const{appSlug:i,org:l}=Ke(o),{org:a}=te(),r=Ae();let d;s[2]!==i?(d={slug:i},s[2]=i,s[3]=d):d=s[3];const u=St(d),[x,f]=Q.useState(null),m=u.find(A=>A.id===x)??u[0]??null;m&&m.id!==x&&f(m.id);const h=m?.id??"",g=Pe({connectionId:h||null,orgId:a.id,orgSlug:a.slug});let j;s[4]!==g?(j={client:g},s[4]=g,s[5]=j):j=s[5];const{data:N}=yt(j),_=N?N.tools.map($s):(m?.tools??[]).map(Ds);let y;e:{if(u.length<=1){y=_;break e}const A=new Set,R=[],p=As;for(const b of u){const I=b.id===h?_:p(b.tools);for(const k of I)A.has(k.name)||(A.add(k.name),R.push(k))}y=R.length>0?R:_}const C=y;let D;s[6]!==g?(D={client:g},s[6]=g,s[7]=D):D=s[7];const{data:w}=_t(D);let $;s[8]!==g?($={client:g},s[8]=g,s[9]=$):$=s[9];const{data:O}=Xe($);let P;s[10]!==w?.prompts?(P=w?.prompts??[],s[10]=w?.prompts,s[11]=P):P=s[11];let T;s[12]!==P?(T=P.map(Ts),s[12]=P,s[13]=T):T=s[13];const S=T;let v;s[14]!==O?.resources?(v=O?.resources??[],s[14]=O?.resources,s[15]=v):v=s[15];let z;s[16]!==v?(z=v.map(ks),s[16]=v,s[17]=z):z=s[17];const E=z;if(!m){let A;s[18]!==e?(A=e("details.connection.notFoundTitle"),s[18]=e,s[19]=A):A=s[19];let R;s[20]!==e?(R=e("details.connection.notFoundDescription"),s[20]=e,s[21]=R):R=s[21];let p;s[22]!==c||s[23]!==l?(p=()=>c({to:"/$org/settings/connections",params:{org:l}}),s[22]=c,s[23]=l,s[24]=p):p=s[24];let b;s[25]!==e?(b=e("details.connection.backButton"),s[25]=e,s[26]=b):b=s[26];let I;s[27]!==p||s[28]!==b?(I=t.jsx(B,{variant:"outline",onClick:p,children:b}),s[27]=p,s[28]=b,s[29]=I):I=s[29];let k;return s[30]!==A||s[31]!==R||s[32]!==I?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(we,{title:A,description:R,actions:I})}),s[30]=A,s[31]=R,s[32]=I,s[33]=k):k=s[33],k}let M;return s[34]!==r.update.isPending||s[35]!==C||s[36]!==m||s[37]!==h||s[38]!==l||s[39]!==S||s[40]!==E||s[41]!==u?(M=t.jsx(ws,{org:l,connection:m,connectionId:h,isUpdating:r.update.isPending,tools:C,prompts:S,resources:E,siblings:u}),s[34]=r.update.isPending,s[35]=C,s[36]=m,s[37]=h,s[38]=l,s[39]=S,s[40]=E,s[41]=u,s[42]=M):M=s[42],M}function ks(s){return{name:s.name,description:s.description,uri:s.uri}}function Ts(s){return{name:s.name,description:s.description}}function As(s){return(s??[]).map(Ps)}function Ps(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema??{},outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function Ds(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema,outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function $s(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema,outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function Os(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(He,{children:t.jsx(Q.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Se,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Is,{})})}),s[0]=e):e=s[0],e}function vi(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Os,{}),s[0]=e):e=s[0],e}export{vi as default};