decocms 4.602.0 → 4.603.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 (435) hide show
  1. package/dist/client/assets/{AlertCircle-B4BiejsA.js → AlertCircle-B1i_KHb5.js} +1 -1
  2. package/dist/client/assets/{AreaChart-KuZY2lVT.js → AreaChart-BatAqoOF.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DpoZP_fX.js → ArrowLeft-BCGEiplU.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-waHzto0g.js → ArrowRight-CTKbq3xg.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-C2dE69W7.js → ArrowUp-D0iB56_y.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-Det9naRR.js → BookOpen01-BRGBbO1d.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-BN-yZqL0.js → CartesianChart-Da5DoyQ3.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-D9Euwg-G.js → CategoricalChart-C0a7-8vN.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-BNEuJPHU.js → CheckCircle-DhVhQqv1.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-_sr4up4D.js → ChevronDown-nlBmBA6R.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-Ddl6sDao.js → ChevronSelectorVertical-CnSsPRgV.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-CK7Ad_mD.js → ChevronUp-8WNgfyfx.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-DaUYIK4F.js → CreditCard01-DXlMDhFZ.js} +1 -1
  14. package/dist/client/assets/{Eye-CYtkFg_6.js → Eye-uwbxmI34.js} +1 -1
  15. package/dist/client/assets/{File02-Dj9EXPDT.js → File02-CFPVdIh1.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-kauf3nbZ.js → Fingerprint04-BCose3-q.js} +1 -1
  17. package/dist/client/assets/{Globe04-YQZG_Qbl.js → Globe04-CVG10uFQ.js} +1 -1
  18. package/dist/client/assets/{Image01-ChEwjYSJ.js → Image01-BIaadP6j.js} +1 -1
  19. package/dist/client/assets/{Key01-DPAOwUET.js → Key01-CBM6N1XG.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-DUieRSDJ.js → LayoutLeft-BdexGOTP.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-jFeLEleD.js → LinkBroken01-wmCuBJVN.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-Cf5Qa_r1.js → MessageCircle01-BgFAVnEo.js} +1 -1
  23. package/dist/client/assets/{Minus-DVAnrb98.js → Minus-CWR3qyH5.js} +1 -1
  24. package/dist/client/assets/{Monitor01-D5to20Na.js → Monitor01-BQDnuBH5.js} +1 -1
  25. package/dist/client/assets/{Play-DBG3GXxW.js → Play-1a_lTdjO.js} +1 -1
  26. package/dist/client/assets/{Plus-BEFFoW2D.js → Plus-BjA7v0aW.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-B0MbZ3gg.js → ReferenceLine-D_7wN1zT.js} +1 -1
  28. package/dist/client/assets/{SearchMd-BVX4smTx.js → SearchMd-DLHPy6Uo.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-Bvm3sWvz.js → ShoppingBag01-DH3DKaiC.js} +1 -1
  30. package/dist/client/assets/{Sun-D2fDzKM6.js → Sun-CF9jssUY.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-CgqtVqHH.js → SwitchHorizontal01-CCkkKeRG.js} +1 -1
  32. package/dist/client/assets/{Tool01-B97c8idL.js → Tool01-sUxKxzA1.js} +1 -1
  33. package/dist/client/assets/{Tooltip-Dc_sC0mP.js → Tooltip-BPKjbLoB.js} +1 -1
  34. package/dist/client/assets/{Trash01-Bi3fjf_i.js → Trash01-BJHdmQwJ.js} +1 -1
  35. package/dist/client/assets/{Upload01-B0N1cyeo.js → Upload01-_qHCYjHc.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-CjBhJIbn.js → UserCheck01-CpCxuE-I.js} +1 -1
  37. package/dist/client/assets/{UserSquare-D0WQA2_a.js → UserSquare-DB6NyDzI.js} +1 -1
  38. package/dist/client/assets/{Users01-CNLWTh0g.js → Users01-DwRKp1C7.js} +1 -1
  39. package/dist/client/assets/{XClose-CUoBDo4j.js → XClose-oM6nZllg.js} +1 -1
  40. package/dist/client/assets/{Zap-D5Q1SF5c.js → Zap-ahofKysd.js} +1 -1
  41. package/dist/client/assets/{access-gate-B0i3LdD3.js → access-gate-KCOTCCf5.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-QaQFm_sJ.js → add-connection-dialog-DxavYAc5.js} +1 -1
  43. package/dist/client/assets/agent-app-DSKOCCje.js +1 -0
  44. package/dist/client/assets/{agent-assets-Ci2UQ3kI.js → agent-assets-bki_BdbO.js} +1 -1
  45. package/dist/client/assets/{agent-automation-Nh9VJD4K.js → agent-automation-BjBB8AsX.js} +1 -1
  46. package/dist/client/assets/{agent-automations-BqhkNuFU.js → agent-automations-Cm9PwMtc.js} +1 -1
  47. package/dist/client/assets/{agent-blog-Dqo7yXQe.js → agent-blog-BIccwwgd.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-DRqbdGm9.js → agent-blog-post-Cner4u82.js} +2 -2
  49. package/dist/client/assets/{agent-business-case-CAQgqun2.js → agent-business-case-DInds5Fa.js} +1 -1
  50. package/dist/client/assets/{agent-calendar-C_2UFnlZ.js → agent-calendar-YS_hatl_.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-O4jivf-X.js → agent-capabilities-DQK_jZxT.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-e12r6R6U.js → agent-connect-sources-DXQ8E_bH.js} +1 -1
  53. package/dist/client/assets/agent-deck-DrelwgqT.js +1 -0
  54. package/dist/client/assets/{agent-e2e-JJXAQruo.js → agent-e2e-B_DXqaOr.js} +1 -1
  55. package/dist/client/assets/agent-experiments-HDRXaF9_.js +1 -0
  56. package/dist/client/assets/agent-file-PsEy2j16.js +1 -0
  57. package/dist/client/assets/{agent-hosting-_9l_P5l2.js → agent-hosting-BDgeryfy.js} +1 -1
  58. package/dist/client/assets/{agent-icon-y2SKybSP.js → agent-icon-CCxR2PUF.js} +1 -1
  59. package/dist/client/assets/agent-library-DRMbpZNJ.js +1 -0
  60. package/dist/client/assets/agent-library-file-Ci4RvnZ3.js +1 -0
  61. package/dist/client/assets/agent-overview-BGymLZDi.js +1 -0
  62. package/dist/client/assets/{agent-releases-DNsRG5FD.js → agent-releases-CgzQoR8b.js} +1 -1
  63. package/dist/client/assets/agent-settings-BIDE4zZk.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-B7tCcSvo.js → agent-site-editor-DEHW4gut.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-BguSH4kf.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-ULgQXDfp.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-Bg7-GK6e.js +1 -0
  68. package/dist/client/assets/agent-view-bhpsBbN2.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-CHMCp4na.js → agent-view-guard-OIhvT-yY.js} +1 -1
  70. package/dist/client/assets/{ai-providers-DSfUDWX0.js → ai-providers-MAlxtZWl.js} +1 -1
  71. package/dist/client/assets/{alert-565fy8M1.js → alert-De4kstIi.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-CEmkg_2B.js → analytics-sections-CUSeaKMg.js} +1 -1
  73. package/dist/client/assets/{api-keys-Bz1LryNm.js → api-keys-C30Nc0_c.js} +1 -1
  74. package/dist/client/assets/api-keys-D5aUEOaZ.js +1 -0
  75. package/dist/client/assets/{app-editor-eBT6vuSI.js → app-editor-De7hF7Xe.js} +1 -1
  76. package/dist/client/assets/{asset-utils-BDk7TImr.js → asset-utils-CCfbAgp6.js} +1 -1
  77. package/dist/client/assets/{auth-D7Uu7n_e.js → auth-CdyebVHG.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-C_afKPwz.js → auth-catchall-BSDpVceg.js} +1 -1
  79. package/dist/client/assets/{auth-entry-CrTd5O-K.js → auth-entry-Bs4JvKas.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-n4Rc1SQ7.js → auth-split-layout-DIFNHgz-.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-C7CYUnX8.js → authenticate-and-persist-oauth-CqTPiorC.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-CUaTcT3h.js → automation-list-row-Bf8n7Ce9.js} +1 -1
  83. package/dist/client/assets/{automation-runs-C6tWYqF5.js → automation-runs-B335XfRz.js} +1 -1
  84. package/dist/client/assets/{automations-f99KCPWc.js → automations-_jKv_9NQ.js} +1 -1
  85. package/dist/client/assets/{badge-CdntSWLw.js → badge-B0BpLsJr.js} +1 -1
  86. package/dist/client/assets/{block-document-dwVjY8ei.js → block-document-B6Da88vX.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-Dn_RDSoz.js → blocks-preview-workspace-context-CnaBqVkb.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-clMxtmY8.js → blocks-tab-states-DVnYU043.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-BxEndwKO.js → blog-preview-url-DL_rJm3r.js} +1 -1
  90. package/dist/client/assets/{blog-schema-C2rs0u9l.js → blog-schema-CrH-PuPl.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-BXEDNt3_.js → blog-source-gate-D95rUZ9j.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-BEqdtyeU.js → blog-view-gate-BG5wPvov.js} +1 -1
  93. package/dist/client/assets/{buckets-CYYLsl9x.js → buckets-Bo5nzqO0.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-DkcwrW0T.js → build-improve-prompt-doc-DwEARBAF.js} +1 -1
  95. package/dist/client/assets/{calendar-CQCK8RMi.js → calendar-aJ3MwRAc.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-xI_9h3pT.js → capability-load-error-B-8XRgnZ.js} +1 -1
  97. package/dist/client/assets/{category-editor-C7K4UFzc.js → category-editor-CqQ44lOA.js} +1 -1
  98. package/dist/client/assets/{category-tree-k_En3Ghr.js → category-tree-CPJhn4HZ.js} +1 -1
  99. package/dist/client/assets/{chart-ymFJV291.js → chart-Bi7xT2_A.js} +1 -1
  100. package/dist/client/assets/{chat-context-3o15fH-n.js → chat-context-BIbY01K8.js} +1 -1
  101. package/dist/client/assets/{chat-draft-DkTLJIsD.js → chat-draft-CiDkLbs7.js} +1 -1
  102. package/dist/client/assets/{checkbox-DG0VRyZt.js → checkbox-C5arK3Yi.js} +1 -1
  103. package/dist/client/assets/{choose-editor-BuYE419X.js → choose-editor-m1LEJ76m.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-kFD_vr-8.js → cli-auth-success-DrTHS67O.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-CAjj_23i.js → cms-settings-editor-D2W2Hqjk.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-JEUeezAR.js → cms-store-drafts-SXWusaIT.js} +1 -1
  107. package/dist/client/assets/{collapsible-CUOhSps5.js → collapsible-uGD63SVW.js} +1 -1
  108. package/dist/client/assets/{collection-detail-BpgRZNNv.js → collection-detail-1M3m9BeX.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-DmC5C_DJ.js → collection-display-button-CxJUfsBC.js} +1 -1
  110. package/dist/client/assets/{collection-search-gjXSkcT8.js → collection-search-5yetxvaM.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-CzCDnwLo.js → collection-table-wrapper-D55eHieQ.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-COt6y1YG.js → collection-tabs-DWExNyAp.js} +1 -1
  113. package/dist/client/assets/{combobox-CH-LlA2d.js → combobox-BQpDbntt.js} +1 -1
  114. package/dist/client/assets/{command-BvXS_hwC.js → command-CGZn32g4.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-hLgHegzh.js → companion-mcps-section-DauSR__w.js} +1 -1
  116. package/dist/client/assets/{config-Bn2m6WJs.js → config-D953tTPf.js} +1 -1
  117. package/dist/client/assets/{connect-D3u8EgEX.js → connect-BL5f_sMR.js} +1 -1
  118. package/dist/client/assets/{connect-key-txW2Hv5F.js → connect-key-LpmiQ5t8.js} +1 -1
  119. package/dist/client/assets/{connect-layout-BkGodyIz.js → connect-layout-BBcCp91i.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-Fx070D3z.js → connect-source-dialog-JNdJSpW0.js} +1 -1
  121. package/dist/client/assets/{connection-D4RX46wh.js → connection-BU3CbBAB.js} +1 -1
  122. package/dist/client/assets/{connection-card-DTpr3C0a.js → connection-card-Cchv_P1a.js} +1 -1
  123. package/dist/client/assets/{connection-detail-CKts1Pg1.js → connection-detail-Fmp6uqV3.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-Bk5WpOzS.js → connection-form-helpers-B6YdkPP6.js} +1 -1
  125. package/dist/client/assets/{connection-slug-BuWfvd-P.js → connection-slug-Dby8IQVH.js} +1 -1
  126. package/dist/client/assets/{connections-qrxxtSxS.js → connections-IzFG7l5m.js} +1 -1
  127. package/dist/client/assets/{content-changes-Dwsp4uvc.js → content-changes-wc9FH6jt.js} +1 -1
  128. package/dist/client/assets/{content-tab-BoA46Vo_.js → content-tab-D2jQvTTQ.js} +3 -3
  129. package/dist/client/assets/{context-D6GeU9Zr.js → context-CVCs23mW.js} +1 -1
  130. package/dist/client/assets/{context-menu-C28rrpwS.js → context-menu-C473OUCT.js} +1 -1
  131. package/dist/client/assets/{context-shell-BhsO74A1.js → context-shell-DEGgebgQ.js} +3 -3
  132. package/dist/client/assets/{create-organization-dialog-WTgE1zLj.js → create-organization-dialog-CmhbSoK2.js} +1 -1
  133. package/dist/client/assets/{daily-pulse-D5hqtiss.js → daily-pulse-0NkQHK_z.js} +1 -1
  134. package/dist/client/assets/{delete-copy-B6vUu2FZ.js → delete-copy-D7fJPRdo.js} +1 -1
  135. package/dist/client/assets/{device-hint-BDXdRFQX.js → device-hint-CddROpzx.js} +1 -1
  136. package/dist/client/assets/{discover-BPJ5kKLU.js → discover-DXj_hJ6j.js} +1 -1
  137. package/dist/client/assets/{domain-settings-DAwNAh0_.js → domain-settings-CPXAlxYa.js} +1 -1
  138. package/dist/client/assets/{drawer-Co6CTMtJ.js → drawer-CPRS7vw4.js} +1 -1
  139. package/dist/client/assets/{editor-Dzcpm7rQ.js → editor-D4mLuwGY.js} +1 -1
  140. package/dist/client/assets/{editor-classes-BO4PtG02.js → editor-classes-EyIn6Xdz.js} +1 -1
  141. package/dist/client/assets/{empty-state-BfnU_rAm.js → empty-state-DfXiNtjV.js} +1 -1
  142. package/dist/client/assets/{empty-state-BlV47Moy.js → empty-state-VIxg_A9_.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-BVnYtxf9.js → experiments-tab-choice-DDiQfeRQ.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-CTwhrI6L.js → extract-connection-data-CY4kvgmG.js} +1 -1
  145. package/dist/client/assets/{feature-gate-CRmt1R7b.js → feature-gate-BqWMf-_U.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-B2EmZsmT.js → feature-paywall-4c2c7IX1.js} +1 -1
  147. package/dist/client/assets/{file-explorer-Bc2WuOJf.js → file-explorer-1_QBD_NG.js} +1 -1
  148. package/dist/client/assets/{file-preview-XajyFvxK.js → file-preview-Cs564GPy.js} +1 -1
  149. package/dist/client/assets/{file-share-button-DDpEu_Ts.js → file-share-button-BREhD61g.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-zloL09QV.js → file-type-icon-Dr1Fctbf.js} +1 -1
  151. package/dist/client/assets/{folder-icon-Cu1TcGzz.js → folder-icon-Csn4Yrp8.js} +1 -1
  152. package/dist/client/assets/{form-CDXejFhy.js → form-CdIohY1c.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-DKa5FPxb.js → frame-navigation-DTZvas3c.js} +1 -1
  154. package/dist/client/assets/{gateway-client-D6U4MBNC.js → gateway-client-uysD9si3.js} +1 -1
  155. package/dist/client/assets/{general-CQTaUkvR.js → general-BptiPTam.js} +1 -1
  156. package/dist/client/assets/{github-icon-QoDNyjsW.js → github-icon-BFtlg-Wu.js} +1 -1
  157. package/dist/client/assets/{held-block-view-D9gMtmL4.js → held-block-view-Bv5JhAeN.js} +1 -1
  158. package/dist/client/assets/{home--jqwm4Ku.js → home-DzRsJbBG.js} +1 -1
  159. package/dist/client/assets/{home-overview-CqfgDa-3.js → home-overview-BoyNS0NF.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-Dgr_RAK2.js → hosted-reconcile-Bt0PeuzR.js} +1 -1
  161. package/dist/client/assets/{icon-button-BZOKf7Ue.js → icon-button-CCNwQPnV.js} +1 -1
  162. package/dist/client/assets/{index-Cd1_o-mb.js → index-B0mJrf1q.js} +1 -1
  163. package/dist/client/assets/{index-B26-jaFe.js → index-BRun9Rm8.js} +1 -1
  164. package/dist/client/assets/{index-CMosAuta.js → index-Bkszoj0s.js} +1 -1
  165. package/dist/client/assets/{index-CnTDG57D.js → index-BozwbZx0.js} +1 -1
  166. package/dist/client/assets/{index-CGuDb95W.js → index-BtxZs6tJ.js} +1 -1
  167. package/dist/client/assets/{index-C08yFDSB.js → index-BzRhR-ob.js} +1 -1
  168. package/dist/client/assets/{index-CfzIzecT.js → index-CFlFN6F_.js} +1 -1
  169. package/dist/client/assets/{index-dYHd0KJA.js → index-CVCo7BMR.js} +1 -1
  170. package/dist/client/assets/{index-C75j3Sf-.js → index-D5JoEpF6.js} +1 -1
  171. package/dist/client/assets/{index-CUTEHf7n.js → index-D9ty5Ie3.js} +6 -6
  172. package/dist/client/assets/{index-BcNAVbXw.js → index-DJkxmUQB.js} +1 -1
  173. package/dist/client/assets/{index-Dc3vpBAe.js → index-DcsJJ-05.js} +1 -1
  174. package/dist/client/assets/{index-teg9xGJw.js → index-DzkOamns.js} +1 -1
  175. package/dist/client/assets/{index-Cu54PMEU.js → index-HakIuCjg.js} +1 -1
  176. package/dist/client/assets/{index-0O8gsl-7.js → index-Tv3hc6zd.js} +1 -1
  177. package/dist/client/assets/{index-D2ZLBdth.js → index-mYSq1oWI.js} +1 -1
  178. package/dist/client/assets/{index-redirect-CjNUMjXF.js → index-redirect-C9EBDDcV.js} +1 -1
  179. package/dist/client/assets/{index-AYfJDRJw.js → index-uTqcpy5-.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-DN-l8Mqm.js → infiniteQueryObserver-jl0ag-ci.js} +1 -1
  181. package/dist/client/assets/{infra-billing-DJ_xLQlG.js → infra-billing-D4LI6DuO.js} +1 -1
  182. package/dist/client/assets/{input-IAYjK7lR.js → input-C0LL8dKB.js} +3 -3
  183. package/dist/client/assets/{input-e3Q-tVUa.js → input-Cabkyu6z.js} +1 -1
  184. package/dist/client/assets/{integration-icon-BRVzdEXf.js → integration-icon-DwE31eP3.js} +1 -1
  185. package/dist/client/assets/{item-actions-B4eKhNFa.js → item-actions-CSc52fWk.js} +1 -1
  186. package/dist/client/assets/{jira-icon-BnOlExTt.js → jira-icon-BvdOnDqx.js} +1 -1
  187. package/dist/client/assets/{label-qad8ROdP.js → label-BuyeEoKy.js} +1 -1
  188. package/dist/client/assets/{layout-D0Rywy_R.js → layout-Ba4dt8sO.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-CXj5rtpz.js → legacy-admin-welcome-dialog-D8acRK4o.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-JA5mOvHG.js → legacy-agents-deep-b_6N3FLP.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-BOQhVVaF.js → legacy-main-redirect-BGpepCkG.js} +1 -1
  192. package/dist/client/assets/library-BzKGFmec.js +1 -0
  193. package/dist/client/assets/{library-tab-LAu1Ggsf.js → library-tab-Di9PinwS.js} +1 -1
  194. package/dist/client/assets/{login-M7zYPzKO.js → login-CVt0XOKO.js} +1 -1
  195. package/dist/client/assets/{markdown-BhLg-Zjp.js → markdown-DS2iRx8j.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-DrwYcKK7.js → mcp-app-renderer-Bvu3N1R4.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-CqsxDqXO.js → mcp-oauth-BN54afSi.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-CAZv4B3x.js → mcp-oauth-Vq46kgZK.js} +1 -1
  199. package/dist/client/assets/{members-Bs-E2Sob.js → members-DAn8pfag.js} +1 -1
  200. package/dist/client/assets/{memory-CSe1SzIo.js → memory-DeZ-uHq4.js} +1 -1
  201. package/dist/client/assets/{mock-board-DVrSNZfW.js → mock-board-Aslmwo3O.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-Cmq9PYT5.js → monaco-editor-CBnaevuh.js} +1 -1
  203. package/dist/client/assets/{monitoring-D2aojvYm.js → monitoring-C9ix8aKx.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-BoP1mTEb.js → monitoring-stats-row-DxAzeLPb.js} +1 -1
  205. package/dist/client/assets/{multi-select-C_FYq5kZ.js → multi-select-BmlA-Vkc.js} +1 -1
  206. package/dist/client/assets/{mustache-8wbk5neB.js → mustache-_Z8_qqHJ.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-D4anrrdN.js → named-rule-step-BKavlQpM.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-f0iw3ATx.js → named-rule-view-mIjQh4kC.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-CVc657qA.js → new-project-dialog-B7_EHGk8.js} +1 -1
  210. package/dist/client/assets/{new-project-store-ehAJK4hL.js → new-project-store-B8n3b_tZ.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-B9em2Y8Z.js → oauth-callback-BkAHMpfw.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-Cb2kYh4X.js → oauth-callback-ai-provider-xDulFiUG.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-wow8JHEK.js → oauth-consent-6ruRlSKT.js} +1 -1
  214. package/dist/client/assets/{onboarding-BHjqSyxW.js → onboarding-B3SEF9Uz.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-DQ21FiVA.js → openai-conversation-DwsKeDmu.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-D735mKes.js → optimistic-project-sidebar-views-BlwdlPER.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-D8KmCDvZ.js → order-monitor-day-DF8bo2MK.js} +1 -1
  218. package/dist/client/assets/{organization-choice-e20yr5bu.js → organization-choice-vGHdcSHL.js} +1 -1
  219. package/dist/client/assets/{orgs-DC1K_oci.js → orgs-HP_pPrQW.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-DZjXH8uG.js → own-accounts-section-w0ng40tn.js} +1 -1
  221. package/dist/client/assets/{pair-B6XGEO8o.js → pair-C7XMWJ-9.js} +1 -1
  222. package/dist/client/assets/{parse-sections-Cd3eqhNU.js → parse-sections-CvIBHt2L.js} +2 -2
  223. package/dist/client/assets/plan-W-EFjzuP.js +1 -0
  224. package/dist/client/assets/{plan-ladder-uOWkvedM.js → plan-ladder-BwPwd0L2.js} +1 -1
  225. package/dist/client/assets/plan-page-BHiPZfGS.js +2 -0
  226. package/dist/client/assets/{plan-usage-card-EE0IInE1.js → plan-usage-card-DBESPEVj.js} +1 -1
  227. package/dist/client/assets/{popover-t4wJ-TtS.js → popover-CkZGLhNA.js} +1 -1
  228. package/dist/client/assets/{post-calendar-VNdLJQb0.js → post-calendar-CsQoNT7s.js} +1 -1
  229. package/dist/client/assets/{post-editor-zOtVODsc.js → post-editor-ChkfOap8.js} +1 -1
  230. package/dist/client/assets/{preview-content-Bhl5Jk0E.js → preview-content-A5KuW_i0.js} +1 -1
  231. package/dist/client/assets/{preview-dialog-Denmgj-d.js → preview-dialog-CISa3xH2.js} +1 -1
  232. package/dist/client/assets/{preview-panel-JUqjzsve.js → preview-panel-Is_T5mgd.js} +1 -1
  233. package/dist/client/assets/{preview-tab-COr6U59M.js → preview-tab-QE2EzqbO.js} +3 -3
  234. package/dist/client/assets/{primitives-Dq7WtxY4.js → primitives-DuwBkkiW.js} +1 -1
  235. package/dist/client/assets/{product-picker-dialog-DkguIJb9.js → product-picker-dialog-BgfiINnh.js} +1 -1
  236. package/dist/client/assets/{profile-Clqb7jMX.js → profile-BBSVuOzV.js} +1 -1
  237. package/dist/client/assets/{project-app-view-CY3LztLj.js → project-app-view-BKpC7rlM.js} +1 -1
  238. package/dist/client/assets/{project-apps-BZHu6ziG.js → project-apps-CIIh9MmH.js} +1 -1
  239. package/dist/client/assets/{project-icon-4S0TtqeC.js → project-icon-B83l1FFE.js} +1 -1
  240. package/dist/client/assets/{project-index-CbwxAZlc.js → project-index-DAyEgqrx.js} +1 -1
  241. package/dist/client/assets/project-reports-DQGF2xJn.js +1 -0
  242. package/dist/client/assets/project-tasks-BBAYKy8r.js +1 -0
  243. package/dist/client/assets/{projects-empty-state-Di4qGPL3.js → projects-empty-state-DRs0zzkN.js} +1 -1
  244. package/dist/client/assets/{projects-Df_L915V.js → projects-m3alzMbh.js} +1 -1
  245. package/dist/client/assets/{prompts-CCfcFfEL.js → prompts-CcRTCjj0.js} +1 -1
  246. package/dist/client/assets/record-editor-0gtIzDkA.js +1 -0
  247. package/dist/client/assets/{redirect-editor-CIZjHsWK.js → redirect-editor-CBbV9fjW.js} +1 -1
  248. package/dist/client/assets/{reports-C6sfy-vt.js → reports-CceluTq4.js} +1 -1
  249. package/dist/client/assets/reports-DbLM9LU8.js +1 -0
  250. package/dist/client/assets/{reports-onboarding-CvX7O5fR.js → reports-onboarding-CW6RZc4O.js} +1 -1
  251. package/dist/client/assets/{reports-tab-CqA9qzwy.js → reports-tab-C2ZjDmEI.js} +2 -2
  252. package/dist/client/assets/{repositories-DwI8wNdv.js → repositories-CVirrF3U.js} +1 -1
  253. package/dist/client/assets/repositories-GozVvKpl.js +1 -0
  254. package/dist/client/assets/{repository-binding-DyxjotEQ.js → repository-binding-DCgII80m.js} +1 -1
  255. package/dist/client/assets/{repository-picker-Diifpqm3.js → repository-picker-GD3a62Se.js} +1 -1
  256. package/dist/client/assets/{require-capability-GNq4582r.js → require-capability-BIdAaoMl.js} +1 -1
  257. package/dist/client/assets/{required-auth-layout-CVH6Kpuo.js → required-auth-layout-CJHidYLF.js} +1 -1
  258. package/dist/client/assets/{reset-password-Cv2a-_UY.js → reset-password-CrDFD2Qo.js} +1 -1
  259. package/dist/client/assets/{resizable-DtQVeM4U.js → resizable-B9Eyi_ji.js} +1 -1
  260. package/dist/client/assets/{resolve-tab-icon-Dd4QQOMZ.js → resolve-tab-icon-CKM9oCio.js} +1 -1
  261. package/dist/client/assets/{review-settings-BFzl2biB.js → review-settings-BAe760uV.js} +1 -1
  262. package/dist/client/assets/{role-color-DuywbXFk.js → role-color-B1Um4Dsq.js} +1 -1
  263. package/dist/client/assets/{roles-BXlx9LX-.js → roles-DKVzo-vg.js} +1 -1
  264. package/dist/client/assets/{route-CI04i3RU.js → route-BkuglpaW.js} +1 -1
  265. package/dist/client/assets/route-CQJFjDvy.js +1 -0
  266. package/dist/client/assets/{route-BzAiKNmd.js → route-D40yQj0l.js} +1 -1
  267. package/dist/client/assets/{route-page-header-Dyzw28fO.js → route-page-header-CcVg-Vnk.js} +1 -1
  268. package/dist/client/assets/{sandbox-git-api-BHkz0_nl.js → sandbox-git-api-kZT1B2wI.js} +1 -1
  269. package/dist/client/assets/{sandbox-lifecycle-context-D6WWTBdt.js → sandbox-lifecycle-context-OY_YTYCF.js} +1 -1
  270. package/dist/client/assets/{save-status-Cgw9Hlp4.js → save-status-CbCdWhQw.js} +1 -1
  271. package/dist/client/assets/{schema-rfxhIdnI.js → schema-CId4jxC-.js} +1 -1
  272. package/dist/client/assets/schema-CTzV9RXv.js +1 -0
  273. package/dist/client/assets/{scroll-area-CRlFqWco.js → scroll-area-R9Qlcbsn.js} +1 -1
  274. package/dist/client/assets/{search-input-DaJb5UpE.js → search-input-BXEVxZTu.js} +1 -1
  275. package/dist/client/assets/{search-toggle-MXPrTy3O.js → search-toggle-G2iKVtD4.js} +1 -1
  276. package/dist/client/assets/{secret-picker-Ct5n_id9.js → secret-picker-DP_k-tRN.js} +1 -1
  277. package/dist/client/assets/{secrets-DrDOFUSP.js → secrets-BXKvytJe.js} +1 -1
  278. package/dist/client/assets/{section-array-field-ZEOag6le.js → section-array-field-ClatUqIl.js} +1 -1
  279. package/dist/client/assets/{sections-D3dG_Sv7.js → sections-DGuQLA5Q.js} +1 -1
  280. package/dist/client/assets/{sections-editor-DhtnmFJg.js → sections-editor-Cn9WhnKh.js} +1 -1
  281. package/dist/client/assets/{select-CXHAcNGT.js → select-B8AcNN--.js} +1 -1
  282. package/dist/client/assets/{select-model-BGmlexh2.js → select-model-Bp-dP1TL.js} +1 -1
  283. package/dist/client/assets/{seo-editor-D6SXZS-u.js → seo-editor-DfWHWpCT.js} +1 -1
  284. package/dist/client/assets/{separator-BmldSaZv.js → separator-Df5tfRJy.js} +1 -1
  285. package/dist/client/assets/{session-runtime-DRkG9ReZ.js → session-runtime-CaeGmaeh.js} +1 -1
  286. package/dist/client/assets/settings-tab-B_DvV5jK.js +1 -0
  287. package/dist/client/assets/{sheet-DwYwF5Xe.js → sheet-BX-uc-CP.js} +1 -1
  288. package/dist/client/assets/{shell-layout-bVoP9kOD.js → shell-layout-Df_Vqmxl.js} +1 -1
  289. package/dist/client/assets/{site-draft-actions-Dd2WZL1s.js → site-draft-actions-DuIB4ROz.js} +1 -1
  290. package/dist/client/assets/{site-draft-view-CHYH9tQq.js → site-draft-view-BIEW7QNi.js} +1 -1
  291. package/dist/client/assets/site-editor-hcWx5wR4.js +1 -0
  292. package/dist/client/assets/{site-editor-toast-BCn8hYHZ.js → site-editor-toast-8Snipnn7.js} +1 -1
  293. package/dist/client/assets/{skills-CX729VjK.js → skills-CD71-VLR.js} +1 -1
  294. package/dist/client/assets/{slider-BdrBFFmy.js → slider-Ce40PfUp.js} +1 -1
  295. package/dist/client/assets/{sortable.esm-Dv7GaG48.js → sortable.esm-BMdQQlMD.js} +1 -1
  296. package/dist/client/assets/{sso-CipUmxZh.js → sso-oSOcr0Wy.js} +1 -1
  297. package/dist/client/assets/{suggestion-7L8A3fQy.js → suggestion-BJfFlKUn.js} +1 -1
  298. package/dist/client/assets/{super-agent-icon-VCx3p9dd.js → super-agent-icon-Ct_ICcf4.js} +1 -1
  299. package/dist/client/assets/{switch-CQr_229Y.js → switch-B2Y4X_zr.js} +1 -1
  300. package/dist/client/assets/{synced-repos-BdIctOIX.js → synced-repos-ClBi5qqf.js} +1 -1
  301. package/dist/client/assets/{tab-icon-glyph-C6KuwbV2.js → tab-icon-glyph-DCTZNfdF.js} +1 -1
  302. package/dist/client/assets/{table-5d9iQpdi.js → table-Bgl4r11n.js} +1 -1
  303. package/dist/client/assets/{tabs-DEsdaVKa.js → tabs-mO2tcMNi.js} +1 -1
  304. package/dist/client/assets/{task-board-ZELaPSpv.js → task-board-CKMBp6DZ.js} +1 -1
  305. package/dist/client/assets/{task-key-ChxtLgH2.js → task-key-D4f-sg50.js} +1 -1
  306. package/dist/client/assets/{task-route-hUi3-h4J.js → task-route-CO-bF-dc.js} +1 -1
  307. package/dist/client/assets/{task-status-Dofkb2xp.js → task-status-BgBxV1so.js} +1 -1
  308. package/dist/client/assets/{taskboard-analytics-Bj-GjLdA.js → taskboard-analytics-Bygs-ucY.js} +1 -1
  309. package/dist/client/assets/{tasks-DsqIy_fY.js → tasks-BSB4SC09.js} +1 -1
  310. package/dist/client/assets/tasks-BdXLUlHE.js +1 -0
  311. package/dist/client/assets/{textarea-J2V-aUg9.js → textarea-CxYbwRQs.js} +1 -1
  312. package/dist/client/assets/{thread-analytics-3idb3D-k.js → thread-analytics-D2bpggTx.js} +1 -1
  313. package/dist/client/assets/{thread-button-8lhq8YVG.js → thread-button-B8jlPwZm.js} +1 -1
  314. package/dist/client/assets/{thread-intent-C-4a46Zs.js → thread-intent-CYwcSe1Q.js} +1 -1
  315. package/dist/client/assets/{thread-route-hABZCF2d.js → thread-route-2H1rJmYZ.js} +1 -1
  316. package/dist/client/assets/{thread-route-BazgFB6Z.js → thread-route-CfoDJxAx.js} +1 -1
  317. package/dist/client/assets/{thread-sheet-body-BeKCfAHB.js → thread-sheet-body-C75KpeDg.js} +1 -1
  318. package/dist/client/assets/{time-range-picker-Bs9UQrVS.js → time-range-picker-YQf6kbUD.js} +1 -1
  319. package/dist/client/assets/{toggle-group-BSy9ppTS.js → toggle-group-navQiXEB.js} +1 -1
  320. package/dist/client/assets/{tool-set-selector-CtmnThz8.js → tool-set-selector-DTF-tSJ8.js} +1 -1
  321. package/dist/client/assets/{toolbar-icon-button-C4Or2Ut1.js → toolbar-icon-button-XqXhc7QP.js} +1 -1
  322. package/dist/client/assets/{tooltip-BtQY7me6.js → tooltip-WWhnAI0D.js} +1 -1
  323. package/dist/client/assets/{tooltipContext-BbkLIEo5.js → tooltipContext-Bo1ey-tK.js} +1 -1
  324. package/dist/client/assets/{track-PksxcDl8.js → track-CFN31sNa.js} +1 -1
  325. package/dist/client/assets/{types-B29zOSVo.js → types-Dn5pCQsk.js} +1 -1
  326. package/dist/client/assets/{url-slug-5tJR8vZd.js → url-slug-_CQrBm2g.js} +1 -1
  327. package/dist/client/assets/{usage-stats-DJ1VHc0T.js → usage-stats-CmNc8cAj.js} +1 -1
  328. package/dist/client/assets/{use-ai-providers-Dya2oYuM.js → use-ai-providers-fHYrugD3.js} +1 -1
  329. package/dist/client/assets/{use-api-keys-B_9Rq7TJ.js → use-api-keys-D5gIwchQ.js} +1 -1
  330. package/dist/client/assets/{use-apply-named-rule-7lCiFUZu.js → use-apply-named-rule-D3XuNHsr.js} +1 -1
  331. package/dist/client/assets/use-ask-in-chat-DG7NmbH7.js +1 -0
  332. package/dist/client/assets/{use-automations-BpMr2z_i.js → use-automations-DmvCuHJK.js} +1 -1
  333. package/dist/client/assets/{use-autosave-Dg5clSHS.js → use-autosave-Cp4cbZfZ.js} +1 -1
  334. package/dist/client/assets/use-blocks-v8-project-VC8Oc8YL.js +1 -0
  335. package/dist/client/assets/use-blog-view-12eN62uX.js +1 -0
  336. package/dist/client/assets/{use-chat-layout-state-B6O7bs0d.js → use-chat-layout-state-BaDKAECw.js} +1 -1
  337. package/dist/client/assets/{use-cms-publish-actions-B7gEo4o7.js → use-cms-publish-actions-nQ5uL1t1.js} +1 -1
  338. package/dist/client/assets/{use-connect-companion-DgHT9TTS.js → use-connect-companion-C25pDJPN.js} +1 -1
  339. package/dist/client/assets/{use-connection-BAk2dsuv.js → use-connection-Cfm3n1XL.js} +1 -1
  340. package/dist/client/assets/{use-content-sync-4eASTxdJ.js → use-content-sync-CUYx6TEx.js} +1 -1
  341. package/dist/client/assets/{use-copy-DPZUA7Gr.js → use-copy-D8xWA2yV.js} +1 -1
  342. package/dist/client/assets/{use-current-view-SFKgOLYn.js → use-current-view-D4QwvKZY.js} +1 -1
  343. package/dist/client/assets/{use-date-fns-locale-Bd88zbns.js → use-date-fns-locale-C3g_gdL8.js} +1 -1
  344. package/dist/client/assets/{use-debounced-autosave-CQQwGbl2.js → use-debounced-autosave-TQo-9acI.js} +1 -1
  345. package/dist/client/assets/{use-debounced-value-C75ZQTZG.js → use-debounced-value-CyYRIO6x.js} +1 -1
  346. package/dist/client/assets/{use-deco-credits-DzCgvsqG.js → use-deco-credits-B8P7CP1g.js} +1 -1
  347. package/dist/client/assets/{use-decopilot-events-B93IJnco.js → use-decopilot-events-D2kyZDkU.js} +1 -1
  348. package/dist/client/assets/{use-delete-block-CtnkMpgb.js → use-delete-block-mSGolgbs.js} +1 -1
  349. package/dist/client/assets/{use-delete-connection-B_EqAmPm.js → use-delete-connection-Doaqb1mb.js} +1 -1
  350. package/dist/client/assets/{use-deployment-admin-DYC3wY2X.js → use-deployment-admin-ChHKYp27.js} +1 -1
  351. package/dist/client/assets/{use-entitlements-DH1D5a0L.js → use-entitlements-C9g1ozeL.js} +1 -1
  352. package/dist/client/assets/{use-fast-preview-draft-url-CY0fb2LM.js → use-fast-preview-draft-url-Oht_itRW.js} +1 -1
  353. package/dist/client/assets/{use-file-configs-BiSZZuuf.js → use-file-configs-BkG8Iml_.js} +1 -1
  354. package/dist/client/assets/{use-id-selection-VNg6UPHp.js → use-id-selection-DiyjnQ8j.js} +1 -1
  355. package/dist/client/assets/{use-in-settings-Dv_cwy92.js → use-in-settings-D6bXO-H0.js} +1 -1
  356. package/dist/client/assets/{use-inbox-feed-Cdppe1Es.js → use-inbox-feed-Bm4NiXcv.js} +1 -1
  357. package/dist/client/assets/{use-infinite-scroll-BGl4Rgru.js → use-infinite-scroll-DqUoS-l2.js} +1 -1
  358. package/dist/client/assets/{use-join-requests-CWbWtDgg.js → use-join-requests-wmoCs74z.js} +1 -1
  359. package/dist/client/assets/{use-main-panel-tabs-CCz7Ktbi.js → use-main-panel-tabs-yM1RCEi5.js} +1 -1
  360. package/dist/client/assets/{use-mcp-auth-status-Ca77VI4X.js → use-mcp-auth-status-BbJoMlJb.js} +1 -1
  361. package/dist/client/assets/{use-mcp-client-BVU34o8K.js → use-mcp-client-CCxN3wif.js} +1 -1
  362. package/dist/client/assets/{use-mcp-prompts-CCB1WHsd.js → use-mcp-prompts-DVoQ1lwW.js} +1 -1
  363. package/dist/client/assets/{use-mcp-tools-DagGRrIt.js → use-mcp-tools-6V4XkJcF.js} +1 -1
  364. package/dist/client/assets/{use-mobile-LSpSJcPd.js → use-mobile-B8Aa4Xlk.js} +1 -1
  365. package/dist/client/assets/{use-move-blocks-C_L5dYiU.js → use-move-blocks-BXjxUn5y.js} +1 -1
  366. package/dist/client/assets/{use-navigate-to-agent-fspVUy0_.js → use-navigate-to-agent-ILbX-YSf.js} +1 -1
  367. package/dist/client/assets/{use-never-published-Ch6taPxS.js → use-never-published-DzIkWgN5.js} +1 -1
  368. package/dist/client/assets/{use-org-fs-CYycA4iA.js → use-org-fs-9SZb1DFS.js} +1 -1
  369. package/dist/client/assets/{use-org-notice-B0u21Cu1.js → use-org-notice-xNR84Fdf.js} +1 -1
  370. package/dist/client/assets/{use-org-repo-syncs-BHsdmb-p.js → use-org-repo-syncs-Cys8SyI4.js} +1 -1
  371. package/dist/client/assets/{use-org-sso-DZUFYVRN.js → use-org-sso-C54pKXlG.js} +1 -1
  372. package/dist/client/assets/use-organization-settings-DWZK4txY.js +1 -0
  373. package/dist/client/assets/{use-panel-navigate-Dcxy731-.js → use-panel-navigate-DDkOk54O.js} +1 -1
  374. package/dist/client/assets/{use-project-native-view-presence-tfOMrkxo.js → use-project-native-view-presence-Djk6cHeC.js} +1 -1
  375. package/dist/client/assets/{use-project-scope-3Q37Eln5.js → use-project-scope-DQMPXxdu.js} +1 -1
  376. package/dist/client/assets/{use-recent-apps-BJuzSKH-.js → use-recent-apps-DgXyGMJY.js} +1 -1
  377. package/dist/client/assets/{use-reports-diagnostic-C7haZBH4.js → use-reports-diagnostic-BKWEjMrL.js} +1 -1
  378. package/dist/client/assets/{use-sandbox-events-p6STSWE5.js → use-sandbox-events-BtTSBNQ-.js} +1 -1
  379. package/dist/client/assets/{use-secrets-GgVI8oKj.js → use-secrets-B8rVmi0H.js} +1 -1
  380. package/dist/client/assets/{use-section-preview-base-M6_vC4eP.js → use-section-preview-base-3aCgX76G.js} +1 -1
  381. package/dist/client/assets/{use-sidebar-collapsed-BjLeIURU.js → use-sidebar-collapsed-DQ8plnyV.js} +1 -1
  382. package/dist/client/assets/{use-tags-B4229aWw.js → use-tags-SiefX76A.js} +1 -1
  383. package/dist/client/assets/{use-task-board-analytics---dDdKFB.js → use-task-board-analytics-DBtBKp5C.js} +1 -1
  384. package/dist/client/assets/{use-task-board-item-prs-WHlIf_av.js → use-task-board-item-prs-Dnj65bJE.js} +1 -1
  385. package/dist/client/assets/{use-task-board-items-BFsmDyZa.js → use-task-board-items-RVurD3dm.js} +1 -1
  386. package/dist/client/assets/{use-task-board-prompts-Dwu6_vIJ.js → use-task-board-prompts-C9B0Fj4B.js} +1 -1
  387. package/dist/client/assets/{use-task-metadata-CUi2_x3B.js → use-task-metadata-B-Jkenb-.js} +1 -1
  388. package/dist/client/assets/{use-thread-outputs-DYau24LH.js → use-thread-outputs-Bp1yZzWp.js} +1 -1
  389. package/dist/client/assets/{use-view-draft-kind-DECgwRep.js → use-view-draft-kind-D6nuhvC8.js} +1 -1
  390. package/dist/client/assets/{use-voice-input-Ta8CFXyw.js → use-voice-input-BRffPZLC.js} +1 -1
  391. package/dist/client/assets/useInfiniteQuery-BVDzY1XE.js +1 -0
  392. package/dist/client/assets/{useQueries-CcshDhiG.js → useQueries-TcBx6Y_l.js} +1 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-ZMVy_VA8.js +1 -0
  394. package/dist/client/assets/{users-BFBeKe01.js → users-BrlvYrfH.js} +1 -1
  395. package/dist/client/assets/{utils-VRJjHnOC.js → utils-BvR8qziK.js} +1 -1
  396. package/dist/client/assets/{variant-calendar-y7ldyxeY.js → variant-calendar-B03MXYrd.js} +1 -1
  397. package/dist/client/assets/{variant-matcher-override-ZGKfLyll.js → variant-matcher-override-B5Ejbh3V.js} +1 -1
  398. package/dist/client/assets/{view-header-BZr0Ea-N.js → view-header-D2HsNkGz.js} +1 -1
  399. package/dist/client/assets/{virtual-mcp-BNBTH_8N.js → virtual-mcp-CKK4xh6P.js} +1 -1
  400. package/dist/client/assets/{watch-sse-pool-BqAScN4r.js → watch-sse-pool-C-H2mUwU.js} +1 -1
  401. package/dist/client/index.html +1 -1
  402. package/dist/server/server.js +468 -468
  403. package/package.json +1 -1
  404. package/dist/client/assets/agent-app-CfZ2_qAg.js +0 -1
  405. package/dist/client/assets/agent-deck-B7f0cKPF.js +0 -1
  406. package/dist/client/assets/agent-experiments-BBLc6sXg.js +0 -1
  407. package/dist/client/assets/agent-file-D8sDhpVS.js +0 -1
  408. package/dist/client/assets/agent-library-DEBDdT7D.js +0 -1
  409. package/dist/client/assets/agent-library-file-DL3_cgBw.js +0 -1
  410. package/dist/client/assets/agent-overview-jQZh1dQH.js +0 -1
  411. package/dist/client/assets/agent-settings-C47TLRPM.js +0 -1
  412. package/dist/client/assets/agent-site-editor-code-DPz3ZIvH.js +0 -2
  413. package/dist/client/assets/agent-site-editor-content-COxClvme.js +0 -1
  414. package/dist/client/assets/agent-site-editor-preview-CAin8bHi.js +0 -1
  415. package/dist/client/assets/agent-view-DkUvvSxM.js +0 -1
  416. package/dist/client/assets/api-keys-dDDIaFES.js +0 -1
  417. package/dist/client/assets/library-umU-1FuW.js +0 -1
  418. package/dist/client/assets/plan-BG9a6OTV.js +0 -1
  419. package/dist/client/assets/plan-page-BxOjjyOQ.js +0 -2
  420. package/dist/client/assets/project-reports-By6qiMKj.js +0 -1
  421. package/dist/client/assets/project-tasks-DhoozPsk.js +0 -1
  422. package/dist/client/assets/record-editor-BYF0WYdX.js +0 -1
  423. package/dist/client/assets/reports-Dkc8wRTo.js +0 -1
  424. package/dist/client/assets/repositories-B6GGh3Gl.js +0 -1
  425. package/dist/client/assets/route-CiYCzoQC.js +0 -1
  426. package/dist/client/assets/schema-AdvpV9XD.js +0 -1
  427. package/dist/client/assets/settings-tab-DLt79LWg.js +0 -1
  428. package/dist/client/assets/site-editor-aI9Dau3o.js +0 -1
  429. package/dist/client/assets/tasks-BWiWGgqJ.js +0 -1
  430. package/dist/client/assets/use-ask-in-chat-CuHn_eJY.js +0 -1
  431. package/dist/client/assets/use-blocks-v8-project-ovX-kkwX.js +0 -1
  432. package/dist/client/assets/use-blog-view-CpUCE6TS.js +0 -1
  433. package/dist/client/assets/use-organization-settings-C-YWM0uD.js +0 -1
  434. package/dist/client/assets/useInfiniteQuery-Dmz76p-1.js +0 -1
  435. package/dist/client/assets/useSuspenseInfiniteQuery-BnvO_4S5.js +0 -1
@@ -1 +1 @@
1
- import{c as E,j as t,B as K,h as X,aH as Ze,aI as re,b as W,R as Ee,r as A,a6 as fe,dT as Xe,dU as Re,aG as et,n as Oe,I as pe,m as G,bZ as tt,au as st,u as ot,L as se,t as lt,f as he,cD as Fe}from"./index-CUTEHf7n.js";import{E as Me}from"./empty-state-BfnU_rAm.js";import{u as ge}from"./use-mcp-client-BVU34o8K.js";import{F as ae,a as nt,b as ce,d as de}from"./form-CDXejFhy.js";import{T as xe}from"./textarea-J2V-aUg9.js";import{D as je,O as it,M as rt}from"./index-AYfJDRJw.js";import{Y as at,V as ct,bu as dt,ar as mt,aA as ut,L as ye,e as pt}from"./agent-icon-y2SKybSP.js";import{M as xt}from"./mcp-app-renderer-DrwYcKK7.js";import{g as ft,M as we}from"./types-B29zOSVo.js";import{A as ht,a as gt,b as jt}from"./alert-565fy8M1.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-CXHAcNGT.js";import{b as bt,c as Pe,T as De,a as ke}from"./tooltip-BtQY7me6.js";import{i as Nt}from"./AlertCircle-B4BiejsA.js";import{s as vt}from"./UserCheck01-CjBhJIbn.js";import{s as St}from"./File02-Dj9EXPDT.js";import{i as yt}from"./Play-DBG3GXxW.js";import{g as wt}from"./connection-slug-BuWfvd-P.js";import{u as Ct,T as It}from"./use-mcp-auth-status-Ca77VI4X.js";import{u as ze,b as Le}from"./use-connection-BAk2dsuv.js";import{u as Tt}from"./use-mcp-tools-DagGRrIt.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-BRVzdEXf.js";import{f as Pt,y as Dt}from"./chat-context-3o15fH-n.js";import{u as kt}from"./shell-layout-bVoP9kOD.js";import{MonacoCodeEditor as At}from"./monaco-editor-Cmq9PYT5.js";import{E as Et}from"./empty-state-BlV47Moy.js";import{n as Rt}from"./LinkBroken01-jFeLEleD.js";import"./auth-D7Uu7n_e.js";import"./label-qad8ROdP.js";import"./Key01-DPAOwUET.js";import"./extract-connection-data-CTwhrI6L.js";import"./metadata-D72DunRR.js";import"./connection-D4RX46wh.js";import"./url-slug-5tJR8vZd.js";import"./Plus-BEFFoW2D.js";import"./index-CnTDG57D.js";import"./index-CMosAuta.js";import"./index-CGuDb95W.js";import"./index-BdQq_4o_.js";import"./index-dYHd0KJA.js";import"./popover-t4wJ-TtS.js";import"./repository-binding-DyxjotEQ.js";import"./SearchMd-BVX4smTx.js";import"./use-mobile-LSpSJcPd.js";import"./use-navigate-to-agent-fspVUy0_.js";import"./thread-intent-C-4a46Zs.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BqAScN4r.js";import"./task-board-ZELaPSpv.js";import"./schema-AdvpV9XD.js";import"./session-runtime-DRkG9ReZ.js";import"./schema-rfxhIdnI.js";import"./Tool01-B97c8idL.js";import"./ArrowUp-C2dE69W7.js";import"./ArrowLeft-DpoZP_fX.js";import"./ArrowRight-waHzto0g.js";import"./BookOpen01-Det9naRR.js";import"./Globe04-YQZG_Qbl.js";import"./CheckCircle-BNEuJPHU.js";import"./ChevronDown-_sr4up4D.js";import"./ChevronSelectorVertical-Ddl6sDao.js";import"./ChevronUp-CK7Ad_mD.js";import"./UserSquare-D0WQA2_a.js";import"./CreditCard01-DaUYIK4F.js";import"./MessageCircle01-Cf5Qa_r1.js";import"./SwitchHorizontal01-CgqtVqHH.js";import"./Eye-CYtkFg_6.js";import"./Fingerprint04-kauf3nbZ.js";import"./Image01-ChEwjYSJ.js";import"./LayoutLeft-DUieRSDJ.js";import"./Minus-DVAnrb98.js";import"./Monitor01-D5to20Na.js";import"./Sun-D2fDzKM6.js";import"./ShoppingBag01-Bvm3sWvz.js";import"./Trash01-Bi3fjf_i.js";import"./Upload01-B0N1cyeo.js";import"./Users01-CNLWTh0g.js";import"./XClose-CUoBDo4j.js";import"./Zap-D5Q1SF5c.js";import"./index-C08yFDSB.js";import"./badge-CdntSWLw.js";import"./mcp-oauth-CqsxDqXO.js";import"./use-panel-navigate-Dcxy731-.js";import"./thread-route-hABZCF2d.js";import"./use-project-scope-3Q37Eln5.js";import"./use-view-draft-kind-DECgwRep.js";import"./use-blog-view-CpUCE6TS.js";import"./use-organization-settings-C-YWM0uD.js";import"./use-entitlements-DH1D5a0L.js";import"./use-ai-providers-Dya2oYuM.js";import"./use-current-view-SFKgOLYn.js";import"./use-in-settings-Dv_cwy92.js";import"./use-decopilot-events-B93IJnco.js";import"./use-org-fs-CYycA4iA.js";import"./useInfiniteQuery-Dmz76p-1.js";import"./infiniteQueryObserver-DN-l8Mqm.js";import"./use-deployment-admin-DYC3wY2X.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-B0u21Cu1.js";import"./command-BvXS_hwC.js";import"./project-icon-4S0TtqeC.js";import"./use-debounced-value-C75ZQTZG.js";import"./new-project-dialog-CVc657qA.js";import"./repository-picker-Diifpqm3.js";import"./github-icon-QoDNyjsW.js";import"./collection-search-gjXSkcT8.js";import"./new-project-store-ehAJK4hL.js";import"./legacy-admin-welcome-dialog-CXj5rtpz.js";import"./drawer-Co6CTMtJ.js";import"./required-auth-layout-CVH6Kpuo.js";import"./use-org-sso-DZUFYVRN.js";import"./editor-Dzcpm7rQ.js";function Ot(s){const e=E.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==o||e[3]!==r?(h=t.jsxs(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(X,{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}Ze({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Mt(s){const e=E.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let g;e[22]!==u?(g=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=g):g=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=C=>{const{field:b}=C;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=o,e[29]=N):N=e[29];let v;e[30]!==n.control||e[31]!==N?(v=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=v):v=e[32];let y;e[33]!==g||e[34]!==j||e[35]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-2",children:[g,j,v]}),e[33]=g,e[34]=j,e[35]=v,e[36]=y):y=e[36];let w;e[37]!==y||e[38]!==h?(w=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,y]}),e[37]=y,e[38]=h,e[39]=w):w=e[39];let P;return e[40]!==n||e[41]!==w?(P=t.jsx(nt,{...n,children:w}),e[40]=n,e[41]=w,e[42]=P):P=e[42],P}function zt(s){const e=E.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Xe(n,"PROMPT",o,d),x=Re(n,"PROMPT",d),h=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let g;e[6]!==u?(g={values:u},e[6]=u,e[7]=g):g=e[7];const p=et(g);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let v;e[11]!==x.update||e[12]!==p||e[13]!==o?(v=p.handleSubmit(async I=>{const T=await x.update.mutateAsync({id:o,data:{title:I.title,description:I.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:I.body}}]}});p.reset({title:T.title,description:T.description??null,body:ue(T)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=v):v=e[14];const y=v;if(!r){let I;e[15]!==l?(I=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=I):I=e[16];let T;e[17]!==l?(T=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=T):T=e[18];let O;return e[19]!==I||e[20]!==T?(O=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:I,description:T})}),e[19]=I,e[20]=T,e[21]=O):O=e[21],O}let w;e[22]!==y?(w=()=>{y()},e[22]=y,e[23]=w):w=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==h||e[26]!==N||e[27]!==w?(P=t.jsx(Ot,{onSave:w,onUndo:N,isDirty:p.formState.isDirty,isSaving:h}),e[24]=p.formState.isDirty,e[25]=h,e[26]=N,e[27]=w,e[28]=P):P=e[28];let C;e[29]!==r.title||e[30]!==P?(C=t.jsx(Oe.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=C):C=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let D;e[34]!==b||e[35]!==C?(D=t.jsxs(t.Fragment,{children:[C,b]}),e[34]=b,e[35]=C,e[36]=D):D=e[36];let k;e[37]!==p?(k=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:p})}),e[37]=p,e[38]=k):k=e[38];let R;return e[39]!==D||e[40]!==k?(R=t.jsxs(je,{children:[D,k]}),e[39]=D,e[40]=k,e[41]=R):R=e[41],R}function Lt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ft(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function 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(),R=ze(e),I=Pt(),T=Dt(),{openSidePanel:O}=kt(),U=`${e}:${s}`,M=ge({connectionId:e,orgId:k.id,orgSlug:k.slug}),_=Tt({client:M}),S=_.data?.tools?.find(m=>m.name===s),F=ft(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(O(),I.sendMessage({tiptapDoc:f}))},[z,L]=A.useState("json"),[q,Q]=A.useState(!1);F&&!q&&(L("ui"),Q(!0));const J=S?.inputSchema?.properties,be=J?Object.keys(J):[],Z=be.length>0,ee={};if(Z&&S?.inputSchema?.properties)for(const m of be)ee[m]=S.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{C(!0),w(null),g(null),j(null),v(null),D(null);const m=performance.now();try{if(!M)throw new Error("MCP client is not available");const f=Z?{...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.")})();Z&&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 M.callTool({name:s,arguments:f}),te=$.structuredContent??$,Qe=performance.now(),Ye=Math.round(Qe-m);g(te),j($),v(f);const Ge=JSON.stringify(te),ve=new TextEncoder().encode(Ge).length;D({duration:`${Ye}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(f){const $=f instanceof Error?f.message:String(f);w($||"Unknown error occurred");const te=performance.now();D({duration:`${Math.round(te-m)}ms`})}finally{C(!1)}},ie=(m,f)=>{r($=>({...$,[m]:f}))},Ve=()=>{g(null),j(null),v(null),w(null),D(null)},qe=S?.name??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,{}),R&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:wt(R)},search:{tab:"tools"},children:R.title})})}),t.jsx(le,{})]}),t.jsx(Y,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{size:"sm",className:"w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),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:Z&&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&&!Z?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(vt,{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(mt,{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(St,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),F&&t.jsx(bt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="ui"?"secondary":"ghost",onClick:()=>L("ui"),children:t.jsx(ut,{size:14})})}),t.jsx(ke,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="json"?"secondary":"ghost",onClick:()=>L("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(ht,{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(Nt,{className:"h-4 w-4"}),t.jsx(gt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(jt,{className:"text-xs text-destructive",children:y})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&z==="ui"&&M?t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(xt,{resourceURI:F,toolInfo:S?{tool:S}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:M,onMessage:V,onUpdateModelContext:m=>T?.setAppContext(U,m),onTeardown:()=>T?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(At,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"outline",className:"absolute top-4 right-4",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(pt,{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:R?.icon||null,name:R?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Oe.Title,{children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(X,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:S?.annotations,_meta:S?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:S?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:l("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ke}),We]})})]})})}function Jt(s){const e=E.c(21),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=A.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(p=>p.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let p;e[3]!==i?(p=i("details.tool.connectionNotFound"),e[3]=i,e[4]=p):p=e[4];let j;e[5]!==p?(j=t.jsx("h3",{className:"text-lg font-semibold",children:p}),e[5]=p,e[6]=j):j=e[6];let N;e[7]!==i?(N=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=N):N=e[8];let v;e[9]!==N?(v=t.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[9]=N,e[10]=v):v=e[10];let y;return e[11]!==j||e[12]!==v?(y=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,v]})}),e[11]=j,e[12]=v,e[13]=y):y=e[13],y}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{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:Lt};function qt(){const s=E.c(9),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Le(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=E.c(52),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Le(x)[0]??null,g=u?.id??"",p=g||"no-connection",j=g??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const v=ge(N),y=Re(p,i,v);let w;s[9]!==y||s[10]!==a?(w=async J=>{a&&await y.update.mutateAsync({id:a,data:J})},s[9]=y,s[10]=a,s[11]=w):w=s[11];const P=w;let C;s[12]!==i?(C=i?.toLowerCase(),s[12]=i,s[13]=C):C=s[13];const b=C,D=b&&Vt[b];let k;s[14]!==i?(k=Kt(i),s[14]=i,s[15]=k):k=s[15];const R=k;let I;s[16]!==r.slug?(I=t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=I):I=s[17];let T;s[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(le,{}),s[18]=T):T=s[18];let O;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(O=u&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=O):O=s[23];let U;s[24]!==R?(U=t.jsx(Y,{children:t.jsx(_e,{children:R})}),s[24]=R,s[25]=U):U=s[25];let M;s[26]!==O||s[27]!==U||s[28]!==I?(M=t.jsx(Be,{children:t.jsxs(Ue,{children:[I,T,O,U]})}),s[26]=O,s[27]=U,s[28]=I,s[29]=M):M=s[29];const _=M;if(D){let J;return s[30]!==D||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(D,{itemId:a,onBack:d,onUpdate:P}),s[30]=D,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let S;s[35]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Rt,{size:36,className:"text-muted-foreground"}),s[35]=S):S=s[35];let F;s[36]!==l?(F=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=F):F=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let L;s[42]!==d||s[43]!==z?(L={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=L):L=s[44];let q;s[45]!==F||s[46]!==V||s[47]!==L?(q=t.jsx(Et,{icon:S,title:F,description:V,buttonProps:L}),s[45]=F,s[46]=V,s[47]=L,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 sl(){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(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{sl as default};
1
+ import{c as E,j as t,B as K,h as X,aH as Ze,aI as re,b as W,R as Ee,r as A,a6 as fe,dT as Xe,dU as Re,aG as et,n as Oe,I as pe,m as G,bZ as tt,au as st,u as ot,L as se,t as lt,f as he,cD as Fe}from"./index-D9ty5Ie3.js";import{E as Me}from"./empty-state-DfXiNtjV.js";import{u as ge}from"./use-mcp-client-CCxN3wif.js";import{F as ae,a as nt,b as ce,d as de}from"./form-CdIohY1c.js";import{T as xe}from"./textarea-CxYbwRQs.js";import{D as je,O as it,M as rt}from"./index-uTqcpy5-.js";import{Y as at,V as ct,bu as dt,ar as mt,aA as ut,L as ye,e as pt}from"./agent-icon-CCxR2PUF.js";import{M as xt}from"./mcp-app-renderer-Bvu3N1R4.js";import{g as ft,M as we}from"./types-Dn5pCQsk.js";import{A as ht,a as gt,b as jt}from"./alert-De4kstIi.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-B8AcNN--.js";import{b as bt,c as Pe,T as De,a as ke}from"./tooltip-WWhnAI0D.js";import{i as Nt}from"./AlertCircle-B1i_KHb5.js";import{s as vt}from"./UserCheck01-CpCxuE-I.js";import{s as St}from"./File02-CFPVdIh1.js";import{i as yt}from"./Play-1a_lTdjO.js";import{g as wt}from"./connection-slug-Dby8IQVH.js";import{u as Ct,T as It}from"./use-mcp-auth-status-BbJoMlJb.js";import{u as ze,b as Le}from"./use-connection-Cfm3n1XL.js";import{u as Tt}from"./use-mcp-tools-6V4XkJcF.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-DwE31eP3.js";import{f as Pt,y as Dt}from"./chat-context-BIbY01K8.js";import{u as kt}from"./shell-layout-Df_Vqmxl.js";import{MonacoCodeEditor as At}from"./monaco-editor-CBnaevuh.js";import{E as Et}from"./empty-state-VIxg_A9_.js";import{n as Rt}from"./LinkBroken01-wmCuBJVN.js";import"./auth-CdyebVHG.js";import"./label-BuyeEoKy.js";import"./Key01-CBM6N1XG.js";import"./extract-connection-data-CY4kvgmG.js";import"./metadata-D72DunRR.js";import"./connection-BU3CbBAB.js";import"./url-slug-_CQrBm2g.js";import"./Plus-BjA7v0aW.js";import"./index-BozwbZx0.js";import"./index-Bkszoj0s.js";import"./index-BtxZs6tJ.js";import"./index-BdQq_4o_.js";import"./index-CVCo7BMR.js";import"./popover-CkZGLhNA.js";import"./repository-binding-DCgII80m.js";import"./SearchMd-DLHPy6Uo.js";import"./use-mobile-B8Aa4Xlk.js";import"./use-navigate-to-agent-ILbX-YSf.js";import"./thread-intent-CYwcSe1Q.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C-H2mUwU.js";import"./task-board-CKMBp6DZ.js";import"./schema-CTzV9RXv.js";import"./session-runtime-CaeGmaeh.js";import"./schema-CId4jxC-.js";import"./Tool01-sUxKxzA1.js";import"./ArrowUp-D0iB56_y.js";import"./ArrowLeft-BCGEiplU.js";import"./ArrowRight-CTKbq3xg.js";import"./BookOpen01-BRGBbO1d.js";import"./Globe04-CVG10uFQ.js";import"./CheckCircle-DhVhQqv1.js";import"./ChevronDown-nlBmBA6R.js";import"./ChevronSelectorVertical-CnSsPRgV.js";import"./ChevronUp-8WNgfyfx.js";import"./UserSquare-DB6NyDzI.js";import"./CreditCard01-DXlMDhFZ.js";import"./MessageCircle01-BgFAVnEo.js";import"./SwitchHorizontal01-CCkkKeRG.js";import"./Eye-uwbxmI34.js";import"./Fingerprint04-BCose3-q.js";import"./Image01-BIaadP6j.js";import"./LayoutLeft-BdexGOTP.js";import"./Minus-CWR3qyH5.js";import"./Monitor01-BQDnuBH5.js";import"./Sun-CF9jssUY.js";import"./ShoppingBag01-DH3DKaiC.js";import"./Trash01-BJHdmQwJ.js";import"./Upload01-_qHCYjHc.js";import"./Users01-DwRKp1C7.js";import"./XClose-oM6nZllg.js";import"./Zap-ahofKysd.js";import"./index-BzRhR-ob.js";import"./badge-B0BpLsJr.js";import"./mcp-oauth-BN54afSi.js";import"./use-panel-navigate-DDkOk54O.js";import"./thread-route-2H1rJmYZ.js";import"./use-project-scope-DQMPXxdu.js";import"./use-view-draft-kind-D6nuhvC8.js";import"./use-blog-view-12eN62uX.js";import"./use-organization-settings-DWZK4txY.js";import"./use-entitlements-C9g1ozeL.js";import"./use-ai-providers-fHYrugD3.js";import"./use-current-view-D4QwvKZY.js";import"./use-in-settings-D6bXO-H0.js";import"./use-decopilot-events-D2kyZDkU.js";import"./use-org-fs-9SZb1DFS.js";import"./useInfiniteQuery-BVDzY1XE.js";import"./infiniteQueryObserver-jl0ag-ci.js";import"./use-deployment-admin-ChHKYp27.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-xNR84Fdf.js";import"./command-CGZn32g4.js";import"./project-icon-B83l1FFE.js";import"./use-debounced-value-CyYRIO6x.js";import"./new-project-dialog-B7_EHGk8.js";import"./repository-picker-GD3a62Se.js";import"./github-icon-BFtlg-Wu.js";import"./collection-search-5yetxvaM.js";import"./new-project-store-B8n3b_tZ.js";import"./legacy-admin-welcome-dialog-D8acRK4o.js";import"./drawer-CPRS7vw4.js";import"./required-auth-layout-CJHidYLF.js";import"./use-org-sso-C54pKXlG.js";import"./editor-D4mLuwGY.js";function Ot(s){const e=E.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==o||e[3]!==r?(h=t.jsxs(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(X,{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}Ze({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Mt(s){const e=E.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let g;e[22]!==u?(g=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=g):g=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=C=>{const{field:b}=C;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=o,e[29]=N):N=e[29];let v;e[30]!==n.control||e[31]!==N?(v=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=v):v=e[32];let y;e[33]!==g||e[34]!==j||e[35]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-2",children:[g,j,v]}),e[33]=g,e[34]=j,e[35]=v,e[36]=y):y=e[36];let w;e[37]!==y||e[38]!==h?(w=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,y]}),e[37]=y,e[38]=h,e[39]=w):w=e[39];let P;return e[40]!==n||e[41]!==w?(P=t.jsx(nt,{...n,children:w}),e[40]=n,e[41]=w,e[42]=P):P=e[42],P}function zt(s){const e=E.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Xe(n,"PROMPT",o,d),x=Re(n,"PROMPT",d),h=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let g;e[6]!==u?(g={values:u},e[6]=u,e[7]=g):g=e[7];const p=et(g);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let v;e[11]!==x.update||e[12]!==p||e[13]!==o?(v=p.handleSubmit(async I=>{const T=await x.update.mutateAsync({id:o,data:{title:I.title,description:I.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:I.body}}]}});p.reset({title:T.title,description:T.description??null,body:ue(T)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=v):v=e[14];const y=v;if(!r){let I;e[15]!==l?(I=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=I):I=e[16];let T;e[17]!==l?(T=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=T):T=e[18];let O;return e[19]!==I||e[20]!==T?(O=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:I,description:T})}),e[19]=I,e[20]=T,e[21]=O):O=e[21],O}let w;e[22]!==y?(w=()=>{y()},e[22]=y,e[23]=w):w=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==h||e[26]!==N||e[27]!==w?(P=t.jsx(Ot,{onSave:w,onUndo:N,isDirty:p.formState.isDirty,isSaving:h}),e[24]=p.formState.isDirty,e[25]=h,e[26]=N,e[27]=w,e[28]=P):P=e[28];let C;e[29]!==r.title||e[30]!==P?(C=t.jsx(Oe.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=C):C=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let D;e[34]!==b||e[35]!==C?(D=t.jsxs(t.Fragment,{children:[C,b]}),e[34]=b,e[35]=C,e[36]=D):D=e[36];let k;e[37]!==p?(k=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:p})}),e[37]=p,e[38]=k):k=e[38];let R;return e[39]!==D||e[40]!==k?(R=t.jsxs(je,{children:[D,k]}),e[39]=D,e[40]=k,e[41]=R):R=e[41],R}function Lt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ft(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function 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(),R=ze(e),I=Pt(),T=Dt(),{openSidePanel:O}=kt(),U=`${e}:${s}`,M=ge({connectionId:e,orgId:k.id,orgSlug:k.slug}),_=Tt({client:M}),S=_.data?.tools?.find(m=>m.name===s),F=ft(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(O(),I.sendMessage({tiptapDoc:f}))},[z,L]=A.useState("json"),[q,Q]=A.useState(!1);F&&!q&&(L("ui"),Q(!0));const J=S?.inputSchema?.properties,be=J?Object.keys(J):[],Z=be.length>0,ee={};if(Z&&S?.inputSchema?.properties)for(const m of be)ee[m]=S.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{C(!0),w(null),g(null),j(null),v(null),D(null);const m=performance.now();try{if(!M)throw new Error("MCP client is not available");const f=Z?{...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.")})();Z&&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 M.callTool({name:s,arguments:f}),te=$.structuredContent??$,Qe=performance.now(),Ye=Math.round(Qe-m);g(te),j($),v(f);const Ge=JSON.stringify(te),ve=new TextEncoder().encode(Ge).length;D({duration:`${Ye}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(f){const $=f instanceof Error?f.message:String(f);w($||"Unknown error occurred");const te=performance.now();D({duration:`${Math.round(te-m)}ms`})}finally{C(!1)}},ie=(m,f)=>{r($=>({...$,[m]:f}))},Ve=()=>{g(null),j(null),v(null),w(null),D(null)},qe=S?.name??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,{}),R&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:wt(R)},search:{tab:"tools"},children:R.title})})}),t.jsx(le,{})]}),t.jsx(Y,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{size:"sm",className:"w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),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:Z&&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&&!Z?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(vt,{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(mt,{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(St,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),F&&t.jsx(bt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="ui"?"secondary":"ghost",onClick:()=>L("ui"),children:t.jsx(ut,{size:14})})}),t.jsx(ke,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(De,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="json"?"secondary":"ghost",onClick:()=>L("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(ht,{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(Nt,{className:"h-4 w-4"}),t.jsx(gt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(jt,{className:"text-xs text-destructive",children:y})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:F&&z==="ui"&&M?t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(xt,{resourceURI:F,toolInfo:S?{tool:S}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:M,onMessage:V,onUpdateModelContext:m=>T?.setAppContext(U,m),onTeardown:()=>T?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(At,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"outline",className:"absolute top-4 right-4",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(pt,{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:R?.icon||null,name:R?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Oe.Title,{children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(X,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:S?.annotations,_meta:S?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:S?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:l("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ke}),We]})})]})})}function Jt(s){const e=E.c(21),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=A.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(p=>p.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let p;e[3]!==i?(p=i("details.tool.connectionNotFound"),e[3]=i,e[4]=p):p=e[4];let j;e[5]!==p?(j=t.jsx("h3",{className:"text-lg font-semibold",children:p}),e[5]=p,e[6]=j):j=e[6];let N;e[7]!==i?(N=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=N):N=e[8];let v;e[9]!==N?(v=t.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[9]=N,e[10]=v):v=e[10];let y;return e[11]!==j||e[12]!==v?(y=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,v]})}),e[11]=j,e[12]=v,e[13]=y):y=e[13],y}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{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:Lt};function qt(){const s=E.c(9),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Le(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=E.c(52),e=Fe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Le(x)[0]??null,g=u?.id??"",p=g||"no-connection",j=g??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const v=ge(N),y=Re(p,i,v);let w;s[9]!==y||s[10]!==a?(w=async J=>{a&&await y.update.mutateAsync({id:a,data:J})},s[9]=y,s[10]=a,s[11]=w):w=s[11];const P=w;let C;s[12]!==i?(C=i?.toLowerCase(),s[12]=i,s[13]=C):C=s[13];const b=C,D=b&&Vt[b];let k;s[14]!==i?(k=Kt(i),s[14]=i,s[15]=k):k=s[15];const R=k;let I;s[16]!==r.slug?(I=t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=I):I=s[17];let T;s[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(le,{}),s[18]=T):T=s[18];let O;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(O=u&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=O):O=s[23];let U;s[24]!==R?(U=t.jsx(Y,{children:t.jsx(_e,{children:R})}),s[24]=R,s[25]=U):U=s[25];let M;s[26]!==O||s[27]!==U||s[28]!==I?(M=t.jsx(Be,{children:t.jsxs(Ue,{children:[I,T,O,U]})}),s[26]=O,s[27]=U,s[28]=I,s[29]=M):M=s[29];const _=M;if(D){let J;return s[30]!==D||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(D,{itemId:a,onBack:d,onUpdate:P}),s[30]=D,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let S;s[35]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Rt,{size:36,className:"text-muted-foreground"}),s[35]=S):S=s[35];let F;s[36]!==l?(F=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=F):F=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let L;s[42]!==d||s[43]!==z?(L={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=L):L=s[44];let q;s[45]!==F||s[46]!==V||s[47]!==L?(q=t.jsx(Et,{icon:S,title:F,description:V,buttonProps:L}),s[45]=F,s[46]=V,s[47]=L,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 sl(){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(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{sl as default};
@@ -1 +1 @@
1
- import{c as V,b as Y,j as s,Y as A,aY as R,m as S,X as _,B as $,Z as E,_ as F}from"./index-CUTEHf7n.js";import{i as G,n as I}from"./ArrowUp-C2dE69W7.js";import{i as L,c as O,b as P}from"./SwitchHorizontal01-CgqtVqHH.js";import{T as K,a as X,b as Z,c as q}from"./tooltip-BtQY7me6.js";import{T as H,a as z}from"./toggle-group-BSy9ppTS.js";import{B as J}from"./badge-CdntSWLw.js";const M=[];function ae(t){const e=V.c(36),{viewMode:i,onViewModeChange:j,sortKey:B,sortDirection:g,onSort:b,sortOptions:D,filters:k}=t,v=D===void 0?M:D,o=k===void 0?M:k,l=Y();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(_,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=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:S("h-8 px-2 py-0 cursor-pointer",T&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[T&&s.jsx(R,{size:16,className:"text-foreground shrink-0"}),!T&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children: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(E,{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(F,{children:[x,h]}),e[33]=x,e[34]=h,e[35]=C):C=e[35],C}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 font-normal text-meta",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(A,{onClick:()=>t.onChange(e.id),className:S("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(R,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{ae as C};
1
+ import{c as V,b as Y,j as s,Y as A,aY as R,m as S,X as _,B as $,Z as E,_ as F}from"./index-D9ty5Ie3.js";import{i as G,n as I}from"./ArrowUp-D0iB56_y.js";import{i as L,c as O,b as P}from"./SwitchHorizontal01-CCkkKeRG.js";import{T as K,a as X,b as Z,c as q}from"./tooltip-WWhnAI0D.js";import{T as H,a as z}from"./toggle-group-navQiXEB.js";import{B as J}from"./badge-B0BpLsJr.js";const M=[];function ae(t){const e=V.c(36),{viewMode:i,onViewModeChange:j,sortKey:B,sortDirection:g,onSort:b,sortOptions:D,filters:k}=t,v=D===void 0?M:D,o=k===void 0?M:k,l=Y();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(_,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=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:S("h-8 px-2 py-0 cursor-pointer",T&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[T&&s.jsx(R,{size:16,className:"text-foreground shrink-0"}),!T&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children: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(E,{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(F,{children:[x,h]}),e[33]=x,e[34]=h,e[35]=C):C=e[35],C}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 font-normal text-meta",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(A,{onClick:()=>t.onChange(e.id),className:S("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(R,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{ae as C};
@@ -1 +1 @@
1
- import{c as v,m as b,j as a,h as w}from"./index-CUTEHf7n.js";import{i as C}from"./SearchMd-BVX4smTx.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let r;e[4]!==f?(r=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=r):r=e[5];let l;e[6]!==m?(l=N=>m(N.target.value),e[6]=m,e[7]=l):l=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==l||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:l,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=l,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==r||e[16]!==o?(n=a.jsxs("label",{className:s,children:[r,o]}),e[14]=s,e[15]=r,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
1
+ import{c as v,m as b,j as a,h as w}from"./index-D9ty5Ie3.js";import{i as C}from"./SearchMd-DLHPy6Uo.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let r;e[4]!==f?(r=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=r):r=e[5];let l;e[6]!==m?(l=N=>m(N.target.value),e[6]=m,e[7]=l):l=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==l||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:l,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=l,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==r||e[16]!==o?(n=a.jsxs("label",{className:s,children:[r,o]}),e[14]=s,e[15]=r,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
@@ -1 +1 @@
1
- import{c as D,j as r,m as T,b as I}from"./index-CUTEHf7n.js";import{T as E,a as H,b as R,c as K,d as W,e as z}from"./table-5d9iQpdi.js";import{i as L,n as $}from"./ArrowUp-C2dE69W7.js";function A(S){const e=D.c(33),{columns:a,data:b,sortKey:h,sortDirection:l,onSort:i,onRowClick:m,rowClassName:u,isRowClickable:x}=S;let v;e[0]!==l?(v=function(t,j){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:j&&l&&(l==="asc"?r.jsx(L,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx($,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=l,e[1]=v):v=e[1];const p=v;let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=function(t,j){let w="px-4 py-2 text-left font-normal text-meta h-9";return t===j-1&&(w="px-4 py-2 text-left font-normal text-meta h-9 w-8"),w},e[2]=y):y=e[2];const g=y;let c;if(e[3]!==a||e[4]!==i||e[5]!==p||e[6]!==l||e[7]!==h){let d;e[9]!==a.length||e[10]!==i||e[11]!==p||e[12]!==l||e[13]!==h?(d=(t,j)=>{const w=h===t.id,N=t.sortable&&i;return r.jsx(E,{className:T(g(j,a.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":w&&l?l==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:N?"button":void 0,tabIndex:N?0:void 0,onClick:N?()=>i(t.id):void 0,onKeyDown:N?f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(t.id))}:void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&p(t.id,w)]})},t.id)},e[9]=a.length,e[10]=i,e[11]=p,e[12]=l,e[13]=h,e[14]=d):d=e[14],c=a.map(d),e[3]=a,e[4]=i,e[5]=p,e[6]=l,e[7]=h,e[8]=c}else c=e[8];let s;e[15]!==c?(s=r.jsx(H,{className:"border-b-0",children:r.jsx(R,{className:"h-9 hover:bg-transparent border-b border-border",children:c})}),e[15]=c,e[16]=s):s=e[16];let n;if(e[17]!==a||e[18]!==b||e[19]!==x||e[20]!==m||e[21]!==u){let d;e[23]!==a||e[24]!==x||e[25]!==m||e[26]!==u?(d=(t,j)=>{const w=u?.(t),N=x?.(t)??!0,f=m&&N?()=>m(t):void 0;return r.jsx(R,{"data-row-index":j,className:T("group/data-row transition-colors border-b-0",N&&"hover:bg-accent",f?"cursor-pointer":"",w),role:f?"button":void 0,tabIndex:f?0:void 0,onClick:f,onKeyDown:f?o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),f())}:void 0,children:a.map(o=>r.jsx(K,{className:T("px-5 py-4 h-16 align-middle text-sm text-foreground",o.cellClassName,o.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:T(o.wrap?"w-full":"min-w-0",!o.wrap&&"-m-0.5 truncate overflow-hidden whitespace-nowrap p-0.5"),children:o.render?o.render(t):o.accessor?o.accessor(t):null})},o.id))},j)},e[23]=a,e[24]=x,e[25]=m,e[26]=u,e[27]=d):d=e[27],n=b.map(d),e[17]=a,e[18]=b,e[19]=x,e[20]=m,e[21]=u,e[22]=n}else n=e[22];let C;e[28]!==n?(C=r.jsx(W,{children:n}),e[28]=n,e[29]=C):C=e[29];let k;return e[30]!==s||e[31]!==C?(k=r.jsxs(z,{className:"w-full border-collapse",children:[s,C]}),e[30]=s,e[31]=C,e[32]=k):k=e[32],k}function G(S){const e=D.c(18),{columns:a,data:b,isLoading:h,sortKey:l,sortDirection:i,onSort:m,onRowClick:u,rowClassName:x,isRowClickable:v,emptyState:p}=S,y=h===void 0?!1:h,g=I();if(y){let s;e[0]!==g?(s=g("collections.collectionTableWrapper.loading"),e[0]=g,e[1]=s):s=e[1];let n;return e[2]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=n):n=e[3],n}if(b.length===0){let s;e[4]!==p||e[5]!==g?(s=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:g("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=g,e[6]=s):s=e[6];let n;return e[7]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=n):n=e[8],n}let c;return e[9]!==a||e[10]!==b||e[11]!==v||e[12]!==u||e[13]!==m||e[14]!==x||e[15]!==i||e[16]!==l?(c=r.jsx("div",{className:"flex-1",children:r.jsx(A,{columns:a,data:b,sortKey:l,sortDirection:i,onSort:m,onRowClick:u,rowClassName:x,isRowClickable:v})}),e[9]=a,e[10]=b,e[11]=v,e[12]=u,e[13]=m,e[14]=x,e[15]=i,e[16]=l,e[17]=c):c=e[17],c}export{G as C};
1
+ import{c as D,j as r,m as T,b as I}from"./index-D9ty5Ie3.js";import{T as E,a as H,b as R,c as K,d as W,e as z}from"./table-Bgl4r11n.js";import{i as L,n as $}from"./ArrowUp-D0iB56_y.js";function A(S){const e=D.c(33),{columns:a,data:b,sortKey:h,sortDirection:l,onSort:i,onRowClick:m,rowClassName:u,isRowClickable:x}=S;let v;e[0]!==l?(v=function(t,j){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:j&&l&&(l==="asc"?r.jsx(L,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx($,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=l,e[1]=v):v=e[1];const p=v;let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=function(t,j){let w="px-4 py-2 text-left font-normal text-meta h-9";return t===j-1&&(w="px-4 py-2 text-left font-normal text-meta h-9 w-8"),w},e[2]=y):y=e[2];const g=y;let c;if(e[3]!==a||e[4]!==i||e[5]!==p||e[6]!==l||e[7]!==h){let d;e[9]!==a.length||e[10]!==i||e[11]!==p||e[12]!==l||e[13]!==h?(d=(t,j)=>{const w=h===t.id,N=t.sortable&&i;return r.jsx(E,{className:T(g(j,a.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":w&&l?l==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:N?"button":void 0,tabIndex:N?0:void 0,onClick:N?()=>i(t.id):void 0,onKeyDown:N?f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(t.id))}:void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&p(t.id,w)]})},t.id)},e[9]=a.length,e[10]=i,e[11]=p,e[12]=l,e[13]=h,e[14]=d):d=e[14],c=a.map(d),e[3]=a,e[4]=i,e[5]=p,e[6]=l,e[7]=h,e[8]=c}else c=e[8];let s;e[15]!==c?(s=r.jsx(H,{className:"border-b-0",children:r.jsx(R,{className:"h-9 hover:bg-transparent border-b border-border",children:c})}),e[15]=c,e[16]=s):s=e[16];let n;if(e[17]!==a||e[18]!==b||e[19]!==x||e[20]!==m||e[21]!==u){let d;e[23]!==a||e[24]!==x||e[25]!==m||e[26]!==u?(d=(t,j)=>{const w=u?.(t),N=x?.(t)??!0,f=m&&N?()=>m(t):void 0;return r.jsx(R,{"data-row-index":j,className:T("group/data-row transition-colors border-b-0",N&&"hover:bg-accent",f?"cursor-pointer":"",w),role:f?"button":void 0,tabIndex:f?0:void 0,onClick:f,onKeyDown:f?o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),f())}:void 0,children:a.map(o=>r.jsx(K,{className:T("px-5 py-4 h-16 align-middle text-sm text-foreground",o.cellClassName,o.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:T(o.wrap?"w-full":"min-w-0",!o.wrap&&"-m-0.5 truncate overflow-hidden whitespace-nowrap p-0.5"),children:o.render?o.render(t):o.accessor?o.accessor(t):null})},o.id))},j)},e[23]=a,e[24]=x,e[25]=m,e[26]=u,e[27]=d):d=e[27],n=b.map(d),e[17]=a,e[18]=b,e[19]=x,e[20]=m,e[21]=u,e[22]=n}else n=e[22];let C;e[28]!==n?(C=r.jsx(W,{children:n}),e[28]=n,e[29]=C):C=e[29];let k;return e[30]!==s||e[31]!==C?(k=r.jsxs(z,{className:"w-full border-collapse",children:[s,C]}),e[30]=s,e[31]=C,e[32]=k):k=e[32],k}function G(S){const e=D.c(18),{columns:a,data:b,isLoading:h,sortKey:l,sortDirection:i,onSort:m,onRowClick:u,rowClassName:x,isRowClickable:v,emptyState:p}=S,y=h===void 0?!1:h,g=I();if(y){let s;e[0]!==g?(s=g("collections.collectionTableWrapper.loading"),e[0]=g,e[1]=s):s=e[1];let n;return e[2]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=n):n=e[3],n}if(b.length===0){let s;e[4]!==p||e[5]!==g?(s=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:g("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=g,e[6]=s):s=e[6];let n;return e[7]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=n):n=e[8],n}let c;return e[9]!==a||e[10]!==b||e[11]!==v||e[12]!==u||e[13]!==m||e[14]!==x||e[15]!==i||e[16]!==l?(c=r.jsx("div",{className:"flex-1",children:r.jsx(A,{columns:a,data:b,sortKey:l,sortDirection:i,onSort:m,onRowClick:u,rowClassName:x,isRowClickable:v})}),e[9]=a,e[10]=b,e[11]=v,e[12]=u,e[13]=m,e[14]=x,e[15]=i,e[16]=l,e[17]=c):c=e[17],c}export{G as C};
@@ -1 +1 @@
1
- import{c as b,j as r,n as p,P as j,m as h}from"./index-CUTEHf7n.js";import{B as v}from"./badge-CdntSWLw.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-2xs font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
1
+ import{c as b,j as r,n as p,P as j,m as h}from"./index-D9ty5Ie3.js";import{B as v}from"./badge-B0BpLsJr.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,m as S,B as W,aY as X}from"./index-CUTEHf7n.js";import{i as Z}from"./ChevronSelectorVertical-Ddl6sDao.js";import{a as _,C as ee,b as se,e as te,c as ae,f as le}from"./command-BvXS_hwC.js";import{a as re,P as oe,b as ne}from"./popover-t4wJ-TtS.js";function he(q){const e=Q.c(48),{options:C,value:a,onChange:j,placeholder:$,triggerClassName:A,contentClassName:w,width:F,renderTrigger:G,renderItem:o,emptyMessage:V,searchPlaceholder:Y,filter:P,renderSearchAction:E,onSearchChange:n,ariaLabel:z}=q,D=$===void 0?"Select...":$,H=F===void 0?"w-[200px]":F,O=V===void 0?"No results found.":V,T=Y===void 0?"Search...":Y;let g;e[0]!==a?(g=l=>l.value===a,e[0]=a,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=l=>{J(l),l||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,L=oe,M=re,K=!0,R=G?s.jsx("div",{className:S("cursor-pointer",A),children:G(I)}):s.jsxs(W,{variant:"outline",role:"combobox","aria-label":z,className:S("justify-between rounded-[var(--studio-control-radius,var(--radius-lg))]",H,A),children:[I?I.label:D,s.jsx(Z,{className:"opacity-50"})]});let i;e[4]!==M||e[5]!==R?(i=s.jsx(M,{asChild:K,children:R}),e[4]=M,e[5]=R,e[6]=i):i=e[6];let c;e[7]!==w?(c=S("p-0",w),e[7]=w,e[8]=c):c=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let d;e[10]!==E||e[11]!==t?(d=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=d):d=e[12];let m;e[13]!==n||e[14]!==T||e[15]!==d?(m=s.jsx(_,{placeholder:T,className:"h-9",onValueChange:n,action:d}),e[13]=n,e[14]=T,e[15]=d,e[16]=m):m=e[16];let h;e[17]!==O?(h=s.jsx(ee,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==o||e[22]!==t||e[23]!==a){let l;e[25]!==j||e[26]!==o||e[27]!==t||e[28]!==a?(l=r=>{const k=a===r.value;return s.jsx(se,{value:r.label,onSelect:()=>{j(r.value===a?"":r.value),t(!1)},children:o?o(r,k):s.jsxs(s.Fragment,{children:[r.label,s.jsx(X,{className:S("ml-auto",k?"opacity-100":"opacity-0")})]})},r.value)},e[25]=j,e[26]=o,e[27]=t,e[28]=a,e[29]=l):l=e[29],f=C.map(l),e[19]=j,e[20]=C,e[21]=o,e[22]=t,e[23]=a,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(te,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(ae,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==m||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[m,u]}),e[35]=P,e[36]=m,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==c||e[40]!==x?(v=s.jsx(ne,{className:c,style:y,children:x}),e[39]=c,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==L||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==i?(N=s.jsxs(L,{open:B,onOpenChange:t,children:[i,v]}),e[42]=L,e[43]=B,e[44]=t,e[45]=v,e[46]=i,e[47]=N):N=e[47],N}export{he as C};
1
+ import{c as Q,r as U,j as s,m as S,B as W,aY as X}from"./index-D9ty5Ie3.js";import{i as Z}from"./ChevronSelectorVertical-CnSsPRgV.js";import{a as _,C as ee,b as se,e as te,c as ae,f as le}from"./command-CGZn32g4.js";import{a as re,P as oe,b as ne}from"./popover-CkZGLhNA.js";function he(q){const e=Q.c(48),{options:C,value:a,onChange:j,placeholder:$,triggerClassName:A,contentClassName:w,width:F,renderTrigger:G,renderItem:o,emptyMessage:V,searchPlaceholder:Y,filter:P,renderSearchAction:E,onSearchChange:n,ariaLabel:z}=q,D=$===void 0?"Select...":$,H=F===void 0?"w-[200px]":F,O=V===void 0?"No results found.":V,T=Y===void 0?"Search...":Y;let g;e[0]!==a?(g=l=>l.value===a,e[0]=a,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=l=>{J(l),l||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,L=oe,M=re,K=!0,R=G?s.jsx("div",{className:S("cursor-pointer",A),children:G(I)}):s.jsxs(W,{variant:"outline",role:"combobox","aria-label":z,className:S("justify-between rounded-[var(--studio-control-radius,var(--radius-lg))]",H,A),children:[I?I.label:D,s.jsx(Z,{className:"opacity-50"})]});let i;e[4]!==M||e[5]!==R?(i=s.jsx(M,{asChild:K,children:R}),e[4]=M,e[5]=R,e[6]=i):i=e[6];let c;e[7]!==w?(c=S("p-0",w),e[7]=w,e[8]=c):c=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let d;e[10]!==E||e[11]!==t?(d=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=d):d=e[12];let m;e[13]!==n||e[14]!==T||e[15]!==d?(m=s.jsx(_,{placeholder:T,className:"h-9",onValueChange:n,action:d}),e[13]=n,e[14]=T,e[15]=d,e[16]=m):m=e[16];let h;e[17]!==O?(h=s.jsx(ee,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==o||e[22]!==t||e[23]!==a){let l;e[25]!==j||e[26]!==o||e[27]!==t||e[28]!==a?(l=r=>{const k=a===r.value;return s.jsx(se,{value:r.label,onSelect:()=>{j(r.value===a?"":r.value),t(!1)},children:o?o(r,k):s.jsxs(s.Fragment,{children:[r.label,s.jsx(X,{className:S("ml-auto",k?"opacity-100":"opacity-0")})]})},r.value)},e[25]=j,e[26]=o,e[27]=t,e[28]=a,e[29]=l):l=e[29],f=C.map(l),e[19]=j,e[20]=C,e[21]=o,e[22]=t,e[23]=a,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(te,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(ae,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==m||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[m,u]}),e[35]=P,e[36]=m,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==c||e[40]!==x?(v=s.jsx(ne,{className:c,style:y,children:x}),e[39]=c,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==L||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==i?(N=s.jsxs(L,{open:B,onOpenChange:t,children:[i,v]}),e[42]=L,e[43]=B,e[44]=t,e[45]=v,e[46]=i,e[47]=N):N=e[47],N}export{he as C};
@@ -1 +1 @@
1
- import{c as v,j as r,m as h,b_ as b,D as j,x as w,aU as y,w as C,v as z}from"./index-CUTEHf7n.js";import{_ as k}from"./index-dYHd0KJA.js";import{i as D}from"./SearchMd-BVX4smTx.js";function $(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=v.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(k.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function F(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function P(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{B as C,R as a,P as b,V as c,L as d,F as e,$ as f,I as g,H as h};
1
+ import{c as v,j as r,m as h,b_ as b,D as j,x as w,aU as y,w as C,v as z}from"./index-D9ty5Ie3.js";import{_ as k}from"./index-CVCo7BMR.js";import{i as D}from"./SearchMd-DLHPy6Uo.js";function $(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=v.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(k.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function F(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function P(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{B as C,R as a,P as b,V as c,L as d,F as e,$ as f,I as g,H as h};
@@ -1 +1 @@
1
- import{c as _,r as U,m as Q,j as s,Q as Y,R as Z,b as z,a as ee,T as te,B as ne}from"./index-CUTEHf7n.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-BVU34o8K.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-DgHT9TTS.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=U.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=z();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=z();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"surface p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(U.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=z(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[T,D]=U.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==T||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:T,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=T,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
1
+ import{c as _,r as U,m as Q,j as s,Q as Y,R as Z,b as z,a as ee,T as te,B as ne}from"./index-D9ty5Ie3.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-CCxN3wif.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-C25pDJPN.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=U.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=z();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=z();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"surface p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(U.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=z(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[T,D]=U.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==T||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:T,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=T,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
@@ -1 +1 @@
1
- import{p as b,k}from"./task-key-ChxtLgH2.js";import{i as _}from"./AlertCircle-B4BiejsA.js";import{t as v,m as K,p as B,h as w,i as A,l as S,a as I,o as L,e as O,g as T,j as m,f as D}from"./UserCheck01-CjBhJIbn.js";import{fm as E,aV as R,dM as y,aa as M}from"./index-CUTEHf7n.js";import{i as P}from"./CheckCircle-BNEuJPHU.js";import{s as $}from"./Eye-CYtkFg_6.js";import{D as F,C as f}from"./task-board-ZELaPSpv.js";const U=E("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),j=["ended_after_delivery","superseded"];function H(e){return!!e&&j.includes(e)}function se(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function oe(e){return e.failureKind!=="superseded"}function p(e){return e.threads.some(t=>t.status==="requires_action")}function ie(e){return e.status==="in_review"&&!e.assigneeId}function ce(e){return p(e)}function d(e){return e.status==="done"||e.status==="archived"?!1:e.priority==="urgent"||e.type==="security"||p(e)||V(e)==="failed"}const C="critical:";function W(e){return e!=="done"&&e!=="archived"}function le({overId:e,itemOf:t,fromStatus:n,toStatus:a,dragged:s=[]}){if(e===void 0||!W(a))return null;const r=String(e);if(r.startsWith(C))return"critical";if(s.includes(r)){const i=t(s[0]);return i&&d(i)?"critical":n===a?"improvements":null}if(n!==a)return null;if(r.startsWith(x))return"improvements";const o=t(r);return o?d(o)?"critical":"improvements":null}function ue(e,t){const n=d(e);return t==="critical"?n?null:"urgent":n?d({...e,priority:"high"})?null:"high":null}function de(e){return e.status==="in_progress"&&p(e)?"text-warning animate-pulse":N(e.status).iconClassName}function V(e){return e.threads.some(n=>n.status==="in_progress")?"running":e.threads.some(n=>n.status==="failed"&&!H(n.failureKind))?"failed":null}function fe(e,t,n){const a=e.findIndex(c=>c.id===n),s=t===n?e[a+1]?.id??null:t,r=e.filter(c=>c.id!==n),o=s?r.findIndex(c=>c.id===s):-1,i=o===-1?r.length:o,l=r[i-1],u=r[i];return l&&u?(l.sortOrder+u.sortOrder)/2:l?l.sortOrder+1:u?u.sortOrder-1:0}function pe(e,t){return Array.from({length:t},(n,a)=>e-(t-1-a)*1e-4)}const q=["archived"],h={triage:{labelKey:"taskBoard.config.statusBacklog",icon:_,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:y,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:A,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:$,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:w,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:B,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:K,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:v,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:P,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:R,iconClassName:"text-muted-foreground"}},G={icon:y,iconClassName:"text-muted-foreground"},Y=h;function N(e){return Y[e]??G}function me(e,t){const n=h[e];return{label:n?t(n.labelKey):e,visual:N(e)}}const ge=["bug","feature","chore","spike","security"],ye={bug:{labelKey:"taskBoard.config.typeBug",icon:U,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:L,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:I,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:S,iconClassName:"text-brand-yellow"},security:{labelKey:"taskBoard.config.typeSecurity",icon:M,iconClassName:"text-project-purple"}};function g(e,t){return t[e]??!q.includes(e)}function Ce(e){return{lanes:f.filter(t=>g(t,e)),hidden:f.filter(t=>!g(t,e))}}const z=44;function he({lanes:e,collapsed:t,hasHiddenTail:n}){const a=e.map(s=>t.includes(s)?`${z}px`:"minmax(280px, 1fr)");return n&&a.push("280px"),a.join(" ")}const x="lane:",Ne=e=>{const t=b(e);if(t.length>0)return t;const n=e.pointerCoordinates,a=n?e.droppableContainers.filter(s=>{const r=e.droppableRects.get(s.id);return r!==void 0&&n.x>=r.left&&n.x<=r.right}):[];return k(a.length>0?{...e,droppableContainers:a}:e)};function X(e){return f.includes(e)}function xe({overId:e,statusOf:t}){if(e===void 0)return null;const n=String(e),a=[x,C].find(r=>n.startsWith(r)),s=a?n.slice(a.length):t(n);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:m,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:D,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-project-blue",dotClassName:"bg-project-blue",icon:m,iconClassName:"text-project-blue"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:T,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:O,iconClassName:"text-destructive"}};function ve(e,t=Date.now()){const n=new Date(e).getTime();return Number.isNaN(n)?null:n<t?"overdue":n-t<=Q*864e5?"soon":null}const Q=3;function Ke(e){return`color-mix(in oklab, ${e??F} var(--user-color-strength), transparent)`}export{C,q as H,x as L,_e as P,h as S,ye as T,V as a,ie as b,d as c,N as d,oe as e,ge as f,ke as g,se as h,p as i,H as j,g as k,me as l,he as m,Ne as n,ce as o,ue as p,fe as q,pe as r,de as s,Ke as t,Ce as u,W as v,xe as w,le as x,ve as y,be as z};
1
+ import{p as b,k}from"./task-key-D4f-sg50.js";import{i as _}from"./AlertCircle-B1i_KHb5.js";import{t as v,m as K,p as B,h as w,i as A,l as S,a as I,o as L,e as O,g as T,j as m,f as D}from"./UserCheck01-CpCxuE-I.js";import{fm as E,aV as R,dM as y,aa as M}from"./index-D9ty5Ie3.js";import{i as P}from"./CheckCircle-DhVhQqv1.js";import{s as $}from"./Eye-uwbxmI34.js";import{D as F,C as f}from"./task-board-CKMBp6DZ.js";const U=E("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),j=["ended_after_delivery","superseded"];function H(e){return!!e&&j.includes(e)}function se(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function oe(e){return e.failureKind!=="superseded"}function p(e){return e.threads.some(t=>t.status==="requires_action")}function ie(e){return e.status==="in_review"&&!e.assigneeId}function ce(e){return p(e)}function d(e){return e.status==="done"||e.status==="archived"?!1:e.priority==="urgent"||e.type==="security"||p(e)||V(e)==="failed"}const C="critical:";function W(e){return e!=="done"&&e!=="archived"}function le({overId:e,itemOf:t,fromStatus:n,toStatus:a,dragged:s=[]}){if(e===void 0||!W(a))return null;const r=String(e);if(r.startsWith(C))return"critical";if(s.includes(r)){const i=t(s[0]);return i&&d(i)?"critical":n===a?"improvements":null}if(n!==a)return null;if(r.startsWith(x))return"improvements";const o=t(r);return o?d(o)?"critical":"improvements":null}function ue(e,t){const n=d(e);return t==="critical"?n?null:"urgent":n?d({...e,priority:"high"})?null:"high":null}function de(e){return e.status==="in_progress"&&p(e)?"text-warning animate-pulse":N(e.status).iconClassName}function V(e){return e.threads.some(n=>n.status==="in_progress")?"running":e.threads.some(n=>n.status==="failed"&&!H(n.failureKind))?"failed":null}function fe(e,t,n){const a=e.findIndex(c=>c.id===n),s=t===n?e[a+1]?.id??null:t,r=e.filter(c=>c.id!==n),o=s?r.findIndex(c=>c.id===s):-1,i=o===-1?r.length:o,l=r[i-1],u=r[i];return l&&u?(l.sortOrder+u.sortOrder)/2:l?l.sortOrder+1:u?u.sortOrder-1:0}function pe(e,t){return Array.from({length:t},(n,a)=>e-(t-1-a)*1e-4)}const q=["archived"],h={triage:{labelKey:"taskBoard.config.statusBacklog",icon:_,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:y,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:A,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:$,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:w,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:B,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:K,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:v,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:P,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:R,iconClassName:"text-muted-foreground"}},G={icon:y,iconClassName:"text-muted-foreground"},Y=h;function N(e){return Y[e]??G}function me(e,t){const n=h[e];return{label:n?t(n.labelKey):e,visual:N(e)}}const ge=["bug","feature","chore","spike","security"],ye={bug:{labelKey:"taskBoard.config.typeBug",icon:U,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:L,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:I,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:S,iconClassName:"text-brand-yellow"},security:{labelKey:"taskBoard.config.typeSecurity",icon:M,iconClassName:"text-project-purple"}};function g(e,t){return t[e]??!q.includes(e)}function Ce(e){return{lanes:f.filter(t=>g(t,e)),hidden:f.filter(t=>!g(t,e))}}const z=44;function he({lanes:e,collapsed:t,hasHiddenTail:n}){const a=e.map(s=>t.includes(s)?`${z}px`:"minmax(280px, 1fr)");return n&&a.push("280px"),a.join(" ")}const x="lane:",Ne=e=>{const t=b(e);if(t.length>0)return t;const n=e.pointerCoordinates,a=n?e.droppableContainers.filter(s=>{const r=e.droppableRects.get(s.id);return r!==void 0&&n.x>=r.left&&n.x<=r.right}):[];return k(a.length>0?{...e,droppableContainers:a}:e)};function X(e){return f.includes(e)}function xe({overId:e,statusOf:t}){if(e===void 0)return null;const n=String(e),a=[x,C].find(r=>n.startsWith(r)),s=a?n.slice(a.length):t(n);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:m,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:D,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-project-blue",dotClassName:"bg-project-blue",icon:m,iconClassName:"text-project-blue"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:T,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:O,iconClassName:"text-destructive"}};function ve(e,t=Date.now()){const n=new Date(e).getTime();return Number.isNaN(n)?null:n<t?"overdue":n-t<=Q*864e5?"soon":null}const Q=3;function Ke(e){return`color-mix(in oklab, ${e??F} var(--user-color-strength), transparent)`}export{C,q as H,x as L,_e as P,h as S,ye as T,V as a,ie as b,d as c,N as d,oe as e,ge as f,ke as g,se as h,p as i,H as j,g as k,me as l,he as m,Ne as n,ce as o,ue as p,fe as q,pe as r,de as s,Ke as t,Ce as u,W as v,xe as w,le as x,ve as y,be as z};
@@ -1,4 +1,4 @@
1
- import{c as k,j as s,b as _,r as X,m as Ce,aY as ue,i6 as be,a6 as Ne,as as ve,a7 as ke,B as le,t as pe,gH as fe,gW as we,au as Se}from"./index-CUTEHf7n.js";import{A as $e,b as _e}from"./alert-565fy8M1.js";import{B as Ke}from"./badge-CdntSWLw.js";import{a as Ie,b as Ae,c as de,d as ze,S as Te}from"./select-CXHAcNGT.js";import{c as se,T as oe,a as xe,b as re}from"./tabs-DEsdaVKa.js";import{u as ge}from"./use-copy-DPZUA7Gr.js";import{e as he,aF as Oe}from"./agent-icon-y2SKybSP.js";import{i as Ee}from"./Key01-DPAOwUET.js";import{C as Le,a as De,b as Me,c as He}from"./connect-key-txW2Hv5F.js";import{a as Be,u as Pe}from"./use-api-keys-B_9Rq7TJ.js";import{R as Re}from"./require-capability-GNq4582r.js";import{A as Ge}from"./api-keys-Bz1LryNm.js";import"./index-BdQq_4o_.js";import"./index-C08yFDSB.js";import"./ChevronDown-_sr4up4D.js";import"./ChevronUp-CK7Ad_mD.js";import"./active-indicator-CCMhAsc_.js";import"./AlertCircle-B4BiejsA.js";import"./UserCheck01-CjBhJIbn.js";import"./Tool01-B97c8idL.js";import"./ArrowUp-C2dE69W7.js";import"./ArrowLeft-DpoZP_fX.js";import"./ArrowRight-waHzto0g.js";import"./BookOpen01-Det9naRR.js";import"./Globe04-YQZG_Qbl.js";import"./CheckCircle-BNEuJPHU.js";import"./ChevronSelectorVertical-Ddl6sDao.js";import"./UserSquare-D0WQA2_a.js";import"./LinkBroken01-jFeLEleD.js";import"./CreditCard01-DaUYIK4F.js";import"./File02-Dj9EXPDT.js";import"./MessageCircle01-Cf5Qa_r1.js";import"./SwitchHorizontal01-CgqtVqHH.js";import"./Eye-CYtkFg_6.js";import"./Fingerprint04-kauf3nbZ.js";import"./Image01-ChEwjYSJ.js";import"./LayoutLeft-DUieRSDJ.js";import"./Minus-DVAnrb98.js";import"./Monitor01-D5to20Na.js";import"./Sun-D2fDzKM6.js";import"./Play-DBG3GXxW.js";import"./Plus-BEFFoW2D.js";import"./SearchMd-BVX4smTx.js";import"./ShoppingBag01-Bvm3sWvz.js";import"./Trash01-Bi3fjf_i.js";import"./Upload01-B0N1cyeo.js";import"./Users01-CNLWTh0g.js";import"./XClose-CUoBDo4j.js";import"./Zap-D5Q1SF5c.js";import"./use-mcp-client-BVU34o8K.js";import"./auth-D7Uu7n_e.js";import"./access-gate-B0i3LdD3.js";import"./capability-load-error-xI_9h3pT.js";import"./empty-state-BlV47Moy.js";import"./label-qad8ROdP.js";import"./index-CMosAuta.js";import"./use-mcp-tools-DagGRrIt.js";import"./checkbox-DG0VRyZt.js";import"./search-input-DaJb5UpE.js";import"./integration-icon-BRVzdEXf.js";import"./tool-set-selector-CtmnThz8.js";import"./use-infinite-scroll-BGl4Rgru.js";import"./useSuspenseInfiniteQuery-BnvO_4S5.js";import"./infiniteQueryObserver-DN-l8Mqm.js";import"./collection-search-gjXSkcT8.js";import"./connection-D4RX46wh.js";import"./url-slug-5tJR8vZd.js";import"./use-connection-BAk2dsuv.js";function Fe(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ve(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function We({client:t,mode:e,url:l,apiKey:o}){const n=o??"<paste-your-api-key>",c=Fe();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${l}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${l} \\
1
+ import{c as k,j as s,b as _,r as X,m as Ce,aY as ue,i6 as be,a6 as Ne,as as ve,a7 as ke,B as le,t as pe,gH as fe,gW as we,au as Se}from"./index-D9ty5Ie3.js";import{A as $e,b as _e}from"./alert-De4kstIi.js";import{B as Ke}from"./badge-B0BpLsJr.js";import{a as Ie,b as Ae,c as de,d as ze,S as Te}from"./select-B8AcNN--.js";import{c as se,T as oe,a as xe,b as re}from"./tabs-mO2tcMNi.js";import{u as ge}from"./use-copy-D8xWA2yV.js";import{e as he,aF as Oe}from"./agent-icon-CCxR2PUF.js";import{i as Ee}from"./Key01-CBM6N1XG.js";import{C as Le,a as De,b as Me,c as He}from"./connect-key-LpmiQ5t8.js";import{a as Be,u as Pe}from"./use-api-keys-D5gIwchQ.js";import{R as Re}from"./require-capability-BIdAaoMl.js";import{A as Ge}from"./api-keys-C30Nc0_c.js";import"./index-BdQq_4o_.js";import"./index-BzRhR-ob.js";import"./ChevronDown-nlBmBA6R.js";import"./ChevronUp-8WNgfyfx.js";import"./active-indicator-CCMhAsc_.js";import"./AlertCircle-B1i_KHb5.js";import"./UserCheck01-CpCxuE-I.js";import"./Tool01-sUxKxzA1.js";import"./ArrowUp-D0iB56_y.js";import"./ArrowLeft-BCGEiplU.js";import"./ArrowRight-CTKbq3xg.js";import"./BookOpen01-BRGBbO1d.js";import"./Globe04-CVG10uFQ.js";import"./CheckCircle-DhVhQqv1.js";import"./ChevronSelectorVertical-CnSsPRgV.js";import"./UserSquare-DB6NyDzI.js";import"./LinkBroken01-wmCuBJVN.js";import"./CreditCard01-DXlMDhFZ.js";import"./File02-CFPVdIh1.js";import"./MessageCircle01-BgFAVnEo.js";import"./SwitchHorizontal01-CCkkKeRG.js";import"./Eye-uwbxmI34.js";import"./Fingerprint04-BCose3-q.js";import"./Image01-BIaadP6j.js";import"./LayoutLeft-BdexGOTP.js";import"./Minus-CWR3qyH5.js";import"./Monitor01-BQDnuBH5.js";import"./Sun-CF9jssUY.js";import"./Play-1a_lTdjO.js";import"./Plus-BjA7v0aW.js";import"./SearchMd-DLHPy6Uo.js";import"./ShoppingBag01-DH3DKaiC.js";import"./Trash01-BJHdmQwJ.js";import"./Upload01-_qHCYjHc.js";import"./Users01-DwRKp1C7.js";import"./XClose-oM6nZllg.js";import"./Zap-ahofKysd.js";import"./use-mcp-client-CCxN3wif.js";import"./auth-CdyebVHG.js";import"./access-gate-KCOTCCf5.js";import"./capability-load-error-B-8XRgnZ.js";import"./empty-state-VIxg_A9_.js";import"./label-BuyeEoKy.js";import"./index-Bkszoj0s.js";import"./use-mcp-tools-6V4XkJcF.js";import"./checkbox-C5arK3Yi.js";import"./search-input-BXEVxZTu.js";import"./integration-icon-DwE31eP3.js";import"./tool-set-selector-DTF-tSJ8.js";import"./use-infinite-scroll-DqUoS-l2.js";import"./useSuspenseInfiniteQuery-ZMVy_VA8.js";import"./infiniteQueryObserver-jl0ag-ci.js";import"./collection-search-5yetxvaM.js";import"./connection-BU3CbBAB.js";import"./url-slug-_CQrBm2g.js";import"./use-connection-Cfm3n1XL.js";function Fe(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ve(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function We({client:t,mode:e,url:l,apiKey:o}){const n=o??"<paste-your-api-key>",c=Fe();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${l}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${c} ${l} \\
2
2
  --header "Authorization: Bearer ${n}"`};if(t==="cursor"){const i={url:l};return e==="api-key"&&(i.headers={Authorization:`Bearer ${n}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[c]:i}},null,2)}}if(t==="codex"){const i=[`[mcp_servers.${c}]`,`url = "${l}"`];return e==="api-key"&&i.push(`http_headers = { "Authorization" = "Bearer ${n}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:i.join(`
3
3
  `)}}return e==="oauth"?{language:"text",code:`${l}
4
4
 
@@ -1 +1 @@
1
- import{c as l,j as c}from"./index-CUTEHf7n.js";function a(i){const e=l.c(3),{size:n}=i,t=n===void 0?16:n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx("path",{d:"M13 12L18.5 5M7.63965 3L12.5 12L13.6865 3M4.48381 6.71679L11.9872 12M3 12L11.9872 12.473M12.2244 13.177L7 20M4.84194 16.8682L11.2824 12.9758M11.5 21L12.665 13.177M21 14L13.1846 12.668M21 10.5788L13 12.3223M16.779 19.646L12.8876 13.3772M19.3566 18.207L13.313 12.9893"}),e[0]=o):o=e[0];let s;return e[1]!==t?(s=c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o}),e[1]=t,e[2]=s):s=e[2],s}function d(i){const e=l.c(3),{size:n}=i,t=n===void 0?16:n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx("path",{clipRule:"evenodd",d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"}),e[0]=o):o=e[0];let s;return e[1]!==t?(s=c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",fillRule:"evenodd","aria-hidden":"true",children:o}),e[1]=t,e[2]=s):s=e[2],s}function h(i){const e=l.c(3),{size:n}=i,t=n===void 0?16:n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"}),e[0]=o):o=e[0];let s;return e[1]!==t?(s=c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor","aria-hidden":"true",children:o}),e[1]=t,e[2]=s):s=e[2],s}const u="Connect: ";export{a as C,h as a,d as b,u as c};
1
+ import{c as l,j as c}from"./index-D9ty5Ie3.js";function a(i){const e=l.c(3),{size:n}=i,t=n===void 0?16:n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx("path",{d:"M13 12L18.5 5M7.63965 3L12.5 12L13.6865 3M4.48381 6.71679L11.9872 12M3 12L11.9872 12.473M12.2244 13.177L7 20M4.84194 16.8682L11.2824 12.9758M11.5 21L12.665 13.177M21 14L13.1846 12.668M21 10.5788L13 12.3223M16.779 19.646L12.8876 13.3772M19.3566 18.207L13.313 12.9893"}),e[0]=o):o=e[0];let s;return e[1]!==t?(s=c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o}),e[1]=t,e[2]=s):s=e[2],s}function d(i){const e=l.c(3),{size:n}=i,t=n===void 0?16:n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx("path",{clipRule:"evenodd",d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"}),e[0]=o):o=e[0];let s;return e[1]!==t?(s=c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",fillRule:"evenodd","aria-hidden":"true",children:o}),e[1]=t,e[2]=s):s=e[2],s}function h(i){const e=l.c(3),{size:n}=i,t=n===void 0?16:n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"}),e[0]=o):o=e[0];let s;return e[1]!==t?(s=c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor","aria-hidden":"true",children:o}),e[1]=t,e[2]=s):s=e[2],s}const u="Connect: ";export{a as C,h as a,d as b,u as c};
@@ -1 +1 @@
1
- import{c as v,b as N,j as s,ah as w,b5 as k,au as y,B as z}from"./index-CUTEHf7n.js";import{aM as _,a5 as C}from"./agent-icon-y2SKybSP.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 M(){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 $(){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(M,{}),s.jsx("div",{className:"flex-1"}),s.jsx($,{})]})]}),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,ah as w,b5 as k,au as y,B as z}from"./index-D9ty5Ie3.js";import{aM as _,a5 as C}from"./agent-icon-CCxR2PUF.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 M(){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 $(){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(M,{}),s.jsx("div",{className:"flex-1"}),s.jsx($,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function A(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(z,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{R as C,A as a};
@@ -1 +1 @@
1
- import{c as y,b as w,j as n,r as M,R as L,a6 as V,W,T as Y,a as q,x as K,B as G,w as U,v as z,D as A,h as J}from"./index-CUTEHf7n.js";import{s as Q}from"./site-url-en5df9c-.js";import{u as X}from"./use-mcp-client-BVU34o8K.js";import{I as Z}from"./integration-icon-BRVzdEXf.js";import{c as ee,u as te,a as se,P as ne,d as le,S as ie}from"./use-connect-companion-DgHT9TTS.js";function k(b){const e=y.c(12),{onClose:l,children:s}=b,r=w();let t;e[0]!==l?(t=g=>!g&&l(),e[0]=l,e[1]=t):t=e[1];let d;e[2]!==r?(d=r("reportsOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=d):d=e[3];let o;e[4]!==d?(o=n.jsx(U,{children:n.jsx(K,{children:d})}),e[4]=d,e[5]=o):o=e[5];let x;e[6]!==s||e[7]!==o?(x=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[o,s]}),e[6]=s,e[7]=o,e[8]=x):x=e[8];let i;return e[9]!==t||e[10]!==x?(i=n.jsx(A,{open:!0,onOpenChange:t,children:x}),e[9]=t,e[10]=x,e[11]=i):i=e[11],i}function $(b){const e=y.c(3),{label:l}=b;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(J,{className:"size-4"}),e[0]=s):s=e[0];let r;return e[1]!==l?(r=n.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[s,n.jsx("span",{children:l})]}),e[1]=l,e[2]=r):r=e[2],r}function xe(b){const e=y.c(19),{field:l,onClose:s}=b,r=w();let t;e[0]!==s||e[1]!==r?(t=()=>n.jsx(k,{onClose:s,children:n.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.reportsOnboarding.connectModal.loadError")})}),e[0]=s,e[1]=r,e[2]=t):t=e[2];let d;e[3]!==r?(d=r("reportsOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=d):d=e[4];let o;e[5]!==d?(o=n.jsx($,{label:d}),e[5]=d,e[6]=o):o=e[6];let x;e[7]!==s||e[8]!==o?(x=n.jsx(k,{onClose:s,children:o}),e[7]=s,e[8]=o,e[9]=x):x=e[9];let i;e[10]!==l||e[11]!==s?(i=n.jsx(oe,{field:l,onClose:s}),e[10]=l,e[11]=s,e[12]=i):i=e[12];let g;e[13]!==x||e[14]!==i?(g=n.jsx(M.Suspense,{fallback:x,children:i}),e[13]=x,e[14]=i,e[15]=g):g=e[15];let p;return e[16]!==t||e[17]!==g?(p=n.jsx(L,{fallback:t,children:g}),e[16]=t,e[17]=g,e[18]=p):p=e[18],p}function oe(b){const e=y.c(75),{field:l,onClose:s}=b,r=w(),{org:t}=V();let d;e[0]!==t.id?(d=W.REPORTS(t.id),e[0]=t.id,e[1]=d):d=e[1];const o=d;let x;e[2]!==t.id||e[3]!==t.slug?(x={connectionId:Y,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=x):x=e[4];const i=X(x),{data:g}=q.useSession(),p=g?.user?.id??"";let j;e[5]!==o||e[6]!==t||e[7]!==i?(j={selfClient:i,org:t,cdConnectionId:o},e[5]=o,e[6]=t,e[7]=i,e[8]=j):j=e[8];const f=ee(j);let h;e[9]!==o||e[10]!==t||e[11]!==i||e[12]!==f?(h={selfClient:i,org:t,cdConnectionId:o,siteUrl:f},e[9]=o,e[10]=t,e[11]=i,e[12]=f,e[13]=h):h=e[13];const{cards:S}=te(h);let C;e[14]!==f?(C=Q(f)??void 0,e[14]=f,e[15]=C):C=e[15];let I;e[16]!==o||e[17]!==t||e[18]!==i||e[19]!==f||e[20]!==C||e[21]!==p?(I={selfClient:i,org:t,userId:p,cdConnectionId:o,domain:C,siteUrl:f},e[16]=o,e[17]=t,e[18]=i,e[19]=f,e[20]=C,e[21]=p,e[22]=I):I=e[22];const{connect:O,connectingFieldKey:F,error:T}=se(I);let E;if(e[23]!==S||e[24]!==l){let c;e[26]!==l?(c=u=>u.fieldKey===l,e[26]=l,e[27]=c):c=e[27],E=S.find(c),e[23]=S,e[24]=l,e[25]=E}else E=e[25];const a=E;if(!a){let c;e[28]!==r?(c=r("routes.reportsOnboarding.connectModal.loadError"),e[28]=r,e[29]=c):c=e[29];let u;e[30]!==c?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[30]=c,e[31]=u):u=e[31];let m;return e[32]!==s||e[33]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[32]=s,e[33]=u,e[34]=m):m=e[34],m}const R=ne[a.bindingType];if(R&&a.boundVia!=="oauth"){let c;e[35]!==s?(c=D=>!D&&s(),e[35]=s,e[36]=c):c=e[36];let u;e[37]!==a||e[38]!==O?(u=a.satisfied?void 0:()=>{O(a)},e[37]=a,e[38]=O,e[39]=u):u=e[39];let m;return e[40]!==a||e[41]!==t||e[42]!==R||e[43]!==i||e[44]!==f||e[45]!==c||e[46]!==u?(m=n.jsx(ie,{card:a,provider:R,org:t,selfClient:i,siteUrl:f,open:!0,onOpenChange:c,onOAuthInstead:u}),e[40]=a,e[41]=t,e[42]=R,e[43]=i,e[44]=f,e[45]=c,e[46]=u,e[47]=m):m=e[47],m}if(a.satisfied&&a.linkedConnectionId){let c;e[48]!==r?(c=r("reportsOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=c):c=e[49];let u;e[50]!==c?(u=n.jsx($,{label:c}),e[50]=c,e[51]=u):u=e[51];let m;e[52]!==s||e[53]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[52]=s,e[53]=u,e[54]=m):m=e[54];let D;e[55]!==s?(D=H=>!H&&s(),e[55]=s,e[56]=D):D=e[56];let v;e[57]!==a||e[58]!==t||e[59]!==i||e[60]!==f||e[61]!==D?(v=n.jsx(le,{card:a,org:t,selfClient:i,connectionId:a.linkedConnectionId,contextSiteUrl:f,open:!0,onOpenChange:D}),e[57]=a,e[58]=t,e[59]=i,e[60]=f,e[61]=D,e[62]=v):v=e[62];let _;return e[63]!==m||e[64]!==v?(_=n.jsx(M.Suspense,{fallback:m,children:v}),e[63]=m,e[64]=v,e[65]=_):_=e[65],_}const B=F===a.fieldKey;let N;e[66]!==a||e[67]!==O?(N=()=>{O(a)},e[66]=a,e[67]=O,e[68]=N):N=e[68];let P;return e[69]!==a||e[70]!==T||e[71]!==s||e[72]!==B||e[73]!==N?(P=n.jsx(re,{card:a,connecting:B,error:T,onConnect:N,onClose:s}),e[69]=a,e[70]=T,e[71]=s,e[72]=B,e[73]=N,e[74]=P):P=e[74],P}function re(b){const e=y.c(22),{card:l,connecting:s,error:r,onConnect:t,onClose:d}=b,o=w(),[x,i]=M.useState(!1);x||(i(!0),queueMicrotask(t));let g;e[0]!==s||e[1]!==d?(g=I=>{!I&&s||I||d()},e[0]=s,e[1]=d,e[2]=g):g=e[2];let p;e[3]!==l.icon||e[4]!==l.title?(p=n.jsx(Z,{icon:l.icon,name:l.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=l.icon,e[4]=l.title,e[5]=p):p=e[5];let j;e[6]!==l.title?(j=n.jsx(K,{className:"min-w-0 flex-1",children:l.title}),e[6]=l.title,e[7]=j):j=e[7];let f;e[8]!==p||e[9]!==j?(f=n.jsxs(U,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[p,j]}),e[8]=p,e[9]=j,e[10]=f):f=e[10];let h;e[11]!==l.title||e[12]!==r||e[13]!==t||e[14]!==o?(h=r?n.jsxs("div",{className:"flex flex-col gap-3",children:[n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),n.jsx(G,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:o("routes.reportsOnboarding.companionSection.retry")})]}):n.jsx($,{label:o("reportsOnboarding.connectSourceDialog.connecting",{title:l.title})}),e[11]=l.title,e[12]=r,e[13]=t,e[14]=o,e[15]=h):h=e[15];let S;e[16]!==f||e[17]!==h?(S=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[f,h]}),e[16]=f,e[17]=h,e[18]=S):S=e[18];let C;return e[19]!==g||e[20]!==S?(C=n.jsx(A,{open:!0,onOpenChange:g,children:S}),e[19]=g,e[20]=S,e[21]=C):C=e[21],C}export{xe as C};
1
+ import{c as y,b as w,j as n,r as M,R as L,a6 as V,W,T as Y,a as q,x as K,B as G,w as U,v as z,D as A,h as J}from"./index-D9ty5Ie3.js";import{s as Q}from"./site-url-en5df9c-.js";import{u as X}from"./use-mcp-client-CCxN3wif.js";import{I as Z}from"./integration-icon-DwE31eP3.js";import{c as ee,u as te,a as se,P as ne,d as le,S as ie}from"./use-connect-companion-C25pDJPN.js";function k(b){const e=y.c(12),{onClose:l,children:s}=b,r=w();let t;e[0]!==l?(t=g=>!g&&l(),e[0]=l,e[1]=t):t=e[1];let d;e[2]!==r?(d=r("reportsOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=d):d=e[3];let o;e[4]!==d?(o=n.jsx(U,{children:n.jsx(K,{children:d})}),e[4]=d,e[5]=o):o=e[5];let x;e[6]!==s||e[7]!==o?(x=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[o,s]}),e[6]=s,e[7]=o,e[8]=x):x=e[8];let i;return e[9]!==t||e[10]!==x?(i=n.jsx(A,{open:!0,onOpenChange:t,children:x}),e[9]=t,e[10]=x,e[11]=i):i=e[11],i}function $(b){const e=y.c(3),{label:l}=b;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(J,{className:"size-4"}),e[0]=s):s=e[0];let r;return e[1]!==l?(r=n.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[s,n.jsx("span",{children:l})]}),e[1]=l,e[2]=r):r=e[2],r}function xe(b){const e=y.c(19),{field:l,onClose:s}=b,r=w();let t;e[0]!==s||e[1]!==r?(t=()=>n.jsx(k,{onClose:s,children:n.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.reportsOnboarding.connectModal.loadError")})}),e[0]=s,e[1]=r,e[2]=t):t=e[2];let d;e[3]!==r?(d=r("reportsOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=d):d=e[4];let o;e[5]!==d?(o=n.jsx($,{label:d}),e[5]=d,e[6]=o):o=e[6];let x;e[7]!==s||e[8]!==o?(x=n.jsx(k,{onClose:s,children:o}),e[7]=s,e[8]=o,e[9]=x):x=e[9];let i;e[10]!==l||e[11]!==s?(i=n.jsx(oe,{field:l,onClose:s}),e[10]=l,e[11]=s,e[12]=i):i=e[12];let g;e[13]!==x||e[14]!==i?(g=n.jsx(M.Suspense,{fallback:x,children:i}),e[13]=x,e[14]=i,e[15]=g):g=e[15];let p;return e[16]!==t||e[17]!==g?(p=n.jsx(L,{fallback:t,children:g}),e[16]=t,e[17]=g,e[18]=p):p=e[18],p}function oe(b){const e=y.c(75),{field:l,onClose:s}=b,r=w(),{org:t}=V();let d;e[0]!==t.id?(d=W.REPORTS(t.id),e[0]=t.id,e[1]=d):d=e[1];const o=d;let x;e[2]!==t.id||e[3]!==t.slug?(x={connectionId:Y,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=x):x=e[4];const i=X(x),{data:g}=q.useSession(),p=g?.user?.id??"";let j;e[5]!==o||e[6]!==t||e[7]!==i?(j={selfClient:i,org:t,cdConnectionId:o},e[5]=o,e[6]=t,e[7]=i,e[8]=j):j=e[8];const f=ee(j);let h;e[9]!==o||e[10]!==t||e[11]!==i||e[12]!==f?(h={selfClient:i,org:t,cdConnectionId:o,siteUrl:f},e[9]=o,e[10]=t,e[11]=i,e[12]=f,e[13]=h):h=e[13];const{cards:S}=te(h);let C;e[14]!==f?(C=Q(f)??void 0,e[14]=f,e[15]=C):C=e[15];let I;e[16]!==o||e[17]!==t||e[18]!==i||e[19]!==f||e[20]!==C||e[21]!==p?(I={selfClient:i,org:t,userId:p,cdConnectionId:o,domain:C,siteUrl:f},e[16]=o,e[17]=t,e[18]=i,e[19]=f,e[20]=C,e[21]=p,e[22]=I):I=e[22];const{connect:O,connectingFieldKey:F,error:T}=se(I);let E;if(e[23]!==S||e[24]!==l){let c;e[26]!==l?(c=u=>u.fieldKey===l,e[26]=l,e[27]=c):c=e[27],E=S.find(c),e[23]=S,e[24]=l,e[25]=E}else E=e[25];const a=E;if(!a){let c;e[28]!==r?(c=r("routes.reportsOnboarding.connectModal.loadError"),e[28]=r,e[29]=c):c=e[29];let u;e[30]!==c?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[30]=c,e[31]=u):u=e[31];let m;return e[32]!==s||e[33]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[32]=s,e[33]=u,e[34]=m):m=e[34],m}const R=ne[a.bindingType];if(R&&a.boundVia!=="oauth"){let c;e[35]!==s?(c=D=>!D&&s(),e[35]=s,e[36]=c):c=e[36];let u;e[37]!==a||e[38]!==O?(u=a.satisfied?void 0:()=>{O(a)},e[37]=a,e[38]=O,e[39]=u):u=e[39];let m;return e[40]!==a||e[41]!==t||e[42]!==R||e[43]!==i||e[44]!==f||e[45]!==c||e[46]!==u?(m=n.jsx(ie,{card:a,provider:R,org:t,selfClient:i,siteUrl:f,open:!0,onOpenChange:c,onOAuthInstead:u}),e[40]=a,e[41]=t,e[42]=R,e[43]=i,e[44]=f,e[45]=c,e[46]=u,e[47]=m):m=e[47],m}if(a.satisfied&&a.linkedConnectionId){let c;e[48]!==r?(c=r("reportsOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=c):c=e[49];let u;e[50]!==c?(u=n.jsx($,{label:c}),e[50]=c,e[51]=u):u=e[51];let m;e[52]!==s||e[53]!==u?(m=n.jsx(k,{onClose:s,children:u}),e[52]=s,e[53]=u,e[54]=m):m=e[54];let D;e[55]!==s?(D=H=>!H&&s(),e[55]=s,e[56]=D):D=e[56];let v;e[57]!==a||e[58]!==t||e[59]!==i||e[60]!==f||e[61]!==D?(v=n.jsx(le,{card:a,org:t,selfClient:i,connectionId:a.linkedConnectionId,contextSiteUrl:f,open:!0,onOpenChange:D}),e[57]=a,e[58]=t,e[59]=i,e[60]=f,e[61]=D,e[62]=v):v=e[62];let _;return e[63]!==m||e[64]!==v?(_=n.jsx(M.Suspense,{fallback:m,children:v}),e[63]=m,e[64]=v,e[65]=_):_=e[65],_}const B=F===a.fieldKey;let N;e[66]!==a||e[67]!==O?(N=()=>{O(a)},e[66]=a,e[67]=O,e[68]=N):N=e[68];let P;return e[69]!==a||e[70]!==T||e[71]!==s||e[72]!==B||e[73]!==N?(P=n.jsx(re,{card:a,connecting:B,error:T,onConnect:N,onClose:s}),e[69]=a,e[70]=T,e[71]=s,e[72]=B,e[73]=N,e[74]=P):P=e[74],P}function re(b){const e=y.c(22),{card:l,connecting:s,error:r,onConnect:t,onClose:d}=b,o=w(),[x,i]=M.useState(!1);x||(i(!0),queueMicrotask(t));let g;e[0]!==s||e[1]!==d?(g=I=>{!I&&s||I||d()},e[0]=s,e[1]=d,e[2]=g):g=e[2];let p;e[3]!==l.icon||e[4]!==l.title?(p=n.jsx(Z,{icon:l.icon,name:l.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=l.icon,e[4]=l.title,e[5]=p):p=e[5];let j;e[6]!==l.title?(j=n.jsx(K,{className:"min-w-0 flex-1",children:l.title}),e[6]=l.title,e[7]=j):j=e[7];let f;e[8]!==p||e[9]!==j?(f=n.jsxs(U,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[p,j]}),e[8]=p,e[9]=j,e[10]=f):f=e[10];let h;e[11]!==l.title||e[12]!==r||e[13]!==t||e[14]!==o?(h=r?n.jsxs("div",{className:"flex flex-col gap-3",children:[n.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),n.jsx(G,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:o("routes.reportsOnboarding.companionSection.retry")})]}):n.jsx($,{label:o("reportsOnboarding.connectSourceDialog.connecting",{title:l.title})}),e[11]=l.title,e[12]=r,e[13]=t,e[14]=o,e[15]=h):h=e[15];let S;e[16]!==f||e[17]!==h?(S=n.jsxs(z,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[f,h]}),e[16]=f,e[17]=h,e[18]=S):S=e[18];let C;return e[19]!==g||e[20]!==S?(C=n.jsx(A,{open:!0,onOpenChange:g,children:S}),e[19]=g,e[20]=S,e[21]=C):C=e[21],C}export{xe as C};
@@ -1 +1 @@
1
- import{U as b}from"./url-slug-5tJR8vZd.js";import{aH as o,cq as a,bC as t,aI as e,dA as i,dy as r,dE as h,er as m,dz as _,cp as g}from"./index-CUTEHf7n.js";const f=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:h("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),S=m.extend({inputSchema:s,outputSchema:s.optional()}),T=o({headers:i(e(),e()).optional()}),y=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),l=256*1024;function d(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=l,{message:`${n} must serialize to at most ${l} bytes`})}const u=4096,p=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),url_slug:e().nullable().optional().describe("Name of the connection in Studio URLs, unique in the organization. Set it to rename the URL; the old one keeps redirecting."),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().optional().describe("Authentication token (for HTTP connections). Write-only: tool responses never include it."),has_connection_token:g().optional().describe("Whether a connection_token is stored. Set on tool responses."),connection_headers:_([y,T]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:f.nullable().describe("OAuth configuration"),configuration_state:d("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:d("metadata").describe("Additional metadata (includes repository info)"),tools:t(S).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});p.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0,has_connection_token:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish(),connection_token:e().max(u).nullish()});p.omit({has_connection_token:!0}).partial().extend({url_slug:b.nullish(),connection_token:e().max(u).nullish()});function I(n){return n!=null&&"command"in n}function E(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{f as O,I as i,E as p};
1
+ import{U as b}from"./url-slug-_CQrBm2g.js";import{aH as o,cq as a,bC as t,aI as e,dA as i,dy as r,dE as h,er as m,dz as _,cp as g}from"./index-D9ty5Ie3.js";const f=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:h("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),S=m.extend({inputSchema:s,outputSchema:s.optional()}),T=o({headers:i(e(),e()).optional()}),y=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),l=256*1024;function d(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=l,{message:`${n} must serialize to at most ${l} bytes`})}const u=4096,p=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),url_slug:e().nullable().optional().describe("Name of the connection in Studio URLs, unique in the organization. Set it to rename the URL; the old one keeps redirecting."),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().optional().describe("Authentication token (for HTTP connections). Write-only: tool responses never include it."),has_connection_token:g().optional().describe("Whether a connection_token is stored. Set on tool responses."),connection_headers:_([y,T]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:f.nullable().describe("OAuth configuration"),configuration_state:d("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:d("metadata").describe("Additional metadata (includes repository info)"),tools:t(S).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});p.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0,has_connection_token:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish(),connection_token:e().max(u).nullish()});p.omit({has_connection_token:!0}).partial().extend({url_slug:b.nullish(),connection_token:e().max(u).nullish()});function I(n){return n!=null&&"command"in n}function E(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{f as O,I as i,E as p};
@@ -1 +1 @@
1
- import{c as M,a6 as S,am as $,K as F,cJ as R,b as K,m as A,j as c,gH as q}from"./index-CUTEHf7n.js";import{u as O}from"./useInfiniteQuery-Dmz76p-1.js";import{g as D}from"./connection-slug-BuWfvd-P.js";import{I as z}from"./integration-icon-BRVzdEXf.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:H,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 H(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
1
+ import{c as M,a6 as S,am as $,K as F,cJ as R,b as K,m as A,j as c,gH as q}from"./index-D9ty5Ie3.js";import{u as O}from"./useInfiniteQuery-BVDzY1XE.js";import{g as D}from"./connection-slug-Dby8IQVH.js";import{I as z}from"./integration-icon-DwE31eP3.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:H,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 H(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};