decocms 4.447.0 → 4.448.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 (363) hide show
  1. package/dist/client/assets/{AlertCircle-O5yKT_wD.js → AlertCircle-BgzKIHBg.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DOBe6b77.js → AreaChart-D9J1W_3A.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-Bgwvgp7N.js → ArrowLeft-Bd0lzf25.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BcguyIxa.js → ArrowUp-THfmrwlM.js} +1 -1
  5. package/dist/client/assets/{Building02-DXskyQyV.js → Building02-CSMMDKRZ.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-Dxs56jW8.js → CartesianChart-BWUtT14P.js} +1 -1
  7. package/dist/client/assets/{Check-BwZg9K6a.js → Check-CkBscgA2.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-B8nBZ9lR.js → CheckCircle-Bokn_JKt.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-XuQjQLoK.js → ChevronUp-d9MFOW1T.js} +1 -1
  10. package/dist/client/assets/{Copy01-YmLU_wow.js → Copy01-C68wCYtl.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-CwEdzwSq.js → CreditCard01-B4oRpD46.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-DEYhHh-q.js → DotsVertical-C2t5zhKy.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-CoXkTI3v.js → ErrorBarContext-D08eI2fo.js} +1 -1
  14. package/dist/client/assets/{Image01-DFTuvWJV.js → Image01-Duw-3ecX.js} +1 -1
  15. package/dist/client/assets/{Key01-CW5AmBXO.js → Key01-CqL4JhuL.js} +1 -1
  16. package/dist/client/assets/{Line-w53GBlC_.js → Line-DL1QPfVo.js} +1 -1
  17. package/dist/client/assets/{Link01-rblrB3OI.js → Link01-C-Mwe2eF.js} +1 -1
  18. package/dist/client/assets/{LinkBroken01-cRHkOCv3.js → LinkBroken01-DN8kSYpX.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-DMr7xmMD.js → LinkExternal01-DMM7FS6P.js} +1 -1
  20. package/dist/client/assets/{Monitor01-DRRgoSgd.js → Monitor01-Wyitf2St.js} +1 -1
  21. package/dist/client/assets/{Palette-BLSfhg5D.js → Palette-VX8lOEW0.js} +1 -1
  22. package/dist/client/assets/{Plus-B7fu2HeJ.js → Plus-DDqlhBDc.js} +1 -1
  23. package/dist/client/assets/{SearchMd-DpRsJH0P.js → SearchMd-WaC9Elkv.js} +1 -1
  24. package/dist/client/assets/{Sector-DUcOKKda.js → Sector-BR94vGtg.js} +1 -1
  25. package/dist/client/assets/{ShoppingBag01-Bn_Ml-RN.js → ShoppingBag01-Cl4z1_2H.js} +1 -1
  26. package/dist/client/assets/{Sun-JyTPOz6f.js → Sun-COvLf5Lc.js} +1 -1
  27. package/dist/client/assets/{Tool01-TfY7iJsP.js → Tool01-CH2aHsGf.js} +1 -1
  28. package/dist/client/assets/{Trash01-DBoWC6W0.js → Trash01-DK8Y_gth.js} +1 -1
  29. package/dist/client/assets/{Upload01-oBIhuFXz.js → Upload01-oF1C_3Ru.js} +1 -1
  30. package/dist/client/assets/{User01-DlDKGoyi.js → User01-GD0yW4Qu.js} +1 -1
  31. package/dist/client/assets/{UserSquare-Cij4gM7j.js → UserSquare-D6GqJl2I.js} +1 -1
  32. package/dist/client/assets/{Users01-B0qqt-bB.js → Users01-DgVeXNsL.js} +1 -1
  33. package/dist/client/assets/{X-B1izQ1KV.js → X-YRTghwXC.js} +1 -1
  34. package/dist/client/assets/{XAxis-CxP14qz_.js → XAxis-DnLQ7FuQ.js} +1 -1
  35. package/dist/client/assets/{XClose-B1wwChfA.js → XClose-75e7Vbaa.js} +1 -1
  36. package/dist/client/assets/{ZoomOut-Cy6sSJWj.js → ZoomOut-Dvx_7Y9U.js} +1 -1
  37. package/dist/client/assets/{access-gate-DvGFBZwA.js → access-gate-BU27wCPK.js} +1 -1
  38. package/dist/client/assets/{add-connection-dialog-1TbuXfcy.js → add-connection-dialog-BHmJQXXQ.js} +1 -1
  39. package/dist/client/assets/{agent-analytics-CVvlpC2h.js → agent-analytics-B6eFHWAd.js} +1 -1
  40. package/dist/client/assets/agent-app-Dq_7tqVN.js +1 -0
  41. package/dist/client/assets/{agent-assets-dT4w7KXp.js → agent-assets-DiWQ8d3n.js} +1 -1
  42. package/dist/client/assets/{agent-automation-QQcgGJrd.js → agent-automation-DjYw4oXf.js} +1 -1
  43. package/dist/client/assets/{agent-automations-DYCzMC9n.js → agent-automations-BUvLJ7il.js} +1 -1
  44. package/dist/client/assets/{agent-connect-sources-BH2pAvk9.js → agent-connect-sources-MyA_CgnU.js} +1 -1
  45. package/dist/client/assets/agent-deck-DP1RFPYl.js +1 -0
  46. package/dist/client/assets/{agent-e2e-CE4P7SOm.js → agent-e2e-C9FCqOvB.js} +1 -1
  47. package/dist/client/assets/{agent-experiments-Cvf_GoyJ.js → agent-experiments-BlE9ebq7.js} +1 -1
  48. package/dist/client/assets/{agent-file-2ITxF0Ae.js → agent-file-BALSM2yR.js} +1 -1
  49. package/dist/client/assets/{agent-git-CaE7XjIB.js → agent-git-CrY9aGVI.js} +1 -1
  50. package/dist/client/assets/{agent-hosting-JmwTdK6y.js → agent-hosting-Cih5FNYQ.js} +1 -1
  51. package/dist/client/assets/{agent-icon-DebFssce.js → agent-icon-BUiQnNP8.js} +1 -1
  52. package/dist/client/assets/agent-library-Beh5m17Q.js +1 -0
  53. package/dist/client/assets/agent-library-file-CwXHAXv4.js +1 -0
  54. package/dist/client/assets/{agent-monitor-IbBmqvCt.js → agent-monitor-BuhaPSMe.js} +1 -1
  55. package/dist/client/assets/{agent-overview-BwNdPBpC.js → agent-overview-BX0iaaBw.js} +1 -1
  56. package/dist/client/assets/agent-settings-CW-eYN6A.js +1 -0
  57. package/dist/client/assets/{agent-site-editor-C8eLBttq.js → agent-site-editor-Dz301u4g.js} +1 -1
  58. package/dist/client/assets/agent-site-editor-code--ZdaE1Zs.js +2 -0
  59. package/dist/client/assets/{agent-site-editor-content--b4gLs1h.js → agent-site-editor-content-ChafU8bT.js} +3 -3
  60. package/dist/client/assets/{agent-site-editor-preview-BZZnLQZf.js → agent-site-editor-preview-UtIZTPE6.js} +3 -3
  61. package/dist/client/assets/agent-view-BYv17ry1.js +1 -0
  62. package/dist/client/assets/{agent-view-guard-B4uVbmma.js → agent-view-guard-CegzWEHj.js} +1 -1
  63. package/dist/client/assets/{agents-list-CwdDMmy-.js → agents-list-OSdOs1OH.js} +1 -1
  64. package/dist/client/assets/{ai-providers-D2O1ixBz.js → ai-providers-fPKqY7_P.js} +1 -1
  65. package/dist/client/assets/{alert-CqDdaXWn.js → alert-BxQz8cP6.js} +1 -1
  66. package/dist/client/assets/{alert-dialog-BaW-BGF4.js → alert-dialog-BB87iWcS.js} +1 -1
  67. package/dist/client/assets/{analytics-sections-D61Wwl8L.js → analytics-sections-md4NfZUk.js} +1 -1
  68. package/dist/client/assets/api-keys-BtiHVECl.js +1 -0
  69. package/dist/client/assets/{api-keys-wNYNv40Y.js → api-keys-OtcVZ-We.js} +1 -1
  70. package/dist/client/assets/app-editor-D0P361Xh.js +1 -0
  71. package/dist/client/assets/{asset-utils-D3olPYx7.js → asset-utils-PWPK46Eo.js} +1 -1
  72. package/dist/client/assets/{auth-CABZOlQ0.js → auth-CqmWT_2g.js} +1 -1
  73. package/dist/client/assets/{auth-catchall-qhf0Gqyx.js → auth-catchall-B3XbOymv.js} +1 -1
  74. package/dist/client/assets/{auth-entry-nJBLD0Y2.js → auth-entry-BPZIshWr.js} +1 -1
  75. package/dist/client/assets/{auth-split-layout-P-3F6VoK.js → auth-split-layout-BVZv5XKC.js} +1 -1
  76. package/dist/client/assets/{authenticate-and-persist-oauth-DBd5KhOF.js → authenticate-and-persist-oauth-B41Sx_s0.js} +1 -1
  77. package/dist/client/assets/{automation-list-row-B2m3VUdV.js → automation-list-row-BYt9sTMx.js} +1 -1
  78. package/dist/client/assets/{automation-runs-BGWmky8f.js → automation-runs-DIohB3g_.js} +1 -1
  79. package/dist/client/assets/{automations-C4fgolau.js → automations-BedV72qg.js} +1 -1
  80. package/dist/client/assets/{autosend-BkG_BHpj.js → autosend-CEQzRhvd.js} +1 -1
  81. package/dist/client/assets/{avatar-C70_Ki0z.js → avatar-BUy252-G.js} +1 -1
  82. package/dist/client/assets/{badge-D10nU5hm.js → badge-DejmcZm9.js} +1 -1
  83. package/dist/client/assets/{block-document-D3BljOLs.js → block-document-BgGQ2lXv.js} +1 -1
  84. package/dist/client/assets/{blocks-preview-workspace-context-DDuiEZgT.js → blocks-preview-workspace-context-CJ0cJXJ-.js} +1 -1
  85. package/dist/client/assets/{buckets-B2U9XBuC.js → buckets-ZSaS5z_u.js} +1 -1
  86. package/dist/client/assets/{build-improve-prompt-doc-Cjucl5Ml.js → build-improve-prompt-doc-BRKfF38j.js} +1 -1
  87. package/dist/client/assets/{calendar-BF7zRWf5.js → calendar-CLfWOBUX.js} +1 -1
  88. package/dist/client/assets/{capability-load-error-CI6r2eSt.js → capability-load-error-BJHb8XrA.js} +1 -1
  89. package/dist/client/assets/{category-editor-BPgoNKbj.js → category-editor-DWtggVgM.js} +1 -1
  90. package/dist/client/assets/{chart-BkrO3MsD.js → chart-HsGopGVn.js} +1 -1
  91. package/dist/client/assets/{chat-context-Crr9YCN0.js → chat-context-BaRraYAA.js} +1 -1
  92. package/dist/client/assets/{chat-draft-BkkmQZdS.js → chat-draft-CFEQOnWd.js} +1 -1
  93. package/dist/client/assets/{checkbox-CAXlLvHp.js → checkbox-CNknzL68.js} +1 -1
  94. package/dist/client/assets/{choose-editor-CXZPe8wI.js → choose-editor-DHUTwjGC.js} +1 -1
  95. package/dist/client/assets/{claim-phase-copy-DZ3Yirir.js → claim-phase-copy-D-H4AKq1.js} +1 -1
  96. package/dist/client/assets/{cli-auth-success-BVdFv3bm.js → cli-auth-success-DMCOlZVU.js} +1 -1
  97. package/dist/client/assets/{client-icons-DrzfFqzQ.js → client-icons-Dot2-8Ng.js} +1 -1
  98. package/dist/client/assets/{collapsible-CKOvtNeB.js → collapsible-COfnVvaq.js} +1 -1
  99. package/dist/client/assets/{collection-detail-DnoqLlcG.js → collection-detail-CvQy-FNQ.js} +1 -1
  100. package/dist/client/assets/{collection-display-button-bxkLloWp.js → collection-display-button-nS47msXw.js} +1 -1
  101. package/dist/client/assets/{collection-search-DZ1wZYuR.js → collection-search-QrA0qPpv.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-DjNNBLdq.js → collection-table-wrapper-D-FHJqcw.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-Y0ynVKEj.js → collection-tabs-BTTf3Im8.js} +1 -1
  104. package/dist/client/assets/{column-rules-DQX2ptJC.js → column-rules-26AzKhwv.js} +1 -1
  105. package/dist/client/assets/{combobox-DfBcz1Tb.js → combobox-DJMmGAgM.js} +1 -1
  106. package/dist/client/assets/{command-BUcXz1jA.js → command-BeWosBD5.js} +1 -1
  107. package/dist/client/assets/{companion-mcps-section-DbjKMv-Y.js → companion-mcps-section-DquOXFwc.js} +1 -1
  108. package/dist/client/assets/{config-DaCobjNE.js → config-B_J6eren.js} +1 -1
  109. package/dist/client/assets/{connect-CPjoHilW.js → connect-BHDzXT3q.js} +1 -1
  110. package/dist/client/assets/{connect-layout-K_gPt_sp.js → connect-layout-B5DraPjV.js} +1 -1
  111. package/dist/client/assets/{connection-D4h25APd.js → connection-DLraZ45i.js} +1 -1
  112. package/dist/client/assets/{connection-card-XwOnt1f0.js → connection-card-ByBeHaTx.js} +1 -1
  113. package/dist/client/assets/{connection-detail-D4tkjBck.js → connection-detail-D5wElMjE.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-MMq14fzZ.js → connection-form-helpers-B37qd_wK.js} +1 -1
  115. package/dist/client/assets/{connections-BzC5bqYg.js → connections-BGJZd1b3.js} +1 -1
  116. package/dist/client/assets/{context-0fIuzLTM.js → context-_owvmTJc.js} +1 -1
  117. package/dist/client/assets/{context-menu-Bl0G1UDO.js → context-menu-cIAF7GDl.js} +1 -1
  118. package/dist/client/assets/{create-organization-dialog-CFcjJ3cx.js → create-organization-dialog-DpSclRHW.js} +1 -1
  119. package/dist/client/assets/daily-pulse-BMbckFog.js +1 -0
  120. package/dist/client/assets/{decopilot-4kqD0JAa.js → decopilot-DvJjDwc1.js} +1 -1
  121. package/dist/client/assets/{device-hint-BcqeJvfC.js → device-hint-B1OpXsK3.js} +1 -1
  122. package/dist/client/assets/{dialog-C_zHR8DK.js → dialog-B30-8RI6.js} +1 -1
  123. package/dist/client/assets/{discover-Djz6Veha.js → discover-CvOdgoTH.js} +1 -1
  124. package/dist/client/assets/{domain-settings-CFO7Yfbv.js → domain-settings-DoLockR6.js} +1 -1
  125. package/dist/client/assets/{download-app-dialog-UTCmHANJ.js → download-app-dialog-BEeBKwQl.js} +1 -1
  126. package/dist/client/assets/{drawer-CeyU31cS.js → drawer-Dx_eDva4.js} +1 -1
  127. package/dist/client/assets/{editor-DEzZHfDd.js → editor-CLYxWXVn.js} +1 -1
  128. package/dist/client/assets/{empty-state-BrxgsLHG.js → empty-state-BtuSozdW.js} +1 -1
  129. package/dist/client/assets/{empty-state-2X05DwZp.js → empty-state-CyTqx1WF.js} +1 -1
  130. package/dist/client/assets/{extract-connection-data-DZSiJSCE.js → extract-connection-data-Ceomd2dy.js} +1 -1
  131. package/dist/client/assets/{feature-gate-BweFNKr3.js → feature-gate-ByQ_9Uyr.js} +1 -1
  132. package/dist/client/assets/{feature-paywall-DCy88YOr.js → feature-paywall-BpkcH4cr.js} +1 -1
  133. package/dist/client/assets/{file-explorer-E1QpuooZ.js → file-explorer-p49Fj9h5.js} +1 -1
  134. package/dist/client/assets/{file-preview-BFYm2Ebl.js → file-preview-oU4O4mYj.js} +1 -1
  135. package/dist/client/assets/{file-share-button-BNECzHpC.js → file-share-button-42_gXSxN.js} +1 -1
  136. package/dist/client/assets/{file-type-icon-D0M-S9U1.js → file-type-icon-DM7d4yre.js} +1 -1
  137. package/dist/client/assets/flat-project-D60fVc1Z.js +1 -0
  138. package/dist/client/assets/{folder-icon-CSGYfuW8.js → folder-icon-Bw0HK4N5.js} +1 -1
  139. package/dist/client/assets/{form-BGxoVGvb.js → form-HEFwQ86k.js} +1 -1
  140. package/dist/client/assets/{gateway-client-DqqeM3yS.js → gateway-client-DMn6uSTc.js} +1 -1
  141. package/dist/client/assets/{general--Lx4oqfC.js → general--mkEOaC6.js} +1 -1
  142. package/dist/client/assets/home-Dx0u1fAR.js +1 -0
  143. package/dist/client/assets/{icon-button-BAAffUhi.js → icon-button-C6LsyxKS.js} +1 -1
  144. package/dist/client/assets/{index-CpFVLV3H.js → index-B8iNur1H.js} +1 -1
  145. package/dist/client/assets/{index-D-s3ZvIF.js → index-BCW6nCJr.js} +1 -1
  146. package/dist/client/assets/{index-Dn333xYc.js → index-Bi-7WlGx.js} +1 -1
  147. package/dist/client/assets/{index-BxML1xBj.js → index-BuKCAq02.js} +1 -1
  148. package/dist/client/assets/{index-GgUtI-aH.js → index-C4Vjmkff.js} +1 -1
  149. package/dist/client/assets/{index-CpuEtEqc.js → index-CYKZD4gc.js} +3 -3
  150. package/dist/client/assets/{index-B_Hj8ygS.js → index-D8B9h6s-.js} +1 -1
  151. package/dist/client/assets/{index-Djpcf0g3.js → index-D9Dp_srJ.js} +1 -1
  152. package/dist/client/assets/{index-Dyzblr5g.js → index-D9o-WuiI.js} +1 -1
  153. package/dist/client/assets/{index-D3VyLkC3.js → index-DAhfV5vh.js} +6 -6
  154. package/dist/client/assets/{index-BVzkdynM.js → index-DUchVaNj.js} +1 -1
  155. package/dist/client/assets/{index-szJAEvQa.js → index-DfRZ3eV-.js} +1 -1
  156. package/dist/client/assets/index-DoNIk522.css +1 -0
  157. package/dist/client/assets/{index-DXhMSpJ7.js → index-IqSVG5fY.js} +1 -1
  158. package/dist/client/assets/{index-CcuAAQfR.js → index-Laz3och2.js} +1 -1
  159. package/dist/client/assets/{index-CJflvpaj.js → index-rIGGQh0Z.js} +1 -1
  160. package/dist/client/assets/{index-redirect-C1AnjHYu.js → index-redirect-9lk3Mcpc.js} +1 -1
  161. package/dist/client/assets/{infiniteQueryObserver-rGQ-BvZd.js → infiniteQueryObserver-BlKY7V_o.js} +1 -1
  162. package/dist/client/assets/{infra-billing-a2nqEasz.js → infra-billing-ClXW240-.js} +1 -1
  163. package/dist/client/assets/{input-CQAdPV6U.js → input-C1SzE0r0.js} +1 -1
  164. package/dist/client/assets/{input-DJjbA9M9.js → input-Cxi1fFAz.js} +3 -3
  165. package/dist/client/assets/{input-B-l5PYzO.js → input-Uk8z-Ktf.js} +1 -1
  166. package/dist/client/assets/{integration-icon-Bo3BUxvM.js → integration-icon-DTJ53jik.js} +1 -1
  167. package/dist/client/assets/{label-UBdu3ctU.js → label-CsA5aIjl.js} +1 -1
  168. package/dist/client/assets/{layout-BtmKdLdk.js → layout-0SkVikTT.js} +1 -1
  169. package/dist/client/assets/{legacy-agents-deep-YQnPtFe_.js → legacy-agents-deep-o2zNRJBD.js} +1 -1
  170. package/dist/client/assets/{legacy-main-redirect-CAZhbTVo.js → legacy-main-redirect-D1DUV9jt.js} +1 -1
  171. package/dist/client/assets/library-BP7VdqPu.js +1 -0
  172. package/dist/client/assets/{library-tab-Cw6l7YjS.js → library-tab-yb3t70cm.js} +1 -1
  173. package/dist/client/assets/{login-RaQgedvb.js → login-BCvV20QX.js} +1 -1
  174. package/dist/client/assets/{markdown-DgNX2G8Y.js → markdown-DA7Pnev1.js} +1 -1
  175. package/dist/client/assets/{mcp-app-renderer-Gi8nuIVZ.js → mcp-app-renderer-CL-fBp7u.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-ax5kWWJK.js → mcp-oauth-Ig94NzNJ.js} +1 -1
  177. package/dist/client/assets/{members-C_--iBrh.js → members-BVCs6BGJ.js} +1 -1
  178. package/dist/client/assets/{memory-wojZsd5w.js → memory-wRkeFRMb.js} +1 -1
  179. package/dist/client/assets/{message-templates-DbJIQtFs.js → message-templates-DAHFL7pm.js} +1 -1
  180. package/dist/client/assets/{mini-report-page-U0-aZ9Hl.js → mini-report-page-Bsz_Vl_A.js} +1 -1
  181. package/dist/client/assets/{mock-board-YpCRnBGe.js → mock-board-DfLUI4qA.js} +1 -1
  182. package/dist/client/assets/{monaco-editor-Cs1rDRDm.js → monaco-editor-v37lBX9D.js} +1 -1
  183. package/dist/client/assets/{monitoring-stats-row-CcTNMb-i.js → monitoring-stats-row-BvGkbm2U.js} +1 -1
  184. package/dist/client/assets/{multi-select-CWb2Oi6x.js → multi-select-Bwn4u1SH.js} +1 -1
  185. package/dist/client/assets/{mustache-CWsYDxkA.js → mustache-WARBPpMc.js} +1 -1
  186. package/dist/client/assets/{new-project-dialog-BWolKWvl.js → new-project-dialog-CD-S7Uy7.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-Ld01h9Tj.js → oauth-callback-KD8ycZ5S.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-ai-provider-BGdom6cI.js → oauth-callback-ai-provider-QZ1DUytq.js} +1 -1
  189. package/dist/client/assets/{onboarding-D_NwiA9X.js → onboarding-C6fAcgnI.js} +1 -1
  190. package/dist/client/assets/{openai-conversation-DB4k1EYC.js → openai-conversation-DpaYihIr.js} +1 -1
  191. package/dist/client/assets/{optimistic-project-sidebar-views-DhsliVvJ.js → optimistic-project-sidebar-views-BYi3SXbd.js} +1 -1
  192. package/dist/client/assets/{org-file-open-context-kIKkchjb.js → org-file-open-context-BFenNlZj.js} +1 -1
  193. package/dist/client/assets/{organization-choice-DGTPCWDh.js → organization-choice-BPRjWGDV.js} +1 -1
  194. package/dist/client/assets/{orgs-C5MsSx08.js → orgs-BBxAiigC.js} +1 -1
  195. package/dist/client/assets/{page-seo-form-CW2BoQ-K.js → page-seo-form-D-Y4ByH_.js} +1 -1
  196. package/dist/client/assets/{pair-qre124N2.js → pair-DyoXAxM8.js} +1 -1
  197. package/dist/client/assets/{plan-ladder-B1XIg6KA.js → plan-ladder-DDzYift2.js} +1 -1
  198. package/dist/client/assets/{popover-DmsBpt35.js → popover-VHHbgkVg.js} +1 -1
  199. package/dist/client/assets/{post-calendar-DOVsx0im.js → post-calendar-BzC1oMA5.js} +1 -1
  200. package/dist/client/assets/{post-editor-D82mbe-R.js → post-editor-yqrrgVyd.js} +1 -1
  201. package/dist/client/assets/{preview-content-CPFw8Bau.js → preview-content-m5N-x4SX.js} +1 -1
  202. package/dist/client/assets/{preview-dialog-UaHza9Kp.js → preview-dialog-YD1mDcgr.js} +1 -1
  203. package/dist/client/assets/{profile-CMD3mJV4.js → profile-Eok7UgYx.js} +1 -1
  204. package/dist/client/assets/{project-app-view-3CpE9pa5.js → project-app-view-KKbO6aIR.js} +1 -1
  205. package/dist/client/assets/{project-feed-C4PTy6zU.js → project-feed-DUhzdphC.js} +1 -1
  206. package/dist/client/assets/{project-icon-BlCsNLWV.js → project-icon-rqB8fgDE.js} +1 -1
  207. package/dist/client/assets/project-reports-RQE1LLFO.js +1 -0
  208. package/dist/client/assets/project-tasks-CuvuY6F8.js +1 -0
  209. package/dist/client/assets/{projects-DnKzaVrl.js → projects-BPCyrkzG.js} +1 -1
  210. package/dist/client/assets/{projects-empty-state-Sx3HMMRD.js → projects-empty-state-Dg9KTZEd.js} +1 -1
  211. package/dist/client/assets/{prompts-iLYOGVAY.js → prompts-BW6rt8iD.js} +1 -1
  212. package/dist/client/assets/record-editor-CGGiShp3.js +1 -0
  213. package/dist/client/assets/{redirect-editor-D_mpcVqR.js → redirect-editor-B4oNhGb_.js} +1 -1
  214. package/dist/client/assets/reports-BadwKRdX.js +1 -0
  215. package/dist/client/assets/{reports-CnA1uxk8.js → reports-RlJWeR7R.js} +1 -1
  216. package/dist/client/assets/{reports-onboarding-Wd1uDWK4.js → reports-onboarding-DG0-FS10.js} +1 -1
  217. package/dist/client/assets/{reports-tab-586SqbUE.js → reports-tab-BY1reunF.js} +2 -2
  218. package/dist/client/assets/{repositories-DjuvrwKG.js → repositories-jwsNIE6M.js} +1 -1
  219. package/dist/client/assets/{repository-binding-qP9N-2MJ.js → repository-binding-BjQg44s0.js} +1 -1
  220. package/dist/client/assets/{repository-import-picker-BxSMVAOp.js → repository-import-picker-ZyzYgBKd.js} +1 -1
  221. package/dist/client/assets/{repository-picker-DXcVdbPo.js → repository-picker-zKlkxI7H.js} +1 -1
  222. package/dist/client/assets/{require-capability-Btgp_M9F.js → require-capability-BqUwjQSq.js} +1 -1
  223. package/dist/client/assets/{required-auth-layout-BXGj5Xuz.js → required-auth-layout-Ci_VyqXV.js} +1 -1
  224. package/dist/client/assets/{reset-password-DNvbhWv1.js → reset-password-s1hi7DCq.js} +1 -1
  225. package/dist/client/assets/{resizable-p0Iz3mjy.js → resizable-ByFftuKZ.js} +1 -1
  226. package/dist/client/assets/{resolve-tab-icon-BRRLdzHa.js → resolve-tab-icon-C76owMiT.js} +1 -1
  227. package/dist/client/assets/{review-settings-DL4Naz6f.js → review-settings-9KPdssy5.js} +1 -1
  228. package/dist/client/assets/{rich-text-link-control-BAQED-eE.js → rich-text-link-control-Cxt5hePr.js} +1 -1
  229. package/dist/client/assets/{roles-BKGa4A-8.js → roles-D15bYv4O.js} +1 -1
  230. package/dist/client/assets/{route-DzBhuQmI.js → route-CtEWmlke.js} +1 -1
  231. package/dist/client/assets/route-frKExtKv.js +1 -0
  232. package/dist/client/assets/route-gl8RhBbx.js +1 -0
  233. package/dist/client/assets/{runnable-block-editor-PtJtt2DC.js → runnable-block-editor-qWArPPH0.js} +1 -1
  234. package/dist/client/assets/{sandbox-lifecycle-context-BrfabpuG.js → sandbox-lifecycle-context-CwjnToEe.js} +1 -1
  235. package/dist/client/assets/{schema-BWuVZGwp.js → schema-DVBa_MAN.js} +1 -1
  236. package/dist/client/assets/{scroll-area-m_BjZQNd.js → scroll-area-DRHarC_1.js} +1 -1
  237. package/dist/client/assets/{search-input-B9M1xiUR.js → search-input-CHV8xc4e.js} +1 -1
  238. package/dist/client/assets/{search-toggle-s-q01VSg.js → search-toggle-C48Q5Dw4.js} +1 -1
  239. package/dist/client/assets/{secret-picker-BTuH8aWz.js → secret-picker-BYFIGBnL.js} +1 -1
  240. package/dist/client/assets/{secrets-1V4jZN7g.js → secrets-D81SC9ri.js} +1 -1
  241. package/dist/client/assets/{sections-editor-DX4ixTgg.js → sections-editor-DPbRocOh.js} +1 -1
  242. package/dist/client/assets/{select-DC4TM20D.js → select-Cfp-vpJN.js} +1 -1
  243. package/dist/client/assets/{select-model-BWaa2-GY.js → select-model-Iau9tAbT.js} +1 -1
  244. package/dist/client/assets/{seo-editor-Bd3OOjX4.js → seo-editor-DuOP0tU_.js} +1 -1
  245. package/dist/client/assets/{separator-BEoe11dP.js → separator-4K_GV67Z.js} +1 -1
  246. package/dist/client/assets/{settings-tab-73EvDId-.js → settings-tab--CXf6ivv.js} +1 -1
  247. package/dist/client/assets/{sheet-gL2l7oL0.js → sheet-BA1BhLlr.js} +1 -1
  248. package/dist/client/assets/{shell-layout-CBc-iFqB.js → shell-layout-Cns9lUi4.js} +1 -1
  249. package/dist/client/assets/{skills-CELE5LtE.js → skills-Cg-DT6iV.js} +1 -1
  250. package/dist/client/assets/{sso-CxZR0IHJ.js → sso-CUdr-7CQ.js} +1 -1
  251. package/dist/client/assets/{suggestion-Ules5agL.js → suggestion-BlpEbXkf.js} +1 -1
  252. package/dist/client/assets/{switch-CL5hy8vw.js → switch-CQPn6TRL.js} +1 -1
  253. package/dist/client/assets/{synced-repos-BHKre5im.js → synced-repos-Dwj-iZL5.js} +1 -1
  254. package/dist/client/assets/{tab-icon-glyph-DR0rQ-bV.js → tab-icon-glyph-COOZpimV.js} +1 -1
  255. package/dist/client/assets/{table-WwEBhzp_.js → table-BaXr9rnW.js} +1 -1
  256. package/dist/client/assets/{tabs-WFH6vPjH.js → tabs-boN14fnC.js} +1 -1
  257. package/dist/client/assets/{task-board-CVGH6XO_.js → task-board-CfiWV1iu.js} +1 -1
  258. package/dist/client/assets/{task-route-D36p4AYB.js → task-route-ZyJZvQEP.js} +1 -1
  259. package/dist/client/assets/{task-status-CLw5rySP.js → task-status-CZe8FdJE.js} +1 -1
  260. package/dist/client/assets/{taskboard-analytics-DjMTJmAz.js → taskboard-analytics-CU05ehRX.js} +1 -1
  261. package/dist/client/assets/{tasks-CNLTzE3N.js → tasks-DpliXkxN.js} +1 -1
  262. package/dist/client/assets/tasks-Dqb81gsh.js +1 -0
  263. package/dist/client/assets/{textarea-CoQK2oyP.js → textarea-re22-64Y.js} +1 -1
  264. package/dist/client/assets/{thread-analytics-Dyt69XfV.js → thread-analytics-BBXLC8Mt.js} +1 -1
  265. package/dist/client/assets/thread-button-D-bmXoX1.js +1 -0
  266. package/dist/client/assets/{thread-intent-CXrPEeI-.js → thread-intent-DjddwZgX.js} +1 -1
  267. package/dist/client/assets/{thread-route-DKA9bRvS.js → thread-route-58igbRqf.js} +1 -1
  268. package/dist/client/assets/{thread-route-CPId0Ds_.js → thread-route-DXu3auHO.js} +1 -1
  269. package/dist/client/assets/{thread-sheet-body-DbO-EyYS.js → thread-sheet-body-D44ITTQU.js} +1 -1
  270. package/dist/client/assets/{toggle-group-CHfaqw3y.js → toggle-group-C96sHBVW.js} +1 -1
  271. package/dist/client/assets/{toolbar-icon-button-CJrzg1xS.js → toolbar-icon-button-BwLSK1SV.js} +1 -1
  272. package/dist/client/assets/{tooltip-BUwCxmad.js → tooltip-cYDDz2Pp.js} +1 -1
  273. package/dist/client/assets/{track-QsSY_R6p.js → track-DRQxhxbu.js} +1 -1
  274. package/dist/client/assets/{types-BM02pFks.js → types-DIHxpGG3.js} +1 -1
  275. package/dist/client/assets/{usage-stats-BZmwl_hY.js → usage-stats-BToxR0wR.js} +1 -1
  276. package/dist/client/assets/{use-ai-providers-OUZLuzjk.js → use-ai-providers-BaF1iqq_.js} +1 -1
  277. package/dist/client/assets/{use-automations-kRvu1WBi.js → use-automations-CRmgA2ID.js} +1 -1
  278. package/dist/client/assets/{use-autosave-BknRtqMo.js → use-autosave-CXF6_aFn.js} +1 -1
  279. package/dist/client/assets/{use-chat-layout-state-PWimkJCw.js → use-chat-layout-state-Cc2VHc6I.js} +1 -1
  280. package/dist/client/assets/{use-clock-tick-DK1jMfPk.js → use-clock-tick-ChrO8Wr8.js} +1 -1
  281. package/dist/client/assets/{use-connect-companion-BE7rc0a7.js → use-connect-companion-CR1Xr13y.js} +1 -1
  282. package/dist/client/assets/{use-connection-CDTsUGCD.js → use-connection-DfxY3Owk.js} +1 -1
  283. package/dist/client/assets/{use-copy-4XQ35auE.js → use-copy-BBTjUiXD.js} +1 -1
  284. package/dist/client/assets/use-create-virtual-mcp-eOn9ybNU.js +1 -0
  285. package/dist/client/assets/{use-date-fns-locale-DSD5AxHp.js → use-date-fns-locale-dUrJdjgT.js} +1 -1
  286. package/dist/client/assets/{use-debounced-autosave-BmsH_WeG.js → use-debounced-autosave-DomrC7JG.js} +1 -1
  287. package/dist/client/assets/{use-debounced-value-Ddzynl8d.js → use-debounced-value-DyppKzdq.js} +1 -1
  288. package/dist/client/assets/{use-deco-credits-BWRF6eDW.js → use-deco-credits-CFjGcaIq.js} +1 -1
  289. package/dist/client/assets/{use-decopilot-events-Coi59geF.js → use-decopilot-events-7cMuGUn_.js} +1 -1
  290. package/dist/client/assets/{use-delete-connection-BAe608Tj.js → use-delete-connection-QY7PVH-8.js} +1 -1
  291. package/dist/client/assets/{use-deployment-admin-C9A5ryiv.js → use-deployment-admin-BmAVlBQk.js} +1 -1
  292. package/dist/client/assets/{use-fast-preview-draft-url-D95FFIvg.js → use-fast-preview-draft-url-CAtuvvrG.js} +1 -1
  293. package/dist/client/assets/{use-file-configs-FESoyyAp.js → use-file-configs-CLIgCo9H.js} +1 -1
  294. package/dist/client/assets/{use-infinite-scroll-BOW8hicV.js → use-infinite-scroll-BBNiZIZb.js} +1 -1
  295. package/dist/client/assets/{use-join-requests-DtLE0NgC.js → use-join-requests-BPZN_x_r.js} +1 -1
  296. package/dist/client/assets/{use-main-panel-tabs-Bc5UEnVE.js → use-main-panel-tabs-BmwpMk5o.js} +1 -1
  297. package/dist/client/assets/{use-mcp-auth-status-DrjGrcBP.js → use-mcp-auth-status-BnOryspq.js} +1 -1
  298. package/dist/client/assets/{use-mcp-client-DjhhnAr3.js → use-mcp-client-D2VYpHPF.js} +1 -1
  299. package/dist/client/assets/{use-mcp-prompts-CPGSJM8z.js → use-mcp-prompts-DtbMED93.js} +1 -1
  300. package/dist/client/assets/{use-mcp-tools-CPwk0yw5.js → use-mcp-tools-BicoFNZe.js} +1 -1
  301. package/dist/client/assets/{use-members-CgpU7zdW.js → use-members-BuEaDeJm.js} +1 -1
  302. package/dist/client/assets/{use-mobile-Dd6KUtd1.js → use-mobile-UCEvtXfH.js} +1 -1
  303. package/dist/client/assets/{use-navigate-to-agent-Bbk9KV3t.js → use-navigate-to-agent-BZlsExbp.js} +1 -1
  304. package/dist/client/assets/use-new-blocks-editor-DSBgh7mx.js +1 -0
  305. package/dist/client/assets/{use-open-billing-url-C5p05V2D.js → use-open-billing-url-SUgaj5hP.js} +1 -1
  306. package/dist/client/assets/{use-org-auth-client-CGnd_KU_.js → use-org-auth-client-CY1uAtqK.js} +1 -1
  307. package/dist/client/assets/{use-org-fs-Cif2PgGI.js → use-org-fs-DUuc6Zxc.js} +1 -1
  308. package/dist/client/assets/{use-org-repo-syncs-Cf0jwZet.js → use-org-repo-syncs-W7zCKeFI.js} +1 -1
  309. package/dist/client/assets/{use-org-sso-DnQOloxF.js → use-org-sso-BxhvCAY_.js} +1 -1
  310. package/dist/client/assets/{use-organization-roles-BarJOEKw.js → use-organization-roles-B7z-gMaH.js} +1 -1
  311. package/dist/client/assets/{use-organization-settings-DSuZT_-Z.js → use-organization-settings-B4tP4hFm.js} +1 -1
  312. package/dist/client/assets/{use-panel-navigate-pf_bvwna.js → use-panel-navigate--QzQC3VZ.js} +1 -1
  313. package/dist/client/assets/{use-project-scope-B9gl4G0G.js → use-project-scope-BBHuYyAU.js} +1 -1
  314. package/dist/client/assets/{use-releases-Cqzas87I.js → use-releases-CFy4ROz7.js} +1 -1
  315. package/dist/client/assets/{use-reports-diagnostic-C9WXsFaU.js → use-reports-diagnostic-DAw3nLO7.js} +1 -1
  316. package/dist/client/assets/{use-secrets-DWoy_Ekl.js → use-secrets-BX9baefu.js} +1 -1
  317. package/dist/client/assets/{use-section-preview-base-B4B91XeI.js → use-section-preview-base-DiMdIa4C.js} +1 -1
  318. package/dist/client/assets/{use-session-runtime-BtoYTkvM.js → use-session-runtime-DFN8v9Uu.js} +1 -1
  319. package/dist/client/assets/{use-tags-oDh30HSX.js → use-tags-BtzhaZAL.js} +1 -1
  320. package/dist/client/assets/{use-task-board-analytics-B-_ejdir.js → use-task-board-analytics-DlTRreOu.js} +1 -1
  321. package/dist/client/assets/{use-task-board-events-D5YUKNR3.js → use-task-board-events-CkFoY4mj.js} +1 -1
  322. package/dist/client/assets/{use-task-metadata-EBJAZAt5.js → use-task-metadata-CVwRScr5.js} +1 -1
  323. package/dist/client/assets/{use-thread-analytics-23H9Sh0m.js → use-thread-analytics-BUhgXjvp.js} +1 -1
  324. package/dist/client/assets/{use-thread-outputs-CzHRXoWD.js → use-thread-outputs-DOsnMhNz.js} +1 -1
  325. package/dist/client/assets/useInfiniteQuery-BpXl9N7J.js +1 -0
  326. package/dist/client/assets/{useQueries-OOmL0OlS.js → useQueries-BRIObTwd.js} +1 -1
  327. package/dist/client/assets/useSuspenseInfiniteQuery-Dc8cFcZ0.js +1 -0
  328. package/dist/client/assets/{users-CSGmi7SW.js → users-BnkfBaAF.js} +1 -1
  329. package/dist/client/assets/{utils-R-urxMSv.js → utils-DpuKt6Cb.js} +1 -1
  330. package/dist/client/assets/{variant-calendar-V9WH2c0X.js → variant-calendar-BRsSo7Ye.js} +1 -1
  331. package/dist/client/assets/{variant-matcher-override-Be69fnd9.js → variant-matcher-override-C6K9_6nf.js} +1 -1
  332. package/dist/client/assets/{view-mode-toggle-hxQ2HfnS.js → view-mode-toggle-B8earrSa.js} +1 -1
  333. package/dist/client/assets/{virtual-mcp-B4NgbGmF.js → virtual-mcp-BMmjcaCV.js} +1 -1
  334. package/dist/client/index.html +2 -2
  335. package/dist/server/cli.js +1 -1
  336. package/dist/server/server.js +1 -1
  337. package/package.json +1 -1
  338. package/dist/client/assets/agent-app-CdSOzSAf.js +0 -1
  339. package/dist/client/assets/agent-deck-CepgSTaG.js +0 -1
  340. package/dist/client/assets/agent-library-DszZ1exI.js +0 -1
  341. package/dist/client/assets/agent-library-file-B9vfOl4A.js +0 -1
  342. package/dist/client/assets/agent-settings-Cui7mNtr.js +0 -1
  343. package/dist/client/assets/agent-site-editor-code-Y8Sm7eAb.js +0 -2
  344. package/dist/client/assets/agent-view-BOncsgwo.js +0 -1
  345. package/dist/client/assets/api-keys-DQSpTJNt.js +0 -1
  346. package/dist/client/assets/app-editor-BS446zS8.js +0 -1
  347. package/dist/client/assets/daily-pulse-Dus-woVV.js +0 -1
  348. package/dist/client/assets/flat-project-Y-2R_KpZ.js +0 -1
  349. package/dist/client/assets/home-DyM_cAvs.js +0 -1
  350. package/dist/client/assets/index-6WjGaIcE.css +0 -1
  351. package/dist/client/assets/library-CX4cu6RN.js +0 -1
  352. package/dist/client/assets/project-reports-C7tLohpM.js +0 -1
  353. package/dist/client/assets/project-tasks-mAIHHtBX.js +0 -1
  354. package/dist/client/assets/record-editor-oL03Wyei.js +0 -1
  355. package/dist/client/assets/reports-DPqSriQT.js +0 -1
  356. package/dist/client/assets/route-DRz2-z88.js +0 -1
  357. package/dist/client/assets/route-uDEu1bUn.js +0 -1
  358. package/dist/client/assets/tasks-C-PeRfKF.js +0 -1
  359. package/dist/client/assets/thread-button-CXr1OWYY.js +0 -1
  360. package/dist/client/assets/use-create-virtual-mcp-Cr7lRENh.js +0 -1
  361. package/dist/client/assets/use-new-blocks-editor-DdfQbotf.js +0 -1
  362. package/dist/client/assets/useInfiniteQuery-BzCTPJtn.js +0 -1
  363. package/dist/client/assets/useSuspenseInfiniteQuery-Cx1jk_4I.js +0 -1
@@ -1 +1 @@
1
- import{c as A,j as t,B as K,h as G,au as Ze,av as re,b as Q,E as Ee,r as E,X as fe,d7 as Ge,d6 as Oe,at as et,n as Re,l as Y,bd as tt,ak as st,u as ot,L as se,t as lt,f as he,bZ as Me}from"./index-D3VyLkC3.js";import{E as ze}from"./empty-state-BrxgsLHG.js";import{u as ge}from"./use-mcp-client-DjhhnAr3.js";import{F as ae,a as nt,b as ce,d as de}from"./form-BGxoVGvb.js";import{I as pe}from"./input-B-l5PYzO.js";import{T as xe}from"./textarea-CoQK2oyP.js";import{D as je,O as it,M as rt}from"./index-Dn333xYc.js";import{az as at,aa as ct,bw as dt,J as mt,P as ut,Q as pt,aS as xt,H as ye}from"./agent-icon-DebFssce.js";import{M as ft}from"./mcp-app-renderer-Gi8nuIVZ.js";import{g as ht,M as we}from"./types-BM02pFks.js";import{a as gt,b as jt,A as bt}from"./alert-CqDdaXWn.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-DC4TM20D.js";import{c as Nt,b as Pe,T as ke,a as De}from"./tooltip-BUwCxmad.js";import{i as vt}from"./AlertCircle-O5yKT_wD.js";import{a as St}from"./Copy01-YmLU_wow.js";import{i as yt}from"./Sun-JyTPOz6f.js";import{g as wt}from"./connection-slug-CITJ0kGN.js";import{u as Ct,T as It}from"./use-mcp-auth-status-DrjGrcBP.js";import{a as Fe,u as Be}from"./use-connection-CDTsUGCD.js";import{u as Tt}from"./use-mcp-tools-CPwk0yw5.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-Bo3BUxvM.js";import{f as Pt,r as kt}from"./chat-context-Crr9YCN0.js";import{a as Dt}from"./shell-layout-CBc-iFqB.js";import{M as At}from"./monaco-editor-Cs1rDRDm.js";import{E as Et}from"./empty-state-2X05DwZp.js";import{n as Ot}from"./LinkBroken01-cRHkOCv3.js";import"./auth-CABZOlQ0.js";import"./label-UBdu3ctU.js";import"./Key01-CW5AmBXO.js";import"./extract-connection-data-DZSiJSCE.js";import"./metadata-D72DunRR.js";import"./connection-D4h25APd.js";import"./Plus-B7fu2HeJ.js";import"./index-CJflvpaj.js";import"./index-BVzkdynM.js";import"./index-Djpcf0g3.js";import"./popover-DmsBpt35.js";import"./repository-binding-qP9N-2MJ.js";import"./Check-BwZg9K6a.js";import"./SearchMd-DpRsJH0P.js";import"./use-mobile-Dd6KUtd1.js";import"./use-create-virtual-mcp-Cr7lRENh.js";import"./use-navigate-to-agent-Bbk9KV3t.js";import"./thread-intent-CXrPEeI-.js";import"./backoff-8mStPHYB.js";import"./task-board-CVGH6XO_.js";import"./schema-BWuVZGwp.js";import"./slugify-CEUa2lfQ.js";import"./Tool01-TfY7iJsP.js";import"./ArrowUp-BcguyIxa.js";import"./ArrowLeft-Bgwvgp7N.js";import"./ShoppingBag01-Bn_Ml-RN.js";import"./ZoomOut-Cy6sSJWj.js";import"./Building02-DXskyQyV.js";import"./CheckCircle-B8nBZ9lR.js";import"./ChevronUp-XuQjQLoK.js";import"./UserSquare-Cij4gM7j.js";import"./CreditCard01-CwEdzwSq.js";import"./DotsVertical-DEYhHh-q.js";import"./Image01-DFTuvWJV.js";import"./Palette-BLSfhg5D.js";import"./XClose-B1wwChfA.js";import"./Link01-rblrB3OI.js";import"./LinkExternal01-DMr7xmMD.js";import"./Monitor01-DRRgoSgd.js";import"./Trash01-DBoWC6W0.js";import"./Upload01-oBIhuFXz.js";import"./User01-DlDKGoyi.js";import"./Users01-B0qqt-bB.js";import"./X-B1izQ1KV.js";import"./index-DXhMSpJ7.js";import"./badge-D10nU5hm.js";import"./mcp-oauth-ax5kWWJK.js";import"./use-panel-navigate-pf_bvwna.js";import"./thread-route-DKA9bRvS.js";import"./use-project-scope-B9gl4G0G.js";import"./autosend-BkG_BHpj.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-Coi59geF.js";import"./use-ai-providers-OUZLuzjk.js";import"./location-DPIrGNp7.js";import"./use-organization-settings-DSuZT_-Z.js";import"./avatar-C70_Ki0z.js";import"./download-app-dialog-UTCmHANJ.js";import"./dialog-C_zHR8DK.js";import"./use-clock-tick-DK1jMfPk.js";import"./command-BUcXz1jA.js";import"./project-icon-BlCsNLWV.js";import"./new-project-dialog-BWolKWvl.js";import"./repository-import-picker-BxSMVAOp.js";import"./repository-picker-DXcVdbPo.js";import"./useInfiniteQuery-BzCTPJtn.js";import"./infiniteQueryObserver-rGQ-BvZd.js";import"./collection-search-DZ1wZYuR.js";import"./use-debounced-value-Ddzynl8d.js";import"./required-auth-layout-BXGj5Xuz.js";import"./use-org-sso-DnQOloxF.js";import"./editor-DEzZHfDd.js";function Rt(s){const e=A.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 g;e[1]!==i||e[2]!==o||e[3]!==r?(g=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]=g):g=e[4];let u;e[5]!==i?(u=i?t.jsx(G,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let f;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(f=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]=f):f=e[11];let p;return e[12]!==g||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[g,f]}),e[12]=g,e[13]=f,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 Mt(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function zt(s){const e=A.c(43),{form:n}=s,o=Q();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=w=>{const{field:b}=w;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=w=>{const{field:b}=w;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 g;e[17]!==i||e[18]!==x?(g=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=g):g=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let f;e[22]!==u?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=f):f=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=w=>{const{field:b}=w;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 S;e[30]!==n.control||e[31]!==N?(S=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=S):S=e[32];let $;e[33]!==f||e[34]!==j||e[35]!==S?($=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,j,S]}),e[33]=f,e[34]=j,e[35]=S,e[36]=$):$=e[36];let y;e[37]!==$||e[38]!==g?(y=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:[g,$]}),e[37]=$,e[38]=g,e[39]=y):y=e[39];let P;return e[40]!==n||e[41]!==y?(P=t.jsx(nt,{...n,children:y}),e[40]=n,e[41]=y,e[42]=P):P=e[42],P}function Ft(s){const e=A.c(42),{providerId:n,promptId:o}=s,l=Q(),{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=Ge(n,"PROMPT",o,d),x=Oe(n,"PROMPT",d),g=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 f;e[6]!==u?(f={values:u},e[6]=u,e[7]=f):f=e[7];const p=et(f);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 S;e[11]!==x.update||e[12]!==p||e[13]!==o?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:o,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:ue(I)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=S):S=e[14];const $=S;if(!r){let C;e[15]!==l?(C=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=C):C=e[16];let I;e[17]!==l?(I=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=I):I=e[18];let R;return e[19]!==C||e[20]!==I?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ze,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=R):R=e[21],R}let y;e[22]!==$?(y=()=>{$()},e[22]=$,e[23]=y):y=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==g||e[26]!==N||e[27]!==y?(P=t.jsx(Rt,{onSave:y,onUndo:N,isDirty:p.formState.isDirty,isSaving:g}),e[24]=p.formState.isDirty,e[25]=g,e[26]=N,e[27]=y,e[28]=P):P=e[28];let w;e[29]!==r.title||e[30]!==P?(w=t.jsx(Re.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=w):w=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 k;e[34]!==b||e[35]!==w?(k=t.jsxs(t.Fragment,{children:[w,b]}),e[34]=b,e[35]=w,e[36]=k):k=e[36];let D;e[37]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(zt,{form:p})}),e[37]=p,e[38]=D):D=e[38];let O;return e[39]!==k||e[40]!==D?(O=t.jsxs(je,{children:[k,D]}),e[39]=k,e[40]=D,e[41]=O):O=e[41],O}function Bt(s){const e=A.c(10),{itemId:n}=s,o=Q();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Mt(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ze,{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(E.Suspense,{fallback:null,children:t.jsx(Ft,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=A.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=Y("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=A.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=Y("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 X(s){const e=A.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=Y("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=A.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=Y("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=A.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=Y("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=A.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=Y("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=A.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=Q();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 g;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(g=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]=g):g=e[11],g}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=Q(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,h=sessionStorage.getItem(m);if(!h)return null;sessionStorage.removeItem(m);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[h,T]of Object.entries(a))T!==null&&typeof T=="object"?m[h]=JSON.stringify(T,null,2):m[h]=T;return m})(),[d,r]=E.useState(c??{}),[x,g]=E.useState(a?JSON.stringify(a,null,2):"{}"),[u,f]=E.useState(null),[p,j]=E.useState(null),[N,S]=E.useState(null),[$,y]=E.useState(null),[P,w]=E.useState(!1),[b,k]=E.useState(null),{org:D}=fe(),O=Fe(e),C=Pt(),I=kt(),{openSidePanel:R}=Dt(),U=`${e}:${s}`,z=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),_=Tt({client:z}),v=_.data?.tools?.find(m=>m.name===s),M=ht(v?._meta),V=m=>{if(!C)return;const h=$t(m.content);h.content.length>0&&(R(),C.sendMessage({tiptapDoc:h}))},[F,B]=E.useState("json"),[q,W]=E.useState(!1);M&&!q&&(B("ui"),W(!0));const J=v?.inputSchema?.properties,be=J?Object.keys(J):[],Z=be.length>0,ee={};if(Z&&v?.inputSchema?.properties)for(const m of be)ee[m]=v.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{w(!0),y(null),f(null),j(null),S(null),k(null);const m=performance.now();try{if(!z)throw new Error("MCP client is not available");const h=Z?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const H=JSON.parse(L);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();Z&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([L,H])=>{if((H.type==="object"||H.type==="array")&&typeof h[L]=="string")try{h[L]=JSON.parse(h[L])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof h[L]=="string"&&h[L]!==""){const Se=Number(h[L]);Number.isNaN(Se)||(h[L]=Se)}});const T=await z.callTool({name:s,arguments:h}),te=T.structuredContent??T,We=performance.now(),Xe=Math.round(We-m);f(te),j(T),S(h);const Ye=JSON.stringify(te),ve=new TextEncoder().encode(Ye).length;k({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(h){const T=h instanceof Error?h.message:String(h);y(T||"Unknown error occurred");const te=performance.now();k({duration:`${Math.round(te-m)}ms`})}finally{w(!1)}},ie=(m,h)=>{r(T=>({...T,[m]:h}))},Ve=()=>{f(null),j(null),S(null),y(null),k(null)},qe=v?.name??Lt(s),He=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:D.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:wt(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(X,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{className:"h-8 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 uppercase tracking-wide",children:l("details.tool.parameters")}),v?.inputSchema?.required&&v.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&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([m,h])=>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,v.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:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:T=>ie(m,T.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):h.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:T=>ie(m,T==="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:T=>ie(m,T.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):v?.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=>g(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,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Je,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),Qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),M&&t.jsx(Nt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(De,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(De,{children:l("details.tool.jsonView")})]})]})})]})]}),$&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(gt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(vt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(bt,{className:"text-xs text-destructive",children:$})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:M&&F==="ui"&&z?t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(G,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:M,toolInfo:v?{tool:v}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:z,onMessage:V,onUpdateModelContext:m=>I?.setAppContext(U,m),onTeardown:()=>I?.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:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(St,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:He,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ae,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Re.Title,{children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(G,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:v?.annotations,_meta:v?._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:v?.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}),Qe]})})]})})}function Jt(s){const e=A.c(20),{itemId:n,siblings:o,onBack:l}=s,i=Q(),[a,c]=E.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(f=>f.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!Fe(r||void 0)||!r){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let j;e[7]!==i?(j=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=j):j=e[8];let N;e[9]!==j?(N=t.jsx("p",{className:"text-sm text-muted-foreground",children:j}),e[9]=j,e[10]=N):N=e[10];let S;return e[11]!==p||e[12]!==N?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[p,N]})}),e[11]=p,e[12]=N,e[13]=S):S=e[13],S}let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),e[14]=g):g=e[14];let u;return e[15]!==r||e[16]!==l||e[17]!==o||e[18]!==n?(u=t.jsx(E.Suspense,{fallback:g,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:c,onBack:l})}),e[15]=r,e[16]=l,e[17]=o,e[18]=n,e[19]=u):u=e[19],u}const Vt={prompt:Bt};function qt(){const s=A.c(9),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=A.c(52),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=Q(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,f=u?.id??"",p=f||"no-connection",j=f??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 S=ge(N),$=Oe(p,i,S);let y;s[9]!==$||s[10]!==a?(y=async J=>{a&&await $.update.mutateAsync({id:a,data:J})},s[9]=$,s[10]=a,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const b=w,k=b&&Vt[b];let D;s[14]!==i?(D=Kt(i),s[14]=i,s[15]=D):D=s[15];const O=D;let C;s[16]!==r.slug?(C=t.jsx(X,{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]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(le,{}),s[18]=I):I=s[18];let R;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(R=u&&t.jsxs(t.Fragment,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(X,{children:t.jsx(_e,{children:O})}),s[24]=O,s[25]=U):U=s[25];let z;s[26]!==R||s[27]!==U||s[28]!==C?(z=t.jsx(Le,{children:t.jsxs(Ue,{children:[C,I,R,U]})}),s[26]=R,s[27]=U,s[28]=C,s[29]=z):z=s[29];const _=z;if(k){let J;return s[30]!==k||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(k,{itemId:a,onBack:d,onUpdate:P}),s[30]=k,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let M;s[36]!==l?(M=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=M):M=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let F;s[40]!==l?(F=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=F):F=s[41];let B;s[42]!==d||s[43]!==F?(B={onClick:d,children:F},s[42]=d,s[43]=F,s[44]=B):B=s[44];let q;s[45]!==M||s[46]!==V||s[47]!==B?(q=t.jsx(Et,{icon:v,title:M,description:V,buttonProps:B}),s[45]=M,s[46]=V,s[47]=B,s[48]=q):q=s[48];let W;return s[49]!==_||s[50]!==q?(W=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=W):W=s[51],W}function Wt(){const s=A.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(Qt,{}),s[2]=i):i=s[2],i}function _o(){const s=A.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Wt,{})})}),s[0]=e):e=s[0],e}export{_o as default};
1
+ import{c as A,j as t,B as K,h as G,au as Ze,av as re,b as Q,E as Ee,r as E,X as fe,d7 as Ge,d6 as Oe,at as et,n as Re,l as Y,bd as tt,ak as st,u as ot,L as se,t as lt,f as he,bZ as Me}from"./index-DAhfV5vh.js";import{E as ze}from"./empty-state-BtuSozdW.js";import{u as ge}from"./use-mcp-client-D2VYpHPF.js";import{F as ae,a as nt,b as ce,d as de}from"./form-HEFwQ86k.js";import{I as pe}from"./input-Uk8z-Ktf.js";import{T as xe}from"./textarea-re22-64Y.js";import{D as je,O as it,M as rt}from"./index-Bi-7WlGx.js";import{az as at,aa as ct,bw as dt,J as mt,P as ut,Q as pt,aS as xt,H as ye}from"./agent-icon-BUiQnNP8.js";import{M as ft}from"./mcp-app-renderer-CL-fBp7u.js";import{g as ht,M as we}from"./types-DIHxpGG3.js";import{a as gt,b as jt,A as bt}from"./alert-BxQz8cP6.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-Cfp-vpJN.js";import{c as Nt,b as Pe,T as ke,a as De}from"./tooltip-cYDDz2Pp.js";import{i as vt}from"./AlertCircle-BgzKIHBg.js";import{a as St}from"./Copy01-C68wCYtl.js";import{i as yt}from"./Sun-COvLf5Lc.js";import{g as wt}from"./connection-slug-CITJ0kGN.js";import{u as Ct,T as It}from"./use-mcp-auth-status-BnOryspq.js";import{a as Fe,u as Be}from"./use-connection-DfxY3Owk.js";import{u as Tt}from"./use-mcp-tools-BicoFNZe.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-DTJ53jik.js";import{f as Pt,r as kt}from"./chat-context-BaRraYAA.js";import{a as Dt}from"./shell-layout-Cns9lUi4.js";import{M as At}from"./monaco-editor-v37lBX9D.js";import{E as Et}from"./empty-state-CyTqx1WF.js";import{n as Ot}from"./LinkBroken01-DN8kSYpX.js";import"./auth-CqmWT_2g.js";import"./label-CsA5aIjl.js";import"./Key01-CqL4JhuL.js";import"./extract-connection-data-Ceomd2dy.js";import"./metadata-D72DunRR.js";import"./connection-DLraZ45i.js";import"./Plus-DDqlhBDc.js";import"./index-rIGGQh0Z.js";import"./index-DUchVaNj.js";import"./index-D9Dp_srJ.js";import"./popover-VHHbgkVg.js";import"./repository-binding-BjQg44s0.js";import"./Check-CkBscgA2.js";import"./SearchMd-WaC9Elkv.js";import"./use-mobile-UCEvtXfH.js";import"./use-create-virtual-mcp-eOn9ybNU.js";import"./use-navigate-to-agent-BZlsExbp.js";import"./thread-intent-DjddwZgX.js";import"./backoff-8mStPHYB.js";import"./task-board-CfiWV1iu.js";import"./schema-DVBa_MAN.js";import"./slugify-CEUa2lfQ.js";import"./Tool01-CH2aHsGf.js";import"./ArrowUp-THfmrwlM.js";import"./ArrowLeft-Bd0lzf25.js";import"./ShoppingBag01-Cl4z1_2H.js";import"./ZoomOut-Dvx_7Y9U.js";import"./Building02-CSMMDKRZ.js";import"./CheckCircle-Bokn_JKt.js";import"./ChevronUp-d9MFOW1T.js";import"./UserSquare-D6GqJl2I.js";import"./CreditCard01-B4oRpD46.js";import"./DotsVertical-C2t5zhKy.js";import"./Image01-Duw-3ecX.js";import"./Palette-VX8lOEW0.js";import"./XClose-75e7Vbaa.js";import"./Link01-C-Mwe2eF.js";import"./LinkExternal01-DMM7FS6P.js";import"./Monitor01-Wyitf2St.js";import"./Trash01-DK8Y_gth.js";import"./Upload01-oF1C_3Ru.js";import"./User01-GD0yW4Qu.js";import"./Users01-DgVeXNsL.js";import"./X-YRTghwXC.js";import"./index-IqSVG5fY.js";import"./badge-DejmcZm9.js";import"./mcp-oauth-Ig94NzNJ.js";import"./use-panel-navigate--QzQC3VZ.js";import"./thread-route-58igbRqf.js";import"./use-project-scope-BBHuYyAU.js";import"./autosend-CEQzRhvd.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-7cMuGUn_.js";import"./use-ai-providers-BaF1iqq_.js";import"./location-DPIrGNp7.js";import"./use-organization-settings-B4tP4hFm.js";import"./avatar-BUy252-G.js";import"./download-app-dialog-BEeBKwQl.js";import"./dialog-B30-8RI6.js";import"./use-clock-tick-ChrO8Wr8.js";import"./command-BeWosBD5.js";import"./project-icon-rqB8fgDE.js";import"./new-project-dialog-CD-S7Uy7.js";import"./repository-import-picker-ZyzYgBKd.js";import"./repository-picker-zKlkxI7H.js";import"./useInfiniteQuery-BpXl9N7J.js";import"./infiniteQueryObserver-BlKY7V_o.js";import"./collection-search-QrA0qPpv.js";import"./use-debounced-value-DyppKzdq.js";import"./required-auth-layout-Ci_VyqXV.js";import"./use-org-sso-BxhvCAY_.js";import"./editor-CLYxWXVn.js";function Rt(s){const e=A.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 g;e[1]!==i||e[2]!==o||e[3]!==r?(g=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]=g):g=e[4];let u;e[5]!==i?(u=i?t.jsx(G,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let f;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(f=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]=f):f=e[11];let p;return e[12]!==g||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[g,f]}),e[12]=g,e[13]=f,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 Mt(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function zt(s){const e=A.c(43),{form:n}=s,o=Q();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=w=>{const{field:b}=w;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=w=>{const{field:b}=w;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 g;e[17]!==i||e[18]!==x?(g=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=g):g=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let f;e[22]!==u?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=f):f=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=w=>{const{field:b}=w;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 S;e[30]!==n.control||e[31]!==N?(S=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=S):S=e[32];let $;e[33]!==f||e[34]!==j||e[35]!==S?($=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,j,S]}),e[33]=f,e[34]=j,e[35]=S,e[36]=$):$=e[36];let y;e[37]!==$||e[38]!==g?(y=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:[g,$]}),e[37]=$,e[38]=g,e[39]=y):y=e[39];let P;return e[40]!==n||e[41]!==y?(P=t.jsx(nt,{...n,children:y}),e[40]=n,e[41]=y,e[42]=P):P=e[42],P}function Ft(s){const e=A.c(42),{providerId:n,promptId:o}=s,l=Q(),{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=Ge(n,"PROMPT",o,d),x=Oe(n,"PROMPT",d),g=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 f;e[6]!==u?(f={values:u},e[6]=u,e[7]=f):f=e[7];const p=et(f);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 S;e[11]!==x.update||e[12]!==p||e[13]!==o?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:o,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:ue(I)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=S):S=e[14];const $=S;if(!r){let C;e[15]!==l?(C=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=C):C=e[16];let I;e[17]!==l?(I=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=I):I=e[18];let R;return e[19]!==C||e[20]!==I?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ze,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=R):R=e[21],R}let y;e[22]!==$?(y=()=>{$()},e[22]=$,e[23]=y):y=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==g||e[26]!==N||e[27]!==y?(P=t.jsx(Rt,{onSave:y,onUndo:N,isDirty:p.formState.isDirty,isSaving:g}),e[24]=p.formState.isDirty,e[25]=g,e[26]=N,e[27]=y,e[28]=P):P=e[28];let w;e[29]!==r.title||e[30]!==P?(w=t.jsx(Re.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=w):w=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 k;e[34]!==b||e[35]!==w?(k=t.jsxs(t.Fragment,{children:[w,b]}),e[34]=b,e[35]=w,e[36]=k):k=e[36];let D;e[37]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(zt,{form:p})}),e[37]=p,e[38]=D):D=e[38];let O;return e[39]!==k||e[40]!==D?(O=t.jsxs(je,{children:[k,D]}),e[39]=k,e[40]=D,e[41]=O):O=e[41],O}function Bt(s){const e=A.c(10),{itemId:n}=s,o=Q();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Mt(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ze,{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(E.Suspense,{fallback:null,children:t.jsx(Ft,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=A.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=Y("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=A.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=Y("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 X(s){const e=A.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=Y("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=A.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=Y("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=A.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=Y("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=A.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=Y("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=A.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=Q();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 g;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(g=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]=g):g=e[11],g}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=Q(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,h=sessionStorage.getItem(m);if(!h)return null;sessionStorage.removeItem(m);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[h,T]of Object.entries(a))T!==null&&typeof T=="object"?m[h]=JSON.stringify(T,null,2):m[h]=T;return m})(),[d,r]=E.useState(c??{}),[x,g]=E.useState(a?JSON.stringify(a,null,2):"{}"),[u,f]=E.useState(null),[p,j]=E.useState(null),[N,S]=E.useState(null),[$,y]=E.useState(null),[P,w]=E.useState(!1),[b,k]=E.useState(null),{org:D}=fe(),O=Fe(e),C=Pt(),I=kt(),{openSidePanel:R}=Dt(),U=`${e}:${s}`,z=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),_=Tt({client:z}),v=_.data?.tools?.find(m=>m.name===s),M=ht(v?._meta),V=m=>{if(!C)return;const h=$t(m.content);h.content.length>0&&(R(),C.sendMessage({tiptapDoc:h}))},[F,B]=E.useState("json"),[q,W]=E.useState(!1);M&&!q&&(B("ui"),W(!0));const J=v?.inputSchema?.properties,be=J?Object.keys(J):[],Z=be.length>0,ee={};if(Z&&v?.inputSchema?.properties)for(const m of be)ee[m]=v.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{w(!0),y(null),f(null),j(null),S(null),k(null);const m=performance.now();try{if(!z)throw new Error("MCP client is not available");const h=Z?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const H=JSON.parse(L);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();Z&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([L,H])=>{if((H.type==="object"||H.type==="array")&&typeof h[L]=="string")try{h[L]=JSON.parse(h[L])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof h[L]=="string"&&h[L]!==""){const Se=Number(h[L]);Number.isNaN(Se)||(h[L]=Se)}});const T=await z.callTool({name:s,arguments:h}),te=T.structuredContent??T,We=performance.now(),Xe=Math.round(We-m);f(te),j(T),S(h);const Ye=JSON.stringify(te),ve=new TextEncoder().encode(Ye).length;k({duration:`${Xe}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(h){const T=h instanceof Error?h.message:String(h);y(T||"Unknown error occurred");const te=performance.now();k({duration:`${Math.round(te-m)}ms`})}finally{w(!1)}},ie=(m,h)=>{r(T=>({...T,[m]:h}))},Ve=()=>{f(null),j(null),S(null),y(null),k(null)},qe=v?.name??Lt(s),He=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:D.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:wt(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(X,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{className:"h-8 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 uppercase tracking-wide",children:l("details.tool.parameters")}),v?.inputSchema?.required&&v.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&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([m,h])=>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,v.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:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:T=>ie(m,T.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):h.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:T=>ie(m,T==="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:T=>ie(m,T.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):v?.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=>g(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,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Je,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),Qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),M&&t.jsx(Nt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(De,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(De,{children:l("details.tool.jsonView")})]})]})})]})]}),$&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(gt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(vt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(bt,{className:"text-xs text-destructive",children:$})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:M&&F==="ui"&&z?t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(G,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:M,toolInfo:v?{tool:v}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:z,onMessage:V,onUpdateModelContext:m=>I?.setAppContext(U,m),onTeardown:()=>I?.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:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(St,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:He,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ae,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Re.Title,{children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(G,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:v?.annotations,_meta:v?._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:v?.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}),Qe]})})]})})}function Jt(s){const e=A.c(20),{itemId:n,siblings:o,onBack:l}=s,i=Q(),[a,c]=E.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(f=>f.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!Fe(r||void 0)||!r){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let j;e[7]!==i?(j=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=j):j=e[8];let N;e[9]!==j?(N=t.jsx("p",{className:"text-sm text-muted-foreground",children:j}),e[9]=j,e[10]=N):N=e[10];let S;return e[11]!==p||e[12]!==N?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[p,N]})}),e[11]=p,e[12]=N,e[13]=S):S=e[13],S}let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),e[14]=g):g=e[14];let u;return e[15]!==r||e[16]!==l||e[17]!==o||e[18]!==n?(u=t.jsx(E.Suspense,{fallback:g,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:c,onBack:l})}),e[15]=r,e[16]=l,e[17]=o,e[18]=n,e[19]=u):u=e[19],u}const Vt={prompt:Bt};function qt(){const s=A.c(9),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=A.c(52),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=Q(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,f=u?.id??"",p=f||"no-connection",j=f??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 S=ge(N),$=Oe(p,i,S);let y;s[9]!==$||s[10]!==a?(y=async J=>{a&&await $.update.mutateAsync({id:a,data:J})},s[9]=$,s[10]=a,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const b=w,k=b&&Vt[b];let D;s[14]!==i?(D=Kt(i),s[14]=i,s[15]=D):D=s[15];const O=D;let C;s[16]!==r.slug?(C=t.jsx(X,{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]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(le,{}),s[18]=I):I=s[18];let R;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(R=u&&t.jsxs(t.Fragment,{children:[t.jsx(X,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(X,{children:t.jsx(_e,{children:O})}),s[24]=O,s[25]=U):U=s[25];let z;s[26]!==R||s[27]!==U||s[28]!==C?(z=t.jsx(Le,{children:t.jsxs(Ue,{children:[C,I,R,U]})}),s[26]=R,s[27]=U,s[28]=C,s[29]=z):z=s[29];const _=z;if(k){let J;return s[30]!==k||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(k,{itemId:a,onBack:d,onUpdate:P}),s[30]=k,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let M;s[36]!==l?(M=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=M):M=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let F;s[40]!==l?(F=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=F):F=s[41];let B;s[42]!==d||s[43]!==F?(B={onClick:d,children:F},s[42]=d,s[43]=F,s[44]=B):B=s[44];let q;s[45]!==M||s[46]!==V||s[47]!==B?(q=t.jsx(Et,{icon:v,title:M,description:V,buttonProps:B}),s[45]=M,s[46]=V,s[47]=B,s[48]=q):q=s[48];let W;return s[49]!==_||s[50]!==q?(W=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=W):W=s[51],W}function Wt(){const s=A.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(Qt,{}),s[2]=i):i=s[2],i}function _o(){const s=A.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(G,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Wt,{})})}),s[0]=e):e=s[0],e}export{_o as default};
@@ -1 +1 @@
1
- import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-D3VyLkC3.js";import{i as I,n as L}from"./ArrowUp-BcguyIxa.js";import{i as F}from"./Check-BwZg9K6a.js";import{a as O,i as P,c as Y}from"./XClose-B1wwChfA.js";import{T as G,a as H,c as K,b as W}from"./tooltip-BUwCxmad.js";import{V as q}from"./view-mode-toggle-hxQ2HfnS.js";import{B as J}from"./badge-D10nU5hm.js";const M=[];function oe(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:T,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(U),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(O,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(J,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(G,{asChild:!0,children:s.jsx(V,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(H,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(K,{children:s.jsxs(W,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let m;e[17]!==h||e[18]!==i?(m=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(P,{})},{value:"cards",icon:s.jsx(Y,{})}]})}),e[17]=h,e[18]=i,e[19]=m):m=e[19];let p;e[20]!==j||e[21]!==g||e[22]!==T||e[23]!==b||e[24]!==l?(p=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const k=T===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:A("h-8 px-2 py-0 cursor-pointer",k&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[k&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!k&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),k&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=T,e[23]=b,e[24]=l,e[25]=p):p=e[25];let u;e[26]!==o?(u=o.map(Q),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==m||e[29]!==p||e[30]!==u?(f=s.jsxs(E,{align:"end",className:"w-[200px] p-0 gap-0",children:[m,p,u]}),e[28]=m,e[29]=p,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:A("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{oe as C};
1
+ import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-DAhfV5vh.js";import{i as I,n as L}from"./ArrowUp-THfmrwlM.js";import{i as F}from"./Check-CkBscgA2.js";import{a as O,i as P,c as Y}from"./XClose-75e7Vbaa.js";import{T as G,a as H,c as K,b as W}from"./tooltip-cYDDz2Pp.js";import{V as q}from"./view-mode-toggle-B8earrSa.js";import{B as J}from"./badge-DejmcZm9.js";const M=[];function oe(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:T,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(U),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(O,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(J,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(G,{asChild:!0,children:s.jsx(V,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(H,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(K,{children:s.jsxs(W,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let m;e[17]!==h||e[18]!==i?(m=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(P,{})},{value:"cards",icon:s.jsx(Y,{})}]})}),e[17]=h,e[18]=i,e[19]=m):m=e[19];let p;e[20]!==j||e[21]!==g||e[22]!==T||e[23]!==b||e[24]!==l?(p=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const k=T===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:A("h-8 px-2 py-0 cursor-pointer",k&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[k&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!k&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),k&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=T,e[23]=b,e[24]=l,e[25]=p):p=e[25];let u;e[26]!==o?(u=o.map(Q),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==m||e[29]!==p||e[30]!==u?(f=s.jsxs(E,{align:"end",className:"w-[200px] p-0 gap-0",children:[m,p,u]}),e[28]=m,e[29]=p,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:A("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{oe as C};
@@ -1 +1 @@
1
- import{c as v,l as b,j as a,h as w}from"./index-D3VyLkC3.js";import{i as C}from"./SearchMd-DpRsJH0P.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
1
+ import{c as v,l as b,j as a,h as w}from"./index-DAhfV5vh.js";import{i as C}from"./SearchMd-WaC9Elkv.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
@@ -1 +1 @@
1
- import{c as S,j as n,l as y,b as D}from"./index-D3VyLkC3.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-WwEBhzp_.js";import{i as W,n as z}from"./ArrowUp-BcguyIxa.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
1
+ import{c as S,j as n,l as y,b as D}from"./index-DAhfV5vh.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-BaXr9rnW.js";import{i as W,n as z}from"./ArrowUp-THfmrwlM.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
@@ -1 +1 @@
1
- import{c as b,j as r,n as p,P as j,l as h}from"./index-D3VyLkC3.js";import{B as v}from"./badge-D10nU5hm.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-[10px] font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
1
+ import{c as b,j as r,n as p,P as j,l as h}from"./index-DAhfV5vh.js";import{B as v}from"./badge-DejmcZm9.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-[10px] 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,3 +1,3 @@
1
- import{c as $,X as J,o as re,r as V,a2 as ee,K as Y,m as ce,e as ue,b as te,l as Z,j as n,t as se,B as le}from"./index-D3VyLkC3.js";import{s as de}from"./Plus-B7fu2HeJ.js";import{s as fe}from"./XClose-B1wwChfA.js";import{B as ae}from"./badge-D10nU5hm.js";import{f as pe,C as xe,c as he,a as ke,e as je,b as Se}from"./command-BUcXz1jA.js";import{I as ge}from"./icon-button-BAAffUhi.js";import{c as Be,S as Re,a as Te,b as Ce,e as be}from"./sheet-gL2l7oL0.js";import{S as ye}from"./switch-CL5hy8vw.js";import{T as oe}from"./textarea-CoQK2oyP.js";import{j as ve}from"./task-board-CVGH6XO_.js";import{o as Ne}from"./use-org-fs-Cif2PgGI.js";import{B as Ae}from"./thread-intent-CXrPEeI-.js";function Oe(){const t=$.c(7),{org:e}=J(),a=ee();let l;t[0]!==e.id?(l=Y.taskBoardPrompts(e.id),t[0]=e.id,t[1]=l):l=t[1];let i;t[2]!==a?(i=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=a,t[3]=i):i=t[3];let o;return t[4]!==l||t[5]!==i?(o={queryKey:l,staleTime:6e4,queryFn:i},t[4]=l,t[5]=i,t[6]=o):o=t[6],ce(o)}function Pe(){const t=$.c(7),{org:e}=J(),a=ee();let l;t[0]!==e.id?(l=Y.taskBoardColumnAutomations(e.id),t[0]=e.id,t[1]=l):l=t[1];let i;t[2]!==a?(i=async()=>(await a.call("TASK_BOARD_AUTOMATION_LIST",{})).automations,t[2]=a,t[3]=i):i=t[3];let o;return t[4]!==l||t[5]!==i?(o={queryKey:l,staleTime:6e4,queryFn:i},t[4]=l,t[5]=i,t[6]=o):o=t[6],ce(o)}function Ee(){const t=$.c(8),{org:e}=J(),a=ee(),l=re();let i;t[0]!==a?(i=async x=>{const{columnKey:r,rules:m,automation:u}=x;if(m){const d=m.prompt.trim();await(d||m.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:r,prompt:d,skills:m.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:r}))}r!==null&&u!==void 0&&await(u===null?a.call("TASK_BOARD_AUTOMATION_DELETE",{columnKey:r}):a.call("TASK_BOARD_AUTOMATION_UPSERT",{columnKey:r,prompt:u.trim()||null}))},t[0]=a,t[1]=i):i=t[1];let o;t[2]!==e||t[3]!==l?(o=()=>Promise.all([l.invalidateQueries({queryKey:Y.taskBoardPrompts(e.id)}),l.invalidateQueries({queryKey:Y.taskBoardColumnAutomations(e.id)})]),t[2]=e,t[3]=l,t[4]=o):o=t[4];let s;return t[5]!==i||t[6]!==o?(s={mutationFn:i,onSettled:o},t[5]=i,t[6]=o,t[7]=s):s=t[7],ue(s)}const ne=()=>0;function Ve(){const t=$.c(6),{org:e}=J(),a=re();let l;t[0]!==e.id||t[1]!==a?(l=()=>Promise.all([a.invalidateQueries({queryKey:Y.taskBoardPrompts(e.id)}),a.invalidateQueries({queryKey:Y.taskBoardColumnAutomations(e.id)})]),t[0]=e.id,t[1]=a,t[2]=l):l=t[2];const i=l;let o;t[3]!==e.slug||t[4]!==i?(o=()=>Ae.subscribe(e.slug,i,i),t[3]=e.slug,t[4]=i,t[5]=o):o=t[5];const s=o;V.useSyncExternalStore(s,ne,ne)}function Ke(t){const e=$.c(18),a=te(),l=Oe(),i=Pe();let o,s,x;if(e[0]!==i.data||e[1]!==t||e[2]!==l.data||e[3]!==a){s=l.data?.find(c=>c.columnKey===t);let f;e[7]!==i.data||e[8]!==t?(f=i.data?.find(c=>c.columnKey===t),e[7]=i.data,e[8]=t,e[9]=f):f=e[9],o=f;const S=s?.skills.length??0;x=o?.prompt||s?.prompt||(o?a("taskBoard.columnRules.defaultRun"):a("taskBoard.columnRules.skillsOnly",{count:S})),e[0]=i.data,e[1]=t,e[2]=l.data,e[3]=a,e[4]=o,e[5]=s,e[6]=x}else o=e[4],s=e[5],x=e[6];const r=x,m=!!o||!!s;let u;e[10]!==l.data?(u=l.data?.find(we)?.skills??[],e[10]=l.data,e[11]=u):u=e[11];let d;return e[12]!==o||e[13]!==s||e[14]!==r||e[15]!==m||e[16]!==u?(d={scope:s,automation:o,configured:m,summary:r,boardSkills:u},e[12]=o,e[13]=s,e[14]=r,e[15]=m,e[16]=u,e[17]=d):d=e[17],d}function we(t){return t.columnKey===null}function We(t){const e=$.c(23),{columnKey:a,label:l,open:i,onOpenChange:o}=t,{scope:s,automation:x,boardSkills:r}=Ke(a);let m;e[0]!==l?(m=n.jsx(Be,{className:"border-b",children:n.jsx(Re,{children:l})}),e[0]=l,e[1]=m):m=e[1];const u=!!x,d=x?.prompt??"",f=s?.prompt??"";let S;e[2]!==s?.skills?(S=s?.skills??[],e[2]=s?.skills,e[3]=S):S=e[3];let c;e[4]!==u||e[5]!==d||e[6]!==f||e[7]!==S?(c={run:u,automation:d,prompt:f,skills:S},e[4]=u,e[5]=d,e[6]=f,e[7]=S,e[8]=c):c=e[8];let g;e[9]!==o?(g=()=>o(!1),e[9]=o,e[10]=g):g=e[10];let k;e[11]!==r||e[12]!==a||e[13]!==c||e[14]!==g?(k=n.jsx(Le,{columnKey:a,initial:c,boardSkills:r,onDone:g}),e[11]=r,e[12]=a,e[13]=c,e[14]=g,e[15]=k):k=e[15];let h;e[16]!==m||e[17]!==k?(h=n.jsxs(Te,{className:"w-full gap-0 sm:max-w-md","aria-describedby":void 0,children:[m,k]}),e[16]=m,e[17]=k,e[18]=h):h=e[18];let j;return e[19]!==i||e[20]!==o||e[21]!==h?(j=n.jsx(n.Fragment,{children:n.jsx(Ce,{open:i,onOpenChange:o,children:h})}),e[19]=i,e[20]=o,e[21]=h,e[22]=j):j=e[22],j}function Le(t){const e=$.c(81),{columnKey:a,initial:l,boardSkills:i,onDone:o}=t,s=te(),x=Ee(),[r,m]=V.useState(l.run),[u,d]=V.useState(l.automation),[f,S]=V.useState(l.prompt),[c,g]=V.useState(l.skills),k=r?u:null,h=l.run?l.automation:null;let j;e[0]!==a||e[1]!==l.prompt||e[2]!==l.skills||e[3]!==h||e[4]!==k||e[5]!==o||e[6]!==f||e[7]!==x||e[8]!==c||e[9]!==s?(j=()=>x.mutate({columnKey:a,...f!==l.prompt||c.join(`
1
+ import{c as $,X as J,o as re,r as V,a2 as ee,K as Y,m as ce,e as ue,b as te,l as Z,j as n,t as se,B as le}from"./index-DAhfV5vh.js";import{s as de}from"./Plus-DDqlhBDc.js";import{s as fe}from"./XClose-75e7Vbaa.js";import{B as ae}from"./badge-DejmcZm9.js";import{f as pe,C as xe,c as he,a as ke,e as je,b as Se}from"./command-BeWosBD5.js";import{I as ge}from"./icon-button-C6LsyxKS.js";import{c as Be,S as Re,a as Te,b as Ce,e as be}from"./sheet-BA1BhLlr.js";import{S as ye}from"./switch-CQPn6TRL.js";import{T as oe}from"./textarea-re22-64Y.js";import{j as ve}from"./task-board-CfiWV1iu.js";import{o as Ne}from"./use-org-fs-DUuc6Zxc.js";import{B as Ae}from"./thread-intent-DjddwZgX.js";function Oe(){const t=$.c(7),{org:e}=J(),a=ee();let l;t[0]!==e.id?(l=Y.taskBoardPrompts(e.id),t[0]=e.id,t[1]=l):l=t[1];let i;t[2]!==a?(i=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=a,t[3]=i):i=t[3];let o;return t[4]!==l||t[5]!==i?(o={queryKey:l,staleTime:6e4,queryFn:i},t[4]=l,t[5]=i,t[6]=o):o=t[6],ce(o)}function Pe(){const t=$.c(7),{org:e}=J(),a=ee();let l;t[0]!==e.id?(l=Y.taskBoardColumnAutomations(e.id),t[0]=e.id,t[1]=l):l=t[1];let i;t[2]!==a?(i=async()=>(await a.call("TASK_BOARD_AUTOMATION_LIST",{})).automations,t[2]=a,t[3]=i):i=t[3];let o;return t[4]!==l||t[5]!==i?(o={queryKey:l,staleTime:6e4,queryFn:i},t[4]=l,t[5]=i,t[6]=o):o=t[6],ce(o)}function Ee(){const t=$.c(8),{org:e}=J(),a=ee(),l=re();let i;t[0]!==a?(i=async x=>{const{columnKey:r,rules:m,automation:u}=x;if(m){const d=m.prompt.trim();await(d||m.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:r,prompt:d,skills:m.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:r}))}r!==null&&u!==void 0&&await(u===null?a.call("TASK_BOARD_AUTOMATION_DELETE",{columnKey:r}):a.call("TASK_BOARD_AUTOMATION_UPSERT",{columnKey:r,prompt:u.trim()||null}))},t[0]=a,t[1]=i):i=t[1];let o;t[2]!==e||t[3]!==l?(o=()=>Promise.all([l.invalidateQueries({queryKey:Y.taskBoardPrompts(e.id)}),l.invalidateQueries({queryKey:Y.taskBoardColumnAutomations(e.id)})]),t[2]=e,t[3]=l,t[4]=o):o=t[4];let s;return t[5]!==i||t[6]!==o?(s={mutationFn:i,onSettled:o},t[5]=i,t[6]=o,t[7]=s):s=t[7],ue(s)}const ne=()=>0;function Ve(){const t=$.c(6),{org:e}=J(),a=re();let l;t[0]!==e.id||t[1]!==a?(l=()=>Promise.all([a.invalidateQueries({queryKey:Y.taskBoardPrompts(e.id)}),a.invalidateQueries({queryKey:Y.taskBoardColumnAutomations(e.id)})]),t[0]=e.id,t[1]=a,t[2]=l):l=t[2];const i=l;let o;t[3]!==e.slug||t[4]!==i?(o=()=>Ae.subscribe(e.slug,i,i),t[3]=e.slug,t[4]=i,t[5]=o):o=t[5];const s=o;V.useSyncExternalStore(s,ne,ne)}function Ke(t){const e=$.c(18),a=te(),l=Oe(),i=Pe();let o,s,x;if(e[0]!==i.data||e[1]!==t||e[2]!==l.data||e[3]!==a){s=l.data?.find(c=>c.columnKey===t);let f;e[7]!==i.data||e[8]!==t?(f=i.data?.find(c=>c.columnKey===t),e[7]=i.data,e[8]=t,e[9]=f):f=e[9],o=f;const S=s?.skills.length??0;x=o?.prompt||s?.prompt||(o?a("taskBoard.columnRules.defaultRun"):a("taskBoard.columnRules.skillsOnly",{count:S})),e[0]=i.data,e[1]=t,e[2]=l.data,e[3]=a,e[4]=o,e[5]=s,e[6]=x}else o=e[4],s=e[5],x=e[6];const r=x,m=!!o||!!s;let u;e[10]!==l.data?(u=l.data?.find(we)?.skills??[],e[10]=l.data,e[11]=u):u=e[11];let d;return e[12]!==o||e[13]!==s||e[14]!==r||e[15]!==m||e[16]!==u?(d={scope:s,automation:o,configured:m,summary:r,boardSkills:u},e[12]=o,e[13]=s,e[14]=r,e[15]=m,e[16]=u,e[17]=d):d=e[17],d}function we(t){return t.columnKey===null}function We(t){const e=$.c(23),{columnKey:a,label:l,open:i,onOpenChange:o}=t,{scope:s,automation:x,boardSkills:r}=Ke(a);let m;e[0]!==l?(m=n.jsx(Be,{className:"border-b",children:n.jsx(Re,{children:l})}),e[0]=l,e[1]=m):m=e[1];const u=!!x,d=x?.prompt??"",f=s?.prompt??"";let S;e[2]!==s?.skills?(S=s?.skills??[],e[2]=s?.skills,e[3]=S):S=e[3];let c;e[4]!==u||e[5]!==d||e[6]!==f||e[7]!==S?(c={run:u,automation:d,prompt:f,skills:S},e[4]=u,e[5]=d,e[6]=f,e[7]=S,e[8]=c):c=e[8];let g;e[9]!==o?(g=()=>o(!1),e[9]=o,e[10]=g):g=e[10];let k;e[11]!==r||e[12]!==a||e[13]!==c||e[14]!==g?(k=n.jsx(Le,{columnKey:a,initial:c,boardSkills:r,onDone:g}),e[11]=r,e[12]=a,e[13]=c,e[14]=g,e[15]=k):k=e[15];let h;e[16]!==m||e[17]!==k?(h=n.jsxs(Te,{className:"w-full gap-0 sm:max-w-md","aria-describedby":void 0,children:[m,k]}),e[16]=m,e[17]=k,e[18]=h):h=e[18];let j;return e[19]!==i||e[20]!==o||e[21]!==h?(j=n.jsx(n.Fragment,{children:n.jsx(Ce,{open:i,onOpenChange:o,children:h})}),e[19]=i,e[20]=o,e[21]=h,e[22]=j):j=e[22],j}function Le(t){const e=$.c(81),{columnKey:a,initial:l,boardSkills:i,onDone:o}=t,s=te(),x=Ee(),[r,m]=V.useState(l.run),[u,d]=V.useState(l.automation),[f,S]=V.useState(l.prompt),[c,g]=V.useState(l.skills),k=r?u:null,h=l.run?l.automation:null;let j;e[0]!==a||e[1]!==l.prompt||e[2]!==l.skills||e[3]!==h||e[4]!==k||e[5]!==o||e[6]!==f||e[7]!==x||e[8]!==c||e[9]!==s?(j=()=>x.mutate({columnKey:a,...f!==l.prompt||c.join(`
2
2
  `)!==l.skills.join(`
3
3
  `)?{rules:{prompt:f,skills:c}}:{},...k!==h?{automation:k}:{}},{onSuccess:()=>{se.success(s("taskBoard.columnRules.saved")),o()},onError:X=>se.error(X instanceof Error?X.message:s("taskBoard.columnRules.failed"))}),e[0]=a,e[1]=l.prompt,e[2]=l.skills,e[3]=h,e[4]=k,e[5]=o,e[6]=f,e[7]=x,e[8]=c,e[9]=s,e[10]=j):j=e[10];const A=j;let R;e[11]!==s?(R=s("taskBoard.columnRules.runLabel"),e[11]=s,e[12]=R):R=e[12];let T;e[13]!==R?(T=n.jsx("span",{className:"block text-sm font-medium text-foreground",children:R}),e[13]=R,e[14]=T):T=e[14];let C;e[15]!==s?(C=s("taskBoard.columnRules.runHint"),e[15]=s,e[16]=C):C=e[16];let b;e[17]!==C?(b=n.jsx("span",{className:"text-meta mt-0.5 block",children:C}),e[17]=C,e[18]=b):b=e[18];let y;e[19]!==T||e[20]!==b?(y=n.jsxs("span",{className:"flex-1",children:[T,b]}),e[19]=T,e[20]=b,e[21]=y):y=e[21];let v;e[22]!==r?(v=n.jsx(ye,{checked:r,onCheckedChange:m}),e[22]=r,e[23]=v):v=e[23];let O;e[24]!==y||e[25]!==v?(O=n.jsxs("label",{className:"flex items-start gap-3",children:[y,v]}),e[24]=y,e[25]=v,e[26]=O):O=e[26];let B;e[27]!==u||e[28]!==r||e[29]!==s?(B=r&&n.jsx(oe,{value:u,rows:5,onChange:X=>d(X.target.value),placeholder:s("taskBoard.columnRules.automationPlaceholder"),"aria-label":s("taskBoard.columnRules.automationLabel")}),e[27]=u,e[28]=r,e[29]=s,e[30]=B):B=e[30];let K;e[31]!==O||e[32]!==B?(K=n.jsxs("section",{className:"flex flex-col gap-2",children:[O,B]}),e[31]=O,e[32]=B,e[33]=K):K=e[33];let w;e[34]!==s?(w=s("taskBoard.columnRules.promptLabel"),e[34]=s,e[35]=w):w=e[35];let L;e[36]!==w?(L=n.jsx(ie,{children:w}),e[36]=w,e[37]=L):L=e[37];let P;e[38]===Symbol.for("react.memo_cache_sentinel")?(P=X=>S(X.target.value),e[38]=P):P=e[38];let _;e[39]!==s?(_=s("taskBoard.columnRules.promptPlaceholder"),e[39]=s,e[40]=_):_=e[40];let N;e[41]!==s?(N=s("taskBoard.columnRules.promptLabel"),e[41]=s,e[42]=N):N=e[42];let E;e[43]!==f||e[44]!==_||e[45]!==N?(E=n.jsx(oe,{value:f,rows:5,maxLength:ve,onChange:P,placeholder:_,"aria-label":N}),e[43]=f,e[44]=_,e[45]=N,e[46]=E):E=e[46];let p;e[47]!==L||e[48]!==E?(p=n.jsxs("section",{className:"flex flex-col gap-2",children:[L,E]}),e[47]=L,e[48]=E,e[49]=p):p=e[49];let I;e[50]!==s?(I=s("taskBoard.columnRules.skillsLabel"),e[50]=s,e[51]=I):I=e[51];let M;e[52]!==I?(M=n.jsx(ie,{children:I}),e[52]=I,e[53]=M):M=e[53];let q;e[54]!==i||e[55]!==c?(q=n.jsx($e,{fill:!0,value:c,onChange:g,inherited:i}),e[54]=i,e[55]=c,e[56]=q):q=e[56];let D;e[57]!==M||e[58]!==q?(D=n.jsxs("section",{className:"flex min-h-64 flex-1 flex-col gap-2",children:[M,q]}),e[57]=M,e[58]=q,e[59]=D):D=e[59];let F;e[60]!==K||e[61]!==p||e[62]!==D?(F=n.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-4",children:[K,p,D]}),e[60]=K,e[61]=p,e[62]=D,e[63]=F):F=e[63];let Q;e[64]!==s?(Q=s("taskBoard.columnRules.cancel"),e[64]=s,e[65]=Q):Q=e[65];let U;e[66]!==o||e[67]!==Q?(U=n.jsx(le,{variant:"outline",onClick:o,children:Q}),e[66]=o,e[67]=Q,e[68]=U):U=e[68];const me=x.isPending;let H;e[69]!==s?(H=s("taskBoard.columnRules.save"),e[69]=s,e[70]=H):H=e[70];let z;e[71]!==x.isPending||e[72]!==A||e[73]!==H?(z=n.jsx(le,{disabled:me,onClick:A,children:H}),e[71]=x.isPending,e[72]=A,e[73]=H,e[74]=z):z=e[74];let G;e[75]!==U||e[76]!==z?(G=n.jsxs(be,{className:"flex-row justify-end border-t",children:[U,z]}),e[75]=U,e[76]=z,e[77]=G):G=e[77];let W;return e[78]!==F||e[79]!==G?(W=n.jsxs(n.Fragment,{children:[F,G]}),e[78]=F,e[79]=G,e[80]=W):W=e[80],W}function ie(t){const e=$.c(2),{children:a}=t;let l;return e[0]!==a?(l=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=l):l=e[1],l}const _e=[];function $e(t){const e=$.c(66),{value:a,onChange:l,inherited:i,fill:o}=t,s=i===void 0?_e:i,x=o===void 0?!1:o,r=te(),m=Ne();let u;e[0]!==m.data?(u=B=>m.data?.find(K=>K.id===B)?.name??B,e[0]=m.data,e[1]=u):u=e[1];const d=u;let f,S,c,g,k,h,j,A,R,T;if(e[2]!==m.data||e[3]!==x||e[4]!==s||e[5]!==d||e[6]!==l||e[7]!==r||e[8]!==a){let B;e[19]!==s||e[20]!==a?(B=p=>!p.disableModelInvocation&&!a.includes(p.id)&&!s.includes(p.id),e[19]=s,e[20]=a,e[21]=B):B=e[21];const K=(m.data??[]).filter(B),w=x&&"min-h-0 flex-1";e[22]!==w?(T=Z("flex flex-col gap-2",w),e[22]=w,e[23]=T):T=e[23],e[24]!==d||e[25]!==l||e[26]!==r||e[27]!==a?(g=a.length>0&&n.jsx("div",{className:"flex flex-wrap gap-1.5",children:a.map(p=>n.jsxs(ae,{variant:"outline",className:"py-0 pr-0 pl-2",children:[d(p),n.jsx(ge,{label:r("taskBoard.columnRules.removeSkill",{skill:d(p)}),onClick:()=>l(a.filter(I=>I!==p)),className:"size-5 text-muted-foreground",children:n.jsx(fe,{size:12})})]},p))}),e[24]=d,e[25]=l,e[26]=r,e[27]=a,e[28]=g):g=e[28],c=pe;const L=x&&"min-h-0 flex-1";e[29]!==L?(A=Z("h-auto border",L),e[29]=L,e[30]=A):A=e[30];let P;e[31]!==r?(P=r("taskBoard.columnRules.searchSkills"),e[31]=r,e[32]=P):P=e[32],e[33]!==P?(R=n.jsx(xe,{placeholder:P,className:"h-9"}),e[33]=P,e[34]=R):R=e[34],S=he;const _=x?"max-h-none flex-1":"max-h-56";e[35]!==_?(h=Z(_),e[35]=_,e[36]=h):h=e[36];let N;e[37]!==r?(N=r("taskBoard.columnRules.noSkills"),e[37]=r,e[38]=N):N=e[38],e[39]!==N?(j=n.jsx(ke,{children:N}),e[39]=N,e[40]=j):j=e[40],f=je;let E;e[41]!==l||e[42]!==a?(E=p=>n.jsxs(Se,{value:`${p.name} ${p.id}`,onSelect:()=>l([...a,p.id]),children:[n.jsx(de,{size:14,className:"shrink-0 text-muted-foreground"}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"truncate text-sm",children:p.name}),p.description&&n.jsx("span",{className:"text-meta line-clamp-1",children:p.description})]})]},p.id),e[41]=l,e[42]=a,e[43]=E):E=e[43],k=K.map(E),e[2]=m.data,e[3]=x,e[4]=s,e[5]=d,e[6]=l,e[7]=r,e[8]=a,e[9]=f,e[10]=S,e[11]=c,e[12]=g,e[13]=k,e[14]=h,e[15]=j,e[16]=A,e[17]=R,e[18]=T}else f=e[9],S=e[10],c=e[11],g=e[12],k=e[13],h=e[14],j=e[15],A=e[16],R=e[17],T=e[18];let C;e[44]!==f||e[45]!==k?(C=n.jsx(f,{children:k}),e[44]=f,e[45]=k,e[46]=C):C=e[46];let b;e[47]!==S||e[48]!==C||e[49]!==h||e[50]!==j?(b=n.jsxs(S,{className:h,children:[j,C]}),e[47]=S,e[48]=C,e[49]=h,e[50]=j,e[51]=b):b=e[51];let y;e[52]!==c||e[53]!==b||e[54]!==A||e[55]!==R?(y=n.jsxs(c,{className:A,children:[R,b]}),e[52]=c,e[53]=b,e[54]=A,e[55]=R,e[56]=y):y=e[56];let v;e[57]!==s||e[58]!==d||e[59]!==r?(v=s.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("p",{className:"text-meta",children:r("taskBoard.columnRules.inheritedHint")}),n.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.map(B=>n.jsx(ae,{variant:"muted",children:d(B)},B))})]}),e[57]=s,e[58]=d,e[59]=r,e[60]=v):v=e[60];let O;return e[61]!==g||e[62]!==y||e[63]!==v||e[64]!==T?(O=n.jsxs("div",{className:T,children:[g,y,v]}),e[61]=g,e[62]=y,e[63]=v,e[64]=T,e[65]=O):O=e[65],O}export{We as C,$e as S,Ke as a,Oe as b,Ee as c,Ve as u};
@@ -1 +1 @@
1
- import{c as J,r as K,j as s,l as y,B as Q}from"./index-D3VyLkC3.js";import{i as U}from"./Check-BwZg9K6a.js";import{i as V}from"./Tool01-TfY7iJsP.js";import{C as W,a as X,b as Y,e as Z,c as _,f as ee}from"./command-BUcXz1jA.js";import{a as se,P as te,b as le}from"./popover-DmsBpt35.js";function ne(q){const e=J.c(45),{options:j,value:l,onChange:v,placeholder:R,triggerClassName:$,contentClassName:N,width:A,renderTrigger:F,renderItem:r,emptyMessage:G,searchPlaceholder:L,filter:S,renderSearchAction:w}=q,z=R===void 0?"Select...":R,D=A===void 0?"w-[200px]":A,P=G===void 0?"No results found.":G,E=L===void 0?"Search...":L;let C;e[0]!==l?(C=x=>x.value===l,e[0]=l,e[1]=C):C=e[1];const T=j.find(C),[I,t]=K.useState(!1),O=te,B=se,H=!0,M=F?s.jsx("div",{className:y("cursor-pointer",$),children:F(T)}):s.jsxs(Q,{variant:"outline",role:"combobox",className:y("justify-between",D,$),children:[T?T.label:z,s.jsx(V,{className:"opacity-50"})]});let o;e[2]!==B||e[3]!==M?(o=s.jsx(B,{asChild:H,children:M}),e[2]=B,e[3]=M,e[4]=o):o=e[4];let i;e[5]!==N?(i=y("p-0",N),e[5]=N,e[6]=i):i=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[7]=g):g=e[7];let c;e[8]!==w||e[9]!==t?(c=w?.(()=>t(!1)),e[8]=w,e[9]=t,e[10]=c):c=e[10];let n;e[11]!==E||e[12]!==c?(n=s.jsx(W,{placeholder:E,className:"h-9",action:c}),e[11]=E,e[12]=c,e[13]=n):n=e[13];let m;e[14]!==P?(m=s.jsx(X,{children:P}),e[14]=P,e[15]=m):m=e[15];let d;if(e[16]!==v||e[17]!==j||e[18]!==r||e[19]!==t||e[20]!==l){let x;e[22]!==v||e[23]!==r||e[24]!==t||e[25]!==l?(x=a=>{const k=l===a.value;return s.jsx(Y,{value:a.label,onSelect:()=>{v(a.value===l?"":a.value),t(!1)},children:r?r(a,k):s.jsxs(s.Fragment,{children:[a.label,s.jsx(U,{className:y("ml-auto",k?"opacity-100":"opacity-0")})]})},a.value)},e[22]=v,e[23]=r,e[24]=t,e[25]=l,e[26]=x):x=e[26],d=j.map(x),e[16]=v,e[17]=j,e[18]=r,e[19]=t,e[20]=l,e[21]=d}else d=e[21];let f;e[27]!==d?(f=s.jsx(Z,{children:d}),e[27]=d,e[28]=f):f=e[28];let h;e[29]!==m||e[30]!==f?(h=s.jsxs(_,{children:[m,f]}),e[29]=m,e[30]=f,e[31]=h):h=e[31];let p;e[32]!==S||e[33]!==n||e[34]!==h?(p=s.jsxs(ee,{filter:S,children:[n,h]}),e[32]=S,e[33]=n,e[34]=h,e[35]=p):p=e[35];let u;e[36]!==p||e[37]!==i?(u=s.jsx(le,{className:i,style:g,children:p}),e[36]=p,e[37]=i,e[38]=u):u=e[38];let b;return e[39]!==O||e[40]!==I||e[41]!==t||e[42]!==u||e[43]!==o?(b=s.jsxs(O,{open:I,onOpenChange:t,children:[o,u]}),e[39]=O,e[40]=I,e[41]=t,e[42]=u,e[43]=o,e[44]=b):b=e[44],b}export{ne as C};
1
+ import{c as J,r as K,j as s,l as y,B as Q}from"./index-DAhfV5vh.js";import{i as U}from"./Check-CkBscgA2.js";import{i as V}from"./Tool01-CH2aHsGf.js";import{C as W,a as X,b as Y,e as Z,c as _,f as ee}from"./command-BeWosBD5.js";import{a as se,P as te,b as le}from"./popover-VHHbgkVg.js";function ne(q){const e=J.c(45),{options:j,value:l,onChange:v,placeholder:R,triggerClassName:$,contentClassName:N,width:A,renderTrigger:F,renderItem:r,emptyMessage:G,searchPlaceholder:L,filter:S,renderSearchAction:w}=q,z=R===void 0?"Select...":R,D=A===void 0?"w-[200px]":A,P=G===void 0?"No results found.":G,E=L===void 0?"Search...":L;let C;e[0]!==l?(C=x=>x.value===l,e[0]=l,e[1]=C):C=e[1];const T=j.find(C),[I,t]=K.useState(!1),O=te,B=se,H=!0,M=F?s.jsx("div",{className:y("cursor-pointer",$),children:F(T)}):s.jsxs(Q,{variant:"outline",role:"combobox",className:y("justify-between",D,$),children:[T?T.label:z,s.jsx(V,{className:"opacity-50"})]});let o;e[2]!==B||e[3]!==M?(o=s.jsx(B,{asChild:H,children:M}),e[2]=B,e[3]=M,e[4]=o):o=e[4];let i;e[5]!==N?(i=y("p-0",N),e[5]=N,e[6]=i):i=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[7]=g):g=e[7];let c;e[8]!==w||e[9]!==t?(c=w?.(()=>t(!1)),e[8]=w,e[9]=t,e[10]=c):c=e[10];let n;e[11]!==E||e[12]!==c?(n=s.jsx(W,{placeholder:E,className:"h-9",action:c}),e[11]=E,e[12]=c,e[13]=n):n=e[13];let m;e[14]!==P?(m=s.jsx(X,{children:P}),e[14]=P,e[15]=m):m=e[15];let d;if(e[16]!==v||e[17]!==j||e[18]!==r||e[19]!==t||e[20]!==l){let x;e[22]!==v||e[23]!==r||e[24]!==t||e[25]!==l?(x=a=>{const k=l===a.value;return s.jsx(Y,{value:a.label,onSelect:()=>{v(a.value===l?"":a.value),t(!1)},children:r?r(a,k):s.jsxs(s.Fragment,{children:[a.label,s.jsx(U,{className:y("ml-auto",k?"opacity-100":"opacity-0")})]})},a.value)},e[22]=v,e[23]=r,e[24]=t,e[25]=l,e[26]=x):x=e[26],d=j.map(x),e[16]=v,e[17]=j,e[18]=r,e[19]=t,e[20]=l,e[21]=d}else d=e[21];let f;e[27]!==d?(f=s.jsx(Z,{children:d}),e[27]=d,e[28]=f):f=e[28];let h;e[29]!==m||e[30]!==f?(h=s.jsxs(_,{children:[m,f]}),e[29]=m,e[30]=f,e[31]=h):h=e[31];let p;e[32]!==S||e[33]!==n||e[34]!==h?(p=s.jsxs(ee,{filter:S,children:[n,h]}),e[32]=S,e[33]=n,e[34]=h,e[35]=p):p=e[35];let u;e[36]!==p||e[37]!==i?(u=s.jsx(le,{className:i,style:g,children:p}),e[36]=p,e[37]=i,e[38]=u):u=e[38];let b;return e[39]!==O||e[40]!==I||e[41]!==t||e[42]!==u||e[43]!==o?(b=s.jsxs(O,{open:I,onOpenChange:t,children:[o,u]}),e[39]=O,e[40]=I,e[41]=t,e[42]=u,e[43]=o,e[44]=b):b=e[44],b}export{ne as C};
@@ -1 +1 @@
1
- import{c as v,l as h,j as r,aH as N}from"./index-D3VyLkC3.js";import{_ as b}from"./index-Djpcf0g3.js";import{D as j,d as w,h as y,c as C,b as z}from"./dialog-C_zHR8DK.js";import{i as D}from"./SearchMd-DpRsJH0P.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(b,{"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 k;return e[24]!==l||e[25]!==d||e[26]!==p?(k=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=k):k=e[27],k}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:border-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(b.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(b.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(b.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(b.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function P(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(b.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=N("[&_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 T(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(b.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{R as C,B as a,T as b,V as c,L as d,F as e,$ as f,I as g,P as h};
1
+ import{c as v,l as h,j as r,aH as N}from"./index-DAhfV5vh.js";import{_ as b}from"./index-D9Dp_srJ.js";import{D as j,d as w,h as y,c as C,b as z}from"./dialog-B30-8RI6.js";import{i as D}from"./SearchMd-WaC9Elkv.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(b,{"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 k;return e[24]!==l||e[25]!==d||e[26]!==p?(k=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=k):k=e[27],k}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:border-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(b.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(b.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(b.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(b.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function P(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(b.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=N("[&_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 T(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(b.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{R as C,B as a,T as b,V as c,L as d,F as e,$ as f,I as g,P as h};
@@ -1 +1 @@
1
- import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-D3VyLkC3.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-DjhhnAr3.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-BE7rc0a7.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[z,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==z||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:z,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=z,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
1
+ import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-DAhfV5vh.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-D2VYpHPF.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-CR1Xr13y.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[z,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==z||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:z,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=z,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
@@ -1 +1 @@
1
- import{aO as se,c as F,l as ae,j as ne,dF as oe,X as Y,o as W,K as I,a2 as X,m as re,b as ie,e as K,q as le,t as j,aA as ce,d2 as Z,$ as ue}from"./index-D3VyLkC3.js";import{u as de}from"./use-task-board-events-D5YUKNR3.js";import{b as fe}from"./use-decopilot-events-Coi59geF.js";import{i as me}from"./AlertCircle-O5yKT_wD.js";import{aD as ge,aE as ye,aF as V,aG as ke,t as pe,aH as Ne,a2 as _e,v as he,Z as Se,aI as Be}from"./agent-icon-DebFssce.js";import{i as Ee}from"./CheckCircle-B8nBZ9lR.js";import{s as Ce}from"./Image01-DFTuvWJV.js";import{h as Ae}from"./UserSquare-Cij4gM7j.js";import{C as G,d as Te,e as be}from"./task-board-CVGH6XO_.js";const xe=se("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"}]]);function Ve(e){const t=F.c(8),{size:a,className:s}=e,n=a===void 0?16:a;let o;t[0]!==n?(o={width:n,height:n},t[0]=n,t[1]=o):o=t[1];let r;t[2]!==s?(r=ae("shrink-0 rounded-full object-cover",s),t[2]=s,t[3]=r):r=t[3];let c;return t[4]!==n||t[5]!==o||t[6]!==r?(c=ne.jsx("img",{src:oe,alt:"Super Agent",width:n,height:n,style:o,className:r}),t[4]=n,t[5]=o,t[6]=r,t[7]=c):c=t[7],c}function Ke(e,t){return{queryKey:I.taskBoardItems(e),refetchInterval:6e4,queryFn:async()=>{const{items:a}=await t.call("TASK_BOARD_ITEM_LIST",{});return{items:a}}}}function Ie(){const e=F.c(21),{org:t,locator:a}=Y(),s=W();let n;e[0]!==a?(n=I.taskBoardItems(a),e[0]=a,e[1]=n):n=e[1];const o=n;let r;e[2]!==a||e[3]!==s||e[4]!==o?(r=y=>{s.cancelQueries({queryKey:o}),s.setQueryData(o,u=>u&&{...u,items:u.items.some(g=>g.id===y.id)?u.items.map(g=>g.id===y.id?y:g):[y,...u.items]}),s.invalidateQueries({queryKey:I.taskBoardActivity(a,y.id)})},e[2]=a,e[3]=s,e[4]=o,e[5]=r):r=e[5];let c,f;e[6]!==s||e[7]!==o?(c=()=>{s.invalidateQueries({queryKey:o})},f=y=>{s.cancelQueries({queryKey:o}),s.setQueryData(o,u=>u&&{...u,items:u.items.filter(g=>g.id!==y)})},e[6]=s,e[7]=o,e[8]=c,e[9]=f):(c=e[8],f=e[9]);let i;e[10]!==t.slug||e[11]!==r||e[12]!==c||e[13]!==f?(i={orgSlug:t.slug,onUpdate:r,onResync:c,onDelete:f},e[10]=t.slug,e[11]=r,e[12]=c,e[13]=f,e[14]=i):i=e[14],de(i);let d;e[15]!==s||e[16]!==o?(d=y=>{const u=y.subject,g=y.data.status;s.cancelQueries({queryKey:o}),s.setQueryData(o,p=>p&&{...p,items:p.items.map(N=>N.threads.some(k=>k.threadId===u)?{...N,threads:N.threads.map(k=>k.threadId===u?{...k,status:g}:k)}:N)})},e[15]=s,e[16]=o,e[17]=d):d=e[17];let h;e[18]!==t.slug||e[19]!==d?(h={orgSlug:t.slug,onTaskStatus:d},e[18]=t.slug,e[19]=d,e[20]=h):h=e[20],fe(h)}function ze(){const e=F.c(9),{locator:t}=Y(),a=X();let s;e[0]!==t||e[1]!==a?(s=Ke(t,a),e[0]=t,e[1]=a,e[2]=s):s=e[2];const n=re(s);Ie();let o;e[3]!==n.data?.items?(o=n.data?.items??[],e[3]=n.data?.items,e[4]=o):o=e[4];let r;return e[5]!==n.error||e[6]!==n.isLoading||e[7]!==o?(r={items:o,isLoading:n.isLoading,error:n.error},e[5]=n.error,e[6]=n.isLoading,e[7]=o,e[8]=r):r=e[8],r}function We(){const e=F.c(70),{org:t,locator:a}=Y(),s=X(),n=W(),o=ie();let r;e[0]!==a?(r=I.taskBoardItems(a),e[0]=a,e[1]=r):r=e[1];const c=r;let f;e[2]!==n||e[3]!==c?(f=()=>n.invalidateQueries({queryKey:c}),e[2]=n,e[3]=c,e[4]=f):f=e[4];const i=f;let d;e[5]!==s?(d=l=>s.call("TASK_BOARD_ITEM_CREATE",l),e[5]=s,e[6]=d):d=e[6];let h;e[7]!==i||e[8]!==d?(h={mutationFn:d,onSuccess:i},e[7]=i,e[8]=d,e[9]=h):h=e[9];const y=K(h);let u;e[10]!==s?(u=l=>s.call("TASK_BOARD_ITEM_UPDATE",l),e[10]=s,e[11]=u):u=e[11];let g;e[12]!==n||e[13]!==c?(g=async l=>{await n.cancelQueries({queryKey:c});const _=n.getQueryData(c);return n.setQueryData(c,m=>m&&{...m,items:m.items.map(M=>M.id===l.id?{...M,...l,...l.status!==void 0&&l.status!==M.status&&{statusSince:new Date().toISOString()}}:M)}),{previous:_}},e[12]=n,e[13]=c,e[14]=g):g=e[14];let p;e[15]!==t?(p=(l,_)=>{_.status==="done"&&le("task_marked_done",{organization_id:t.id,task_board_item_id:_.id})},e[15]=t,e[16]=p):p=e[16];let N;e[17]!==n||e[18]!==c?(N=(l,_,m)=>{m?.previous&&n.setQueryData(c,m.previous)},e[17]=n,e[18]=c,e[19]=N):N=e[19];let k;e[20]!==i||e[21]!==a||e[22]!==n?(k=(l,_,m)=>{i(),n.invalidateQueries({queryKey:I.taskBoardActivity(a,m.id)})},e[20]=i,e[21]=a,e[22]=n,e[23]=k):k=e[23];let D;e[24]!==u||e[25]!==g||e[26]!==p||e[27]!==N||e[28]!==k?(D={mutationFn:u,onMutate:g,onSuccess:p,onError:N,onSettled:k},e[24]=u,e[25]=g,e[26]=p,e[27]=N,e[28]=k,e[29]=D):D=e[29];const Q=K(D);let S;e[30]!==s?(S=l=>s.call("TASK_BOARD_ITEM_DELETE",{id:l}),e[30]=s,e[31]=S):S=e[31];let B;e[32]!==i||e[33]!==o?(B=l=>{j.error(l instanceof Error&&l.message?l.message:o("taskBoard.taskBoard.deleteError")),i()},e[32]=i,e[33]=o,e[34]=B):B=e[34];let v;e[35]!==i||e[36]!==S||e[37]!==B?(v={mutationFn:S,onSuccess:i,onError:B},e[35]=i,e[36]=S,e[37]=B,e[38]=v):v=e[38];const U=K(v);let E;e[39]!==s?(E=async l=>{const _=await Promise.allSettled(l.map(m=>s.call("TASK_BOARD_ITEM_DELETE",{id:m})));return{total:l.length,failed:_.filter(De).length}},e[39]=s,e[40]=E):E=e[40];let C,A;e[41]!==o?(C=l=>{const{total:_,failed:m}=l;m!==0&&j.error(o("taskBoard.taskBoard.deleteBulkError",{failed:String(m),total:String(_)}))},A=()=>j.error(o("taskBoard.taskBoard.deleteError")),e[41]=o,e[42]=C,e[43]=A):(C=e[42],A=e[43]);let O;e[44]!==i||e[45]!==E||e[46]!==C||e[47]!==A?(O={mutationFn:E,onSuccess:C,onError:A,onSettled:i},e[44]=i,e[45]=E,e[46]=C,e[47]=A,e[48]=O):O=e[48];const $=K(O);let T;e[49]!==s?(T=l=>s.call("TASK_BOARD_ITEM_UPDATE",l),e[49]=s,e[50]=T):T=e[50];let R;e[51]!==i||e[52]!==T?(R={mutationFn:T,onSuccess:i},e[51]=i,e[52]=T,e[53]=R):R=e[53];const q=K(R);let b;e[54]!==s?(b=l=>s.call("TASK_BOARD_ITEM_RERUN",l),e[54]=s,e[55]=b):b=e[55];let x;e[56]!==i||e[57]!==a||e[58]!==n?(x=(l,_,m)=>{i(),n.invalidateQueries({queryKey:I.taskBoardActivity(a,m.id)})},e[56]=i,e[57]=a,e[58]=n,e[59]=x):x=e[59];let L;e[60]!==b||e[61]!==x?(L={mutationFn:b,onSettled:x},e[60]=b,e[61]=x,e[62]=L):L=e[62];const P=K(L);let w;return e[63]!==y||e[64]!==q||e[65]!==U||e[66]!==$||e[67]!==P||e[68]!==Q?(w={create:y,update:Q,remove:U,removeMany:$,link:q,rerun:P},e[63]=y,e[64]=q,e[65]=U,e[66]=$,e[67]=P,e[68]=Q,e[69]=w):w=e[69],w}function De(e){return e.status==="rejected"}const ve=["ended_after_delivery","superseded"];function Oe(e){return!!e&&ve.includes(e)}function Xe(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function Ze(e){return e.failureKind!=="superseded"}function J(e){return e.threads.some(t=>t.status==="requires_action")}function Je(e){return e.status==="in_review"&&!e.assigneeId}function et(e){return J(e)}function tt(e){return e.status==="in_progress"&&J(e)?"text-warning animate-pulse":te(e.status).iconClassName}function st(e){return e.threads.some(a=>a.status==="in_progress")?"running":e.threads.some(a=>a.status==="failed"&&!Oe(a.failureKind))?"failed":null}function at(e,t,a){const s=e.findIndex(d=>d.id===a),n=t===a?e[s+1]?.id??null:t,o=e.filter(d=>d.id!==a),r=n?o.findIndex(d=>d.id===n):-1,c=r===-1?o.length:r,f=o[c-1],i=o[c];return f&&i?(f.sortOrder+i.sortOrder)/2:f?f.sortOrder+1:i?i.sortOrder-1:0}function nt(e,t){return Array.from({length:t},(a,s)=>e-(t-1-s)*1e-4)}const Re=["archived"],ee={triage:{labelKey:"taskBoard.config.statusBacklog",icon:me,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:Z,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:_e,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:Ce,iconClassName:"text-warning"},approved:{labelKey:"taskBoard.config.statusApproved",icon:Ne,iconClassName:"text-success"},merged:{labelKey:"taskBoard.config.statusMerged",icon:Ae,iconClassName:"text-primary"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:pe,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:Ee,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:ce,iconClassName:"text-muted-foreground"}},Le={icon:Z,iconClassName:"text-muted-foreground"},we=ee;function te(e){return we[e]??Le}function ot(e,t){const a=ee[e];return{label:a?t(a.labelKey):e,visual:te(e)}}const rt=["bug","feature","chore","spike","security"],it={bug:{labelKey:"taskBoard.config.typeBug",icon:xe,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:Be,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:Se,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:he,iconClassName:"text-yellow-500"},security:{labelKey:"taskBoard.config.typeSecurity",icon:ue,iconClassName:"text-purple-500"}};function H(e){return be.includes(e)}function lt(e){return G.filter(t=>e||!H(t))}function ct({deliveryEnabled:e,shownLanes:t,occupied:a}){const s=G.filter(r=>e||!H(r)||a.includes(r)),n=s.filter(r=>Re.includes(r)||!e&&H(r)),o=n.filter(r=>!t.includes(r));return{lanes:s.filter(r=>!o.includes(r)),hidden:o,hideable:n}}const z="lane:";function Me(e){return G.includes(e)}function ut({overId:e,statusOf:t}){if(e===void 0)return null;const a=String(e),s=a.startsWith(z)?a.slice(z.length):t(a);return s!==void 0&&Me(s)?s:null}function dt(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ft=["none","low","medium","high","urgent"],mt={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:V,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:ke,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500",icon:V,iconClassName:"text-blue-500"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:ye,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:ge,iconClassName:"text-destructive"}};function gt(e,t=Date.now()){const a=new Date(e).getTime();return Number.isNaN(a)?null:a<t?"overdue":a-t<=Fe*864e5?"soon":null}const Fe=3;function yt(e){return`color-mix(in oklab, ${e??Te} var(--user-color-strength), transparent)`}export{Re as H,z as L,ft as P,Ve as S,rt as T,Je as a,We as b,mt as c,it as d,yt as e,te as f,Ze as g,Xe as h,J as i,Oe as j,ee as k,ot as l,lt as m,st as n,ze as o,ct as p,et as q,nt as r,tt as s,Ke as t,Ie as u,at as v,ut as w,gt as x,dt as y};
1
+ import{aO as se,c as F,l as ae,j as ne,dF as oe,X as Y,o as W,K as I,a2 as X,m as re,b as ie,e as K,q as le,t as j,aA as ce,d2 as Z,$ as ue}from"./index-DAhfV5vh.js";import{u as de}from"./use-task-board-events-CkFoY4mj.js";import{b as fe}from"./use-decopilot-events-7cMuGUn_.js";import{i as me}from"./AlertCircle-BgzKIHBg.js";import{aD as ge,aE as ye,aF as V,aG as ke,t as pe,aH as Ne,a2 as _e,v as he,Z as Se,aI as Be}from"./agent-icon-BUiQnNP8.js";import{i as Ee}from"./CheckCircle-Bokn_JKt.js";import{s as Ce}from"./Image01-Duw-3ecX.js";import{h as Ae}from"./UserSquare-D6GqJl2I.js";import{C as G,d as Te,e as be}from"./task-board-CfiWV1iu.js";const xe=se("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"}]]);function Ve(e){const t=F.c(8),{size:a,className:s}=e,n=a===void 0?16:a;let o;t[0]!==n?(o={width:n,height:n},t[0]=n,t[1]=o):o=t[1];let r;t[2]!==s?(r=ae("shrink-0 rounded-full object-cover",s),t[2]=s,t[3]=r):r=t[3];let c;return t[4]!==n||t[5]!==o||t[6]!==r?(c=ne.jsx("img",{src:oe,alt:"Super Agent",width:n,height:n,style:o,className:r}),t[4]=n,t[5]=o,t[6]=r,t[7]=c):c=t[7],c}function Ke(e,t){return{queryKey:I.taskBoardItems(e),refetchInterval:6e4,queryFn:async()=>{const{items:a}=await t.call("TASK_BOARD_ITEM_LIST",{});return{items:a}}}}function Ie(){const e=F.c(21),{org:t,locator:a}=Y(),s=W();let n;e[0]!==a?(n=I.taskBoardItems(a),e[0]=a,e[1]=n):n=e[1];const o=n;let r;e[2]!==a||e[3]!==s||e[4]!==o?(r=y=>{s.cancelQueries({queryKey:o}),s.setQueryData(o,u=>u&&{...u,items:u.items.some(g=>g.id===y.id)?u.items.map(g=>g.id===y.id?y:g):[y,...u.items]}),s.invalidateQueries({queryKey:I.taskBoardActivity(a,y.id)})},e[2]=a,e[3]=s,e[4]=o,e[5]=r):r=e[5];let c,f;e[6]!==s||e[7]!==o?(c=()=>{s.invalidateQueries({queryKey:o})},f=y=>{s.cancelQueries({queryKey:o}),s.setQueryData(o,u=>u&&{...u,items:u.items.filter(g=>g.id!==y)})},e[6]=s,e[7]=o,e[8]=c,e[9]=f):(c=e[8],f=e[9]);let i;e[10]!==t.slug||e[11]!==r||e[12]!==c||e[13]!==f?(i={orgSlug:t.slug,onUpdate:r,onResync:c,onDelete:f},e[10]=t.slug,e[11]=r,e[12]=c,e[13]=f,e[14]=i):i=e[14],de(i);let d;e[15]!==s||e[16]!==o?(d=y=>{const u=y.subject,g=y.data.status;s.cancelQueries({queryKey:o}),s.setQueryData(o,p=>p&&{...p,items:p.items.map(N=>N.threads.some(k=>k.threadId===u)?{...N,threads:N.threads.map(k=>k.threadId===u?{...k,status:g}:k)}:N)})},e[15]=s,e[16]=o,e[17]=d):d=e[17];let h;e[18]!==t.slug||e[19]!==d?(h={orgSlug:t.slug,onTaskStatus:d},e[18]=t.slug,e[19]=d,e[20]=h):h=e[20],fe(h)}function ze(){const e=F.c(9),{locator:t}=Y(),a=X();let s;e[0]!==t||e[1]!==a?(s=Ke(t,a),e[0]=t,e[1]=a,e[2]=s):s=e[2];const n=re(s);Ie();let o;e[3]!==n.data?.items?(o=n.data?.items??[],e[3]=n.data?.items,e[4]=o):o=e[4];let r;return e[5]!==n.error||e[6]!==n.isLoading||e[7]!==o?(r={items:o,isLoading:n.isLoading,error:n.error},e[5]=n.error,e[6]=n.isLoading,e[7]=o,e[8]=r):r=e[8],r}function We(){const e=F.c(70),{org:t,locator:a}=Y(),s=X(),n=W(),o=ie();let r;e[0]!==a?(r=I.taskBoardItems(a),e[0]=a,e[1]=r):r=e[1];const c=r;let f;e[2]!==n||e[3]!==c?(f=()=>n.invalidateQueries({queryKey:c}),e[2]=n,e[3]=c,e[4]=f):f=e[4];const i=f;let d;e[5]!==s?(d=l=>s.call("TASK_BOARD_ITEM_CREATE",l),e[5]=s,e[6]=d):d=e[6];let h;e[7]!==i||e[8]!==d?(h={mutationFn:d,onSuccess:i},e[7]=i,e[8]=d,e[9]=h):h=e[9];const y=K(h);let u;e[10]!==s?(u=l=>s.call("TASK_BOARD_ITEM_UPDATE",l),e[10]=s,e[11]=u):u=e[11];let g;e[12]!==n||e[13]!==c?(g=async l=>{await n.cancelQueries({queryKey:c});const _=n.getQueryData(c);return n.setQueryData(c,m=>m&&{...m,items:m.items.map(M=>M.id===l.id?{...M,...l,...l.status!==void 0&&l.status!==M.status&&{statusSince:new Date().toISOString()}}:M)}),{previous:_}},e[12]=n,e[13]=c,e[14]=g):g=e[14];let p;e[15]!==t?(p=(l,_)=>{_.status==="done"&&le("task_marked_done",{organization_id:t.id,task_board_item_id:_.id})},e[15]=t,e[16]=p):p=e[16];let N;e[17]!==n||e[18]!==c?(N=(l,_,m)=>{m?.previous&&n.setQueryData(c,m.previous)},e[17]=n,e[18]=c,e[19]=N):N=e[19];let k;e[20]!==i||e[21]!==a||e[22]!==n?(k=(l,_,m)=>{i(),n.invalidateQueries({queryKey:I.taskBoardActivity(a,m.id)})},e[20]=i,e[21]=a,e[22]=n,e[23]=k):k=e[23];let D;e[24]!==u||e[25]!==g||e[26]!==p||e[27]!==N||e[28]!==k?(D={mutationFn:u,onMutate:g,onSuccess:p,onError:N,onSettled:k},e[24]=u,e[25]=g,e[26]=p,e[27]=N,e[28]=k,e[29]=D):D=e[29];const Q=K(D);let S;e[30]!==s?(S=l=>s.call("TASK_BOARD_ITEM_DELETE",{id:l}),e[30]=s,e[31]=S):S=e[31];let B;e[32]!==i||e[33]!==o?(B=l=>{j.error(l instanceof Error&&l.message?l.message:o("taskBoard.taskBoard.deleteError")),i()},e[32]=i,e[33]=o,e[34]=B):B=e[34];let v;e[35]!==i||e[36]!==S||e[37]!==B?(v={mutationFn:S,onSuccess:i,onError:B},e[35]=i,e[36]=S,e[37]=B,e[38]=v):v=e[38];const U=K(v);let E;e[39]!==s?(E=async l=>{const _=await Promise.allSettled(l.map(m=>s.call("TASK_BOARD_ITEM_DELETE",{id:m})));return{total:l.length,failed:_.filter(De).length}},e[39]=s,e[40]=E):E=e[40];let C,A;e[41]!==o?(C=l=>{const{total:_,failed:m}=l;m!==0&&j.error(o("taskBoard.taskBoard.deleteBulkError",{failed:String(m),total:String(_)}))},A=()=>j.error(o("taskBoard.taskBoard.deleteError")),e[41]=o,e[42]=C,e[43]=A):(C=e[42],A=e[43]);let O;e[44]!==i||e[45]!==E||e[46]!==C||e[47]!==A?(O={mutationFn:E,onSuccess:C,onError:A,onSettled:i},e[44]=i,e[45]=E,e[46]=C,e[47]=A,e[48]=O):O=e[48];const $=K(O);let T;e[49]!==s?(T=l=>s.call("TASK_BOARD_ITEM_UPDATE",l),e[49]=s,e[50]=T):T=e[50];let R;e[51]!==i||e[52]!==T?(R={mutationFn:T,onSuccess:i},e[51]=i,e[52]=T,e[53]=R):R=e[53];const q=K(R);let b;e[54]!==s?(b=l=>s.call("TASK_BOARD_ITEM_RERUN",l),e[54]=s,e[55]=b):b=e[55];let x;e[56]!==i||e[57]!==a||e[58]!==n?(x=(l,_,m)=>{i(),n.invalidateQueries({queryKey:I.taskBoardActivity(a,m.id)})},e[56]=i,e[57]=a,e[58]=n,e[59]=x):x=e[59];let L;e[60]!==b||e[61]!==x?(L={mutationFn:b,onSettled:x},e[60]=b,e[61]=x,e[62]=L):L=e[62];const P=K(L);let w;return e[63]!==y||e[64]!==q||e[65]!==U||e[66]!==$||e[67]!==P||e[68]!==Q?(w={create:y,update:Q,remove:U,removeMany:$,link:q,rerun:P},e[63]=y,e[64]=q,e[65]=U,e[66]=$,e[67]=P,e[68]=Q,e[69]=w):w=e[69],w}function De(e){return e.status==="rejected"}const ve=["ended_after_delivery","superseded"];function Oe(e){return!!e&&ve.includes(e)}function Xe(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function Ze(e){return e.failureKind!=="superseded"}function J(e){return e.threads.some(t=>t.status==="requires_action")}function Je(e){return e.status==="in_review"&&!e.assigneeId}function et(e){return J(e)}function tt(e){return e.status==="in_progress"&&J(e)?"text-warning animate-pulse":te(e.status).iconClassName}function st(e){return e.threads.some(a=>a.status==="in_progress")?"running":e.threads.some(a=>a.status==="failed"&&!Oe(a.failureKind))?"failed":null}function at(e,t,a){const s=e.findIndex(d=>d.id===a),n=t===a?e[s+1]?.id??null:t,o=e.filter(d=>d.id!==a),r=n?o.findIndex(d=>d.id===n):-1,c=r===-1?o.length:r,f=o[c-1],i=o[c];return f&&i?(f.sortOrder+i.sortOrder)/2:f?f.sortOrder+1:i?i.sortOrder-1:0}function nt(e,t){return Array.from({length:t},(a,s)=>e-(t-1-s)*1e-4)}const Re=["archived"],ee={triage:{labelKey:"taskBoard.config.statusBacklog",icon:me,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:Z,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:_e,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:Ce,iconClassName:"text-warning"},approved:{labelKey:"taskBoard.config.statusApproved",icon:Ne,iconClassName:"text-success"},merged:{labelKey:"taskBoard.config.statusMerged",icon:Ae,iconClassName:"text-primary"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:pe,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:Ee,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:ce,iconClassName:"text-muted-foreground"}},Le={icon:Z,iconClassName:"text-muted-foreground"},we=ee;function te(e){return we[e]??Le}function ot(e,t){const a=ee[e];return{label:a?t(a.labelKey):e,visual:te(e)}}const rt=["bug","feature","chore","spike","security"],it={bug:{labelKey:"taskBoard.config.typeBug",icon:xe,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:Be,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:Se,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:he,iconClassName:"text-yellow-500"},security:{labelKey:"taskBoard.config.typeSecurity",icon:ue,iconClassName:"text-purple-500"}};function H(e){return be.includes(e)}function lt(e){return G.filter(t=>e||!H(t))}function ct({deliveryEnabled:e,shownLanes:t,occupied:a}){const s=G.filter(r=>e||!H(r)||a.includes(r)),n=s.filter(r=>Re.includes(r)||!e&&H(r)),o=n.filter(r=>!t.includes(r));return{lanes:s.filter(r=>!o.includes(r)),hidden:o,hideable:n}}const z="lane:";function Me(e){return G.includes(e)}function ut({overId:e,statusOf:t}){if(e===void 0)return null;const a=String(e),s=a.startsWith(z)?a.slice(z.length):t(a);return s!==void 0&&Me(s)?s:null}function dt(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ft=["none","low","medium","high","urgent"],mt={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:V,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:ke,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500",icon:V,iconClassName:"text-blue-500"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:ye,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:ge,iconClassName:"text-destructive"}};function gt(e,t=Date.now()){const a=new Date(e).getTime();return Number.isNaN(a)?null:a<t?"overdue":a-t<=Fe*864e5?"soon":null}const Fe=3;function yt(e){return`color-mix(in oklab, ${e??Te} var(--user-color-strength), transparent)`}export{Re as H,z as L,ft as P,Ve as S,rt as T,Je as a,We as b,mt as c,it as d,yt as e,te as f,Ze as g,Xe as h,J as i,Oe as j,ee as k,ot as l,lt as m,st as n,ze as o,ct as p,et as q,nt as r,tt as s,Ke as t,Ie as u,at as v,ut as w,gt as x,dt as y};
@@ -1,4 +1,4 @@
1
- import{c as _,b as D,r as G,l as ee,j as s,fH as te,X as se,ad as ne,Z as ie,B as F,t as q,e_ as oe,ec as le,ak as ae}from"./index-D3VyLkC3.js";import{a as re,A as ce}from"./alert-CqDdaXWn.js";import{a as de,b as ue,c as V,d as fe,S as pe}from"./select-DC4TM20D.js";import{T as me,c as xe,a as ge,b as he}from"./tabs-WFH6vPjH.js";import{u as J}from"./use-copy-4XQ35auE.js";import{i as Y}from"./Check-BwZg9K6a.js";import{a as Z}from"./Copy01-YmLU_wow.js";import{i as ye}from"./Key01-CW5AmBXO.js";import{i as Ce}from"./Link01-rblrB3OI.js";import{C as je,a as be,b as ve}from"./client-icons-DrzfFqzQ.js";import{u as we,a as Ne,A as $e}from"./api-keys-wNYNv40Y.js";import{R as ke}from"./require-capability-Btgp_M9F.js";import"./index-DXhMSpJ7.js";import"./ChevronUp-XuQjQLoK.js";import"./AlertCircle-O5yKT_wD.js";import"./Plus-B7fu2HeJ.js";import"./Trash01-DBoWC6W0.js";import"./alert-dialog-BaW-BGF4.js";import"./dialog-C_zHR8DK.js";import"./X-B1izQ1KV.js";import"./input-B-l5PYzO.js";import"./label-UBdu3ctU.js";import"./use-mcp-client-DjhhnAr3.js";import"./auth-CABZOlQ0.js";import"./access-gate-DvGFBZwA.js";import"./capability-load-error-CI6r2eSt.js";function Se(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ke(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function _e({client:t,mode:e,url:r,apiKey:c}){const i=c??"<paste-your-api-key>",a=Se();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r} \\
1
+ import{c as _,b as D,r as G,l as ee,j as s,fH as te,X as se,ad as ne,Z as ie,B as F,t as q,e_ as oe,ec as le,ak as ae}from"./index-DAhfV5vh.js";import{a as re,A as ce}from"./alert-BxQz8cP6.js";import{a as de,b as ue,c as V,d as fe,S as pe}from"./select-Cfp-vpJN.js";import{T as me,c as xe,a as ge,b as he}from"./tabs-boN14fnC.js";import{u as J}from"./use-copy-BBTjUiXD.js";import{i as Y}from"./Check-CkBscgA2.js";import{a as Z}from"./Copy01-C68wCYtl.js";import{i as ye}from"./Key01-CqL4JhuL.js";import{i as Ce}from"./Link01-C-Mwe2eF.js";import{C as je,a as be,b as ve}from"./client-icons-Dot2-8Ng.js";import{u as we,a as Ne,A as $e}from"./api-keys-OtcVZ-We.js";import{R as ke}from"./require-capability-BqUwjQSq.js";import"./index-IqSVG5fY.js";import"./ChevronUp-d9MFOW1T.js";import"./AlertCircle-BgzKIHBg.js";import"./Plus-DDqlhBDc.js";import"./Trash01-DK8Y_gth.js";import"./alert-dialog-BB87iWcS.js";import"./dialog-B30-8RI6.js";import"./X-YRTghwXC.js";import"./input-Uk8z-Ktf.js";import"./label-CsA5aIjl.js";import"./use-mcp-client-D2VYpHPF.js";import"./auth-CqmWT_2g.js";import"./access-gate-BU27wCPK.js";import"./capability-load-error-BJHb8XrA.js";function Se(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ke(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function _e({client:t,mode:e,url:r,apiKey:c}){const i=c??"<paste-your-api-key>",a=Se();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r} \\
2
2
  --header "Authorization: Bearer ${i}"`};if(t==="cursor"){const n={url:r};return e==="api-key"&&(n.headers={Authorization:`Bearer ${i}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[a]:n}},null,2)}}if(t==="codex"){const n=[`[mcp_servers.${a}]`,`url = "${r}"`];return e==="api-key"&&n.push(`http_headers = { "Authorization" = "Bearer ${i}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:n.join(`
3
3
  `)}}return e==="oauth"?{language:"text",code:`${r}
4
4
 
@@ -1 +1 @@
1
- import{c as v,b as N,j as s,a7 as w,ak as k,B as y}from"./index-D3VyLkC3.js";import{i as z}from"./X-B1izQ1KV.js";import{aJ as _,aw as C}from"./agent-icon-DebFssce.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function A(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children: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(z,{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(k,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,c,g]}),e[12]=c,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function I(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(y,{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{A as C,I as a};
1
+ import{c as v,b as N,j as s,a7 as w,ak as k,B as y}from"./index-DAhfV5vh.js";import{i as z}from"./X-YRTghwXC.js";import{aJ as _,aw as C}from"./agent-icon-BUiQnNP8.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function A(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children: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(z,{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(k,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,c,g]}),e[12]=c,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function I(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(y,{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{A as C,I as a};
@@ -1 +1 @@
1
- import{au as o,bL as a,bM as t,av as e,bN as i,bO as r,cU as p,dC as b,cQ as m}from"./index-D3VyLkC3.js";const h=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:p("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),_=b.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(_).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});u.partial();function T(n){return n!=null&&"command"in n}function y(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{h as O,T as i,y as p};
1
+ import{au as o,bL as a,bM as t,av as e,bN as i,bO as r,cU as p,dC as b,cQ as m}from"./index-DAhfV5vh.js";const h=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:p("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),_=b.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(_).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});u.partial();function T(n){return n!=null&&"command"in n}function y(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{h as O,T as i,y as p};
@@ -1 +1 @@
1
- import{c as M,X as S,a2 as $,K as F,a8 as R,b as K,l as A,j as c,e_ as q}from"./index-D3VyLkC3.js";import{u as O}from"./useInfiniteQuery-BzCTPJtn.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-Bo3BUxvM.js";function W(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:z,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(Y)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function Y(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=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-muted/50";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(V,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,W as u};
1
+ import{c as M,X as S,a2 as $,K as F,a8 as R,b as K,l as A,j as c,e_ as q}from"./index-DAhfV5vh.js";import{u as O}from"./useInfiniteQuery-BpXl9N7J.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-DTJ53jik.js";function W(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:z,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(Y)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function Y(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=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-muted/50";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(V,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,W as u};